author-voiced publishing pipeline for long-form technical drafts.
freeze every number, quote, and command. steer one dial at a time, check locally, calibrate against the platform meter, and stage an unpublished draft with plates.
SCRIBE
──────────────────────────────────────────────────────────────
source draft + fixed facts ──► 4-dial steering ──► local ranker
(spaceship) │
├─ lint / slop / overlap
├─ factdiff + quote lock
└─ platform meter ──► unpublished draft
curl -fsSL https://raw.githubusercontent.com/colony-technology/scribe/main/install.sh | shinspect first:
curl -fsSLO https://raw.githubusercontent.com/colony-technology/scribe/main/install.sh
less install.sh
sh install.shpin a release:
SCRIBE_VERSION=v0.1.0 sh install.shfrom source:
git clone https://github.com/colony-technology/scribe
cd scribe
./install.sh --from-sourcecheck the local environment first.
scribe doctorprepare a working folder with a draft and a fixed-lines file.
article/
──────────────────────────────────────────────────────────────
source.md stage-1 draft
fixed-text.txt locked titles, captions, and verbatim quotes
plates-manifest.json optional image and equation plate map
run the ratchet:
scribe run \
--source article/source.md \
--fixed article/fixed-text.txt \
--work-dir article/work \
--bar 92stage the finished unpublished draft:
scribe stage \
--md article/work/kept.md \
--draft-id 0 \
--title "your title" \
--manifest article/plates-manifest.jsonscribe never publishes or emails subscribers. it writes an unpublished draft and prints its server readback receipt and secret preview link.
command action
──────────────────────────────────────────────────────────────
scribe doctor check python, generator cli, optional sklearn, and env vars
scribe lint FILE flag slop openers, frames, hedges, em-dashes, and brand case
scribe overlap FILE measure lifted word runs against a reference corpus
scribe factdiff A B verify every number in A survives unchanged in B
scribe rank FILE score voice proximity, burstiness, and hard integrity gates
scribe train train local ranker from labeled human and model folders
scribe scan FILE run direct substack api pangram scan (zero gui)
scribe run run 4-dial spaceship ratchet with crash-proof checkpoints
scribe stage upload plates and write unpublished prosemirror draft
01 write stage-1 draft from verified receipts
02 lock numbers, captions, and quotes in fixed-text.txt
03 scribe lint + scribe factdiff baseline
04 scribe run fan out 4 single-dial spaceship variants per sentence
05 local ranker reject fact drift, lint hits, and weak candidates
06 meter check calibrate against platform detector via direct api
07 scribe stage upload metadata-stripped plates to unpublished draft
08 read back verify server json, zero data uris, publish by hand
single-dial steering and attention locking are adapted from chuanqi sun's spaceship (chuanqisun/spaceship, mit license).
every number, hex constant, cli command, and verbatim quotation stays attention-locked while one axis moves at a time.
dial axis
──────────────────────────────────────────────────────────────
a structure split packed clauses or join with ordinary commas
b order lead with the act, observation, or result
c cut strip textbook framing and restating beats
d plainness direct bench speech, ordinary verbs, zero fluff
pass credentials through your secret loader at runtime. never commit them to a repository.
variable purpose
──────────────────────────────────────────────────────────────
SCRIBE_SUBSTACK_PUB publication subdomain (example: yourpub)
SCRIBE_SUBSTACK_EMAIL account email for direct api login
SCRIBE_SUBSTACK_PASSWORD account password for direct api login
SCRIBE_SCAN_DRAFT_ID private draft id used as the meter scratchpad
SCRIBE_GENERATOR_CMD cli generator binary (default: agy)
SCRIBE_MODEL primary steering model
SCRIBE_RESCUE_MODEL secondary cross-family rescue model
SCRIBE_BRAND_LOWERCASE optional comma list of lowercase brand names to enforce
scribe doctorpython < 3.10 install python 3.10 or newer
generator not found install your cli model runner or set SCRIBE_GENERATOR_CMD
substack env missing load SCRIBE_SUBSTACK_* through your secret runner for scan/stage
sklearn not installed core pipeline works; install scikit-learn only for local ml ranking
python3 -m unittest discover -s tests -v
scripts/check-release-clean.shsee METHOD.md for the exact repeatable operating procedure (short replies vs long articles, fixed-text locking, 4-dial steering, local ranking, direct meter pacing, and read-aloud rules).