feat(horizon): evidence carrying termination at final boundary - #233
Draft
ruvnet wants to merge 12 commits into
Draft
feat(horizon): evidence carrying termination at final boundary#233ruvnet wants to merge 12 commits into
ruvnet wants to merge 12 commits into
Conversation
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.
Closes #232.
Summary
Adds an opt in evidence carrying completion gate to
@metaharness/horizon. A model may proposefinal, but whenDriverConfig.completionis enabled the driver only accepts completion after every required claim resolves to authorized successful trace evidence and a trusted replay seam reconstructs the claimed value.Design
CompletionCertificate,CompletionClaim, and stableCompletionEvidenceRefreplayCompletiontrust seamWhy stable event IDs
Transcript compaction can reorder or remove array positions. Positional evidence references could silently retarget after compaction. Stable event IDs ensure removed evidence fails closed instead of binding to a different event.
Tests
Adds pure verifier tests for successful replay, transcript reordering, missing claims, missing replay, denied evidence, digest mismatch, duplicate event IDs, and replay mismatch. Adds 128 deterministic unsupported completion fault injections. Adds a WASM gated driver integration test that first attempts unsupported completion, then collects evidence, then completes successfully with a certificate.
Security
Completion evidence is explicitly not authority. The certificate cannot approve tools, expand command policy, grant capabilities, or mutate the evaluator. Existing
CommandGuardand tool policy receipts remain authoritative.Evidence
Motivated by arXiv 2608.23623, submitted 2026 08 22. The reported frozen study shows 0 of 66 premature unsupported terminations for ECT versus 40 of 66 for its controller, with supported completion 97 of 132 versus 92 of 132. These originating team results are not claimed as reproduced here.
Scope
Six files, additive API, no dependency change, no persistent migration. ADR 272 documents trust boundary and rollback.
Acceptance before merge