Skip to content

perf(sqlite): retain unchanged database proofs across schema updates - #174409

Merged
steipete merged 2 commits into
mainfrom
steipete/perf-micro-delivery-recovery-55s-20260919
Oct 16, 2026
Merged

steipete merged 2 commits into
mainfrom
steipete/perf-micro-delivery-recovery-55s-20260919

Conversation

@steipete

@steipete steipete commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

A same-version update that changes only the shared-state schema can delay recovery of saved agent updates by invalidating every unchanged agent database's clean-close proof.

User Impact

Unchanged agent databases keep their integrity proof across shared-state-only schema updates, and unchanged shared-state databases keep theirs across agent-only updates. Old combined-format seals require one ordinary validation before the new identity can be reused. Existing full-verification deadlines, file/journal checks, additive-column admission, and recovery authority checks remain in force.

Why This Change Was Made

A restart reported 55,397.9 ms of delivery recovery, zero retry backoff, and zero blocked-notice work. Its deferred agent admission logged 55,982 ms in the full integrity check. The preceding update changed the canonical shared-state SQL but not the agent schema or application version. The single combined schema hash necessarily invalidated prior agent proofs. Store-target discovery waits for pending database preparation, so this admission delay was charged to delivery recovery. The 5,394 ms foreground database-readiness phase includes the existing five-second wait budget; it is nested inside the state-snapshot phase, not an independent additive delay.

Select the schema identity from completed admitted facts, supporting custom database paths. Known families depend on their own canonical schema; unclassified or mixed facts conservatively depend on both. The admission owner checks the identity before publishing any retained facts. This replaces the unconditional cross-family dependency without a new cache or persistence format.

Add discovery, candidate-entry, pending-history, and replay sub-timings to the startup recovery summary. Discovery and delivery remain serial as before; the candidate query already excludes consumed and irrelevant inputs. The observed bottleneck does not justify extra delivery concurrency. Scope-publication work is separately addressed by #174395, with no overlapping source changes here.

Production delta: +34 lines in five existing modules (+22 for family-specific validation while preserving conservative handling, +12 for the requested timing partition). No new module/export or database schema change.

Evidence

  • Team-shaped synthetic fixture: 5,000 sessions, 6,000 retained runs; 235,978,752-byte agent database and 11,784,192-byte shared database. Measurements use isolated Linux state and fresh processes. Three rounds per revision, each with an unchanged control, a clean reseal, and a shared-only canonical SQL source edit. Parent imports are excluded; inspection-child startup remains timed.
  • Median readiness plus first agent/shared open after the shared-only edit: 21,613.3 → 5,210.7 ms (4.15×, 75.9% lower). Ranges: 19,688.2–22,581.1 ms before; 3,322.6–5,792.1 ms after.
  • Agent schema process/inspection/snapshot counts: 1 → 0. Agent seal reuse: false → true. Total full integrity checks: 4 → 2, with the remaining checks on the changed shared database; median native full-check time 3,024.7 → 65.3 ms.
  • Unchanged controls: median 84.0 → 124.4 ms, overlapping ranges 76.8–138.7 / 115.6–131.0 ms; both perform zero full checks and zero snapshots. No unchanged-path speedup is claimed from these three samples.
  • 41 focused delivery-recovery/startup-trace tests pass, including ordering, retry authority, and fake-clock phase attribution. Runner wall time 129.28 s (primarily cold worker preparation); new timing regression 13 ms.
  • Schema identity regressions pass for unrelated/owned schema edits, conservative unknown families, build reuse, and version invalidation (3 tests, 2.97 s wrapper wall time).
  • All 42 focused admission/seal/lease tests pass (62.39 s wrapper wall time), including missing additive columns, replacement files, quarantine, journals, checkpoint failure, and cross-process leases. Together with the tests above: 86 passing tests across six focused files.
  • Changed-file oxfmt, repository lint using config/tsconfig/oxlint.core.json, and git diff --check pass. Independent Codex autoreview is scoped-clean through P2. Full typecheck/build/suites belong to PR CI. No validation leases were allocated.

The source-boundary harness waits for readiness with deferInspections:false; it establishes unnecessary validation, not a built-Gateway or end-to-end delivery latency prediction. Production remains unmeasured after this patch. No live Gateway or production state was modified.

CI Follow-up

The first CI run caught a restart E2E caller still using the old seal-reader arguments and two schema test mocks that did not preserve real exports. Both are corrected: the restart assertion checks the returned proof against the agent-family identity for the running artifact version, and the mocks retain live SQL getters while spreading real exports. The three schema tests and changed-file lint/format pass again; the test-only repair received a fresh independent review, clean through P2. The Linux restart-handoff E2E passes on head 632b3821bf7565c82133bece20be6a323263b833 in CI run 38932105075: six interrupted turns resume, persisted user turns remain unique, and the successor reuses the seal without another agent integrity verification.

Two unrelated guard failures were verified against CI's protected-main parent bb642e181e130153894a45f141a5368123bcd487: the duplicate-scan coverage guard omits cli-parent-lifetime.mjs, and the mock-export guard reports the existing darwin-bun-process-census mock in src/flows/doctor-plugin-source-captures.test.ts:32. The coverage-only guard fails identically with main's tracked-file index and this branch's index; its source and runtime helpers are identical. A focused invocation of the repository's mock scanner reports the same Doctor mock fingerprint on main and this branch, while the corrected schema test has no closed mocks. Neither guard's source, the omitted root file, nor the Doctor test is changed by this PR.

Final exact-head CI is green on 632b3821bf7565c82133bece20be6a323263b833: build, type checks, Node/UI tests, PostgreSQL conformance, baseline ratchets, and security checks passed. Both previously inherited guard failures are green in this run; no inherited-failure exception is needed.

Scope clean-close identities to the admitted database family so shared-only schema changes do not trigger agent integrity scans. Keep conservative identity coverage for mixed or unknown facts, and partition delivery recovery startup timings.
@clawsweeper

clawsweeper Bot commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

ClawSweeper review complete

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

View the workflow run.

@steipete
steipete marked this pull request as ready for review October 16, 2026 16:16
@chatgpt-codex-connector

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

Copy link
Copy Markdown
Contributor

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-16T16:30:49.256894Z 632b382 New commits
ℹ️ About Codex in GitHub

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

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

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

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation gateway Gateway runtime size: M labels Oct 16, 2026
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 16, 2026
@steipete
steipete merged commit 8162c2e into main Oct 16, 2026
146 checks passed
@clawsweeper

clawsweeper Bot commented Oct 16, 2026

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge.

What this changes

This PR scopes clean-close seal identities to each database family and adds delivery-recovery timing details.

Example: A same-version update changes shared-state SQL while a 235,978,752-byte agent database remains unchanged.

  • Before: The combined schema identity invalidates the agent seal and triggers another full validation.
  • After: The agent-family identity remains valid, allowing admission to reuse its completed validation facts.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The focused implementation appears correct and useful, with persisted-metadata upgrade validation still outstanding.
Proof confidence 🌊 off-meta tidepool Not applicable: Ordinary contributor proof gating is exempt for this maintainer-authored PR; supplied measurements exercise database readiness and opens, but upgrade compatibility remains insufficient because neither a latest-stable preserved-state upgrade nor the actual old combined-seal transition is demonstrated.
Patch quality 🦐 gold shrimp (3/6) No actionable review findings were identified.

Product

Kind: Performance · Worth it: Yes · Fix scope: Complete
User problem: Restart recovery waits for full validation of unchanged agent databases after unrelated shared-state schema changes.
Reason: The reported incident and source establish a concrete cost, and the maintainer-authored direction preserves existing admission and recovery contracts.

Merge readiness

⛔ Blocked before merge - 1 item remains

Keep this PR open: it addresses unnecessary database validation still present on current main, and source review found no introduced correctness defect.

Priority: P2
Reviewed head: 632b3821bf7565c82133bece20be6a323263b833

Before merge

  • Add data-model compatibility proof - The review found that existing stored data may not work after upgrade. Show that existing data still loads and works with this change.

Findings

None.

Tests

  • Missing end-to-end proof: Supply a latest-stable upgrade preserving settings and session data, plus a combined-format seal transition showing ordinary validation followed by successful family-scoped reseal and reuse.
Agent review details

How this fits together

SQLite admission reads clean-close seals, validates their file and schema identity, and publishes reusable validation facts to database consumers; Gateway recovery waits for database preparation before discovering saved deliveries.

flowchart TD
  A[Clean database close] --> B[Persist validation seal]
  B --> C[Startup admission]
  C --> D[Check file and family identity]
  D --> E[Reuse completed facts]
  D --> F[Run ordinary validation]
  E --> G[Recover saved deliveries]
  F --> G
Loading

Technical review

Best possible solution:

Retain family-scoped identities in the existing admission owner and verify the persisted-seal transition preserves existing settings and data.

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

Current main directly couples both database families in its schema hash, and the supplied isolated benchmark reports unnecessary agent validation after a shared-only schema edit; this review executed no target code.

Is this the best way to solve the issue?

The change removes the unwanted dependency at its existing owner, supports custom paths through admitted facts, and preserves conservative handling without adding delivery concurrency or another cache.

AGENTS.md: found and applied where relevant.

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

Provenance checked

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

  • Current main retains the central problem: The fetched main revision hashes both canonical schemas into every seal identity; the introduced change selects agent, state, or conservative combined coverage. (src/state/openclaw-database-seal-schema.ts:8, 8dd2dc0c0843)
  • Admission remains the validation owner: Family selection uses admitted fact names, conservatively combines unknown or mixed families, and checks the resulting identity before publishing retained facts. (src/infra/sqlite-database-admission-seal.ts:146, 632b3821bf75)
  • Existing safeguards remain: Seal reads retain checksum, physical-file, empty-journal, and verification-age checks; admission retains additive-column rejection and excludes live authority from persisted facts. (src/infra/sqlite-clean-close-seal.ts:40, 632b3821bf75)
  • Supplied measurement is bounded: The complete PR body reports fresh-process database-readiness measurements and explicitly excludes built-Gateway recovery claims; captured body sourceRevision is 0a22353332afa8dfbffecc52fefce58381c702ea3bf0842f553121e9dbdee76b. (632b3821bf75)
  • Transition coverage remains incomplete: The prior-build startup test now constructs the new family identity; it does not exercise rejection of an actual preceding combined-format seal, and supplied evidence contains no latest-stable upgrade run preserving existing settings and data. (src/state/openclaw-database-preflight.startup-integrity.test.ts:60, 632b3821bf75)
  • Related optimization is distinct: The merged receipt-scope optimization at perf(sqlite): bound session receipt scope publication #174395 reduces scope-publication work rather than changing seal identity. (e145264c3572)

Likely related people:

  • Peter Steinberger: Raw commit 5f38b5c adds src/state/openclaw-database-seal-schema.ts:6 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 5f38b5c053b4; files: src/state/openclaw-database-seal-schema.ts)

PR surface

Source +34, Tests +55, Docs +4. Total +93 across 13 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 5 62 28 +34
Tests 7 104 49 +55
Docs 1 6 2 +4
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 13 172 79 +93

Labels

Label changes:

  • add P2: Unnecessary full database validation delays restart recovery after otherwise unrelated schema updates.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🌊 off-meta tidepool and patch quality is 🦐 gold shrimp.

Label justifications:

  • P2: Unnecessary full database validation delays restart recovery after otherwise unrelated schema updates.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🌊 off-meta tidepool and patch quality is 🦐 gold shrimp.

Rank-up moves

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

  • Demonstrate preserved-state upgrade and old combined-seal fallback, resealing, and subsequent reuse.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

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

Reviewed October 16, 2026, 12:43 PM ET / 16:43 UTC.

@steipete
steipete deleted the steipete/perf-micro-delivery-recovery-55s-20260919 branch October 16, 2026 16:44
vincentkoc added a commit that referenced this pull request Oct 16, 2026
* commit 'a4c73619a5c': (29 commits)
  test: align model and Discord fixtures with runtime owners
  perf(sessions): reuse startup deletion discovery (#174408)
  fix(gateway): attribute ephemeral connections in normal logs (#174406)
  test(telegram): consolidate duplicate coverage (batch d117) (#173112)
  perf(doctor): avoid redundant backup and transcript reads (#174416)
  fix(update): avoid redundant reads for closed SQLite generations (#174426)
  fix(ui): Activity page tabs collapse to a few pixels on desktop (#173856)
  fix(decisions): skip prefilter for empty tool surfaces (#174269)
  perf(sqlite): retain unchanged database proofs across schema updates (#174409)
  refactor(test): remove duplicate export collision checks (#174391)
  fix: clear unused MCP and identity helper exports (#174421)
  fix(test): supply SQLite reliability fixture catalog
  refactor(mattermost): use the guarded transport directly (#174419)
  refactor(agents): trust prepared provider facts (#174388)
  fix(control-ui): open submenus immediately on click (#174292)
  test(anthropic): synchronize the late-send fixture with initialization
  refactor(ui): scope Plugins page state to Solid owners (#174281)
  perf(chat): pace board history refreshes and reuse cursors (#174407)
  perf(sqlite): bound session receipt scope publication (#174395)
  refactor(openrouter): share key budget test fixtures (#174340)
  ...
vincentkoc added a commit that referenced this pull request Oct 16, 2026
…157433

* commit '2e8bfec53fc1cf06c9e438f42b027a82e04ace9a': (29 commits)
  test: align model and Discord fixtures with runtime owners
  perf(sessions): reuse startup deletion discovery (#174408)
  fix(gateway): attribute ephemeral connections in normal logs (#174406)
  test(telegram): consolidate duplicate coverage (batch d117) (#173112)
  perf(doctor): avoid redundant backup and transcript reads (#174416)
  fix(update): avoid redundant reads for closed SQLite generations (#174426)
  fix(ui): Activity page tabs collapse to a few pixels on desktop (#173856)
  fix(decisions): skip prefilter for empty tool surfaces (#174269)
  perf(sqlite): retain unchanged database proofs across schema updates (#174409)
  refactor(test): remove duplicate export collision checks (#174391)
  fix: clear unused MCP and identity helper exports (#174421)
  fix(test): supply SQLite reliability fixture catalog
  refactor(mattermost): use the guarded transport directly (#174419)
  refactor(agents): trust prepared provider facts (#174388)
  fix(control-ui): open submenus immediately on click (#174292)
  test(anthropic): synchronize the late-send fixture with initialization
  refactor(ui): scope Plugins page state to Solid owners (#174281)
  perf(chat): pace board history refreshes and reuse cursors (#174407)
  perf(sqlite): bound session receipt scope publication (#174395)
  refactor(openrouter): share key budget test fixtures (#174340)
  ...
vincentkoc added a commit that referenced this pull request Oct 16, 2026
…/decision-onnx-v2-proof-20261016

* commit '2e8bfec53fc1cf06c9e438f42b027a82e04ace9a': (29 commits)
  test: align model and Discord fixtures with runtime owners
  perf(sessions): reuse startup deletion discovery (#174408)
  fix(gateway): attribute ephemeral connections in normal logs (#174406)
  test(telegram): consolidate duplicate coverage (batch d117) (#173112)
  perf(doctor): avoid redundant backup and transcript reads (#174416)
  fix(update): avoid redundant reads for closed SQLite generations (#174426)
  fix(ui): Activity page tabs collapse to a few pixels on desktop (#173856)
  fix(decisions): skip prefilter for empty tool surfaces (#174269)
  perf(sqlite): retain unchanged database proofs across schema updates (#174409)
  refactor(test): remove duplicate export collision checks (#174391)
  fix: clear unused MCP and identity helper exports (#174421)
  fix(test): supply SQLite reliability fixture catalog
  refactor(mattermost): use the guarded transport directly (#174419)
  refactor(agents): trust prepared provider facts (#174388)
  fix(control-ui): open submenus immediately on click (#174292)
  test(anthropic): synchronize the late-send fixture with initialization
  refactor(ui): scope Plugins page state to Solid owners (#174281)
  perf(chat): pace board history refreshes and reuse cursors (#174407)
  perf(sqlite): bound session receipt scope publication (#174395)
  refactor(openrouter): share key budget test fixtures (#174340)
  ...
vincentkoc added a commit that referenced this pull request Oct 16, 2026
…ision-accounting-native

* commit '2e8bfec53fc1cf06c9e438f42b027a82e04ace9a': (29 commits)
  test: align model and Discord fixtures with runtime owners
  perf(sessions): reuse startup deletion discovery (#174408)
  fix(gateway): attribute ephemeral connections in normal logs (#174406)
  test(telegram): consolidate duplicate coverage (batch d117) (#173112)
  perf(doctor): avoid redundant backup and transcript reads (#174416)
  fix(update): avoid redundant reads for closed SQLite generations (#174426)
  fix(ui): Activity page tabs collapse to a few pixels on desktop (#173856)
  fix(decisions): skip prefilter for empty tool surfaces (#174269)
  perf(sqlite): retain unchanged database proofs across schema updates (#174409)
  refactor(test): remove duplicate export collision checks (#174391)
  fix: clear unused MCP and identity helper exports (#174421)
  fix(test): supply SQLite reliability fixture catalog
  refactor(mattermost): use the guarded transport directly (#174419)
  refactor(agents): trust prepared provider facts (#174388)
  fix(control-ui): open submenus immediately on click (#174292)
  test(anthropic): synchronize the late-send fixture with initialization
  refactor(ui): scope Plugins page state to Solid owners (#174281)
  perf(chat): pace board history refreshes and reuse cursors (#174407)
  perf(sqlite): bound session receipt scope publication (#174395)
  refactor(openrouter): share key budget test fixtures (#174340)
  ...
vincentkoc added a commit that referenced this pull request Oct 16, 2026
…158510

* commit '26cbd409b9753a9318a6dc09f97b2f0b4b776a09': (29 commits)
  test: align model and Discord fixtures with runtime owners
  perf(sessions): reuse startup deletion discovery (#174408)
  fix(gateway): attribute ephemeral connections in normal logs (#174406)
  test(telegram): consolidate duplicate coverage (batch d117) (#173112)
  perf(doctor): avoid redundant backup and transcript reads (#174416)
  fix(update): avoid redundant reads for closed SQLite generations (#174426)
  fix(ui): Activity page tabs collapse to a few pixels on desktop (#173856)
  fix(decisions): skip prefilter for empty tool surfaces (#174269)
  perf(sqlite): retain unchanged database proofs across schema updates (#174409)
  refactor(test): remove duplicate export collision checks (#174391)
  fix: clear unused MCP and identity helper exports (#174421)
  fix(test): supply SQLite reliability fixture catalog
  refactor(mattermost): use the guarded transport directly (#174419)
  refactor(agents): trust prepared provider facts (#174388)
  fix(control-ui): open submenus immediately on click (#174292)
  test(anthropic): synchronize the late-send fixture with initialization
  refactor(ui): scope Plugins page state to Solid owners (#174281)
  perf(chat): pace board history refreshes and reuse cursors (#174407)
  perf(sqlite): bound session receipt scope publication (#174395)
  refactor(openrouter): share key budget test fixtures (#174340)
  ...
vincentkoc added a commit that referenced this pull request Oct 16, 2026
…esafe-decision-native

* commit '26cbd409b9753a9318a6dc09f97b2f0b4b776a09': (29 commits)
  test: align model and Discord fixtures with runtime owners
  perf(sessions): reuse startup deletion discovery (#174408)
  fix(gateway): attribute ephemeral connections in normal logs (#174406)
  test(telegram): consolidate duplicate coverage (batch d117) (#173112)
  perf(doctor): avoid redundant backup and transcript reads (#174416)
  fix(update): avoid redundant reads for closed SQLite generations (#174426)
  fix(ui): Activity page tabs collapse to a few pixels on desktop (#173856)
  fix(decisions): skip prefilter for empty tool surfaces (#174269)
  perf(sqlite): retain unchanged database proofs across schema updates (#174409)
  refactor(test): remove duplicate export collision checks (#174391)
  fix: clear unused MCP and identity helper exports (#174421)
  fix(test): supply SQLite reliability fixture catalog
  refactor(mattermost): use the guarded transport directly (#174419)
  refactor(agents): trust prepared provider facts (#174388)
  fix(control-ui): open submenus immediately on click (#174292)
  test(anthropic): synchronize the late-send fixture with initialization
  refactor(ui): scope Plugins page state to Solid owners (#174281)
  perf(chat): pace board history refreshes and reuse cursors (#174407)
  perf(sqlite): bound session receipt scope publication (#174395)
  refactor(openrouter): share key budget test fixtures (#174340)
  ...
vincentkoc added a commit that referenced this pull request Oct 16, 2026
…/decision-tool-v2-proof-20261016

* commit '26cbd409b9753a9318a6dc09f97b2f0b4b776a09': (29 commits)
  test: align model and Discord fixtures with runtime owners
  perf(sessions): reuse startup deletion discovery (#174408)
  fix(gateway): attribute ephemeral connections in normal logs (#174406)
  test(telegram): consolidate duplicate coverage (batch d117) (#173112)
  perf(doctor): avoid redundant backup and transcript reads (#174416)
  fix(update): avoid redundant reads for closed SQLite generations (#174426)
  fix(ui): Activity page tabs collapse to a few pixels on desktop (#173856)
  fix(decisions): skip prefilter for empty tool surfaces (#174269)
  perf(sqlite): retain unchanged database proofs across schema updates (#174409)
  refactor(test): remove duplicate export collision checks (#174391)
  fix: clear unused MCP and identity helper exports (#174421)
  fix(test): supply SQLite reliability fixture catalog
  refactor(mattermost): use the guarded transport directly (#174419)
  refactor(agents): trust prepared provider facts (#174388)
  fix(control-ui): open submenus immediately on click (#174292)
  test(anthropic): synchronize the late-send fixture with initialization
  refactor(ui): scope Plugins page state to Solid owners (#174281)
  perf(chat): pace board history refreshes and reuse cursors (#174407)
  perf(sqlite): bound session receipt scope publication (#174395)
  refactor(openrouter): share key budget test fixtures (#174340)
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 17, 2026
…penclaw#174409)

* perf(sqlite): retain unchanged database proofs across schema updates

Scope clean-close identities to the admitted database family so shared-only schema changes do not trigger agent integrity scans. Keep conservative identity coverage for mixed or unknown facts, and partition delivery recovery startup timings.

* test(sqlite): align restart proof with family-scoped seals
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to documentation gateway Gateway runtime P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: M

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant