Repository navigation
fix(plugins): portable plugin-state keys for PostgreSQL - #188693
Conversation
|
Core NUL inventory — part 1/3. Source snapshot:
|
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Core NUL inventory — part 2/3. Source snapshot:
|
|
Core NUL inventory — part 3/3. Source snapshot:
|
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Extension NUL inventory. Source snapshot:
|
There was a problem hiding this comment.
💡 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".
| store.register = async (...args) => { | ||
| assertPluginStateKey(true, args[0], "register"); | ||
| return register(...args); |
There was a problem hiding this comment.
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 👍 / 👎.
|
Codex review: needs changes before merge. What this changesThis 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.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete 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 Before merge
Findings
Tests
Agent review detailsHow this fits togetherPlugin 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]
Technical reviewBest 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:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against f4e6a9ea9735. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceAcceptance criteria:
What I checked:
Likely related people:
PR surfaceSource +49, Tests +150, Other +2. Total +201 across 12 files. Added test files: 1. View PR surface stats
Review metrics
LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed October 30, 2026, 5:04 PM ET / 21:04 UTC. |
|
CI dependency evidence for head The extension bundle reproduces the documented ClickClack dependency: 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 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. |
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.
4068623 to
b3eae56
Compare
|
Merged via explicitly authorized admin squash with attributed pre-existing CI failures.
|
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.
) * 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
) * 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)
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 reachesassertPluginStateKeyand throwsPLUGIN_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_INPUTon Doctor's second page. The fix passed the same test, preservingbinding:a0afterbinding: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_INPUTfrom 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=1Independent 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 andsecurity-fastpassed. The sole root failure ischecks-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/andsrc/; 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
src/plugin-state/plugin-state-store.sqlite.ts, Doctorafter + NULcreatePluginDoctorStateMigrationContext.readPluginStateEntriesInKeyRange→ private SQL range selector → PostgreSQL key assertionextensions/clickclack/src/discussions/revoked-channel-store.tsrevokedChannelKey→ observe/register/compareAndApply/lookup/deleteextensions/imessage/src/monitor/recovery-cursor.ts(account, database)key; current SHA-256 of JSON pair → lookup/register; bounded entries listing discovers old keys before consumeextensions/clickclack/src/discussions/service-open.ts,binding-generation.tsdestinationIdentity→ JSON value in generation record, keyed by session keysrc/agents/subagents/registry/subagent-registry-lifecycle-wake.tsJSON.stringify(["subagent-settle-rejected", scope])→ persisted idempotency keysrc/infra/session-sqlite-transcript-verification.ts;src/config/sessions/legacy-transcript-repair.tsseen/stripped_keySQL columnsextensions/matrix/src/matrix/monitor/inbound-dedupe-migration.tsvalue.key.split(NUL)→ separate ingress fieldsExtension 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.clickclack/src/discussions/binding-store.ts:96channelKey→sessionByChannel/channelBySessionMaps only. Durable store operations usesessionKey. In-memory.clickclack/src/discussions/naming.tsshortSessionHash→ durable session/external IDs. Hash-only.telegram/src/topic-name-cache.ts:38chatId:threadId. Map/hash-only.telegram/src/sent-message-cache.ts:118;thread-bindings-store.ts:57telegram/src/bot-message-dispatch-session.ts:25browser/src/browser/session-tab-identity.ts:47;session-tab-process-state.ts:25;session-tab-ephemeral-aliases.ts:17browser/src/browser/pw-role-snapshot.ts:53;extension-install-layout.ts:433,444anthropic/session-catalog-adoption.ts:7;session-catalog.ts:278anthropic/session-catalog-discovery.ts:459;session-catalog-executable.ts:107;session-catalog-scan.ts:184line/src/inbound-image-set.ts:59codex/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:342codex/src/app-server/managed-thread-store.ts:27,29codex/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.tscodex/src/app-server/shared-client-key.tscodex/src/app-server/computer-use-unified.ts:247;cyber-failover.ts;compact-helpers.ts;event-projector-tool-search-evidence.ts;transport-process-containment.tscodex/src/session-catalog-provenance.ts;session-upstream-activity.ts;node-cli-sessions.ts;src/migration/session-binding-orphans.ts;session-binding-owners.tsacpx/src/pi-session-store.ts;runtime-generations.tsacpx/src/runtime.ts:718hashAcpxProcessCommand→probe-<hex>lease ID. Hash-only.github/src/preview.ts:404,417;detail.ts:286diagnostics-otel/src/service.ts:240;service-exporter-health.tsllama-cpp/src/managed-server.ts:252,386memory-core/src/memory/manager-reindex-state.ts:102;manager-sync-control.ts:147;src/migration/doctor-memory-sidecar.ts:193memory-wiki/src/compiled-cache.ts:175;import-runs-state.ts:79,91;source-sync-state.ts:92matrix/src/matrix/thread-bindings.ts:64;delivery-plan.ts:104,106;sdk/client-core.ts:90msteams/src/polls.ts:227beam/src/mirror.ts:119,205,419,477slack/src/progress-blocks.ts:172;src/monitor/context.ts:472discord/src/monitor/message-avatar.ts;gateway-registry.tsdiscord/src/monitor/message-handler.preflight-helpers.ts:114policy/src/doctor/exec-approval-rules.ts:106;policy-scope.ts:202;file-transfer/src/approvals-migration.ts:38feishu/src/doctor.ts:178,466;zalouser/doctor-contract-api.ts:121feishu/src/dynamic-agent.ts:60migrate-hermes/auth.ts:186;config-providers.ts:150openai/token-sharing-oauth.runtime.ts:232;provider-policy-api.ts:480opencode/session-catalog.ts:77,94,95workboard/src/store-core.ts:414knowledge/src/service.ts;relink.tsknowledge/src/remember.ts:79;merge.ts:149,177,188;team-reports/src/run.ts:52crabbox/src/crabbox-worker-profile.ts;crabbox-worker-script.ts;copilot/src/sdk-loader.tsqa-lab/src/evidence-summary-schema.ts;profile-evidence-sharding.ts;scorecard-taxonomy.tsqa-lab/src/lab-server-ui.ts;providers/mock-openai/mock-openai-tooling.tsdiffs/assets/viewer-runtime.js;diffs-language-pack/assets/viewer-runtime.jsOther 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/.gateway/worker-environments/transcript-commit.runtime.ts:286;worker-session-tool-executor.ts:69,446,518state/openclaw-migration-witness.ts:285,289infra/exec-command-resolution.ts:206–228agents/tools/ask-user-tool.ts:76,85;openclaw-delegate-tool.ts:38;agents/mcp-oauth-identity.ts:28,73;github-oauth-client.ts:269pairing/pairing-store-model.ts:23;infra/approval-resolution-ref.ts:11;device-pairing-identity.ts:133,168gateway/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 modulesstate/openclaw-agent-db-lease-provenance.ts:77,85;storage/marker.ts:50;node-host/node-worker-container-engine.ts:138,268infra/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 identitiestalk/client-voice-session-store.ts:226config/sessions/session-accessor.sqlite-archive-store-kernel.ts:65;infra/state-migrations.transcript-archive-publication.ts:77plugins/session-catalog.ts:271;session-catalog-family.ts:533plugin-state/plugin-store-validation.ts:40;plugin-state-native-binding-codec.ts:14;plugin-sdk/channel-replay-guard.ts:77infra/client-credential-async.ts:103;device-identity-async.ts:84,102;outbound/current-conversation-bindings.ts:85,523;device-pairing-core.kernel.ts:249agents/sandbox/persistent-exec.ts:223,247,305;agents/subagents/requester-final-attachment.ts; completion/cleanup/cohort/kill scopesagents/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.tsgateway/session-row-*;session-title-state.ts;session-sharing-preparation.ts;session-automation-index.ts; GitHub publication/workflow/defer/discovery modulesserver-methods/projects-recents.tsconfig/sessionspublication/branch/cold-storage/target/migration identities;infra/session-sqlite-migration-manifest.ts; Doctor restore/candidate identitiesmedia/media-reference-comparison.ts:8NUL 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.