Reshaped 2026-07-20. There is now one "Full Treatment" page per book — the three tiers (Guide / Bible Study Guide / Commentary) were collapsed to remove repetition. This loop fills the Studies tool (
/studies/) with that treatment for all 66 books. Architecture: ../plans/book-capstone-plan.md. Per-unit schema + quality bar: book-commentary-loop.md.
One page per book (/topics/<book>/commentary.html):
- A rich Intro that consolidates everything the site already holds per book —
overview, author/date/setting/purpose, themes, outline, timeline, key
people, key vocabulary + language notes, reception, and literary/cultural
context. The page assembles these automatically from the existing data
trees (
introductions,workshop/book-study,literary,cultural). - The fully synthesized Commentary in per-chapter divisions — original-language / historical-context / Christ lenses, verse-by-verse notes, the Cloud of Witnesses + attributed external scholarship, and a per-chapter "For reflection" set. Many-chapter books get a chapter picker + lazy-load.
The intro's source data already exists for all 66 books — the page renders it. The loop's job is the commentary:
data/commentary/exposition/<book>/_book.json— overview (argument, occasion, theology, Christ, structure) + witnesses/external +_sourceprovenance.data/commentary/exposition/<book>/<ch>.json— per chapter: an optional_meta(title+reflectionquestions) plus section-keyed entries (section → verse-by-verse, with theoriginal_language/historical_context/christlenses,witnesses,external,application).
Full schema + quality bar (the multi-perspective synthesis): book-commentary-loop.md.
study-pipeline-tracker.md — one row per book, one
Treatment column. Statuses: ⬜ todo · 🔄 @<ISO-time> <agent> (n/N ch) in
progress · ✅ done (overview + all chapters exist and validate) · ♻️ reframe.
Claim a cell, do the work, validate, flip books-content.json, mark ✅ — one
commit. A 🔄 older than 3h is stale and may be reclaimed.
Walk data/bible/books.json in canonical order; the next book is the first ⬜/♻️
Treatment cell (or resume a 🔄 you own). There is no gating between stages —
it is one stage now. Reference exemplar: Philemon (overview + ch 1, all 25
verses, multi-perspective + reflection). Reframe exemplar: Hebrews.
These already have hand-authored overview + chapter-study pages. Their content
feeds the treatment: the book overview → the Intro; the chapter-by-chapter
study (e.g. Hebrews' The Argument + OT-background boxes) → the per-chapter
commentary + reflection. Once a book's treatment exists, retire/redirect its old
literal pages (topics/<book>/index.astro, deep-dive.astro,
study-guides/<book>/) — tracked in docs/TODO.md. (sermon-on-the-mount is a
topic, not a books.json id, and is not a tracked book.)
- Claim the book's Treatment cell in the tracker (
🔄). - Write
_book.json(if missing), then chapters1..N— the sourcecow/<book>/<ch>.jsonalways exists. - Validate:
python scripts/validate-commentary.py --overview <book>/--chapter <book> <ch>— must pass clean. - Commit:
Commentary: <book> overviewandCommentary: <book> <ch> (<N> verses). In the same commit, flipdata/books-content.json→books.<book>.commentary.exists = true(+coverage/chapters_done) and update the tracker. Do not push — deploys need owner approval. - Mark
✅only when_book.jsonand every chapter exist.