Prose-CI: gate + build stage + CI workflow - #2
Open
nickcottrell wants to merge 1 commit into
Open
Conversation
Add the GATE -- the third role beside gen/'s fixer (detic) and instrument
(spuriosity/coupling-tensor). It passes/fails a draft and its exit code is the
CI contract.
checks/ -- deterministic gate, reuses scene_locks (locked prose inviolable,
fail-closed on tamper; style checks see unlocked scenes only)
no-stutter hard: doubled scenes + repeated sentences; allow_repeats exempts
blessed echoes (the keep/kill/LISTEN disposition, as data)
cadence hard: signature tics never recur; warn: filler density + metronomic
sentence-length variance. Shares its tic lexicon with detic.
build/ -- the build STAGE: gate-first, then assemble prologue + chapters
(markers stripped) with front/back matter. Emits a provenance-stamped
edition + build-manifest.json receipt (git sha, gate status, wordcount).
.github/workflows/book.yml -- check -> build -> artifact on every PR. The
open-source contribution gate.
Narrow the vestigial Python `build/` ignore to build/out/ so the build-stage
code is tracked while generated editions stay out.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds the gate (third role beside gen/'s fixer and instrument), a gated build stage that emits a provenance-stamped edition, and a CI workflow (check → build → artifact).
Expected: this PR's check is RED, on purpose
The gate is doing its job — it catches 6 real repeated sentences in
manuscript/layered/. Two are likely intentional echoes (ch11 Kit3, ch06 oracle) → to be blessed inallow_repeats; two are redundant beats (ch02, ch10) → to be edited. Green lands once those verdicts are applied.What's here
checks/— deterministic gate; reusesscene_locks(locked prose inviolable, fail-closed on tamper).no-stutter(hard) +cadence(hard signature tics, warn on filler/metronome). keep/kill/listen viaallow_repeats.build/— gate-first assembly of prologue + chapters (markers stripped) with front/back matter; emitsbuild-manifest.jsonreceipt..github/workflows/book.yml— the contribution gate.🤖 Generated with Claude Code