fix(memory-feedback): post-fix precision split, 3rd pick retired, bounded transcript cache, strict labels

Precision, triggers and the miss share count only rows after the gate-1
fix merge (d3d5e6c, 2026-11-12T19:53:59Z); their actions wait for 20
post-fix asks, a one-off NEW line marks the sample and the reminder
keeps prompting until then. The 3rd-pick signal is gone. The reader
holds one parsed transcript at a time. labels.tsv rows and state.json
are validated on read. Exact key sets of log records pinned.
This commit is contained in:
bchanot committed 2026-11-13 19:47:37 +01:00
1 parent e132488aef
commit 9f9412aaba
11 files changed
+478 -67

No files matched your search

+36
View File
@@ -2658,6 +2658,42 @@ test('IR11: an injection leaves one log record; 205 keep 200', async (
expect(await loadLog(storeApi(w), ROOT)).toHaveLength(200)
})
/** The key set of a log record is pinned: a text field must fail. */
const KEYS = ['agent', 'at', 'cands', 'channel', 'ids', 'ms', 'outcome',
'session', 'trigger']
test('IR11b: an injected record holds exactly these keys', async (
$, on,
) => {
const { w } = await bootRecall($, on)
await start($)
await say($, GO)
const log = await loadLog(storeApi(w), ROOT)
expect(log.map(r => Object.keys(r).sort())).toEqual([KEYS])
})
test('IR11c: a none record holds exactly these keys', async ($, on) => {
const { w } = await bootRecall($, on)
w.model = { text: 'none' }
await start($)
await say($, GO)
const log = await loadLog(storeApi(w), ROOT)
expect(log.map(r => Object.keys(r).sort())).toEqual([KEYS])
})
test('IR11d: a no-candidate record holds these keys, no ms', async (
$, on,
) => {
const { w } = await bootRecall($, on)
w.proc = { stdout: rowsOut([['BLK-001', 'x'], ['LRN-002', 'y']])
.replace(/open/g, 'superseded') }
await start($)
await say($, GO)
const log = await loadLog(storeApi(w), ROOT)
expect(log.map(r => Object.keys(r).sort()))
.toEqual([KEYS.filter(k => k !== 'ms')])
})
test('IR12: a pending milestone and a trigger give [note, block]', async (
$, on,
) => {