Dashboard › opencode-lore › Distillation
be00cad0-6bef-427e-bcf7-feb411250389["lore_tm_v1_Isb0fzQcDivo5aEL__EJNwBFFgUEwZPwkPK-EyLmFqE","lore_tm_v1_bOUuL7OyZRqWBmt0Yun0NcenU3ejhYmulVerPmVwtxE","lore_tm_v1_5YNEc7Yd9rSZcMmeKygNxQ4Ii6C8h2DVib4R3_CwEa0"]
Date: Sep 16, 2026
/home/byk/Code/opencode-lore-provider-error/packages/gateway/src/pipeline.ts lines 9258–9739, covering assertOutputLifecyclesComplete, assertTerminalOutputMatches, terminal response/output validation, keepalive and SSE frame handling, the finish(resp: GatewayResponse, successful: boolean): boolean implementation near line 9621, recall admission, abort handling, follow-up execution, and shiftedOutputIndex./home/byk/Code/opencode-lore-provider-error/packages/gateway/src/pipeline.ts lines 8562–9256, covering function-call identity reconciliation, reasoning/content lifecycle state, authoritative and final value checks, duplicate function-argument completion detection, response.output_item.done, seedImplicitCodexItem, terminal response identity/status validation, and malformed terminal-event errors./home/byk/Code/opencode-lore-provider-error/packages/gateway/test/llm-adapter.test.ts, /home/byk/Code/opencode-lore-provider-error/packages/gateway/test/pipeline-streaming.test.ts, /home/byk/Code/opencode-lore-provider-error/packages/gateway/test/openai-responses-stream.test.ts, and /home/byk/Code/opencode-lore-provider-error/packages/gateway/test/openai-responses-recall-aware-stream.test.ts./home/byk/Code/opencode-lore-provider-error/packages/gateway/test/openai-responses-stream.test.ts includes sanitizing response.failed terminals with statuses failed and cancelled; rejecting inconsistent terminal combinations such as response.failed with completed or incomplete; preserving the public message "Gateway request failed"; logging "openai-responses provider failure"; Codex suppression versus public emission of response.failed; and the line 5400 test "emits response.failed and still calls onComplete (exactly once) when the upstream errors mid-stream"./home/byk/Code/opencode-lore-provider-error/packages/gateway/test/openai-responses-recall-aware-stream.test.ts includes PUBLIC_GATEWAY_ERROR = "Gateway request failed" at line 174; principal provider-failure sanitization; a line 739 test sanitizing a recall-bearing provider failure before later lifecycle checks; a line 829 test keeping created metadata authoritative through hidden recall and provider failure; and a line 905 test projecting trusted in-progress metadata before provider failure.