Repository navigation
feat(c95): CG-C95/1 reference at-most-once gate draft - #218
Merged
Merged
Conversation
Adds neutral C9.5-inspired reference gate with canonical operation identity, authenticated principal + approval provenance, atomic insertIfAbsent semantics, executed/not_executed/unknown outcomes, reconcile-before-retry, no second effect for duplicate retry/resubmission, and no silent terminal overwrite. In-memory reference is not durable; no full C9.5/PASS=SAFE/production/CG-ZK claim.
This was referenced Dec 3, 2026
EslaM-X
marked this pull request as ready for review
December 3, 2026 16:51
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
Adds a neutral reference draft,
CG-C95/1, for OWASP C9.5-style at-most-once execution semantics. It is a fixture-shaped reference gate, not a protocol answer and not a claim to close C9.5.Files:
packages/cg-c95/index.mjstest/integrations/cg-c95-1.test.mjsWhat the draft models
principalRequestId, tool/target/action, intent digest, policy hash, receipt commitment, chain/network/protocol/circuit version.insertIfAbsent; retry, fresh token, or fresh approval cannot mint a second operation.executed | not_executed | unknown.unknownstaysunknown; it does not silently becomenot_executed.resignPermitted=false.RECORD_CONFLICT, no silent overwrite.NEW_PRINCIPAL_REQUEST_REQUIRED/ agent-inferred retry does not count as a new request by the principal.Scope and limits
UNIQUE/ transaction). The in-memory store is not that.not_executedrequires authoritative evidence; a timeout is not proof of no effect.Verification
node --test test/integrations/cg-c95-1.test.mjs=> 6/6 pass at this head.Boundaries
VERIFIED != SAFE,PASS != SAFE,UNKNOWN != VERIFIED,UNKNOWN != NOT_EXECUTED,bindingVerdict=VERIFIEDmeans binding only.proofBackend=NOT_BUILT,zkClaim=NONE,proofVerdict=NOT_PROVEN,L4=RESEARCH / NOT CLAIMABLE.No customer, partnership, funding, adoption, merge, or production claim. No
PASS=SAFE.