Build seeded TeX newspaper press

This commit is contained in:
Meta Vens 2026-08-30 18:30:56 +02:00
commit f7a02bc6c1
12 changed files with 428 additions and 471 deletions

View file

@ -1490,8 +1490,17 @@ Typesetting is delivered at
three-column page with embedded Georgia/Times faces, warm press stock, and
wordless rail/gauge cuts. The frozen Markdown source hash remains unchanged.
Region-based extraction finds all 23 expected copy fragments, and full-page
144-DPI visual QA finds no clipping or overlap. Typesetting is complete and no
longer active work.
144-DPI visual QA finds no clipping or overlap. Preserve it as the verified
Run 60 press baseline.
The operator has now authorized a new press-layout task over the designated
accepted Canopy Ledger edition. Do not rewrite its copy. Build a reusable
random-seed-driven newspaper layout script with bounded typography and press
variation; the same source and seed must reproduce the same layout choices.
Use ImageGen for story-specific woodcuts. Reserve printer's ornaments and
fleurons for reusable decoration rather than narrative illustration. Preserve
the source identity plus generation and visual provenance with the finished
artifact. This task temporarily precedes the Delvehold adapter.
Run 54 exposed one separate upstream publicity defect: a public strategic
activity propagates its channel to private `MemberMemory` outcomes, which is
@ -1502,8 +1511,11 @@ materializing a `NewsIssue`.
1. Preserve immutable accepted Run 60 and Run 59; do not rewrite, recompose, or
resimulate either edition.
2. Preserve the delivered typeset PDF and its frozen-copy verification above.
3. Advance the Delvehold-owned adapter against
2. Preserve the delivered Run 60 PDF and its frozen-copy verification as the
baseline. Typeset the operator-designated accepted Canopy Ledger with the
reusable seeded press-layout machinery described above; verify the artifact
without changing accepted copy.
3. After the press-layout task, advance the Delvehold-owned adapter against
Ghostlight's admitted generic consumer contract. Defer multiple publications
until separately authorized, or follow the operator's next directed work.
Preserve immutable Runs 60 through 63 and do not replay newspaper work for

View file

@ -1688,6 +1688,52 @@ applies the same plain-text boundary to its audit data. Neither assignment
editor, writer, copy desk, Night Editor, renderer, nor receipt persistence can
write world state.
#### Seeded TeX press projection
- **Owner:** the operator-designated frozen newsroom Markdown owns masthead,
edition label, sections, story order, headlines, decks, bylines, and every
paragraph. `tools/typeset_newspaper.py` owns presentation only: parsing that
copy, choosing bounded seed-driven style, emitting TeX and its manifest, and
invoking LuaLaTeX. Woodcut bitmaps and their adjacent prompt sidecars own
illustration provenance, not facts or copy.
- **Inputs:** one frozen Markdown edition, one required integer seed, zero or
more ordered wordless woodcut PNGs, output/TeX/manifest paths, and an optional
LuaLaTeX engine or `--no-compile`. The current Run 61 projection uses seed
1847 and the `boundary-rail-exchange` and `sinkroot-gauge-gallery` cuts. Their
matching prompt files preserve the exact fresh ImageGen requests and record
grayscale, 72-percent threshold, and trim preparation.
- **Outputs:** escaped TeX, a `ghostlight.seeded_tex_press.v1` TOML manifest, and
optionally a compiled PDF. The manifest records source/output/TeX paths,
seed, selected style values, ordered woodcut paths, and SHA-256 digests for
source, TeX, tool, woodcuts, engine, and compiled output. These are press
artifacts, not another newsroom composition or correction surface.
- **Derived state:** the parsed `Edition`, seeded `Style`, page grouping,
ornament choice, image placement and widths, TeX markup, and PDF pagination
are presentation projections. The same seed deterministically selects the
same bounded style. Exact portable PDF reproduction additionally depends on
the named system fonts; source, woodcut, engine, tool, TeX, and output bytes
are bound by the manifest.
- **Forbidden writers:** the press, TeX compiler, manifest, woodcuts, and prompt
sidecars cannot add, remove, summarize, reorder, correct, or reinterpret
newsroom copy; change bylines or story priority; write newsroom checkpoints
or world state; or promote an illustration into evidence. A successful PDF
compile cannot admit missing or altered copy.
- **Shared path:** every press run parses the frozen source, derives one style
from the seed, writes TeX and manifest, then either stops at `--no-compile` or
compiles that exact TeX in a temporary directory and copies the resulting PDF
to the named output. Woodcut order alone selects lead and later placement.
- **Cut line:** the live press path contains no model rewrite, editorial
summarizer, copy-fitting loop, or second content owner. Press variation is
bounded to page geometry, typography, color, rules, fleurons, and illustration
sizing/placement; the former fixed ReportLab front-page renderer is not live.
- **Verification layer:** admission requires source-to-TeX/PDF copy completeness
and order, a same-source/seed derivation check, successful halt-on-error
compilation, rendered-page inspection for clipping and overlap, and matching
manifest/woodcut prompt provenance. LuaLaTeX produces a two-page PDF with
embedded Times New Roman faces. The parser flushes the final article paragraph
at end of file; extracted copy includes the closing `Marshal Eryn Tal`
paragraph, and rendered inspection shows no clipping or overlap.
#### Acceptance-driver per-wave newspaper recovery
- **Owner:** the strategic acceptance driver owns recovery of a missing