Skip to content

Phase 5c: Parts III + IV become data — every teaching chapter is now blocks - #14

Merged
NeoVand merged 1 commit into
mainfrom
phase5c-part34
Jul 2, 2026
Merged

Phase 5c: Parts III + IV become data — every teaching chapter is now blocks#14
NeoVand merged 1 commit into
mainfrom
phase5c-part34

Conversation

@NeoVand

@NeoVand NeoVand commented Jul 2, 2026

Copy link
Copy Markdown
Owner

What this does

Continues the block-schema migration (#10, #11): ch-noise, ch-generalize, and all six family-tree chapters now live as block arrays, transcribed verbatim. With this PR, every teaching chapter in the guide is walkable data — only the zoo (ch-problems, ch-experiments) and the reference pages (ch-panels, ch-keys) remain as markup, and those are already data-driven lists.

  • Two new block kinds: optcards (a chapter's optimizer-card slice — the card content itself has been pure data since Phase 1) and frontier (the dashed Muon/Shampoo/SOAP closing box).
  • The Part IV card chapters collapse to one-line shells — their prose lives in optimizerCards.ts where it always was; the ravine opener carries its conditioning story, heatmap and family-tree figures (captions now in blocks), and the animated race as the second widget island.
  • The anonymous regularization display in ch-generalize is now formulas.regularizedLoss — every display equation in the guide now has a registry name.
  • Surfacing fix: the formula-display's themed thin scrollbar styling was never globalized in Phase 5a, so block-rendered displays had silently lost it (svelte-check's unused-CSS warnings caught it once the last hand-written display migrated).

Verified

  • Rendered text of all seventeen migrated chapters byte-identical to main in both themes (66,597 chars dark / 66,619 light), captured live via git stash
  • Frontier box (dashed border), race player, and all 14 race legend chips render; computed-style spot checks per the ritual
  • 194 tests, svelte-check 0 errors / 0 warnings, build clean

Next: the zoo + reference chapters (data-driven lists), then the figure compute/render split with the print theme, then scripts/emit-latex.ts + kaobook + CI PDF.

🤖 Generated with Claude Code

…w blocks

ch-noise, ch-generalize, and all six family-tree chapters migrate to
block arrays, verbatim. With this, every teaching chapter in the guide
is walkable data; only the zoo and the reference chapters remain markup.

- new kinds: optcards (a chapter's optimizer-card slice — the cards
  themselves were already data) and frontier (the dashed closing box)
- the anonymous regularization display is now formulas.regularizedLoss
- the ravine heatmap and family tree move into figure snippets with
  their captions in blocks; the animated race is the second widget
  island (print fallback comes with the emitter)
- the Part IV card chapters collapse to one-line shells — their prose
  lives in optimizerCards.ts where it always was
- surfacing fix: the formula-display scrollbar styling was never
  globalized, so block-rendered displays had lost the themed thin
  scrollbar; grouped selectors now globalized alongside the base rule

Verified: rendered text of all SEVENTEEN migrated chapters
byte-identical to main in both themes (66,597 / 66,619 chars);
frontier box, race player, and 14 race chips all render; 194 tests,
svelte-check 0 errors 0 warnings.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jul 2, 2026

Copy link
Copy Markdown

Deploying gradient-lab with  Cloudflare Pages  Cloudflare Pages

Latest commit: 9ac93e0
Status: ✅  Deploy successful!
Preview URL: https://f4985807.gradient-lab.pages.dev
Branch Preview URL: https://phase5c-part34.gradient-lab.pages.dev

View logs

@NeoVand
NeoVand merged commit 866670e into main Jul 2, 2026
2 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