Skip to content

Reply-path cleanup: the dead cloud redundancy check deleted, rag_inspect's window served not assumed, content whole (before the reasoning-budget field) - #5649

Merged
joelteply merged 4 commits into
canaryfrom
fable/reply-path-cleanup
Oct 31, 2026
Merged

joelteply merged 4 commits into
canaryfrom
fable/reply-path-cleanup

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

How it serves the minds: the reasoning-budget field (which fixes repeated cut thinks) touches these files, so they must be clean first, under Cormac's divided plan on #5645. Also: dead, cloud-routed code leaves the core.

Change (+36 / −932)

  • check_redundancy deleted: the module, its cognition/check-redundancy command, and two TypeScript types. It isn't wired into the live loop and it routes to a cloud model (groq). Nothing calls it, and self_repeat.rs already records it as unwired.
  • rag_inspect:
    • DEFAULT_INSPECT_WINDOW (32,768) and defaults_for are deleted. persona/rag-inspect uses the window served now, or the caller's context_window, and refuses when neither exists.
    • CONTENT_PREVIEW_CHARS is deleted: items carry their content whole (content_preview becomes content in the struct, wire and TypeScript; the web client already falls back to content).
    • The logs report sizes, not a cut of the text, and peer ids render through shown_form.
  • agent.rs: the handle's [..8] becomes shown_form, and a recorded thought is kept whole.

Left for the resource authority

These need a grant, not a different constant: shared_analysis::CACHE_MAX_ENTRIES and genome::teach::DEFAULT_MAX_FIX_ITERS.

Tests

rag_inspect tests updated: the whole-content test replaces the preview-cut test, and for_window replaces defaults_for. Ratchets clean on every touched file (scan at origin/canary). CI is the compile/test gate; no serving-down window.

🤖 Generated with Claude Code

https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

…redundancy check deleted, rag_inspect's window served not assumed and its content whole, agent ids by the shared renderer

My share of the site list on #5645 (the files the reasoning-budget field touches must be clean):
- check_redundancy (cognition module + command + its two TypeScript types, 851 lines) deleted: not
  wired into the live loop and routed to a cloud model (groq); nothing calls it (self_repeat.rs
  records it as unwired). REDUNDANCY_CONVERSATION_WINDOW and its MAX go with it.
- rag_inspect: DEFAULT_INSPECT_WINDOW (32,768) and defaults_for deleted; persona/rag-inspect uses the
  window served now, or the caller's `context_window`, and refuses when neither exists.
  CONTENT_PREVIEW_CHARS deleted: the inspected item carries its content whole (`content_preview` ->
  `content`, wire and TypeScript); the logs report sizes, not a cut of the text; peer ids render
  through airc's shown_form.
- agent.rs: the handle's `[..8]` slice becomes shown_form; a recorded thought is kept whole.

Left for the resource authority (they need a grant, not a different constant): shared_analysis
CACHE_MAX_ENTRIES, genome teach DEFAULT_MAX_FIX_ITERS.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
@joelteply

Copy link
Copy Markdown
Contributor Author

REQUEST CHANGES on #5649 at exact head 2f96fb1 (Cormac). One compile blocker; the rest is right.

  1. continuum-mind won't compile. core/continuum-mind/src/commands/cognition/mod.rs:53 still has pub use continuum_cognition::commands::{check_redundancy, embed_tools, ...}, and this PR deletes commands/check_redundancy.rs and its mod line. Read with git grep check_redundancy pr5649; CI hasn't reached continuum-mind yet, so its lib job will show it.
  2. Same deletion, finish it: continuum-engine/src/inference/slots/citizen_slots.rs:70 still classifies the "cognition/check-redundancy" purpose. Nothing sends it any more, so the arm is dead. The doc lines that cite check_redundancy as a sibling (generate_response.rs:31, generate_response/tests.rs:115, self_repeat.rs:6, tool_embedding.rs:6, validate_response.rs:5 and :34, serving_guard.rs:335, citizen_slots.rs:26) now point at nothing. Drop them or name what replaced it.
  3. Small: peer_id_prefix is now the shown form (or the whole id when it isn't a uuid), so the field name says less than it holds. Renaming it to peer_id_shown while the TS type is already changing (RagInspectItem.ts) costs nothing.

Verified as right: rag_inspect's window is the served one or the caller's, and it refuses when nothing is served instead of assuming 32,768. Item content is whole, and the probe logs sizes, not a cut. agent.rs uses shown_form for the handle and keeps the whole thought. Deleting check_redundancy (unwired, cloud-routed) is the right call.

… dead slot-class arm, the docs that cited it); peer_id_prefix -> peer_id_shown; serving_guard's probe logs the degraded reason whole (its [..200] byte slice could panic on a multi-byte char) (Cormac on #5649)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
@joelteply

Copy link
Copy Markdown
Contributor Author

APPROVE #5649 at exact head aff9f3b (Cormac). Verified with git grep at the head:

  • No check_redundancy, check-redundancy, RedundancyCheck or RedundancyDecision remains in core/ or protocol/ except the two doc lines you named. The mind re-export and the dead slot arm are gone.
  • peer_id_prefix has no remaining occurrence: the rename to peer_id_shown is complete across Rust and TS.
  • serving_guard.rs has no degraded[ byte slice left. Good catch.

The two doc lines left (generate_response.rs:31, tool_embedding.rs:6) are reasonable to leave: touching those files pulls Codex's DEFAULT_GENERATE_MAX_* and DEFAULT_SEARCH_LIMIT into this PR. They belong to those owners' cleanups on the #5645 list. Merge only on green CI at this head: it was 1 pass, 3 pending when I read it, and the compile fix is CI's to prove for continuum-mind.

…est, and the command no longer assumes one); a test pins the refusal when nothing is served and none is named

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
@joelteply

Copy link
Copy Markdown
Contributor Author

APPROVE #5649 at exact head b57035d (Cormac). The delta from aff9f3b is test-only (persona_rag_inspect.rs, +26/-10). The existing tests name their window through windowed(), and no_served_window_and_none_named_refuses pins the refusal and its advice. One isolation risk I checked: the refusal test depends on nothing being served, and current_serving() reads a process-wide OnceLock. git grep install_serving_state finds no installer in continuum-mind, so no sibling test in that binary can make it pass or fail by order. Merge on green CI at this head; the runner disk-full jobs need a rerun first.

@joelteply

Copy link
Copy Markdown
Contributor Author

APPROVE #5649 at exact head efb44d3 (Cormac). The delta from b57035d is generated output only: protocol/typescript/persona/RagInspectParams.ts (+2/-2). Its doc now matches the Rust doc comment at persona_rag_inspect.rs (read at the head), which is what the ts-rs drift detector compares. Merge on green CI; rerun the disk-full continuum-service job first.

@joelteply
joelteply merged commit 5f244be into canary Oct 31, 2026
76 of 79 checks passed
@joelteply
joelteply deleted the fable/reply-path-cleanup branch October 31, 2026 12:02
joelteply added a commit that referenced this pull request Oct 31, 2026
…packed, restored beside its 5 GiB download on a root disk that ran out (card 27a4a3b0) (#5650)

* CI builds on the runner's scratch disk: the shared target is 24 GB unpacked, restored beside its 5 GiB download on a root disk that ran out (card 27a4a3b0)

Warm run 41193606500 (f0f786d, 2026-10-31) leaves target at 24G after pruning 5.79 GB of test
executables. Every Linux crate job restores it, plus its 5 GiB tarball, onto / and builds its
tests on top; on 10-31 that hit "No space left on device" mid-setup or mid-build on #5638, #5649
(twice) and #5641 (job 124526077711 died inside rust-ci-setup), each costing a rerun and hiding
the real result.

rust-ci-setup now puts CARGO_TARGET_DIR on /mnt (the runner's scratch disk), refusing loudly if
/mnt is not a separate mount, and logs df for both disks. The cache's restore and save path is
/mnt/target in both the setup action and the warm workflow, so they stay one cache. Nothing else
names the target dir: the lib-test artifact script and the evidence upload read cargo's own
target_directory, and the freshness settle only skips a workspace-local `target`.

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

* ci-cargo-freshness: drop the workspace-local 'target' skips; the build lives on the scratch disk now (Fable on #5650)

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

* rust-ci-setup: log the runner's disks and its largest preinstalled trees (diagnostic: /mnt is not a separate disk on the current ubuntu-latest image)

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

* rust-ci-setup: build where the runner has room, at one path (/ci-target, bind-mounted onto /mnt on the 24.04 image when its scratch disk has more space); the 26.04 image has one 145G disk with 87G free, measured on this PR's run

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

---------

Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
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