Dashboard › opencode-lore › Distillation
b7ece2fe-9f52-467d-aeb9-3bab6ecbcf73["lore_tm_v1_ElUGvbecPxggs5FdrEeAt4FSVC-CK9AjQGYNnWqFE8Y","lore_tm_v1_dh-DQECMVICRgZoW56DJFZFaLIJ5gKelpKZ5RVwx4u4","lore_tm_v1_ddCJwpwefje8G9olZ0_FMrz4Imka5DCe3LJJ7Yp2j9s","lore_tm_v1_QVPNKFFSLfYQbVr_i5rroh41qZzeFWrPr-3yGBFsnB0"]
Date: Sep 16, 2026
packages/gateway/test/openai-responses-recall-aware-stream.test.ts:4910 in test rejects an over-budget principal response before its first recall.index + 1 always changes the value.packages/gateway/src/stream/openai-responses.ts:1883 documents that a callback is invoked only after an event has passed strict validation and mutation; nearby stream state includes activeContentIndexByItem = new Map<number, number>(), production-ceiling frame capping, event parsing and validation, applyResponsesEvent(state, event, parsed), terminal handling for response.failed, and special handling for terminal snapshots whose type === "item_reference".packages/gateway/src/stream/openai-responses.ts found two identity-to-index mappings: line 1037 sets state.itemIndexById.set(addedItem.id, outputIndex as number), and line 1040 sets state.callIndexById.set(addedCallID, outputIndex as number).packages/gateway/test/openai-responses-recall-aware-stream.test.ts found 19 item_reference occurrences at lines 1792, 1986, 1993, 2002, 2028, 2419, 2807, 3800, 3804, 4208, 4212, 4609, 4613, 4647, 4654, 4977, 4981, 5956, and 5960. Referenced IDs include msg_server_only, msg_reference_incomplete, fc_data_only_followup, msg_server_followup, call_shared_reference, call_principal_recall, and ref_retry_baseline.