Skip to content

test(state): run agent admission in the host-owned pool - #165886

Merged
steipete merged 1 commit into
mainfrom
ci/fix3-admission-host-owner
Oct 6, 2026
Merged

steipete merged 1 commit into
mainfrom
ci/fix3-admission-host-owner

Conversation

@steipete

@steipete steipete commented Oct 6, 2026

Copy link
Copy Markdown
Contributor

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 ac3830b776a3 plus this one-line patch. The current-main merge is clean and preserves #165793’s two additional registry routes.

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.
@clawsweeper

clawsweeper Bot commented Oct 6, 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.

@steipete
steipete enabled auto-merge (squash) October 6, 2026 00:49
@clawsweeper

clawsweeper Bot commented Oct 6, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge. Reviewed October 5, 2026, 8:50 PM ET / October 6, 2026, 00:50 UTC.

ClawSweeper review

What this changes

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

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A narrow, well-supported routing repair preserves existing coverage and introduces no identified code defect.
Proof confidence 🌊 off-meta tidepool Not applicable: The supplied repository state identifies a member-authored test-routing repair, so external-contributor runtime proof is not required. Reported Linux execution directly covers the changed suite ownership; broader coverage remains explicitly incomplete. No stored-data contract changes.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The supplied repository state identifies a member-authored test-routing repair, so external-contributor runtime proof is not required. Reported Linux execution directly covers the changed suite ownership; broader coverage remains explicitly incomplete. No stored-data contract changes.
Evidence reviewed 8 items Introduced change: The pinned introduction adds only the admission suite to the existing database-worker registry. The admission test file itself has no introduced changes.
Existing execution owner: The infrastructure config includes registry entries with isolate=true and pool=forks. The unit-path owner excludes the same registry, focused selection classifies its entries as infrastructure tests, and CI adds them to the storage-state infrastructure shard.
Production boundary and retained assertions: The complete admission suite exercises real SQLite stores and startup maintenance, including unchanged byte-preservation and degraded-secondary assertions. The database worker owner explicitly rejects canonical agent admission outside the main thread.
Findings None None.
Security None None.

How this fits together

OpenClaw’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]
Loading

Before merge

  • Complete next step (P2) - Add authored What Problem This Solves and Evidence headings around the existing problem statement and validation receipts to satisfy the failed PR context check.
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 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.

Labels

Label changes:

  • add P2: This repairs bounded admission-test execution without changing production behavior.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.

Label justifications:

  • P2: This repairs bounded admission-test execution without changing production behavior.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.

Evidence

What I checked:

  • Introduced change: The pinned introduction adds only the admission suite to the existing database-worker registry. The admission test file itself has no introduced changes. (test/vitest/vitest.database-worker-core-paths.mjs:14, e340e7b25d4a)
  • Existing execution owner: The infrastructure config includes registry entries with isolate=true and pool=forks. The unit-path owner excludes the same registry, focused selection classifies its entries as infrastructure tests, and CI adds them to the storage-state infrastructure shard. (test/vitest/vitest.infra.config.ts:8, e340e7b25d4a)
  • Production boundary and retained assertions: The complete admission suite exercises real SQLite stores and startup maintenance, including unchanged byte-preservation and degraded-secondary assertions. The database worker owner explicitly rejects canonical agent admission outside the main thread. (src/infra/sqlite-worker-store.ts:208, e340e7b25d4a)
  • Current-main necessity: The fetched main registry lacks the admission suite entry. The related merged changes concern transcript execution and projection status; neither supplies this remaining routing repair. No runtime or released behavior is changed by this PR. (test/vitest/vitest.database-worker-core-paths.mjs:14, 90c6934d630f)
  • Verified merge result: Raw test-merge parents are exactly pinned main followed by the PR head. GitHub’s comparison of that main parent with the test merge contains only the added admission registry entry, preserving the base’s other routes. Local merge-diff and blame inspection encountered unavailable promisor objects with HTTP 403; the bounded GitHub comparison supplied the merge evidence. (test/vitest/vitest.database-worker-core-paths.mjs:14, 84d19c9b3e99)
  • Reported validation: The captured body reports the original route failing two cases and passing eleven, followed by all thirteen passing on Linux in 17.232 seconds after rerouting. It also reports routing and isolated-tooling passes and explicitly distinguishes unfinished broader coverage caused by remote transport termination. These are author-reported receipts; this read-only review ran no tests. (e340e7b25d4a)

Likely related people:

  • steipete: 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 41e465b into main Oct 6, 2026
86 of 87 checks passed
@steipete
steipete deleted the ci/fix3-admission-host-owner branch October 6, 2026 00:56
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 6, 2026
)

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant