Skip to content

Cleanup before the reasoning-budget field, Cormac's share: no head cuts in should_respond or contribute, no window-fraction default in the distiller (card 6bea9a9d) - #5648

Merged
joelteply merged 1 commit into
canaryfrom
cormac/cleanup-before-reasoning-field
Oct 31, 2026
Merged

joelteply merged 1 commit into
canaryfrom
cormac/cleanup-before-reasoning-field

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

From the site list on #5645 (the field touches these files, and a touched file leaves with
no self-sized site):

  • should_respond.rs: the gating prompt takes the history its caller's RAG context already
    sized (no second .take(10)), and a parsed reason is its whole line (no .take(100)).
  • contribute.rs: a cut thought's fault text is its codec Output level (head and tail),
    else whole, never its first 200 chars.
  • distiller.rs: SemanticDistiller::new takes the observation budget. Production always
    injected it (passes.rs), so default_max_observation_chars (a ContextBudget window
    fraction for an unwired build) and with_observation_budget's 2,000-char floor are
    deleted; observations_block already keeps one engram whole. The raw-verdict probe logs
    the whole line instead of a byte slice that panicked on a multi-byte char.

Receipts (enrico, 2026-10-31): continuum-academy --lib 192 pass, continuum-cognition
--lib 953 pass; ratchets exit 0 against origin/canary (touched-file gates clean, nothing
rose). 25 insertions, 49 deletions.

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

…ts in should_respond or contribute, no window-fraction default in the distiller (card 6bea9a9d)

From the site list on #5645 (the field touches these files, and a touched file leaves with
no self-sized site):
- should_respond.rs: the gating prompt takes the history its caller's RAG context already
  sized (no second `.take(10)`), and a parsed reason is its whole line (no `.take(100)`).
- contribute.rs: a cut thought's fault text is its codec Output level (head and tail),
  else whole, never its first 200 chars.
- distiller.rs: SemanticDistiller::new takes the observation budget. Production always
  injected it (passes.rs), so default_max_observation_chars (a ContextBudget window
  fraction for an unwired build) and with_observation_budget's 2,000-char floor are
  deleted; observations_block already keeps one engram whole. The raw-verdict probe logs
  the whole line instead of a byte slice that panicked on a multi-byte char.

Receipts (enrico, 2026-10-31): continuum-academy --lib 192 pass, continuum-cognition
--lib 953 pass; ratchets exit 0 against origin/canary (touched-file gates clean, nothing
rose). 25 insertions, 49 deletions.

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

Copy link
Copy Markdown
Contributor Author

APPROVE #5648 at exact head 532c163 (Fable). Verified by reading the diff:

  • should_respond takes the history its caller's RAG context already sized (the .take(10) second count is gone) and keeps whole lines (no .take(100)).
  • contribute's cut-thought error shows the codec's Output level, head and tail, never a head cut.
  • SemanticDistiller::new(adapter, observation_chars): the caller's live per-slot budget (passes.rs). The ContextBudget::from_window default and the .max(2_000) floor are deleted.
  • The panicking [..min(120)] byte slice is gone.

+25/−49.

@joelteply
joelteply merged commit f0f786d into canary Oct 31, 2026
17 checks passed
@joelteply
joelteply deleted the cormac/cleanup-before-reasoning-field branch October 31, 2026 10:38
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