feat: add completion-verification runtime gate (spec 079)#83
Open
robertotru wants to merge 1 commit into
Open
Conversation
|
Codecov Report❌ Patch coverage is 📢 Thoughts on this report? Let us know! |
Introduce a runtime-owned completion-verification gate that blocks task, stage, and run closeout until a claim-matched proof has been executed freshly in the current working state. - Add typed completion-verification models in src/domain/completion_verification.rs (ClaimKind, ProofCommand, CompletionVerificationState, VerificationFinding) - Implement claim-source resolution, proof-command registry, and confirmation-policy helpers - Add normalized workspace content fingerprint with claim-relevant documentation inclusion rules - Extend persisted task, session, and trace records with completion-verification projections - Add closeout gating for task/stage/run transitions in src/orchestrator/session_runtime_finalization.rs - Surface blocked, stale, failed, and missing-proof reasons through status, inspect, and orchestrate projections - Four initial claim kinds: tests_pass, bug_fixed, build_clean, migration_valid — each with a deterministic proof-selection path - Integrate with existing task lifecycle without a new CLI command; keep Canon as the governed owner of packet semantics and readiness Closes spec 079.
d4d2117 to
5d5f940
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.


Problem: Boundline can currently mark a task, stage, or run as complete even when the claimed outcome has no fresh proof from the current working state. This undermines delivery integrity.
Solution: A runtime-owned verification gate that:
Key Design Decisions
tests_pass,bug_fixed,build_clean,migration_valid— deterministic proof per claimstatus,inspect, andorchestratesurface the new projections additivelyUser Stories
status/inspectshowcompletion_verification_state, findings, blocked claimsclaim → proof → evidence_refwithout taking over Canon packet semantics