[runtime] Align defaults and schema validators to v1.1.0#20
Merged
Conversation
Why: keep fabricated x402 payloads and runtime-local schema validation aligned with the v1.1.0 protocol surface. Contract impact: none
GsCommand
added a commit
that referenced
this pull request
Mar 20, 2026
Merge pull request #20 from commandlayer/codex/align-runtime-defaults…
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
x402metadata and resolving receipt schema URLs forv1.0.0, while the route surface has already moved tov1.1.0, so runtime-local defaults and validators must be updated to match the protocol surface.Description
receiptSchemaUrlForVerbpoints at${SCHEMA_HOST}/schemas/v1.1.0/...instead ofv1.0.0and adjusted the shared schema preload list to load_sharedfiles fromv1.1.0(file:server.mjs).x402values in the verb handler (success and error paths) to useversion: "1.1.0"andentry: "x402://<verb>agent.eth/<verb>/v1.1.0"(file:server.mjs).v1.1.0route and asserts the emitted fallbackx402is1.1.0-aligned (file:runtime/tests/runtime-signing.test.mjs)./verifydesign beyond pointing schema validation at thev1.1.0schema URLs.Testing
npm run checkwhich completed successfully with no syntax errors.npm run test:unitwhich executed the runtime unit tests including the added test and all tests passed.x402defaults and that schema validation fetches targetv1.1.0schema paths whenschema=1is exercised.Codex Task