Dashboard › opencode-lore › Distillation
767aeb8e-804a-4a3d-819a-7a7dd220e12e["lore_tm_v1_5Tlu4S_SSt2J8zoNOj0P8vkBS-H-bMAQ5CluoqW4Y7M","lore_tm_v1_xeVHmIX2d9ePf0XnkYf6n2EyXWz2W7GDVHFACg2z-0w","lore_tm_v1_QoRkJhZn52EEJL7p-LKyG40OmwDDMwQPwGG3b9x8Xk4","lore_tm_v1_DXrsSZ80vP-mBrMjNKQhXMrBAeHTd9NY81EO88Xggtk","lore_tm_v1_zeshGr0s6MZEapqt7kS6NI2qB5x6JizTw4zc4dVRWYU","lore_tm_v1_sO_g5mdH-ZrVqNgWh8SSQbWAwhIqc5xJ8Tk1D5588P0","lore_tm_v1_8qg8-auPFtoOzBimipveg4Gxdkdw1NdGPPZmZ1h9Jas","lore_tm_v1__tiJ6G73oa0pD6MylAxZmWVmUbwhiTbizbm3txf2sN4","lore_tm_v1_KMEy9GXUojfT22xMUK5gheUdNagfDxHT-66ZoA0R140","lore_tm_v1_0Dt3qUhTap1LCLhc5nYkST_1GZBvDWBwl2_qDYI96go","lore_tm_v1_-evE6-3QIqZ6KDNKKWn9rG0lQG71jT1DeiSzaKM8RuE","lore_tm_v1_wZYDf57n8-w8yrEzGvAB73YD5bkTQVQczZwTal35pd0","lore_tm_v1_1NEQmT9sukoGVMZ433WBOZJqZ-QqpxTykwbFqeG7qBs"]
Date: Sep 16, 2026
packages/gateway/test/openai-responses-recall-aware-stream.test.ts around lines 3956–4273 showed stream regressions covering: no forwarded response.completed on failure; controllable upstream SSE release via close()/error(err); draining a pre-buffered stream after a delayed first read; upstream cancellation; abort handling; downstream cancellation that does not await a hostile upstream cancel; malformed JSON suppression; multiple function calls such as item-two; output-text events; and provider-failure cases including response.done with status failed and secret provider code text provider-code-secret.packages/gateway/test/openai-responses-recall-aware-stream.test.ts found 4 contradiction-related tests: line 3946 rejects terminal recall arguments that contradict an established final value; line 4726 rejects finalized reasoning that contradicts summary deltas; line 5490 rejects contradictory status in %s snapshots; line 7871 rolls back persistence without contradicting an already delivered terminal.packages/gateway/test/openai-responses-recall-aware-stream.test.ts:5372-5421 showed two recall safeguards: terminal-only recall status failed returns PUBLIC_RECALL_ERROR without executing onRecall (recalled remains 0), and a terminal response.completed snapshot whose recall output is marked status: "failed" is likewise rejected.rejects nonterminal response.done status without executing recall at packages/gateway/test/openai-responses-recall-aware-stream.test.ts:5423-5445 sends doneWithStatus("resp_nonterminal_done", "in_progress"), expects PUBLIC_RECALL_ERROR, and verifies onRecall was never called (recalled === 0).rejects hidden output in %s snapshots at packages/gateway/test/openai-responses-recall-aware-stream.test.ts:5447-5487 covers response.created and response.in_progress; an in-progress snapshot containing hidden recall function call fc_snapshot_recall with arguments {"query":"leaked"} must produce response.failed, must not expose fc_snapshot_recall, and must leave recalled === 0.rejects contradictory status in %s snapshots at packages/gateway/test/openai-responses-recall-aware-stream.test.ts:5489-5514 covers response.created and response.in_progress snapshots whose embedded response has status: "failed" and expects the client stream to contain response.failed.preserves failed companion-tool status in rebuilt terminals at packages/gateway/test/openai-responses-recall-aware-stream.test.ts:5516-5585 combines a recall with companion tool read; its terminal item fc_failed_companion / call_failed_companion must remain status:"failed" in rebuilt output, must not become status:"completed", and must not produce PUBLIC_RECALL_ERROR.rejects reference identities reused by later output items begins at packages/gateway/test/openai-responses-recall-aware-stream.test.ts:5587; it reuses call_shared_reference first as an item_reference and later as a recall call ID, validating output-item identity uniqueness.packages/gateway/test/openai-responses-recall-aware-stream.test.ts: line 300 sanitizes a principal provider failure received as %s with status %s, and line 5490 rejects contradictory status in %s snapshots.accepts a partial Codex terminal output after streamed items at packages/gateway/test/openai-responses-recall-aware-stream.test.ts:1322-1358 streams two messages (msg_omitted text omitted from terminal, and msg_answer text answer) while the terminal snapshot contains only msg_answer; expected behavior is preserving answer, emitting exactly one response.completed, and emitting no response.failed.hides recall when the principal response.done status is %s at packages/gateway/test/openai-responses-recall-aware-stream.test.ts:1360-1390 covers statuses failed and cancelled; expected behavior is exactly one response.failed, no leaked "name":"recall" or call_0, no recall execution, no follow-up, and no recall identifiers in completedResponse.suppresses a recall function_call and emits a marker (mixed tools) at packages/gateway/test/openai-responses-recall-aware-stream.test.ts:1392-1471 suppresses recall query what is lore, retains companion read call fc_1 / call_1 with {"file":"x"}, inserts buildAnchor("what is lore") before the read item, excludes Searching, rebuilds response.completed, orders terminal IDs as ["msg_resp_mixed_0", "fc_1"], preserves the read item in rawOutputItems, and excludes what is lore, fc_0, and call_0 from completedResponse.binds parallel recalls to their own call IDs and fails before an invalid follow-up begins at packages/gateway/test/openai-responses-recall-aware-stream.test.ts:1473; it tracks RecallContinuationFailureCategory, streams two recalls with identical query same at output indexes 0 and 1, records each as ${outputIndex}:${toolUseId}, and forbids runFollowUp for multiple recalls.v24.16.0 with tsx@4.22.4 failed with MODULE_NOT_FOUND: /home/byk/Code/opencode-lore-provider-error/node_modules/.pnpm/node_modules/@loreai/core/dist/node/index.js could not be resolved; the reported package path was /home/byk/Code/opencode-lore-provider-error/node_modules/.pnpm/node_modules/@loreai/core.packages/gateway/test/openai-responses-recall-aware-stream.test.ts:1-11 documents the regression: buffered accumulateResponsesSSEStream withheld all client bytes until a slow, reasoning-heavy upstream completed, triggering opencode’s 10-second ProviderHeaderTimeoutError; streamResponsesRecallAware instead forwards events live, intercepts a recall function call, emits a marker, runs a follow-up, and rebuilds terminal response.completed.packages/gateway/test/openai-responses-recall-aware-stream.test.ts imports log from @loreai/core, streamResponsesRecallAware from ../src/pipeline, continuation hooks/types from ../src/recall-continuation-failure, principal transport hooks/types from ../src/principal-transport-failure, and GatewayResponse from ../src/translate/types; afterEach clears both hooks and registers silentLogSink.packages/gateway/test/openai-responses-recall-aware-stream.test.ts include: sseEvent(event, data) to add a matching type and format SSE; streamFrom(events) to return a status-200 text/event-stream response; drain(resp) to read full SSE text; created(id, model); recallCall(outputIndex, args, itemId, callId) producing added/arguments-done/item-done events with final status: "completed"; sparseVisibleFunctionCall(...) rebuilding a read call from sparse fields and argument deltas; completed(id, usage?); incomplete(id); doneIncomplete(id); doneWithStatus(id, status); and textItem(outputIndex, text, itemId).packages/gateway/test/openai-responses-recall-aware-stream.test.ts define PUBLIC_RECALL_ERROR = "Lore could not continue the response after recall" and PUBLIC_GATEWAY_ERROR = "Gateway request failed"; nonMonotonicProviderFailures combines 5 aliases/events—response.failed, failed response.done, cancelled response.done, error, and response.error—with source sequences [10, 9], yielding 10 cases.tsconfig.base.json contains target: "ESNext", module: "ESNext", moduleResolution: "bundler", allowImportingTsExtensions: true, strict: true, esModuleInterop: true, skipLibCheck: true, declaration: true, and types: [].vitest.config.ts resolves @loreai/core to packages/core/src and @loreai/gateway to packages/gateway/src using top-level resolve.alias; comments state placing aliases under test.resolve.alias silently resolved stale dist output and masked real failures.vitest.config.ts test inclusion is limited to packages/core/test/**/*.test.ts, packages/core/eval/**/*.test.ts, packages/gateway/test/**/*.test.ts, packages/opencode/test/**/*.test.ts, and packages/pi/test/**/*.test.ts; setup uses ./packages/core/test/setup.ts, environment node, pool forks, testTimeout: 300_000, hookTimeout: 300_000, and environment variables NODE_ENV="test", SENTRY_ENABLED="0", LORE_DEBUG="0".v8 and reporters ["text", "json", "html", "lcov"]; exclusions include **/*.test.ts, **/test/setup.ts, **/test/helpers/**, **/script/**, **/dist/**, packages/website/**, packages/pi/**, **/eval/**, **/*.eval.ts, *.config.ts, and scripts/**.base-pipeline-numbered.txt, base-test-numbered.txt, llm-v5-current.diff, local-v5-current.diff, lore-ui-search-response, oxfmt-opencode.json, projection-parent-pipeline.ts, publisher-v5-current.diff, restore-projector-v5-labeled.patch, restore-projector-v5.patch, restore-runner-v5-labeled.patch, restore-runner-v5.patch, session-recovery-final-v4, session-recovery-final-v4-diag, session-recovery-final-v4.index, session-recovery-final-v4.patch, session-recovery-final-v5, session-recovery-final-v5.index, session-recovery-final-v5.patch, session-recovery-final-v6, session-recovery-final-v6.patch, session-recovery-final-v7, session-recovery-final-v7.patch, session-recovery-final-v8, session-recovery-final-v8.patch, session-recovery-recheck.f3rLnS, session-recovery-review.1VQHG0, session-recovery-review-c2c8afb0, session-recovery-review-v5-49183f9e, session-recovery-review-v5-49183f9e.index, session-recovery-v5-review.r03hHL, session-recovery-v7-check, session-recovery-v7-processes.txt, session-recovery-v8-processes.txt, and session-recovery-v8-smoke.mjs./tmp/opencode/provider-log-failure.test.ts.v4.1.8 run from /home/byk/Code/opencode-lore-provider-error against /tmp/opencode/provider-log-failure.test.ts found no test files and exited with code 1; root cause was that the absolute /tmp test did not match any configured include glob, while standard exclusions included **/node_modules/** and **/.git/**./tmp/opencode/provider-log-vitest.config.ts to support running the standalone provider-log regression outside the repository’s normal include globs.