Skip to content

docs: diagnose why a settled /task leaves commits on task/<slug> - #1178

Merged
santoshkumarradha merged 1 commit into
santos/devfrom
task/c223-landing-gap
Sep 18, 2026
Merged

santoshkumarradha merged 1 commit into
santos/devfrom
task/c223-landing-gap

Conversation

@santoshkumarradha

Copy link
Copy Markdown
Member

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 at task_run.go:5689 ("only verified work is ever merged onto the person's branch").
  • When a verdict verifies, the commits land on the branch the driver reads — every done node across c193–c221 (19/19) has driver-branch commits.
  • When a node ends unverified or failed, keptWork (task_run.go:6119) commits the deliverable onto task/<slug> and deliberately does not merge. Every failed/unverified node (6/6) has commits=[] with work on task/<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, c215 unverified — 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's branch into the task rows; when commits is empty but task/<slug> has commits since HEAD0, git merge --ff-only it 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

…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]>
@santoshkumarradha santoshkumarradha added the no-changelog This pull request is exempt from the docs/changes entry label Sep 18, 2026
@santoshkumarradha
santoshkumarradha merged commit 397a145 into santos/dev Sep 18, 2026
1 check passed
@santoshkumarradha
santoshkumarradha deleted the task/c223-landing-gap branch September 18, 2026 06:52
santoshkumarradha added a commit that referenced this pull request Sep 18, 2026