Documentation Menu · CLI Reference

CLI Reference

Every subcommand of the hector command line with exact usage syntax and exit verdict codes (0 / 1 / 2 / 3).

Reference entries for the commands of the hector command line, in alphabetical order. Each entry says what the command does for the author or the agent, gives its usage line, then says what it prints and its exit code. The exit code is the verdict: 0 established, 1 refuted, 2 refused, 3 not established. A command that writes files, runs long, or prints durations of the machine has no directive line; its entry says so.

actions #

Lists who may do what in a program: one line per event, naming the role or field that the by of that event gives. Read it when a change of rights is discussed, because it is computed from the by of each line and from nothing else. Usage: hector actions <program.hector> It prints one action line per event and exits 0 when the program reads.

Executable CLI Run
verdict 0
hector actions commands/small.hector

ads #

Counts the decisions of a program by kind: business, technique, restrict, strategy, observable order, format widths, byte orders and fixed formats. The author reads it to see how many decisions the agent wrote and how many Hector took by mechanism, before reading the answers. Usage: hector ads <program.hector> It prints a header line of kinds, one line of counts, a chosen line and verdict; the exit code is the verdict.

Executable CLI Run
verdict 0
hector ads commands/small.hector

apply #

Applies a card, a slice of an edited program, to the program it was cut from; the facts are matched by semantic identity, never by text. It refuses rather than apply a slice that would drop a fact of the original program. Usage: hector apply <program.hector> <card.hector> <edited.hector> [-o <file>] It prints the resulting program, or writes it to the file given after -o, and exits with the verdict of the application. It writes a file when -o is given, so it has no directive.

build #

Compiles a program, or a directory of programs, into a native image for a target: x64, a64, rv64, or wasm. --standalone or --lib emits a program that runs without the compiler; --search N looks for a better realization over N trials. Usage: hector build <program.hector|directory> [--search N [--seed S] [--steps S] [--load history] [--holdout history] [--trials dir]] [--time] [--standalone|--lib [--row-access] [--admits older.hector]...] [--target x64|a64|rv64|wasm|wasm32] [--dossier] [-o file]

--dossier also delivers the proof dossier of the build. A standalone executable or a fixed library carries it inside the file, in a section before its payload that no loader reads; a raw image or a WebAssembly module takes it beside, as <file>.dossier. It is bound by SHA-256 to the artifact bytes without that section, the byte bounds of the program hold on the delivered file with it, and without --dossier no byte of it is delivered. It carries the canonical program, the certificates, rechecked as it is written, of the checks the image leaves out, of its finite tables, of the writers that excuse a question and of the events whose lines contradict each other, and one record for each sort, act and law the image tests as it runs. A record of a law names it by its rank among the declared laws of its sort or of the world in the carried program, so two laws of the same words stay apart. A site with certificates and no such record is established; a site with a record is enforced by the refusal, not proven. The digest binds those bytes. It carries no signature or proof of machine code. A --standalone or --lib delivery for another target takes a template built for that target and found beside the executable under its name (hector-fixed-a64.so, hector-loader-rv64, and so on), whose machine header names the ABI of the image: the file carries the target's code and, for a library, its contract, and its loader refuses every other machine. Without such a template the build is refused and names the files it looked for. A program that calls the runtime of values and the wasm target have no such delivery yet.

--row-access belongs to a delivered --lib alone (it is refused with --bindings-only, --contract and --standalone): the library then delivers the row authority of its contract, whose access identity is part of its fingerprint, and only a template that reads it is taken. --admits <older program> also belongs to a delivered --lib, and is repeated for each older program (earlier versions, or programs now linked as packages that export their events): the library is written once and admits the bindings generated for each of them when its treaty against the new one does not move major and every number such a binding sends or reads means the same here: each of its events is here under the same kind, name and arguments, each of its observers, shows, requests and columns is here, the same, wherever it now stands; a binding delivered with --row-access needs the same authority and no event renumbered. The library carries where each older number of each numbered table lands (outside its fingerprint); a binding asks hx_admits at its opening, and an admitted one sends and reads its own numbers: its events (one call, a batch, records, a lease) land on the same events, its observers, shows and columns on the same ones, and the shows of the rows it reads and the requests it pulls are told by the numbers it knows (one added since by a number past all of its own). Otherwise the build exits 3 with every reason and writes nothing. hector build --artifact <file> [--contract] reads a delivered file alone, without its source: it prints what the file carries as one JSON object (carrier, the ABI of its machine header, contract fingerprint, rooms; regeneration_recipe is Absent and source_identity is Unknown, for a file names neither; dossier_bytes is the dossier it holds, and a dossier that does not bind the file is refused), or the contract of a fixed library. hector build <name> --artifact <library> --bindings-only writes beside a delivered fixed library the bindings it was built with, named after <name>; --lib --bindings-only -o <library> does the same when that library already exists. A file that carries no fixed program gives no contract (exit 3) and a name a host cannot load is refused (exit 2); nothing is written then. It prints the chosen lines of the image and exits with the verdict. --target wasm32 emits a WebAssembly module; operations that need the runtime are named imports and must be supplied by its host. Exporting a module does not run it locally. It writes files and --time prints durations, so it has no directive. The timing line also counts module scopes admitted by the fresh world read (modules_read), including the root when it owns source files. Build currently reuses zero module reads (modules_reused). It counts what that read refused, on admitted and refused sources alike: its findings (diagnostics) and the words no form read (rejected_words), both zero when the source is admitted; read and world time the two.

bundle #

Packs, signs, verifies, and inspects deterministic .orp deployment bundles carrying a canonical manifest, compiled bytecode or WebAssembly payload, CALM monotonicity and effect graph metadata, and an Ed25519 signature. Usage: hector bundle keygen [--seed N | --seed-hex HEX] [-o <prefix>] [--json], hector bundle pack <program|dir> -o <out.orp> (--key HEX | --key-file PATH | --seed N) [--target x64|a64|rv64|wasm|wasm32] [--json], hector bundle verify <bundle.orp> [--pubkey HEX | --pubkey-file PATH] [--json], and hector bundle inspect <bundle.orp> [--pubkey HEX | --pubkey-file PATH] [--json]. Verification is fail-closed: any missing signature, invalid or non-canonical Ed25519 key or signature, trailing bytes, or payload, manifest, or CALM alteration is refused with exit 2.

Executable CLI Run
verdict 2
hector bundle verify commands/small.hector

card #

Shows one point of a program with the declarations it depends on, so the reader sees the card of one field, definition or transition without the rest. Usage: hector card <program.hector> <point>, where a point is Sort.field, Sort.definition, or ?hole. It prints the program cut to that point, then -- point, -- expects and -- size lines, and exits 0; a point the program does not have is refused as CARD_POINT_UNKNOWN with exit 2.

Executable CLI Run
verdict 0
hector card commands/small.hector Order.ready

cascade #

Says, for each decision of a program's realization, the stage where the fact that settles it is born: plan (the text proves it), developer (a scope orders the axes), arena (a measure, a search, a draw), install (the machine), boot (the rows restored), life (the load), no-model (no form has a cost yet) or unnamed (costs that do not tell the forms apart). A decision that crosses on a fact names it after waits for. It reads the program as build opens it and writes nothing. A directory is one program. Usage: hector cascade <program.hector|directory> [--json] It prints one stage line per decision, a ladder line with the count per stage and how many are closed before delivery, and the verdict.

Executable CLI Run
verdict 0
hector cascade commands/small.hector

check #

Gives Hector's answer for a program: the derived, default, fixed, chosen and monitor lines, the run on the naive judge and in native, and the verdict. For several programs, or a directory, it counts how many reach each stage; check --trace prints one generated history with the judge's outcome for each event. Usage: hector check <program.hector | directory> … [--each] [--answers] [--json] [--time] and hector check --trace <program.hector> Under the examples, a missing line names what no example exercises: statuses never reached, events never played, laws no example would miss, and guards no example needs (a when of a transition, a set, a next or a birth on an event whose removal every example accepts: a mutant the examples do not kill); covered says there is none. It never changes the verdict. When the examples could keep the same kills, statuses and events in fewer than half their lines, an examples line says how many lines they have and how many they could be, and points to hector scenes --shrink; the cut it counts reuses the noticing of the missing line and has a bounded number of judge replays, so on a large program it may count fewer lines cut than scenes --shrink finds. It exits with the worst verdict in the order 2, 1, 3, 0: the refused program in answer/refused.hector gives 2, the refuted one in answer/refuted.hector gives 1. Every refuted 1 of an example, and every native image that differs from the judge, comes with its counterexample under it: the smallest story that still fails, as an example to paste under the program, which line or item differs, the values of the rows it names and why the judge says what it says; removing any one of its lines loses the failure, and check replays it. With --json it prints one object per diagnostic, then the answer as one object whose laws say each law, stays and assume of the program: its id, source line, text, state (Established, Refuted, NotEstablished), means (how it is established, or why not), the events it can refuse, the examples that would come out differently without it and, when refuted, the history that shows it.

Executable CLI Run
verdict 0
hector check commands/small.hector

chosen #

Says what Hector decided for a program, one line per decision, each with who made it (derived, default, fixed, chosen, free, monitor), why, and what would change it: nothing in it is yours to write. A directory is one program. Usage: hector chosen <program.hector|directory> [--host | --lib | --at <name>] [--json] It prints the decision lines of the check and exits with its verdict. With --json it prints the same lines as one JSON object: for each line its word, origin, subject, what, why, changes and the line as printed. --json also serves card, explain, why, lanes, scenes and fix.

--at answers for one point or one scope, named as config --at and map name them (a sort, an event, a function, a module, a file, a corridor, several separated by commas), with the answer the MCP config inspection gives of it.

The host of a plain or point answer (--at, MCP point) is the image check compiles and compares with the judge. run compiles its own image for the load it meets. --host reports the image a host that embeds the compiler opens, realized for observers that read often, under the verdict of the check, joined with unknown 3 where that host cannot be realized. The MCP tool chosen takes host: true for the same answer. The Studio's Decisions view offers this receipt for the displayed revision.

--lib reports the realization and carrier admitted by build --lib with default options. It builds the artifact in memory and writes no library or bindings.

Executable CLI Run
verdict 0
hector chosen commands/small.hector

config #

Says what the declarations of a project come to, for each place they can be asked of, and which scope said each part: the program, each sort that holds a table, each event, and each definition named by a policy declaration. A line gives the order of the axes the developer asked, the byte bounds requested there, what the running program may do (restrict adapt), and where each part comes from; where scopes that stand beside one another ask orders and neither begins the other, a conflict line names them. The closest scope decides the goal and each part of adaptation; applicable byte bounds accumulate at the resolved sites. An unknown cost of a form does not establish that the form holds a bound. Usage: hector config <project> [--at <scope>] [--json] --at names a scope as a line prefer … on … does (Reserve, Shelf, Place ->, Open -> Paid, a, b) and keeps the places it covers; a name that is no scope is refused with its repair, exit 2. --json prints the same lines as one JSON object. Nothing is written and no result depends on it.

Executable CLI Run
verdict 0
hector config commands/small.hector

correct #

Corrects a history after the fact: an entry that never happened, an entry that was another, a fact learned late. The judge plays the history once, entry by entry; each line of the corrections file then says one correction, and the output says what it cost and what it changed. Usage: hector correct <program.hector> <history> <corrections> A correction is one line: retract #<history line>, amend #<history line>: <history line>, or insert: <history line>; -- starts a note. #n is the line of the history file and keeps naming the same entry after the corrections before it; an inserted entry takes its place by its instant. For each correction it prints the cone (the acts run again out of the acts after it, those kept because the outcome of their laws is unchanged), one line for each entry whose outcome changed, and the lines observers are shown no longer (-) and now (+); then the final views and the verdict. A correction the journal cannot take is refused with its fix, exit 2.

Executable CLI Run
verdict 0
hector correct commands/small.hector commands/small.history commands/small.corrections

describe #

Exports a project's modules, kinds, given and derived fields, events, written kinds, reference links, setting scopes and the decisions of its realization (sites, forms, costs per axis) as a history for the Hector Studio. Usage: hector describe <project> [-o <history>] [--decisions-within <seconds>|none], then hector run outils/studio <history>. Without -o it prints the history; with -o it replaces the output only after the whole project reads. Refused input leaves an existing output unchanged, exit 2. The Studio model preserves complete ordered preferences and the six cost axes: speed, memory, delivery size, compilation, energy and disk. Every price and signed change keeps its exact decimal digits; optional Count fields are filled only when the value fits. Estimated, measured and established evidence remain distinct. An unpriced restriction keeps its expression and is not reported as satisfied. Each site comes from the realization's typed decision: its forms, current choice, scope and evidence; a legacy site without a typed decision is Unreported. A realization that does not finish within the wait budget (20 s unless told) leaves the decisions as unknown 3 and exit 3. The wait budget does not cancel a worker already running. A retained catalog without image proofs leaves those proofs unknown instead of substituting a new compilation. The exported rows remain readable by the Studio. hector describe <program> --topology prints the coupling census. A component groups sorts one process must hold together. A strong edge names the act or line that links two sorts. Each weak edge between components is a show with declared freshness (within). An effect names a separate asynchronous interface to an external provider. The census names unwritten sorts. It starts with one linked line per package the program uses, with the identity and path the lock holds for a pinned one. Its price line says that one process pays no transport, replicated row or round trip between components. Split and Copy are absent, each with its cause, and the threshold line says the share of programs that must profit before a distributed form opens (20 %, not reached), so no price across a cut is claimed. Declared freshness can justify a cut. Distribution requires separate proof of its total cost.

Executable CLI Run
verdict 0
hector describe commands/small.hector
Executable CLI Run
verdict 0
hector describe commands/small.hector --topology

diff #

Shows what an edit changes between two versions of a program: the declarations added and removed, with their text, and the reads and writes that the change touches. Usage: hector diff <before.hector> <after.hector> It prints added and removed lines, then reads, writes, treaty, chosen and verdict lines, and exits with the verdict; two identical programs give empty reads and writes. The interface line says how a binding generated for the first program fares against the second as its host: same, extends (it still works; one added line per addition) or breaks (one broken line per difference). It is about what the binding reads and sends; what the program still does for it is the treaty line. The treaty line is the version computed for the clients of the program, never declared: major when an event, a value shown or a law is taken away or changed, or a law is added (a call that was taken may now be refused) ; a law, asked value, stay, outcome or assumption held on a sort only the second program has, written by acts and coupled by no event or line to a sort of the first, binds no older client and moves nothing major; minor when an event, a value shown or a sort the host gives rows of is only added (what the host gives of each row of a sort that has no birth is a term: a member added there is major); patch otherwise; it names each term taken away or added. The pact is in the treaty where it promises or asks: a hard bound (restrict size|disk|memory|p99 <= n, measured by check) tightened or added is minor, loosened or taken away major, and a soft one (prefer … <= n, which never refuses) moves nothing; restrict undo(None), which asks the host never to take back a lot, is major when added and minor when taken away; a goal, restrict adapt and undo(Journal) or undo(Copy) choose a realization and move nothing. The delivery is a term too: every target is delivered when none is named, so naming one takes the others away (major) and adding one is minor; a delivery form declared (restrict delivery library) is a term like any other. The stories are a term too: each example that holds on the old program is read and played on the new one, and one that no longer reads or no longer holds is major, whatever the other terms say, with the line it no longer holds from.

Executable CLI Run
verdict 0
hector diff commands/small.hector commands/small.hector

doc #

Renders the reference: doc --about <word> prints the page of one word, and doc --check verifies every page against the code and against the examples that run. Usage: hector doc [--about <word>] [<directory>] and hector doc --check [<directory>]; the directory is the one that holds the words folder, and doc by default. doc --about prints the page and exits 0; a word with no page gives unknown 3. doc --check prints one line per finding and doc verdict, and exits with the worst of them.

Executable CLI Run
verdict 0
hector doc --about check ..

explain #

Says what Hector understood one line to mean: for each aggregate the line reads, the aggregate, the sort whose rows it walks and its filter (the statuses the rows must be in, the fields they share with this row, the other conditions), taken from the resolved program and never from its text. Read it when a total gives a number you did not expect: the sentence is what the line counts, sums or tests. Usage: hector explain <program.hector> <line> It prints the line, then one means line per aggregate, and exits 0; a line that reads no aggregate is unknown 3, a program that does not read is refused 2.

Executable CLI Run
verdict 0
hector explain commands/aggregate.hector 3

explore #

Searches the judge's states breadth first for a history that reaches each status, moves a row along each transition, accepts or refuses an event, makes a law refuse an act, makes a temporal law owe an answer and be answered, or passes each member of a named path in order. Each witness is replayable and has the least depth found among the generated inputs. A transition is witnessed when the judge records that its line wrote in an act it kept, so each transition of a chain inside one act counts and a pair the final state merely suggests does not. A temporal law owes an answer once its trigger holds on a row and is answered when the judge's monitor discharges it, before its deadline when it has one; its violations are not claims of this command. A member of a path (an event, a change by when or after, a birth no event causes, or an answer a transition of the path reads) is passed in order by a history that crosses the ends in the order written, with the member inside one of the links that hold it; a birth enters the path in the middle and its row goes on to the ends that follow. When every end is a status of one sort the walk follows one row of that sort; otherwise it follows the order of the history. NotWitnessed leaves a claim unknown when this search finds no witness. ReachUnsound includes a witness that contradicts the compiler's reach analysis.

Run hector explore <project> [--depth D] [--states M] [--rows R] [--json]. The defaults keep at most 200 states and explore at most four steps after deployment. --rows bounds the rows a sort holds in every state of a history, the deployment's included: a row the deployment would give past it is left out, a step accepted into a larger state is not part of the search, and the answer says when one was left out. Without it, no bound of rows applies. Inputs include generated events, answers to outstanding questions and the program's time boundaries. Exact state keys keep random seeds and deadlines distinct. The exit code is 0 when every claim is witnessed, 3 when some remain unknown, 1 when reach is contradicted, and 2 when the project or bounds are refused.

The answer names its executor (the judge: no native image ran). With --json, as through the MCP tool explore with format: json and the Studio's GET /coverage, the typed explore receipt carries the identity of the program, the bounds, what they left out and every claim as witnessed (with its depth and history), unknown or unsound; at one program and one bound the three give the same receipt.

Executable CLI Run
verdict 0
hector explore commands/small.hector

fix #

Applies the exact repair of a diagnostic to the files it names, then reads the program again: the line to write is never copied by hand. Without --code and --line it repairs the worst diagnostic that has an exact repair among those that prove a fault or advise one; a line suggested by an unknown 3 finding (a value an example asks) proves nothing and is written only where --code or --line names it. --repair K takes the K-th of several options. A repair that would give the same refusal again is not written. Usage: hector fix <program.hector|directory> [--code C] [--line N] [--repair K] [--dry] [--json] It prints applied, the verdict before and after, what remaining, then wrote for each file, and exits with the verdict after the repair; --dry writes nothing. A program with no exact repair is unknown 3 (NoExactRepair), a repair that does not converge is refused 2 (FixDoesNotConverge). The MCP tool fix makes the same repair as a proposal.

Executable CLI Run
verdict 0
hector fix commands/wrong.hector --dry

fmt #

Prints the canonical layout of a program text, layout only: every word and note is kept, blocks go two spaces a level, trailing blanks and blank runs go. Formatting twice is formatting once and the program read is the same. Usage: hector fmt <program.hector> [--write] Without --write it prints on standard output; with it the file is rewritten in place. A tab in the indentation of any line, a note or a blank one included, is refused (2) with its line and a fix, and nothing is written; --write replaces the file by a rename of a new file beside it, so a failure leaves the source as it was.

fill #

Writes lines for one hole of the guided method, named by next, and gives each line its fate at once: admitted, already (nothing changes), hole (admitted, it reads a name nothing defines), refused 2 with the exact repair, or refuted 1 with the example it breaks. A line that is not admitted is never written, so the file only ever holds lines Hector accepted; the hole can also be a sort name, world for column 0, or example. Usage: hector fill <program.hector> <hole> "<line>"…, or - and the lines on standard input; hector fill <program.hector> <Sort|world|example> --remove "<line>"… removes lines as next prints them, or an example by its name It prints one fate per line, closed or open for the hole, then what next prints, and exits with the verdict of the program; with --dry it says the fates and writes nothing.

Executable CLI Run
verdict 0
hector fill commands/interface.hector ?out 0 --dry

guide #

Shows the writing guide in pieces: without an argument, the method and an index; with a section number, that section; with a refusal code, matching guide table rows. Usage: hector guide [section | refusal] It exits 0 when it finds the requested piece and refuses an unknown piece with exit 2.

Executable CLI Run
verdict 0
hector guide 5

hunt #

Searches a program for a fault: it compares the native image with the naive judge on generated histories, and reports the first disagreement it finds. With --shrink <out> it reduces the faulty program to a smaller one that keeps the fault, and writes that program to <out>. With --properties it asks instead whether the lines keep each property: established when they imply it, refuted 1 PropertyRefuted with the shortest history that breaks it, told as an example, or unknown 3 PropertyUnproved when neither is found within --histories and --steps; it exits 1 if one is refuted, else 3 if one is unproved, else 0. Usage: hector hunt <file> [--histories N] [--steps N] [--shrink <out> | --properties] It prints clean verdict or fault <kind> with its reason, and exits 1 on a fault. It reduces a program, never a history: the counterexample of a refuted line or a differing image is cut by check, and why shares its kernel. Its durations change from one run to another, so it has no directive.

hxi #

Builds, verifies, and inspects standalone .hxi Proof-Carrying Code deployment envelopes (HXI2 rich bundles carrying delivery::Image, CODEC, WHY_TABLE, CALM, and EPOCH_MIGRATION, plus backward-compatible v1 HXPC artifacts) with FNV-1a integrity and optional RFC 2104 HMAC-SHA256 authentication. Usage: hector hxi build <program.hector|directory> -o <out.hxi> [--key <hex>] [--json], hector hxi verify <file.hxi> [--key <hex>] [--strict] [--json], and hector hxi inspect <file.hxi> [--key <hex>] [--json]. hxi build compiles the program, lowers MIR CODEC/WHY_TABLE/CALM sections, runs verify_hxi_bundle, seals the HXI2 envelope, and writes <out.hxi> atomically; hxi verify validates v1 HXPC and v2 HXI2 envelopes fail-closed (exit 0 when valid, exit 2 otherwise; --strict also refuses secret leaks or unsound CALM partitions); hxi inspect renders all sections, PCC summary, and envelope_fnv1a without invoking the compiler.

