fix(routing): harden authoritative route state#39
Open
andrei-hasna wants to merge 1 commit into
Open
Conversation
Contributor
Author
|
CI classification after worker watch:
This matches local reproduction and follow-up todos task 5d1fe7b8. The routing/source-discovery tests and targeted CLI route-state/source-discovery tests passed locally before push. |
Contributor
Author
|
Worker review update for task bbc01fc3-a9a2-48d3-ba1e-a24e3efcada9:
Merge is blocked by policy right now. Live GitHub state is still mergeable=MERGEABLE but mergeStateStatus=UNSTABLE because CI test is FAILURE while dashboard and Cursor Bugbot are SUCCESS. The failure matches the known event-hooks read-only HOME cache blocker, and todos task 5d1fe7b8 is still pending. Per the task acceptance criteria, this PR should not be force-merged until that blocker is resolved or an explicit quarantine policy is recorded. |
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.
Follow-up for merged PR #37 / todos task 958cba66-7a42-47ab-b4c9-e00ede97bb3e.
What changed:
Validation:
Known unrelated blocker:
No Co-Authored-By trailer.
Note
Medium Risk
Changes eligibility and dedupe classification for routed tasks and defaults admission checks to machine-local paths; behavior shifts for tasks with stale workflow_state-only metadata or bad working dirs.
Overview
Tightens task route state so drains and CLI “ready” surfaces agree on admission and dedupe.
Workflow pointers:
deduped_active/terminal_requeue_needednow requirecurrent_run_idorcurrent_workflow_invocation_id—metadata with onlyworkflow_state(e.g."working") no longer counts as an active/terminal pointer, so those tasks stayeligibleinstead of being deduped incorrectly.Project root checks: Drain-facing paths default to filesystem verification of the resolved project root:
discoverTaskRouteSourcesgainsverifyProjectRoot(on by default, opt out withfalse), andtodos ready --jsonattachesroute_statefromgetTaskRouteState(..., { verifyProjectRoot: true }). Missing directories surfacemissing_project_root/missing_metadataand ineligibility when verified.Regression tests cover workflow-state-only pointers and missing roots in source discovery.
Reviewed by Cursor Bugbot for commit aca2156. Bugbot is set up for automated code reviews on this repo. Configure here.