Repository navigation
fix(test): unblock spawn boundary qualification - #164002
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 October 2, 2026, 11:46 PM ET / October 3, 2026, 03:46 UTC (Revision 2). ClawSweeper reviewWhat this changesThe PR reuses one session selector across cleanup-test reads and writes so the spawn boundary suite fits its existing lint size limit. Merge readiness✅ Ready for maintainer review Keep open with no actionable findings. The bounded cleanup remains useful on current main, preserves coverage, and has successful exact-head CI; MEMBER-authored work is also exempt from automatic closure. Priority: P3 Review scores
Verification
How this fits togetherThe spawn boundary suite checks how subagents pass through Gateway admission and session cleanup. It exercises session replacement and worker reassignment to verify that cleanup affects only the intended session. flowchart TD
A[Cleanup scenarios] --> B[Gateway and worker fixtures]
B --> C[Queued subagent cleanup]
D[Shared session selector] --> E[Session reads and writes]
C --> E
E --> F[Deletion and preservation assertions]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests -15. Total -15 across 1 file. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Retain the existing boundary coverage and size limit while sharing the unchanged session selector. Do we have a high-confidence way to reproduce the issue? Not applicable to a runtime bug: this addresses a reported lint size failure, and exact-head CI confirms successful qualification after the reduction. Is this the best way to solve the issue? Yes. Reusing the identical selector is a narrow repair that preserves scenarios and assertions without increasing limits or adding another test owner. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 4a0be71e57ab. LabelsLabel changes: No label changes. Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
|
Merged via squash.
|
Co-authored-by: Vincent Koc <[email protected]>
What Problem This Solves
The spawn-boundary test exceeds the existing 1,000-line lint limit, blocking qualification of otherwise separate fixes.
User Impact
No runtime behavior changes. This restores the test file's size budget without removing coverage, changing timing, or raising limits.
Why This Change Was Made
Reuse the cleanup case's existing session scope across its two writes and four reads. All six cleanup scenarios, assertions, asynchronous ordering, and trusted-host identity/lineage coverage remain unchanged. The one-file patch removes 15 lines.
This is scoped qualification follow-through for waveform, changed-test ordering, SQLite diagnostics, and thumbnail handling, not a general test-refactor campaign.
Evidence
b7352288b349c702e78979408edac1a5264f7c4d.agents-spawn-production-boundaryowner suite passed 39/39, including all six cleanup cases and the active-parent identity/lineage case; the same changed-test job passed two sibling suites with 18 and 11 tests. All three planned invocations completed without failure. The full exact-head CI workflow completed successfully.