gsxdsm
2e4fcfcaea
fix(FN-7952): establish PostgreSQL core authority ( #2108 )
...
## Summary
Fusion’s core runtime now treats PostgreSQL as the authoritative
metadata store without leaving current CLI, dashboard, desktop, or
engine composition roots uncompilable between stack layers. This is the
99-file foundation for the larger cutover: subsequent PRs migrate the
remaining consumers, plugins, and operator surfaces.
## Design decisions
- Runtime store construction fails closed when an asynchronous
PostgreSQL layer is unavailable; SQLite remains readable only at
explicit migration and identity-recovery boundaries.
- Project ownership is enforced across active, archived, workflow,
mission, analytics, and plugin-schema data.
- The small set of cross-package files in this layer are
compatibility-critical call sites required for a green intermediate
commit, not the complete consumer migration.
- Schema migration 0008 remains assigned to session-advisor state from
current `main`; mission lineage idempotency advances to 0009 so neither
invariant can be skipped.
## Validation
- All affected package typechecks pass: Core, Engine, Dashboard, CLI,
and Desktop.
- `pnpm test:gate` passes: 478 tests across the engine gate, PostgreSQL
core gate, and CLI workflow shape.
- The PR changes exactly 99 files.
## Stack
This is the base PR. Engine/dashboard, CLI/desktop/ops, plugins, and
docs/release follow as stacked PRs, each below 100 changed files.
Related: #2105
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **New Features**
* PostgreSQL is now the standard runtime backend, with embedded
PostgreSQL enabled by default.
* Added project-scoped storage for tasks, archives, chat sessions,
missions, knowledge pages, and operational data.
* Improved archived-task search, filtering, pagination, and restoration.
* Added safer plugin schema initialization with validation and project
isolation.
* Added PostgreSQL-backed workflow, mission, validator, and dashboard
capabilities.
* **Bug Fixes**
* Improved startup timeout cancellation and resource cleanup.
* Prevented cross-project data access and phantom reservation cleanup
errors.
* Ensured archived tasks remain read-only and asynchronous writes
complete reliably.
* Retired SQLite opt-out settings with clear startup errors.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-07-14 22:13:30 -07:00
..
2026-07-13 19:07:58 -07:00
2026-07-14 22:13:30 -07:00
2026-04-28 14:25:56 -07:00
2026-07-14 08:18:52 -07:00
2026-07-14 22:13:30 -07:00
2026-07-14 22:13:30 -07:00
2026-07-14 08:16:42 -07:00
2026-05-06 21:36:31 -07:00
2026-06-07 18:51:46 -07:00
2026-05-06 21:36:31 -07:00
2026-06-03 01:10:18 -07:00
2026-07-04 10:42:21 -07:00
2026-05-14 13:59:10 -07:00
2026-07-09 19:58:05 -07:00
2026-07-14 22:13:30 -07:00
2026-05-10 15:34:58 -07:00
2026-07-12 10:04:29 -07:00
2026-07-14 22:13:30 -07:00
2026-07-13 19:07:58 -07:00
2026-06-02 18:46:33 -07:00
2026-06-12 13:12:55 -07:00
2026-07-01 16:19:03 -07:00
2026-07-13 19:07:58 -07:00
2026-07-13 19:07:58 -07:00
2026-07-14 08:23:11 -07:00
2026-07-14 12:41:10 -07:00
2026-07-14 18:47:53 -07:00
2026-07-14 08:16:42 -07:00
2026-07-14 22:13:30 -07:00
2026-07-14 08:16:42 -07:00
2026-07-14 22:13:30 -07:00
2026-07-14 22:13:30 -07:00
2026-07-13 19:07:58 -07:00
2026-07-14 12:41:10 -07:00
2026-07-13 19:07:58 -07:00
2026-07-13 19:07:58 -07:00
2026-07-14 12:41:10 -07:00
2026-07-14 22:13:30 -07:00
2026-07-14 12:41:10 -07:00
2026-07-14 22:13:30 -07:00
2026-07-14 22:13:30 -07:00
2026-07-13 19:07:58 -07:00
2026-07-13 19:07:58 -07:00
2026-07-14 12:41:10 -07:00
2026-07-13 19:07:58 -07:00
2026-07-14 12:41:10 -07:00
2026-07-14 13:36:08 -07:00
2026-07-14 08:16:42 -07:00
2026-07-12 19:43:41 -07:00
2026-06-21 13:32:19 -07:00
2026-07-13 19:07:58 -07:00
2026-05-14 15:49:55 -07:00
2026-06-07 20:43:44 -07:00
2026-06-03 13:51:13 -07:00
2026-06-03 09:23:44 -07:00
2026-07-05 11:31:48 -07:00
2026-06-29 14:00:32 -07:00
2026-06-29 18:41:43 -07:00
2026-07-04 00:12:39 -07:00
2026-07-05 16:58:42 -07:00
2026-07-01 16:43:08 -07:00
2026-06-29 11:07:11 -07:00
2026-06-29 12:23:20 -07:00
2026-06-30 13:12:27 -07:00
2026-06-29 12:23:20 -07:00
2026-07-05 16:58:42 -07:00
2026-07-05 16:58:42 -07:00
2026-06-30 12:25:43 -07:00
2026-06-08 23:38:32 -07:00
2026-06-26 00:26:03 -07:00
2026-06-29 11:24:41 -07:00
2026-07-14 20:27:35 -07:00
2026-07-05 11:31:48 -07:00
2026-05-13 06:29:35 -07:00
2026-07-14 22:13:30 -07:00
2026-07-14 22:13:30 -07:00
2026-07-14 22:13:30 -07:00
2026-07-12 22:12:18 -07:00
2026-07-14 22:13:30 -07:00
2026-06-04 22:52:20 -07:00
2026-06-05 00:57:49 -07:00
2026-06-05 13:59:50 -07:00
2026-07-14 08:16:42 -07:00
2026-05-27 21:31:12 -07:00
2026-07-13 19:07:58 -07:00
2026-07-13 19:07:58 -07:00
2026-07-12 10:04:29 -07:00
2026-05-19 03:21:16 -07:00
2026-06-26 14:55:01 -07:00
2026-05-12 18:33:13 -07:00
2026-05-03 14:10:11 -07:00
2026-06-04 08:00:33 -07:00
2026-05-18 23:14:27 -07:00
2026-07-08 00:23:32 -07:00
2026-05-18 08:02:21 -07:00
2026-06-27 12:20:42 -07:00
2026-07-14 08:16:42 -07:00
2026-05-06 11:09:05 -07:00
2026-05-08 12:05:46 -07:00
2026-05-14 05:35:12 -07:00
2026-07-14 08:16:42 -07:00
2026-07-14 08:16:42 -07:00
2026-07-13 19:07:58 -07:00
2026-05-14 00:12:03 -07:00
2026-06-26 08:40:59 -07:00
2026-05-20 14:28:45 -07:00
2026-06-25 05:08:04 -07:00
2026-05-23 04:18:55 -07:00
2026-05-03 02:02:25 -07:00
2026-06-12 09:24:02 -07:00
2026-07-14 22:13:30 -07:00
2026-05-28 22:59:18 -07:00
2026-07-03 21:45:21 -07:00
2026-06-24 09:02:02 -07:00
2026-07-13 19:07:58 -07:00
2026-05-10 08:28:07 -07:00
2026-07-02 19:01:09 -07:00
2026-07-13 19:07:58 -07:00
2026-07-02 11:38:34 -07:00
2026-06-25 23:17:02 -07:00
2026-05-30 22:53:24 -07:00
2026-05-28 10:32:16 -07:00
2026-05-28 10:32:16 -07:00
2026-07-09 21:36:14 -07:00
2026-06-28 16:51:49 -07:00
2026-06-17 04:51:31 -07:00
2026-05-20 14:29:07 -07:00
2026-07-14 22:13:30 -07:00
2026-07-14 22:13:30 -07:00
2026-07-13 19:07:58 -07:00
2026-07-13 19:07:58 -07:00
2026-05-04 23:47:26 -07:00
2026-06-27 21:39:40 -07:00
2026-07-14 08:15:09 -07:00
2026-05-17 22:45:29 -07:00
2026-06-25 21:01:15 -07:00
2026-06-26 11:56:12 -07:00
2026-07-11 17:16:49 -07:00
2026-05-09 14:41:58 -07:00
2026-06-26 16:14:44 -07:00
2026-05-05 06:32:33 -07:00
2026-05-11 17:46:42 -07:00
2026-05-03 15:13:08 -07:00
2026-05-10 19:13:05 -07:00
2026-07-13 19:07:58 -07:00
2026-07-14 12:41:10 -07:00
2026-05-23 04:18:55 -07:00
2026-07-14 22:13:30 -07:00
2026-07-13 19:07:58 -07:00
2026-06-11 23:22:07 -07:00
2026-05-23 03:09:00 -07:00
2026-07-11 23:10:58 -07:00
2026-07-13 08:10:56 -07:00
2026-06-15 19:57:20 -07:00
2026-06-11 20:53:01 -07:00
2026-06-14 15:29:35 -07:00
2026-06-25 03:44:22 -07:00
2026-06-15 02:29:08 -07:00
2026-06-13 02:54:57 -07:00
2026-07-07 22:06:20 -07:00
2026-06-13 23:20:06 -07:00
2026-07-09 23:12:02 -07:00
2026-07-04 19:29:47 +00:00
2026-07-14 20:27:35 -07:00
2026-07-14 20:27:35 -07:00
2026-07-14 22:13:30 -07:00
2026-07-05 11:31:46 -07:00
2026-07-04 13:51:09 -07:00
2026-07-14 22:13:30 -07:00
2026-07-14 20:27:35 -07:00
2026-07-14 20:27:35 -07:00
2026-07-11 22:16:48 -07:00
2026-07-13 19:07:58 -07:00
2026-06-04 01:43:26 -07:00
2026-07-14 22:13:30 -07:00
2026-07-10 07:46:52 -07:00
2026-05-07 02:15:14 -07:00
2026-07-12 11:52:24 -07:00
2026-07-13 19:07:58 -07:00
2026-07-14 22:13:30 -07:00
2026-06-15 19:44:17 -07:00
2026-07-12 14:42:09 -07:00
2026-07-13 19:07:58 -07:00
2026-07-14 22:13:30 -07:00
2026-05-14 13:59:10 -07:00
2026-07-14 22:13:30 -07:00
2026-05-15 07:45:49 -07:00
2026-06-05 03:56:29 -07:00
2026-05-12 17:04:32 -07:00
2026-07-13 19:07:58 -07:00
2026-05-13 06:29:36 -07:00
2026-05-14 15:25:08 -07:00
2026-05-15 12:51:41 -07:00
2026-07-13 19:07:58 -07:00
2026-05-19 17:19:02 -07:00
2026-05-15 12:02:44 -07:00
2026-05-15 22:56:31 -07:00
2026-05-15 12:02:44 -07:00
2026-05-17 00:21:12 -07:00
2026-05-16 21:00:48 -07:00
2026-07-13 19:07:58 -07:00
2026-07-13 19:07:58 -07:00
2026-05-17 07:26:21 -07:00
2026-07-14 20:27:35 -07:00
2026-07-14 22:13:30 -07:00
2026-07-14 20:27:35 -07:00
2026-06-25 21:01:15 -07:00
2026-07-13 19:07:58 -07:00
2026-06-26 00:28:31 -07:00
2026-07-12 11:15:52 -07:00
2026-07-14 22:13:30 -07:00
2026-07-14 22:13:30 -07:00
2026-05-20 14:29:07 -07:00
2026-05-20 14:29:07 -07:00
2026-05-13 06:29:34 -07:00
2026-06-30 07:31:59 -07:00
2026-07-14 22:13:30 -07:00
2026-06-21 13:32:19 -07:00
2026-06-04 08:00:33 -07:00
2026-05-15 21:08:04 -07:00
2026-06-04 13:19:55 -07:00
2026-06-28 01:43:08 -07:00
2026-05-19 05:16:37 -07:00
2026-06-19 06:51:57 -07:00
2026-06-18 03:24:57 -07:00
2026-07-09 19:58:08 -07:00
2026-06-24 10:45:21 -07:00
2026-06-17 04:51:31 -07:00
2026-05-18 15:01:20 -07:00
2026-07-13 19:07:58 -07:00
2026-04-29 12:02:56 -07:00
2026-07-13 19:07:58 -07:00
2026-07-14 08:16:42 -07:00
2026-06-04 02:13:48 -07:00
2026-06-04 00:19:57 -07:00
2026-06-04 00:19:58 -07:00
2026-06-04 00:19:58 -07:00
2026-07-14 22:13:30 -07:00
2026-07-02 11:38:34 -07:00
2026-06-03 13:48:02 -07:00
2026-07-13 19:07:58 -07:00
2026-06-08 23:38:32 -07:00
2026-06-23 08:21:10 -07:00
2026-06-24 23:32:52 -07:00
2026-07-14 13:36:08 -07:00
2026-06-07 21:19:10 -07:00
2026-06-07 20:43:44 -07:00
2026-07-14 17:02:47 -07:00
2026-07-05 11:31:48 -07:00
2026-07-10 01:49:15 -07:00
2026-07-01 16:43:08 -07:00
2026-06-29 12:47:21 -07:00
2026-06-04 02:13:48 -07:00
2026-06-21 21:23:41 -07:00
2026-06-04 12:03:29 -07:00
2026-07-14 17:02:47 -07:00
2026-06-04 22:12:38 -07:00
2026-07-09 19:58:05 -07:00
2026-07-10 01:49:15 -07:00
2026-06-04 00:41:12 -07:00
2026-05-16 07:16:05 -07:00
2026-06-13 21:17:20 -07:00