Repository navigation
fix(terminal): admit unresolved proof receipts by command role - #1645
Merged
EffortlessSteven merged 4 commits intoNov 5, 2026
Merged
Conversation
Contributor
|
Warning Review limit reachedEnable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing. Next included review available in 49 minutes. View limit details
|
EffortlessSteven
force-pushed
the
fix/1420-admit-skipped-unresolved-terminal
branch
from
November 5, 2026 00:02
6083b7f to
b7ac50e
Compare
EffortlessSteven
force-pushed
the
fix/1420-admit-skipped-unresolved-terminal
branch
from
November 5, 2026 00:33
0bab6ac to
dda2ed0
Compare
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.
Defect
#1420 (sweep-verified):
src/work_queue/terminal.rs:500-515(terminal_proof_receipt_status) whitelists terminal results and rejectsskipped_unresolvedas unsupported, whilesrc/main.rs:474-476legitimately emits it whenever a worker proof lease is refused (completed nightly preflight + skipped HEAD). Gate (src/gate.rs), planner (src/proof/planner.rs:720), broker and decision core (src/decision_core.rs:88) all accept the result, so a routine lease-denied run aborts terminal receipt publication. The issue's independent review of the companion branch reproduced two valid producer shapes rejected here: completed nightly-preflight plus skipped HEAD, and passed HEAD plus skipped base-plus-tests.Fix
Admit
skipped_unresolvedin the terminal projection only for the two command-role compositions that legitimately produce it (src/work_queue/terminal.rs):[nightly-preflight (passed|failed), head (skipped)]in canonical order;[head (passed), base-plus-tests (skipped)]in canonical order.The unresolved-side command must carry exact skipped execution metadata (status
skipped, no exit code, no timeout flag, zerotimeout_sec/duration_ms— matchingskipped_proof_command_receipt_for_id); the completed side must be a genuinely completed command (passed/failed, not timed out; the red/green HEAD must bepassedso a real head failure or timeout is never masked as unresolved). Every other composition, and any genuinely unknown result string, is still rejected fail-closed. Result, reason, request and receipt identities are retained unchanged.Validation (run in the fix worktree)
cargo fmt --all --check— clean.cargo clippy --locked --workspace --all-targets— exit 0; only pre-existing warnings in files untouched by this diff (src/proof/red_green.rs:385unused import — explicitly tolerated;tests/pr_context_hydration.rs:40unusedmut;tests/common/executable_fixture.rs:26never-used method).cargo test --locked --bin ub-review terminal— 64 passed, 0 failed (includes the two new regression tests).cargo test --locked --bin ub-review skipped_unresolved— 4 passed, 0 failed (new terminal tests plus existingdecision_core/gateconsumer tests).cargo test --locked --bin ub-review worker_proof— 13 passed, 0 failed (worker producer compatibility, includingunresolved_worker_request_never_spawns_the_proof_command).skipped_unresolved_receipts_publish_for_supported_command_rolesfails with the exact defect messageproof receipt proof-receipt-worker has unsupported terminal result skipped_unresolved; with the fix it passes.Known gaps
Fixes #1420