No description
Find a file
2025-12-27 16:59:15 +00:00
docs Add Mermaid preflight + Dave Factor callouts 2025-12-25 10:22:27 +00:00
examples Add Vanta/IDC business value shadow dossier 2025-12-25 14:57:15 +00:00
site/red-team-shadow-dossiers Add token-gated private dossier upload 2025-12-25 13:27:33 +00:00
src/revoice Add IF.DAVE.BIBLE v1.7 TV series mode + lint 2025-12-27 16:59:15 +00:00
style_bibles Add IF.DAVE.BIBLE v1.7 TV series mode + lint 2025-12-27 16:59:15 +00:00
tools/mermaid Add Mermaid preflight + Dave Factor callouts 2025-12-25 10:22:27 +00:00
upload Upload files to "upload" 2025-12-25 17:23:53 +00:00
.gitignore Add token-gated private dossier upload 2025-12-25 13:27:33 +00:00
pyproject.toml Initial re-voice scaffold + Dave example 2025-12-25 07:42:16 +00:00
README.md Add Mermaid preflight + Dave Factor callouts 2025-12-25 10:22:27 +00:00

re-voice

re-voice turns “any document” into a shadow dossier by applying a versioned style bible (voice + structure + constraints) on top of extracted source text.

This repo is the home for:

  • Style bibles (versioned, citable)
  • A small extraction + dossier generator (CLI + optional API)
  • Example dossiers for review

Quick start (example)

Generate the Dave-style shadow dossier for the included PDF:

PYTHONPATH=src python3 -m revoice generate \
  --style if.dave.v1.2 \
  --input examples/ai-code-guardrails/AI-Code-Guardrails.pdf \
  --output examples/ai-code-guardrails/AI-Code-Guardrails.shadow.dave.md

Preflight the generated Markdown for PDF export (auto-fix Mermaid + lint):

PYTHONPATH=src python3 -m revoice preflight \
  --style if.dave.v1.2 \
  --input examples/ai-code-guardrails/AI-Code-Guardrails.shadow.dave.md \
  --source examples/ai-code-guardrails/AI-Code-Guardrails.pdf

Or install the CLI locally:

python3 -m pip install -e .
revoice generate --style if.dave.v1.2 --input examples/ai-code-guardrails/AI-Code-Guardrails.pdf

What “apply a style bible” means

A style bible is treated as an executable contract:

  • Structure: required sections / scaffolding (e.g. the 9-element stack)
  • Voice constraints: pronouns, tone, taboo phrases, vocabulary swaps
  • Formatting rules: bullets, bold buzzwords, footers, etc.
  • Citations: stable IDs like if://bible/dave/v1.0 to make outputs auditable

Proposed app shape (upload → shadow dossier)

See docs/APP_SPEC.md.

Dev notes

revoice uses external tools for text extraction:

  • pdftotext, pdftoppm (Poppler utils)
  • tesseract (OCR fallback for image-only PDFs)