Skip to content

perf(doctor): keep bundled doctor contract closures dependency-light - #120698

Merged
steipete merged 2 commits into
mainfrom
claude/eager-ishizaka-8cf794
Aug 9, 2026
Merged

steipete merged 2 commits into
mainfrom
claude/eager-ishizaka-8cf794

Conversation

@steipete

@steipete steipete commented Aug 8, 2026

Copy link
Copy Markdown
Contributor

What Problem This Solves

Doctor contract enumeration (src/plugins/doctor-contract-registry.ts) cold-loads each declaring plugin's doctor-contract-api closure via jiti. After #120678 introduced the dependency-light openclaw/plugin-sdk/runtime-doctor-migrations subpath, ~40 bundled plugin doctor closures still statically value-imported the heavy openclaw/plugin-sdk/runtime-doctor barrel, which pulls the state-db/kysely graph (~500 modules). Measured through the same jiti loader path enumeration uses, cold-loading runtime-doctor costs ~4.3s versus ~72ms for runtime-doctor-migrations — paid per plugin during listPluginDoctorLegacyConfigRules / listPluginDoctorStateMigrationEntries.

Why This Change Was Made

  • Migrate every doctor-contract closure (and other light importers, 66 files) that only uses migration-define helpers to openclaw/plugin-sdk/runtime-doctor-migrations.
  • extensions/voice-call/doctor-contract-api.ts genuinely needs detectOpenClawStateDatabaseSchemaMigrations / repairOpenClawStateDatabaseSchema: those now load via await import inside the async migration bodies, keeping only a type-only static runtime-doctor import, so enumeration never touches the state-db graph while real doctor runs pay the cost exactly when repairing.
  • The matrix closure reached createPluginStateSyncKeyedStore through src/matrix/credentials-read.ts. The pure credential record shapes/normalizers moved to a new credentials-state.ts; credentials-read.ts keeps the store-backed functions (openMatrixCredentialsStore, loadMatrixCredentials, clearMatrixCredentials, credentialsMatchConfig) and all callers were repointed in the same change — no compat re-exports.
  • src/plugins/doctor-contract-closure-guard.test.ts now carries a specifier→reason map and forbids static value imports of openclaw/plugin-sdk/runtime-doctor in doctor closures alongside the existing agent-runtime rule (type-only and lazy dynamic imports stay allowed).

Intentionally unchanged heavy value users outside enumeration closures: extensions/matrix/auth-presence.ts, extensions/matrix/src/doctor.ts, extensions/matrix/src/matrix/credentials-read.ts, extensions/qa-lab/src/suite-runtime-flow.ts.

Known follow-up (out of scope here, tracked separately): several closures remain multi-second heavy through other barrels — codex/msteams/zalouser via openclaw/plugin-sdk/session-store-runtime (→ session-accessor → kysely) and matrix via openclaw/plugin-sdk/logging-core (→ diagnostic → config → kysely); discord/slack/llm-task/reef/memory-* chains still need tracing.

User Impact

openclaw doctor and any flow enumerating plugin doctor contracts loads far fewer modules per plugin; light closures now enumerate in ~100–300ms cold instead of multi-second state-db graph loads. No behavior change to migrations themselves.

Evidence

  • Guard: node scripts/run-vitest.mjs src/plugins/doctor-contract-closure-guard.test.ts — 2 tests pass; before extending it, the new rule caught the matrix credentials-read edge, which drove the split.
  • Focused tests: all 19 modified/affected test files (matrix credentials/accounts/client, voice-call, codex, msteams, zalouser, reef, qqbot state-migrations, memory-core migration, etc.) green across 12 Vitest shards.
  • Typecheck: pnpm tsgo:core, pnpm tsgo:extensions, pnpm check:test-types clean; oxfmt --check and scripts/run-oxlint.mjs clean on all 74 changed files.
  • Timing (jiti loader, fresh process): runtime-doctor cold load 4333ms vs runtime-doctor-migrations 72ms; per-plugin fresh-process enumeration of light plugins (anthropic, qqbot, telegram, clickclack, copilot, …) now ~100–300ms with require.cache free of kysely.
  • Codex autoreview (gpt-5.6-sol, high) on the full bundle: clean, no accepted/actionable findings.

Doctor contract enumeration cold-loads each plugin's doctor-contract-api
closure via jiti, so a static value import of openclaw/plugin-sdk/runtime-doctor
pulled the state-db/kysely graph (~4.3s per closure) into
listPluginDoctorLegacyConfigRules / listPluginDoctorStateMigrationEntries.

- migrate all light doctor-contract closures (66 files) to the
  dependency-light openclaw/plugin-sdk/runtime-doctor-migrations subpath
- voice-call: load detect/repairOpenClawStateDatabaseSchema* lazily inside
  the migration bodies; keep only a type-only static runtime-doctor import
- matrix: split pure credential record shapes/normalizers into
  credentials-state.ts so the doctor closure no longer imports the sync
  plugin-state store through credentials-read
- guard: doctor-contract-closure-guard.test.ts now forbids static value
  imports of runtime-doctor in closures alongside agent-runtime
@steipete
steipete marked this pull request as ready for review August 8, 2026 20:43
@openclaw-barnacle openclaw-barnacle Bot added channel: discord Channel integration: discord channel: googlechat Channel integration: googlechat channel: imessage Channel integration: imessage channel: matrix Channel integration: matrix channel: mattermost Channel integration: mattermost channel: msteams Channel integration: msteams channel: nextcloud-talk Channel integration: nextcloud-talk channel: nostr Channel integration: nostr channel: signal Channel integration: signal channel: slack Channel integration: slack channel: telegram Channel integration: telegram channel: voice-call Channel integration: voice-call channel: whatsapp-web Channel integration: whatsapp-web channel: zalouser Channel integration: zalouser extensions: llm-task Extension: llm-task extensions: memory-core Extension: memory-core extensions: memory-lancedb Extension: memory-lancedb channel: feishu Channel integration: feishu extensions: device-pair channel: irc extensions: acpx extensions: anthropic channel: qqbot extensions: memory-wiki extensions: codex extensions: deepinfra extensions: google extensions: ollama labels Aug 8, 2026
Knip production scan flags the export as consumer-less; the type is only
referenced by the exported union and revocation guard signature.
@clawsweeper clawsweeper Bot added 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. P2 Normal backlog priority with limited blast radius. labels Aug 8, 2026
@clawsweeper

clawsweeper Bot commented Aug 8, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 8, 2026, 5:45 PM ET / 21:45 UTC.

ClawSweeper review

What this changes

The PR routes lightweight plugin doctor-contract code through a focused SDK entrypoint, defers Voice Call database helpers until migrations run, and extracts Matrix credential normalization from state-store access to reduce doctor enumeration cost.

Merge readiness

⚠️ Ready for maintainer review - 4 items remain

Keep open. This is a coherent maintainer-owned follow-up to the merged doctor-loading refactor; the inspected loader, SDK seam, Matrix split, and Voice Call lazy boundary show no actionable defect, but final exact-head validation remains a maintainer decision.

Priority: P2
Reviewed head: 7e61776926f2a7eaf080764897a8a2812000eb49
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The inspected patch is a focused, guarded dependency-boundary improvement with green reported CI and no actionable defect found.
Proof confidence 🌊 off-meta tidepool Not applicable: This maintainer-owned internal performance refactor is exempt from the external-contributor proof gate; reported terminal timing and focused checks remain useful merge evidence.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This maintainer-owned internal performance refactor is exempt from the external-contributor proof gate; reported terminal timing and focused checks remain useful merge evidence.
Evidence reviewed 6 items Registry owner boundary: Current main loads only manifest-declared doctor contract modules, so replacing static heavy imports at those closures addresses the actual enumeration path.
Focused SDK contract: The lightweight migration subpath exports migration helpers while the heavy doctor barrel retains state database and store value exports.
Preserved Matrix and Voice Call behavior: Matrix store I/O remains in credentials-read while pure credential records move to credentials-state; Voice Call dynamically imports heavy database helpers only inside async migration execution.
Findings None None.
Security None None.

