Skip to content

refactor(persistence): retire ordinary JSON profile writes - #23202

Merged
OrcaWin merged 6 commits into
mainfrom
OrcaWin/np-json-writer-retirement
Sep 26, 2026
Merged

OrcaWin merged 6 commits into
mainfrom
OrcaWin/np-json-writer-retirement

Conversation

@OrcaWin

@OrcaWin OrcaWin commented Sep 26, 2026 •

Copy link
Copy Markdown
Collaborator

ELI5

SQLite is now the only backend that saves an open profile. Old JSON profiles still import directly, and JSON exports remain available for recovery and older builds.

What Changed

Remove the ordinary JSON writer, its synchronous/asynchronous fallback branches, writable legacy factory modes and live .bak rotation. Writable Store construction requires SQLite; a frozen Store remains available to normalize imports.

The remaining writers change together: offline agent-hook updates import under exclusive maintenance ownership before a revision-checked SQL write; new profiles seed inherited telemetry consent directly in SQLite; every changed copy/move participant establishes SQLite before mutation. A copy-only source can remain JSON. Transfers still publish the target before removing the source, with the existing crash-recovery journal.

Retained import, old-backup reads, accepted-JSON markers, compatibility exports and JSON recovery now live in src/main/persistence/profile-state/legacy-json/, with a README explaining their purpose and deletion criteria. CLI build entries follow the moved modules. JSON payloads inside SQLite, profile-index metadata, journals and caches remain separate concerns.

Temporary compatibility files are still reclaimed. Final flush, maintenance and close wait for that cleanup; frozen imports preserve the source. Hourly SQL backup enumeration now reads the directory asynchronously.

Why

Maintaining two ordinary write backends creates divergent durability and recovery paths. Converting the remaining writers in one change removes that branching while preserving old-profile and downgrade recovery. A mandatory intermediate release or a second live writer would not improve these guarantees.

Linked Issue

Follow-up to #22612 and #22635. No separate issue was supplied.

Visual Proof

N/A — profile storage and CLI behavior only; no presentation changes.

Testing

  • Automated tests updated to exercise SQLite rather than retired JSON writes
  • Local macOS artifact and command checks

Final combined run of all 110 changed test suites: 1,340 passed, no skips. Earlier broad persistence validation: 1,083 passed / 9 skipped; independent Opus core pass: 1,207 passed / 9 skipped. Independent Codex review of offline/index/transfer paths: 163 passed, no findings. Final lifecycle and SQL syscall/quit suites cover cleanup barriers, asynchronous writes, backup retention, failed-write rollback, and shutdown deadlines. Changed consumer regression run passed 809 tests; its four obsolete JSON fixture assertions were corrected and their 31-test subset passed. Additional startup/CLI integration (82), output-contract/secret/scrollback tests (79), and cohort/backup tests (35) passed.

Electron main/preload/renderer and actual bundled Bun daemon builds pass. An official Node 18.20.8 runtime ran the rebuilt CLI: JSON status and online RPC writes work; incapable offline writes refuse before creating an index, database, admission record or hook settings. Node/CLI typechecks and scoped lint pass. Packaged-path/output tests passed 47 checks; the added generic unpack guard and final failure fixtures passed another 21 checks. The changed-code-quality gate reports zero findings. The strict anti-slop audit passes on the revised fixtures.

Final head 7871495 has 34 successful checks, no failures or pending checks: all eight unit-test shards, static analysis, typechecks, both package lanes, changed upgrade/recovery E2E, and the complete Bun/native matrix (macOS, Linux, Windows x64/ARM, glibc floor and musl). The original foundation has real WSL qualification; this PR did not select an additional real-WSL CI lane. macOS 13 hardware was unavailable; stable release and actual installer qualification remain separate.

Review

Independent Codex and Claude Opus review/fix passes. Initial reviews found no P0/P1; the cleanup-lifetime issue and moved build/test imports were fixed. Final integration review identified a missing packaged CLI entry; fixed with emitted-entry, dynamic-import, and unpacked-path guards. Release-order Electron output passes the verifier (617 dependency files and 5 commands), and the actual Node 18 CLI smoke passes against that bundled output. Three temporary fixture skips were removed; secret retention, failed-write retry and close ordering now run through real worker/SQLite boundaries (25 focused tests). Exact-head CI now passes. Broad CI exposed two remaining automation fixtures with bare writable Store constructors; both now use SQLite, with all 18 tests and original assertions preserved. CI also exposed two test-lifetime failures: separate launcher stdout chunks and an unclosed SQLite fixture on Windows. Both are corrected; 11 affected tests pass under the actual Bun runtime, with Node types and strict lint clean.

Final authorized merge review: Claude Opus reviewed exact head 78714952d4 through Orca orchestration and passed 2,161 tests (19 existing platform/runtime skips) plus four migration/reopen probes. Independent Codex audit confirmed all retirement prerequisites and next-owner runtime paths. Neither found a P0/P1 or merge blocker. Opus noted a non-blocking opportunity for clearer unreadable-profile-index recovery guidance; the separate profile-create/consent-seed ordering already existed with JSON. Merged as 8416e8de10; all changed/deleted PR paths match the reviewed tree. Normal release/installer and macOS 13 qualification remain separate.

Agent skill upstream boundary

  • Not applicable; no agent skill source changed.

Notes

Clean shutdown and maintenance still refresh compatibility JSON. A crash can leave that snapshot older than SQLite. If an older build edits JSON independently, explicit orca profile state rollback --current-json selects it and archives the competing state; no divergent histories are silently merged.

Users do not need Node 24 or a global Bun install: desktop uses Electron and managed headless uses bundled Bun. A standalone incapable Node CLI must use a running Orca RPC owner or the bundled runtime for offline mutation. Corrupt legacy JSON may recover from .bak at startup; offline hook mutation refuses rather than importing the full application into the CLI.

A failed transfer can leave a participant safely migrated to SQLite even if the later transfer fails. Migration retains the source bytes and retry is idempotent. Mixed SSH/client versions do not require the retired writer because the execution host owns storage.

Tracking, design, research, and measurement documents are not included. The committed README is part of the retained JSON source boundary.

Checklist

  • Focused on ordinary JSON writer retirement and its affected fixtures
  • Explained behavior, mechanism and alternatives
  • N/A visual proof explained
  • Correctness, security, performance and SSH compatibility considered
  • Final independent integration review and corrections complete
  • Exact-head CI complete at 7871495 (34 checks)

m4air added 3 commits September 26, 2026 03:15
@OrcaWin
OrcaWin marked this pull request as ready for review September 26, 2026 10:26
@coderabbitai

coderabbitai Bot commented Sep 26, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

📝 Walkthrough

Walkthrough

Profile-state startup and writes now require SQLite authority. Legacy JSON is used for importing, compatibility exports, and recovery. CLI settings updates and project transfers migrate eligible JSON profiles before writing through SQLite. Profile-index loading now checks backup indexes and rejects unreadable existing indexes. Persistence tests and fixtures have been updated to use SQLite-backed stores.

Priority: ➖ Normal

Merge Risk: 🔵 Low · up to 78714

Ordinary profile writes now go only to SQLite, and the supplied context shows no concrete production failure. However, one security test no longer checks backup and export files on disk for leaked secrets. A future regression that writes plaintext into those files could pass unnoticed. This PR is mergeable once the owner is aware of that gap, and the test can be tightened as a follow-up.

Security Architecture Review

Security architecture risk: 🟡 Moderate · up to 78714

Making SQLite the sole writable profile store simplifies authority, but migration and transfer failures could affect an entire local profile. The examined paths have meaningful safeguards; the remaining uncertainty is in recovery and runtime coverage, not a demonstrated security regression.

Retained concerns
No architecture-level concerns identified.

Security review details

Security Blast Radius

  • inferred — The independently mutable scope examined is local profile state: CLI settings updates affect a profile’s settings row, while a project move spans source and target profiles. No new remote entrypoint was established by the examined evidence.

Trust Boundaries and Controls

  • observed — The offline CLI validates legacy state before creating an active profile; mutation then crosses the legacy-to-SQLite boundary under maintenance ownership and uses a revision-checked settings write.

Resilience and Maintainability Implications

  • observed — Transfer writes reject participants without established SQLite state and reject a commit that does not advance the expected revision, limiting stale or mixed-authority writes.
🚥 Pre-merge checks | ✅ 4 | ❓ 1

❌ Failed checks (1 inconclusive)

Check name Status Explanation Resolution
Docstring Coverage ❓ Inconclusive Docstring coverage is 14.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 50 functions across 50 files. (109 skippe… Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Title check ✅ Passed The title clearly and concisely describes the main change: retiring ordinary JSON profile writes.
Description check ✅ Passed The description is comprehensive and covers the required change, rationale, testing, visual proof, linked follow-up issues, review notes, and checklist. It is sufficiently complete despite not using a…
Full details: Docstring Coverage

Explanation

Docstring coverage is 14.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 50 functions across 50 files. (109 skipped: 2 unsupported, 107 over the file limit.)

✨ Finishing Touches 💡 1
📝 Generate docstrings 💡
  • Commit to this branch
  • Create a new PR

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ No new issues found.

Reviewed changes

  • Retire the ordinary JSON writer — deletes primary-state-write-json.ts and backup-recovery-rotation.ts; writeToDiskSync and Store construction now require a SQLite authority or a frozen serialized import, and the sync/async JSON fallback branches are gone.
  • SQLite-only admission — prepareProfileStateStore always bootstraps SQLite (allowEmptyProfileState: true) and fails with ProfileStateStoreFactoryError when the runtime cannot open SQLite; Store/orcad startup had their authorityMode plumbing removed.
  • Legacy boundary relocation — import, .bak reads, acceptance markers, versioned exports, and explicit recovery move under legacy-json/ (with a README), and the CLI/electron-vite/electron-builder entry lists follow.
  • Migrate before mutation — offline agent-hook updates import under exclusive maintenance before a revision-fenced settings write; every mutated transfer participant establishes SQLite, while a copy-only source may remain JSON.
  • Seed new-profile consent via SQLite — profile-telemetry-consent-seed.ts migrates inherited telemetry under a runtime admission instead of writing JSON.
  • Cleanup/backup — SQL backup enumeration gains an async variant, and compatibility-export temp cleanup is drained by maintenance/final-flush/close barriers and skipped for frozen imports.

ℹ️ A corrupt profile index now hard-fails desktop startup

readExistingProfileIndex() turns a previously self-healing path into a fail-closed one: if orca-profile-index.json (and its .bak) exist but neither parses, ensureActiveOrcaProfile() throws, initializeReadyFoundation() propagates, and ready-phase startup aborts. The old code reset to a single default profile. This is deliberate and covered by the new refuses an unreadable primary/backup/both index tests, and arguably safer than silently orphaning other profiles' data directories — but it is a user-visible behavior change outside the JSON-writer-retirement scope, and there is no automatic recovery: runProfileStateRecoveryPreflight only runs under the explicit PROFILE_STATE_RECOVERY_FLAG, and orca profile state rollback resolves the active profile through the same index, so it would also refuse. Worth confirming the intended operator recovery (manual index repair/deletion) is acceptable, and noting it in the PR description.

Technical details
# Corrupt profile index aborts startup with no in-product recovery

## Affected sites
- `src/main/orca-profiles/profile-index-store.ts:122-128` — new `readExistingProfileIndex` throws when the index or `.bak` exists but neither parses.
- `src/main/orca-profiles/profile-index-store.ts:159-168`, `:178-188` — `loadOrCreateProfileIndex` / `ensureActiveOrcaProfile` now use it.
- `src/main/startup/main-process-ready-foundation.ts:134` — `initializeReadyFoundation` calls `ensureActiveOrcaProfile`; a thrown error aborts startup.
- `src/main/startup/profile-state-recovery-preflight.ts:18-22` — recovery only runs with the explicit flag.
- `src/main/persistence/profile-state/profile-state-active-location.ts:41-44` — the rollback command resolves the active profile through the same index and throws on the same corruption.

## Required outcome
- If this fail-closed behavior is intended, document the corruption-recovery path for a user whose index is unreadable (the current code offers none), and mention the behavior change in the PR description.

## Open questions for the human
- Should an unreadable index reuse the old self-heal to a default profile, or is aborting startup the desired policy?
- Is there a supported out-of-band recovery (e.g. manual index restore) that should be surfaced in docs/CLI help?

Pullfrog  | View workflow run | Using DeepSeek Flash (free via Pullfrog for OSS) | 𝕏

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ No new issues found.

Reviewed changes (incremental since review 5325631493)

  • test(persistence): consolidate shared fixture imports (5e99bdd8f3) — moves closeTestStores, createSqliteTestStore, and readPersistedStateJson into the existing persistence-test-harness import block in three test files (persistence-flush-and-save-scheduling.test.ts, persistence-ui-state.test.ts, persistence-workspace-session-scrollback.test.ts). No production code changed; the prior review's findings and dispositions are unaffected.

Pullfrog  | View workflow run | Using DeepSeek Flash (free via Pullfrog for OSS) | 𝕏

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ No new issues found.

Reviewed changes (incremental since review 5325632154)

  • test(persistence): close SQLite fixtures before cleanup and await launcher output (9c6641802e) — profile-state-cutover-fixture.test.ts now awaits closeTestStores() before removeTreeSync(testState.dir), and orcad-bun-launcher.integration.test.ts folds three output assertions into the single vi.waitFor poll instead of asserting after the first condition passes. Test-only; no production code changed, and no previously reported finding is affected.

Pullfrog  | View workflow run | Using DeepSeek Flash (free via Pullfrog for OSS) | 𝕏

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ No new issues found.

Reviewed changes (incremental since review 5325632524)

  • test(automations): use SQLite fixtures for dispatch fencing and skip coalescing (78714952d4) — automation-dispatch-host-fence.test.ts and automation-skip-coalescing.test.ts now build their stores through createSqliteTestStore, freeze/close them with closeTestStores() before teardown, and replace rmSync with the lock-retrying removeTreeSync; seedUnresolvableAutomation now seeds drift by exporting the SQLite JSON, mutating it, and writing it back through writePersistedStateJson instead of editing the retired orca-data.json, then reloads through a fresh store. All existing assertions (folded occurrenceCount, reload-resume, etc.) are preserved.

The change makes the fixtures match the now-strict Store construction contract and keeps the reload path exercising real SQLite round-trips rather than the removed JSON writer; no production code is touched.

Pullfrog  | View workflow run | Using DeepSeek Flash (free via Pullfrog for OSS) | 𝕏

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧹 Nitpick comments (1)
src/main/persistence-protected-secret-fail-closed.test.ts (1)

393-400: 📐 Maintainability & Code Quality | 🔵 Trivial | 🏗️ Heavy lift

The backup assertion no longer inspects a persisted backup artifact.

The previous test read .bak.0 from disk and checked it for pending plaintext. store.prepareProfileStateExport().json builds an in-memory export. It does not read anything that was written to disk.

createSqliteTestStore uses UnitTestProfileStateAuthority, which overrides scheduleBackup() with a no-op. As a result, this test never creates a SQLite backup (profile-state.db.backup.*.db) or a versioned JSON export. No retained recovery artifact is checked for pending plaintext during the encryption failure.

A regression that writes plaintext into a SQLite backup or into a *.sqlite-export.*.json file would still pass this test. Change the test to check the real artifacts. Two options:

  • Use a worker-backed fixture that runs backups, then read each file from profileStateDatabaseBackups(databaseFile).
  • Call writeLatestProfileStateJsonExport() during the failure, then read the resulting export file.
♻️ Sketch
-      const backupRaw = store.prepareProfileStateExport().json
+      store.writeLatestProfileStateJsonExport()
+      const [exportPath] = profileStateJsonExportPaths(dataFile())
+      const backupRaw = readFileSync(exportPath, 'utf8')

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Advanced

Run ID: 0f38a2dd-62be-465f-bde7-64dbb74def16

📥 Commits

Reviewing files that changed from the base of the PR and between d20cb69 and 7871495.

📒 Files selected for processing (167)
  • config/build-plugins/plain-node-entry-guard.ts
  • config/electron-builder.config.cjs
  • config/scripts/cli-main-module-bundle-parity.test.ts
  • config/scripts/electron-vite-output-contract.test.ts
  • config/tsconfig.cli.json
  • src/cli/handlers/agent-hooks.test.ts
  • src/cli/handlers/agent-hooks.ts
  • src/cli/handlers/profile-state.test.ts
  • src/main/active-view-persistence-boundary.test.ts
  • src/main/automations/automation-dispatch-host-fence.test.ts
  • src/main/automations/automation-owner-fencing.test.ts
  • src/main/automations/automation-skip-coalescing.test.ts
  • src/main/automations/automation-update-host-retarget.test.ts
  • src/main/automations/automation-workspace-host-attribution.test.ts
  • src/main/automations/automation-zero-grace-tick-latency.test.ts
  • src/main/automations/refused-manual-run.test.ts
  • src/main/automations/retained-run-reconciliation.test.ts
  • src/main/automations/run-completion-watcher.test.ts
  • src/main/automations/service-precheck.test.ts
  • src/main/automations/service.test.ts
  • src/main/ipc/ssh-host-partition-session-export.test.ts
  • src/main/linux-update-package-type.test.ts
  • src/main/orca-profiles/profile-index-store.test.ts
  • src/main/orca-profiles/profile-index-store.ts
  • src/main/orca-profiles/profile-project-state-file.ts
  • src/main/orca-profiles/profile-project-transfer-migration.test.ts
  • src/main/orca-profiles/profile-project-transfer.test.ts
  • src/main/orca-profiles/profile-project-transfer.ts
  • src/main/orca-profiles/profile-telemetry-consent-seed.test.ts
  • src/main/orca-profiles/profile-telemetry-consent-seed.ts
  • src/main/orcad/orcad-bun-launcher.integration.test.ts
  • src/main/orcad/orcad-profile-state-startup.test.ts
  • src/main/orcad/orcad-profile-state-startup.ts
  • src/main/orcad/orcad-profile-state-telemetry.test.ts
  • src/main/orcad/orcad-profile-state-telemetry.ts
  • src/main/persistence-async-write-syscalls.test.ts
  • src/main/persistence-automations.test.ts
  • src/main/persistence-clipboard-selection-migration.test.ts
  • src/main/persistence-cohort-and-identity-migration.test.ts
  • src/main/persistence-cross-host-pane-identity.test.ts
  • src/main/persistence-deregistered-repo-residue.test.ts
  • src/main/persistence-duplicate-repo-id-host-scope.test.ts
  • src/main/persistence-feature-interaction-broadcast.benchmark.test.ts
  • src/main/persistence-floating-terminal-trust.test.ts
  • src/main/persistence-flush-and-save-scheduling.test.ts
  • src/main/persistence-folder-workspace-notes.test.ts
  • src/main/persistence-host-admitted-terminal-membership.test.ts
  • src/main/persistence-host-partitioned-sessions.test.ts
  • src/main/persistence-host-partitioned-ssh-pty-bindings.test.ts
  • src/main/persistence-initial-load.test.ts
  • src/main/persistence-layout-binding-recovery.test.ts
  • src/main/persistence-load-repair-durability.test.ts
  • src/main/persistence-loading-store-extraction.test.ts
  • src/main/persistence-loading-store-write-risks.test.ts
  • src/main/persistence-native-chat-tab-view-mode.test.ts
  • src/main/persistence-pane-identity-migration.test.ts
  • src/main/persistence-protected-secret-fail-closed.test.ts
  • src/main/persistence-protected-secret-write-race.test.ts
  • src/main/persistence-proxy-secret-recovery.test.ts
  • src/main/persistence-pty-binding-leaf-tab-resolution.test.ts
  • src/main/persistence-pty-binding-reconciliation.test.ts
  • src/main/persistence-remote-session-startup.test.ts
  • src/main/persistence-repo-lifecycle.test.ts
  • src/main/persistence-settings-ui-defaults.test.ts
  • src/main/persistence-settings-update.test.ts
  • src/main/persistence-single-serialize.test.ts
  • src/main/persistence-source-control-ai-migration.test.ts
  • src/main/persistence-split-pane-incarnation.test.ts
  • src/main/persistence-ssh-lease-reattach-reclaim.test.ts
  • src/main/persistence-ssh-lease-tombstone-retention.test.ts
  • src/main/persistence-ssh-pending-pty-kill.test.ts
  • src/main/persistence-ssh-readoption-automation-migration.test.ts
  • src/main/persistence-ssh-remote-pty-binding-replay.test.ts
  • src/main/persistence-ssh-remote-pty-leases.test.ts
  • src/main/persistence-ssh-targets-and-pane-keys.test.ts
  • src/main/persistence-terminal-option-key-migration.test.ts
  • src/main/persistence-test-harness.ts
  • src/main/persistence-ui-state.test.ts
  • src/main/persistence-update-repo.test.ts
  • src/main/persistence-workspace-pinned-automation-fence.test.ts
  • src/main/persistence-workspace-repin-automation-owner.test.ts
  • src/main/persistence-workspace-session-scrollback.test.ts
  • src/main/persistence-workspace-status-workflow.test.ts
  • src/main/persistence-worktree-card-properties.test.ts
  • src/main/persistence-worktree-deletion-fencing.test.ts
  • src/main/persistence-worktree-lineage-and-backups.test.ts
  • src/main/persistence-worktree-meta-and-folder-workspaces.test.ts
  • src/main/persistence-worktree-name-retirement.test.ts
  • src/main/persistence-worktree-visibility.test.ts
  • src/main/persistence/loading-store/backup-recovery-rotation.ts
  • src/main/persistence/loading-store/loaded-state-parsing.ts
  • src/main/persistence/loading-store/persisted-state-redundancy.test.ts
  • src/main/persistence/loading-store/primary-state-write-context.ts
  • src/main/persistence/loading-store/primary-state-write-json.ts
  • src/main/persistence/loading-store/primary-state-write-runtime.ts
  • src/main/persistence/loading-store/primary-state-write-sync.ts
  • src/main/persistence/loading-store/primary-state-writes.ts
  • src/main/persistence/loading-store/profile-state-checkpoints.test.ts
  • src/main/persistence/loading-store/profile-state-delayed-authority-fixture.ts
  • src/main/persistence/loading-store/profile-state-import-lifetime.test.ts
  • src/main/persistence/loading-store/profile-state-maintenance-compatibility.test.ts
  • src/main/persistence/loading-store/profile-state-maintenance-fixture.ts
  • src/main/persistence/loading-store/profile-state-maintenance.test.ts
  • src/main/persistence/loading-store/profile-state-maintenance.ts
  • src/main/persistence/loading-store/profile-state-sqlite-authority.test.ts
  • src/main/persistence/loading-store/profile-state-temp-cleanup-lifetime.test.ts
  • src/main/persistence/loading-store/profile-state-update-quit.test.ts
  • src/main/persistence/loading-store/state-write-round-trip.test.ts
  • src/main/persistence/loading-store/store-domain-composition.ts
  • src/main/persistence/loading-store/store-prune-gate-signals.test.ts
  • src/main/persistence/loading-store/store-runtime-authored-session-writes.test.ts
  • src/main/persistence/loading-store/store-runtime-state.ts
  • src/main/persistence/loading-store/store.ts
  • src/main/persistence/loading-store/worktree-meta-alias-projection.test.ts
  • src/main/persistence/loading-store/write-flush-barriers.ts
  • src/main/persistence/profile-state-cutover-fixture.test.ts
  • src/main/persistence/profile-state-cutover-soak.test.ts
  • src/main/persistence/profile-state/legacy-json/README.md
  • src/main/persistence/profile-state/legacy-json/profile-state-authority-exports.ts
  • src/main/persistence/profile-state/legacy-json/profile-state-export-path.ts
  • src/main/persistence/profile-state/legacy-json/profile-state-json-acceptance.ts
  • src/main/persistence/profile-state/legacy-json/profile-state-legacy-backup-path.ts
  • src/main/persistence/profile-state/legacy-json/profile-state-legacy-import.ts
  • src/main/persistence/profile-state/legacy-json/profile-state-recovery.ts
  • src/main/persistence/profile-state/legacy-json/profile-state-versioned-export.test.ts
  • src/main/persistence/profile-state/legacy-json/profile-state-versioned-export.ts
  • src/main/persistence/profile-state/profile-state-authority-bootstrap.test.ts
  • src/main/persistence/profile-state/profile-state-authority-bootstrap.ts
  • src/main/persistence/profile-state/profile-state-backup-path.ts
  • src/main/persistence/profile-state/profile-state-backup-rotation.ts
  • src/main/persistence/profile-state/profile-state-bootstrap-publication-race.test.ts
  • src/main/persistence/profile-state/profile-state-current-json-command.test.ts
  • src/main/persistence/profile-state/profile-state-database-recovery.test.ts
  • src/main/persistence/profile-state/profile-state-database-recovery.ts
  • src/main/persistence/profile-state/profile-state-database-rollback-export.test.ts
  • src/main/persistence/profile-state/profile-state-documents.ts
  • src/main/persistence/profile-state/profile-state-fragment-validation.test.ts
  • src/main/persistence/profile-state/profile-state-json-compatibility-recovery.test.ts
  • src/main/persistence/profile-state/profile-state-large-recovery-crash.test.ts
  • src/main/persistence/profile-state/profile-state-live-store-factory.test.ts
  • src/main/persistence/profile-state/profile-state-live-store-factory.ts
  • src/main/persistence/profile-state/profile-state-migration.ts
  • src/main/persistence/profile-state/profile-state-offline-settings.test.ts
  • src/main/persistence/profile-state/profile-state-offline-settings.ts
  • src/main/persistence/profile-state/profile-state-recovery-command.ts
  • src/main/persistence/profile-state/profile-state-recovery-crash-boundaries.test.ts
  • src/main/persistence/profile-state/profile-state-recovery-crash-process.ts
  • src/main/persistence/profile-state/profile-state-recovery-required.ts
  • src/main/persistence/profile-state/profile-state-sqlite-authority.ts
  • src/main/persistence/profile-state/profile-state-startup-authority.test.ts
  • src/main/persistence/profile-state/profile-state-startup-authority.ts
  • src/main/persistence/profile-state/profile-state-startup-snapshot.test.ts
  • src/main/persistence/profile-state/profile-state-store-factory.test.ts
  • src/main/persistence/profile-state/profile-state-store-factory.ts
  • src/main/persistence/profile-state/profile-state-writer-worker-entry.ts
  • src/main/quit-path-durable-write-blocking.test.ts
  • src/main/runtime/automation-change-publication.test.ts
  • src/main/startup/configure-process-profile-state.test.ts
  • src/main/startup/http1-compatibility-profile-state.test.ts
  • src/main/startup/http1-compatibility-profile-state.ts
  • src/main/startup/main-process-observers.ts
  • src/main/startup/main-process-ready-foundation.ts
  • src/main/startup/main-process-ready-identity-write.test.ts
  • src/main/startup/main-process-state.ts
  • src/main/startup/profile-state-recovery-preflight.test.ts
  • src/main/worktree-removal-session-partition-fencing.test.ts
  • tests/e2e/persisted-session-production-upgrade.spec.ts
💤 Files with no reviewable changes (6)
  • src/main/startup/main-process-ready-identity-write.test.ts
  • src/main/persistence/loading-store/primary-state-write-json.ts
  • src/main/persistence/loading-store/primary-state-write-context.ts
  • src/main/persistence/profile-state/profile-state-live-store-factory.ts
  • src/main/persistence/loading-store/backup-recovery-rotation.ts
  • src/main/persistence/loading-store/primary-state-write-runtime.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 5 remain after this review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant