feat(FN-4136): snapshot pi-autoresearch upstream contract with audit doc an

Implements Step 1 of FN-4136 by snapshotting the upstream pi-autoresearch contract, with supporting test stabilization and audit documentation added.

Fusion-Task-Id: FN-4136
This commit is contained in:
Fusion
2026-05-12 16:35:15 -07:00
committed by gsxdsm
parent cb2d24f226
commit 7c91c7961d
3 changed files with 208 additions and 6 deletions

View File

@@ -43,11 +43,13 @@ describe("TaskStore", () => {
await harness.store().listTasks({ slim: true, includeArchived: false, startupMemo: true });
expect(storeAny.startupSlimListMemo.size).toBeGreaterThan(0);
await harness.store().watch();
expect(storeAny.startupSlimListMemo.size).toBe(0);
harness.store().stopWatching();
});
try {
await harness.store().watch();
expect(storeAny.startupSlimListMemo.size).toBe(0);
} finally {
harness.store().stopWatching();
}
}, 30_000);
it("cache is updated when polling is active even without fs.watch", async () => {
await harness.store().watch();