Repository navigation
fix(ci): repair full release validation blockers - #164483
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. |
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Codex review: needs maintainer review before merge. Reviewed October 3, 2026, 3:19 PM ET / 19:19 UTC. ClawSweeper reviewWhat this changesThe branch drains temporary agent databases before removing one-shot execution state and corrects two release-validation test assumptions. Merge readiness✅ Ready for maintainer review This remains a useful lifecycle repair absent from the pinned main revision. No concrete blocking defect was found in the introduced changes, and the member-authored PR is not eligible for automatic closure. Priority: P2 Review scores
Verification
How this fits togetherThe agent exec command runs a single embedded agent turn using temporary state by default. Its cleanup coordinates database workers and native handles before deleting that state and returning the command result. flowchart TD
A[CLI prompt and options] --> B[Embedded agent turn]
B --> C[Temporary database owners]
C --> D[Drain agent resources]
D --> E[Drain shared database]
E --> F{Cleanup settled}
F -->|Yes| G[Remove temporary state]
F -->|No| H[Preserve state and report error]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource +23, Tests -3. Total +20 across 3 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Keep temporary-state teardown coordinated through the existing database lifecycle owners, preserving independent and explicitly retained state. Do we have a high-confidence way to reproduce the issue? No independent runtime reproduction was performed in this read-only review. The reported release-validation failures and inspected real-database cleanup test provide a concrete focused verification path. Is this the best way to solve the issue? Yes: selecting the temporary root through existing database teardown owners is a narrow repair, and the test adjustments retain observable behavior checks. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 48d366fbe5b5. 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 auto-merge.
|
## What Problem This Solves Large non-channel tool extensions carry private factories, forwarding modules, duplicate projections, and configuration branches that their actual callers do not need. ## User Impact No user-visible change. Configuration keys, persisted data, protocol shapes, CLI output, model-facing descriptions, and UI behavior remain the same. No public SDK changes or migrations. ## Why This Change Was Made This batch removes 1,026 net production TypeScript lines, excluding tests and test support, while keeping each responsibility with its existing owner. - Browser: remove unused CDP session arguments; simplify iframe line expansion and action dispatch; inline one-use Chrome diagnostics, MCP predicates, target mapping, snapshot-delta factories, enumeration projections, and CLI/route forwarding. Cancellation, frame identity, reconnect classification, and error text stay with their current owners. - Codex: remove unused clock injection and notification forwarding, Computer Use helper chains, repeated diagnostic target resolution, catalog adapters, and redundant media bookkeeping. Reuse the existing approval-policy parser and simplify private cache/configuration projections without changing authority or lifecycle fences. - Memory: remove redundant whole-state decoding shells while retaining persisted-row validation; consolidate hybrid candidate construction; inline one-use embedding, CLI, backfill, and wiki mutation adapters; rely on the existing transactional SQL selection for standing-intent eligibility; remove a dead wiki write normalizer and LanceDB error-formatting wrappers. - Diagnostics: share ordinary/security log construction and transport emission, preserving trust checks, redaction, trace flags, failure reporting, and stdout delivery after OTLP failure. - Policy: replace an injected Doctor check factory with direct registration; share evaluation setup; carry resolved ingress values and their provenance once; remove intermediate approval-entry projections and redundant secret-input checks. - Voice: remove tunnel and response-body forwarding layers, duplicate status DTOs, and unreachable admitted-config branches; share credential errors and CLI call actions; reuse prepared Twilio URLs and one sorted latency sample. - Workboard: remove unused subscription-update options, private CLI/slash adapters, and the one-use workspace-check mode; keep canonical label and record normalization at their existing owners. - OpenAI realtime: delete an unused audio callback/decoder from the delegation controller. Neither production constructor provides it; media workers and WebRTC continue to own audio. ## Evidence Remote Linux proof on the reviewed candidate used Node 24.21.0 and pnpm 12.5.1. The exact Git commit and changed-file hashes were verified before execution; lint repairs and the final scope withdrawal were tested separately. - Focused owner and sibling tests: 2,646 passed across 128 files (476 seconds). - Both import-cycle checks: 0 cycles. Line-cap ratchet: passed. - Plugin contracts: 1,131 passed; one inherited failure in `extension-package-project-boundaries.test.ts` reports `packages/memory-host-sdk/src/host/config-utils.ts` as an extra core bridge. Neither the package directory nor that test is changed here. The earlier `.test-api` dependency-scanner failure was resolved by rebasing onto the existing main fix in #164483. - New Doctor check test: 2 cases, 56 ms test execution; `pnpm test extensions/policy/src/doctor/checks.test.ts --maxWorkers=1` took 24 seconds including test-worker preparation. The CI file adds two cases and replaces the old factory suite. `check-changed` passed both extension typechecks, all static ratchets, and all dead-export scans. Its lint findings were repaired and the affected extension lint and tests passed. No lint rules or tests were weakened. The generated assertion baseline shrinks only seven affected entries. Independent autoreview completed. Its six concerns were rejected after inspecting the retained secret-key suffix predicates, inherited-setting selection, early media-ID registration, shared approval parser, canonical label normalizer, and final app-ID sort. None of those findings is actionable against the owning code. A fresh review of the lint follow-up reported no P0–P2 findings. The current open-deslop census has no overlapping production files. The shared assertion baseline is regenerated only for seven entries owned by this batch; the other open lanes modify different entries. Codex protocol and dependency contracts were inspected directly in the sibling source checkout before edits.
…4582) ## What Problem This Solves Large non-channel tool extensions carry private factories, forwarding modules, duplicate projections, and configuration branches that their actual callers do not need. ## User Impact No user-visible change. Configuration keys, persisted data, protocol shapes, CLI output, model-facing descriptions, and UI behavior remain the same. No public SDK changes or migrations. ## Why This Change Was Made This batch removes 1,026 net production TypeScript lines, excluding tests and test support, while keeping each responsibility with its existing owner. - Browser: remove unused CDP session arguments; simplify iframe line expansion and action dispatch; inline one-use Chrome diagnostics, MCP predicates, target mapping, snapshot-delta factories, enumeration projections, and CLI/route forwarding. Cancellation, frame identity, reconnect classification, and error text stay with their current owners. - Codex: remove unused clock injection and notification forwarding, Computer Use helper chains, repeated diagnostic target resolution, catalog adapters, and redundant media bookkeeping. Reuse the existing approval-policy parser and simplify private cache/configuration projections without changing authority or lifecycle fences. - Memory: remove redundant whole-state decoding shells while retaining persisted-row validation; consolidate hybrid candidate construction; inline one-use embedding, CLI, backfill, and wiki mutation adapters; rely on the existing transactional SQL selection for standing-intent eligibility; remove a dead wiki write normalizer and LanceDB error-formatting wrappers. - Diagnostics: share ordinary/security log construction and transport emission, preserving trust checks, redaction, trace flags, failure reporting, and stdout delivery after OTLP failure. - Policy: replace an injected Doctor check factory with direct registration; share evaluation setup; carry resolved ingress values and their provenance once; remove intermediate approval-entry projections and redundant secret-input checks. - Voice: remove tunnel and response-body forwarding layers, duplicate status DTOs, and unreachable admitted-config branches; share credential errors and CLI call actions; reuse prepared Twilio URLs and one sorted latency sample. - Workboard: remove unused subscription-update options, private CLI/slash adapters, and the one-use workspace-check mode; keep canonical label and record normalization at their existing owners. - OpenAI realtime: delete an unused audio callback/decoder from the delegation controller. Neither production constructor provides it; media workers and WebRTC continue to own audio. ## Evidence Remote Linux proof on the reviewed candidate used Node 24.21.0 and pnpm 12.5.1. The exact Git commit and changed-file hashes were verified before execution; lint repairs and the final scope withdrawal were tested separately. - Focused owner and sibling tests: 2,646 passed across 128 files (476 seconds). - Both import-cycle checks: 0 cycles. Line-cap ratchet: passed. - Plugin contracts: 1,131 passed; one inherited failure in `extension-package-project-boundaries.test.ts` reports `packages/memory-host-sdk/src/host/config-utils.ts` as an extra core bridge. Neither the package directory nor that test is changed here. The earlier `.test-api` dependency-scanner failure was resolved by rebasing onto the existing main fix in openclaw#164483. - New Doctor check test: 2 cases, 56 ms test execution; `pnpm test extensions/policy/src/doctor/checks.test.ts --maxWorkers=1` took 24 seconds including test-worker preparation. The CI file adds two cases and replaces the old factory suite. `check-changed` passed both extension typechecks, all static ratchets, and all dead-export scans. Its lint findings were repaired and the affected extension lint and tests passed. No lint rules or tests were weakened. The generated assertion baseline shrinks only seven affected entries. Independent autoreview completed. Its six concerns were rejected after inspecting the retained secret-key suffix predicates, inherited-setting selection, early media-ID registration, shared approval parser, canonical label normalizer, and final app-ID sort. None of those findings is actionable against the owning code. A fresh review of the lint follow-up reported no P0–P2 findings. The current open-deslop census has no overlapping production files. The shared assertion baseline is regenerated only for seven entries owned by this batch; the other open lanes modify different entries. Codex protocol and dependency contracts were inspected directly in the sibling source checkout before edits.
Summary
agent exectemporary agent and shared database owners before deleting the temporary state root.test-api.tsfiles as test support in the plugin runtime dependency contractWhy
Full Release Validation for
2026.10.1-beta.1reproduced these failures across two CI runs. The database cleanup failure was a real lifecycle bug: delayed worker registration could outlive the lexical maintenance scope, leaving the temporary database open when its directory was removed.Validation
pnpm test src/commands/agent-exec.database-cleanup.test.ts --maxWorkers=1(2 passed; 46.9s wall)pnpm test src/plugins/contracts/extension-runtime-dependencies.contract.test.ts --maxWorkers=1(487 passed; 8.5s wall)pnpm test src/agents/agent-command.compaction-rotation.test.ts --maxWorkers=1(25 passed; 54.4s wall)node scripts/check-changed.mjs -- src/commands/agent-exec.ts src/agents/agent-command.compaction-rotation.test.ts src/plugins/contracts/extension-runtime-dependencies.contract.test.tsFRV: https://github.com/openclaw/openclaw/actions/runs/37144348319