Dashboard › opencode-lore › Distillation
79380fba-5593-414d-af19-a509eefb7efc["lore_tm_v1_6wwiA69mD_SxPCx37VUGEgiEtrIB0ggq1OQ1sQikl2k","lore_tm_v1_mYjOAOOlhLAWalwEepXGWcWkju5RKX6APHDjuqhmB3U","lore_tm_v1_hzUiJZuA8H_FhMtciGaICnMMOWSNFnKUWyHuyqRoXo8","lore_tm_v1_kb6e7_vcRxLLsCBxgmCSdUSDKgaQ6a3Ud8wBSHD3vts","lore_tm_v1_I1nPKHMIQEtrn5xxn9POkwXdTaK-d1ZMbLJrR--n054","lore_tm_v1_6BFMf3ad5RK4YVc2aym5VxHZe0zCwuQO3ik_XR65pGY"]
Date: Sep 16, 2026
packages/gateway/test/openai-responses-stream.test.ts now imports log from @loreai/core, afterEach from vitest, and makeResponsesAccState; it defines silentLogSink with no-op info, warn, error, and captureException, then restores that sink after each test via log.registerSink(silentLogSink).test("uses created metadata and failure usage in the plain streaming route", ...) in packages/gateway/test/openai-responses-stream.test.ts, exercising trusted response.created metadata and terminal failure usage { input_tokens: 5, output_tokens: 2 }, expected internally as { inputTokens: 5, outputTokens: 2 }, while checking that private terminal identifiers, model data, traces, and diagnostics do not leak.test("projects trusted in-progress metadata in the plain streaming route", ...) using response ID "resp_plain_in_progress_failure" and hostile model "private-plain-in-progress-model"; both streamed output and serialized completion records must exclude the hostile model, while completion usage remains { inputTokens: 5, outputTokens: 2 }.packages/gateway/test/pipeline-streaming.test.ts now imports setRecallContinuationFailureHook from ../src/recall-continuation-failure and resets it after every test with setRecallContinuationFailureHook(undefined).providerSecret = "principal-persistence-secret" embedded in provider error.code, error.message, and diagnostics.detail. For a failed terminal, the body must contain exactly one event: response.failed, exactly one "Gateway request failed", no event: response.completed, and no provider secret; temporal.store must remain uncalled and its serialized calls must not contain the secret.it("accounts a failed recall continuation cancelled under terminal backpressure", ...). The principal response performs a completed recall function call with query "one two three four five six seven eight nine architecture terms" and usage { input_tokens: 10, output_tokens: 1 }; the follow-up response "resp_cancelled_recall_failed" fails with usage { input_tokens: 1_000, output_tokens: 100 } and private provider message "provider secret".setRecallContinuationFailureHook to await category "follow_up_failed", verifies exactly 2 upstream calls, cancels the response body with "cancelled under terminal backpressure", and expects session conversation accounting { inputTokens: 1_010, outputTokens: 101, turns: 1 }; temporal.store must not be called.packages/gateway/test/recall-codex-stream.test.ts failure expectations: output must contain exactly one event: response.failed, must not expose "provider terminal", and must contain the fixed public message "Gateway request failed".b973f0add738ac7d2f18b5b73d7c81c16478d67ccbbc7319e0fc3c2f595e27e3 and a999b49e7bdd24ace94a56f92e6edceec7bebab71aa2ff476526fed4b2ef0cad.streamResponsesRecallAware appears in packages/gateway/src/pipeline.ts at line 7802 as an exported function and at line 18893 as a call site.