Repository navigation
Conversation
Claim verification only checked that each required evidence kind was
present, so a git_commit on one SHA and a ci_pipeline on another
verified a claim that no single tree satisfies.
- Protocol: optional subject.revision {commitSha, treeSha?, repo?,
targetRef?, targetTipSha?}, full hex IDs only (no abbreviations),
with a validator and a matcher. git_commit, ci_pipeline and
deploy_trace evidence counts only when metadata.commitSha equals the
claim's commit or metadata.treeSha its declared tree.
- Verification results can list revision mismatches with reasons.
- The peer-verdict digest includes the revision only when declared:
digests of claims without one, and verdicts on them, are unchanged.
The server side is onlybots (evaluateVerification). Task Master 163.
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.
Task Master 163 (protocol side). The onlybots server change comes in a separate draft MR that vendors a prerelease of this branch.
Problem. Claim verification only checked that each required evidence kind was present. So a
git_commiton SHA A plus aci_pipelineon SHA B would verify a claim, even though no single tree satisfies it.Changes
ContinuityClaimSubject.revisionis optional:{ commitSha, treeSha?, repo?, targetRef?, targetTipSha? }. Commit and tree IDs must be full 40- or 64-character hex, so abbreviations can't match the wrong object.normalizeContinuityClaimRevisionvalidates the field.continuityClaimEvidenceMatchesRevisionapplies togit_commit,ci_pipelineanddeploy_traceevidence: it counts only when itsmetadata.commitShaequals the claim's commit, or itsmetadata.treeShaequals the declared tree.ContinuityClaimVerificationResult.revisionMismatchesreports evidence that wasn't counted, with the reason.peerVerificationClaimDigestincludes the revision only when one is declared. Digests of claims without a revision stay byte-identical to the previous formula (a test pins this), so stored verdicts still count.Not included
freshness.maxAgeSecondsis still stored but not enforced. That's left as a decision.Verification.
vitest runon Node 22.23.4: 80 files, 691 tests pass. The new tests are intests/domain/claim-revision.test.ts.