Skip to content

chore: gate shared node runtime contracts - #150329

Merged
giodl73-repo merged 7 commits into
mainfrom
user/giodl/node-runtime-conformance-ci
Sep 19, 2026
Merged

giodl73-repo merged 7 commits into
mainfrom
user/giodl/node-runtime-conformance-ci

Conversation

@giodl73-repo

@giodl73-repo giodl73-repo commented Sep 16, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Rust-only node runtime changes and TypeScript node-contract changes had no dedicated CI lane proving both implementations against the same fixtures.

User Impact

No user-visible behavior changes. Maintainers get an explicit compatibility check for the bounded TypeScript/Rust node contract.

This does not introduce a new public API or Gateway schema. It enforces the
existing internal node wire contract and keeps compatibility behavior aligned
between its TypeScript producer/consumer and Rust host.

Why This Change Was Made

  • Adds a path-scoped Node Runtime Conformance workflow that runs the shared TypeScript contracts and the complete Rust workspace at its Rust 1.93 MSRV.
  • Makes the invocation lifecycle fixture bilateral across request, input, progress, result, and cancellation payloads.
  • Uses the tested Gateway input/cancel builders in the live registry path.
  • Preserves the released TypeScript host's tolerance for forward-compatible request extensions while both implementations reject malformed required fields.

Sidecar framing remains a Rust/native-adopter contract and is intentionally not presented as JavaScript node-host parity.

CI Cost

The TypeScript and Rust jobs start together and run in parallel. On exact head
3a2bc6699e4, TypeScript completed in 65 seconds and Rust in 112 seconds; the
workflow completed in 1 minute 56 seconds while the normal CI workflow took
about 22 minutes. The conformance lane therefore does not extend the observed
PR critical path.

The workflow is path-scoped to Rust crates and the node protocol, authority,
pairing, invocation, and shared-fixture owners. Unrelated PRs do not run it.

Evidence

  • Refreshed onto current main at head d27f83c5cc1.
  • 140 locked Rust workspace tests passed on Rust 1.93.0.
  • Strict Rust formatting, Clippy with warnings denied, and rustdoc with warnings denied passed.
  • Both shared TypeScript contract suites passed, including 7 bilateral fixture assertions.
  • Focused node payload and registry tests passed.
  • Workflow guard tests, Oxfmt, Oxlint, and diff hygiene passed.
  • Final current-head autoreview reported no actionable findings.

@clawsweeper

clawsweeper Bot commented Sep 16, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added gateway Gateway runtime size: M maintainer Maintainer-authored PR labels Sep 16, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Sep 16, 2026
@clawsweeper

clawsweeper Bot commented Sep 16, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 18, 2026, 11:42 PM ET / September 19, 2026, 03:42 UTC (Revision 8).

ClawSweeper review

What this changes

Adds shared TypeScript/Rust node-message checks in CI, connects tested payload builders to Gateway delivery, and lets Rust accept unrelated request extension fields.

Merge readiness

✅ Ready for maintainer review

Keep open: the dedicated conformance coverage is still absent from current main, the earlier fixture defect is resolved, and no introduced correctness or security defect was found.

Priority: P2
Reviewed head: d27f83c5cc1e13e4624136591300b558cadb48d9

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, useful patch with passing exact-head conformance checks and no remaining actionable finding.
Proof confidence 🌊 off-meta tidepool Not applicable: The host classifies the author as MEMBER, so the external-contributor proof gate does not apply. Exact-head CI exercises the changed conformance workflow and shared decoder/builders; it is not presented as live native behavior proof, and the patch does not materially change authority.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The host classifies the author as MEMBER, so the external-contributor proof gate does not apply. Exact-head CI exercises the changed conformance workflow and shared decoder/builders; it is not presented as live native behavior proof, and the patch does not materially change authority.
Evidence reviewed 10 items Verified review scope: The checkout matches the pinned original head. The merge-base delta contains the eight supplied paths, and the working tree remained clean. The supplied test merge is stale and was not used to infer removal of main-branch behavior.
Production callers preserve the existing wire contract: Registry cancellation and input delivery now call the shared builders with the same fields as the previous inline objects. Request delivery already uses the request builder, and the TypeScript runner consumes these messages through the tested coercers.
Bounded Rust compatibility change: The decoder accepts unrelated extension fields but explicitly retains rejection of direct params, including ambiguous params plus paramsJSON. Required-field and serialized-parameter validation remain intact; extensions do not enter command authority or handler arguments.
Findings None None.
Security None None.

How this fits together

The Gateway sends command requests, input, and cancellation to connected node hosts, which return progress and results. Shared fixtures check that the TypeScript and Rust implementations understand those messages consistently.

flowchart LR
  A[Gateway command requests] --> B[Node message builders]
  B --> C[Connected node transport]
  C --> D[TypeScript node host]
  C --> E[Rust node host]
  D --> F[Progress and results]
  E --> F
  G[Shared fixtures and CI] --> B
  G --> D
  G --> E
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Source +33, Tests +197, Config +127, Other +37. Total +394 across 8 files.

View PR surface stats
Area Files Added Removed Net
Source 3 69 36 +33
Tests 2 199 2 +197
Docs 0 0 0 0
Config 1 127 0 +127
Generated 0 0 0 0
Other 2 40 3 +37
Total 8 435 41 +394

Review metrics

Metric Value Why it matters
Observed conformance duration TypeScript 58 seconds; Rust 97 seconds, running concurrently The exact-head run demonstrates the incremental CI cost of this dedicated compatibility lane.
Production versus test growth Production net +40 lines; tests and fixtures net +227 lines Production growth supports shared message construction and bounded extension handling; most added code supplies cross-language contract coverage.

Technical review

Best possible solution:

Keep the shared fixtures attached to production message owners and validate both implementations through the dedicated path-scoped CI lane.

Do we have a high-confidence way to reproduce the issue?

Not applicable: this is primarily a conformance-gating improvement. Source inspection establishes the missing main-branch coverage, and the exact-head CI run passes; no local runtime reproduction was executed.

Is this the best way to solve the issue?

Yes: the patch tests existing production builders and consumers against shared fixtures, preserves TypeScript compatibility, and avoids introducing a competing protocol or authority owner.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 731324ec78b6.

Labels

Label justifications:

  • P2: This is a bounded compatibility-validation improvement for existing node runtimes without an demonstrated urgent user-facing outage.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The host classifies the author as MEMBER, so the external-contributor proof gate does not apply. Exact-head CI exercises the changed conformance workflow and shared decoder/builders; it is not presented as live native behavior proof, and the patch does not materially change authority.

Evidence

What I checked:

  • Verified review scope: The checkout matches the pinned original head. The merge-base delta contains the eight supplied paths, and the working tree remained clean. The supplied test merge is stale and was not used to infer removal of main-branch behavior. (d27f83c5cc1e)
  • Production callers preserve the existing wire contract: Registry cancellation and input delivery now call the shared builders with the same fields as the previous inline objects. Request delivery already uses the request builder, and the TypeScript runner consumes these messages through the tested coercers. (src/gateway/node-registry.ts:258, d27f83c5cc1e)
  • Bounded Rust compatibility change: The decoder accepts unrelated extension fields but explicitly retains rejection of direct params, including ambiguous params plus paramsJSON. Required-field and serialized-parameter validation remain intact; extensions do not enter command authority or handler arguments. (crates/openclaw-node-host/src/node.rs:1021, d27f83c5cc1e)
  • Earlier fixture finding resolved: The shared fixture now supplies concrete invalid progress and result objects, and the TypeScript tests assert their presence before checking rejection. The relevant test, fixture, decoder, and builder files are unchanged since the previous completed review; no prior blocker remains. (src/infra/node-invoke-lifecycle-contract.test.ts:140, d27f83c5cc1e)
  • Exact-head conformance workflow passed: https://github.com/openclaw/openclaw/actions/runs/35418929688 completed successfully for the pinned head. Both jobs started at 03:34:31 UTC; TypeScript finished after 58 seconds and Rust after 97 seconds. Rust formatting, workspace tests, Clippy, and documentation checks all passed. These are inspected CI results, not locally executed tests or live native proof. (.github/workflows/node-runtime-conformance.yml:50, d27f83c5cc1e)
  • Still necessary on main and release: Neither fetched main nor the supplied latest-release commit contains the dedicated conformance workflow or TypeScript lifecycle-contract test. Main also retains deny_unknown_fields in the Rust request decoder. The merged runtime foundation does not supersede this follow-up. (crates/openclaw-node-host/src/node.rs:1023, 731324ec78b6)

Likely related people:

  • giodl73-repo: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Peter Steinberger: Raw commit ebc0887 adds src/gateway/node-invoke-request.ts:3 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: ebc0887c6c74; files: src/gateway/node-invoke-request.ts)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (7 earlier review cycles)
  • reviewed 2026-09-16T22:05:05.638Z sha fe32c7c :: needs real behavior proof before merge. :: [P2] [P2] Supply actual invalid progress and result fixture payloads
  • reviewed 2026-09-16T23:42:23.537Z sha 0a40c89 :: blocked before merge. :: [P2] [P2] Supply actual invalid progress and result fixture payloads
  • reviewed 2026-09-17T00:36:37.852Z sha 232a5d8 :: blocked before merge. :: [P2] Supply actual invalid progress and result fixture payloads
  • reviewed 2026-09-17T02:37:03.483Z sha 3083030 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-17T05:19:21.891Z sha 57e54a5 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-17T15:18:29.208Z sha 3a2bc66 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-17T15:26:09.664Z sha 3a2bc66 :: needs maintainer review before merge. :: none

Co-authored-by: Copilot <[email protected]>

Copilot-Session: 2c44506f-c357-47e5-a867-91775df2093d
Move the branded serialized-event payload helper into a focused sibling module so the node registry remains below its enforced line cap while the conformance producers stay wired to shared builders.

Co-authored-by: Copilot <[email protected]>

Copilot-Session: 2c44506f-c357-47e5-a867-91775df2093d
@giodl73-repo
giodl73-repo force-pushed the user/giodl/node-runtime-conformance-ci branch from fe32c7c to 0a40c89 Compare September 16, 2026 23:35
@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Sep 16, 2026
Co-authored-by: Copilot <[email protected]>

Copilot-Session: 2c44506f-c357-47e5-a867-91775df2093d
@giodl73-repo giodl73-repo self-assigned this Sep 17, 2026
Co-authored-by: Copilot <[email protected]>
Copilot-Session: 2c44506f-c357-47e5-a867-91775df2093d
@giodl73-repo

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Sep 17, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Sep 17, 2026
Co-authored-by: Copilot <[email protected]>

Copilot-Session: 2c44506f-c357-47e5-a867-91775df2093d
@giodl73-repo

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Sep 17, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@giodl73-repo

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Sep 17, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@giodl73-repo

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Sep 19, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@giodl73-repo
giodl73-repo merged commit 95b8e03 into main Sep 19, 2026
371 of 373 checks passed
@giodl73-repo
giodl73-repo deleted the user/giodl/node-runtime-conformance-ci branch September 19, 2026 05:14
@giodl73-repo

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 20, 2026
* ci: gate shared node runtime contracts

Copilot-Session: 2c44506f-c357-47e5-a867-91775df2093d

* refactor(gateway): isolate serialized node events

Move the branded serialized-event payload helper into a focused sibling module so the node registry remains below its enforced line cap while the conformance producers stay wired to shared builders.

Copilot-Session: 2c44506f-c357-47e5-a867-91775df2093d

* fix(gateway): satisfy assertion safety gate

Copilot-Session: 2c44506f-c357-47e5-a867-91775df2093d

* fix: preserve node invoke compatibility

Copilot-Session: 2c44506f-c357-47e5-a867-91775df2093d

* fix: align node request extension handling

Copilot-Session: 2c44506f-c357-47e5-a867-91775df2093d

---------

Co-authored-by: Gio Della-Libera <[email protected]>
Copilot-Session: 2c44506f-c357-47e5-a867-91775df2093d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gateway Gateway runtime maintainer Maintainer-authored PR P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: M status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant