Skip to content

[#820 / 2] Pilot batch — Genesis (50 chapters) #1781

@CraigBuckmaster

Description

@CraigBuckmaster

Part of Epic #820 Hermeneutic Lenses. PILOT GATE — must ship clean before any other batch (#820/3 onward) opens.

Goal

Generate the first wave of curated-sparse lens content for all 50 Genesis chapters. Validates the entire pipeline end-to-end: AI generation, lens quality scorer, accuracy auditor (tier-2 strictest gate per Craig's setting), schema validator, DB build, R2 upload.

Workflow per chapter

In ephemeral /tmp/gen_genesis_lenses.py:

  1. Load chapter content from content/genesis/{N}.json
  2. For each lens, decide if it genuinely fits this chapter (typically 3–5 of 8)
  3. Generate guidance + optional panel_filter + panel_order
  4. Run python3 _tools/lens_quality_scorer.py --chapter gen{N} — reject + regenerate if any entry < 90
  5. Run python3 _tools/accuracy_auditor.py --chapter meta_lens_gen{N} --tier 2 — reject + regenerate on tier-2 fail
  6. Write content/hermeneutic_lenses/chapters/gen{N}.json

Output shape (per file)

{
  "lenses": [
    {
      "lens_id": "grammatical",
      "guidance": "80-280 chars, anchored to a real verse number or proper noun",
      "panel_filter": ["heb", "hist", "ctx", "lit"],
      "panel_order":  ["heb", "lit", "hist", "ctx"]
    }
  ]
}

Acceptance criteria

  • All 50 Genesis chapter JSON files written
  • Every entry scores ≥ 90 on lens_quality_scorer.py
  • Every entry passes accuracy_auditor.py --tier 2
  • schema_validator.py Section 21 passes
  • DB rebuilds; chapter_lens_content row count between 150 and 250 (sanity bound for sparse coverage on 50 chapters)
  • Manual smoke test on 5 chapters in dev build: lens toggle works, guidance shows, panels filter/reorder per Epic: Hermeneutic Lenses Content #820/1 wiring
  • R2 upload succeeds, manifest delta lands

Pilot gate

If this batch ships clean, sub-issues #820/3 through #820/10 unblock and can run in parallel. If the pilot doesn't ship clean, no batches open until tooling/prompt issues are resolved.

Out of scope

  • Any non-Genesis content
  • Premium-tier gating changes (already wired)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions