Repository navigation
fix(loop): explicit delivery-verified satisfies the validator-receipt floor - #465
Merged
Merged
Conversation
… floor A done advancement todo with a --verify gate blocked terminal closure until its run history carried a passed validation receipt. That froze goals whose validator-todos completed before the receipt mechanism existed (or whose receipts predate the validator): is_terminal could never become true, no matter what. Two paths now satisfy the floor: a passed receipt in history (unchanged), or an explicit orchestrator 'delivery record --outcome verified' — the same judgement the delivery-closure loop already records; is_terminal now honors it. A pending 'delivered' outcome does not satisfy the floor. Found while closing out pre-receipt-era goals: goal_5b08 (one stuck todo) and goal_6a23 (six stuck todos) both had validator receipts missing purely because of mechanism timing. Tests: receipt blocks terminal / passed receipt satisfies / explicit delivery-verified satisfies / pending delivered does not.
huichen
enabled auto-merge (squash)
September 2, 2026 13:20
huichen
added a commit
that referenced
this pull request
Sep 2, 2026
…(future-skills #34) (#466) Co-authored-by: chenhui <[email protected]>
huichen
added a commit
that referenced
this pull request
Sep 2, 2026
…able-boolean on 1.96 (#470) #465 nested a !delivery_state(...).is_some_and(...) inside the unvalidated_deliveries filter; clippy 1.96 (the local Homebrew toolchain) flags it as a simplifiable boolean, which broke 'make lint-rust' (exit 101) and thus the goal close-out verify gate. Extract the check into a named helper (is_delivery_verified) — same semantics, readable, both toolchains clean. Found because goal_95c5's close-out validator ('make lint-rust && make test') kept failing on this exact lint. Co-authored-by: chenhui <[email protected]>
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.
Terminal-closure gap found while closing out two pre-receipt-era goals:
is_terminalrequires every done validator-todo to have a passed receipt in run history — but goals whose validator-todos completed before the receipt mechanism existed (or whose run records predate the validator) could never reach terminal, no matter what.Two paths now satisfy the floor: a passed receipt (unchanged) or an explicit
delivery record --outcome verified— the orchestrator judgement the delivery-closure loop already records. A pendingdeliveredoutcome does not satisfy it.E2E context: goal_5b08 (1 stuck todo) and goal_6a23 (6 stuck todos) both had missing receipts purely from mechanism timing; the validators re-executed green at close-out.
Tests: 4 new cases in
terminal_validator_receipt.rs(blocks / receipt satisfies / verified satisfies / delivered does not). Scoped: cargo test -p future-loop 65 suites green, clippy --all-targets -D warnings, fmt.