Skip to content

Align runtime to CommandLayer Commons v1.1.0 and remove Commons x402 drift#51

Merged
GsCommand merged 1 commit intomainfrom
codex/align-repository-with-commandlayer-v1.1.0
Mar 22, 2026
Merged

Align runtime to CommandLayer Commons v1.1.0 and remove Commons x402 drift#51
GsCommand merged 1 commit intomainfrom
codex/align-repository-with-commandlayer-v1.1.0

Conversation

@GsCommand
Copy link
Contributor

Motivation

  • Bring the runtime repository into strict alignment with the CommandLayer Commons current-line v1.1.0 contract and remove stale 1.0.0 assumptions.
  • Remove accidental Commons dependence on inbound x402 payment metadata so Commons responses remain payment-agnostic.
  • Ensure docs, examples, fixtures, package metadata, and tests all present a consistent v1.1.0 picture.

Description

  • Stop reading x402 fields for trace/actor state and ensure traces and runtime_metadata are derived only from Commons-native request fields by updating handleVerb logic in server.mjs.
  • Bump repository package metadata to 1.1.0 by updating package.json and the root entries in package-lock.json.
  • Refresh golden fixture and generator (tests/fixtures/golden.receipt.json, tests/fixtures/make-golden.mjs) to the v1.1.0 wrapped Commons receipt shape and update tests/golden.mjs to validate the wrapper shape instead of asserting cryptographic verification inline.
  • Update docs to state commercial/payment-aware behavior is out of scope for this Commons runtime and to consistently reference v1.1.0 schema/paths (README.md, docs/CONFIGURATION.md, docs/OPERATIONS.md, CHANGELOG.md).
  • Add a regression test that proves Commons handlers ignore inbound x402 metadata (runtime/tests/runtime-signing.test.mjs) and remove stale smoke env usage of legacy CL_KEY_ID / CL_CANONICAL_ID.

Testing

  • Ran npm test (unit tests + smoke); all tests passed (unit tests 26/26, smoke finished successfully).
  • Ran the golden example check with node tests/golden.mjs; it passed and verifies the wrapped receipt envelope shape.
  • Ran node --check server.mjs for syntax validation; it succeeded.

Codex Task

Why: bring the runtime layer back into sync with the current CommandLayer Commons v1.1.0 contract and remove stale commons/payment drift.

Contract impact: commons receipts, docs, fixtures, and package metadata now consistently present the v1.1.0 current-line shape; no new protocol behavior introduced.
@GsCommand GsCommand merged commit 14a766c into main Mar 22, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant