Skip to content

A dream lens writes its typed shape: the lesson is a JSON schema the engine holds the answer to, sized and thought from her measured need - #5811

Merged
joelteply merged 3 commits into
canaryfrom
2e6c4f03/dream-lens-shape
Nov 7, 2026
Merged

joelteply merged 3 commits into
canaryfrom
2e6c4f03/dream-lens-shape

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

Stage 7, dream bound 1 (card 2e6c4f03). Before: one historian pass asked n_predict 180,382 (Aris,
the M5), and each lens's shape was prose (one or two sentences, a required final SUPERSEDES:
line) read back by a tolerant line parser.

  • DistilledLesson (dream_consolidation/lesson.rs): sentences 1..=2 and supersedes, one type. Both
    the instruction she reads and the JSON schema the request carries (ResponseFormat::JsonSchema,
    new) are rendered from it. The engine holds the answer, never the think: the fork's template
    wraps a schema in its reasoning rule (llama.cpp#95/Build(deps-dev): Bump @types/node from 22.14.0 to 24.1.0 #96 probes). The SUPERSEDES line parser is
    deleted; out-of-range numbers are her slip, kept apart and never applied.
  • The distillation is sized and thought from her measured act need (working_set::need_of:
    act_room, think = her reasoning need raised by a recent cut). Unmeasured is a state: no think,
    the answer bounded by the shape alone (probe dream.distill.unmeasured). Per-lens measurement
    with an upward probe is the next slice.
  • An adapter that cannot enforce a schema refuses it typed (InferenceError::FormatUnenforceable):
    the in-process llama adapter (no schema-to-grammar path in our bindings) and Anthropic (no
    structured output). The heuristic fixture answers any schema with its minimal instance.
  • The lesson's supersedes instruction carries the Speak gate's consolidator phrase verbatim (framing_echo unchanged).

Co-Authored-By: Claude Opus 5.5 (1M context) [email protected]
Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE

…engine holds the answer to, sized and thought from her measured need

Stage 7, dream bound 1 (card 2e6c4f03). Before: one historian pass asked n_predict 180,382 (Aris,
the M5), and each lens's shape was prose (one or two sentences, a required final `SUPERSEDES:`
line) read back by a tolerant line parser.
- DistilledLesson (dream_consolidation/lesson.rs): sentences 1..=2 and supersedes, one type. Both
  the instruction she reads and the JSON schema the request carries (ResponseFormat::JsonSchema,
  new) are rendered from it. The engine holds the answer, never the think: the fork's template
  wraps a schema in its reasoning rule (llama.cpp#95/#96 probes). The SUPERSEDES line parser is
  deleted; out-of-range numbers are her slip, kept apart and never applied.
- The distillation is sized and thought from her measured act need (working_set::need_of:
  act_room, think = her reasoning need raised by a recent cut). Unmeasured is a state: no think,
  the answer bounded by the shape alone (probe dream.distill.unmeasured). Per-lens measurement
  with an upward probe is the next slice.
- An adapter that cannot enforce a schema refuses it typed (InferenceError::FormatUnenforceable):
  the in-process llama adapter (no schema-to-grammar path in our bindings) and Anthropic (no
  structured output). The heuristic fixture answers any schema with its minimal instance.
- The lesson's supersedes instruction carries the Speak gate's consolidator phrase verbatim (framing_echo unchanged).

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
…ded list is bounded by the beliefs it lists (Fable on #5811)

- Unmeasured is typed and defers: lens_terms returns DistillError::Unmeasured when no act of hers
  has a measured need, so the pass leaves its cluster for a later dream; never ThinkBudget(0) with
  no max_tokens for an unknown. max_tokens is now always her measured act room, which bounds every
  string the schema allows (the sentences themselves have no maxLength constant).
- DistilledLesson::format(listed): supersedes has maxItems = the beliefs the request actually
  lists (whole beliefs up to the budget) and uniqueItems, from the request's own data. And
  DistilledLesson::read maps numbers onto those listed beliefs only: before, a number past the
  listed ones could supersede a belief the model was never shown.
Tests: an_unmeasured_mind_defers_her_distillation_typed; the schema test asserts maxItems and
uniqueItems; the dream tests seed a measured need (tests::measured). academy dream_consolidation
19/19; ratchets 87/87 against canary fe91c2b.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
@github-actions github-actions Bot added size: XL and removed size: L labels Nov 7, 2026
…fixtures seed it (shared test_support::measured)

CI on #5811: continuum-core's reviewed_credit_replays_exact_authority_and_recovers_after_replacement
asserted the review boundary processed, but its persona had no measured act need, and #5811 now
correctly defers such a distillation, so the boundary stayed pending. The fixture is what was
missing, not the code: a resident's dream follows her acts. dream_consolidation::test_support
gains measured(persona) (seeds the working set as her first act would); the academy tests and this
core test use it, and the academy tests' private copy is gone. academy dream_consolidation 19/19;
continuum-core --tests type-checks clean (full core suite runs in CI).

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
@joelteply
joelteply merged commit 1145983 into canary Nov 7, 2026
44 checks passed
@joelteply
joelteply deleted the 2e6c4f03/dream-lens-shape branch November 7, 2026 07:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant