Skip to content

fix(exec): migrate legacy approval policy before runtime reads - #162687

Merged
steipete merged 3 commits into
mainfrom
fix/exec-approvals-doctor-canonical-policy
Oct 2, 2026
Merged

steipete merged 3 commits into
mainfrom
fix/exec-approvals-doctor-canonical-policy

Conversation

@steipete

@steipete steipete commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Exec approval reads still normalized historical policy in memory, leaving SQLite rows with legacy agent names, string allowlists, or missing rule IDs. Removing that runtime conversion needs a durable migration for supported installations.

User Impact

Doctor and update-time repair back up and normalize legacy SQLite policy before runtime access. Explicit main settings win over the old default agent, while allowlists and MCP grants merge. Socket credentials, current command-use metadata, and the original update timestamp survive. String entries become canonical objects with stable IDs. Obsolete commandText and unknown source labels remain recoverable in the original backup.

Runtime reports openclaw doctor --fix guidance for a convertible legacy row and leaves it untouched. Repeating Doctor preserves the canonical bytes and IDs. Published SDK/operator input normalization stays at the write boundary. No new config option or SQL schema version is introduced.

Why This Change Was Made

The existing exec-policy Doctor owner now handles persisted policy as well as JSON import, using its exclusive maintenance scope and the shared verified snapshot helper. It validates the physical database identity and exact planned row before backup publication and commit. JSON conflict decisions run before SQLite normalization, preserving the existing imported-source receipt semantics.

Production src/** and extensions/**, excluding tests/support/helpers/e2e/fixtures: +229/-54/net +175. The runtime conversion is deleted; the added code supplies the missing durable repair. Hunk overlaps with #153405, #161513, and #123867 were inspected and are separate from this codec/Doctor cut.

The July 1 retention audit keeps the JSON importer: v2026.7.1 still writes exec-approvals.json through saveExecApprovals and writeExecApprovalsRaw (src/infra/exec-approvals.ts:862–874). No safe pre-July retirement offset was established in this owner. Approval policy and its socket credentials use the approved durable-policy exception to the production cap.

Evidence

Current head fe9809682823f44a8351ee66537b8b32cd9df398, tree 731fa80f4fe43ad3227319cd64902443f1545a27, base 18689ff071b69dc41e35eb403ffe56433ad74a66. The integrated migration and the subsequent CI repair each have clean Codex review through P2. The conflict-driven rebase preserves main's July retention and cron sections. Formatting and git diff --check passed. Exact-head hosted CI completed at the repaired head: all Linux Node groups and ordinary checks passed; the Windows exception below is inherited from main. The earlier full gate and migration update cell remain attributed to their original head.

CI run 36983002142 exposed four deterministic PR-caused failures. Three exact receipt expectations omitted the canonical SQLite source now declared by the migration owner. The fourth exposed a writer defect: normalization stripped malformed agents.runner.ask before the existing fail-closed reader could reject it, allowing partial defaults to survive. The repair canonicalizes only positively identified, structurally valid legacy input, preserves malformed authored bytes, and returns the actual persisted bytes and hash. The existing Doctor security assertion remains unchanged. Two writer regressions cover direct and worker-backed updates and passed in exact-head hosted CI; the previous single-worker store suite measured 16.90s wall. Receipt assertions now require both exact sources. No failure is classified as a flake or pre-existing.

At prior head cc0242aa678802e72c6c6ceca1fa4482f1447801 (tree 41a254bab876523426626571f85df6cc6313e75c), Blacksmith Testbox tbx_01m3xqjp9k9g0r63gxhrp8dfmm, run 36977761177, after frozen dependency installation:

  • Config tests: 35 passed, 17.18s wall; Doctor migration tests: 23 passed, 34.09s wall. Both used pnpm test <file> --maxWorkers=1.
  • Full native node scripts/check-changed.mjs --base 18689ff071b69dc41e35eb403ffe56433ad74a66 --head HEAD --timed passed in 1436.24s, including production/test types, lint, ratchets, and applicable source/boundary guards.
  • Canonical package build/pack passed in 659s. Candidate tarball SHA-256: d47be8b76178fe10def3c8e75a50b7dfdfde5baaceefc9b3651dd535d050fd07.
  • The published 2026.9.7 driver → exact candidate cell passed. It installed the actual npm release in isolated state, exercised its approvals writer, seeded representative supported legacy SQLite policy, and invoked that installed CLI's openclaw update --tag file:<candidate> --yes --json --no-restart. Before manual candidate Doctor, assertions verified canonical policy, stable rule IDs, original verified backup, source timestamps, socket credentials, and exact installed candidate identity. The update took 146s. Repeated Doctor took 8s and retained the same canonical bytes, IDs, and backup. No package version rewriting or state reseeding occurred during update.

The approvals phase completed before this lease later exceeded the workflow's one-hour limit during an independent Voice Call proof. The lease is completed. Recorded step exits and artifacts establish the approvals results above; no complete passing workflow is claimed. The repair does not change migration discovery, backup, valid legacy normalization, or update callbacks, so the published-driver cell remains applicable to that unchanged migration contract. Hosted CI now passes the affected Linux groups, including the exact-receipt and writer/security owners; no separate full-gate replay was needed. No local tests, builds, or type checks ran.

Earlier focused proof remains attributed to its original heads. On 81390aa608dd22d5381574cbd56dd87d59a5b22a, lease tbx_01m3vgatt77q1bjva836mm6c3s passed 179 tests in six files, core types, typed lint, and ratchets. Per-file wall times: canonical migration 17.02s (3 tests), JSON migration 16.97s (23), config 17.81s (35), store 16.90s (28), read worker 21.88s (16), policy 15.84s (74). The regression proves the original backup row, intended normalized row, runtime refusal, repeat stability, and refusal when a backup changes even if source is restored before commit. The final update cell above proves the actual registered repair path.

Two earlier validation stops are retained as failures, not flakes or passing replays. Preview code added three lines to an over-cap Doctor module; moving preview ownership into the existing migration detector fixed it. A subsequent native check found 11 unchanged compatibility records expiring October 2 UTC; main fixes #163127 and #163158 are included in this candidate's base, and the current full gate passed without date spoofing or a disabled guard. No retries, timeout increases, or weakened assertions were added.

Exact-head CI and inherited Windows failure

CI 36991648805 completed on fe9809682823f44a8351ee66537b8b32cd9df398: 58 jobs passed. The sole root failure is checks-windows-node-test-3 (job 110789358773), followed by the aggregate CI gate. Both failing cases are source/compiled TUI subprocess expectations in test/scripts/vitest-worker-artifacts.test.ts. This is deterministic fixture drift from main’s error-copy change in #163381 (d0b48d63efb88ac4f9f5eb447a39ea95cb2b0542), not an approvals failure or a flake.

The checkout log identifies tested merge 3565a1cccfefa29363390c74484ef79e2fd3da6d, with candidate fe980968 and main aa31aeef. The fixture blob is identical in both parents (2d7e03e0c7df2eb84ccbd9774f1d2b5811caa47d). Its generated child calls buildEmbeddedRunPayloads at line 672, which reaches the shared assistant-error formatter and fails the old wording assertion at line 673 before plugin activation. Main now returns the exact observed “Couldn’t sign in” guidance. No approval-policy read or migration is reached. The failing test and formatter owners are untouched by this PR. Landing uses the maintainer-authorized exception for proven inherited failures; the Windows fixture follow-up remains separate.

@clawsweeper

clawsweeper Bot commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation gateway Gateway runtime size: M labels Oct 1, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Oct 1, 2026
@clawsweeper

clawsweeper Bot commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed October 2, 2026, 5:51 AM ET / 09:51 UTC (Revision 11).

ClawSweeper review

What this changes

This PR moves legacy execution-approval normalization into a backed-up Doctor migration, requires canonical policy at runtime, and preserves malformed writes for fail-closed handling.

Regression provenance

Possible regression — suspected (reviewed change). No predecessor PR is attributed.

Merge readiness

⛔ Blocked before merge - 4 items remain

The durable migration remains useful, but the previously reported backup regression is still present on the latest head. Ordinary backups can silently discard supported legacy execution policy.

Priority: P2
Reviewed head: fe9809682823f44a8351ee66537b8b32cd9df398

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) Useful migration work has strong upgrade evidence, but an unresolved backup regression prevents merge readiness.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (linked_artifact): The recorded published-2026.9.7-to-candidate update exercises the registered Doctor migration against legacy SQLite policy and observes canonical rows, verified original backup, retained credentials and timestamps, and stable repeated repair. That unchanged path retains its prior-head proof; latest writer cases remain separately pending. Existing-state compatibility is still insufficient because ordinary export sanitization loses supported legacy policy.
Patch quality 🦐 gold shrimp (3/6) 1 actionable review finding remain.

Verification

Check Result Evidence
Real behavior Verified Sufficient (linked_artifact): The recorded published-2026.9.7-to-candidate update exercises the registered Doctor migration against legacy SQLite policy and observes canonical rows, verified original backup, retained credentials and timestamps, and stable repeated repair. That unchanged path retains its prior-head proof; latest writer cases remain separately pending. Existing-state compatibility is still insufficient because ordinary export sanitization loses supported legacy policy.
Evidence reviewed 8 items Introduced parser restriction: The introduced schema requires object allowlist entries with IDs and rejects the historical default agent. Previously accepted legacy documents now fail tryParsePersistedExecApprovals.
Ordinary snapshot policy loss: The sanitizer initializes deny-all policy and replaces it only when tryParsePersistedExecApprovals succeeds. A supported document containing a string allowlist, an ID-less entry, or a default agent therefore loses its entire policy, including accompanying MCP grants.
Reachable export boundaries: Archive backup calls the affected sanitizer at line 287; shared global snapshots call it at src/snapshot/openclaw-snapshot-copy.ts:68. Neither uses the migration's lease-only sanitizer, so the Doctor-specific original backup does not protect these outputs.
Findings 1 actionable finding [P1] [P1] Preserve legacy approval policy in ordinary backups
Security None None.

How this fits together

Execution approvals store command permissions, MCP tool grants, and socket credentials in SQLite. Doctor repairs older policy before runtime reads, while backup and snapshot exporters sanitize copies for restoration or sharing.

flowchart TD
  A[Legacy approval policy] --> B[Doctor migration]
  B --> C[Verified original backup]
  B --> D[Canonical SQLite policy]
  D --> E[Runtime execution checks]
  A --> F[Backup sanitization]
  D --> F
  F --> G[Restorable or shared snapshot]
Loading

Before merge

  • [P1] Preserve legacy approval policy in ordinary backups (P1) - Requiring canonical allowlist objects makes tryParsePersistedExecApprovals reject supported rows such as {version:1, agents:{main:{allowlist:["/usr/bin/git"]}}}. sanitizeOpenClawGlobalStateSnapshot still calls that parser and substitutes deny-all on rejection, so archive backups and shared snapshots made before Doctor silently discard command permissions and accompanying MCP grants. The Doctor-specific backup uses a different sanitizer. This prior blocker remains unresolved; use validated legacy conversion at the offline sanitizer while retaining socket-token redaction and malformed-policy refusal.
  • Resolve merge risk (P1) - Backups or shared snapshots captured before Doctor repair can silently replace supported legacy command permissions and MCP grants with deny-all policy.
  • Complete next step (P2) - Repair ordinary backup and shared-snapshot sanitization to retain validated legacy approval policy while preserving credential redaction and malformed-policy refusal.
  • Add data-model compatibility proof - Confirm migration or upgrade compatibility proof before merge.

Findings

  • [P1] [P1] Preserve legacy approval policy in ordinary backups — src/infra/exec-approvals-config.ts:33-37
Agent review details

Security

None.

PR surface

Source +176, Tests +203, Docs +17. Total +396 across 14 files.

View PR surface stats
Area Files Added Removed Net
Source 9 230 54 +176
Tests 4 213 10 +203
Docs 1 17 0 +17
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 14 460 64 +396

Review metrics

Metric Value Why it matters
Production versus test growth Production +229/-54; tests and support +214/-10 The added production code has a stated durable-migration purpose, but the cutover still misses an existing offline parser consumer.

Stored data model

Persistent data-model change detected: migration/backfill/repair: src/commands/doctor.e2e-harness.ts, migration/backfill/repair: src/infra/exec-approvals-sqlite.ts. Confirm migration or upgrade compatibility proof before merge.

Merge-risk options

Maintainer options:

  1. Preserve policy in offline exports (recommended)
    Repair the shared sanitizer to retain structurally valid legacy grants while preserving credential redaction and malformed-policy refusal.
Copy recommended automerge instruction
@clawsweeper automerge

Special instructions:
Use the shared validated legacy approval converter at the offline global snapshot sanitizer, preserve socket-token redaction and malformed-policy deny-all behavior, and add focused regression coverage for legacy command and MCP grant retention.

Technical review

Best possible solution:

Keep strict runtime reads and the durable Doctor migration, while letting offline snapshot sanitization use the shared validated legacy converter before redacting socket credentials.

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

Yes, source establishes the introduced failure: export a SQLite policy containing a legacy string allowlist before Doctor runs; the sanitizer receives null from the strict parser and writes deny-all instead. No target code was executed in this read-only review.

Is this the best way to solve the issue?

The Doctor-owned migration is the right direction, but the cutover is incomplete because offline backup consumers still depend on the runtime parser's former legacy acceptance.

Full review comments:

  • [P1] [P1] Preserve legacy approval policy in ordinary backups — src/infra/exec-approvals-config.ts:33-37
    Requiring canonical allowlist objects makes tryParsePersistedExecApprovals reject supported rows such as {version:1, agents:{main:{allowlist:["/usr/bin/git"]}}}. sanitizeOpenClawGlobalStateSnapshot still calls that parser and substitutes deny-all on rejection, so archive backups and shared snapshots made before Doctor silently discard command permissions and accompanying MCP grants. The Doctor-specific backup uses a different sanitizer. This prior blocker remains unresolved; use validated legacy conversion at the offline sanitizer while retaining socket-token redaction and malformed-policy refusal.
    Confidence: 0.99

Overall correctness: patch is incorrect
Overall confidence: 0.97

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

No label changes.

Label justifications:

  • P2: This is a bounded execution-policy migration improvement with a concrete backup compatibility blocker.
  • merge-risk: 🚨 compatibility: The stricter shared parser causes ordinary exports of supported legacy installations to lose existing approval policy.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦞 diamond lobster and patch quality is 🦐 gold shrimp.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action. Sufficient (linked_artifact): The recorded published-2026.9.7-to-candidate update exercises the registered Doctor migration against legacy SQLite policy and observes canonical rows, verified original backup, retained credentials and timestamps, and stable repeated repair. That unchanged path retains its prior-head proof; latest writer cases remain separately pending. Existing-state compatibility is still insufficient because ordinary export sanitization loses supported legacy policy.
  • proof: sufficient: Contributor real behavior proof is sufficient. The recorded published-2026.9.7-to-candidate update exercises the registered Doctor migration against legacy SQLite policy and observes canonical rows, verified original backup, retained credentials and timestamps, and stable repeated repair. That unchanged path retains its prior-head proof; latest writer cases remain separately pending. Existing-state compatibility is still insufficient because ordinary export sanitization loses supported legacy policy.

Evidence

Acceptance criteria:

  • [P1] pnpm test src/state/openclaw-state-snapshot-sanitizer.test.ts --maxWorkers=1.
  • [P1] pnpm test src/infra/exec-approvals-config.test.ts src/infra/exec-approvals-store.test.ts src/infra/state-migrations.exec-approvals-canonical.test.ts --maxWorkers=1.
  • [P1] git diff --check.

What I checked:

  • Introduced parser restriction: The introduced schema requires object allowlist entries with IDs and rejects the historical default agent. Previously accepted legacy documents now fail tryParsePersistedExecApprovals. (src/infra/exec-approvals-config.ts:33, fe9809682823)
  • Ordinary snapshot policy loss: The sanitizer initializes deny-all policy and replaces it only when tryParsePersistedExecApprovals succeeds. A supported document containing a string allowlist, an ID-less entry, or a default agent therefore loses its entire policy, including accompanying MCP grants. (src/state/openclaw-state-snapshot-sanitizer.ts:55, fe9809682823)
  • Reachable export boundaries: Archive backup calls the affected sanitizer at line 287; shared global snapshots call it at src/snapshot/openclaw-snapshot-copy.ts:68. Neither uses the migration's lease-only sanitizer, so the Doctor-specific original backup does not protect these outputs. (src/infra/backup-sqlite-snapshot.ts:287, fe9809682823)
  • Prior finding remains unresolved: The supplied completed review identified this same backup blocker. GitHub reports sanitizer blob 1f6e4579a499392bf8d57b27f87be7c333739fb1 at the earlier reviewed head; git ls-tree reports the identical blob at the current head. The latest introduced repair changes writer handling, not this offline caller. (src/state/openclaw-state-snapshot-sanitizer.ts:55, fe9809682823)
  • Migration ownership and commit checks: The new repair requires exclusive Doctor maintenance ownership, validates the original snapshot against the planned row, rechecks physical database identity after awaited snapshot creation, and compares the authoritative row inside the write transaction. (src/infra/state-migrations.exec-approvals-canonical.ts:58, fe9809682823)
  • Current main still needs the migration: Fetched main still accepts and normalizes historical policy during persisted reads. Its implementation does not supply this branch's durable SQLite repair, and none of the supplied merged related PRs fixes that central behavior. (src/infra/exec-approvals-config.ts:230, aa31aeefb745)

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • RomneyDa: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rank-up moves

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

  • Repair ordinary snapshot sanitization and verify legacy command/MCP grant retention with socket-token redaction and malformed-policy refusal.

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (10 earlier review cycles; latest 8 shown)
  • reviewed 2026-10-01T13:10:05.669Z sha 7e495df :: blocked before merge. :: [P1] Preserve legacy approval policy in ordinary backups
  • reviewed 2026-10-01T13:56:37.728Z sha b34aed8 :: blocked before merge. :: [P1] Preserve legacy approval policy in ordinary backups
  • reviewed 2026-10-01T14:06:48.700Z sha b34aed8 :: blocked before merge. :: [P1] Preserve legacy approval policy in ordinary backups
  • reviewed 2026-10-01T23:51:51.633Z sha b34aed8 :: blocked before merge. :: [P1] Preserve legacy approval policy in ordinary backups
  • reviewed 2026-10-02T02:08:23.308Z sha 61e2d440a5bce4076f31af3d2dc4e94299b6022c :: blocked before merge. :: [P1] Preserve legacy approval policy in ordinary backups
  • reviewed 2026-10-02T03:17:56.856Z sha cc0242a :: blocked before merge. :: [P1] Preserve legacy approval policy in ordinary backups
  • reviewed 2026-10-02T08:21:48.029Z sha cc0242a :: blocked before merge. :: [P1] Preserve legacy approval policy in ordinary backups
  • reviewed 2026-10-02T09:22:56.456Z sha cc0242a :: blocked before merge. :: [P1] [P1] Preserve legacy approval policy in ordinary backups

@steipete
steipete force-pushed the fix/exec-approvals-doctor-canonical-policy branch from 81390aa to 7e495df Compare October 1, 2026 12:43
@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. and removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. labels Oct 1, 2026
@steipete
steipete force-pushed the fix/exec-approvals-doctor-canonical-policy branch from 7e495df to b34aed8 Compare October 1, 2026 13:48
@openclaw-barnacle openclaw-barnacle Bot added the commands Command implementations label Oct 2, 2026
@steipete
steipete force-pushed the fix/exec-approvals-doctor-canonical-policy branch from 61e2d44 to cc0242a Compare October 2, 2026 03:08
@steipete
steipete marked this pull request as ready for review October 2, 2026 08:15
@github-actions

github-actions Bot commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

⚠️ Security sensitive changes

This maintainer PR changes sensitive security components. This comment is informational because the PR author has repository Maintain or Admin access.

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

These security sensitive changes were made:

  • src/infra/exec-approvals-config.ts: Controls sandbox containment or tool execution authority. Check filesystem and network isolation, approval scope, and command allowlists.
  • src/infra/exec-approvals-migration-gate.ts: Controls sandbox containment or tool execution authority. Check filesystem and network isolation, approval scope, and command allowlists.
  • src/infra/exec-approvals-sqlite.ts: Controls sandbox containment or tool execution authority. Check filesystem and network isolation, approval scope, and command allowlists.
  • src/infra/exec-approvals-store.ts: Controls sandbox containment or tool execution authority. Check filesystem and network isolation, approval scope, and command allowlists.

Carefully review these changes before merging.

@steipete
steipete enabled auto-merge (squash) October 2, 2026 08:18
@steipete
steipete disabled auto-merge October 2, 2026 08:51
@steipete
steipete marked this pull request as draft October 2, 2026 09:17
@clawsweeper clawsweeper Bot added the proof: sufficient ClawSweeper judged the real behavior proof convincing. label Oct 2, 2026
@steipete
steipete marked this pull request as ready for review October 2, 2026 09:45
@steipete
steipete enabled auto-merge (squash) October 2, 2026 09:52
@steipete
steipete merged commit 36c2c5a into main Oct 2, 2026
218 of 222 checks passed
@steipete
steipete deleted the fix/exec-approvals-doctor-canonical-policy branch October 2, 2026 10:01
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 3, 2026
…law#162687)

Move supported persisted exec-approval normalization into the existing Doctor migration owner, with a verified backup and canonical runtime reads. Preserve malformed policy bytes so the reader continues to fail closed, and return the actual persisted rule IDs and CAS hash from writes.

The published 2026.9.7 update cell and full changed checks passed on the migration head. The subsequent writer repair has independent P2 review and exact-head hosted CI. No schema version or public configuration option changes.

Exact-head CI passed 58 jobs; its only root failure is inherited Windows source/compiled TUI error-copy fixture drift from openclaw#163381. The failing child reaches no approval-policy or migration code. Landed under the explicit pre-existing-failure exception.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

commands Command implementations docs Improvements or additions to documentation gateway Gateway runtime merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. security-sensitive-changed size: L status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant