Skip to content

perf(plugins): retire the unused compiled provider index - #139930

Merged
steipete merged 2 commits into
mainfrom
codex/perf51-provider-index-retire
Sep 6, 2026
Merged

steipete merged 2 commits into
mainfrom
codex/perf51-provider-index-retire

Conversation

@steipete

@steipete steipete commented Sep 6, 2026 •

Copy link
Copy Markdown
Contributor

Related: #135997, #114393.

Current head: 50aba6672b60dfb4001dcf6ae6c2b247c8547879; merged main base: 132da0ae7b08441a7e7d2238fa51a4ff8dc7b8ac. Original measurements remain pinned to 4149769f8dcdc06b0fe9d757c1f5dc0908f60926 and the original runtime patch; they have not been rerun or relabeled as current-head measurements.

What Problem This Solves

Provider setup and onboarding help still load and normalize a compiled provider preview catalog that contributes no setup choices. Maintaining that unused source also leaves an obsolete discovery contract in the manifest documentation.

Why This Change Was Made

Remove the compiled index and its empty install-catalog branch. The only bundled rows have neither install metadata nor auth choices, and #114393 already removed the model-list preview consumer. Installed manifests and the official external catalog remain the setup owners; their precedence, aliases, deprecated choices, scopes and install-source metadata are unchanged.

This is an explicit prerequisite extraction from the retirement already included in #135997. It does not import that PR's ClawHub feed, wizard, installation, credential or UI changes. The broader feature should be rebased after this prerequisite lands. The existing documentation anchor is retained while its obsolete source description is corrected.

User Impact

Setup choices and help output remain byte-for-byte equivalent in the tested fixtures. Default onboarding help median latency improved from 431.832 to 332.207 ms in forward order and from 380.274 to 347.234 ms in reverse order. Other cases were mixed: reverse default setup median increased 0.22%, and root-help controls included regressions. These are local built-CLI observations, not a universal performance or memory claim.

The cleanup removes 486 production lines and 525 test lines. The two removed OPENCLAW_PROVIDER_INDEX constants also shrink the existing counted-name budget from 496 to 494; this does not remove or change an operator environment variable.

Evidence

  • Four retained whole test files: 41/41 passed. Canonical P2 review: no actionable findings across two passes. After measurement, only the exact budget shrink and one formatter-removed test blank line changed; measured runtime sources remain identical.
  • Two normal full builds passed, including runtime/plugin packaging, declarations, SDK exports and UI. All output files and receipts are retained; candidate outputs were restored after the baseline replay.
  • Six semantic invocations compared complete install/manifest choices, scope collections, flags and missing-choice handling across default, global-disabled and provider-disabled fixtures. Each pair matched, with independent expected provider entries required to prevent empty-result parity.
  • 144 public built-CLI help invocations in fixed B0/C0/C1/B1 order; complete output parity, exit 0 and process closure throughout. All 23 adverse values among 84 wall/CPU/RSS comparisons are retained. No warmups were discarded and no numeric phase reran. Disabled-config onboard/setup help is an environment control because registration uses default config; explicit fixture config is covered by the semantic companion.
  • B0 has a preserved admission qualification: an additional checker incorrectly expected core source maps, then the shell continued into B0 despite its failed assertion. The guarded baseline build and full output inventory had already been recorded and were verified before/after B0. The emitted dependency chain and normal map policy were subsequently inspected before accepting the retained cohort. Candidate chain verification completed before C0, with a fail-closed continuation guard. No source-map or retroactive preflight claim is made.
  • The current composition inherits fix(gateway): align history test fixture with projection state #139794, which fixes the unrelated history-fixture type error that stopped the third gate attempt. Earlier budget and formatting failures also remain recorded. Owned dependency reconciliation passed in 2.351 seconds without tracked changes. The complete normal changed-code gate passed all 30 stages on this head in 327.289 seconds. Its first composition attempt exceeded an external 16 GiB process-tree bound during core lint; that failure is retained. One explicitly authorized rerun used a 24 GiB bound on the 64 GiB host, with all repository checks unchanged and no skip flags. No CI or landing claim is made. Measured runtime owners are byte-identical, while main added an unrelated Doctor-doc section and dependency upgrades. No numeric or build rerun is claimed.

Compatibility and upgrade decision

The latest review's config-compatibility checklist is satisfied: zero operator configuration keys, environment variables, defaults, persisted formats, database schemas or public package exports are added, changed or removed. The budget adjustment counts two TypeScript constants, not environment-variable readers. The removed optional source parameter was used only by tests; no configuration or SDK ingress supplied alternate index rows.

The exact producer and sole consumer were compared with stable v2026.9.2. Those shipped rows have no install metadata or auth choices, so deleting this contribution does not remove a shipped setup option. Installed manifests and the official external catalog still produce the same complete choices, aliases, precedence and help output in the paired proof. Legacy provenance literals, durable install records and Doctor migrations are untouched. No operator action or migration is required. This is an inert-source retirement, not a configuration/default change; no additional compatibility layer is justified.

@clawsweeper

clawsweeper Bot commented Sep 6, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation size: XL maintainer Maintainer-authored PR labels Sep 6, 2026
@steipete
steipete marked this pull request as ready for review September 6, 2026 08:18
@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 Sep 6, 2026
@clawsweeper

clawsweeper Bot commented Sep 6, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 6, 2026, 4:56 AM ET / 08:56 UTC.

ClawSweeper review

What this changes

Removes the unused compiled provider catalog and its setup branch, deletes their tests, updates the manifest documentation, and tightens the counted-name budget.

Merge readiness

⛔ Blocked before merge - 1 item remains

Keep open as useful, bounded cleanup with no actionable findings. The stable-release comparison resolves the previous compatibility concern: the removed source contributes no shipped setup choices, and current main still contains it.

Priority: P3
Reviewed head: 50aba6672b60dfb4001dcf6ae6c2b247c8547879

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, well-supported cleanup with preserved shipped behavior and no remaining correctness or compatibility blocker.
Proof confidence 🌊 off-meta tidepool Not applicable: The maintainer-authored cleanup is exempt from the external-contributor proof gate and introduces no material authority change. The captured body nevertheless reports paired built-CLI help and setup-catalog parity for the affected consumer, with original measurement provenance and qualifications retained.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The maintainer-authored cleanup is exempt from the external-contributor proof gate and introduces no material authority change. The captured body nevertheless reports paired built-CLI help and setup-catalog parity for the affected consumer, with original measurement provenance and qualifications retained.
Evidence reviewed 9 items Current main still contains the redundant branch: The fetched main revision still loads the compiled index and appends its install choices after manifest and official external entries.
Shipped producer has no actionable setup rows: The v2026.9.2 compiled catalog contains two providers, neither with plugin installation metadata nor auth choices. The consumer requires installation metadata before emitting any entry.
Stable compatibility comparison: The comparison produced no differences: the released compiled producer, normalizer, types, and installation consumer match the pinned pre-change implementation. Removing their empty contribution does not require an operator migration.
Findings None None.
Security None None.

How this fits together

Provider setup combines installed plugin metadata with the official external catalog to produce authentication choices and installation hints. These choices feed onboarding, setup help, and plugin repair.

flowchart TD
  A[Installed plugin manifests] --> D[Provider setup catalog]
  B[Installed package records] --> D
  C[Official external catalog] --> D
  D --> E[Installed owners take precedence]
  E --> F[Onboarding and setup help]
  E --> G[Plugin repair hints]
Loading

Before merge

  • Review config compatibility - Confirm compatibility and upgrade impact for the changed config or default surface before merge.
Agent review details

Security

None.

PR surface

Source -486, Tests -525, Docs -9, Other 0. Total -1020 across 11 files.

View PR surface stats
Area Files Added Removed Net
Source 7 2 488 -486
Tests 2 0 525 -525
Docs 1 2 11 -9
Config 0 0 0 0
Generated 0 0 0 0
Other 1 1 1 0
Total 11 5 1025 -1020

Review metrics

Metric Value Why it matters
Operator compatibility 0 configuration keys, defaults, environment readers, or persisted formats changed The counted-name budget shrink does not introduce an upgrade or configuration decision.

Technical review

Best possible solution:

Retire the inert compiled source while preserving the existing manifest and external-catalog owners, installation precedence, and setup output.

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

Not applicable as a functional bug reproduction: source confirms redundant normalization of rows that cannot produce setup choices; the body reports bounded CLI performance comparisons.

Is this the best way to solve the issue?

Yes. Removing the unused producer and sole setup consumer is narrower than maintaining another catalog or adding a compatibility layer for an empty contribution.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 7969f4992a8a.

Labels

Label justifications:

  • P3: This is low-risk performance and maintenance cleanup with unchanged shipped setup choices.
  • 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: The maintainer-authored cleanup is exempt from the external-contributor proof gate and introduces no material authority change. The captured body nevertheless reports paired built-CLI help and setup-catalog parity for the affected consumer, with original measurement provenance and qualifications retained.

Evidence

What I checked:

  • Current main still contains the redundant branch: The fetched main revision still loads the compiled index and appends its install choices after manifest and official external entries. (src/plugins/provider-install-catalog.ts:224, 7969f4992a8a)
  • Shipped producer has no actionable setup rows: The v2026.9.2 compiled catalog contains two providers, neither with plugin installation metadata nor auth choices. The consumer requires installation metadata before emitting any entry. (src/model-catalog/provider-index/openclaw-provider-index.ts:13, 3928bad9badf)
  • Stable compatibility comparison: The comparison produced no differences: the released compiled producer, normalizer, types, and installation consumer match the pinned pre-change implementation. Removing their empty contribution does not require an operator migration. (src/plugins/provider-install-catalog.ts, 132da0ae7b08)
  • Retained behavior and regression coverage: The complete consumer and retained test file preserve durable install-record precedence, rejection of untrusted package hints, disabled workspace handling, external provider aliases, and deprecated choices. Deleted tests exercise the removed compiled-index injection path. (src/plugins/provider-install-catalog.test.ts:119, 50aba6672b60)
  • Budget change is not operator configuration: The budget checker counts matching OPENCLAW_* text in source, including constants. The two removed names are compiled-index constants, not environment-variable readers; no config schema, default, persisted format, or package export mapping changes in the introduced diff. (scripts/check-env-var-count.mts:17, 50aba6672b60)
  • Verified merge scope: Raw test-merge parent records match the pinned base followed by the exact PR head. Its comparison against that base contains only the eleven declared cleanup paths; unrelated endpoint drift is not attributed to this PR. (196b6351653b)

Likely related people:

  • Vincent Koc: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • 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 (1 earlier review cycle)
  • reviewed 2026-09-06T08:24:40.277Z sha 50aba66 :: blocked before merge. :: none

@steipete
steipete merged commit 954d47a into main Sep 6, 2026
255 checks passed
@steipete
steipete deleted the codex/perf51-provider-index-retire branch September 6, 2026 09:00
@steipete

steipete commented Sep 6, 2026

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to documentation 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. size: XL 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