Skip to content

fix(run): skills preflight validates the main checkout, not the worktrees agents run in (#813 follow-up) #933

Closed

Description

@admarble

Epic: M0 Blocked by: — Tier: mechanical Doc: docs/internal/graph-2026-09/PLAN.md §8, §9 OQ-11 Graph node: 05

Symptom

On a consumer repo where .claude/ is present but untracked (the default
after sequant sync if the user hasn't committed it), sequant run passes
its skills preflight and then executes every phase in worktrees that have NO
.claude/skills/ at all — worktrees only materialize tracked files.

Real-world consequence (ad-motion, 2026-08-07 overnight run): the exec agent
found no /exec skill, ran sequant doctor, obeyed doctor's own remediation
("run: sequant sync") inside the worktree mid-run, dirtied the tree with 57
untracked tooling files, and exec failed with a misleading "left 57 file(s)
uncommitted" message. Full incident: ad-motion
experiments/overnight-autonomy/review-log.md.

Root cause

run-orchestrator.ts:1051-1063 invokes runSkillsPreflight with no cwd,
and checkSkillsInstalled defaults to process.cwd()
(skills-check.ts:31-42) — the MAIN checkout, the one directory guaranteed
to have skills (the user just ran sequant from it). The worktrees where phase
agents actually resolve skills (#813: settingSources: ["project"], cwd =
worktree) are never checked.

Fix

Run the preflight against each provisioned worktree path after worktree
creation (the cwd param already exists, skills-preflight.ts:45-46), instead
of / in addition to the pre-provisioning check. On failure, fail fast with the
actual fix: "commit .claude/skills — worktrees only materialize tracked files"
(README:94 already documents this contract).

Scope (graph plan 2026-09)

Acceptance criteria (graph plan 2026-09)

  • AC-1: untracked .claude/skills/ fails fast before any phase spawns, naming the worktree path and the fix — Verify: npx vitest run src/lib/workflow/skills-preflight.test.ts -t "933" → passes; the orchestrator-level case uses a temp git repo with .claude/skills present but untracked, a real git worktree add, and asserts (a) the phase runner mock was never called, (b) the error text contains the worktree path and the phrase commit .claude/skills.
  • AC-2: committed skills pass and the preflight was invoked with cwd = each worktree path — Verify: same test, second case asserts the cwd argument observed by the preflight equals the provisioned worktree path, not process.cwd().
  • AC-3: --dry-run and non-skill drivers unchanged — Verify: same test, cases assert no preflight call under dryRun: true and under agent: "aider".
  • AC-4: the pre-provisioning call is gone (OQ-11: post-provisioning only) — Verify: grep -c 'runSkillsPreflight(' src/lib/workflow/run-orchestrator.ts → 1, and that call sits after the worktree-provisioning block (grep -n 'runSkillsPreflight(\|Cleanup worktree for' src/lib/workflow/run-orchestrator.ts → the preflight line number is greater).

Done when (graph plan 2026-09)

A run whose worktrees lack skills stops before the first phase with the commit guidance, and a run whose worktrees have skills proceeds with the check having looked at the worktrees themselves.

Original acceptance criteria (superseded by the graph-plan ACs above; kept for history)
  • A repo with untracked .claude/skills/ fails sequant run fast, before
    any phase spawns, with commit guidance naming the worktree path
  • A repo with committed skills passes and phases resolve skills in-worktree
  • --dry-run unaffected (no worktrees provisioned)

Activity

  1. added
    graph-2026-09
    on Sep 7, 2026
  2. admarble commented on Sep 7, 2026

    @admarble
    ContributorAuthor

    Runner context (graph-run, 2026-09-06): the plan for this graph is on PR #998 (branch docs/graph-plan-2026-09), not yet on main. Read it from the branch, not the working tree:

    git show origin/docs/graph-plan-2026-09:docs/internal/graph-2026-09/PLAN.md
    git show origin/docs/graph-plan-2026-09:docs/internal/graph-2026-09/issues/NODE-FILE.md
    

    PLAN §5 invariants are binding here: I-4 (hook/skill copies byte-identical: md5 -q a b c | uniq | wc -l → 1), I-5 (gate tests ship a Mutation-verified: record in the PR body), I-6 (stop at PR — never gh pr merge, never close the issue), I-9 (run the Verify commands verbatim; never reason an AC done). Base is main 20e2a867 (v2.13.1); no code drift from the plan base c3c1b0a8 beyond the version bump. Stay inside the may touch list in the node file.

    Node file: issues/05-933-preflight-in-worktrees.md.

  3. admarble commented on Sep 7, 2026

    @admarble
    ContributorAuthor

    Complexity: Standard (4 ACs, 1 directory)

    AC Quality Check

    3/4 pass clean. AC-1 is flagged by the linter for "fast" (unmeasurable) — false positive: the same AC's own Verify clause already operationalizes it as "phase runner mock never called," so no rewrite needed.

    Scope Assessment

    Non-Goals (from issue body): skills-check.ts semantics unchanged; the cleanup-registration block (#935's territory) untouched; --dry-run behavior unchanged.

    Metric Value Status
    Feature count 1 ✅
    AC items 4 ✅
    Directory spread 1 (src/lib/workflow/) ✅

    Verdict: ✅ SCOPE_OK

    Acceptance Criteria

    AC-1: Untracked worktree skills fail fast with worktree path + fix

    Verification: Integration Test
    Scenario: Given a temp git repo with .claude/skills present but untracked, and a real git worktree add → When RunOrchestrator.run() executes with the phase runner (runIssueWithLogging) mocked → Then the phase runner is never invoked, and the abort message contains the worktree path and the literal phrase commit .claude/skills.

    AC-2: Preflight runs with cwd = each worktree path

    Verification: Integration Test
    Scenario: Given the same harness with skills committed → When the run proceeds → Then the cwd observed by runSkillsPreflight/checkSkillsInstalled equals the provisioned worktree path, never process.cwd().

    AC-3: --dry-run and non-skill drivers unchanged

    Verification: Integration Test
    Scenario: Given dryRun: true, and separately agent: "aider" → When the run executes → Then runSkillsPreflight is called zero times in both cases (not just "returns ok" — no call at all).

    AC-4: Pre-provisioning call is gone

    Verification: Static check (grep)
    Scenario: grep -c 'runSkillsPreflight(' src/lib/workflow/run-orchestrator.ts → 1; the surviving call line number is greater than the Cleanup worktree for line (i.e., after provisioning, not before).

    Implementation Plan

    Phase 1: Relocate the preflight call (run-orchestrator.ts)

    1. Delete the existing pre-provisioning block at run-orchestrator.ts:1088-1132 (if (!config.dryRun) { const preflight = await runSkillsPreflight(...) ...}, currently built right after issueInfoMap and before worktree setup).
    2. Insert the replacement immediately after the worktree-provisioning if (useWorktreeIsolation && !config.dryRun) { ... } block closes (~line 1183), before // ── Execute.
    3. Export a small driverResolvesSkills(agent, aiderSettings) helper from skills-preflight.ts (thin wrapper over the module's existing internal getDriver(...).resolvesSkills check) and call it once before looping, so runSkillsPreflight is never invoked at all when the driver doesn't resolve skills (e.g. aider) — this is what makes AC-3's "zero calls" assertion true rather than just "returns ok."
    4. Loop for (const worktree of worktreeMap.values()) and call runSkillsPreflight({ ...same fields as today, cwd: worktree.path }) per worktree; fall back to cwd: process.cwd() only when worktreeMap.size === 0 (worktree isolation disabled — phases then run in the main checkout, same as pre-fix(run): skills preflight validates the main checkout, not the worktrees agents run in (#813 follow-up) #933 behavior).
    5. On the first failing worktree: build the abort message from preflight.cause plus a new worktree-specific remedy string containing the worktree path and the literal phrase commit .claude/skills (worktrees only materialize tracked files). Keep skills-preflight.ts's existing generic remedy field ("run sequant sync") untouched — it's pinned by existing feat(run): pre-flight the skills install — missing .claude/skills/ should fail fast, not flail for 30 minutes as a spec retry #813 unit tests; compose the worktree-specific wording in run-orchestrator.ts, which is the only place that knows the worktree path.
    6. Update the stale "BEFORE any worktree is provisioned" docstring in skills-preflight.ts to describe the new post-provisioning, per-worktree call pattern.

    Phase 2: Tests (skills-preflight.test.ts)

    1. New describe block, every it name containing 933 (so -t "933" selects them, per the issue's Verify command). Reuse run-orchestrator.test.ts's pattern: vi.mock("./batch-executor.js", ...) stubbing runIssueWithLogging (phase runner) and getIssueInfo (no real gh call), driving real RunOrchestrator.run() against a temp dir that's a real git repo with a real git worktree add.
    2. Case A (AC-1): untracked .claude/skills/spec/SKILL.md in main repo → assert runIssueWithLogging never called; abort text has worktree path + commit .claude/skills.
    3. Case B (AC-2): skills committed before the worktree is created → spy on runSkillsPreflight/checkSkillsInstalled, assert observed cwd equals the worktree path.
    4. Case C/D (AC-3): dryRun: true, and separately agent: "aider" → assert zero calls in both.
    5. AC-4 verified by the two grep commands directly, not a vitest case.

    Design Review

    1. Where does this logic belong? RunOrchestrator.static run() — it already owns worktree provisioning and is the only place that knows real worktree paths before phases spawn. skills-preflight.ts stays cwd-agnostic.
    2. Simplest correct approach? Reuse the existing runSkillsPreflight entrypoint unchanged, just called once per worktree path instead of once against process.cwd(). No new module, no new abstraction.
    3. Existing pattern? Identical shape to today's fail-fast block (console output + shutdown.dispose() + early RunResult return) — relocated and looped, not redesigned.
    4. Senior reviewer pushback? "Why call runSkillsPreflight N times instead of computing requiredSkills once and fs-checking N directories?" — Because the preflight only fires once per run (not per phase), and keeping one call path (with its existing driver-gating and requiredSkills union logic) intact avoids a second, easier-to-drift code path for what's a cheap filesystem check.

    Feature Quality Planning

    All standard checks pass. One item worth flagging: export driverResolvesSkills from skills-preflight.ts rather than reimplementing the getDriver(...).resolvesSkills lookup in run-orchestrator.ts — keeps skill-resolution logic in one place, per that module's own stated purpose.

    Open Questions

    1. Stop at the first failing worktree, or collect and report all failures in one message? Recommendation: stop at first failure — matches AC-1's "before any phase spawns" and keeps the abort shape identical to today's single-preflight failure. Impact if wrong: a multi-issue run with several bad worktrees needs one re-run per bad worktree, but sequant sync fixes all of them at once regardless.
    2. What cwd to check when worktreeMap.size === 0 (worktree isolation explicitly disabled)? Recommendation: fall back to process.cwd(), preserving pre-fix(run): skills preflight validates the main checkout, not the worktrees agents run in (#813 follow-up) #933 behavior for that path (phases execute in the main checkout there, so checking it is still correct) — this case is outside the graph plan's stated ACs (which assume isolation is on). Impact if wrong: an edge case combining --no-worktree-isolation with missing skills would skip the check entirely.

    Recommended Workflow

    Phases: exec → qa
    Quality Loop: disabled
    Reasoning: Mechanical-tier per the graph-2026-09 plan; every AC ships a verbatim Verify command (3 vitest cases + 2 grep checks), leaving little ambiguity for a quality-loop iteration to resolve. No complex/refactor label, and scope assessment is SCOPE_OK.

    Rule Touchpoints

    None — no AC matches the behavior-rule heuristic (default/always/never/rule/behavior/skip).

    In-Flight Work Check

    Other graph-2026-09 worktrees exist locally but none have diverged from main yet — no live file-overlap today. Per plan §8, run-orchestrator.ts is a shared merge point: node 05 (#933) owns the preflight-call region, node 09 (#935) owns the adjacent cleanup-registration block, serialize 05 → 09 → 08 — land this PR before #935 touches the same file.

    Label Review

    Current: graph-2026-09
    Recommended: graph-2026-09, planned
    Reason: Scope is tight and well-bounded (SCOPE_OK); no complexity/breaking signal — standard /spec labeling.
    Quality Loop: Won't auto-enable — AC count and directory spread are both well under the warning thresholds.

  4. added
    planned
    on Sep 7, 2026
  5. admarble commented on Sep 7, 2026

    @admarble
    ContributorAuthor

    Runner context (exec re-dispatch #2, 2026-09-07): the previous exec attempt left 5 staged files uncommitted in the worktree because it started npm test with run_in_background: true and then ended its turn to "wait for the completion notification". In this phase, ending your turn ends the phase — background-task notifications never arrive. Run the suite in the foreground (Bash with timeout up to 600000, e.g. npx vitest run src/lib/workflow/skills-preflight.test.ts src/lib/workflow/skills-preflight.integration.test.ts first, then npm test), then git commit as its own Bash call with a single-line conventional message, push, and open the PR. The staged work is already in the worktree — review it, do not start over.

  6. admarble commented on Sep 7, 2026

    @admarble
    ContributorAuthor

    QA Verdict: AC_MET_BUT_NOT_A_PLUS

    AC coverage: 0/1 met

    Gaps:

    • The relocated preflight aborts after provisioning, orphaning the worktree, and the printed remedy 'commit .claude/skills, then re-run' does not recover because the stale worktree is reused unrebased
    • No test asserts worktree lifecycle on the abort path; the only assertion that would have caught the orphan was deleted rather than updated
    • The SEQUANT_MUTATION marker is malformed and reads as a fabricated record to the enforcement gate, though the mutation was genuinely performed
    • The abort path orphans the worktree it just provisioned, and the remedy it prints does not recover. Detail below — this is the one substantive finding.
    • The SEQUANT_MUTATION marker in the PR body is malformed (detail below).

    Suggestions:

    • The per-worktree loop checks the union of required skills for all issues against each worktree. Harmless today (all worktrees branch from the same base, so they share the same tracked .claude/skills), but slightly over-strict if per-issue phase detection ever diverges. Not worth changing now.
    • await inside for (const cwd of cwdsToCheck) is sequential, but N is the worktree count and each call is a cheap fs check, and fail-fast-on-first is the intended semantics per the spec's OQ-1. Fine as-is.
  7. admarble commented on Sep 7, 2026

    @admarble
    ContributorAuthor

    Runner verification — node 05 (PR #1001, QA verdict AC_MET_BUT_NOT_A_PLUS, iteration 3)

    Verify commands from issues/05-933-preflight-in-worktrees.md, run verbatim in the worktree at a902809b:

    AC Command Result
    AC-1/AC-2/AC-3 npx vitest run src/lib/workflow/skills-preflight.test.ts -t "933" 4 passed (16 unrelated skipped)
    AC-4 grep -c 'runSkillsPreflight(' src/lib/workflow/run-orchestrator.ts 1
    AC-4 grep -n 'runSkillsPreflight(|Cleanup worktree for' … preflight at :1169, cleanup registration at :1123 → preflight is after provisioning
    extra npx vitest run src/lib/workflow/skills-preflight.integration.test.ts 2 passed

    Run history for the record: exec attempt 1 died at the launcher's 30-minute ceiling (state mislabels it "Out of credits"); attempts 2–3 left staged work uncommitted because the session waited on a backgrounded npm test; the quality loop's third iteration committed, pushed, and passed QA.

    Nothing fixed beyond the agent's work. Merge decision is yours — I will not merge.

  8. admarble commented on Sep 7, 2026

    @admarble
    ContributorAuthor

    Runner follow-up — two things the owner should weigh before merging PR #1001.

    1. Mutation marker fixed in the PR body (gate format). The exec agent performed the AC-1 mutation but recorded failedTest as the test title; /qa §6i's parser (parseMutationMarkers) requires the test file in the diff and classifies a title as test_not_in_diff (reads as fabricated). I rewrote it to src/lib/workflow/skills-preflight.test.ts and validated both open PRs with the real parser: feat(#932): fix(run): manifest fallback ?? "npm" bypasses resolvePackageManager — pnpm worktrees get npm ci (surviving #870 site) #1000 AC-3 valid, fix(run): skills preflight validates each worktree, not the main checkout (#933) #1001 AC-1 valid.

    2. Substantive QA finding, unresolved by design choice (OQ-11 consequence): with the preflight moved after provisioning, a failing preflight returns from the run and leaves the freshly created worktree in place. The printed remedy ("commit .claude/skills, then re-run") then does not recover: the re-run reuses the stale worktree unrebased, so the skills are still absent there and the preflight fails again until the worktree is removed by hand. The pre-fix(run): skills preflight validates the main checkout, not the worktrees agents run in (#813 follow-up) #933 test that asserted ensureWorktrees was never called on this path was deleted rather than replaced with a lifecycle assertion. Both the fix and the deleted test follow directly from D15's "post-provisioning only" decision, so this is a plan consequence rather than agent error. Options: (a) merge as-is and route the orphan/rebase-on-reuse to node 09 (fix(run): abort-path paper cuts — "work is preserved in <worktree>" is false under SIGTERM, and abort's doc comment cites the wrong issue #935, which owns the cleanup registration block) as a PLAN §7 decision row; (b) hold the PR and have exec remove the just-provisioned worktrees on preflight failure (small, but it touches node 09's block). I did not change the code — this is your call under I-7.

    Verify commands still pass at a902809b (see the comment above).

  9. admarble commented on Sep 7, 2026

    @admarble
    ContributorAuthor

    Runner decision on OQ-17 (A+ pass, 2026-09-07): fixed in node 05 (this PR, commit d4f1a07) rather than deferred to node 09 — the abort site is the preflight call this PR relocated, and the fix is a self-contained block at that site (created worktrees removed + cleanups unregistered; reused worktrees kept and named in the remedy). Node 09's cleanup-registration block is untouched. Details in the PR #1001 body.

  10. admarble commented on Sep 7, 2026

    @admarble
    ContributorAuthor

    QA Verdict: AC_MET_BUT_NOT_A_PLUS

    AC coverage: 0/6 met

    Gaps:

    • The reused-worktree abort remedy tells users to re-run with --force to re-provision, but --force has no effect on worktree provisioning, so that recovery path fails identically
    • The abort message is not adapted to its own process.cwd() fallback branch and misnames the main checkout as a reusable worktree
    • The reused-worktree branch and the process.cwd() fallback branch of the abort message have no test coverage, which is why both message defects shipped
    • Worktree removal result is unchecked, allowing the abort message to overstate what happened
    • run-orchestrator.ts:1192 — the reused-worktree remedy advertises a flag that does not do what it says. The message tells the user to re-run with --force so it is re-provisioned from the new commit. sequant run --force is registered (bin/cli.ts:405-408) as "Force re-execution of completed issues (bypass pre-flight state guard) and take over per-issue locks"; mergedOptions.force is read only at run-orchestrator.ts:832 (state guard) and :985 (lock claim). ensureWorktrees / ensureWorktree take no force parameter, and the only re-provisioning path is freshness.isStale (>5 commits behind base) AND clean (worktree-manager.ts:637-672). A user who follows the --force branch gets the identical failure. This is the same defect class round 3 raised — a printed remedy that does not recover — surviving in the half of the message the A+ pass didn't fix. The git worktree remove <path> half of the sentence is correct and does recover.
    • run-orchestrator.ts:1190-1196 — the message is not adapted to its own [process.cwd()] fallback. When worktreeMap is empty, cwd is the main checkout, so removedWorktrees.includes(cwd) is false and the user is told "worktree <main checkout> is missing required skills … The pre-existing worktree was kept … remove it first (git worktree remove <main checkout>)". Spec OQ-2 approved the process.cwd() fallback behavior, but not this wording. Reachable two ways: isolation disabled (programmatic/MCP callers only — no CLI flag exists, chore(types): reuseWorktrees is a declared-but-unconsumed RunOptions field #810), or isolation on but ensureWorktrees returned an empty map because ensureWorktree returned null for every issue (worktree-manager.ts:952 skips nulls).

    Suggestions:

    • spawnSync("git", ["worktree", "remove", ...]) at :1181 ignores its result, so the message can claim was removed when removal failed. Low risk (--force on a freshly created, untouched worktree), but a status !== 0 check would keep the message honest.
    • On a multi-issue abort, all created worktrees are removed while the message says "The worktree created for this run was removed" (singular). Cosmetic.
  11. admarble commented on Sep 7, 2026

    @admarble
    ContributorAuthor

    QA Verdict: AC_MET_BUT_NOT_A_PLUS

    AC coverage: 0/3 met

    Gaps:

    Suggestions:

    • shutdown.unregisterCleanup(...) at :1187 is redundant — dispose() at :1220 clears all tasks anyway. Harmless and intent-revealing; keep or drop deliberately.
    • This abort returns the populated worktreeMap; every other early-abort return uses new Map(). I traced consumers — recordMetrics (:1309) is unreachable on this path and run-display.ts never reads worktree paths — so it's inert, but the inconsistency is worth a comment.
  12. added a commit that references this issue on Sep 7, 2026
  13. admarble commented on Sep 7, 2026

    @admarble
    ContributorAuthor

    QA Verdict: AC_MET_BUT_NOT_A_PLUS

    AC coverage: 0/6 met

    Gaps:

    • The failure path performs full worktree provisioning including npm ci before aborting, materially weakening the fail-fast property feat(run): pre-flight the skills install — missing .claude/skills/ should fail fast, not flail for 30 minutes as a spec retry #813 established
    • The failed-removal remedy branch and the unknown-driver fallback are untested
    • The failed-removal remedy suggests the exact command that just failed and does not offer git worktree prune
    • In a multi-issue run all created worktrees are removed but the abort message names only the failing one
    • run-orchestrator.ts:1199 — when git worktree remove --force fails, the remedy suggests the identical command that just failed. Round 5 correctly rejected the weaker no---force form, but the fix landed on an exact repeat. git worktree prune is the canonical recovery for a half-removed worktree and is not mentioned. Minor, and the branch is untested.
    • run-orchestrator.ts:1176-1207 — in a multi-issue run, all created worktrees are removed but the message names only the failing cwd. A user running sequant run 1 2 3 sees issue 3's worktree named while 1 and 2 also silently vanish.
    • shutdown.unregisterCleanup(...) at :1187 is unreachable-effect code: dispose() two blocks later clears every cleanup without running it. Harmless, but it reads as load-bearing.

    Suggestions:

    • The fail-fast follow-up named in the PR body is sound and cheap: git ls-files --error-unmatch .claude/skills before provisioning would not violate AC-4, since AC-4's gate counts runSkillsPreflight( call sites, not "any skills check."
  14. admarble commented on Sep 8, 2026

    @admarble
    ContributorAuthor

    QA Verdict: AC_MET_BUT_NOT_A_PLUS

    AC coverage: 0/6 met

    Gaps:

    • A non-cwd worktree whose forced removal failed is reported under 'Left in place:' — the label for intentionally-kept pre-existing worktrees — leaving the user an orphan with no cleanup instruction, which defeats the abort-recovery guarantee for that worktree
    • The failed-removal remedy branch has no test coverage in either its cwd or sibling form, which is why the sibling-site classification defect shipped
    • run-orchestrator.ts:1209-1224 — the otherKept bucket is computed as others.filter(p => !removedWorktrees.includes(p)), which never consults unremovedWorktrees. A non-cwd worktree that this run created and then failed to remove is reported under Left in place: <path> — the same label used for the user's intentionally-preserved pre-existing worktrees. The user is told nothing about it, and on re-run it is reused stale and fails identically. This is the same defect QA round 4 fixed for the cwd branch ("removal result is unchecked"), not carried across to the sibling list added in round 6.

    Suggestions:

    • Split otherKept into otherUnremoved (from unremovedWorktrees) and otherPreexisting, and give the former its own clause, e.g. Could not be removed (remove by hand, then git worktree prune): <paths>. ~3 lines at the same site.
  15. admarble commented on Sep 8, 2026

    @admarble
    ContributorAuthor

    QA Verdict: READY_FOR_MERGE

    AC coverage: 0/6 met

    Gaps:

  16. admarble commented on Sep 8, 2026

    @admarble
    ContributorAuthor

    Runner verification — node 05, final (PR #1001 at 517babe5, QA verdict READY_FOR_MERGE, round 8)

    Verify commands from issues/05-933-preflight-in-worktrees.md, re-run verbatim at the final commit:

    AC Result
    AC-1/AC-2/AC-3 npx vitest run src/lib/workflow/skills-preflight.test.ts -t "933" → Tests 8 passed
    AC-4 grep -c 'runSkillsPreflight(' run-orchestrator.ts → 1; the call sits after the cleanup-registration block (1123: Cleanup worktree for #${issueNum}, 1169: const preflight = await runSkillsPreflight({ ...prefl)
    integration skills-preflight.integration.test.ts → Tests 2 passed (2)
    mutation records PR #1001 markers: 2 classification":"valid";

    What the A+ pass changed beyond the original agent work (8 QA rounds, commits d4f1a07 → 517babe): a failing post-provisioning pre-flight now removes the worktrees this run created (checking the removal result), keeps pre-existing ones and names the by-hand step, never offers run --force, uses "checkout" wording when isolation is off, and in a multi-issue run reports every worktree as removed / could-not-be-removed / pre-existing; the ensureWorktrees mock reports reused worktrees so those branches are tested; AC-2's negative assertion is canonical-path (mutation-verified) and AC-3's zero-call assertion counts every invocation; driverResolvesSkills's unknown-driver fallback is tested. OQ-17 resolved in node 05; the fail-fast cost of post-provisioning placement is PLAN §9 OQ-22 (a follow-up, coordinated with #935).

    Merge decision is yours — I will not merge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    graph-2026-09planned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions