Skip to content

fix(ci): repair full release validation blockers - #164483

Merged
RomneyDa merged 1 commit into
mainfrom
fix/frv-beta-ci-blockers
Oct 3, 2026
Merged

RomneyDa merged 1 commit into
mainfrom
fix/frv-beta-ci-blockers

Conversation

@RomneyDa

@RomneyDa RomneyDa commented Oct 3, 2026

Copy link
Copy Markdown
Member

Summary

  • drain agent exec temporary agent and shared database owners before deleting the temporary state root
  • classify .test-api.ts files as test support in the plugin runtime dependency contract
  • remove an implementation-coupled provider-normalization mock assertion while retaining observable behavior checks

Why

Full Release Validation for 2026.10.1-beta.1 reproduced 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.ts
  • autoreview: scoped clean, no accepted/actionable P0-P2 findings

FRV: https://github.com/openclaw/openclaw/actions/runs/37144348319

@clawsweeper

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

@RomneyDa RomneyDa added the release-fast-lane Release tooling PR: narrow ci-gate, ClawSweeper advisory (RELEASING.md) label Oct 3, 2026
@RomneyDa
RomneyDa marked this pull request as ready for review October 3, 2026 19:14
@openclaw-barnacle openclaw-barnacle Bot added commands Command implementations agents Agent runtime and tooling size: XS labels Oct 3, 2026
@RomneyDa

RomneyDa commented Oct 3, 2026

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 3, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper

clawsweeper Bot commented Oct 3, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed October 3, 2026, 3:19 PM ET / 19:19 UTC.

ClawSweeper review

What this changes

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

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused repair using established owners, with relevant reported validation and no concrete blocking finding.
Proof confidence 🌊 off-meta tidepool Not applicable: The ordinary external-contributor proof gate does not apply to this MEMBER-authored PR. Reported focused tests exercise production cleanup with real SQLite resources; they were inspected but not rerun. No stored-data format or migration 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 ordinary external-contributor proof gate does not apply to this MEMBER-authored PR. Reported focused tests exercise production cleanup with real SQLite resources; they were inspected but not rerun. No stored-data format or migration contract changes.
Evidence reviewed 7 items Verified introduced changes: The pinned main-to-head delta adds temporary-root database drainage, removes one provider-normalization mock-call assertion, and excludes test-api support files from runtime dependency inspection. The provided verified test merge has the exact main and head parents.
Existing lifecycle owners: Agent drainage revokes matching pending opens, joins retained resources and WAL maintenance, and closes handles restricted to the supplied root. Shared-state drainage selects the exact database path and physical identity. The command retains its existing cleanup-error guard before filesystem removal.
Cleanup boundary coverage: The existing database-cleanup test invokes the production command with real SQLite handles and session/audit operations. Its success and run-error cases assert closed temporary handles before removal, preserved independent handles, restored environment, and deleted temporary state. The PR reports both cases passing; this read-only review did not execute tests.
Findings None None.
Security None None.

How this fits together

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

Before merge

None.

Agent review details

Security

None.

PR surface

Source +23, Tests -3. Total +20 across 3 files.

View PR surface stats
Area Files Added Removed Net
Source 1 23 0 +23
Tests 2 1 4 -3
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 3 24 4 +20

Review metrics

Metric Value Why it matters
Production versus test growth production +23, tests -3 net lines Production growth is justified by explicit calls to existing teardown owners rather than a new lifecycle implementation.

Technical review

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

Labels

Label changes:

  • add P2: This repairs a bounded one-shot command cleanup defect and release-validation assumptions without evidence of an urgent user-facing outage.
  • 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 a bounded one-shot command cleanup defect and release-validation assumptions without evidence of an urgent user-facing outage.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.

Evidence

What I checked:

  • Verified introduced changes: The pinned main-to-head delta adds temporary-root database drainage, removes one provider-normalization mock-call assertion, and excludes test-api support files from runtime dependency inspection. The provided verified test merge has the exact main and head parents. (src/commands/agent-exec.ts:492, 7f16ac7225ea)
  • Existing lifecycle owners: Agent drainage revokes matching pending opens, joins retained resources and WAL maintenance, and closes handles restricted to the supplied root. Shared-state drainage selects the exact database path and physical identity. The command retains its existing cleanup-error guard before filesystem removal. (src/state/openclaw-agent-db-lifecycle.ts:616, 7f16ac7225ea)
  • Cleanup boundary coverage: The existing database-cleanup test invokes the production command with real SQLite handles and session/audit operations. Its success and run-error cases assert closed temporary handles before removal, preserved independent handles, restored environment, and deleted temporary state. The PR reports both cases passing; this read-only review did not execute tests. (src/commands/agent-exec.database-cleanup.test.ts:27, 7f16ac7225ea)
  • Test changes preserve meaningful contracts: The custom-provider test retains provider/model selection, disabled-plugin, transcript ownership, and absent catalog-loading checks. Inspected newly excluded support files contain fixture exports or Vitest-backed helpers, including native-session-binding.test-api.ts; the patch does not change those plugins' runtime contracts. (src/agents/agent-command.compaction-rotation.test.ts:200, 7f16ac7225ea)
  • Documented cleanup contract and main comparison: The CLI documentation requires confirmed database cleanup before temporary state removal. Inspection of the pinned main command confirms it closes the lexical maintenance scope but lacks the explicit temporary-root drainage introduced here. No evidence establishes that a merged replacement already owns this repair. Public docs: docs/cli/agent.md. (docs/cli/agent.md:36, 7f16ac7225ea)
  • Area history and inspection limitation: Main history records Peter Steinberger's prior temporary-exec cleanup work and recent command refactoring. Commit metadata was readable, but older blob inspection and blame failed because required objects could not be retrieved. Routing therefore does not claim verified source-line introduction. (src/commands/agent-exec.ts, 4b8fd85580ba)

Likely related people:

  • Peter Steinberger: 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.

@RomneyDa
RomneyDa enabled auto-merge (squash) October 3, 2026 19:21
@RomneyDa
RomneyDa merged commit 3afb9bd into main Oct 3, 2026
179 of 182 checks passed
@RomneyDa
RomneyDa deleted the fix/frv-beta-ci-blockers branch October 3, 2026 19:22
@RomneyDa

RomneyDa commented Oct 3, 2026

Copy link
Copy Markdown
Member Author

Merged via squash auto-merge.

steipete added a commit that referenced this pull request Oct 3, 2026
## 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.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 4, 2026
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 4, 2026
…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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling commands Command implementations release-fast-lane Release tooling PR: narrow ci-gate, ClawSweeper advisory (RELEASING.md) size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant