Repository navigation
Craft files v3.4
Drafts made visible. The library already kept a record of how a document
changed and which rule fired when. This release adds metadata to support a visualization and adds the code that draws it.
What is new
--layers renders a piece with its drafts showing through: a serif font for the
words a person typed and a sans font for the words a machine typed, colour on the
sentences both hands wrote, leaning toward blue when more human input and yellow when more agent input, a red rule under words a later draft brought back from an earlier one,
and a mark in the margin that indicates the relative intensity of human/machine collaboration. It
produces PNG sheets at the column measure for review, and one self-contained
HTML file that embeds both faces, makes no external request, and reads on a
phone with no network.
--package builds a piece together with every draft that led to it, the
manifest, the derived record, both renders, and the two faces with their
licences. The package contains the first draft as well as the last, so
publishing any part of it is a decision rather than a side effect of the flag.
Two new skills implement this: draft-provenance derives the per-word record
from a chain of drafts, and text-layers draws it. Both are in skills/,
with the specification they implement in skills/craft-v3.4-spec.md.
The change worth reading
A ruling is now a per-edit fact and never a bare pass-level boolean. No
pipeline event establishes that a writer ruled every change in a pass, so the
library never claims one. It records a ruling where one happened, derives a
tri-state summary for the pass, and always carries the evidence class: whether
the pipeline saw the ruling, a version note asserted it, the writer attested
to it afterwards, or nothing recorded it at all. A boolean cannot tell "the
writer did not rule" from "nobody wrote it down," and the difference matters,
because the flag redistributes authorship in the picture.
The audit table prints before any render, with shares to four places, and two
of its conditions stop the run with a question rather than deriving past them:
a draft identical to the one before it, whichever hand made it, and a pass
labelled human that changed more than half the words. A genuinely small pass
passes with a note.
Fixed
- The tracked-changes reader was silently inert: it parsed the document twice
and marked insertions on the tree it did not walk, so no insertion could
ever have been flagged. A positive fixture and a self-test now prove it, and
the self-test is part of release acceptance. - The scripts read and wrote JSON with no encoding specified, so on Windows
they used the ANSI code page and raised on the record's own characters. - The review-sheet renderer required a Pillow built with libraqm and raised
rather than degrading when it was absent, which is the stock Windows wheel. - The review sheet and the HTML disagreed on the two faces' relative size,
0.955 against the locked 0.907. The locked instance is now the default on
both sides.
Worked example
The ten drafts of an essay called "Rupture," rendered at
https://slopshops.ai/essay-04-rupture/layers/. The re-derived record is
identical to the one that page was built from, token for token. Note that this was generated from a set of 10 drafts that weren't very cleanly maintained. There are some cases where changes made on one version were autosaved before the version was renamed, so this isn't totally accurate, but it is a proof of concept of what it should look like, and will be better if you keep each of your drafts distinct and keep the headers that indicate whether human or agent acted on it and what they did.
Notes
Acceptance is section 7 of skills/craft-v3.4-spec.md; accept.py runs the
mechanical half and passes 75 of 75. The two locked faces, Alegreya and
Recursive, ship with their OFL licences. This release draws a document's
drafts; the grid's own renderer, promised since version three, is still not
built, and the README says so.