docs: add canonical CommandLayer stack contract#29
Merged
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
runtime-core,runtime,agent-sdk,verifyagent,mcp-server,commandlayer-org, andgovernancecan interoperate reliably without changing implementation internals.Description
contracts/commandlayer-stack-contract.mdimplementing 14 sections: authority & scope, repository responsibility map, receipt requirements, required receipt fields, canonicalization (json.sorted_keys.v1), hash (SHA-256), signature (Ed25519), signature proof shape, verifier result shape, required verification checks, standard error codes, compatibility expectations, rules for changing the contract, and non-goals.json.sorted_keys.v1, hash algorithm toSHA-256, signature algorithm toEd25519, and require the listed standardized error codes (ERR_INVALID_SIGNATURE,ERR_HASH_MISMATCH,ERR_SCHEMA_INVALID,ERR_ENS_KEY_NOT_FOUND,ERR_CANONICALIZATION_MISMATCH,ERR_UNSUPPORTED_ALGORITHM).Testing
contracts/commandlayer-stack-contract.mdwith commit SHA3be26716093620e3a88e22465ec71d73758b1a0f, and all Git operations completed successfully.git status --short,git add/git commit,git rev-parse HEAD, and a keyword scan viargto confirm presence ofcanonicalizationId,SHA-256,Ed25519, and the standardized error codes; all commands succeeded.Codex Task