Repository navigation
fix(test): bind SDK hosts in direct Gateway fixtures - #189244
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. What this changesThis PR binds test-owned SDK resource hosts to two direct Gateway fixtures and closes them after plugin cleanup. Example: Run the X publication composition fixture.
Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this PR open: it repairs two incomplete Gateway fixtures without weakening production guards or existing assertions; no actionable correctness or security defects were found. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherDirect Gateway fixtures compose plugin dispatch, shared-state access, and lifecycle cleanup; the SDK resource host admits and drains their shared-state operations. flowchart TD
A[Gateway test fixture] --> B[Shared Gateway resolver]
B --> C[SDK resource host]
B --> D[Plugin runtime]
D --> E[Shared-state admission]
E --> C
D --> F[Plugin retirement]
F --> G[Host close]
Technical reviewBest possible solution: Bind each fixture’s exact Gateway resolver to one test-owned SDK host and retire plugin generations before closing it. Do we have a high-confidence way to reproduce the issue? Source confirms both fixtures omit the host required by shared-state admission; the author reports baseline failures and passing repaired cases, while this read-only review executed no target code. Is this the best way to solve the issue? The patch is the smallest complete repair: it supplies existing resource ownership, shares resolver identity, and preserves assertions without changing production admission. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against b7cc7ebc9b44. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceTests +18. Total +18 across 2 files. Added test files: 0. View PR surface stats
LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed October 31, 2026, 5:35 AM ET / 09:35 UTC. |
|
Merged via squash.
|
(cherry picked from commit 2464bd8) Co-authored-by: RomneyDa <[email protected]>
…d-tool-snapshot No conflicts. Picks up main's SDK host binding for the X publication fixture (openclaw#189244); the allocation stays 867.
Related: #188252
What Problem This Solves
Two direct Gateway fixtures omit the SDK resource host required by plugin shared-state admission. Publication dispatch and meeting-transcript cleanup therefore fail before their intended assertions.
User Impact
No production behavior or public API changes. The tests exercise the existing Gateway resource boundary without weakening its guard.
Why This Change Was Made
Bind a real test-owned SDK host to each fixture's Gateway resolver. Share that resolver with the publication runtime, and close resources after registry and service-generation cleanup. Reuse the existing lifecycle owners; keep all cases and assertions unchanged.
The change adds 18 test lines overall and changes no production code. The existing test-line ceiling has sufficient slack; no allocation or baseline change is needed.
Evidence