7 Commits
Author SHA1 Message Date
Vijay Janapa Reddi bd5a05544b Harden LEGO verify: per-ref duplicate-unit check, unrendered-math and crossref scan.
Mutation testing (inject known defect, require pipeline FAIL) found two
escapes in the per-chapter verify:

- The duplicate-unit check received the whole substituted line and
  compared the line's end against unit suffixes — it could effectively
  never fire ('150 ms ms' passed 43/43). Rewritten to check the prose
  immediately after each {python} ref against the unit the closed
  formatter already emitted.
- An unclosed $...$ span renders as literal '$() = 1 - (1 - p)^N.' in
  reader-visible prose and no gate caught it. chapter_html_verify now
  strips client-rendered math/pseudocode containers from visible text
  and flags unrendered math delimiters, '$' before a symbol, and
  unresolved @sec-/@fig- crossrefs. Validated against all 44 archived
  chapter pages: one true positive (nn_architectures), zero false
  positives.

Also create the gitignored reports dir before snapshotting so a fresh
worktree run does not die at the first cp.
2026-06-07 08:04:49 -04:00
Vijay Janapa Reddi 949e6fa2b9 Add replayable per-chapter LEGO verify pipeline with rendered-prose gate.
Every chapter can be certified via verify_lego_chapter.sh: HTML build, all
cells, all inline refs with HTML context, and optional LLM coherence. Includes
batch runners, stale-HTML cleanup for single-chapter builds, and math-aware
context extraction for fmt_frac exports.
2026-06-06 16:02:44 -04:00
Vijay Janapa Reddi 04fafe8e72 Recognize chapter-anchor cells in LEGO HTML audit pipeline.
Allow intentional cross-section anchors in lego_focal_verify, skip algorithm
LaTeX false positives in audit_html, and add appendix_inference to HTML builds.
Document the chapter-anchor exception in LEGO_CELLS.md; ledger now 45/45 pass.
2026-06-06 15:15:24 -04:00
Vijay Janapa Reddi 3c98b4e32d Harden MLSysIM loaders and rendered book audits 2026-05-30 14:22:01 -04:00
Vijay Janapa Reddi 47c169f9f9 Enforce computed LEGO walkthroughs and registry-backed book sources.
Add binder gates that ban legacy constant aliases, hardcoded grid literals,
and prose operands next to {python} refs; migrate appendices and chapter
callouts to export intermediate values from mlsysim registries so worked
math stays machine-verified instead of hand-typed.
2026-05-25 15:49:27 -04:00
Vijay Janapa Reddi 2558bd7cde Finish registry migration cleanup and add chapter PDF audit tooling.
Wire Systems.Nodes to Hardware nvlink specs, inject solver latencies from fleet operands, tighten the public mlsysim API, and land PDF/HTML audit verifiers with refreshed 44/44 ledgers.
2026-05-24 22:15:15 -04:00
Vijay Janapa Reddi d448e619c9 Add chapter HTML audit verifier and fix remaining registry migration build breaks.
Ship chapter_html_verify.py with a 44/44 pass ledger so inline-Python chapters build cleanly after the six-zoo registry migration.
2026-05-24 19:22:59 -04:00