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:
1 parent
e132488aef
commit
9f9412aaba
11 files changed
+478
-67
No files matched your search
@@ -126,14 +126,11 @@ const textsOf = (r: Rec): [string, string][] => blocksOf(r)
|
||||
/** Main-thread assistant text after `ts` up to the next prompt. */
|
||||
function replyAfter(recs: Rec[], ts: number): string {
|
||||
const end = nextPromptAt(recs, ts)
|
||||
const seen = new Set<string>()
|
||||
return recs
|
||||
const texts = recs
|
||||
.filter(r => r.type === 'assistant' && r.isSidechain !== true)
|
||||
.filter(r => tsOf(r) > ts && tsOf(r) < end)
|
||||
.flatMap(textsOf)
|
||||
.filter(([key]) => !seen.has(key) && !!seen.add(key))
|
||||
.map(([, text]) => text)
|
||||
.join('\n')
|
||||
return [...new Map(texts).values()].join('\n') // first position kept; the value is derived from the key
|
||||
}
|
||||
|
||||
export type PromptJoin = { prompt: string; injected: string; reply: string }
|
||||
|
||||
Reference in new issue
Block a user