Dashboard › opencode-lore › Distillation
bce46f1f-bc99-4c54-ac9b-9ede5ef19104["lore_tm_v1_O0DCeX_lUJ1OJOP-2Zm19MrTa5hXmh2BQ8prfRqu_-o","lore_tm_v1_gWEwlcRIg5x04TxRBje1wSme9vnqP6gnqE80c3SHanU","lore_tm_v1_DDsr8GCdYkg-3AYl_ugfHP2b0PMFucBq2Bndy5JvWj0"]
Date: Sep 16, 2026
/home/byk/Code/opencode-lore-provider-error/packages/gateway/src/pipeline.ts near line 18530, “the follow-up's stream flag can never diverge from how the continuation” is handled.openai-codex (ChatGPT) mandates streaming for its /backend-api/codex/ endpoint in /home/byk/Code/opencode-lore-provider-error/packages/gateway/src/pipeline.ts near line 18533./home/byk/Code/opencode-lore-provider-error/packages/gateway/src/pipeline.ts near line 18868./home/byk/Code/opencode-lore-provider-error/packages/gateway/src/pipeline.ts near line 18705.x-lore-recall-invoked: true response header when recallDepth > 0, and finishes bufferedRecallDiagnostics as "completed" when response.ok, otherwise "failed", near lines 18725–18739 of /home/byk/Code/opencode-lore-provider-error/packages/gateway/src/pipeline.ts.markerResp.usage = cumulativeUsage, and carries continuationResp.codexRateLimits near lines 18651–18680 of /home/byk/Code/opencode-lore-provider-error/packages/gateway/src/pipeline.ts./home/byk/Code/opencode-lore-provider-error/packages/gateway/src/pipeline.ts near line 19121 uses requireCompletedTerminal: true./home/byk/Code/opencode-lore-provider-error/packages/gateway/test found at least 100 matches and was truncated./home/byk/Code/opencode-lore-provider-error/packages/gateway/test/context-health-note.test.ts tests that the recall-tool description carries the folded lossy-detail nudge and leaks no per-layer adjective wording./home/byk/Code/opencode-lore-provider-error/packages/gateway/test/cli-auth-contract.test.ts verifies: login is in STRICLI_ROUTES, not in LEGACY_ROUTES, declares --email and --no-browser, forwards them as values.email and truthy values['no-browser']; logout is in STRICLI_ROUTES, not in LEGACY_ROUTES, forwards to commandLogout, and surfaces stdout./home/byk/Code/opencode-lore-provider-error/packages/gateway/test/cli-admin-contract.test.ts verifies: admin is in STRICLI_ROUTES, not LEGACY_ROUTES; declares the 3-positional tuple (sub, target, tier); forwards 0, 1, 2, or 3 positionals to the legacy handler; propagates the legacy exit code; rejects extra positionals with exit code 20 (UsageError) rather than 252; and produces a structured envelope with admin --json./home/byk/Code/opencode-lore-provider-error/packages/gateway/test/claude-usage-provisional.test.ts tests preservation of quota during real Claude session-header migration across stream and status variants./home/byk/Code/opencode-lore-provider-error/packages/gateway/test/claude-usage-headers.test.ts tests preservation of subscription windows through a real conversation for streaming and non-streaming requests, quota exhaustion/reset headers on HTTP 429, and quota headers on buffered side-channel requests./home/byk/Code/opencode-lore-provider-error/packages/gateway/test/claude-usage-headers.test.ts:153./home/byk/Code/opencode-lore-provider-error/packages/gateway/test/context-capability-note.test.ts verifies that the capability note has no per-layer adjective or compression-layer name, embeds the session token for issue #1502 shared-secret handling, prenotifies the agent about Lore knowledge-update blocks, is stable for the same sessionID, differs across sessions, and is injected into an otherwise-empty system[1] on turn 1./home/byk/Code/opencode-lore-provider-error/packages/gateway/test/cch.test.ts verifies billing-header signing behavior including replacing cch=00000 with a deterministic zero-padded 5-character hex hash, differing hashes for different bodies, no-op behavior without a billing header, signing when the placeholder sorts first, and not rewriting cch=00000 inside system/LTM content.cch.test.ts normalization tests strip the model value and max_tokens whether followed by a trailing comma or appearing as the final key, strip only the first model occurrence, strip model and max_tokens together, and remain a no-op when neither field exists./home/byk/Code/opencode-lore-provider-error/packages/gateway/test/cch.test.ts:214.cch.test.ts version-suffix tests require a deterministic 3-character hexadecimal string, zero-padding for short messages, different suffixes for different messages, and use of characters at indices 4, 7, and 20.cch.test.ts billing-session tests verify detection in a real Claude Code system prompt and across differing version/hash values; false for no header, empty system prompt, or a header not at the start; preservation of a previously captured flag across a non-matching turn; null for an unknown or undefined sessionID; a captured block containing cch=00000; pinning to WORKER_VERSION; and inclusion of a 3-character hexadecimal suffix derived from the user message.cch.test.ts session-isolation tests verify different user messages produce different suffixes, billing state does not leak from session A to session B, both sessions receive billing blocks when both have headers, clearing one session’s billing flag does not affect others, and the billing flag can be removed for a specified session./home/byk/Code/opencode-lore-provider-error/packages/gateway/test/cch.test.ts:427.cch.test.ts validation tests verify null when a body has no cch, true for a body signed with the known seed, false for an unknown seed, validity across capture → build → sign, and that a signed body validates against the project seed.cch.test.ts re-signing tests verify unchanged output without a billing header; replacement of client cch with a worker-signed value; replacement of cc_version with worker version plus computed suffix; suffix dependence on the first user message; validity via validateSeed; equivalence to signing from scratch; graceful handling of empty or fewer-than-21-character first user messages; and no rewriting of content-only cch=XXXXX; tokens.cch.test.ts regressions verify ignoring content cc_entrypoint=…; cch=…; or cc_version=…; fragments that sort before the true header, preserving a non-default cc_entrypoint, letting the first-system-block real header win over a later full-sentinel documentation block, re-signing headers lacking a 3-hex version suffix, accepting uppercase version suffix/CCH input, and not warning when the billing header is the first occurrence in signBody./home/byk/Code/opencode-lore-provider-error/packages/gateway/test/openai-responses-recall-aware-stream.test.ts involving response.done, provider failures, terminal validation, usage, cancellation, and backpressure.openai-responses-recall-aware-stream.test.ts covers failed and cancelled response.done events; sanitizes principal provider failures; excludes failed output from completion state while using created metadata; sanitizes recall-bearing failures before later lifecycle checks; keeps created metadata authoritative through hidden recall and provider failure; and projects trusted in-progress metadata before provider failure.response.done without executing recall, reject contradictory snapshot statuses, and map response.done with incomplete status to response.incomplete.resp_failure_backpressure, resp_followup_backpressure, and resp_principal_backpressure, all using model gpt-5.6-terra.response.done has a failure status, stop reading upstream while the client applies backpressure, treat failed/cancelled response.done statuses as failed continuations, and ensure the private error text "private provider failure" is absent from client output while logs use "openai-responses provider failure".