How BookFoundry writes the last 15%
Anyone can prompt an LLM to draft a book — and book2's design work found "just prompting" gets ~85% of the way there. The last 15% — voice, rhythm, no AI tells — is what BookFoundry, a solo-built book-writing engine, is the machine to finish.
And this is no prompt trick — here is what actually shipped.
BookFoundry (ramparte/bookfoundry) is real machinery, and it produced real output: a 27-letter book manuscript sits in the repo.
So the leverage is real. But the obvious way to earn that last 15% breaks down.
The last 15% needs cleanup filters. But the naive approach thrashes: later filters undo earlier fixes. This was one of the 5 critical failure modes book2 diagnosed.
So how do you order machinery that keeps sabotaging itself? BookFoundry's answer comes from a lineage.
Its design distills three generations: book2 diagnosed the failure modes, book3 solved them, and bookfoundry generalizes them into an 8-layer pipeline — from Preparation through Verification.
The eight layers are real. What makes them work is the order they run in.
Voice acquisition runs before any content generation. And the document-level gradient pass runs strictly last — because it is the most likely to reintroduce AI tells.
But ordering alone can't stop later filters from undoing earlier fixes. That takes a supervisor.
Layer 7's mechanical pipeline (pipeline.py, 748 lines) runs the ReAct pattern across three ordered steps: after Steps 2 and 3 the supervisor detects damage and re-applies fixes that were undone — eliminating the filter-thrashing problem for good.
"Mechanical has the last word — nothing runs after this layer." So who built all this?
This discipline isn't a moonshot. Sam Schillace — the sole author across all 104 commits — built the core engine in an 11-day build burst, from the first commit on 2026-04-12 to 2026-04-23.
If a solo dev can build it in 11 days, the pattern is reachable. Here's the lesson to keep.
The lesson generalizes beyond BookFoundry: to earn the last 15%, order your cleanup deliberately, give the riskiest pass the last word, and put a supervisor over the filters so no fix gets silently undone.
Primary source: ramparte/bookfoundry (checked out at ~/dev/ANext/bookfoundry). Every material claim was independently re-derived from command output in a fresh session.
Feature status: 8-layer pipeline, supervised damage detection, 12 enabled filters, and voice acquisition all IMPLEMENTED; provable editing DOCUMENTED / in-progress.
Commands run:
grep -n -i 'layer' MACHINE-DESIGN.md ; ls recipes/ (8 layers, recipes layer-1…layer-8)sed -n '162,176p' MACHINE-DESIGN.md ; grep -ni 'ReAct|damage|repair_damage' bookfoundry/filters/pipeline.py ; wc -l bookfoundry/filters/pipeline.py (748 lines)grep -B1 'enabled: true' bookfoundry/filters/filter-pipeline.yaml | grep 'name:' ; grep -c ' - name:' … (12 enabled)ls bookfoundry/filters/*.py | grep -v __ | wc -l (18 modules)sed -n '90,100p' MACHINE-DESIGN.md ; ls modes/find bookfoundry -name '*.py' | xargs wc -l | tail -1 ; find tests -name 'test_*.py' | wc -l (19,828 LOC / 71 files / 47 tests)ls docs/letters/ | wc -l (27 letters)git log --format='%an' | sort -u ; git shortlog -sne --all ; git log --format='%ci' --reverse | head -1 (1 author, 104 commits, 2026-04-12 → 2026-04-23)Gaps & caveats: The 85%/15% figures are book2's retrospective design premise (MACHINE-DESIGN.md line 11), not an independent benchmark. book2/book3 source repos were not located under ~/dev/ANext; the three-generations claim is grounded in bookfoundry's own MACHINE-DESIGN.md. "11 days" is the build-burst span; refinement commits continue to 2026-07-06. The pipeline has 12 enabled filters (not "14").
Primary contributor: Sam Schillace — sole author, 104 of 104 commits.