Repository navigation
fix(gateway): report unsupported node events - #123719
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 14, 2026, 12:01 PM ET / 16:01 UTC. ClawSweeper reviewWhat this changesThe PR makes unsupported paired-node Merge readinessKeep open. Current main still turns an unsupported node event into a bare acknowledgement; this narrow dispatcher-boundary fix returns the already-declared intentional non-outcome and has a paired-node integration assertion. The maintainer label keeps final landing with its owner after exact-head checks finish. Priority: P2 Review scores
Verification
How this fits togetherPaired node clients send flowchart LR
A[Paired node client] --> B[Gateway node event RPC]
B --> C[Node event dispatcher]
C --> D{Recognized event}
D -->|Yes| E[Existing event handling]
D -->|No| F[Unsupported event result]
E --> G[Gateway RPC response]
F --> G
Decision needed
Why: The patch is source-correct, but the protected maintainer workflow requires an owner to make the final landing decision. Before merge
Agent review detailsSecurityNone. PR surfaceSource 0, Tests +13. Total +13 across 2 files. View PR surface stats
Review metrics
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Land the dispatcher-default repair after exact-head checks complete, retaining bare acknowledgements for accepted asynchronous events while reporting unsupported events explicitly. Do we have a high-confidence way to reproduce the issue? Yes, from source: current main returns undefined at the dispatcher default and the RPC adapter serializes that as Is this the best way to solve the issue? Yes. Returning the explicit non-outcome at the dispatcher default is the narrowest owner-boundary fix; changing the RPC adapter could not distinguish an unsupported event from existing intentional undefined results. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 9386ac096632. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Land-ready verification for exact head
ClawSweeper's remaining moves are satisfied: exact-head required checks are green, and the Gateway owner has made the explicit decision to land this narrow existing-contract correction. No code, protocol/schema/version, config, auth, persistence, release, or deployment follow-up remains in this PR. |
|
Merged via squash.
|
Closes #123717
What Problem This Solves
Fixes an issue where paired node clients sending an unsupported
node.eventreceived only{ok:true}, making the event look handled even though no event owner accepted it.Why This Change Was Made
The node-event dispatcher now records the intentional non-outcome at the owner boundary by returning the existing
NodeEventResultshape withhandled:falseandreason:"unsupported_event". Supported event branches are unchanged, and there is no protocol, schema, or version change.User Impact
Node clients can distinguish an unsupported event from a successfully handled one instead of receiving a misleading bare acknowledgement.
Evidence
{ok:true}and failed the new assertion for the declared structured result.node scripts/run-vitest.mjs src/gateway/server-node-events.test.ts src/gateway/server.roles-allowlist-update.test.ts— 85/85 passed.node scripts/check-changed.mjs— passed core production/test typechecks, changed lint/format, dependency, architecture, database, and repository guards. Testbox routing reported no ready provider, so the repository wrapper used its documented trusted-source local fallback.40c4b7f1569ffb1bf7aaa4d6f7900b722350530f— clean, no actionable findings, confidence 0.99.AI-assisted: yes. The implementation, tests, and proof were reviewed by the maintainer before publication.