Repository navigation
fix(run-guard): surface runaway failures (CHE-11282) [squash] - #2328
Merged
Merged
Conversation
Author
|
Merge-Eligibility: REFUSED
|
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.
Status
Draft for review. CI passed on the current head.
Conditions
The full local Go run failed. Seven service failures and 43 handler failures reproduce on the base revision. Five other handler tests pass when run separately on the current head. The full handler suite timed out.
Change
Classify standalone provider cybersecurity refusals as failed runs. Show guard modes in budget output. Record overdue run activity and show it in the decision brief. Record the signal atomically when a deferred retry is promoted after its issue becomes overdue.
Blast Radius
Task completion, run admission, deferred promotion, budget output, and the decision brief can be affected. Database-backed tests exercise the changed paths, including concurrent promotion and rollback. Proof level: 3.
Evidence
The deferred retry regression failed before the fix. The focused database-backed checks passed:
The focused handler tests passed from
serverwithDATABASE_URLset to a freshly migrated isolated PostgreSQL database:Other focused checks passed for refusal classification, guard modes, CLI output and daily overdue signals. The web failure-label test passed 29 cases; mobile failure-label and badge tests passed 13 cases. The full taskfailure package passed. The full service suite failed seven tests; all seven also failed on base
a91aa3dce4ewith the same isolated database setup. They cover built-in skill contracts, chat wakeups, workspace capacity, the recovery writer inventory and timeline parity. The handler suite reported multiple failures and timed out at 25 minutes inTestDMProgress_AncestorWalkIsLinearInDepth. Of 48 handler failures, 43 reproduce on base. The other five pass in a fresh focused run on this head. The four handler CI shards passed on this head.Graph analysis could not uniquely match the shared classifier or
PromoteDueDeferredTasksForRuntime; callers were checked by text search instead.The remaining five handler tests passed on a fresh isolated database:
Cost delta
Overdue admission adds database reads and at most one activity per issue per day. Deferred promotion adds a transaction per claim poll. Monitor claim latency and failures after release.
Agent-facing: yes
Adoption item: Check run_guard_mode and stop_loss_mode in issue budget output before interpreting the displayed limits.
Adoption mode: default
Adoption proof: server/cmd/multica/cmd_issue_budget_test.go
Adoption signal: Budget output contains both guard modes.
Adoption base: Budget output omitted both guard modes.
Adoption target: Budget output reports both configured modes.
Changelog: Surface disabled run guards, overdue runs, and provider policy refusals.
Closes CHE-11282