/hexaemeron:fiatfrom Hexaemeron
Runs a one-shot delivery loop with study, runbook, and per-step implement/audit/prose/push phases until a working prototype exists. Activates only when a Wildcat contributor explicitly invokes Hexaemeron or Fiat delivery.
Ships in Hexaemeron. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Fiat owns the delivery controller, not Hexaemeron's bundled audit or prose skills. Its version, held frontier, next job, and maturity state live in EVOLUTION.md. Read that ledger before suggesting, starting, or resuming work intended to advance Fiat itself.
Current frontier. The ledger above is authoritative. Never substitute Hexaemeron's plugin-wide Solidity frontier for Fiat's own held target.
Synkrisis is outside this controller loop. It compares declared runs and stops there: it cannot select work, file an issue, mutate a repository, or dispatch Fiat. A finding remains evidence for a person to route, never a controller directive.
Six sibling skills carry the loop's content contracts; Fiat runs the loop and defers to them rather than restating their rules. Each slots in as follows:
| Skill | Slots into | Carries |
|---|---|---|
| protasis | study and runbook phases | what a study must answer, what a runbook step must contain, when a topic decomposes first |
| phylax | implement phase | the boundaries a step introduces and the control each needs |
| ephoros | implement phase | what the step must emit once it runs unattended |
| metron | implement phase | refusal of any speed-motivated change without a recorded before and after |
| elenchus | implement phase and audit rounds | any failure surfaced mid-step or mid-round, worked to its cause |
| hypomnema | prose phase | what the step records and where it lives, before the masks run |
Their lints run in every audit round, so meeting them during the step is cheaper than meeting them in the round. The phase notes below say how each one is applied.
Let there be light.
Drive the whole loop from durable controller state, never from conversation history. The controller emits one directive at a time; do the work it names, receipt it, ask for the next one. A phase without a receipt did not happen. Every state-backed command first validates the required version-1 container spine in deterministic order. A missing or wrong-kind container stops with one value-free path-and-kind diagnosis before a reader or writer can traverse it.
Resolve paths from the exact SKILL.md file that activated Fiat. Do not
resolve them from the target repository, the shell's current directory, the
GitHub URL, or a guessed plugin-cache version.
Before the first controller call:
FIAT_SKILL_FILE=<exact path of the active fiat/SKILL.md>
FIAT_SKILL_DIR=<real parent directory of FIAT_SKILL_FILE>
PLUGIN_ROOT=<real directory two levels above FIAT_SKILL_DIR>
PROJECT_ROOT=<real root of the user's target repository>
Fail closed if FIAT_SKILL_DIR/scripts/hexctl.py is not a file. Sibling
skills live at PLUGIN_ROOT/skills/<name>/, which is where protasis,
elenchus, phylax, ephoros, metron and hypomnema resolve from.
Controller:
python3 "$FIAT_SKILL_DIR/scripts/hexctl.py" --dir "$PROJECT_ROOT" <cmd>
Alias it as hexctl mentally; every command below means that invocation.
init creates a dedicated git worktree for the run and works in it for the
whole run. Point --dir at the target repository once, at init, and at the
worktree it prints for everything after that. The operator's checkout is never
checked out, never branched, and never left on a branch the run created, so a
run can start against a checkout somebody is standing in with uncommitted work
of their own.
tmp/fiat/<run branch with separators flattened> under
the repository root. One run maps to one directory. The home ignores itself,
so it never shows in the checkout's git status..hexaemeron/ inside the worktree, beside a
hash-chained ledger, with its own .gitignore so git never sees it. The
checkout keeps one breadcrumb line per live run at .hexaemeron/worktree, so
status and next run there name the tree and the exact --dir to use.git worktree add, each refuse by name before any
state, ledger or breadcrumb is written. There is no in-place fallback.next reports done, capture status, run verify, then
run reset before the final handoff. reset archives the completed run
locally under the checkout it was started from, clears the active state, and
removes the tree when git can remove it without force. A tree holding work is
kept and named instead. Nothing is ever forced. Retirement is not inside
done integrate, because status and verify still have to read the run
after it reports done. A run that was halted and will not resume is retired
the same way: reset accepts a recorded halt, appends one retire ledger
entry naming the phase and the halt reason, and archives under a
halted- name. A run that is merely incomplete is still refused. The self-ignored .hexaemeron/ archive is controller
evidence, not product content; do not stage, commit, or push it.Mutating commands hold a kernel lock for their whole run. Separate runs get
separate worktrees and separate state, so the lock only bites when two agents
share one run's tree; if that happens, hexctl names the holder and either wait
or start a separate run. next, status, and verify remain available while
the writer runs, and a crashed process releases the lock without manual cleanup.
Developers. A half-formed idea and a week to find out whether it holds. Hexaemeron turns it into a study, a runbook of discrete steps, and one pull request per step, with the audit suite run against each before it is pushed.
Security and audit. You want the Pashov suite over a contract and
nothing else. x-ray, solidity-auditor and fizz are vendored whole
and run on their own, without taking on the loop around them.
Marketing. A launch post reads like a machine wrote it. imprimatur
says what is wrong with it across three tiers and vulgate rewrites it
in house voice. Neither needs the controller, and neither needs
installing separately.
Business development. An integration document has to be accurate about what the protocol does and readable by someone who is not an engineer. The study phase produces the first and the prose masks produce the second.
If the user passed status, run hexctl status and report. Stop.
Apply the frontier maturity gate below. This happens before init and
before resuming an existing frontier run.
If another agent hands over a local checkpoint path, run hexctl checkpoint inspect --archive <zip> --sha256 <outer-hex> and hexctl --dir <empty-destination> checkpoint restore --archive <zip> --sha256 <outer-hex>
as the Step checkpoint section of
push-discipline.md directs. Run hexctl verify and hexctl status --json against the returned restore.worktree,
then enter the loop with its own ledger. Never call init or start a fresh ledger for a
restored run. Transfer is local agent-to-agent work; do not ask the user to
choose a destination, approve the transfer or decide whether it is kept.
If .hexaemeron/state.json exists, run hexctl verify, then
hexctl status --json. If its phase is done, run hexctl reset to
archive the completed run, then continue immediately as a new run at step
5. This is recovery for a run whose terminal cleanup was interrupted or
predates the cleanup rule, not the normal start of every run. Do not ask the
user to remove, rename, or approve resetting completed state. If the phase
is not done, this is a resume: enter the loop and treat the validated state
file as canonical.
Otherwise: say exactly Let there be light. and nothing else before it,
run the read-only preflight checks below, then bring the base up to date
before anything is cut from it, then hexctl init --topic "<topic>" --base <ref>, record the post-init receipts, and enter the loop. If a task issue is
already known, use hexctl init --task-issue <url> --topic "<topic>" --base <ref> so the issue is bound before branch creation.
--base defaults to main; honour any branch, repo, or commit the user
named as the starting point. init also names the run branch, printed and
held in state: one integration branch for the whole run, cut from the base.
init cuts it, in the run's own worktree, so nothing needs creating by hand;
push it before the first step. An issue-free automatic name remains
fiat/<topic slug>. A known
issue produces fiat/<issue>-<topic slug>, with the complete issue-bearing
slug limited to 48 characters so the leading number survives truncation.
Pass --run-branch <name> only when the user wants an exact override. With
--task-issue, that override must start with fiat/<issue>-.
With a GitHub task issue, init reads that issue's filing contract before it
creates any state, worktree or branch. On Fiat-Required: 0 it prints one
directive and exits 0: the filer decided the work is one independent pull
request, so do it that way, point the issue at that pull request, and close
it there. A body that declares neither the line nor a carryover block
refuses, naming what to add. On Fiat-Required: 1, init refuses when the
decision moved inside the last fifteen minutes, and states what it observed.
Sync the base first. A run inherits every mistake in the ref it was cut from, and a local checkout that has been sitting is the normal case rather than the exception:
git fetch origin
git status --short # must be clean
git checkout <base> && git merge --ff-only origin/<base>
git rev-parse HEAD # record this; it is the run's real start
Fast-forward only. If the base will not fast-forward, the local branch has commits the remote does not, and that is a question for the user rather than something to merge or rebase past on the way to starting work. If the tree is dirty, stop: uncommitted work belongs to whoever left it there, and it would otherwise ride into the first step's commit under this run's provenance. Cut the run branch from the synced base, and state the starting SHA in the study's constraints so the spec and the branch agree about where the run began. Skipping this is how a study cites a starting ref that is a hundred commits behind the work it is about to build on.
Apply this gate only when the requested run is meant to advance a skill's declared frontier. Ordinary product or repository delivery still uses Fiat without pretending that it changes Fiat or another skill.
EVOLUTION.md and the shared
versioning contract.mature, refuse to start or resume. Do not
suggest another Fiat run. A new run is allowed only after the ledger
records an epoch reopening backed by a new failure, requirement,
dependency change, or equivalent external evidence.open, compare the held next job with current evidence.
If its acceptance condition is already met or another pass would only
produce stylistic, speculative, or interchangeable changes, do not start
the controller. Report that the frontier should close; do not overseason
the skill to manufacture work.Frontier status to mature and Next Fiat job to None -- mature. A normal Fiat delivery does not touch skill
versions or frontier text. The contract also states what every frontier run
owes before it is recorded as done, whichever plugin the skill sits in; read
it there rather than expecting the held job to spell it out.Make step 4 mechanical. Name the ledger at init and the controller holds
the run to it:
hexctl init --topic "<topic>" --base <ref> \
--frontier plugins/<plugin>/skills/<skill>/EVOLUTION.md
init records that file's digest and row count, and done integrate refuses
until it carries exactly one new row valid under the versioning contract: the
axis arithmetic, the digest recomputed over the frontier line the row describes,
the header and the row naming the same version, a generation holding the prior
revision and digest, and a mature status carrying no next job. Each refusal names
which of those failed.
Pass it whenever the run is meant to advance a frontier. Leave it off for
ordinary delivery, where there is no ledger row to owe. If the job turns out not
to close after all, hexctl halt --reason ... puts that on the ledger; the gate
refuses a silent finish, not a recorded stop.
If that frontier run also has a known task issue, add --task-issue <url> to
the same init command. The issue and frontier receipts then share the initial
state transition.
labs_marketplace receipt, acknowledges the contributor,
and names the other marketplace plugins one by one with their likely fit.
Do not install a plugin at this point.git and one authenticated GitHub route work. Either route may itself
supply the required bounded reads. Resolve
the repository from the current directory and the user's named target;
never substitute an organisation or clone a different repository merely
because its name looks related. Every receipt reads GitHub over REST, so a
proxy or environment that serves the REST API without GraphQL can still
receipt a run. A read that never arrived says so in its own words, and it
is not a statement about whether the commits are verified.init observes this controller's own currency and refuses a proven-behind
pin by name, before any run state exists. On that refusal, re-pin through
the host's own installer, refresh, and re-resolve the paths, per
plugin-currency.md; where that cannot
happen, rerun init with --controller-currency-waiver '<reason>', which
records the verdict and reason in the init receipt. Treat an unknown
currency warning, or the warning that this controller is older than a Fiat
checked into the target repository, the same way. Do not run the loop
under a controller you have noticed is behind and said nothing more about:
the rules it does not enforce leave no trace, because a flag it rejects is
indistinguishable from a rule nobody wrote.imprimatur lint (a script
at $PLUGIN_ROOT/skills/imprimatur/scripts/imprimatur.py) and the
vulgate voice mask (rules at $PLUGIN_ROOT/skills/vulgate/SKILL.md).
Nothing to resolve.x-ray,
solidity-auditor, and fizz skills sit under $PLUGIN_ROOT/skills/.
After init, record the bundled ids:
hexctl record security_suite '["hexaemeron:x-ray","hexaemeron:solidity-auditor","hexaemeron:fizz"]'.
If the run will produce no Solidity and no suite applies, record a waiver
instead: hexctl record security_suite '"waived: <reason>"' -- and say so
out loud. Never claim a tool ran when it did not.init --task-issue <url>. Do not
invent an issue. A first task_issue record after initialization is refused
because the stored branch might already be published; an exact repeat of the
initial receipt is a no-op. init reads that issue's Fiat-Required line
and carryover block before it creates anything: a 0 routes to one pull
request, and a malformed contract or a decision that moved inside the window
refuses, so neither costs more than the reads. A run naming no
issue, or a tracker that is not GitHub, records the nulls in the init
receipt and warns; report that gap rather than treating it as a 1.A run is one integration branch off the base and a stack of step branches on
top of it. An issue-free run uses fiat/<topic slug>. An issue-backed run uses
fiat/<issue>-<topic slug>, and an explicit override must keep the exact
fiat/<issue>- prefix. The controller stores that run branch once and prefixes
every derived step branch with it; it never reparses the issue or renames a
stored branch. Take every branch and pull request base from the directive rather
than inventing a name.
main ─── <run branch> the run branch
└── <run branch>-step-1-<slug> PR -> run branch
└── <run branch>-step-2-<slug> PR -> step 1
└── <run branch>-step-3-<slug> PR -> step 2
Each step branches from the step below it and its pull request targets that
same branch, so a reviewer sees one step's diff and nothing else. Step branches
are siblings of the run branch, never nested under it: git cannot hold
fiat/x and fiat/x/step-1 as refs at once.
Nothing merges while the steps run. The stack stays open, each pull request
reviewable on its own, until every step is pushed. Then the integrate phase
merges the stack into the run branch in step order and merges the run branch
into the base exactly once. One merge into main per run, at the end, carrying
the whole delivery.
Repeat until next returns done, halted, blocked, or audit-verdict:
hexctl next
Act on the single directive it prints, then receipt it. The directory:
do | Action | Reference | Receipt |
|---|---|---|---|
study | Research the topic; write the study and checked design record | protasis | done study --artifact <path> --skills <csv> |
runbook | Derive discrete steps from the study | protasis | done runbook --artifact <path> --steps-file <path> |
inoculate | Retain every assigned source-bound parent guard before product editing | elenchus | retain-guard --finding-id <id> --guard-commit <sha>, then done inoculate |
implement | Build the selected design for this source-bound step | protasis | done implement --branch <name> --commit <sha> [--tests <summary>] |
audit-round | One security round: run the suite, shape and log its record, fix on the stacked branch | audit-loop.md | audit-round --findings <n> --audit-filter sapheneia:sapheneia [--log <path>] [--fixes-commit <sha> --elenchus-verdict <value>], plus --phylax-exit, --ephoros-exit and --hypomnema-exit on a non-Solidity round |
close-audit | Last round was clean; close the phase | audit-loop.md | done audit [--fixes-ref <ref>] |
resolve-security-suite | Suite receipt missing; resolve or waive | preflight step 4 | record security_suite ... |
prose | Rewrite every prose artefact and draft the PR text | prose-pass.md | done prose --files <n> --skills <csv> |
push | Stage and commit final changes, push the step branch, open its stacked PR against pr_base, and leave it open | push-discipline.md | done push --pr-url <url> --head-commit <sha> --pr-base <ref> |
merge-step | Merge the named step's PR into the run branch, bottom of the stack first | push-discipline.md | done merge-step --step <n> --merge-commit <sha> |
sync-run | When the base advanced and the integration PR conflicts, preserve the completed product evidence and receipt a signed two-parent merge plus bounded integration revalidation; explicitly acknowledge every whole-side or superseded-intersection path the controller names; supersede a failed composition receipt only with the exact active SHA, a reason and fresh evidence | push-discipline.md | done sync-run --commit <sha> --base-commit <sha> --revalidation .hexaemeron/integration-revalidation.json [--acknowledge-sync-path <path> ...] [--supersede-sync <sha> --reason <text>] |
resolve-versions | For a relation-bearing runbook, check every declared generation against one stable exact base and candidate head without editing the product | push-discipline.md | done resolve-versions |
integrate | Open and merge one PR from the run branch into the base, name what the run leaves unfinished in .hexaemeron/run-pr.md, require a recognised closing reference in that PR when the run records a GitHub task issue, then clean up and close any recorded task issue | push-discipline.md | done integrate --pr-url <url> --merge-commit <sha> [--closed-issue-url <url>] |
audit-verdict | Max rounds hit with findings open | ask the user | done audit --no-further-leads --reason ... or halt --reason ... |
blocked | A receipted study or runbook amendment broke the current step; inspect it, halt, or use the runbook repair below | below | -- |
halted | Report the reason; wait for the user | -- | resume --note ... when cleared |
done | Final report | below | -- |
Read the named reference before working a phase for the first time in a run. The receipt command is the boundary: if it exits non-zero, the phase is not done -- fix what it complained about rather than arguing with it.
After a successful done study receipt, the study is the completed spec. If
the labs_marketplace receipt exists, perform the post-spec reassessment in
wildcat-marketplace.md before asking the
controller for the runbook directive. This is the first point at which a
missing marketplace plugin may be installed. Refresh skills only after all
selected installs finish; resume in a new chat when the host requires one.
Study and runbook. protasis is the content authority: what a study must
answer, what a runbook step must contain, and when one topic needs decomposing
first. Fiat keeps the mechanics. The study goes to .hexaemeron/study.md and
the runbook to .hexaemeron/runbook.md beside .hexaemeron/steps.json, a JSON
list with one entry per step in order, as strings or {"title": ...} objects.
Run the imprimatur lint on each artefact before receipting it, and pass the
skills that ran to the receipt. Repo copies are committed later, in step 1 of
the runbook, after the prose pass.
Every newly initialised run records contracts.design_evidence and owes
.hexaemeron/design-evidence.json. Surveyor writes that closed Protasis record
beside its report files. done study invokes Protasis at design-lock, refuses
unresolved selection evidence, failed hard gates, a dominated selection or an
unsupported tie-break, and receipts the record digest, selected candidate and
the exact report digests consumed. The runbook carries one matching
design-lock block before Step 1. done runbook refuses a missing or mismatched
block and checks evidence due at step:1 before opening it.
Before done push opens the next step, Fiat runs the same checker at that
step:N. The final done merge-step checks integration after assembling the
stack on the run branch and before next can authorise the base integration.
A conformance result may therefore remain pending only with its exact resolver,
future report path and named stop point; it cannot be guessed early or pass its
boundary late. Mason and Warden receive the fixed record path, digest and
selected candidate. verify replays every transition and compares every
consumed report digest. Record drift, report drift, failed due evidence and a
changed selection refuse. A run whose initial state lacks the contract marker
keeps the old receipt and packet shapes. No legacy evidence is inferred.
The design record is immutable after done study. An ordinary study or
runbook amendment cannot change its candidate, criteria or selection. A change
to any of those requires an explicit future design-amendment transition; until
one exists, halt and start a new run rather than editing the receipted record.
A runbook may carry Protasis's optional closed version-relations block.
init records the exact commit created in the run worktree in its hash-chained
initial event without adding it to controller state or worker packets. When a
block is present, done runbook requires that init evidence to match the
stable local branch point and reads each declared EVOLUTION.md and sibling
SKILL.md as a bounded regular Git blob at that commit. It records one
all-target fiat-version-relations/v1 anchor: the exact block and runbook
digests, commit, version counters, frontier tuple digests, ledger blob, and
matching skill metadata blob. The generation-plus-one value shown in status
and delegated packets is a projection from that anchor. It is not a reservation
and does not authorise a product edit. Relation-bearing Mason, Warden, and
Scribe packets carry the same anchor, exact commit, projection, and an explicit
null resolution until a later transition has produced one.
After the step stack closes, done resolve-versions reads the remote base and
run refs twice around bounded exact-object reads. By default it accepts only generation
drift under the anchored frontier tuple. The candidate must extend the exact
base history by one matching generation row per declared target and carry the
same version in each sibling SKILL.md. A base advance requires the existing
signed [product, base] sync and complete path revalidation before the check.
After explicit operator approval, done resolve-versions --accept-evolution-base <full-sha> --recovery-authority <operator> --reason <reason> can recover across an evolution advance. The version-2 receipt binds
that declaration to the exact base and candidate commits and retains the
original runbook anchor. The checker replays the original history prefix,
refuses an epoch change, and requires the candidate to preserve the current
base frontier and add exactly one generation. A moved base or candidate needs
a fresh declaration and revalidation; the declaration cannot be reused for another
composition. Authority is an operator declaration, not authenticated identity.
The all-target fiat-version-resolution/v1 receipt is append-only, keeps at
most eight observations, and uses a subject-labelled pending record across the
ledger and state write windows. It observes product bytes and never changes
them.
next withholds integration until the newest receipt still matches the exact
runbook, base, candidate, ledgers, rows, and skill metadata. A literal-only
run keeps the earlier path and performs none of these reads. At terminal
receipt, the actual integration merge must replay the resolved
[base, candidate] parents in that order. Fiat then refuses if the base moved
again; GitHub does not offer an atomic expected-base lock.
An absent block takes the pre-existing literal path: the runbook receipt and
worker directive shapes stay unchanged, no version target is inferred, and no
Git version evidence is read. A malformed stored anchor, changed source block,
missing or non-regular object, metadata mismatch, or reconstructed digest
fault refuses status, next, and verification. Recovery is to restore the
exact receipted source and anchor objects or halt; editing state or accepting a
partial target set is not recovery.
Protasis's public load_checked_inventory operation is the sole ingestion path
for a known-failure inventory. An explicit absent result means neither the
study inventory nor the runbook assignment surface exists; any attempted,
malformed or partial surface stays a named K000 through K012 refusal. A clean
result is one closed protasis-known-failure-inventory-capture/v1 object bound
to the exact study and runbook bytes, canonical inventory digest, checked
source views, complete finding declarations, no-known claim and Step-sorted
assignments. done runbook stores that capture unchanged and opens the first
Step at inoculate. done push opens every later Step at the same boundary.
A runbook receipt with no capture keeps the earlier implementation-first path;
Fiat never fabricates an inventory or inoculation receipt for it.
That loader/capture rule and the loop's existing Step action are one
inoculate-phase directive, not two independent instructions. The reviewed
fixture has exactly nine Fiat bindings: the two new bindings join this
paragraph and the loop row to that same directive. The complete corpus has
seventeen bindings, nine questions and fourteen mutations. Model evidence is
disabled. The bound measurement and parity artefacts are frozen historical
bytes only, not current evidence. Never run agent_instruction.py measure,
agent_instruction.py parity, a tokenizer, a recorded-family adapter, Ollama
or a model process for this corpus.
done study and done runbook refuse a Markdown link or runbook: pointer
that is not an absolute URL or an in-page anchor, then run the bundled
Hypomnema check and refuse any finding, before the digest is pinned;
amend study and amend runbook check the bytes an amendment appends the
same way. Cite a repository path in a code span or pin it to a commit.
Amending receipted specifications. After the study and runbook receipts exist, and only while build steps are active, append one final dated Protasis amendment to the receipted study and run:
hexctl amend study --artifact <candidate>
The candidate keeps the currently receipted study bytes as its exact prefix.
Its suffix is one ### Amendment -- YYYY-MM-DD block with What changed,
Why, Steps touched, and Still holding fields, in that order. The last
field contains one exact verdict for every current or pending step:
Step N: entry holds|broken; exit holds|broken. The command first checks the
exact captured candidate with the bundled Protasis checker. Only after that
result exits clean does Fiat discover the exact receipted prefix and consume
the touched-step and holding-verdict values that join the accepted suffix to
controller state. It then copies the captured candidate bytes
to the canonical study path through a recoverable write-ahead transaction,
records the prior, new, and amendment digests with bounded step verdicts in
state and the ledger, and re-pins the study receipt. A pending transaction
blocks every other controller command; rerun amend study against the
canonical study to finish or roll back the labelled transition. The command
does not establish that the amendment is true or that a holding verdict is
correct.
Arbitrary drift, an edited prefix, a malformed block, incomplete or ambiguous
step verdicts, a checker failure, an unsafe or oversized path, and an attempt
outside the steps phase leave the current receipt unchanged. A broken entry or
exit verdict for the current step is recorded, then next returns a durable
blocked directive and step receipts refuse to advance. Inspect the amendment,
halt the run, or use a separately specified runbook-repair transition; do not
resume dependent work by editing state or repeating done study.
A runbook correction uses the same dated four-field suffix and runs:
hexctl amend runbook --artifact <candidate>
The candidate keeps the currently receipted runbook bytes as its exact prefix.
What changed consists only of one or more complete replacement clauses in
the form Complete replacement Exit: <full value>, using one of the six
runbook field names. A changed Exit includes its replacement command, and a
changed Tests field includes its complete runner contract. The suffix may not
add, remove, duplicate, reorder, renumber or rename a step. It may touch only
current or pending steps and carries one exact entry-and-exit verdict for every
unbuilt step.
The receipt records the prior, new and amendment digests, exact amendment byte
offsets, date, touched steps, ordered verdicts, replacement field names and the
current study digest under amend:runbook. verify, status and delegated
packet construction recompute both receipted artefacts and the amendment
history. This establishes byte continuity, shape and carriage. It does not
establish that a replacement is semantically complete, correct, or likely to
pass.
Each write-ahead marker names either study or runbook. One pending subject
blocks every other command until its exact amend command finishes or rolls it
back. If both markers exist, recovery refuses without removing either. Study
markers written before the subject field existed remain readable as study
transactions.
Mason and Warden receive the same effective step source: one numbered and titled baseline block, its digest, and every current-study-bound amendment that names the step, in receipt order with exact bytes and digests. The last baseline step ends before the first real amendment heading. Fenced decoys, unrelated or stale amendments, mismatched history and later unreceipted bytes do not enter the packet.
A broken runbook verdict blocks the current step. A holding runbook amendment
clears a broken study verdict only when it names the current step, carries at
least one complete replacement field and is bound to the current study digest.
Each study amendment records one decision per distinct runbook amendment
effective under the prior digest: retained when every unbuilt step the
amendment touches reads entry holds and exit holds in the new verdicts, and
displaced otherwise; a touched step already completed takes no verdict and
counts as holding. The packet
builders admit an amendment whose recorded study digest, followed through
retained decisions in study-amendment order, reaches the current digest. A
displaced amendment leaves the packet and its step stays blocked until a new
runbook amendment bound to the current study digest is receipted; verify
recomputes every recorded decision from the two receipt histories. Recovery
remains another checked amendment or an explicit halt; state and ledger history
are not edited to manufacture a holding result.
Inoculation. A capture-aware Step begins before product editing. next
delegates Mason the exact study and runbook digests, immutable capture, assigned
entries, closed guard paths and reporter contracts, exact Step branch and
parent, and fixed evidence directory. A zero-assigned Step keeps the existing
bounded fiat-no-known-findings/v1 record. A packet without guard_commit
authorises only atomic create-only creation of the exact Step branch from
step_parent. If that branch already exists at any tip, Mason makes no edit,
reset, repoint or checkout and requests a fresh next packet. An assigned Step
instead uses the successor-only command:
hexctl retain-guard --finding-id <assigned-id> --guard-commit <full-object-id>
It accepts no caller-selected path, command, format or report option. It is a
mutating controller command dispatched only under the exclusive writer lock,
which is held across state load, runner execution, every recheck, report and
manifest publication, and final directory fsync. Retention never commits
controller state or writes a receipt. A success prints only one closed
fiat-guard-retention-result/v1 object naming the id, retained-report and
manifest path/digest pairs, and created or already-retained disposition.
Fiat derives the unique UTF-8-byte-sorted Step-wide union of assigned guard
paths. It requires the current exact Step branch and physical managed worktree,
the supplied guard commit at both HEAD and the branch tip, the recorded Step
parent as its sole parent, and a locally valid signature under pinned verifier
configuration. Neither provenance trailer is mandatory. Native replacement-free
Git reads must show precisely the union as A or M regular blobs in mode
100644 or 100755. Fiat reads every raw blob object without filters or
filesystem fallback and binds ordered path,
status, mode, object id, bytes and SHA-256 rows. A Step has at most 128 assigned
findings and 4,096 union paths; a path is at most 1,024 UTF-8 bytes; one blob is
at most 2,097,152 bytes and their sum at most 16,777,216 bytes; a command is at
most 4,096 UTF-8 bytes and 16 arguments.
An inherited audit log and its derived synopsis may be a clean committed pair or exactly the two non-ignored untracked rows. A committed pair must match its native HEAD's raw blobs and modes and the exact stage-zero index rows. Fiat checks those bindings again after reading the files and refuses a changed HEAD, blob or index. Staged, mixed and ignored untracked pairs refuse. Neither form is a guard path; the operation never stages, changes, copies, removes or follows either file.
Every guarded operation independently opens each bounded single-link regular
leaf through stable no-follow directory descriptors, proves named-leaf and
descriptor identity stable for that operation, and matches the complete
receipt-bound log prefix and current synopsis bytes and digests. It never
compares device, inode or times across operations or processes, and persists
no audit identity, timestamp observation or marker. Both forms remain available
from successor Step entry through successful done inoculate; in the current
pre-contract live run the exception ends after bootstrap guard validation
immediately before the recorded implement transition.
Fiat passes Elenchus only the exact parent, complete raw blob rows, closed argv,
format and logical report file. Elenchus owns detached-parent overlay,
shell-free execution, fresh stable no-follow report parsing, unchanged
four-state classification and return of exact raw bytes, counters and runner
exit before cleanup. Fiat owns every durable consequence. It admits only exact
integer counters with complete is true, at least one executed test and
assertion failure, and zero errors and skips beside guarded; unittest also
requires zero expected failures and unexpected successes and exact raw-to-
normalized counter equality.
Final paths are controller-derived beneath
.hexaemeron/steps/<n>/inoculation/: one report and one canonical strict
elenchus-guard-manifest/v1 per assigned id. Fiat publishes the exact raw
report first and the manifest last through exclusive staging leaves, file
fsync, atomic no-replace publication and directory fsync, revalidating all
bindings before each authority-bearing write. A report orphan remains
recoverable and incomplete. Before manifest publication, a canonical pending
marker binds both final digests and the exact admitted runner exit and counters.
On restart Fiat validates that marker, its retained report and the current
immutable context before loading or calling the runner. If the bound manifest
is absent, Fiat reconstructs its exact canonical bytes, requires the marker
digest and publishes it no-replace; an existing manifest must already match.
The manifest is the evidence completion point, but lock-free readers expose it
only after a positive completion record is durable and the pending gate is
retired. An exact completed pair is replayed idempotently without a runner or
mutation. Missing completed evidence or any mismatch refuses without runner or
repair mutation.
The canonical manifest is at most 8,388,608 bytes and has strict JSON depth at
most 32. It has exactly schema, finding_id, consuming_step,
controller_run_id, worktree_identity, capture, step_parent,
guard_commit, changed_paths, guard_blobs, test_command, test_argv,
report_format, report_file, retained_report, runner_exit, counters,
and verdict. Its nested objects and arrays are closed, ordered and unique;
booleans in integer fields, non-finite numbers, duplicate or unknown keys,
invalid UTF-8 and trailing data refuse. Canonical bytes use sorted ASCII JSON
with compact separators and exactly one final LF, which the digest includes.
status --json and next remain lock-free readers. From one atomic state
snapshot they inspect stable no-follow final pairs, recheck manifest identity
and state generation, and return uniquely sorted completed and remaining ids
without report content. They never expose a stage or report-only leaf as
authority. Partial evidence may resume after restart only in the same physical
managed worktree and controller run with the same immutable context and common
guard commit. Pending recovery uses only its bound report, runner exit and
counters; it never samples a second execution. Foreign, mixed, stale or
malformed evidence refuses. Once
implementation starts, read-only replay requires that guard commit only as an
ancestor and never moves the branch tip backwards.
done inoculate takes no phase-specific options and holds the same writer lock
through complete revalidation and receipt commit. It requires every assigned
id to have one admissible immutable pair on one common guard tip, then writes
the closed fiat-known-failure-inoculation/v1 receipt with uniquely sorted
three-field manifest references and opens implement on that same branch.
The receipt has exactly schema, step, study_sha256, runbook_sha256,
inventory_sha256, step_parent, assigned_ids, source_views,
no_known_findings, and guard_manifests; each manifest reference has exactly
finding_id, path, and sha256. A zero-assigned Step instead supplies the
bounded stable fiat-no-known-findings/v1 record with exactly schema,
study_sha256, inventory_sha256, source_views, consuming_step, and
assertion, whose assertion is no-known-findings-for-step.
Empty, partial, duplicate, foreign, mixed or stale evidence leaves controller
state, ledger, transitions and checkpoints unchanged. A runbook receipt with no
capture remains on its recorded implementation-first path. The current live
pre-contract run validates its exact receipt-bound study and runbook prefixes
and current append-only candidates through the checked loader. It requires both
clean projections' inventory_sha256, source_views, findings,
no_known_findings, and assignments to equal each other and the immutable
seven-finding assignment, records only bounded bootstrap identity and results,
and fabricates no capture, manifest reference or inoculation receipt.
Recovery and completion are one projection. status --json, next, verify,
a checkpoint capsule and every delegated brief rebuild the same closed
fiat-known-failure-recovery/v1 object: schema, step, phase, the study,
runbook and inventory digests, the step parent, the assigned, completed and
remaining ids, one uniquely sorted three-field reference per guard and
final-green manifest at its controller-derived path, the declared suite exits,
and the explicit no-known-findings claim or null. A missing, reordered,
duplicated, stale or foreign reference refuses by name and changes no byte. An
observer reports an incomplete join and every receipt refuses it, because
status is what somebody runs to find out what is wrong.
done implement closes the red interval. For a capture-aware Step it runs each
assigned finding's declared green_command on the exact implementation head,
admits only a complete positive run with no assertion failure, error, skip,
expected failure or unexpected success beside a zero runner exit, retains the
raw report and publishes one canonical fiat-final-green-manifest/v1 per id
holding exactly schema, finding_id, consuming_step, controller_run_id,
worktree_identity, capture, final_commit, green_command, green_argv,
report_format, report_file, retained_report, runner_exit, counters
and admission. That admission is Fiat's own, because none of Elenchus's four
verdicts says a fixed tree came back green. The report is published first and
the manifest last with no replacement, so the manifest is the completion point
and a report-only leaf is an id still owing evidence; a later pass discovers
the published pair instead of sampling a second execution. A green command
names its own report through exactly one --report pair, and its interpreter
resolves to the running one rather than through a caller's PATH.
The same receipt binds each repository suite the run worktree's check map
declares under root-suite and hexaemeron-suite, with its exact argv,
working directory and zero exit. Discovery is fail-open and the answer is not:
a declared suite that cannot be run or comes back non-zero refuses before the
receipt, and a repository declaring neither binds no suite row, which a strict
read past implementation then refuses. A recorded exit is what the controller
observed, not a claim about what the suite covers.
Audit, prose, push, step completion and a checkpoint hand-off each refuse while an assigned id lacks that evidence, so a red guard commit reaches none of them. A capsule carries the projection exactly when its captured Step has a capture, and restore checks it against the captured state and the capsule's own manifest digests. Legacy states stay readable: a run with no receipted capture carries no projection, no suite row and no final-green field, and verification refuses one that appears.
Implementation. Build the candidate named by the checked design receipt;
the design choice is not reopened inside a step. The step runs under the phase skills: phylax names
the boundaries the step introduces and the control each needs, ephoros names
what it must emit once it runs unattended, metron refuses any change made in
the name of speed without a recorded before and after, and a failure worked
mid-step follows elenchus rather than a guess. Their lints run in every
audit round, so meeting them here is cheaper than meeting them there. The
runbook step and selected design are the yardsticks: reread both before
declaring the step complete, and do not add anything they do not ask for.
The implement directive carries branch and branch_from. A capture-aware
directive also carries the full step_parent; an assigned-finding receipt adds
its exact guard commit, while a zero-assigned receipt does not. Continue on the
already-checked-out Step branch at that receipt's exact tip: the guard commit
for an assigned Step or step_parent for a zero-assigned Step. Do not recreate
it from the parent or resolve a symbolic ref again. A pre-capture directive
still cuts from branch_from. Step 1 chains
from the run branch and every later step from the pushed step below it, so each
step builds on the reviewed tree below without waiting for a merge.
Audit. elenchus works any failure a round surfaces down to its cause.
The longest phase by design. One round is the full suite: x-ray
first, then solidity-auditor; when the step ships Solidity under Foundry or
Hardhat, fizz builds or refreshes the invariant fuzz suite and its campaign
results count as part of the round. Read each skill's SKILL.md from
$PLUGIN_ROOT/skills/<name>/ and follow it. Every finding is logged
to the audit file, fixes committed to the stacked branch. Warden receives the
exact source-bound runbook step and uses its test command, report format, and
report file for any fix. A round supplying --fixes-commit also supplies one
exact --elenchus-verdict: guarded, unguarded, passed, or
inconclusive. Fiat checks and records that declaration; it does not attest
the report bytes, and this generation does not block a non-guarded value.
Record the round even when it finds nothing. Before append, apply Sapheneia's
bounded audit-record operation, retain the protected evidence and host shape,
and give audit-round the exact checked operator declaration
--audit-filter sapheneia:sapheneia. The controller records the declaration;
it does not prove the semantic pass. Zero findings closes the loop; a genuine
judgement that the remaining leads are not worth another round closes it with
--no-further-leads --reason. Never report a round that did not run.
Prose. hypomnema decides what this step needs recorded and where it
goes, before the masks run. Every prose artefact in scope plus the PR title and
body, through
the imprimatur lint first and the vulgate mask second, content held
constant. Both are bundled: run the lint script by path, read the mask's
SKILL.md by path and apply it. When the run has a task issue, put GitHub's
recognised closing syntax for that exact issue in the run-level pull-request
body and draft its closing comment here under the repository's Sapheneia,
Imprimatur, Vulgate, Imprimatur publication order. A link, an issue number, or
prose saying that no work remains does not replace Closes owner/repository#number. Fill the exact integration URL and status, then rerun
that whole order immediately before posting. The receipt refuses a skills list
missing either configured id.
Any issue the run files follows the target repository's ordinary issue
publication contract; carryover and phase-of-origin create no exception. In
wildcat-finance/skills, that means one of the five canonical queue titles
with its exact queue label and required body opening, followed by exactly one
Fiat-Required line and one fenced carryover block. Run the root publication
order over the complete candidate, then hexctl issue-check with its exact
title, body, and labels before filing and with its issue URL after filing.
Push. Stage and commit every intended final change with a valid local signature. Neither provenance trailer is mandatory. Author, committer, co-author, byline, and opener are attribution evidence rather than admission classes. Fiat records author and committer separately; that record does not prove publication authority or which account pushed the ref. Without explicit authority and a repository-valid publication route, stop before the push or pull request and hand off the exact branch or patch.
Before the first receipt of a newly added local OpenPGP commit, Fiat checks
that the committer email appears in the verified signing key's user IDs.
done implement, a fixes-bearing audit-round, fixes-bearing done audit,
and done prose check the commits they can see at that point. done prose
checks its current receipted head; the future prose commit is checked at push.
This local GitHub-readiness preflight is separate from cryptographic signature
admission and does not prove the email belongs to a GitHub account. Historical
receipts retain signature-only replay. SSH and X.509 signatures have no GPG
user ID relation to check. Push still requires GitHub verification of every
new exact commit.
For a legacy pre-push Step whose signed receipt is GitHub-unverified, rewrite
the Step branch to tree-identical commits and run hexctl --dir <run-worktree> supersede-commit --old <receipted-full-sha> --new <replacement-full-sha> for
each affected implementation or audit-fixes commit in original receipt order.
The command checks the original ledger event, both Git trees, the rewritten
parent order, the replacement's local signature and committer-key readiness,
and GitHub verification for the exact replacement SHA before appending
fiat-commit-supersession/v1. It keeps every earlier state receipt and ledger
event unchanged. verify, audit closure, push, checkpoint coverage and archive
read the effective SHAs; raw receipt-to-ledger comparisons still use the old
SHAs. A duplicate, changed tree, unreachable or unverified replacement, or an
old SHA still on the Step branch refuses. If the append is interrupted, rerun
the same command with the same two SHAs; its pending record completes at most
one ledger event. A different pair cannot take over that recovery.
Then push the step branch and open its pull request against the pr_base the
directive names, using the prepared prose. Read the exact pull-request body
and topology back through the authenticated local adapter or connector before
receipting. Wait for its gates but leave it open: a step's work lands in the
integrate phase, not here. Do not add an issue reference unless one was
independently supplied or required by higher-priority repository policy. Receipt
the head SHA in full, from git rev-parse HEAD, with the PR URL and PR base.
If the pull request comes back already merged into pr_base, the step is
adopted rather than refused. Two checks admit it: the recorded head has to
still equal the pull request head, which the ordinary head check already
settles first, and the merge commit has to be reachable from the recorded
base. A merge still in its base is one this run did not perform; a merge that
has left it means the base was rewritten underneath, which stays refused, and
an unanswered graph query refuses as unknown rather than as a denial. The
receipt carries an early_merge block naming the merge, the ref it was
reachable from and that ref's observed tip, and the merge earns GitHub
verification like any other commit the run receipts. Adoption is detected, not
requested: a stacked step still refuses --merge-commit, so there is no flag
to know about.
Then run hexctl --dir <run-worktree> checkpoint archive to save the complete
step checkpoint in the fixed local checkpoint store. The Step checkpoint
section of push-discipline.md names the
checkpoint inspect and checkpoint restore --archive receiver commands and
the direct hand-off values. This is mandatory controller work: do not ask the
user whether to save it, where to put it or whether it may be skipped. Keep the
outer SHA-256, manifest SHA-256 and snapshot_id outside the archive.
For complete history beyond the ZIP bundle limit, use
checkpoint archive --format directory. The
directory carrier keeps the same checks
with a 256 GiB bundle limit. Its outer_sha256 names the exact root manifest
bytes, which bind every member; hand that digest over outside the directory.
A task issue may belong to another repository. Its exact URL stays in
receipts.task_issue and supplies the normal filing and closure checks.
The run anchor hashes that URL as an external task; the target's own
origin remains the delivery repository. Same-repository issues keep their
existing number-only anchor.
Integrate. Once every step is pushed, the stack comes down in order.
Before each merge, an unchanged waiting head passes without a relation process.
An unequal waiting tip passes topology only when a bounded native
merge-base --is-ancestor says its receipted head remains in history; a
non-ancestor or an unanswered relation refuses without asserting an unobserved
cause. The current step still earns complete live-range local signature,
GitHub verification, author, and committer evidence under
effective_push. Ancestry supplies none of it and never rewrites the original
push receipt.
A waiting branch that gained a commit another step's push receipt owns refuses
before any write. One bounded native gained-range read per moved tip settles
that without a GitHub read, an adopted step owns nothing there, an
unanswerable range refuses as unknown, and done merge-step intersects the
same ownership set with the repaired range it receipts.
Before the run is recorded as integrated, every primary author its push
receipts recorded has to remain attributable from the recorded merge, and the
receipt records which mechanism carried it. The separately recorded committer
is publication evidence, not an authorship identity in this merge check.
A step adopted at push does not merge again. It is completed from its recorded
adoption, and only when that adopted merge is reachable from the run branch: an
early merge lands in the base the pull request targeted, which above the bottom
of the stack is the step below, so a complete record is not evidence that the
run branch carries the work. Whether it does depends on which of the two merges
happened first. A step whose work is not there refuses, names where its merge
did land, and says a replacement pull request is required; the closed pull
request cannot supply the missing merge. --merge-commit must name the exact
adopted merge, and the receipt records which mechanism satisfied the step.
Retarget the next step's pull request onto the run branch, then merge this
step's, and delete no branch here; receipt each merge before starting the next.
Deleting a merged step's branch closes the pull request stacked on it, and a
closed pull request whose base ref is gone can be neither reopened nor
retargeted, so the order is not a preference. With the stack landed, open one
pull request from the run branch into the recorded base. If task_issue names
a GitHub issue, use the integrate directive's exact Closes owner/repository#number line in that pull request body and read the remote body
back before merge. done integrate reads the merged pull request and refuses
without a recognised close, fix, or resolve form for that exact issue;
mentions, links, quoted text and code examples do not satisfy the gate. When a run was pinned
to an exact starting commit, that commit remains the starting-base evidence and
config.git.base names the branch the run integrates into; the directive,
sync receipt and final receipt keep both identities. If concurrent work
advanced the base and that pull request conflicts, merge the exact remote base
tip into the run branch once with a signed two-parent commit whose first parent
is the final recorded step merge, push it, require GitHub valid verification,
and receipt it with done sync-run; never rebase or rewrite the signed stack.
Do not settle a shared registry by taking an entire ours or theirs side.
Inspect every path the sync resolution guard names and repeat
--acknowledge-sync-path for the controller's exact sorted set. That receipt
records inspection only; the bounded integration revalidation remains
mandatory.
When a run assigns decision records, Hypomnema remains the allocation
authority. Build its canonical fiat-decision-assignments/v1 report from the
exact assignment base and unnumbered composition, apply only that report, and
sign the candidate with one ADR-Assignment-Base: <base> trailer followed by
the report's ordered ADR-Assignment: adr/<slug>=ADR-NNN trailers. Run
hexctl verify-decision-assignments --report <path> --candidate <sha> --candidate-ref <full-ref> before publication. This command is read-only: it
replays Hypomnema, checks the exact result tree, input and output blobs, path
delta, signature, trailer order, moving ref, and clean worktree, then emits one
fiat-decision-assignment-composition/v1 receipt. A sync records it with
done sync-run --decision-assignments <path>. A replacement recomputes the
report and must be a sibling of the superseded assignment, never its
descendant. The old receipt stays in the bounded supersession history.
For a self-hosting run whose init-pinned controller predates that dedicated
flag, use the checked-in read-only verifier but do not replace the active
controller. Record its exact canonical JSON once under the versioned generic
key fiat_decision_assignments_v1; this bootstrap key does not authorise a
later run to omit done sync-run --decision-assignments.
Base advancement does not invalidate the signed implementation or completed
audit. The sync receipt keeps their exact-tree digests and adds a bounded
integration-revalidation record over the computed upstream, product and overlap
path sets. Version 1 keeps its exact individual-path form under a 4,096-path limit.
Version 2 may cover a larger required set only through a source-registered
generator prefix: the controller proves the complete final manifest and Git
tree, while every path outside that prefix remains individually listed and
checked under the same 4,096-path limit. Reopen only evidence whose declared dependency changed or whose
revalidation failed. A base advance by itself does not authorise a carryover,
another study, or another product audit. If a pushed sync exposes a failed
composition check, repair only that surface, reconstruct the two-parent merge
from the same signed product head, and supersede the active sync by its exact
SHA with a bounded reason and fresh revalidation. Publish the sibling merge
only with a force-with-lease pinned to that active SHA; bare force and any
other rewritten ref remain forbidden. Fiat retains the failed sync and permits
only the replacement to integrate.
For a runbook carrying version-relations, resolve all declared targets after
the active sync, if any, and before asking GitHub to merge. If a later base or
run-head observation makes that receipt stale, sync and revalidate the changed
composition as required, then append a fresh resolution. Do not replace or
evict the earlier receipt. Use a merge commit: a squash or rebase cannot carry
the checked [base, candidate] parent pair. The terminal receipt replays that
actual pair and refuses a post-check base move.
Then name everything the run
left unfinished in its body under ## Carried forward, as one fenced
carryover block whose rows are <id> | <disposition> | <reference>. Each row
disposes of its item: filed and duplicate point at one canonical GitHub
issue URL, the item's own new issue or the existing issue that already carries
it, and none says why the item earns neither. Compare against what is already
open before filing a second copy, and never file one merely to fill a row. A run
that leaves nothing writes the single row none | none | <why nothing is carried>. done integrate refuses a section that answers in prose alone, so
integration does not proceed on leftovers nothing was decided about.
For every filed row that points into wildcat-finance/skills, integration
reads the remote issue and refuses unless its title, queue label, framework
opening where applicable, Fiat-Required line, and carryover block pass the
same publication contract. duplicate remains a pointer to a possibly legacy
issue and does not make that claim.
Then wait for its gates,
merge it without bypassing them, require GitHub to report verified: true and
reason: valid for every pushed commit and merge SHA, delete the run branch and the step branches
where policy allows, and verify or close any recorded task issue. GitHub only
acts on the closing keyword when the pull request targets the repository's
default branch; a run aimed elsewhere still owes the explicit closure receipt.
That merge is the only
one into the base for the whole run. A routine publish or closure action is not
a handoff to a human. Before closing a task issue, post its exact checked
closing-comment bytes, read the comment and issue state back from GitHub, and
report only that remote evidence. The controller's closure receipt does not
attest the comment's semantic passes or bytes.
At an exhausted audit-verdict boundary, Step 4 can export and validate inert
cumulative evidence, then bind an already uploaded attachment by exact readback.
Read carryover-packet.md before using
carryover-export --request <path>, carryover-validate --packet <path> --sha256 <digest> or carryover-bind --request <path>. Each command also accepts the
controller's preceding --dir <run-worktree> option.
Archive the exact controller boundary with checkpoint export before exporting
the packet. Preserve every prior pass, raw finding occurrence, unknown legacy
field and complete file disposition. The export digest and later provider
identity live in detached receipts. Binding performs a GET; uploading remains
a separate operator action. An interrupted export can leave an unreceipted
output, which must be inspected before retrying.
An export may name an optional absolute proof_repository prepared separately
with the required native objects and signed refs. Its receipt then binds that
repository's path, device and inode for replay. Omitting it preserves the original
source-root behavior and receipt shape. Export does not fetch or import refs.
These operations preserve open findings and the exhausted audit verdict.
Replacement admission is a separate operation; the existing audit-verdict
decision and stop rules still apply to custody commands. The reference records the
packet, native Git and provider byte limits, ASCII path rules, drift refusals
and readback timing limits.
Read carryover-packet.md before using
replacement-begin --request <path> or replacement-resume, with the
controller's preceding --dir <new-run-worktree> option. Begin with a fresh,
already initialized run at the exact current base and one complete cumulative
packet. The begin command records the request and attachment readback;
resume reconstructs, executes the mapped guards and resumes recorded promotion. Name the read-only native
proof_repository; the packet embeds controller evidence, not a Git bundle.
Reconstruct every supported tracked current-base file and apply every carried
file disposition before candidate guard execution.
Map every raw finding occurrence by its exact identity tuple, offset, ordinal and raw digest. Retain historical unknown guard and family values. Explicit current mappings may name current coverage; they do not establish historical guard execution. The fixed adapter executes unchanged, source-bound bodies within its restricted Python form and requires actual assertion observations. Unsupported arbitrary unittest behavior refuses.
Preserve partial stages and originals when admission is pending. The complete
image and originals live in bound private storage outside .hexaemeron; the
controller archive retains bounded custody evidence. Replay still needs that
storage and the native proof repository. Resume only against the recorded source
and destination identities. Promotion preserves actual displaced files and installs
candidates exclusively. Refusal can leave a destination absent; inspect the
retained bytes and restore them or clear retired temporaries when required before
resume. This is not atomic rollback. Inspection and halt remain available while
acceptance is blocked; clear a halt with ordinary resume before
replacement-resume. A replacement earns a
fresh independent audit; neither a custody receipt nor the old run's verdict
can supply it. The reference owns the request fields, copy and proof limits,
refusal codes and recovery instructions.
Every next envelope carries state_sha256, an explicit agent, and a
source-bound brief. Delegate the exact packet to surveyor, mason,
warden, or scribe when the runtime supports isolated agents. An inline
directive carries explicit null packet fields. Where the directive is an
audit-round, run hexctl next --brief-out <path> and hand the delegate that
path: the step markdown, risk register and design evidence reach the Warden
without being printed into the controller's own transcript first. Refuse an
artefact whose digest has drifted; do not reconstruct its design selection, study block, runbook
step, risk register, or sorted prose diff from chat. If delegation is
unavailable, execute the same
packet in the main session. After compaction, rerun next: the receipted
artefacts and state digest deterministically reconstruct the packet.
A delegated envelope also carries task_identity, whose handle is
fiat-<task>-<phase>-<role>: the run's task, study or step-<n>, and the
delegate's role. The round is not in the handle, so a Warden keeps one handle
across a step's rounds. Give each spawned delegate that handle as its visible
name. The handle check is unconditional. Before continuing any existing agent
handle, for any directive, round or reason, run
hexctl next --task-handle <observed> with that handle. Exit 0 prints the same
directive. Exit 2 prints no directive and writes no state, ledger entry or
brief. Never continue a refused handle: spawn a fresh delegate under the
task_identity.handle that next prints without --task-handle. A delegate
refusal means the directive has no delegate and runs in this session. A brief
file left at a --brief-out path by an earlier call is not the current
directive's, so pass --brief-out and --task-handle in one call and hand a
delegate only a brief path named by a next call that exited 0.
Stop and ask the user when: next says audit-verdict or blocked; a push is rejected;
the security suite cannot be resolved for a Solidity repo; or verify fails.
Use hexctl halt --reason ... so the stop itself is on the ledger. When the
user decides a halted run will not continue, run hexctl reset against it:
the retirement is receipted, the evidence is archived, and the tree is removed
when git can remove it without force. Do not remove a run's worktree, branch
or state by hand.
guarded verdict as Fiat admission, a retained
parent failure as final-green evidence, or a partial retain as audit entry.audit.log_path, git, or a path
below git; config set refuses every other path without changing state or
ledger bytes.status and next are the truth.verified: true and reason: valid.integrate.init or rename a stored run branch.carryover row. A row whose item earns no issue takes the none
disposition and states why.0: init routes
it to one pull request, and that pull request is the work. The filed decision
belongs to whoever filed the issue. If it looks wrong, say so on the issue and
stop; do not alter an issue to change what init will do.carryover block.status and successful
verify, and never leave that verified terminal state active after the final
handoff data has been captured. Archive it locally with reset first.Next Fiat job during a generation update; only clarify
its context without changing its target or acceptance condition. An epoch
may replace it only with the reopening evidence required by the ledger.Observation is never a phase gate. When a selected controller receipt needs a
companion record, obtain observation_run_id from
hexctl status --field observation_run_id, which prints that one value rather
than every step, receipt and audit round recorded so far, emit
the stream beneath .hexaemeron/observations/, and run the root
scripts/run_observation.py check-prefix command. Immediately after the
receipt being described, bind the accepted prefix:
hexctl observe --artifact .hexaemeron/observations/run.jsonl \
--capture-status accepted --redaction-status passed
Record a gap, refusal, unknown, or unavailable observer without an artefact and
with a bounded --reason-code. Ordinary hexctl verify remains the controller
integrity check. Only hexctl verify --observations asks the dependent prefix
claim. Later selected boundaries extend the same file byte for byte; appended
bytes remain unbound until then. The complete interface and FOB recoveries
are in the run-observation binding guide.
When next returns done, run hexctl status and hexctl verify and capture
the handoff data: topic, the run branch and the base it landed on, the step list
with each stacked PR URL and the order the stack merged in, the integration PR
and its merge SHA, audit rounds per step with the closing state of each, and
where the study and runbook live. After a successful verification, run
hexctl reset before handing over. Include the local archive path it prints
and say if a dirty worktree was retained. The next run should not have to
retire this one, and no .hexaemeron/ byte belongs in a product commit or push.
New initialization records contracts.gate_commands as
protasis-gate-commands/v1 in state and the immutable init event. Runbook and
amendment receipts for those runs consume Protasis's
command-interface result. It binds
raw command bytes and offsets, the captured source root, effective replacements,
argv and report substitutions, full CLI and adapter sources, and interface validity. The
result's operation_ran:false cannot stand in for a test report or audit verdict.
Verification compares the marker and stored evidence with the ledger. It
preserves historical raw commands and rechecks the latest effective result
against current source. Source drift requires a newly checked append-only
runbook amendment through the owning repair path; never rewrite an earlier
receipt. Runs initialized without the marker retain their legacy contract and
cannot acquire fabricated gate evidence by changing state. Plain status and
status --field gate_command_status expose current, stale, legacy or pending
command evidence without advancing the run. A pending amendment remains
incomplete until its existing recovery transition finishes.
A command-interfaces row may name a runner that Step 1 creates, with
step:1 in place of its digest. From runbook receipt until Step 1's push,
status --field gate_command_status reports awaiting-binding with each
deferred path and its step, and no replay reads or hashes the path. Step 1's
done push binds the runner after the head and range checks. The path must be
absent at the run's starting commit and a regular blob at the verified push
head. The controller reads it through tree entries only, within the 2 MiB
source cap. The worktree copy, read without following links, must equal that
blob. The push receipt and its done:push ledger event then carry one
gate_binding object: the starting commit, the push head, each path's builder,
mode, blob id and SHA-256, and a fresh gate record that validates every command
against the bound bytes. Status reports current from then on. A refusal
writes nothing and names one cause token: deferred-starting-commit-unknown,
deferred-source-present-at-base, deferred-source-absent-at-head,
deferred-source-mode, deferred-source-unreadable,
deferred-worktree-mismatch or one of the adapter's own. Recover with a fix on
the step branch and a new push, or with a runbook amendment.
Every adapter call carries the phase the receipts record: how many runbook
regions were receipted before Step 1's implementation receipt and before the
binding, never a count of headings. Verification chains the runbook, its
amendments and the binding in ledger order and replays the latest record under
that phase. A binding in state without its ledger record, or the reverse,
refuses. After binding the row is an ordinary pinned registration, so a changed
runner refuses registered-source-drift until an append-only amendment carries
a concrete-digest row. A success-criteria admission replays under the phase
recorded when it was captured. At launch, run-exit checks the current runner
against the effective runbook registrations. A runner originally declared
deferred needs the matching Step 1 push binding before the attempt. A later
verification uses the binding already present at that attempt and preserves
the original admission. A checkpoint carries the binding in its state
and ledger. Restoring a run that holds one checks out its latest implemented
step branch, because the run branch has no runner until integration.
Checkpoint restoration keeps the original gate receipt, including its captured root and absolute report operand. Replay checks that historical derivation and separately validates the relative report declaration under the restored root. The operand authorizes no command execution at the old root; existing checkpoint identity and ledger checks remain the relocation authority.
Checkpoints with attempts from the reviewed historical criteria adapter retain the verified source capsule under <origin>/.git/fiat-checkpoint-criteria-history/<capsule-manifest-sha256>/. Historical result replay joins eligible imported attempts and their original interpreter metadata to that capsule and the exact imported ledger prefix. Only the reviewed historical adapter uses a temporary current-Python copy for structural validation; original attempts and receipts stay unchanged. Later attempts use ordinary strict replay; fresh executions retain strict interpreter checks. The controller checkpoint reference defines this historical replay, which adds no fresh CPU, signature, authority or reproduction evidence.
Study amendments keep the active success-criteria admission on the runbook receipt. A study admission committed by an earlier controller remains readable only when its history and attempts extend the prior custody and its source digests agree. Recovery preserves those committed state and ledger bytes. Before a study receipt was committed, recovery checks the exact prior prefix named by its pending transaction. Read-only criteria replay may retain a reviewed command-adapter identity after complete current gate replay and an exact declaration/Exit join comparison. Execution still requires its separate current-adapter check or a newly checked amendment.
Amendment preflight accepts a reviewed historical-to-current command-adapter change only when every other gate field agrees. The original runbook gate and active criteria admission retain their separate identities. Changed source, command or report evidence and unknown adapters still refuse.
A run initialised under an earlier release replays under this controller
through its starting commit only after this controller's pin refuses one of
its registered modules. On that refusal the controller reads the module and
the Protasis adapter at the recorded starting commit through bounded Git,
takes the historical pins from the adapter blob as data, and admits the module
only when its worktree bytes equal the base blob and its AST digest equals the
base pin. Replay then accepts the receipt's adapter digest when it equals the
base adapter's, beside the reviewed list; every other receipt field must still
equal current validation. When every registered module passes this
controller's pin, nothing is derived, and a receipt whose adapter digest is
neither reviewed nor this controller's still refuses gate-receipt-drift. A
run initialised under this controller reads no Git for the rule and replays
as before. An absent or unreadable base adapter, a module edited inside the run,
a base pin that disagrees with the module, an adapter neither reviewed nor the
base's, a base that is not a full commit id and a run without the marker
each keep their existing refusal or legacy path and write nothing. When a
replay admitted starting-commit bindings, status --field gate_command_status
carries a provenance object naming the starting commit, the base adapter
digest and the admitted module paths, and each entry in a stale status's
modules list says whether the runbook names the module. Once a supersession
is recorded, drive the run with one controller: an earlier reader is blind to
a commit:supersede entry, and this reader refuses a record that disagrees
with its receipts.
Step 5 has a separate evidence operation for the successor contract. It runs the checked-in controller in a disposable Git-backed fixture, binds the exact controller bytes and source commit, and records one bounded positive result alongside the refusal cases it actually observes. A shared Exit may settle several descriptors from one attempt, while a passing command still says nothing about criterion sufficiency. Terminal replay remains read-only and records its zero inspection launches. The report names fixture-only GitHub and remote boundaries; it is evidence for this demonstration, not an integration receipt.
protasis-design-evidence/v1, successful study and runbook receipts establish one immutable selected candidate from a complete checked matrix, a matching runbook design lock, and append-only transition receipts for each step entry and integration boundary reached so far.design-lock, step:N and integration, state transition spine, matching ledger events, delegated compact source binding, replay result and hostile missing, pending, mismatched, symlink, drift and legacy fixtures.operation_ran:false; zero inspection-launch count; actual invocation counts and exclusions.hexctl amend study establishes that the captured candidate preserved the currently receipted study bytes as its exact prefix, carried one structurally accepted final amendment, passed the bundled Protasis check, and recorded bounded digest and unbuilt-step verdict evidence.amend:study ledger event.hexctl amend study --artifact <canonical-study> to finish or roll back an interrupted transaction, halt safely, or use a separately specified runbook-repair transition after a recorded broken verdict.hexctl amend runbook establishes that the captured candidate preserved the currently receipted runbook bytes as its exact prefix, carried one structurally accepted final amendment with complete replacement clauses, passed the bundled Protasis runbook check, and recorded bounded digest, current-study binding and unbuilt-step verdict evidence.amend:runbook ledger event and recomputed effective packet source.hexctl amend runbook --artifact <canonical-runbook> to finish or roll back exactly once, submit another valid current-study-bound amendment, or halt without editing receipt history.hexctl observe followed by hexctl verify --observations establishes that one bounded promise-machine-run-observation/v1 prefix passed the structural validator and redaction gate, names this controller run, extends any earlier selected prefix byte for byte, and is digest-bound to the immediately preceding Fiat ledger receipt.check-prefix result, event interval and count, byte count and SHA-256, capture, validation and redaction statuses, exact preceding receipt hash, record:run-observation ledger row, recomputation result, unbound-tail count, hostile fixture manifest and focused tests.FOB code, restore or append to the exact run-local stream, record one new selected receipt boundary when needed, and rerun check-prefix, observe, then verify --observations.hexctl checkpoint export followed by hexctl checkpoint restore establishes that one bounded, deterministic fiat-controller-checkpoint/v1 capsule was exported at an accepted controller boundary, verified against its out-of-band manifest SHA-256 and exact Git refs, and relocated into a fresh clean checkout while continuing the same append-only Fiat ledger.checkpoint:restore ledger entry, final controller verification and the clone-loss tests.carryover-export, carryover-validate and, when requested, carryover-bind establish the checked cumulative packet, source relationships and detached custody observations each command reports.checkpoint archive, checkpoint inspect --archive and checkpoint restore --archive establish that one stored ZIP or native directory carrier recreates its checked Git refs and relocates its controller capsule into an empty destination, with the same semantic next directive and snapshot_id.hexctl done inoculate establishes that one clean Protasis capture was bound to the current Step and exact parent before implementation opened, and that the Step carried either a complete uniquely sorted set of Fiat-admitted immutable guard report/manifest pairs on one signed guard commit or the exact source-bound no-known-findings record.fiat-no-known-findings/v1 bytes; done:inoculate ledger event; unchanged refusal checks and zero command exit.step_parent for a no-known Step, and lock-free reporting of the initial inventory digest, assigned count, optional common guard commit, completed ids and remaining ids without report content.hexctl done inoculate. Pre-capture states continue only on their recorded bootstrap path.hexctl verify establishes that the controller state has the required version-1 container shape, the state and append-only ledger agree, and every recorded phase transition occurred in the required order with the required receipt shape.effective_push evidence for a changed live range, GitHub-verified pushed commits and merge SHAs, separately recorded GitHub author and committer identities for pushed commits, preserved product-receipt digests and the bounded integration-revalidation receipt when a completed run syncs with an advanced base, audit rounds, prose and push receipts, hash-chained ledger, controller version and zero-exit verification result.audit.log_path and git, reconstructing progress from chat, accepting a malformed or missing receipt, or describing an unrun check as complete.hexctl status, repair the current phase's real evidence without editing ledger history, submit the required receipt and rerun hexctl verify.hexctl reset establishes that the active run was complete or carried a recorded halt, its state and append-only ledger verified, a halted run's retirement appended to that ledger with its phase and reason, its controller evidence moved into the checkout's local .hexaemeron/archive/, its fixed .hexaemeron/checkpoints/ store remained outside that archive, and its active state cleared; a run worktree was removed only when Git reported it clean and accepted a non-forced removal.verify_run, terminal phase: done or a recorded halted reason with the appended retire entry, the destination created under the local state root, same-filesystem moves of every active state entry except the local ignore, archive, checkpoints and lock controls, the worktree cleanliness check, non-forced git worktree remove, rewritten live breadcrumbs and the printed archive path.hexctl status and hexctl verify, repair the failed evidence without editing ledger history, or record the stop with hexctl halt --reason ..., then rerun hexctl reset; if the tree holds work, inspect the retained path named by the command.hexctl done resolve-versions establishes that every target declared by one receipted version-relations block satisfied next-generation-after-integration-base against one stable exact integration base and candidate head, and that Fiat recorded the all-target result once under fiat-version-resolution/v1, or under fiat-version-resolution/v2 with an explicit operator declaration for one exact evolution recovery.SKILL.md metadata, active signed [product, base] sync, replayed fiat-sync-resolution-guard/v1 evidence and complete green target-path revalidation when the base advanced, append-only history, subject-labelled pending record, done:version-resolution ledger event, focused collision, drift, race, cap and interruption tests, and zero command exit.[product, base] sync with complete affected-path revalidation, then append a new resolution. Repair a named pending write window by rerunning the same command. Halt on incompatible drift or an eight-entry history rather than rewriting evidence.hexctl verify-decision-assignments replay, followed by a recorded sync or bootstrap receipt, establishes that one canonical Hypomnema report deterministically transformed the exact unnumbered product tree against the exact assignment base into the signed candidate tree.fiat-decision-assignments/v1 report bytes and digest, exact base, base ref, product, candidate and result tree, ordered stable-identity mappings, bounded limits, input and output blobs, exact tree delta, candidate message digest, one base trailer and ordered mapping trailers, local signature, clean worktree, stable ref rereads, and bounded sibling-only supersession history under fiat-decision-assignment-composition/v1.[base, candidate] merge parents without a later base move. Every primary author the push receipts recorded remains attributable from the recorded merge, and exactly one recorded merge landed the run on the named base under the user's delivery authority.fiat-sync-resolution-guard/v1 whole-side, superseded-intersection and acknowledged path arrays, computed product, upstream, overlap and product-to-sync composition paths, and a digest-bound integration-revalidation artefact. A version-1 artefact names every affected path and the green checks that cover it. A version-2 artefact adds source-registered aggregate identities, exact final manifest and Git-object evidence, aggregate file and tree digests, the final Git tree id, exact outside paths, and green checks covering both classes. The receipt also carries the active fiat-version-resolution/v1 receipt when declared, actual integration parents with the base first and candidate second, exact-object relation replay and post-merge base-tip read, stacked PR URLs, exact GitHub-verified pushed ranges, GitHub-verified merge-step and integration SHAs, the recorded attribution mechanism for each primary author, the parsed carryover rows of the run pull request's ## Carried forward section with its exact digest, the checked remote publication records for every new filed issue in wildcat-finance/skills, final controller state and verified ledger.carryover row establishes that its item was disposed of, not that the disposition was right: a newly filed Skills issue is opened only to replay its publication shape, a duplicate is not opened, and a stated reason is never judged. Integration establishes the recorded repository transition; it does not prove the software defect-free, make audit judgements independent or authorise a deployment, financial action or another repository. The attribution result establishes that the base carries each recorded primary author by ancestry or by a recorded merge's author or trailer; it does not establish that GitHub will resolve that identity to an account or list it as a contributor, and it does not treat the separately recorded committer as an author.[base, candidate] pair, a later base move, a merge that leaves a recorded primary author carried by nothing, a ## Carried forward section holding no carryover block or a row that disposes of its item in neither a filed issue, an existing issue nor a stated reason, a new filed Skills issue whose remote title, labels, opening or body contract does not replay, or integration without explicit delivery authority.The record and signature reference owns
the closed Step 2 record inventory, exact byte and key profiles, external
bootstrap rules and mandatory conformance toolchain. A passing
records-and-signatures report permits only its named design transition.
Native admission, complete authority replay and release conformance remain
separate gates; native checkpoint v1 formats remain unchanged.
The released interoperability demonstration retains the macOS network-denial policy and supports Linux x86_64 through the packaged Bubblewrap launcher plus an inherited seccomp filter. Direct and executed-descendant probes, exact policy/tool identity and complete conformance remain required. The reference above owns supported profiles, refusals and the separate fixture-validation boundary; this does not widen native archive or service containment.
DEMONSTRATION.md (opens in a new tab)EVOLUTION.md (opens in a new tab)agents/openai.yaml (opens in a new tab)checkpoint-authority/fixtures/README.md (opens in a new tab)checkpoint-authority/fixtures/acceptance.json (opens in a new tab)checkpoint-authority/fixtures/alternate-envelope.json (opens in a new tab)checkpoint-authority/fixtures/authority-head.json (opens in a new tab)checkpoint-authority/fixtures/authority-policy.json (opens in a new tab)checkpoint-authority/fixtures/authorized-removal.json (opens in a new tab)checkpoint-authority/fixtures/bootstrap.json (opens in a new tab)checkpoint-authority/fixtures/cancellation.json (opens in a new tab)checkpoint-authority/fixtures/cosign-double-hashed-envelope.json (opens in a new tab)checkpoint-authority/fixtures/cosign-envelope.json (opens in a new tab)checkpoint-authority/fixtures/demo-bootstrap.json (opens in a new tab)checkpoint-authority/fixtures/demo-expected.json (opens in a new tab)checkpoint-authority/fixtures/demo-freshness.json (opens in a new tab)checkpoint-authority/fixtures/demo-history.jsonl (opens in a new tab)checkpoint-authority/fixtures/demo-native.json (opens in a new tab)checkpoint-authority/fixtures/demo-presence.json (opens in a new tab)checkpoint-authority/fixtures/denial.json (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub wildcat-finance/skills --plugin hexaemeron13 skills in this plugin
/elenchusWork a failure you already have down to its cause, then guard it: stop the line, preserve the evidence, reproduce, localise, reduce to a minimal case, fix the cause rather than the symptom, and leave behind a test that fails without the fix. Use when a test fails, a build breaks, a fuzz campaign returns a counterexample, behaviour stops matching expectations, or something that worked has stopped. Do not use it to hunt for findings nobody has observed yet, which belongs to solidity-auditor and x-ray, and do not use it to speed up something that already works, which belongs to metron./ephorosDecide what a step must emit so its behaviour is visible afterwards: the on-call questions first, then structured events, bounded metrics, correlation across the whole path, and alerts on what someone actually feels. Use when adding logging, metrics, tracing or alerting, when shipping anything that runs unattended, or when an incident could not be explained from what was recorded. Do not use it to instrument a failure you are chasing right now, which belongs to elenchus, and do not use it to measure something slow, which belongs to metron./fizzGenerate Echidna/Medusa-compatible Solidity fuzz suites from Foundry or Hardhat projects. Trigger on "fizz", "generate fuzz suite", "build fuzz harness", "stateful fuzzing", "fuzzing harness", "property testing", and "invariant suite"./hypomnemaDecide what gets written down and where it lives: the decision record behind a choice that would be expensive to reverse, the comment that explains why rather than what, the runbook an alert points at, and the README somebody starts from. Use when a decision is made, an interface changes, an alert needs somewhere to point, or the same explanation has been given twice. Do not use it to lint or rewrite prose, which belong to imprimatur and vulgate, and do not use it to decide what a study must contain, which belongs to protasis./imprimaturCheck prose that ships for banned AI writing tells, technical terms used without evidence, and repeated structural formulae that survive a wordlist. Use while drafting, editing, or reviewing public prose, or when the user names a term to ban. This is the diagnostic gate; Vulgate performs a content-preserving rewrite./kronosRank the held Next Fiat jobs across explicitly in-scope, non-mature skills, select the most worthwhile job out of 100, set one durable goal or loop, run that job through Fiat, then repeat until no eligible frontier remains. Use only when the user explicitly asks for Kronos, for a repeated ranked Fiat frontier loop, or for the ranking on its own without running anything. Do not use it for one ordinary Fiat delivery.Other plugins' skills for the same job