Skip to content

Add documentation for fact-checking project reports - #190

Open
cmungall wants to merge 4 commits into
mainfrom
claude/elegant-mendel-1o0b7r
Open

cmungall wants to merge 4 commits into
mainfrom
claude/elegant-mendel-1o0b7r

Conversation

@cmungall

@cmungall cmungall commented Dec 1, 2026

Copy link
Copy Markdown
Member

Summary

This PR adds comprehensive documentation for using LRV to fact-check project status reports and similar documents that cite local markdown sources. It includes both a detailed use case guide and a practical how-to guide with step-by-step instructions.

Changes

  • New use case guide (docs/use-cases/project-reports.md): Comprehensive documentation covering:

    • The problem LRV solves for project managers (hallucinated status claims)
    • A complete workflow for drafting, checking, reviewing, and publishing reports
    • The claim marker convention: [source: <REFERENCE> "<EXCERPT>"]
    • Detailed instructions for snapshotting sources (meetings, GitHub issues, Google Docs, metrics)
    • How to run validation checks and interpret results
    • A proposed helper script (report_claims.py) for linting, stripping, and reviewing markers
    • Integration with Claude Code hooks for automated checking
    • Discussion of regex limitations and alternative syntaxes (HTML spans)
    • Proposed future enhancements to LRV
  • New how-to guide (docs/how-to/check-markdown-reports.md): Step-by-step instructions for checking markdown reports against local sources:

    • Setting up the sources/ and reports/ folder structure
    • Writing source markers with the correct syntax and rules
    • Running the validation check with the regex
    • Fixing validation failures
    • Catching malformed markers with the lint step
    • Reviewing claims in a table format
    • Stripping markers for stakeholder distribution
    • Integrating with agent skills and Claude Code hooks
  • Updated documentation index (docs/index.md): Added links to the new guides in the navigation

  • Updated mkdocs configuration (mkdocs.yml): Added the new how-to guide to the navigation structure

Implementation Details

The documentation introduces a practical convention for embedding source citations in markdown reports that can be validated deterministically by LRV's validate text-file command. The guides include:

  • Real working examples with actual LRV output
  • A reusable Python helper script for linting and processing markers
  • Bash scripts for automated checking
  • Clear rules for when and how to use markers
  • Discussion of trade-offs between different approaches (regex vs. HTML spans)
  • Guidance on preventing common mistakes (agent-written sources, edited excerpts, etc.)

The documentation is grounded in actual working examples that have been tested with the current LRV CLI.

Most docs assume literature references (PMID, DOI). This page shows LRV
checking a PM's monthly report against non-literature sources: meeting
notes, Google Docs exports, GitHub issue snapshots and scripted metrics,
all as local markdown files for v1.

Covers a [source: <ref> "<excerpt>"] claim convention checked with the
existing `validate text-file --regex`, snapshot scripts for GitHub issues
and counts, what a pass does and doesn't establish, the regex's silent
skips and a lint for them, a deterministic strip step for the stakeholder
copy, a draft agent skill, and possible future gdoc:/gh: prefixes. All
LRV outputs shown come from real runs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VjkEiwfjfgydYqJ3iMEQkR
Adds why `validate text-file --regex` is today's only route for prose
reports and where it is awkward (#40),
compares the bracket marker with an inline HTML span form, including how
each fares in Google Docs, and points to the span proposal in
#91.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VjkEiwfjfgydYqJ3iMEQkR
Says up front that the PM runs the check through the skill or a Claude
Code PostToolUse hook rather than typing commands, with a tested hook
script. Calls the Google Docs export step clunky and sketches a
gdrive:<fileId> prefix (with a tab for Sheets) in place of the earlier
gdoc: idea.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VjkEiwfjfgydYqJ3iMEQkR
A step-by-step guide for the PM use case that assumes every source is a
local markdown file: lay out sources/, add [source: file:... "..."]
markers, run validate text-file with the marker regex, fix each failure
message, lint for markers the regex skips, wrap both in one script,
review claims beside excerpts, and strip markers for the stakeholder
copy. Ends with extensions (url:, Google Docs, GitHub issues, a built-in
claim syntax). Every file and command was extracted from the page and
run in a fresh folder; outputs shown are real.

Linked from the How-To nav and from the project-reports use case.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VjkEiwfjfgydYqJ3iMEQkR
@claude

claude Bot commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

Claude encountered an error after 1s —— View job


I'll analyze this and get back to you.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants