You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maka.apache.org by "Astro-Han (via GitHub)" <gi...@apache.org> on 2026/08/31 13:59:43 UTC
Re: [PR] feat(transcript): add semantic position snapshots and Runtime Host paging [maka]
Astro-Han commented on PR #4295:
URL: https://github.com/apache/maka/pull/4295#issuecomment-5479443985
Thanks for putting so much work into this. Please pause here before spending more time on PR3 or PR4. I need to correct the direction first.
#4123 describes a real problem: the durable transcript is complete, but Desktop only exposes the current resident range to the Renderer. When the user jumps from the live tail to an old Turn, the range is replaced and the intermediate Turns lose their logical positions. They are still in Storage, but the conversation can look discontinuous.
I wrote #4123 before #4206 landed. At that time, the Renderer had its own Turn virtualizer, height index, spacers, scroll compensation, and observers. #4206 later removed those mechanisms because they created a second layout and scroll state machine. It moved the active transcript bound into Runtime Host, kept the Renderer projection small and stable, and left the existing chat scroll logic as the single scroll authority.
I should have updated #4123 after that change, but I didn’t. The issue still described the old virtualizer architecture, so it encouraged you to build the backend for a design that no longer exists on `main`. That is my mistake, not yours.
The current PR builds a much stronger system than the remaining product problem requires. It adds materialized position snapshots, two retained generations, durable leases, resumable legacy scanning, a second body paging protocol, and several new recovery and cursor state machines. Those pieces are carefully implemented, but there is still no Desktop consumer in this PR, so the user-visible problem remains unchanged.
Some of these guarantees also work against the performance goal. A new transcript watermark can require rebuilding the complete position snapshot, and every normal transcript append now synchronously maintains the new semantic index even though Desktop does not consume it yet. I don’t think it is responsible to ask you to keep polishing this design before the real Desktop composition proves that these mechanisms are necessary.
I’m going to revise #4123 around the architecture that exists after #4206. The smaller direction I want to validate is:
- Keep Runtime Host’s existing bounded transcript range and the current single scroll authority.
- Add one lightweight, incrementally maintained logical position index containing only the identity and ordering needed for layout and navigation.
- Page that index with a watermark or revision and a simple keyset cursor. A stale index can be re-anchored instead of retaining old materialized generations.
- Continue using the existing `session.transcript.page` path for message bodies rather than introducing another body window, fragment, cache, and cursor protocol.
- Start with one real Desktop owner path and an end-to-end regression covering old, intermediate, and live-tail navigation. That consumer should determine which backend guarantees are actually needed.
- Defer shared guest virtualization, bodyless durable positions, exact old-snapshot survival, and byte-level resumable scanning until a concrete product path requires them.
Please keep this PR as Draft for now. I don’t want you to throw away the branch yet because the tests and implementation are useful evidence, and parts of the normalized position index may still carry over. I first need to rewrite the issue and narrow the contract against current `main`.
If I have missed a constraint that makes this smaller design unworkable, please push back. You have spent more time inside these failure and recovery paths than I have, and I want that context before deciding what can be removed.
I used Codex to compare this PR with current `main`, #4123, and #4206, and independently checked the architecture and production paths discussed here.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For additional commands, e-mail: commits-help@maka.apache.org