Repository navigation
fix(tests): restore native catalog worker retention coverage - #174823
Merged
Merged
Conversation
The native retention fixture replaced its manifest without declaring the provider registered by its catalog hook. After 5e5ad80 (#174641) stopped writing unowned discoveries to root models.json, all six native cases returned empty catalogs before reaching their isolation/retention checks. That change intentionally keeps unclaimed aliases out of model inventory. Declare the fixture provider through the existing manifest contract. Keep all catalog, lifetime, workspace-isolation and released-authority assertions. No production behavior or update migration changes. Proof: current main reproduced 6 failures / 1 pass. Rolling only the catalog routing owner back to the culprit parent restored the unchanged 21-generation case. With this fixture fix, all 7 cases pass using the Node infra project and --maxWorkers=1 (20.42 s Vitest; 48.25 s wrapper). Targeted agents-root typecheck, type-aware lint, formatting and git diff --check pass. Independent P2 autoreview: scoped-clean, no actionable findings.
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. |
Contributor
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Contributor
Author
|
Merged via squash auto-merge.
|
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Oct 17, 2026
…claw#174823) The native retention fixture replaced its manifest without declaring the provider registered by its catalog hook. After cb034c8 (openclaw#174641) stopped writing unowned discoveries to root models.json, all six native cases returned empty catalogs before reaching their isolation/retention checks. That change intentionally keeps unclaimed aliases out of model inventory. Declare the fixture provider through the existing manifest contract. Keep all catalog, lifetime, workspace-isolation and released-authority assertions. No production behavior or update migration changes. Proof: current main reproduced 6 failures / 1 pass. Rolling only the catalog routing owner back to the culprit parent restored the unchanged 21-generation case. With this fixture fix, all 7 cases pass using the Node infra project and --maxWorkers=1 (20.42 s Vitest; 48.25 s wrapper). Targeted agents-root typecheck, type-aware lint, formatting and git diff --check pass. Independent P2 autoreview: scoped-clean, no actionable findings.
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 six native catalog-worker retention tests that stopped at an empty catalog after #174641.
User Impact
No production behavior changes. The existing tests again exercise native ESM reuse, workspace isolation, rejected refresh recovery, retained imports, and stale registration authority.
Why This Change Was Made
The native fixture replaced its manifest without declaring its provider. Commit 5e5ad80 intentionally moved unowned discoveries out of root models.json and into the producer catalog, whose reader requires manifest ownership. Declare the fixture provider through that existing contract; all assertions remain unchanged.
Evidence
Current main reproduced six failures and one pass. Reverting only the catalog routing owner to the culprit's parent made the unchanged 21-generation case pass. The fixture correction passes all seven cases using
OPENCLAW_VITEST_RUNTIME=node pnpm test src/agents/prepared-model-catalog-worker.heap.integration.test.ts --maxWorkers=1(20.42 seconds Vitest, 48.25 seconds wrapper).Targeted agents-root typecheck, type-aware lint, formatting, and diff checks pass. Independent P2 autoreview is scoped-clean. Two direct pushes encountered main fast-forward races; this ready PR carries the same reviewed one-line patch. No CI runs were dispatched or rerun.