Repository navigation
fix(core): core reconciler cannot touch agent-task rows; drop proof's fleet sweep - #18872
Merged
Merged
Conversation
… 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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #18867.
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.runs show,watch,dossierandrefresh_mirrored_runs_until.watchrelies 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 throughrefresh_mirrored_runs_until. Read commands still write runner evidence throughrefresh_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 observation406/406,homeboy-core daemonpass,homeboy-cli commands::runs259/259.(Claude via Roadie.)