Repository navigation
Delete the warm pass that truncated her generated tokens out of her KV during every tool call - #6111
Merged
Merged
Conversation
…t truncated her generated tokens is deleted Her request names itself (request_id) and the request whose response her engine holds as her newest (continues). Our fork (CambrianTech/llama.cpp#149) then serves it from her slot's tokens for that response (her reasoning and her call as she generated them) plus only what is new, instead of re-rendering her response without its reasoning and rewinding to a checkpoint to recompute it (the M5, 2026-11-17: a 2,048-token gap on every act). Inert until the pin includes #149: an engine that does not read the fields ignores them. The warm pass during her tool (prefill_during_tool) re-sent the prompt she was served, which truncated her generated tokens out of her KV; it is deleted. Her slot keeps her tokens; a slot another mind took is paged in by her real request, and becomes the 4.14 persona bind. CONTINUUM-ENGINE 4.14 slice (c). -271 +74 lines. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
…the token-id append (4.14), and 21 touched literals tripped touched-file ratchets Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
…on are the only requests on her slot Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
… object type (contract_shape: no .clone() in a call argument) Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
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.
How this serves the minds
Never process twice.
prefill_during_toolre-sent the prompt she was served while her tool ran, so the engine truncated her generated tokens (reasoning and call) out of her KV, and her next request recomputed them. Deleting it keeps her tokens in her slot. A slot another mind took is paged in by her real request; the 4.14 persona bind replaces that next.Change
Deleted
prefill_during_tool.rs(193 lines) and its test, its faculty field, and its two call sites incontribute.rs. No replacement path.The
continuesrequest field is out of this PR: the continuation becomes a token-id append on the persona seam (CONTINUUM-ENGINE 4.14, #6092; fork #147llama-persona-tokens).Measured after deploy
Owner: Fable. On the M5:
delib.prompt.reuse_splitgap and prefill tokens per tool-continuation act, before vs after.delib.prefill.during_tool*probes disappear.🤖 Generated with Claude Code
https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo