// lib/memory-feedback/thresholds.ts: phase 4d gate numbers and threshold // actions, fixed before the data (BDR-100: one file; the reader and a // future /prune-memory step read it). Spec ยง4. export const DAY_MS = 86400000 export const GATE_DAYS = 35 // the 5-week cap from the gate clock start export const PROMPT_GATE_N = 20 // labelled injected prompt asks export const TOOL_GATE_N = 10 // labelled tool injections // Merge d3d5e6c of 7e87d77 (idle trigger >= 8 words, cap 2 entries): prompt // rows before it still reflect the old triggers (BDR-146 residual). export const GATE1_FIX_AT = Date.parse('2026-11-12T19:53:59Z') export const T = { promptKeep: 0.64, // relevant / labelled entries (4c baseline 14/22) triggerFloor: 0.5, // worst trigger kind under this gets tightened lateShare: 0.25, // timeout + paused among asks with candidates msP90: 2500, // rerank p90 under this lowers RERANK_MS toolKeep: 0.5, // tool precision under this narrows the match missShare: 1 / 3, // sampled asks with a miss, at or over this noisyHits: 3, // injected this often and never relevant: noisy promoteHits: 3, // relevant this often... promoteSessions: 2, // ...in this many sessions: promotion candidate } as const