Skip to content

fix(tests): restore native catalog worker retention coverage - #174823

Merged
steipete merged 1 commit into
mainfrom
fix/native-catalog-fixture-provider
Oct 16, 2026
Merged

steipete merged 1 commit into
mainfrom
fix/native-catalog-fixture-provider

Conversation

@steipete

Copy link
Copy Markdown
Contributor

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.

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.
@clawsweeper

clawsweeper Bot commented Oct 16, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-16T23:21:47.583536Z c2d959f PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@openclaw-barnacle openclaw-barnacle Bot added agents Agent runtime and tooling size: XS labels Oct 16, 2026
@steipete
steipete enabled auto-merge (squash) October 16, 2026 23:25
@steipete
steipete merged commit 2badc68 into main Oct 16, 2026
99 checks passed
@steipete
steipete deleted the fix/native-catalog-fixture-provider branch October 16, 2026 23:31
@steipete

Copy link
Copy Markdown
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant