Skip to content

fix(plugins): portable plugin-state keys for PostgreSQL - #188693

Merged
steipete merged 3 commits into
mainfrom
pgprep/pgnulkeys
Oct 30, 2026
Merged

steipete merged 3 commits into
mainfrom
pgprep/pgnulkeys

Conversation

@steipete

@steipete steipete commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

Refs #184862 #188642

What Problem This Solves

Plugin Doctor migrations can fail while paging existing state on PostgreSQL because the next-page cursor appends NUL to the previous key.

User Impact

Doctor can continue through existing plugin state on PostgreSQL, including keys that share the previous key's prefix. Plugin test fixtures catch new NUL-containing registration keys before those writes reach PostgreSQL. Existing SQLite legacy-key reads and adoption remain supported.

Why This Change Was Made

The persisted-key sweep found one additional affected core API: Doctor's bounded range reader manufactures after + "\0", which reaches assertPluginStateKey and throws PLUGIN_STATE_INVALID_INPUT. Its consumers include Codex binding repair, Telegram offset migration, and Matrix replay-guard migration. The private selector now uses an exclusive SQL lower bound for Doctor continuation pages. No stored keys need rewriting and no public API, schema, retention, or authority policy changes.

The test SDK rejects NUL on registration only, including synchronous and action-bound stores. It keeps the original store objects so native read/operation bindings retain their identity. Deliberate legacy SQLite fixtures seed via the existing Doctor import helper; reads, consumption, and production SQLite validation are unchanged.

The iMessage owner already uses the portable hash and bounded adoption pattern from #184919 / 9b05a64eff6f. ClickClack's revoked-channel owner was fixed in #188643 and is untouched here. Its binding-store NUL key is only an in-memory reverse index.

Evidence

The original real PostgreSQL 17.11 regression failed with PLUGIN_STATE_INVALID_INPUT on Doctor's second page. The fix passed the same test, preserving binding:a0 after binding:a, and the existing iMessage PostgreSQL regression. The source inventory below is pinned to the original investigation snapshot.

Rebased onto main containing #188643 (59059122) and the idle-backend reuse fix (d107cb81). The earlier canonical-revocation test correction is already on main and drops out of this diff. The production patch is byte-for-byte unchanged; the maintainer's REVIEW-OK carries forward. The new ClickClack legacy fixture now seeds through the existing Doctor import helper, preserving its real NUL key and fail-closed/adoption assertions. The test allocation is 166 lines: 11 lines formerly deleted by the now-redundant hunk, plus six lines for this explicit legacy seed, account for the increase from 149.

Fresh local proof: 23 core plugin-state runtime tests, 11 iMessage tests, and 22 ClickClack persistence tests passed. The ClickClack fixture first failed with PLUGIN_STATE_INVALID_INPUT from normal registration, then passed after switching only the seed to Doctor import. Both real PostgreSQL conformance files passed (2 tests, 262.91 seconds). The full ClickClack replay passed 22 tests in 116.46 seconds.

The test-line check reports 6,313,566 lines against a 6,312,524 ceiling: the existing main overage remains exactly 1,042 lines. This PR adds 166 test lines and exactly 166 allocation credit; it does not absorb the inherited excess. Formatting passes. Targeted extension lint passes.

node scripts/run-vitest.mjs src/plugin-state/plugin-state-store.runtime.test.ts \
  extensions/imessage/src/monitor/recovery-cursor.test.ts \
  extensions/imessage/src/monitor/catchup-startup.test.ts \
  extensions/clickclack/src/discussions/service-state-persistence.test.ts --maxWorkers=1
node scripts/test-database-conformance.mjs --engine postgres \
  --connection "$TEST_PG_URL" -- \
  src/infra/state-migrations.plugin-doctor-context.postgres.test.ts \
  extensions/imessage/src/monitor/recovery-cursor.postgres.test.ts --maxWorkers=1

Independent isolated Codex review of the original complete patch found no actionable P0–P2 issues. The allocation correction was independently reviewed with no actionable P0–P2 findings. The six-line legacy-fixture correction was also independently reviewed with no actionable P0–P2 findings. Simplification keeps the existing private selector as the single owner of exclusive comparison; no new store, migration, cache, or public option.

Exact-head CI: run 41138522684 completed on b3eae5650e975c6750c09a9c80fb9c5ab23bb9b6; all three PostgreSQL conformance shards and security-fast passed. The sole root failure is checks-fast-baseline-ratchets: its test-line count is 6,313,738 against 6,312,704, an excess of 1,034. The tested main parent already has that same 1,034-line excess; this PR contributes exactly 166 lines and 166 allocation credit. Scheduled main records the existing excess but passes because its delta is zero; two subsequent main test-line deletions account for its 1,036 versus 1,034 difference. All other ratchets passed. The unchanged checker/baseline, exact checkout, logs, and byte-count proof are retained for native inherited-failure qualification. The failed overall CI result is not represented as green.

NUL inventory: construction, persistence trace, and classification

The constructor inventory contains 675 locations across 457 files: 534 core locations and 141 extension locations. Full per-location tables: core 1/3, core 2/3, core 3/3, extensions.

Scope: runtime source under extensions/ and src/; searched escaped NUL forms (\\0, \\u0000, \\x00, \\u{0}), zero codepoint constructors, and raw NUL bytes. Validators, test fixtures, generated renderer assets, and process/file protocols were distinguished from runtime key constructors. No source contained literal raw NUL bytes. The broad lexical census was 762 matched lines in 495 core runtime files, plus 231 lines in 154 extension files outside separately inspected iMessage/ClickClack (these counts include validators and protocol readers, not just key constructors).

Persisted boundaries and the additional failure

Source Trace to storage Result
src/plugin-state/plugin-state-store.sqlite.ts, Doctor after + NUL createPluginDoctorStateMigrationContext.readPluginStateEntriesInKeyRange → private SQL range selector → PostgreSQL key assertion Fixed: NUL was a query operand, not a stored row. Exclusive SQL comparison preserves continuation semantics without manufacturing a key.
extensions/clickclack/src/discussions/revoked-channel-store.ts revokedChannelKey → observe/register/compareAndApply/lookup/delete Already fixed in #188643; untouched here.
extensions/imessage/src/monitor/recovery-cursor.ts Old (account, database) key; current SHA-256 of JSON pair → lookup/register; bounded entries listing discovers old keys before consume Already fixed in #184919. Remaining NUL constructor is legacy adoption only.
extensions/clickclack/src/discussions/service-open.ts, binding-generation.ts destinationIdentity → JSON value in generation record, keyed by session key Persisted safely as escaped JSON text. Raw NUL never enters SQL text.
src/agents/subagents/registry/subagent-registry-lifecycle-wake.ts NUL wake scope → JSON.stringify(["subagent-settle-rejected", scope]) → persisted idempotency key Persisted safely as JSON encoding.
src/infra/session-sqlite-transcript-verification.ts; src/config/sessions/legacy-transcript-repair.ts NUL identity/comparison key → import-stage seen/stripped_key SQL columns Intentionally SQLite-only disposable spool. Never registered as a runtime store, resumed, or routed to PG.
extensions/matrix/src/matrix/monitor/inbound-dedupe-migration.ts Legacy value.key.split(NUL) → separate ingress fields Read-only legacy parsing. Current keys hash their components.

Extension constructors that do not persist raw NUL

All paths below are relative to extensions/. Related construction sites are grouped only when they have the same sink.

Source Trace / classification
clickclack/src/discussions/binding-store.ts:96 channelKey → sessionByChannel / channelBySession Maps only. Durable store operations use sessionKey. In-memory.
clickclack/src/discussions/naming.ts Composite identities → shortSessionHash → durable session/external IDs. Hash-only.
telegram/src/topic-name-cache.ts:38 Account scope → singleton Map and SHA-256 namespace; stored keys are chatId:threadId. Map/hash-only.
telegram/src/sent-message-cache.ts:118; thread-bindings-store.ts:57 SHA-256 → store register/lookup. Hash-only.
telegram/src/bot-message-dispatch-session.ts:25 Session-dispatch cache. Map-only.
browser/src/browser/session-tab-identity.ts:47; session-tab-process-state.ts:25; session-tab-ephemeral-aliases.ts:17 Cold activity / operation queues / aliases. Persisted tab key is separately SHA-256(JSON). Map/queue-only.
browser/src/browser/pw-role-snapshot.ts:53; extension-install-layout.ts:433,444 Snapshot Set and local unique-sort Map returning original values. In-memory.
anthropic/session-catalog-adoption.ts:7; session-catalog.ts:278 Adopted-source Map / core adoption coordinator queue; durable adopted session key is hashed. Map/hash-only.
anthropic/session-catalog-discovery.ts:459; session-catalog-executable.ts:107; session-catalog-scan.ts:184 Scan/executable/file caches. In-memory.
line/src/inbound-image-set.ts:59 Pending/delivered image-set Maps, removed on expiry/completion. In-memory.
codex/src/app-server/native-subagent-delivery-receipts.ts:17; native-subagent-submission-owner.ts; native-subagent-submission-call.ts; native-subagent-close-owner.ts; native-subagent-completion-delivery.ts:342 Alias, call, close, completion-owner and pending Maps/Sets. Persisted receipts do not contain these keys. In-memory.
codex/src/app-server/managed-thread-store.ts:27,29 Composite → SHA-256 → registerIfAbsent. Hash-only.
codex/src/app-server/auth-cache-key.ts; plugin-app-cache-key.ts; config-utils.ts; runtime-artifact-connection.ts; runtime-artifact.ts; desktop-generation-fingerprint.ts; scheduled-app-authority.ts; native-hook-relay.ts; attempt-diagnostics.ts; codex/src/session-catalog-home-id.ts Domain-separated hash/HMAC → bounded identifiers/fingerprints. Hash-only.
codex/src/app-server/shared-client-key.ts Hash inputs plus shared-client Map key. Hash/in-memory.
codex/src/app-server/computer-use-unified.ts:247; cyber-failover.ts; compact-helpers.ts; event-projector-tool-search-evidence.ts; transport-process-containment.ts Applied-cache-binding comparison, availability probes, warning/tool dedupe, process identity. In-memory.
codex/src/session-catalog-provenance.ts; session-upstream-activity.ts; node-cli-sessions.ts; src/migration/session-binding-orphans.ts; session-binding-owners.ts Provenance caches, local grouping/resume/evidence Maps/Sets. In-memory.
acpx/src/pi-session-store.ts; runtime-generations.ts Thread/candidate caches and generation ensure queue. In-memory.
acpx/src/runtime.ts:718 Composite → hashAcpxProcessCommand → probe-<hex> lease ID. Hash-only.
github/src/preview.ts:404,417; detail.ts:286 SWR and detail-cache Maps. In-memory.
diagnostics-otel/src/service.ts:240; service-exporter-health.ts Route/failure transition Maps; emitted events retain separate scalar fields. In-memory.
llama-cpp/src/managed-server.ts:252,386 Artifact and desired/applied revision Maps. File write receives original revision, without key prefix. In-memory.
memory-core/src/memory/manager-reindex-state.ts:102; manager-sync-control.ts:147; src/migration/doctor-memory-sidecar.ts:193 Dedupe Set / queued-session Maps / source dedupe. In-memory.
memory-wiki/src/compiled-cache.ts:175; import-runs-state.ts:79,91; source-sync-state.ts:92 Dashboard Map; import/source keys hash before store. Map/hash-only.
matrix/src/matrix/thread-bindings.ts:64; delivery-plan.ts:104,106; sdk/client-core.ts:90 Binding/delivery/authenticated transaction-scope hashes. Hash-only.
msteams/src/polls.ts:227 Vote identity digest. Hash-only.
beam/src/mirror.ts:119,205,419,477 Mirror ID hashes; candidate/host tracking Maps/Sets. Hash/in-memory.
slack/src/progress-blocks.ts:172; src/monitor/context.ts:472 Content task hash; avatar cache/pending Set. Media storage receives original URL. Hash/in-memory.
discord/src/monitor/message-avatar.ts; gateway-registry.ts Avatar caches/pending Sets; default-account registry sentinel. In-memory.
discord/src/monitor/message-handler.preflight-helpers.ts:114 Sentinel for mention-normalization length only. Transient text.
policy/src/doctor/exec-approval-rules.ts:106; policy-scope.ts:202; file-transfer/src/approvals-migration.ts:38 Requirement/dedupe Maps/Sets; results contain component fields. In-memory.
feishu/src/doctor.ts:178,466; zalouser/doctor-contract-api.ts:121 Inspection/dedupe Maps; mutation APIs receive separate paths/keys. In-memory.
feishu/src/dynamic-agent.ts:60 Agent identity digest. Hash-only.
migrate-hermes/auth.ts:186; config-providers.ts:150 Credential fingerprint hash; provider/environment dedupe Map. Hash/in-memory.
openai/token-sharing-oauth.runtime.ts:232; provider-policy-api.ts:480 Account identity hash; route candidate grouping. Hash/in-memory.
opencode/session-catalog.ts:77,94,95 Environment/query caches; query sent separately. In-memory.
workboard/src/store-core.ts:414 Hash → UUID-shaped card ID before persistence. Hash-only.
knowledge/src/service.ts; relink.ts Operation identity digests. Hash-only.
knowledge/src/remember.ts:79; merge.ts:149,177,188; team-reports/src/run.ts:52 Dedupe/grouping/comparison; persisted records retain original component fields. In-memory.
crabbox/src/crabbox-worker-profile.ts; crabbox-worker-script.ts; copilot/src/sdk-loader.ts Lease/bootstrap/SDK fingerprints. Hash-only.
qa-lab/src/evidence-summary-schema.ts; profile-evidence-sharding.ts; scorecard-taxonomy.ts Evidence/ref comparison Maps/Sets and shard signature; exported records retain original fields. In-memory.
qa-lab/src/lab-server-ui.ts; providers/mock-openai/mock-openai-tooling.ts Asset/fixture fingerprints. Hash-only.
diffs/assets/viewer-runtime.js; diffs-language-pack/assets/viewer-runtime.js Browser-renderer whitespace sentinels/HTML escaping. Transient rendering.

Other extension matches are NUL rejection/removal, terminal sanitization, procfs parsing, shell find/Git NUL-delimited I/O, or CSS \\00B7 (a middle dot, not NUL): agent-guidance, agentsapi, acpx, browser, codex, crabbox, cua-computer, diagnostics-prometheus, file-transfer, knowledge, memory-core, memory-wiki, mcp-relay, msteams, nvidia, openshell, qa-lab, session-share, signal, team-reports, telegram.

Core constructors that do not persist raw NUL

All paths below are relative to src/.

Source Trace / classification
gateway/worker-environments/transcript-commit.runtime.ts:286; worker-session-tool-executor.ts:69,446,518 Composite → hash → durable commit/session/run/idempotency ID. Hash-only.
state/openclaw-migration-witness.ts:285,289 Registry composite → SHA-256 store/locator. Hash-only.
infra/exec-command-resolution.ts:206–228 Transient regex subject or SHA-256 cwd-bound permission pattern. Comparison/hash-only.
agents/tools/ask-user-tool.ts:76,85; openclaw-delegate-tool.ts:38; agents/mcp-oauth-identity.ts:28,73; github-oauth-client.ts:269 Question/delegate/OAuth identity digests. Hash-only.
pairing/pairing-store-model.ts:23; infra/approval-resolution-ref.ts:11; device-pairing-identity.ts:133,168 Digest before retained identifier/evidence. Hash-only.
gateway/session-artifact-read.ts:135; artifact-download-projection.ts:29; operator-approval-store.receipts.ts:167; server-methods/session-goal-request.ts:17; board-view-ticket.ts:65; mcp-app-standalone.ts:60; auth-cookie/token/generation modules Hash/HMAC before artifact/receipt/ticket/token publication. Hash-only.
state/openclaw-agent-db-lease-provenance.ts:77,85; storage/marker.ts:50; node-host/node-worker-container-engine.ts:138,268 Digest before stored provenance/identity. Hash-only.
infra/state-migrations.receipts.ts; state-migrations.deferred-session-import.ts; state-migrations.shared-auth-store.ts; session-sqlite-migration-readers.ts; sqlite-source-revision.ts; update-failure-report-artifact.ts; update-failure-report-prepare.ts; Doctor auth/heartbeat identities Migration/report/provenance digests. Hash-only.
talk/client-voice-session-store.ts:226 Operation queue/digest-owner Maps; SQL uses separate voiceSessionId. In-memory.
config/sessions/session-accessor.sqlite-archive-store-kernel.ts:65; infra/state-migrations.transcript-archive-publication.ts:77 Archive identity Maps; SQL receives separate session/generation columns. In-memory.
plugins/session-catalog.ts:271; session-catalog-family.ts:533 Source Map/adoption coordinator; durable adopted key hashed separately. Map/hash-only.
plugin-state/plugin-store-validation.ts:40; plugin-state-native-binding-codec.ts:14; plugin-sdk/channel-replay-guard.ts:77 Signature/prepared-codec Maps and active replay Set. Persistent replay store receives original key/namespace. In-memory.
infra/client-credential-async.ts:103; device-identity-async.ts:84,102; outbound/current-conversation-bindings.ts:85,523; device-pairing-core.kernel.ts:249 Queues/promise caches/silent-pairing comparisons; separate persisted fields. In-memory.
agents/sandbox/persistent-exec.ts:223,247,305; agents/subagents/requester-final-attachment.ts; completion/cleanup/cohort/kill scopes Owner Maps, timers, equality; separate stored owner fields. In-memory, except encoded notice key above.
agents/context-cache.ts; model/catalog/prepared-runtime/auth-profile modules; agents/tools/conversation-tools.ts (operation ID hash); poll-vote-echo.ts; message-tool-execution.ts; sessions-search-tool.ts Cache/dedupe/queue/echo/search identities. In-memory.
gateway/session-row-*; session-title-state.ts; session-sharing-preparation.ts; session-automation-index.ts; GitHub publication/workflow/defer/discovery modules Resident projections, read Maps, queues, comparison against separately stored columns. In-memory.
Gateway voice/MCP/HTTP/icon/thumbnail caches, typing/reaction queues; server-methods/projects-recents.ts Caches/task queues/folder dedupe; original values retained in responses. In-memory.
config/sessions publication/branch/cold-storage/target/migration identities; infra/session-sqlite-migration-manifest.ts; Doctor restore/candidate identities Grouping/Map/cache; structured stored fields. In-memory.
Plugin discovery/module-loader/native-admission/generation/manifest identities Maps/Sets; publication hashes artifact and generation receipts. Map/hash-only.
Skills security/discovery/usage/remote/review-undo; secret-owner; audit dedupe identities Maps/Sets/queues. In-memory.
media/media-reference-comparison.ts:8 NUL-prefixed local-network comparison identity; payload retains original URL. In-memory.
Text projection/web-fetch/outbound sanitization/patch staging/shell display Sentinels removed before output. Transient text.
Worktree/snapshot/workspace-sync/Git/shell-env/procfs/tar/SQLite-header/PTY helpers Delimited process/file protocols, binary artifacts, or Git hashing. Not SQL text.
CLI/Doctor/status/cron/logging/boards/shared-presence identities Sorting/dedupe/cache/warning suppression. In-memory.

NUL rejection/removal regexes and schema checks are input validation, not NUL-producing persisted paths. No other raw-NUL persisted plugin/core runtime key or PostgreSQL text value was found.

@steipete

Copy link
Copy Markdown
Contributor Author

Core NUL inventory — part 1/3.

Source snapshot: b906fc7f0819648d54c7913b2fab271666b5413f. These tables cover all 534 extracted runtime constructor locations across 355 files, excluding pure validation/removal and test fixtures. The only additional PostgreSQL failure is Doctor's range operand; it is fixed in this PR.

Location Construction Classification Traced sink
src/acp/control-plane/manager.core.ts:407 ${storePath}\u0000${acpSessionActorKey(target)}\u0000${input.requestId} In-memory liveTurnRequests Map
src/acp/translator.prompt-stream.ts:496 ${sessionId}\u0000${runId} In-memory pending prompt/disconnect event identity
src/agents/agent-bundle-lsp-runtime.ts:537 ${serverName}\0${hints} In-memory warned-withheld environment Set
src/agents/agent-model-discovery.ts:92 ${provider}\0${modelId} In-memory key -> in-memory identity/cache/deduplication/comparison; source-local consumers: findCache.has at :93, findCache.get at :94
src/agents/agent-scope.ts:76 [ normalizeOptionalString(params.sessionKey) ?? "", ${params.primaryProvider}/${params.primaryModel}, ].join("\0") In-memory autoFallbackPrimaryProbeState Map
src/agents/apply-patch.ts:280 PATH_STAGE = "\0path\0" Transient PATH_STAGE: temporary formatting/patch sentinel, restored or removed before output
src/agents/apply-patch.ts:281 INODE_STAGE = "\0inode\0" Transient INODE_STAGE: temporary formatting/patch sentinel, restored or removed before output
src/agents/auth-profiles/oauth-profile-lock.ts:30 ${key.provider}\0${key.profileId} In-memory ordered lock-target deduplication Map
src/agents/auth-profiles/oauth-refresh-queue.ts:23 ${provider}\u0000${profileId} In-memory OAuth refresh queues Map
src/agents/auth-profiles/profiles.ts:370 ${peer.candidate.databasePath}\0${profileId} In-memory peers Map
src/agents/auth-profiles/usage.ts:439 ${ownerPath}\u0000${profileId} In-memory probeKey -> in-memory identity/cache/deduplication/comparison; source-local consumers: whamReprobesInFlight.get at :440, whamReprobesInFlight.delete at :459
src/agents/bash-tools.exec-host-node-phases.ts:491 ${rule.pattern}\x00${rule.argPattern ?? &quot;&quot;} In-memory matchingEntries/expectedPatterns Sets
src/agents/bash-tools.exec-host-node-phases.ts:503 ${pattern.pattern}\x00${pattern.argPattern ?? &quot;&quot;} In-memory matchingEntries/expectedPatterns Sets
src/agents/bootstrap-files.ts:99 ${workspacePrefix}\u0000${params.sessionLabel}\u0000${message} In-memory key -> in-memory identity/cache/deduplication/comparison; constituent data remains separate
src/agents/btw.ts:152 [ ${provider}/${modelId}/${selectedHarnessId}, modelProvider?.api ?? "", modelProvider?.baseUrl ?? "", modelProvider?.requestTransportOverrides ?? "", modelProvider?.runtimePolicy?.compatibleIds.join(",") ?? "", modelProvider?.preparedAuth?.source ?? "", modelProvider?.preparedAuth?.mode ?? "", modelProvider?.preparedAuth?.requirement ?? "", ].join("\0") In-memory preparedHarnesses Map
src/agents/cli-runner/helpers.ts:232 ${image.mimeType}\0${image.data} Hash input resolveCliImageFileName -> SHA-256/HMAC digest; raw NUL input does not reach SQL
src/agents/code-mode-namespaces.ts:21 NAMESPACE_PATH_KEY_SEPARATOR = "\u0000" In-memory namespacePathKey Map
src/agents/context-cache.ts:34 PROVIDER_CONTEXT_TOKEN_CACHE_PREFIX = "\0provider:" In-memory configured/discovered/contextWindow token Maps
src/agents/context-cache.ts:38 ${PROVIDER_CONTEXT_TOKEN_CACHE_PREFIX}${provider}\0${modelId} In-memory configured/discovered/contextWindow token Maps
src/agents/embedded-agent-runner/model.static-catalog.ts:401 ${provider.pluginId ?? &quot;&quot;}\0${normalizeProviderId(provider.id)} In-memory preparedResults -> in-memory identity/cache/deduplication/comparison; source-local consumers: pluginIds.has at :396
src/agents/embedded-agent-runner/model.static-catalog.ts:429 ${catalogProvider.pluginId ?? &quot;&quot;}\0${normalizeProviderId(catalogProvider.id)} In-memory loadBundledProviderStaticCatalogModels -> in-memory identity/cache/deduplication/comparison; source-local consumers: modelsByProvider.get at :447, modelsByProvider.set at :454
src/agents/embedded-agent-runner/model.static-catalog.ts:479 ${provider.pluginId}\0${provider.id} In-memory preparedStaticProviderCatalog -> in-memory identity/cache/deduplication/comparison; source-local consumers: staticCatalogPluginIds.add at :497
src/agents/embedded-agent-runner/model.static-catalog.ts:569 pluginIds.join("\0") In-memory catalogKey -> in-memory identity/cache/deduplication/comparison; source-local consumers: providerPluginIds.set at :564, providerPluginIds.get at :557
src/agents/embedded-agent-runner/post-compaction-loop-guard.ts:35 ${call.toolName}\0${call.argsHash} In-memory observationSignature -> in-memory identity/cache/deduplication/comparison; constituent data remains separate
src/agents/embedded-agent-runner/run-entry.ts:207 [ candidate.provider, candidate.model, candidate.agentHarnessRuntimeOverride ?? "", ].join("\0") In-memory key -> in-memory identity/cache/deduplication/comparison; source-local consumers: preparedHarnessRuntimes.has at :208, preparedHarnessRuntimes.add at :222
src/agents/embedded-agent-runner/run/attempt-client-tools.ts:62 ${getAgentToolAssistantTurnId() ?? &quot;&quot;}\u0000${toolCallId} In-memory clientToolCallSlotKey -> in-memory identity/cache/deduplication/comparison; source-local consumers: clientToolCallSlotsById.get at :65, clientToolCallSlotsById.set at :68
src/agents/embedded-agent-runner/run/images.ts:161 ${ref.type}\0${normalizeRefForDedupe(resolved)} In-memory refDedupeKey -> in-memory identity/cache/deduplication/comparison; source-local consumers: stagedByUrl.get at :148
src/agents/embedded-agent-runner/run/prompt-image-decisions.ts:39 ${image.mimeType}\0${image.data} Hash input imageHash -> SHA-256/HMAC digest; raw NUL input does not reach SQL
src/agents/embedded-agent-subscribe.model-state.ts:94 ${provider}\0${model} In-memory identity -> in-memory identity/cache/deduplication/comparison; constituent data remains separate
src/agents/embedded-agent-subscribe.reply-delivery.ts:205 ${preamblePhase}\0${progressText} In-memory commentarySignature -> in-memory identity/cache/deduplication/comparison; source-local consumers: lastEmittedCommentaryByItem.get at :222, lastEmittedCommentaryByItem.set at :225
src/agents/github-oauth-client.ts:269 ${apiBaseUrl}\0${token} Hash input verifyGitHubCredential -> SHA-256/HMAC digest; raw NUL input does not reach SQL
src/agents/harness/native-hook-relay-permissions.ts:392 hash.update("\0") Hash input permissionRequestBindingFingerprint -> SHA-256/HMAC digest; raw NUL input does not reach SQL
src/agents/harness/native-hook-relay-permissions.ts:427 hash.update("\0") Hash input permissionRequestContentFingerprint -> SHA-256/HMAC digest; raw NUL input does not reach SQL
src/agents/harness/native-hook-relay-permissions.ts:429 hash.update("\0") Hash input permissionRequestContentFingerprint -> SHA-256/HMAC digest; raw NUL input does not reach SQL
src/agents/mcp-oauth-identity.ts:28 ${serverName}\0${serverUrl} Hash input operatorMcpOAuthIdentity -> SHA-256/HMAC digest; raw NUL input does not reach SQL
src/agents/mcp-oauth-identity.ts:73 ${scope.messageChannel ?? &quot;&quot;}\0${scope.agentAccountId ?? &quot;&quot;}\0${scope.requesterSenderId} Hash input requesterMcpOAuthIdentity -> SHA-256/HMAC digest; raw NUL input does not reach SQL
src/agents/media-generation-activity.ts:80 ${generation}\0${agentId ?? &quot;&quot;}\0${sessionKey} In-memory registerGeneratedMediaTaskActivity -> in-memory identity/cache/deduplication/comparison; source-local consumers: state.active.has at :81, state.owners.set at :78
src/agents/media-generation-activity.ts:238 ${getAgentRunLifecycleGeneration()}\0${agentId}\0${sessionKey} In-memory getGeneratedMediaTaskIdsForSessionKey -> in-memory identity/cache/deduplication/comparison; source-local consumers: state.admissions.get at :237, before.has at :251
src/agents/model-auth-availability.ts:287 ${normalized}\u0000${forModel ?? &quot;&quot;}\u0000${preferredProfileId ?? &quot;&quot;}\u0000${pinnedProfileId ?? &quot;&quot;} In-memory cacheKey -> in-memory identity/cache/deduplication/comparison; source-local consumers: orderCache.get at :288, envCache.get at :282
src/agents/model-catalog.ts:118 [identityKey, entry.api ?? "", normalizeCatalogRouteBaseUrl(entry.baseUrl) ?? ""].join( "\u0000", ) In-memory catalogRouteVariantKey -> in-memory identity/cache/deduplication/comparison; source-local consumers: indexByKey.get at :108, indexByKey.set at :99
src/agents/model-provider-auth.ts:70 ${key}\0${hashRuntimeConfigValue(ref as unknown as OpenClawConfig)} In-memory cacheKey -> in-memory identity/cache/deduplication/comparison; constituent data remains separate
src/agents/model-runtime-aliases.ts:182 ${canonical}/${modelId}\0${runtime} In-memory resolveCliRuntimeTwinRoute -> in-memory identity/cache/deduplication/comparison; source-local consumers: canonicalRows.set at :199, canonicalRows.get at :203
src/agents/models-config.providers.implicit.ts:238 ${provider.pluginId ?? &quot;&quot;}\0${normalizeProviderId(provider.id)} In-memory preparedStatic -> in-memory identity/cache/deduplication/comparison; constituent data remains separate
src/agents/models-config.providers.implicit.ts:562 ${provider.pluginId ?? &quot;&quot;}\0${normalizeProviderId(provider.id)} In-memory discoveryProviders -> in-memory identity/cache/deduplication/comparison; source-local consumers: preparedPluginIds.has at :544, scopedRefs.has at :589
src/agents/models-config.providers.implicit.ts:648 ${provider.pluginId ?? &quot;&quot;}\0${normalizeProviderId(provider.id)} In-memory preparedStaticConfigs -> in-memory identity/cache/deduplication/comparison; constituent data remains separate
src/agents/models-config.ts:118 ${targetPath}\0${fingerprint} In-memory modelsJsonReadyCacheKey -> in-memory identity/cache/deduplication/comparison; source-local consumers: context.pluginMetadataSnapshot.pluginIds.toSorted at :110
src/agents/prepared-model-runtime.build.ts:163 inspection\0${workspace} In-memory groups -> in-memory identity/cache/deduplication/comparison; source-local consumers: generations.set at :157, generations.delete at :156
src/agents/prepared-model-runtime.build.ts:166 ${kind}\0${workspace} In-memory groups -> in-memory identity/cache/deduplication/comparison; source-local consumers: generations.set at :157, generations.delete at :156
src/agents/prepared-model-runtime.facts.ts:227 ${normalizeProviderId(lookup.provider)}\0${lookup.modelId.trim().toLowerCase()} In-memory key -> in-memory identity/cache/deduplication/comparison; source-local consumers: configuredManifestModels.has at :228, configuredManifestModels.get at :229
src/agents/prepared-model-runtime.scoped-catalog.ts:93 ${provider}\0${outcome.profileId ?? &quot;&quot;} In-memory recordProviderOutcome -> in-memory identity/cache/deduplication/comparison; source-local consumers: providerOutcomes.set at :93
src/agents/pty-keys.ts:253 return "\x00"; Binary/process protocol toCtrlChar -> Git/process/rsync/PTY/header binary protocol; no SQL text/key
src/agents/sandbox/file-mutation-identity.ts:54 ${params.root}\0${await resolveSandboxFileIdentity(params)} In-memory resolveSandboxFileMutationQueueKey -> in-memory identity/cache/deduplication/comparison; constituent data remains separate
src/agents/sandbox/mount-plan.ts:264 ${device}\0${decodeMountInfoPath(root)} In-memory resolveSandboxContainerOnlyMounts -> in-memory identity/cache/deduplication/comparison; source-local consumers: entries.set at :260, byDestination.get at :275
src/agents/sandbox/persistent-exec.ts:223 ${store.databasePath}\0${record.ownerKey} In-memory active owner Map; SQL receives original ownerKey
src/agents/sandbox/persistent-exec.ts:247 ${store.databasePath}\0${record.ownerKey} In-memory active owner Map; SQL receives original ownerKey
src/agents/sandbox/persistent-exec.ts:305 ${store.databasePath}\0${input.ownerKey} In-memory active owner Map; SQL receives original ownerKey
src/agents/sandbox/podman-runtime.ts:30 parts.join("\0") Hash input hashPodmanTarget -> SHA-256/HMAC digest; raw NUL input does not reach SQL
src/agents/sandbox/remote-fs-bridge-canonical-path.ts:43 printf "%s%s\0%s\0" "$canonical" "$suffix" "$canonical_root" Binary/process protocol remote canonical path protocol -> Git/process/rsync/PTY/header binary protocol; no SQL text/key
src/agents/session-model-ref.ts:84 ${agentId ? normalizeAgentId(agentId) : &quot;&quot;}\0${options?.allowPluginNormalization !== false} In-memory resolveSessionConfiguredDefault -> in-memory identity/cache/deduplication/comparison; constituent data remains separate
src/agents/subagents/completion/subagent-completion-mutation.kernel.ts:256 first?.requesterSettleWake?.batchRunIds?.toSorted().join("\0") In-memory prepareRequesterBatch -> in-memory identity/cache/deduplication/comparison; source-local consumers: ids.has at :279
src/agents/subagents/completion/subagent-completion-mutation.kernel.ts:269 subagent.requesterSettleWake.batchRunIds?.toSorted().join("\0") In-memory enclosing function -> in-memory identity/cache/deduplication/comparison; source-local consumers: ids.has at :279, checkedOmittedIds.add at :289
src/agents/subagents/registry/subagent-control-kill-scope.ts:165 ${childOwner}\0${snapshot.runId} In-memory selectedOwner -> in-memory identity/cache/deduplication/comparison; source-local consumers: selected.get at :164, subagentRuns.get at :162
src/agents/subagents/registry/subagent-registry-lifecycle-cleanup.ts:104 entry.requesterSettleWake?.batchRunIds?.toSorted().join("\0") In-memory isSubagentCompletionDeliveryAllowed -> in-memory identity/cache/deduplication/comparison; constituent data remains separate
src/agents/subagents/registry/subagent-registry-lifecycle-cleanup.ts:105 committedDeliveryOwner.requesterSettleWake?.batchRunIds?.toSorted().join("\0") In-memory isSubagentCompletionDeliveryAllowed -> in-memory identity/cache/deduplication/comparison; source-local consumers: pendingStoreRetirements.get at :135
src/agents/subagents/registry/subagent-registry-lifecycle-wake.ts:260 ${entry.requesterStorePath ?? &quot;&quot;}\0${entry.requesterAgentId ?? &quot;&quot;}\0${entry.requesterSessionKey} Persisted JSON encoding (safe) waitingRequesterSettleWakes Map; rejection notice uses JSON.stringify([subagent-settle-rejected, noticeScope]) as transcript idempotencyKey, so persisted SQL text has escaped NUL
src/agents/subagents/registry/subagent-registry-lifecycle-wake.ts:262 ${owner}\0pause\0${entry.runId}\0${wake.rearmGeneration ?? &quot;&quot;} Persisted JSON encoding (safe) waitingRequesterSettleWakes Map; rejection notice uses JSON.stringify([subagent-settle-rejected, noticeScope]) as transcript idempotencyKey, so persisted SQL text has escaped NUL
src/agents/subagents/registry/subagent-registry-lifecycle-wake.ts:264 ${owner}\0${wake?.batchRunIds?.toSorted().join(&quot;,&quot;) ?? &quot;&quot;}\0${wake?.rearmGeneration ?? &quot;&quot;} Persisted JSON encoding (safe) waitingRequesterSettleWakes Map; rejection notice uses JSON.stringify([subagent-settle-rejected, noticeScope]) as transcript idempotencyKey, so persisted SQL text has escaped NUL
src/agents/subagents/registry/subagent-registry-lifecycle-wake.ts:665 ${scope}\0${runId} Persisted JSON encoding (safe) waitingRequesterSettleWakes Map; rejection notice uses JSON.stringify([subagent-settle-rejected, noticeScope]) as transcript idempotencyKey, so persisted SQL text has escaped NUL
src/agents/subagents/requester-final-attachment.ts:40 ${requesterAgentId}\u0000${requesterSessionKey} In-memory state.byOwner Map
src/agents/subagents/spawn/subagent-depth.ts:70 ${storePath}\0${normalizeAgentId(agentId)} In-memory resolveEntryForSessionKey -> in-memory identity/cache/deduplication/comparison; source-local consumers: params.cache.get at :71, params.cache.set at :74
src/agents/subagents/spawn/subagent-depth.ts:98 ${store.scope.storePath}\0${normalizeAgentId(store.scope.agentId)} In-memory getSubagentDepthFromSessionStore -> in-memory identity/cache/deduplication/comparison; source-local consumers: cache.set at :98
src/agents/tool-display-exec-shell.ts:559 () => "\0" Transient syntaxChars: temporary formatting/patch sentinel, restored or removed before output
src/agents/tool-loop-detection.ts:474 ${actionKey}\0${outcome.resultHash} In-memory observeRepeatedToolError -> in-memory identity/cache/deduplication/comparison; constituent data remains separate
src/agents/tool-prompt-guidance.ts:25 ${pluginId}\u0000${names[0] ?? &quot;&quot;} In-memory pluginEntries -> in-memory identity/cache/deduplication/comparison; source-local consumers: callable.has at :24, sections.add at :30
src/agents/tools/ask-user-tool.ts:76 ${owner}\0${toolCallId} Hash input buildAskUserQuestionId -> SHA-256/HMAC digest; raw NUL input does not reach SQL
src/agents/tools/ask-user-tool.ts:85 ${agentId?.trim() &#124;&#124; &quot;unknown&quot;}\0${normalizedSessionKey &#124;&#124; &quot;session:unknown&quot;} Hash input askUserSessionKey -> SHA-256/HMAC digest; raw NUL input does not reach SQL
src/agents/tools/conversation-tools.ts:99 [ agentId, options.agentSessionId ?? "", options.agentSessionKey ?? "", conversations_${action}, toolCallId, conversationRef, ].join("\u0000") Hash input identity -> SHA-256/HMAC digest; raw NUL input does not reach SQL
src/agents/tools/message-tool-execution.ts:147 ${resolvedAgentId}\0${rawPollEchoSessionKey} In-memory createMessageToolSteps -> in-memory identity/cache/deduplication/comparison; constituent data remains separate
src/agents/tools/openclaw-delegate-tool.ts:38 ${agentId}\0${sessionKey.trim()} Hash input stableDelegationSessionId -> SHA-256/HMAC digest; raw NUL input does not reach SQL
src/agents/tools/poll-vote-echo.ts:139 ${channel}\0${normalizeAccountId(params.accountId ?? &quot;default&quot;)}\0${routeTarget} In-memory poll vote echo route Map
src/agents/tools/sessions-search-tool.ts:174 ${candidate.agentId ?? &quot;&quot;}\0${candidate.key} In-memory candidateId -> in-memory identity/cache/deduplication/comparison; source-local consumers: candidates.set at :185
src/agents/tools/subagents-tool.ts:264 current.controllerAgentId + "\0" In-memory identity -> in-memory identity/cache/deduplication/comparison; source-local consumers: visited.has at :265, visited.add at :268
src/agents/tools/web-fetch-utils.ts:88 return value.replaceAll("\u0000", "\u0000\u0000"); Transient Formatting sentinels resolved before final content; original input NUL may be restored, then retained through JSON serialization rather than a raw SQL key
src/agents/tools/web-fetch-utils.ts:135 index === undefined ? "\0" : formatPreformattedMarkdown(state.preBlocks[Number(index)]!) Transient Formatting sentinels resolved before final content; original input NUL may be restored, then retained through JSON serialization rather than a raw SQL key
src/agents/tools/web-fetch-utils.ts:144 \n\n\0openclaw-pre-${index}\0\n\n Transient Formatting sentinels resolved before final content; original input NUL may be restored, then retained through JSON serialization rather than a raw SQL key
src/agents/tools/web-fetch-utils.ts:397 out += markdown.slice(cursor, start).replaceAll("\0", "\0\0"); Transient Formatting sentinels resolved before final content; original input NUL may be restored, then retained through JSON serialization rather than a raw SQL key
src/agents/tools/web-fetch-utils.ts:403 \0${codeBlocks.length}\0 Transient Formatting sentinels resolved before final content; original input NUL may be restored, then retained through JSON serialization rather than a raw SQL key
src/agents/tools/web-fetch-utils.ts:408 out += markdown.slice(start, end).replaceAll("\0", "\0\0"); Transient Formatting sentinels resolved before final content; original input NUL may be restored, then retained through JSON serialization rather than a raw SQL key
src/agents/tools/web-fetch-utils.ts:413 out += markdown.slice(cursor, to).replaceAll("\0", "\0\0"); Transient Formatting sentinels resolved before final content; original input NUL may be restored, then retained through JSON serialization rather than a raw SQL key
src/agents/tools/web-fetch-utils.ts:505 \0${codeBlocks.length}\0 Transient Formatting sentinels resolved before final content; original input NUL may be restored, then retained through JSON serialization rather than a raw SQL key
src/agents/tools/web-fetch-utils.ts:521 index === undefined ? "\0" : codeBlocks[Number(index)]! Transient Formatting sentinels resolved before final content; original input NUL may be restored, then retained through JSON serialization rather than a raw SQL key
src/agents/worktrees/checkout-inputs.ts:118 ${paths.join(&quot;\0&quot;)}\0 Binary/process protocol prepareWorktreePromptFiles -> Git/process/rsync/PTY/header binary protocol; no SQL text/key
src/agents/worktrees/checkout-inputs.ts:145 ${batch.join(&quot;\0&quot;)}\0 Binary/process protocol prepareWorktreePromptFiles -> Git/process/rsync/PTY/header binary protocol; no SQL text/key
src/agents/worktrees/checkout-policy-key.ts:132 checkoutConfig.join("\0") Hash input resolveWorktreeCheckoutKey -> SHA-256/HMAC digest; raw NUL input does not reach SQL
src/agents/worktrees/empty-source.ts:17 commit ${Buffer.byteLength(INITIAL_COMMIT)}\0${INITIAL_COMMIT} Hash input INITIAL_COMMIT_ID -> SHA-256/HMAC digest; raw NUL input does not reach SQL
src/agents/worktrees/provisioned-snapshot.ts:122 blob ${before.size}\0 Hash input snapshotProvisionedFiles -> SHA-256/HMAC digest; raw NUL input does not reach SQL
src/agents/worktrees/removal-git.ts:400 blob ${bytes.length}\0 Hash input hasExactWorktreeIndex -> SHA-256/HMAC digest; raw NUL input does not reach SQL
src/agents/worktrees/removal-recovery-inventory.ts:65 blob ${bytes.length}\0 Hash input blobOid -> SHA-256/HMAC digest; raw NUL input does not reach SQL
src/agents/worktrees/removal-recovery.ts:450 ${missing.join(&quot;\0&quot;)}\0 Binary/process protocol enclosing function -> Git/process/rsync/PTY/header binary protocol; no SQL text/key
src/agents/worktrees/snapshot-exact-state.ts:112 blob ${bytes.length}\0 Hash input Git blob object digest
src/agents/worktrees/snapshot-exact-state.ts:203 100644 blob ${blob}\t${name}\0 Binary/process protocol Git mktree -z input records; persisted object identifiers are hashes
src/agents/worktrees/snapshot-exact-state.ts:230 ${kind === &quot;tree&quot; ? &quot;040000&quot; : &quot;100644&quot;} ${kind} ${object}\tindex-object-${object}\0 Binary/process protocol Git mktree -z input records; persisted object identifiers are hashes
src/agents/worktrees/snapshot-host.ts:447 delete refs/openclaw/removals/${record.id}\0\0 Binary/process protocol deletions -> Git/process/rsync/PTY/header binary protocol; no SQL text/key
src/agents/worktrees/snapshot-host.ts:517 delete ${record.snapshotRef}\0${snapshot ?? &quot;&quot;}\0 Binary/process protocol enclosing function -> Git/process/rsync/PTY/header binary protocol; no SQL text/key
src/agents/worktrees/snapshot-host.ts:524 delete ${receipt.ref}\0${receipt.commit}\0 Binary/process protocol enclosing function -> Git/process/rsync/PTY/header binary protocol; no SQL text/key
src/agents/worktrees/snapshot-host.ts:533 start\0${deletions.join(&quot;&quot;)}prepare\0commit\0 Binary/process protocol enclosing function -> Git/process/rsync/PTY/header binary protocol; no SQL text/key
src/agents/worktrees/snapshot-inventory.ts:560 start\0verify HEAD\0${inventory.head}\0${input.exactState ? verify refs/heads/${input.exactState.branch}\0${input.exactState.expected.branchHead}\0 : &quot;&quot;}update ${snapshotRef}\0${commit}\0\0prepare\0commit\0 Binary/process protocol snapshotWorktree -> Git/process/rsync/PTY/header binary protocol; no SQL text/key
src/agents/worktrees/snapshot-restore-exact.ts:137 "100644 blob " + blob + "\tmanifest.json\0" Binary/process protocol createReceipt -> Git/process/rsync/PTY/header binary protocol; no SQL text/key
src/agents/worktrees/snapshot-restore-exact.ts:191 "blob " + opened.stat.size + "\0" Binary/process protocol restoreProvisionedAtomically -> Git/process/rsync/PTY/header binary protocol; no SQL text/key
src/audit/agent-event-audit.ts:362 ${event.lifecycleGeneration ?? &quot;unknown&quot;}\0${event.runId} In-memory openRunInstances/settledRunInstances/pendingTerminals Maps and Sets
src/audit/execution-identity-admission.ts:375 ${grant.rawGrantRef}\0${grant.state} In-memory baseEnvelope -> in-memory identity/cache/deduplication/comparison; constituent data remains separate
src/audit/execution-identity-admission.ts:379 ${item.kind}\0${item.rawEvidenceRef}\0${item.strength} In-memory baseEnvelope -> in-memory identity/cache/deduplication/comparison; constituent data remains separate
src/audit/execution-identity-context-build.ts:94 ${item.kind}\0${item.evidenceRef}\0${item.strength} In-memory assurance -> in-memory identity/cache/deduplication/comparison; constituent data remains separate
src/audit/execution-identity-context-build.ts:101 ${grant.grantRef}\0${grant.state} In-memory applicableGrants -> in-memory identity/cache/deduplication/comparison; constituent data remains separate
src/auto-reply/reply/commands-private-route.ts:93 [ target.channel, target.to, target.accountId ?? "", target.threadId == null ? "" : String(target.threadId), ].join("\0") In-memory enclosing function -> in-memory identity/cache/deduplication/comparison; source-local consumers: keys.has at :98
src/auto-reply/reply/conversation-label-generator.ts:116 [ "resolved", selection.provider, selection.runtimeProvider ?? "", selection.modelId, selection.profileId ?? attempt.preferredProfile ?? "", runtime ?? "", ].join("\0") In-memory resolveAttemptPlan -> in-memory identity/cache/deduplication/comparison; source-local consumers: seen.has at :146
src/auto-reply/reply/conversation-label-generator.ts:118 ["raw", rawRef.model, rawRef.profile ?? attempt.preferredProfile ?? "", runtime ?? ""].join( "\0", ) In-memory resolveAttemptPlan -> in-memory identity/cache/deduplication/comparison; source-local consumers: seen.has at :146
src/auto-reply/reply/history-media.ts:76 [messageId ?? "", mediaPath].join("\0") In-memory resolveRecentInboundHistoryImages -> in-memory identity/cache/deduplication/comparison; source-local consumers: seen.has at :77, seen.add at :80
src/auto-reply/reply/history.ts:106 ${entry.messageId ?? params.messageId ?? &quot;&quot;}\0${path} In-memory normalizeHistoryMediaEntries -> in-memory identity/cache/deduplication/comparison; source-local consumers: seen.has at :107, seen.add at :110
src/auto-reply/reply/memory-flush-session.ts:32 openclaw-memory-flush\0${params.sourceSessionId}\0${params.sourceLifecycleRevision ?? &quot;&quot;}\0${params.compactionCount} Hash input deriveMemoryFlushId -> SHA-256/HMAC digest; raw NUL input does not reach SQL
src/boards/board-notices.ts:34 ${params.agentId ?? &quot;&quot;}\0${params.sessionKey}\0${params.widget} In-memory appendBoardEventNotice -> in-memory identity/cache/deduplication/comparison; source-local consumers: recentNotices.get at :35, recentNotices.set at :39
src/channels/message/ingress-drain-state.ts:100 ${claim.id}\0${claim.claim.token} In-memory active claims Map
src/channels/plugins/bundled.ts:108 [ params.packageRoot, params.pluginsDir ?? "", params.metadata.dirName, params.modulePath, ].join("\0") In-memory resolveBundledChannelBoundaryRoot -> in-memory identity/cache/deduplication/comparison; source-local consumers: artifacts.get at :110, artifacts.set at :128
src/channels/plugins/message-action-current-conversation.ts:72 ${target.kind ?? &quot;&quot;}\0${target.id} In-memory targetKey -> in-memory identity/cache/deduplication/comparison; source-local consumers: targets.set at :80, kindsById.get at :90
src/cli/config-cli-validation.ts:441 ${error.kind}\u0000${error.ref ?? &quot;&quot;}\u0000${error.message} In-memory failures -> in-memory identity/cache/deduplication/comparison; constituent data remains separate
src/cli/config-cli-validation.ts:442 ${error.kind}\u0000${error.message} In-memory failures -> in-memory identity/cache/deduplication/comparison; constituent data remains separate
src/cli/config-model-validation.ts:341 ${ref.path}\u0000${ref.agentId ?? &quot;&quot;} In-memory enclosing function -> in-memory identity/cache/deduplication/comparison; constituent data remains separate
src/cli/daemon-cli/install.ts:468 plannedInstall.programArguments.join("\u0000") In-memory getGatewayServiceAutoRefreshMessage -> in-memory identity/cache/deduplication/comparison; constituent data remains separate
src/cli/daemon-cli/install.ts:469 currentCommand.programArguments.join("\u0000") In-memory getGatewayServiceAutoRefreshMessage -> in-memory identity/cache/deduplication/comparison; constituent data remains separate
src/commands/backup-resource-inventory.ts:196 ${resource.kind}\0${resource.sourcePath} In-memory uniqueRegenerableRoots -> in-memory identity/cache/deduplication/comparison; source-local consumers: regenerableRoots.toSorted at :192, protectedPathSet.add at :179
src/commands/doctor-auth-flat-profiles.ts:1572 ${path.resolve(sourcePath)}\0${sourceSha256} Hash input recoverArchivedAuthProfileMappings -> SHA-256/HMAC digest; raw NUL input does not reach SQL
src/commands/doctor-auth-migration-receipts.ts:62 ${sourcePath}\0${sourceSha256} Hash input prepareAuthProfileSourceReceipt -> SHA-256/HMAC digest; raw NUL input does not reach SQL
src/commands/doctor-heartbeat-task-identity.ts:42 createHash("sha256").update(agentId).update("\0") Hash input heartbeatTaskDeclarationKey -> SHA-256/HMAC digest; raw NUL input does not reach SQL
src/commands/doctor-heartbeat-task-identity.ts:46 hash.update("\0") Hash input heartbeatTaskDeclarationKey -> SHA-256/HMAC digest; raw NUL input does not reach SQL
src/commands/doctor-model-catalog-credentials.ts:116 ${normalizeProviderId(credential.provider)}\0${credential.key} In-memory enclosing function -> in-memory identity/cache/deduplication/comparison; constituent data remains separate
src/commands/doctor-session-canonical-candidates.ts:102 ${item.target.sqlitePath}\0${item.sessionKey} In-memory bySessionKey -> in-memory identity/cache/deduplication/comparison; source-local consumers: resolved.get at :110, seen.has at :115
src/commands/doctor-session-canonical-candidates.ts:121 ${current.target.sqlitePath}\0${current.canonicalOwnerSessionKey} In-memory owner -> in-memory identity/cache/deduplication/comparison; source-local consumers: bySessionKey.get at :121, seen.add at :119
src/commands/doctor-session-canonical-candidates.ts:143 ${sqlitePath}\0${ownerAgentId}\0${key} In-memory collectCanonicalSessionCandidateFacts -> in-memory identity/cache/deduplication/comparison; source-local consumers: canonicalKeysByStoredKey.get at :144, mapped.add at :145
src/commands/doctor-session-canonical-candidates.ts:164 ${sqlitePath}\0${ownerAgentId}\0${key} In-memory mapped -> in-memory identity/cache/deduplication/comparison; source-local consumers: canonicalKeysByStoredKey.get at :164, canonicalKeysByStoredKey.set at :146
src/commands/doctor-session-canonical-candidates.ts:231 ${candidate.canonicalKey}\0${sentinelOwner} In-memory byCanonicalKey -> in-memory identity/cache/deduplication/comparison; constituent data remains separate
src/commands/doctor-session-canonical-keys.ts:138 ${fact.agentId}\0${fact.storePath} In-memory byStore -> in-memory identity/cache/deduplication/comparison; source-local consumers: loaded.set at :145, loaded.get at :147
src/commands/doctor-session-canonical-keys.ts:203 ${left.sqlitePath}\0${left.sessionKey} In-memory rankedCandidates -> in-memory identity/cache/deduplication/comparison; source-local consumers: candidates.toSorted at :201
src/commands/doctor-session-canonical-keys.ts:204 ${right.sqlitePath}\0${right.sessionKey} In-memory rankedCandidates -> in-memory identity/cache/deduplication/comparison; source-local consumers: candidates.toSorted at :201
src/commands/doctor-session-snapshots.ts:220 ${sessionKey}\0${cached.field}\0${cached.path} In-memory scanSessionStoreForStaleRuntimeSnapshotPaths -> in-memory identity/cache/deduplication/comparison; source-local consumers: seen.has at :221, seen.add at :224
src/commands/doctor-session-sqlite-import.ts:294 ${record.entry.sessionId}\0${record.transcriptPath} In-memory prepareLegacySessionImport -> in-memory identity/cache/deduplication/comparison; source-local consumers: importedTranscriptSources.has at :298, existingSnapshot.sessionKeysBySessionId.get at :305
src/commands/doctor-session-sqlite-restore.ts:402 ${manifestPath}\u0000${migrationMoveKey(move)} In-memory restoreMovePlanKey -> in-memory identity/cache/deduplication/comparison; source-local consumers: plan.set at :394
src/commands/doctor-session-sqlite-warnings.ts:98 ${row.session_key.toLowerCase()}\0${row.session_id} In-memory transcripts -> in-memory identity/cache/deduplication/comparison; source-local consumers: TRANSCRIPT_FINDINGS.get at :105, live.has at :128
src/commands/doctor-session-sqlite-warnings.ts:142 ${issue.sessionKey.toLowerCase()}\0${transcriptId} In-memory read -> in-memory identity/cache/deduplication/comparison; source-local consumers: transcripts.has at :142, mainAliases.has at :129
src/commands/doctor/auth-profile-repair.ts:66 ${finding.checkId}\0${finding.target ?? &quot;&quot;} In-memory findings -> in-memory identity/cache/deduplication/comparison; source-local consumers: preciseTargets.has at :60, remainingTargets.has at :51
src/commands/doctor/cron/payload-migration.ts:153 ${route.legacyModelRef}\u0000${route.canonicalModelRef} In-memory add -> in-memory identity/cache/deduplication/comparison; source-local consumers: routes.set at :153
src/commands/doctor/cron/runtime-policy-migration.ts:118 ${owner.path}\u0000${target.modelRef} In-memory repairCronCodexRuntimePolicies -> in-memory identity/cache/deduplication/comparison; source-local consumers: decisions.get at :119, decisions.set at :135
src/commands/doctor/cron/store-migration.ts:71 ${target.agentId ?? &quot;&quot;}\u0000${target.modelRef}\u0000${target.legacyModelRef ?? &quot;&quot;} In-memory cronCodexRuntimePolicyTargetKey -> in-memory identity/cache/deduplication/comparison; source-local consumers: targets.set at :91
src/commands/doctor/shared/channel-plugin-blockers.ts:120 ${channelId}\0${state.pluginId}\0${state.reason} In-memory key -> in-memory identity/cache/deduplication/comparison; source-local consumers: hitKeys.has at :121, globalDisableChannelIds.add at :118
src/commands/doctor/shared/codex-route-compaction-scan.ts:133 ${hit.providerPath}\0${hit.providerValue}\0${hit.modelPath ?? &quot;&quot;}\0${hit.modelValue ?? &quot;&quot;} In-memory enclosing function -> in-memory identity/cache/deduplication/comparison; constituent data remains separate
src/commands/doctor/shared/codex-route-compaction-scan.ts:142 ${hit.path}\0${hit.key}\0${hit.value} In-memory enclosing function -> in-memory identity/cache/deduplication/comparison; constituent data remains separate
src/commands/doctor/shared/codex-route-config-scan.ts:234 ${ref.agentId ?? &quot;&quot;}\0${ref.path}\0${canonicalModel} In-memory collectCodexRuntimeRouteHits -> in-memory identity/cache/deduplication/comparison; source-local consumers: seen.has at :235, seen.add at :238
src/commands/doctor/shared/codex-route-model-ref.ts:23 ${normalized}\u0000 In-memory legacyCodexProviderIdentityKey -> in-memory identity/cache/deduplication/comparison; constituent data remains separate
src/commands/doctor/shared/codex-route-model-ref.ts:43 ${providerId}\u0000${unscopedModelId} In-memory legacyCodexModelIdentityKey -> in-memory identity/cache/deduplication/comparison; source-local consumers: params.blockedModelIdentities.has at :72, params.blockedModelIdentities.has at :73
src/commands/doctor/shared/legacy-config-migrations.runtime.retired-memory-qmd.ts:58 ${entry}\0 | ${entry.path}\0${entry.pattern?.trim() ?? &quot;&quot;} In-memory entryKey -> in-memory identity/cache/deduplication/comparison; source-local consumers: seen.has at :64, seen.add at :67
src/commands/doctor/shared/legacy-oauth-sidecar.ts:194 ${params.ref.id}\0${params.profileId}\0${params.provider} In-memory decryptLegacyOAuthSecretMaterialWithSeed -> in-memory identity/cache/deduplication/comparison; constituent data remains separate
src/commands/doctor/shared/plugin-tool-allowlist-warnings.ts:153 dedupeLabels.join("\u0000") In-memory buildEffectiveSandboxToolPolicy -> in-memory identity/cache/deduplication/comparison; source-local consumers: out.get at :167, out.set at :171
src/commands/doctor/shared/plugin-tool-allowlist-warnings.ts:424 ${entry}\u0000${owners.join(&quot;\u0000&quot;)} In-memory collectPluginToolAllowlistWarnings -> in-memory identity/cache/deduplication/comparison; source-local consumers: allowedPlugins.has at :423, toolOwners.get at :422
src/commands/gateway-status.ts:424 ${host}\0${ip}\0${discriminator} In-memory identityKeys -> in-memory identity/cache/deduplication/comparison; constituent data remains separate
src/commands/onboard-browser-handoff.ts:81 [entry.deviceId, entry.instanceId, entry.host, entry.mode].join("\0") In-memory enclosing function -> in-memory identity/cache/deduplication/comparison; source-local consumers: url.searchParams.set at :102, url.searchParams.set at :104
src/commands/sessions.ts:276 ${agentId}\0${entry.spawnedWorkspaceDir ?? &quot;&quot;}\0${modelRef.provider} In-memory catalogKey -> in-memory identity/cache/deduplication/comparison; source-local consumers: catalogs.get at :277
src/commands/status-overview-values.ts:34 ${owner.ownerKind}\0${owner.ownerId} In-memory ownerDiagnostics -> in-memory identity/cache/deduplication/comparison; source-local consumers: ownerPaths.has at :42
src/commands/telemetry-exporter-summary.ts:106 ${record.source}\u0000${record.signal}\u0000${record.transport ?? &quot;unknown&quot;} In-memory formatTelemetryExporterSummary -> in-memory identity/cache/deduplication/comparison; source-local consumers: latest.get at :107, latest.set at :109
src/config/includes.ts:41 hash.update("present\0") Hash input hashConfigIncludeRaw -> SHA-256/HMAC digest; raw NUL input does not reach SQL
src/config/io.plugin-metadata.ts:262 ${candidate.effectivePluginId ?? candidate.idHint}\0${candidate.source} In-memory discovery -> in-memory identity/cache/deduplication/comparison; source-local consumers: sources.has at :258
src/config/io.write-prepare.ts:283 path.join("\0") In-memory serialized -> in-memory identity/cache/deduplication/comparison; source-local consumers: touchedMaps.get at :284, target.canonicalKeys.add at :285
src/config/io.write-topology.ts:198 entry.join("\0") In-memory topologyPaths -> in-memory identity/cache/deduplication/comparison; constituent data remains separate
src/config/sessions/combined-store-gateway.ts:629 ${canonicalAgentId}\0${storeTarget.storePath} In-memory mergeCombinedSessionStore -> in-memory identity/cache/deduplication/comparison; constituent data remains separate
src/config/sessions/combined-store-model-sources.ts:44 ${normalizeAgentId(agentId)}\0${key} In-memory logicalKey -> in-memory identity/cache/deduplication/comparison; source-local consumers: physicalStores.get at :48, physicalStores.set at :51
src/config/sessions/combined-store-paths.ts:102 ${target.agentId}\0${target.storePath} In-memory storeTargetKey -> in-memory identity/cache/deduplication/comparison; source-local consumers: physical.paths.add at :89, physicalTargets.get at :126
src/config/sessions/delivery-info.ts:272 ${source.agentId}\u0000${source.path} In-memory indexKey -> in-memory identity/cache/deduplication/comparison; source-local consumers: indexes.get at :273, indexes.set at :278
src/config/sessions/legacy-transcript-repair.ts:147 ${getParentId(entry) ?? &quot;&quot;}\0${visible} Disposable SQLite spool SqliteSessionImportStage.addSeen/contains or repairLegacyTranscript -> disposable SQLite seen.event_json/user_keys.stripped_key; never registered, resumed, or selected as PostgreSQL
src/config/sessions/session-accessor.sqlite-archive-store-kernel.ts:65 ${sessionId}\u0000${generation} In-memory transcriptArchiveIdentityKey -> in-memory identity/cache/deduplication/comparison; constituent data remains separate

@clawsweeper

clawsweeper Bot commented Oct 30, 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.

@steipete

Copy link
Copy Markdown
Contributor Author

Core NUL inventory — part 2/3.

Source snapshot: b906fc7f0819648d54c7913b2fab271666b5413f. These tables cover all 534 extracted runtime constructor locations across 355 files, excluding pure validation/removal and test fixtures. The only additional PostgreSQL failure is Doctor's range operand; it is fixed in this PR.

Location Construction Classification Traced sink
src/config/sessions/session-accessor.sqlite-branches.ts:30 ${databasePath}\0${sessionKey} In-memory sessionBranchCacheKey -> in-memory identity/cache/deduplication/comparison; source-local consumers: sessionBranchCache.get at :50
src/config/sessions/session-accessor.sqlite-branches.ts:101 ${databasePath}\0 In-memory invalidateSessionBranchCache -> in-memory identity/cache/deduplication/comparison; source-local consumers: selected.has at :103, sessionBranchCache.delete at :105
src/config/sessions/session-accessor.sqlite-canonical-repair.ts:156 ${resolved.path ?? source.storePath}\0${resolved.databaseAgentId ?? resolved.agentId} In-memory ensureSqliteTranscriptGenerationsForCanonicalRepair -> in-memory identity/cache/deduplication/comparison; source-local consumers: byDatabase.get at :157, byDatabase.set at :161
src/config/sessions/session-accessor.sqlite-entry-cache-publication-state.ts:60 ${params.databaseIdentity}\0 In-memory isSessionIdSelectionPublished -> in-memory identity/cache/deduplication/comparison; source-local consumers: publication.superseded.has at :74, publication.generationUnchanged.has at :75
src/config/sessions/session-accessor.sqlite-entry-cache-publication-state.ts:96 file:${identity}\0${sessionKey} In-memory markSessionSharingAuthorityUnknown -> in-memory identity/cache/deduplication/comparison; source-local consumers: unknownSharingAuthorities.add at :96, read.pending.delete at :109
src/config/sessions/session-accessor.sqlite-entry-cache-publication-state.ts:141 file:${identity}\0${sessionKey} In-memory recordCommittedSessionEntryPublication -> in-memory identity/cache/deduplication/comparison; source-local consumers: pendingSessionEntryPublications.get at :141, pending.superseded.add at :146
src/config/sessions/session-accessor.sqlite-entry-cache-publication-state.ts:284 ${params.databaseIdentity}\0${sessionKey} In-memory retainPreparedSessionSharingFacts -> in-memory identity/cache/deduplication/comparison; source-local consumers: preparedSharingReads.get at :299, reads.add at :300
src/config/sessions/session-accessor.sqlite-entry-cache-publication-state.ts:540 file:${identity}\0${sessionKey} In-memory retainedSharingReads -> in-memory identity/cache/deduplication/comparison; source-local consumers: preparedSharingReads.get at :540, preparedSharingChanges.changes.get at :563
src/config/sessions/session-accessor.sqlite-entry-worker-publication.ts:102 file:${params.databaseIdentity}\0${sessionKey} In-memory enclosing function -> in-memory identity/cache/deduplication/comparison; source-local consumers: preparedSharingReads.get at :102, generationUnchanged.has at :101
src/config/sessions/session-accessor.sqlite-entry-worker-publication.ts:189 ${identityKey}\0${sessionKey} In-memory begin -> in-memory identity/cache/deduplication/comparison; source-local consumers: pendingSessionEntryPublications.get at :190, owners.add at :191
src/config/sessions/session-accessor.sqlite-entry-worker-publication.ts:279 ${identityKey}\0${record.sessionKey} In-memory publication -> in-memory identity/cache/deduplication/comparison; source-local consumers: preparedSharingReads.get at :279, currentKeys.has at :278
src/config/sessions/session-accessor.sqlite-entry-worker-publication.ts:415 ${identityKey}\0${sessionKey} In-memory settle -> in-memory identity/cache/deduplication/comparison; source-local consumers: preparedSharingReads.get at :415, current.get at :418
src/config/sessions/session-accessor.sqlite-entry-worker-publication.ts:491 ${identityKey}\0${sessionKey} In-memory settle -> in-memory identity/cache/deduplication/comparison; source-local consumers: preparedSharingReads.get at :491, current.get at :478
src/config/sessions/session-accessor.sqlite-entry-worker-publication.ts:648 ${identityKey}\0${sessionKey} In-memory settle -> in-memory identity/cache/deduplication/comparison; source-local consumers: pendingSessionEntryPublications.get at :649, pendingSessionEntryPublications.delete at :652
src/config/sessions/session-accessor.sqlite-import-stage.ts:337 inactive.stripped_key = COALESCE(s.parent_id, '') || char(0) || active.visible_key Disposable SQLite spool SqliteSessionImportStage.addSeen/contains or repairLegacyTranscript -> disposable SQLite seen.event_json/user_keys.stripped_key; never registered, resumed, or selected as PostgreSQL
src/config/sessions/session-accessor.sqlite-reset-window.ts:127 ${projection.database.path}\0${projection.resolved.sessionId}\0unindexed-controls In-memory readUnindexedHistoryControls -> in-memory identity/cache/deduplication/comparison; source-local consumers: resetMessageWindowCache.get at :129, resetMessageWindowCache.set at :108
src/config/sessions/session-accessor.sqlite-reset-window.ts:438 ${projection.database.path}\0${projection.resolved.sessionId}\0${scope} In-memory resolveTranscriptBoundaryWindow -> in-memory identity/cache/deduplication/comparison; source-local consumers: resetMessageWindowCache.get at :439
src/config/sessions/session-accessor.sqlite-transcript-stats-read.ts:33 ${options.agentId}\0${pathname} In-memory readTranscriptStatsBatchReadOnlySync -> in-memory identity/cache/deduplication/comparison; source-local consumers: groups.get at :34, groups.set at :36
src/config/sessions/session-cold-storage.ts:289 ${storePath}\0 In-memory enclosing function -> in-memory identity/cache/deduplication/comparison; source-local consumers: cache.delete at :288, cooled.add at :290
src/config/sessions/session-cold-storage.ts:328 ${storePath}\0${sessionId} In-memory enclosing function -> in-memory identity/cache/deduplication/comparison; source-local consumers: oversizedUntil.set at :328
src/config/sessions/session-cold-storage.ts:367 ${storePath}\0${id} In-memory result -> in-memory identity/cache/deduplication/comparison; source-local consumers: restoredUntil.get at :367
src/config/sessions/session-cold-storage.ts:494 ${storePath}\0${resolved.sessionId} In-memory restoreSessionColdTranscript -> in-memory identity/cache/deduplication/comparison; constituent data remains separate
src/config/sessions/session-skill-snapshot-intern.ts:22 \0${Object.keys(snapshot).indexOf(&quot;prompt&quot;)}\0 Hash input internSessionSkillSnapshot -> SHA-256/HMAC digest; raw NUL input does not reach SQL
src/config/sessions/startup-migration.ts:135 ${target.agentId}\0${destination} In-memory legacyStore -> in-memory identity/cache/deduplication/comparison; source-local consumers: owners.set at :135
src/config/sessions/startup-migration.ts:283 ${entry.agentId}\0${entry.path} In-memory registeredDatabases -> in-memory identity/cache/deduplication/comparison; source-local consumers: databases.has at :292, databases.add at :295
src/config/sessions/startup-migration.ts:329 ${options.agentId}\0${databasePath} In-memory tasks -> in-memory identity/cache/deduplication/comparison; source-local consumers: registeredDatabases.has at :329, registeredDatabases.has at :344
src/config/sessions/startup-migration.ts:344 ${options.agentId}\0${databasePath} In-memory tasks -> in-memory identity/cache/deduplication/comparison; source-local consumers: registeredDatabases.has at :344, registeredDatabases.has at :329
src/config/sessions/targets.ts:419 ${agentId}\0${pathname} In-memory add -> in-memory identity/cache/deduplication/comparison; source-local consumers: targets.set at :419, params.nativeAgentIds.has at :432
src/config/source-file.ts:180 ${boundary.authority.rootDir}\0${offset} In-memory refresh -> in-memory identity/cache/deduplication/comparison; source-local consumers: plans.set at :180, plans.has at :198
src/config/validation-plugin-rules.ts:451 ${ref.path}\0${provider}/${model} In-memory issueKey -> in-memory identity/cache/deduplication/comparison; source-local consumers: suppressedModels.get at :450, seen.has at :452
src/cron/isolated-agent/model-preflight.runtime.ts:199 ${api}\0${baseUrl} In-memory preflightCronModelProvider -> in-memory identity/cache/deduplication/comparison; source-local consumers: preflightCache.get at :200, preflightCache.set at :223
src/cron/isolated-agent/run-prompt-executor.ts:349 ${providerOverride}/${modelOverride}\0${candidateRuntime} In-memory thinkingSelectionKey -> in-memory identity/cache/deduplication/comparison; constituent data remains separate
src/cron/schedule.ts:25 ${timezone}\u0000${expr} In-memory resolveCachedCron -> in-memory identity/cache/deduplication/comparison; source-local consumers: cronEvalCache.get at :26, cronEvalCache.delete at :29
src/cron/service/store.ts:290 ${state.deps.storePath}\0${errorMessage} In-memory quarantine warning suppression Set
src/cron/session-reaper.ts:77 ${normalizeAgentId(agentId)}\0${path.resolve(storePath)} In-memory reaperTargetKey -> in-memory identity/cache/deduplication/comparison; constituent data remains separate
src/daemon/managed-gateway-bindings.ts:64 [ resolveGatewayProfileSuffix(binding.env.OPENCLAW_PROFILE), binding.scope ?? binding.systemdReadTarget?.scope ?? "", binding.systemdReadTarget?.unitPath ?? "", binding.launchAgentPlistPath ?? "", binding.windowsStartupEntry ? path.win32.normalize(binding.windowsStartupEntry).toLowerCase() : "", binding.env.OPENCLAW_SYSTEMD_UNIT ?? "", binding.env.OPENCLAW_LAUNCHD_LABEL ?? "", binding.env.OPENCLAW_WINDOWS_TASK_NAME ?? "", ].join("\0") In-memory bindingSelectorKey -> in-memory identity/cache/deduplication/comparison; constituent data remains separate
src/daemon/service-types.ts:355 managedDefinition.programArguments.join("\0") | command.programArguments.join("\0") In-memory hasGatewayServiceLauncherOverride -> in-memory identity/cache/deduplication/comparison; source-local consumers: ownedKeys.has at :382
src/gateway/agent-runtime-identity-token.ts:293 createHmac("sha256", secret) .update(AGENT_RUNTIME_IDENTITY_TOKEN_CONTEXT) .update("\0") Hash input signPayload -> SHA-256/HMAC digest; raw NUL input does not reach SQL
src/gateway/artifact-download-projection.ts:29 createHash("sha256") .update(JSON.stringify([artifact.id, artifact.type, artifact.title, artifact.mimeType])) .update("\0") Hash input artifactContentDigest -> SHA-256/HMAC digest; raw NUL input does not reach SQL
src/gateway/artifact-downloads.ts:93 ${createHash(&quot;sha256&quot;).update(source).digest(&quot;hex&quot;)}\0${width} In-memory handleArtifactDownloadHttpRequest -> in-memory identity/cache/deduplication/comparison; source-local consumers: url.searchParams.get at :92
src/gateway/board-view-ticket.ts:65 ${BOARD_VIEW_TICKET_SCOPE}\0${payload} Hash input signTicketPayload -> SHA-256/HMAC digest; raw NUL input does not reach SQL
src/gateway/control-ui-plugin-auth-cookie.ts:48 ${generation}\0${binding} Hash input requestCookieGeneration -> SHA-256/HMAC digest; raw NUL input does not reach SQL
src/gateway/control-ui-public-session-token.ts:61 Object.keys(value).toSorted().join("\0") | keys.join("\0") In-memory hasExactKeys -> in-memory identity/cache/deduplication/comparison; constituent data remains separate
src/gateway/control-ui-session-diff-revision.ts:378 head.update(record).update("\0") Hash input readCheckoutDiffRevision -> SHA-256/HMAC digest; raw NUL input does not reach SQL
src/gateway/control-ui-session-diff-revision.ts:387 untrackedSet.update(file).update("\0") Hash input readCheckoutDiffRevision -> SHA-256/HMAC digest; raw NUL input does not reach SQL
src/gateway/control-ui-session-pr-read.ts:269 scopes.toSorted().join("\0") In-memory createControlUiSessionPrRead -> in-memory identity/cache/deduplication/comparison; source-local consumers: scopes.toSorted at :269
src/gateway/control-ui-session-pr-read.ts:278 current!.toSorted().join("\0") In-memory hasCurrentScopes -> in-memory identity/cache/deduplication/comparison; source-local consumers: scopes.toSorted at :269
src/gateway/control-ui-static.ts:277 ${encoding}\0${body} In-memory cachedCompressedControlUiHtml -> in-memory identity/cache/deduplication/comparison; source-local consumers: controlUiHtmlCompressionCache.get at :278, controlUiHtmlCompressionCache.delete at :280
src/gateway/conversation-list.ts:103 ${entry.kind}\u0000${entry.id.trim()} In-memory runGatewayConversationList -> in-memory identity/cache/deduplication/comparison; source-local consumers: entries.set at :103
src/gateway/github-personal-oauth.ts:600 ${action.owner}\0${requestId} In-memory pollAuthorization -> in-memory identity/cache/deduplication/comparison; constituent data remains separate
src/gateway/github-publication-action-target.ts:40 ${agentId}\0${key} In-memory preparePublishingSession -> in-memory identity/cache/deduplication/comparison; source-local consumers: seen.has at :41, seen.add at :44
src/gateway/github-publication-defer.worker.ts:79 ${row.sessionId}\0${row.claimId}\0${row.runId} In-memory pending -> in-memory identity/cache/deduplication/comparison; source-local consumers: pending.has at :89, localClaims.get at :66
src/gateway/github-publication-defer.worker.ts:89 ${row.session_id}\0${row.claim_id}\0${row.run_id} In-memory enclosing function -> in-memory identity/cache/deduplication/comparison; source-local consumers: pending.has at :89, placements.get at :92
src/gateway/github-publication-discovery.ts:52 ${session.agentId}\0${session.sessionKey} In-memory keyOf -> in-memory identity/cache/deduplication/comparison; source-local consumers: sessions.set at :63
src/gateway/github-publication-workflows.ts:100 repository + "\0" In-memory key -> in-memory identity/cache/deduplication/comparison; source-local consumers: names.has at :118, names.add at :130
src/gateway/github-publication.ts:250 ${instanceId}\0${initial.request_id} In-memory executionKey -> in-memory identity/cache/deduplication/comparison; constituent data remains separate
src/gateway/github-repository-publication-snapshot.ts:215 "blob " + bytes.length + "\0" Hash input readGitHubRepositoryPublicationBlob -> SHA-256/HMAC digest; raw NUL input does not reach SQL
src/gateway/http-auth-plugin-cookie.ts:40 ${authGeneration}\0${captureGatewayAuthPolicy(cfg, null).generation} Hash input resolveControlUiPluginAuthCookieGeneration -> SHA-256/HMAC digest; raw NUL input does not reach SQL
src/gateway/managed-image-thumbnail-cache.ts:94 ${opened.realPath}\0${dev}:${ino}\0${opened.stat.ctimeMs}\0${opened.stat.mtimeMs}\0${opened.stat.size}\0${width} In-memory readImageThumbnailFromFile -> in-memory identity/cache/deduplication/comparison; source-local consumers: managedImageThumbnailJobs.set at :81, managedImageThumbnailJobs.delete at :79
src/gateway/mcp-app-reconstruction.ts:157 ${params.agentId ?? &quot;&quot;}\0${params.sessionKey}\0${params.viewId} In-memory restoreMcpAppView -> in-memory identity/cache/deduplication/comparison; constituent data remains separate
src/gateway/mcp-app-standalone.ts:60 ${MCP_APP_STANDALONE_TICKET_SCOPE}\0${nonce}\0${expiresAtMs} Hash input signTicket -> SHA-256/HMAC digest; raw NUL input does not reach SQL
src/gateway/mcp-http.runtime.ts:459 `${params.grantToken ?? ""}\u0000${stableStringify({ context: { ...context, clientCaps: [...new Set(context.clientCaps ?? [])].toSorted(), // Missing allows all; an empty list denies all. toolsAllow: context.toolsAllow ? [...new Set(context.toolsAllow)].toSorted() : undefined, pinnedWidgetAuthoring: context.pinnedWidgetAuthoring === true, currentInboundAudio: context.currentInboundAudio === true, sourceReplyOnly: context.sourceReplyOnly === true, requireExplicitMessageTarget: context.requireExplicitMessageTarget === true, nodeExecAllowed: context.nodeExecAllowed === true, delegationCapability: In-memory buildMcpLoopbackToolCacheKey -> in-memory identity/cache/deduplication/comparison; constituent data remains separate
src/gateway/mcp-http.runtime.ts:553 ${token}\u0000 In-memory evictGrant -> in-memory identity/cache/deduplication/comparison; source-local consumers: grantConfigScopes.get at :549, grantConfigScopes.delete at :557
src/gateway/node-plugin-tool-snapshot.ts:58 ${entry.pluginId}\0${name}\0${command} In-memory createRegisteredNodePluginToolDescriptorMap -> in-memory identity/cache/deduplication/comparison; source-local consumers: descriptors.set at :58
src/gateway/node-plugin-tool-snapshot.ts:122 ${pluginId}\0${name}\0${command} In-memory normalizeNodePluginToolDescriptors -> in-memory identity/cache/deduplication/comparison; source-local consumers: params.registeredDescriptors.get at :121, allowedCommands.has at :107
src/gateway/node-plugin-tool-snapshot.ts:151 ${entry.descriptor.pluginId}\0${entry.descriptor.name} In-memory entries -> in-memory identity/cache/deduplication/comparison; source-local consumers: normalized.sort at :143, toolsByNodeId.set at :171
src/gateway/node-registry.system-run.ts:100 ${params.nodeId}\0${params.connId}\0${params.sessionKey ?? &quot;&quot;}\0${params.runId} In-memory authorizedSystemRunEventKey -> in-memory identity/cache/deduplication/comparison; constituent data remains separate
src/gateway/operator-approval-session-events.ts:258 scopes.join("\0") | client?.connect.scopes?.join("\0") In-memory assertCurrent -> in-memory identity/cache/deduplication/comparison; source-local consumers: replayScopes.get at :268, replayScopes.set at :276
src/gateway/operator-approval-store.receipts.ts:167 createHash("sha256") .update(sourceRef, "utf8") .update("\0", "utf8") Hash input projectOperatorApprovalReceipt -> SHA-256/HMAC digest; raw NUL input does not reach SQL
src/gateway/plugin-icon-http.ts:388 ${cacheScope}\0${ Array.isArray(pluginIcon) ? sources:${JSON.stringify(pluginIcon)}: pluginIcon ?file:${pluginIcon.rootPath}\0${pluginIcon.path} : remoteIconUrl } In-memory handlePluginIconHttpRequest -> in-memory identity/cache/deduplication/comparison; constituent data remains separate
src/gateway/plugin-icon-http.ts:392 file:${pluginIcon.rootPath}\0${pluginIcon.path} In-memory handlePluginIconHttpRequest -> in-memory identity/cache/deduplication/comparison; constituent data remains separate
src/gateway/plugin-node-capability.ts:161 ${normalizedSurface}\0${scopeKey} In-memory client.pluginNodeCapabilities object; connection-local token state
src/gateway/project-github-search.ts:219 ${url}\0${host}\0${cacheScope} In-memory result -> in-memory identity/cache/deduplication/comparison; source-local consumers: searchCaches.set at :209, searchCaches.get at :203
src/gateway/server-cron-publication.ts:29 ${agentId}\0${key} In-memory enclosing function -> in-memory identity/cache/deduplication/comparison; source-local consumers: bindings.set at :29
src/gateway/server-methods/artifacts.ts:602 ${createHash(&quot;sha256&quot;).update(source).digest(&quot;hex&quot;)}\0${width} In-memory cacheKey -> in-memory identity/cache/deduplication/comparison; constituent data remains separate
src/gateway/server-methods/chat-metadata-session-projection.ts:226 [ normalizeAgentId(agentId), profiles.preferredProfileId ?? "", profiles.pinnedProfileId ?? "", profiles.profileProvider ?? "", profiles.runtimeOverride ?? "", ].join("\0") In-memory sessionProjectionKey -> in-memory identity/cache/deduplication/comparison; constituent data remains separate
src/gateway/server-methods/models-auth-status-usage-cache.ts:213 providerIds.join("\0") In-memory resolveProviderUsageCacheRead -> in-memory identity/cache/deduplication/comparison; source-local consumers: params.providerIds.toSorted at :212, usageCacheByAgentId.get at :215
src/gateway/server-methods/projects-recents.ts:112 folder:${execNode ?? &quot;&quot;}\0${folder} In-memory seen Set; response retains original folder/node fields
src/gateway/server-methods/session-catalog-list.ts:210 ${progressConnId}\0${progressId} In-memory subscribe -> in-memory identity/cache/deduplication/comparison; source-local consumers: operations.pending.get at :236
src/gateway/server-methods/session-change-event.ts:119 ${routingAgentId ?? payload.agentId ?? &quot;&quot;}\0${key} In-memory sessionChangeKey -> in-memory identity/cache/deduplication/comparison; constituent data remains separate
src/gateway/server-methods/session-create-project.ts:391 ${storePath}\0${sessionKey} In-memory prepare -> in-memory identity/cache/deduplication/comparison; source-local consumers: workspacePreparations.enqueue at :391
src/gateway/server-methods/session-files-root.ts:186 ${agentId}\0${entry.sessionId}\0${target.storePath ?? &quot;&quot;}${sourceIdentity ? \0${sourceIdentity} : &quot;&quot;} In-memory loadSessionFiles -> in-memory identity/cache/deduplication/comparison; constituent data remains separate
src/gateway/server-methods/session-goal-request.ts:17 createHmac("sha256", identity.privateKeyPem) .update("openclaw.session-goal.v1\0") Hash input fingerprintSessionGoalRequest -> SHA-256/HMAC digest; raw NUL input does not reach SQL
src/gateway/server-methods/sessions-patch-discovery.ts:36 ${resolved.storePath}\0${resolved.canonicalKey ?? key} In-memory discoverSessionPatchTargets -> in-memory identity/cache/deduplication/comparison; source-local consumers: logicalTargets.has at :37, logicalTargets.add at :40
src/gateway/server-methods/sessions-patch-groups.ts:49 target.storePath + "\0" In-memory groups -> in-memory identity/cache/deduplication/comparison; source-local consumers: ready.toSorted at :40
src/gateway/server-methods/sessions-patch-sidebar-ancestors.ts:75 agentId + "\0" In-memory prepareSessionPatchSidebarAncestors -> in-memory identity/cache/deduplication/comparison; source-local consumers: visited.has at :76, visited.add at :79
src/gateway/server-methods/sessions-reactions.ts:247 [ target.agentId, target.storeKey, target.entry.sessionId, transport.conversationRef, transport.messageId, singleSlot ? "" : emoji, ].join("\0") In-memory mirrorQueues Map passed to enqueueKeyedTask
src/gateway/server-methods/sessions-read.ts:304 ${hit.sessionKey}\u0000${hit.sessionId}\u0000${hit.messageId} In-memory identity -> in-memory identity/cache/deduplication/comparison; source-local consumers: seenHits.has at :305, seenHits.add at :308
src/gateway/server-methods/sessions-typing.ts:154 ${actor.id}\0${target.agentId}\0${target.canonicalKey}\0${target.entry.sessionId}\0${target.entry.lifecycleRevision ?? 0} In-memory typingKey -> in-memory identity/cache/deduplication/comparison; constituent data remains separate
src/gateway/server-methods/sessions-typing.ts:170 ${effectiveTyping}\0${preview ?? &quot;&quot;}\0${cursor ?? &quot;&quot;} In-memory broadcast -> in-memory identity/cache/deduplication/comparison; source-local consumers: liveIdentities.has at :199
src/gateway/server-methods/usage-overview-report.ts:23 ${row.agentId ?? &quot;&quot;}\u0000${row.key} In-memory usageOverviewRowKey -> in-memory identity/cache/deduplication/comparison; constituent data remains separate
src/gateway/server-methods/usage-overview-report.ts:73 ${usageOverviewRowKey(row)}\u0000${row.hasContextWeight ? 1 : 0} In-memory usageOverviewMembers -> in-memory identity/cache/deduplication/comparison; source-local consumers: params.usage.refs.get at :61
src/gateway/server-methods/usage-session-selection.ts:163 ${agentId}\0${sessionId} In-memory usageSessionIdentity -> in-memory identity/cache/deduplication/comparison; source-local consumers: targetsBySessionKey.get at :183, matchesByIdentity.get at :185
src/gateway/server-node-events.ts:763 ${deviceId}\0${pairingGeneration.key} In-memory handlePreparedNodeEvent -> in-memory identity/cache/deduplication/comparison; source-local consumers: recentNodePresencePersistAt.get at :764, recentNodePresencePersistAt.set at :784
src/gateway/server-secrets-reload.ts:233 ${channel}\0${accountId} In-memory enclosing function -> in-memory identity/cache/deduplication/comparison; source-local consumers: accountTargets.set at :233, plan.restartChannels.has at :228
src/gateway/server-secrets-reload.ts:256 ${channel}\0${accountId} In-memory key -> in-memory identity/cache/deduplication/comparison; source-local consumers: accountTargets.get at :257, plan.restartChannels.has at :246
src/gateway/server-startup-secret-diagnostics.ts:88 ${providerFailure.source}\0${providerFailure.provider} In-memory logPreparedSecretDegradations -> in-memory identity/cache/deduplication/comparison; source-local consumers: providerDegradations.get at :89, providerDegradations.set at :92
src/gateway/server/ws-shared-generation.ts:12 ${auth.mode}\u0000${secret} Hash input resolveSharedGatewaySessionGeneration -> SHA-256/HMAC digest; raw NUL input does not reach SQL
src/gateway/session-activity-summary-state.ts:59 ${target.agentId}\0${target.key} In-memory activitySummaryScope -> in-memory identity/cache/deduplication/comparison; source-local consumers: pending.get at :63, pending.get at :71
src/gateway/session-artifact-read.ts:135 ${parts.sessionKey}\0${parts.messageSeq}\0${parts.contentIndex}\0${parts.type}\0${parts.title} Hash input artifactId -> SHA-256/HMAC digest; raw NUL input does not reach SQL
src/gateway/session-automation-index.ts:87 ${agentId}\0${key} In-memory automation identity Set
src/gateway/session-automation-index.ts:129 ${normalizeAgentId(agentId)}\0${sessionKey} In-memory automation identity Set
src/gateway/session-companion-state.ts:15 ${sessionObserverScopeKey(sessionKey, agentId)}\u0000 In-memory sessionCompanionScopePrefix -> in-memory identity/cache/deduplication/comparison; constituent data remains separate
src/gateway/session-row-child-activity.ts:49 ${link.agentId ?? &quot;&quot;}\0${link.storePath ?? &quot;&quot;}\0${link.key} In-memory childId -> in-memory identity/cache/deduplication/comparison; source-local consumers: dependents.get at :58, parent.dirty.add at :61
src/gateway/session-row-projection-record.ts:208 ${row.agentId}\0${row.storeTarget.storePath}\0${row.key} In-memory identity -> in-memory identity/cache/deduplication/comparison; source-local consumers: byParent.get at :214, byParent.get at :215
src/gateway/session-row-projection-record.ts:209 physical:${storePath}\0${key} In-memory physical -> in-memory identity/cache/deduplication/comparison; source-local consumers: byParent.get at :214, byParent.get at :215
src/gateway/session-row-projection-record.ts:211 logical:${agentId}\0${key} In-memory logicalSessionRowIdentity -> in-memory identity/cache/deduplication/comparison; source-local consumers: byParent.get at :214, byParent.get at :215
src/gateway/session-row-projection-refresh.ts:191 ${row.storeTarget.agentId}\0${row.storeTarget.storePath} In-memory prepareExactRows -> in-memory identity/cache/deduplication/comparison; source-local consumers: owner.rows.get at :188, exactReads.set at :194
src/gateway/session-row-scope.ts:311 ${target.agentId}\0${target.storePath} In-memory paths -> in-memory identity/cache/deduplication/comparison; source-local consumers: resolved.physicalTargets.get at :311, aliases.set at :306
src/gateway/session-sharing-preparation.ts:116 ${identity.key}\0${sessionKey} In-memory retainedReads Map
src/gateway/session-sharing-preparation.ts:468 ${loaded.sharing.databaseIdentity}\0${sessionKey} In-memory retainedReads Map
src/gateway/session-sharing-preparation.ts:549 ${sharing.databaseIdentity}\0${canonicalKey} In-memory retainedReads Map
src/gateway/session-sharing-preparation.ts:606 ${sharing.databaseIdentity}\0${target.storeKey} In-memory retainedReads Map
src/gateway/session-title-state.ts:10 ${target.storePath}\0${target.sessionKey}\0${target.sessionId} In-memory title request state Map
src/gateway/session-transcript-files.fs.ts:137 ${dir}\0${base} In-memory listResetArchiveCandidatesForTranscriptAsync -> in-memory identity/cache/deduplication/comparison; source-local consumers: resetArchiveDiscoveryCache.get at :138, resetArchiveDiscoveryCache.delete at :140
src/gateway/session-transcript-title-reader.worker.ts:185 ${target.agentId ?? &quot;&quot;}\0${target.sessionId}\0${target.storePath ?? &quot;&quot;} In-memory readSessionTitleFieldsFromTranscript -> in-memory identity/cache/deduplication/comparison; source-local consumers: sqliteTitleFieldCache.set at :204
src/gateway/session-utils-contracts.ts:69 ${normalizeLowercaseStringOrEmpty(provider)}\0${normalizeOptionalString(model) ?? &quot;&quot;} In-memory createSessionRowModelCacheKey -> in-memory identity/cache/deduplication/comparison; constituent data remains separate
src/gateway/session-utils-model.ts:127 ${normalizeAgentId(params.agentId)}\0${agentRuntime}\0${normalizeLowercaseStringOrEmpty(thinkingPolicyProvider)}\0${policySource ?? &quot;active-or-bundled&quot;}\0${createSessionRowModelCacheKey( params.provider, params.model, )} In-memory resolveGatewayModelThinkingFacts -> in-memory identity/cache/deduplication/comparison; source-local consumers: thinkingFactsByModelRef.get at :131
src/gateway/session-utils-projection.ts:73 ${selection.runtimeId}\0${selection.allowApiFallback !== false}\0${createSessionRowModelCacheKey(selection.entry.provider, selection.entry.id)} In-memory key -> in-memory identity/cache/deduplication/comparison; source-local consumers: entries.get at :74, entries.get at :69
src/gateway/session-utils-store-read.ts:78 ${storePath}\u0000${agentId ?? &quot;&quot;}\u0000${clone === false ? &quot;0&quot; : &quot;1&quot;}\u0000${options.readOnly}\u0000${JSON.stringify(options.projection ?? &quot;full&quot;)}\u0000${options.readConsistency ?? &quot;&quot;}\u0000${options.exactKeys?.join(&quot;\u0001&quot;) ?? &quot;&quot;} In-memory readGatewaySessionStore -> in-memory identity/cache/deduplication/comparison; constituent data remains separate
src/gateway/sessions-resolve.ts:477 ${owner.agentId}\0${agentSelection.sessionKey} In-memory resolveSessionKeyFromResolveParams -> in-memory identity/cache/deduplication/comparison; source-local consumers: ownerTaggedMatches.set at :477
src/gateway/talk/handlers/client-legacy-voice-bindings.ts:11 ${connId}\0${sessionKey} In-memory legacyVoiceBindingKey -> in-memory identity/cache/deduplication/comparison; source-local consumers: legacyVoiceSessionByClient.delete at :17, legacyVoiceSessionByClient.set at :30
src/gateway/talk/voice-selection.ts:56 ${session.connId}\0${session.sessionTarget.agentId}\0${session.voiceSessionId} In-memory sessionKey -> in-memory identity/cache/deduplication/comparison; source-local consumers: changes.delete at :79, changes.get at :84
src/gateway/talk/voice-selection.ts:204 ${connId}\0${agentId}\0${voiceSessionId} In-memory unregisterTalkVoiceSession -> in-memory identity/cache/deduplication/comparison; source-local consumers: sessions.get at :205, sessions.delete at :206
src/gateway/talk/voice-selection.ts:221 ${connId}\0${agentId}\0${voiceSessionId} In-memory cancelTalkVoiceSessionChange -> in-memory identity/cache/deduplication/comparison; source-local consumers: sessions.get at :221, sessions.delete at :206
src/gateway/talk/voice-selection.ts:237 ${connId}\0${agentId}\0${voiceSessionId} In-memory markTalkVoiceSessionReady -> in-memory identity/cache/deduplication/comparison; source-local consumers: sessions.get at :237, sessions.get at :221
src/gateway/worker-environments/bootstrap.ts:173 const separator = String.fromCharCode(0); Hash input worker bootstrap manifest verification -> SHA-256/HMAC digest; raw NUL input does not reach SQL
src/gateway/worker-environments/credential.ts:10 WORKER_CREDENTIAL_HASH_DOMAIN = "openclaw-worker-credential-v1\0" Hash input WORKER_CREDENTIAL_HASH_DOMAIN -> SHA-256/HMAC digest; raw NUL input does not reach SQL
src/gateway/worker-environments/credential.ts:11 WORKER_TURN_CREDENTIAL_HASH_DOMAIN = "openclaw-worker-turn-credential-v1\0" Hash input WORKER_TURN_CREDENTIAL_HASH_DOMAIN -> SHA-256/HMAC digest; raw NUL input does not reach SQL
src/gateway/worker-environments/credential.ts:46 ${WORKER_TURN_CREDENTIAL_HASH_DOMAIN}${binding}\0${credential} Hash input hashWorkerCredential -> SHA-256/HMAC digest; raw NUL input does not reach SQL
src/gateway/worker-environments/desktop-tunnel.ts:255 ${request.environmentId}\0${request.app.id} In-memory launchApp -> in-memory identity/cache/deduplication/comparison; source-local consumers: appLaunches.get at :256
src/gateway/worker-environments/inference.ts:499 ${claimKey}\0${serialized} Hash input hash -> SHA-256/HMAC digest; raw NUL input does not reach SQL
src/gateway/worker-environments/node-desktop-carrier.ts:303 ${binding.environmentId}\0${app.id} In-memory key -> in-memory identity/cache/deduplication/comparison; source-local consumers: activeLaunches.get at :304, activeLaunches.get at :326
src/gateway/worker-environments/placement-session-tool-operations.ts:58 ${context.admission.identity.key}\0${sessionId}\0${claimId} In-memory key -> in-memory identity/cache/deduplication/comparison; source-local consumers: waiters.get at :60, waiters.delete at :45
src/gateway/worker-environments/session-repository-checkpoints.ts:556 create ${target}\0${expected}\0 Binary/process protocol enclosing function -> Git/process/rsync/PTY/header binary protocol; no SQL text/key
src/gateway/worker-environments/transcript-commit.runtime.ts:286 [sessionId, params.request.runEpoch, params.request.seq, index].join("\0") Hash input idempotencyKey -> SHA-256/HMAC digest; raw NUL input does not reach SQL
src/gateway/worker-environments/worker-session-tool-executor.ts:69 openclaw.worker-session-tool-operation.v1\0${operationSeed}\0${purpose} Hash input SHA-256/base64url operation/request identity; child/session/send identifiers use digest
src/gateway/worker-environments/worker-session-tool-executor.ts:446 openclaw.worker-session-tool-request.v1\0${JSON.stringify({ toolName: request.toolName, sourceSessionId: source.sessionId, ...(request.toolName === &quot;sessions_spawn&quot; ? { task: request.request.task, label: request.request.label ?? null, agentId: request.request.agentId ?? null, model: request.request.model ?? null, runTimeoutSeconds: request.request.runTimeoutSeconds ?? null, } : { sessionKey: request.request.sessionKey, message: request.request.message, timeoutSeconds: request.request.timeoutSeconds ?? null, }), })} Hash input SHA-256/base64url operation/request identity; child/session/send identifiers use digest
src/gateway/worker-environments/worker-session-tool-executor.ts:499 ${source.sessionId}\0${sourceClaimId}\0${request.request.toolCallId} In-memory inFlight Map
src/gateway/worker-environments/worker-session-tool-executor.ts:518 openclaw.worker-session-tool-operation.v1\0${started.operationSeed}\0child-session Hash input SHA-256/base64url operation/request identity; child/session/send identifiers use digest
src/gateway/worker-environments/workspace-accepted-sync.ts:207 ${transferPaths.toSorted().join(&quot;\0&quot;)}\0 Binary/process protocol publish -> Git/process/rsync/PTY/header binary protocol; no SQL text/key
src/gateway/worker-environments/workspace-git-base.ts:34 ${project.key}\0${project.baseCommit} Hash input workerProjectSeedKey -> SHA-256/HMAC digest; raw NUL input does not reach SQL
src/gateway/worker-environments/workspace-inventory-computation.runtime.ts:46 ${file}\0 Binary/process protocol append -> Git/process/rsync/PTY/header binary protocol; no SQL text/key
src/gateway/worker-environments/workspace-result-git.ts:150 delete ${ref}\0\0 | update ${ref}\0${objectId}\0\0 Binary/process protocol input -> Git/process/rsync/PTY/header binary protocol; no SQL text/key
src/gateway/worker-environments/workspace-sync.ts:342 /${directory}/***\0 Binary/process protocol syncWorkspaceImpl -> Git/process/rsync/PTY/header binary protocol; no SQL text/key
src/gateway/worker-environments/workspace-sync.ts:573 ${transferPaths.join(&quot;\0&quot;)}\0 Binary/process protocol reconcileWorkspaceRun -> Git/process/rsync/PTY/header binary protocol; no SQL text/key
src/infra/agent-run-projection.ts:10 ${normalizeAgentId(agentId)}\0${value} In-memory projectedRunIdentity -> in-memory identity/cache/deduplication/comparison; constituent data remains separate
src/infra/approval-resolution-ref.ts:11 ${params.approvalKind}\0${params.approvalId} Hash input buildApprovalResolutionRef -> SHA-256/HMAC digest; raw NUL input does not reach SQL
src/infra/clawhub-skill-security.ts:46 ${target.ownerHandle ?? &quot;&quot;}\0${normalizeSlug(target.slug)}\0${target.version} In-memory target and legacy-key Map/Set deduplication
src/infra/clawhub-skill-security.ts:52 ${normalizeSlug(target.slug)}\0${target.version} In-memory target and legacy-key Map/Set deduplication
src/infra/client-credential-async.ts:103 key: "\0credential-root-resolution" In-memory queues Map passed to enqueueKeyedTask
src/infra/command-analysis/risks.ts:35 argv.join("\0") In-memory seenArgv/seenCandidates Sets
src/infra/command-explainer/topology.ts:16 ${command.context}\0${command.parentCommandId ?? &quot;&quot;} In-memory commandTopologyBuckets -> in-memory identity/cache/deduplication/comparison; source-local consumers: buckets.get at :17, buckets.set at :21
src/infra/current-machine-identity.ts:53 ${process.platform}\0${identity} Hash input probeMachineIdentity -> SHA-256/HMAC digest; raw NUL input does not reach SQL
src/infra/deferred-plugin-session-source-read.ts:23 ${target.agentId}\0${path.resolve(target.sqlitePath)} In-memory resolveDeferredPluginSessionSourceKey -> in-memory identity/cache/deduplication/comparison; constituent data remains separate
src/infra/device-identity-async.ts:84 ${databasePath}\0${identityKey} In-memory device identity operation cache
src/infra/device-identity-async.ts:102 ${databasePath}\0${identityKey} In-memory device identity operation cache
src/infra/device-pairing-core.kernel.ts:249 ${clientId}\0${clientMode}\0${displayName} In-memory silent pairing cluster comparison; persisted device columns stay separate
src/infra/device-pairing-identity.ts:133 [ device.publicKey, device.createdAtMs, token.token, token.createdAtMs, token.rotatedAtMs ?? "", token.revokedAtMs ?? "", ].join("\0") Hash input resolvePairedDeviceTokenIdentity -> SHA-256/HMAC digest; raw NUL input does not reach SQL
src/infra/device-pairing-identity.ts:168 [ device.publicKey, device.createdAtMs, nodeToken?.token ?? "", nodeToken?.revokedAtMs ?? "", nodeSurface.createdAtMs, nodeSurface.approvedAtMs, ].join("\0") Hash input resolveNodePairingGeneration -> SHA-256/HMAC digest; raw NUL input does not reach SQL
src/infra/device-pairing-node.ts:49 ${baseDir ?? &quot;&quot;}\0${observed.nodeId}\0${observed.requestId}\0${observed.revision ?? &quot;&quot;} In-memory activeCleanupRevisionClaims Map
src/infra/dotenv-global-core.ts:121 ${previous.filePath}\u0000${file.filePath} In-memory loadParsedDotEnvFiles -> in-memory identity/cache/deduplication/comparison; source-local consumers: conflicts.get at :122, existing.keys.add at :124
src/infra/exec-approvals-allow-always.ts:191 ${pattern.pattern}\x00${pattern.argPattern ?? &quot;&quot;} In-memory resolveAllowAlwaysPatternCoverage -> in-memory identity/cache/deduplication/comparison; source-local consumers: byKey.set at :191
src/infra/exec-approvals-config.ts:301 ${patternKey}\x00${entry.argPattern?.trim() ?? &quot;&quot;} In-memory key -> in-memory identity/cache/deduplication/comparison; source-local consumers: seen.has at :302, seen.add at :305
src/infra/exec-command-resolution.ts:206 argsSlice.length === 0 ? "\x00\x00" : argsSlice.join("\x00") + "\x00" Transient renderGeneratedArgPatternSubject/matchArgPattern: in-memory regex subject and separator; not persisted
src/infra/exec-command-resolution.ts:211 ${argsSlice.length}\x00${argsSlice .map((arg) =&gt; ${Buffer.byteLength(arg, "utf8")}\x00${arg}\x00) .join(&quot;&quot;)} Hash input renderGeneratedHashedArgPatternSubject -> buildCwdBoundHashedArgPattern SHA-256
src/infra/exec-command-resolution.ts:212 ${Buffer.byteLength(arg, &quot;utf8&quot;)}\x00${arg}\x00 Hash input renderGeneratedHashedArgPatternSubject -> buildCwdBoundHashedArgPattern SHA-256
src/infra/exec-command-resolution.ts:228 ${Buffer.byteLength(normalizedCwd, &quot;utf8&quot;)}\x00${normalizedCwd}\x00${renderGeneratedHashedArgPatternSubject(argv)} Hash input renderGeneratedHashedArgPatternSubject -> buildCwdBoundHashedArgPattern SHA-256
src/infra/exec-command-resolution.ts:255 argPattern.includes("\x00") ? "\x00" : " " Transient renderGeneratedArgPatternSubject/matchArgPattern: in-memory regex subject and separator; not persisted
src/infra/executable-path.ts:129 ${process.platform}\0${executable}\0${JSON.stringify(pathEnv)}\0${pathExt}\0${options?.includeExtensionless !== false}\0${cacheCwd}\0${cwd !== undefined} In-memory resolveExecutableFromPathEnv -> in-memory identity/cache/deduplication/comparison; source-local consumers: executablePathCache.get at :130, executablePathCache.delete at :137

@steipete

Copy link
Copy Markdown
Contributor Author

Core NUL inventory — part 3/3.

Source snapshot: b906fc7f0819648d54c7913b2fab271666b5413f. These tables cover all 534 extracted runtime constructor locations across 355 files, excluding pure validation/removal and test fixtures. The only additional PostgreSQL failure is Doctor's range operand; it is fixed in this PR.

Location Construction Classification Traced sink
src/infra/github-issue.ts:98 createHash("sha256") .update(title) .update("\0") Hash input prepareGithubIssue -> SHA-256/HMAC digest; raw NUL input does not reach SQL
src/infra/node-runtime-executable.ts:70 [ process.platform, process.versions.bun ?? process.versions.node, requiredFlag ?? "", env.PATH ?? "", env.PATHEXT ?? "", ].join("\0") In-memory resolveNodeRuntimeExecutable -> in-memory identity/cache/deduplication/comparison; source-local consumers: resolvedNodeRuntimeExecutables.get at :71, process.allowedNodeEnvironmentFlags.has at :59
src/infra/openclaw-root.ts:168 candidates.join("\0") In-memory preparePackageRootSearch -> in-memory identity/cache/deduplication/comparison; source-local consumers: searches.get at :170, argv1CandidateCache.set at :162
src/infra/openclaw-root.ts:206 candidates.join("\0") In-memory resolveOpenClawPackageRootsSync -> in-memory identity/cache/deduplication/comparison; source-local consumers: searches.get at :208, seen.has at :216
src/infra/outbound/current-conversation-bindings.ts:85 ${identity}\u0000${CURRENT_BINDINGS_ID_PREFIX}${conversationKey} In-memory resolvedBindings retained-promise Map; worker receives original conversation
src/infra/outbound/current-conversation-bindings.ts:523 ${context.admission.identity.key}\u0000${buildBindingId(conversation)} In-memory resolvedBindings retained-promise Map; worker receives original conversation
src/infra/outbound/sanitize-text.ts:23 CODE_ESCAPE = "\u0000e" Transient Formatting sentinels resolved before final content; original input NUL may be restored, then retained through JSON serialization rather than a raw SQL key
src/infra/outbound/sanitize-text.ts:24 CODE_PLACEHOLDER = "\u0000p" Transient Formatting sentinels resolved before final content; original input NUL may be restored, then retained through JSON serialization rather than a raw SQL key
src/infra/outbound/sanitize-text.ts:127 [CODE_ESCAPE, "\u0000"] Transient Formatting sentinels resolved before final content; original input NUL may be restored, then retained through JSON serialization rather than a raw SQL key
src/infra/package-local-overrides-capture.ts:199 ${current.rootPath}\0${current.path} In-memory scanKey -> in-memory identity/cache/deduplication/comparison; source-local consumers: scannedPathsByRoot.has at :200, scannedPathsByRoot.add at :203
src/infra/package-local-overrides-capture.ts:230 ${current.rootPath}\0${referencedPath} In-memory referencedScanKey -> in-memory identity/cache/deduplication/comparison; source-local consumers: scannedPathsByRoot.has at :231, addedPaths.add at :228
src/infra/ports-inspect.ts:352 ${record.pid ?? &quot;&quot;}\0${record.command ?? &quot;&quot;}\0${record.address ?? &quot;&quot;} In-memory readUnixListeners -> in-memory identity/cache/deduplication/comparison; source-local consumers: seen.has at :353, listenerSnapshot.recordsByPort.get at :348
src/infra/session-cost-usage-overview-load.ts:30 ${marker.agentId}\u0000${marker.storePath} In-memory key -> in-memory identity/cache/deduplication/comparison; source-local consumers: storeIndex.get at :31, storeIndex.set at :35
src/infra/session-cost-usage-pricing-context.ts:40 ${provider ?? &quot;&quot;}\0${model ?? &quot;&quot;} In-memory key -> in-memory identity/cache/deduplication/comparison; source-local consumers: cache.has at :41, cache.get at :42
src/infra/session-sqlite-migration-manifest.ts:317 ${move.sourcePath}\u0000${move.archivePath} In-memory knownMoves/seen targets Map/Set; persisted manifest retains structured parts
src/infra/session-sqlite-migration-manifest.ts:350 ${target.agentId}\u0000${canonicalMigrationFilePath(target.storePath)} In-memory knownMoves/seen targets Map/Set; persisted manifest retains structured parts
src/infra/session-sqlite-migration-readers.ts:188 createHash("sha256") .update(originalSourcePath) .update("\0") Hash input idPrefix -> SHA-256/HMAC digest; raw NUL input does not reach SQL
src/infra/session-sqlite-transcript-verification.ts:69 id\0${entry.id} Disposable SQLite spool SqliteSessionImportStage.addSeen/contains or repairLegacyTranscript -> disposable SQLite seen.event_json/user_keys.stripped_key; never registered, resumed, or selected as PostgreSQL
src/infra/session-sqlite-transcript-verification.ts:103 id\0${id} Disposable SQLite spool SqliteSessionImportStage.addSeen/contains or repairLegacyTranscript -> disposable SQLite seen.event_json/user_keys.stripped_key; never registered, resumed, or selected as PostgreSQL
src/infra/shell-env.ts:23 printf \0; env -0 Binary/process protocol LOGIN_SHELL_ENV_COMMAND -> Git/process/rsync/PTY/header binary protocol; no SQL text/key
src/infra/sqlite-header-probe.worker.ts:3 Buffer.from("SQLite format 3\0") Binary/process protocol magic -> Git/process/rsync/PTY/header binary protocol; no SQL text/key
src/infra/sqlite-source-revision.ts:44 \0${suffix}\0${identity(expected)}\0 Hash input readSqliteSourceContentVersionInProcess -> SHA-256/HMAC digest; raw NUL input does not reach SQL
src/infra/state-migrations.channel-pairing.ts:123 ${channel}\0${accountKey} In-memory findCaseFoldedAllowFromCollisions -> in-memory identity/cache/deduplication/comparison; source-local consumers: firstFilenameByKey.get at :124, collisions.add at :126
src/infra/state-migrations.channel-pairing.ts:285 ${resolveAllowFromAccountId(request.meta?.accountId)}\0${request.id} In-memory keys -> in-memory identity/cache/deduplication/comparison; source-local consumers: keys.has at :290, keys.add at :291
src/infra/state-migrations.channel-pairing.ts:289 ${resolveAllowFromAccountId(request.meta?.accountId)}\0${request.id} In-memory mergePairingRequests -> in-memory identity/cache/deduplication/comparison; source-local consumers: keys.has at :290, keys.add at :291
src/infra/state-migrations.cron-run-logs.ts:173 ${entry.jobId}\0${entry.ts} In-memory run-entry deduplication Set
src/infra/state-migrations.deferred-session-import.ts:54 receipt.reportJson + "\0" Hash input enclosing function -> SHA-256/HMAC digest; raw NUL input does not reach SQL
src/infra/state-migrations.doctor.ts:2224 ${path.resolve(initialStateDir)}\0${mode} In-memory autoMigrateChecked Set
src/infra/state-migrations.doctor.ts:2288 ${path.resolve(stateDir)}\0${mode} In-memory autoMigrateChecked Set
src/infra/state-migrations.meeting-transcripts-files.ts:324 ${path.basename(files[index] ?? &quot;&quot;)}\0${snapshot.hash ?? &quot;-&quot;} Hash input enclosing function -> SHA-256/HMAC digest; raw NUL input does not reach SQL
src/infra/state-migrations.plugin-doctor-context.ts:92 ${agentId}\0${storePath} In-memory session source evidence cache Map
src/infra/state-migrations.prelude.ts:58 owner\0${endpoint.id} | ${endpoint.kind}\0${endpoint.path} In-memory key -> in-memory identity/cache/deduplication/comparison; source-local consumers: seen.has at :59, seen.add at :62
src/infra/state-migrations.receipts.ts:60 hash.update(scope).update("\0") Hash input resolveLegacyMigrationSourceKey -> SHA-256/HMAC digest; raw NUL input does not reach SQL
src/infra/state-migrations.shared-auth-store.ts:83 ${path.resolve(sourcePath)}\0${sourceTable} Hash input sourceMigrationKey -> SHA-256/HMAC digest; raw NUL input does not reach SQL
src/infra/state-migrations.snapshot.worker.ts:17 Buffer.from("SQLite format 3\0", "utf8") Binary/process protocol SQLite file header magic comparison
src/infra/state-migrations.snapshot.worker.ts:258 hash .update("hardlink\0") Hash input snapshot SHA-256 hasher; only digest persists
src/infra/state-migrations.snapshot.worker.ts:260 hash .update("hardlink\0") .update(portableRelative) .update("\0") Hash input snapshot SHA-256 hasher; only digest persists
src/infra/state-migrations.snapshot.worker.ts:262 hash .update("hardlink\0") .update(portableRelative) .update("\0") .update(existingHardLink.firstRelative) .update("\0") Hash input snapshot SHA-256 hasher; only digest persists
src/infra/state-migrations.snapshot.worker.ts:288 hash.update("file\0").update(portableRelative).update("\0").update(fileDigest).update("\0") Hash input snapshot SHA-256 hasher; only digest persists
src/infra/state-migrations.snapshot.worker.ts:294 hash.update("directory\0").update(portableRelative).update("\0") Hash input snapshot SHA-256 hasher; only digest persists
src/infra/state-migrations.snapshot.worker.ts:345 digestFile(input.path, "present\0") Hash input snapshot SHA-256 hasher; only digest persists
src/infra/state-migrations.transcript-archive-publication.ts:77 ${row.sessionId}\u0000${row.generation} In-memory transcript archive recovery Map
src/infra/update-failure-report-artifact.ts:276 ${reservationId}\0${previewDigest} Hash input bindSavedReportArtifact -> SHA-256/HMAC digest; raw NUL input does not reach SQL
src/infra/update-failure-report-prepare.ts:502 ${input.attemptId}\0${bodyWithoutMarker} Hash input prepareUpdateFailureReport -> SHA-256/HMAC digest; raw NUL input does not reach SQL
src/logging/config.ts:42 [ env.OPENCLAW_CONFIG_PATH, env.OPENCLAW_STATE_DIR, env.OPENCLAW_HOME, env.OPENCLAW_PROFILE, env.HOME, env.USERPROFILE, env.HOMEDRIVE, env.HOMEPATH, env.PREFIX, env.ANDROID_DATA, env.OPENCLAW_TEST_FAST, tryProcessCwd() ?? "", ] .map((value) => value ?? "") .join("\0") In-memory resolveLoggingConfigSelector -> in-memory identity/cache/deduplication/comparison; constituent data remains separate
src/logging/diagnostic-stability.ts:544 ${record.source}\u0000${record.target ?? &quot;unknown&quot;}\u0000${record.transport ?? &quot;unknown&quot;} In-memory upsertExporterRecord -> in-memory identity/cache/deduplication/comparison; source-local consumers: state.exporterRecords.delete at :546, state.exporterRecords.get at :549
src/media-understanding/local-audio.ts:104 ${params.command.trim()}\0${resolveRequestedLocalAudioBackend(params) ?? &quot;default&quot;} In-memory observationKey -> in-memory identity/cache/deduplication/comparison; source-local consumers: observedBackendCache.set at :127
src/media-understanding/local-audio.ts:147 ${platform}\0${filePath} In-memory inspectLinkedLibraries -> in-memory identity/cache/deduplication/comparison; constituent data remains separate
src/media/media-reference-comparison.ts:8 FILE_URL_LOCAL_NETWORK_KEY_PREFIX = "\0file-url-local-network:" In-memory mediaBySource/attachmentByReference/sentSet comparison keys; payload retains original URL
src/node-host/node-worker-container-engine.ts:138 docker\0${daemonId} Hash input resolveContainerEngineTarget -> SHA-256/HMAC digest; raw NUL input does not reach SQL
src/node-host/node-worker-container-engine.ts:268 ${params.gatewayNamespace}\0${params.launchId} Hash input createNodeWorkerContainer -> SHA-256/HMAC digest; raw NUL input does not reach SQL
src/node-host/node-worker-workspace-git.ts:86 ${gitlinks.join(&quot;\0&quot;)}\0 Binary/process protocol initializeNodeWorkerGitWorkspace -> Git/process/rsync/PTY/header binary protocol; no SQL text/key
src/node-host/node-worker-workspace-git.ts:94 ${checkoutPaths.join(&quot;\0&quot;)}\0 Binary/process protocol initializeNodeWorkerGitWorkspace -> Git/process/rsync/PTY/header binary protocol; no SQL text/key
src/node-host/plugin-node-host.ts:104 ${agentTool.pluginId}\0${agentTool.name} In-memory enclosing function -> in-memory identity/cache/deduplication/comparison; source-local consumers: nodePluginTools.set at :104, commands.add at :98
src/node-host/runtime-skill-bins.ts:32 ${name}\u0000${resolvedPath} In-memory resolveSkillBinTrustEntries -> in-memory identity/cache/deduplication/comparison; source-local consumers: trustEntries.set at :32
src/pairing/pairing-store-model.ts:23 ${channel}\0${accountId}\0${request.id}\0${request.createdAt} Hash input resolveChannelPairingRequestId -> SHA-256/HMAC digest; raw NUL input does not reach SQL
src/plugin-sdk/api-baseline-declaration-closure.ts:43 ${section.name}\0${section.text} In-memory addSection -> in-memory identity/cache/deduplication/comparison; source-local consumers: sections.set at :43, target.set at :48
src/plugin-sdk/api-baseline-declaration-closure.ts:60 ${literal.pos}\0${literal.text} In-memory add -> in-memory identity/cache/deduplication/comparison; source-local consumers: references.set at :60, target.set at :48
src/plugin-sdk/api-baseline-declaration-closure.ts:527 ${canonical(sourceFile.fileName)}\0${exported ? &quot;export&quot; : &quot;local&quot;}\0${name} In-memory key -> in-memory identity/cache/deduplication/comparison; source-local consumers: reachability.get at :528, reachability.has at :529
src/plugin-sdk/api-baseline-declaration-closure.ts:605 ${canonical(owner.fileName)}\0${exportName} In-memory cacheKey -> in-memory identity/cache/deduplication/comparison; source-local consumers: renderedClosures.get at :606, reachability.set at :596
src/plugin-sdk/api-baseline.ts:428 ${section.name}\0${section.text} In-memory renderPluginSdkApiBaseline -> in-memory identity/cache/deduplication/comparison; source-local consumers: sectionsByContent.set at :428, sectionIds.get at :448
src/plugin-sdk/api-baseline.ts:436 ${section.name}\0${section.text} In-memory sectionIds -> in-memory identity/cache/deduplication/comparison; source-local consumers: sectionsByContent.set at :428, sectionIds.get at :448
src/plugin-sdk/api-baseline.ts:448 ${section.name}\0${section.text} In-memory id -> in-memory identity/cache/deduplication/comparison; source-local consumers: sectionIds.get at :448, canonicalEntrypoints.has at :478
src/plugin-sdk/api-diff.ts:214 ${section.name}\0${section.text} In-memory sectionKey -> in-memory identity/cache/deduplication/comparison; source-local consumers: afterByKey.has at :226, removedByName.set at :227
src/plugin-sdk/api-diff.ts:401 ${declaration.name}\0${declaration.before ?? &quot;&quot;}\0${declaration.after ?? &quot;&quot;} In-memory collectDeclarationReportChanges -> in-memory identity/cache/deduplication/comparison; source-local consumers: grouped.set at :402
src/plugin-sdk/channel-entry-contract.ts:178 ${process.argv[1] ?? &quot;&quot;}\0${importMetaUrl} In-memory resolveBundledEntryBoundaryInfo -> in-memory identity/cache/deduplication/comparison; source-local consumers: entryBoundaryInfoCache.get at :182, entryBoundaryInfoCache.set at :201
src/plugin-sdk/channel-entry-contract.ts:314 ${sourceFallbackDisabled ? &quot;1&quot; : &quot;0&quot;}\0${importMetaUrl}\0${specifier} In-memory createBundledEntryModulePathCacheKey -> in-memory identity/cache/deduplication/comparison; source-local consumers: resolvedModulePaths.get at :322
src/plugin-sdk/channel-replay-guard.ts:77 ${options?.namespace?.trim() &#124;&#124; &quot;global&quot;}\0${key} In-memory activeKeys Set; dedupe commit receives original key and separate namespace
src/plugin-sdk/memory-host-core.ts:74 ${stateHash}\0${workspaceHash} In-memory memoryHostEventExportQueue; persisted ownership marker uses structured hashes
src/plugin-state/plugin-state-native-binding-codec.ts:14 [codec, codecSource?.origin, codecSource?.rootDir, codecSource?.source].join("\0") In-memory codecs Map
src/plugin-state/plugin-state-store.sqlite.ts:478 keyStartInclusive: params.after === undefined ? params.prefix : ${params.after}\0 PG read operand (fixed here) Baseline Doctor page cursor -> selectPluginStateEntriesInKeyRange -> assertPluginStateKey; params.after + NUL fails on PostgreSQL; corrected separately by task
src/plugin-state/plugin-store-validation.ts:40 ${pluginId}\0${namespace} In-memory signatures Map
src/plugins/cli.ts:138 candidate.parentPath.join("\0") | entry.parentPath.join("\0") In-memory match -> in-memory identity/cache/deduplication/comparison; constituent data remains separate
src/plugins/cli.ts:139 candidate.names.join("\0") | entry.names.join("\0") In-memory match -> in-memory identity/cache/deduplication/comparison; constituent data remains separate
src/plugins/control-ui-assets.ts:20 ${file.name}\0${file.contents.length}\0 Hash input pluginControlUiGenerationHash -> SHA-256/HMAC digest; raw NUL input does not reach SQL
src/plugins/control-ui-assets.ts:35 ${name}\0${asset.body.length}\0 Hash input pluginControlUiRevision -> SHA-256/HMAC digest; raw NUL input does not reach SQL
src/plugins/current-plugin-metadata-snapshot.ts:99 ${manifest.rootDir}\0${manifest.id} In-memory manifests -> in-memory identity/cache/deduplication/comparison; source-local consumers: manifests.get at :109, sources.set at :129
src/plugins/current-plugin-metadata-snapshot.ts:109 ${record.rootDir}\0${record.pluginId} In-memory prepareInspectionNativeEsmPolicy -> in-memory identity/cache/deduplication/comparison; source-local consumers: manifests.get at :109, sources.set at :129
src/plugins/discovery-required-plugins.ts:44 ${normalizePluginPolicyId(candidate.idHint)}\0${requiredPolicyId} In-memory addMissingRequiredPluginDiagnostics -> in-memory identity/cache/deduplication/comparison; source-local consumers: seen.has at :45, configuredFileManifestPolicyIds.has at :41
src/plugins/discovery.ts:919 [ diagnostic.level, diagnostic.pluginId ?? "", diagnostic.source ?? "", diagnostic.message, ].join("\0") In-memory finish -> in-memory identity/cache/deduplication/comparison; source-local consumers: seenDiagnostics.has at :920, seenDiagnostics.add at :923
src/plugins/gateway-startup-plugin-providers.ts:336 ${source}\0${configuredId} In-memory key -> in-memory identity/cache/deduplication/comparison; source-local consumers: byConfiguredIdAndSource.get at :337, existing.agentIds.add at :340
src/plugins/hook-runner-global-state.ts:80 ${hook.pluginId}\0${hook.hookName} In-memory overlayTypedHooks -> in-memory identity/cache/deduplication/comparison; source-local consumers: overlayLegacyHookEvents.set at :77, events.add at :75
src/plugins/hook-runner-global-state.ts:84 ${entry.pluginId}\0${entry.policy.id} In-memory overlayTrustedPolicies -> in-memory identity/cache/deduplication/comparison; source-local consumers: overlayTrustedPolicies.has at :89, overlayLegacyHookEvents.set at :77
src/plugins/hook-runner-global-state.ts:89 ${entry.pluginId}\0${entry.policy.id} In-memory trustedToolPolicies -> in-memory identity/cache/deduplication/comparison; source-local consumers: overlayTrustedPolicies.has at :89, overlayLegacyHookEvents.get at :100
src/plugins/hook-runner-global-state.ts:111 ${hook.pluginId}\0${hook.hookName} In-memory enclosing function -> in-memory identity/cache/deduplication/comparison; source-local consumers: overlayTypedHooks.has at :111, overlayPluginIds.has at :116
src/plugins/hooks.ts:841 createHash("sha256") .update(sourceFingerprint) .update("\0") Hash input runAuthorizedPromptBuild -> SHA-256/HMAC digest; raw NUL input does not reach SQL
src/plugins/hooks.ts:842 activeToolNames.join("\0") Hash input runAuthorizedPromptBuild -> SHA-256/HMAC digest; raw NUL input does not reach SQL
src/plugins/host-hook-runtime.ts:453 ${pluginId}\0${jobId}\0${sessionKey} In-memory scheduler job Map
src/plugins/installed-plugin-index-record-reader.ts:473 [ path.resolve(resolveInstalledPluginIndexStorePath(options)), resolveRecoveredManagedNpmRoot(options), ].join("\0") In-memory installed-index read cache
src/plugins/manifest-backup-resources.ts:129 ${plugin.id}\0${resource.scope}\0${resource.relativePath}\0${resource.disposition}\0${resource.databaseFamily ?? &quot;&quot;} In-memory resolveActivatedPluginBackupInventory -> in-memory identity/cache/deduplication/comparison; source-local consumers: resources.has at :130, resources.set at :131
src/plugins/manifest.ts:157 ${scope}\0${relativePath}\0${disposition}\0${databaseFamily ?? &quot;&quot;} In-memory parseManifestBackupResources -> in-memory identity/cache/deduplication/comparison; source-local consumers: resources.set at :157
src/plugins/memory-state.ts:573 left.agentIds.join("\0") | right.agentIds.join("\0") In-memory enclosing function -> in-memory identity/cache/deduplication/comparison; constituent data remains separate
src/plugins/plugin-generation-capture.ts:140 ${packageId}\0 Hash input receipt.marker -> SHA-256 generation receipt
src/plugins/plugin-generation-capture.ts:483 ${kind}\0${reference} In-memory capture reference/observed Maps and Sets
src/plugins/plugin-generation-capture.ts:573 require\0${specifier} | import\0${specifier} In-memory capture reference/observed Maps and Sets
src/plugins/plugin-generation-capture.ts:587 ${kind}\0${reference} In-memory capture reference/observed Maps and Sets
src/plugins/plugin-generation-file-capture.ts:152 ${stat.isDirectory() ? &quot;directory&quot; : &quot;file&quot;}\0${path.relative(destination, target)}\0 Hash input copy -> SHA-256/HMAC digest; raw NUL input does not reach SQL
src/plugins/plugin-generation-source-inspection.ts:149 ${entry.rootDir}\0${entry.entryFile ?? &quot;&quot;} In-memory inspectPluginGenerationSources -> in-memory identity/cache/deduplication/comparison; source-local consumers: bySource.get at :150, digests.has at :146
src/plugins/plugin-generation-worker.ts:409 ${admissionRoot}\0 In-memory artifact -> in-memory identity/cache/deduplication/comparison; constituent data remains separate
src/plugins/plugin-instance-module-loader.ts:124 ${source}\0${workspace ?? &quot;&quot;} In-memory retainedNativeEsmLocation -> in-memory identity/cache/deduplication/comparison; source-local consumers: retention.sources.get at :131, retention.workspaces.has at :133
src/plugins/plugin-module-loader-cache.ts:212 ${tryNative ? &quot;native&quot; : &quot;transform&quot;}\0${aliases.cacheKey} In-memory resolvePluginModuleLoaderCacheEntry -> in-memory identity/cache/deduplication/comparison; constituent data remains separate
src/plugins/plugin-module-loader-cache.ts:402 ${getPluginCacheRoot(params.boundaryRoot).rootDir}\0${params.rejectHardlinks} In-memory preparePluginModule -> in-memory identity/cache/deduplication/comparison; source-local consumers: source.validatedBoundaries.has at :403, cache.sourceAliases.set at :426
src/plugins/plugin-module-loader-cache.ts:429 ${opened.rootRealPath}\0${params.rejectHardlinks} In-memory preparePluginModule -> in-memory identity/cache/deduplication/comparison; source-local consumers: source.validatedBoundaries.add at :429, cache.sourceAliases.set at :426
src/plugins/plugin-native-admission-state.ts:302 ${path.resolve(record.rootDir)}\0 In-memory prefix -> in-memory identity/cache/deduplication/comparison; source-local consumers: admissions.get at :295, state.preparedIndexes.has at :323
src/plugins/plugin-native-admission.ts:245 ${path.resolve(rootDir)}\0${entryKey ?? &quot;&quot;} In-memory createPluginNativeAdmission -> in-memory identity/cache/deduplication/comparison; source-local consumers: state.owners.get at :246, state.receipts.get at :249
src/plugins/plugin-native-reference.ts:92 ${directory}\0${path.dirname(target)} In-memory placement -> in-memory identity/cache/deduplication/comparison; source-local consumers: admitted.get at :93, placements.has at :95
src/plugins/plugin-native-reference.ts:112 ${name}\0${memberPath} In-memory memberKey -> in-memory identity/cache/deduplication/comparison; source-local consumers: admittedMembers.has at :113, admitted.set at :98
src/plugins/plugin-package-metadata-capture.ts:30 ${path.dirname(importer)}\0${name} In-memory key -> in-memory identity/cache/deduplication/comparison; source-local consumers: roots.has at :31, roots.get at :32
src/plugins/plugin-runtime-artifact-identity.ts:198 hash.update("openclaw-plugin-runtime-artifact-v1\0") Hash input fingerprintPluginRuntimeArtifact -> SHA-256/HMAC digest; raw NUL input does not reach SQL
src/plugins/plugin-runtime-artifact-identity.ts:200 hash.update("\0") Hash input fingerprintPluginRuntimeArtifact -> SHA-256/HMAC digest; raw NUL input does not reach SQL
src/plugins/plugin-runtime-artifact-identity.ts:204 hash.update("\0") Hash input fingerprintPluginRuntimeArtifact -> SHA-256/HMAC digest; raw NUL input does not reach SQL
src/plugins/plugin-runtime-artifact-identity.ts:214 hash.update("\0") Hash input fingerprintPluginRuntimeArtifact -> SHA-256/HMAC digest; raw NUL input does not reach SQL
src/plugins/plugin-runtime-artifact-identity.ts:216 hash.update("\0") Hash input fingerprintPluginRuntimeArtifact -> SHA-256/HMAC digest; raw NUL input does not reach SQL
src/plugins/plugin-runtime-artifact-identity.ts:218 hash.update("\0") Hash input fingerprintPluginRuntimeArtifact -> SHA-256/HMAC digest; raw NUL input does not reach SQL
src/plugins/plugin-runtime-artifact-identity.ts:220 hash.update("\0") Hash input fingerprintPluginRuntimeArtifact -> SHA-256/HMAC digest; raw NUL input does not reach SQL
src/plugins/plugin-source-file.ts:244 receipt?.update(String(sizeBytes)).update("\0") Hash input hashPluginSourceDescriptor -> SHA-256/HMAC digest; raw NUL input does not reach SQL
src/plugins/provider-auth-persistence.ts:80 createHash("sha256") .update(profile.credential.provider) .update("\0") Hash input resolveProfileDigest SHA-256
src/plugins/provider-auth-persistence.ts:241 ${profile.credential.provider}\0${profile.profileId} In-memory lockTargets deduplication Map
src/plugins/runtime/channel-runtime-contexts.ts:27 ${channelId}\u0000${accountId}\u0000${capability} In-memory normalizeRuntimeContextKey -> in-memory identity/cache/deduplication/comparison; constituent data remains separate
src/plugins/sdk-alias-normalization.ts:16 ${key}\0${value} In-memory enclosing function -> in-memory identity/cache/deduplication/comparison; source-local consumers: seenTargets.has at :32, seenTargets.add at :33
src/plugins/sdk-alias-normalization.ts:17 Object.entries(aliasMap) .toSorted(([left], [right]) => left.localeCompare(right)) .map(([key, value]) => ${key}\0${value}) .join("\0") In-memory createJitiAliasContentCacheKey -> in-memory identity/cache/deduplication/comparison; source-local consumers: seenTargets.has at :32, seenTargets.add at :33
src/plugins/sdk-alias.ts:495 ${params.packageName}\0${params.packageDir} In-memory listWorkspacePackageExportAliasEntries -> in-memory identity/cache/deduplication/comparison; source-local consumers: cache.get at :496, entries.toSorted at :486
src/plugins/sdk-alias.ts:1094 ${params.tryNative ? &quot;native&quot; : &quot;transform&quot;}\0${aliasMapKey} In-memory createPluginLoaderModuleCacheKey -> in-memory identity/cache/deduplication/comparison; constituent data remains separate
src/plugins/session-catalog-family.ts:533 ${agentId}\0${sourceKey} In-memory continueAdoption in-flight coordinator Map
src/plugins/session-catalog.ts:271 ${hostId}\0${threadId} In-memory adopted-source Map; adopted session identifier hashes source
src/secrets/runtime-degraded-state.ts:164 ${ownerKind}\0${ownerId} In-memory owner degraded-state Map
src/secrets/runtime-owner-assignments.ts:87 ${getSecretAssignmentSource(assignment)}\0${assignment.ownerKind}\0${assignment.ownerId} In-memory owner assignment grouping Map/Set
src/secrets/runtime-owner-assignments.ts:271 ${owner.source}\0${owner.ownerKind}\0${owner.ownerId} In-memory owner assignment grouping Map/Set
src/secrets/runtime-owner-assignments.ts:281 ${source}\0${owner.ownerKind}\0${owner.ownerId} In-memory owner assignment grouping Map/Set
src/security/audit-channel.ts:108 ${route.agentId}\0${canonicalKey} In-memory principalRoutes/bucket grouping Maps; rendered output removes separator
src/security/audit-channel.ts:118 ${route.agentId}\0symbolic:dm:peer In-memory principalRoutes/bucket grouping Maps; rendered output removes separator
src/security/audit-channel.ts:123 ${route.agentId}\0symbolic:dm:channel:${directChannel} In-memory principalRoutes/bucket grouping Maps; rendered output removes separator
src/security/audit-channel.ts:506 ${route.agentId}\0symbolic:dm:${namespace} In-memory principalRoutes/bucket grouping Maps; rendered output removes separator
src/sessions/session-controller.lifecycle.ts:210 ${target.storeScope}\0${alias} In-memory diagnostic -> in-memory identity/cache/deduplication/comparison; constituent data remains separate
src/sessions/session-controller.lifecycle.ts:465 ${target.storeScope}\0${alias} In-memory diagnostic -> in-memory identity/cache/deduplication/comparison; source-local consumers: state.effects.delete at :490
src/sessions/session-diff.runtime.ts:235 safePaths.join("\0") + "\0" Binary/process protocol Git pathspec NUL-delimited stdin
src/sessions/session-diff.runtime.ts:523 [ candidate.path, candidate.oldPath ?? "", candidate.status, candidate.untracked === true ? "untracked" : "tracked", content, ].join("\0") Hash input hashBaselineDescriptor SHA-256; only digest retained
src/sessions/session-diff.runtime.ts:579 ${mode}\0${size} Hash input hashBaselineDescriptor SHA-256; only digest retained
src/sessions/session-upstream-monitor.ts:49 ${probe.hostId}\u0000${probe.threadId}\u0000${JSON.stringify(probe.upstreamRef)} Hash input upstreamSourceKey -> SHA-256/HMAC digest; raw NUL input does not reach SQL
src/shared/presence-user.ts:18 [ normalized(entry.host) ?? "", normalized(entry.platform) ?? "", normalized(entry.deviceFamily) ?? "", normalized(entry.instanceId) ?? "", String(entry.ts ?? 0).padStart(16, "0"), ].join("\u0000") In-memory presence sorting comparison
src/shared/text/text-projection.ts:533 marker = "\0" Transient collapseDuplicateParagraphs: temporary formatting/patch sentinel, restored or removed before output
src/shared/text/text-projection.ts:535 marker += "\0" Transient collapseDuplicateParagraphs: temporary formatting/patch sentinel, restored or removed before output
src/shared/worker-bundle-hash.ts:64 ${WORKER_BUNDLE_MANIFEST_VERSION}\0 Hash input hashWorkerBundleManifest -> SHA-256/HMAC digest; raw NUL input does not reach SQL
src/shared/worker-bundle-hash.ts:66 ${entry.path}\0${entry.mode.toString(8)}\0${entry.size}\0${entry.sha256}\0 Hash input hashWorkerBundleManifest -> SHA-256/HMAC digest; raw NUL input does not reach SQL
src/skills/discovery/chat-command-invocation.ts:36 ${selection.name}\0${selection.path}\0${resolveExplicitSkillSelectionFileHost(selection) ?? &quot;&quot;} In-memory mergeExplicitSkillSelections -> in-memory identity/cache/deduplication/comparison; source-local consumers: merged.set at :35
src/skills/runtime/remote-skills.ts:29 ${nodeId}\0${connId} In-memory remoteConnectionKey -> in-memory identity/cache/deduplication/comparison; constituent data remains separate
src/skills/runtime/run-usage.ts:28 ${record.source}\u0000${record.name}\u0000${record.activation} In-memory recordRunSkillUsage -> in-memory identity/cache/deduplication/comparison; source-local consumers: usage.set at :28, skillUsageByRun.set at :29
src/skills/security/clawhub-verdicts.ts:100 ${link.registry}\0${link.ownerHandle ?? &quot;&quot;}\0${link.slug}\0${link.installedVersion} In-memory collectClawHubVerdictTargets -> in-memory identity/cache/deduplication/comparison; source-local consumers: targets.set at :101
src/skills/workshop/review-undo.ts:180 ${ctx.agentId}\0${reviewId} In-memory inFlight KeyedAsyncQueue
src/snapshot/git-backup.ts:242 params.paths.join("\0") + "\0" Binary/process protocol commitGitBackup -> Git/process/rsync/PTY/header binary protocol; no SQL text/key
src/snapshot/git-backup.ts:267 :(literal)${file}\0 Binary/process protocol enclosing function -> Git/process/rsync/PTY/header binary protocol; no SQL text/key
src/state/openclaw-agent-db-lease-provenance.ts:77 [hostname(), bootId, fs.readlinkSync("/proc/self/ns/pid"), VERSION].join("\0") In-memory readAgentDatabaseLeaseProvenance -> in-memory identity/cache/deduplication/comparison; constituent data remains separate
src/state/openclaw-agent-db-lease-provenance.ts:85 ${boot}\0${file.dev}:${file.ino} In-memory readAgentDatabaseLeaseProvenance -> in-memory identity/cache/deduplication/comparison; constituent data remains separate
src/state/openclaw-agent-db-path-repair.ts:55 ${row.agent_id}\0${stored} In-memory repairOpenClawAgentDatabasePaths -> in-memory identity/cache/deduplication/comparison; source-local consumers: agents.get at :56, agents.set at :58
src/state/openclaw-database-preflight-agent-scheduler.ts:43 ${realPath}\0${agentId ?? &quot;&quot;} In-memory inspectionKey -> in-memory identity/cache/deduplication/comparison; source-local consumers: inspectedAgentTargets.has at :45, inspectedAgentPaths.has at :46
src/state/openclaw-database-preflight-contexts.ts:25 ${database.kind}\0${comparable} In-memory canonicalDatabaseIdentity -> in-memory identity/cache/deduplication/comparison; constituent data remains separate
src/state/openclaw-migration-witness.ts:256 ${agent.agentId}\0${agent.path} In-memory expectedRegistrations/requiredRegistrations Sets
src/state/openclaw-migration-witness.ts:261 ${agent.agentId}\0${agent.path} In-memory expectedRegistrations/requiredRegistrations Sets
src/state/openclaw-migration-witness.ts:285 ${agentId}\0${storedPath === null ? &quot;&quot; : registry.resolvePath(resolveOpenClawRegisteredAgentDatabasePath(registry.sourcePath, storedPath))} Hash/in-memory registry identity Maps plus SHA-256 store/locator fields in migration witness; raw composite is never stored
src/state/openclaw-migration-witness.ts:289 ${agentId}\0${storedPath} Hash/in-memory registry identity Maps plus SHA-256 store/locator fields in migration witness; raw composite is never stored
src/state/openclaw-state-schema-inspection.ts:20 ${issue.code}\0${issue.objectName} In-memory enclosing function -> in-memory identity/cache/deduplication/comparison; constituent data remains separate
src/status/codex-synthetic-usage.ts:74 [entry.type, entry.label ?? "", entry.unit, period].join("\0") In-memory billingEntryKey -> in-memory identity/cache/deduplication/comparison; source-local consumers: entries.set at :89, entries.set at :92
src/status/summary.runtime.ts:92 ${provider}\0${model} In-memory key -> in-memory identity/cache/deduplication/comparison; source-local consumers: modelContextCache.get at :93, modelContextCache.set at :110
src/status/summary.ts:413 ${heartbeatStoreInputs[index]!.storePath}\0${row.sessionKey} In-memory heartbeatEntries -> in-memory identity/cache/deduplication/comparison; source-local consumers: heartbeatEntries.get at :424
src/status/summary.ts:424 ${routeTarget.storePath}\0${routeTarget.sessionKey} In-memory prepareStatusSummary -> in-memory identity/cache/deduplication/comparison; source-local consumers: heartbeatEntries.get at :424
src/storage/marker.ts:50 createHmac("sha256", cacheFingerprintKey) .update(salt) .update("\0") Hash input deriveMasterKey -> SHA-256/HMAC digest; raw NUL input does not reach SQL
src/talk/agent-consult-runtime.ts:82 ${candidateStorePath}\u0000${sessionKey} In-memory candidate/deduplication Maps
src/talk/agent-consult-runtime.ts:284 ${candidateStorePath}\u0000${candidate.sessionKey} In-memory candidate/deduplication Maps
src/talk/client-voice-session-store.ts:226 ${agentId}\0${voiceSessionId} In-memory voiceSessionOperations/digest-owner Maps; SQL writes separate voiceSessionId
src/transcripts/summary-model.ts:119 [provider, model, authProfileId ?? ""].join("\0") In-memory onAttempt -> in-memory identity/cache/deduplication/comparison; source-local consumers: seen.add at :119, seen.has at :139
src/transcripts/summary-model.ts:138 [ selection.runtimeProvider ?? selection.provider, selection.modelId, selection.profileId ?? "", ].join("\0") In-memory key -> in-memory identity/cache/deduplication/comparison; source-local consumers: seen.has at :139, seen.add at :142
src/tui/gateway-chat.ts:137 ${scope.agentId ?? &quot;&quot;}\0${scope.sessionKey ?? &quot;&quot;} In-memory tuiGatewayModelCatalogKey -> in-memory identity/cache/deduplication/comparison; constituent data remains separate
src/wizard/setup.migration-snapshot.ts:131 missing:${snapshotPath}\0 Hash input hashSnapshotPath -> SHA-256/HMAC digest; raw NUL input does not reach SQL
src/wizard/setup.migration-snapshot.ts:137 symlink:${snapshotPath}\0${await fs.readlink(candidate)}\0 Hash input hashSnapshotPath -> SHA-256/HMAC digest; raw NUL input does not reach SQL
src/wizard/setup.migration-snapshot.ts:145 unresolved:${(error as NodeJS.ErrnoException).code ?? &quot;unknown&quot;}\0 Hash input hashSnapshotPath -> SHA-256/HMAC digest; raw NUL input does not reach SQL
src/wizard/setup.migration-snapshot.ts:149 cycle:${snapshotPath}\0 Hash input hashSnapshotPath -> SHA-256/HMAC digest; raw NUL input does not reach SQL
src/wizard/setup.migration-snapshot.ts:158 directory:${snapshotPath}\0 Hash input hashSnapshotPath -> SHA-256/HMAC digest; raw NUL input does not reach SQL
src/wizard/setup.migration-snapshot.ts:171 file:${snapshotPath}\0${stat.size}\0 Hash input hashSnapshotPath -> SHA-256/HMAC digest; raw NUL input does not reach SQL
src/wizard/setup.migration-snapshot.ts:175 hash.update("\0") Hash input hashSnapshotPath -> SHA-256/HMAC digest; raw NUL input does not reach SQL
src/wizard/setup.migration-snapshot.ts:178 other:${snapshotPath}\0 Hash input hashSnapshotPath -> SHA-256/HMAC digest; raw NUL input does not reach SQL
src/wizard/setup.migration-snapshot.ts:189 config:${JSON.stringify(canonicalizeSetupMigrationValue(targetConfig))}\0 Hash input buildSetupMigrationTargetSnapshot -> SHA-256/HMAC digest; raw NUL input does not reach SQL
src/worker/node-workspace-retain-protocol.ts:97 ${entry.environmentId}\0${entry.sessionId}\0${entry.generation} In-memory retain identity deduplication Set
src/worker/worker-connection-endpoint.ts:21 "\0".repeat Transient JSON.stringify envelope size calculation using worst-case escaped NUL; no endpoint stored
src/worker/worker-connection-endpoint.ts:27 "\0".repeat Transient JSON.stringify envelope size calculation using worst-case escaped NUL; no endpoint stored
src/worker/worker-connection-endpoint.ts:30 "\0".repeat Transient JSON.stringify envelope size calculation using worst-case escaped NUL; no endpoint stored
src/worker/worker-connection-endpoint.ts:31 "\0".repeat Transient JSON.stringify envelope size calculation using worst-case escaped NUL; no endpoint stored
src/worker/worker-rpc-inference-client.ts:42 ${params.sessionId}\u0000${params.runId}\u0000${params.turnId} In-memory in-flight inference Map

@chatgpt-codex-connector

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

Copy link
Copy Markdown
Contributor

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-30T22:32:00.999017Z b3eae56 New commits
ℹ️ About Codex in GitHub

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

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

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

@steipete

Copy link
Copy Markdown
Contributor Author

Extension NUL inventory.

Source snapshot: b906fc7f0819648d54c7913b2fab271666b5413f. All 141 extracted runtime constructor locations across 102 files. The current ClickClack revocation key is owned by #188643; iMessage already uses bounded legacy adoption.

Location Construction Classification Traced sink
extensions/acpx/src/pi-session-store.ts:66 ${storeRoot}\0${threadId} In-memory threadFileCache and piFileCandidateCache Maps
extensions/acpx/src/pi-session-store.ts:177 ${store.root}\0${store.flat}\0${piAcpSessionStoreRoot(env) ?? &quot;&quot;} In-memory threadFileCache and piFileCandidateCache Maps
extensions/acpx/src/runtime-generations.ts:102 resource + "\u0000" + generation.id In-memory generation.ensureQueue keyed in-process queue
extensions/acpx/src/runtime.ts:718 ${this.gatewayInstanceId}\0${extractGeneratedWrapperPath(params.command)} Hash input hashAcpxProcessCommand -> SHA-256 -> probe lease ID
extensions/anthropic/session-catalog-adoption.ts:7 ${hostId}\0${threadId} Hash/in-memory adoptedSourceKey indexes bound-session Map; adoptedSessionKey hashes source before durable session creation
extensions/anthropic/session-catalog-discovery.ts:459 ${treeSnapshot.root}\0cli\0${requestedId ?? &quot;&quot;} In-memory claudeSessionScanCache Map
extensions/anthropic/session-catalog-executable.ts:107 ${process.platform}\0${homeDir} In-memory claude executable discovery cache Map
extensions/anthropic/session-catalog-scan.ts:184 ${sessionId}\0${resolved} In-memory context.safeFiles Map of same-scan promises
extensions/anthropic/session-catalog.ts:278 ${agentId}\0${sourceKey} In-memory createSessionCatalogAdoptionCoordinator -> core operations Map, evictOnSettled
extensions/beam/src/mirror.ts:119 ${catalogId}\0${hostId}\0${threadId} Hash input beamMirrorId SHA-256 truncated hex -> external mirror/session identity
extensions/beam/src/mirror.ts:205 ${candidate.catalogId}\0${candidate.hostId}\0${candidate.threadId} In-memory tracked candidate Map and fullyObservedHosts Set
extensions/beam/src/mirror.ts:419 ${catalog.id}\0${host.hostId} In-memory tracked candidate Map and fullyObservedHosts Set
extensions/beam/src/mirror.ts:477 ${entry.candidate.catalogId}\0${entry.candidate.hostId} In-memory tracked candidate Map and fullyObservedHosts Set
extensions/browser/src/browser/extension-install-layout.ts:433 ${entry.product}\0${entry.profile}\0${entry.extensionId}${suffix(entry)} In-memory uniqueSorted local deduplication Map; returns values only
extensions/browser/src/browser/extension-install-layout.ts:444 \0${entry.extensionPath} In-memory uniqueSorted local deduplication Map; returns values only
extensions/browser/src/browser/pw-role-snapshot.ts:53 ${value.role}\0${value.name ?? &quot;&quot;}\0${value.nth ?? 0} In-memory getRoleSnapshotIdentityKeys comparison Set
extensions/browser/src/browser/session-tab-ephemeral-aliases.ts:17 ${identity.sessionKey}\u0000${route}\u0000${identity.profile ?? &quot;&quot;}\u0000${identity.targetId} In-memory durable/volatile interaction alias and exact-match Maps
extensions/browser/src/browser/session-tab-identity.ts:47 ${record.sessionKey}\u0000${record.profile}\u0000${record.nativeTargetId} In-memory coldNativeActivity Map and sessionTabOperations Map; persisted browserSessionTabStorageKey instead hashes JSON components
extensions/browser/src/browser/session-tab-process-state.ts:25 ${identity.targetId}\u0000${browserSessionTabRouteKey(identity.route)}\u0000${identity.profile ?? &quot;&quot;} In-memory volatileTabsBySession / volatileTabCleanupByTarget Maps
extensions/clickclack/src/discussions/binding-store.ts:96 ${serverBaseUrl.replace(/\/+$/u, &quot;&quot;)}\0${channelId} In-memory sessionByChannel / channelBySession Maps; persistent keyed store instead receives sessionKey
extensions/clickclack/src/discussions/naming.ts:61 [ identity.mainSessionKey, identity.sessionId, identity.serverBaseUrl, identity.channelId, identity.externalRef, ].join("\0") Hash input discussion naming SHA-256 digest
extensions/clickclack/src/discussions/naming.ts:77 [mainSessionKey, destinationIdentity, bindingGeneration].join("\0") Hash input discussion naming SHA-256 digest
extensions/clickclack/src/discussions/revoked-channel-store.ts:40 [params.serverBaseUrl.replace(//+$/u, ""), params.channelId].join("\0") Persisted key; separate owner #188643 revoked channel keyedStore.register/lookup/delete; NUL defect owned by separate #188643 lander, intentionally untouched
extensions/clickclack/src/discussions/service-open.ts:296 [serverBaseUrl, workspace.id].join("\0") Persisted JSON encoding (safe) destinationIdentity -> reserveDiscussionBindingGeneration -> compareAndApply; value_json uses JSON.stringify so NUL is escaped; also discussion-name hash input
extensions/codex/src/app-server/attempt-diagnostics.ts:23 ${namespace}\0${value} Hash input SHA-256 diagnostic fingerprint
extensions/codex/src/app-server/auth-cache-key.ts:48 openclaw:codex:app-server-${domain}:v1\0${parts.join(&quot;\0&quot;)} Hash input SHA-256 credential/auth cache fingerprint
extensions/codex/src/app-server/compact-helpers.ts:178 ignoredConfig.join("\0") In-memory ignored-config warning deduplication Set
extensions/codex/src/app-server/computer-use-unified.ts:247 [ params.epoch ?? "manual", bundledMarketplacePath ?? "default", config.pluginName, ].join("\0") In-memory owner.appliedCacheBinding transient refresh comparison
extensions/codex/src/app-server/config-utils.ts:87 createHmac("sha256", START_OPTIONS_KEY_SECRET) .update(label) .update("\0") Hash input HMAC-SHA-256 secret fingerprint
extensions/codex/src/app-server/cyber-failover.ts:50 [ workspace?.agentId?.trim().toLowerCase() ?? "", workspace?.authProfileId?.trim().toLowerCase() ?? "", slashIndex >= 0 ? normalized.slice(slashIndex + 1) : normalized, ].join("\u0000") In-memory unavailableTargets Map and inFlightProbes Set
extensions/codex/src/app-server/desktop-generation-fingerprint.ts:26 ${candidate.appBundlePath}\0${await statFingerprint(candidate.appBundlePath)} Hash input SHA-256 desktop generation fingerprint
extensions/codex/src/app-server/desktop-generation-fingerprint.ts:28 entries.join("\0") Hash input SHA-256 desktop generation fingerprint
extensions/codex/src/app-server/event-projector-tool-search-evidence.ts:65 ${namespace ?? &quot;&quot;}\u0000${name} In-memory tool search evidence deduplication Set
extensions/codex/src/app-server/managed-thread-store.ts:27 createHash("sha256") .update("openclaw:codex-managed-thread:v1\0") Hash input managedThreadStoreKey -> sha256:hex -> keyedStore.registerIfAbsent
extensions/codex/src/app-server/managed-thread-store.ts:29 createHash("sha256") .update("openclaw:codex-managed-thread:v1\0") .update(sourceHomeId) .update("\0") Hash input managedThreadStoreKey -> sha256:hex -> keyedStore.registerIfAbsent
extensions/codex/src/app-server/native-hook-relay.ts:585 hash.update("\0") Hash input native hook relay fingerprint hash
extensions/codex/src/app-server/native-hook-relay.ts:587 hash.update("\0") Hash input native hook relay fingerprint hash
extensions/codex/src/app-server/native-subagent-close-owner.ts:99 ${turnId}\0${itemId} In-memory per-parent close owner/call Map
extensions/codex/src/app-server/native-subagent-completion-delivery.ts:342 ${requesterSessionKey}\0${childState.nativeTurnId ? codexNativeSubagentRunId(childState.childThreadId, childState.nativeTurnId) : childState.runId} In-memory completionDeliveryOwners Map and transient child.deliveryOwnerKey
extensions/codex/src/app-server/native-subagent-delivery-receipts.ts:17 ${parentThreadId}\0${agentPath} In-memory monitor.childThreadIdsByAgentPath alias Map
extensions/codex/src/app-server/native-subagent-submission-call.ts:92 ${request.turnId}\0${request.itemId} In-memory per-parent calls Map
extensions/codex/src/app-server/native-subagent-submission-call.ts:167 ${turnId}\0${callId} In-memory per-parent calls Map
extensions/codex/src/app-server/native-subagent-submission-call.ts:225 ${turnId ?? &quot;&quot;}\0${itemId ?? &quot;&quot;} In-memory per-parent calls Map
extensions/codex/src/app-server/native-subagent-submission-owner.ts:125 ${receipt.parentTurnId}\0${receipt.callId} In-memory per-parent calls and pending Maps; persisted submission receives receipt fields separately
extensions/codex/src/app-server/native-subagent-submission-owner.ts:147 ${turnId}\0${callId ?? &quot;&quot;} In-memory per-parent calls and pending Maps; persisted submission receives receipt fields separately
extensions/codex/src/app-server/native-subagent-submission-owner.ts:307 ${receipt.parentTurnId}\0${receipt.callId}\0${receipt.childThreadId} In-memory per-parent calls and pending Maps; persisted submission receives receipt fields separately
extensions/codex/src/app-server/plugin-app-cache-key.ts:153 ["openclaw:codex:plugin-app-cache-credentials:v1", authToken, ...headers.flat()].join("\0") Hash input SHA-256 credential fingerprint
extensions/codex/src/app-server/runtime-artifact-connection.ts:12 "openclaw-codex-configured-connection-v1\0" Hash input SHA-256 configured connection fingerprint
extensions/codex/src/app-server/runtime-artifact.ts:29 "openclaw-codex-app-server-runtime-artifact-v1\0" Hash input SHA-256 runtime artifact/file fingerprint
extensions/codex/src/app-server/runtime-artifact.ts:352 hash.update("codex-runtime-files-v1\0") Hash input SHA-256 runtime artifact/file fingerprint
extensions/codex/src/app-server/runtime-artifact.ts:728 createHash("sha256") .update(ARTIFACT_HASH_DOMAIN) .update(JSON.stringify(descriptor)) .update("\0") Hash input SHA-256 runtime artifact/file fingerprint
extensions/codex/src/app-server/sandbox-exec-server/session.ts:520 printf "%s%s\000" "$kind" "$name" Binary/process protocol remote shell emits NUL-delimited directory entries; host splits them before returning structured entries
extensions/codex/src/app-server/scheduled-app-authority.ts:66 crypto .createHash("sha256") .update("openclaw:codex:scheduled-app-server:v1\0") Hash input scheduled app-server authority fingerprint hash
extensions/codex/src/app-server/shared-client-key.ts:46 createHash("sha256") .update(params.expectedRuntimeArtifact.id) .update("\0") Hash input SHA-256 runtime artifact fingerprint
extensions/codex/src/app-server/shared-client-key.ts:51 ${codexAppServerStartOptionsKey(startOptions, { authProfileId, authBindingFingerprint: params.authBindingFingerprint, agentDir: params.usesNativeAuth ? undefined : params.agentDir, fallbackApiKeyCacheKey: authIdentityCacheKey, })}\0auth-requirement:${authRequirement ?? &quot;native&quot;}${ desktopGeneration ? \0desktop-generation:${desktopGeneration.epoch} : &quot;&quot; } In-memory shared app-server client cache identity; raw composite is not persisted
extensions/codex/src/app-server/shared-client-key.ts:57 \0desktop-generation:${desktopGeneration.epoch} In-memory shared app-server client cache identity; raw composite is not persisted
extensions/codex/src/app-server/shared-client-key.ts:60 ${baseKey}\0runtime-artifact:capture-v1:${expectedRuntimeArtifactKey} In-memory shared app-server client cache identity; raw composite is not persisted
extensions/codex/src/app-server/transport-process-containment.ts:463 ${row.pid}\0${row.startedAt} In-memory process identity comparison Set
extensions/codex/src/migration/session-binding-orphans.ts:102 ${agentId}\0${sessionId} In-memory migration evidence Map
extensions/codex/src/migration/session-binding-orphans.ts:108 ${owner.agentId}\0${owner.sessionId} In-memory migration evidence Map
extensions/codex/src/migration/session-binding-orphans.ts:114 ${agentId}\0${sessionId} In-memory migration evidence Map
extensions/codex/src/migration/session-binding-owners.ts:106 ${agentId}\0${sessionId}\0${sessionKey}\0${canonicalStorePath} In-memory migration candidates Map; records retain component fields
extensions/codex/src/node-cli-sessions.ts:371 ${sourceHomeId}\0${sessionId} In-memory activeResumeSessions Set
extensions/codex/src/session-catalog-home-id.ts:22 openclaw:codex-session-catalog-home:v1\0${codexHome} Hash input catalog home ID SHA-256 digest
extensions/codex/src/session-catalog-provenance.ts:161 ${localSessionsRoot}\0${rolloutPath} In-memory provenanceByPath Map
extensions/codex/src/session-upstream-activity.ts:225 ${probe.agentId}\0${fingerprint} In-memory local groups Map for batched upstream activity probes
extensions/copilot/src/sdk-loader.ts:66 ${relativePath}\0${before.mode}\0${contents.digest}\0 Hash input SDK content SHA-256 fingerprint
extensions/crabbox/src/crabbox-worker-profile.ts:32 "openclaw:crabbox-worker-lease-id:v1\0" Hash input SHA-256 provision/lease identity
extensions/crabbox/src/crabbox-worker-script.ts:11 .update(home).update("\0").update(leaseId).digest("hex").slice(0, 32) Hash input generated remote bootstrap JavaScript: NUL separator is consumed by SHA-256; only truncated hex key is persisted
extensions/diagnostics-otel/src/service-exporter-health.ts:41 ${event.reason ?? &quot;unspecified&quot;}\u0000${event.errorCategory ?? &quot;unknown&quot;} In-memory exporter failure/route comparison Maps; emitted events carry original scalar fields
extensions/diagnostics-otel/src/service-exporter-health.ts:48 ${event.exporter}\u0000${event.signal}\u0000${event.transport} In-memory exporter failure/route comparison Maps; emitted events carry original scalar fields
extensions/diagnostics-otel/src/service-exporter-health.ts:88 ${event.exporter}\u0000${event.signal} In-memory exporter failure/route comparison Maps; emitted events carry original scalar fields
extensions/diagnostics-otel/src/service.ts:240 ${event.signal}\u0000${event.transport} In-memory exporterRoutes Map; emitted telemetry carries original scalar fields
extensions/discord/src/monitor/gateway-registry.ts:13 "\0__default__" In-memory gatewayRegistry Map default-account sentinel
extensions/discord/src/monitor/message-avatar.ts:100 ${conversationId}\0${hash} In-memory avatar/pending-avatar Maps/Sets; media save receives original URL separately
extensions/discord/src/monitor/message-avatar.ts:126 ${params.conversationId}\0${hash} In-memory avatar/pending-avatar Maps/Sets; media save receives original URL separately
extensions/discord/src/monitor/message-avatar.ts:138 ${params.conversationId}\0${guildIcon.hash} In-memory avatar/pending-avatar Maps/Sets; media save receives original URL separately
extensions/discord/src/monitor/message-handler.preflight-helpers.ts:114 ${text.slice(0, offset)}\0 Transient temporary mention normalization sentinel used only for offset length calculation
extensions/feishu/src/doctor.ts:178 ${normalizeAgentId(target.agentId)}\0${resolvedStorePath} In-memory doctor target/inspection Map; mutations receive original storePath/sessionKey separately
extensions/feishu/src/doctor.ts:466 ${path.resolve(storePath)}\0${key} In-memory doctor target/inspection Map; mutations receive original storePath/sessionKey separately
extensions/feishu/src/dynamic-agent.ts:60 ${accountId}\0${senderOpenId} Hash input SHA-256 agent identity, truncated hex
extensions/file-transfer/src/approvals-migration.ts:38 ${selector}\0${kind}\0${value} In-memory seen Set; migration items retain selector/kind/path fields
extensions/github/src/detail.ts:286 ${apiBaseUrl}\0${parsed.kind}:${parsed.owner.toLowerCase()}/${parsed.repo.toLowerCase()}#${id}\0${identity?.cacheScope ?? &quot;anonymous&quot;}\0${githubApiCredentialCacheScope(identity?.token)}\0 In-memory detailCache Map
extensions/github/src/preview.ts:404 ${target.kind}:${target.owner.toLowerCase()}/${target.repo.toLowerCase()}#${target.kind === &quot;commit&quot; ? target.sha : target.number}\0${credentialScope} In-memory createStaleWhileRevalidateCache in-memory preview cache
extensions/github/src/preview.ts:417 ${cacheScope}\0${githubApiCredentialCacheScope(token)} In-memory createStaleWhileRevalidateCache in-memory preview cache
extensions/imessage/src/chat-lookup.ts:63 ${cliPath}\0${dbPath ?? &quot;&quot;}\0${remoteHost ?? &quot;&quot;} In-memory chat lookup client/cache Map
extensions/imessage/src/cli-path.ts:73 ${cliPath}\0${process.env.PATH ?? &quot;&quot;} In-memory CLI resolution cache Map
extensions/imessage/src/monitor/recovery-cursor.ts:95 ${accountId}\u0000${dbIdentity} Legacy adoption only legacyCursorStoreKey; only entries()-discovered legacy SQLite row is adopted; current durable key hashes JSON components (landed #184919)
extensions/knowledge/src/git-history.ts:242 removals.join("\0") + "\0" Binary/process protocol git --pathspec-from-file=- --pathspec-file-nul stdin; never SQL text
extensions/knowledge/src/merge.ts:149 ${r.type}\0${strength}\0${normalize(key)}\0${day} In-memory merge-candidate groups Map and strong-identity Set; returned candidates retain component fields
extensions/knowledge/src/merge.ts:177 g.pages .map((p) => p.id) .toSorted() .join("\0") In-memory merge-candidate groups Map and strong-identity Set; returned candidates retain component fields
extensions/knowledge/src/merge.ts:188 g.pages .map((p) => p.id) .toSorted() .join("\0") In-memory merge-candidate groups Map and strong-identity Set; returned candidates retain component fields
extensions/knowledge/src/relink.ts:89 createHash("sha256") .update("knowledge-relink\0") Hash input SHA-256 relink identity
extensions/knowledge/src/relink.ts:91 createHash("sha256") .update("knowledge-relink\0") .update(record.id) .update("\0") Hash input SHA-256 relink identity
extensions/knowledge/src/relink.ts:93 createHash("sha256") .update("knowledge-relink\0") .update(record.id) .update("\0") .update(String(record.revision)) .update("\0") Hash input SHA-256 relink identity
extensions/knowledge/src/remember.ts:79 ${item.kind}\0${text}\0${entities.join(&quot;,&quot;)} In-memory local repeated-item keys array; returned plan retains structured fields
extensions/knowledge/src/service.ts:80 createHash("sha256") .update("knowledge-memory-flush\0") Hash input SHA-256 memory flush identity
extensions/knowledge/src/service.ts:82 createHash("sha256") .update("knowledge-memory-flush\0") .update(flushId) .update("\0") Hash input SHA-256 memory flush identity
extensions/line/src/inbound-image-set.ts:59 ${laneKey}\u0000${senderKey}\u0000${setId} In-memory pendingBySet / deliveredBySet Maps, deleted at completion/timeout
extensions/llama-cpp/src/managed-server.ts:252 ${path.resolve(cacheDir)}\0${source} In-memory resolvedModelArtifacts / desiredRevisions / appliedRevisions Maps; file write gets unprefixed preset contents
extensions/llama-cpp/src/managed-server.ts:386 ${presetPath}\0${next} In-memory resolvedModelArtifacts / desiredRevisions / appliedRevisions Maps; file write gets unprefixed preset contents
extensions/matrix/src/matrix/delivery-plan.ts:104 createHash("sha256") .update(identity.queueId) .update("\0") Hash input planKey SHA-256 -> blob store lookup/registerIfAbsent
extensions/matrix/src/matrix/delivery-plan.ts:106 createHash("sha256") .update(identity.queueId) .update("\0") .update(String(requireIndex(identity.partIndex, "part index"))) .update("\0") Hash input planKey SHA-256 -> blob store lookup/registerIfAbsent
extensions/matrix/src/matrix/monitor/inbound-dedupe-migration.ts:172 createHash("sha256") .update(accountId) .update("\0") Hash input recomputed legacy SHA-256 entry identity; parseReplayGuardMarker separately decodes historical NUL-containing JSON field
extensions/matrix/src/matrix/monitor/inbound-dedupe-migration.ts:174 createHash("sha256") .update(accountId) .update("\0") .update(roomId) .update("\0") Hash input recomputed legacy SHA-256 entry identity; parseReplayGuardMarker separately decodes historical NUL-containing JSON field
extensions/matrix/src/matrix/sdk/client-core.ts:90 ${this.transactionScopeHomeserver}\0${userId}\0${deviceId ?? &quot;&quot;}\0${this.transactionScopeAccessTokenHash} Hash input SHA-256 authenticated transaction scope ID
extensions/matrix/src/matrix/thread-bindings.ts:64 ${record.accountId}\0${record.parentConversationId ?? &quot;&quot;}\0${record.conversationId} Hash input buildThreadBindingStoreKey SHA-256 -> keyedStore.register
extensions/memory-core/src/memory/manager-reindex-state.ts:102 ${candidate.model}\u0000${providerKey} In-memory seen identity Set; returned identities retain provider/model/providerKey fields
extensions/memory-core/src/memory/manager-sync-control.ts:147 [target.agentId ?? "", target.sessionId, target.sessionKey ?? ""].join("\0") In-memory queued session sync target Maps; persisted index receives original target fields
extensions/memory-core/src/migration/doctor-memory-sidecar.ts:193 ${agentId}\0${normalizedPath} In-memory seen sidecar source Set; migration retains agentId/path separately
extensions/memory-wiki/src/compiled-cache.ts:175 ${resolveMemoryWikiCompiledCacheOwnerId(config)}\0${path.resolve(config.vault.path)} In-memory dashboardStates Map; persisted publication keys use separate hashes
extensions/memory-wiki/src/import-runs-state.ts:79 ${vaultRootKey}\0meta\0${runId} Hash input resolveStateEntryKey / resolvePathStateEntryKey SHA-256 -> keyed state operations
extensions/memory-wiki/src/import-runs-state.ts:91 ${params.vaultRootKey}\0${params.runId}\0${params.kind}\0${params.index}\0${params.path} Hash input resolveStateEntryKey / resolvePathStateEntryKey SHA-256 -> keyed state operations
extensions/memory-wiki/src/source-sync-state.ts:92 ${vaultRootKey}\0${syncKey} Hash input resolveStateEntryKey SHA-256 -> keyed state operations
extensions/migrate-hermes/auth.ts:186 ${candidate.sourceKind}\0${candidate.accountId ?? &quot;&quot;}\0${candidate.access}\0${candidate.refresh}\0 Hash input sourceCredentialFingerprint SHA-256; only digest retained
extensions/migrate-hermes/config-providers.ts:150 ${binding.provider}\0${binding.envVar} In-memory local binding deduplication Map; returns values
extensions/msteams/src/polls.ts:227 crypto.createHash("sha256").update(pollId).update("\0") Hash input SHA-256 voter identity
extensions/openai/provider-policy-api.ts:480 [ candidate.api, canonicalRouteCandidateBaseUrl(candidate.baseUrl), candidate.authRequirement, candidate.requestTransportOverrides, ...(candidate.runtimePolicy?.compatibleIds ?? []), ].join("\u0000") In-memory provider route candidate grouping Map/Set
extensions/openai/token-sharing-oauth.runtime.ts:232 ${TOKEN_SHARING_ISSUER}\0${clientId}\0${subject} Hash input SHA-256 accountId -> persisted auth profile
extensions/opencode/session-catalog.ts:77 SAFE_ENV_KEYS.map((name) => process.env[name] ?? "").join("\0") In-memory cliVersionCache / openCodeQueryCache; SQL executes original query separately
extensions/opencode/session-catalog.ts:94 SAFE_ENV_KEYS.map((key) => ${key}=${process.env[key] ?? &quot;&quot;}).join("\0") In-memory cliVersionCache / openCodeQueryCache; SQL executes original query separately
extensions/opencode/session-catalog.ts:95 ${environment}\0${query} In-memory cliVersionCache / openCodeQueryCache; SQL executes original query separately
extensions/policy/src/doctor/exec-approval-rules.ts:106 ${pattern}\0${argPattern ?? &quot;&quot;} In-memory expected/actual approval comparison Maps/Sets; findings use pattern/argPattern separately
extensions/policy/src/doctor/policy-scope.ts:202 ${selectorValue}\0${field.propertyPath} In-memory seen selector/field policy Map
extensions/qa-lab/src/evidence-summary-schema.ts:60 ${cell.scenarioId}\u0000${cell.executionKind}\u0000${cell.channel ?? &quot;&quot;} In-memory plan invariant comparison Sets/arrays; reports retain original cell objects
extensions/qa-lab/src/gateway-process-boundary.ts:234 ${[executable, ...argv].join(&quot;\0&quot;)}\0 Binary/process protocol synthetic procfs command-line Buffer passed to process-boundary fixture
extensions/qa-lab/src/lab-server-ui.ts:138 hash.update("\0") Hash input UI asset hash digest
extensions/qa-lab/src/lab-server-ui.ts:140 hash.update("\0") Hash input UI asset hash digest
extensions/qa-lab/src/profile-evidence-sharding.ts:230 scenarioIds.toSorted().join("\u0000") In-memory expectedShardBySignature Map and shard equality comparison
extensions/qa-lab/src/providers/mock-openai/mock-openai-tooling.ts:97 createHash("sha256") .update(name) .update("\0") Hash input fixture tool identity digest
extensions/qa-lab/src/scorecard-taxonomy.ts:727 ${surfaceId}\u0000${categoryName} In-memory coverage category and inventory reference Maps; reports retain original fields
extensions/qa-lab/src/scorecard-taxonomy.ts:1063 ${ref.kind}\0${ref.path ?? &quot;&quot;} In-memory coverage category and inventory reference Maps; reports retain original fields
extensions/slack/src/monitor/context.ts:472 ${userId}\0${imageUrl} In-memory avatarCache / pendingAvatars; saveRemoteMedia receives URL separately
extensions/slack/src/progress-blocks.ts:172 [line.kind, line.toolName, line.label, line.text].join("\0") Hash input stableTaskIdPart SHA-256 digest -> task ID
extensions/team-reports/src/run.ts:52 accepted.orgs.join("\0") | [...new Set(resolved.github.orgs)].toSorted().join("\0") In-memory direct equality comparison of sorted organization arrays
extensions/telegram/src/bot-message-dispatch-session.ts:25 ${storePath}\0${sessionKey} In-memory session dispatch cache Map
extensions/telegram/src/sent-message-cache.ts:118 ${scopeKey}\0${chatId}\0${messageId} Hash input SHA-256 truncated hex -> openSentMessageStore().register
extensions/telegram/src/thread-bindings-store.ts:57 ${params.accountId}\0${params.conversationId} Hash input resolveStoredBindingKey SHA-256 truncated hex -> keyed state operations
extensions/telegram/src/topic-name-cache.ts:38 scope + "\u0000telegram-account:" + accountId Hash/in-memory raw scope indexes singleton stores Map; resolveTopicNameCacheNamespace SHA-256 hashes scope before openKeyedStore; record keys are chatId:threadId
extensions/workboard/src/store-core.ts:414 createHash("sha256") .update("openclaw.workboard.session-capture.v1\0") Hash input SHA-256 -> RFC9562 UUID-shaped card ID -> createDirect
extensions/zalouser/doctor-contract-api.ts:121 ${storePath}\0${canonicalKey} In-memory doctor selected-session grouping Map; persisted credential key is separate

@openclaw-barnacle openclaw-barnacle Bot added channel: imessage Channel integration: imessage scripts Repository scripts extensions: clickclack size: M labels Oct 30, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 40686235cf

ℹ️ About Codex in GitHub

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

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

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +27 to +29
store.register = async (...args) => {
assertPluginStateKey(true, args[0], "register");
return register(...args);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Migrate ClickClack callers before enabling the fixture guard

On this commit's base, the new guard breaks existing ClickClack persistence tests: generationFixture() uses createPluginStateKeyedStoreForTests(...).withCurrent(...), while markClickClackDiscussionChannelIdentityRevoked() still calls register() with the NUL-delimited key constructed by revokedChannelKey(). Consequently, the existing revocation test in extensions/clickclack/src/discussions/service-state-persistence.test.ts rejects with PLUGIN_STATE_INVALID_INPUT instead of reaching its routing and tool-denial assertions; switching another test to the canonical revocation API does not avoid the same failure. Incorporate the dependent ClickClack key migration before enabling this guard across shared fixtures. This also violates AGENTS.md's requirement to “migrate all affected internal/bundled callers together.”

AGENTS.md reference: AGENTS.md:L52-L52

Useful? React with 👍 / 👎.

@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Oct 30, 2026
@clawsweeper

clawsweeper Bot commented Oct 30, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge.

What this changes

This PR replaces Doctor’s NUL-suffixed pagination cursor with an exclusive SQL bound and rejects new NUL keys in plugin-state fixtures.

Example: Doctor continues a PostgreSQL page after binding:a.

  • Before: The cursor binding:a followed by NUL throws PLUGIN_STATE_INVALID_INPUT.
  • After: The exclusive bound returns binding:a0 and binding:b without manufacturing a NUL key.

Review scores

Measure Result What it means
Overall readiness 🦪 silver shellfish (2/6) The database regression supports the focused SQL repair, but the complete patch has a confirmed consumer-test regression.
Proof confidence 🦐 gold shrimp (3/6) The ordinary proof gate is exempt for this maintainer-authored PR; supplied PostgreSQL evidence exercises the changed Doctor context and exclusive continuation through a real database client.
Patch quality 🦪 silver shellfish (2/6) 1 actionable review finding remain.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Plugin Doctor migrations on PostgreSQL can stop when requesting a continuation page.
Reason: The maintainer-authored direction repairs a concrete shared-storage failure without adding configuration or changing persisted formats.

Merge readiness

⛔ Needs changes before merge - 1 item remains

Keep open: this PR fixes a current PostgreSQL pagination bug, but its shared fixture guard breaks ClickClack tests before the dependent migration lands.

Priority: P2
Reviewed head: 40686235cf04c2f3680b5d9a26d98cffe5876b26

Before merge

  • Migrate ClickClack before enabling the shared fixture guard (P2) - ClickClack’s generationFixture creates action-bound stores through this helper, while markClickClackDiscussionChannelIdentityRevoked still registers the NUL-delimited revokedChannelKey. The new assertion therefore rejects existing persistence scenarios with PLUGIN_STATE_INVALID_INPUT before their routing and authorization assertions run. Exact-head CI confirms this call chain. The acknowledged dependency fix(clickclack): discussion rooms fail to open when plugin state runs on PostgreSQL #188643 remains unmerged; incorporate that migration before enabling the guard, or defer the guard and its supporting fixture changes.

Findings

  • [P2] Migrate ClickClack before enabling the shared fixture guard — src/plugin-sdk/plugin-state-test-runtime.ts:27-29

Tests

  • Missing end-to-end proof: The supplied red/green run exercises the Doctor API against real PostgreSQL; it does not demonstrate the shipped Doctor CLI or a latest-stable upgrade.
Agent review details

How this fits together

Plugin Doctor migrations request bounded state pages through the shared plugin-state selector, which reads SQLite or PostgreSQL and returns scoped persisted entries.

flowchart LR
  A[Plugin Doctor migration] --> B[Doctor state context]
  B --> C[Bounded range reader]
  C --> D[Shared SQL selector]
  D --> E[SQLite or PostgreSQL]
  E --> F[Ordered state page]
Loading

Technical review

Best possible solution:

Keep exclusive pagination in the existing selector and defer shared fixture enforcement until the ClickClack key migration is incorporated.

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

Current-main source deterministically manufactures a forbidden PostgreSQL operand on continuation; the author also supplies a matching red/green database regression, which was inspected but not rerun.

Is this the best way to solve the issue?

Exclusive comparison fixes the query operand at its existing owner without changing stored keys; enabling fixture enforcement before migrating its ClickClack consumer makes the complete patch premature.

Full review comments:

  • [P2] Migrate ClickClack before enabling the shared fixture guard — src/plugin-sdk/plugin-state-test-runtime.ts:27-29
    ClickClack’s generationFixture creates action-bound stores through this helper, while markClickClackDiscussionChannelIdentityRevoked still registers the NUL-delimited revokedChannelKey. The new assertion therefore rejects existing persistence scenarios with PLUGIN_STATE_INVALID_INPUT before their routing and authorization assertions run. Exact-head CI confirms this call chain. The acknowledged dependency fix(clickclack): discussion rooms fail to open when plugin state runs on PostgreSQL #188643 remains unmerged; incorporate that migration before enabling the guard, or defer the guard and its supporting fixture changes.
    Confidence: 1

Overall correctness: patch is incorrect
Overall confidence: 0.99

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Doctor pagination keeps the original intent (0924fd9: Bounded scanning supports conservative orphan-binding repair while retaining malformed and protected rows.)
  • Fixture store identity keeps the original intent (2cd5dea: Existing fixtures retain native store bindings; the new guard mutates registration methods without replacing those objects.)
  • Legacy iMessage fixtures keeps the original intent (9b05a64: The PostgreSQL-safe cursor repair retained adoption of existing SQLite NUL-keyed rows.)
  • ClickClack revocation fixture keeps the original intent (1e7da04: Persistence tests preserve distinct lifecycle and authorization assertions; using the canonical revocation operation retains their intent.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

Acceptance criteria:

  • pnpm test src/plugin-state/plugin-state-store.runtime.test.ts extensions/clickclack/src/discussions/service-state-persistence.test.ts --maxWorkers=1
  • pnpm test extensions/imessage/src/monitor/recovery-cursor.test.ts extensions/imessage/src/monitor/catchup-startup.test.ts --maxWorkers=1
  • node scripts/test-database-conformance.mjs --engine postgres --connection "$TEST_PG_URL" -- src/infra/state-migrations.plugin-doctor-context.postgres.test.ts --maxWorkers=1
  • git diff --check

What I checked:

Likely related people:

  • Mitchell Etzel: Raw commit 9b05a64 adds extensions/imessage/src/monitor/recovery-cursor.test-support.ts:34 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 9b05a64eff6f; files: extensions/imessage/src/monitor/recovery-cursor.test-support.ts)

PR surface

Source +49, Tests +150, Other +2. Total +201 across 12 files. Added test files: 1.

View PR surface stats
Area Files Added Removed Net
Source 3 55 6 +49
Tests 7 173 23 +150
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 2 2 0 +2
Total 12 230 29 +201

Review metrics

Metric Value Why it matters
Production versus test growth Production +8/-3; test SDK +47/-3; tests/support +172/-23. The production repair is small; additional growth enforces portable fixture keys and preserves legacy adoption coverage.

Labels

Label changes:

  • add P2: Doctor pagination fails on PostgreSQL continuation pages, with a focused shared-owner repair.
  • add merge-risk: 🚨 automation: The new shared fixture guard demonstrably breaks ClickClack persistence validation on the reviewed head.
  • add rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦐 gold shrimp and patch quality is 🦪 silver shellfish.
  • add status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

Label justifications:

  • P2: Doctor pagination fails on PostgreSQL continuation pages, with a focused shared-owner repair.
  • merge-risk: 🚨 automation: The new shared fixture guard demonstrably breaks ClickClack persistence validation on the reviewed head.
  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦐 gold shrimp and patch quality is 🦪 silver shellfish.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed October 30, 2026, 5:04 PM ET / 21:04 UTC.

@steipete

Copy link
Copy Markdown
Contributor Author

CI dependency evidence for head 40686235cf04c2f3680b5d9a26d98cffe5876b26:

The extension bundle reproduces the documented ClickClack dependency: service-state-persistence.test.ts has 16 failing tests. Registration failures originate in markClickClackDiscussionChannelIdentityRevoked at the unchanged revoked-channel-store.ts:128; subsequent persistence cases also fail or time out. This is exposed by the test-only guard and needs #188643. It is not attributed to unrelated main failures, and no guard exemption was added.

The bundle's other cases passed: 244 passing tests in total across its three invocations (plus 3 skipped). The original local PostgreSQL RED/GREEN and independent review remain valid for the reviewed head. The PostgreSQL results are 2/3 passing: shard 1/3 (job 124306054398) and shard 2/3 (job 124306054332) passed. The new Doctor regression passed in shard 1/3 (2324 ms).

Shard 3/3 (job 124306054395) failed in the unchanged src/infra/postgres-sync/reuse.postgres.test.ts case “reconnects after an idle backend is terminated, without reusing the broken backend”: the first pg_backend_pid() request after termination throws SqliteWorkerError: PostgreSQL connection lost; outcome unknown. That phase reports 331 passed, 1 failed, 1 skipped; its other invocations report 102, 3, and 12 passed. No retry was requested.

The newest scheduled-main run, 41123124777 at the same base commit, passed all three PostgreSQL shards. Thus the connection-reuse failure is unresolved, not claimed as inherited or proven flaky. Neither the test nor its connection implementation changed in this PR.

The required three-shard gate is not met. This PR remains open for inspection, with no merge and no claim that it is ready for PostgreSQL approval.

steipete added a commit that referenced this pull request Oct 30, 2026
Restore pre-statement validation for transports cached idle for at least
one second after #188614 removed the checkout health check. Timestamp
release in the idle cache and carry the validation decision with the first
request. Reconnect before borrower SQL if validation fails; preserve burst
reuse, observed-error recovery, and exclusive transaction ownership.

Fix the terminated-idle reuse regression observed in #188693 CI run
41126168981, PostgreSQL shard 3, job 124306054395:
"reconnects after an idle backend is terminated, without reusing the broken
backend" failed with PostgreSQL connection lost; outcome unknown.

Cover the inclusive idle-age boundary with the existing fixture clock and
make the PostgreSQL termination case deterministic. Document the remaining
subsecond termination window. No public configuration or schema changes.

Validation: PostgreSQL 17.11 reuse suite 20/20 runs (260 test executions),
connection suite 26/26, and isolated agent database suite 11/11. Core typed
lint, state-logging typecheck, formatting, and whitespace checks pass.
Tests have zero net line growth. Two isolated Codex P0-P2 reviews are clean.
Use an exclusive SQL lower bound for Doctor pagination instead of a NUL-suffixed cursor. Reject new NUL keys in test-only plugin-state fixtures while retaining legacy SQLite adoption reads.

Add real PostgreSQL Doctor regression coverage and register it in conformance and database-worker lanes. Refs #184862 #188642.
@steipete
steipete merged commit 395cac7 into main Oct 30, 2026
158 of 162 checks passed
@steipete
steipete deleted the pgprep/pgnulkeys branch October 30, 2026 23:07
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via explicitly authorized admin squash with attributed pre-existing CI failures.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 31, 2026
Restore pre-statement validation for transports cached idle for at least
one second after openclaw#188614 removed the checkout health check. Timestamp
release in the idle cache and carry the validation decision with the first
request. Reconnect before borrower SQL if validation fails; preserve burst
reuse, observed-error recovery, and exclusive transaction ownership.

Fix the terminated-idle reuse regression observed in openclaw#188693 CI run
41126168981, PostgreSQL shard 3, job 124306054395:
"reconnects after an idle backend is terminated, without reusing the broken
backend" failed with PostgreSQL connection lost; outcome unknown.

Cover the inclusive idle-age boundary with the existing fixture clock and
make the PostgreSQL termination case deterministic. Document the remaining
subsecond termination window. No public configuration or schema changes.

Validation: PostgreSQL 17.11 reuse suite 20/20 runs (260 test executions),
connection suite 26/26, and isolated agent database suite 11/11. Core typed
lint, state-logging typecheck, formatting, and whitespace checks pass.
Tests have zero net line growth. Two isolated Codex P0-P2 reviews are clean.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 31, 2026
)

* fix(plugins): portable plugin-state keys for PostgreSQL

Use an exclusive SQL lower bound for Doctor pagination instead of a NUL-suffixed cursor. Reject new NUL keys in test-only plugin-state fixtures while retaining legacy SQLite adoption reads.

Add real PostgreSQL Doctor regression coverage and register it in conformance and database-worker lanes. Refs openclaw#184862 openclaw#188642.

* test: account for rebased plugin-state coverage

* test(clickclack): import legacy revocations before adoption
maplel pushed a commit to maplel/openclaw that referenced this pull request Nov 24, 2026
)

* fix(plugins): portable plugin-state keys for PostgreSQL

Use an exclusive SQL lower bound for Doctor pagination instead of a NUL-suffixed cursor. Reject new NUL keys in test-only plugin-state fixtures while retaining legacy SQLite adoption reads.

Add real PostgreSQL Doctor regression coverage and register it in conformance and database-worker lanes. Refs openclaw#184862 openclaw#188642.

* test: account for rebased plugin-state coverage

* test(clickclack): import legacy revocations before adoption

(cherry picked from commit 395cac7)

Release adaptation: Only exclusive SQL lower bound in kernel and Doctor pagination; preserve legacy SQLite keys and public validation. Regression exercises real Doctor paging and inspected executed SQL bindings; no NUL-key fixture policy, schema or unrelated tests.

Follow-up dispositions: 8253356 fix: preserve child results after source lifecycle changes (openclaw#202708); f3f89c7 fix: show saved child results when completion delivery fails (openclaw#202664); c45faa8 fix: align CI tests with admitted tool calls (openclaw#202655); 5c9389a fix: make channels add report required plugin install failures (openclaw#202091); 52b9188 fix: show hosted model details in `models list` without a Gateway (openclaw#202490); d248a76 fix: show an outcome when kept child chats return no answer (openclaw#202423); 5148804 fix(discord): check a queued message's access again when its turn starts (openclaw#202330); 2470d62 fix: let setup use account models with a fresh catalog (openclaw#202019); 9fa0b92 fix: let PostgreSQL Gateways start with plugin-backed secrets (openclaw#201063); c180824 fix(plugins): Talk and plugin-loading requests fail on PostgreSQL Gateways (openclaw#201976); cb5cfb2 fix: keep a doubtful killed-update recovery on the repair path (openclaw#201361); 17c5fb0 fix(state): PostgreSQL state created before Template bootstrap deferral is refused as schema drift (openclaw#197425); b5c1277 fix: let resumed parents collect children stopped by restart (openclaw#201460); f920a7e chore(postgres): qualify cron completion during graceful shutdown (openclaw#201246); 1680f54 fix(openai): new ChatGPT subscription models missing until an OpenClaw release (openclaw#201130); 0d8820a fix(media): image descriptions use the ChatGPT OAuth route when OpenAI has no API key (openclaw#199299); ee3e16e test(agents): trim and fold low-value regression suites (openclaw#198916); b8029b4 test(agents): qualify PostgreSQL simple-completion acquisition (openclaw#200956); 703c82d fix(sessions): record queued input end causes and recover them across crashes (openclaw#200533); 23fca1a fix: let the next update continue after a killed update when nothing is left to repair (openclaw#200680); d565e17 fix(ci): retire deleted session fork test from inventory (openclaw#200611); 4cf12c6 chore(postgres): qualify prompt refresh and rebalance CI (openclaw#200488); d460273 fix(templates): release earlier Template-managed agents (openclaw#200303); ff75829 fix(update): --no-restart update fails when the Gateway restarts itself during Doctor's stop (openclaw#200181); 0b2ad60 chore(postgres): cover compaction watched-session prompts (openclaw#200117); b90c573 test: consolidate redundant coverage (198795 recut) (openclaw#198943); a042363 test: consolidate redundant coverage (198793, part 2) (openclaw#198936); 9bfad2b test: consolidate suites while retaining recovery owners (openclaw#198933); 4e9812c test: consolidate redundant coverage (198789, part 2) (openclaw#198932); 90814f5 fix(subagents): stops a finished sub-agent's chat being deleted before its parent reads the result; 799bc0b fix(ci): stabilize hourly fixtures and retire unused exports (openclaw#199851); e4a3093 perf(update): replace the candidate canary with a runtime contract check (openclaw#198268); a4cc2ad fix: undo cold-session compaction CPU and latency regressions (openclaw#199561); 55fec79 fix(agents): stop divergent mid-turn overflow recovery (openclaw#199636); 2c4413a fix: reduce Gateway stalls under filesystem pressure (openclaw#197510); 37d977f fix: output reducers are skipped in headless and Code Mode runs (openclaw#199434); c9ee264 fix(compaction): concurrent sessions wait for each other's summaries during compaction (openclaw#196550); 2471ddc feat: let agents review generated images before delivery (openclaw#198227); 21f7dc6 fix(github): publication fails with PostgreSQL session or state stores (openclaw#193749); 63d9e57 fix(ci): new PostgreSQL suites are omitted from conformance (openclaw#198390); 466a4b6 fix(telegram): steered answers quote the wrong input (openclaw#178124); 87b6f52 fix(delivery): resend routed Telegram finals after an ambiguous network failure (openclaw#192779); 68a839b fix: isolate held agent databases until explicit restoration (openclaw#198180); cff99b2 fix(agents): keep provider history append-only across runs (openclaw#197874); 8a328bf feat: add an opt-in usage-ranked tool index (openclaw#197128); 097e648 fix(ci): plan only executable infra tests (openclaw#197911); 76385fd fix(models): discovered models become "Unknown model" after restart or an ended sign-in (openclaw#197784); 89d4177 fix(plugin-state): guarded calls fail until Gateway restart after an unknown write outcome (openclaw#197790); baca36e fix(sessions): commit selected invitations with original messages (openclaw#184512); 699e538 fix(sessions): drain passive notices on sessions_send resumes; d6ded18 chore(ci): drop retired test-lines allocation records (2/3) (openclaw#197656); e0dd020 fix(agents): collect process results at suspended-run capacity; 4897740 feat(auth): preserve delegated OCE user profiles and permissions (openclaw#196856); 7197ce1 feat(templates): install bundled plugins through native management (openclaw#196349); 9c6ee9b feat: let Template automations start paused for onboarding (openclaw#196323); 79a6214 fix(message): retain local final replies in conversation history (openclaw#187795); caa978c feat(templates): open durable chat before verified setup (openclaw#196392); 78e73aa fix(sessions): cold PostgreSQL conversations fail after idle readers close (openclaw#189991); b6ed907 perf(sessions): persist active transcript facts for hydration (openclaw#193682); 1595dd2 feat(plugins): reauthorize accepted session work (openclaw#176886); b43ad0a fix(models): avoid reloading plugins on catalog refresh (openclaw#193903); 0947d02 fix(ci): avoid unrelated PostgreSQL runs and admit owned tests (openclaw#193870); 428ca7d feat(openclaw-id): add Gateway membership authority and publication behind the Labs flag (openclaw#192335); c718583 fix(update): repair refuses forever after a verified update fails a later step (openclaw#193132); 3f64174 fix: deliver background replies after a reload retires the turn registry (openclaw#193130); 982f3b1 fix(imessage): report Automation failures after Gateway updates (openclaw#186117); 31b28e9 fix(agents): wait for a peer OAuth refresh before failing request auth (openclaw#192906); cf50d4a feat(storage): support read-only PostgreSQL standby inspection (openclaw#192645); 82fd4e6 fix(agents): retain stale session target refusal reasons (openclaw#192681); 8ac4e19 fix(worktrees): reserve capacity on PostgreSQL (openclaw#192537); 718b349 fix: reduce session startup stalls under storage contention; 08f4a19 refactor(skills): move Skill Workshop into its bundled plugin (openclaw#192471); 837402a fix(clawrouter): keep upstream credit failures off the shared key (openclaw#192575); f38495f fix(plugins): reject late routing from canceled runs (openclaw#192492); dc5d61a improve(sessions): reduce unnecessary maintenance query rows (openclaw#192023); c4bf0dc fix(sessions): avoid extra maintenance scans for embedded archives (openclaw#184507); e44b3d6 fix(team-reports): recover after database connection loss (openclaw#192020); 991fb33 fix(logbook): recover after database connection loss (openclaw#192011); e6d0d2e fix(test): include omitted PostgreSQL conformance suites (openclaw#191962); da5ff0f fix(codex): reject native hooks from a previous run (openclaw#191788); 09f0b0b feat(plugins): add skill usage runtime for plugins (openclaw#191661); 00b2ff4 fix: parent sessions miss child approvals with a custom session store (openclaw#189827); be44b10 fix: stop completed session writes retaining request data (openclaw#191197); d40aa7c fix(sessions): replay creation requests across Gateway restarts (openclaw#190862); d894035 fix: await Doctor shared-state repair preparation (openclaw#190875); b515cc7 feat: fork threaded conversations with Telegram support (openclaw#190783); def6349 feat(plugins): plugins can run a hidden forked turn of a session with their own tools (openclaw#190950); d983e34 feat(plugins): plugin commands can continue the agent with a replacement prompt, on every channel (openclaw#190908); ea3f0b8 fix(ci): provision Node test prerequisites and retain Baseten routing (openclaw#191050); 29503e1 fix(update): Gateway stays stopped after the updater process dies mid-update (openclaw#188497); fc8c2d0 fix(update): preserve unfinished handoff artifacts (openclaw#190571); 7c26e8c fix(ci): cover PostgreSQL managed update handoffs (openclaw#190336); 4913d41 fix(ci): prevent truncated PostgreSQL target listings (openclaw#189509); 8925f62 fix(gateway): start restored PostgreSQL homes on the first attempt (openclaw#190291); 177fe32 feat(models): preserve inference capabilities in opt-in catalog v3 (openclaw#189678); 7faf32d feat: retain repository disk authority through recovery (openclaw#189106); a658df3 feat(database): capture externally quiesced SQLite migrations; 0f9e7f7 feat(database): capture exact SQLite migration capsules; 4fb684e feat(backup): add PostgreSQL local companion checkpoints; c89a101 fix(doctor): migrate auth profiles on PostgreSQL stores (openclaw#189639); 799de09 fix(ci): split oversized workspace and setup files (openclaw#189356); 21ee847 fix(acp): keep completed run conversations resumable (openclaw#189273); fce0e56 perf(sessions): open cold history without restoring archives (schema 39) (openclaw#188397)

Validation: Baseline1 NUL-binding assertion failure/21passing; candidate22/22passes (188693-green.log). Real SQLite Doctor path and generated SQL proved; no native PostgreSQL server execution claimed.

Co-authored-by: RomneyDa <[email protected]>
(cherry picked from commit 0895146d8c1493146f5c6461eee0b10c329bdd1e)
(cherry picked from commit f8ccaa70bc9773d6bbb569bc0e275eee0c544ead)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

channel: imessage Channel integration: imessage extensions: clickclack merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. P2 Normal backlog priority with limited blast radius. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. scripts Repository scripts size: M status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant