Repository navigation
docs: diagnose why a settled /task leaves commits on task/<slug> - #1178
Merged
Merged
Conversation
…tree branch Diagnosis: the merge-home is correct and targets the driver's own worktree, but runs only on a verified verdict. A driver 'settled' (its quiet rule) is not the engine's 'verified'; unverified/failed nodes keep the deliverable on task/<slug> by design. Traces the branch-creation, commit, and merge-home paths with file:line, proves the pattern across c193-c221, and argues the smallest driver-side recovery. Co-Authored-By: Claude Opus 4.8 <[email protected]>
What
A diagnosis doc —
docs/design/task-branch-landing-gap.md. No code change; none is proposed for the engine and none is needed for the finding.The finding
The cell driver reads its worktree branch and sometimes reports zero commits while the deliverable sits on the engine's
task/<slug>branch. This is not orphaned accepted work:mergeTaskBranch(root, branch)(internal/session/groundcarry.go:352) merges into the driver's own worktree, and runs only on a verified audit verdict or an explicit accept — the gate attask_run.go:5689("only verified work is ever merged onto the person's branch").donenode across c193–c221 (19/19) has driver-branch commits.keptWork(task_run.go:6119) commits the deliverable ontotask/<slug>and deliberately does not merge. Everyfailed/unverifiednode (6/6) hascommits=[]with work ontask/<slug>.So the gap is: the driver's "settled" (its 180s quiet rule) is not the engine's "verified". The zero-commit runs (c185/c189/c203/c210
failed, c215unverified— its audit timed out) were never checker-accepted.Smallest fix (argued in the doc, not applied here)
Driver-side, ~10 lines in
task-run.sh: carry the node'sbranchinto the task rows; whencommitsis empty buttask/<slug>has commits since HEAD0,git merge --ff-onlyit into the harvest worktree, or fail loudly naming the branch. Respects the verified-only merge law; costs the engine nothing.Scope
Diagnosis-only, docs-only, no changelog. Separate from #1174 (landing-card stall, already merged).
🤖 Generated with Claude Code