Skip to content

docs: Article A master — the dynamic-forms tutorial - #26

Merged
silversurfer562 merged 1 commit into
mainfrom
claude/article-tutorial-dynamic-forms
Aug 16, 2026
Merged

docs: Article A master — the dynamic-forms tutorial#26
silversurfer562 merged 1 commit into
mainfrom
claude/article-tutorial-dynamic-forms

Conversation

@silversurfer562

Copy link
Copy Markdown
Member

Summary

Adds docs/tutorial-dynamic-forms.md, the verified master of Article A from the content plan — the hands-on tutorial. Empty dict → batching rule → the six 0.5.0 constructs one at a time (snippets lifted verbatim from REFERENCE_FORM, each with the answer it validates to; a live proof that confirm refuses a default) → the same dict on four hosts (widget / batched questions / MCP elicitation / markdown, skeleton tail shown) → the return path (deterministic parse → validate → re-ask only the failing field) → when not to build any of it → a clearly marked 0.6.0 section for ranking + assumption review.

~1,450 prose words + 19 code blocks. Voice: first person, every stated number is a printed number.

Verification (the master's contract)

Every python block was extracted from this file and executed as plain scripts:

  • 17 blocks against attune-forms==0.5.0 from PyPI in a fresh venv — the version a reader gets from pip install today.
  • 2 blocks (§7, the 0.6.0 constructs) against main (be1bfc1), stated in the text as "on main, ships in 0.6.0".
  • Two things this caught before commit: a snippet with triple backticks nested inside a fenced block (would have broken both the run and the markdown render — now slices on the --- rule), and a widget-size number that varied with the per-render instance id (now pinned with instance_id="tutorial" → 22,200 bytes).

Draft for the chair's read. Not projected anywhere. Projection order per the plan: B is on main (#23) → this → posts. Before projecting after 0.6.0 ships, flip §7's framing from "on main" to "in 0.6.0" and re-run the blocks against the released package.

🤖 Generated with Claude Code

Hands-on walk from an empty dict to a validated round trip: the base
form and the batching rule; the six 0.5.0 constructs one at a time
(snippets lifted verbatim from REFERENCE_FORM, each with the answer it
validates to, plus a live proof that confirm refuses a default); the
same dict on four hosts (widget / batched questions / MCP elicitation /
markdown, with the skeleton tail); the return path (deterministic
parse -> validate -> re-ask only the failing field); when not to build
any of it; and a marked 0.6.0 section for ranking + assumption review.

Verification before commit: every python block was extracted from this
file and executed — 17 blocks against attune-forms 0.5.0 from PyPI in a
fresh venv, 2 (the 0.6.0 section) against main — and every printed
number in the text is the number the code printed. ~1,450 prose words
+ 19 code blocks. Master per the master/projection rule; not projected.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@silversurfer562
silversurfer562 marked this pull request as ready for review August 16, 2026 04:22
@silversurfer562
silversurfer562 merged commit c100281 into main Aug 16, 2026
7 checks passed
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.

1 participant