Executable CLI Run
verdict 0
hector hxi verify commands/small.hxi
Executable CLI Run
verdict 0
hector hxi inspect commands/small.hxi

init #

Starts a project: a folder that plays at once. It writes a root file (lines at column 0 of a file of the root speak for the whole project), a module (a folder holding a file of its own name) with one sort, one event and one example, and a .gitignore for the derived .hector/ folder. Usage: hector init <folder> [--domain server|ui|script|heavy] [--dry] With --domain the project has the shape of what it does: modules each with an example, the lines of policy that suit it and load.histoire, a history of load that hector run <folder> <folder>/load.histoire plays. It prints one wrote line per file and a next line, and exits 0. A folder that is not empty, or a name that cannot be a file name, is refused with exit 2 and its repair, and nothing is written. --dry says what would be written and writes nothing. hector run <folder> then plays the project's examples, each on the part of the program it can reach.

Executable CLI Run
verdict 0
hector init --dry demo

kernel #

Verifies a pure fixed-width scalar kernel (forms/<name>.kernel): parses the kernel dialect, enforces static safety rules (no memory access, no calls, fixed integer widths, statically bounded positive repeat counts), validates lowering onto step-ir, and checks exhaustive equivalence against its declared specification within the bounded verification budget. Usage: hector kernel check <file.kernel> It prints the verified kernel summary and verdict 0 (exit 0), refuted 1 with the first counterexample (exit 1), refused 2 for a static fault (KernelOp, KernelWidth, KernelLoop, KernelMemory, exit 2), or unknown 3 when verification exceeds the budget (KernelUnproved, exit 3). Nothing is written. The command checks a kernel on its own: no build offers one to a site yet, so a program that writes restrict kernel(NAME) is refused NoAdmissibleRealization with that line.

Executable CLI Run
verdict 0
hector kernel check commands/isqrt16.kernel

lanes #

Shows which rules can change independently: each lane is a set of rules that can be edited in parallel, and each serial item bridges independent tasks and needs an isolated phase. Usage: hector lanes <program.hector> It prints lane, scope, reads, writes and serial lines, then a chosen line, and exits 0 when the program reads.

Executable CLI Run
verdict 0
hector lanes commands/small.hector

live #

Keeps a program compiled while it is edited: the program is compiled once, and a changed rule costs its own unit instead of a whole recompilation. Usage: hector live <program> [--probe <changes>], hector live <program> --measure <edited file> or hector live --attach <port> [--once]. Attachment watches the source files of an existing serve --attach <port> process. It compiles rule units beside the service and installs at a batch boundary, keeping the resident arena and values. --once applies the current edits and returns. Schema, dependency and maintained-plan edits return 3 without changing the service; stop and migrate instead. Durable attachment returns 3 until live journal epochs are implemented. The maximum wall-clock pause has not been qualified. It prints the compilation tier and a chosen live line with a duration, then waits for changes; with --probe <changes> it measures that many changes and returns. --measure takes the text of one file of the program (matched by file name) in as a single change and prints one JSON line with no clock: how it went in (unit with the steps emitted again, or whole and why), the compiler work of the change beside the work of compiling the program whole, and the bytes of IR copied, emitted again and held; the same edition prints the same counts on every run. It is interactive and prints durations, so it has no directive.

lock #

Pins a library into a project: it records the library under a name with its identity, so a project that reads it keeps reading the same library. The lock stores name content-sha256:public-version path. The public version fingerprints the interfaces of its modules and the call of each event it exports (forms-2), independently of file and module names; private edits keep that version but still require relocking the changed content. Visibility-aware locks without a public version remain readable. A mismatching content hash or public version is refused with a relock command. Usage: hector lock <directory> <name> <path> It prints locked <name> <identity> and exits 0, or prints refused 2 with the reason. It writes the project lock, so it has no directive.

package #

hector package inspect <project> <name> <path> prints the package's exact sha256:version stamp. The first part identifies the files, their paths within the package and their visibility. The second identifies the public interface. The path is absolute or relative to the project directory.

hector package pin <project> <name> <path> <sha256:version> mounts the candidate in the project, verifies its stamp and runs the normal project check before writing hector.lock. An identity mismatch reports PackageIdentityMismatch with both stamps. A failed check keeps the previous lock. A subsequent project load verifies the pinned package again.

Executable CLI Run
verdict 0
hector package inspect . inspection commands/small.hector

load #

Generates a replayable history from the program, using the judge's generator and the supplied seed. Deployment rows precede births in dependency order; born rows use their declared events and rights. The same seed gives the same history. --rows N requests N rows per sort, then N further entries (events, world answers and clock advances). If program constraints prevent population or an accepted continuation, it exits 3 with the missing capability; it never substitutes synthetic situations. Usage: hector load <program.hector|directory> --rows N [--seed S] [-o history] Without -o, it prints the history; with -o, it writes it after successful generation and format validation.

Executable CLI Run
verdict 0
hector load commands/small.hector --rows 4 --seed 1

lsp #

Starts the language server for .hector files over stdio JSON-RPC with Content-Length framing. Usage: hector lsp Initialize with a project folder (rootUri or workspaceFolders). Open and change documents in UTF-16 positions; diagnostics carry the same codes, physical lines, refusals and repairs as check --json. A source action writes at the end of the file the examples hector scenes proposes for what the program leaves unexercised. Code actions apply the same exact repair as fix to the diagnostics the editor already holds, with versioned edits and no disk write by the server. Hover contains structured lens::Answer objects (chosen, card, why, and price where the point is priced and hector.price was asked): chosen lists the decisions at the point, read from the structure of the sites (the sort, its definitions, entries, laws and shows; the event and its entries; the transition or birth of an entry), each with its form taken, its stake as the question queue says it, its state and owner; a point where nothing is decided says so in one line. Runtime provenance stays unknown without a row and history. workspace/executeCommand runs hector.chosen, hector.config, hector.whynot and hector.whatif on the project (one argument object: at, lines, history, entry, point, without, instead with step, also, and format text or json) and answers what the command line and the MCP tool of the same name answer. hector.price (optional filter) answers the price receipt of the revision, ordered by distance to the physical minimum, and inlay hints put each priced line beside its source: the receipt the Studio serves for the same files, its files named under the project folder. hector.price compiles the image of the revision as the Studio opens it and keeps its receipt while what is kept beside the program reads the same. Inlay hints and hover compile nothing: they show a price once hector.price was asked of those files. A project that keeps a room is priced as that room, at the tier a room realizes, and the MCP chosen tool answers the same receipt with price. hector describe does not render the code bytes of this receipt. A revision with no image answers unknown (3). Definition follows resolved identities across the project. A refused read or ambiguous identity has no fabricated target. The session ends with shutdown then exit (code 0); exit before shutdown is 1, transport errors are 2. This long-running command has no executable directive.

mcp #

Gives agents the typed graph through the Model Context Protocol: init opens a room whose program is version 0, serve speaks the protocol on stdin and stdout, describe prints the tools the room offers, and call makes one tool call. Usage: hector mcp init <room> <program.hector> --author NAME, hector mcp serve <room> [--author NAME] [--journal PATH], hector mcp describe <room> [--author NAME], and hector mcp call <room> <tool> [<json arguments>] [--author NAME] [--journal PATH].

propose {"base": N, "revert": V} writes the way back from what admitted version V changed as an ordinary proposal on head N, keeping later admissions; a later version meeting it is refused RevertContested. propose refuses a witnessed new law refutation before storing the proposal. A proposal that lodges lists existing refutations and any loss of proof for the author. dossier {"proposal": N} reads the retained change, cone, law evidence and example changes. A supplied journal adds impact from the real inputs and a migration preview on a copy when its current revision matches the proposal base. The original journal is read-only. Each tool answers what the command of the same name prints (chosen, config, scenes, whynot, whatif, explain, lanes, diff, fix), and a room checks one revision of its files once for all the tools that ask about it. serve runs until it is stopped, and the versions of the rooms come from the client, never from file times. It writes room state and runs long, so it has no directive. The chosen tool accepts an optional point from map. It returns the decisions at that point, as in LSP hover, and refuses an unknown point. Pass base to require a particular head and format: "json" for the corresponding rows of the decision catalog.

merge #

Merges two changes proposed on the same base revision into the head: independent changes merge, and a proposal made on an older revision is refused as Stale. Usage: hector merge <base.hector> <a.hector> <b.hector> [--head N] [--a-base N] [--b-base N] It prints the merged program, or refused 2 Stale with the revision to replay the proposal on, and exits with the verdict. The revisions are supplied by the client, so it has no directive.

migrate #

Binds the journal of a stopped service or run, and its inbox, to a changed program by appending one epoch; no earlier byte of the journal is rewritten, and serve or replay then carry on from the migrated state. Usage: hector migrate <program.hector> --journal <journal> [--inbox <inbox>] [--author <name>] [--client-fingerprint HEX] Each option is known, occurs once and is read only at an option position, so a value that spells an option cannot redirect the command. When a client fingerprint is supplied, the target must accept it before the journal is opened for writing, judged against the contract of the library build --lib delivers for the target, with or without --row-access (either fingerprint is accepted), or, for the fingerprint of a client of the journal's own program, admitted as build --lib --admits that program admits it (the treaty does not move major and its events land on the same events); otherwise it exits 3 with the reasons, without changing the journal, and an accepted one is the compatible verdict (a binding identity, not every future behavior). Without it, compatible reads the treaty of the journal's own program text against the new program (the same one diff says): compatible unless it moves major, and the line says why; that text is not the client's realized contract. It prints three separate verdicts: safe (the lens is total and the new program's laws hold on every carried row), compatible (an old client calls and reads the same), equivalent (the new program shows on the carried state what the old one showed); a value it cannot derive is a question, and the exit code is the verdict. It appends to a journal, so it has no directive. A stored field the new text no longer holds is lost only when the text says retired <field> since N under its sort, with version at least N and above the journal's text for it: otherwise the answer is MigrationDropsField (3) with the lines to write, and each field so lost is told with the rows that held it. A text that numbers itself version N is taken only when no other text the journal ran bears N or more (VersionNotIncreasing, 2). A text with no version is not compared.

mir #

Lowers a resolved program or project directory through hector-mir (mir.rel, mir.delta, mir.calm, mir.layout) and prints the unified IR, CALM partition, elimination certificates, and causal WhyTable. Usage: hector mir <program.hector|directory> [--json] It prints the text report (or structured hector-mir/v1 JSON with --json) and exits 0 when readable, or exits with the reader's verdict without writing any files.

Executable CLI Run
verdict 0
hector mir commands/small.hector

modules #

Tells what each module of a project shows, keeps and reads, without compiling it. Usage: hector modules <directory> It prints one module line per module with its interface version, files and the modules it reads, then its shows lines, one plays line per named example of its files, its keeps and events lines, and exits 0; a directory that does not read is refused with exit 2. A version fingerprints the interface declarations in canonical order; moving files or renaming the containing folder and its interface file preserves it, and so does writing or removing an example.

Executable CLI Run
verdict 0
hector modules commands

new #

Starts the guided method from an Interface: the sorts, given fields, statuses, event signatures (on E in the block of the sort it acts on) and shown values that a task names, with no rule. It writes the skeleton, a hole for every shown value nothing defines, then lists the holes and prints the card of the first one. Usage: hector new <interface.hector> [-o <program.hector>] It prints the skeleton (or writes it with -o), a holes line and the first card, and exits with the skeleton's verdict, 3 while a hole is open.

Executable CLI Run
verdict 3
hector new commands/interface.hector

next #

Says what to write now in a program developed by the guided method: the hole to fill first, why it comes first, and its card, which is the whole context of the answer. The card gives the question, the expected form, the block it goes in, the names in scope, and an example line with the program's own names, checked to read here; with no hole left it asks for the examples that check the behaviour, then says the program is complete. Usage: hector next <program.hector> It prints the verdict line, then the card or the examples to write, and exits with the verdict of the program.

Executable CLI Run
verdict 0
hector next commands/small.hector

pcc #

Compiles a program or project directory to a frozen delivery::Image and runs the fail-closed linear $O(N)$ #![no_std] Proof-Carrying Code verifier (delivery::pcc::verify_image_pcc). Usage: hector pcc <program.hector|directory> [--json] It prints the verified PCC summary (checked sorts, readers, shows, withheld fields, and FNV-1a image digest) and exits 0 when valid, or exits 2 fail-closed on any violation or compilation failure.

Executable CLI Run
verdict 0
hector pcc commands/small.hector

plan #

Shows the native plan of a program: for each sort its row layout and key index, for each observer its reader, and the observation boundary, as the realization chooses them. Usage: hector plan <program.hector> It prints the decision lines, program facts, emitted-step counts and compiled-genome description, then the admission verdict; the exit code is that verdict. A missing proof or an unapplied feature can leave verdict 3. Costs use the facts, estimates or measurements available to each choice: a chosen line alone does not establish a measured performance comparison. The machine and its compiled genome can change the choices. The command example checks admission; the authored example separately checks what the paid and cancelled orders show. Neither fixes a choice or instruction count.

Executable CLI Run
verdict 0
hector plan commands/small.hector
commands/small.hector
Verified Example
-- but: une commande est prête si elle est payée et non annulée ; elle attend sinon
Clerk
Order  amount: Money
  status: Open | Paid | Cancelled
  -> Open on Place by Clerk
  Open -> Paid on Pay by Clerk
  Open -> Cancelled on Cancel by Clerk
  ready = status is Paid and not status is Cancelled and amount > 0 EUR
  waiting = status is Open or status is Cancelled
  show ready, waiting to Clerk within 1 s

example deux commandes
  c = Place(amount: 20 EUR)
  d = Place(amount: 5 EUR)
  Pay(c)
  Cancel(d)
  see c.ready = true
  see c.waiting = false
  see d.ready = false
  see d.waiting = true

print #

Prints a program in its developed form: the formulas of the defined values are written out, and the text reads back to the same world as the source. Usage: hector print <program.hector> It prints the program text, starting with an empty line, and exits 0; a file that cannot be read is refused with exit 2.

Executable CLI Run
verdict 0
hector print commands/small.hector

profile #

Shows where the time of the native image goes, step by step: a sampled share per operation, an exact count of instructions and memory accesses, and an estimated count of cache misses, each labelled as such. Usage: hector profile <program.hector> [history] [--rows N] [--seconds S] [--hz H], or hector profile <program.hector> --examples [--times N]; --seed, --expert and --expert-arg are also accepted. --seconds is a finite number above 0 and at most 3600, --hz a positive whole number, and the samples the two ask for (seconds times rate, with a margin) are at most 16 777 216: anything else is refused with exit 2 at the argument, before the program is read. --data N populates every sort to N rows before the measured window: data sorts as the deployment gives them, event-born sorts by their own birth events (a program whose births cannot be driven that far is given the rows of data sorts and the situations of born sorts instead, and when neither reaches N the refusal names each sort that stayed short and why). --ops counts the first 200 entries after that population, and --scale compares instructions per entry at N and 4N (flat through ratio 1.15). --json with --ops or --scale emits exact integer counts and numeric ratios; an entry not observed at both sizes has a null ratio. A file history carries its own population; its full event sequence is counted. --per-event with --ops adds, from the same exact count, the instructions of each event one at a time as a histogram (events, total, p50, p99 and max, nearest rank) of every event and of each entry, in the instructions of the image; the totals add up to the --ops total of the same history, and --json carries it as latency. --startup counts the opening with no clock: the instructions the image runs to take in the rows of the deployment, the instructions of the first event after them, and the bytes of the image sealed. It also counts the work of the host, by single-stepping its own thread: reading the frozen image (load), sealing it, installing another image layout on the running program (the pause of a move of code) and, where an admitted layout form lays resident rows elsewhere, installing that form (relocate: the pause of a move of rows and the bytes it shifts; no other form is compiled). Each iteration of a repeated string instruction counts one, as in the image trace; a phase that cannot be counted is unknown 3 with its reason, never a zero. A live run counts no install: this command does. With --json one JSON line. --examples [--times N] takes no history and no clock: the load is the program's own example blocks, played through the image as the judge replays them (an example that starts from a situation no event gives is left out, said so; none left is refused with exit 3), each pass from its own start, N passes (1 unless --times asks), and it prints the exact instructions by entry and nature of operation for those events. --times is refused without --examples. When an exact count is made, the environment variable HECTOR_PROFILE_SITES=<file> also writes, one line per step and operation, step, op, the exact instructions, the executions and the operation, tab separated. It prints the three instruments with their labels and the cost of the sampling itself. It measures durations on the machine, so it has no directive.

realizations #

Lists the modules registered in the open realize::space::modules::RealizationRegistry::standard() along with their tier (Tier0Minimal, Tier1Adaptive, Tier2Specialized), hot-plug morph compatibility (64 rows/slice), and baking thresholds (MAX_BAKE_ROWS, MAX_LOW_WRITE_RATIO). Usage: hector realizations [--json] It prints each module descriptor (or realize.modules/v1 JSON with --json) and exits 0 without writing any files.

Executable CLI Run
verdict 0
hector realizations

record #

Writes a history, read from its text, as a typed binary file (.hrec) for the program. Usage: hector record <program.hector> <history> -o <typed-history.hrec> [--sized-from-history] With --sized-from-history the layout is sized from that history, so a standalone build made with the same history binds to the recording. It writes a file, so it has no directive.

replay #

Replays a journal on the program: the recorded inputs run again through the same native program, with no external dispatch. Usage: hector replay <program.hector> <journal> [--under <proposed.hector> [--judge <n>|all] [--format text|json]] [--since <n>] [--examples <n>] It prints each show line, then the pending events that have no answer yet, then a chosen line, and exits 0 when the replay completes. It reads a journal written by run --journal or serve --journal, so it has no directive. It writes nothing: a torn last segment is left out of the replay and told with its bytes, and stays in the file for the run that resumes it. With --under the real journal is read again from its first input under another program, with no state carried: the program of the journal runs it as above and the proposal runs the same inputs on a machine of its own, each input translated by the identity of its event and arguments (a rename keeps it, a different order or name does not matter). It prints an example line for the first --examples inputs (20 unless said) that the proposal answers differently, with the recorded and the new result code, the class (AcceptedNowRefused, RefusedNowAccepted, OtherCode: both refuse, in other words) and whether the row had already differed (Direct, Consequence, Wide); a twin line with the counts, an impact line per event and class with its causes, the lines each side shows at the end that the other does not, and a chosen line. For the first example of each event and class, why lines say what the program that refused it lacked (the line, the conditions that did not hold with their value, the earlier inputs without which it is accepted) and which line the other accepted it by. The naive judge confirms the first --judge examples of each class (20 unless said, 0 none, all every one kept) on the journal lifted to its terms, and a judge line counts them: an example it does not confirm is a fault of the twin or of the translation, said refuted 1 with the shortest history that shows it, and the exit is 1. The judge reads the first 100 000 inputs of the journal, whole; an example beyond them, or after an input that cannot be lifted (a text, a collection, a float, an argument another sort shares), is not read, counted, and the exit is 3. --format json adds the groups, the examples and the lines shown as typed facts. --since counts only the inputs from that position on; the others still run, for the state they leave. An event the proposal no longer has, or an argument it gained that the journal holds no value for, is Unmapped: it is counted, never given a value, and the exit is 3. The journal file is read from a copy and not one byte changes.

run #

Runs a history on the program: the events and answers are applied in order, and it prints what each event answered and what each observer shows. Usage: hector run <folder> plays the examples of a project (each on the part of the program it can reach, kept under its identity), or serves its events when it has no example; hector run <program.hector> <history> [--each] [--json] [--expect] [--bench N] [--sized-from-history] [--native-only|--judge] [--realize seed] [--experimental gpu|cpu] [--journal path] [--inbox host-path] [--durable sync|unblocked] A history has one line per fact: Clerk 1, then at <seconds> Place <id> amount=<amount> EUR by=<id>, and at <seconds> Pay <id> by=<id>. Time goes forward in a history: a line dated before the one above it is refused (HISTORY_TIME_ORDER), by the judge and the native image alike. --judge replays the naive judge, keeping the verdict of the plan as the fallback does, and --native-only makes a missing native image an explicit verdict instead of a judge replay. Without those options, a plan that fails falls back to the judge, which is not native. --expect plays the judge on a history that carries what its author expects (-- expect ok|refused|repeated|ignored under an event, -- expect Sort id name = value for a shown value after it) and checks each one: a failed expectation is a refuted 1 with its counterexample, the lines of the history that still make it fail the same way, each one needed, then what the judge did there. It ends with the same case as an example to paste under the program, whose last line says what the author expected, so that hector check refutes it at that line; a step, a value or a tolerance no example line can say is named instead. The value is read as the type of what is shown and held to it exactly: a count to the unit, an amount in its own unit, a text word for word, never as a rounded number; a tolerance is written after it (-- expect Sort id name = 10 +- 1) and applies to a number only. With --json the same execution and exit code give one object. Its steps give each witnessed line's outcome (accepted, refused, repeated, ignored) and witness (native or judge). The judge supplies the reason and laws of a refusal and describes the rows and views that changed. A native run supplies its own outcome and reports any disagreement with the judge as a comparison. An execution refused before it starts has no steps. --expect, --bench and the RRAC window have their own output and refuse --json. The exit code is the verdict.

Executable CLI Run
verdict 0
hector run commands/small.hector commands/small.history --judge

rules #

Runs the rules of a project, the files of its rules/ folder, on the world of its program and prints what they show: one row line per row of each shown definition (the identities of the exported world, then its values), a rules line with the counts, and the verdict. With init <Template> [--max-micro N] [--out dir], materializes a meta-law template from sens/lens/meta/ (ShowTolerance, NoUnboundedQuantity, EverySortHasLaw) into <dir>/rules/. A meta-law shows to Diagnostic with mandatory message and fix text constants (MetaLawNoFix otherwise), and hector check, LSP and MCP refuse violations as MetaLaw carrying the rule name in meta. A project with no rules/ folder runs nothing, and a rule that shows to Compiler is refused as RuleToCompiler. Usage: hector rules <project> or hector rules init <Template> [--max-micro N] [--out dir]

Executable CLI Run
verdict 0
hector rules commands/rules

scenes #

Lists the examples to write for what none of the examples exercises: one example reaching skeleton for each status or event that no example reaches. When every example keeps a number of a row within a bound (its least or greatest value over every moment of every example), or keeps the rows of a sort under a number (count(S), those in one case of a status: count(S where On), at most one being an exclusivity; or those each row of another sort refers to: count(S where S.owner = self), signed under that sort), or never lets two rows of a sort share a member that names a thing (an identity, a quantity, a text, an instant: unique(m)), and a generated execution breaks it, it also prints that execution as an example beyond …, ending with the law that would forbid it: sign it where the line says (under the sort, or at the root for a number of rows) if nothing may come there, or keep the example if it may. A law no generated execution breaks is not proposed, and nothing is signed for you. A -- a scene to decide line tells a situation and its two outcomes, both replayed by the judge on a generated history: an event that changes a row although its guarded transition is refused; a deadline (after d) just before and at its instant; a line time alone changes (a condition that reads now, a clock) on both sides of the second it changes; an event whose guard reads the instant, played on the same situation inside and outside its window. The search is bounded: a line without a scene is not proven to have none. For each guard no example needs, it generates histories within a fixed bound, then, for a guard they leave, a few histories aimed at its line (the events of its sort, its event played once a row stands where the line starts, the values the condition compares at their edges) and prints one that the program plays differently without that when, as an example needing the guard of … whose last lines say what the rows hold there; pasted under the program, that example needs the guard. A guard no history within the bound tells apart (the line follows the same way without it, or only a longer history shows it) is named on an unknown 3 line instead, never given an invented scene. With --shrink it prints instead the examples of the program cut to what they hold: the examples whose mutants, statuses and events others already hold are left out, and each one kept is reduced to the lines it needs to kill the same law and guard mutants and reach the same statuses and events, checked on the judge. A line that reads a row keeps the line that names it. The text replaces the examples it comes from, and nothing is written for you. With --price it prints instead each law found (law found) with its price: what signing it moves in the realization, as check realizes the program at the quick tier: each site whose form changes (site : was -> now), a site the law opens or closes, and how the realization holds the law (proven, or checked by a guard); unknown 3 price when the realization states nothing of the law. Nothing is signed. Usage: hector scenes <program.hector> [--shrink|--price] It prints the skeletons, or a single -- line when every status, event, law and guard is exercised, and exits 0 when every gap has a scene, 3 when some gap has none. With --shrink it prints the cut examples and a closing -- line with the lines before and after, and exits 0, or 3 when the judge stops.

Executable CLI Run
verdict 0
hector scenes commands/small.hector
Executable CLI Run
verdict 0
hector scenes commands/small.hector --shrink

serve #

Serves the program's events on the loopback network: the program listens on a port, takes its events from an inbox, and journals each answer so that replay can reproduce it. Usage: hector serve <program.hector> [--given history] [--port n] [--journal path|--volatile] [--inbox path] [--transport registered|portable] [--core n] [--attach n] [--web [port] [--keys file]] --attach n opens a separate loopback control port (0 lets the system choose); attach 127.0.0.1:n reports it. An attachment requires the original service to opt in; the event wire and existing clients stay connected. show ... why requires an explicit --journal <path>. WHY_NEEDS_JOURNAL refuses a serve without that journal before reading provided inputs. --web serves the observers on loopback only, each by a key the host declares in the file of --keys, one per line: <party> <key> or <Sort> <identity> <key>. GET /contract?key=<key> tells that observer its own shows, GET /observe?key=<key> streams what they hand it, and, for a program whose shows say why, GET /why?key=<key>&show=<n>&row=<identity>&item=<n>, the numbers being those its contract gives, answers with the JSON of hector why --journal --for for that observer, through that show (200 answered, 403 refused, 503 unknown). A call without a declared key, or for the show of another observer, is refused 2 ObserverKey; a call never says who it is. GET /studio?key=<key> is the resource a Studio attaches to: it exists (otherwise 404) only for a program that writes restrict studio remote observe at column 0, takes the same keys, and streams what /observe hands that observer, never the program text. A refused or unknown question says no more than that. An item the contract offers that observer no why on is refused before anything is read; each other question copies the journal beside itself between two rounds, replays the copy on the bridge thread and removes it. The word port is the host's own: it takes events and reads as any observer. It runs until it is stopped and writes its journal unless --volatile is given, so it has no directive.

sim #

Runs a deterministic seeded multi-agent economic and supply-chain simulation on a program using the naive judge across --agents N agents and --days D days with PRNG --seed S. Usage: hector sim <program.hector|directory> [--agents N] [--days D] [--seed S] [--steps-per-day K] [--json] Detects critical resource depletion (famine), supply-chain or state-machine stalls (deadlock), sustained inflationary drift (inflation), and extreme wealth concentration (concentration). Exits 0 when healthy, 1 when pathologies are detected, and 2 on invalid arguments or refused sources.

Executable CLI Run
verdict 0
hector sim commands/small.hector --agents 4 --days 3 --seed 1

studio #

Opens a local workbench over one retained compiler revision. Usage: hector studio <project> [--port N]. It prints the loopback URL; the default port is assigned by the operating system. The project must compile before the session opens. The page compares each realization's cost vector, evidence, restrictions and open questions. Grouped answers and withdrawals are validated together before installation; a change asked on a stale revision is refused. Priorities use the source scope resolver. Existing declared paths and flows are editable without inventing one effective policy for all their sites. Applying a priority writes the prefer line of that scope into the source file that owns it, shown before anything moves; withdrawing removes the priority lines of the scope. A locked library is never written. A file saved by anyone is followed: one changed file goes by its unit, anything else is read whole, the page shows the new revision and the actors keep their history; a saved file the compiler refuses leaves the displayed revision, says why, and no change is applied until the files read again. Reload revision reads the current session; Reopen & clear session discards its live actors and opens the files and saved build inputs again. Resource limits, adaptation, load and target are visible where established, but this panel does not edit all those inputs or migrate an existing live service. Ask a history puts why (a value of one row), whynot and whatif to a history of the displayed revision (a generated one when the box is empty); the answer is the one hector why, hector whynot, hector whatif and the room give, and nothing is admitted. Play the examples offers each example block of the program as a story played one step at a time: every step shows the event told, the outcome the judge gives it (taken, refused with its reason, repeated, ignored) and the rows it changed, from the same replay that checks the example; a story is played once per displayed revision and costs no compiler work. The command starts a server and therefore has no executable reference directive.

