Dashboard › opencode-lore › Distillation
229af8dd-fb80-4d2a-8ce4-cd10fe3d8af6["lore_tm_v1_X6xEY5lksqFb_WGlqL6PvzVpBOSODhFW9ounZx68sMI","lore_tm_v1_eK2IKdunMLW49zz9ZbkiqKcNGyQ3MsoqoquhyVmwbG0","lore_tm_v1_almwLOuRp8147tWTXgZHLV0jkCR1hvrT8RbsEi_qPvA","lore_tm_v1_UkQ4iLuNkl6xC4B6XyT8Mg5vwNAGPVhfnJmAcjJBfRM","lore_tm_v1_ShfChhNxjH5QwRqH9Uj8KUpq-K7EU-vJCY47phDQTKM","lore_tm_v1_Z2pb8hTMJjhBfaXUpoF6tt0-Dupm-US2MItDx9pes8U","lore_tm_v1_pvqPij5bQOOp_u9RF1CtqrSa9p7XbVnEjk6h3aijaB8","lore_tm_v1_oBoaz0dow2oK9L1HuGZXrJmauzhORorTgG4texhii4M","lore_tm_v1_DqY8ojISP-M0fQcfek0-T2GX86SeHXpuwd_NKxjb9EA","lore_tm_v1_WuEgQz-sGyDfh1N5l49CcE0mRMydAkYA_n1smqIjx_g"]
Date: Sep 16, 2026
runActivePipelineRequest() in /home/byk/Code/opencode-lore-responses-accumulation/packages/gateway/src/pipeline.ts rejects admission with HTTP 503 and "Gateway is busy" when detached + active + pending session claims reach maxDetachedPipelineRequests, active + streamingPostResponsePending reach maxActivePipelineRequests, or per-admission-key active + pending reach MAX_ACTIVE_PIPELINE_REQUESTS_PER_ADMISSION_KEY.runActivePipelineRequest() combines callerSignal with an internal lifecycle signal via AbortSignal.any(), tracks pending operations in a Set<Promise<void>>, and does not remove the request from activePipelineRequests/detachedPipelineRequests or pump pending session claims until all tracked operations settle.runActivePipelineRequest() distinguishes response-body cancellation from ordinary settlement: after a response is returned, caller abort or wrapped-body cancellation calls markResponseCancelled() once and then settleResponse(); settleResponse() invokes onResponseBodySettled() once and starts asynchronous cleanup.claimPipelineSession() removes the active request while queuing a pending session claim, rejects with PipelineCapacityError("session request queue full") on duplicate/full claims, and removes/rejects an aborted claim before pumping the queue./home/byk/Code/opencode-lore-responses-accumulation/packages/gateway/src/recall-diagnostics.ts sets MAX_RECALL_DIAGNOSTIC_ROUNDS = 64; createRecallDiagnostics(enabled = true) keeps request-local SHA-256 sets for inputs, results, input/result pairs, and delivered coverage.[scope ?? "all", id || ids || null, id/id list present ? null : query.trim()]; therefore ID lookups ignore query while scope remains part of the comparison.identity, revision, kind ?? "detail", offset, and length.recall-round logs containing round, "detail"/"search" kind, repetition booleans, coverageProgress, and per-result bytes. finish() accepts "completed", "failed", or "aborted" and emits one recall-chain log with rounds, detail calls, repeated counts, empty bodies, total result bytes, coverage-item count, and elapsed time clamped to 0..300_000 ms before clearing all sets.tklkqxytmpkzzryqlolnpvxouropxz β fix(responses): complete lifecycle reconciliation; kvpmnlwnznqxomuzywlvmotqtplywzvm β fix(responses): bound sparse lifecycle coordinates; lplymwvllmznozzrzoroxvnnuymnusxs β fix(responses): preserve limit-crossing state./home/byk/Code/opencode-lore-responses-accumulation with Vitest v4.1.8 passed: 1 test file passed, 48 tests passed, 207 skipped, 255 total; duration 7.76s with transform 3.85s, setup 521ms, import 6.11s, tests 923ms, and environment 0ms./home/byk/Code/opencode-lore-responses-accumulation/packages/gateway/test/openai-responses-recall-aware-stream.test.ts parameterizes rejection of principal reasoning introduced only by output_item.done or the terminal response, for both summary/summary_text and content/reasoning_text; validation occurs before recall execution, private terminal reasoning is not exposed, and [recallCalls, followUps] remains [0, 0].PUBLIC_RECALL_ERROR, excludes "private gap" and "private contradiction", and records [recallCalls, followUps] as [1, 1].response.reasoning_summary_text.delta emitted after the corresponding text-completion event; the tested late delta is "evil" after completed text "safe", and the client output must contain "response.failed".63_000 visible principal items and verifies computation without spreading 126000 retained item keys. It caps constructed SSE frames at 100_000, allows maxRetainedStateBytes: 64 * 1024 * 1024, and temporarily spies on Map.prototype[Symbol.iterator] only to isolate an unrelated quadratic duplicate-identity scan while retaining/validating all 63,000 items./home/byk/Code/opencode-lore-responses-accumulation/packages/gateway/test/openai-responses-recall-aware-stream.test.ts cover: principal event accumulation when crossing the retained-state limit; retention of principal state at the crossing; bounding sparse principal coordinates before mutation; continuation event accumulation at the crossing; iterative reconstruction of a resource-limited continuation with 125500 content blocks; and one-time accounting of terminal Codex continuation usage when candidate flush exceeds the transaction limit.data: or event: field.βlooksLikeSSE() in /home/byk/Code/opencode-lore-responses-accumulation/packages/gateway/src/translate/types.ts returns true when contentType includes "text/event-stream" or, after removing a leading BOM and trimming start whitespace, the body starts with a legal SSE data:, event:, id:, retry:, or comment : field. This handles providers such as ChatGPT/Copilot/Codex and DeepSeek returning SSE for non-streaming requests without the SSE content type, avoiding JSON.parse failures such as Unexpected token 'e', "event: res"... (LOREAI-GATEWAY-38 / -1P).GatewayResponse in /home/byk/Code/opencode-lore-responses-accumulation/packages/gateway/src/translate/types.ts contains required id, model, content, and stopReason; optional rawOutputItems, codexRateLimits, and usage. usage?: GatewayUsage remains optional because providers such as vLLM and partial responses may omit usage at runtime.