@@ -92,12 +92,12 @@ predictions that scored above threshold in the same `scorePredictionNudge`
9292call. This is the direct analog of nak's ` samskara_fires.cohort_id ` .
9393
9494** Write path:** ` scorePredictionNudge ` currently returns ` PredictionNudgeItem[] `
95- and is called from two sites (index .ts auto-fire, sideband.ts MCP path). Add a
95+ and is called from two sites (runtime .ts auto-fire, sideband.ts MCP path). Add a
9696` recordFires ` method that takes the scored predictions + a generated cohort_id
9797and inserts one row per prediction. The callers generate the cohort_id before
9898calling ` scorePredictionNudge ` and pass it through for recording.
9999
100- Both callers must record fires. The opencode path (index .ts) has the session_id.
100+ Both callers must record fires. The opencode path (runtime .ts) has the session_id.
101101The MCP path (sideband.ts) does not have a session_id in the sideband request --
102102pass null or derive from the socket connection.
103103
@@ -278,7 +278,7 @@ db.ts.
278278** Code changes by file:**
279279- ` src/db.ts ` -- new table, 4-5 new methods (recordFires, fireCount,
280280 cofireCount, totalCohorts, findPredictionDuplicates, findCoFireConstellations)
281- - ` src/index .ts ` -- generate cohort_id, pass to recordFires in auto-fire path
281+ - ` src/runtime .ts ` -- generate cohort_id, pass to recordFires in auto-fire path
282282- ` src/sideband.ts ` -- same for MCP path
283283- ` src/hygiene.ts ` -- add prediction dedup + constellation counts to report
284284- ` src/prompts.ts ` -- compound minting guidance in all three prompt variants
0 commit comments