Files
fusion/packages
Fusion Agent 286dd0a7ae fix(workspace): block completion only on main-checkout commits
Uncommitted edits in a sub-repo main checkout no longer refuse `fn_task_done`.
They emit `worktree:workspace-main-checkout-edit` with `outcome:"warned"`,
`reason:"uncommitted-only"`, and their evidence enum instead.

Two measured reasons. The workspace land path is the same `landOneRepo` /
`landSquash` mechanic as single-repo, with `projectRootDir` set to the sub-repo
main checkout, so a dirty tree there is already stashed (untracked included) ->
fast-forwarded -> restored under `merger.allowDirtyLocalCheckoutSync`; refusing
completion for a state the very next stage is built to absorb stops the board
for nothing. And an in-scope status entry carried no timing evidence at all, so
an operator editing the same feature was indistinguishable from an agent that
skipped `fn_acquire_repo_worktree` -- while the refusal named an operator-only
remedy in a message addressed to the agent, so the card could only loop.

The dangerous cases keep their refusals: a task-attributed commit still returns
`main_checkout_edit` (it would reach the shared branch unreviewed), and work
that exists only in a main checkout still fails the acquired-worktree
`no_commits` invariant that actually proves delivery.
2026-08-27 21:35:29 +00:00
..
2026-08-26 20:06:31 -07:00
2026-08-26 20:06:31 -07:00
2026-08-26 20:06:31 -07:00
2026-08-26 20:06:31 -07:00
2026-08-26 20:06:31 -07:00
2026-08-26 20:06:31 -07:00
2026-08-26 20:06:31 -07:00
2026-08-26 20:06:31 -07:00
2026-08-26 20:06:31 -07:00