Skip to content

Draw obligation tallies through LeafElement and Lit - #3429

Merged
max-sixty merged 2 commits into
mainfrom
codex/tally-lit
Oct 21, 2026
Merged

max-sixty merged 2 commits into
mainfrom
codex/tally-lit

Conversation

@max-sixty

@max-sixty max-sixty commented Oct 21, 2026 •

Copy link
Copy Markdown
Owner

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.

This was written by Codex on behalf of max-sixty

@leaf-agent leaf-agent left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@max-sixty
max-sixty merged commit 52621e2 into main Oct 21, 2026
2 of 3 checks passed
@max-sixty
max-sixty deleted the codex/tally-lit branch October 21, 2026 05:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants