Skip to content

refactor: prepare plugin and Codex incognito session consumers - #168398

Merged
steipete merged 18 commits into
mainfrom
dbasync/incogp07
Oct 10, 2026
Merged

steipete merged 18 commits into
mainfrom
dbasync/incogp07

Conversation

@steipete

@steipete steipete commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Prepares plugin admission and Codex session consumers to retain the selected incognito owner through asynchronous policy, history, and lifecycle work.

User Impact

Inactive preparation: production incognito remains host-owned and allocates no actor. Explicitly bound consumers retain execution host/node and consent policy; storage refusal is reported instead of selecting defaults. Existing installations need no migration. This PR does not activate incognito workers or retire native incognito T1 paths.

Why This Change Was Made

Registry and runtime preparation now carry the physical session source through delegated admission, callbacks, initialization, recovery, and rollback. Authority callbacks stay synchronous and live. Codex carries the same source through commands, conversation bindings, native tools/monitors, sandbox preparation, and marker/by-ID history, rejecting replacement or policy revocation after awaited work.

Fresh creation remains with the existing Gateway creator. Production acquisition, fresh actor-creation composition, and native selector/history-worker deletion remain P12 work. Workboard's synchronous sandbox contract and durable catalog/migration paths remain supported. No schema, retention, permission, content-cap, feature-flag, or worker-service change is included.

Evidence

Publication head: 9f083971d57bd62dc4911bc5a38496bacd2a88e7. SQL measurement source: 5f79d6ea12ec55e3d0923da85383d819f55af0fb; baseline: 2f532dfc6942ea28a820160a23f0da3b7d039555, including P03. Those source trees and tracked bytes were verified remotely. Later changes regenerate inventory source-line references and repair the fixtures/module boundaries described below; they do not change SQL behavior.

The original regression, type, SDK, build/lazy-import, changed-plan and inventory proof remains preserved at its recorded sources. Final repair checks and the unrelated local type failure are detailed below. The original failed receipts remain recorded; this is not a claim that one uninterrupted pnpm check:changed invocation passed. The published-driver × candidate update cell is pending (lander).

Lander repair at 9f083971d57b

The five native-thread failures came from fixtures mocking the previous getter seam while production now prepares through the canonical session owner. The existing tests now seed and mutate the canonical isolated session store; every ownership, dispatch, binding, invocation, and client-lifetime assertion is retained. Unbound incognito still uses the native host owner and allocates no actor.

Agent, Gateway, and subagent session wrappers are back in registry-runtime.ts. Deleting registry-runtime-session.ts removes its cyclic ownership-implementation type dependency and restores the write call to its existing debt allowance. Independent namespace facade projection now lives in registry-runtime-facades.ts, using the existing runtime type owner. No debt allowance or line-cap baseline changed. The repair is four files, +366/−409 (production +339/−405; tests +27/−4).

The initial six-file focused run passed 88 tests in 207.402 s, including all five failures and unbound/native plus explicitly bound actor coverage. After the final namespace-only move, 39 registry tests passed in 126.055 s on the publication commit. The unchanged native-thread/SDK fixtures retain the initial passing receipt.

Final-commit check Result Wall seconds
Three registry suites Passed 126.055
pnpm check:architecture (including madge) Passed 332.829
pnpm lint:tmp:session-accessor-boundary Passed 48.468
pnpm check:line-cap-ratchet --base 2f532dfc6942ea28a820160a23f0da3b7d039555 Passed 2.904
pnpm tsgo:core Unrelated local dependency failure; see below 12.009

The final architecture run reports 0 runtime value cycles and 0 madge cycles. Its four Kysely generator tests also pass. Local core types report TS2769/TS2353 in packages/ai/src/providers/google-stream.ts:67,70: the installed Google SDK lacks FinishReason.CONTINUATION. That file and pnpm-lock.yaml are byte-identical to the integrated baseline, and the same local mismatch was recorded before this repair. There are no touched-file diagnostics; this is not reported as a passing type run. Earlier remote type receipts remain attached to their original source.

Exact focused commands and proof cost
node scripts/run-vitest.mjs extensions/codex/src/native-thread-tool-selection.test.ts extensions/codex/src/native-thread-tool.test.ts src/plugins/registry.runtime-session-ownership.test.ts src/plugins/registry.runtime-incognito.test.ts src/plugins/registry.runtime-config.test.ts src/plugin-sdk/session-store-runtime.async.test.ts --maxWorkers=1
node scripts/run-vitest.mjs src/plugins/registry.runtime-config.test.ts src/plugins/registry.runtime-incognito.test.ts src/plugins/registry.runtime-session-ownership.test.ts --maxWorkers=1

Repair proof ran under the coordinator-authorized local proof slot (six total slots, two reserved), with no remote lease or hosted proof job allocated: 0 added hosted proof job-seconds. The slot is released. The original failed line-cap probe is preserved; moving the independent facade projection resolved it without changing an allowance. No fourth P2 review round was started under the campaign's three-round convergence rule.

Existing SQL and whole-workload receipts are preserved: this repair changes fixture ownership and module placement, not emitted SQL. PM2/PM3/PM4 remain closed only for explicit actor contracts; no incognito T1 retirement is claimed. The published-driver × candidate update cell remains pending (lander).

SQL measurement

Same Linux host, equal source-performance builds with source maps, three alternating baseline/candidate pairs, followed by an extra whole-workload census pair. All eight synthetic workloads completed. Maximum canonical candidate/baseline phase median duration ratio: 1.007; no duration-skew invalidation.

Phase Baseline median Candidate median Delta
Boot 2,315 2,315 0
Connect 1,196 1,204 +8
First turn 2,445 2,379 -66
Warmed mean (10 turns) 1,027.6 1,030.9 +3.3 (+0.32%)
Second session 3,856 3,864 +8
Control plane 287 287 0
Cron 1,154 1,169 +15 (+1.30%)
Compaction 407 403 -4
Shutdown 195 195 0

The extra startup-through-shutdown pair records 22,207 → 22,061 all-thread statements (-146) and 3,419 → 3,397 logical worker requests (-22), with workload duration 57.211 → 57.407 seconds. Per-phase/thread/SQL conservation is exact; the transport census has no missing SQL context or duplicate sends. Its two unmatched sends and two unmatched receives occur on both sides and remain visible in the evidence.

The manual attribution accounts for every positive canonical SQL/thread/stack delta: 112 groups traverse 111 source files whose Git blobs are identical between baseline and candidate. The warmed difference is +41/−8 statements over ten turns (+33 total). The individual first warmed turn rises +24; it is covered by the additional whole-workload check, not omitted. Non-turn rises are within the documented +2% or +10-statement tolerance.

The conservative automatic classifier remains INDETERMINATE because it leaves some worker SQL unassigned. Acceptance uses the preserved native-stack attribution and whole-workload statement/request check under the campaign rules; the classifier result is not rewritten.

Positive phase attribution and whole-workload operation totals

Each phase is decomposed using the actual sample that equals its side's median total. These are not sums of per-statement medians. All positive stacks, including those in net-decreasing phases, were source-checked.

Phase Baseline → candidate median Net Gross + / − Unchanged owners of positive groups
01.connect 1196 → 1204 +8 +16 / -8 State ownership/lease/transaction +11; admission +3; state worker/deletion +2
03.turn-01 1138 → 1162 +24 +29 / -5 Memory publication/context/index +13; session/agent/state reads +15; ACP metadata +1
03.turn-02 924 → 925 +1 +1 / 0 Agent metadata +1
03.turn-03 1158 → 1160 +2 +2 / 0 Agent metadata +1; state schema read +1
03.turn-05 934 → 935 +1 +1 / 0 Agent metadata +1
03.turn-09 1177 → 1180 +3 +6 / -3 Entry revision +4; maintenance transaction +1; agent execution domain +1
03.turn-10 937 → 939 +2 +2 / 0 Agent metadata +1; ACP metadata +1
04.second-session 3856 → 3864 +8 +37 / -29 Agent admission/schema/domain/metadata +26; session projection/inventory/maintenance +11
06.cron 1154 → 1169 +15 +26 / -11 Agent/state reads +14; session entry/participant reads +8; worktree registry +3; placement codec +1
03.warmed-mean 1027.6 → 1030.9 +3.3 +41 / -8 over ten turns Memory +13; session/agent/state reads +26; ACP metadata +2 (ten-turn totals)

The whole-workload operation deltas below sum exactly to −22 requests and −146 statements. All 86 positive whole-workload native stack groups also traverse unchanged source. In particular, patch-commit SQL rises by 34 with unchanged request count; equal requests alone are not treated as equal SQL.

Operation (transport / type) Requests B → C Δ requests Successful SQL B → C Δ SQL
readonly-process / auth-profile-rows 50 → 50 +0 389 → 380 -9
sqlite-broker / database.domain.bind 91 → 88 -3 521 → 503 -18
sqlite-broker / database.domain.close 91 → 88 -3 63 → 60 -3
sqlite-broker / database.domain.execute 125 → 118 -7 864 → 812 -52
sqlite-broker / database.domain.publish 93 → 93 +0 1601 → 1597 -4
sqlite-broker / pluginState.compareDelete 38 → 34 -4 247 → 221 -26
sqlite-broker / pluginState.compareUpdate 19 → 17 -2 171 → 153 -18
sqlite-broker / pluginState.observe 19 → 17 -2 114 → 102 -12
sqlite-broker / session.entry.patch.commit 168 → 168 +0 1994 → 2028 +34
sqlite-broker / session.entry.patch.prepare 61 → 61 +0 220 → 207 -13
sqlite-broker / session.maintenance.read 20 → 21 +1 108 → 108 +0
sqlite-broker / session.pendingInputs.read 14 → 14 +0 86 → 82 -4
sqlite-broker / session.transcript.anchors.read 7 → 7 +0 41 → 38 -3
task-worker / agentDatabaseRegistry.read 2 → 2 +0 11 → 10 -1
task-worker / config.health.read 2 → 2 +0 6 → 5 -1
task-worker / deliveryQueue.outbound 10 → 10 +0 34 → 32 -2
task-worker / mentions.snapshot 57 → 57 +0 141 → 143 +2
task-worker / placementJournals.owners 1 → 1 +0 5 → 6 +1
task-worker / plugins.deferredMigrations.read 1 → 1 +0 2 → 3 +1
task-worker / prepare 9 → 8 -1 0 → 0 +0
task-worker / session-activity-summary-source 15 → 15 +0 284 → 283 -1
task-worker / session-corpus-inventory 15 → 15 +0 146 → 151 +5
task-worker / session-entry-read 105 → 105 +0 406 → 403 -3
task-worker / session-exact-entries 385 → 385 +0 2348 → 2352 +4
task-worker / session-identity-evidence 1 → 1 +0 12 → 8 -4
task-worker / session-maintenance-read 1 → 0 -1 11 → 0 -11
task-worker / session-row-backfill 21 → 21 +0 139 → 140 +1
task-worker / session-row-facts 87 → 86 -1 575 → 565 -10
task-worker / session-runtime-target 33 → 33 +0 135 → 134 -1
task-worker / session-target-inventory 132 → 132 +0 339 → 341 +2
task-worker / skillLibrary.read 28 → 28 +0 138 → 139 +1
task-worker / transcript-anchors 13 → 13 +0 174 → 172 -2
task-worker / userProfiles.authority.resolve 3 → 3 +0 28 → 29 +1
task-worker / workerPlacements.changeSnapshot 6 → 6 +0 13 → 12 -1
task-worker / workers.placementProjection 97 → 98 +1 238 → 240 +2
task-worker / workers.placementRecoveryCandidates 4 → 4 +0 32 → 33 +1
unassigned / unassigned 0 → 0 +0 2726 → 2724 -2

In particular, session.entry.patch.commit has 168 → 168 requests but +34 SQL. It is included, not offset out of the attribution: all positive native stacks in the whole pair (86 groups / +127 gross executions) are in unchanged source. The two request-positive operation families, session maintenance and placement projection, also have unchanged sender stacks. Equal request counts alone are not treated as proof of equal SQL.

The Memory domain breakdown is consistent with less complete work: execute 125 → 118 requests / 864 → 812 SQL, bind 91 → 88 / 521 → 503, close 91 → 88 / 63 → 60; publication remains 93 requests with 1,601 → 1,597 SQL. source.refresh rises 1 → 2 / 6 → 12, while source.replace falls 8 → 7 / 234 → 208 and cache.write falls 9 → 8 / 146 → 121. Domain sender stacks originate in unchanged Memory database-context source. Full subtype and caller tables are retained in the JSON.

The two formally unmatched startup requests on each side are workerEnvironments.snapshot and userProfiles.catalog: their send target was not yet known to the observer, but process/task/type identifies one receive and one completion in timestamp order. Formal unmatched counters remain unchanged.

Counts above are successful statements. Connect admission observed one handled BEGIN IMMEDIATE: database is locked refusal in baseline runs [1,1,1] and candidate runs [0,1,1]; the extra census pair had one on each side. No workload failed. These original diagnostics are retained.

Commands, source-qualified receipts, review, and cost
Proof Source Result / command wall
pnpm test for history-worker, conversation-control, native-policy incognito, and SDK async files, --maxWorkers=1 5f79d6ea12ec 4 files, 31 tests passed; 66.294 s
Registry actor/delegation/initializer/sandbox regression file, --maxWorkers=1 873a4b3325c1 7 tests passed; 36.673 s
History/binding regression files, --maxWorkers=1 ea673e10e24d 54 tests passed; 51.333 s
Transcript adapter sibling files, --maxWorkers=1 ea673e10e24d 3 tests passed; 30.236 s
Consolidated dynamic-tool prepared-policy cases, --maxWorkers=1 -t ... 029e8c7900e7 2 passed, 80 filtered cases skipped; 35.761 s. The other 80 retain their earlier passing receipt.
pnpm tsgo:core:test ea673e10e24d All 27 shards passed; 1,465.561 s. Changed messaging/agents-session graphs replayed at final executable source: 20.971 s.
pnpm tsgo:core, tsgo:extensions, tsgo:extensions:test 5f79d6ea12ec Passed; 13.868 / 21.866 / 32.812 s
Native changed-plan commands 029e8c7900e7 plus final corrections All 44 obligations accounted for. Original: 35 executed passes, 6 failures, 3 reused type receipts; all six failures repaired and replayed.
SDK exports/surface/import boundary/subpaths; pnpm plugin-sdk:api:diff --base 2f532dfc6942ea28a820160a23f0da3b7d039555 --head HEAD Preserved checks plus API diff at 5f79d6ea12ec Passed. API diff 364.619 s; no entrypoint additions/removals; 155 affected reachable exports; digest 8925d16a.
pnpm build including lazy CLI bootstrap and compiled SDK exports dac8648cb8d5 Passed; 363.373 s. Subsequent changes preserve the proved import graph.
node --import ./scripts/tsx.mjs scripts/build-all.mts sourcePerformance Baseline / 5f79d6ea12ec Passed; 66.364 / 69.550 s
pnpm db:worker-inventory:check and canonical regeneration Baseline / final executable source Baseline passed; candidate initially had three stale line references. Generated refresh passed. Both: 616 files, 2,417 calls; T1 707, T2 381, T3 243, worker 1,086. No baseline expansion or T1 retirement.

Three isolated autoreview rounds completed. The final sandbox-policy predicate finding was accepted and repaired with a controlled-await regression. Subsequent source tracing repaired physical sandbox selection, retained-actor rollback root capture, premature private-binding publication on refused resume, and marker-only by-ID routing; their targeted replays pass. No fourth P2 round was run under the campaign convergence rule.

The sandbox old-code negative replay fails at the intended physical-source assertion. The earlier SDK execNode negative also reached its intended failing assertion, but its outer process receipt was interrupted; it is qualified negative evidence, not a completed command pass. Final positive SDK proof passed.

The six changed-plan failures were fixture typing, private core test imports, exported-wrapper shadowing, core/extension lint, and a stale assertion allowance. Repairs preserve behavioral assertions. The allowance update was canonically generated and shrink-only; timeout-race allowances were not expanded.

Recorded remote command wall, including failures and corrections: 7,242.107 s. This includes SQL builds/measurement/classification (703.075 s) and inventory generation/verification (7.909 s), and excludes provisioning, queue waits, downloads and outer wrapper overhead. Known GitHub Actions cost: 942 job-seconds for an expired initial Testbox that ran no lane tests; later queued admission billing and dollar cost are unavailable. Remote wall time is not GitHub CI billing.

Heavy proof used the same task-owned Hetzner lease after Testbox admission timeout and AWS vCPU-cap refusal. An initial SQL attempt stopped before measurement because /tmp was a small memory filesystem; fresh disk-backed paths passed the unchanged free-space floor. No local Docker was used. Raw SQL was compacted after exact conservation checks; no evidence archive was retained.

Measured scope, inactive audit closure, and release-note context

Measured against the integrated baseline: production 54 files, +2,134/−1,208 (3,342 changed; +926 net); tests/support 23 files, +1,242/−332; docs 3 files, +33/−3; tooling/config 2 files, +4/−2. The private SQLite testing export is test support. Growth covers the complete plugin/Codex caller migration and retained-source guards, including owner-module moves.

PM2, PM3, PM4 close for the explicit actor consumer contracts only: plugin/delegated ownership; runtime admission and retained initializer lifecycle; Codex commands, policy, bindings, guards/monitors, and marker/by-ID history. P12 still owns production selection, fresh actor-creation composition, and native deletion. Shared P01/P02/P04 contracts are not charged again. No incognito T1 retirement is claimed.

Release-note context: internal preparation for worker-owned incognito session consumers, without production activation. Codex policy preparation preserves explicit execution host/node settings and reports storage refusal instead of falling back to defaults.

Landing follow-up

The landing fixes preserve the lazy registration import boundary, supply the canonical-descendant fixture with the prepared native execution policy, align host-rollover diagnostics, and wait for asynchronous admission before advancing fake timers. Assertions about no writes, no resume, no attachment publication, and diagnostic privacy remain intact. Fix-only P0/P1 reviews found no actionable issues.

Main was integrated through merge commits, with no rebase. The final conflict resolution retains both P07 and P08 documentation and regenerates the worker inventory from the merged source. Formatting and whitespace checks passed. Prepared head: af4bdf311b2975819d05ff50bb216acafa337cf5.

The published-driver update cell passed on 8420438826e8bfb5ec11e6ba6a45211e618b507f, reused across the subsequent documentation-only conflict resolution: published 2026.9.9 to the candidate, /readyz 200, installed version verified, and durable plus incognito sessions survived. The disposable Linux runner needed Docker buildx installed before the successful run; no product workaround or budget change was used.

Final-head CI retains three independently inherited failing test jobs: four session-send cases, one ordinary-directory placement case, and three Agents API retry-history cases. The session-send failures also occur in main CI; placement and Agents API failures were independently reproduced on main. All 11 named failure input paths are identical in the original qualified baseline, the current tested baseline a2d159cadcaf384fc6f7f4d84a7dc785e0fa401d, and the tested PR merge. These failures remain failures and qualify only for the explicitly authorized inherited-CI admin exception; security and review gates are not waived.

@clawsweeper

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

@github-actions

github-actions Bot commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor

⚠️ Security sensitive changes

This maintainer PR changes sensitive security components.

No secops approval is required. This comment is informational because the PR author has Maintain or Admin access.

  • Current SHA: af4bdf311b2975819d05ff50bb216acafa337cf5
  • Maintainer: @steipete
  • Repository role: admin

These security sensitive changes were made:

  • src/agents/sandbox/workspace-authority.ts: Controls credential persistence, secret resolution, or redaction. Check storage permissions, credential scope, and exposure in logs or responses.

Carefully review these changes before merging.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation agents Agent runtime and tooling extensions: codex plugin: file-transfer size: XL labels Oct 10, 2026
@steipete

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper

clawsweeper Bot commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge.

What this changes

This PR retains selected session ownership and execution policy across asynchronous plugin and Codex operations while leaving production actor routing inactive.

Example: A private session selects execHost=node and execNode=synthetic-node while configuration defaults to gateway execution.

  • Before: Policy lookup can consult the catalog identity and select gateway defaults.
  • After: Preparation uses the selected private session and rejects stale execution after its policy or generation changes.

Review scores

Measure Result What it means
Overall readiness 🧂 unranked krab (1/6) The inspected implementation resolves the earlier findings, but the supplied evidence does not clear the authority and existing-state compatibility gates.
Proof confidence 🧂 unranked krab (1/6) Real behavior proof is necessary before merge. See Before merge.
Patch quality 🦐 gold shrimp (3/6) Security review found an item that needs attention.

Product

Kind: Refactor · Worth it: Yes · Fix scope: Complete
User problem: Private-session operations must keep their selected physical owner and execution policy throughout asynchronous preparation.
Reason: The maintainer-directed change completes a coherent preparation stage with existing owners and explicitly defers production activation.

Merge readiness

⛔ Blocked before merge - 3 items remain

Keep this maintainer-directed PR open: it provides distinct incognito consumer preparation, and inspection found no new actionable code defect.

Priority: P2
Reviewed head: af4bdf311b2975819d05ff50bb216acafa337cf5

Before merge

  • Add real behavior proof - Authority-chain proof required: provide redacted output through the production Codex request client showing an allowed native request and rejection before transport I/O after the selected session is replaced or its execution policy is revoked during awaited preparation. Actor regressions use mocked clients, and the SQL workload does not demonstrate this boundary. Redact credentials, IPs, phone numbers, and non-public endpoints. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
  • Resolve security review attention item - No concrete bypass was established; final-effect authority verification remains governed by the proof gate.
  • Add data-model compatibility proof - The review found that existing stored data may not work after upgrade. Show that existing data still loads and works with this change.

Findings

None.

Tests

  • Missing end-to-end proof: The supplied evidence lacks a real-client final-effect authority trace and a completed published-driver upgrade run; baseline-negative evidence is recorded only for selected regressions.
Agent review details

How this fits together

Plugin runtime adapters and the Codex harness consume session metadata, prepare policy, and carry live guards to storage mutations, tool execution, and native requests.

flowchart TD
  A[Plugin or Codex operation] --> B[Canonical session selection]
  B --> C[Native session owner]
  B --> D[Explicit incognito actor]
  C --> E[Prepared facts and live guards]
  D --> E
  E --> F[Asynchronous preparation]
  F --> G[Guarded storage or transport effect]
Loading

Technical review

Best possible solution:

Complete the inactive consumer preparation through the existing session, lifecycle, and transport owners.

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

This is a staged refactor; source confirms the selected-session preparation paths, but this read-only review ran no target code.

Is this the best way to solve the issue?

Extending canonical session preparation and carrying synchronous guards to effects fits the ownership model while preserving the explicitly inactive production cutover.

AGENTS.md: found and applied where relevant.

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

Provenance checked

Testing

Proof path: in-process harness.

Security

Needs attention: No concrete bypass was established; final-effect authority verification remains governed by the proof gate.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit 6e00816 adds extensions/codex/src/app-server/native-execution-policy.ts:76 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 6e008165e1e8; files: extensions/codex/src/app-server/native-execution-policy.ts)
  • Josh Avant: Raw commit e0405ec adds extensions/codex/src/app-server/native-execution-policy.ts:57 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: medium; commits: e0405ecc9bd6; files: extensions/codex/src/app-server/native-execution-policy.ts)

PR surface

PR surface statistics unavailable: the file list is incomplete.

Labels

Label changes:

No label changes.

Label justifications:

  • P2: This is useful internal preparation with limited immediate impact because production actor acquisition remains inactive.
  • merge-risk: 🚨 compatibility: The SDK preparation contract and serialized conversation bindings change; existing-state compatibility remains subject to the upgrade evidence gate.
  • merge-risk: 🚨 security-boundary: Retained session authority governs native execution and plugin-owned effects, requiring verification at the final transport boundary.
  • rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🧂 unranked krab and patch quality is 🦐 gold shrimp.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Rank-up moves

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

  • Add final-effect proof for an allowed native request and rejection before transport I/O after session replacement or execution-policy revocation.
  • Complete the published-driver upgrade scenario with settings, sessions, and existing conversation bindings intact, including bindings without the new optional fields.

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 need explicit maintainer commands such as @clawsweeper autofix or @clawsweeper automerge.

History

Review history (4 earlier review cycles)
  • reviewed 2026-10-10T10:51:26.262Z sha e48eb48 :: needs real behavior proof before merge. :: [P2] Migrate the sibling native-thread fixtures to canonical storage
  • reviewed 2026-10-10T10:58:58.519Z sha e48eb48 :: needs real behavior proof before merge. :: [P2] Migrate the sibling native-thread fixtures to canonical storage | [P2] Load session-binding preparation only when the tool executes | [P2] Prepare execution policy in the canonical-fork fixture
  • reviewed 2026-10-10T11:50:40.272Z sha 9f08397 :: needs real behavior proof before merge. :: [P2] Load session-binding preparation only when the tool executes | [P2] Prepare execution policy in the canonical-fork fixture | [P2] Synchronize request fixtures with asynchronous policy preparation
  • reviewed 2026-10-10T12:21:03.131Z sha 8420438 :: needs real behavior proof before merge. :: none

Reviewed October 10, 2026, 9:12 AM ET / 13:12 UTC (Revision 5).

Update rollover diagnostics and synchronize fake-timer tests with asynchronous admission. Prepare native policy in canonical-fork fixtures and defer session-runtime loading until native thread execution.
# Conflicts:
#	test/vitest/vitest.extension-database-workers-paths.mjs
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. labels Oct 10, 2026
@clawsweeper clawsweeper Bot added merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Oct 10, 2026
Resolve the P07/P08 documentation overlap by retaining both consumer sections and regenerate the worker inventory from the merged source. No conflict resolution changes executable behavior.
@steipete
steipete merged commit 6af860c into main Oct 10, 2026
189 of 194 checks passed
@steipete
steipete deleted the dbasync/incogp07 branch October 10, 2026 13:22
@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 11, 2026
…law#168398)

* refactor(plugins): prepare bound incognito admission and Codex policy

Inactive P07 preparation: retain explicit actor ownership, exact session policy, physical history sources, and synchronous effect guards. Production incognito acquisition and fresh Gateway creation remain host-owned until P12. No schema, retention, permission, or update migration change.

* fix(plugins): retain actor rollback and Codex lifecycle authority

* fix(codex): retain selected sandbox policy through admission

* fix(plugins): retain sandbox authority through workspace preparation

* fix: retain actor storage root during initializer rollback

* fix: preserve private bindings through refused Codex resumes

* test: consolidate prepared native tool policy cases

* test: retain session history fixture message contract

* fix: preserve SDK boundaries in incognito preparation

* refactor: keep prepared authority callbacks explicit

* chore: shrink retired incognito assertion allowances

* docs: refresh incognito worker inventory locations

* fix(plugins): repair session preparation fixtures and registry boundaries

* fix(codex): align admission fixtures and preserve lazy registration

Update rollover diagnostics and synchronize fake-timer tests with asynchronous admission. Prepare native policy in canonical-fork fixtures and defer session-runtime loading until native thread execution.

* test(codex): align side-question policy rejection
scribe-dandelion-cult added a commit to karmaterminal/openclaw that referenced this pull request Oct 14, 2026
… (step 20)

Conflicts:
- test/helpers/source-import-closure.ts: keep our dependencyCache, add
  upstream's rawImportPattern.
- docs/reference/database-schemas/worker-access-inventory.md: regenerated.

Repairs needed because of the absorbed changes:
- reduceSessionEntryPatch gained an existingEntry argument; the work-span
  store mocks pass the in-memory row as both the write base and the
  existing row (16/16).
- openclaw#168398 lets an explicit incognito store path name its own state root.
  Our lazy lifecycle boundary (68984b9) pinned ambient OPENCLAW_STATE_DIR
  onto every call, which retargeted that path and made a failed incognito
  initializer's rollback throw. Explicit incognito sentinels now pass
  through unchanged (registry.runtime-incognito 7/7; it fails 6/7 without
  this).

Sweep, 588 files: remaining reds match plain upstream at 27193f8
(memory-core reindex-backoff 2/6, dispatch-from-config.tts-stream 1/12,
cli-json-stdout.models e2e 2/8); heartbeat-runner.live has no runnable
tests offline. tsgo core/extensions/core-test/extensions-test 0; SDK
surface check 0.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Jhynq2GVpzuVQQieebEubg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling docs Improvements or additions to documentation extensions: codex merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. P2 Normal backlog priority with limited blast radius. plugin: file-transfer rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. security-sensitive-changed size: XL status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant