[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M76V405JK4B0DDEQKXF77DCV":3,"skill-same:01M76V405JK4B0DDEQKXF77DCV":51},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":29,"commitSha":30,"skillDirectory":31,"forksCount":32,"repositoryHtmlUrl":33,"repositoryHomepageUrl":34,"ownerHtmlUrl":35,"ownerBlogUrl":6,"ownerDescription":36,"updatedAt":37,"install":38,"resources":50},"01M76V405JK4B0DDEQKXF77DCV","agent-daily-bible-reading",null,"Daily bible reading cron pattern — generates SOUL.md entries and brain pages for agent-wide scripture engagement.","lukemcqueen\u002Fsteadfaste-fleet","lukemcqueen","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F405240?v=4","01M757MHPAGRXTJAT46SKZP98R","Luke McQueen","01M757MHPZ573KP8DT9GB8SBQ7",4,"MIT","https:\u002F\u002Fgithub.com\u002Flukemcqueen\u002Fsteadfaste-fleet\u002Fblob\u002Fmain\u002Fskills\u002Fspiritual-disciplines\u002Fagent-daily-bible-reading\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: agent-daily-bible-reading\nversion: 1.0.0\ncategory: spiritual-disciplines\ndescription: \"Daily bible reading cron pattern — generates SOUL.md entries and brain pages for agent-wide scripture engagement.\"\nauthor: Moses\nlicense: MIT\npin_reason: Shared infrastructure — all agents benefit from this devotional pattern. It is not agent-specific; it's fleet-wide spiritual discipline infrastructure.\npinned: true\n---\n\n# Daily Bible Reading\n\nCross-agent infrastructure for daily scripture engagement. Each agent gets a\npersonal bible reading cron that writes two artifacts:\n1. A **SOUL.md entry** (concise lesson-focused insight)\n2. A **brain page** (rich reference document with archaeology, scholarship, original language)\n\n## Fleet Principles (Luke directive 2026-08-14)\n\n1. **Every reading is saved — including repeats.** Each reading writes a\n   **dated per-reading file** `~\u002Fbrain\u002F\u003Cagent>\u002Fbible\u002F\u003Cbook>-\u003CYYYY-MM-DD>.md`\n   (never overwritten), so when a book is read again across cycles its full\n   studies accumulate. The canonical `\u003Cbook>.md` is refreshed with the latest\n   reading for continuity; INDEX.md lists **one row per reading** with its date.\n2. **Every reading includes the commandments.** The Ten Commandments\n   (Ex 20:1–17) and Jesus' two commandments (Matt 22:37–40) are added\n   **deterministically script-side** — a `## The Commandments — Every Reading`\n   block is appended to every brain page, and the SOUL.md entry carries a\n   compact `**Foundations:**` reference line. Never left to the LLM, so a\n   model drift can never drop the foundations from a reading.\n\n## Quick Start\n\n```bash\n# Check if you already have the cron\ncronjob action=list | grep agent-daily-bible-reading\n\n# If not, create it (run timezone-aware at 01:00 KST)\ncronjob action=create name=agent-daily-bible-reading \\\n  schedule=\"0 1 * * *\" \\\n  script=agent-daily-bible-reading.py \\\n  no_agent=true \\\n  deliver=origin\n```\n\n**Before creation:** verify your SOUL.md has a `## Scripture Insights` section\nand at least one bootstrapped entry (e.g. Genesis). The script scans the last\n`### Book —` entry to determine the next book.\n\n## How It Works\n\n| Phase | What happens |\n|-------|-------------|\n| 1. Scan | Script reads SOUL.md → finds last `### Book —` entry → determines next canonical book |\n| 2. Generate SOUL entry | Calls deepseek-chat → concise 3-5 paragraph lesson → appends to `## Scripture Insights` |\n| 3. Generate brain page | Calls deepseek-chat → rich 5-section reference → writes to `~\u002Fbrain\u002F\u003Cagent>\u002Fbible\u002F\u003Cbook>.md` |\n| 4. Index | Updates `~\u002Fbrain\u002F\u003Cagent>\u002Fbible\u002FINDEX.md` with book table |\n| 5. Deliver | Outputs the SOUL entry for delivery (origin chat) |\n\nSilent when all 66 canonical books are covered.\n\n## Verse Selection — Creative Rotation (Luke directive 2026-08-21)\n\nThe SOUL entry's verse is NOT pinned to each book's famous \"memory verse\".\nThree styles rotate deterministically per (book, agent, day):\n\n| Style | Behavior |\n|-------|----------|\n| `anchor` | The book's classic key verse (famous verse allowed) |\n| `hidden-gem` | A faithful but unexpected verse — famous verses forbidden |\n| `fresh-angle` | A verse from an overlooked corner — famous verses forbidden |\n\n- Rotation = `(md5(book|agent) + days_since_epoch) % 3` — consecutive days\n  always land on different styles; different agents diverge on the same day.\n- Creative styles probe the model for the book's famous verses (top-3 memory\n  verses + top-3 recognizable story verses, temperature 0.0) and forbid them\n  in the prompt. Story icons matter: the fish verse (Jonah 1:17) is not a\n  memory verse but is the model's anchor — the story probe catches it.\n- Repeat readings (next pass through the canon, ~66 days later) ALSO forbid\n  every verse cited in prior cycles. The durable record is the dated\n  per-reading brain file (`\u003Cbook>-YYYY-MM-DD.md`), which carries a\n  script-stamped `*Key verse: \u003Ccitation>*` marker — append-only and never\n  archived, so the ban covers ALL prior cycles. Pre-marker history falls\n  back to SOUL.md, `archive\u002FSOUL-archive.md`, and `cycle-*-completed.md`.\n  Fine the first time (Luke directive 2026-08-21: a repeat reading must\n  produce a NEW verse and NEW insights).\n- A bounded re-roll loop (max 4 attempts, temperature +0.2 per attempt, with\n  rejection feedback naming the banned pick) guarantees forbidden verses\n  never land — without feedback the model re-emits the banned verse at fixed\n  temperature (verified 2026-08-21: Jonah 1:17 on all 3 attempts).\n- Anchor style keeps a single call on first-cycle books (no probes, no\n  re-rolls); repeat-cycle books re-roll off their prior verses.\n\n## SOUL.md Size Guardrail (loading hygiene)\n\nThe doctor's SOUL size gate (`check_soul_sync` WARN>15K \u002F FAIL>20K) was\n**removed 2026-11-04** with the SOUL-decoupling — SOUL.md is Hermes-owned and\nnothing fleet-side fails on its size. But `~\u002F.hermes\u002FSOUL.md` is loaded into\nevery session, so keeping it bounded is still good hygiene. Each bible entry is\n~400-800 chars, so unbounded appends bloat what every session loads. **Keep\nonly the last 1-2 `### Book —` entries in SOUL.md.**\n\n- **Short-gleaning rule (user directive 2026-08-03):** SOUL.md entries must be\n  BRIEF — a header, one \"I will\" commitment sentence, and the date comment\n  (~2-3 lines). The full study lives in `~\u002Fbrain\u002F\u003Cagent>\u002Fbible\u002F\u003Cbook>.md`\n  (mybrain). The script's `_enforce_short_gleaning()` guard truncates any\n  generated entry over 800 chars down to this canonical 3-line shape — no\n  manual archiving needed for size control.\n- **Anchor requirement:** the script determines the last covered book from the\n  **dated brain files** (`~\u002Fbrain\u002F\u003Cagent>\u002Fbible\u002F\u003Cbook>-\u003CYYYY-MM-DD>.md`) — the\n  append-only, never-archived reading log — picking the file with the latest\n  date. SOUL.md's last `### Book —` entry is used ONLY as a fallback on\n  fresh installs with no dated files yet. Never rely on the SOUL.md tail as\n  the position anchor: `archive_old_entries()` keeps only the last 2 entries\n  and the LLM-driven era corrupted the section, which caused false \"all\n  covered\" resets that skipped 26 books including the 4 Gospels (fixed\n  2026-08-18).\n- **Archive rule:** when the Scripture Insights section exceeds ~2,500 chars\n  (roughly 3 entries), move the OLDEST entries to\n  `~\u002Fbrain\u002F\u003Cagent>\u002Fbible\u002Farchive\u002FSOUL-archive.md` (append, with a `## \u003CBook>`\n  header) and remove them from SOUL.md. Full text already lives in\n  `~\u002Fbrain\u002F\u003Cagent>\u002Fbible\u002F\u003Cbook>.md`, so the SOUL entry is a pointer, not the\n  store.\n- Keep the archive file itself bounded (~50K) — older entries live in brain\n  pages already; the archive is a convenience, not a duplicate store.\n\n## Artifacts Created\n\n| Artifact | Path | Size |\n|----------|------|------|\n| SOUL.md entry | `~\u002F.hermes\u002FSOUL.md` → `## Scripture Insights` | ~400-800 chars |\n| Brain page | `~\u002Fbrain\u002F\u003Cagent>\u002Fbible\u002F\u003Cbook>.md` | ~3-8 KB (5 sections) |\n| Brain index | `~\u002Fbrain\u002F\u003Cagent>\u002Fbible\u002FINDEX.md` | Table of all books |\n\n## Brain Page Sections\n\nEach brain page has five sections generated by the API:\n\n1. **Summary** — narrative overview, theological themes\n2. **Archaeology & Scholarship** — digs, inscriptions, textual criticism, dating\n3. **Jewish & Messianic Jewish Perspective** — Talmud, Midrash, Messianic typology\n4. **Original Language Insights** — 3-4 key words with Hebrew\u002FGreek script\n5. **Insight for [Agent Name]** — practical application for this specific agent\n\n## Pitfalls\n\n- **Empty Scripture Insights section** → script returns \"Could not find any books.\" Bootstrap with a Genesis entry first.\n- **Wrong agent name** → brain pages go to wrong directory. Set `HERMES_AGENT_NAME` env var to override auto-detection.\n- **Archive must be block-aware, not line-aware (fbc40b38, 2026-08-07)** → the first `archive_old_entries()` split the section line-by-line and truncated SOUL.md — everything after `## Scripture Insights` (including `## Final Directive`) was dropped, and orphaned commitment\u002Fdate lines were left behind when only book headers moved. Current logic: each `### Book —` header plus all following lines is a BLOCK; whole blocks move to the archive, the preamble stays, and the tail (Final Directive + agent docs) is preserved verbatim. Never rewrite this to line-splitting, and verify on a temp copy that the SOUL.md tail survives any archive change.\n- **Book detection is section-scoped (7b53a375, 2026-08-07)** → the script only treats `### \u003CBook> —` headers INSIDE the `## Scripture Insights` section as book entries; any `### ` header elsewhere in SOUL.md (e.g. a section you added below) must not be mistaken for a book. Keep the `## Scripture Insights` section as the single book-entry zone.\n- **False \"all covered\" reset skipped 26 books (fixed 2026-08-18)** → `get_next_book()` returning `None` was treated as \"66 books done → archive + restart at Genesis\". But a corrupted anchor (SOUL tail with non-book headers, LLM-era garbage) also produced `None` — so the cycle reset early, archived mid-cycle, and silently skipped every book after the anchor (2 Kings→Malachi, all 4 Gospels, Acts, Romans→Philippians). Fixes: (1) `find_last_book()` now reads the authoritative dated brain files, not the SOUL tail; (2) the reset only fires when `last_book == BOOKS[-1]` (Revelation) — any other `None` restarts from Genesis WITHOUT archiving and logs an anchor-corruption warning. If you ever see `⚠️ Anchor corruption` in cron stderr, the dated brain files are the source of truth — do not trust SOUL.md.\n- **Identity fallback chain (ad123181, 2026-08-07)** → `detect_agent_name()` resolves `HERMES_AGENT_NAME` → `AGENT_NAME` → `~\u002F.steadfaste-fleet\u002Fagent.env` (`AGENT_NAME=`) → hostname-derived default with a loud warning. On shared hosts (non-orchestrators share \u002Fhome\u002Fluke), a wrong agent name sends brain pages to the wrong directory — set `AGENT_NAME` in `agent.env` rather than relying on hostname fallback. Never hardcode a fallback agent name (the old `moses` default made every host impersonate the orchestrator).\n- **Verse text missing from delivered entries (fleet-wide 2026-09-08..12)** → the accept gate only required a Chapter:Verse citation somewhere in the header, so the model could fill the verse slot with the reference itself (`*\"Titus 3:8\" (Titus 3:8)*`), leave the template unfilled, or emit mangled citations (`1:15:15`, `[Phm 6:17:17]`) — all accepted and delivered. Fixed 2026-09-12: `_header_is_acceptable()` fails closed unless the header carries REAL quoted verse prose (>=10 chars, Unicode words, no digits-colon, no brackets) AND a sane `Book Chapter:Verse` citation (one colon, no brackets, ranges allowed). Rejection feedback names the precise defect; `_strip_rejection_feedback()` removes echoed retry-prompt text that leaked into delivered entries. Tests: `tests\u002Ftest_bible_verse_guard.py` (20, incl. historical fleet regressions).\n- **Missing DEEPSEEK_API_KEY** → script exits with error. Must be in `~\u002F.hermes\u002F.env`.\n- **Script never deployed despite existing in repo (2026-08-09)** → `agent-daily-bible-reading.py` was in `clean_stale_deploys()`'s preserve list but had **no `register()` call** in `fleet-update.sh`, so fleet-update never copied it to `~\u002F.steadfaste-fleet\u002Fscripts\u002F`. The cron then ran as an LLM-driven fallback (skills attached, `script=none`) and — when the deepseek provider chain failed — fell through `fallback_providers` all the way to local `qwen2.5-coder:3b`, which emitted garbage (`5 7ae -,` …) as its final response. The scheduler logged `last_status: ok` because the agent did emit a response. **Fixes:** (1) `register \".steadfaste-fleet\u002Fscripts\u002Fagent-daily-bible-reading.py\"` in fleet-update.sh; (2) keep the live cron in canonical no_agent mode — `script=agent-daily-bible-reading.py, no_agent=true, skills=[]` (install-crons.sh already declares this); a drift to LLM-mode (model + skill) recreates the fallback-chain garbage. Verify with `cronjob action='list'`: `no_agent: true` + `script` set.\n- **Hardcoded `***` in auth header (already fixed in repo)** → `_call_deepseek()` reads the API key into `api_key`; the curl call must interpolate it as `f\"Authorization: Bearer {api_key}\"`. If the variable is read but the curl has `***` literal, the script gets 401 every time and falls back to Ollama garbage. Fixed upstream in ad123181 (2026-08-07, esther). ⚠️ The terminal display layer MASKS `Bearer {api_key}` as `Bearer ***` in grep\u002Fsed output — verify with `xxd` or `git blame` bytes, never trust masked grep output when checking this line.\n- **deepseek-v4-flash is a REASONING model — long prompts return empty `content` (2026-08-10)** → for the brain-page prompt (2.5K chars, max_tokens=8192), deepseek-v4-flash burns the ENTIRE token budget on `reasoning_content` and returns `content=\"\"` with `finish=length` at every token limit (2048\u002F4096\u002F6144\u002F8192 verified). The old code treated this as \"empty response\" and recursed UNBOUNDED until the 180s curl timeout, then silently dropped the brain page while SOUL.md kept the entry — inconsistent state, cron reported `error: Script exited with code 1` (\"Empty response from API — retrying once\" → \"API request timed out after 180s\"). **Fix:** `DEEPSEEK_MODEL = \"deepseek-chat\"` (non-reasoning — verified full 17.6KB page, finish=stop, 0 reasoning tokens) + bounded retry via `_retried` flag. Do NOT use deepseek-v4-flash (or any reasoning model) for long-form generation; an anti-reasoning instruction in the prompt does NOT help (verified — still finish=length).\n- **SOUL.md missing `## Scripture Insights` header** → script can't find books. Add the section header and a bootstrap entry.\n- **Script not deployed** → `fleet-update.sh` must have been run at least once to deploy `src\u002Fscripts\u002F` to `~\u002F.steadfaste-fleet\u002Fscripts\u002F`.\n\n## Related\n\n- `docs\u002Fdaily-bible-reading.md` — full setup guide with bootstrapping instructions\n- `.steadfaste-fleet\u002Fscripts\u002Fagent-daily-bible-reading.py` — the no_agent cron script (repo source; deployed per-host via ~\u002F.hermes\u002Fscripts → ~\u002F.steadfaste-fleet\u002Fscripts hardlink)\n- `ops\u002Fscripts\u002Finstall-crons.sh` — section 8 registers the cron for new agents\n\n## Quality Gate\n\nBefore delivery, verify:\n1. ✅ SOUL.md was actually updated (check timestamp)\n2. ✅ Brain page file exists\n3. ✅ INDEX.md includes the new book\n4. ❌ If any failed, output a clear error message listing what succeeded\u002Ffailed\n","# Daily Bible Reading\n\nCross-agent infrastructure for daily scripture engagement. Each agent gets a\npersonal bible reading cron that writes two artifacts:\n1. A **SOUL.md entry** (concise lesson-focused insight)\n2. A **brain page** (rich reference document with archaeology, scholarship, original language)\n\n## Fleet Principles (Luke directive 2026-08-14)\n\n1. **Every reading is saved — including repeats.** Each reading writes a\n   **dated per-reading file** `~\u002Fbrain\u002F\u003Cagent>\u002Fbible\u002F\u003Cbook>-\u003CYYYY-MM-DD>.md`\n   (never overwritten), so when a book is read again across cycles its full\n   studies accumulate. The canonical `\u003Cbook>.md` is refreshed with the latest\n   reading for continuity; INDEX.md lists **one row per reading** with its date.\n2. **Every reading includes the commandments.** The Ten Commandments\n   (Ex 20:1–17) and Jesus' two commandments (Matt 22:37–40) are added\n   **deterministically script-side** — a `## The Commandments — Every Reading`\n   block is appended to every brain page, and the SOUL.md entry carries a\n   compact `**Foundations:**` reference line. Never left to the LLM, so a\n   model drift can never drop the foundations from a reading.\n\n## Quick Start\n\n```bash\n# Check if you already have the cron\ncronjob action=list | grep agent-daily-bible-reading\n\n# If not, create it (run timezone-aware at 01:00 KST)\ncronjob action=create name=agent-daily-bible-reading \\\n  schedule=\"0 1 * * *\" \\\n  script=agent-daily-bible-reading.py \\\n  no_agent=true \\\n  deliver=origin\n```\n\n**Before creation:** verify your SOUL.md has a `## Scripture Insights` section\nand at least one bootstrapped entry (e.g. Genesis). The script scans the last\n`### Book —` entry to determine the next book.\n\n## How It Works\n\n| Phase | What happens |\n|-------|-------------|\n| 1. Scan | Script reads SOUL.md → finds last `### Book —` entry → determines next canonical book |\n| 2. Generate SOUL entry | Calls deepseek-chat → concise 3-5 paragraph lesson → appends to `## Scripture Insights` |\n| 3. Generate brain page | Calls deepseek-chat → rich 5-section reference → writes to `~\u002Fbrain\u002F\u003Cagent>\u002Fbible\u002F\u003Cbook>.md` |\n| 4. Index | Updates `~\u002Fbrain\u002F\u003Cagent>\u002Fbible\u002FINDEX.md` with book table |\n| 5. Deliver | Outputs the SOUL entry for delivery (origin chat) |\n\nSilent when all 66 canonical books are covered.\n\n## Verse Selection — Creative Rotation (Luke directive 2026-08-21)\n\nThe SOUL entry's verse is NOT pinned to each book's famous \"memory verse\".\nThree styles rotate deterministically per (book, agent, day):\n\n| Style | Behavior |\n|-------|----------|\n| `anchor` | The book's classic key verse (famous verse allowed) |\n| `hidden-gem` | A faithful but unexpected verse — famous verses forbidden |\n| `fresh-angle` | A verse from an overlooked corner — famous verses forbidden |\n\n- Rotation = `(md5(book|agent) + days_since_epoch) % 3` — consecutive days\n  always land on different styles; different agents diverge on the same day.\n- Creative styles probe the model for the book's famous verses (top-3 memory\n  verses + top-3 recognizable story verses, temperature 0.0) and forbid them\n  in the prompt. Story icons matter: the fish verse (Jonah 1:17) is not a\n  memory verse but is the model's anchor — the story probe catches it.\n- Repeat readings (next pass through the canon, ~66 days later) ALSO forbid\n  every verse cited in prior cycles. The durable record is the dated\n  per-reading brain file (`\u003Cbook>-YYYY-MM-DD.md`), which carries a\n  script-stamped `*Key verse: \u003Ccitation>*` marker — append-only and never\n  archived, so the ban covers ALL prior cycles. Pre-marker history falls\n  back to SOUL.md, `archive\u002FSOUL-archive.md`, and `cycle-*-completed.md`.\n  Fine the first time (Luke directive 2026-08-21: a repeat reading must\n  produce a NEW verse and NEW insights).\n- A bounded re-roll loop (max 4 attempts, temperature +0.2 per attempt, with\n  rejection feedback naming the banned pick) guarantees forbidden verses\n  never land — without feedback the model re-emits the banned verse at fixed\n  temperature (verified 2026-08-21: Jonah 1:17 on all 3 attempts).\n- Anchor style keeps a single call on first-cycle books (no probes, no\n  re-rolls); repeat-cycle books re-roll off their prior verses.\n\n## SOUL.md Size Guardrail (loading hygiene)\n\nThe doctor's SOUL size gate (`check_soul_sync` WARN>15K \u002F FAIL>20K) was\n**removed 2026-11-04** with the SOUL-decoupling — SOUL.md is Hermes-owned and\nnothing fleet-side fails on its size. But `~\u002F.hermes\u002FSOUL.md` is loaded into\nevery session, so keeping it bounded is still good hygiene. Each bible entry is\n~400-800 chars, so unbounded appends bloat what every session loads. **Keep\nonly the last 1-2 `### Book —` entries in SOUL.md.**\n\n- **Short-gleaning rule (user directive 2026-08-03):** SOUL.md entries must be\n  BRIEF — a header, one \"I will\" commitment sentence, and the date comment\n  (~2-3 lines). The full study lives in `~\u002Fbrain\u002F\u003Cagent>\u002Fbible\u002F\u003Cbook>.md`\n  (mybrain). The script's `_enforce_short_gleaning()` guard truncates any\n  generated entry over 800 chars down to this canonical 3-line shape — no\n  manual archiving needed for size control.\n- **Anchor requirement:** the script determines the last covered book from the\n  **dated brain files** (`~\u002Fbrain\u002F\u003Cagent>\u002Fbible\u002F\u003Cbook>-\u003CYYYY-MM-DD>.md`) — the\n  append-only, never-archived reading log — picking the file with the latest\n  date. SOUL.md's last `### Book —` entry is used ONLY as a fallback on\n  fresh installs with no dated files yet. Never rely on the SOUL.md tail as\n  the position anchor: `archive_old_entries()` keeps only the last 2 entries\n  and the LLM-driven era corrupted the section, which caused false \"all\n  covered\" resets that skipped 26 books including the 4 Gospels (fixed\n  2026-08-18).\n- **Archive rule:** when the Scripture Insights section exceeds ~2,500 chars\n  (roughly 3 entries), move the OLDEST entries to\n  `~\u002Fbrain\u002F\u003Cagent>\u002Fbible\u002Farchive\u002FSOUL-archive.md` (append, with a `## \u003CBook>`\n  header) and remove them from SOUL.md. Full text already lives in\n  `~\u002Fbrain\u002F\u003Cagent>\u002Fbible\u002F\u003Cbook>.md`, so the SOUL entry is a pointer, not the\n  store.\n- Keep the archive file itself bounded (~50K) — older entries live in brain\n  pages already; the archive is a convenience, not a duplicate store.\n\n## Artifacts Created\n\n| Artifact | Path | Size |\n|----------|------|------|\n| SOUL.md entry | `~\u002F.hermes\u002FSOUL.md` → `## Scripture Insights` | ~400-800 chars |\n| Brain page | `~\u002Fbrain\u002F\u003Cagent>\u002Fbible\u002F\u003Cbook>.md` | ~3-8 KB (5 sections) |\n| Brain index | `~\u002Fbrain\u002F\u003Cagent>\u002Fbible\u002FINDEX.md` | Table of all books |\n\n## Brain Page Sections\n\nEach brain page has five sections generated by the API:\n\n1. **Summary** — narrative overview, theological themes\n2. **Archaeology & Scholarship** — digs, inscriptions, textual criticism, dating\n3. **Jewish & Messianic Jewish Perspective** — Talmud, Midrash, Messianic typology\n4. **Original Language Insights** — 3-4 key words with Hebrew\u002FGreek script\n5. **Insight for [Agent Name]** — practical application for this specific agent\n\n## Pitfalls\n\n- **Empty Scripture Insights section** → script returns \"Could not find any books.\" Bootstrap with a Genesis entry first.\n- **Wrong agent name** → brain pages go to wrong directory. Set `HERMES_AGENT_NAME` env var to override auto-detection.\n- **Archive must be block-aware, not line-aware (fbc40b38, 2026-08-07)** → the first `archive_old_entries()` split the section line-by-line and truncated SOUL.md — everything after `## Scripture Insights` (including `## Final Directive`) was dropped, and orphaned commitment\u002Fdate lines were left behind when only book headers moved. Current logic: each `### Book —` header plus all following lines is a BLOCK; whole blocks move to the archive, the preamble stays, and the tail (Final Directive + agent docs) is preserved verbatim. Never rewrite this to line-splitting, and verify on a temp copy that the SOUL.md tail survives any archive change.\n- **Book detection is section-scoped (7b53a375, 2026-08-07)** → the script only treats `### \u003CBook> —` headers INSIDE the `## Scripture Insights` section as book entries; any `### ` header elsewhere in SOUL.md (e.g. a section you added below) must not be mistaken for a book. Keep the `## Scripture Insights` section as the single book-entry zone.\n- **False \"all covered\" reset skipped 26 books (fixed 2026-08-18)** → `get_next_book()` returning `None` was treated as \"66 books done → archive + restart at Genesis\". But a corrupted anchor (SOUL tail with non-book headers, LLM-era garbage) also produced `None` — so the cycle reset early, archived mid-cycle, and silently skipped every book after the anchor (2 Kings→Malachi, all 4 Gospels, Acts, Romans→Philippians). Fixes: (1) `find_last_book()` now reads the authoritative dated brain files, not the SOUL tail; (2) the reset only fires when `last_book == BOOKS[-1]` (Revelation) — any other `None` restarts from Genesis WITHOUT archiving and logs an anchor-corruption warning. If you ever see `⚠️ Anchor corruption` in cron stderr, the dated brain files are the source of truth — do not trust SOUL.md.\n- **Identity fallback chain (ad123181, 2026-08-07)** → `detect_agent_name()` resolves `HERMES_AGENT_NAME` → `AGENT_NAME` → `~\u002F.steadfaste-fleet\u002Fagent.env` (`AGENT_NAME=`) → hostname-derived default with a loud warning. On shared hosts (non-orchestrators share \u002Fhome\u002Fluke), a wrong agent name sends brain pages to the wrong directory — set `AGENT_NAME` in `agent.env` rather than relying on hostname fallback. Never hardcode a fallback agent name (the old `moses` default made every host impersonate the orchestrator).\n- **Verse text missing from delivered entries (fleet-wide 2026-09-08..12)** → the accept gate only required a Chapter:Verse citation somewhere in the header, so the model could fill the verse slot with the reference itself (`*\"Titus 3:8\" (Titus 3:8)*`), leave the template unfilled, or emit mangled citations (`1:15:15`, `[Phm 6:17:17]`) — all accepted and delivered. Fixed 2026-09-12: `_header_is_acceptable()` fails closed unless the header carries REAL quoted verse prose (>=10 chars, Unicode words, no digits-colon, no brackets) AND a sane `Book Chapter:Verse` citation (one colon, no brackets, ranges allowed). Rejection feedback names the precise defect; `_strip_rejection_feedback()` removes echoed retry-prompt text that leaked into delivered entries. Tests: `tests\u002Ftest_bible_verse_guard.py` (20, incl. historical fleet regressions).\n- **Missing DEEPSEEK_API_KEY** → script exits with error. Must be in `~\u002F.hermes\u002F.env`.\n- **Script never deployed despite existing in repo (2026-08-09)** → `agent-daily-bible-reading.py` was in `clean_stale_deploys()`'s preserve list but had **no `register()` call** in `fleet-update.sh`, so fleet-update never copied it to `~\u002F.steadfaste-fleet\u002Fscripts\u002F`. The cron then ran as an LLM-driven fallback (skills attached, `script=none`) and — when the deepseek provider chain failed — fell through `fallback_providers` all the way to local `qwen2.5-coder:3b`, which emitted garbage (`5 7ae -,` …) as its final response. The scheduler logged `last_status: ok` because the agent did emit a response. **Fixes:** (1) `register \".steadfaste-fleet\u002Fscripts\u002Fagent-daily-bible-reading.py\"` in fleet-update.sh; (2) keep the live cron in canonical no_agent mode — `script=agent-daily-bible-reading.py, no_agent=true, skills=[]` (install-crons.sh already declares this); a drift to LLM-mode (model + skill) recreates the fallback-chain garbage. Verify with `cronjob action='list'`: `no_agent: true` + `script` set.\n- **Hardcoded `***` in auth header (already fixed in repo)** → `_call_deepseek()` reads the API key into `api_key`; the curl call must interpolate it as `f\"Authorization: Bearer {api_key}\"`. If the variable is read but the curl has `***` literal, the script gets 401 every time and falls back to Ollama garbage. Fixed upstream in ad123181 (2026-08-07, esther). ⚠️ The terminal display layer MASKS `Bearer {api_key}` as `Bearer ***` in grep\u002Fsed output — verify with `xxd` or `git blame` bytes, never trust masked grep output when checking this line.\n- **deepseek-v4-flash is a REASONING model — long prompts return empty `content` (2026-08-10)** → for the brain-page prompt (2.5K chars, max_tokens=8192), deepseek-v4-flash burns the ENTIRE token budget on `reasoning_content` and returns `content=\"\"` with `finish=length` at every token limit (2048\u002F4096\u002F6144\u002F8192 verified). The old code treated this as \"empty response\" and recursed UNBOUNDED until the 180s curl timeout, then silently dropped the brain page while SOUL.md kept the entry — inconsistent state, cron reported `error: Script exited with code 1` (\"Empty response from API — retrying once\" → \"API request timed out after 180s\"). **Fix:** `DEEPSEEK_MODEL = \"deepseek-chat\"` (non-reasoning — verified full 17.6KB page, finish=stop, 0 reasoning tokens) + bounded retry via `_retried` flag. Do NOT use deepseek-v4-flash (or any reasoning model) for long-form generation; an anti-reasoning instruction in the prompt does NOT help (verified — still finish=length).\n- **SOUL.md missing `## Scripture Insights` header** → script can't find books. Add the section header and a bootstrap entry.\n- **Script not deployed** → `fleet-update.sh` must have been run at least once to deploy `src\u002Fscripts\u002F` to `~\u002F.steadfaste-fleet\u002Fscripts\u002F`.\n\n## Related\n\n- `docs\u002Fdaily-bible-reading.md` — full setup guide with bootstrapping instructions\n- `.steadfaste-fleet\u002Fscripts\u002Fagent-daily-bible-reading.py` — the no_agent cron script (repo source; deployed per-host via ~\u002F.hermes\u002Fscripts → ~\u002F.steadfaste-fleet\u002Fscripts hardlink)\n- `ops\u002Fscripts\u002Finstall-crons.sh` — section 8 registers the cron for new agents\n\n## Quality Gate\n\nBefore delivery, verify:\n1. ✅ SOUL.md was actually updated (check timestamp)\n2. ✅ Brain page file exists\n3. ✅ INDEX.md includes the new book\n4. ❌ If any failed, output a clear error message listing what succeeded\u002Ffailed\n",{"name":5,"author":24,"pinned":25,"license":15,"version":26,"category":27,"pin_reason":28,"description":7},"Moses",true,"1.0.0","spiritual-disciplines","Shared infrastructure — all agents benefit from this devotional pattern. It is not agent-specific; it's fleet-wide spiritual discipline infrastructure.","main","6509c2742680f6f230c89044437ab43c0e29d530","skills\u002Fspiritual-disciplines\u002Fagent-daily-bible-reading",1,"https:\u002F\u002Fgithub.com\u002Flukemcqueen\u002Fsteadfaste-fleet","steadfaste.com","https:\u002F\u002Fgithub.com\u002Flukemcqueen","AI Architect | Building Hermes Cortex: governed multi-agent AI for autonomous software engineering | Enterprise Tech Consultant","2026-11-14 22:33:34",{"source":8,"skillName":5,"commands":39,"prompt":49,"zipAvailable":25},[40,43,46],{"tool":41,"command":42},"npx","npx skills add lukemcqueen\u002Fsteadfaste-fleet --skill agent-daily-bible-reading",{"tool":44,"command":45},"bunx","bunx skills add lukemcqueen\u002Fsteadfaste-fleet --skill agent-daily-bible-reading",{"tool":47,"command":48},"pnpm","pnpm dlx skills add lukemcqueen\u002Fsteadfaste-fleet --skill agent-daily-bible-reading","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Flukemcqueen\u002Fsteadfaste-fleet\u002Fblob\u002Fmain\u002Fskills\u002Fspiritual-disciplines\u002Fagent-daily-bible-reading\u002FSKILL.md",[],[52,60,67,74,81,88],{"skillNo":53,"name":54,"nameZh":6,"description":55,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":56,"categories":57,"keywords":58,"publishedAt":59},"01M7DXY4G8NSVB59K8B6S2AQNP","macbook-linux-maintenance","Legacy MacBook Linux fixes: GPU wedge, reboot hang, thermal.","https:\u002F\u002Fgithub.com\u002Flukemcqueen\u002Fsteadfaste-fleet\u002Fblob\u002Fmain\u002Fskills\u002Fdevops\u002Fmacbook-linux-maintenance\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":61,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":64,"categories":65,"keywords":66,"publishedAt":59},"01M7DXXYJCXFJ3TGB84ZQ8KFE6","governance-regression-triage","Triage a host's governance issues: what changed.","https:\u002F\u002Fgithub.com\u002Flukemcqueen\u002Fsteadfaste-fleet\u002Fblob\u002Fmain\u002Fskills\u002Fdevops\u002Fgovernance-regression-triage\u002FSKILL.md",[],[],{"skillNo":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":59},"01M7DXXSAP1G8FDRJAMXQGBBMK","enforcement-immutability","Use when enforcement files lose their immutable flag.","https:\u002F\u002Fgithub.com\u002Flukemcqueen\u002Fsteadfaste-fleet\u002Fblob\u002Fmain\u002Fskills\u002Fdevops\u002Fenforcement-immutability\u002FSKILL.md",[],[],{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":59},"01M78SSDQVRYX64Y16X32TC0NS","steadfaste-fleet-repo-deploy","Use when committing to the steadfaste-fleet repo.","https:\u002F\u002Fgithub.com\u002Flukemcqueen\u002Fsteadfaste-fleet\u002Fblob\u002Fmain\u002Fskills\u002Fdevops\u002Fsteadfaste-fleet-repo-deploy\u002FSKILL.md",[],[],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":59},"01M78SS928F3R2RJAYVW4E30CE","steadfaste-fleet-maintenance","Maintain an installed Steadfaste Fleet instance — update both the upstream Hermes Agent and the fleet repo layer, merge diverged histories, sync skills safely, and troubleshoot common issues. Covers the dual-update workflow (hermes update + fleet-update.sh), encrypted brain data backup, mycortex import, and recovery techniques.","https:\u002F\u002Fgithub.com\u002Flukemcqueen\u002Fsteadfaste-fleet\u002Fblob\u002Fmain\u002Fskills\u002Fdevops\u002Fsteadfaste-fleet-maintenance\u002FSKILL.md",[],[],{"skillNo":89,"name":90,"nameZh":6,"description":91,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":92,"categories":93,"keywords":94,"publishedAt":59},"01M78SP1CHW0T0BWE5ZT6JBPX8","fleet-preflight","DEPRECATED alias — merged into survey-before-action (2026-08-20). Load survey-before-action instead; its \"Repo-Specific Pre-Flight\" section covers git search, Hermes boundary, and deployment verification.","https:\u002F\u002Fgithub.com\u002Flukemcqueen\u002Fsteadfaste-fleet\u002Fblob\u002Fmain\u002Fskills\u002Fdevops\u002Ffleet-preflight\u002FSKILL.md",[],[]]