runtime: emit commons receipts with canonical execute entry#48
Merged
runtime: emit commons receipts with canonical execute entry#48
Conversation
Why: commons receipts must reflect the real runtime execution surface instead of payment-gated x402 semantics. Contract impact: commons receipt fields now use entry/verb/version/class and remove nested x402 blocks; commercial x402 semantics remain out of scope for this repo.
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
x402semantics so they unambiguously represent non-commercial execution.x402://...semantics available for payment-aware flows outside this runtime repo while moving commons to a canonical, stable entrypoint.Description
entry,verb,version, andclass: "commons"instead of a nestedx402block and usehttps://runtime.commandlayer.org/executeas the canonical commons entry.executioninput, addednormalizeExecutionEnvelope, and updatedmakeReceipt/wrapReceiptResponseto emit the new top-level fields (primary edits inserver.mjs).runtime/tests/runtime-signing.test.mjs,tests/smoke.mjs,scripts/smoke.mjs,tests/fixtures/*, and docs underREADME.md,docs/OPERATIONS.md,docs/CONFIGURATION.md,SECURITY.md).req.body.x402.*where used for trace/actor context, and documented thatx402remains for commercial/payment-aware flows outside this repo.Testing
npm test(unit + smoke run) and all tests passed (19/19tests passed, no failures).node tests/fixtures/make-golden.mjsand rannode tests/golden.mjs, which succeeded (golden ok).npm testand the smoke execution completed successfully (smoke ok).Codex Task