Repository navigation
fix(doctor): stop admission fixtures from observing unrelated children - #200310
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 changes before merge. What this changesThis PR adds a regression checking that Doctor fixture preloads observe read-only worker requests without adding IPC listeners to unrelated children. Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Partial Merge readiness⛔ Needs changes before merge - 1 item remains Keep this maintainer-authored draft open: it adds a focused regression for a current fixture defect, but the deliberately omitted repair is required before merge. Priority: P3 Before merge
Findings
Tests
Agent review detailsHow this fits togetherDoctor admission tests preload SQLite isolation guards into subprocesses; the fixture records read-only worker requests and verifies private database witnesses when each test finishes. flowchart TD
A[Doctor admission test] --> B[Fixture preload]
B --> C[Read-only worker session]
B --> D[Unrelated IPC child]
C --> E[Request and isolation assertions]
D --> F[Listener and preload assertions]
Technical reviewBest possible solution: Gate only request-listener registration in the existing fixture by the canonical read-only child marker, preserving SQL fencing and preload witnesses for every child. Do we have a high-confidence way to reproduce the issue? Source inspection shows the unrelated child inherits a preload that unconditionally registers a message listener; no target code was executed and the expected assertion failure remains unobserved. Is this the best way to solve the issue? The regression targets the existing fixture boundary and preserves real worker recording; completing the narrowly scoped listener guard is the smallest repair. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against e3f8a67bc94d. TestingProof path: none. SecurityNone. EvidenceAcceptance criteria:
What I checked:
PR surfaceTests +76. Total +76 across 1 file. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. LabelsLabel changes: No label 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 November 16, 2026, 7:00 PM ET / November 17, 2026, 00:00 UTC. |
|
Merged via squash.
|
openclaw#200310) * test(doctor): expose fixture IPC listener leakage * fix(doctor): scope admission fixture IPC observation * style(doctor): format admission fixture regression * test(doctor): inherit diagnostics for the IPC fixture child
Summary
The Doctor admission fixture added an IPC message listener to every child inheriting its preload. Restrict request observation to the canonical SQLite readonly worker marker so unrelated IPC children keep their normal listener state. Native SQLite isolation checks and PID-bound guard witnesses still run in every child.
The regression completes a real readonly session, verifies its database row, then checks an unrelated IPC child's listener count, successful exit, and guard witness. Fixture disposal still verifies the real session requests. Child stderr uses the existing inherited-diagnostics pattern.
Validation
43c2926ba69479fdc68f5fccb4fd3a089763c9fb, Node 24.22.1: 16 of 17 warm cases passed; the regression failed specifically with listener count 1 instead of 0 after the session, exit, and witness checks passed.58778fd27ca2e8725f30a8fd5aa2da0b1b82a855: all 17 warm cases and all 5 admission-activation/continuation-scope cases passed, with both canonical commands completing and exiting 0.9b3d53e9a2a1623c1a64a4b1ecab7729e8d937e5: 24 jobs passed, 30 skipped, no failures. Doctor types and both required CI gates passed, including security reconciliation.This fixture fix does not establish the cause or resolution of the separate Doctor timeout, or qualify the Bun repin in #199959.