Repository navigation
Humans work in task directories too; shared conventions in CONVENTIONS.md - #29
Conversation
…S.md - `CONVENTIONS.md`, updated by cruft, holds what both lanes follow: `<lane>_<name>_vN` task directories, their layout and output paths, `data/`, and writing to working objects. The README and AGENTS.md point to it. - `templates/notebook.ipynb` is the starter notebook that `analysis-workflow new --notebook` copies into a task. - The demo notebook moves into `analysis/example_dataset/demo/human_scrna_workflow_v1/` and starts a dated working object; the sample notebook is replaced by the starter. - Central `figures/`, `data/<dataset>/results/` and `FilePaths.FIGURES` go: outputs are task-local in both lanes. - REVIEW_GUIDE is lane-neutral: human PRs are reviewed the same way, minus what agents' hooks already enforce. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 61c571e9a4
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| "output_path = FilePaths.EXAMPLE_DATASET / \"processed\" / \"working\" / \"pbmc3k_2026-01-27.zarr\"\n", | ||
| "adata.write_zarr(output_path, consolidate_metadata=False)\n", |
There was a problem hiding this comment.
Refuse to overwrite an existing working store
If the demo is rerun after another task has added keys to this working object through commit_adata, this unconditional write_zarr replaces the store with the demo's in-memory object and deletes those additions. The new fixed path is explicitly advertised as a shared working object, so rerunning the documented top-to-bottom workflow can now erase downstream results. Refuse creation when the destination already exists, or require a new dated destination rather than overwriting it. This also violates the working-object preservation convention referenced by the agent guidance.
AGENTS.md reference: {{cookiecutter.project_name}}/AGENTS.md:L8-L9
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Fixed in bc55f6f: the demo now raises if the working object already exists, and says to write a new dated copy instead.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Humans now use the same task layout and storage rules as agents. Depends on quadbio/analysis-workflow#21 (
analysis-workflow new,task_paths()in notebooks,commit_adata(keys=...)); merge that first.CONVENTIONS.md(new, updated by cruft) holds what both lanes follow:analysis/<dataset>/<topic>/<human|agent>_<name>_vN/task directories, their layout and output paths,data/, working-object write-back, and optional PRs for humans. The README's "Start your analysis", AGENTS.md and the dataset README point to it; the plugin's skill keeps only what agents alone do.templates/notebook.ipynb: the starter notebook thatanalysis-workflow new … --notebook 01_<step>copies into a task. It setsPATHS = task_paths()and points scanpy'sfigdirat the task's figures. It replaces the sample notebook.analysis/example_dataset/demo/human_scrna_workflow_v1/, with a task README, and starts a dated working object inprocessed/working/without consolidated metadata.figures/,data/<dataset>/results/andFilePaths.FIGURES, since outputs are task-local in both lanes. Existing repos keep their folders: cruft skipsdata/andsrc/, and only thefigures/.gitkeepplaceholder goes.human_task has no hooks, so its layout and path literals are reviewed by hand. The "recomputed key is a silent no-op" item is gone becausecommit_adatanow raises.I rendered this branch with cookiecutter. Its pre-commit passes,
newwith a starter notebook works in it, and the notebook runs in a Jupyter kernel with outputs landing in the task directory.🤖 Generated with Claude Code