Skip to content

Humans work in task directories too; shared conventions in CONVENTIONS.md - #29

Merged
Marius1311 merged 2 commits into
mainfrom
feat/human-lane
Nov 13, 2026
Merged

Marius1311 merged 2 commits into
mainfrom
feat/human-lane

Conversation

@Marius1311

Copy link
Copy Markdown
Member

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 that analysis-workflow new … --notebook 01_<step> copies into a task. It sets PATHS = task_paths() and points scanpy's figdir at the task's figures. It replaces the sample notebook.
  • Demo moves to analysis/example_dataset/demo/human_scrna_workflow_v1/, with a task README, and starts a dated working object in processed/working/ without consolidated metadata.
  • Removed: central figures/, data/<dataset>/results/ and FilePaths.FIGURES, since outputs are task-local in both lanes. Existing repos keep their folders: cruft skips data/ and src/, and only the figures/.gitkeep placeholder goes.
  • REVIEW_GUIDE is lane-neutral. A 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 because commit_adata now raises.

I rendered this branch with cookiecutter. Its pre-commit passes, new with 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

…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>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-13T11:18:25.367168Z 61c571e PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment on lines +491 to +492
"output_path = FilePaths.EXAMPLE_DATASET / \"processed\" / \"working\" / \"pbmc3k_2026-01-27.zarr\"\n",
"adata.write_zarr(output_path, consolidate_metadata=False)\n",

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge 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 👍 / 👎.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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>
@Marius1311
Marius1311 merged commit aff8f9f into main Nov 13, 2026
1 check passed
@Marius1311
Marius1311 deleted the feat/human-lane branch November 13, 2026 12:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant