✅ Sign the outline off¶
Status: tutorial, step 2 of Write a book.
Written for the person who decides what the book is. Assumed: an outline that parses (step 1). Not covered here: changing an outline someone already signed; that is its own workflow.
▶ Step 2: sign the outline off¶
The first of the two human gates. Nothing generates prose from an unsigned outline, and no command can do this for you:
1 2 | |
1 2 3 | |
The first sign also dates your copyright page. If
content/specs/twins/copyright.tex still holds the <year>
placeholder spec init put there, sign writes the current year over
it and says so, once:
1 | |
Every later sign leaves the file alone: a copyright year is the year
the book was first published, not the year it was last rebuilt. Which
year to print after that is your edit to make
(front matter).
sign records a twelve-hex digest of spec.md in a sibling file
(why a sibling), so
status can tell
three states apart:
| State | Exit | Means |
|---|---|---|
signed off at digest x |
0 | the approved outline is the one on disk |
| not signed off | 1 | nobody has approved this outline yet |
| changed since sign-off | 1 | approved at one digest, now another |
That non-zero exit is not a new gate (what it is).
It records one digest per chapter as well, and status names the
chapters that moved. After a reword of ch-cost's brief:
1 2 3 4 | |
Recording per chapter keeps a revision to one chapter from freezing the other fourteen (why).