Skip to content

fix: isolate the production subagent test model catalog - #149179

Merged
steipete merged 1 commit into
mainfrom
codex/subagent-boundary-readiness-20260915
Sep 15, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/subagent-boundary-readiness-20260915

Conversation

@steipete

Copy link
Copy Markdown
Contributor

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.

@clawsweeper

clawsweeper Bot commented Sep 15, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added agents Agent runtime and tooling size: XS maintainer Maintainer-authored PR labels Sep 15, 2026
@steipete
steipete marked this pull request as ready for review September 15, 2026 14:44
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 15, 2026
@clawsweeper

clawsweeper Bot commented Sep 15, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 15, 2026, 10:51 AM ET / 14:51 UTC.

ClawSweeper review

What this changes

The 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
Reviewed head: 957ed38d4bb57a95594ce6dceb0c3209c8bb5f8b

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused fixture repair using an existing contract, supported by reported before/after measurements and preserved boundary assertions.
Proof confidence 🌊 off-meta tidepool Not applicable: The supplied MEMBER association exempts this test-only PR from external-contributor runtime proof; its reported 10-case runs exercise the affected fixture, with no production authority change requiring additional proof.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The supplied MEMBER association exempts this test-only PR from external-contributor runtime proof; its reported 10-case runs exercise the affected fixture, with no production authority change requiring additional proof.
Evidence reviewed 6 items Verified introduced change: The pinned merge-base-to-head diff adds only models.mode = replace to writeTestConfig; assertions, mocks, timeouts, and production code are unchanged.
Existing isolation contract: The catalog loader returns no manifest rows in replace mode and skips provider-plugin augmentation. The documented models.mode setting already provides the required behavior.
Prepared catalog honors replacement: Configured catalog preparation excludes registry/runtime donor entries in replace mode, and captured catalog preparation returns those configured facts without adding registry rows.
Findings None None.
Security None None.

How this fits together

The 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]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Tests +1. Total +1 across 1 file.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 1 0 +1
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 1 1 0 +1

Review metrics

None.

Technical review

Best 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.

Labels

Label changes:

  • add P3: This is a narrowly scoped test-fixture reliability correction with no production behavior change.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The supplied MEMBER association exempts this test-only PR from external-contributor runtime proof; its reported 10-case runs exercise the affected fixture, with no production authority change requiring additional proof.

Label justifications:

  • P3: This is a narrowly scoped test-fixture reliability correction with no production behavior change.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The supplied MEMBER association exempts this test-only PR from external-contributor runtime proof; its reported 10-case runs exercise the affected fixture, with no production authority change requiring additional proof.

Evidence

What I checked:

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Ayaan Zaidi: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

@steipete
steipete merged commit 986b5fc into main Sep 15, 2026
166 checks passed
@steipete
steipete deleted the codex/subagent-boundary-readiness-20260915 branch September 15, 2026 22:18
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling maintainer Maintainer-authored PR P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XS status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant