feat(research): retain exact experiment and report citations in findings

This commit is contained in:
Boki 2026-10-24 14:42:14 -04:00
parent 46a4f13acd
commit 06039d17ba
36 changed files with 4170 additions and 253 deletions

View file

@ -71,6 +71,7 @@ async function fixture(applyWorkspace = true, maxConnections = 10) {
}
if (applyWorkspace) {
await pool.query(migration);
await pool.query(sql('27-research-evidence-sources.sql'));
}
const postgres = new PostgreSQLClient(
{ host: 'unused', port: 5432, database: 'unused', username: 'unused', password: 'unused' },
@ -715,6 +716,8 @@ describe.skipIf(!url)('research workspace retained narratives and evidence', ()
await f.pool.query(migration);
await f.pool.query(migration);
expect(await snapshot()).toEqual(before);
// Current service writes include optional source identity; historical SQL20 assertions above stay scoped.
await f.pool.query(sql('27-research-evidence-sources.sql'));
const p = await f.service.createProject({ title: 'After upgrade' }, 'operator');
const finding = await f.service.createArtifact(
p.id,