Skip to content

fix(core): core reconciler cannot touch agent-task rows; drop proof's fleet sweep - #18872

Merged
chubes4 merged 1 commit into
mainfrom
fix/issue-18867-homeboy
Nov 23, 2026
Merged

chubes4 merged 1 commit into
mainfrom
fix/issue-18867-homeboy

Conversation

@chubes4

@chubes4 chubes4 commented Nov 23, 2026

Copy link
Copy Markdown
Member

Closes #18867.

  • Structural exclusion: core reconcile, both the focused and fleet paths, skips kind == "agent-task" rows on every branch: handoff expiry, runner terminal, and no runner answer. Previously only the no-runner-answer branch excluded them, via a metadata-key check; the other two were safe only by luck. A new test covers each branch for both paths.
  • runs proof: it no longer runs a 1000-row fleet reconcile as a side effect of a read.
  • Deliberately kept (deviates from the issue): single-run reconcile on runs show, watch, dossier and refresh_mirrored_runs_until. watch relies on it to surface a dead owner instead of hanging until the daemon tick or the timeout, and the daemon's mirrored refresh (daemon/mod.rs:2419) goes through refresh_mirrored_runs_until. Read commands still write runner evidence through refresh_run, so 'reads never write' was not reachable in this slice anyway. After the structural exclusion, these calls can no longer touch an agent-task row.

The Cook's candidate removed all of those calls; I narrowed it in review. Size is about net-neutral; this is a safety change, not a deletion.

Local: homeboy-core observation 406/406, homeboy-core daemon pass, homeboy-cli commands::runs 259/259.

(Claude via Roadie.)

… fleet sweep

Core reconcile used to skip agent-task rows through a metadata-key check on
the no-runner-answer branch only. The handoff-expiry and runner-terminal paths
did not exclude them, so agent-task rows were safe only because they happen
not to carry `lab` or `runner_execution_record` keys. Both the focused and the
fleet paths now skip rows of kind `agent-task` on every branch, enforcing
#18828's single writer, with a test for each branch.

`runs proof` no longer runs a 1000-row fleet reconcile as a side effect of a
read. Focused single-run reconcile on `runs show`, `watch`, `dossier` and the
mirrored refresh is kept: it is what lets `watch` surface a dead owner instead
of hanging, and it can no longer touch an agent-task row.

Closes #18867

AI assistance: Claude via Roadie.
@chubes4
chubes4 merged commit bc37f76 into main Nov 23, 2026
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(core): core reconciler cannot touch agent-task rows; reads never reconcile

1 participant