hector studio review <program|room> [--author NAME] [--port N] opens the complementary authoring surface of a retained MCP room over the same bounded local HTTP. It imports a program file once as one text, or a directory as a project of whole files, into a room kept beside the input, then reopens that room on later launches. The page displays the exact sources, semantic cards, questions, typed proposals and admitted decisions of its revision; it computes no verdict, equivalence or score. The author reviews a semantic difference, can replay a history or explore explicit bounded futures, then admits or rejects the proposal. Pending answers never acknowledge questions. Old drafts keep their base and must be refreshed explicitly. Admission updates the room; imported files stay intact and an admitted file can be downloaded. In a project room a file is proposed whole (file=PATH); a typed change (answer, fill) of a project is written back into the physical files it touches, only the blocks that changed are rewritten, and nothing is lodged when the edited files do not read as the meaning proposed. The author role is declared locally, not remotely authenticated; the printed URL carries a process-local session nonce of 128 bits drawn from the operating system and compared in constant time. review names this surface only where a program or room follows it: a project called review opens as a project (hector studio review, hector studio review --port N).

try #

Checks a proposed program against the examples of the current one, without changing either file: the proposal is accepted when every example still holds. Usage: hector try <program.hector> <proposed.hector> [<history>] It prints the lines of the proposal that the examples refuse, with their line numbers and their fixes, and verdict; a proposal with a refusal exits 2, and a proposal that keeps every example exits 0.

Executable CLI Run
verdict 0
hector try commands/small.hector commands/small.hector

With hector try <base> <proposed> <history> --actions <file>, the command explores explicit continuation actions from that history. Each line of the actions file is a complete history line, including its time. The default continuation depth is 1, which is linear (every root and one action after it); a deeper search is --max-depth N, and the price of that depth (the most candidates the scope can hold) is printed with the scope. Optional bounds are --max-candidates, --max-steps and --max-bytes, charged before any candidate is replayed. A witness exits 1; exhausting a budget exits 3, while 0 describes only the complete finite scope supplied. The byte count covers the explorer's history buffers and retained witness, not the judge's RAM or the duration of one step. An invalid chronology or input stops the exploration with its refusal. Neither program is modified and no proposal is admitted.

why #

Explains one value of a history: it gives the steps of the history that produced the value, and each step is needed, since without any one of them the value is not reached. Usage: hector why <program.hector> <Sort.member> <identity> (<history> | --generate [seed]) The history is always named: a file, or --generate, which draws 60 steps from the seed (1 without one). A generated history is none that happened, and the chosen line says its seed. It prints value, the numbered why steps, a chosen line and verdict. The steps are the ones that the counterexample of a differing shown value names. An identity that is not in the history is refused as WHY_NO_ROW with exit 2, and the line lists the identities it can ask about.

hector why <program.hector> --lib <decision site> [--json] explains one registry decision from hector chosen <program.hector> --lib.

hector why <program.hector> --journal <path> <Sort.member> <identity> [--json] visits the recorded inputs of the stated program revision, indexes the last input after which each asked value changed and the declared line the judge wrote it with, and reports both. A value an input says itself (a row of the deployment, an answer of the world) has no line. For a definition it lists, latest first, at most 8 of the values it read that an input wrote and counts the others; a secret field is never listed. For a value no input wrote it names the last input refused for the row; the words of the refusal are withheld when the program holds a secret field. A directly shown field or definition needs why in a show to an outside observer without as; when every such show has a where, the row asked about must pass one of them at the end of the journal. A migrated journal, masked arguments or inputs the judge cannot replay yield verdict 3. The command leaves the journal unchanged.

--for <observer> (an outside party) or --for <Sort> <identity> (one row of the sort) asks as that observer. It answers only for a row that one of its own why shows hands it at the end of the journal; every other row, absent ones included, is refused as WHY_SUBJECT. The answer is computed from what that observer is shown and from the program, so two histories it cannot tell apart are explained alike: no input position, count, author, argument or refused input is said. The text of the program is not public: no line, rule or event is said. Beside the cause it says the category of the answer, the grant it rests on (a show with why of the member to that observer) and the revision, the contract fingerprint that observer reads. For a field it says the last instant at which the observer watched the value change, through the shows that offer why, while they handed it the row: the instant of an input, or the instant a delay, a clock or a rule of time acted. A show whose where or to reads the instant gives no instant: when its rows are seen rests on when the observer looks. For a definition it lists, without instants, at most 8 of the cells the observer is told among those the definition reads on the row and on the rows that told references tie to it, and counts the others it is told. An argument the journal withholds is one nothing a replay runs reads: an observer is explained from a replay that gives it the zero the journal holds. A program that would withhold a value no zero word says (a list, bytes) explains nothing to an observer (verdict 3).

Executable CLI Run
verdict 0
hector why commands/small.hector Order.ready 101 commands/small.history
Executable CLI Run
verdict 2
hector why commands/small.hector Order.ready 101

whynot #

Explains why a step of a history was refused: the guard that stopped it and the earlier steps that made the guard fail. It is the question the MCP answers under the same name, asked from the command line. Usage: hector whynot <program.hector> [--history <file>] (--entry N | --point <name>) [--json] --entry names a position of the history, counted from 0 over its lines; --point names an event or a transition, and the last refused step that it names is explained. Without --history, the generated history is used. It prints why not, the guard lines, a propose line, the blocker steps, a chosen line and verdict. The propose line is the smallest edit of the guard's line under which the judge accepts the step on the history (a comparison relaxed to the value the row had, a condition dropped, the whole condition, the author dropped, or the status the row was in also left), written as the line rewritten, with the examples it changes; it is never applied, and unknown 3 propose says when no edit tried makes the step accepted. A step the history accepted is refused as WHYNOT_HAPPENED with exit 2. When the nearest line is a transition, a set, a next or a birth, whynot proposes the smallest edit of its condition or author under which the entry is accepted and the line applies (propose … ; entry N accepted, the line applies); it says unknown 3 propose : none of K edits tried makes entry N accepted through the line when none works, and guard unknown : no line of the event explains this refusal when no line explains it. Asked of an advance entry, or --point naming a timed transition, whynot says which timed line (a deadline after d or a rule fired by its condition) had not fallen by that instant: its row, when it entered the status it leaves, its deadline and the conditions that held it back. The proposal may shorten the delay to the time waited, widen an author to the field of the row that holds the actor, or add the row's status to the scope of a set or next line.

Executable CLI Run
verdict 3
hector whynot commands/small.hector --history commands/refused.history --point Cancel

whatif #

Replays a history with one step removed, replaced or added, and lists the later steps whose outcome changes. It is the question the MCP answers under the same name, asked from the command line. Usage: hector whatif <program.hector> [--history <file>] (--without N | --instead N <step> | --also <step>) [--json] Positions count the lines of the history from 0; a step is written as one line of a history. It prints whatif, one flip line for each changed outcome, a chosen line and verdict. A position outside the history is refused with exit 2.

Executable CLI Run
verdict 0
hector whatif commands/small.hector --history commands/small.history --without 2

stage #

hector stage <project> [--target ISA] [--standalone] [--answer SITE FORM] saves the admitted image under the project's .hector/stages directory. Run the command again to materialize the matching deliverable. A standalone build selects a compatible installed loader when it packages the image. A changed input invalidates the saved image.

hector stage <project> --questions reports the offers before emission. Once an image is retained, it reports the priced developer defaults accepted at emission and the remaining machine and load questions. Use the same target and delivery flags when inspecting it.

Use --forget SITE to withdraw a saved choice after an edit or return to the default. Add --measure HISTORY when changing an answer to count instructions per event on the same recorded load for both forms. hector describe exposes the two images, their compilation times through emission, and the realized sites that changed.

adapt #

hector adapt <executable> installs a standalone replay beside the original when the compiler offered a machine-dependent cache window. The installed executable bounds its temporary input records by the cache share of this machine and accepts the same typed histories.