Skip to content

refactor: remove catalog test-only URL re-exports - #134205

Merged
steipete merged 1 commit into
mainfrom
codex/test-audit-catalog-facade
Aug 31, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/test-audit-catalog-facade

Conversation

@steipete

@steipete steipete commented Aug 31, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

The catalog publisher re-exports two pricing-source URL constants solely for its tests, although the pricing package already owns and exports them.

Why This Change Was Made

Import the constants directly from their owning package and remove the publisher's forwarding export. The publisher already imports its pricing implementation from that module, so module loading, URL values and CLI behavior stay unchanged.

User Impact

Tooling: -4 lines. Test imports: +4/-2. Every test body, fixture, assertion and CLI case remains, including the Cerebras/Chutes parsing and paid/free/missing-price cases added by #134311. Public pricing-package exports and plugin pricing APIs remain intact.

Evidence

Read the full publisher, pricing owner, tests, exports, callers, native pricing parsers and relevant history. All 47 source and validation references match the reviewed current-owner composition on main 10564e2f.

The current composed run passed 126 cases before and 125 after, including this patch and the separate benchmark cleanup in #133894. Catalog's 76 pricing and 42 publisher cases and the SDK cleanup case have identical names, order and results; only the benchmark's two overlapping cases combine into one. The catalog cases include real CLI dry-run and output-preserving failures with synthetic pricing responses. All 18 normal changed-file checks passed, including script/test types, lint and formatting. No live pricing request or catalog publication was performed.

CI Refresh

CI 33434419614 failed in an unchanged SDK CLI test that required the shared RUNNER_TEMP parent to be empty. The child cancellation, deadline and Git cleanup assertions had passed. This refresh incorporates canonical #134422, which checks removal of the CLI's actual registered temporary root and preservation of unrelated sibling files. The revised SDK case passes in both composed runs; this PR adds no duplicate SDK repair. The two catalog afterimages remain byte-for-byte unchanged. Fresh exact-head hosted CI is required before landing.

Fresh managed Codex review of the complete composed diff is scoped-clean at the configured P0 threshold. Manual owner, coverage and source-composition review is recorded separately.

@clawsweeper

clawsweeper Bot commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts size: XS maintainer Maintainer-authored PR labels Aug 31, 2026
@steipete
steipete marked this pull request as ready for review August 31, 2026 14:58
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Aug 31, 2026
@clawsweeper

clawsweeper Bot commented Aug 31, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 31, 2026, 4:43 PM ET / 20:43 UTC.

ClawSweeper review

What this changes

Removes two pricing-source URL re-exports from the catalog publisher and has its test import the constants directly from the model-catalog pricing package.

Merge readiness

⚠️ Ready for maintainer review - 2 items remain

No correctness finding: the PR removes a test-only forwarding export and keeps the catalog publisher’s existing pricing dependency unchanged. This is a maintainer-labeled PR with exact-head CI still running, so it should remain open for ordinary merge handling.

Priority: P3
Reviewed head: 0abdebd7bc6216d754f2d5db66d94489eb182bd1

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused cleanup with the canonical dependency preserved and existing coverage retained; final exact-head CI remains the merge gate.
Proof confidence 🌊 off-meta tidepool Not applicable: This maintainer-authored, behavior-neutral refactor only removes a test-facing export; the external-contributor real-behavior-proof gate does not apply.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This maintainer-authored, behavior-neutral refactor only removes a test-facing export; the external-contributor real-behavior-proof gate does not apply.
Evidence reviewed 6 items Introduced PR change: The verified merge-base-to-head diff removes only the forwarding export and moves both test imports to the owning package; no catalog assembly, pricing fetch, or CLI logic changes.
Canonical export owner: The pricing package directly exports both URL constants, and its declared package subpath exposes the module used by both publisher and test.
Existing caller relationship: The publisher already imports pricing behavior from the same package subpath; the revised test now imports its mock-routing constants from that canonical owner while retaining the publisher imports for its tested behavior.
Findings None None.
Security None None.

