[{"url":"https://api.github.com/repos/openclaw/openclaw/issues/196394","repository_url":"https://api.github.com/repos/openclaw/openclaw","labels_url":"https://api.github.com/repos/openclaw/openclaw/issues/196394/labels{/name}","comments_url":"https://api.github.com/repos/openclaw/openclaw/issues/196394/comments","events_url":"https://api.github.com/repos/openclaw/openclaw/issues/196394/events","html_url":"https://github.com/openclaw/openclaw/pull/196394","id":6298973789,"node_id":"PR_kwDOQb6kR88AAAABOAOq_Q","number":196394,"title":"fix(state): repair minted private stores after an fsGroup remount","user":{"login":"shuisadev","id":350713691,"node_id":"U_kgDOFOd3Ww","avatar_url":"https://avatars.githubusercontent.com/u/350713691?v=4","gravatar_id":"","url":"https://api.github.com/users/shuisadev","html_url":"https://github.com/shuisadev","followers_url":"https://api.github.com/users/shuisadev/followers","following_url":"https://api.github.com/users/shuisadev/following{/other_user}","gists_url":"https://api.github.com/users/shuisadev/gists{/gist_id}","starred_url":"https://api.github.com/users/shuisadev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shuisadev/subscriptions","organizations_url":"https://api.github.com/users/shuisadev/orgs","repos_url":"https://api.github.com/users/shuisadev/repos","events_url":"https://api.github.com/users/shuisadev/events{/privacy}","received_events_url":"https://api.github.com/users/shuisadev/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[{"id":9706244975,"node_id":"LA_kwDOQb6kR88AAAACQomLbw","url":"https://api.github.com/repos/openclaw/openclaw/labels/docs","name":"docs","color":"0A3069","default":false,"description":"Improvements or additions to documentation","archived_at":null,"archived_by":null},{"id":10190106720,"node_id":"LA_kwDOQb6kR88AAAACX2CwYA","url":"https://api.github.com/repos/openclaw/openclaw/labels/size:%20M","name":"size: M","color":"8C959F","default":false,"description":null,"archived_at":null,"archived_by":null},{"id":10970449912,"node_id":"LA_kwDOQb6kR88AAAACjePH-A","url":"https://api.github.com/repos/openclaw/openclaw/labels/P1","name":"P1","color":"D93F0B","default":false,"description":"High-priority user-facing bug, regression, or broken workflow.","archived_at":null,"archived_by":null},{"id":10980703344,"node_id":"LA_kwDOQb6kR88AAAACjoA8cA","url":"https://api.github.com/repos/openclaw/openclaw/labels/rating:%20%F0%9F%A6%AA%20silver%20shellfish","name":"rating: 🦪 silver shellfish","color":"7A828E","default":false,"description":"Thin PR readiness signal; proof, validation, or implementation needs work.","archived_at":null,"archived_by":null},{"id":10982444316,"node_id":"LA_kwDOQb6kR88AAAACjprNHA","url":"https://api.github.com/repos/openclaw/openclaw/labels/status:%20%F0%9F%93%A3%20needs%20proof","name":"status: 📣 needs proof","color":"D93F0B","default":false,"description":"The PR needs real behavior proof before ClawSweeper can clear the contributor ask.","archived_at":null,"archived_by":null},{"id":12711148517,"node_id":"LA_kwDOQb6kR88AAAAC9aS75Q","url":"https://api.github.com/repos/openclaw/openclaw/labels/clawsweeper:intake:bug","name":"clawsweeper:intake:bug","color":"c5def5","default":false,"description":"Preliminary submission classification; full source review pending.","archived_at":null,"archived_by":null},{"id":12711148710,"node_id":"LA_kwDOQb6kR88AAAAC9aS8pg","url":"https://api.github.com/repos/openclaw/openclaw/labels/clawsweeper:intake:needs-environment","name":"clawsweeper:intake:needs-environment","color":"c5def5","default":false,"description":"Preliminary submission classification; full source review pending.","archived_at":null,"archived_by":null},{"id":12711148957,"node_id":"LA_kwDOQb6kR88AAAAC9aS9nQ","url":"https://api.github.com/repos/openclaw/openclaw/labels/clawsweeper:intake:needs-repro","name":"clawsweeper:intake:needs-repro","color":"c5def5","default":false,"description":"Preliminary submission classification; full source review pending.","archived_at":null,"archived_by":null}],"state":"open","locked":false,"assignees":[],"milestone":null,"comments":8,"created_at":"2026-11-10T02:28:46Z","updated_at":"2026-11-10T06:34:46Z","closed_at":null,"assignee":null,"author_association":"CONTRIBUTOR","issue_field_values":[],"type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https://api.github.com/repos/openclaw/openclaw/pulls/196394","html_url":"https://github.com/openclaw/openclaw/pull/196394","diff_url":"https://github.com/openclaw/openclaw/pull/196394.diff","patch_url":"https://github.com/openclaw/openclaw/pull/196394.patch","merged_at":null},"body":"## What Problem This Solves\n\nAfter a Kubernetes PVC remount that widens the state volume with `fsGroup`, `openclaw gateway run` starts and the SQLite credential store is repaired, but a managed GitHub identity still fails `git push` with \"Reconnect or change GitHub Identity\", and `codex.app-server` still reports `Worker Codex configuration directory is unsafe` — reconnecting and re-enrolling both appear to work and then fail again on the next start.\n\nIn plain language: startup repairs a fixed list of private stores, and the two stores whose names are generated at runtime — the managed GitHub identity profile and the Codex worker's runtime bundle — were never on that list, so after the volume is remounted they stay group-readable and their owners refuse to read them.\n\n- Problem: `restorePrivateStateStoreModes` enumerated `.update-captures`, `client/credentials.sqlite` and `control/services.sqlite` only. A managed GitHub identity generation lives at `<stateDir>/credentials/github/<scope>/<profileId>` and the enrolled worker's bundle at `<stateDir>/codex-runtime`; neither was restored, so both kept the `2770`/`0660` the remount gave them.\n- Solution: enumerate both families through the owners that mint their names — `credentials/github/system`, `credentials/github/personal` and every hashed agent key below `credentials/github/agents`, then the generations whose name the profile owner still accepts (`isManagedGitHubProfileId`); and `<stateDir>/codex-runtime`. Each minted store is restored as a whole store: its directory, then every regular file directly inside it.\n\n## Why This Change Was Made\n\nThe repair keeps the property that made it safe to run before admission: every mutation is bound to an open descriptor, so an alias introduced at or above the target after admission cannot receive the change. Descriptor admission refuses a symlink at the component it opens (`O_NOFOLLOW`), not at the components above it, so the new chain check names each component below the state root and stops the minted-name search when `credentials` or `credentials/github` is itself a symlink. The Codex bundle is a direct child of the state root, so its own descriptor admission already refuses an alias.\n\nNo new contract is invented: `isManagedGitHubProfileId` is the profile owner's own id pattern, `resolveManagedGitHubProfileRoot` is its own layout, and `codex-runtime` is the directory name `readWorkerCodexRuntime` reads.\n\n## User Impact\n\nA Kubernetes or Podman installation whose PVC was remounted keeps its managed GitHub identity and its enrolled Codex worker: `git push` through the identity works again without reconnecting, and `codex.app-server` is available again without re-enrolling the worker. Installations that never hit a remount see no change.\n\n## Evidence\n\nAll runs use the shipped `openclaw doctor --non-interactive --repair` entry, which invokes `ensureOpenClawStatePermissions` through `doctor-config-preflight.ts:100` and `gateway-lock.ts:531` (gateway startup). Fixture: isolated `OPENCLAW_STATE_DIR` with SQLite store, one managed GitHub identity generation per scope, and the Codex runtime bundle, widened exactly as kubelet applies on remount (`2770` dirs, `0660` files).\n\n**Revision anchor:** head `87840c9a`; base = `git show origin/main:src/state/openclaw-state-db-permissions.ts` (byte-identical to `568d89f3`, reviewed head of R1). The rebase from `c2a89ef0096` left source, tests, and docs byte-identical.\n\n### Shipped CLI proof — doctor --repair\n\nBefore/after the CLI run, same fixture, widened modes applied before each run:\n\n| Store | base (pre-fix) | head (this PR) |\n|---|---|---|\n| `client/credentials.sqlite` (control) | `0700`/`0660` — repaired | `0700`/`0660` — repaired |\n| `credentials/github/system/<profileId>` | `2770`/`0660` — **NOT repaired** | `0700`/`0600` — repaired |\n| `codex-runtime` bundle | `2770`/`0660` — **NOT repaired** | `0700`/`0600` — repaired |\n\n**base (pre-fix, byte-identical to origin/main):**\n\n```\n=== BEFORE (after remount broaden) ===\n  creds.sqlite dir: 2770  file: 660\n  github profile dir: 2770  hosts.yml: 660\n  codex-runtime dir: 2770  runtime.json: 660\n=== RUN: openclaw doctor --non-interactive --repair\n  Doctor: startup → state database repair → database migrations\n=== AFTER (CLI ran) ===\n  creds.sqlite dir: 700  file: 660\n  github profile dir: 2770  hosts.yml: 660   ← NOT repaired\n  codex-runtime dir: 2770  runtime.json: 660   ← NOT repaired\nVERDICT: FAIL (GitHub/Codex still refused)\n```\n\n**head `87840c9a` (this PR):**\n\n```\n=== BEFORE (after remount broaden) ===\n  creds.sqlite dir: 2770  file: 660\n  github profile dir: 2770  hosts.yml: 660\n  codex-runtime dir: 2770  runtime.json: 660\n=== RUN: openclaw doctor --non-interactive --repair\n  Doctor: startup → state database repair → database migrations\n=== AFTER (CLI ran) ===\n  creds.sqlite dir: 700  file: 660\n  github profile dir: 700  hosts.yml: 600    ← REPAIRED\n  codex-runtime dir: 700  runtime.json: 600   ← REPAIRED\nVERDICT: PASS (both stores admitted)\n```\n\n### Symlinked ancestor refusal (R1 finding, fixed)\n\n| Scenario | head before R1 fix `19305539` | head `87840c9a` |\n|---|---|---|\n| `credentials` → external tree holding `github/system/<id>` | external tree chmodded `0700`/`0600` (bug) | external tree untouched; real stores still repaired |\n| `credentials/github` → external tree holding `system/<id>` | same bug | same fix |\n\n### Regression tests\n\nExtended `src/state/openclaw-state-db-permissions.test.ts` in place — no new test file, no new allocations beyond the existing 98-line allocation for this change.\n\n- **RED on base `5d89656a2bd`** (reverted fix, assertions kept): `expected 1528 to be 448` (`0o2770` vs `0o700`); `1 failed | 11 passed`\n- **GREEN on head `87840c9a`**: `14 passed (14)` — all existing + new cases pass\n- `Test lines OK: 6611875; ceiling: 6611875; slack: 0.` via `config/test-lines-allocations/fsgroup-remount-minted-stores.txt` (98 lines net)\n","closed_by":null,"reactions":{"url":"https://api.github.com/repos/openclaw/openclaw/issues/196394/reactions","total_count":1,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":1},"timeline_url":"https://api.github.com/repos/openclaw/openclaw/issues/196394/timeline","performed_via_github_app":null,"state_reason":null},{"url":"https://api.github.com/repos/openclaw/openclaw/issues/196482","repository_url":"https://api.github.com/repos/openclaw/openclaw","labels_url":"https://api.github.com/repos/openclaw/openclaw/issues/196482/labels{/name}","comments_url":"https://api.github.com/repos/openclaw/openclaw/issues/196482/comments","events_url":"https://api.github.com/repos/openclaw/openclaw/issues/196482/events","html_url":"https://github.com/openclaw/openclaw/pull/196482","id":6301456115,"node_id":"PR_kwDOQb6kR88AAAABOCMC1g","number":196482,"title":"perf(ui): shorten cold chat tasks while preserving restored frames","user":{"login":"steipete","id":58493,"node_id":"MDQ6VXNlcjU4NDkz","avatar_url":"https://avatars.githubusercontent.com/u/58493?v=4","gravatar_id":"","url":"https://api.github.com/users/steipete","html_url":"https://github.com/steipete","followers_url":"https://api.github.com/users/steipete/followers","following_url":"https://api.github.com/users/steipete/following{/other_user}","gists_url":"https://api.github.com/users/steipete/gists{/gist_id}","starred_url":"https://api.github.com/users/steipete/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/steipete/subscriptions","organizations_url":"https://api.github.com/users/steipete/orgs","repos_url":"https://api.github.com/users/steipete/repos","events_url":"https://api.github.com/users/steipete/events{/privacy}","received_events_url":"https://api.github.com/users/steipete/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[{"id":10064298757,"node_id":"LA_kwDOQb6kR88AAAACV-EDBQ","url":"https://api.github.com/repos/openclaw/openclaw/labels/app:%20web-ui","name":"app: web-ui","color":"6E7781","default":false,"description":"App: web-ui","archived_at":null,"archived_by":null},{"id":10190106720,"node_id":"LA_kwDOQb6kR88AAAACX2CwYA","url":"https://api.github.com/repos/openclaw/openclaw/labels/size:%20M","name":"size: M","color":"8C959F","default":false,"description":null,"archived_at":null,"archived_by":null},{"id":12323590438,"node_id":"LA_kwDOQb6kR88AAAAC3osRJg","url":"https://api.github.com/repos/openclaw/openclaw/labels/ci:full","name":"ci:full","color":"1D76DB","default":false,"description":"Keep ordinary native-locale CI selection on the next PR run.","archived_at":null,"archived_by":null}],"state":"open","locked":false,"assignees":[],"milestone":null,"comments":3,"created_at":"2026-11-10T06:16:13Z","updated_at":"2026-11-10T06:34:53Z","closed_at":null,"assignee":null,"author_association":"CONTRIBUTOR","issue_field_values":[],"type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https://api.github.com/repos/openclaw/openclaw/pulls/196482","html_url":"https://github.com/openclaw/openclaw/pull/196482","diff_url":"https://github.com/openclaw/openclaw/pull/196482.diff","patch_url":"https://github.com/openclaw/openclaw/pull/196482.patch","merged_at":null},"body":"## What Problem This Solves\n\nCold chat opens combine pane setup, transcript preparation and DOM construction into long main-thread tasks, delaying input even while the page already shows a loading frame.\n\n## User Impact\n\nCold-started Chromium pages become responsive sooner without changing their first-frame sequence or final transcript. Warm/restored pages preserve #196385 scheduling, including expired holds and unavailable snapshots. Firefox retains its current scheduling.\n\n## Why This Change Was Made\n\nReuse the existing native task continuation between cold pane preparation and construction, then between expensive first transcript preparation and rendering. The second boundary applies only when preparation exceeds 15 ms. No measurement or state reset was removed; this splits required work instead of claiming a total-work reduction.\n\nEligibility is captured once before a pane can clear the warm-frame marker. A warm-started document deliberately retains the base scheduling for later navigation too; the optimization is narrower than introducing another warm-state owner.\n\n## Evidence\n\nAcceptance: 20 rotated base/head/base triplets for cold boot and a 2,000-message open in Chromium, desktop/mobile at 1×/4×. Long Task API page-wide maximum must improve at least 5% beyond A/A, with readiness no worse beyond the band. Desktop cold shell construction remains outside scope. Native first-frame filmstrips, full message digests and settled pixels must match base. Firefox checks readiness and correctness.\n\nFrozen baseline `082c3791791b18b9f14c104a83322297f45499e7`; candidate `584a491283cd2ab387f94662fb8b4a10150211d8`. Production bundles, fresh browser per observation, synthetic Gateway/400- and 2,000-message fixtures; no provider or real-Gateway latency claim. Chromium uses the Playwright headless shell on this host.\n\n### Chromium\n\n| Cell | Longest task B→H, median/p95 ms | Paired / A/A | Readiness B→H, median/p95 ms | Paired / A/A |\n|---|---:|---:|---:|---:|\n| desktop-cold-boot 1x | 80/84 → 78/82 | -1.25% / 4.91% | 360.8/380.7 → 345.6/359.9 | -2.94% / 5.16% |\n| desktop-large-transcript-open 1x | 88.5/93 → 79.5/83 | -10.09% / 5.10% | 406.5/418.7 → 393.5/410.5 | -1.77% / 4.17% |\n| mobile-cold-boot 1x | 90/96 → 79/83 | -13.01% / 5.10% | 341.9/362.3 → 343.9/360.1 | -0.28% / 2.97% |\n| mobile-large-transcript-open 1x | 99/107 → 78/83 | -22.22% / 2.43% | 384.8/402.5 → 372.7/394.2 | -2.57% / 2.39% |\n| desktop-cold-boot 4x | 385/424 → 373/400 | -2.20% / 5.57% | 1538.2/1645.6 → 1491.4/1587.2 | -3.41% / 3.01% |\n| desktop-large-transcript-open 4x | 431/462 → 365.5/389 | -15.24% / 11.31% | 1717.5/1796.6 → 1734.1/1783.5 | +0.81% / 5.11% |\n| mobile-cold-boot 4x | 473.5/505 → 362/387 | -21.43% / 5.67% | 1524.8/1607.9 → 1478.0/1538.5 | -3.12% / 4.67% |\n| mobile-large-transcript-open 4x | 473.5/532 → 366.5/394 | -23.40% / 6.28% | 1665.8/1793.9 → 1672.3/1763.7 | +1.66% / 4.94% |\n\n480 observations, zero behavior failures. The six targeted cells improve beyond A/A with readiness within the band; desktop cold boot remains the unchanged shell floor. Renderer total CPU stays within A/A (paired −2.64% to +0.85% at 1×, −1.99% to −0.04% at 4×). Script-only time grows about 8–16% as work is partitioned; this is a responsiveness trade, not a total-work reduction. Host load: 1× median 7.39, range 5.80–9.00; 4× median 5.72, range 4.69–7.53.\n\n### Firefox readiness\n\n| Firefox cell | Readiness B→H, median/p95 ms | Paired / A/A | Triplets |\n|---|---:|---:|---:|\n| desktop-cold-boot | 436.0/602.0 → 435.5/442.0 | -1.37% / 3.15% | 10 |\n| desktop-large-transcript-open | 455.0/486.0 → 467.5/491.0 | +1.55% / 1.66% | 10 |\n| desktop-warm-boot | 368.0/410.0 → 370.5/400.0 | +0.89% / 0.68% | 10 |\n| mobile-cold-boot | 440.5/456.0 → 440.5/453.0 | +0.51% / 3.42% | 10 |\n| mobile-large-transcript-open | 483.0/500.0 → 482.5/505.0 | -0.05% / 2.07% | 10 |\n| mobile-warm-boot | 361.5/394.0 → 369.0/409.0 | +0.27% / 3.68% | 20 |\n\n210 observations, zero behavior failures. Ten additional mobile-warm triplets resolve the initial single 446 ms tail sample: final 20-triplet p95 is 394 ms base / 409 ms head / 402 ms control, within the 5% band. All six paired readiness medians hold within the band. Firefox Long Task API and CPU measurements are unavailable, not zero.\n\nAll 12 required native filmstrips preserve the base sequence. Cold paths show the existing route skeleton, then the normal pane with a conversation placeholder, then the transcript. Warm reload retains its held/empty/restored sequence and adds no loading skeleton. Injected snapshot-unavailable warm reload also matches base in both 4× viewports. All 12 final Chromium captures have zero pixel differences, with equal full message digests, row text/geometry and composer state/geometry. Firefox content/geometry checks pass; its desktop large screenshot has a small raster/shimmer difference.\n\nTypecheck and all 13 touched bridge tests pass. Targeted lint passes with warnings for intentional setup-time decisions and existing reactive reads. Independent review has no actionable P0–P2 findings. Production Knip has the same three unlisted-binary findings on the exact base and head (`taskkill.exe`, two `btrfs` references). WebKit launch smoke times out on this host; no WebKit correctness claim.\n\n| Compressed surface | Base | Head | Delta |\n|---|---:|---:|---:|\n| Startup JS | 91,884 B | 91,884 B | 0 B |\n| Startup CSS | 38,628 B | 38,628 B | 0 B |\n| Chat JS | 1,299,469 B | 1,299,955 B | +486 B |\n| New Session JS | 803,319 B | 803,318 B | −1 B |\n\nStartup has three JS requests and one CSS request; request counts are unchanged. Chat growth is 36 B above the coordinator-accepted rough 450 B trade. No size ceiling changed. The strict size check fails the over-cap growth check; that increase belongs to this PR and is not described as inherited.\n\nProduction LOC: 988→1,046 (+58); directly coupled test LOC: 352→384 (+32). Most of the patch moves the existing mount body under the construction boundary. Solid counts: effects 1→1, memos 20→20, signals 4→6, onSettled 10→12, cleanup 1→1; no new listeners, DOM queries or owner APIs.\n\n\n### Remaining task attribution\n\nFinal-head source-mapped traces are diagnostic (one observation/cell), separate from the untraced acceptance run. The largest task is now shell/startup construction: desktop cold 95.1 ms at 1× and 395.2 ms at 4×; mobile cold 85.5/357.7 ms. At 4×, cold pane preparation is a separate 219.7 ms desktop / 251.8 ms mobile task, followed by pane/composer DOM at 152.5/172.5 ms. Large-transcript preparation is separate again at 183.1/185.4 ms, below the 200 ms scaled target; pane DOM is 155.1/165.3 ms. Inclusive source unions overlap and are not summed.\n\nThe cold desktop shell task contains five Layout events (5.3 ms) and 17 UpdateLayoutTree events (23.3 ms) at 4×; the mobile shell has six Layout events (14.0 ms) and 18 UpdateLayoutTree events (24.0 ms). The dominant sampled application leaf is app-shell construction (64.0/56.3 ms). Details positioning (23.7 ms desktop) and composer reset (22.7 ms mobile) now occur in the later pane DOM task. No geometry call is claimed redundant or removed. Further splitting the shell is outside scope.\n\n### Filmstrips\n\nEach image shows base on top and head below, with native frame timestamps. All content is synthetic.\n\n![desktop cold-boot 1x: base above, head below](https://github.com/user-attachments/assets/de434966-6479-463d-8e58-a02fccdf6ffc)\n\n![desktop large-transcript-open 1x: base above, head below](https://github.com/user-attachments/assets/d816f227-b5b7-405e-be55-37ba35dc5c3c)\n\n![desktop warm-boot 1x: base above, head below](https://github.com/user-attachments/assets/332732cf-0bde-4535-a15d-ee0ce9af7230)\n\n![mobile cold-boot 1x: base above, head below](https://github.com/user-attachments/assets/29b71767-4757-4bd1-8353-92dbb2278ca1)\n\n![mobile large-transcript-open 1x: base above, head below](https://github.com/user-attachments/assets/89e46d18-dffb-46aa-845f-31ed2e8631ad)\n\n![mobile warm-boot 1x: base above, head below](https://github.com/user-attachments/assets/dee41118-5571-4a91-8285-0d832d211e70)\n\n![desktop cold-boot 4x: base above, head below](https://github.com/user-attachments/assets/c946b39f-1aa5-4df4-9387-59cbd221af98)\n\n![desktop large-transcript-open 4x: base above, head below](https://github.com/user-attachments/assets/22bee117-64f1-47a0-93bb-22c908a27b37)\n\n![desktop warm-boot 4x: base above, head below](https://github.com/user-attachments/assets/074a9caa-6bb4-438f-929f-6707a201b3ce)\n\n![mobile cold-boot 4x: base above, head below](https://github.com/user-attachments/assets/906a7930-f94b-43a4-908b-d43866aa7766)\n\n![mobile large-transcript-open 4x: base above, head below](https://github.com/user-attachments/assets/c25b7c9b-6021-4edd-a5a9-59d908512485)\n\n![mobile warm-boot 4x: base above, head below](https://github.com/user-attachments/assets/62ff01c5-1c30-46e4-b58f-7786285a82e8)\n\n![desktop unavailable warm snapshot at 4×: base above, head below](https://github.com/user-attachments/assets/0800d3ef-aaf4-4f0e-a733-7df9e761efc0)\n\n![mobile unavailable warm snapshot at 4×: base above, head below](https://github.com/user-attachments/assets/9d625c42-379c-4e61-9beb-333b8dffee99)\n\n\n<details>\n<summary>Reproduce the timing workload</summary>\n\nBuild the frozen base and candidate into separate production bundle directories on the same host, then run each CPU rate serially:\n\n```sh\nnode --import ./scripts/tsx.mjs scripts/bench-control-ui-engines.ts \\\n  --bundle-dir \"$BASE\" --compare-bundle-dir \"$HEAD\" --control-bundle-dir \"$BASE\" \\\n  --engines chromium --steps cold-boot,large-transcript-open --viewport both \\\n  --pairs 20 --fresh-browser --cpu-throttle 1 --output \"$OUT/1x\"\n# Repeat with --cpu-throttle 4 and a separate output directory.\n```\n\nFirefox uses the same bundle triplet with `--engines firefox --steps cold-boot,large-transcript-open,warm-boot --viewport both --pairs 10 --fresh-browser`; ten extra mobile warm triplets qualify its tail. Filmstrip and diagnostic runs are separate from these untraced samples.\n\n</details>\n","closed_by":null,"reactions":{"url":"https://api.github.com/repos/openclaw/openclaw/issues/196482/reactions","total_count":2,"+1":1,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":1},"timeline_url":"https://api.github.com/repos/openclaw/openclaw/issues/196482/timeline","performed_via_github_app":null,"state_reason":null},{"url":"https://api.github.com/repos/openclaw/openclaw/issues/196478","repository_url":"https://api.github.com/repos/openclaw/openclaw","labels_url":"https://api.github.com/repos/openclaw/openclaw/issues/196478/labels{/name}","comments_url":"https://api.github.com/repos/openclaw/openclaw/issues/196478/comments","events_url":"https://api.github.com/repos/openclaw/openclaw/issues/196478/events","html_url":"https://github.com/openclaw/openclaw/pull/196478","id":6301393357,"node_id":"PR_kwDOQb6kR88AAAABOCI2Sg","number":196478,"title":"fix(ui): avoid oversized focus frames in read-only chats","user":{"login":"roboclaw-bot","id":309084314,"node_id":"U_kgDOEmxAmg","avatar_url":"https://avatars.githubusercontent.com/u/309084314?v=4","gravatar_id":"","url":"https://api.github.com/users/roboclaw-bot","html_url":"https://github.com/roboclaw-bot","followers_url":"https://api.github.com/users/roboclaw-bot/followers","following_url":"https://api.github.com/users/roboclaw-bot/following{/other_user}","gists_url":"https://api.github.com/users/roboclaw-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/roboclaw-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/roboclaw-bot/subscriptions","organizations_url":"https://api.github.com/users/roboclaw-bot/orgs","repos_url":"https://api.github.com/users/roboclaw-bot/repos","events_url":"https://api.github.com/users/roboclaw-bot/events{/privacy}","received_events_url":"https://api.github.com/users/roboclaw-bot/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[{"id":10064298757,"node_id":"LA_kwDOQb6kR88AAAACV-EDBQ","url":"https://api.github.com/repos/openclaw/openclaw/labels/app:%20web-ui","name":"app: web-ui","color":"6E7781","default":false,"description":"App: web-ui","archived_at":null,"archived_by":null},{"id":10190106648,"node_id":"LA_kwDOQb6kR88AAAACX2CwGA","url":"https://api.github.com/repos/openclaw/openclaw/labels/size:%20S","name":"size: S","color":"8C959F","default":false,"description":null,"archived_at":null,"archived_by":null},{"id":12711148517,"node_id":"LA_kwDOQb6kR88AAAAC9aS75Q","url":"https://api.github.com/repos/openclaw/openclaw/labels/clawsweeper:intake:bug","name":"clawsweeper:intake:bug","color":"c5def5","default":false,"description":"Preliminary submission classification; full source review pending.","archived_at":null,"archived_by":null},{"id":12711148710,"node_id":"LA_kwDOQb6kR88AAAAC9aS8pg","url":"https://api.github.com/repos/openclaw/openclaw/labels/clawsweeper:intake:needs-environment","name":"clawsweeper:intake:needs-environment","color":"c5def5","default":false,"description":"Preliminary submission classification; full source review pending.","archived_at":null,"archived_by":null}],"state":"open","locked":false,"assignees":[],"milestone":null,"comments":2,"created_at":"2026-11-10T06:10:46Z","updated_at":"2026-11-10T06:34:31Z","closed_at":null,"assignee":null,"author_association":"COLLABORATOR","issue_field_values":[],"type":null,"active_lock_reason":null,"draft":true,"pull_request":{"url":"https://api.github.com/repos/openclaw/openclaw/pulls/196478","html_url":"https://github.com/openclaw/openclaw/pull/196478","diff_url":"https://github.com/openclaw/openclaw/pull/196478.diff","patch_url":"https://github.com/openclaw/openclaw/pull/196478.patch","merged_at":null},"body":"## What Problem This Solves\n\nFixes an oversized focus frame appearing when someone without message permission clicks the chat composer and types.\n\n## User Impact\n\nRead-only chats stay visibly disabled without a misleading outer frame. Send permissions, unsent drafts, normal keyboard focus, and archived-chat navigation remain unchanged.\n\n## Why This Change Was Made\n\nThe full-width footer could receive native pointer focus through a disabled editor; subsequent typing made its focus outline visible. The footer now becomes focusable only for explicit composer focus handoffs and clears that temporary eligibility on blur. The archived skip-link → footer → Tab → Unarchive handoff is preserved, without removing global focus styles or widening access.\n\n## Evidence\n\n- Native full-UI regression fails on the base and passes with the fix. Final focused runs passed: **14 browser E2E tests**, **114 composer/footer unit tests**, and **18 native model-picker browser tests**. Coverage includes blocked editor/padding/footer interactions, access loss/restoration with an unsent draft, offline drafting, and legitimate keyboard/pointer controls.\n- **Actual isolated in-process Gateway proof passed:** a synthetic reader authenticated with exactly `operator.read` on desktop dark (1440×900) and mobile light (393×852, touch-emulated). Native clicks/taps, typing, Tab, and Shift+Tab left the editor disabled, the draft unchanged, and send requests at zero. Browser-loaded bundle bytes matched the candidate assets; the chat source map matched the reviewed source. Maintained browser-context, proxy, Gateway, and test-state teardown completed.\n- UI production and chat-E2E typechecks, focused lint/format, controller guards, normal commit hooks, and whitespace checks passed. The UI build completed; its three advisory byte-budget excesses also reproduced on the base, with no cap changes.\n- The test-line guard passed at **6,617,095 / 6,617,095**, with exactly **65** added regression lines allocated separately, inherited overage **0**, and the shared scalar unchanged.\n- **Visual evidence:** the full-UI before/after pair uses a synthetic Gateway. Supplemental actual in-process Gateway captures are after-only. All four images are embedded below, and their public PNG bytes match the inspected SHA-256 hashes. Actual PR rendering and originating-chat delivery are complete.\n\n### Full-UI before/after — synthetic Gateway\n\nDesktop dark, 1440×900. Native clicks and typing through the actual Chat UI; only the Gateway transport is synthetic.\n\n**Before**\n![Before: clicking the permission-blocked composer and typing paints a full-width focus frame](https://github.com/user-attachments/assets/02c98b8d-5696-4795-a7cb-ee395f53a8b7)\n\n**After**\n![After: the permission notice and disabled composer remain without the stray outer frame](https://github.com/user-attachments/assets/6d1c17f2-87c7-4cbb-bfd3-5cbf36661ce2)\n\n<details>\n<summary>Actual in-process Gateway — after-only supplemental evidence</summary>\n\nA real isolated Gateway authenticated the synthetic reader with only `operator.read`. These captures supplement the before/after pair; they are not base comparisons and do not qualify packaged CLI cleanup or model inference.\n\n**Desktop dark — after only**\n![Actual in-process Gateway, desktop dark: permission-blocked composer after the fix](https://github.com/user-attachments/assets/144dd11c-de0d-4694-9b3a-455e39453704)\n\n**Mobile light — after only (touch-emulated)**\n![Actual in-process Gateway, mobile light: permission-blocked composer after the fix](https://github.com/user-attachments/assets/086692e3-5d26-4117-8b94-328d60bc62fb)\n\n</details>\n\n<details>\n<summary>Review scope and local timing</summary>\n\nCanonical local autoreview (Codex, **P0–P2**) completed `scoped-clean` with no actionable findings against base `8aa3ef4425c14dbfd32cc2ffb912fa4ea3dec646` and staged-diff SHA-256 `af05fc09560ccc98b6bf092f59e901465768610f02af84124f79e6208614aee7`. Commit `345e2cf51a2e8ec98c84816b298a48b2cc36e61f` contains that exact reviewed delta. Review preceded the subsequent in-process proof; the reviewed production and regression-test bytes remained unchanged.\n\nCommand wall times: focused browser E2E **31.0s**, composer/footer units **13.1s**, native picker **9.8s**, and final in-process Gateway proof **60.5s**. CI results and CI seconds are pending.\n\n</details>\n\n**Remaining qualification gap:** a separate packaged-Gateway fixture failed with `service child cleanup identity lost: native owner closed without kernel descendant extinction`. That failure remains unresolved and its artifacts are preserved. Successful in-process proof does not qualify packaged CLI startup/cleanup or real model inference.\n\nReported by and co-authored with @vyctorbrzezowski.\n\n## Work sessions\n\nLinked for team reference; these sessions aren’t public.\n\n- [Original discussion with @vyctorbrzezowski](https://team.openclaw.ai/chat/roboclaw/~key/dashboard/35eb0de9-8810-4a51-8732-90f15b5bede1)\n- [Implementation and verification](https://team.openclaw.ai/chat/roboclaw/~key/subagent/ac0c1f9b-ed66-400c-95bf-fbb7dd78d9ff)\n\n## Worked on by\n\n- @vyctorbrzezowski\n\n<!-- openclaw-publication:f9586a45-fd42-8f87-adb2-caf1c53e9902 -->","closed_by":null,"reactions":{"url":"https://api.github.com/repos/openclaw/openclaw/issues/196478/reactions","total_count":1,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":1},"timeline_url":"https://api.github.com/repos/openclaw/openclaw/issues/196478/timeline","performed_via_github_app":null,"state_reason":null},{"url":"https://api.github.com/repos/openclaw/openclaw/issues/196484","repository_url":"https://api.github.com/repos/openclaw/openclaw","labels_url":"https://api.github.com/repos/openclaw/openclaw/issues/196484/labels{/name}","comments_url":"https://api.github.com/repos/openclaw/openclaw/issues/196484/comments","events_url":"https://api.github.com/repos/openclaw/openclaw/issues/196484/events","html_url":"https://github.com/openclaw/openclaw/pull/196484","id":6301547867,"node_id":"PR_kwDOQb6kR88AAAABOCQqCQ","number":196484,"title":"fix: reduce chat startup delays across concurrent sessions","user":{"login":"steipete","id":58493,"node_id":"MDQ6VXNlcjU4NDkz","avatar_url":"https://avatars.githubusercontent.com/u/58493?v=4","gravatar_id":"","url":"https://api.github.com/users/steipete","html_url":"https://github.com/steipete","followers_url":"https://api.github.com/users/steipete/followers","following_url":"https://api.github.com/users/steipete/following{/other_user}","gists_url":"https://api.github.com/users/steipete/gists{/gist_id}","starred_url":"https://api.github.com/users/steipete/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/steipete/subscriptions","organizations_url":"https://api.github.com/users/steipete/orgs","repos_url":"https://api.github.com/users/steipete/repos","events_url":"https://api.github.com/users/steipete/events{/privacy}","received_events_url":"https://api.github.com/users/steipete/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[{"id":9706244975,"node_id":"LA_kwDOQb6kR88AAAACQomLbw","url":"https://api.github.com/repos/openclaw/openclaw/labels/docs","name":"docs","color":"0A3069","default":false,"description":"Improvements or additions to documentation","archived_at":null,"archived_by":null},{"id":10069934037,"node_id":"LA_kwDOQb6kR88AAAACWDb_1Q","url":"https://api.github.com/repos/openclaw/openclaw/labels/scripts","name":"scripts","color":"57606A","default":false,"description":"Repository scripts","archived_at":null,"archived_by":null},{"id":10190106720,"node_id":"LA_kwDOQb6kR88AAAACX2CwYA","url":"https://api.github.com/repos/openclaw/openclaw/labels/size:%20M","name":"size: M","color":"8C959F","default":false,"description":null,"archived_at":null,"archived_by":null},{"id":12711148517,"node_id":"LA_kwDOQb6kR88AAAAC9aS75Q","url":"https://api.github.com/repos/openclaw/openclaw/labels/clawsweeper:intake:bug","name":"clawsweeper:intake:bug","color":"c5def5","default":false,"description":"Preliminary submission classification; full source review pending.","archived_at":null,"archived_by":null},{"id":12711148710,"node_id":"LA_kwDOQb6kR88AAAAC9aS8pg","url":"https://api.github.com/repos/openclaw/openclaw/labels/clawsweeper:intake:needs-environment","name":"clawsweeper:intake:needs-environment","color":"c5def5","default":false,"description":"Preliminary submission classification; full source review pending.","archived_at":null,"archived_by":null},{"id":12711148957,"node_id":"LA_kwDOQb6kR88AAAAC9aS9nQ","url":"https://api.github.com/repos/openclaw/openclaw/labels/clawsweeper:intake:needs-repro","name":"clawsweeper:intake:needs-repro","color":"c5def5","default":false,"description":"Preliminary submission classification; full source review pending.","archived_at":null,"archived_by":null}],"state":"open","locked":false,"assignees":[],"milestone":null,"comments":4,"created_at":"2026-11-10T06:24:11Z","updated_at":"2026-11-10T06:33:38Z","closed_at":null,"assignee":null,"author_association":"CONTRIBUTOR","issue_field_values":[],"type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https://api.github.com/repos/openclaw/openclaw/pulls/196484","html_url":"https://github.com/openclaw/openclaw/pull/196484","diff_url":"https://github.com/openclaw/openclaw/pull/196484.diff","patch_url":"https://github.com/openclaw/openclaw/pull/196484.patch","merged_at":null},"body":"## What Problem This Solves\n\nFixes repeated transcript reads and longer chat startup waits when many sessions start turns against the same agent database.\n\n## User Impact\n\nConcurrent chat turns reach the model sooner in the synthetic Gateway workload: session-runtime p95 falls from 3.46 to 2.10 seconds and request-to-first-model p95 from 10.71 to 8.19 seconds. No configuration, schema, stored data, durability, or session-row projection changes.\n\n**Performance tradeoff awaiting owner decision:** event-loop p99 increased in every pair (mean paired +7.7%). The largest observed event-loop delay rose from 90 to 160 ms; the worst pair was 86 to 160 ms. Total CPU and GC work fall, but this does not clear the responsiveness regression. This PR should not merge until that tradeoff is accepted or resolved.\n\n## Why This Change Was Made\n\nThe bounded transcript-read cohort validated a database-wide write receipt, so an unrelated session append discarded an otherwise valid hydration/model-context result. Repeated invalidation fell back to rereading while holding the shared database writer reservation. The cohort now uses the existing selected-session entry aliases and transcript-ID receipts. Same-session changes, unclassified writes, physical/schema identity, native mutation witnesses, FIFO acceptance, and the serialized progress fallback remain protected.\n\nProduction grows by 12 lines to pass the dependency identity into the existing owner; no new cache or parallel owner is introduced. The existing real-worker contention regression now covers both same-session freshness and unrelated-session progress (+18 test lines).\n\n## Evidence\n\nBaseline `21f17afce911a364138fa29fb10e20bffe15a3eb`; candidate `d2077c58dcccbfd6ea651fcf88d0ed6bac68967a`. Five serial, interleaved A/B pairs plus A/A controls; 480 measured turns per arm through a real built Gateway and WebSocket transport. All data is synthetic: 5,000 populated/indexed background sessions in a 35 GiB agent database, a linked worktree with 62,000 files (~1.1 GB), 32 concurrent preparing foreground sessions with 128 historical turns and 16 KiB tool payloads each, 65 clients, and 40 configured plugins. Every arm restores the same pristine fixture. A loopback mock provider executes real tools.\n\n| Metric | Baseline | Candidate |\n| --- | ---: | ---: |\n| Session-runtime median / p95 | 1,988 / 3,458 ms | 1,405 / 2,097 ms |\n| Actor median / p95 | 736 / 1,591 ms | 568 / 946 ms |\n| History median / p95 | 1,069 / 1,791 ms | 675 / 826 ms |\n| Session-runtime above 2 seconds | 238 / 480 | 58 / 480 |\n| Model-context reservations | 1,530 | 960 |\n| Hydration reservations | 3,438 | 1,920 |\n| Transcript-worker tasks | 9,035 | 7,323 |\n| Model-context aggregate queue wait | 304.0 s | 158.7 s |\n| Hydration aggregate queue wait | 832.2 s | 526.0 s |\n| Main / process CPU, fixed cohort | 129.1 / 431.6 s | 124.7 / 371.0 s |\n| GC, fixed cohort | 9.23 s | 8.15 s |\n| First-model median / p95 | 7,403 / 10,711 ms | 6,552 / 8,188 ms |\n\nRuntime p95 improves 34–41% in every pair; actor p95 improves 33–47%. A/A runtime p95 was 3.98 and 3.16 seconds. Initial restoration is separate (160 sessions/arm): runtime median/p95 1.74/2.31 → 0.98/1.29 seconds. Initial actor remains ~1 ms because prepared-context reuse already works.\n\nModel-context queue wait accounts for 71% of summed baseline actor time, versus 60% on candidate. Hydration also runs outside attempt.history, so its queue total is not a share of that phase. These nested phases must not be added together.\n\nLimits: no actor sample exceeded two seconds, so this does not reproduce or explain the full production extreme. This macOS/APFS experiment does not establish btrfs behavior. Short mock responses establish concurrent admitted/preparing sessions, not 32 simultaneously emitting provider streams. Median endpoint RSS increases 3,211→3,378 MiB; heap decreases 519→502 MiB. Endpoint memory is not peak or post-GC retained memory. Hydration queue time per reservation increases as removal of retries changes the population; aggregate wait and per-turn latency decrease. The configuration-watcher and terminal-upload recovery fixture warnings occur on both arms.\n\nReproduction and the acceptance rule are in `scripts/perf/attempt-session-runtime.md`; the rule was recorded locally before measurement. The real-worker regression fails on the base (two reads instead of one after an unrelated write) and passes on candidate. All 67 focused context, anchor/hydration, and SessionManager snapshot tests pass. Both runtime builds pass. Independent Codex review through P2 is scoped-clean.\n\nSeparate allocation captures (96 turns/arm, 32 KiB sampling including collected objects): baseline A/A 214.8 and 212.3 MiB/turn; candidate 195.2 MiB/turn, −8.6% versus the A/A mean. Promoted bytes fall from 39.5–40.5 to 29.1 MiB/turn. Most sampled savings are in the opaque V8 API bucket; main-thread parsing/copying is approximately unchanged, so those savings are not attributed to a specific source owner.\n\nSeparate CPU captures corroborate less work: main CPU 29.57→27.90 s and whole-process CPU 93.51→77.30 s per 96 turns. The stored profiles cannot retrospectively attribute the untraced 160 ms timer pause; its round had no GC pause above 43 ms.\n\nAdditional local proof passed: all 14 prompt-prefix stability tests, the Chromium chat-history settlement test, and both real-Gateway UI tests for completed-history restoration and chat loading.\n\n`pnpm check:changed` completed with one failing guard: Knip found 32 production unused exports and 10 overlapping full-tree findings in unrelated modules. All typechecks, core/script lint, formatting, database ratchets, and remaining guards passed. The same guard fails on exact main parent `21f17afce911` with identical 32 production and 10 full-tree entries (script scan: zero). Historical diffs and consumer references identify the introducing/cutover commits below. These are main regressions/debt, not a green check or noise; they remain outside this focused fix.\n\n\n<details>\n<summary>Exact-parent dead-export attribution (32 unique findings)</summary>\n\nThe guard was rerun against a clean, detached `21f17afce911` checkout using the same existing dependencies. Both failing result sets match exactly; the script scan has zero findings. Attribution below comes from `git log -S/-G`, historical diffs and consumer references, rather than an executable bisect of every historical commit.\n\n| Findings | Introducing or consumer-cutover commit |\n| --- | --- |\n| Compaction `nestRequiredSummaryHeadings` | `c7152f3bda8e`, #196207 |\n| Models config, tools, auth-storage/model-registry and OOM forwarding exports (8) | `625945b7ae01`, #192552 |\n| Two Tool Search directory exports | `80ba593b8b14`, #196252 |\n| Launchd `isLaunchctlNotLoaded` | `b4262689db5d`, #130634 |\n| Launchd `parseLaunchAgentEnabled` | `7713e8fb749e`, #103537; forwarding residue retained by `3d707a9b963b`, #121929 |\n| Launchd `resolveLaunchAgentPlistPath` | `35b66e5ad185`; forwarding residue retained by `3d707a9b963b`, #121929 |\n| Billing warning helper | `56617cd00086`, #191326 |\n| External-auth forwarding exports (2) | `071f606eae77`, #139911 |\n| Provider auth/catalog forwarding exports (6) | `f63e5cd0f6d3`, #190205 |\n| Provider failover forwarding export | `964fa991c0af`, #132716 |\n| Provider modern-model forwarding export | `33d8f24c9926`, #129184 |\n| Provider runtime-plugin forwarding export | `a7436c8b4a93` |\n| Four provider-auth type forwarding exports | `cf1ae7bb6a72`, #190544 |\n| Browser pairing constant | `d85ebfe8daad`, #191513 |\n| Dashboard `authorDisplayName` | `832bbf926fc5` |\n\n</details>\n","closed_by":null,"reactions":{"url":"https://api.github.com/repos/openclaw/openclaw/issues/196484/reactions","total_count":2,"+1":1,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":1},"timeline_url":"https://api.github.com/repos/openclaw/openclaw/issues/196484/timeline","performed_via_github_app":null,"state_reason":null},{"url":"https://api.github.com/repos/openclaw/openclaw/issues/194545","repository_url":"https://api.github.com/repos/openclaw/openclaw","labels_url":"https://api.github.com/repos/openclaw/openclaw/issues/194545/labels{/name}","comments_url":"https://api.github.com/repos/openclaw/openclaw/issues/194545/comments","events_url":"https://api.github.com/repos/openclaw/openclaw/issues/194545/events","html_url":"https://github.com/openclaw/openclaw/pull/194545","id":6256757832,"node_id":"PR_kwDOQb6kR88AAAABNe1o6g","number":194545,"title":"fix: reduce transcript allocation when preparing native context seeds","user":{"login":"RomneyDa","id":6581799,"node_id":"MDQ6VXNlcjY1ODE3OTk=","avatar_url":"https://avatars.githubusercontent.com/u/6581799?v=4","gravatar_id":"","url":"https://api.github.com/users/RomneyDa","html_url":"https://github.com/RomneyDa","followers_url":"https://api.github.com/users/RomneyDa/followers","following_url":"https://api.github.com/users/RomneyDa/following{/other_user}","gists_url":"https://api.github.com/users/RomneyDa/gists{/gist_id}","starred_url":"https://api.github.com/users/RomneyDa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RomneyDa/subscriptions","organizations_url":"https://api.github.com/users/RomneyDa/orgs","repos_url":"https://api.github.com/users/RomneyDa/repos","events_url":"https://api.github.com/users/RomneyDa/events{/privacy}","received_events_url":"https://api.github.com/users/RomneyDa/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[{"id":10069934037,"node_id":"LA_kwDOQb6kR88AAAACWDb_1Q","url":"https://api.github.com/repos/openclaw/openclaw/labels/scripts","name":"scripts","color":"57606A","default":false,"description":"Repository scripts","archived_at":null,"archived_by":null},{"id":10069976942,"node_id":"LA_kwDOQb6kR88AAAACWDenbg","url":"https://api.github.com/repos/openclaw/openclaw/labels/agents","name":"agents","color":"57606A","default":false,"description":"Agent runtime and tooling","archived_at":null,"archived_by":null},{"id":10190106760,"node_id":"LA_kwDOQb6kR88AAAACX2CwiA","url":"https://api.github.com/repos/openclaw/openclaw/labels/size:%20L","name":"size: L","color":"8C959F","default":false,"description":null,"archived_at":null,"archived_by":null},{"id":10970446441,"node_id":"LA_kwDOQb6kR88AAAACjeO6aQ","url":"https://api.github.com/repos/openclaw/openclaw/labels/P2","name":"P2","color":"FBCA04","default":false,"description":"Normal backlog priority with limited blast radius.","archived_at":null,"archived_by":null},{"id":10980547267,"node_id":"LA_kwDOQb6kR88AAAACjn3aww","url":"https://api.github.com/repos/openclaw/openclaw/labels/rating:%20%F0%9F%A6%90%20gold%20shrimp","name":"rating: 🦐 gold shrimp","color":"B7791F","default":false,"description":"Decent PR readiness signal, but merge confidence is limited.","archived_at":null,"archived_by":null},{"id":10982431516,"node_id":"LA_kwDOQb6kR88AAAACjpqbHA","url":"https://api.github.com/repos/openclaw/openclaw/labels/status:%20%F0%9F%91%80%20ready%20for%20maintainer%20look","name":"status: 👀 ready for maintainer look","color":"2DA44E","default":false,"description":"ClawSweeper has no concrete contributor-facing blocker left for this PR.","archived_at":null,"archived_by":null}],"state":"open","locked":false,"assignees":[],"milestone":null,"comments":4,"created_at":"2026-11-07T08:04:23Z","updated_at":"2026-11-10T06:33:34Z","closed_at":null,"assignee":null,"author_association":"MEMBER","issue_field_values":[],"type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https://api.github.com/repos/openclaw/openclaw/pulls/194545","html_url":"https://github.com/openclaw/openclaw/pull/194545","diff_url":"https://github.com/openclaw/openclaw/pull/194545.diff","patch_url":"https://github.com/openclaw/openclaw/pull/194545.patch","merged_at":null},"body":"Related: #191847\n\n## Problem and user impact\n\nNative harness seed preparation previously materialized full transcript context before applying its byte/token allowance. This change selects the canonical bounded suffix inside the existing transcript snapshot before transferring historical payloads. Memory sessions share the same selector. Public full-context reads and cloud recovery are unchanged; there are no configuration, schema, migration, cache, or durability changes.\n\nTool pairing, summaries, admitted-input accounting, media handling, and the native host's compaction policy are preserved. Lightweight readers use pure selection/accounting owners rather than importing compaction transports or the agent runtime facade. Existing consumers moved together; no import guard was weakened.\n\nThis is separate from #194536. The native path did not exist in 2026.11.1; the original reported OOM root cause remains unproven.\n\n## Allocation evidence\n\n- On pinned base `e235339a0fb7b4f01269e03fccf9507c8a853545`, the real host caller received 9 messages / 131,524 bytes for a 4,096-byte allowance, then selected 2 messages / 299 bytes.\n- The allocation regression fails on that base: 16 old payloads hydrated instead of 1. Five interleaved samples measured baseline 16 payloads / 265,626 bytes versus candidate 1 / 16,605 bytes. These measure hydration work, not process heap or OOM elimination.\n- Earlier focused/broader runs passed 59/76 tests. The subsequent import-isolation repair passed 33 import/packaging tests, 39 seed/accounting tests, and 65 compaction-consumer tests on its prior candidate.\n\n## Main integration and review repairs\n\nIntegrated main `c74d7a70ae1249ccb9fe18d256560e2e223f195c`, retaining both wrapper-inventory parents and upstream host compaction-progress behavior. Seed scalar reads retain upstream exceptional-JSON handling: native decoding is guarded, and exceptional payloads use canonical hydration within the same snapshot.\n\nIndependent reviews identified two related last-member defects. Both were reproduced and fixed: duplicate summary fields could cause a seed hydration disagreement; duplicate keys, roles, or outer message fields could lose the admitted user. Seed scalar lookup now uses JSON.parse-compatible last-member semantics, including the admitted role, without transferring ordinary historical bodies. SQLite regressions compare against the full-fidelity reader. No parallel parser, new state owner, or compatibility layer was added.\n\n## Prior integrated validation\n\nReviewed local merge candidate: `12088df64e319eb25f16a0b3404f5ee9837439cb`.\n\n- 58 tests passed across 7 files: bounded selection, SQLite seed/model context, host seed, transcript portability, and lightweight import boundaries. PostgreSQL cases were not configured: 11 skipped, not passed.\n- Targeted infrastructure typecheck and lint passed; formatting and the diff check against the integrated main passed. Prior import-cycle and Madge checks reported zero cycles; the repair adds no import edges. The wrapper-inventory check passed.\n- Canonical committed-branch autoreview, OpenClaw engine and P0–P3, returned exit 0 / scoped-clean with full host, bounding, and projection source context. This was static review, not repository-wide execution.\n- An earlier canonical review returned exit 1 for expired turn-scoped accounting. That finding was rejected after inspecting the actual caller: native seed preparation does not enable `clearsTurnScopedSystemUpdates`, whose default is false. The final review confirmed that policy; expiration-aware context-engine lifecycle behavior was not enabled here.\n\n## CI ratchet repair\n\nThe failed baseline-ratchet job in run `42670719885` was reproduced against the CI merge of head `27460c380ed94dbfa5a57cca6b96aa482c5edadd` and base `51833f164e4570235ccc87a86c8075960a73c1ae`. SQLite mechanical SQL grew 2 → 3, and test lines grew by 271 (265 above the ceiling).\n\n- The last-member lookup now uses typed Kysely enumeration/filter/order/limit at its existing engine owner rather than a new raw SQLite query. Duplicate-key, nested-object, type, and validity semantics are unchanged; the dialect ratchet is back to 2 → 2. No guard, baseline, or ignore was relaxed.\n- Removed 21 redundant benchmark-sampling/timing lines while retaining the 16-versus-1 hydration assertion and all fidelity checks. The remaining +250 regression lines protect the actual worker hydration boundary and backend parity for exceptional JSON and duplicate summary/admitted-user fields. A separate `bounded-context-seed.txt` allocation covers exactly those 250 lines under the documented test-cost policy; the shared scalar is unchanged. On the reproduced CI tree the test-line guard passes with its original 6-line slack.\n- On repair `8bfde30da02b`, 11 tests passed across the seed and transcript-portability suites; 11 PostgreSQL cases skipped. Seed suite wall time was 4.78 seconds; portability suite 5.96 seconds; combined wrapper wall time including compilation was 69.27 seconds. Targeted owner typecheck, two-file lint, formatting, and diff checks passed. Preliminary compiler invocations used an incorrect broad root or omitted canonical ambient declarations; the corrected owner-scoped configuration passed.\n- Independent P0–P3 subagent review of this repair found no actionable defects; its 33-case SQLite expression comparison passed. This was the documented autoreview fallback because Codex CLI was unavailable, using `openai/gpt-6.1-sol`; it lacks helper-owned isolation and structured validation. The reviewed local repair and published head `24a1f06bbfd7d0976bb6dee9961a2b6b25e005b8` have the same source changes.\n\n## Exact-head CI outcome and inherited failures\n\nRun `42762761521` completed with failure for head `24a1f06bbfd7d0976bb6dee9961a2b6b25e005b8`. The repaired `checks-fast-baseline-ratchets` job passed, as did `build-artifacts`, production/test typechecks, lint, and all three PostgreSQL conformance shards. The four remaining test jobs (`129652615457`, `129652615461`, `129652615615`, `129652615639`) and aggregate `openclaw/ci-gate` failed.\n\nThe job checkout log identifies the actual tested merge as `3d540291985662065af19741db70083ca0c9f110`, combining this PR head with main `75c494e697e7aef8b0db23840bf84d6eb3f6dc4e`. The older integrated base is not adequate attribution evidence: all 93 tests in the four affected suites pass both on that original base `c74d7a70ae1249ccb9fe18d256560e2e223f195c` and on the PR head alone.\n\nIndependent execution on the actual CI base `75c494e697e7aef8b0db23840bf84d6eb3f6dc4e`, without this PR, reproduced all 10 CI failures (83 passed). Lead execution on the exact CI merge reproduced the same 10 failures (83 passed):\n\n| Suite | Matching failure |\n| --- | --- |\n| `worker-turn-detached-context.test.ts` | Seven failures: first-transcript read count 0 instead of 1; missing canonical admission reaches credential/tunnel acquisition; cancel, claim, caller, session, and blocked hooks each observe 0 reads instead of 1. |\n| `worker-turn-transcript-footprint.test.ts` | Recorder-owned input loads 67 messages, including 64 inactive, instead of 3 messages and no inactive payloads. |\n| `sessions-rewind.storage.test.ts` | Public lifecycle predecessor returns `SESSION_PARTICIPATION_REQUIRED` instead of `SESSION_MUTATION_AUTHORIZATION_CHANGED`. |\n| `server.sessions.create-worktree-spawn.test.ts` | GitHub source without a managed worktree lacks the expected failed child status. |\n\nCommand: `node scripts/run-vitest.mjs` with those four suite paths, `--maxWorkers=1`, isolated filesystem module caches, and continue-on-failure for the failing trees. Wrapper wall times were 235.40s on the PR head, 227.08s on the original base, 233.89s on the actual CI base, and 236.05s on the exact CI merge. The actual-base and merge runs both exited 1 with identical signatures. This is concrete inherited-failure evidence, not a passing replay or a green CI claim. No tests, guards, or baselines were weakened; no unrelated repair, extra push, CI rerun, or merge was performed.\n\n## Limits and unqualified checks\n\nNavigation scans remain linear; the first overflowing row is hydrated. One huge row and nondiscardable admitted input remain separate bounds. No heap caps were lowered. No live Gateway/model or local PostgreSQL qualification was run; no credentials were copied. All three PostgreSQL conformance shards passed in the exact-head remote run above.\n\nFull wrapper build checks on the integrated checkout could not qualify locally because frozen dependency preparation failed (`ERR_PNPM_FROZEN_LOCKFILE_WITH_OUTDATED_LOCKFILE`, with installed tsdown 0.23.3 versus required 0.23.4). This remains a local qualification gap; exact-head remote `build-artifacts` passed, but does not establish every full-package/declaration requirement. The earlier UI preflight also lacked Chromium. CI remains red solely on the independently reproduced inherited failures above.\n\n## Planned native-seed latency measurement (before timing)\n\nCompare exact head `24a1f06bbfd7d0976bb6dee9961a2b6b25e005b8` against its integrated pre-change base `c74d7a70ae1249ccb9fe18d256560e2e223f195c`, not today's main. Use committed synthetic short (all history fits) and long (many 16-KiB payloads exceed 4,096 bytes / 1,024 tokens) workloads, including an admitted user key and a summary case. Count SQL and decoded payload bytes separately before timing; separately verify identical final context. Measure the canonical host bounded-seed preparation with actual SQLite worker transfer if feasible, explicitly labeling any narrower boundary. Exclude fixture creation, module compilation, and instrumentation from timing. Run serial ABAB with at least 20 samples per version and workload; report median, p95, min/max spread, host load, and separate worker-cold versus warm observations. OS caches are not flushed. A latency reduction with unchanged context is a win; any median or p95 regression of 20% or more is a stop flag, not noise. Smaller changes overlapping spread are inconclusive. Full Gateway/model-turn latency is unqualified unless explicitly measured.\n\n## Measured native-seed latency — November 10, 2026\n\nThe committed synthetic benchmark `scripts/bench-native-seed.mjs` was run on those exact sources in isolated copies: `TSX_DISABLE_CACHE=1 node --import tsx/esm scripts/bench-native-seed.mjs .openclaw/tmp/seed-latency/base 100`. Benchmark source snapshot: `d9822bc9815c73f4813916ab2d70a5b6410f9904`; report and raw samples are committed on the separate scratch branch at `3cc977fe9086` in `scripts/perf/native-seed-latency-2026-11-10.{md,json}`. No production-code changes or push to this PR were made for measurement.\n\nWarm timing encloses the real host `bindBoundedSeed().prepareBoundedSeed()` path, including durable SQLite worker dispatch, SQL, worker result transfer, and final host selection. Fixture creation, imports, source verification, and instrumentation are outside the warm window. Each workload has 100 serial baseline/candidate pairs after five untimed warmups, a 4,096-byte / 1,024-token budget, and an admitted user key. Short has four 64-byte old payloads; long has 256 × 16-KiB old payloads; summary adds a retained compaction summary. Full final contexts match, with explicit assertions for recent-question retention, admitted-user exclusion, omission notice, and summary presence.\n\n| Workload | Median ms, base → head | Median delta | p95 ms, base → head | p95 delta | Min–max ms, base → head |\n| --- | --- | --- | --- | --- | --- |\n| Short | 2.582 → 2.709 | +0.127 (+4.9%) | 3.829 → 3.922 | +0.094 (+2.4%) | 2.176–6.052 → 2.240–12.083 |\n| Long | 10.752 → 6.007 | -4.745 (-44.1%) | 13.405 → 8.154 | -5.251 (-39.2%) | 9.401–21.355 → 5.163–9.356 |\n| Long + summary | 9.837 → 5.156 | -4.681 (-47.6%) | 12.638 → 6.923 | -5.715 (-45.2%) | 7.805–18.547 → 3.470–8.180 |\n\nSeparate snapshot-kernel counts: short SQL calls 9 → 10, marked payload parses 4 → 4, decoded bytes 981 → 981; long SQL 261 → 7, parses 256 → 1, bytes 4,242,499 → 16,574; summary SQL 262 → 8, parses 256 → 1, bytes 4,242,510 → 16,574. These are kernel counts, not all host/worker SQL, total wire bytes, or heap measurements.\n\nThis is a real tradeoff: long histories are faster, but short histories are slightly slower, not proven unchanged. No 20% median/p95 threshold was crossed. The largest short sample doubled (6.052 → 12.083 ms); that tail observation is flagged rather than discarded or presented as universal improvement.\n\nEnvironment: Node v26.12.1, Linux x64, AMD EPYC 4585PX, 32 logical CPUs; load averages 3.96/2.84/2.09 → 3.87/2.91/2.13. Independent CI work continued on the host. Source checks verified 43,873 baseline and 43,875 candidate files against Git blobs. The benchmark uses compaction disabled, no media/continuation/refresh, and no live admission receipt (the admitted key is present). It does not measure Gateway transport, native harness RPC, model startup, model compaction, or complete user-turn latency. One first short read was 2,343.638 / 2,487.400 ms including lazy source-worker startup/compilation; it is separate diagnostic data, not a qualified cold-production benchmark. Syntax, formatting, diff checks, complete workload assertions, and owned-child cleanup passed; the repository lint wrapper was blocked by externally linked dependency containment. Review corrections added source verification, bounded cleanup, and fixture assertions; exploratory numbers from an invalid summary fixture were discarded before this final run.\n\n<!-- openclaw-publication:294c8539-9e0b-4d17-aef7-76eb33f15e8b -->","closed_by":null,"reactions":{"url":"https://api.github.com/repos/openclaw/openclaw/issues/194545/reactions","total_count":1,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":1},"timeline_url":"https://api.github.com/repos/openclaw/openclaw/issues/194545/timeline","performed_via_github_app":null,"state_reason":null},{"url":"https://api.github.com/repos/openclaw/openclaw/issues/196485","repository_url":"https://api.github.com/repos/openclaw/openclaw","labels_url":"https://api.github.com/repos/openclaw/openclaw/issues/196485/labels{/name}","comments_url":"https://api.github.com/repos/openclaw/openclaw/issues/196485/comments","events_url":"https://api.github.com/repos/openclaw/openclaw/issues/196485/events","html_url":"https://github.com/openclaw/openclaw/pull/196485","id":6301631026,"node_id":"PR_kwDOQb6kR88AAAABOCU2Aw","number":196485,"title":"fix: keep Person grouping available with one readable owner","user":{"login":"roboclaw-bot","id":309084314,"node_id":"U_kgDOEmxAmg","avatar_url":"https://avatars.githubusercontent.com/u/309084314?v=4","gravatar_id":"","url":"https://api.github.com/users/roboclaw-bot","html_url":"https://github.com/roboclaw-bot","followers_url":"https://api.github.com/users/roboclaw-bot/followers","following_url":"https://api.github.com/users/roboclaw-bot/following{/other_user}","gists_url":"https://api.github.com/users/roboclaw-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/roboclaw-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/roboclaw-bot/subscriptions","organizations_url":"https://api.github.com/users/roboclaw-bot/orgs","repos_url":"https://api.github.com/users/roboclaw-bot/repos","events_url":"https://api.github.com/users/roboclaw-bot/events{/privacy}","received_events_url":"https://api.github.com/users/roboclaw-bot/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[{"id":9706244975,"node_id":"LA_kwDOQb6kR88AAAACQomLbw","url":"https://api.github.com/repos/openclaw/openclaw/labels/docs","name":"docs","color":"0A3069","default":false,"description":"Improvements or additions to documentation","archived_at":null,"archived_by":null},{"id":10064298757,"node_id":"LA_kwDOQb6kR88AAAACV-EDBQ","url":"https://api.github.com/repos/openclaw/openclaw/labels/app:%20web-ui","name":"app: web-ui","color":"6E7781","default":false,"description":"App: web-ui","archived_at":null,"archived_by":null},{"id":10064298857,"node_id":"LA_kwDOQb6kR88AAAACV-EDaQ","url":"https://api.github.com/repos/openclaw/openclaw/labels/gateway","name":"gateway","color":"57606A","default":false,"description":"Gateway runtime","archived_at":null,"archived_by":null},{"id":10190106760,"node_id":"LA_kwDOQb6kR88AAAACX2CwiA","url":"https://api.github.com/repos/openclaw/openclaw/labels/size:%20L","name":"size: L","color":"8C959F","default":false,"description":null,"archived_at":null,"archived_by":null}],"state":"open","locked":false,"assignees":[],"milestone":null,"comments":1,"created_at":"2026-11-10T06:31:19Z","updated_at":"2026-11-10T06:33:21Z","closed_at":null,"assignee":null,"author_association":"COLLABORATOR","issue_field_values":[],"type":null,"active_lock_reason":null,"draft":true,"pull_request":{"url":"https://api.github.com/repos/openclaw/openclaw/pulls/196485","html_url":"https://github.com/openclaw/openclaw/pull/196485","diff_url":"https://github.com/openclaw/openclaw/pull/196485.diff","patch_url":"https://github.com/openclaw/openclaw/pull/196485.patch","merged_at":null},"body":"## What Problem This Solves\n\nFixes: Person disappears from the sidebar's Group by menu, and a saved Person choice renders as Custom groups, when the readable-owner facet contains fewer than two owners.\n\n## User Impact\n\nUsers can choose Person grouping with one owner or an empty list and keep that choice across refreshes, owner filters, reassignment, reload, and navigation. Grouping uses stable owner identities from readable sessions; it does not grant access to additional sessions or private profiles. People sorting keeps its existing multiple-owner requirement.\n\n## Why This Change Was Made\n\nRemove the sorting-cardinality condition from the existing grouping preference and menu option. Reuse the current owner-section projection and renderer rather than adding another identity list, state owner, or permission policy. The G09-only production delta removes six net lines; the default grouping remains Custom groups.\n\n**Dependency:** #196446 remains a draft and has not landed. This draft includes its functional commit `66f0296bc9329566f1eef5eba2ab2564eefa3748` through a provenance-preserving `cherry-pick -x` as `209d2c603f620e58bbd1c2fe45d221bc0684d256`. The empty publication child was not applied. G06 owns readable-row admission and owner/person facets; G09 consumes that contract without further backend changes. Review the G09-only delta from `209d2c603f620e58bbd1c2fe45d221bc0684d256` to `b8e4e7b4c186da04ef892b9efeb5428bb4a94294` separately from the dependency.\n\n## Evidence\n\n- **Red on dependency-backed unchanged grouping:** a real guest `sessions.list` returned one readable owner, while the desktop and phone Group by menus both omitted Person (expected `[1,1]`, observed `[0,0]`; 19.72 seconds wall).\n- **Chromium browser filter suite:** 14 passed, 25.11 seconds wall. Its changed snapshot-transition case passed again after test-only lint adjustments; this is the same case, not another test counted toward the suite total.\n- **Sidebar consumer suite:** 113 passed, 9.00 seconds wall, including the unchanged People-sort availability/fallback contract. The obsolete Person fallback expectation was replaced with the requested retained-grouping behavior.\n- **Grouping owner suite:** 19 passed, retaining identity, ownerless-row, and existing zone behavior.\n- **Real isolated Gateway + Vite source Control UI:** one guest flow passed on the final typed fixture (48.09 seconds wall, 12.64 seconds test time). It uses synthetic profiles and sessions, not a mocked Gateway transport or live user data. It covers single-owner availability, distinct same-name profiles, reassignment, reload/remount, actual row navigation, All owners/My sessions including empty membership, and hidden/private-session exclusion. `users.list` and `presence.query` remain denied. No model inference turn was sent.\n- UI production and focused test typechecks, targeted lint/format, diff checks, docs sanity, the staged Control UI controller guard, and the staged test-line guard passed. Exactly 169 net regression-test lines are allocated for the G09 behavior and consumer coverage; the shared scalar is unchanged. CI seconds are not available; no broad CI result is claimed.\n- `pnpm ui:build` exited 0. Its **inherited, unwaived Chat startup warning remains**: 1,299,816 B gzip against a 1,298,697 B ceiling, still 1,119 B above it. The dependency-backed baseline was 1,299,830 B on the same host. No bundle budget was raised and no performance improvement is claimed from the 14-byte difference.\n- Fresh canonical local autoreview completed one P0-P2 pass over all seven G09 files: **scoped-clean, no findings**. Reviewed base `209d2c603f620e58bbd1c2fe45d221bc0684d256`, candidate tree `33feeecd2b4a89d089bccffedb97886e3d9f9b21` (the exact committed tree), patch SHA-256 `e22e1c76941a3d83b19d6e5bafddca93f2e2987379eddc97a4b7baf3b6e8d4a5`. It used GPT-6.1 Sol, medium reasoning, with model/authentication fallback disabled; helper source SHA-256 `8557d92f64778e2fb690f0ad4afa8f746b7a7be1140aad07885c7e72eb5232c8`. The reviewer assessed source and supplied context; it did not execute tests or independently verify provenance hashes. The implementer verified matching stable patch IDs for the G06 original and cherry-pick.\n\n### Visual evidence\n\nInspected, sanitized captures use synthetic guest data, dark theme, and matching 1280×800 desktop / 390×844 phone viewports. Before is the dependency-backed unchanged grouping; after is the G09 production change. Screenshots are embedded below. Actual PR-page rendering verification remains pending, and the screenshot completion gate is not claimed complete. Originating-chat delivery is coordinated separately.\n\n#### Desktop\n\n**Before**\n\n![Guest Group by menu before at 1280 by 800](https://github.com/user-attachments/assets/91626fdc-5092-4715-b1e6-83b8cc2c9716)\n\n**After**\n\n![Guest Group by menu after at 1280 by 800](https://github.com/user-attachments/assets/8756aa9c-0fab-4630-9bc6-6fb141409423)\n\n#### Phone\n\n| Before | After |\n| --- | --- |\n| ![Guest Group by menu before at 390 by 844](https://github.com/user-attachments/assets/c9ea480d-ddea-4f47-aa2d-84ffd76bcc09) | ![Guest Group by menu after at 390 by 844](https://github.com/user-attachments/assets/cf6d2bda-3148-4f43-8e7e-2d0bd8a4fd9b) |\n\nContributor: @vyctorbrzezowski.\n\n## Work sessions\n\nLinked for team reference; these sessions aren’t public.\n\n- [Original discussion with @vyctorbrzezowski](https://team.openclaw.ai/chat/roboclaw/~key/dashboard/35eb0de9-8810-4a51-8732-90f15b5bede1)\n- [Implementation and verification](https://team.openclaw.ai/chat/roboclaw/~key/subagent/c79f91c6-be81-4783-b08f-769b943270a4)\n\n## Worked on by\n\n- @vyctorbrzezowski\n\n<!-- openclaw-publication:df804859-2df9-4649-b79d-0fecc17d34a0 -->","closed_by":null,"reactions":{"url":"https://api.github.com/repos/openclaw/openclaw/issues/196485/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https://api.github.com/repos/openclaw/openclaw/issues/196485/timeline","performed_via_github_app":null,"state_reason":null},{"url":"https://api.github.com/repos/openclaw/openclaw/issues/196404","repository_url":"https://api.github.com/repos/openclaw/openclaw","labels_url":"https://api.github.com/repos/openclaw/openclaw/issues/196404/labels{/name}","comments_url":"https://api.github.com/repos/openclaw/openclaw/issues/196404/comments","events_url":"https://api.github.com/repos/openclaw/openclaw/issues/196404/events","html_url":"https://github.com/openclaw/openclaw/pull/196404","id":6299150792,"node_id":"PR_kwDOQb6kR88AAAABOAXiAg","number":196404,"title":"fix(agents): continuation-skip turns tell the model its workspace instructions were removed","user":{"login":"67-luck","id":232011771,"node_id":"U_kgDODdQ3-w","avatar_url":"https://avatars.githubusercontent.com/u/232011771?v=4","gravatar_id":"","url":"https://api.github.com/users/67-luck","html_url":"https://github.com/67-luck","followers_url":"https://api.github.com/users/67-luck/followers","following_url":"https://api.github.com/users/67-luck/following{/other_user}","gists_url":"https://api.github.com/users/67-luck/gists{/gist_id}","starred_url":"https://api.github.com/users/67-luck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/67-luck/subscriptions","organizations_url":"https://api.github.com/users/67-luck/orgs","repos_url":"https://api.github.com/users/67-luck/repos","events_url":"https://api.github.com/users/67-luck/events{/privacy}","received_events_url":"https://api.github.com/users/67-luck/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[{"id":10069934037,"node_id":"LA_kwDOQb6kR88AAAACWDb_1Q","url":"https://api.github.com/repos/openclaw/openclaw/labels/scripts","name":"scripts","color":"57606A","default":false,"description":"Repository scripts","archived_at":null,"archived_by":null},{"id":10069976942,"node_id":"LA_kwDOQb6kR88AAAACWDenbg","url":"https://api.github.com/repos/openclaw/openclaw/labels/agents","name":"agents","color":"57606A","default":false,"description":"Agent runtime and tooling","archived_at":null,"archived_by":null},{"id":10190106648,"node_id":"LA_kwDOQb6kR88AAAACX2CwGA","url":"https://api.github.com/repos/openclaw/openclaw/labels/size:%20S","name":"size: S","color":"8C959F","default":false,"description":null,"archived_at":null,"archived_by":null},{"id":10970446441,"node_id":"LA_kwDOQb6kR88AAAACjeO6aQ","url":"https://api.github.com/repos/openclaw/openclaw/labels/P2","name":"P2","color":"FBCA04","default":false,"description":"Normal backlog priority with limited blast radius.","archived_at":null,"archived_by":null},{"id":10980541151,"node_id":"LA_kwDOQb6kR88AAAACjn3C3w","url":"https://api.github.com/repos/openclaw/openclaw/labels/rating:%20%F0%9F%A7%82%20unranked%20krab","name":"rating: 🧂 unranked krab","color":"8C2F39","default":false,"description":"Not merge-ready due to missing proof or serious correctness/safety concerns.","archived_at":null,"archived_by":null},{"id":10982444316,"node_id":"LA_kwDOQb6kR88AAAACjprNHA","url":"https://api.github.com/repos/openclaw/openclaw/labels/status:%20%F0%9F%93%A3%20needs%20proof","name":"status: 📣 needs proof","color":"D93F0B","default":false,"description":"The PR needs real behavior proof before ClawSweeper can clear the contributor ask.","archived_at":null,"archived_by":null}],"state":"open","locked":false,"assignees":[],"milestone":null,"comments":3,"created_at":"2026-11-10T02:45:06Z","updated_at":"2026-11-10T06:32:51Z","closed_at":null,"assignee":null,"author_association":"CONTRIBUTOR","issue_field_values":[],"type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https://api.github.com/repos/openclaw/openclaw/pulls/196404","html_url":"https://github.com/openclaw/openclaw/pull/196404","diff_url":"https://github.com/openclaw/openclaw/pull/196404.diff","patch_url":"https://github.com/openclaw/openclaw/pull/196404.patch","merged_at":null},"body":"Related: #196122\n\n## What Problem This Solves\n\nFixes: with `contextInjection: \"continuation-skip\"`, every continuation turn on routes that pin the system prompt (direct Anthropic, official OpenAI Responses) tells the model that AGENTS.md, USER.md, MEMORY.md and every heading inside them were \"(removed)\".\n\n## User Impact\n\nOn those routes, skipped turns keep the workspace instructions the model already has, without a system update revoking them. Skipped turns still send no workspace files, and an explicit `contextInjection: \"never\"` still announces the removal. Sessions that already received a false removal from an earlier skipped turn get their files redelivered once on the next skipped turn.\n\n## Why This Change Was Made\n\nA skipped continuation withholds files that the pinned prompt prefix still carries, but the prompt series diffed the file-less prompt against that prefix and reported each Project Context section as removed. The bootstrap stage now reports that it withheld already-delivered context, and the pinned series reuses its own Project Context block for that comparison, placed inside the framed stable region (before `<!-- /openclaw:attempt:STABLE -->`, or the cache boundary when unframed). If the saved comparison state already lost the block, the block comes from the admitted prefix, which still has it.\n\nScope: this does not change what unpinned routes (OpenRouter, most OpenAI-compatible providers) receive on skipped turns. Whether those routes should keep workspace files under `continuation-skip` is the separate product question in #196122; this PR leaves the #154923 behavior as is.\n\n## Evidence\n\n- Regression in `session-prompt-state.test.ts` built from real `buildAttemptSystemPrompt` output (with STABLE/DYNAMIC framing): on a pinned series, a withheld turn emits no update; redelivering unchanged files emits nothing; a removal without the withheld flag reports `(removed)` for the file and its inner headings; a comparison state that already lost the files redelivers them (`Be brief.`) once.\n- Mutation checks: ignoring the STABLE terminator makes the \"no update\" assertion fail; dropping the admitted-prefix fallback makes the redelivery assertion fail.\n- `session-prompt-state.test.ts`: 36 passed. `tsc` for `tsconfig.core.json`, `test/tsconfig/tsconfig.core.test.agents-other.json`, `tsconfig.scripts.json`: no errors in changed files or for `workspaceContextWithheld`. `check:test-lines-ratchet` passes with the allocation. `oxfmt --check` / `oxlint` clean.\n- Evidence gap: I have not captured a live provider request on a pinned route. Pinned routes require a direct Anthropic or official OpenAI endpoint with a real key, so the existing loopback Gateway fixture (`gateway.continuation-skip-bootstrap.integration.test.ts`) resolves as unpinned and cannot show this path. `attempt-bootstrap-prepare.test.ts` hits `EMFILE` on Windows for 14 cases, identically on unmodified `main`.\n","closed_by":null,"reactions":{"url":"https://api.github.com/repos/openclaw/openclaw/issues/196404/reactions","total_count":1,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":1},"timeline_url":"https://api.github.com/repos/openclaw/openclaw/issues/196404/timeline","performed_via_github_app":null,"state_reason":null},{"url":"https://api.github.com/repos/openclaw/openclaw/issues/196082","repository_url":"https://api.github.com/repos/openclaw/openclaw","labels_url":"https://api.github.com/repos/openclaw/openclaw/issues/196082/labels{/name}","comments_url":"https://api.github.com/repos/openclaw/openclaw/issues/196082/comments","events_url":"https://api.github.com/repos/openclaw/openclaw/issues/196082/events","html_url":"https://github.com/openclaw/openclaw/pull/196082","id":6289540391,"node_id":"PR_kwDOQb6kR88AAAABN4qYiA","number":196082,"title":"fix: keep healthy MCP servers available after local authorization refusals","user":{"login":"pstarkgit","id":48455568,"node_id":"MDQ6VXNlcjQ4NDU1NTY4","avatar_url":"https://avatars.githubusercontent.com/u/48455568?v=4","gravatar_id":"","url":"https://api.github.com/users/pstarkgit","html_url":"https://github.com/pstarkgit","followers_url":"https://api.github.com/users/pstarkgit/followers","following_url":"https://api.github.com/users/pstarkgit/following{/other_user}","gists_url":"https://api.github.com/users/pstarkgit/gists{/gist_id}","starred_url":"https://api.github.com/users/pstarkgit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pstarkgit/subscriptions","organizations_url":"https://api.github.com/users/pstarkgit/orgs","repos_url":"https://api.github.com/users/pstarkgit/repos","events_url":"https://api.github.com/users/pstarkgit/events{/privacy}","received_events_url":"https://api.github.com/users/pstarkgit/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[{"id":9706244975,"node_id":"LA_kwDOQb6kR88AAAACQomLbw","url":"https://api.github.com/repos/openclaw/openclaw/labels/docs","name":"docs","color":"0A3069","default":false,"description":"Improvements or additions to documentation","archived_at":null,"archived_by":null},{"id":10064298857,"node_id":"LA_kwDOQb6kR88AAAACV-EDaQ","url":"https://api.github.com/repos/openclaw/openclaw/labels/gateway","name":"gateway","color":"57606A","default":false,"description":"Gateway runtime","archived_at":null,"archived_by":null},{"id":10069976942,"node_id":"LA_kwDOQb6kR88AAAACWDenbg","url":"https://api.github.com/repos/openclaw/openclaw/labels/agents","name":"agents","color":"57606A","default":false,"description":"Agent runtime and tooling","archived_at":null,"archived_by":null},{"id":10190106648,"node_id":"LA_kwDOQb6kR88AAAACX2CwGA","url":"https://api.github.com/repos/openclaw/openclaw/labels/size:%20S","name":"size: S","color":"8C959F","default":false,"description":null,"archived_at":null,"archived_by":null},{"id":10970449912,"node_id":"LA_kwDOQb6kR88AAAACjePH-A","url":"https://api.github.com/repos/openclaw/openclaw/labels/P1","name":"P1","color":"D93F0B","default":false,"description":"High-priority user-facing bug, regression, or broken workflow.","archived_at":null,"archived_by":null},{"id":10980541151,"node_id":"LA_kwDOQb6kR88AAAACjn3C3w","url":"https://api.github.com/repos/openclaw/openclaw/labels/rating:%20%F0%9F%A7%82%20unranked%20krab","name":"rating: 🧂 unranked krab","color":"8C2F39","default":false,"description":"Not merge-ready due to missing proof or serious correctness/safety concerns.","archived_at":null,"archived_by":null},{"id":10982444316,"node_id":"LA_kwDOQb6kR88AAAACjprNHA","url":"https://api.github.com/repos/openclaw/openclaw/labels/status:%20%F0%9F%93%A3%20needs%20proof","name":"status: 📣 needs proof","color":"D93F0B","default":false,"description":"The PR needs real behavior proof before ClawSweeper can clear the contributor ask.","archived_at":null,"archived_by":null},{"id":12711148517,"node_id":"LA_kwDOQb6kR88AAAAC9aS75Q","url":"https://api.github.com/repos/openclaw/openclaw/labels/clawsweeper:intake:bug","name":"clawsweeper:intake:bug","color":"c5def5","default":false,"description":"Preliminary submission classification; full source review pending.","archived_at":null,"archived_by":null},{"id":12711148710,"node_id":"LA_kwDOQb6kR88AAAAC9aS8pg","url":"https://api.github.com/repos/openclaw/openclaw/labels/clawsweeper:intake:needs-environment","name":"clawsweeper:intake:needs-environment","color":"c5def5","default":false,"description":"Preliminary submission classification; full source review pending.","archived_at":null,"archived_by":null},{"id":12711148957,"node_id":"LA_kwDOQb6kR88AAAAC9aS9nQ","url":"https://api.github.com/repos/openclaw/openclaw/labels/clawsweeper:intake:needs-repro","name":"clawsweeper:intake:needs-repro","color":"c5def5","default":false,"description":"Preliminary submission classification; full source review pending.","archived_at":null,"archived_by":null}],"state":"open","locked":false,"assignees":[],"milestone":null,"comments":5,"created_at":"2026-11-09T15:54:41Z","updated_at":"2026-11-10T06:32:46Z","closed_at":null,"assignee":null,"author_association":"CONTRIBUTOR","issue_field_values":[],"type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https://api.github.com/repos/openclaw/openclaw/pulls/196082","html_url":"https://github.com/openclaw/openclaw/pull/196082","diff_url":"https://github.com/openclaw/openclaw/pull/196082.diff","patch_url":"https://github.com/openclaw/openclaw/pull/196082.patch","merged_at":null},"body":"Related: #185303. Companion to #188881, which addresses cross-agent grant inheritance.\n\n## What Problem This Solves\n\nFixes healthy configured MCP servers being paused for 60 seconds after three locally refused tool calls, even though those calls never reached the server.\n\n## User Impact\n\nLocal authorization refusals still block execution, but a subsequent authorized call can use the healthy server immediately. Genuine server failures retain their cooldown. No configuration or credential changes are required.\n\n## Why This Change Was Made\n\nUse the existing host-authenticated `ToolAuthorizationError` for the bridge's point-of-I/O refusal, and exclude that trusted local refusal from server-health accounting. No authorization check is removed, no call is retried, and previous real server failures are not cleared. The runtime checks both the error type and its private host-construction trust record; remote error text cannot opt out of cooldown.\n\nThis is the server-health part of #185303. It does not replace #188881 or claim to fix the separate handoff lifetime defect. The behavioral change adds 7 lines and replaces one error construction. An unchanged backoff type moves to the existing shared types module to satisfy the line-cap ratchet. No new state, error class, configuration or retry path.\n\n## Evidence\n\n- New regression fails on base `7587dd0a6f98bc9a1562a8cf70cccfc93a36f2f1`: three local bridge refusals send zero configured-server tool calls, but the next authorized call is rejected as server-paused. With this change it reaches the real HTTP MCP fixture.\n- Existing real-server failure/cooldown control remains green. Focused authority, network-error, cooldown and tool-prefix suites: **22 passed across 4 files**, **69.16 seconds total local wall time** (including cold worker compilation). The changed test file has 2 passing tests; test execution is under one second. After the final type-only move, both owning cooldown tests passed again (57.05 seconds local wall time, including compilation). CI seconds are pending.\n- Production and owning agent-test typechecks, targeted type-aware lint, formatting, test-line ratchet and `git diff --check` pass. The 63-line allocation records the real bridge-to-HTTP regression rather than a mocked failure-counter assertion.\n- Fresh independent static review covered the complete production/test/docs/allocation diff against the base above at P0-P2 coverage; no findings. This is a local agent review, not a local ClawSweeper/autoreview run.\n- Validation used the pinned package manager and Bun test runner with an explicit supported SQLite library. No production gateway restart, live-model cross-agent test or full release build was performed. Broad CI and maintainer review remain pending.\n\n<!-- mcp-cooldown-runtime-evidence-summary:fcf2de1 -->\n\n### Compiled Gateway runtime proof\n\n[Redacted terminal logs and complete standalone driver](https://github.com/openclaw/openclaw/pull/196082#issuecomment-6760743015) cover merge candidate `fcf2de1224cb67ec560b9ae5a0b8603111932d86`. The canonical runtime-profile build passed. Three real grant revocations returned authorization errors and sent zero configured-server `tools/call` requests; a fresh grant reached the same unchanged runtime immediately, returning `healthy` in 42 ms (43 ms since the third refusal). The installed older compiled baseline instead rejected that fresh grant as server-paused. Discovery traffic was counted separately.\n\nThis used a full isolated compiled Gateway, its real HTTP listener, admission and grant owners, a synthetic read-only bridge, and a directly instantiated production session MCP runtime. It is not a released-build deployment, a model-turn/normal agent-tool-registry test, an exact-revision runtime A/B, or the distinct recipient-authority proof for #188881. Exact-base regression proof remains separate. Source profile, operator Gateway and provider credentials were untouched.\n","closed_by":null,"reactions":{"url":"https://api.github.com/repos/openclaw/openclaw/issues/196082/reactions","total_count":1,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":1},"timeline_url":"https://api.github.com/repos/openclaw/openclaw/issues/196082/timeline","performed_via_github_app":null,"state_reason":null},{"url":"https://api.github.com/repos/openclaw/openclaw/issues/196468","repository_url":"https://api.github.com/repos/openclaw/openclaw","labels_url":"https://api.github.com/repos/openclaw/openclaw/issues/196468/labels{/name}","comments_url":"https://api.github.com/repos/openclaw/openclaw/issues/196468/comments","events_url":"https://api.github.com/repos/openclaw/openclaw/issues/196468/events","html_url":"https://github.com/openclaw/openclaw/pull/196468","id":6301111192,"node_id":"PR_kwDOQb6kR88AAAABOB6iUA","number":196468,"title":"fix(ui): keep source updates compact and honor text size across surfaces","user":{"login":"roboclaw-bot","id":309084314,"node_id":"U_kgDOEmxAmg","avatar_url":"https://avatars.githubusercontent.com/u/309084314?v=4","gravatar_id":"","url":"https://api.github.com/users/roboclaw-bot","html_url":"https://github.com/roboclaw-bot","followers_url":"https://api.github.com/users/roboclaw-bot/followers","following_url":"https://api.github.com/users/roboclaw-bot/following{/other_user}","gists_url":"https://api.github.com/users/roboclaw-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/roboclaw-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/roboclaw-bot/subscriptions","organizations_url":"https://api.github.com/users/roboclaw-bot/orgs","repos_url":"https://api.github.com/users/roboclaw-bot/repos","events_url":"https://api.github.com/users/roboclaw-bot/events{/privacy}","received_events_url":"https://api.github.com/users/roboclaw-bot/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[{"id":9706244975,"node_id":"LA_kwDOQb6kR88AAAACQomLbw","url":"https://api.github.com/repos/openclaw/openclaw/labels/docs","name":"docs","color":"0A3069","default":false,"description":"Improvements or additions to documentation","archived_at":null,"archived_by":null},{"id":10064298757,"node_id":"LA_kwDOQb6kR88AAAACV-EDBQ","url":"https://api.github.com/repos/openclaw/openclaw/labels/app:%20web-ui","name":"app: web-ui","color":"6E7781","default":false,"description":"App: web-ui","archived_at":null,"archived_by":null},{"id":10064299264,"node_id":"LA_kwDOQb6kR88AAAACV-EFAA","url":"https://api.github.com/repos/openclaw/openclaw/labels/extensions:%20memory-core","name":"extensions: memory-core","color":"6E7781","default":false,"description":"Extension: memory-core","archived_at":null,"archived_by":null},{"id":10190106804,"node_id":"LA_kwDOQb6kR88AAAACX2CwtA","url":"https://api.github.com/repos/openclaw/openclaw/labels/size:%20XL","name":"size: XL","color":"8C959F","default":false,"description":null,"archived_at":null,"archived_by":null},{"id":11089406294,"node_id":"LA_kwDOQb6kR88AAAAClPrpVg","url":"https://api.github.com/repos/openclaw/openclaw/labels/plugin:%20workboard","name":"plugin: workboard","color":"ededed","default":false,"description":null,"archived_at":null,"archived_by":null},{"id":11255372582,"node_id":"LA_kwDOQb6kR88AAAACnt9bJg","url":"https://api.github.com/repos/openclaw/openclaw/labels/extensions:%20clawrouter","name":"extensions: clawrouter","color":"6E7781","default":false,"description":"Extension: clawrouter","archived_at":null,"archived_by":null},{"id":12323590438,"node_id":"LA_kwDOQb6kR88AAAAC3osRJg","url":"https://api.github.com/repos/openclaw/openclaw/labels/ci:full","name":"ci:full","color":"1D76DB","default":false,"description":"Keep ordinary native-locale CI selection on the next PR run.","archived_at":null,"archived_by":null},{"id":12544659423,"node_id":"LA_kwDOQb6kR88AAAAC67hP3w","url":"https://api.github.com/repos/openclaw/openclaw/labels/channel:%20x","name":"channel: x","color":"ededed","default":false,"description":null,"archived_at":null,"archived_by":null},{"id":12667453697,"node_id":"LA_kwDOQb6kR88AAAAC8woBAQ","url":"https://api.github.com/repos/openclaw/openclaw/labels/plugin:%20mcp-relay","name":"plugin: mcp-relay","color":"ededed","default":false,"description":null,"archived_at":null,"archived_by":null},{"id":12711148517,"node_id":"LA_kwDOQb6kR88AAAAC9aS75Q","url":"https://api.github.com/repos/openclaw/openclaw/labels/clawsweeper:intake:bug","name":"clawsweeper:intake:bug","color":"c5def5","default":false,"description":"Preliminary submission classification; full source review pending.","archived_at":null,"archived_by":null},{"id":12711148710,"node_id":"LA_kwDOQb6kR88AAAAC9aS8pg","url":"https://api.github.com/repos/openclaw/openclaw/labels/clawsweeper:intake:needs-environment","name":"clawsweeper:intake:needs-environment","color":"c5def5","default":false,"description":"Preliminary submission classification; full source review pending.","archived_at":null,"archived_by":null},{"id":12711148957,"node_id":"LA_kwDOQb6kR88AAAAC9aS9nQ","url":"https://api.github.com/repos/openclaw/openclaw/labels/clawsweeper:intake:needs-repro","name":"clawsweeper:intake:needs-repro","color":"c5def5","default":false,"description":"Preliminary submission classification; full source review pending.","archived_at":null,"archived_by":null},{"id":12832800732,"node_id":"LA_kwDOQb6kR88AAAAC_OT_3A","url":"https://api.github.com/repos/openclaw/openclaw/labels/plugin:%20knowledge","name":"plugin: knowledge","color":"ededed","default":false,"description":null,"archived_at":null,"archived_by":null},{"id":12978973517,"node_id":"LA_kwDOQb6kR88AAAADBZtrTQ","url":"https://api.github.com/repos/openclaw/openclaw/labels/extensions:%20deep-research","name":"extensions: deep-research","color":"ededed","default":false,"description":null,"archived_at":null,"archived_by":null},{"id":12989402760,"node_id":"LA_kwDOQb6kR88AAAADBjqOiA","url":"https://api.github.com/repos/openclaw/openclaw/labels/plugin:%20openclaw-id-access","name":"plugin: openclaw-id-access","color":"ededed","default":false,"description":null,"archived_at":null,"archived_by":null}],"state":"open","locked":false,"assignees":[],"milestone":null,"comments":1,"created_at":"2026-11-10T05:45:27Z","updated_at":"2026-11-10T06:32:37Z","closed_at":null,"assignee":null,"author_association":"COLLABORATOR","issue_field_values":[],"type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https://api.github.com/repos/openclaw/openclaw/pulls/196468","html_url":"https://github.com/openclaw/openclaw/pull/196468","diff_url":"https://github.com/openclaw/openclaw/pull/196468.diff","patch_url":"https://github.com/openclaw/openclaw/pull/196468.patch","merged_at":null},"body":"## What Problem This Solves\n\nFixes source-update rows rendering at full chat-text size, and readable interface text ignoring the Text size preference across Control UI pages, panels, and bundled plugin views.\n\n## User Impact\n\nSource updates use compact 12px metadata at the default setting. Interface text, code, tables, and their line heights now follow the existing 90–140% preference consistently. Default sizes elsewhere are preserved; icons, avatars, remote browser/desktop content, and terminal cells keep independent sizing. No configuration, schema, or migration changes are required.\n\n## Why This Change Was Made\n\nThe shared disclosure font reset overrode the source-update row. The wider audit found incomplete adoption of the existing text-scale tokens. This repairs the owning stylesheets rather than adding a global descendant override or scaling root-relative layout geometry. Two-line mobile titles and label containers grow with their text instead of clipping it.\n\n## Evidence\n\n- Screened all 247 production UI stylesheets and bundled plugin view roots; visited all 56 registered routes at 1440px and 390px with synthetic Gateway data before and after. This is route/state coverage, not a claim that every populated overlay was exercised.\n- Reproduced the reported row at 14px instead of 12px; code staying at 12px/18px at 125%; a Settings heading ignoring 110%; and a rebuilt Workboard card ignoring 125%. The new assertions fail on the original owning stylesheets and pass with the repairs.\n- 14 focused product tests pass across chat activity, main/Side chat typography, Appearance preferences, and rebuilt Workboard loading/recovery. Activity also checks all five supported size stops and full two-line mobile titles at 140%. The integrated four-file replay passed all 14 tests in 35.58s including the UI production build; the final compact-bounds/five-size-stop activity replay passed 4 tests in 76.39s including its build. [Exact-head CI run 42765008330](https://github.com/openclaw/openclaw/actions/runs/42765008330) finished: 45 jobs passed, three workload jobs and their aggregate gate failed, and 22 skipped. Observed wall durations of the 49 executed jobs total 16,896 seconds; this is not billing or incremental PR cost.\n- Exact-head [performance CI](https://github.com/openclaw/openclaw/actions/runs/42765008330/job/129659877950) reports total CSS increasing from 326,470 to 328,754 bytes gzip (+2,284 bytes) and 1,682,010 to 1,712,664 bytes raw (+30,654 bytes). The current fixed ceilings are 326,575 gzip and 1,682,231 raw, so this gate is not green. No budget increase or exception has been applied; owner acceptance of the measured payload trade-off is needed before changing these limits.\n- Source comparison verifies unchanged default declaration values outside the compact source-row repair and the explicit text-container fixes. The change is mostly mechanical token adoption across 167 CSS files; no new theme transport, renderer, or sizing manager.\n- Local autoreview (Codex, P0–P2) reviewed the complete candidate against integrated main `a7ba22b91b85e859e63ac09fcf18722f13d6f301`, including the actual shared disclosure stylesheet context. Its mobile-title clipping finding was reproduced and fixed; the final review reports no actionable findings. Local ClawSweeper is unavailable; the documented autoreview/hosted-review fallback is used.\n- UI and test-graph typechecks, touched-code lint, UI Stylelint, formatting, whitespace, and production/full-tree unused-file checks pass. Plugin styles add no diagnostics; Knowledge retains its unchanged pre-existing Stylelint diagnostics. Broad exact-head CI remains the landing gate.\n- The 80-line regression allocation extends existing production-boundary scenarios; it is needed for text-scale application, cascade and clipping failures while retaining navigation and recovery assertions. No test-only production seams were added.\n\n<details>\n<summary>Additional exact-head CI failure investigation</summary>\n\n- Thinking argument completion: the existing `chat-thinking-arguments.e2e.test.ts` fails identically in all three viewports on both candidate `c836010335addfaec6955ed5db79b294283c4fdb` and an independently prepared, clean exact-base checkout `a7ba22b91b85e859e63ac09fcf18722f13d6f301`: expected `/think ultra`, received `/think `. Candidate: 3 failed/1 passed, 60.02s; exact base: 3 failed/1 passed, 63.99s wall time. The completion-owner blob is identical (`bedec0dc9077f90336b49b6fd9d7e967111b6aa4`); this reproduces an inherited baseline regression, not a typography repair. The CI classifier still calls the job new because its earlier matching main job passed. No failure is relabeled green.\n- Collapsed question: the landscape tap-after-Details-close case failed in CI. Its exact-case replay passes, the complete 15-test file passes in original file order, and a controlled 6× CPU-throttled native-touch trace also passes with pointer/touch/click events reaching the expand control. These passing attempts do **not** establish a fix or baseline attribution. The original CI failure remains unresolved; no timeout, assertion, or CI rerun was used to hide it.\n\n</details>\n\nThe confirmed merge conflict was an upstream form-style move: its existing error-label scale fix follows the form owner into Settings. Compact source-update hover bounds remain owned by the shared disclosure rather than stretching across the transcript.\n\n### Source-update metadata — default 100%\n\nBefore\n\n![Source-update row before](https://github.com/user-attachments/assets/00441cd5-6555-4119-8bb2-7caeb114ee3f)\n\nAfter\n\n![Source-update row after](https://github.com/user-attachments/assets/d3fa2c8e-f2f9-45a4-9459-e17d195faad4)\n\n### Bundled plugin — 125% text preference\n\nThe host header already follows the preference; previously the plugin card labels did not. These captures isolate the plugin stylesheet repair.\n\nBefore\n\n![Workboard at 125 percent before](https://github.com/user-attachments/assets/25acfe1c-6ff0-4dd0-80d3-0221057c3d54)\n\nAfter\n\n![Workboard at 125 percent after](https://github.com/user-attachments/assets/2fb0d66a-ceb7-408f-a7d4-8b882de79e31)\n\nWorked on by:\n- @vincentkoc\n\n## Work sessions\n\nLinked for team reference; these sessions aren’t public.\n\n- [Discussion, implementation and verification](https://team.openclaw.ai/chat/roboclaw/~key/dashboard/338ced85-8571-497f-9a8a-787eb9e0f66d)\n\n## Worked on by\n\n- @vincentkoc\n\n<!-- openclaw-publication:f0187f25-ab73-4426-9e13-5edce38f4ca2 -->","closed_by":null,"reactions":{"url":"https://api.github.com/repos/openclaw/openclaw/issues/196468/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https://api.github.com/repos/openclaw/openclaw/issues/196468/timeline","performed_via_github_app":null,"state_reason":null},{"url":"https://api.github.com/repos/openclaw/openclaw/issues/196448","repository_url":"https://api.github.com/repos/openclaw/openclaw","labels_url":"https://api.github.com/repos/openclaw/openclaw/issues/196448/labels{/name}","comments_url":"https://api.github.com/repos/openclaw/openclaw/issues/196448/comments","events_url":"https://api.github.com/repos/openclaw/openclaw/issues/196448/events","html_url":"https://github.com/openclaw/openclaw/pull/196448","id":6300494873,"node_id":"PR_kwDOQb6kR88AAAABOBbMZA","number":196448,"title":"fix: prevent provider catalog failures during concurrent SDK imports","user":{"login":"1052326311","id":65798732,"node_id":"MDQ6VXNlcjY1Nzk4NzMy","avatar_url":"https://avatars.githubusercontent.com/u/65798732?v=4","gravatar_id":"","url":"https://api.github.com/users/1052326311","html_url":"https://github.com/1052326311","followers_url":"https://api.github.com/users/1052326311/followers","following_url":"https://api.github.com/users/1052326311/following{/other_user}","gists_url":"https://api.github.com/users/1052326311/gists{/gist_id}","starred_url":"https://api.github.com/users/1052326311/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/1052326311/subscriptions","organizations_url":"https://api.github.com/users/1052326311/orgs","repos_url":"https://api.github.com/users/1052326311/repos","events_url":"https://api.github.com/users/1052326311/events{/privacy}","received_events_url":"https://api.github.com/users/1052326311/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[{"id":10190106648,"node_id":"LA_kwDOQb6kR88AAAACX2CwGA","url":"https://api.github.com/repos/openclaw/openclaw/labels/size:%20S","name":"size: S","color":"8C959F","default":false,"description":null,"archived_at":null,"archived_by":null},{"id":10970446441,"node_id":"LA_kwDOQb6kR88AAAACjeO6aQ","url":"https://api.github.com/repos/openclaw/openclaw/labels/P2","name":"P2","color":"FBCA04","default":false,"description":"Normal backlog priority with limited blast radius.","archived_at":null,"archived_by":null},{"id":10980703344,"node_id":"LA_kwDOQb6kR88AAAACjoA8cA","url":"https://api.github.com/repos/openclaw/openclaw/labels/rating:%20%F0%9F%A6%AA%20silver%20shellfish","name":"rating: 🦪 silver shellfish","color":"7A828E","default":false,"description":"Thin PR readiness signal; proof, validation, or implementation needs work.","archived_at":null,"archived_by":null},{"id":10982444316,"node_id":"LA_kwDOQb6kR88AAAACjprNHA","url":"https://api.github.com/repos/openclaw/openclaw/labels/status:%20%F0%9F%93%A3%20needs%20proof","name":"status: 📣 needs proof","color":"D93F0B","default":false,"description":"The PR needs real behavior proof before ClawSweeper can clear the contributor ask.","archived_at":null,"archived_by":null}],"state":"open","locked":false,"assignees":[],"milestone":null,"comments":2,"created_at":"2026-11-10T04:49:18Z","updated_at":"2026-11-10T06:32:26Z","closed_at":null,"assignee":null,"author_association":"CONTRIBUTOR","issue_field_values":[],"type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https://api.github.com/repos/openclaw/openclaw/pulls/196448","html_url":"https://github.com/openclaw/openclaw/pull/196448","diff_url":"https://github.com/openclaw/openclaw/pull/196448.diff","patch_url":"https://github.com/openclaw/openclaw/pull/196448.patch","merged_at":null},"body":"Closes #195477\n\n## What Problem This Solves\n\nProvider catalogs can fail to load with `ERR_REQUIRE_ESM_RACE_CONDITION` when a host chunk starts importing the SDK while a plugin requires the same module.\n\n## User Impact\n\nCatalog discovery can finish for both consumers without serializing providers. Host async imports, query URL identity, and plugin alias restrictions remain intact.\n\n## Why This Change Was Made\n\nPrepare an already exported SDK target before an adjacent host chunk starts its ESM evaluation, using the existing resolver and SDK contexts. Host chunks gain no plugin alias grant. Host-only top-level-await graphs retain native async loading; other errors still propagate.\n\n## Evidence\n\n- Node 26.8.2: the new host regression fails on base `e27557203a5279ca4d56c21a531a291c0d5c794a` with `ERR_REQUIRE_ESM_RACE_CONDITION`; existing alias/relative cases pass. The final loader suite passes all 24 tests with `OPENCLAW_VITEST_RUNTIME=node node scripts/run-vitest.mjs src/plugins/loader.lazy-alias.test.ts --maxWorkers=1`.\n- A local probe through the real `runProviderCatalog` and native resolver reproduces a failed plugin catalog on the base and three successful catalogs on the fix, including an independent healthy sibling. Generated module fixtures also verify host TLA, query URLs, unexported imports, unrelated parents, and preserved plugin/error rejection behavior. This uses synthetic SDK/hooks; full implicit discovery, live OpenAI/xAI calls, an installed Gateway, and a stable-to-candidate upgrade were not exercised.\n- Focused plugin-test typecheck, lint, format, plugin import-boundary inventory and staged diff/secret/size checks pass. Independent read-only Codex review found a host TLA compatibility regression and an incorrect fixture preference; both were corrected, with no remaining actionable findings. Local autoreview/ClawSweeper was not run.\n- The test-line ratchet still fails by **12 inherited lines**: exact base 6,615,496 / ceiling 6,615,484; candidate 6,615,518 / ceiling 6,615,506. A separate allocation grants exactly the 22 net regression lines needed for host concurrency and native async boundary coverage; the shared scalar is unchanged. This is a disclosed failed check, not a pass or CI exemption.\n\n- `pnpm build` completed with exit 0, covering runtime bundles, declarations, SDK exports and Control UI. Its UI-size report lists three over-budget measurements; no UI-size qualification is claimed.\n- Built OpenAI and xAI cold imports both complete successfully with the repository profiler, concurrency 1, in an isolated home. The final report qualifies clean source/build/entry identity. The full build ran over the exact committed source bytes before committing; generated build info was refreshed through its canonical script afterward. These are cold-import results, not a claim about activation, live catalog requests, or performance improvement.\n## Follow-up verification (November 10)\n\nThe reviewed source head is unchanged: `2b4d3809aec6ea3ec6d4687576f6e032ca933630`.\n\n- Ran the built shipped launcher, `node openclaw.mjs models list --all --refresh --json`, with isolated home/config/state, OpenAI and xAI enabled, and no provider credentials. It entered local catalog refresh and exited 0 with 16 OpenAI model rows; no xAI rows were returned without credentials.\n- Started a separate isolated built Gateway on loopback, then ran that same CLI refresh through its real `models.list` RPC. The Gateway reached ready, the CLI returned 16 model rows and exit 0, and the Gateway shut down cleanly with exit 0. The local Gateway token was synthetic. These checks exercised empty-auth catalog loading and projection, not live vendor discovery or inference.\n- The standalone CLI module-hook trace shows OpenAI's `.setup` catalog and xAI's plugin entry resolving the shared SDK. The Gateway refresh trace shows the OpenAI `.setup` catalog. They do **not** show the adjacent root host chunk executing its catalog import. Consequently these successful product-entry smoke checks do not yet fulfill ClawSweeper's requested concurrent **host/plugin** discovery proof. That evidence request remains open; no re-review or merge-readiness claim is made here.\n\n### Current failed CI\n\nRun [42758257852](https://github.com/openclaw/openclaw/actions/runs/42758257852) completed with failures. `pnpm test:ci-failed 196448` reports the ratchet as `new` (matching scheduled main job passed, scope not compared) and the Baseten shard as `unknown` (no matching main job).\n\n- The hosted test-line result is **6,615,861 / 6,615,850, over 11**, with test delta +22. This differs from the original-base local debt of 12 reported above. An alternate-index check of the actual CI base could not read an unavailable sparse-checkout test blob with lazy fetching disabled; therefore inherited attribution for the hosted residual has not been independently established. The check remains failed.\n- The Baseten job reports deadline settlement before DNS preparation under Bun 1.4.4 (`phase=evaluation`, elapsed 7013 ms). The prescribed `pnpm test:ci-failed 196448 --run` subsequently passed the selected test locally on macOS at the unchanged source head: **1 passed, 4 skipped**, exit 0. A preceding local attempt exhausted disk while compiling test subprocesses and executed no tests. A passing local replay does not establish a fix or explain the hosted failure; its attribution remains unresolved. No CI rerun or unrelated source change was made.\n","closed_by":null,"reactions":{"url":"https://api.github.com/repos/openclaw/openclaw/issues/196448/reactions","total_count":1,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":1},"timeline_url":"https://api.github.com/repos/openclaw/openclaw/issues/196448/timeline","performed_via_github_app":null,"state_reason":null},{"url":"https://api.github.com/repos/openclaw/openclaw/issues/196480","repository_url":"https://api.github.com/repos/openclaw/openclaw","labels_url":"https://api.github.com/repos/openclaw/openclaw/issues/196480/labels{/name}","comments_url":"https://api.github.com/repos/openclaw/openclaw/issues/196480/comments","events_url":"https://api.github.com/repos/openclaw/openclaw/issues/196480/events","html_url":"https://github.com/openclaw/openclaw/pull/196480","id":6301426983,"node_id":"PR_kwDOQb6kR88AAAABOCKj3w","number":196480,"title":"fix(memory): stream session memory exports in bounded pages","user":{"login":"obviyus","id":22031114,"node_id":"MDQ6VXNlcjIyMDMxMTE0","avatar_url":"https://avatars.githubusercontent.com/u/22031114?v=4","gravatar_id":"","url":"https://api.github.com/users/obviyus","html_url":"https://github.com/obviyus","followers_url":"https://api.github.com/users/obviyus/followers","following_url":"https://api.github.com/users/obviyus/following{/other_user}","gists_url":"https://api.github.com/users/obviyus/gists{/gist_id}","starred_url":"https://api.github.com/users/obviyus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/obviyus/subscriptions","organizations_url":"https://api.github.com/users/obviyus/orgs","repos_url":"https://api.github.com/users/obviyus/repos","events_url":"https://api.github.com/users/obviyus/events{/privacy}","received_events_url":"https://api.github.com/users/obviyus/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[{"id":9706244975,"node_id":"LA_kwDOQb6kR88AAAACQomLbw","url":"https://api.github.com/repos/openclaw/openclaw/labels/docs","name":"docs","color":"0A3069","default":false,"description":"Improvements or additions to documentation","archived_at":null,"archived_by":null},{"id":10064299264,"node_id":"LA_kwDOQb6kR88AAAACV-EFAA","url":"https://api.github.com/repos/openclaw/openclaw/labels/extensions:%20memory-core","name":"extensions: memory-core","color":"6E7781","default":false,"description":"Extension: memory-core","archived_at":null,"archived_by":null},{"id":10069934037,"node_id":"LA_kwDOQb6kR88AAAACWDb_1Q","url":"https://api.github.com/repos/openclaw/openclaw/labels/scripts","name":"scripts","color":"57606A","default":false,"description":"Repository scripts","archived_at":null,"archived_by":null},{"id":10190106804,"node_id":"LA_kwDOQb6kR88AAAACX2CwtA","url":"https://api.github.com/repos/openclaw/openclaw/labels/size:%20XL","name":"size: XL","color":"8C959F","default":false,"description":null,"archived_at":null,"archived_by":null},{"id":10970449912,"node_id":"LA_kwDOQb6kR88AAAACjePH-A","url":"https://api.github.com/repos/openclaw/openclaw/labels/P1","name":"P1","color":"D93F0B","default":false,"description":"High-priority user-facing bug, regression, or broken workflow.","archived_at":null,"archived_by":null},{"id":10980541151,"node_id":"LA_kwDOQb6kR88AAAACjn3C3w","url":"https://api.github.com/repos/openclaw/openclaw/labels/rating:%20%F0%9F%A7%82%20unranked%20krab","name":"rating: 🧂 unranked krab","color":"8C2F39","default":false,"description":"Not merge-ready due to missing proof or serious correctness/safety concerns.","archived_at":null,"archived_by":null},{"id":10981589204,"node_id":"LA_kwDOQb6kR88AAAACjo3A1A","url":"https://api.github.com/repos/openclaw/openclaw/labels/merge-risk:%20%F0%9F%9A%A8%20security-boundary","name":"merge-risk: 🚨 security-boundary","color":"B60205","default":false,"description":"🚨 May affect sandboxing, authorization, credentials, or sensitive data.","archived_at":null,"archived_by":null},{"id":10981633625,"node_id":"LA_kwDOQb6kR88AAAACjo5uWQ","url":"https://api.github.com/repos/openclaw/openclaw/labels/merge-risk:%20%F0%9F%9A%A8%20availability","name":"merge-risk: 🚨 availability","color":"D93F0B","default":false,"description":"🚨 May cause crashes, hangs, restart loops, stalls, or process outages.","archived_at":null,"archived_by":null},{"id":10982444316,"node_id":"LA_kwDOQb6kR88AAAACjprNHA","url":"https://api.github.com/repos/openclaw/openclaw/labels/status:%20%F0%9F%93%A3%20needs%20proof","name":"status: 📣 needs proof","color":"D93F0B","default":false,"description":"The PR needs real behavior proof before ClawSweeper can clear the contributor ask.","archived_at":null,"archived_by":null}],"state":"open","locked":false,"assignees":[],"milestone":null,"comments":2,"created_at":"2026-11-10T06:13:45Z","updated_at":"2026-11-10T06:32:16Z","closed_at":null,"assignee":null,"author_association":"COLLABORATOR","issue_field_values":[],"type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https://api.github.com/repos/openclaw/openclaw/pulls/196480","html_url":"https://github.com/openclaw/openclaw/pull/196480","diff_url":"https://github.com/openclaw/openclaw/pull/196480.diff","patch_url":"https://github.com/openclaw/openclaw/pull/196480.patch","merged_at":null},"body":"Related: #196132, follow-up to #196158\n\n## What Problem This Solves\n\nFixes: the session memory export (used by memory indexing, dreaming ingestion and memory-forget) still runs its 512 MB transcript worker out of memory once a session holds about 240 MB of message text. #196158 halved the peak, but the export still built the whole session as one string in the worker and returned it to the main thread.\n\n## User Impact\n\nUser impact: very large sessions no longer crash the export worker or abort the Gateway during memory sync or dreaming, regardless of session size. Indexed content and stored hashes are unchanged.\n\n## Why This Change Was Made\n\n- The renderer emits ~1 MB pages over the existing `session-entries` worker channel and never builds the whole text. Transcripts over 4 MB are read in 2 MiB slices.\n- The persisted entry hash and dreaming prefix hash are computed incrementally and stay byte-identical to the previous formula, so existing indexes and dreaming checkpoints stay valid.\n- `buildSessionEntry` / `buildSessionEntries` keep their shape (they collect pages). Memory indexing, startup eligibility, dreaming ingestion and memory-forget move to `streamSessionEntry` / `streamSessionEntries`. The `memory-core-host-engine-sessions` subpath is private-local, so dropping `matchesSessionEntryPrefixHash` there is not a public break.\n- If the transcript changes between slices, the export restarts (up to 3 times) and tells consumers to discard partial pages.\n- Snapshot-based export paths made dead by the cutover are removed; export readers move to `session-accessor.sqlite-export-read.ts` (line cap).\n\n## Evidence\n\n- New real-worker regression `session-files-large-export.test.ts` (20,000 messages x 15,000 chars, ~300 MB; runs with `OPENCLAW_SESSION_EXPORT_STRESS=1`):\n  - parent `625945b`: fails with `ERR_WORKER_OUT_OF_MEMORY` in `sessionTranscript.session-entries`.\n  - this branch: passes in ~5 s; 380,000 lines, same hash and prefix hash from `buildSessionEntries`, `buildSessionEntry` and the paged API; >400 pages, none over 600K chars. Worker heap peaked at ~63-70 MiB (temporary probe, removed).\n- Equivalence `manager-session-export-equivalence.test.ts`: mixed session (user/assistant/tool calls and results, heartbeat, compaction, two resets, appends, long wrapped messages). Indexed chunks with provenance, source and entry hashes, and dreaming candidates across first scan, append, capped continuation and prefix mismatch are byte-identical to the parent; the test pins that fingerprint.\n- Suites (clean env): `packages/memory-host-sdk/src/host` 157 passed; `extensions/memory-core` 1830 passed / 67 skipped; `src/config/sessions/session-memory-entry.worker.test.ts` and related worker tests pass.\n- `pnpm check:changed`: everything passes except `Plugin SDK surface budget` (identical 3877 > 3865 on `origin/main`) and the dead export scan (no hits in changed files).\n\nRemaining limits, not addressed here:\n- Memory indexing still holds a session's prepared chunks on the main heap until it publishes them, because publishing replaces a session's rows at once. Bounding that needs batched publication in memory-core.\n- A changed session is read twice when indexed (change check, then chunking); a concurrent change is picked up on the next sync.\n- Archived JSONL/zst files still load the raw file text in-process; only rendered output is paged.\n","closed_by":null,"reactions":{"url":"https://api.github.com/repos/openclaw/openclaw/issues/196480/reactions","total_count":1,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":1},"timeline_url":"https://api.github.com/repos/openclaw/openclaw/issues/196480/timeline","performed_via_github_app":null,"state_reason":null},{"url":"https://api.github.com/repos/openclaw/openclaw/issues/188881","repository_url":"https://api.github.com/repos/openclaw/openclaw","labels_url":"https://api.github.com/repos/openclaw/openclaw/issues/188881/labels{/name}","comments_url":"https://api.github.com/repos/openclaw/openclaw/issues/188881/comments","events_url":"https://api.github.com/repos/openclaw/openclaw/issues/188881/events","html_url":"https://github.com/openclaw/openclaw/pull/188881","id":6129206730,"node_id":"PR_kwDOQb6kR88AAAABL4-7nQ","number":188881,"title":"fix: keep dispatched agents’ MCP calls independent of sender completion","user":{"login":"GoatInAHat","id":55002508,"node_id":"MDQ6VXNlcjU1MDAyNTA4","avatar_url":"https://avatars.githubusercontent.com/u/55002508?v=4","gravatar_id":"","url":"https://api.github.com/users/GoatInAHat","html_url":"https://github.com/GoatInAHat","followers_url":"https://api.github.com/users/GoatInAHat/followers","following_url":"https://api.github.com/users/GoatInAHat/following{/other_user}","gists_url":"https://api.github.com/users/GoatInAHat/gists{/gist_id}","starred_url":"https://api.github.com/users/GoatInAHat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoatInAHat/subscriptions","organizations_url":"https://api.github.com/users/GoatInAHat/orgs","repos_url":"https://api.github.com/users/GoatInAHat/repos","events_url":"https://api.github.com/users/GoatInAHat/events{/privacy}","received_events_url":"https://api.github.com/users/GoatInAHat/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[{"id":10064298857,"node_id":"LA_kwDOQb6kR88AAAACV-EDaQ","url":"https://api.github.com/repos/openclaw/openclaw/labels/gateway","name":"gateway","color":"57606A","default":false,"description":"Gateway runtime","archived_at":null,"archived_by":null},{"id":10069976942,"node_id":"LA_kwDOQb6kR88AAAACWDenbg","url":"https://api.github.com/repos/openclaw/openclaw/labels/agents","name":"agents","color":"57606A","default":false,"description":"Agent runtime and tooling","archived_at":null,"archived_by":null},{"id":10190106720,"node_id":"LA_kwDOQb6kR88AAAACX2CwYA","url":"https://api.github.com/repos/openclaw/openclaw/labels/size:%20M","name":"size: M","color":"8C959F","default":false,"description":null,"archived_at":null,"archived_by":null},{"id":10970449912,"node_id":"LA_kwDOQb6kR88AAAACjePH-A","url":"https://api.github.com/repos/openclaw/openclaw/labels/P1","name":"P1","color":"D93F0B","default":false,"description":"High-priority user-facing bug, regression, or broken workflow.","archived_at":null,"archived_by":null},{"id":10980703344,"node_id":"LA_kwDOQb6kR88AAAACjoA8cA","url":"https://api.github.com/repos/openclaw/openclaw/labels/rating:%20%F0%9F%A6%AA%20silver%20shellfish","name":"rating: 🦪 silver shellfish","color":"7A828E","default":false,"description":"Thin PR readiness signal; proof, validation, or implementation needs work.","archived_at":null,"archived_by":null},{"id":10981589204,"node_id":"LA_kwDOQb6kR88AAAACjo3A1A","url":"https://api.github.com/repos/openclaw/openclaw/labels/merge-risk:%20%F0%9F%9A%A8%20security-boundary","name":"merge-risk: 🚨 security-boundary","color":"B60205","default":false,"description":"🚨 May affect sandboxing, authorization, credentials, or sensitive data.","archived_at":null,"archived_by":null},{"id":10982444316,"node_id":"LA_kwDOQb6kR88AAAACjprNHA","url":"https://api.github.com/repos/openclaw/openclaw/labels/status:%20%F0%9F%93%A3%20needs%20proof","name":"status: 📣 needs proof","color":"D93F0B","default":false,"description":"The PR needs real behavior proof before ClawSweeper can clear the contributor ask.","archived_at":null,"archived_by":null}],"state":"open","locked":false,"assignees":[],"milestone":null,"comments":5,"created_at":"2026-10-31T00:37:16Z","updated_at":"2026-11-10T06:31:36Z","closed_at":null,"assignee":null,"author_association":"NONE","issue_field_values":[],"type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https://api.github.com/repos/openclaw/openclaw/pulls/188881","html_url":"https://github.com/openclaw/openclaw/pull/188881","diff_url":"https://github.com/openclaw/openclaw/pull/188881.diff","patch_url":"https://github.com/openclaw/openclaw/pull/188881.patch","merged_at":null},"body":"Closes #185303\n\n## What Problem This Solves\n\nFixes configured MCP calls failing with `Tool call authorization expired` when a recipient agent continues after the agent that dispatched it finishes its loopback MCP tool call.\n\n## User Impact\n\nAgents can continue using configured MCP servers after accepting work from another agent. Recipient cancellation and revocation still stop calls, and direct calls still enforce the caller's grant. No configuration changes are required.\n\n## Why This Change Was Made\n\nStart autonomous in-process agent execution outside the dispatching tool call's MCP authority store, at the same boundaries that already release the caller's operator-tool and transcript-writer context. This covers both ordinary agent dispatch and prepared sessionless execution.\n\nThe patch leaves request signals, admission checks, recipient authority, and configured-server failure backoff unchanged. Simplification kept one existing authority owner and two existing dispatch boundaries: production delta is 10 additions and 2 deletions, with no new state or retry mechanism. The 222-line regression and its matching test-line allocation are necessary to exercise both boundaries with real configured HTTP MCP I/O and cancellation/revocation controls.\n\n## Evidence\n\n- On base `bab51cf53226bd30303d43d1a50b73005b2ffcb5`, both recipient continuation and prepared sessionless execution fail on the expired sender grant. Three cancellation/revocation/direct-call controls pass.\n- With the fix, all five regression cases pass through real loopback JSON-RPC handling, sessions_send delivery, in-process dispatch/internal facade, and a configured HTTP MCP server. Only model execution is substituted.\n- Final regression: **5 passed**, 14.74 s Vitest / **17.91 s wall**; test execution itself is below one second.\n- Affected authority, commit-guard, continuation, requester-continuation, plugin-subagent, and session-fork suites plus the regression: **111 passed across 7 files**, **113.44 s wall**.\n- Production typecheck, owning Gateway test-graph typecheck, targeted type-aware lint, formatting, mock-export guard, test-line ratchet, and `git diff --check` passed on Node 24.22.1 with pinned pnpm 12.15.0. Remote proof bytes match this candidate.\n- **Local review gap:** isolated Codex autoreview was attempted on the complete local change against the base above at P0-P2 coverage, but authentication failed (401); no assessment was produced. The CLI is not signed in and no configured recovery provider is available. No clean-review claim is made.\n- **Live/CI gaps:** no live Claude-to-embedded model handoff was run. CI timing and broad-suite results are pending.\n","closed_by":null,"reactions":{"url":"https://api.github.com/repos/openclaw/openclaw/issues/188881/reactions","total_count":1,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":1},"timeline_url":"https://api.github.com/repos/openclaw/openclaw/issues/188881/timeline","performed_via_github_app":null,"state_reason":null},{"url":"https://api.github.com/repos/openclaw/openclaw/issues/196483","repository_url":"https://api.github.com/repos/openclaw/openclaw","labels_url":"https://api.github.com/repos/openclaw/openclaw/issues/196483/labels{/name}","comments_url":"https://api.github.com/repos/openclaw/openclaw/issues/196483/comments","events_url":"https://api.github.com/repos/openclaw/openclaw/issues/196483/events","html_url":"https://github.com/openclaw/openclaw/pull/196483","id":6301483296,"node_id":"PR_kwDOQb6kR88AAAABOCNbBA","number":196483,"title":"fix(agent-exec): temporary state cleanup fails with EBUSY on Windows","user":{"login":"rudy-07","id":202849483,"node_id":"U_kgDODBc8yw","avatar_url":"https://avatars.githubusercontent.com/u/202849483?v=4","gravatar_id":"","url":"https://api.github.com/users/rudy-07","html_url":"https://github.com/rudy-07","followers_url":"https://api.github.com/users/rudy-07/followers","following_url":"https://api.github.com/users/rudy-07/following{/other_user}","gists_url":"https://api.github.com/users/rudy-07/gists{/gist_id}","starred_url":"https://api.github.com/users/rudy-07/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rudy-07/subscriptions","organizations_url":"https://api.github.com/users/rudy-07/orgs","repos_url":"https://api.github.com/users/rudy-07/repos","events_url":"https://api.github.com/users/rudy-07/events{/privacy}","received_events_url":"https://api.github.com/users/rudy-07/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[{"id":10069934305,"node_id":"LA_kwDOQb6kR88AAAACWDcA4Q","url":"https://api.github.com/repos/openclaw/openclaw/labels/commands","name":"commands","color":"0A3069","default":false,"description":"Command implementations","archived_at":null,"archived_by":null},{"id":10190106648,"node_id":"LA_kwDOQb6kR88AAAACX2CwGA","url":"https://api.github.com/repos/openclaw/openclaw/labels/size:%20S","name":"size: S","color":"8C959F","default":false,"description":null,"archived_at":null,"archived_by":null},{"id":12711148517,"node_id":"LA_kwDOQb6kR88AAAAC9aS75Q","url":"https://api.github.com/repos/openclaw/openclaw/labels/clawsweeper:intake:bug","name":"clawsweeper:intake:bug","color":"c5def5","default":false,"description":"Preliminary submission classification; full source review pending.","archived_at":null,"archived_by":null},{"id":12711148710,"node_id":"LA_kwDOQb6kR88AAAAC9aS8pg","url":"https://api.github.com/repos/openclaw/openclaw/labels/clawsweeper:intake:needs-environment","name":"clawsweeper:intake:needs-environment","color":"c5def5","default":false,"description":"Preliminary submission classification; full source review pending.","archived_at":null,"archived_by":null},{"id":12711148957,"node_id":"LA_kwDOQb6kR88AAAAC9aS9nQ","url":"https://api.github.com/repos/openclaw/openclaw/labels/clawsweeper:intake:needs-repro","name":"clawsweeper:intake:needs-repro","color":"c5def5","default":false,"description":"Preliminary submission classification; full source review pending.","archived_at":null,"archived_by":null}],"state":"open","locked":false,"assignees":[],"milestone":null,"comments":2,"created_at":"2026-11-10T06:18:29Z","updated_at":"2026-11-10T06:30:00Z","closed_at":null,"assignee":null,"author_association":"NONE","issue_field_values":[],"type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https://api.github.com/repos/openclaw/openclaw/pulls/196483","html_url":"https://github.com/openclaw/openclaw/pull/196483","diff_url":"https://github.com/openclaw/openclaw/pull/196483.diff","patch_url":"https://github.com/openclaw/openclaw/pull/196483.patch","merged_at":null},"body":"Closes #196463\n\n## What Problem This Solves\n\nFixes: `openclaw agent exec` fails with `EBUSY` during exit cleanup on Windows when temporary or isolated state directories are used.\n\n## User Impact\n\nUser impact: Windows users running `openclaw agent exec` in temporary or isolated state mode can complete runs successfully without exit code 1 from file lock cleanup failures.\n\n## Why This Change Was Made\n\nOn Windows, open SQLite staging tokens in the temporary state directory hold open file handles to `owner.sqlite`. Because Windows prevents unlinking directories containing files with active file locks, `fs.rm` threw `EBUSY` when tearing down the temporary state directory.\n\nExported `releasePluginSourceCaptureInstancesForStateDirAsync` in `src/plugins/plugin-source-capture-directory.ts` to retire and release all active plugin-capture instances and close their open staging tokens for a targeted state directory. In `src/commands/agent-exec.ts`, this drain step is invoked during `agentExecCommand` cleanup before deleting the temporary state path.\n\n## Evidence\n\n1. Unit tests:\n   - `node scripts/run-vitest.mjs run src/plugins/plugin-source-capture-directory.test.ts -t \"releases and unlinks open capture staging tokens\"` passed (1 passed, 35 skipped).\n   - `node scripts/run-vitest.mjs run src/commands/agent-exec.test.ts -t \"releases plugin-capture tokens before removing temporary state directory\"` passed (1 passed, 43 skipped).\n2. Formatting and linting:\n   - `node --import ./scripts/tsx.mjs scripts/run-format.mts --check` passed across all modified files.\n   - `corepack pnpm oxlint` completed with 0 errors and 0 warnings.","closed_by":null,"reactions":{"url":"https://api.github.com/repos/openclaw/openclaw/issues/196483/reactions","total_count":1,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":1},"timeline_url":"https://api.github.com/repos/openclaw/openclaw/issues/196483/timeline","performed_via_github_app":null,"state_reason":null},{"url":"https://api.github.com/repos/openclaw/openclaw/issues/194473","repository_url":"https://api.github.com/repos/openclaw/openclaw","labels_url":"https://api.github.com/repos/openclaw/openclaw/issues/194473/labels{/name}","comments_url":"https://api.github.com/repos/openclaw/openclaw/issues/194473/comments","events_url":"https://api.github.com/repos/openclaw/openclaw/issues/194473/events","html_url":"https://github.com/openclaw/openclaw/pull/194473","id":6255342978,"node_id":"PR_kwDOQb6kR88AAAABNdvWcw","number":194473,"title":"fix: give root-aware recovery when file tools reject another repository","user":{"login":"jason-allen-oneal","id":8335428,"node_id":"MDQ6VXNlcjgzMzU0Mjg=","avatar_url":"https://avatars.githubusercontent.com/u/8335428?v=4","gravatar_id":"","url":"https://api.github.com/users/jason-allen-oneal","html_url":"https://github.com/jason-allen-oneal","followers_url":"https://api.github.com/users/jason-allen-oneal/followers","following_url":"https://api.github.com/users/jason-allen-oneal/following{/other_user}","gists_url":"https://api.github.com/users/jason-allen-oneal/gists{/gist_id}","starred_url":"https://api.github.com/users/jason-allen-oneal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jason-allen-oneal/subscriptions","organizations_url":"https://api.github.com/users/jason-allen-oneal/orgs","repos_url":"https://api.github.com/users/jason-allen-oneal/repos","events_url":"https://api.github.com/users/jason-allen-oneal/events{/privacy}","received_events_url":"https://api.github.com/users/jason-allen-oneal/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[{"id":9706244975,"node_id":"LA_kwDOQb6kR88AAAACQomLbw","url":"https://api.github.com/repos/openclaw/openclaw/labels/docs","name":"docs","color":"0A3069","default":false,"description":"Improvements or additions to documentation","archived_at":null,"archived_by":null},{"id":10064298757,"node_id":"LA_kwDOQb6kR88AAAACV-EDBQ","url":"https://api.github.com/repos/openclaw/openclaw/labels/app:%20web-ui","name":"app: web-ui","color":"6E7781","default":false,"description":"App: web-ui","archived_at":null,"archived_by":null},{"id":10069976942,"node_id":"LA_kwDOQb6kR88AAAACWDenbg","url":"https://api.github.com/repos/openclaw/openclaw/labels/agents","name":"agents","color":"57606A","default":false,"description":"Agent runtime and tooling","archived_at":null,"archived_by":null},{"id":10190106720,"node_id":"LA_kwDOQb6kR88AAAACX2CwYA","url":"https://api.github.com/repos/openclaw/openclaw/labels/size:%20M","name":"size: M","color":"8C959F","default":false,"description":null,"archived_at":null,"archived_by":null},{"id":10663364897,"node_id":"LA_kwDOQb6kR88AAAACe5YJIQ","url":"https://api.github.com/repos/openclaw/openclaw/labels/extensions:%20codex","name":"extensions: codex","color":"6E7781","default":false,"description":null,"archived_at":null,"archived_by":null},{"id":10873837225,"node_id":"LA_kwDOQb6kR88AAAACiCGWqQ","url":"https://api.github.com/repos/openclaw/openclaw/labels/proof:%20sufficient","name":"proof: sufficient","color":"0E8A16","default":false,"description":"ClawSweeper judged the real behavior proof convincing.","archived_at":null,"archived_by":null},{"id":10970522929,"node_id":"LA_kwDOQb6kR88AAAACjeTlMQ","url":"https://api.github.com/repos/openclaw/openclaw/labels/P3","name":"P3","color":"8C959F","default":false,"description":"Low-priority cleanup, docs, polish, ergonomics, or speculative work.","archived_at":null,"archived_by":null},{"id":10980565852,"node_id":"LA_kwDOQb6kR88AAAACjn4jXA","url":"https://api.github.com/repos/openclaw/openclaw/labels/rating:%20%F0%9F%90%9A%20platinum%20hermit","name":"rating: 🐚 platinum hermit","color":"0F766E","default":false,"description":"Good normal PR readiness with ordinary maintainer review expected.","archived_at":null,"archived_by":null},{"id":10982431516,"node_id":"LA_kwDOQb6kR88AAAACjpqbHA","url":"https://api.github.com/repos/openclaw/openclaw/labels/status:%20%F0%9F%91%80%20ready%20for%20maintainer%20look","name":"status: 👀 ready for maintainer look","color":"2DA44E","default":false,"description":"ClawSweeper has no concrete contributor-facing blocker left for this PR.","archived_at":null,"archived_by":null},{"id":12711148517,"node_id":"LA_kwDOQb6kR88AAAAC9aS75Q","url":"https://api.github.com/repos/openclaw/openclaw/labels/clawsweeper:intake:bug","name":"clawsweeper:intake:bug","color":"c5def5","default":false,"description":"Preliminary submission classification; full source review pending.","archived_at":null,"archived_by":null},{"id":12711148710,"node_id":"LA_kwDOQb6kR88AAAAC9aS8pg","url":"https://api.github.com/repos/openclaw/openclaw/labels/clawsweeper:intake:needs-environment","name":"clawsweeper:intake:needs-environment","color":"c5def5","default":false,"description":"Preliminary submission classification; full source review pending.","archived_at":null,"archived_by":null},{"id":12711148957,"node_id":"LA_kwDOQb6kR88AAAAC9aS9nQ","url":"https://api.github.com/repos/openclaw/openclaw/labels/clawsweeper:intake:needs-repro","name":"clawsweeper:intake:needs-repro","color":"c5def5","default":false,"description":"Preliminary submission classification; full source review pending.","archived_at":null,"archived_by":null},{"id":12797375931,"node_id":"LA_kwDOQb6kR88AAAAC-sh1uw","url":"https://api.github.com/repos/openclaw/openclaw/labels/clawtributors","name":"clawtributors","color":"5319E7","default":false,"description":"PR from a clawtributor","archived_at":null,"archived_by":null}],"state":"open","locked":false,"assignees":[],"milestone":null,"comments":8,"created_at":"2026-11-07T04:56:20Z","updated_at":"2026-11-10T06:29:17Z","closed_at":null,"assignee":null,"author_association":"CONTRIBUTOR","issue_field_values":[],"type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https://api.github.com/repos/openclaw/openclaw/pulls/194473","html_url":"https://github.com/openclaw/openclaw/pull/194473","diff_url":"https://github.com/openclaw/openclaw/pull/194473.diff","patch_url":"https://github.com/openclaw/openclaw/pull/194473.patch","merged_at":null},"body":"## What Problem This Solves\n\nFixes: host file tools suggest ineffective worker recovery when an authorized task targets a repository outside the session's recorded root.\n\n## User Impact\n\nRead, write, edit, directory listing, and patch rejections now explain recovery that matches the effective boundary. Configuration-only containment can use a permitted worker with the target `cwd`; a hidden native child cannot widen an inherited session root by changing `cwd`. An operator-authorized session rooted at the target can complete the task. Required roots, sender restrictions, and sandbox boundaries remain enforced. No permissions, allowed roots, defaults, or configuration semantics change.\n\n## Why This Change Was Made\n\nThe existing patch-tool recovery was appropriate for configuration-only containment but was also advertised for recorded session roots. This PR shares the diagnostic owner across host file tools, carries the already-recorded containment source into their messages, and corrects the `sessions_spawn.cwd` description to match the enforced hidden-child contract. Scratch-file guidance remains available; container/mount errors retain their existing explanation.\n\nRelated: #194472 addresses the separate owner-tool/network-taint failure and remains unchanged.\n\n## Evidence\n\n- Regression composition exercises the prepared policy and production read/write/edit/ls/patch tools with a target `cwd` outside the recorded root. The two new cases fail on the prior PR source and pass with this amendment; rejected operations leave target files unchanged, while in-root writes remain permitted. The spawn-contract regression also fails against the prior schema.\n- Isolated live Gateway proof used a real agent/model and public session/chat APIs. Configuration-only containment recovered through a hidden target-`cwd` worker; Workspace mode with admitted admin authority recovered through a visible target-rooted worker without changing the parent root; a directly created target-rooted Workspace session completed without Full Access. Without `operator.admin`, visible creation was forbidden, no child was persisted, files stayed unchanged, and the delivered final named the required operator action. Successful cases verified all four file operations, exact canary/newline contents, persisted roots/modes, and delivered final events.\n- One initial acceptance assertion incorrectly rejected all child spawns, including the valid admin-authorized visible worker. Inspection of the original records and independent filesystem checks established that allowed outcome; the contrasting lower-scope run verified the denial. A yielding acknowledgment alone was never counted as completion.\n- Compatibility validation passed 157 tests across nine files before the final spawn-description correction. The final candidate passed 41 focused tests, production and affected test type checks, targeted lint/format, and the runtime build. Live source hashes matched the reviewed candidate. Hosted CI for the new head remains a separate gate.\n- Independent review: Codex autoreview completed a P0–P3 review of the amendment against `d0c37b128383e05031f639ab5c5dd04acb9222ca`, with no actionable findings (`scoped-clean`). The reviewed local snapshot was committed unchanged as `4c23b3c5a8ab2281ca94f87df970d777b1cba03a`. This was source review; it did not independently rerun the reported tests. Prior authentication failures produced no review and are superseded only by this completed pass..\n\nThe contributor's [earlier scripted CLI evidence](https://github.com/jason-allen-oneal/openclaw/blob/e5f261203c704c3e2532282f2f3ca1b0d1267e25/README.md) remains valid for its disclosed source hashes and scope; it did not claim real-model recovery through `sessions_spawn`. The live checks above cover that previously missing path. Earlier hosted CI and ClawSweeper results cover `d0c37b128383e05031f639ab5c5dd04acb9222ca`, not this amendment.\n\nContributor: @jason-allen-oneal.\n","closed_by":null,"reactions":{"url":"https://api.github.com/repos/openclaw/openclaw/issues/194473/reactions","total_count":1,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":1},"timeline_url":"https://api.github.com/repos/openclaw/openclaw/issues/194473/timeline","performed_via_github_app":null,"state_reason":null},{"url":"https://api.github.com/repos/openclaw/openclaw/issues/196383","repository_url":"https://api.github.com/repos/openclaw/openclaw","labels_url":"https://api.github.com/repos/openclaw/openclaw/issues/196383/labels{/name}","comments_url":"https://api.github.com/repos/openclaw/openclaw/issues/196383/comments","events_url":"https://api.github.com/repos/openclaw/openclaw/issues/196383/events","html_url":"https://github.com/openclaw/openclaw/pull/196383","id":6298681019,"node_id":"PR_kwDOQb6kR88AAAABOAAAZw","number":196383,"title":"fix(templates): capture cron inference authority during Add","user":{"login":"Patrick-Erichsen","id":20157849,"node_id":"MDQ6VXNlcjIwMTU3ODQ5","avatar_url":"https://avatars.githubusercontent.com/u/20157849?v=4","gravatar_id":"","url":"https://api.github.com/users/Patrick-Erichsen","html_url":"https://github.com/Patrick-Erichsen","followers_url":"https://api.github.com/users/Patrick-Erichsen/followers","following_url":"https://api.github.com/users/Patrick-Erichsen/following{/other_user}","gists_url":"https://api.github.com/users/Patrick-Erichsen/gists{/gist_id}","starred_url":"https://api.github.com/users/Patrick-Erichsen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Patrick-Erichsen/subscriptions","organizations_url":"https://api.github.com/users/Patrick-Erichsen/orgs","repos_url":"https://api.github.com/users/Patrick-Erichsen/repos","events_url":"https://api.github.com/users/Patrick-Erichsen/events{/privacy}","received_events_url":"https://api.github.com/users/Patrick-Erichsen/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[{"id":10064298857,"node_id":"LA_kwDOQb6kR88AAAACV-EDaQ","url":"https://api.github.com/repos/openclaw/openclaw/labels/gateway","name":"gateway","color":"57606A","default":false,"description":"Gateway runtime","archived_at":null,"archived_by":null},{"id":10190106760,"node_id":"LA_kwDOQb6kR88AAAACX2CwiA","url":"https://api.github.com/repos/openclaw/openclaw/labels/size:%20L","name":"size: L","color":"8C959F","default":false,"description":null,"archived_at":null,"archived_by":null},{"id":10873837225,"node_id":"LA_kwDOQb6kR88AAAACiCGWqQ","url":"https://api.github.com/repos/openclaw/openclaw/labels/proof:%20sufficient","name":"proof: sufficient","color":"0E8A16","default":false,"description":"ClawSweeper judged the real behavior proof convincing.","archived_at":null,"archived_by":null},{"id":10970446441,"node_id":"LA_kwDOQb6kR88AAAACjeO6aQ","url":"https://api.github.com/repos/openclaw/openclaw/labels/P2","name":"P2","color":"FBCA04","default":false,"description":"Normal backlog priority with limited blast radius.","archived_at":null,"archived_by":null},{"id":10980547267,"node_id":"LA_kwDOQb6kR88AAAACjn3aww","url":"https://api.github.com/repos/openclaw/openclaw/labels/rating:%20%F0%9F%A6%90%20gold%20shrimp","name":"rating: 🦐 gold shrimp","color":"B7791F","default":false,"description":"Decent PR readiness signal, but merge confidence is limited.","archived_at":null,"archived_by":null},{"id":10981549078,"node_id":"LA_kwDOQb6kR88AAAACjo0kFg","url":"https://api.github.com/repos/openclaw/openclaw/labels/merge-risk:%20%F0%9F%9A%A8%20compatibility","name":"merge-risk: 🚨 compatibility","color":"D1242F","default":false,"description":"🚨 May break existing users, config, migrations, defaults, or upgrade paths.","archived_at":null,"archived_by":null},{"id":10982481456,"node_id":"LA_kwDOQb6kR88AAAACjpteMA","url":"https://api.github.com/repos/openclaw/openclaw/labels/status:%20%E2%8F%B3%20waiting%20on%20author","name":"status: ⏳ waiting on author","color":"FBCA04","default":false,"description":"ClawSweeper has contributor-facing work open and is waiting for author action.","archived_at":null,"archived_by":null}],"state":"open","locked":false,"assignees":[],"milestone":null,"comments":8,"created_at":"2026-11-10T02:03:46Z","updated_at":"2026-11-10T06:29:03Z","closed_at":null,"assignee":null,"author_association":"CONTRIBUTOR","issue_field_values":[],"type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https://api.github.com/repos/openclaw/openclaw/pulls/196383","html_url":"https://github.com/openclaw/openclaw/pull/196383","diff_url":"https://github.com/openclaw/openclaw/pull/196383.diff","patch_url":"https://github.com/openclaw/openclaw/pull/196383.patch","merged_at":null},"body":"## What Problem This Solves\n\nTemplate Add could create a scheduled job without retaining its private inference account or the paired device authority that created it. An unchanged heartbeat declaration could also fail ownership matching and return a partial result.\n\nGateway Add now uses the native scheduler's creator capture and live commit guards. An operation-local receipt retains ownership before creation for activation, reconciliation and rollback. For authenticated Template RPC callers, Add explicitly requests an independent scheduled source from that same owner; generic cron RPC behavior is unchanged. Public results omit private inference bindings, and declarations do not pin the consumer's model.\n\n## Before / After Proof\n\n- The account regression reopens native SQLite and checks the saved binding, unchanged activation, paused declarations, foreign accounts, changed credentials and lost-reply reconciliation.\n- A stronger actual Gateway regression exposed a separate defect: a paired creator could Add the job, but the raw native store contained no `operatorSource`. Two baseline runs failed that exact assertion.\n- After repair, the exact paired creator source is stored. Controller B forces the same job: two real loopback provider requests and one native plugin file write. B then revokes A through `device.token.revoke`; another forced run returns the native creator-authority error with requests still two and writes still one. The job definition/source stay unchanged apart from native state and update time.\n\nThe paired-source repair adds ten net production lines and 63 allocated regression lines; it introduces no protocol, store or runner change.\n\n## Evidence\n\nFinal integrated stack head [040ac0bb4459](https://github.com/openclaw/openclaw/pull/196431): **282/282 source tests across 12 files** passed on provisional `9cf9f937e166186194618d544ff78f89fee7d969`. Final replay changes only the separately qualified scheduled-effect test and its exact allocation; every production and non-E2E test input is unchanged. Core and relevant CLI/Gateway test types pass; Gateway-server test types were refreshed after replay. Nine repair files pass scoped lint, formatting and whitespace checks. The complete canonical ratchet coordinator passes all ten gates, including mock exports, database worker/dialect, assertion safety and exact test lines **6,615,474 / 6,615,474** with zero slack.\n\nThe exact 040ac0bb4459 packaged lifecycle check now passes: native snapshot-backed update preserves the whole configuration, all 24 workspace files and the existing native paused job byte-for-byte. Authenticated readback from the healthy new Gateway retains the same owner, inherited model, five-tool bound and private delivery. Runtime digest: 61b011f852f26a58e3af7ad68486c2b94dbbb6153f3201c21e3c2339734063a5. Ten protected Gateway ports/PIDs remain healthy and unchanged across bind/start/stop; the task Gateway is stopped again. This upgrade proof does not repeat the earlier bounded real-model research or replace the separate new-job creator-revocation regression.\n\nNew-head hosted CI/review remains pending. Required Evidence-heading metadata replacements pass; source CI is not yet observed on the five updated heads. Historical failures remain historical; no exception, merge or deployment is claimed.\n\nThe companion actual-Gateway proof belongs to [#196389](https://github.com/openclaw/openclaw/pull/196389): one passed, two source rows deliberately not rerun, 45.10 seconds test / 51.53 wall against rebuilt native production commit `8cba20abbb9a08899eb363a3cf274416b2cf6dc6`. The production capture and proof blobs are byte-identical in the final stack. An independent negative control omitted revocation: four provider requests and two tool writes occurred, and the refusal assertion failed on `status: ok`. Revocation was restored before GREEN. External registry/install-policy I/O is fixed; provider HTTP and tool execution are real. No commercial-cloud or midflight-revocation claim.\n\nCLI lost-reply ownership follows in [#196431](https://github.com/openclaw/openclaw/pull/196431). That adapter retains generic cron RPC source semantics; this repair does not add a wire flag or broaden ordinary cron authority.\n\nThis layer follows [#196349](https://github.com/openclaw/openclaw/pull/196349). Merge and deployment remain held for maintainer review.\n","closed_by":null,"reactions":{"url":"https://api.github.com/repos/openclaw/openclaw/issues/196383/reactions","total_count":1,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":1},"timeline_url":"https://api.github.com/repos/openclaw/openclaw/issues/196383/timeline","performed_via_github_app":null,"state_reason":null},{"url":"https://api.github.com/repos/openclaw/openclaw/issues/167881","repository_url":"https://api.github.com/repos/openclaw/openclaw","labels_url":"https://api.github.com/repos/openclaw/openclaw/issues/167881/labels{/name}","comments_url":"https://api.github.com/repos/openclaw/openclaw/issues/167881/comments","events_url":"https://api.github.com/repos/openclaw/openclaw/issues/167881/events","html_url":"https://github.com/openclaw/openclaw/pull/167881","id":5781948915,"node_id":"PR_kwDOQb6kR88AAAABHlFLOA","number":167881,"title":"fix(talk): preserve caller authority when steering active tasks","user":{"login":"davelutztx","id":48866029,"node_id":"MDQ6VXNlcjQ4ODY2MDI5","avatar_url":"https://avatars.githubusercontent.com/u/48866029?v=4","gravatar_id":"","url":"https://api.github.com/users/davelutztx","html_url":"https://github.com/davelutztx","followers_url":"https://api.github.com/users/davelutztx/followers","following_url":"https://api.github.com/users/davelutztx/following{/other_user}","gists_url":"https://api.github.com/users/davelutztx/gists{/gist_id}","starred_url":"https://api.github.com/users/davelutztx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davelutztx/subscriptions","organizations_url":"https://api.github.com/users/davelutztx/orgs","repos_url":"https://api.github.com/users/davelutztx/repos","events_url":"https://api.github.com/users/davelutztx/events{/privacy}","received_events_url":"https://api.github.com/users/davelutztx/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[{"id":9706244975,"node_id":"LA_kwDOQb6kR88AAAACQomLbw","url":"https://api.github.com/repos/openclaw/openclaw/labels/docs","name":"docs","color":"0A3069","default":false,"description":"Improvements or additions to documentation","archived_at":null,"archived_by":null},{"id":10064298857,"node_id":"LA_kwDOQb6kR88AAAACV-EDaQ","url":"https://api.github.com/repos/openclaw/openclaw/labels/gateway","name":"gateway","color":"57606A","default":false,"description":"Gateway runtime","archived_at":null,"archived_by":null},{"id":10190106804,"node_id":"LA_kwDOQb6kR88AAAACX2CwtA","url":"https://api.github.com/repos/openclaw/openclaw/labels/size:%20XL","name":"size: XL","color":"8C959F","default":false,"description":null,"archived_at":null,"archived_by":null},{"id":10970446441,"node_id":"LA_kwDOQb6kR88AAAACjeO6aQ","url":"https://api.github.com/repos/openclaw/openclaw/labels/P2","name":"P2","color":"FBCA04","default":false,"description":"Normal backlog priority with limited blast radius.","archived_at":null,"archived_by":null},{"id":10980541151,"node_id":"LA_kwDOQb6kR88AAAACjn3C3w","url":"https://api.github.com/repos/openclaw/openclaw/labels/rating:%20%F0%9F%A7%82%20unranked%20krab","name":"rating: 🧂 unranked krab","color":"8C2F39","default":false,"description":"Not merge-ready due to missing proof or serious correctness/safety concerns.","archived_at":null,"archived_by":null},{"id":10981589204,"node_id":"LA_kwDOQb6kR88AAAACjo3A1A","url":"https://api.github.com/repos/openclaw/openclaw/labels/merge-risk:%20%F0%9F%9A%A8%20security-boundary","name":"merge-risk: 🚨 security-boundary","color":"B60205","default":false,"description":"🚨 May affect sandboxing, authorization, credentials, or sensitive data.","archived_at":null,"archived_by":null},{"id":10982444316,"node_id":"LA_kwDOQb6kR88AAAACjprNHA","url":"https://api.github.com/repos/openclaw/openclaw/labels/status:%20%F0%9F%93%A3%20needs%20proof","name":"status: 📣 needs proof","color":"D93F0B","default":false,"description":"The PR needs real behavior proof before ClawSweeper can clear the contributor ask.","archived_at":null,"archived_by":null}],"state":"open","locked":false,"assignees":[],"milestone":null,"comments":3,"created_at":"2026-10-09T17:16:39Z","updated_at":"2026-11-10T06:28:13Z","closed_at":null,"assignee":null,"author_association":"CONTRIBUTOR","issue_field_values":[],"type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https://api.github.com/repos/openclaw/openclaw/pulls/167881","html_url":"https://github.com/openclaw/openclaw/pull/167881","diff_url":"https://github.com/openclaw/openclaw/pull/167881.diff","patch_url":"https://github.com/openclaw/openclaw/pull/167881.patch","merged_at":null},"body":"Depends on: #167879\nRelated: #126733\n\n## What Problem This Solves\n\nFixes legitimate follow-up speech being rejected when Talk tries to steer its own active agent task, sometimes surfacing as a generic realtime-provider error.\n\n## User Impact\n\nThe initiating caller can steer an authorized native or chat-backed Talk task without losing its operator authority during overlay preparation. Missing, weaker, revoked, or different caller authority must still be rejected. No Android protocol or configuration changes are required.\n\n## Why This Change Was Made\n\nThe admitted consultation carries operator authority, but Talk's control overlay omitted it. The existing exact-run checks correctly reject that mismatched overlay. Preserve the captured caller's authority in both overlay paths and retain each explicit steering RPC's source until the control settles, with session/source checks after asynchronous capture and before responding.\n\nThis is a stacked PR: the parent lifetime fix supplies the retained-call authority contract. Review the [steering-only diff](https://github.com/davelutztx/openclaw/compare/voice-caller-lifetime-20261009...voice-steering-authority-20261009); this PR's main-based diff also includes #167879 until that prerequisite lands. Generic authorization/fingerprint checks, current error projection, and target selection are unchanged.\n\n## Evidence\n\n- Against the lifetime-only parent, the real authority regression reports 2 failed / 1 passed (67.55 seconds one-worker command wall time): legitimate post-publication chat steering is rejected, and native consultation steering fails.\n- Six focused suites passed: 107 tests in 158.44 seconds wrapper wall time / 155.74 seconds Vitest. This includes the real post-publication chat and native steering regressions, native action/control lifecycle cases, lifetime regressions, and six RPC retention/release/revocation cases.\n- Final `pnpm test <file> --maxWorkers=1` measurements: `steering-authority.test.ts` passes 6 tests in 11.63 seconds command wall time / 9.01 seconds Vitest; `client-authority.test.ts` passes 3 tests in 21.99 seconds command wall time / 20.12 seconds Vitest. CI seconds are not yet available at submission.\n- Scoped Gateway test types (including the changed production imports), Oxfmt, targeted Oxlint, line-cap/max-lines, assertion-safety, mock-export, database-worker and test-timeout ratchets, and staged diff checks pass. The lifetime parent completed a full build with exit 0 but disclosed a 46-byte UI gzip budget overage; a separate full build was not repeated for this narrow dependent change.\n- The first RPC test attempt was interrupted after a stale mock import prevented its gate from opening. The fixture now mocks the actual `relay/operations.js` dependency and uses `awaitGateBeforeSettlement` (with handler results normalized to a Promise) to fail promptly on premature settlement. The final fixture is rechecked separately; no product failure is hidden by that interrupted run.\n- Tests use real admission, reply preparation and guarded steering queues with embedded execution fixtures. RPC custody tests separately mock downstream control to verify retention, release and post-capture revocation. They are not authenticated WebSocket/native-process or live Android end-to-end proof.\n- Fresh independent review of the exact five-file change found no actionable P0–P2 or privacy/scope issue. The canonical AutoReview route was unavailable with HTTP 401 during this submission batch; no clean helper verdict is claimed.\n- The separate pre-backend-publication combined-abort-signal owner-lookup limitation is outside this fix. This PR does not claim all steering/lifecycle paths are repaired.\n- No Gateway deployment, APK installation or merge is part of this submission.\n","closed_by":null,"reactions":{"url":"https://api.github.com/repos/openclaw/openclaw/issues/167881/reactions","total_count":1,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":1},"timeline_url":"https://api.github.com/repos/openclaw/openclaw/issues/167881/timeline","performed_via_github_app":null,"state_reason":null},{"url":"https://api.github.com/repos/openclaw/openclaw/issues/167849","repository_url":"https://api.github.com/repos/openclaw/openclaw","labels_url":"https://api.github.com/repos/openclaw/openclaw/issues/167849/labels{/name}","comments_url":"https://api.github.com/repos/openclaw/openclaw/issues/167849/comments","events_url":"https://api.github.com/repos/openclaw/openclaw/issues/167849/events","html_url":"https://github.com/openclaw/openclaw/pull/167849","id":5780544997,"node_id":"PR_kwDOQb6kR88AAAABHj-NhA","number":167849,"title":"fix(whatsapp): messages sent during a reconnect are lost before the inbox listener attaches","user":{"login":"Jackten","id":2895479,"node_id":"MDQ6VXNlcjI4OTU0Nzk=","avatar_url":"https://avatars.githubusercontent.com/u/2895479?v=4","gravatar_id":"","url":"https://api.github.com/users/Jackten","html_url":"https://github.com/Jackten","followers_url":"https://api.github.com/users/Jackten/followers","following_url":"https://api.github.com/users/Jackten/following{/other_user}","gists_url":"https://api.github.com/users/Jackten/gists{/gist_id}","starred_url":"https://api.github.com/users/Jackten/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jackten/subscriptions","organizations_url":"https://api.github.com/users/Jackten/orgs","repos_url":"https://api.github.com/users/Jackten/repos","events_url":"https://api.github.com/users/Jackten/events{/privacy}","received_events_url":"https://api.github.com/users/Jackten/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[{"id":10064298528,"node_id":"LA_kwDOQb6kR88AAAACV-ECIA","url":"https://api.github.com/repos/openclaw/openclaw/labels/channel:%20whatsapp-web","name":"channel: whatsapp-web","color":"0969DA","default":false,"description":"Channel integration: whatsapp-web","archived_at":null,"archived_by":null},{"id":10190106648,"node_id":"LA_kwDOQb6kR88AAAACX2CwGA","url":"https://api.github.com/repos/openclaw/openclaw/labels/size:%20S","name":"size: S","color":"8C959F","default":false,"description":null,"archived_at":null,"archived_by":null},{"id":10970449912,"node_id":"LA_kwDOQb6kR88AAAACjePH-A","url":"https://api.github.com/repos/openclaw/openclaw/labels/P1","name":"P1","color":"D93F0B","default":false,"description":"High-priority user-facing bug, regression, or broken workflow.","archived_at":null,"archived_by":null},{"id":10980703344,"node_id":"LA_kwDOQb6kR88AAAACjoA8cA","url":"https://api.github.com/repos/openclaw/openclaw/labels/rating:%20%F0%9F%A6%AA%20silver%20shellfish","name":"rating: 🦪 silver shellfish","color":"7A828E","default":false,"description":"Thin PR readiness signal; proof, validation, or implementation needs work.","archived_at":null,"archived_by":null},{"id":10982444316,"node_id":"LA_kwDOQb6kR88AAAACjprNHA","url":"https://api.github.com/repos/openclaw/openclaw/labels/status:%20%F0%9F%93%A3%20needs%20proof","name":"status: 📣 needs proof","color":"D93F0B","default":false,"description":"The PR needs real behavior proof before ClawSweeper can clear the contributor ask.","archived_at":null,"archived_by":null}],"state":"open","locked":false,"assignees":[],"milestone":null,"comments":2,"created_at":"2026-10-09T15:25:12Z","updated_at":"2026-11-10T06:27:50Z","closed_at":null,"assignee":null,"author_association":"CONTRIBUTOR","issue_field_values":[],"type":null,"active_lock_reason":null,"draft":true,"pull_request":{"url":"https://api.github.com/repos/openclaw/openclaw/pulls/167849","html_url":"https://github.com/openclaw/openclaw/pull/167849","diff_url":"https://github.com/openclaw/openclaw/pull/167849.diff","patch_url":"https://github.com/openclaw/openclaw/pull/167849.patch","merged_at":null},"body":"Closes #167848\n\n## What Problem This Solves\n\nFixes: WhatsApp messages sent while the gateway is restarting or the Web socket is reconnecting are silently lost. The sender sees them delivered, but the agent never receives them.\n\n## User Impact\n\nMessages delivered in the offline backlog right after a reconnect now reach inbound intake instead of disappearing. There are no config or behavior changes otherwise.\n\n## Why This Change Was Made\n\nBaileys acks and emits `messages.upsert` as soon as the socket opens. The inbox attaches its only `messages.upsert` listener after the async setup that follows `waitForWaConnection`, so anything emitted in between has no listener, and WhatsApp never redelivers it because it was acked. This change attaches a hold listener right after `createWaSocket` in both connect paths (`connection-controller.ts` and `inbound/monitor.ts`). When intake subscribes through the socket session, it takes the held upserts and replays them synchronously, in order, so nothing can slip in between the hold ending and the replay. If standalone attach fails, the hold is released.\n\nKnown limits, left out of scope:\n- If setup fails after the socket opens and the controller retries on a new socket, messages held on the failed socket are still lost. That was already true before this change; fixing it needs durable persistence before intake.\n- `append` upserts held through a very slow open (>60 s, only with a raised `connectTimeoutMs`) can still be judged stale by the existing cutoff.\n\n## Evidence\n\n- New test in `monitor-inbox.socket-lifecycle.test.ts` emits an upsert from inside `waitForWaConnection`, i.e. after open and before attach. On unmodified `main` `onMessage` is called 0 times; with the fix the message is delivered, and a later live message arrives exactly once (no duplicates).\n- New test in `connection-controller.test.ts` checks that the production controller path holds the early upsert and detaches the hold listener on handoff.\n- With only the two hold call sites reverted, both new tests fail for the intended reason.\n- `connection-controller.test.ts` 31/31 and `monitor-inbox.socket-lifecycle.test.ts` 23/23 pass. oxfmt and oxlint are clean on the changed files.\n- Live observation (redacted): over one week across 8 groups on a live install, all 3 user messages missing from the ingress table arrived during a reconnect or restart. The connect→listen gap was 384 ms and 181 ms on the restarts with a backlog.\n- An independent model review found no duplication or handoff ordering defect. Its finding about the failed-attach hold was addressed in this PR.\n- Not run: full `pnpm build && pnpm check`, and the shared `autoreview` skill (not installed locally).\n\nAI-assisted: written with Claude Code and reviewed with a second agent.\n\n🤖 Generated with [Claude Code](https://claude.com/claude-code)\n","closed_by":null,"reactions":{"url":"https://api.github.com/repos/openclaw/openclaw/issues/167849/reactions","total_count":1,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":1},"timeline_url":"https://api.github.com/repos/openclaw/openclaw/issues/167849/timeline","performed_via_github_app":null,"state_reason":null},{"url":"https://api.github.com/repos/openclaw/openclaw/issues/196472","repository_url":"https://api.github.com/repos/openclaw/openclaw","labels_url":"https://api.github.com/repos/openclaw/openclaw/issues/196472/labels{/name}","comments_url":"https://api.github.com/repos/openclaw/openclaw/issues/196472/comments","events_url":"https://api.github.com/repos/openclaw/openclaw/issues/196472/events","html_url":"https://github.com/openclaw/openclaw/pull/196472","id":6301264764,"node_id":"PR_kwDOQb6kR88AAAABOCCV1w","number":196472,"title":"fix: converted sessions cannot expand child conversations","user":{"login":"roboclaw-bot","id":309084314,"node_id":"U_kgDOEmxAmg","avatar_url":"https://avatars.githubusercontent.com/u/309084314?v=4","gravatar_id":"","url":"https://api.github.com/users/roboclaw-bot","html_url":"https://github.com/roboclaw-bot","followers_url":"https://api.github.com/users/roboclaw-bot/followers","following_url":"https://api.github.com/users/roboclaw-bot/following{/other_user}","gists_url":"https://api.github.com/users/roboclaw-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/roboclaw-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/roboclaw-bot/subscriptions","organizations_url":"https://api.github.com/users/roboclaw-bot/orgs","repos_url":"https://api.github.com/users/roboclaw-bot/repos","events_url":"https://api.github.com/users/roboclaw-bot/events{/privacy}","received_events_url":"https://api.github.com/users/roboclaw-bot/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[{"id":9706244975,"node_id":"LA_kwDOQb6kR88AAAACQomLbw","url":"https://api.github.com/repos/openclaw/openclaw/labels/docs","name":"docs","color":"0A3069","default":false,"description":"Improvements or additions to documentation","archived_at":null,"archived_by":null},{"id":10064298757,"node_id":"LA_kwDOQb6kR88AAAACV-EDBQ","url":"https://api.github.com/repos/openclaw/openclaw/labels/app:%20web-ui","name":"app: web-ui","color":"6E7781","default":false,"description":"App: web-ui","archived_at":null,"archived_by":null},{"id":10190106720,"node_id":"LA_kwDOQb6kR88AAAACX2CwYA","url":"https://api.github.com/repos/openclaw/openclaw/labels/size:%20M","name":"size: M","color":"8C959F","default":false,"description":null,"archived_at":null,"archived_by":null},{"id":10873837225,"node_id":"LA_kwDOQb6kR88AAAACiCGWqQ","url":"https://api.github.com/repos/openclaw/openclaw/labels/proof:%20sufficient","name":"proof: sufficient","color":"0E8A16","default":false,"description":"ClawSweeper judged the real behavior proof convincing.","archived_at":null,"archived_by":null},{"id":10970446441,"node_id":"LA_kwDOQb6kR88AAAACjeO6aQ","url":"https://api.github.com/repos/openclaw/openclaw/labels/P2","name":"P2","color":"FBCA04","default":false,"description":"Normal backlog priority with limited blast radius.","archived_at":null,"archived_by":null},{"id":10980547267,"node_id":"LA_kwDOQb6kR88AAAACjn3aww","url":"https://api.github.com/repos/openclaw/openclaw/labels/rating:%20%F0%9F%A6%90%20gold%20shrimp","name":"rating: 🦐 gold shrimp","color":"B7791F","default":false,"description":"Decent PR readiness signal, but merge confidence is limited.","archived_at":null,"archived_by":null},{"id":10982481456,"node_id":"LA_kwDOQb6kR88AAAACjpteMA","url":"https://api.github.com/repos/openclaw/openclaw/labels/status:%20%E2%8F%B3%20waiting%20on%20author","name":"status: ⏳ waiting on author","color":"FBCA04","default":false,"description":"ClawSweeper has contributor-facing work open and is waiting for author action.","archived_at":null,"archived_by":null},{"id":10998679033,"node_id":"LA_kwDOQb6kR88AAAACj5KF-Q","url":"https://api.github.com/repos/openclaw/openclaw/labels/proof:%20%F0%9F%93%B8%20screenshot","name":"proof: 📸 screenshot","color":"0969DA","default":false,"description":"Contributor real behavior proof includes screenshot evidence.","archived_at":null,"archived_by":null}],"state":"open","locked":false,"assignees":[],"milestone":null,"comments":3,"created_at":"2026-11-10T05:59:22Z","updated_at":"2026-11-10T06:27:24Z","closed_at":null,"assignee":null,"author_association":"COLLABORATOR","issue_field_values":[],"type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https://api.github.com/repos/openclaw/openclaw/pulls/196472","html_url":"https://github.com/openclaw/openclaw/pull/196472","diff_url":"https://github.com/openclaw/openclaw/pull/196472.diff","patch_url":"https://github.com/openclaw/openclaw/pull/196472.patch","merged_at":null},"body":"Related: #193605\n\n## What Problem This Solves\n\nFixes: clicking the child-session disclosure on an already-converted Beam or coding-session row does nothing, while its children can appear separately in the sidebar.\n\n## User Impact\n\nConverted conversations now expand and open their normal nested child sessions, with working pagination, collapse, and selected-child ancestry. Existing owner and Involving me filters remain intact. No permission, configuration, or stored-data changes are required.\n\n## Why This Change Was Made\n\nThe converted row had native controls but still lacked the native tree's child projection and expansion lifecycle. This connects it to the existing tree/reference owners and places converted parents only after building their complete native hierarchy, avoiding orphaned duplicate children.\n\n## Evidence\n\n- Bundled production browser reproduction failed on the original code: the five-child disclosure stayed `aria-expanded=\"false\"` after activation.\n- Final bundled browser proof: 7 scenarios passed across two files, including disclosure, filtered descendants, pagination, collapse, native child navigation, ancestry restoration, existing Beam links, and continuation/retention siblings. Extended flow: about 3.6 seconds; complete invocation: 25.3 seconds including build/setup. Hosted CI timing is pending.\n- 89 focused native-tree/projection contracts passed across five files; UI and UI-E2E typechecks passed. Targeted lint passed after repairing new lint errors; existing Solid reactivity warnings remain. Formatting, Solid guards, staged test-line allocation, and whitespace checks passed.\n- Fresh independent P0–P2 review found no remaining actionable findings after its two filtering/ancestry findings were fixed. Local autoreview (Codex, P2) reviewed the complete candidate against `78e73aa80aea1806f1e9f039764b5195b0694865` and returned scoped-clean. Local ClawSweeper was unavailable because its shared source checkout was dirty/ambiguous. The initial hosted ClawSweeper request is already queued; no duplicate request was submitted.\n- [Inspected synthetic before/after screenshots](https://github.com/openclaw/openclaw/pull/196472#issuecomment-6760282919) are attached to this PR and were delivered in the work session. No private session contents were used in the captures. This proves the actual bundled UI against an isolated mock Gateway, not Vincent's authenticated browser.\n- CI byte-budget follow-up: the initial candidate adds 380 B normalized chat-boot gzip to a base already over its cap and exceeds the largest ordinary chunk limit by 76 B. Acceptance for the repair is the existing same-host base/head byte gate: chat-boot growth at most its 64 B build-variance allowance, and the ordinary chunk within its unchanged limit. Remove duplicate catalog presentation work; do not raise budgets or baselines.\n- The existing browser test grows by 56 lines under its dedicated allocation. Production growth connects the existing tree, filter, and disclosure owners; no parallel tree renderer or authorization owner is introduced. The published head has the same tree as the locally verified and reviewed commit.\n\nReported and co-authored by @vincentkoc.\n\n## Work sessions\n\nLinked for team reference; these sessions aren’t public.\n\n- [Discussion, implementation and verification](https://team.openclaw.ai/chat/roboclaw/~key/dashboard/1ddb214a-105c-4d78-ae7a-ff4baf8a4d8f)\n\n## Worked on by\n\n- @vincentkoc\n\n<!-- openclaw-publication:97b90201-b3ab-4722-9d60-723277d5ca13 -->\n","closed_by":null,"reactions":{"url":"https://api.github.com/repos/openclaw/openclaw/issues/196472/reactions","total_count":1,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":1},"timeline_url":"https://api.github.com/repos/openclaw/openclaw/issues/196472/timeline","performed_via_github_app":null,"state_reason":null},{"url":"https://api.github.com/repos/openclaw/openclaw/issues/141004","repository_url":"https://api.github.com/repos/openclaw/openclaw","labels_url":"https://api.github.com/repos/openclaw/openclaw/issues/141004/labels{/name}","comments_url":"https://api.github.com/repos/openclaw/openclaw/issues/141004/comments","events_url":"https://api.github.com/repos/openclaw/openclaw/issues/141004/events","html_url":"https://github.com/openclaw/openclaw/pull/141004","id":5371825345,"node_id":"PR_kwDOQb6kR88AAAABCfAaGQ","number":141004,"title":"feat(audit): record observed runtime skill usage","user":{"login":"wiecon-dev","id":61579505,"node_id":"MDQ6VXNlcjYxNTc5NTA1","avatar_url":"https://avatars.githubusercontent.com/u/61579505?v=4","gravatar_id":"","url":"https://api.github.com/users/wiecon-dev","html_url":"https://github.com/wiecon-dev","followers_url":"https://api.github.com/users/wiecon-dev/followers","following_url":"https://api.github.com/users/wiecon-dev/following{/other_user}","gists_url":"https://api.github.com/users/wiecon-dev/gists{/gist_id}","starred_url":"https://api.github.com/users/wiecon-dev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wiecon-dev/subscriptions","organizations_url":"https://api.github.com/users/wiecon-dev/orgs","repos_url":"https://api.github.com/users/wiecon-dev/repos","events_url":"https://api.github.com/users/wiecon-dev/events{/privacy}","received_events_url":"https://api.github.com/users/wiecon-dev/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[{"id":9706244975,"node_id":"LA_kwDOQb6kR88AAAACQomLbw","url":"https://api.github.com/repos/openclaw/openclaw/labels/docs","name":"docs","color":"0A3069","default":false,"description":"Improvements or additions to documentation","archived_at":null,"archived_by":null},{"id":10064298757,"node_id":"LA_kwDOQb6kR88AAAACV-EDBQ","url":"https://api.github.com/repos/openclaw/openclaw/labels/app:%20web-ui","name":"app: web-ui","color":"6E7781","default":false,"description":"App: web-ui","archived_at":null,"archived_by":null},{"id":10064298857,"node_id":"LA_kwDOQb6kR88AAAACV-EDaQ","url":"https://api.github.com/repos/openclaw/openclaw/labels/gateway","name":"gateway","color":"57606A","default":false,"description":"Gateway runtime","archived_at":null,"archived_by":null},{"id":10069934037,"node_id":"LA_kwDOQb6kR88AAAACWDb_1Q","url":"https://api.github.com/repos/openclaw/openclaw/labels/scripts","name":"scripts","color":"57606A","default":false,"description":"Repository scripts","archived_at":null,"archived_by":null},{"id":10069934305,"node_id":"LA_kwDOQb6kR88AAAACWDcA4Q","url":"https://api.github.com/repos/openclaw/openclaw/labels/commands","name":"commands","color":"0A3069","default":false,"description":"Command implementations","archived_at":null,"archived_by":null},{"id":10069976942,"node_id":"LA_kwDOQb6kR88AAAACWDenbg","url":"https://api.github.com/repos/openclaw/openclaw/labels/agents","name":"agents","color":"57606A","default":false,"description":"Agent runtime and tooling","archived_at":null,"archived_by":null},{"id":10190106804,"node_id":"LA_kwDOQb6kR88AAAACX2CwtA","url":"https://api.github.com/repos/openclaw/openclaw/labels/size:%20XL","name":"size: XL","color":"8C959F","default":false,"description":null,"archived_at":null,"archived_by":null},{"id":10970446441,"node_id":"LA_kwDOQb6kR88AAAACjeO6aQ","url":"https://api.github.com/repos/openclaw/openclaw/labels/P2","name":"P2","color":"FBCA04","default":false,"description":"Normal backlog priority with limited blast radius.","archived_at":null,"archived_by":null}],"state":"open","locked":false,"assignees":[],"milestone":null,"comments":476,"created_at":"2026-09-07T08:05:21Z","updated_at":"2026-11-10T06:27:20Z","closed_at":null,"assignee":null,"author_association":"NONE","issue_field_values":[],"type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https://api.github.com/repos/openclaw/openclaw/pulls/141004","html_url":"https://github.com/openclaw/openclaw/pull/141004","diff_url":"https://github.com/openclaw/openclaw/pull/141004.diff","patch_url":"https://github.com/openclaw/openclaw/pull/141004.patch","merged_at":null},"body":"feat(audit): record observed runtime skill usage\n\n## What Problem This Solves\n\nOpenClaw can emit skill-usage diagnostics while an agent reads or invokes a skill, but that observed runtime signal is not available through the durable audit surface. Operators therefore cannot inspect which skills were actually used during a run from the audit CLI/API.\n\n## Why This Change Was Made\n\nThe first revision inferred skill selection from prompt text after attempt completion. Review correctly called that out as the wrong boundary: prompt inference is not proof of skill use and it also risked perturbing the embedded attempt-result contract.\n\nThis revision records only observed runtime skill usage from the existing `before_tool_call` skill-usage boundary:\n\n- Skill read/command activation is detected where `recordRunSkillUsage()` already emits runtime diagnostics.\n- A metadata-only `skill_selection` audit event is emitted with `selectionSource: \"observed_runtime\"` and `selectionConfidence: \"observed\"`.\n- No prompt text, tool arguments, tool output, or skill file contents are persisted.\n- `skill_selection` is persisted outside run-start deduplication so it is not dropped after `agent.run.started`.\n- Legacy `audit.list` remains run/tool-only; the versioned `audit.activity.list` surface exposes skill-selection records.\n- `completeEmbeddedAttemptResult()` is restored to the production calling contract, preserving the existing truncated-stream/tool recovery behavior.\n\n## User Impact\n\n- `openclaw audit --kind skill_selection` can show observed skill usage for a run through the activity-list API.\n- Existing `audit.list` clients keep their shipped run/tool event shape and do not receive the new record kind.\n- Operators get a durable metadata trail for actual skill usage without sensitive prompt or file-content capture.\n\n## Evidence\n\nCurrent-head validation after merging `upstream/main` and removing the unrelated `USER.md` bootstrap policy change:\n\n```bash\npnpm tsgo:core\npnpm protocol:check:swift\npnpm db:kysely:check\npnpm lint:kysely\npnpm check:architecture\npnpm test src/agents/workspace.bootstrap-privacy.test.ts src/audit/audit-events.test.ts src/gateway/server-methods/audit.test.ts packages/gateway-protocol/src/schema/audit.test.ts\n```\n\nResults:\n\n- `pnpm tsgo:core` passed.\n- `pnpm protocol:check:swift` passed after regenerating `GatewayModels.swift`.\n- `pnpm db:kysely:check` passed after regenerating `src/state/openclaw-state-db.generated.d.ts`.\n- `pnpm lint:kysely` passed after moving ordinary companion-table insert/read/prune queries to the sync Kysely owner.\n- `pnpm check:architecture` passed, including generated Kysely verification, Kysely guardrails, and database-first legacy-store guard.\n- Targeted Vitest run passed 4 shards in 22.13s.\n- `audit-events.test.ts`: 54 tests passed, including companion-table storage, bounded retention, and observed runtime projection.\n- `server-methods/audit.test.ts`: 34 tests passed, including explicit `skill_selection`/`observed` activity access and V1-compatible unfiltered activity.\n- `audit.test.ts`: 7 protocol schema tests passed, including activity schema discrimination.\n- `workspace.bootstrap-privacy.test.ts`: 9 tests passed; shared sessions now drop only root `MEMORY.md`, leaving `USER.md` behavior unchanged.\n- `pnpm exec oxlint src/audit/audit-event-store.skill-selection-storage.ts src/state/openclaw-state-db.generated.d.ts` passed. A full local `pnpm lint:core` was started but manually stopped after 6+ minutes with no diagnostic output; CI remains the authoritative full core-lint signal.\n\nPublished-release upgrade, older-reader, and candidate-reopen proof:\n\n- the published `v2026.9.4` tag at `3a9d69db3` created a fresh state database and wrote legacy `agent_run` sequence `1`.\n- candidate head `7d74807a5` opened that exact database, preserved the legacy row, created the additive `audit_skill_selection_events` table, and wrote observed `debug-toolkit` sequence `2`.\n- `v2026.9.4` then reopened the candidate-used database without migration or schema errors, ignored the additive table, and wrote a second legacy `agent_run` at shared sequence `3`.\n- the candidate reopened the same database and returned sequences `[3, 2, 1]`, including both legacy rows and the retained skill-selection row.\n- physical SQLite readback reported `integrity_check: ok`, `user_version: 17`, `audit_events: 2`, and `audit_skill_selection_events: 1`.\n- this proves published release → candidate upgrade → published older-reader open/use → candidate reopen while preserving the legacy table, additive companion, and shared sequence allocation.\n\n## Changed Files\n\n- `src/skills/runtime-skill-selection.ts` — observed-only metadata marker.\n- `src/agents/agent-tools.before-tool-call.wrapper.ts` — emits `skill_selection` from the existing observed skill-usage boundary.\n- `src/audit/agent-event-audit.ts` — projects observed-only skill-selection records and routes them outside run-start deduplication.\n- `src/audit/audit-event-store.ts` / `src/audit/audit-event-store.skill-selection-storage.ts` / `src/audit/audit-event-types.ts` — durable store/types for observed skill-selection metadata, with ordinary companion-table access through Kysely.\n- `src/state/openclaw-state-db.generated.d.ts` — generated Kysely declarations for the companion table.\n- `src/gateway/server-methods/audit.ts` — exposes skill-selection through `audit.activity.list` while preserving legacy `audit.list`.\n- `packages/gateway-protocol/src/schema/audit-activity.ts` — versioned activity schema includes `skill_selection`.\n- `packages/gateway-protocol/src/schema/audit.ts` — legacy audit schema stays run/tool-only.\n- `src/commands/audit.ts` — CLI uses the activity surface and renders selected skill metadata.\n- `docs/gateway/audit.md` / `docs/gateway/config-observability.md` / `docs/cli/audit.md` — document the approved metadata fields, default-on collection, 30-day retention, separate 100,000-row cap, compatibility behavior, and explicit CLI filters.\n\n## Test Plan\n\n1. Verify observed skill reads/commands emit `skill_selection` audit events.\n2. Verify `skill_selection` persists between run start and terminal events.\n3. Verify `audit.activity.list` and CLI expose skill-selection records.\n4. Verify legacy `audit.list` remains run/tool-only.\n5. Verify attempt-result recovery tests still pass.\n6. Verify existing SQLite state opens, creates the companion table, preserves old activity rows, and reopens with skill-selection rows intact.\n\n\n## Review findings addressed (2026-10-10)\n\nAll five ClawSweeper code findings are fixed on this head:\n\n- **Distinguishable skill identities** — the lossy hyphen sanitizer is replaced by an injective dash-escape encoding (`-` doubles to `--`, other unsafe bytes become `-hh-` hex), so `Daily Brief` persists as `Daily-20-Brief`, distinct from `Daily-Brief` → `Daily--Brief` (and `_helper` stays distinct from `helper`). The audit projector accepts the encoding. Boundary coverage in `src/skills/runtime-skill-selection.test.ts`.\n- **Admission-owned schema setup** — the canonical schema admission owns `audit_skill_selection_events` (`src/state/openclaw-state-schema.sql`); additive DDL now runs at most once per connection and only for pre-admission databases, instead of on every insert and prune tick.\n- **Bounded write overhead** — per-connection row-count cache mirrors the canonical ledger pattern: one `COUNT(*)` per connection lifetime, advanced by inserts and maintenance deletes, invalidated on rollback.\n- **Restart guidance** — `docs/gateway/audit.md` now states the recorder re-reads `logging.audit.enabled` on every event, so disabling stops new rows immediately.\n- **Protocol type ownership** — `AuditActivitySkillSelectionV1` is derived from the canonical schema properties via `SchemaContract` (same pattern as adjacent variants), restoring wire-required attribution to typed consumers.\n\n## Production-path proof\n\nThrowaway script (not committed) driving production code on a temp state DB — marker encoder → recorder projector → production SQLite writer → `audit.activity.list` Gateway handler:\n\n```\nencoded identities: Daily-20-Brief vs Daily--Brief\nprojected inputs: 1 kind: skill_selection\nwriter stored: skill_selection Daily-20-Brief\ngateway response: {\"events\":[{\"schemaVersion\":1,\"sequence\":1,\"eventId\":\"<uuid>\",\"sourceSequence\":1,\"occurredAt\":<ts>,\"redaction\":\"metadata_only\",\"kind\":\"skill_selection\",\"agentId\":\"main\",\"sessionKey\":\"agent:main:<session>\",\"sessionId\":\"session-<id>\",\"runId\":\"run-proof-1\",\"action\":\"skill.selection.observed\",\"status\":\"observed\",\"eventType\":\"skill_selection\",\"actor\":{\"type\":\"agent\",\"id\":\"main\"},\"selectedSkill\":\"Daily-20-Brief\"}]}\nworker rows: 1 first toolName: Daily-20-Brief\nPROOF OK: gateway output matches the observed skill invocation\n```\n\nTool-invocation → emission coverage lives in `src/agents/agent-tools.skill-selection-audit.e2e.test.ts`; recorder → DB → filtered readback in `src/audit/audit-events.skill-selection-hidden.test.ts`; handler shaping in `src/gateway/server-methods/audit.test.ts`.\n\n\n## Round 2 (rev.199 follow-up)\n\nThree further findings from review rev.199 are fixed on this head:\n\n- **Token-built identities** — the encoder appends complete encoding tokens only while they fit the 128-char bound (reserving the `x-` flag prefix up front), so truncation can never cut inside an escape and valid suffixes survive (`skill-a` vs `skill-b` regression covered).\n- **Single-owner expiry accounting** — the deleter returns the removed count without touching the warm cache; insert-prune and maintenance ticks each adjust exactly once, with a warm-cache expiry-to-overflow regression test (exact cap trim to 99,976 rows).\n- **Tool-boundary assertion** — the wrapper e2e expects the encoded `demo--skill` identity while the run-usage receipt keeps the original `demo-skill` name.\n\n","closed_by":null,"reactions":{"url":"https://api.github.com/repos/openclaw/openclaw/issues/141004/reactions","total_count":1,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":1},"timeline_url":"https://api.github.com/repos/openclaw/openclaw/issues/141004/timeline","performed_via_github_app":null,"state_reason":null},{"url":"https://api.github.com/repos/openclaw/openclaw/issues/196471","repository_url":"https://api.github.com/repos/openclaw/openclaw","labels_url":"https://api.github.com/repos/openclaw/openclaw/issues/196471/labels{/name}","comments_url":"https://api.github.com/repos/openclaw/openclaw/issues/196471/comments","events_url":"https://api.github.com/repos/openclaw/openclaw/issues/196471/events","html_url":"https://github.com/openclaw/openclaw/pull/196471","id":6301256207,"node_id":"PR_kwDOQb6kR88AAAABOCB5ZQ","number":196471,"title":"fix(anthropic): reuse shared system prompt across sessions","user":{"login":"vincentkoc","id":25068,"node_id":"MDQ6VXNlcjI1MDY4","avatar_url":"https://avatars.githubusercontent.com/u/25068?v=4","gravatar_id":"","url":"https://api.github.com/users/vincentkoc","html_url":"https://github.com/vincentkoc","followers_url":"https://api.github.com/users/vincentkoc/followers","following_url":"https://api.github.com/users/vincentkoc/following{/other_user}","gists_url":"https://api.github.com/users/vincentkoc/gists{/gist_id}","starred_url":"https://api.github.com/users/vincentkoc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vincentkoc/subscriptions","organizations_url":"https://api.github.com/users/vincentkoc/orgs","repos_url":"https://api.github.com/users/vincentkoc/repos","events_url":"https://api.github.com/users/vincentkoc/events{/privacy}","received_events_url":"https://api.github.com/users/vincentkoc/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[{"id":10190106648,"node_id":"LA_kwDOQb6kR88AAAACX2CwGA","url":"https://api.github.com/repos/openclaw/openclaw/labels/size:%20S","name":"size: S","color":"8C959F","default":false,"description":null,"archived_at":null,"archived_by":null},{"id":10970446441,"node_id":"LA_kwDOQb6kR88AAAACjeO6aQ","url":"https://api.github.com/repos/openclaw/openclaw/labels/P2","name":"P2","color":"FBCA04","default":false,"description":"Normal backlog priority with limited blast radius.","archived_at":null,"archived_by":null},{"id":10980547267,"node_id":"LA_kwDOQb6kR88AAAACjn3aww","url":"https://api.github.com/repos/openclaw/openclaw/labels/rating:%20%F0%9F%A6%90%20gold%20shrimp","name":"rating: 🦐 gold shrimp","color":"B7791F","default":false,"description":"Decent PR readiness signal, but merge confidence is limited.","archived_at":null,"archived_by":null},{"id":10982431516,"node_id":"LA_kwDOQb6kR88AAAACjpqbHA","url":"https://api.github.com/repos/openclaw/openclaw/labels/status:%20%F0%9F%91%80%20ready%20for%20maintainer%20look","name":"status: 👀 ready for maintainer look","color":"2DA44E","default":false,"description":"ClawSweeper has no concrete contributor-facing blocker left for this PR.","archived_at":null,"archived_by":null}],"state":"open","locked":false,"assignees":[{"login":"vincentkoc","id":25068,"node_id":"MDQ6VXNlcjI1MDY4","avatar_url":"https://avatars.githubusercontent.com/u/25068?v=4","gravatar_id":"","url":"https://api.github.com/users/vincentkoc","html_url":"https://github.com/vincentkoc","followers_url":"https://api.github.com/users/vincentkoc/followers","following_url":"https://api.github.com/users/vincentkoc/following{/other_user}","gists_url":"https://api.github.com/users/vincentkoc/gists{/gist_id}","starred_url":"https://api.github.com/users/vincentkoc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vincentkoc/subscriptions","organizations_url":"https://api.github.com/users/vincentkoc/orgs","repos_url":"https://api.github.com/users/vincentkoc/repos","events_url":"https://api.github.com/users/vincentkoc/events{/privacy}","received_events_url":"https://api.github.com/users/vincentkoc/received_events","type":"User","user_view_type":"public","site_admin":false}],"milestone":null,"comments":3,"created_at":"2026-11-10T05:58:39Z","updated_at":"2026-11-10T06:28:39Z","closed_at":null,"assignee":{"login":"vincentkoc","id":25068,"node_id":"MDQ6VXNlcjI1MDY4","avatar_url":"https://avatars.githubusercontent.com/u/25068?v=4","gravatar_id":"","url":"https://api.github.com/users/vincentkoc","html_url":"https://github.com/vincentkoc","followers_url":"https://api.github.com/users/vincentkoc/followers","following_url":"https://api.github.com/users/vincentkoc/following{/other_user}","gists_url":"https://api.github.com/users/vincentkoc/gists{/gist_id}","starred_url":"https://api.github.com/users/vincentkoc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vincentkoc/subscriptions","organizations_url":"https://api.github.com/users/vincentkoc/orgs","repos_url":"https://api.github.com/users/vincentkoc/repos","events_url":"https://api.github.com/users/vincentkoc/events{/privacy}","received_events_url":"https://api.github.com/users/vincentkoc/received_events","type":"User","user_view_type":"public","site_admin":false},"author_association":"MEMBER","issue_field_values":[],"type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https://api.github.com/repos/openclaw/openclaw/pulls/196471","html_url":"https://github.com/openclaw/openclaw/pull/196471","diff_url":"https://github.com/openclaw/openclaw/pull/196471.diff","patch_url":"https://github.com/openclaw/openclaw/pull/196471.patch","merged_at":null},"body":"## What Problem This Solves\n\nFixes: starting a new Anthropic session rewrites agent-shared system instructions to the prompt cache when only the Runtime facts differ.\n\nRelated: https://github.com/openclaw/openclaw/pull/196461\n\n## User Impact\n\nUser impact: short sessions for the same agent can reuse the shared system text within Anthropic's cache lifetime, reducing cache writes. Other providers are unaffected. The opening request uses one history checkpoint; later requests retain two.\n\n## Why This Change Was Made\n\nThis carries Scott Fan's proposed Anthropic transport checkpoint into an editable maintainer branch. The source PR cannot be edited by maintainers, and its split removed the newline before Runtime facts. This version preserves that newline in the session-owned block and verifies both prompt text and a shared prefix across two sessions. Contributor credit is retained in the commit.\n\n## Evidence\n\n- Node 24.22.1 provider test: 45 passed (2.35 s Vitest, 4.27 s wrapper). The provider regression checks opening/later checkpoint allocation, contiguous dynamic prompt text, and identical shared blocks with distinct Runtime facts across two sessions.\n- Anthropic policy and cache parity tests: 47 passed across three files (1.19 s Vitest, 2.37 s wrapper).\n- `git diff --check`, oxfmt, pre-commit freshness/line-cap hook, and independent P1 autoreview: passed.\n- Exact-target CI run: https://github.com/openclaw/openclaw/actions/runs/42765462095 (in progress at this update).\n- Direct Anthropic API cost measurement was reported on the source PR; this replacement has not repeated a live authenticated cost trial.\n","closed_by":null,"reactions":{"url":"https://api.github.com/repos/openclaw/openclaw/issues/196471/reactions","total_count":1,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":1},"timeline_url":"https://api.github.com/repos/openclaw/openclaw/issues/196471/timeline","performed_via_github_app":null,"state_reason":null},{"url":"https://api.github.com/repos/openclaw/openclaw/issues/196348","repository_url":"https://api.github.com/repos/openclaw/openclaw","labels_url":"https://api.github.com/repos/openclaw/openclaw/issues/196348/labels{/name}","comments_url":"https://api.github.com/repos/openclaw/openclaw/issues/196348/comments","events_url":"https://api.github.com/repos/openclaw/openclaw/issues/196348/events","html_url":"https://github.com/openclaw/openclaw/pull/196348","id":6297577843,"node_id":"PR_kwDOQb6kR88AAAABN_HiDg","number":196348,"title":"feat(templates): bundle complete skill folders with native trust checks","user":{"login":"Patrick-Erichsen","id":20157849,"node_id":"MDQ6VXNlcjIwMTU3ODQ5","avatar_url":"https://avatars.githubusercontent.com/u/20157849?v=4","gravatar_id":"","url":"https://api.github.com/users/Patrick-Erichsen","html_url":"https://github.com/Patrick-Erichsen","followers_url":"https://api.github.com/users/Patrick-Erichsen/followers","following_url":"https://api.github.com/users/Patrick-Erichsen/following{/other_user}","gists_url":"https://api.github.com/users/Patrick-Erichsen/gists{/gist_id}","starred_url":"https://api.github.com/users/Patrick-Erichsen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Patrick-Erichsen/subscriptions","organizations_url":"https://api.github.com/users/Patrick-Erichsen/orgs","repos_url":"https://api.github.com/users/Patrick-Erichsen/repos","events_url":"https://api.github.com/users/Patrick-Erichsen/events{/privacy}","received_events_url":"https://api.github.com/users/Patrick-Erichsen/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[{"id":9706244975,"node_id":"LA_kwDOQb6kR88AAAACQomLbw","url":"https://api.github.com/repos/openclaw/openclaw/labels/docs","name":"docs","color":"0A3069","default":false,"description":"Improvements or additions to documentation","archived_at":null,"archived_by":null},{"id":10064298757,"node_id":"LA_kwDOQb6kR88AAAACV-EDBQ","url":"https://api.github.com/repos/openclaw/openclaw/labels/app:%20web-ui","name":"app: web-ui","color":"6E7781","default":false,"description":"App: web-ui","archived_at":null,"archived_by":null},{"id":10064298857,"node_id":"LA_kwDOQb6kR88AAAACV-EDaQ","url":"https://api.github.com/repos/openclaw/openclaw/labels/gateway","name":"gateway","color":"57606A","default":false,"description":"Gateway runtime","archived_at":null,"archived_by":null},{"id":10068150099,"node_id":"LA_kwDOQb6kR88AAAACWBvHUw","url":"https://api.github.com/repos/openclaw/openclaw/labels/cli","name":"cli","color":"0A3069","default":false,"description":"CLI command changes","archived_at":null,"archived_by":null},{"id":10190106804,"node_id":"LA_kwDOQb6kR88AAAACX2CwtA","url":"https://api.github.com/repos/openclaw/openclaw/labels/size:%20XL","name":"size: XL","color":"8C959F","default":false,"description":null,"archived_at":null,"archived_by":null},{"id":10873837225,"node_id":"LA_kwDOQb6kR88AAAACiCGWqQ","url":"https://api.github.com/repos/openclaw/openclaw/labels/proof:%20sufficient","name":"proof: sufficient","color":"0E8A16","default":false,"description":"ClawSweeper judged the real behavior proof convincing.","archived_at":null,"archived_by":null},{"id":10970446441,"node_id":"LA_kwDOQb6kR88AAAACjeO6aQ","url":"https://api.github.com/repos/openclaw/openclaw/labels/P2","name":"P2","color":"FBCA04","default":false,"description":"Normal backlog priority with limited blast radius.","archived_at":null,"archived_by":null},{"id":10980565852,"node_id":"LA_kwDOQb6kR88AAAACjn4jXA","url":"https://api.github.com/repos/openclaw/openclaw/labels/rating:%20%F0%9F%90%9A%20platinum%20hermit","name":"rating: 🐚 platinum hermit","color":"0F766E","default":false,"description":"Good normal PR readiness with ordinary maintainer review expected.","archived_at":null,"archived_by":null},{"id":10981549078,"node_id":"LA_kwDOQb6kR88AAAACjo0kFg","url":"https://api.github.com/repos/openclaw/openclaw/labels/merge-risk:%20%F0%9F%9A%A8%20compatibility","name":"merge-risk: 🚨 compatibility","color":"D1242F","default":false,"description":"🚨 May break existing users, config, migrations, defaults, or upgrade paths.","archived_at":null,"archived_by":null},{"id":10982431516,"node_id":"LA_kwDOQb6kR88AAAACjpqbHA","url":"https://api.github.com/repos/openclaw/openclaw/labels/status:%20%F0%9F%91%80%20ready%20for%20maintainer%20look","name":"status: 👀 ready for maintainer look","color":"2DA44E","default":false,"description":"ClawSweeper has no concrete contributor-facing blocker left for this PR.","archived_at":null,"archived_by":null},{"id":10998679033,"node_id":"LA_kwDOQb6kR88AAAACj5KF-Q","url":"https://api.github.com/repos/openclaw/openclaw/labels/proof:%20%F0%9F%93%B8%20screenshot","name":"proof: 📸 screenshot","color":"0969DA","default":false,"description":"Contributor real behavior proof includes screenshot evidence.","archived_at":null,"archived_by":null}],"state":"open","locked":false,"assignees":[],"milestone":null,"comments":8,"created_at":"2026-11-10T00:31:27Z","updated_at":"2026-11-10T06:26:47Z","closed_at":null,"assignee":null,"author_association":"CONTRIBUTOR","issue_field_values":[],"type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https://api.github.com/repos/openclaw/openclaw/pulls/196348","html_url":"https://github.com/openclaw/openclaw/pull/196348","diff_url":"https://github.com/openclaw/openclaw/pull/196348.diff","patch_url":"https://github.com/openclaw/openclaw/pull/196348.patch","merged_at":null},"body":"## What Problem This Solves\n\nTemplates can declare complete skill folders with `skills: [{path: skills/research}]`. Build and Add share a bounded immutable directory snapshot, retain supporting files and delegate installation/trust policy to the native skill owner. Exact ClawHub `{ref, version}` dependencies keep their existing owner.\n\nControl UI distinguishes Bundled from ClawHub and binds warning acceptance to the reviewed path/digest. This layer follows [paused automations](https://github.com/openclaw/openclaw/pull/196323); plugin installation belongs to [the next layer](https://github.com/openclaw/openclaw/pull/196349). The compatible ClawHub publication rollout remains coordinated and held.\n\n## Evidence\n\n- Native skills/Add: 135 passed, 2 existing skips, covering membership/traversal, supporting bytes, conflict/reuse and trust policy. UI: 34 passed, including a bundled-warning regression red on the foundation; desktop/mobile proof inspected below.\n- At integrated source `4e759f15eecd336f7e0a9206c02fbc9ae6373af9`, the [actual Gateway native-install fixture](https://github.com/openclaw/openclaw/blob/4e759f15eecd336f7e0a9206c02fbc9ae6373af9/src/gateway/server-templates-add-authority.e2e.test.ts) passed **3/3 in 101.87s** for a bundled skill, bundled plugin and pinned ClawHub plugin. Authenticated admin Add succeeds; `operator.read` Add is denied with no publication; device revocation during the final asynchronous native install-policy check prevents dependency publication, activation and agent configuration, with cleanup joined before absence is asserted. Registry and external policy I/O are fixed; authenticated RPC, native installers and persisted effects are real. This integrated acceptance fixture lives in [#196389](https://github.com/openclaw/openclaw/pull/196389); it directly covers the final-effect authorization concern raised for this skill layer.\n\nInstalled stable **2026.11.2 → clean built source `f021018db951ea3a4bb37c8e5cf902c0e038b647` → cold restart** preserved the ordinary configured/listed agent, tool settings and five exact workspace-file hashes, with healthy listeners after the documented Doctor/heartbeat migration. This proves that preservation scope; it does not qualify the later package below or released Template-consent compatibility. Stable 2026.11.2 lacks the renamed `templates add` command but does include the opt-in predecessor `claws add`; absence of the renamed command does not establish that the retired authoring contract never shipped. This rehearsal proves the stated ordinary-agent/settings/file scope, not historical predecessor-manifest acceptance.\n\nOriginal CI remains failed. Both session assertions reproduce on main `9ccdad09a9dfb6a68d32aae18a1014b753ba1704` and frozen `4e759f15…` under pinned Bun: allowed-clone authorization (1 failed/5 passed each) and visible GitHub spawn missing terminal `status: failed` (1 failed/26 passed each). Original jobs ran Linux Bun; paired replays ran Darwin Bun with Node 24 orchestration. These remain existing defects. Repaired layer `1dafc99f0c82a8f6073a98a34cc3cde217bd3a4e` is included in the final stack below. \n\nThe [companion contribution](https://github.com/openclaw/awesome-templates/pull/22) has bounded 0.2.3 artifact acceptance; [scope and limits](https://github.com/openclaw/openclaw/pull/196323) distinguish the frozen-runtime model run from packaged-upgrade and hosted readiness. **Merge and deployment remain held for maintainer review.**\n\n\n### Current integrated qualification\n\nFinal stack head [040ac0bb4459](https://github.com/openclaw/openclaw/pull/196431) passes 282 source tests across 12 files on provisional 9cf9f937; final replay changes only the separately qualified scheduled-effect test and its allocation. Every production and non-E2E test input is unchanged. Relevant types, nine-file scoped lint/format and all ten canonical ratchet gates pass. Test lines are 6,615,474 / 6,615,474 with zero slack.\n\nThe actual Gateway paired-creator regression passes against rebuilt native production 8cba20, with capture/test blobs identical in the final stack: two real loopback provider requests and one native plugin file write while allowed; native creator revocation then refuses the unchanged job with zero additional effects. An unrevoked negative control produces four requests/two writes and correctly fails. One changed source row passed; two other source rows were deliberately not rerun. This is not commercial-cloud, midflight or CLI creator-revocation evidence.\n\nThe exact 040ac0bb4459 package is independently verified (runtime SHA-256 61b011f852f26a58e3af7ad68486c2b94dbbb6153f3201c21e3c2339734063a5). Snapshot-backed upgrade preserves the complete scratch configuration, all 24 workspace files and the native paused job byte-for-byte. The running Gateway is healthy; authenticated cron readback retains the same job, inherited model, five-tool bound and private delivery. Ten protected Gateway ports/PIDs stay healthy and unchanged through binding/start/stop; the task Gateway is stopped again. Prior real Competitor Watch 0.2.3 research remains bounded earlier-runtime evidence and was not repeated.\n\nNew-head hosted CI/review remains pending. Three metadata checks were repaired with the required authored Evidence heading; their replacement workflows pass. Source CI is not yet observed on the five updated heads; the repository's native recovery is being monitored. Historical failures remain historical; no exception or merge/deployment is claimed.\n\n**Merge and deployment remain held for maintainer review.**\n\n![Before: bundled dependencies presented as ClawHub](https://github.com/user-attachments/assets/068b13f8-7860-4ff0-9aa4-fcd90a018694)\n\n![After: source labeled Bundled](https://github.com/user-attachments/assets/07b10ee4-0188-4f1b-aaca-1377c688404b)\n","closed_by":null,"reactions":{"url":"https://api.github.com/repos/openclaw/openclaw/issues/196348/reactions","total_count":1,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":1},"timeline_url":"https://api.github.com/repos/openclaw/openclaw/issues/196348/timeline","performed_via_github_app":null,"state_reason":null},{"url":"https://api.github.com/repos/openclaw/openclaw/issues/196431","repository_url":"https://api.github.com/repos/openclaw/openclaw","labels_url":"https://api.github.com/repos/openclaw/openclaw/issues/196431/labels{/name}","comments_url":"https://api.github.com/repos/openclaw/openclaw/issues/196431/comments","events_url":"https://api.github.com/repos/openclaw/openclaw/issues/196431/events","html_url":"https://github.com/openclaw/openclaw/pull/196431","id":6300144808,"node_id":"PR_kwDOQb6kR88AAAABOBJqHg","number":196431,"title":"fix(templates): retain CLI cron creator receipts","user":{"login":"Patrick-Erichsen","id":20157849,"node_id":"MDQ6VXNlcjIwMTU3ODQ5","avatar_url":"https://avatars.githubusercontent.com/u/20157849?v=4","gravatar_id":"","url":"https://api.github.com/users/Patrick-Erichsen","html_url":"https://github.com/Patrick-Erichsen","followers_url":"https://api.github.com/users/Patrick-Erichsen/followers","following_url":"https://api.github.com/users/Patrick-Erichsen/following{/other_user}","gists_url":"https://api.github.com/users/Patrick-Erichsen/gists{/gist_id}","starred_url":"https://api.github.com/users/Patrick-Erichsen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Patrick-Erichsen/subscriptions","organizations_url":"https://api.github.com/users/Patrick-Erichsen/orgs","repos_url":"https://api.github.com/users/Patrick-Erichsen/repos","events_url":"https://api.github.com/users/Patrick-Erichsen/events{/privacy}","received_events_url":"https://api.github.com/users/Patrick-Erichsen/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[{"id":10064298757,"node_id":"LA_kwDOQb6kR88AAAACV-EDBQ","url":"https://api.github.com/repos/openclaw/openclaw/labels/app:%20web-ui","name":"app: web-ui","color":"6E7781","default":false,"description":"App: web-ui","archived_at":null,"archived_by":null},{"id":10064298857,"node_id":"LA_kwDOQb6kR88AAAACV-EDaQ","url":"https://api.github.com/repos/openclaw/openclaw/labels/gateway","name":"gateway","color":"57606A","default":false,"description":"Gateway runtime","archived_at":null,"archived_by":null},{"id":10068150099,"node_id":"LA_kwDOQb6kR88AAAACWBvHUw","url":"https://api.github.com/repos/openclaw/openclaw/labels/cli","name":"cli","color":"0A3069","default":false,"description":"CLI command changes","archived_at":null,"archived_by":null},{"id":10190106804,"node_id":"LA_kwDOQb6kR88AAAACX2CwtA","url":"https://api.github.com/repos/openclaw/openclaw/labels/size:%20XL","name":"size: XL","color":"8C959F","default":false,"description":null,"archived_at":null,"archived_by":null},{"id":10970446441,"node_id":"LA_kwDOQb6kR88AAAACjeO6aQ","url":"https://api.github.com/repos/openclaw/openclaw/labels/P2","name":"P2","color":"FBCA04","default":false,"description":"Normal backlog priority with limited blast radius.","archived_at":null,"archived_by":null},{"id":10980541151,"node_id":"LA_kwDOQb6kR88AAAACjn3C3w","url":"https://api.github.com/repos/openclaw/openclaw/labels/rating:%20%F0%9F%A7%82%20unranked%20krab","name":"rating: 🧂 unranked krab","color":"8C2F39","default":false,"description":"Not merge-ready due to missing proof or serious correctness/safety concerns.","archived_at":null,"archived_by":null},{"id":10981549078,"node_id":"LA_kwDOQb6kR88AAAACjo0kFg","url":"https://api.github.com/repos/openclaw/openclaw/labels/merge-risk:%20%F0%9F%9A%A8%20compatibility","name":"merge-risk: 🚨 compatibility","color":"D1242F","default":false,"description":"🚨 May break existing users, config, migrations, defaults, or upgrade paths.","archived_at":null,"archived_by":null},{"id":10981589204,"node_id":"LA_kwDOQb6kR88AAAACjo3A1A","url":"https://api.github.com/repos/openclaw/openclaw/labels/merge-risk:%20%F0%9F%9A%A8%20security-boundary","name":"merge-risk: 🚨 security-boundary","color":"B60205","default":false,"description":"🚨 May affect sandboxing, authorization, credentials, or sensitive data.","archived_at":null,"archived_by":null},{"id":10982444316,"node_id":"LA_kwDOQb6kR88AAAACjprNHA","url":"https://api.github.com/repos/openclaw/openclaw/labels/status:%20%F0%9F%93%A3%20needs%20proof","name":"status: 📣 needs proof","color":"D93F0B","default":false,"description":"The PR needs real behavior proof before ClawSweeper can clear the contributor ask.","archived_at":null,"archived_by":null}],"state":"open","locked":false,"assignees":[],"milestone":null,"comments":4,"created_at":"2026-11-10T04:15:07Z","updated_at":"2026-11-10T06:26:04Z","closed_at":null,"assignee":null,"author_association":"CONTRIBUTOR","issue_field_values":[],"type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https://api.github.com/repos/openclaw/openclaw/pulls/196431","html_url":"https://github.com/openclaw/openclaw/pull/196431","diff_url":"https://github.com/openclaw/openclaw/pull/196431.diff","patch_url":"https://github.com/openclaw/openclaw/pull/196431.patch","merged_at":null},"body":"## What Problem This Solves\n\nFixes an orphaned scheduled job when `openclaw templates add` commits `cron.add` but the CLI loses its reply or a later Add step fails.\n\nThe CLI retains the native creator identity before scheduling so Add can recover the committed job and remove it during rollback. If the authenticated profile changes during the operation, scheduling stops before committing under another owner.\n\n## How It Works\n\nRead canonical `users.self` on the same authenticated connection immediately before `cron.add`, then send the existing native expected-profile precondition. Explicit `null` binds a verified absence of an authenticated user; pending, unavailable or unrecognized identity responses stop before mutation. The Node client preserves this precondition in JSON and retries.\n\nAn older Gateway may reject explicit `null` because its request schema accepts only a string profile ID. The CLI gives update-and-restart guidance only for a captured null profile, a correlated `INVALID_REQUEST` response and the exact diagnostic `invalid request frame: at /expectedProfileId: must be string`. It preserves the original error as the cause. It does not weaken the guard, omit the precondition or retry the add.\n\nNormal CLI authentication and generic cron ownership/reconciliation remain in place. The preparation hook is wire-only because the in-process dispatcher has no socket request function. Request option types move unchanged to a sibling module so the existing over-cap caller does not grow.\n\n## Evidence\n\n- Before: the native CLI reproduction committed a job, lost the reply, returned an incomplete rollback with no captured cron receipt, and left the job behind.\n- After: **10 native CLI cases** cover profiled/unprofiled callers, lost replies, later failure, identity changes and the older-Gateway rejection. They execute the real CLI, stateless Add and native cron persistence/rollback; the fixture fixes RPC delivery and state-owner admission.\n- The older-Gateway case now gives actionable guidance with **zero jobs and exactly one add attempt**; the profiled path remains accepted. The independently qualified repair passes **39/39 tests across three files**, with core and CLI test types, scoped lint, formatting, mock-export checks, source-line limits and whitespace green. Its native test-line gate passes at **6,615,187 / 6,615,187**, with zero slack.\n- The native fixture's mock-isolation marker is now directly adjacent to the mocked local-state owner. The exact CI mock-export failure was reproduced before that two-line comment repair, then the gate passed; fixture size did not change.\n\nIndependent contracts exercise actual Node JSON serialization/retry and same-connection authenticated predispatch preparation. These support the native fixture; this is not a physical CLI-over-WebSocket lost-reply test. The old-Gateway rejection is contract-derived from the released string-only field and injected as a correlated response before binding or dispatch. No physical released `v2026.11.2` Gateway wire run was performed for that case; the derivation used TypeBox 1.4.3 while the release pins 1.3.35.\n\nThe original test allocation adds 321 net lines for the CLI/native rollback regression and independent creator-precondition contracts. The older-Gateway repair adds exactly 21 allocated lines; neither adds unused budget or a scalar-baseline increase.\n\n## Final Stack Qualification\n\nFinal integrated stack head [040ac0bb4459](https://github.com/openclaw/openclaw/pull/196431): **282/282 source tests across 12 files** passed on provisional `9cf9f937e166186194618d544ff78f89fee7d969`. Final replay changes only the separately qualified scheduled-effect test and its exact allocation; every production and non-E2E test input is unchanged. Core and relevant CLI/Gateway test types pass; Gateway-server test types were refreshed after replay. Nine repair files pass scoped lint, formatting and whitespace checks. The complete canonical ratchet coordinator passes all ten gates, including mock exports, database worker/dialect, assertion safety and exact test lines **6,615,474 / 6,615,474** with zero slack.\n\nThe exact 040ac0bb4459 packaged lifecycle check now passes: native snapshot-backed update preserves the whole configuration, all 24 workspace files and the existing native paused job byte-for-byte. Authenticated readback from the healthy new Gateway retains the same owner, inherited model, five-tool bound and private delivery. Runtime digest: 61b011f852f26a58e3af7ad68486c2b94dbbb6153f3201c21e3c2339734063a5. Ten protected Gateway ports/PIDs remain healthy and unchanged across bind/start/stop; the task Gateway is stopped again. This upgrade proof does not repeat the earlier bounded real-model research or replace the separate new-job creator-revocation regression.\n\nNew-head hosted CI/review remains pending. Required Evidence-heading metadata replacements pass; source CI is not yet observed on the five updated heads. Historical failures remain historical; no exception, merge or deployment is claimed.\n\nThis layer follows [#196411](https://github.com/openclaw/openclaw/pull/196411). **Merge and deployment remain held for maintainer review.**\n","closed_by":null,"reactions":{"url":"https://api.github.com/repos/openclaw/openclaw/issues/196431/reactions","total_count":1,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":1},"timeline_url":"https://api.github.com/repos/openclaw/openclaw/issues/196431/timeline","performed_via_github_app":null,"state_reason":null},{"url":"https://api.github.com/repos/openclaw/openclaw/issues/196323","repository_url":"https://api.github.com/repos/openclaw/openclaw","labels_url":"https://api.github.com/repos/openclaw/openclaw/issues/196323/labels{/name}","comments_url":"https://api.github.com/repos/openclaw/openclaw/issues/196323/comments","events_url":"https://api.github.com/repos/openclaw/openclaw/issues/196323/events","html_url":"https://github.com/openclaw/openclaw/pull/196323","id":6296946670,"node_id":"PR_kwDOQb6kR88AAAABN-nkDA","number":196323,"title":"feat: let Template automations start paused for onboarding","user":{"login":"Patrick-Erichsen","id":20157849,"node_id":"MDQ6VXNlcjIwMTU3ODQ5","avatar_url":"https://avatars.githubusercontent.com/u/20157849?v=4","gravatar_id":"","url":"https://api.github.com/users/Patrick-Erichsen","html_url":"https://github.com/Patrick-Erichsen","followers_url":"https://api.github.com/users/Patrick-Erichsen/followers","following_url":"https://api.github.com/users/Patrick-Erichsen/following{/other_user}","gists_url":"https://api.github.com/users/Patrick-Erichsen/gists{/gist_id}","starred_url":"https://api.github.com/users/Patrick-Erichsen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Patrick-Erichsen/subscriptions","organizations_url":"https://api.github.com/users/Patrick-Erichsen/orgs","repos_url":"https://api.github.com/users/Patrick-Erichsen/repos","events_url":"https://api.github.com/users/Patrick-Erichsen/events{/privacy}","received_events_url":"https://api.github.com/users/Patrick-Erichsen/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[{"id":9706244975,"node_id":"LA_kwDOQb6kR88AAAACQomLbw","url":"https://api.github.com/repos/openclaw/openclaw/labels/docs","name":"docs","color":"0A3069","default":false,"description":"Improvements or additions to documentation","archived_at":null,"archived_by":null},{"id":10064298757,"node_id":"LA_kwDOQb6kR88AAAACV-EDBQ","url":"https://api.github.com/repos/openclaw/openclaw/labels/app:%20web-ui","name":"app: web-ui","color":"6E7781","default":false,"description":"App: web-ui","archived_at":null,"archived_by":null},{"id":10064298857,"node_id":"LA_kwDOQb6kR88AAAACV-EDaQ","url":"https://api.github.com/repos/openclaw/openclaw/labels/gateway","name":"gateway","color":"57606A","default":false,"description":"Gateway runtime","archived_at":null,"archived_by":null},{"id":10190106720,"node_id":"LA_kwDOQb6kR88AAAACX2CwYA","url":"https://api.github.com/repos/openclaw/openclaw/labels/size:%20M","name":"size: M","color":"8C959F","default":false,"description":null,"archived_at":null,"archived_by":null},{"id":10873837225,"node_id":"LA_kwDOQb6kR88AAAACiCGWqQ","url":"https://api.github.com/repos/openclaw/openclaw/labels/proof:%20sufficient","name":"proof: sufficient","color":"0E8A16","default":false,"description":"ClawSweeper judged the real behavior proof convincing.","archived_at":null,"archived_by":null},{"id":10970446441,"node_id":"LA_kwDOQb6kR88AAAACjeO6aQ","url":"https://api.github.com/repos/openclaw/openclaw/labels/P2","name":"P2","color":"FBCA04","default":false,"description":"Normal backlog priority with limited blast radius.","archived_at":null,"archived_by":null},{"id":10980565852,"node_id":"LA_kwDOQb6kR88AAAACjn4jXA","url":"https://api.github.com/repos/openclaw/openclaw/labels/rating:%20%F0%9F%90%9A%20platinum%20hermit","name":"rating: 🐚 platinum hermit","color":"0F766E","default":false,"description":"Good normal PR readiness with ordinary maintainer review expected.","archived_at":null,"archived_by":null},{"id":10982431516,"node_id":"LA_kwDOQb6kR88AAAACjpqbHA","url":"https://api.github.com/repos/openclaw/openclaw/labels/status:%20%F0%9F%91%80%20ready%20for%20maintainer%20look","name":"status: 👀 ready for maintainer look","color":"2DA44E","default":false,"description":"ClawSweeper has no concrete contributor-facing blocker left for this PR.","archived_at":null,"archived_by":null},{"id":10998679033,"node_id":"LA_kwDOQb6kR88AAAACj5KF-Q","url":"https://api.github.com/repos/openclaw/openclaw/labels/proof:%20%F0%9F%93%B8%20screenshot","name":"proof: 📸 screenshot","color":"0969DA","default":false,"description":"Contributor real behavior proof includes screenshot evidence.","archived_at":null,"archived_by":null}],"state":"open","locked":false,"assignees":[],"milestone":null,"comments":6,"created_at":"2026-11-09T23:39:46Z","updated_at":"2026-11-10T06:25:04Z","closed_at":null,"assignee":null,"author_association":"CONTRIBUTOR","issue_field_values":[],"type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https://api.github.com/repos/openclaw/openclaw/pulls/196323","html_url":"https://github.com/openclaw/openclaw/pull/196323","diff_url":"https://github.com/openclaw/openclaw/pull/196323.diff","patch_url":"https://github.com/openclaw/openclaw/pull/196323.patch","merged_at":null},"body":"## What Problem This Solves\n\nTemplates need an ordinary automation that waits for onboarding. `automations[].enabled: false` installs the job paused; onboarding configures and enables that same job. Omitted `enabled` keeps the enabled default. Activation remains with the native scheduler.\n\n## Evidence\n\n- The real isolated CronService regression proves that a paused job does not execute. Updating that same job preserves identity, bounded tools and timeout, then permits one controlled execution.\n- Combined protocol/stateless Add checks passed 25 tests. The original slice passed 153 focused core tests, the paused-job browser case and relevant types/checks.\n- Integrated `4e759f15eecd336f7e0a9206c02fbc9ae6373af9` actual Gateway Add immediately exposes the paused job with its correct effective agent, declaration and schedule. Its saved private inference binding reacquires native authorization without manual config publication or a restart. This is persistence/admission proof; the controlled callback is not real-model execution.\n- Published head `5ce8462d1af920f2a7c9c1b627570dfef1fd44c2` has [successful full CI](https://github.com/openclaw/openclaw/actions/runs/42747486557).\n\nThe [stable-upgrade receipt](https://github.com/openclaw/openclaw/pull/196348) covers ordinary agents/settings/files; the additional packaged upgrade below verifies existing-job preservation.\n\nThe [Competitor Watch 0.2.3 companion](https://github.com/openclaw/awesome-templates/pull/22), run on the frozen runtime above, has independent **artifact acceptance with limits**: baseline and scheduled snapshots exactly match their native fetch receipts; the controlled scheduled run fetches only the configured page and preserves the baseline while recording `UNCHANGED`. Its full scheduled skill read is retained. The scheduled fetch is cached; no separate unchanged brief, complete model-visible onboarding skill read or final `NO_REPLY` is retained. A second controlled run returned `truncated:true` on both attempts (the retry was cached): its verified `PARTIAL` brief reports 0/1 coverage and no comparison, while the entire index, prior page entry, successful-run timestamp and both snapshots remain byte-identical. No replacement snapshot is saved. This covers unchanged and truncated-source behavior; changed-page comparison, other retrieval failures and pricing remain untested. Native cron completion/private delivery, pause and host-cap restoration are coordinator evidence. Final hosted readiness remains pending; packaged upgrade is qualified below.\n\n\n\n\n### Current integrated qualification\n\nFinal stack head [040ac0bb4459](https://github.com/openclaw/openclaw/pull/196431) passes 282 source tests across 12 files on provisional 9cf9f937; final replay changes only the separately qualified scheduled-effect test and its allocation. Every production and non-E2E test input is unchanged. Relevant types, nine-file scoped lint/format and all ten canonical ratchet gates pass. Test lines are 6,615,474 / 6,615,474 with zero slack.\n\nThe actual Gateway paired-creator regression passes against rebuilt native production 8cba20, with capture/test blobs identical in the final stack: two real loopback provider requests and one native plugin file write while allowed; native creator revocation then refuses the unchanged job with zero additional effects. An unrevoked negative control produces four requests/two writes and correctly fails. One changed source row passed; two other source rows were deliberately not rerun. This is not commercial-cloud, midflight or CLI creator-revocation evidence.\n\nThe exact 040ac0bb4459 package is independently verified (runtime SHA-256 61b011f852f26a58e3af7ad68486c2b94dbbb6153f3201c21e3c2339734063a5). Snapshot-backed upgrade preserves the complete scratch configuration, all 24 workspace files and the native paused job byte-for-byte. The running Gateway is healthy; authenticated cron readback retains the same job, inherited model, five-tool bound and private delivery. Ten protected Gateway ports/PIDs stay healthy and unchanged through binding/start/stop; the task Gateway is stopped again. Prior real Competitor Watch 0.2.3 research remains bounded earlier-runtime evidence and was not repeated.\n\nNew-head hosted CI/review remains pending. Three metadata checks were repaired with the required authored Evidence heading; their replacement workflows pass. Source CI is not yet observed on the five updated heads; the repository's native recovery is being monitored. Historical failures remain historical; no exception or merge/deployment is claimed.\n\n**Merge and deployment remain held for maintainer review.**\n\n![Before: automation details](https://github.com/user-attachments/assets/94cbc4df-1fba-41f8-a6e6-56cea28e9abb)\n\n![After: paused job disclosure](https://github.com/user-attachments/assets/50fefd1d-7afc-4bb6-a371-a77ceb68d0f8)\n","closed_by":null,"reactions":{"url":"https://api.github.com/repos/openclaw/openclaw/issues/196323/reactions","total_count":1,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":1},"timeline_url":"https://api.github.com/repos/openclaw/openclaw/issues/196323/timeline","performed_via_github_app":null,"state_reason":null},{"url":"https://api.github.com/repos/openclaw/openclaw/issues/196349","repository_url":"https://api.github.com/repos/openclaw/openclaw","labels_url":"https://api.github.com/repos/openclaw/openclaw/issues/196349/labels{/name}","comments_url":"https://api.github.com/repos/openclaw/openclaw/issues/196349/comments","events_url":"https://api.github.com/repos/openclaw/openclaw/issues/196349/events","html_url":"https://github.com/openclaw/openclaw/pull/196349","id":6297580924,"node_id":"PR_kwDOQb6kR88AAAABN_Hr9A","number":196349,"title":"feat(templates): install bundled plugins through native management","user":{"login":"Patrick-Erichsen","id":20157849,"node_id":"MDQ6VXNlcjIwMTU3ODQ5","avatar_url":"https://avatars.githubusercontent.com/u/20157849?v=4","gravatar_id":"","url":"https://api.github.com/users/Patrick-Erichsen","html_url":"https://github.com/Patrick-Erichsen","followers_url":"https://api.github.com/users/Patrick-Erichsen/followers","following_url":"https://api.github.com/users/Patrick-Erichsen/following{/other_user}","gists_url":"https://api.github.com/users/Patrick-Erichsen/gists{/gist_id}","starred_url":"https://api.github.com/users/Patrick-Erichsen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Patrick-Erichsen/subscriptions","organizations_url":"https://api.github.com/users/Patrick-Erichsen/orgs","repos_url":"https://api.github.com/users/Patrick-Erichsen/repos","events_url":"https://api.github.com/users/Patrick-Erichsen/events{/privacy}","received_events_url":"https://api.github.com/users/Patrick-Erichsen/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[{"id":10064298757,"node_id":"LA_kwDOQb6kR88AAAACV-EDBQ","url":"https://api.github.com/repos/openclaw/openclaw/labels/app:%20web-ui","name":"app: web-ui","color":"6E7781","default":false,"description":"App: web-ui","archived_at":null,"archived_by":null},{"id":10064298857,"node_id":"LA_kwDOQb6kR88AAAACV-EDaQ","url":"https://api.github.com/repos/openclaw/openclaw/labels/gateway","name":"gateway","color":"57606A","default":false,"description":"Gateway runtime","archived_at":null,"archived_by":null},{"id":10190106804,"node_id":"LA_kwDOQb6kR88AAAACX2CwtA","url":"https://api.github.com/repos/openclaw/openclaw/labels/size:%20XL","name":"size: XL","color":"8C959F","default":false,"description":null,"archived_at":null,"archived_by":null},{"id":10970446441,"node_id":"LA_kwDOQb6kR88AAAACjeO6aQ","url":"https://api.github.com/repos/openclaw/openclaw/labels/P2","name":"P2","color":"FBCA04","default":false,"description":"Normal backlog priority with limited blast radius.","archived_at":null,"archived_by":null},{"id":10980547267,"node_id":"LA_kwDOQb6kR88AAAACjn3aww","url":"https://api.github.com/repos/openclaw/openclaw/labels/rating:%20%F0%9F%A6%90%20gold%20shrimp","name":"rating: 🦐 gold shrimp","color":"B7791F","default":false,"description":"Decent PR readiness signal, but merge confidence is limited.","archived_at":null,"archived_by":null},{"id":10981589204,"node_id":"LA_kwDOQb6kR88AAAACjo3A1A","url":"https://api.github.com/repos/openclaw/openclaw/labels/merge-risk:%20%F0%9F%9A%A8%20security-boundary","name":"merge-risk: 🚨 security-boundary","color":"B60205","default":false,"description":"🚨 May affect sandboxing, authorization, credentials, or sensitive data.","archived_at":null,"archived_by":null},{"id":10982444316,"node_id":"LA_kwDOQb6kR88AAAACjprNHA","url":"https://api.github.com/repos/openclaw/openclaw/labels/status:%20%F0%9F%93%A3%20needs%20proof","name":"status: 📣 needs proof","color":"D93F0B","default":false,"description":"The PR needs real behavior proof before ClawSweeper can clear the contributor ask.","archived_at":null,"archived_by":null},{"id":10998679033,"node_id":"LA_kwDOQb6kR88AAAACj5KF-Q","url":"https://api.github.com/repos/openclaw/openclaw/labels/proof:%20%F0%9F%93%B8%20screenshot","name":"proof: 📸 screenshot","color":"0969DA","default":false,"description":"Contributor real behavior proof includes screenshot evidence.","archived_at":null,"archived_by":null}],"state":"open","locked":false,"assignees":[],"milestone":null,"comments":8,"created_at":"2026-11-10T00:31:43Z","updated_at":"2026-11-10T06:24:55Z","closed_at":null,"assignee":null,"author_association":"CONTRIBUTOR","issue_field_values":[],"type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https://api.github.com/repos/openclaw/openclaw/pulls/196349","html_url":"https://github.com/openclaw/openclaw/pull/196349","diff_url":"https://github.com/openclaw/openclaw/pull/196349.diff","patch_url":"https://github.com/openclaw/openclaw/pull/196349.patch","merged_at":null},"body":"## What Problem This Solves\n\nTemplates can install native bundled plugins declared with `plugins: [{path: plugins/example}]`. Add reviews immutable local bytes and delegates capability consent, dependency handling, policy, installation and rollback to the existing native plugin manager. The install record retains the verified artifact and third-party provenance. Pinned ClawHub plugins use their existing installer.\n\nNative-first metadata selection supports packages with a companion bundle manifest. Runtime collection is completed by [#196389](https://github.com/openclaw/openclaw/pull/196389). The registry rollout remains coordinated and held.\n\n## Before / After Proof\n\nBundled sources previously appeared as ClawHub dependencies. The source-aware inventory and consent UI now identify the bundled artifact. Original source-disclosure tests cover all four bundled/referenced skill/plugin combinations.\n\n![Before: bundled source presented as ClawHub](https://github.com/user-attachments/assets/ce4633e2-0357-44cb-9f37-313fdcc55a58)\n\n![After: native bundled plugin source](https://github.com/user-attachments/assets/3cded10f-6eeb-4ea0-ae6d-9e376d887c7c)\n\nThe actual Gateway fixture at integrated `4e759f15eecd336f7e0a9206c02fbc9ae6373af9` passed three source cases: native admin Add succeeds, read-only Add is denied, and revocation at final install policy prevents publication/activation. That proof includes the dependent runtime collection correction.\n\n## Evidence\n\nThe bundle-only invalid-manifest fixture now removes both native metadata files before constructing an unnamed companion manifest. This preserves native-first resolution and keeps the original rejection assertion. Its native plugin/project tests pass 18/18; exactly two test lines are allocated.\n\nFinal integrated stack head [040ac0bb4459](https://github.com/openclaw/openclaw/pull/196431): **282/282 source tests across 12 files** passed on provisional `9cf9f937e166186194618d544ff78f89fee7d969`. Final replay changes only the separately qualified scheduled-effect test and its exact allocation; every production and non-E2E test input is unchanged. Core and relevant CLI/Gateway test types pass; Gateway-server test types were refreshed after replay. Nine repair files pass scoped lint, formatting and whitespace checks. The complete canonical ratchet coordinator passes all ten gates, including mock exports, database worker/dialect, assertion safety and exact test lines **6,615,474 / 6,615,474** with zero slack.\n\nThe exact 040ac0bb4459 packaged lifecycle check now passes: native snapshot-backed update preserves the whole configuration, all 24 workspace files and the existing native paused job byte-for-byte. Authenticated readback from the healthy new Gateway retains the same owner, inherited model, five-tool bound and private delivery. Runtime digest: 61b011f852f26a58e3af7ad68486c2b94dbbb6153f3201c21e3c2339734063a5. Ten protected Gateway ports/PIDs remain healthy and unchanged across bind/start/stop; the task Gateway is stopped again. This upgrade proof does not repeat the earlier bounded real-model research or replace the separate new-job creator-revocation regression.\n\nNew-head hosted CI/review remains pending. Required Evidence-heading metadata replacements pass; source CI is not yet observed on the five updated heads. Historical failures remain historical; no exception, merge or deployment is claimed.\n\nTwo session assertions were also reproduced on main `9ccdad09a9dfb6a68d32aae18a1014b753ba1704`: allowed-clone authorization and visible GitHub spawn terminal failure status. Original CI ran Linux Bun; paired attribution ran Darwin pinned Bun with Node 24 orchestration. These are existing defects, not a passing CI claim or an exception authorization.\n\nThe ordinary-agent stable-upgrade evidence remains in [#196348](https://github.com/openclaw/openclaw/pull/196348); bounded Competitor Watch acceptance is linked from [#196323](https://github.com/openclaw/openclaw/pull/196323). Merge and deployment remain held for maintainer review.\n","closed_by":null,"reactions":{"url":"https://api.github.com/repos/openclaw/openclaw/issues/196349/reactions","total_count":1,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":1},"timeline_url":"https://api.github.com/repos/openclaw/openclaw/issues/196349/timeline","performed_via_github_app":null,"state_reason":null},{"url":"https://api.github.com/repos/openclaw/openclaw/issues/196411","repository_url":"https://api.github.com/repos/openclaw/openclaw","labels_url":"https://api.github.com/repos/openclaw/openclaw/issues/196411/labels{/name}","comments_url":"https://api.github.com/repos/openclaw/openclaw/issues/196411/comments","events_url":"https://api.github.com/repos/openclaw/openclaw/issues/196411/events","html_url":"https://github.com/openclaw/openclaw/pull/196411","id":6299440781,"node_id":"PR_kwDOQb6kR88AAAABOAmHhQ","number":196411,"title":"fix(agents): preserve custom bootstrap onboarding","user":{"login":"Patrick-Erichsen","id":20157849,"node_id":"MDQ6VXNlcjIwMTU3ODQ5","avatar_url":"https://avatars.githubusercontent.com/u/20157849?v=4","gravatar_id":"","url":"https://api.github.com/users/Patrick-Erichsen","html_url":"https://github.com/Patrick-Erichsen","followers_url":"https://api.github.com/users/Patrick-Erichsen/followers","following_url":"https://api.github.com/users/Patrick-Erichsen/following{/other_user}","gists_url":"https://api.github.com/users/Patrick-Erichsen/gists{/gist_id}","starred_url":"https://api.github.com/users/Patrick-Erichsen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Patrick-Erichsen/subscriptions","organizations_url":"https://api.github.com/users/Patrick-Erichsen/orgs","repos_url":"https://api.github.com/users/Patrick-Erichsen/repos","events_url":"https://api.github.com/users/Patrick-Erichsen/events{/privacy}","received_events_url":"https://api.github.com/users/Patrick-Erichsen/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[{"id":9706244975,"node_id":"LA_kwDOQb6kR88AAAACQomLbw","url":"https://api.github.com/repos/openclaw/openclaw/labels/docs","name":"docs","color":"0A3069","default":false,"description":"Improvements or additions to documentation","archived_at":null,"archived_by":null},{"id":10069934305,"node_id":"LA_kwDOQb6kR88AAAACWDcA4Q","url":"https://api.github.com/repos/openclaw/openclaw/labels/commands","name":"commands","color":"0A3069","default":false,"description":"Command implementations","archived_at":null,"archived_by":null},{"id":10069976942,"node_id":"LA_kwDOQb6kR88AAAACWDenbg","url":"https://api.github.com/repos/openclaw/openclaw/labels/agents","name":"agents","color":"57606A","default":false,"description":"Agent runtime and tooling","archived_at":null,"archived_by":null},{"id":10190106720,"node_id":"LA_kwDOQb6kR88AAAACX2CwYA","url":"https://api.github.com/repos/openclaw/openclaw/labels/size:%20M","name":"size: M","color":"8C959F","default":false,"description":null,"archived_at":null,"archived_by":null},{"id":10970446441,"node_id":"LA_kwDOQb6kR88AAAACjeO6aQ","url":"https://api.github.com/repos/openclaw/openclaw/labels/P2","name":"P2","color":"FBCA04","default":false,"description":"Normal backlog priority with limited blast radius.","archived_at":null,"archived_by":null},{"id":10980547267,"node_id":"LA_kwDOQb6kR88AAAACjn3aww","url":"https://api.github.com/repos/openclaw/openclaw/labels/rating:%20%F0%9F%A6%90%20gold%20shrimp","name":"rating: 🦐 gold shrimp","color":"B7791F","default":false,"description":"Decent PR readiness signal, but merge confidence is limited.","archived_at":null,"archived_by":null},{"id":10981549078,"node_id":"LA_kwDOQb6kR88AAAACjo0kFg","url":"https://api.github.com/repos/openclaw/openclaw/labels/merge-risk:%20%F0%9F%9A%A8%20compatibility","name":"merge-risk: 🚨 compatibility","color":"D1242F","default":false,"description":"🚨 May break existing users, config, migrations, defaults, or upgrade paths.","archived_at":null,"archived_by":null}],"state":"open","locked":false,"assignees":[],"milestone":null,"comments":6,"created_at":"2026-11-10T03:11:47Z","updated_at":"2026-11-10T06:24:33Z","closed_at":null,"assignee":null,"author_association":"CONTRIBUTOR","issue_field_values":[],"type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https://api.github.com/repos/openclaw/openclaw/pulls/196411","html_url":"https://github.com/openclaw/openclaw/pull/196411","diff_url":"https://github.com/openclaw/openclaw/pull/196411.diff","patch_url":"https://github.com/openclaw/openclaw/pull/196411.patch","merged_at":null},"body":"## What Problem This Solves\n\nWorkspace startup deleted a Template's custom `BOOTSTRAP.md` before its first conversation when a supplied SOUL or skill looked like completed setup. Custom onboarding now stays pending until the file is consumed. Workspace and Doctor share the existing template comparison owner.\n\nThe same native history owner recognizes the exact stock bodies shipped by `v2026.9.2` and `v2026.7.1`. Untouched historical stock stays pending across restart; a later profile edit still triggers ordinary completion recovery. Custom onboarding remains distinct from these known stock fingerprints.\n\n## Evidence\n\n- The public Add regression retains custom onboarding through repeated preparation; explicit removal records completion and does not recreate it.\n- Before the July fingerprint, the native July recovery row leaves stock `BOOTSTRAP.md` behind after restart and a profile edit. After repair, current, September and July stock recovery rows pass. The July fixture is the exact 53-line seeded body from canonical `v2026.7.1` (`2d2ddc43d0dcf71f31283d780f9fe9ff4cc04fe4`).\n- The independently qualified bootstrap repair passes **100/100 tests across four files**, including the shared Doctor caller. Core and agents test types, scoped lint, formatting, source-line limits and whitespace pass. The existing workspace test remains 634 lines; the July repair adds no test allocation. Its native test-line gate passes at **6,614,896 / 6,614,896**, with zero slack.\n\nThe moved comparison uses the existing `hasNodeErrorCode` guard. The prior assertion allowance was reduced from three to two; no assertion allowance was added.\n\n## Final Stack Qualification\n\nFinal integrated stack head [040ac0bb4459](https://github.com/openclaw/openclaw/pull/196431): **282/282 source tests across 12 files** passed on provisional `9cf9f937e166186194618d544ff78f89fee7d969`. Final replay changes only the separately qualified scheduled-effect test and its exact allocation; every production and non-E2E test input is unchanged. Core and relevant CLI/Gateway test types pass; Gateway-server test types were refreshed after replay. Nine repair files pass scoped lint, formatting and whitespace checks. The complete canonical ratchet coordinator passes all ten gates, including mock exports, database worker/dialect, assertion safety and exact test lines **6,615,474 / 6,615,474** with zero slack.\n\nThe exact 040ac0bb4459 packaged lifecycle check now passes: native snapshot-backed update preserves the whole configuration, all 24 workspace files and the existing native paused job byte-for-byte. Authenticated readback from the healthy new Gateway retains the same owner, inherited model, five-tool bound and private delivery. Runtime digest: 61b011f852f26a58e3af7ad68486c2b94dbbb6153f3201c21e3c2339734063a5. Ten protected Gateway ports/PIDs remain healthy and unchanged across bind/start/stop; the task Gateway is stopped again. This upgrade proof does not repeat the earlier bounded real-model research or replace the separate new-job creator-revocation regression.\n\nNew-head hosted CI/review remains pending. Required Evidence-heading metadata replacements pass; source CI is not yet observed on the five updated heads. Historical failures remain historical; no exception, merge or deployment is claimed.\n\nThe broader [stable-upgrade receipt](https://github.com/openclaw/openclaw/pull/196348) preserves ordinary agents/settings/files; it does not qualify pending/completed onboarding migration for the new packaged head.\n\nThis layer follows [#196389](https://github.com/openclaw/openclaw/pull/196389); the final CLI layer is [#196431](https://github.com/openclaw/openclaw/pull/196431). The [companion contribution](https://github.com/openclaw/awesome-templates/pull/22) has bounded 0.2.3 artifact acceptance; [scope and limits](https://github.com/openclaw/openclaw/pull/196323) distinguish the frozen-runtime model run from packaged-upgrade and hosted readiness. **Merge and deployment remain held for maintainer review.**\n","closed_by":null,"reactions":{"url":"https://api.github.com/repos/openclaw/openclaw/issues/196411/reactions","total_count":1,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":1},"timeline_url":"https://api.github.com/repos/openclaw/openclaw/issues/196411/timeline","performed_via_github_app":null,"state_reason":null},{"url":"https://api.github.com/repos/openclaw/openclaw/issues/196099","repository_url":"https://api.github.com/repos/openclaw/openclaw","labels_url":"https://api.github.com/repos/openclaw/openclaw/issues/196099/labels{/name}","comments_url":"https://api.github.com/repos/openclaw/openclaw/issues/196099/comments","events_url":"https://api.github.com/repos/openclaw/openclaw/issues/196099/events","html_url":"https://github.com/openclaw/openclaw/pull/196099","id":6289866296,"node_id":"PR_kwDOQb6kR88AAAABN47MsQ","number":196099,"title":"fix(cli): config set rejects out-of-range array indexes instead of writing null holes","user":{"login":"YangManBOBO","id":156181593,"node_id":"U_kgDOCU8kWQ","avatar_url":"https://avatars.githubusercontent.com/u/156181593?v=4","gravatar_id":"","url":"https://api.github.com/users/YangManBOBO","html_url":"https://github.com/YangManBOBO","followers_url":"https://api.github.com/users/YangManBOBO/followers","following_url":"https://api.github.com/users/YangManBOBO/following{/other_user}","gists_url":"https://api.github.com/users/YangManBOBO/gists{/gist_id}","starred_url":"https://api.github.com/users/YangManBOBO/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YangManBOBO/subscriptions","organizations_url":"https://api.github.com/users/YangManBOBO/orgs","repos_url":"https://api.github.com/users/YangManBOBO/repos","events_url":"https://api.github.com/users/YangManBOBO/events{/privacy}","received_events_url":"https://api.github.com/users/YangManBOBO/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[{"id":10068150099,"node_id":"LA_kwDOQb6kR88AAAACWBvHUw","url":"https://api.github.com/repos/openclaw/openclaw/labels/cli","name":"cli","color":"0A3069","default":false,"description":"CLI command changes","archived_at":null,"archived_by":null},{"id":10190106648,"node_id":"LA_kwDOQb6kR88AAAACX2CwGA","url":"https://api.github.com/repos/openclaw/openclaw/labels/size:%20S","name":"size: S","color":"8C959F","default":false,"description":null,"archived_at":null,"archived_by":null},{"id":10873837225,"node_id":"LA_kwDOQb6kR88AAAACiCGWqQ","url":"https://api.github.com/repos/openclaw/openclaw/labels/proof:%20sufficient","name":"proof: sufficient","color":"0E8A16","default":false,"description":"ClawSweeper judged the real behavior proof convincing.","archived_at":null,"archived_by":null},{"id":10970446441,"node_id":"LA_kwDOQb6kR88AAAACjeO6aQ","url":"https://api.github.com/repos/openclaw/openclaw/labels/P2","name":"P2","color":"FBCA04","default":false,"description":"Normal backlog priority with limited blast radius.","archived_at":null,"archived_by":null},{"id":10980565852,"node_id":"LA_kwDOQb6kR88AAAACjn4jXA","url":"https://api.github.com/repos/openclaw/openclaw/labels/rating:%20%F0%9F%90%9A%20platinum%20hermit","name":"rating: 🐚 platinum hermit","color":"0F766E","default":false,"description":"Good normal PR readiness with ordinary maintainer review expected.","archived_at":null,"archived_by":null},{"id":10982431516,"node_id":"LA_kwDOQb6kR88AAAACjpqbHA","url":"https://api.github.com/repos/openclaw/openclaw/labels/status:%20%F0%9F%91%80%20ready%20for%20maintainer%20look","name":"status: 👀 ready for maintainer look","color":"2DA44E","default":false,"description":"ClawSweeper has no concrete contributor-facing blocker left for this PR.","archived_at":null,"archived_by":null}],"state":"open","locked":false,"assignees":[],"milestone":null,"comments":5,"created_at":"2026-11-09T16:13:19Z","updated_at":"2026-11-10T06:24:17Z","closed_at":null,"assignee":null,"author_association":"CONTRIBUTOR","issue_field_values":[],"type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https://api.github.com/repos/openclaw/openclaw/pulls/196099","html_url":"https://github.com/openclaw/openclaw/pull/196099","diff_url":"https://github.com/openclaw/openclaw/pull/196099.diff","patch_url":"https://github.com/openclaw/openclaw/pull/196099.patch","merged_at":null},"body":"﻿Closes #196098\r\n\r\n## What Problem This Solves\r\n\r\nFixes: `openclaw config set` silently writes `null` holes into array values when the path index is past the end of the array. For schema-less paths (e.g. plugin `config` free-form objects) the corrupted file is written to disk and the command reports success, so a one-character typo like `models.5.id` can permanently damage the user's config with phantom `null` entries.\r\n\r\n## User Impact\r\n\r\nUser impact: `openclaw config set <array>.<index>...` now rejects an out-of-range array index with a clear, actionable error (`Cannot set index N of array \"path.to.array\": index out of range (length M). Use index M to append a new entry, or index 0-(M-1) to update an existing entry.`) and leaves the file untouched, instead of silently appending `null` holes. Appending at the exact next index (`index === length`) and filling a new empty container still work, so existing valid workflows are unchanged.\r\n\r\n## Why This Change Was Made\r\n\r\n`setAtPath` in `src/cli/config-cli-path.ts` is the only config-path mutation helper that lacks the array-bounds check. Its siblings — `getAtPath`, `unsetAtPath`, `setPathValue` (`io.write-prepare.ts`), and `unsetPathForWriteAt` (`config-path-mutation.ts`) — all guard `index >= length`. `setAtPath` writes `current[index] = value` unconditionally, producing a sparse array that `JSON.stringify` serializes as `null` entries. The `models.*` path happens to be rescued later by strict schema validation at the writer, but schema-less paths (plugin `config` objects) are not, so the corrupted file is persisted and the command exits 0.\r\n\r\nThe fix adds the missing bounds check in both the traversal and the leaf branches, matching the sibling helpers' intent while preserving the two supported append/fill behaviors that existing tests rely on.\r\n\r\n## Evidence\r\n\r\n### Real environment\r\n\r\n- OS: Windows 11\r\n- Runtime: Node 24.16.0, real `openclaw` CLI built from this branch (`dist` via `scripts/build-all.mts`)\r\n- Config: a schema-less plugin config array (free-form, so the writer's strict schema validation does not run)\r\n\r\n### Before this patch (pre-fix build)\r\n\r\nCommand (exit code 0 — silently corrupts the file):\r\n\r\n```\r\nopenclaw config set plugins.entries.demo.config.tags.5 z\r\n```\r\n\r\nResulting config file:\r\n\r\n```json\r\n{\r\n  \"plugins\": {\r\n    \"entries\": {\r\n      \"demo\": {\r\n        \"config\": {\r\n          \"tags\": [\"a\", \"b\", null, null, null, \"z\"]\r\n        }\r\n      }\r\n    }\r\n  }\r\n}\r\n```\r\n\r\nThe three `null` entries were never requested; the user asked to set index 5 of a 2-element array.\r\n\r\n### After this patch (post-fix build)\r\n\r\nSame command:\r\n\r\n```\r\nopenclaw config set plugins.entries.demo.config.tags.5 z\r\n```\r\n\r\nOutput:\r\n\r\n```\r\nCannot set index 5 of array \"plugins.entries.demo.config.tags\": index out of range (length 2). Use index 2 to append a new entry, or index 0-1 to update an existing entry.\r\n```\r\n\r\nExit code 1. Config file unchanged:\r\n\r\n```json\r\n{\"plugins\":{\"entries\":{\"demo\":{\"config\":{\"tags\":[\"a\",\"b\"]}}}}}\r\n```\r\n\r\nThe error names the actual array path (not the stray index `\"5\"`) and tells the user the valid correction: index 2 appends, indexes 0-1 update existing entries.\r\n\r\n### Focused tests\r\n\r\n`pnpm test:fast src/cli/config-cli-path.test.ts` — 19/19 pass, including 5 regression tests (red on base, green with the fix):\r\n\r\n- rejects a leaf write past the end of an array (no `null` holes)\r\n- rejects a traversal through an out-of-range index (no `null` holes)\r\n- explains appending when the array is empty (length 0)\r\n- still appends at the next index (`index === length`)\r\n- still fills a new empty container at index 0\r\n\r\nAlso verified: `tsgo:core` and the `config-cli` core-test shard typecheck clean, oxlint clean, `check-test-lines-ratchet` green (39-line justified allocation), format check clean.\r\n\r\n### What was not tested\r\n\r\nThe full `pnpm test` / `pnpm check` suite and the gateway-routed config writer (this change is in the local CLI path; the Gateway writer has its own mutation pipeline). Behavior is exercised through the real CLI binary for both before and after.\r\n\r\n## Regression Test Plan\r\n\r\n- [x] unit — `src/cli/config-cli-path.test.ts`: new `setAtPath array bounds` describe block asserts the out-of-range rejections (leaf, traversal, empty array) and the three preserved append/fill cases. This is the minimal reliable guardrail: `setAtPath` is the sole function changed and the test drives it directly with realistic config-shaped data, red on the base commit and green with the fix.\r\n- [ ] seam / integration / e2e — not added; the CLI runner path is already covered by existing integration suites, and this change does not alter successful writes.\r\n\r\n## Scope Boundary\r\n\r\n- Only `setAtPath` in `src/cli/config-cli-path.ts` is changed (bounds check + shared message helper) plus its regression test and a test-lines allocation.\r\n- No change to `getAtPath`, `unsetAtPath`, the Gateway writer, or the JSON path helpers in other modules.\r\n- No refactor; the fix is the minimal missing bounds check consistent with the four sibling helpers.\r\n- AI-assisted: lightly tested — verified through real-CLI before/after runs and focused unit tests; not run against the full suite.\r\n\r\n","closed_by":null,"reactions":{"url":"https://api.github.com/repos/openclaw/openclaw/issues/196099/reactions","total_count":1,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":1},"timeline_url":"https://api.github.com/repos/openclaw/openclaw/issues/196099/timeline","performed_via_github_app":null,"state_reason":null},{"url":"https://api.github.com/repos/openclaw/openclaw/issues/196389","repository_url":"https://api.github.com/repos/openclaw/openclaw","labels_url":"https://api.github.com/repos/openclaw/openclaw/issues/196389/labels{/name}","comments_url":"https://api.github.com/repos/openclaw/openclaw/issues/196389/comments","events_url":"https://api.github.com/repos/openclaw/openclaw/issues/196389/events","html_url":"https://github.com/openclaw/openclaw/pull/196389","id":6298917218,"node_id":"PR_kwDOQb6kR88AAAABOAL3bQ","number":196389,"title":"fix(templates): resolve bundled plugin runtime owners","user":{"login":"Patrick-Erichsen","id":20157849,"node_id":"MDQ6VXNlcjIwMTU3ODQ5","avatar_url":"https://avatars.githubusercontent.com/u/20157849?v=4","gravatar_id":"","url":"https://api.github.com/users/Patrick-Erichsen","html_url":"https://github.com/Patrick-Erichsen","followers_url":"https://api.github.com/users/Patrick-Erichsen/followers","following_url":"https://api.github.com/users/Patrick-Erichsen/following{/other_user}","gists_url":"https://api.github.com/users/Patrick-Erichsen/gists{/gist_id}","starred_url":"https://api.github.com/users/Patrick-Erichsen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Patrick-Erichsen/subscriptions","organizations_url":"https://api.github.com/users/Patrick-Erichsen/orgs","repos_url":"https://api.github.com/users/Patrick-Erichsen/repos","events_url":"https://api.github.com/users/Patrick-Erichsen/events{/privacy}","received_events_url":"https://api.github.com/users/Patrick-Erichsen/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[{"id":10064298857,"node_id":"LA_kwDOQb6kR88AAAACV-EDaQ","url":"https://api.github.com/repos/openclaw/openclaw/labels/gateway","name":"gateway","color":"57606A","default":false,"description":"Gateway runtime","archived_at":null,"archived_by":null},{"id":10190106760,"node_id":"LA_kwDOQb6kR88AAAACX2CwiA","url":"https://api.github.com/repos/openclaw/openclaw/labels/size:%20L","name":"size: L","color":"8C959F","default":false,"description":null,"archived_at":null,"archived_by":null},{"id":10970446441,"node_id":"LA_kwDOQb6kR88AAAACjeO6aQ","url":"https://api.github.com/repos/openclaw/openclaw/labels/P2","name":"P2","color":"FBCA04","default":false,"description":"Normal backlog priority with limited blast radius.","archived_at":null,"archived_by":null},{"id":10980547267,"node_id":"LA_kwDOQb6kR88AAAACjn3aww","url":"https://api.github.com/repos/openclaw/openclaw/labels/rating:%20%F0%9F%A6%90%20gold%20shrimp","name":"rating: 🦐 gold shrimp","color":"B7791F","default":false,"description":"Decent PR readiness signal, but merge confidence is limited.","archived_at":null,"archived_by":null},{"id":10982431516,"node_id":"LA_kwDOQb6kR88AAAACjpqbHA","url":"https://api.github.com/repos/openclaw/openclaw/labels/status:%20%F0%9F%91%80%20ready%20for%20maintainer%20look","name":"status: 👀 ready for maintainer look","color":"2DA44E","default":false,"description":"ClawSweeper has no concrete contributor-facing blocker left for this PR.","archived_at":null,"archived_by":null}],"state":"open","locked":false,"assignees":[],"milestone":null,"comments":8,"created_at":"2026-11-10T02:23:41Z","updated_at":"2026-11-10T06:24:14Z","closed_at":null,"assignee":null,"author_association":"CONTRIBUTOR","issue_field_values":[],"type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https://api.github.com/repos/openclaw/openclaw/pulls/196389","html_url":"https://github.com/openclaw/openclaw/pull/196389","diff_url":"https://github.com/openclaw/openclaw/pull/196389.diff","patch_url":"https://github.com/openclaw/openclaw/pull/196389.patch","merged_at":null},"body":"## What Problem This Solves\n\nAuthenticated Template Add accepted a bundled plugin during preview but failed during runtime installation because collection used the ClawHub-only extractor. It now chooses the existing extractor for the declared source. Native snapshot, package-integrity and installation owners remain authoritative.\n\n## Before / After Proof\n\n- Before: bundled plugin Add failed with `not a pinned ClawHub package with integrity` before installation.\n- After: actual authenticated Gateway Add installs a bundled skill, bundled plugin and pinned ClawHub plugin through their native owners, exposing persisted discovery/install records and enabled tools as applicable.\n- Read-only callers cannot Add. Revoking a paired operator during the final asynchronous native install-policy check prevents dependency publication, activation and agent configuration. Cleanup is joined before checking absence.\n- The bundled-plugin case checks the paused job and private inference binding. Paired creator A's exact source is persisted; controller B forces that job successfully with two real provider requests and one plugin file write. B then natively revokes A and forces the same job: creator-authority rejection, still two requests and one write. Definition/source remain equal except native state and update time.\n\nThe actual-effect extension adds exactly 171 net test lines with a matching allocation and no unused budget.\n\n## Evidence\n\nFinal integrated stack head [040ac0bb4459](https://github.com/openclaw/openclaw/pull/196431): **282/282 source tests across 12 files** passed on provisional `9cf9f937e166186194618d544ff78f89fee7d969`. Final replay changes only the separately qualified scheduled-effect test and its exact allocation; every production and non-E2E test input is unchanged. Core and relevant CLI/Gateway test types pass; Gateway-server test types were refreshed after replay. Nine repair files pass scoped lint, formatting and whitespace checks. The complete canonical ratchet coordinator passes all ten gates, including mock exports, database worker/dialect, assertion safety and exact test lines **6,615,474 / 6,615,474** with zero slack.\n\nThe exact 040ac0bb4459 packaged lifecycle check now passes: native snapshot-backed update preserves the whole configuration, all 24 workspace files and the existing native paused job byte-for-byte. Authenticated readback from the healthy new Gateway retains the same owner, inherited model, five-tool bound and private delivery. Runtime digest: 61b011f852f26a58e3af7ad68486c2b94dbbb6153f3201c21e3c2339734063a5. Ten protected Gateway ports/PIDs remain healthy and unchanged across bind/start/stop; the task Gateway is stopped again. This upgrade proof does not repeat the earlier bounded real-model research or replace the separate new-job creator-revocation regression.\n\nNew-head hosted CI/review remains pending. Required Evidence-heading metadata replacements pass; source CI is not yet observed on the five updated heads. Historical failures remain historical; no exception, merge or deployment is claimed.\n\nThe changed plugin row passes in 45.10 seconds / 51.53 wall against rebuilt native production commit `8cba20abbb9a08899eb363a3cf274416b2cf6dc6`; two other source-combination rows were deliberately not rerun. The passing row retains read-only refusal and final-install-policy device revocation/cleanup. The capture and test blobs are identical in the final stack. A negative control without revocation made four requests/two writes and correctly failed the expected-refusal assertion; native revocation was restored for GREEN. The capture repair is owned by [#196383](https://github.com/openclaw/openclaw/pull/196383).\n\nRegistry replies and external install-policy I/O are fixed; authenticated RPC, native installation, scheduler persistence, provider HTTP and tool execution remain real. This is not commercial-cloud or midflight-revocation evidence.\n\nThis layer follows [#196383](https://github.com/openclaw/openclaw/pull/196383). Merge and deployment remain held for maintainer review.\n","closed_by":null,"reactions":{"url":"https://api.github.com/repos/openclaw/openclaw/issues/196389/reactions","total_count":1,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":1},"timeline_url":"https://api.github.com/repos/openclaw/openclaw/issues/196389/timeline","performed_via_github_app":null,"state_reason":null},{"url":"https://api.github.com/repos/openclaw/openclaw/issues/185092","repository_url":"https://api.github.com/repos/openclaw/openclaw","labels_url":"https://api.github.com/repos/openclaw/openclaw/issues/185092/labels{/name}","comments_url":"https://api.github.com/repos/openclaw/openclaw/issues/185092/comments","events_url":"https://api.github.com/repos/openclaw/openclaw/issues/185092/events","html_url":"https://github.com/openclaw/openclaw/issues/185092","id":6049109693,"node_id":"I_kwDOQb6kR88AAAABaI4WvQ","number":185092,"title":"Windows node paired but browser control fails with listener ownership/authentication error","user":{"login":"santoshadogg-arch","id":334059445,"node_id":"U_kgDOE-lXtQ","avatar_url":"https://avatars.githubusercontent.com/u/334059445?v=4","gravatar_id":"","url":"https://api.github.com/users/santoshadogg-arch","html_url":"https://github.com/santoshadogg-arch","followers_url":"https://api.github.com/users/santoshadogg-arch/followers","following_url":"https://api.github.com/users/santoshadogg-arch/following{/other_user}","gists_url":"https://api.github.com/users/santoshadogg-arch/gists{/gist_id}","starred_url":"https://api.github.com/users/santoshadogg-arch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/santoshadogg-arch/subscriptions","organizations_url":"https://api.github.com/users/santoshadogg-arch/orgs","repos_url":"https://api.github.com/users/santoshadogg-arch/repos","events_url":"https://api.github.com/users/santoshadogg-arch/events{/privacy}","received_events_url":"https://api.github.com/users/santoshadogg-arch/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[{"id":10970446441,"node_id":"LA_kwDOQb6kR88AAAACjeO6aQ","url":"https://api.github.com/repos/openclaw/openclaw/labels/P2","name":"P2","color":"FBCA04","default":false,"description":"Normal backlog priority with limited blast radius.","archived_at":null,"archived_by":null},{"id":11414101691,"node_id":"LA_kwDOQb6kR88AAAACqFVeuw","url":"https://api.github.com/repos/openclaw/openclaw/labels/impact:ux-friction","name":"impact:ux-friction","color":"FBCA04","default":false,"description":"User-facing flow adds avoidable confusion or support burden without fully blocking progress.","archived_at":null,"archived_by":null}],"state":"open","locked":false,"assignees":[],"milestone":null,"comments":3,"created_at":"2026-10-26T22:13:54Z","updated_at":"2026-11-10T06:23:54Z","closed_at":null,"assignee":null,"author_association":"NONE","issue_field_values":[],"type":null,"active_lock_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0},"issue_dependencies_summary":{"blocked_by":0,"total_blocked_by":0,"blocking":0,"total_blocking":0},"body":"## Environment\n- Windows host: M6_ULTRA\n- OpenClaw Windows node and Gateway (versions not yet collected)\n\n## Problem\nWindows node is reported paired and connected, but the agent cannot reliably interact with browser sessions. Earlier diagnostics referenced a browser listener-ownership authentication failure. Restarting the Windows tray app did not resolve it.\n\n## Expected behavior\nA paired and connected Windows node can operate approved browser sessions with valid authentication.\n\n## Actual behavior\nBrowser control is blocked, affecting YouTube Studio, CapCut and Socialync workflows.\n\n## Troubleshooting so far\n- Restarted Windows tray application\n- Checked node pairing and Gateway connectivity; latest status reportedly connected\n- Investigated possible Gateway, node, and browser authentication layers\n\n## Request\nWhich sanitized logs, version details, and diagnostic commands would isolate the browser listener ownership/authentication failure? What supported recovery procedure should be followed?\n\nNo passwords, tokens, or private account data included.","closed_by":null,"reactions":{"url":"https://api.github.com/repos/openclaw/openclaw/issues/185092/reactions","total_count":1,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":1},"timeline_url":"https://api.github.com/repos/openclaw/openclaw/issues/185092/timeline","performed_via_github_app":{"id":1144995,"client_id":"Iv23liVemv8A9if9v0F2","slug":"chatgpt-codex-connector","node_id":"A_kwHOAOQ6Gs4AEXij","owner":{"login":"openai","id":14957082,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE0OTU3MDgy","avatar_url":"https://avatars.githubusercontent.com/u/14957082?v=4","gravatar_id":"","url":"https://api.github.com/users/openai","html_url":"https://github.com/openai","followers_url":"https://api.github.com/users/openai/followers","following_url":"https://api.github.com/users/openai/following{/other_user}","gists_url":"https://api.github.com/users/openai/gists{/gist_id}","starred_url":"https://api.github.com/users/openai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openai/subscriptions","organizations_url":"https://api.github.com/users/openai/orgs","repos_url":"https://api.github.com/users/openai/repos","events_url":"https://api.github.com/users/openai/events{/privacy}","received_events_url":"https://api.github.com/users/openai/received_events","type":"Organization","user_view_type":"public","site_admin":false},"name":"ChatGPT Codex Connector","description":"Bring ChatGPT and Codex to your GitHub repositories.","external_url":"https://www.chatgpt.com","html_url":"https://github.com/apps/chatgpt-codex-connector","created_at":"2025-02-14T01:37:05Z","updated_at":"2026-09-23T18:52:59Z","permissions":{"actions":"write","checks":"read","contents":"write","emails":"read","issues":"write","metadata":"read","pull_requests":"write","statuses":"read","workflows":"write"},"events":["check_run","check_suite","commit_comment","issues","issue_comment","pull_request","pull_request_review","pull_request_review_comment","pull_request_review_thread","repository","status","sub_issues"]},"state_reason":null,"pinned_comment":null},{"url":"https://api.github.com/repos/openclaw/openclaw/issues/196203","repository_url":"https://api.github.com/repos/openclaw/openclaw","labels_url":"https://api.github.com/repos/openclaw/openclaw/issues/196203/labels{/name}","comments_url":"https://api.github.com/repos/openclaw/openclaw/issues/196203/comments","events_url":"https://api.github.com/repos/openclaw/openclaw/issues/196203/events","html_url":"https://github.com/openclaw/openclaw/pull/196203","id":6292618762,"node_id":"PR_kwDOQb6kR88AAAABN7JvgA","number":196203,"title":"feat(templates): install local projects through live Gateway","user":{"login":"jjjhenriksen","id":179184921,"node_id":"U_kgDOCq4lGQ","avatar_url":"https://avatars.githubusercontent.com/u/179184921?v=4","gravatar_id":"","url":"https://api.github.com/users/jjjhenriksen","html_url":"https://github.com/jjjhenriksen","followers_url":"https://api.github.com/users/jjjhenriksen/followers","following_url":"https://api.github.com/users/jjjhenriksen/following{/other_user}","gists_url":"https://api.github.com/users/jjjhenriksen/gists{/gist_id}","starred_url":"https://api.github.com/users/jjjhenriksen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jjjhenriksen/subscriptions","organizations_url":"https://api.github.com/users/jjjhenriksen/orgs","repos_url":"https://api.github.com/users/jjjhenriksen/repos","events_url":"https://api.github.com/users/jjjhenriksen/events{/privacy}","received_events_url":"https://api.github.com/users/jjjhenriksen/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[{"id":9706244975,"node_id":"LA_kwDOQb6kR88AAAACQomLbw","url":"https://api.github.com/repos/openclaw/openclaw/labels/docs","name":"docs","color":"0A3069","default":false,"description":"Improvements or additions to documentation","archived_at":null,"archived_by":null},{"id":10064298757,"node_id":"LA_kwDOQb6kR88AAAACV-EDBQ","url":"https://api.github.com/repos/openclaw/openclaw/labels/app:%20web-ui","name":"app: web-ui","color":"6E7781","default":false,"description":"App: web-ui","archived_at":null,"archived_by":null},{"id":10064298857,"node_id":"LA_kwDOQb6kR88AAAACV-EDaQ","url":"https://api.github.com/repos/openclaw/openclaw/labels/gateway","name":"gateway","color":"57606A","default":false,"description":"Gateway runtime","archived_at":null,"archived_by":null},{"id":10068150099,"node_id":"LA_kwDOQb6kR88AAAACWBvHUw","url":"https://api.github.com/repos/openclaw/openclaw/labels/cli","name":"cli","color":"0A3069","default":false,"description":"CLI command changes","archived_at":null,"archived_by":null},{"id":10190106804,"node_id":"LA_kwDOQb6kR88AAAACX2CwtA","url":"https://api.github.com/repos/openclaw/openclaw/labels/size:%20XL","name":"size: XL","color":"8C959F","default":false,"description":null,"archived_at":null,"archived_by":null},{"id":10873837225,"node_id":"LA_kwDOQb6kR88AAAACiCGWqQ","url":"https://api.github.com/repos/openclaw/openclaw/labels/proof:%20sufficient","name":"proof: sufficient","color":"0E8A16","default":false,"description":"ClawSweeper judged the real behavior proof convincing.","archived_at":null,"archived_by":null},{"id":10970446441,"node_id":"LA_kwDOQb6kR88AAAACjeO6aQ","url":"https://api.github.com/repos/openclaw/openclaw/labels/P2","name":"P2","color":"FBCA04","default":false,"description":"Normal backlog priority with limited blast radius.","archived_at":null,"archived_by":null},{"id":10980547267,"node_id":"LA_kwDOQb6kR88AAAACjn3aww","url":"https://api.github.com/repos/openclaw/openclaw/labels/rating:%20%F0%9F%A6%90%20gold%20shrimp","name":"rating: 🦐 gold shrimp","color":"B7791F","default":false,"description":"Decent PR readiness signal, but merge confidence is limited.","archived_at":null,"archived_by":null},{"id":12711149157,"node_id":"LA_kwDOQb6kR88AAAAC9aS-ZQ","url":"https://api.github.com/repos/openclaw/openclaw/labels/clawsweeper:intake:feature","name":"clawsweeper:intake:feature","color":"c5def5","default":false,"description":"Preliminary submission classification; full source review pending.","archived_at":null,"archived_by":null},{"id":12795198207,"node_id":"LA_kwDOQb6kR88AAAAC-qc6_w","url":"https://api.github.com/repos/openclaw/openclaw/labels/status:%20%E2%8F%B3%20waiting%20on%20maintainer","name":"status: ⏳ waiting on maintainer","color":"FBCA04","default":false,"description":"Only explicit maintainer approvals or decisions remain; merge is still blocked.","archived_at":null,"archived_by":null}],"state":"open","locked":false,"assignees":[{"login":"vyctorbrzezowski","id":51521767,"node_id":"MDQ6VXNlcjUxNTIxNzY3","avatar_url":"https://avatars.githubusercontent.com/u/51521767?v=4","gravatar_id":"","url":"https://api.github.com/users/vyctorbrzezowski","html_url":"https://github.com/vyctorbrzezowski","followers_url":"https://api.github.com/users/vyctorbrzezowski/followers","following_url":"https://api.github.com/users/vyctorbrzezowski/following{/other_user}","gists_url":"https://api.github.com/users/vyctorbrzezowski/gists{/gist_id}","starred_url":"https://api.github.com/users/vyctorbrzezowski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vyctorbrzezowski/subscriptions","organizations_url":"https://api.github.com/users/vyctorbrzezowski/orgs","repos_url":"https://api.github.com/users/vyctorbrzezowski/repos","events_url":"https://api.github.com/users/vyctorbrzezowski/events{/privacy}","received_events_url":"https://api.github.com/users/vyctorbrzezowski/received_events","type":"User","user_view_type":"public","site_admin":false}],"milestone":null,"comments":15,"created_at":"2026-11-09T18:56:28Z","updated_at":"2026-11-10T06:23:49Z","closed_at":null,"assignee":{"login":"vyctorbrzezowski","id":51521767,"node_id":"MDQ6VXNlcjUxNTIxNzY3","avatar_url":"https://avatars.githubusercontent.com/u/51521767?v=4","gravatar_id":"","url":"https://api.github.com/users/vyctorbrzezowski","html_url":"https://github.com/vyctorbrzezowski","followers_url":"https://api.github.com/users/vyctorbrzezowski/followers","following_url":"https://api.github.com/users/vyctorbrzezowski/following{/other_user}","gists_url":"https://api.github.com/users/vyctorbrzezowski/gists{/gist_id}","starred_url":"https://api.github.com/users/vyctorbrzezowski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vyctorbrzezowski/subscriptions","organizations_url":"https://api.github.com/users/vyctorbrzezowski/orgs","repos_url":"https://api.github.com/users/vyctorbrzezowski/repos","events_url":"https://api.github.com/users/vyctorbrzezowski/events{/privacy}","received_events_url":"https://api.github.com/users/vyctorbrzezowski/received_events","type":"User","user_view_type":"public","site_admin":false},"author_association":"CONTRIBUTOR","issue_field_values":[],"type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https://api.github.com/repos/openclaw/openclaw/pulls/196203","html_url":"https://github.com/openclaw/openclaw/pull/196203","diff_url":"https://github.com/openclaw/openclaw/pull/196203.diff","patch_url":"https://github.com/openclaw/openclaw/pull/196203.patch","merged_at":null},"body":"Closes #196193\n\n## What Problem This Solves\n\nTemplate authors cannot install unpublished local projects while their Gateway is running without downtime or premature ClawHub publication.\n\n## User Impact\n\nInstall with `openclaw templates add ./my-template`, or upload a Template `.tgz` in Control UI, review the plan, and confirm installation without restarting the Gateway.\n\nTemplates remain Labs-gated. Local paths refer to the **Gateway host**; browser uploads transfer the selected archive. Neither source is published to or scanned by ClawHub. Online `--workspace` overrides are rejected; offline behavior is unchanged.\n\n## Why This Change Was Made\n\nBoth entry points reuse the existing Gateway Add owner, consent, integrity checks, leases, rollback, and runtime activation—rather than bypassing its state lock. Preview/apply are bound to canonical artifact integrity; local/upload sources require current operator-admin authority. No new state store or configuration option.\n\n- Upload limits: **1 MiB compressed / 8 MiB extracted / 4,096 entries**, with unsafe-path/link rejection and temporary cleanup.\n- Diagnostics contain correlation ID, source kind, stage, outcome, and duration—not archive bytes, template contents, request data, or caught errors.\n- Invalid-project responses include corrective validation guidance.\n- Latest repair preserves explicitly empty `--agent-id \"\"` for validator rejection, uses the canonical source type in handler tests, and fixes real-Gateway CI routing and inventory ordering.\n\n## Evidence\n\nLatest branch repair: `e776b52613856dff874695cd6b2de45ddb9e5198` adds braces around the dashboard retry in the real-Gateway proof test; no production or test semantics changed. The introduced curly-lint error was reproduced, then the corrected file passed scoped lint, format, UI test-graph typecheck, and `git diff --check`.\n\nFresh independent full-change review found no actionable P0–P2 findings and independently ran 51 passing resolver/schema/Gateway/UI-review tests. Canonical autoreview (Codex `gpt-6.1-sol`, P0–P2, base `ce7788f5a24e5e2d0ef146a5dcea3ef4d0bb0983` through the corrected candidate) was scoped-clean; unchanged helper implementations were not supplied to that automated review. Existing live and upgrade proof below is reused, not claimed as a new runtime run.\n\nThe two additional E2E files selected by `pnpm test:ci-failed 196203 --run` passed all 9 tests locally. The prior CI failures in native-conversation, sidebar-presentation, and session-ownership have identical messages/file-lines in [scheduled-main run 42692902936](https://github.com/openclaw/openclaw/actions/runs/42692902936) synthetic failure artifacts; changed shard assignments made the job-name-only table misleading. Passing local replay is not claimed as a fix for those baseline failures. [Current-head CI 42723996543](https://github.com/openclaw/openclaw/actions/runs/42723996543) is in progress; exact-head security/dependency review passed.\n\nOriginal behavioral repair: `62f8e65bed84e9983cc37d981dbd63fad0b4fc7f`.\n\n| Boundary | Result |\n| --- | --- |\n| Built CLI → isolated running Gateway, latest repair | Empty ID rejected; config unchanged and workspace absent. Normal install then persisted successfully; Gateway PID unchanged. |\n| CLI ownership / Add handlers | 3 / 30 tests passed. Reported suite durations: 11.34s / 12.23s; combined wrapper wall time 30.67s. |\n| CI routing and private-server ownership | All 4 selected assertions passed; 214 unrelated tests skipped by selection. Wrapper wall time 12.34s. |\n| Static/build checks | Core and relevant Gateway/CLI test typechecks, scoped lint/format, diff check, and full build passed. Build: 4m 21.5s, with CSS/JS budget warnings. |\n| Latest-stable data preservation | Released `2026.11.2` CLI/Gateway → current built runtime + Doctor: existing agent/config, selected message setting, and 3 workspace files preserved; live Template Add succeeded; both agents loaded after restart. [Sanitized receipts and scope](https://github.com/openclaw/openclaw/pull/196203#issuecomment-6753885294). |\n| Browser → built Gateway and authorization | Earlier `a20d40f24d1d` proof: archive review/install E2E passed (1 test); read-only and revoked-device requests rejected without target changes. [Redacted logs and captures](https://github.com/openclaw/openclaw/pull/196203#issuecomment-6749921260). Not rerun on latest repair. |\n\nThe empty-ID owner regression failed before the fix and passed afterward. Independent source-only review of the repair found no actionable issues; canonical autoreview was unavailable, so no automated clean-review claim. The repair adds no new helper or state machinery. PR-specific test allocation is 649 lines for integrity, authorization, archive, ownership, consent, and diagnostics regressions; shared scalar unchanged, ratchet passes with 6 lines slack. Hosted CI timing remains pending.\n\n### Remaining review decisions and proof gaps\n\n- **Template-owner approval:** Gateway-host local-path and bounded browser-upload source contracts, plus the expanded shared confirmation view.\n- **Stable-created data preservation passed:** registry-integrity-verified `2026.11.2` CLI/Gateway to this built head through supported Doctor; synthetic agent config, selected settings, and workspace bytes preserved, including after Template Add and restart. This replaces the earlier `ETARGET` blocker. Updater download/package-replacement transport, PostgreSQL, historical sessions, credentials, and plugin data were not tested; no exhaustive upgrade claim.\n- Hosted CI and current-head review remain separate requirements. The broader local tooling run had 13 Bash-5-dependent failures on this host; the selected routing/ownership checks passed after fixing their expected inventory.\n- Revocation runtime evidence covers **before submission**, not in-flight fencing; existing owner tests cover that boundary separately.\n\nAll runtime proof used isolated Gateways and synthetic data. Production Gateway/configuration untouched. No merge requested.\n\n## UI captures\n\nCaptures are from `a20d40f24d1d`, after disclosure/disabled-Cancel repairs; the latest repair does not alter UI rendering. Review capture shows manifest and confirmation controls, **not the entire disclosure panel**. Images are attachments, not committed files.\n\n<details>\n<summary>Before: historical pre-change baseline</summary>\n\n![Pre-change baseline](https://github.com/user-attachments/assets/0b8df653-539d-4322-87fc-12c6673d6418)\n</details>\n\n<details>\n<summary>After: select archive → review → installed</summary>\n\n![Before archive selection](https://github.com/user-attachments/assets/1916c5db-e787-4919-af8b-a327b6091b39)\n\n![Review confirmation](https://github.com/user-attachments/assets/4f6473b2-9c38-4c6e-bab3-c8ebfea20bf6)\n\n![Successful installation](https://github.com/user-attachments/assets/8c185f9c-da21-4ee7-b32b-3b53c4b0b644)\n</details>\n\n","closed_by":null,"reactions":{"url":"https://api.github.com/repos/openclaw/openclaw/issues/196203/reactions","total_count":2,"+1":1,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":1},"timeline_url":"https://api.github.com/repos/openclaw/openclaw/issues/196203/timeline","performed_via_github_app":null,"state_reason":null},{"url":"https://api.github.com/repos/openclaw/openclaw/issues/196236","repository_url":"https://api.github.com/repos/openclaw/openclaw","labels_url":"https://api.github.com/repos/openclaw/openclaw/issues/196236/labels{/name}","comments_url":"https://api.github.com/repos/openclaw/openclaw/issues/196236/comments","events_url":"https://api.github.com/repos/openclaw/openclaw/issues/196236/events","html_url":"https://github.com/openclaw/openclaw/pull/196236","id":6294064914,"node_id":"PR_kwDOQb6kR88AAAABN8UO4w","number":196236,"title":"feat(database): keep PostgreSQL rollback captures in PostgreSQL","user":{"login":"etzelm","id":16581152,"node_id":"MDQ6VXNlcjE2NTgxMTUy","avatar_url":"https://avatars.githubusercontent.com/u/16581152?v=4","gravatar_id":"","url":"https://api.github.com/users/etzelm","html_url":"https://github.com/etzelm","followers_url":"https://api.github.com/users/etzelm/followers","following_url":"https://api.github.com/users/etzelm/following{/other_user}","gists_url":"https://api.github.com/users/etzelm/gists{/gist_id}","starred_url":"https://api.github.com/users/etzelm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/etzelm/subscriptions","organizations_url":"https://api.github.com/users/etzelm/orgs","repos_url":"https://api.github.com/users/etzelm/repos","events_url":"https://api.github.com/users/etzelm/events{/privacy}","received_events_url":"https://api.github.com/users/etzelm/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[{"id":9706244975,"node_id":"LA_kwDOQb6kR88AAAACQomLbw","url":"https://api.github.com/repos/openclaw/openclaw/labels/docs","name":"docs","color":"0A3069","default":false,"description":"Improvements or additions to documentation","archived_at":null,"archived_by":null},{"id":10064298857,"node_id":"LA_kwDOQb6kR88AAAACV-EDaQ","url":"https://api.github.com/repos/openclaw/openclaw/labels/gateway","name":"gateway","color":"57606A","default":false,"description":"Gateway runtime","archived_at":null,"archived_by":null},{"id":10068150099,"node_id":"LA_kwDOQb6kR88AAAACWBvHUw","url":"https://api.github.com/repos/openclaw/openclaw/labels/cli","name":"cli","color":"0A3069","default":false,"description":"CLI command changes","archived_at":null,"archived_by":null},{"id":10069934305,"node_id":"LA_kwDOQb6kR88AAAACWDcA4Q","url":"https://api.github.com/repos/openclaw/openclaw/labels/commands","name":"commands","color":"0A3069","default":false,"description":"Command implementations","archived_at":null,"archived_by":null},{"id":10190106760,"node_id":"LA_kwDOQb6kR88AAAACX2CwiA","url":"https://api.github.com/repos/openclaw/openclaw/labels/size:%20L","name":"size: L","color":"8C959F","default":false,"description":null,"archived_at":null,"archived_by":null},{"id":10970446441,"node_id":"LA_kwDOQb6kR88AAAACjeO6aQ","url":"https://api.github.com/repos/openclaw/openclaw/labels/P2","name":"P2","color":"FBCA04","default":false,"description":"Normal backlog priority with limited blast radius.","archived_at":null,"archived_by":null},{"id":10980547267,"node_id":"LA_kwDOQb6kR88AAAACjn3aww","url":"https://api.github.com/repos/openclaw/openclaw/labels/rating:%20%F0%9F%A6%90%20gold%20shrimp","name":"rating: 🦐 gold shrimp","color":"B7791F","default":false,"description":"Decent PR readiness signal, but merge confidence is limited.","archived_at":null,"archived_by":null},{"id":10981549078,"node_id":"LA_kwDOQb6kR88AAAACjo0kFg","url":"https://api.github.com/repos/openclaw/openclaw/labels/merge-risk:%20%F0%9F%9A%A8%20compatibility","name":"merge-risk: 🚨 compatibility","color":"D1242F","default":false,"description":"🚨 May break existing users, config, migrations, defaults, or upgrade paths.","archived_at":null,"archived_by":null},{"id":10982444316,"node_id":"LA_kwDOQb6kR88AAAACjprNHA","url":"https://api.github.com/repos/openclaw/openclaw/labels/status:%20%F0%9F%93%A3%20needs%20proof","name":"status: 📣 needs proof","color":"D93F0B","default":false,"description":"The PR needs real behavior proof before ClawSweeper can clear the contributor ask.","archived_at":null,"archived_by":null}],"state":"open","locked":false,"assignees":[],"milestone":null,"comments":6,"created_at":"2026-11-09T20:25:25Z","updated_at":"2026-11-10T06:23:37Z","closed_at":null,"assignee":null,"author_association":"CONTRIBUTOR","issue_field_values":[],"type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https://api.github.com/repos/openclaw/openclaw/pulls/196236","html_url":"https://github.com/openclaw/openclaw/pull/196236","diff_url":"https://github.com/openclaw/openclaw/pull/196236.diff","patch_url":"https://github.com/openclaw/openclaw/pull/196236.patch","merged_at":null},"body":"Related: #196155, #196154, #196156, #196157\n\n## What Problem This Solves\n\nEach PostgreSQL rollback capture taken by `openclaw update` and Doctor exports the whole store to a local `database.sqlite`, which costs minutes of downtime and several GB of local disk per capture.\n\n## Owner Decision Needed\n\nShould OpenClaw add `database.postgres.recoveryCaptures` and support server-dependent recovery captures, with the cleanup lifecycle described below?\n\nThis PR does not answer that question. The storage checkpoint (`docs/reference/database-schemas/storage-changes.md`) asks for recorded owner acceptance for changes to recovery, durability and retention contracts. An opt-in setting and a second capture format are such a change, even with the default left as it is. Nobody has recorded that acceptance yet.\n\n## User Impact\n\nNothing changes unless the operator opts in. `database.postgres.recoveryCaptures` accepts `\"portable\"` (default, today's SQLite export) or `\"server\"`.\n\nWith `\"server\"`, the update rollback capture and Doctor's pre-migration capture of a PostgreSQL store copy the store into a frozen `restore_<uuid>` schema in the same database. The local capture directory holds only `anchor.sqlite` and `manifest.json` (plus the existing `.pending` marker while the capture is being written).\n\n- Rollback restores from that schema. The rows never leave the server.\n- After a verified update, retirement drops the capture schemas before it removes the snapshot directory. If the drop fails, the directory stays and the update reports that cleanup is pending.\n- Doctor keeps its captures like today's `.bak` files. Before each new pre-migration capture of a store, Doctor drops that store's capture schemas whose `.bak` directory was removed. This runs whatever the setting is, so switching back to `\"portable\"` still cleans up.\n- A server capture uses space on the database server and does not survive loss of the server. `openclaw backup create` still writes portable images for off-server copies.\n- Existing portable captures stay readable and restorable under either value. Older releases reject the new key, so remove it before downgrading.\n- SQLite stores are unchanged.\n\nEven with `\"server\"`, two captures still write the SQLite export on purpose: the candidate state copy (the update rehearsal reads it) and the shared `state` family in the update rollback capture (client credential rollback reads it).\n\n## Why This Change Was Made\n\nWhy opt-in: a server capture changes rollback durability. Keeping the portable export as the default leaves every existing contract unchanged for installs that do nothing.\n\nConfig surface: one core path, so `docs/.generated/config-baseline.counts.json` moves core 2638 -> 2639 (generated with `pnpm config:docs:gen`). It is an enum rather than a boolean, so a future carrier does not need a second key.\n\nRestore already rebuilt a new namespace and repointed the anchor; the SQLite image was only the carrier between two PostgreSQL states. The port copy now has a same-server path. It creates the schema from the build's generated DDL and runs `INSERT ... SELECT` for each table inside one `REPEATABLE READ` transaction. It sets sequences from the captured allocations, then runs the existing catalog, identity and hash verification. The manifest hashes come from a separate read of the source rows in the same snapshot and must match the hashes of the copy. The manifest keeps today's fields and adds `carrier: \"postgres-schema\"` and the schema name.\n\nRestore copies the frozen schema into a fresh namespace and checks it against the manifest hashes. The capture stays unchanged, so a failed or repeated rollback can start again from it.\n\nSeveral installs can share one database, and restored live stores also use `restore_` names. So Doctor never drops a `restore_` schema by name alone. It drops a schema only if all of these hold:\n\n- the runtime role holds the schema owner's privileges (`pg_has_role(nspowner, 'USAGE')`); schemas of other roles are skipped before any of their tables are read;\n- it carries a capture comment naming its directory;\n- the directory is under this store's `.pre-startup-migration-` prefix and is gone;\n- the schema's store id matches the store.\n\n`inspectRestorableDatabaseFiles` and `readPostgresPortCapabilities` move unchanged into their own modules so the two touched files stay under the max-lines cap.\n\n## Evidence\n\nAll runs: macOS arm64, Node 24, PostgreSQL 17.11 with pgvector, `max_locks_per_transaction=512` and the three extensions from the CI conformance action, `log_statement=ddl`. Each OpenClaw install is isolated (own HOME, npm prefix and TMPDIR). The PR was packed three times as 2026.11.6, 2026.11.7 and 2026.11.8, because the capture is taken by the installed updater. All three packs come from one local scratch commit, `16fe8f9931e` (the `16fe8f9` in the version lines). It is 150df846 plus the pruning fix and the new test; it was not pushed. Its production source matches this head:\n\n```text\n$ sha256 of src/snapshot/database-backup-core.worker.ts\n16fe8f9931e: 909c807bd66e390c7c9552c929aaa19fe0be1348e228e0722bde26ca742e6e74\nc6d335261ed: 909c807bd66e390c7c9552c929aaa19fe0be1348e228e0722bde26ca742e6e74\n$ git diff --stat 16fe8f9931e <tree of c6d335261ed> -- src \":!*.test.ts\"\n(empty)\n$ git diff --stat 16fe8f9931e <tree of c6d335261ed>\n .../196155-postgres-schema-captures.txt            |  4 +-\n .../database-engine/backup-schema-capture.test.ts  | 69 +++++++++++-----------\n$ grep for the fix inside each packed tarball (extracted)\nopenclaw-2026.11.5.tgz: (no match)\nopenclaw-2026.11.6.tgz: package/dist/database-backup.operations-C1Zfvfb8.mjs\nopenclaw-2026.11.7.tgz: package/dist/database-backup.operations-C1Zfvfb8.mjs\nopenclaw-2026.11.8.tgz: package/dist/database-backup.operations-C1Zfvfb8.mjs\n```\n\nThe head differs from the packed commit in two files, neither of which is packed: the new test, reformatted by oxfmt (it ran at the head, see section 4), and the test-lines allocation. The base-main package (2026.11.5, `dfc053f`) was built the same way from `dfc053fd4c6`. Output is redacted: `<e2e>` is the scratch root, `<dsn>` the connection string, `<snapshot>` the update snapshot directory.\n\n### 1. Real updates: latest stable -> PR, then portable and server\n\nStable 2026.11.2 install with real data written by the stable CLI: two config settings, a second agent, and two `openclaw backup create` archives.\n\n```text\n$ openclaw update --tag ./openclaw-2026.11.6.tgz --yes --no-restart     # from 2026.11.2\nUPDATE_RC=0\n$ openclaw --version\nOpenClaw 2026.11.6 (16fe8f9)\n$ openclaw config get agents.defaults.timeoutSeconds\n321\n$ openclaw agents list --json (ids)\nmain, proof\n$ openclaw backup verify <e2e>/backups/...-openclaw-backup.tar.gz   # both archives written by 2026.11.2\nSQLite database inventory verified.\n$ openclaw doctor --non-interactive\nDOCTOR_RC=0\n\n# Workboard moved to PostgreSQL with the PR build's own port command\n$ openclaw workboard create \"Card A\" --priority high      (and \"Card B\")\n$ openclaw config set database.postgres.connection <dsn>\n$ openclaw database port --family workboard --to postgres\nDatabase port: complete (postgres); 1 database stores.\n$ openclaw workboard list\na8fdbc0f  todo      high    default  Card A\n59e8adc9  todo      normal  default  Card B\n\n# Update 2: recoveryCaptures unset (portable)\n$ openclaw update --tag ./openclaw-2026.11.7.tgz --yes --no-restart\nUPDATE_RC=0\n$ files seen in the update snapshot directory while it existed\n<snapshot>/payload/posix<e2e>/home/.openclaw/plugins/workboard/workboard.sqlite.postgres/anchor.sqlite\n<snapshot>/payload/posix<e2e>/home/.openclaw/plugins/workboard/workboard.sqlite.postgres/database.sqlite\n<snapshot>/payload/posix<e2e>/home/.openclaw/plugins/workboard/workboard.sqlite.postgres/manifest.json\n$ PostgreSQL server log: DDL on restore_ schemas during the update\n(none)\n\n# Update 3: recoveryCaptures \"server\"\n$ openclaw config set database.postgres.recoveryCaptures server\n$ openclaw update --tag ./openclaw-2026.11.8.tgz --yes --no-restart\nUPDATE_RC=0\n$ files seen in the update snapshot directory while it existed\n<snapshot>/payload/posix<e2e>/home/.openclaw/plugins/workboard/workboard.sqlite.postgres/anchor.sqlite\n<snapshot>/payload/posix<e2e>/home/.openclaw/plugins/workboard/workboard.sqlite.postgres/manifest.json\n$ PostgreSQL server log: DDL on restore_ schemas during the update\n18:41:36.253 CREATE SCHEMA \"restore_d789490cb918479ab626fb6f72b03ba6\"\n18:44:08.568 DROP SCHEMA IF EXISTS \"restore_d789490cb918479ab626fb6f72b03ba6\" CASCADE\n$ psql: capture-related schemas after\nopenclaw_workboard_16fc0d7f9bda4cb3 | (no marker)\n$ openclaw workboard list\na8fdbc0f  todo      high    default  Card A\n59e8adc9  todo      normal  default  Card B\n```\n\nThe file lists come from a watcher that lists the snapshot directory every 200 ms while the update runs, because verified activation retires it. Both lists above are trimmed to the final files of the Workboard capture directory. Untrimmed, each run also showed transient files that the existing code writes and removes:\n\n- `workboard.sqlite.postgres/.pending`, in both runs: the in-progress marker of a capture.\n- `workboard.sqlite.postgres/.export.sqlite` and `.export.sqlite-journal`, portable run only: the export image before it is renamed to `database.sqlite`.\n- `plugins/workboard/.sqlite-publish-*/database.sqlite`, server run: the publish staging copy (`src/infra/sqlite-snapshot.ts`) of the exact SQLite snapshot of the Workboard anchor file `plugins/workboard/workboard.sqlite`. It sits outside the capture directory and is not an export of the PostgreSQL rows.\n\nNo `database.sqlite` appeared inside `workboard.sqlite.postgres/` in the server run.\n\n### 2. Doctor at the head: portable, server, prune\n\nThere is one synthetic step per pass. A small script, not part of the PR, rebuilds the live state store at v38 (this build expects v39) with v38's registered DDL. The anchor and store id stay the same, and a `proof.fixture` row is added. Doctor then has a real registered migration to run.\n\n```text\n$ openclaw --version\nOpenClaw 2026.11.8 (16fe8f9)\nShared state: default=postgres, override=inherit, effective=postgres\n\n== D1: recoveryCaptures unset\n$ openclaw doctor --fix --non-interactive\nDOCTOR_RC=0\n$ ls ~/.openclaw/state/*.postgres.bak\n...pre-startup-migration-5c188ce6...: anchor.sqlite database.sqlite manifest.json\n...pre-startup-migration-b8c9ac0d...: anchor.sqlite database.sqlite manifest.json\n$ psql: capture-related schemas\nopenclaw_state_d19670702bbe4c76 | (no marker)\n$ psql: live state store\nversion | 39\nproof.fixture | \"before\"\n\n== D2: recoveryCaptures \"server\"\nDOCTOR_RC=0\n...pre-startup-migration-b7c26493...: anchor.sqlite manifest.json\n...pre-startup-migration-f3ff7405...: anchor.sqlite manifest.json\nrestore_49b32efe... | {\"openclawCapture\":\"<e2e>/home/.openclaw/state/openclaw.sqlite.pre-startup-migration-f3ff7405...\nrestore_9bea9f50... | {\"openclawCapture\":\"<e2e>/home/.openclaw/state/openclaw.sqlite.pre-startup-migration-b7c26493...\n\n== D3: server, after rm -r of the two D2 directories\nDOCTOR_RC=0\nrestore_3f251d7f... | {... 12496c3a ...}      # new captures\nrestore_711093f9... | {... e5c675a5 ...}\n$ D2 capture schemas now:\nrestore_9bea9f50...: dropped\nrestore_49b32efe...: dropped\n\n== D4: switched back to \"portable\", after rm -r of the two D3 directories\nDOCTOR_RC=0\n...two new captures: anchor.sqlite database.sqlite manifest.json\n$ D3 capture schemas now:\nrestore_711093f9...: dropped\nrestore_3f251d7f...: dropped\n```\n\nEach Doctor run takes two captures: one before the version migration and one in its later pass. That is existing Doctor behavior. The earlier `.bak` directories from D1 were kept on purpose, and Doctor left them alone.\n\n### 3. Data-model compatibility with the latest stable release\n\n- Stable 2026.11.2 data (config settings, agents, state database, backup archives) loads after a real `openclaw update` to this PR. Doctor exits 0, and both stable archives pass `openclaw backup verify` (section 1). In an earlier run from the same stable snapshot and the same 2026.11.6 package, a stable archive also restored on the PR CLI:\n\n```text\n$ openclaw backup restore <e2e>/backups/...-openclaw-backup.tar.gz --target <e2e>/restore-check   # 2026.11.2 archive, 2026.11.6 CLI\nActivation is explicit: stop the Gateway, move the restored asset tree into place or point OPENCLAW_STATE_DIR at the restored state asset, then run `openclaw doctor`.\n$ restored config: agents.defaults.timeoutSeconds\n321\n```\n\n- A PostgreSQL Workboard store written by stable 2026.11.2 keeps working with the PR build. Stable uses `database.engine: postgres`, which there keeps state on SQLite and puts Workboard on PostgreSQL. Because of the first base-main failure below, `openclaw update` cannot carry this install, so the PR package is installed over it with npm:\n\n```text\n$ openclaw --version\nOpenClaw 2026.11.2 (b556fdf)\n$ openclaw workboard create \"Stable PG card A\" --priority high      (and \"Stable PG card B\")\n$ psql: workboard store written by 2026.11.2\nopenclaw_workboard_06c2e6d0dc654478 | version | 3\n$ npm install -g ./openclaw-2026.11.8.tgz   # PR build, installed over the stable install\n$ openclaw workboard list\n[config] Preserving the 2026.11.1 Workboard-only PostgreSQL setting: Workboard remains on PostgreSQL; shared state and other families remain on SQLite. The next config write records this explicitly.\ncc5bc72d  todo      high    default  Stable PG card A\nff02885b  todo      normal  default  Stable PG card B\n$ psql: same store after the PR build opened it\nopenclaw_workboard_06c2e6d0dc654478 | version | 4\n$ openclaw workboard move <Stable PG card A> --status ready   # write through the PR build\ncc5bc72d  ready     high    default  Stable PG card A\n$ openclaw doctor --non-interactive\nDOCTOR_RC=1     # \"Failed migrating shared state database schema: Client credentials require backed-up migration custody; stop the app and run openclaw doctor --fix\"\n$ openclaw doctor --fix --non-interactive\nDOCTOR_RC=0\n$ openclaw doctor --non-interactive\nDOCTOR_RC=0\n```\n\nThe first plain Doctor run asks for `--fix`. That is consistent with an npm reinstall bypassing the updater, which normally runs Doctor's migrations. This npm-overlay run was not repeated with a base-main package.\n\n- This PR adds no schema migration. Its only stored-format addition is the optional server capture (manifest `carrier: \"postgres-schema\"`), and it is written only with `\"server\"`.\n\nTwo update paths from stable 2026.11.2 fail on base main `dfc053fd4c6` too. Each fails the same way on the base-main package (2026.11.5) and on this PR's package (2026.11.6), so neither comes from this PR:\n\n- Stable with `database.engine: postgres`. Update to main refuses at the candidate state snapshot (message from `src/infra/database-engine/open.ts`, which this PR does not touch):\n\n```text\n$ openclaw update --tag ./openclaw-2026.11.5.tgz --yes --no-restart     # from 2026.11.2, base main\n  ✗ candidate-state-snapshot (1.25s)\n    snapshot: Update state snapshot failed (exit): ... Existing SQLite state data cannot switch engines; stop the Gateway and use openclaw database port for a supported store family before changing database.families.state.engine. ...\nUPDATE_RC=1\n```\n\n- Stable with a SQLite Workboard store. The in-update Doctor fails:\n\n```text\n$ openclaw update --tag ./openclaw-2026.11.5.tgz --yes --no-restart   # base main dfc053fd4c6\nUPDATE_RC=1\n⚠️ OpenClaw update failed: state-migrated-no-rollback.\nFailed: openclaw doctor ... Exit code: 1; Agent database migration did not finish: <e2e>/home/.openclaw/plugins/workboard/workboard.sq\n$ in-update Doctor stderr (from the update failure JSON)\nAgent database migration did not finish: $OPENCLAW_STATE_DIR/plugins/workboard/workboard.sqlite; expected schema 41, found 0.\n$ openclaw --version\nOpenClaw 2026.11.5 (dfc053f)\n$ openclaw doctor --fix --non-interactive\nDOCTOR_RC=0\n$ openclaw workboard list\n80f4e38f  todo      high    default  Stable card A\n```\n\nThe run against this PR's 2026.11.6 package ends with the same result and the same failure lines as the base-main run (untrimmed base log compared):\n\n```text\n⚠️ OpenClaw update failed: state-migrated-no-rollback.\nFailed: openclaw doctor ... Agent database migration did not finish: <e2e>/home/.openclaw/plugins/workboar...\nFailed: gateway recovery verification ... Gateway readiness was not verified; service status: unknown.\nFailed: database rollback ... update-failed\nRecorded recovery: not serving (restart-unhealthy).\nUpdate recovery remains pending (state-migrated-no-rollback).\n```\n\n\"Failed: database rollback\" is the existing refusal to restore after a later write (`Databases changed after openclaw doctor ... Current databases were preserved`). It happens on SQLite stores, which this PR does not change.\n\nThese are reported separately; this PR does not change them.\n\n### 4. Tests and checks (at this head)\n\nAll of these ran on a scratch tree whose content equals `c6d335261ed` (`git diff 150df846dba` hash `4bee2eb4256462ede0908597b34f60611e0ecd3a` in both).\n\n- New test `leaves another role's capture alone under the same directory prefix` (`backup-schema-capture.test.ts`): two isolated roles, the same missing directory prefix, the same store id, both schemas marked. Red: the new test with `database-backup-core.worker.ts` checked out from 150df846:\n\n```text\n$ shasum -a 256 src/snapshot/database-backup-core.worker.ts\nea14c7efedc947a7ea848edbc1a0ede431b15a861ff4c2053da0a04a6c7150a3     # = git show 150df846dba:src/snapshot/database-backup-core.worker.ts\n$ node scripts/test-database-conformance.mjs --engine postgres --connection <dsn> -- src/infra/database-engine/backup-schema-capture.test.ts -t \"another role\"\n ×  infra  src/infra/database-engine/backup-schema-capture.test.ts > leaves another role's capture alone under the same directory prefix 30ms\n   → permission denied for schema restore_1084bd9622f1493d9067491d637964c0\n      Tests  1 failed | 5 skipped (6)\nRC=1\n```\n\nGreen: the head as committed:\n\n```text\n$ shasum -a 256 src/snapshot/database-backup-core.worker.ts\n909c807bd66e390c7c9552c929aaa19fe0be1348e228e0722bde26ca742e6e74\n$ node scripts/test-database-conformance.mjs ... -t \"another role\"\n ✓  infra  src/infra/database-engine/backup-schema-capture.test.ts > leaves another role's capture alone under the same directory prefix 29ms\n      Tests  1 passed | 5 skipped (6)\nRC=0\n```\n\nOnly the runtime role's orphan is dropped; the other role's schema stays.\n- Opt-in tests: `config.test.ts` (unset, `\"portable\"`, `\"server\"`), `backup-schema-capture.test.ts` (Doctor capture carrier and files for each value), `update-command-database-retention.test.ts` (default config passes `postgresSchemaCaptures: false`).\n- PostgreSQL conformance, 11 files in three batches, 83 passed and 2 skipped. This includes the existing Doctor prune test (`lets Doctor drop only its own capture schemas whose backup directory was removed`) and the whole `doctor-migration.postgres` file:\n\n```text\nbatch a: backup-schema-capture, client-credential-update, backup, update-cohort-restore, archive-restore, port-provider\n Test Files  6 passed (6)\n      Tests  25 passed | 2 skipped (27)\nbatch b: doctor-migration.postgres\n Test Files  1 passed (1)\n      Tests  26 passed (26)\nbatch c: agent-port.postgres, port-command.postgres, update-preflight.conformance, openclaw-state-db.postgres\n Test Files  4 passed (4)\n      Tests  32 passed (32)\n```\n\n- `pnpm check:baseline-ratchets --base dfc053fd4c6 --no-merge-base`:\n\n```text\nmax-lines ok | assertion-safety ok | database-dialect ok | timeout-race ok | mock-exports ok\ntest-lines ok | config-docs ok | plugin-inventory ok | database-worker ok\nTest lines OK: 6603451; ceiling: 6603451; slack: 0.     # allocation 196155-postgres-schema-captures.txt = 466\n```\n\n- `pnpm check:changed` (run locally): 32 gates ok, including `typecheck all`, `lint`, `config docs baseline` and `core tsgo graph boundary`. Two gates failed:\n  - Format failed only on an untracked proof script outside the PR. Re-checking the PR's files: `All matched files use the correct format.` (26 files).\n  - The dead export scan lists only files this PR does not touch: `src/daemon/launchd.ts`, `src/plugins/provider-runtime.ts`, `src/plugins/types.ts`, `src/plugins/provider-external-auth.ts`, `ui/src/pages/dashboards/dashboard-tools.tsx`.\n- Capture time and local disk, measured earlier with the same carrier code: one synthetic store of 200,000 Workboard cards (a 243 MB table), client and server on one host, two runs each.\n\n| Carrier | Capture time | Local bytes written | Files |\n| --- | --- | --- | --- |\n| Portable export | 5.5 to 5.9 s | 285,691,316 | `anchor.sqlite`, `database.sqlite`, `manifest.json` |\n| Server capture | 4.3 to 4.5 s | 11,650 | `anchor.sqlite`, `manifest.json` |\n\nThese numbers come from one host. They say nothing about a remote database server or real store shapes.\n\n- Size vs base: production +386/-113 (about 75 are the unchanged module moves, plus the generated config baseline), tests +475/-4, docs +49/-5.\n\nFollow-ups, not in this PR:\n\n- Doctor drops orphaned captures only when it takes a new pre-migration capture of the same store. An orphan whose store never migrates again stays until then.\n- If someone deletes a retained update capture directory by hand, its schema stays on the server.\n- The capture comment is written right after the copy commits. A process crash between the two leaves an unmarked `restore_` schema that pruning will not find. Errors in that window are handled: the capture's `catch` drops the schema.\n- Pruning reads `openclaw_schema_meta` from each marked schema the role owns. A marked schema without that table would fail the prune and stop Doctor. Capture writes the mark only after the copy has created that table, so only hand-edited schemas would hit this.\n\nNot run: the full sharded PostgreSQL conformance suite, PostgreSQL 16 and 18, Linux and Windows, an update with a managed Gateway service running, and a real rollback through `openclaw update` (rollback is covered by the conformance tests).\n","closed_by":null,"reactions":{"url":"https://api.github.com/repos/openclaw/openclaw/issues/196236/reactions","total_count":1,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":1},"timeline_url":"https://api.github.com/repos/openclaw/openclaw/issues/196236/timeline","performed_via_github_app":null,"state_reason":null}]