Settle candidates only through verified atomic binding-plus-receipt commits - #242
Merged
Conversation
…ommits An immutable candidate becomes accepted state only when verification succeeds and the exact objective binding plus its receipt commit atomically. Receipts move to schema 4 with explicit prior/requested/result objective lineage so the exact accepted delta is provable from the receipt alone. A second domain-neutral revisioned-register fixture executes reusable settlement laws — positive admission, verification rejection, freshness drift, substitution, commit failure, concurrency, replay, restart reconstruction, and fail-closed reading — and white-box counterexamples prove those laws reject dishonest store and reader implementations.
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
Boundary conformance
Boundary: the crossing where an immutable staged candidate becomes durable accepted state.
Control law: acceptance is only the exact committed objective binding plus one matching receipt with provable prior/requested/result lineage; every failure before the final atomic commit leaves the prior accepted binding authoritative, and accepted-state readers fail closed on damaged evidence.
Tests: positive, rejection, stale-state (five identities), substitution/bypass, commit-failure, replay, concurrency, and restart/reconstruction paths, each inspecting accepted binding, candidate identity, committed receipts, effect counts, and recovery state.
Release note
Adds
release-notes/2026-08-23-trusted-settlement.md.Verification
python3 .github/scripts/run_go_tests.py— 642/642 across ten shardsGOWORK=off go test [-race] -count=1 ./kernel/... ./conformance/behaviorplus repeated-raceruns of the concurrent-settlement lawGOWORK=off go test -count=1 ./delivery/... ./internal/softwaredelivery/engine/... ./flow/standard/... ./controlprogram/... ./internal/softwaredelivery/effects/... ./internal/softwaredelivery/surfaces/...go build ./...,go vet ./...fromboatstack/python3 -m unittest discover -s .github/tests -p 'test_*.py'— 69 testspython3 .github/scripts/release_notes.py validate|preflight— PASSgit diff --check— clean