docs: the governing principle — every LLM request is reconstructable from the session log
The reconstructability RFC is the principle's home: model-visible ⟺ logged in both forms, the mechanism (boundary derivation + header fold), the enforcement (write-time round-trip guard, the dev invariant), the corollaries ranked (prefix-cache stability first), the MiniCode lineage with the provenance arrow inverted, and the alternatives it beat — including the stateful transmission client whose three-design archaeology lives in PR #162. Placements per the one-home-per-fact taxonomy: a standing-order line in root AGENTS.md (with displacement trims to stay inside the 1,575-word ceiling), the principle statement in architecture.md § Session Log and its Turn Flow lines (condensed to the ratcheted 1,630 ceiling), the request-envelope section in core-data-structures/core.md with the LlmCallConfig paste, both review-requested FIXMEs (FIXME(call-config-shape) beside the type, FIXME(catalog-verbs) at the catalog's drift-gate note), cookbook rows redirected off agent/request (tool filtering → system-prompt/assemble, plan-mode prompt → sections/ inject()), and the llm/stream JSDoc stating the frozen-request contract. RFC index and all generated catalogs regenerated.
This commit is contained in:
@@ -189,7 +189,7 @@ Source: [`packages/fs/fs/src/index.ts:109`](../../packages/fs/fs/src/index.ts)
|
||||
|
||||
### `llm/stream` — waterfall
|
||||
|
||||
Waterfall around every streaming model call (retry, caching, routing). Bound to the LlmService; call `next()` to reach the resolved adapter's stream, or yield your own chunks to short-circuit.
|
||||
Waterfall around every streaming model call (retry, replay, routing). Bound to the LlmService; call `next()` to reach the resolved adapter's stream, or yield your own chunks to short-circuit.
|
||||
|
||||
```ts cordis-catalog
|
||||
'llm/stream'(this: LlmService, options: GenerateOptions, next: () => AsyncIterable<StreamChunk>): AsyncIterable<StreamChunk>
|
||||
@@ -197,7 +197,7 @@ Waterfall around every streaming model call (retry, caching, routing). Bound to
|
||||
|
||||
Types: [GenerateOptions](../core-data-structures/core.md) · [StreamChunk](../core-data-structures/llm-streaming.md)
|
||||
|
||||
Source: [`packages/llm/llm/src/index.ts:35`](../../packages/llm/llm/src/index.ts)
|
||||
Source: [`packages/llm/llm/src/index.ts:39`](../../packages/llm/llm/src/index.ts)
|
||||
|
||||
## `session/*`
|
||||
|
||||
|
||||
@@ -124,7 +124,7 @@ stream(options: GenerateOptions): AsyncIterable<StreamChunk>
|
||||
|
||||
Types: [GenerateOptions](../core-data-structures/core.md) · [StreamChunk](../core-data-structures/llm-streaming.md)
|
||||
|
||||
Source: [`packages/llm/llm/src/index.ts:80`](../../packages/llm/llm/src/index.ts)
|
||||
Source: [`packages/llm/llm/src/index.ts:84`](../../packages/llm/llm/src/index.ts)
|
||||
|
||||
## `ctx.sessionPersistence` — `SessionPersistence` (abstract seam)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user