Align CLAS trust-verification receipts to canonical metadata proof envelope#34
Merged
GsCommand merged 1 commit intoMay 18, 2026
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.
Motivation
@commandlayer/runtime-coreand@commandlayer/agent-sdkso emitted receipts are interoperable with runtime/verifyagent verification.proof,proof.alg,proof.signature,kid, lowercaseed25519, etc.) with a single canonical proof envelope undermetadata.proofto reduce divergence and ambiguity.runtime-coreowns canonicalization/hashing/signing primitives whileagent-sdk/runtimeemit receipts andverifyagentperforms verification.Description
schemas/trust-verification/_shared/proof.schema.jsonto the canonical envelope requiringmetadata.proof.canonicalization = "json.sorted_keys.v1",metadata.proof.hash = { alg: "SHA-256", value: <64-hex> }, andmetadata.proof.signature = { alg: "Ed25519", value, kid }.*/**.receipt.schema.json) to require ametadataobject containingproof(via$refto the shared proof schema) instead of a top-levelprooffield.metadata.proofshape and normalized algorithm casing/fields to match runtime/agent-sdk output semantics, and preserved invalid/tampered fixtures as intended.schemas/trust-verification/README.mdanddocs/mcp-compatibility.md) and addedAUDIT-clas-runtime-stack-alignment.mddescribing the audit, stale fields replaced, files changed, and release notes; also added apackage-lock.jsonfromnpm installrun.Testing
npm installand it completed successfully.npm run buildwhich failed because nobuildscript is defined inpackage.json(repository script gap, not schema validation failure).npm testwhich executesnode scripts/validate-trust-verification-examples.mjs, and all trust-verification fixtures validated as expected after the changes.npm run validatewhich also passed and confirmed example/ schema validation matches expected outcomes.Codex Task