fix(kanban): let card lifecycle govern PR follow-ups - #70240
Draft
rmacbot wants to merge 1 commit into
Draft
Conversation
Collaborator
Related to #32063, #44899, #65581, #65996, #67826, and #68198. This takes a distinct policy path: it removes the PR-comment guard entirely and relies on card lifecycle plus existing claim/PID/heartbeat checks. Maintainer decision needed on whether PR metadata should ever block dispatch. |
Contributor
|
Thanks for tracing the follow-up problem. The current-head premise is real: Problems
Suggested changes
This is an automated hermes-sweeper review. |
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.
Summary
Why
Creating a pull request is a delivery milestone, not a terminal Kanban lifecycle transition. A non-terminal card may need to continue after review feedback, and the existing
active_prguard could leave an otherwise ready card permanently unspawnable based only on comment text. Review waits should be represented by the card's lifecycle state; an explicit unblock then re-enters the existing dependency and claim checks without adding GitHub network access to the dispatch path.This is an architectural alternative to open PRs #32063, #44899, #65581, #65996, #67826, and #68198. Those candidates tune, expose, or bypass the PR-comment hard guard; this change removes that guard because PR presence alone is not sufficient lifecycle authority. It does not alter first-class review handling or structured owner actions.
Verification
scripts/run_tests.sh tests/hermes_cli/test_kanban_db.py -k 'windows or respawn_guard or pr_delivery_metadata or stale_claim_with_live_pid_extends' -v --tb=short— 21 passedgit diff --check— passedResidual risk
This intentionally allows a ready card with PR metadata to dispatch. Operators and workers must use the existing blocked/review lifecycle state while human review is pending; live-worker duplication remains prevented by existing atomic claim and liveness protections.