Repository navigation
fix: isolate the production subagent test model catalog - #149179
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 15, 2026, 10:51 AM ET / 14:51 UTC. ClawSweeper reviewWhat this changesThe PR restricts the subagent integration-test fixture to its synthetic model provider, avoiding unrelated provider loading during spawn checks. Merge readiness✅ Ready for maintainer review The fixture correction remains useful on inspected main and introduces no actionable defect. It preserves the existing assertions and uses an established catalog-isolation setting. Priority: P3 Review scores
Verification
How this fits togetherThe subagent boundary tests exercise child-run admission, queued work, cancellation, and cleanup through OpenClaw's Gateway. Their synthetic model configuration supplies the catalog used before the mocked model runner starts. flowchart TD
A[Synthetic provider configuration] --> B[Replace catalog mode]
B --> C[Configured test models]
C --> D[Gateway child admission]
D --> E[Mocked model runner]
D --> F[Authority and cancellation assertions]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +1. Total +1 across 1 file. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Keep the synthetic catalog isolated through the existing replace mode while retaining the full admission, cancellation, and cleanup coverage. Do we have a high-confidence way to reproduce the issue? No independently reproduced timeout in this read-only review; source supports the catalog-loading mechanism, and the PR reports a pristine-main failure followed by two passing corrected suite runs. Is this the best way to solve the issue? Yes. Reusing documented replace mode isolates the synthetic fixture without weakening assertions, increasing timeouts, or adding production machinery. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 95763a1fb5f8. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash.
|
What Problem This Solves
The first production-boundary subagent test can time out before its admitted child starts because its synthetic model configuration also loads unrelated installed provider policies.
User Impact
This is a test-fixture correction with no production behavior change. The existing spawn, delegated-authority, and cancellation assertions remain intact.
Why This Change Was Made
Set the fixture's model catalog to
replace, so it uses only its declared synthetic provider. The default merge mode added 292 catalog entries from 154 plugins, and cold provider-policy loading blocked the event loop for 19.7–24.6 seconds. With the fixture corrected, the measured model-selection phase took 11.4 ms.Evidence
Reproduced the original first-case timeout on pristine main. The full 10-case owner suite passed with the one-line correction, including a second run after removing all diagnostic instrumentation. The full changed-file gate passed and independent review through P2 is scoped-clean. Assertions, mocks, timeouts, and production code are unchanged.