How this fits together

The doctor registry reads bundled plugin manifests and loads each declared contract closure before running diagnostics or migrations. Those closures supply migration definitions that doctor then uses to inspect and repair plugin configuration and state.

flowchart LR
  A[Plugin manifests] --> B[Doctor contract registry]
  B --> C[Contract closure loading]
  C --> D[Migration definitions]
  D --> E[Doctor diagnostics and repairs]
Loading

Decision needed

Question Recommendation
After rebase, is the exact-head doctor-contract build and enumeration evidence sufficient to land this maintainer-owned performance refactor, including the type-only Codex extension slice? Refresh exact-head proof: Rebase, run the guard plus built contract-enumeration/timing proof, and complete the required Codex source check before landing.

Why: The patch has no concrete correctness finding, but the required sibling Codex source is unavailable in this review environment and the performance evidence was reported rather than independently replayed.

Before merge

  • Resolve merge risk (P1) - The branch is behind main, so the final decision should use the merge result and exact-head build/contract-enumeration checks.
  • Resolve merge risk (P1) - The review environment lacks sibling ../codex; the Codex extension change is type-only, but repository policy requires that source inspection before a Codex-specific proof-sufficient or merge recommendation.
  • Complete next step (P2) - The remaining action is maintainer acceptance of exact-head performance and Codex-slice validation, not an automated code repair.
Agent review details

Security

None.

PR surface

Source +21, Tests +13. Total +34 across 74 files.

View PR surface stats
Area Files Added Removed Net
Source 55 161 140 +21
Tests 19 40 27 +13
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 74 201 167 +34

Review metrics

Metric Value Why it matters
Production versus test LOC production +161/-140; tests +40/-27 The small net production growth is justified by separating pure Matrix credential state from heavy store access, which removes a cold-load dependency edge.

Stored data model

Persistent data-model change detected: migration/backfill/repair: extensions/acpx/doctor-contract-api.test.ts, migration/backfill/repair: extensions/acpx/doctor-contract-api.ts, migration/backfill/repair: extensions/active-memory/doctor-contract-api.test.ts, migration/backfill/repair: extensions/active-memory/doctor-contract-api.ts, migration/backfill/repair: extensions/anthropic/doctor-contract-api.ts, migration/backfill/repair: extensions/canvas/doctor-contract-api.test.ts, and 63 more. Confirm migration or upgrade compatibility proof before merge.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Rebase onto current main, retain the focused guard and built enumeration timing evidence on the resulting head, and land the existing owner-boundary refactor if those checks remain green.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best possible solution:

Rebase onto current main, retain the focused guard and built enumeration timing evidence on the resulting head, and land the existing owner-boundary refactor if those checks remain green.

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

Not applicable: this is a performance and dependency-boundary refactor, not a reported user failure; the registry load path and dependency edges are source-verified.

Is this the best way to solve the issue?

Yes, subject to exact-head proof: using the existing focused SDK seam and moving only pure Matrix state out of the store-backed module is the narrowest maintainable solution.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add P2: This is a bounded performance improvement to doctor and startup migration enumeration without evidence of an urgent user-facing regression.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This maintainer-owned internal performance refactor is exempt from the external-contributor proof gate; reported terminal timing and focused checks remain useful merge evidence.

Label justifications:

  • P2: This is a bounded performance improvement to doctor and startup migration enumeration without evidence of an urgent user-facing regression.
  • 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-owned internal performance refactor is exempt from the external-contributor proof gate; reported terminal timing and focused checks remain useful merge evidence.

Evidence

What I checked:

Likely related people:

  • steipete: Introduced the preceding merged doctor-contract refactor and authored the current performance follow-up. (role: recent area contributor; confidence: high; commits: da4a656cdbac, 4934571565bf, 7e61776926f2; files: src/plugins/doctor-contract-registry.ts, src/plugin-sdk/runtime-doctor-migrations.ts, extensions/voice-call/doctor-contract-api.ts)
  • Gustavo Madeira Santana: History attributes the Matrix credential runtime isolation that this PR preserves while extracting the pure state helpers. (role: original Matrix credential-runtime contributor; confidence: medium; commits: f4f0b171d3; files: extensions/matrix/src/matrix/credentials-read.ts, extensions/matrix/src/matrix/credentials-state.ts)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Rebase and preserve exact-head built contract-enumeration and guard evidence before merge.

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.

@steipete

steipete commented Aug 9, 2026

Copy link
Copy Markdown
Contributor Author

Pre-merge verification (head 7e61776926f2a7eaf080764897a8a2812000eb49):

  • Exact-head CI green: run 31277781485 (the prior head's check-dependencies knip failure was fixed by making MatrixCredentialRevocationRecord module-local in extensions/matrix/src/matrix/credentials-state.ts).
  • Local proof: node scripts/run-vitest.mjs src/plugins/doctor-contract-closure-guard.test.ts plus all 19 modified/affected test files (12 shards green); pnpm tsgo:core, pnpm tsgo:extensions, pnpm check:test-types, pnpm deadcode:full, oxfmt --check, scripts/run-oxlint.mjs all clean. Timing through the jiti loader path: runtime-doctor cold load 4333ms vs runtime-doctor-migrations 72ms; per-plugin fresh-process enumeration of migrated closures now ~100–300ms with no kysely in require.cache. Codex autoreview (high) clean.
  • ClawSweeper P1 (Codex source gate): inspected sibling ../codex at 3b36665 — codex-rs/app-server-protocol/src/protocol/common.rs (ThreadId plain-string serialization tests) and rpc.rs. The touched extensions/codex/src/migration/session-binding-sidecars.ts migrates OpenClaw-owned .codex-app-server.json sidecars into the app-server-thread-bindings plugin-state namespace; no Codex protocol shape is produced or consumed differently — the change is an SDK import-specifier swap plus the guard.
  • ClawSweeper P1 (branch behind main) / Rank-up move (rebase for exact-head merge evidence): skipped per repo policy — merge drift is advisory, GitHub blocks real conflicts, and scripts/pr prepare-run validates the merge result; no behavioral overlap with the commits main gained since branch-off.
  • Known proof gap: none for the changed surface. Remaining heavy closure edges (session-store-runtime, logging-core) are intentionally out of scope and tracked as a follow-up task.

@steipete
steipete merged commit 8cb53c7 into main Aug 9, 2026
126 checks passed
@steipete
steipete deleted the claude/eager-ishizaka-8cf794 branch August 9, 2026 00:51
@steipete

steipete commented Aug 9, 2026

Copy link
Copy Markdown
Contributor Author

Merged via squash.

vincentkoc added a commit that referenced this pull request Aug 9, 2026
Punchcard-Session: amber-workshop-workshop-36

* origin/main: (28 commits)
  perf(doctor): keep bundled doctor contract closures dependency-light (#120698)
  fix(elevenlabs): preserve repeated committed speech segments (#120792)
  fix(ai): fence Responses replay metadata (#120777)
  fix(ai): invalidate stale compaction replay (#120786)
  fix(telegram): clean up every failed webhook startup phase (#120788)
  fix(codex): preserve configured MCP tools in scheduled turns (#120366)
  fix(ui): show dev checkout commit lag in Updates (#120769)
  fix(agents): repair XML-polluted tool names (#113814)
  fix(discord): remove only the bot own reactions (#120785)
  fix(macos): complete ChatGPT subscription setup (#120782)
  fix(plugins): surface safe administrator install warnings (#120783)
  fix(release): keep upgrade survivor sessions fresh (#120778)
  fix(providers): preserve realtime tool-result delivery ownership (#120776)
  fix(plugins): retain incognito scope for embedded session ownership (#120215)
  fix(elevenlabs): surface realtime provider error events (#120772)
  fix(agents): preserve exact steering delivery ownership (#120770)
  fix(telegram): prevent session-count routing slowdown (#120774)
  fix(agents): preserve authoritative background process outcomes (#120754)
  test(process): make Linux adapter wiring portable (#120741)
  fix(diagnostics-prometheus): send Content-Length on metrics HEAD responses (#120212)
  ...
steipete added a commit that referenced this pull request Aug 9, 2026
* perf(doctor): slim remaining heavy doctor contract closures

Follow-up to #120698: several doctor closures still cold-loaded multi-second
kysely-bearing graphs through other broad barrels (session-store-runtime,
realtime-voice, channel-outbound, logging-core, memory-host-core/-events,
sqlite-runtime, persistent-dedupe, and plugin-local barrels).

- lazy-import heavy helpers inside async migration bodies (codex, msteams,
  zalouser, workboard, matrix inbound-dedupe, memory-core migrations)
- bypass plugin-local barrels to defining modules (reef protocol,
  memory-core short-term-promotion)
- move to lighter existing subpaths (slack -> channel-streaming, matrix
  logger -> security-runtime, memory-wiki -> agent-scope-runtime, which now
  also exports resolveSessionAgentId)
- add narrow openclaw/plugin-sdk/realtime-voice-activation for discord's
  sync wake-name doctor rules
- split src/infra/kysely-sync-cache-state.ts so sqlite-transaction clears
  Kysely caches without value-loading kysely; split the memory-host-sdk
  kysely bridge off the schema/transaction bridge
- guard: forbid the heavy barrels in doctor closures with per-kind scoping

Cold enumeration per plugin: discord 52.6s->0.3s, msteams 30.9s->0.5s,
codex 29.6s->2.6s, zalouser 28.8s->2.3s, matrix 27.2s->3.2s,
slack 17.5s->1.5s, reef 9.9s->0.7s, memory-core 6.4s->3.6s,
workboard 3.4s->0.25s; all kysely-free except llm-task (named follow-up).

* fix(plugins): route slack streaming compat through a focused streaming-config subpath

The channel-streaming compat barrel is deprecated for extension production
code (deprecated-api-usage guard + SDK package contract). Add the narrow
non-deprecated openclaw/plugin-sdk/channel-streaming-config subpath for the
pure streaming config readers, and drop the now consumer-less
short-term-promotion barrel re-exports knip flagged.

* test(plugins): register memory-host-sdk kysely bridge in package boundary inventory

* fix(plugins): classify realtime-voice-activation as private-local

ClawSweeper P2: the subpath exports only a default target, which is the
private-local shape; register it in plugin-sdk-private-local-only-subpaths,
the package-boundary d.ts alias maps, and correct the public surface budgets
(realtime-voice-activation no longer counts as public).

* fix(release): exclude realtime-voice-activation declarations from the published package

Private-local subpaths ship without d.ts; register the files negation the
release pack-path check requires.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 9, 2026
…penclaw#120698)

* perf(doctor): keep bundled doctor contract closures dependency-light

Doctor contract enumeration cold-loads each plugin's doctor-contract-api
closure via jiti, so a static value import of openclaw/plugin-sdk/runtime-doctor
pulled the state-db/kysely graph (~4.3s per closure) into
listPluginDoctorLegacyConfigRules / listPluginDoctorStateMigrationEntries.

- migrate all light doctor-contract closures (66 files) to the
  dependency-light openclaw/plugin-sdk/runtime-doctor-migrations subpath
- voice-call: load detect/repairOpenClawStateDatabaseSchema* lazily inside
  the migration bodies; keep only a type-only static runtime-doctor import
- matrix: split pure credential record shapes/normalizers into
  credentials-state.ts so the doctor closure no longer imports the sync
  plugin-state store through credentials-read
- guard: doctor-contract-closure-guard.test.ts now forbids static value
  imports of runtime-doctor in closures alongside agent-runtime

* fix(matrix): keep credential revocation record type module-local

Knip production scan flags the export as consumer-less; the type is only
referenced by the exported union and revocation guard signature.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 9, 2026
…#120811)

* perf(doctor): slim remaining heavy doctor contract closures

Follow-up to openclaw#120698: several doctor closures still cold-loaded multi-second
kysely-bearing graphs through other broad barrels (session-store-runtime,
realtime-voice, channel-outbound, logging-core, memory-host-core/-events,
sqlite-runtime, persistent-dedupe, and plugin-local barrels).

- lazy-import heavy helpers inside async migration bodies (codex, msteams,
  zalouser, workboard, matrix inbound-dedupe, memory-core migrations)
- bypass plugin-local barrels to defining modules (reef protocol,
  memory-core short-term-promotion)
- move to lighter existing subpaths (slack -> channel-streaming, matrix
  logger -> security-runtime, memory-wiki -> agent-scope-runtime, which now
  also exports resolveSessionAgentId)
- add narrow openclaw/plugin-sdk/realtime-voice-activation for discord's
  sync wake-name doctor rules
- split src/infra/kysely-sync-cache-state.ts so sqlite-transaction clears
  Kysely caches without value-loading kysely; split the memory-host-sdk
  kysely bridge off the schema/transaction bridge
- guard: forbid the heavy barrels in doctor closures with per-kind scoping

Cold enumeration per plugin: discord 52.6s->0.3s, msteams 30.9s->0.5s,
codex 29.6s->2.6s, zalouser 28.8s->2.3s, matrix 27.2s->3.2s,
slack 17.5s->1.5s, reef 9.9s->0.7s, memory-core 6.4s->3.6s,
workboard 3.4s->0.25s; all kysely-free except llm-task (named follow-up).

* fix(plugins): route slack streaming compat through a focused streaming-config subpath

The channel-streaming compat barrel is deprecated for extension production
code (deprecated-api-usage guard + SDK package contract). Add the narrow
non-deprecated openclaw/plugin-sdk/channel-streaming-config subpath for the
pure streaming config readers, and drop the now consumer-less
short-term-promotion barrel re-exports knip flagged.

* test(plugins): register memory-host-sdk kysely bridge in package boundary inventory

* fix(plugins): classify realtime-voice-activation as private-local

ClawSweeper P2: the subpath exports only a default target, which is the
private-local shape; register it in plugin-sdk-private-local-only-subpaths,
the package-boundary d.ts alias maps, and correct the public surface budgets
(realtime-voice-activation no longer counts as public).

* fix(release): exclude realtime-voice-activation declarations from the published package

Private-local subpaths ship without d.ts; register the files negation the
release pack-path check requires.
steipete added a commit that referenced this pull request Aug 9, 2026
…ility transitively

Follow-up to #120698/#120811/#120882: the closure guard's enumerated barrel
bans cannot catch new heavy edges, and two closures still statically reached
kysely on main.

- guard: add a transitive kysely-reachability test that walks static value
  imports from every doctor-contract and legacy-setup closure through plugin,
  plugin-sdk, and relative core graphs, failing with the full import chain;
  type-only and lazy dynamic imports stay allowed
- llm-task/model refs: manifest-model-id-normalization reads snapshots
  through a registration-slot runtime bridge (snapshot modules register at
  eval; require fallback covers cold processes) and
  current-plugin-metadata-state moves its process-scoped facts onto a
  globalThis singleton so dual module instances share published state
- telegram: split thread-bindings-store.ts (pure record shapes + legacy-file
  readers) out of the acp-runtime-heavy manager, delete the consumer-less
  testing export, move the pure bot-user-id token parse to
  token-fingerprint.ts, and lazy-import token.js in the async update-offset
  detector

llm-task enumeration drops to ~0.8s/157 modules cold; every closure is now
statically kysely-free and stays that way by construction.
steipete added a commit that referenced this pull request Aug 9, 2026
…uard it transitively (#120876)

* perf(plugins): close the last kysely closure chains and guard reachability transitively

Follow-up to #120698/#120811/#120882: the closure guard's enumerated barrel
bans cannot catch new heavy edges, and two closures still statically reached
kysely on main.

- guard: add a transitive kysely-reachability test that walks static value
  imports from every doctor-contract and legacy-setup closure through plugin,
  plugin-sdk, and relative core graphs, failing with the full import chain;
  type-only and lazy dynamic imports stay allowed
- llm-task/model refs: manifest-model-id-normalization reads snapshots
  through a registration-slot runtime bridge (snapshot modules register at
  eval; require fallback covers cold processes) and
  current-plugin-metadata-state moves its process-scoped facts onto a
  globalThis singleton so dual module instances share published state
- telegram: split thread-bindings-store.ts (pure record shapes + legacy-file
  readers) out of the acp-runtime-heavy manager, delete the consumer-less
  testing export, move the pure bot-user-id token parse to
  token-fingerprint.ts, and lazy-import token.js in the async update-offset
  detector

llm-task enumeration drops to ~0.8s/157 modules cold; every closure is now
statically kysely-free and stays that way by construction.

* fix(telegram): repoint the native-command menu state at the token-fingerprint parser
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 10, 2026
…uard it transitively (openclaw#120876)

* perf(plugins): close the last kysely closure chains and guard reachability transitively

Follow-up to openclaw#120698/openclaw#120811/openclaw#120882: the closure guard's enumerated barrel
bans cannot catch new heavy edges, and two closures still statically reached
kysely on main.

- guard: add a transitive kysely-reachability test that walks static value
  imports from every doctor-contract and legacy-setup closure through plugin,
  plugin-sdk, and relative core graphs, failing with the full import chain;
  type-only and lazy dynamic imports stay allowed
- llm-task/model refs: manifest-model-id-normalization reads snapshots
  through a registration-slot runtime bridge (snapshot modules register at
  eval; require fallback covers cold processes) and
  current-plugin-metadata-state moves its process-scoped facts onto a
  globalThis singleton so dual module instances share published state
- telegram: split thread-bindings-store.ts (pure record shapes + legacy-file
  readers) out of the acp-runtime-heavy manager, delete the consumer-less
  testing export, move the pure bot-user-id token parse to
  token-fingerprint.ts, and lazy-import token.js in the async update-offset
  detector

llm-task enumeration drops to ~0.8s/157 modules cold; every closure is now
statically kysely-free and stays that way by construction.

* fix(telegram): repoint the native-command menu state at the token-fingerprint parser
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

channel: discord Channel integration: discord channel: feishu Channel integration: feishu channel: googlechat Channel integration: googlechat channel: imessage Channel integration: imessage channel: irc channel: matrix Channel integration: matrix channel: mattermost Channel integration: mattermost channel: msteams Channel integration: msteams channel: nextcloud-talk Channel integration: nextcloud-talk channel: nostr Channel integration: nostr channel: qqbot channel: reef Channel integration: reef channel: signal Channel integration: signal channel: slack Channel integration: slack channel: telegram Channel integration: telegram channel: voice-call Channel integration: voice-call channel: whatsapp-web Channel integration: whatsapp-web channel: zalouser Channel integration: zalouser extensions: acpx extensions: anthropic extensions: codex extensions: copilot extensions: deepinfra extensions: device-pair extensions: google extensions: llm-task Extension: llm-task extensions: memory-core Extension: memory-core extensions: memory-lancedb Extension: memory-lancedb extensions: memory-wiki extensions: ollama extensions: xai maintainer Maintainer-authored PR P2 Normal backlog priority with limited blast radius. plugin: cua-computer plugin: workboard rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: M 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