How this fits together

The catalog publisher reads plugin manifests and pricing sources to build the hosted model catalog. Its test supplies deterministic pricing responses, using the same URL constants that the pricing package owns.

flowchart LR
  A[Plugin manifests] --> B[Catalog publisher]
  C[Model pricing package] --> B
  B --> D[Published catalog bundle]
  E[Publisher test] --> C
  E --> B
Loading

Before merge

  • Resolve merge risk (P1) - Exact-head hosted CI is still incomplete; merging should wait for its terminal green result.
  • Complete next step (P2) - The maintainer label and pending exact-head CI require ordinary maintainer merge handling; no mechanical repair is needed.
Agent review details

Security

None.

PR surface

Tests +2, Other -4. Total -2 across 2 files.

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

Review metrics

Metric Value Why it matters
Production versus test delta production/tooling -4; tests +2 The change deletes a test-only production export and preserves the existing test cases while relocating their constant imports to the canonical package.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Keep the direct package imports and merge after exact-head CI completes successfully.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best possible solution:

Keep the direct package imports and merge after exact-head CI completes successfully.

Do we have a high-confidence way to reproduce the issue?

Not applicable: this is a behavior-neutral export cleanup, and source inspection shows the test and publisher retain the same pricing-package dependency.

Is this the best way to solve the issue?

Yes: importing the constants from their declared package owner removes the test-only facade without adding an alternate source of truth.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against fec69b40d651.

Labels

Label justifications:

  • P3: This is a behavior-neutral tooling cleanup with no user-facing runtime change.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This maintainer-authored, behavior-neutral refactor only removes a test-facing export; the external-contributor real-behavior-proof gate does not apply.

Evidence

What I checked:

  • Introduced PR change: The verified merge-base-to-head diff removes only the forwarding export and moves both test imports to the owning package; no catalog assembly, pricing fetch, or CLI logic changes. (scripts/publish-model-catalog.mts:25, 0abdebd7bc62)
  • Canonical export owner: The pricing package directly exports both URL constants, and its declared package subpath exposes the module used by both publisher and test. (packages/model-catalog-core/src/model-catalog-pricing.ts:13, fec69b40d651)
  • Existing caller relationship: The publisher already imports pricing behavior from the same package subpath; the revised test now imports its mock-routing constants from that canonical owner while retaining the publisher imports for its tested behavior. (test/scripts/publish-model-catalog.test.ts:6, 0abdebd7bc62)
  • Current-main necessity check: Fetched current main still contains the two forwarding exports, so the central cleanup has not already landed. (scripts/publish-model-catalog.mts:25, fec69b40d651)
  • Feature-history routing: Recent history on both affected files includes the current cleanup and the merged catalog pricing work by Peter Steinberger; the local partial clone could not provide raw-parent history for a stronger introduction claim. (scripts/publish-model-catalog.mts:25, 8affd61977b5)
  • Exact-head CI state: The supplied check rollup has successful completed guards but remains incomplete with shard checks in progress; merge should wait for the exact head to finish. (0abdebd7bc62)

Likely related people:

  • steipete: 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.

History

Review history (2 earlier review cycles)
  • reviewed 2026-08-31T15:06:29.310Z sha be47657 :: needs maintainer review before merge. :: none
  • reviewed 2026-08-31T16:53:39.136Z sha e90994d :: needs maintainer review before merge. :: none

@steipete
steipete force-pushed the codex/test-audit-catalog-facade branch 2 times, most recently from e90994d to 71d88dd Compare August 31, 2026 20:08
@steipete
steipete force-pushed the codex/test-audit-catalog-facade branch from 71d88dd to 0abdebd Compare August 31, 2026 20:36
@steipete steipete self-assigned this Aug 31, 2026
@steipete
steipete merged commit 41ee2cc into main Aug 31, 2026
169 checks passed
@steipete
steipete deleted the codex/test-audit-catalog-facade branch August 31, 2026 21:25
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer Maintainer-authored PR P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. scripts Repository scripts size: XS status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant