Skip to content

fix(workers): keep retention schemas private - #190506

Merged
roboclaw-bot merged 1 commit into
mainfrom
loop/l211-worker-retention-exports
Nov 1, 2026
Merged

roboclaw-bot merged 1 commit into
mainfrom
loop/l211-worker-retention-exports

Conversation

@roboclaw-bot

Copy link
Copy Markdown
Collaborator

What Problem This Solves

Fixes the check-dependencies failure in main run 41321208299, job 124891892863 caused by three unused retention-schema exports in src/plugins/worker-retention.ts.

User Impact

Restores the dependency gate with no runtime, config, schema, or public SDK behavior change.

Why This Change Was Made

632dced4affb7a338d0def2b7059c246ed33b0af (#189346) introduced workerRetentionPolicySchema, workerRetentionOperationSchema, and workerRetentionObservationSchema as exports. Their consumers are all in the same module. Keep those schemas private while preserving the three exported parsing functions. This removes exactly three export keywords: one file, +3/-3 lines, no test changes or allowlists.

This is a maintainer-directed repair of main CI. Fresh main 4e4342b9f82de8e7159a73f280948f8def7ecb7f still contains the exports; targeted retention/dependency PR discovery and the 100 newest open PRs found no competing repair. Rebased the reviewed lane-l211 fix onto that main commit.

Evidence

  • Failure signature: production Knip and the production/full-tree export scans independently report exactly workerRetentionPolicySchema, workerRetentionOperationSchema, and workerRetentionObservationSchema as unused exports in src/plugins/worker-retention.ts. Original job logs were unavailable; this signature comes from independent remote diagnostics, not an original-log quotation.
  • Remote red baseline on Blacksmith Testbox (hydration workflow 41324118722): CI=1 pnpm deadcode:dependencies and CI=1 pnpm deadcode:exports both failed on those three exports. The relevant module and analyzer inputs were verified identical to failed head 2775e24f749f7ab823e7278f7837adb5cd112157.
  • Remote candidate proof before rebase on Blacksmith Testbox (hydration workflow 41324536502): production root-workspace Knip exports scan passed; touched-file typecheck, typed lint, and formatting passed; CI=1 node scripts/run-vitest.mjs src/gateway/worker-environments/provider-retained-lifecycle.test.ts --maxWorkers=1 passed all 8 tests. Hydration workflow SHAs are not candidate SHAs; native sync and the changed-file SHA-256 verified candidate inputs.
  • Independent Codex autoreview of the complete local delta against 33c6ccee140558528f1c410d5c3a032fe26deaba: scoped-clean, no P0-P2 findings. Simplification pass confirms the three keyword removals are the smallest complete fix. The rebase preserved the reviewed patch exactly.
  • After rebase: git diff --check passed; source search confirms all three schema names remain module-local; changed-file SHA-256 remains b6d0c21b3c846fd68c000cb43b151996df6c242cd18c38b4716f7552918c95c1.

Blockers

Post-rebase focused Knip, named consumer tests, and touched-file lint were not rerun: the fresh Testbox lease was granted but its runner remained queued, so the task-owned allocation was stopped. This host is the production Team Gateway and has no installed test dependencies in this worktree; staging or broad checks here are prohibited. PR CI supplies current-head proof. Prior validation above is explicitly pre-rebase evidence. No CI reruns or dispatch requests are part of this repair.

Co-authored-by: steipete [email protected]

The retention schemas only serve the exported parsing functions in their
module. Remove their unused exports to restore the dependency CI gate.

Co-authored-by: steipete <[email protected]>
@clawsweeper

clawsweeper Bot commented Nov 1, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@roboclaw-bot
roboclaw-bot marked this pull request as ready for review November 1, 2026 16:14
@vincentkoc vincentkoc self-assigned this Nov 1, 2026
@roboclaw-bot
roboclaw-bot enabled auto-merge (squash) November 1, 2026 16:22
@roboclaw-bot
roboclaw-bot merged commit e330464 into main Nov 1, 2026
186 checks passed
@roboclaw-bot
roboclaw-bot deleted the loop/l211-worker-retention-exports branch November 1, 2026 16:24
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Merged via squash auto-merge.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 2, 2026
## What Problem This Solves

Fixes the `check-dependencies` failure in [main run 41321208299, job 124891892863](https://github.com/openclaw/openclaw/actions/runs/41321208299/job/124891892863) caused by three unused retention-schema exports in `src/plugins/worker-retention.ts`.

## User Impact

Restores the dependency gate with no runtime, config, schema, or public SDK behavior change.

## Why This Change Was Made

`ac31d7ca47e82f003586c37156e229c5f17d4e86` (openclaw#189346) introduced `workerRetentionPolicySchema`, `workerRetentionOperationSchema`, and `workerRetentionObservationSchema` as exports. Their consumers are all in the same module. Keep those schemas private while preserving the three exported parsing functions. This removes exactly three export keywords: one file, +3/-3 lines, no test changes or allowlists.

This is a maintainer-directed repair of main CI. Fresh main `b95273cca4ae6dd903ee7f78adc449bd6d744aba` still contains the exports; targeted retention/dependency PR discovery and the 100 newest open PRs found no competing repair. Rebased the reviewed lane-l211 fix onto that main commit.

## Evidence

- Failure signature: production Knip and the production/full-tree export scans independently report exactly `workerRetentionPolicySchema`, `workerRetentionOperationSchema`, and `workerRetentionObservationSchema` as unused exports in `src/plugins/worker-retention.ts`. Original job logs were unavailable; this signature comes from independent remote diagnostics, not an original-log quotation.
- Remote red baseline on Blacksmith Testbox ([hydration workflow 41324118722](https://github.com/openclaw/openclaw/actions/runs/41324118722)): `CI=1 pnpm deadcode:dependencies` and `CI=1 pnpm deadcode:exports` both failed on those three exports. The relevant module and analyzer inputs were verified identical to failed head `3273ea9f991eb20066fc957fc25f6c51e0f6a5ff`.
- Remote candidate proof before rebase on Blacksmith Testbox ([hydration workflow 41324536502](https://github.com/openclaw/openclaw/actions/runs/41324536502)): production root-workspace Knip exports scan passed; touched-file typecheck, typed lint, and formatting passed; `CI=1 node scripts/run-vitest.mjs src/gateway/worker-environments/provider-retained-lifecycle.test.ts --maxWorkers=1` passed all 8 tests. Hydration workflow SHAs are not candidate SHAs; native sync and the changed-file SHA-256 verified candidate inputs.
- Independent Codex autoreview of the complete local delta against `34d1cebf954882f0ea83aa8bb151d9b96c9665cd`: scoped-clean, no P0-P2 findings. Simplification pass confirms the three keyword removals are the smallest complete fix. The rebase preserved the reviewed patch exactly.
- After rebase: `git diff --check` passed; source search confirms all three schema names remain module-local; changed-file SHA-256 remains `b6d0c21b3c846fd68c000cb43b151996df6c242cd18c38b4716f7552918c95c1`.

## Blockers

Post-rebase focused Knip, named consumer tests, and touched-file lint were not rerun: the fresh Testbox lease was granted but its runner remained queued, so the task-owned allocation was stopped. This host is the production Team Gateway and has no installed test dependencies in this worktree; staging or broad checks here are prohibited. PR CI supplies current-head proof. Prior validation above is explicitly pre-rebase evidence. No CI reruns or dispatch requests are part of this repair.

Co-authored-by: steipete <[email protected]>
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.

2 participants