The Complete 20-Chapter Map, Live Proof, and 30-Day Field Protocol
Measured results from our SQLite durable harness, a generalized hospitality back-office walkthrough, and the full 6-part workbook blueprint.
Theory earns its keep when executable code confirms its boundaries under stress. Before detailing the complete 20-chapter book map and field protocol, inspect the measured telemetry emitted by running our local @earendil-works/pi-durable constraint harness (pnpm run experiments:report).
Measured Specimen Telemetry from Our Local SQLite Harness
Every claim about durable extraction, holdout oracle read-only isolation, zero-copy conflict forks, and anti-thrash triage in this workbook is backed by an executable test suite running directly against @earendil-works/pi-durable. Generated: 2026-11-23T10:04:58.756Z.
Develop & Extract Constraints (SQLite Reopen)
Recovered 3 typed constraints, 2 ubiquitous-language terms, and 1 decision record after closing and reopening freshware.sqlite.
Holdout Oracle & Tier 0 Boundary Isolation
ToolTask guard allowed candidate writes and oracle reads while blocking 2/2 attempted writes to mounted holdout oracles and standards (c1:OK,c2:OK,c3:ERR,c4:ERR).
Invariant Conflict Escalation via Zero-Copy Fork
Conflicting policy request forked at baseline entry (13), recorded an open escalation record, and left root conversation (1) clean.
4-Class Stressor Triage & Anti-Thrash Gate
Matched 5/5 incident streams (503 outage -> pause, bad scan -> quarantine, repeated 422 -> Tier 2 compile, playbook delta -> Tier 1 compile, invariant breach -> Tier 0 escalation) with 0 compile thrash.
Generalized Field Case: Multi-Location Hospitality Intake
To see all three Freshware phases working together without company-specific branding, consider an accounts-payable pipeline serving multiple independent hospitality kitchens and dining venues:
- Phase 2 · Shared Intent & Oracles: Operators maintain plain-English rules and annotated invoice diagrams inside shared playbook documents alongside a multi-tab spreadsheet workbook and frozen Golden Pin fixtures. Code diffs describe what parsers do;
decisions.jsonlrecords why specific rounding and tax overrides exist. - Phase 1 · Verification-Gated Compilation: Whenever a document’s
sha256content fingerprint changes, the Freshware compiler emits a typed candidate rulebook inside api-durablesandbox wherestandards/andgolden-oracles/are mounted read-only:- Gate 1 (Static & Formal): Validates rulebook schema, regex syntax, live ledger column headers, zero unresolved placeholders, and TLA+ statechart safety laws.
- Gate 2 (Behavioral Dry-Run): Replays real historical invoices with zero spreadsheet or accounting-ledger writes, verifying penny equality and diffing every line output against the currently active bundle.
- Gate 3 (Shadow & Atomic Swap): Promotes the verified candidate atomically while keeping prior versions one step away for instant rollback. Any collision with
no-duplicate-postingorsigned-credit-noteshalts promotion and opens a forked Phase 2 thread.
- Phase 0 · Smart Software Runtime: Live invoice arrival runs purely deterministic state transitions (file locks, idempotent ledger deduplication, unit arithmetic) and invokes focused extraction or calibrated System One decision models only where messy scans or catalog disambiguation demand semantic judgment.
Complete 20-Chapter Workbook Architecture
Chapters 00 through 06 in this repository establish the executable core and four interactive workbenches. The table below maps the full six-part, twenty-chapter expansion path so each future deep dive drops straight into src/content/chapters/ as a standalone .mdx file:
| Part | Chapters | Core Focus | Status |
|---|---|---|---|
| Part I · The Collapse of Static Software | Ch. 01 Stale Software vs. Improvising Agents · Ch. 02 Zero Alignment & Shrinking Middle · Ch. 03 Hyperliminal Reality | Why both frozen code and chat loops fail unattended operations | Core covered in Ch. 00–02 |
| Part II · The First Residue | Ch. 04 Ubiquitous Language (CONTEXT.md) · Ch. 05 Bounded Contexts Under Stress · Ch. 06 BDD Without Glue Tax · Ch. 07 Threads as Source Code | DDD + BDD + Alignment Skills + Residuality Theory + session-spec-verify | Live in Ch. 01, 02, 03 + Lab 01 |
| Part III · The Second Residue | Ch. 08 Macro Phase Separation · Ch. 09 First Futamura Projection · Ch. 10 Smart Software & Fourth Gate · Ch. 11 Reverse-JIT Lowering | Compiling intent once; running calibrated sub-second code + bailouts | Live in Ch. 04 + Lab 03 |
| Part IV · The Freshware Compiler | Ch. 12 Three-Tier Mutation Hygiene · Ch. 13 CEGIS Gates 1–3 · Ch. 14 Conflict-to-Thread Forks | Read-only oracles, ToolTask guards, and zero-copy conflict resolution | Live in Ch. 03 + Lab 02 |
| Part V · Listening to the World | Ch. 15 Four-Class Stressor Taxonomy · Ch. 16 Hysteresis & Anti-Thrash · Ch. 17 Trace-to-Spec Graduation | Separating outages from schema drift and feeding outliers back into specs | Live in Ch. 05 + Lab 04 |
| Part VI · Living Software Factories | Ch. 18 Hospitality Intake Field Case · Ch. 19 Living vs. Dark Factories · Ch. 20 30-Day Field Protocol | Operational rollout, team decision rights, and printable audit worksheets | Live in Ch. 06 + Live Telemetry |
Printable 30-Day Brownfield Conversion Protocol
- Days 1–5 · Freeze Your Brownfield Oracle: Collect 15–30 real production inputs and outputs as read-only Golden Pins. Lock existing regression tests so no compiler agent can alter them.
- Days 6–10 · Run a 60-Minute Residuality Drill: Build a
6 x 6Incidence Matrix against realistic outages, vendor shifts, and rule edits. Identify every boundary where contagion leaks across modules. - Days 11–15 · Distill Language & Tier 0 Invariants: Run
/grill-with-docsandspec-extractto establishCONTEXT.md, modulardocs/specs/, protecteddocs/standards/, and an append-onlydecisions.jsonl. - Days 16–20 · Isolate Tier 2 Adapters: Wrap external APIs and perception models inside Anti-Corruption Layers so schema
422renames never leak into accounting math or core state machines. - Days 21–25 · Lower Hot Branches: Replace slow chat completions on repetitive routing checks with pure code (
Rung 0) or calibrated System One classifiers (Rung 1) wrapped in explicit abstain bands. - Days 26–30 · Wire Gates 1–2 & Stressor Hysteresis: Require static checks plus zero-side-effect golden diffs before any atomic bundle promotion, and gate self-healing behind spatial recurrence and temporal hysteresis.