Repository navigation
Draw obligation tallies through LeafElement and Lit - #3429
Merged
Merged
Conversation
leaf-agent
reviewed
Oct 21, 2026
leaf-agent
left a comment
Collaborator
There was a problem hiding this comment.
The Lit template now contains a second copy of the tally's prepaint structure. The shipped x-prepaint contract in skills/leaf/assets/registry.json says the module fills a copy of the registry markup so the structure is stated only there, and module-authoring.md gives package authors the same recipe. That recipe no longer describes this widget. Please update the contract and authoring guidance to explain the Lit route and how its first-paint shape stays aligned with the rendered shape.
leaf-agent
approved these changes
Oct 21, 2026
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.
Draw lf-tally through LeafElement, so the shared lifecycle follows its obligation reading and settles presentation. Lit fills the dynamic count slots inside the registry's prepaint structure, replacing the projection watcher and imperative text writes while keeping one home for the widget's structure. The retained Next on me button keeps its focus and navigation behavior across count updates.
Validation: the tally count/navigation/undo journey and phone workspace landing journey pass, including undo after every obligation is answered. All 505 runtime tests, pnpm check and source pre-commit checks pass. Base/candidate startup probes show matching count and geometry with no layout shifts or console errors.
CI passed 1,927 Python tests; its failures are inherited Codex test-fixture errors from base 80bb050, already repaired on main by #3427: four shared-turn cases read status.json instead of stream.json and omit the required turn status, and Ruff reports the fixture's missing write_record import. These files are unchanged by this PR. The exact head has automated review approval.