From a64269852a1138b794d1a27603e6a5d3c96c4e49 Mon Sep 17 00:00:00 2001 From: Marius1311 Date: Mon, 12 Oct 2026 16:29:37 +0200 Subject: [PATCH 1/2] Say that a worktree's src/ edits don't reach the main environment The main checkout's environment installs the repo's package and editable code repos from the main checkouts, so edits made in a worktree are invisible to it until merged and pulled. Co-Authored-By: Claude Opus 5.5 --- skills/analysis-workflow/SKILL.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/skills/analysis-workflow/SKILL.md b/skills/analysis-workflow/SKILL.md index 85a22f7..c06263d 100644 --- a/skills/analysis-workflow/SKILL.md +++ b/skills/analysis-workflow/SKILL.md @@ -100,6 +100,9 @@ into the human lane. - The root `pixi.toml` is shared; reusability decides what goes in. A benchmark's candidates go task-local. - A worktree runs on the main checkout's environment: `pixi run --manifest-path
/pixi.toml …`. `pixi install`/`add`/`lock` run only in the main checkout, by the human, one session at a time. +- That environment imports the repo's own package and any editable code repo from their main checkouts, so `src/` + edits made in a worktree reach it only once merged and pulled into main. Test a code-repo change in that repo's + own environment. - Verify an environment change with import smoke tests and `--help`, not by re-running analyses. ## Review From f8fe9996744a608ad7d45237acb7b1450bb1c57e Mon Sep 17 00:00:00 2001 From: Marius1311 Date: Tue, 13 Oct 2026 11:02:24 +0200 Subject: [PATCH 2/2] Environments: relock beside main, PYTHONPATH for worktree src, kernels; code-repo worktrees; rapids A task that changes pixi.toml relocks in a temporary checkout beside the main one; only the human installs. A worktree's src/ runs via PYTHONPATH. Kernels skip pixi activation. Code-repo changes get their own worktree from the same session. Large single-cell compute uses rapids-singlecell. Co-Authored-By: Claude Opus 5.5 --- hooks/guard_worktree_pixi.py | 4 ++-- hooks/session_context.md | 2 +- skills/analysis-workflow/SKILL.md | 20 +++++++++++++++----- 3 files changed, 18 insertions(+), 8 deletions(-) diff --git a/hooks/guard_worktree_pixi.py b/hooks/guard_worktree_pixi.py index 2b00758..4066273 100644 --- a/hooks/guard_worktree_pixi.py +++ b/hooks/guard_worktree_pixi.py @@ -66,8 +66,8 @@ def main() -> int: "The root manifest's editable self-dependency (`path = \".\"`) would rebase the repo's package,\n" "and every path it resolves, into this worktree.\n" " - to run something: pixi run --manifest-path
/pixi.toml python