feat(FN-3280): harden reviewState persistence, API, and PR feedback sync

Merges reviewState hardening (FN-3280 steps 2-3: hardened persistence, API fixes, and PR feedback sync), stepIndex reconciliation for task updates (FN-3757), roadmap route context extraction into the fusion-plugin-roadmap plugin (FN-3160), and shared state snapshots for mesh sync with autostash hard

Fusion-Task-Id: FN-3280
This commit is contained in:
Fusion
2026-05-08 16:23:10 -07:00
committed by gsxdsm
parent 0a4a07bda3
commit cc6cf53d66
17 changed files with 136 additions and 47 deletions

View File

@@ -88,7 +88,7 @@ export function probeFts5(db: DatabaseSync): boolean {
// ── Schema Definition ────────────────────────────────────────────────
const SCHEMA_VERSION = 68;
const SCHEMA_VERSION = 69;
function normalizeTaskComments(
steeringComments: SteeringComment[] | undefined,
@@ -202,6 +202,7 @@ CREATE TABLE IF NOT EXISTS tasks (
steeringComments TEXT DEFAULT '[]',
comments TEXT DEFAULT '[]',
review TEXT,
reviewState TEXT,
workflowStepResults TEXT DEFAULT '[]',
prInfo TEXT,
issueInfo TEXT,
@@ -2629,6 +2630,12 @@ export class Database {
});
}
if (version < 69) {
this.applyMigration(69, () => {
this.addColumnIfMissing("tasks", "reviewState", "TEXT");
});
}
}
/**