Repository navigation
feat(diagnostics-prometheus): let plugins add metric families to the scrape route - #198455
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: ready, awaiting a maintainer decision. What this changesThis PR lets individually opted-in plugins publish metric families through the existing authenticated Prometheus scrape route. Example: Enable allowed-producer with allowMetrics: true and record one hit.
Review scores
ProductKind: Feature · Worth it: Needs a maintainer decision · Fix scope: Complete Merge readiness⏳ Ready, awaiting maintainer decision Keep open: this PR fills a verified plugin capability gap, has meaningful Gateway proof, and has no identified correctness blocker; its public contract still needs a maintainer decision. Priority: P3 Decision needed
Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe plugin registry grants lifecycle-bound recorders, a broker forwards samples to trusted exporters, and the Prometheus store applies its existing admission budgets before rendering the authenticated scrape. flowchart LR
A[Operator plugin settings] --> B[Plugin registry]
B --> C[Plugin metric recorder]
C --> D[Lifecycle bound broker]
D --> E[Prometheus metric store]
E --> F[Authenticated scrape route]
F --> G[Prometheus]
Technical reviewBest possible solution: Approve a narrow lifecycle-owned contribution contract that keeps metric values and admission in the existing exporter. Do we have a high-confidence way to reproduce the issue? This is a capability request; current-main source confirms the missing API, and supplied Gateway output demonstrates the proposed behavior without executing target code during this review. Is this the best way to solve the issue? The proposal uses the existing store, transport, budgets, and lifecycle owners; its declaration broker handles distinct namespace, shape, and retirement responsibilities without a second metric-value store. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 1619ecb28838. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +483, Tests +617, Docs +46, Generated 0, Other +1. Total +1147 across 21 files. Added test files: 2. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. Review metrics
LabelsLabel changes: No label changes. Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (3 earlier review cycles)
Reviewed November 17, 2026, 9:59 PM ET / November 18, 2026, 02:59 UTC (Revision 4). |
…scrape route - Add optional api.metrics.register() for counters, gauges and histograms; it is defined only in the live full registry while a diagnostics exporter plugin (diagnostics-prometheus or diagnostics-otel) is enabled. Only diagnostics-prometheus consumes the families today. - Prefix every family with openclaw_plugin_<plugin id>_ and reject invalid names, labels, buckets and collisions at registration. A histogram also reserves its _bucket, _sum and _count names, within one plugin and across plugins. - Deliver samples through a trusted internalDiagnostics.onPluginMetrics listener; the exporter stores them with no reserve, sharing the existing pool and per-family cap and drop counters. - Admit declarations under the plugin lifecycle authority captured at register(), but deliver samples only while the recording instance is the published one (isPluginRecordActive). A replacement that registers or starts services inside the reload preparation scope cannot record or reset the live instance's series before it commits, so a previous instance restored after a failed reload keeps its series and recorders. - Retire a family only when no remaining registration of the plugin declares it: on re-registration by the same instance (stale families) and on disposal of the owning instance. A changed type, help, label set or bucket list starts the family over at its first new sample, or when the previous instance is disposed after a committed reload. - Document the API in the Prometheus guide and the SDK API field table. Closes openclaw#197880
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
Keep core diagnostics available without exposing plugin-owned metrics. The live registry grants the metrics API only to producers the operator explicitly allows. Co-authored-by: VACInc <[email protected]>
Co-authored-by: VACInc <[email protected]>
Co-authored-by: VACInc <[email protected]>
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
Retain the lifecycle, reload and shared-series regression matrix with an explicit 217-line allocation. Co-authored-by: VACInc <[email protected]>
Co-authored-by: VACInc <[email protected]>
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Merged via explicitly authorized admin squash with attributed pre-existing CI failures.
|
…scrape route (openclaw#198455) * feat(diagnostics-prometheus): let plugins add metric families to the scrape route - Add optional api.metrics.register() for counters, gauges and histograms; it is defined only in the live full registry while a diagnostics exporter plugin (diagnostics-prometheus or diagnostics-otel) is enabled. Only diagnostics-prometheus consumes the families today. - Prefix every family with openclaw_plugin_<plugin id>_ and reject invalid names, labels, buckets and collisions at registration. A histogram also reserves its _bucket, _sum and _count names, within one plugin and across plugins. - Deliver samples through a trusted internalDiagnostics.onPluginMetrics listener; the exporter stores them with no reserve, sharing the existing pool and per-family cap and drop counters. - Admit declarations under the plugin lifecycle authority captured at register(), but deliver samples only while the recording instance is the published one (isPluginRecordActive). A replacement that registers or starts services inside the reload preparation scope cannot record or reset the live instance's series before it commits, so a previous instance restored after a failed reload keeps its series and recorders. - Retire a family only when no remaining registration of the plugin declares it: on re-registration by the same instance (stale families) and on disposal of the owning instance. A changed type, help, label set or bucket list starts the family over at its first new sample, or when the previous instance is disposed after a committed reload. - Document the API in the Prometheus guide and the SDK API field table. Closes openclaw#197880 * feat(plugins): require per-plugin opt-in for exported metrics Keep core diagnostics available without exposing plugin-owned metrics. The live registry grants the metrics API only to producers the operator explicitly allows. Co-authored-by: VACInc <[email protected]> * fix(plugins): retain opted-in metrics recorders across exporter reloads Co-authored-by: VACInc <[email protected]> * test(prometheus): satisfy metrics safety and coverage ratchets Retain the lifecycle, reload and shared-series regression matrix with an explicit 217-line allocation. Co-authored-by: VACInc <[email protected]> * fix(plugins): report invalid metric declarations without coercion Co-authored-by: VACInc <[email protected]> --------- Co-authored-by: VACInc <[email protected]>
Apply hosted file-count bounds during weighted balancing instead of slicing already-balanced stripes into stranded tails. Preserve the 77-row hourly nondist cap, runner and worker limits, time budgets, and complete selected inventory. The scheduled manifest reproduced 78 > 77 after inventory growth in #200967. Expanded GitHub/hybrid regressions and all 174 focused planner tests pass; Codex autoreview is clean. check:changed passes except unrelated main unused exports attributed to #200533, #193550, #198455, and #200817.
Preserve first-chat authorization when catalog persistence opens the selected absent database. Keep session-row, lifecycle, routing, and source-revocation guards intact. The focused bisect identifies #197510 as the first failing first-chat authorization boundary; #199565 had repaired other cold-registration orderings. The deterministic regression is red before this fix. All 66 owning tests and three complete real Gateway reload trials pass; Codex review is clean through P2. check:changed passes every check except nine unused exports reproduced identically on exact main parent 97b03f7 and attributed to #200533, #198455, and #200817. Preserve peer cleanup scope in #201019.
…200966) * perf(agents): materialize selected rows for simple completions * style: satisfy selected completion lint checks * test: bind isolated registry measurement to concrete instances * test: align participant custody with requester ownership Follow #200952: Alice owns sessions she requests even when Bob supplies execution authority. Preserve autonomous agent ownership expectations. All 174 spawn-boundary, child-custody, and provenance tests pass; Codex scoped review is clean. * fix: retain missing-session facts across database creation Preserve first-chat authorization when catalog persistence opens the selected absent database. Keep session-row, lifecycle, routing, and source-revocation guards intact. The focused bisect identifies #197510 as the first failing first-chat authorization boundary; #199565 had repaired other cold-registration orderings. The deterministic regression is red before this fix. All 66 owning tests and three complete real Gateway reload trials pass; Codex review is clean through P2. check:changed passes every check except nine unused exports reproduced identically on exact main parent 97b03f7 and attributed to #200533, #198455, and #200817. Preserve peer cleanup scope in #201019.
…1002) Apply hosted file-count bounds during weighted balancing instead of slicing already-balanced stripes into stranded tails. Preserve the 77-row hourly nondist cap, runner and worker limits, time budgets, and complete selected inventory. The scheduled manifest reproduced 78 > 77 after inventory growth in openclaw#200967. Expanded GitHub/hybrid regressions and all 174 focused planner tests pass; Codex autoreview is clean. check:changed passes except unrelated main unused exports attributed to openclaw#200533, openclaw#193550, openclaw#198455, and openclaw#200817.
…penclaw#200966) * perf(agents): materialize selected rows for simple completions * style: satisfy selected completion lint checks * test: bind isolated registry measurement to concrete instances * test: align participant custody with requester ownership Follow openclaw#200952: Alice owns sessions she requests even when Bob supplies execution authority. Preserve autonomous agent ownership expectations. All 174 spawn-boundary, child-custody, and provenance tests pass; Codex scoped review is clean. * fix: retain missing-session facts across database creation Preserve first-chat authorization when catalog persistence opens the selected absent database. Keep session-row, lifecycle, routing, and source-revocation guards intact. The focused bisect identifies openclaw#197510 as the first failing first-chat authorization boundary; openclaw#199565 had repaired other cold-registration orderings. The deterministic regression is red before this fix. All 66 owning tests and three complete real Gateway reload trials pass; Codex review is clean through P2. check:changed passes every check except nine unused exports reproduced identically on exact main parent 4dca39a and attributed to openclaw#200533, openclaw#198455, and openclaw#200817. Preserve peer cleanup scope in openclaw#201019.
Apply hosted file-count bounds during weighted balancing instead of slicing already-balanced stripes into stranded tails. Preserve the 77-row hourly nondist cap, runner and worker limits, time budgets, and complete selected inventory. The scheduled manifest reproduced 78 > 77 after inventory growth in #200967. Expanded GitHub/hybrid regressions and all 174 focused planner tests pass; Codex autoreview is clean. check:changed passes except unrelated main unused exports attributed to #200533, #193550, #198455, and #200817. Backport to beta.2 preparation; exact reviewed adapted patch. Focused parent proof: 35 tests; nine-file type-aware lint; 18-file format. Tooling typecheck retains the same two pre-existing cron UI errors as baseline. No release qualification. (cherry picked from commit af50b8e) (cherry picked from commit c7ccc5e) Co-authored-by: Vincent Koc <[email protected]> Co-authored-by: RomneyDa <[email protected]>
…200966) * perf(agents): materialize selected rows for simple completions * style: satisfy selected completion lint checks * test: bind isolated registry measurement to concrete instances * test: align participant custody with requester ownership Follow #200952: Alice owns sessions she requests even when Bob supplies execution authority. Preserve autonomous agent ownership expectations. All 174 spawn-boundary, child-custody, and provenance tests pass; Codex scoped review is clean. * fix: retain missing-session facts across database creation Preserve first-chat authorization when catalog persistence opens the selected absent database. Keep session-row, lifecycle, routing, and source-revocation guards intact. The focused bisect identifies #197510 as the first failing first-chat authorization boundary; #199565 had repaired other cold-registration orderings. The deterministic regression is red before this fix. All 66 owning tests and three complete real Gateway reload trials pass; Codex review is clean through P2. check:changed passes every check except nine unused exports reproduced identically on exact main parent 97b03f7 and attributed to #200533, #198455, and #200817. Preserve peer cleanup scope in #201019. (cherry picked from commit 8610cd6) Co-authored-by: RomneyDa <[email protected]>
…penclaw#200966) * perf(agents): materialize selected rows for simple completions * style: satisfy selected completion lint checks * test: bind isolated registry measurement to concrete instances * test: align participant custody with requester ownership Follow openclaw#200952: Alice owns sessions she requests even when Bob supplies execution authority. Preserve autonomous agent ownership expectations. All 174 spawn-boundary, child-custody, and provenance tests pass; Codex scoped review is clean. * fix: retain missing-session facts across database creation Preserve first-chat authorization when catalog persistence opens the selected absent database. Keep session-row, lifecycle, routing, and source-revocation guards intact. The focused bisect identifies openclaw#197510 as the first failing first-chat authorization boundary; openclaw#199565 had repaired other cold-registration orderings. The deterministic regression is red before this fix. All 66 owning tests and three complete real Gateway reload trials pass; Codex review is clean through P2. check:changed passes every check except nine unused exports reproduced identically on exact main parent 97b03f7 and attributed to openclaw#200533, openclaw#198455, and openclaw#200817. Preserve peer cleanup scope in openclaw#201019. (cherry picked from commit 8610cd6) Release adaptation: approved 2026.11.7 models replay; see models-hook-safe-v2/REPORT.md. Co-authored-by: RomneyDa <[email protected]>
Closes #197880
What Problem This Solves
A plugin that wants operator metrics has to serve its own HTTP route, so operators add a second Prometheus scrape job for one Gateway, and that plugin's series skip the exporter's label and series budget.
User Impact
Prometheus still scrapes one authenticated Gateway URL. Core metrics work as before. Plugin metrics are off by default per plugin, even if both Prometheus and the producer plugin are enabled. To publish one plugin’s metrics, explicitly set
plugins.entries.<producer-id>.allowMetrics: true. This setting does not enable the plugin or the exporter, and does not change other plugins. Omitting the setting or setting it tofalsekeeps that plugin’sapi.metricsundefined.Risks:
api.metrics?.run unchanged on older hosts, where the field is absent.register()are dropped, because the exporter service starts after registration. Plugins record from their runtime paths (routes, services, hooks).Why This Change Was Made
#197880 is marked as needing a product decision; this PR is a concrete proposal for that contract, with working code.
api.metricsis a small optional field on the plugin API:openclaw_plugin_<plugin id>_<name>, so a plugin cannot claim another plugin's names. The issue proposed a plugin-chosennamespace; this is the main point for owners to decide.openclaw_prometheus_family_series_dropped_total{family="openclaw_plugin_..."}. Core reserves do not change.capturePluginLifecycleAuthority, captured whenregister()runs), and samples are delivered only while the recording instance is the published one (isPluginRecordActive, the same check the session attachment path uses). There is no separate fence for metrics. A replacement instance can register the same families during a reload, but what it records before the reload commits (fromregister()or a service started in the preparation scope) is dropped and cannot reset the live instance's series. A previous instance that a failed reload resumes keeps its series and recorders without registering again. A family leaves the scrape only when no remaining registration of the plugin declares it: when the same instance registers again without it, or when its owning instance is disposed. When the exporter stops, plugin series reset with the core series.@etzelm/openclaw-memory-hindsight, a memory slot plugin, serves its own Prometheus route (/plugins/hindsight-native/metrics) today, so operators add a second scrape job. With this API it would registerrecall_total,retain_total,recall_skipped_total,retain_queue_replays_total,retain_queue_drops_total(counters),retain_queue_depth(gauge), andrecall_duration_seconds,retain_duration_seconds,recall_injected_memories,recall_injected_chars(histograms), labelled by agent, bank and fixed outcome or reason enums, and drop the route.Owners can accept this shape or redirect it; the registration, namespace and allocation choices are theirs to make.
Admission, delivery and SDK surface details
api.metricsis defined only for the live full registration, and only if the operator opts this producer in. Otherwise it isundefined; optional chaining keeps plugin code compatible. Samples recorded while no exporter listens are dropped._, so two ids can still map to one exported name (a-banda_b, or pluginfoofamilybar_bazand pluginfoo_barfamilybaz). The second registration of such a name throws at load, so the clash is loud but depends on load order. A histogram also reserves its_bucket,_sumand_countnames, so histogramlatand gaugelat_countcannot both register, in one plugin or across plugins (pluginahistogramxblocks plugina_xgaugecount).register()checks names, counter_totalsuffixes, declared label names and histogram buckets, and throws during plugin load on bad input. A sample whose labels differ from the declaration is dropped with one warning per family on the plugin logger. Label values outside the low-cardinality policy ([A-Za-z0-9_.:-], at most 120 characters) are exported asother.register()result is one registration owned by its plugin instance. The first call binds teardown to the instance (lifecycle.onDispose) and captures the instance's lifecycle authority;register()throws when that authority cannot be minted (a disposed, retired or not-yet-published instance outside its own registration). Recorders publish only while their registration is held, the authority still holds and the record is published, so an instance paused by a reload drops samples until it resumes, and an uncommitted replacement's samples (including ones recorded inside the reload preparation scope, where the authority itself still allows calls) are dropped until publication.TYPEblock per name, and a failed replacement never reaches this step.onGatewayWsMetrics,onWorkerRequestMetrics): a new trustedinternalDiagnostics.onPluginMetricslistener, offered only to the trusted diagnostics exporters and bound to the service capability lease. Core keeps no metric values.NonNullable<OpenClawPluginApi["metrics"]>. The SDK surface changes only by the new optionalmetricsfield onOpenClawPluginApiand the optionalonPluginMetricson the service context'sinternalDiagnostics.docs/gateway/prometheus.mdand one row in the SDK overview field table.Evidence
27e80d369930(an unapproved plugin still received the recorder), then passed after the fix. The same operator config covers allowed, denied, and unlisted plugins, including mixed-case plugin IDs.7e78ce7546caremoved that coupling. CI subsequently flagged unsafe reserve-table indexing, mock isolation, test allocation, and two unnecessary conversions. The repair uses an own-key type guard and string diagnostics, and documents the mock’s isolated request scope. The three ratchets passed against the integrated base. The 217-line test allocation covers the 617 net test lines minus the standard 400; it retains distinct regressions for producer opt-in/denial, overlapping registration and retirement, exporter reload, and shared-series limits.Live Gateway upgrade and scrape,
339c12b0edfb5e20efeed381e13aafc01f5650eeOn isolated Linux, the published 2026.11.5 package (
e13cf15, npm integrity verified) ran two fixture plugins. Its own CLI saved one plugin setting, and authenticated requests to that plugin wrote two SQLite rows. Both plugins were enabled, neither had anallowMetricssetting, and the exporter was off. Stopped stable, ran the candidate’s normaldoctor --fix --non-interactivemigration, and started the Gateway built from this exact PR head against the same config, state and plugin databases. The original producer entries, load paths, setting and both rows survived. Nothing opted itself in.allowMetrics: trueonly onallowed-producer; hit both producersopenclaw_plugin_allowed_producer_hits_total 11after a new hit, not a replay of samples while offallowMetricstofalsepnpm build, targeted type-aware lint and the 11 registration/lifecycle tests passed on this head. The 5 exporter tests passed on its parent; the final commit only touched the producer declaration error wording. The fixture used the real Gateway, real HTTP requests and two deterministic local producers, not a production Hindsight deployment. Exact-head CI. No owner sign-off is implied by the proof.Review and CI on this head: ClawSweeper accepted the live and upgrade proof, reported no findings or pre-merge checklist items, and recommends accepting the SDK contract; a maintainer still owns that decision. The lint and baseline-ratchet jobs that failed on the previous head now pass. CI remains blocked: the Discord transcript capture test rejects a native broker socket during setup/cleanup (
unexpected socket destination null:NaN). An unrelated PR hit the identical assertion, and a clean-main reproduction is documented here. The test, broker client and catalog-worker files are byte-identical between that reproduced main parent and this run’s main parent. Our own clean-base run stopped earlier on a temp-directory permission check, so it is not counted as a reproduction. No test guard or CI status was overridden.Original contributor proof (before per-plugin opt-in)
Isolated Gateway (
openclaw.mjs gateway run, token auth,diagnostics-prometheusenabled) with a small standalone fixture plugin that callsapi.metrics?.register(...)and records one counter, gauge and histogram sample per request to its route. Two requests, then one scrape:api.metricsopenclaw_plugin_linesReload through the same Gateway: a manifest fixture whose gauge records which registration served the request. A config edit replaces the plugin; a second edit sets
fail: true, so the replacement'sregister()throws right afterapi.metrics.register(), and the Gateway restores the previous registration (it registers the previous code and config again, "registration 4" in the log). Sample lines per scrape (7 = counter, gauge and 5 histogram lines):jobs_total2, instance 1jobs_total2, instance 1jobs_total1, instance 2jobs_total1, instance 2jobs_total2, instance 4jobs_total2, instance 4The Gateway disposes the previous instance before registering a replacement, so this path re-registers and both revisions keep the families. The other recovery path, a reload that fails early and resumes the paused previous instance without registering it again, is not reachable from a config edit; the "keeps the live instance's families when a reload fails and the instance resumes" test drives it through the real registry, lifecycle authority and
PluginInstancepause/resume, and fails on the previous revision.Scrape lines on this branch
After the failed reload (step 3):
Tests:
src/plugins/plugin-metrics.test.ts(10 tests):api.metricsundefined with no exporter, an explicitly disabled exporter, a scoped registry or discovery mode, and defined with onlydiagnostics-otelon; prefixed samples reach the trusted exporter listener and stop after the lease is revoked; label mismatch drops with one warning and unsafe values becomeother; invalid and colliding families are rejected; histogram_bucket/_sum/_countnames are reserved in one call, in either order, and across plugins in both directions; the same instance registering again retires only its stale family and silences old recorders, and disposal releases the names; a replacement registering during a reload leaves the live instance's family alone, the paused instance drops samples, the failed replacement's disposal retires only its own new family, and the resumed instance records again without a secondregister(); a committed reload hands shared families to the replacement, restarts a relabelled family at its first new sample, and retires only the family the replacement dropped; for agenerationOverlapplugin, a replacement that relabels a family and records from inside its realregister()call and from the real reload preparation scope (withPluginRegistryPreparationScope, where candidate services start) delivers nothing and retires nothing while the live instance keeps recording; a failed replacement leaves the live series intact, and a committed one switches the relabelled family over when the previous instance is disposed; a disposed or older instance cannot register or evict the live family. Registration runs inside the loader's realregister()call with the registry's lifecycle authority. Red on origin/main (Cannot find module './plugin-metrics.js'); on the previous revision of this branch the preparation-scope test fails (expected "vi.fn()" to not be called at all, but actually been called 2 times: the replacement's uncommitted samples retired the live series) and the other 9 pass.extensions/diagnostics-prometheus/src/service.plugin-metrics.test.ts(5 tests): rendered counter, gauge and histogram text; 133 label sets admit 128 and count 5 in the family drop counter; retired families leave the scrape and a re-registered name renders oneTYPEblock; retiring a full family releases its series budget; exporter stop clears plugin series. Red on origin/main (expected Plugin metrics listener to be defined, the exporter never subscribes), green here.pnpm test src/plugins/plugin-metrics.test.ts extensions/diagnostics-prometheus: 8 files, 77 tests pass.pnpm teston the 29src/pluginsfiles forregistry*,api-facades*andservice-diagnostics*: 324 tests pass.pnpm teston the 6src/gateway/server-plugin-reload*files other than the one listed below: 146 tests pass.pnpm teston 926 more files acrosssrc/pluginsandsrc/plugin-sdk: pass, except the failures listed below.update.work-deadline.test.tsandplugin-metadata-state-worker.test.tsfailed once on a heavily loaded host and pass when rerun alone.src/plugins/loader.test.ts,plugin-module-generation.sdk.test.ts,setup-registry.migrations.test.ts,source-checkout-runtime.test.tsandsrc/plugin-sdk/channel-entry-contract.lifecycle.test.ts. The test runner refuses to prepare their built runtime on the test host (it cannot verify separation from a managed Gateway install), so PR CI is their first run.loader.test.tsis the most direct consumer of the registry change.pnpm tsgo:core,tsgo:extensions,tsgo:core:test,tsgo:extensions:test,pnpm build,pnpm check:docs,pnpm plugin-sdk:check-exports, and format check on the touched files: pass.pnpm plugin-sdk:api:diff --base <origin/main> --head <this branch>: passes with no export added or removed; 11 reachable declarations changed (the optionalmetricsfield, the optionalonPluginMetricslistener and the new metric types they reference). Acknowledgement digestfa187f0a(against origin/mainf3957e8653e).Not caused by this change, same result on origin/main:
pnpm lint: fails on findings in unrelated files (13max-lineserrors among them); the finding list is identical on origin/main.pnpm plugin-sdk:surface:check: fails with the same four budget counts on origin/main (entrypoints 163 > 162, exports 3888 > 3867, callable exports 2243 > 2236, wildcard re-exports 1 > 0). This branch adds no SDK export names.src/plugins/plugin-preparation-exec-argv.test.tsfails on origin/main too, with a Darwin descriptor ACL error from the test host.src/gateway/server-plugin-reload.installed-package.test.ts("loads installed package roots and retains a sibling with empty runtime conf...") fails the same way on origin/mainf3957e8653e.bundled-plugin-icons.test.ts(noextensions/celeris/assets/icon.pngon origin/main),bundled-plugin-categories.test.ts(perplexitycategory) andplugin-sdk-deprecated-imports.test.tsfail the same way on origin/main; this branch touches none of their inputs.