Repository navigation
test(state): run agent admission in the host-owned pool - #165886
Conversation
Transcript projection preflight now uses the canonical agent executor even for clean stores. The divergent secondary-agent scenarios reached real startup maintenance from Vitest threads, where the host-owner guard correctly refused admission. Route the unchanged suite through the existing isolated infrastructure forks. Keep all 13 cases and every assertion. Production startup already runs this path on the host; no runtime, schema, permission or timeout behavior changes. Validation: Linux admission 13/13; targeted routing 484 assertions; isolated tooling 367 assertions; lint, boundary lint, script types, check-changed, four real preflight manifest shapes, and P2 review passed. Broader Linux coverage: 40/49 normal CI groups and all 17 release-only tooling files passed. Nine groups remain unfinished after Testbox transport termination; AWS was refused by the shared fleet cap (21/20). Use the authorized ready-PR fallback. Refs #165377 and hourly 37382954831.
|
🦞👀 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. Reviewed October 5, 2026, 8:50 PM ET / October 6, 2026, 00:50 UTC. ClawSweeper reviewWhat this changesThe PR routes the agent database admission suite through isolated forked processes so its startup-maintenance cases can use the host-owned database worker pool. Merge readiness⛔ Needs changes before merge - 1 item remains This remains a useful, focused test-routing repair absent from current main. The unchanged admission coverage runs through the existing fork owner, and the verified merge preserves main’s additional registry entries; no introduced correctness defect was found. Priority: P2 Review scores
Verification
How this fits togetherOpenClaw’s test registry assigns database-worker consumers to execution pools. Its entries feed focused test selection and CI sharding, allowing startup and database tests to exercise production owners from a host process. flowchart TD
A[Admission test suite] --> B[Database worker registry]
B --> C[Focused test selection]
B --> D[CI shard selection]
C --> E[Isolated fork process]
D --> E
E --> F[Host-owned database workers]
F --> G[Startup admission assertions]
Before merge
Agent review detailsSecurityNone. PR surfaceTests +1. Total +1 across 1 file. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Keep the admission suite under the existing infrastructure fork owner while preserving every assertion and the production host-owner guard. Do we have a high-confidence way to reproduce the issue? Yes, source establishes the threaded-test versus host-admission mismatch, and the body reports a two-failure baseline followed by thirteen passing cases. This review inspected the path but did not execute it. Is this the best way to solve the issue? Yes, the canonical registry already controls inclusion, exclusion, focused routing, and CI ownership; adding this consumer repairs execution without weakening production guards or test assertions. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 90c6934d630f. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
) Transcript projection preflight now uses the canonical agent executor even for clean stores. The divergent secondary-agent scenarios reached real startup maintenance from Vitest threads, where the host-owner guard correctly refused admission. Route the unchanged suite through the existing isolated infrastructure forks. Keep all 13 cases and every assertion. Production startup already runs this path on the host; no runtime, schema, permission or timeout behavior changes. Validation: Linux admission 13/13; targeted routing 484 assertions; isolated tooling 367 assertions; lint, boundary lint, script types, check-changed, four real preflight manifest shapes, and P2 review passed. Broader Linux coverage: 40/49 normal CI groups and all 17 release-only tooling files passed. Nine groups remain unfinished after Testbox transport termination; AWS was refused by the shared fleet cap (21/20). Use the authorized ready-PR fallback. Refs openclaw#165377 and hourly 37382954831.
The agent database admission suite invokes real startup transcript maintenance in its two degraded-secondary-agent cases. After #165377 moved clean transcript status through the canonical agent executor, those cases correctly hit the host-owner guard inside Vitest's thread pool. Route the unchanged suite through the existing isolated, forked infrastructure project, following the established database-worker registry contract.
Production startup already invokes this maintenance from the host scheduler, including deferred agent recovery. This changes test ownership only: every assertion, all 13 cases, the production host-owner guard, and all timeouts remain intact. The divergent secondary database still remains untouched and degraded while the healthy required agent starts.
Validation: the original unit-src route reproduced two failures and eleven passes. The corrected file passed all 13 cases on Linux in 17.232 seconds. Linux lint, boundary lint, script types, check-changed, four real CI manifest checkout/event shapes, and independent P2 review passed. The targeted routing group passed 484 assertions, and tooling-isolated passed 367 assertions. Full owning-config coverage remains incomplete: 40 of 49 normal CI groups passed, covering 734 complete files; all 17 additional release-only tooling files passed. Nine normal groups remain unfinished, including the full unit-fast config. The focused database-worker registry consumer passed all eight tests locally; that local check is not presented as Linux config proof.
Remote proof notes: the initial unsharded tooling attempt reached its no-output watchdog, so the broader coverage was run through the repository's actual CI shard plans. One QA shard refused a stale build stamp after a Crabbox carrier-commit change; a canonical qaRuntime rebuild restored the artifact prerequisite and that unchanged test passed. The first Testbox later ended with a transport failure; completed group receipts were retained and only unfinished groups resumed. AWS acquisition was refused by the shared fleet cap (21/20). Both Testboxes ultimately ended with transport exit 255 before all groups could finish. This uses the coordinator-authorized ready-PR fallback; no direct-main push or auto-merge request is being made. Completed proof was retained and no passing group was repeated merely to obtain green.
Validation source was frozen at base
ac3830b776a3plus this one-line patch. The current-main merge is clean and preserves #165793’s two additional registry routes.