Files
leleka/docs
Pavlo RatushnyiandClaude Sonnet 5.5 278d67eeb7 decode graph reuse (Q7), part 2: QSA owner loan in the journal, HeldAssembly protocol (begin/end, drafter release on retire), re-arm scenarios on the lifecycle fake
OriginalVerifyQsaJournal keeps its owners as Option behind accessors; lend() hands the twelve index images and mapped journals to the prompt executor without dropping the journal (and so the graphs), take_back() accepts them only when every address the captured commands bind is unchanged (else the journal is failed for good and the owners go back to the caller). The pure loan state machine (owner_loan.rs) has unit tests that run without a GPU.

GraphReuse gets begin/end over a HeldAssembly trait (park, lend, take_back, rearm): the kept assembly is reused only for an equal key, owners at the same addresses and an accepted re-arm; anything else retires it after the MTP drafter's bindings are released, and the owners are never lost. DecodeResources implements the trait (owner loan real; park and rearm refuse until the verify bank has them, so nothing is kept and every request records as before). The lifecycle fake models the bank (generation, counters, wait flag, canonical image) and the owners, and the scenarios the real implementation must pass are in docs/experiments/decode-graph-reuse.md. Switch off: unchanged path. No speedup claim.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-09 23:41:02 +01:00
..
2026-10-25 14:14:47 +01:00
2026-10-24 02:03:29 +02:00