symfonic.capabilities.memory.rendered_selection¶
rendered_selection ¶
Exact selected rows that survived memory's own block assembly.
This is hydration evidence only. Prompt compilation and the model wire may still drop or rewrite the block, so these values authorize no acknowledgement.
RenderedSelectedLine
dataclass
¶
RenderedSelectedLine(publication: PublishedRecallRef, line: str, ordinal: int, linked_edge: LinkedRenderedWitness | None = None)
One uniquely attributable line in the composed hydration block.
admitted_mask ¶
admitted_mask(lines: list[str], *, char_ceiling: int, max_bytes: int | None = None) -> tuple[bool, ...]
Which whole lines fit, in order: the single admission rule for the block.
Admission is greedy over a prefix, so the mask of the first n lines does
not depend on anything after them.
Source code in src/symfonic/capabilities/memory/rendered_selection.py
bind_linked_lines ¶
Keep an edge witness only for its unique admitted whole target line.
Source code in src/symfonic/capabilities/memory/rendered_selection.py
bound_block ¶
bound_block(candidates: list[tuple[str, str, PublishedRecallRef | None]], *, char_ceiling: int, max_bytes: int | None = None) -> tuple[str, tuple[tuple[str, str], ...], tuple[RenderedSelectedLine, ...]]
Keep whole lines and their verified identities in exactly the same pass.