Repository navigation
fix(workers): keep retention schemas private - #190506
Merged
Merged
Conversation
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]>
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. |
roboclaw-bot
marked this pull request as ready for review
November 1, 2026 16:14
roboclaw-bot
enabled auto-merge (squash)
November 1, 2026 16:22
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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What Problem This Solves
Fixes the
check-dependenciesfailure in main run 41321208299, job 124891892863 caused by three unused retention-schema exports insrc/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) introducedworkerRetentionPolicySchema,workerRetentionOperationSchema, andworkerRetentionObservationSchemaas 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
4e4342b9f82de8e7159a73f280948f8def7ecb7fstill 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
workerRetentionPolicySchema,workerRetentionOperationSchema, andworkerRetentionObservationSchemaas unused exports insrc/plugins/worker-retention.ts. Original job logs were unavailable; this signature comes from independent remote diagnostics, not an original-log quotation.CI=1 pnpm deadcode:dependenciesandCI=1 pnpm deadcode:exportsboth failed on those three exports. The relevant module and analyzer inputs were verified identical to failed head2775e24f749f7ab823e7278f7837adb5cd112157.CI=1 node scripts/run-vitest.mjs src/gateway/worker-environments/provider-retained-lifecycle.test.ts --maxWorkers=1passed all 8 tests. Hydration workflow SHAs are not candidate SHAs; native sync and the changed-file SHA-256 verified candidate inputs.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.git diff --checkpassed; source search confirms all three schema names remain module-local; changed-file SHA-256 remainsb6d0c21b3c846fd68c000cb43b151996df6c242cd18c38b4716f7552918c95c1.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]