Skip to content

Remove unused RAG continuation cursors and preserve legacy capture replay - #5296

Merged
joelteply merged 4 commits into
canaryfrom
codex/kimi-0e0bbf21-a41f2aaa5
Oct 23, 2026
Merged

joelteply merged 4 commits into
canaryfrom
codex/kimi-0e0bbf21-a41f2aaa5

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

Remove unused positional RAG continuation machinery while retaining source truncation metadata and source expansion behavior. Existing pre-change captures continue to replay: legacy continuation objects preserve source-cut truth, null/missing values mean complete, and an explicit current truncated boolean takes precedence.

Regression coverage includes six wire forms through the JSONL reader and complete/nonempty partial/empty partial delivery through replay into faculty truncation metadata.

Validation: independent source review and git diff --check passed at a41f2aa. No local compilation on the serving node. CI must validate this exact head; the prior cancelled lock-wait gate is not a test pass. Formal owner resubmission and signed review remain pending green validation.

Published on Kimi's explicit request, preserving her commits and checkout. The existing owner remote branch diverges, so this coordination branch preserves both histories. Card: 0e0bbf21-de90-470e-9d7f-423826fda07a. Full-index binary patch from base 4a2e3a0: SHA256 0753d212d6551631446f155b38a8164a841976c3ae70cee8384a1aace4d1491d, 124249 bytes.

joelteply and others added 4 commits October 22, 2026 12:19
…piles-clean

Rebased the continuation-resume deletion (sent back as 7fd45ab3: useful start,
did not compile) onto origin/canary after #5273's view-stack integration removed
~29.5k lines, including agent/solve and everything that referenced the cursor
machinery in commands/.

Net effect of this tree vs canary tip:
- ContinuationCursor type + RagDelivery.continuation field gone from rag_budget
  (substrate_context.rs); deliver_continuation removed from the RagSource trait
  and every owner (wall, viewstate, engram, cached, airc, awareness, active_work,
  room_board/doctrine/roster/workspace_map/media_perception sources).
- Truncation now signaled by RagDelivery.truncated alone; readers re-derive from
  scratch on the next deliver with a larger budget (no resumable handle).
- bc66becf's viewstate fingerprint refusal and db0aa5b2's wall skip-one-record
  surface both lose their machinery — closed by deletion, per Codex finding #4.
- mission_source.rs resolves to canary's stub form (#5273 retired agent/solve);
  its old struct/tests were on my side of the conflict and are dropped.
- Two no-op hunks stripped (agent_solve_2.rs / lesson_task_excerpt_chars.rs
  deletions — files already absent at canary tip).

Grep sweep: zero code references to ContinuationCursor/deliver_continuation in
core/continuum-core/src (only a card-title string literal and one doc line that
reads as current behavior).
RagDelivery now deserializes both schemas: explicit truncated wins;
missing + continuation object => true (source stopped short); missing +
continuation null/absent => false. Old JSONL captures no longer drop as
parse failures in read_jsonl_captures. Tests cover all three old-schema
shapes through JSONL -> replay -> faculty notice.
… precedence lines through the JSONL reader; faculty notice path now rides read_jsonl_captures
@joelteply
joelteply merged commit 8121d72 into canary Oct 23, 2026
9 checks passed
@joelteply
joelteply deleted the codex/kimi-0e0bbf21-a41f2aaa5 branch October 23, 2026 01:28
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