Repository navigation
Remove unused RAG continuation cursors and preserve legacy capture replay - #5296
Merged
Merged
Conversation
…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).
…a057 Co-Authored-By: Kimi <[email protected]>
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.