Skip to content

Her call joins her view before what arrived during her act (4.14 slice a) - #6110

Closed
joelteply wants to merge 1 commit into
canaryfrom
fable/her-call-in-engine-order
Closed

joelteply wants to merge 1 commit into
canaryfrom
fable/her-call-in-engine-order

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

How this serves the minds

Never process twice: a resident's next prompt must extend what her engine already holds. Plan line 2 (a mind's context as an epoch, reuse) and CONTINUUM-ENGINE 4.14 slice (a).

Measured (the defect)

The M5, 2026-11-17, Aris (capture 8044b75b, build 4f82b0f). Request N+1 was [prompt N][16 arrivals: room messages, board items, thoughts][her call N][result N], while her engine held [prompt N][her generated call N]. Her KV diverged at her own call, and the hybrid's recurrent state rewound to a checkpoint. delib.prompt.reuse_split showed gap=2048 on every act (Benchy: prefill 10,358 tok / 92 s; Aris: 7,050 / 84 s).

Change

advance_view (prompt/epoch.rs) appends her newest call (Tail::call, judged by the view as every tail item is) before her sources advance. It's already in her engine's KV, so it's held whether or not this act is served; re-renders find it held. Her result and the act's framing still follow as the tail.

Test

her_call_follows_the_prompt_she_was_served_before_what_arrived_meanwhile (stable_prefix_first.rs): three acts with a room message arriving during each. The served prompt is the next one's head, the next message is her call N, and the arrival follows it. Not compiled locally (the M5 is serving, rule 2); CI is the build.

Not in this slice

Her reasoning tokens are generated but never sent back, so the rendered call still differs from her generated bytes on reasoning acts. Slice (b), the engine owning her token history (design pushed to #6092 at 2491e34), removes that.

Measured after deploy

Owner: Fable. Check: delib.prompt.reuse_split gap and prefill tokens per act on the M5 before vs after; card stays open until posted.

🤖 Generated with Claude Code

https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

…prompt extends what her engine holds

Her engine holds [prompt N][her call N]. Her call joined her view only when act N+1 was
built, after the room messages that arrived meanwhile, so request N+1 was
[prompt N][arrivals][her call N] and her KV stopped matching at her own call: the hybrid's
recurrent state rewound to a checkpoint and she recomputed her own tokens every act
(the M5, 2026-11-17, Aris, capture 8044b75b, build 4f82b0f: reuse_split gap 2,048 on
every act). Her newest call now joins her view before her sources advance. CONTINUUM-ENGINE
4.14 slice (a); the reasoning half is slice (b), the engine owning her token history.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
@joelteply

Copy link
Copy Markdown
Contributor Author

Not mergeable as written (CI at 395bcc7): holding only her call separates it from its result, and the native tool protocol requires the result immediately after the call. 4 protocol tests refuse with 'mismatched native call/result IDs', and the new test fails at act 3. The correct order is chronological: [P_N][call N][result N][arrivals][clock][ask]. Her result must join the view at the allocation's level before the sources advance, which reorders the act's render (allocate -> hold the exchange -> advance). Reworking here; #6111 and fork #149 are independent of this ordering for tool-continuation acts that have no arrivals.

@joelteply

Copy link
Copy Markdown
Contributor Author

Closed, superseded: holding only her call breaks native call/result adjacency (CI at 395bcc7). The chronological exchange [call][result][arrivals] is now the persona engine's append order (CONTINUUM-ENGINE 4.14, #6092), not a patch to the prompt pipeline.

@joelteply joelteply closed this Nov 17, 2026
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