Conversation
Why: preserve existing runtime receipt/signing behavior while exposing a single POST /execute entrypoint. Contract impact: none
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
POST /executeso clients can call the runtime without using versioned per-verb paths while preserving the existing tracing/signing/receipt semantics./verifybehavior unchanged so the runtime remains the single source of truth for verb implementations and receipts.Description
POST /executeroute toserver.mjsthat resolves the target verb fromexecution.verbfirst and falls back to top-levelverb, returning JSON400when neither is present.handleVerb(verb, req, res)so trace, signing, and receipt generation behavior remain identical and unknown/disabled verbs are handled byhandleVerb(resulting in JSON404).runtime/tests/runtime-signing.test.mjsthat verifyPOST /executewithexecution.verb=clean, fallback to top-levelverb=summarize, error cases (missing verb ->400, unknown verb ->404), and that legacy per-verb route (/clean/v1.1.0) still works.server.mjsandruntime/tests/runtime-signing.test.mjs.Testing
node --test runtime/tests/runtime-signing.test.mjsand all tests in that file passed.npm test(which runs unit tests and the smoke test) and the full test suite passed.https://runtime.commandlayer.org/executeand that existing per-verb routes are unaffected.Codex Task