Repository navigation
chore: gate shared node runtime contracts - #150329
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. Reviewed September 18, 2026, 11:42 PM ET / September 19, 2026, 03:42 UTC (Revision 8). ClawSweeper reviewWhat this changesAdds 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 Review scores
Verification
How this fits togetherThe 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
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource +33, Tests +197, Config +127, Other +37. Total +394 across 8 files. View PR surface stats
Review metrics
Technical reviewBest 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. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (7 earlier review cycles)
|
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
fe32c7c to
0a40c89
Compare
Co-authored-by: Copilot <[email protected]> Copilot-Session: 2c44506f-c357-47e5-a867-91775df2093d
Co-authored-by: Copilot <[email protected]> Copilot-Session: 2c44506f-c357-47e5-a867-91775df2093d
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. |
Co-authored-by: Copilot <[email protected]> Copilot-Session: 2c44506f-c357-47e5-a867-91775df2093d
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
…me-conformance-ci
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
…me-conformance-ci
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Merged via squash.
|
* 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
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
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; theworkflow 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
mainat headd27f83c5cc1.