feat(FN-2523): add safe restart restore lifecycle diagnostics

- Add ProjectEngine restore lifecycle core to perform safe restarts and surface detailed restore state transitions
- Expose restore diagnostics through remote-access status types and settings/memory route context, including legacy API mapping updates
- Add comprehensive regression coverage for restore lifecycle behavior in engine and dashboard headless remote-access tests
- Document the restore lifecycle contract in architecture/settings docs and include a patch changeset for @runfusion/fusion
This commit is contained in:
Fusion
2026-04-26 05:18:12 -07:00
committed by gsxdsm
parent a4c219f89b
commit e5ed696922
12 changed files with 956 additions and 19 deletions

View File

@@ -96,6 +96,14 @@ export async function getProjectContext(
}
}
if (!projectId && options?.engine) {
try {
return { store: options.engine.getTaskStore(), engine: options.engine, projectId };
} catch {
// Fall back to scoped store resolution.
}
}
const scopedStore = await getScopedStore(req, store);
return { store: scopedStore, engine: undefined, projectId };
}