Skip to content

fix(loop): explicit delivery-verified satisfies the validator-receipt floor - #465

Merged
huichen merged 1 commit into
mainfrom
claude/loop-receipt-floor
Sep 2, 2026
Merged

huichen merged 1 commit into
mainfrom
claude/loop-receipt-floor

Conversation

@huichen

@huichen huichen commented Sep 2, 2026

Copy link
Copy Markdown
Collaborator

Terminal-closure gap found while closing out two pre-receipt-era goals: is_terminal requires 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 pending delivered outcome 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.

… 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
huichen enabled auto-merge (squash) September 2, 2026 13:20
@huichen
huichen merged commit 9c45ac4 into main Sep 2, 2026
23 of 24 checks passed
@huichen
huichen deleted the claude/loop-receipt-floor branch September 2, 2026 13:33
huichen added a commit that referenced this pull request Sep 2, 2026
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant