Repository navigation
Verse checks: verify every Scripture reference before an answer shows - #4
Merged
Merged
Conversation
Answers now stream a paragraph at a time; each paragraph is checked against real Bible versification (bible-passage-reference-parser) before release. References that exist go to the meta line with a Bible Gateway link; ones that do not (John 3:99, Psalm 151:1) are flagged inline. Cached answers are re-checked on serve. Prompt asks for Book Chapter:Verse citations. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014chyvEAoEJdmVTcdhLm3Hk
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Approved item 1 of 5 (gospelandai burst, Eric 2026-11-24 10:39 "Approve all").
What
lib/verses.js: parses chapter:verse references (bible-passage-reference-parser, MIT) and checks them against real versification.verses: [{ref, osis, url}]on the meta line (Bible Gateway link).api/chat.js: answer streams a paragraph at a time through a gate; nothing reaches the reader unchecked. Cached answers re-checked on serve (idempotent). Prompt asks for Book Chapter:Verse citations.verses(additive; existing clients ignore it). UI rendering of the verse list is not in this PR.Tests
npm test: 27 pass (6 new).Background-job checklist
Not applicable: no job, timer, poller or script; request-path code only.
🤖 Generated with Claude Code
https://claude.ai/code/session_014chyvEAoEJdmVTcdhLm3Hk