Documentation Menu · 175 Error Codes

175 Error Codes

Every diagnostic code emitted by Hector is closed, documented, and paired with executable wrong/right programs verified by hector doc --check.

175 codes
AggregateDuplication an aggregate counts each fact once: going down a collection and back up its own reference counts the same row several times Time & Deadlines

Cause. An aggregate traverses down a collection and back up its own reference, which visits and counts the same row more than once.

Repair. Aggregate directly over the sort that owns the facts instead of bouncing down a collection and back up its reference.

Status. No standalone example of the reference raises it yet (published gap).

AggregateIdentity each component of identity in an aggregate must be the exact identity element of its component operation (0 for +, none for min/max, true for and, false for or) Laws & Proofs

Cause. Each component of identity in an aggregate must match its combine operator (0 for +, none for min/max, true for and, false for or).

Repair. Write the exact identity element for each component operator.

AggregateIdentity.wrong.hector
Refused · AggregateIdentity
Screen
aggregate total(x)
  lift x
  combine s1, s2 = s1 + s2
  identity 1
  result s = s
Item  amount: Count
  -> on Add(amount)
show total(Item.amount) to Screen

The repaired program:

AggregateIdentity.right.hector
Verified Example
Screen
aggregate total(x)
  lift x
  combine s1, s2 = s1 + s2
  identity 0
  result s = s
Item  amount: Count
  -> on Add(amount)
show total(Item.amount) to Screen
example aggregate_identity
  Add(amount: 4)
  Add(amount: 6)
  see total(Item.amount) = 10
AggregateLawRefuted a declared law of an aggregate is contradicted by its component algebra and witnessed by a counterexample Laws & Proofs

Cause. A law declared on an aggregate is contradicted by its component algebra and witnessed by a counterexample (for example, idempotent on +).

Repair. Remove the refuted law or choose component operators that satisfy it.

The repaired program:

AggregateLawRefuted.right.hector
Verified Example
Screen
aggregate total(x)
  lift x
  combine s1, s2 = s1 + s2
  identity 0
  result s = s
  law associative, commutative, inverse
Item  amount: Count
  -> on Add(amount)
show total(Item.amount) to Screen
example aggregate_law_established
  Add(amount: 3)
  Add(amount: 7)
  see total(Item.amount) = 10
AggregateLawRefuted.wrong.hector
Refused
Screen
aggregate total(x)
  lift x
  combine s1, s2 = s1 + s2
  identity 0
  result s = s
  law idempotent
Item  amount: Count
  -> on Add(amount)
show total(Item.amount) to Screen
AggregateNotDecomposable each component of combine in an aggregate must be one of +, min, max, and, or over the corresponding left and right components; otherwise declare a strategy Laws & Proofs

Cause. Each component of combine in an aggregate must fold only the matching component pair (a_i, b_i) with one of +, min, max, and, or or, matching the arity of lift.

Repair. Rewrite every component of combine using +, min, max, and, or or, or declare a strategy when an arbitrary merge is intended.

AggregateNotDecomposable.wrong.hector
Refused · AggregateNotDecomposable
Screen
aggregate prod_sum(x)
  lift (x, x)
  combine (a1, b1), (a2, b2) = (a1 * a2, b1 + b2)
  identity (0, 0)
  result (p, s) = p + s
Item  price: Count
  -> on Add(price)
show prod_sum(Item.price) to Screen

The repaired program:

AggregateNotDecomposable.right.hector
Verified Example
Screen
aggregate spread(x)
  lift (x, x)
  combine (lo1, hi1), (lo2, hi2) = (min(lo1, lo2), max(hi1, hi2))
  identity (none, none)
  result (lo, hi) = hi - lo
Item  price: Count
  -> on Add(price)
show spread(Item.price) to Screen
example aggregate_spread
  Add(price: 10)
  Add(price: 25)
  see spread(Item.price) = 15
AmbiguousPath a name has one meaning: a sort, a definition or a row reached by a path is declared once, and the X where c finds at most one row Laws & Proofs

Cause. The definition total is written twice, so the name has no single meaning. A case written twice in one choice (status: Stored | Shipped | Stored) is the same mistake: the first is kept. So is any name declared twice: a sort, a field, a value, a function, an input given twice to one call.

Repair. Keep one definition and delete the other.

An unordered selection whose uniqueness the reader cannot prove carries verdict 3 and a proposed order. An identity, every field of a unique key, or an applicable count bound can establish uniqueness.

At runtime, the Sort where condition also refuses when several rows qualify. Choose explicitly with the Sort minimizing key where condition, or state a law that guarantees at most one candidate. The refusal leaves the change unapplied and carries this repair form.

As a warning, this code also names a bare field or definition that belongs to the subject and to an element of an enclosing filter or aggregate. The subject-first rule already resolves it: the warning never changes the verdict or binding. It identifies the physical source line and spells both readings, self.member and element.member.

AmbiguousPath.wrong.hector
Refused · AmbiguousPath
Clerk
Order
  total = 3 EUR
  total = 4 EUR

The repaired program:

AmbiguousPath.right.hector
Verified Example
Clerk
Order
  total = 3 EUR
AnswerBeforeQuestion an event reopens the question it asks, so a line on that event cannot read the answer: a line that waits for the answer is a rule that fires when the answer arrives Syntax & Names

Cause. A value decided by the world (hold: Accepted | Declined by Bank on Arrive) is asked again each time its event happens. A line on that same event that waits for the answer (Booked -> Inside on Arrive … when hold is Accepted) reads it while the question is open, so it is Unknown: the line never applies, and the answer that arrives later moves nothing.

Repair. A line that waits for the answer is a rule, with no event: Booked -> Inside when hold is Accepted, which fires when the answer arrives. The event can move the row to a status of its own first, as the corrected program does.

AnswerBeforeQuestion.wrong.hector
Refused · AnswerBeforeQuestion
Bank
Desk
Stay  guest: Text
  status: Booked | Inside
  hold: Accepted | Declined by Bank on Arrive
  -> Booked on Book by Desk
  Booked -> Inside on Arrive by Desk when hold is Accepted

The corrected program:

AnswerBeforeQuestion.right.hector
Verified Example
Bank
Desk
Stay  guest: Text
  status: Booked | Present | Inside
  hold: Accepted | Declined by Bank on Arrive
  -> Booked on Book by Desk
  Booked -> Present on Arrive by Desk
  Present -> Inside when hold is Accepted
AnswerForm an answer is one expression or one line of business words Syntax & Names

Cause. The answer to a question is empty or spans several lines. An answer is one expression or one line of business words.

Repair. Write the value on one line: ?name = <value>.

AnswerForm.program.hector
Valid
Order  amount: Money
  tax = amount * rate
  show tax to Order
AnswerGiven a question is answered once; changing its answer is a change of the program Syntax & Names

Cause. An answer is given to a question that already has one. An answer decides one open question once; changing it is a change of the program, not a second answer.

Repair. Propose the change on the card of the question instead of answering again.

AnswerGiven.program.hector
Valid
Order  amount: Money
  tax = amount * rate
  show tax to Order

?rate = 10 %
AnswerUnknownHole an answer decides an open question of the program, named as the program names it Syntax & Names

Cause. An answer names a question (?name) that the program does not have open.

Repair. Answer a question the program asks: hector check lists them as HoleOpen.

AnswerUnknownHole.program.hector
Valid
Order  amount: Money
  tax = amount * rate
  show tax to Order
ArbitraryOrder Hector never decides by an accident of the run: an order over rows needs a key (by k), and simultaneous changes that a law opposes need a tie Laws & Proofs

Cause. first and seq take an order over rows, but the rows carry no key to order them by: their arrival order is not observed, so the answer would depend on an accident of the run.

Repair. Give the order a key, first(Item by amount), as the corrected program does, or name the row that wins with the Item minimizing amount.

ArbitraryOrder.wrong.hector
Refused · ArbitraryOrder
Item  amount: Money
  -> on Add by Shop
Cart  name: Text
  top_item = first(Item)
  show top_item to Cart

The corrected program:

ArbitraryOrder.right.hector
Verified Example
Item  amount: Money
  -> on Add by Shop
Cart  name: Text
  top_item = first(Item by amount)
  show top_item to Cart
BUILD_SOURCE a program is read from a source file or a project folder that exists and is readable Syntax & Names

Cause. The source file or project cannot be read from the supplied path.

Repair. Supply an existing readable source file or project folder, and restore any missing imports.

An executable documentation example for filesystem failures remains a published gap (verdict 3).

BoolState a state is named by its cases (status: Active | Blocked), never a true/false flag, so that Hector can derive its transitions and their exclusion Syntax & Names

Cause. A state declared as a Bool flag (blocked: Bool) hides its states, so Hector cannot derive the transitions or their exclusion from it.

Repair. Name the states (Blocked | NotBlocked), give the first one at birth, and move between them with transitions.

BoolState.wrong.hector
Refused · BoolState
Clerk
Card  blocked: Bool
  show blocked to Clerk within 1 s

The repaired program:

BoolState.right.hector
Verified Example
Clerk
Card  blocked: Blocked | NotBlocked
  -> NotBlocked on Open by Clerk
  NotBlocked -> Blocked on Block by Clerk
  show blocked to Clerk within 1 s
BoundRecipient a service with a bound in-process recipient uses one durable journal and a fixed live contract, answering requests only through their durable offers Syntax & Names

A service with an in-process recipient uses one durable journal. The recipient receives a request only after the journal holds it and submits an answer against that offer. An inbox or a live contract replacement would change who can deliver or answer the request.

Open the service with a journal and the recipient port. Supply only ordinary inputs as initial records. For a contract change, finish the service, migrate the journal and open a new service with a new port. A recovered offer retains its original identity and text. Reconcile any external receipt before acting on it.

Circular a value cannot be computed from itself: two definitions that only read each other have no value to start from Laws & Proofs

Cause. Two values read each other (a = b and b = a), so neither has a value to start from, and Hector refuses the circle.

Repair. Break the circle: give one value a fixed expression, and let the other read it.

Circular.wrong.hector
Refused · Circular
Clerk
Tally
  a = b
  b = a

The repaired program:

Circular.right.hector
Verified Example
Clerk
Tally
  a = 5 EUR
  b = a
ClockRule a next … when rule is read at an act: a condition of the clock moves a status (A -> B when c), and the rule reads that status Time & Deadlines

Cause. A next x = e when c that no event and no clock steps is read at an act. A condition that reads the clock, an age or a window of time (per 5 s, age(m) <= 5 s) changes when no act happens: x would take its value at whatever act came next, so what is seen would depend on when the world was looked at.

Several rows. A definition that reads the instant through a reference is written on the status of the row that reads it in its own words, along the whole chain. When the refusal supplies an exact edit, hector fix applies the rule, definition, and status edits together, including across blocks. A temporal call whose next instant is unproved needs the clock comparison written in the status condition before the repair can be applied.

Repair. Let a status move at that instant (Before -> Reached when c, and back when c can fall), then write the rule on the status. When the instant is read of another row (par.ripe, (the P …).ripe), the status belongs to that row, and the rule reads it there. A move of time happens at its own instant, with or without any other act.

The corrected program:

ClockRule.right.hector
Verified Example
Desk
Lease
  fee: Count
  fee_time: Before | Reached
  -> Before on Open
  start since = now
  Before -> Reached when now >= since + 3 day
  start fee = 0
  next fee = 5 when fee_time is Reached
  show fee, fee_time to Desk
example due
  a = Open
  after 5 day
  see a.fee = 5
ClockRule.wrong.hector
Refused
Desk
Lease
  fee: Count
  -> on Open
  start since = now
  start fee = 0
  next fee = 5 when now >= since + 3 day
  show fee to Desk
CompensationActor a compensation is a question to someone: with <Who>.<operation> says who answers it and by which operation Syntax & Names

Cause. A compensate line does not say who answers it and by which operation.

Repair. Write with <Who>.<operation> after the status; arguments of the operation go in parentheses.

CompensationActor.wrong.hector
Refused · CompensationActor
Clerk
Bank
Order
  status: Paid | Refunded
  card: Accepted | Declined by Bank
  -> Paid on Buy by Clerk
  compensate Paid with Refund then Refunded when card is Declined

The repaired program:

CompensationActor.right.hector
Verified Example
Clerk
Bank
Till
Order
  status: Paid | Refunded
  card: Accepted | Declined by Bank
  -> Paid on Buy by Clerk
  compensate Paid with Till.Refund then Refunded when card is Declined
  show status to Clerk
example the refund is done
  o = Buy()
  o.card = Declined by Bank
  see o is Paid
  o.refund = Done by Till
  see o is Refunded
CompensationCondition a compensation is asked while the row is still in its status, once the when condition it writes holds Syntax & Names

Cause. A compensate line does not say when it is asked.

Repair. End the line with when <condition>: the question is put while the row is still in the status and the condition holds.

CompensationCondition.wrong.hector
Refused · CompensationCondition
Clerk
Bank
Till
Order
  status: Paid | Refunded
  card: Accepted | Declined by Bank
  -> Paid on Buy by Clerk
  compensate Paid with Till.Refund then Refunded

The repaired program:

CompensationCondition.right.hector
Verified Example
Clerk
Bank
Till
Order
  status: Paid | Refunded
  card: Accepted | Declined by Bank
  -> Paid on Buy by Clerk
  compensate Paid with Till.Refund then Refunded when card is Declined
  show status to Clerk
example nothing is asked while the card is good
  o = Buy()
  o.card = Accepted by Bank
  see o is Paid
CompensationName the answer of a compensation is a field named for its operation in lower case, so that name must be free on the row Syntax & Names

Cause. The answer of a compensation is a field of the row named for its operation in lower case, and that name already names something, such as a field, a definition, a word of the language or another compensation of the same operation.

Repair. Give the operation a name that is free on the row.

CompensationName.wrong.hector
Refused · CompensationName
Clerk
Bank
Till
Order
  status: Paid | Refunded
  card: Accepted | Declined by Bank
  -> Paid on Buy by Clerk
  compensate Paid with Till.Card then Refunded when card is Declined

The repaired program:

CompensationName.right.hector
Verified Example
Clerk
Bank
Till
Order
  status: Paid | Refunded
  card: Accepted | Declined by Bank
  -> Paid on Buy by Clerk
  compensate Paid with Till.Refund then Refunded when card is Declined
  show status, refund to Clerk
example the refund fails
  o = Buy()
  o.card = Declined by Bank
  o.refund = Failed by Till
  see o is Paid
  see o.refund is Failed
CompensationStatus compensate names a status of the row, and then names one of the same cycle Laws & Proofs

Cause. A compensate line names a status the row does not have, or its then names a status of another cycle.

Repair. Name a status of the row after compensate, and a status of the same cycle after then.

CompensationStatus.wrong.hector
Refused · CompensationStatus
Clerk
Bank
Warehouse
Order
  status: Placed | Shipped | Unshipped
  card: Accepted | Declined by Bank
  -> Placed on Buy by Clerk
  Placed -> Shipped on Ship by Clerk
  compensate Sent with Warehouse.Unship then Unshipped when card is Declined

The repaired program:

CompensationStatus.right.hector
Verified Example
Clerk
Bank
Warehouse
Order
  status: Placed | Shipped | Unshipped
  card: Accepted | Declined by Bank
  -> Placed on Buy by Clerk
  Placed -> Shipped on Ship by Clerk
  compensate Shipped with Warehouse.Unship then Unshipped when card is Declined
  show status to Clerk
example the card is declined after the parcel left
  o = Buy()
  Ship(o)
  o.card = Declined by Bank
  see o is Shipped
  o.unship = Done by Warehouse
  see o is Unshipped
CompilerFailure an internal error of Hector, not of the program; the program must not change for it Syntax & Names

Cause. The compiler stopped on an internal error while it read, planned or compiled the program. It is a defect of Hector, not of the program, and it is reported as unknown 3: nothing about the program is established.

Repair. The author changes nothing. The defect goes to the Hector team with the program; the line names the stage that stopped.

Status. No program of the reference raises it: each one found is a defect, fixed at its cause (published gap).

Counterexample an example states what must be true; when the program computes something else, the rule or the expected value is wrong Examples

Cause. An example's expected result disagrees with what the program computes. The diagnostic identifies the example line and gives the expected and observed values.

Repair. Check the business rule and the expected result against the intended scenario, then correct whichever is wrong. Hector cannot choose that decision for the author. A see is the expected result the author stated: it is corrected when it is wrong, never deleted to silence the failure.

Under the line, check prints the smallest story that still fails: the lines of the example, as an example to paste under the program, each of them needed (removing any one loses the failure), the values of the rows the last line names before it, what the line reads and the program's own line that defines it, and the guard that did or did not refuse. A history that carries its expectations (-- expect lines) gets the same story from hector run <program> <history> --expect, with the lines of the program that wrote the values that changed, and ends with that story as an example whose last line says what was expected.

The same program with the expectation consistent with its rules:

../words/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
Counterexample.wrong.hector
Refused
-- 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 = false
  see c.waiting = false
  see d.ready = false
  see d.waiting = true
DeadBirth a birth whose event can never be accepted never makes a row Syntax & Names

Cause. An event that brings a row to life is judged unable to ever fire, so the row would never exist.

Status. No program of the reference raises it yet. The reachability analysis (derivation/plan/src/reach.rs) treats a birth whose condition is unset or absent as possibly true, so none of the seven variants tried was judged dead. The page stays as a published gap until a program does raise it.

DeadRule a rule whose condition can never hold never fires Syntax & Names

Cause. A rule whose condition can never hold is dead: here its when tests a status value that no row ever reaches, so the rule cannot fire in any reachable state.

Repair. Make the condition reachable by giving the status a real entry, or delete the rule.

The corrected program:

DeadRule.right.hector
Verified Example
Item  status: Waiting | Finished
  -> Waiting on Create
  Waiting -> Finished on Close
DeadRule.wrong.hector
Refused
Item  status: Waiting | Finished
  review: Ok | Bad
  -> Waiting on Create
  Waiting -> Finished when review is Bad
  Ok -> Bad on Judge when review is Bad
  Waiting -> Finished on Close
DeadlineHeld a stay also holds timed exits from the same status while the world answer is Unknown Time & Deadlines

Cause. stays S while answer is Unknown holds every timed exit of S: while the world has not answered, the delay does not fall, and a row whose answer never comes stays in S for ever.

Repair. Say which governs the missing answer. To let the delay fall, remove the stays line. To wait for the answer, but not for ever, bound the wait in the stays condition: the delay then falls once the bound is passed.

The program runs while this decision remains open. hector explain reports the same cause from either the delay or the hold. The diagnostic keeps the delay as its primary site.

Executable CLI Run
verdict 3
hector explain DeadlineHeld.wait.hector 9
Executable CLI Run
verdict 3
hector explain DeadlineHeld.wait.hector 10

The wait bounded: at 3 days the row still waits, after the bound it has failed.

DeadlineHeld.right.hector
Verified Example
Bank
Desk
Pledge
  status: Pending | Received | Failed
  card: Accepted | Declined by Bank on Give
  -> Pending on Give by Desk
  Pending -> Received when card is Accepted
  Pending -> Failed when card is Declined
  Pending -> Failed after 2 day
  stays Pending while card is Unknown and now - born(self) < 7 day
  show status to Desk within 5 s
example bounded_wait
  p = Give()
  after 3 day
  see p is Pending
  after 30 day
  see p is Failed
DeadlineHeld.wait.hector
Valid
Bank
Desk
Pledge
  status: Pending | Received | Failed
  card: Accepted | Declined by Bank on Give
  -> Pending on Give by Desk
  Pending -> Received when card is Accepted
  Pending -> Failed when card is Declined
  Pending -> Failed after 2 day
  stays Pending while card is Unknown
  show status to Desk within 5 s
example silence
  p = Give()
  after 30 day
  see p is Pending
DeploymentNotVerified a deployment contract (host, abi, residency) is a fact about where the program runs, checked by the deployment, not by the rules Syntax & Names

Cause. The program states a deployment contract (here a residency restriction) that the checker cannot verify, because it is a fact about where the program runs, not about its rules.

Repair. Remove the contract from the program, or verify it on the real deployment; the checker alone never can.

The corrected program:

DeploymentNotVerified.right.hector
Verified Example
Account  balance: Money
  start balance = 0 EUR
  next balance = balance + amount on Deposit(amount: Money)
DeploymentNotVerified.wrong.hector
Refused
Account  balance: Money
  start balance = 0 EUR
  next balance = balance + amount on Deposit(amount: Money)
restrict residency(EU)
DimensionMismatch units are checked through every operator: only quantities of one dimension add or compare (a quantity or an instant beside a status, a condition or a reference is a mismatch), and a word that takes one value is not given all the rows of a sort Time & Deadlines

Cause. An expression adds, compares or assigns quantities that are not of the same dimension (money and mass, a duration and a length). Hector tracks units through every operator; a sum of unlike things has no meaning, so the program is refused with no partial effect. A quantity beside a text, or beside a name that no sort, case or value of the program has, is the same mistake.

Repair. Make both sides the same dimension: multiply by a rate (weight * 2 EUR / 1 kg is money), or convert units of the same dimension (h to s). Never drop the unit.

The same code refuses the period of a clock that is not a duration above zero, and one that is not fixed where it is written (Cycle every period over a field of a row): one clock has one period. What counts a row's own periods is a definition, n = floor((now - born(self)) / period); what happens once after the row's own delay is A -> B after period.

The same code refuses a delay that is negative (after -3 s, after -90 ms: it would wait for an instant before the one it counts from; a delay is a duration of zero or more) and a number written in digits that no exact number holds (... is too large: an exact number is at most 170141183460469231731687303715884105727 once its decimal point is taken out, and has at most 38 decimals; write the quantity with a unit that fits).

DimensionMismatch.wrong.hector
Refused · DimensionMismatch
Item  price: Money, weight: Mass
  total = price + weight

The repaired program:

DimensionMismatch.right.hector
Verified Example
Item  price: Money, weight: Mass
  total = price + weight * 2 EUR / 1 kg
DiskNone a program that keeps nothing on disk cannot ask the world for an answer whose request must be durable before it leaves: drop the restriction, or let the last answer stand until the next Syntax & Names

Cause. The program says restrict durability(Absent) (no disk), but an answer of the world (by) has a request that must be durable before it leaves: without the disk, a request in flight could be lost or sent twice after a stop. The program is refused 2, nothing is built.

Repair. Drop restrict durability(Absent), or let the answer be kept until the next one so that nothing must be durable before it leaves.

DiskNone.wrong.hector
Refused · DiskNone
Order
  status: Pending | Paid
  card: Ok | Fail by Bank on Make
  -> Pending on Make
  Pending -> Paid when card is Ok
  show status to Order
restrict durability(Absent)
Executable CLI Run
verdict 2
hector check DiskNone.wrong.hector

Without restrict durability(Absent):

DiskNone.right.hector
Verified Example
Order
  status: Pending | Paid
  card: Ok | Fail by Bank on Make
  -> Pending on Make
  Pending -> Paid when card is Ok
  show status to Order
DoubleWrite a field or a status takes one value per instant: when two lines can write it at the same instant, Hector must prove which one applies, or you write which one wins Time & Deadlines

Cause. Two lines write the same field or status at the same instant: both transitions leave Open, and both conditions can hold together, so nothing says which one applies.

Repair. Say the decision once, on one line: A -> B if c else C on E, the line Hector prints (it replaces the line that has the condition and deletes the other). Or make the two conditions exclusive, as the corrected program does (> 0 EUR and <= 0 EUR), or give the two transitions different events.

When one condition implies the other, excluding it would make a rule unreachable. Hector leaves that business decision open: distinguish the conditions or explicitly remove the redundant change.

DoubleWrite.wrong.hector
Refused · DoubleWrite
Order  status: Open | Paid | Cancelled
  paid_by: Money
  -> Open on Create
  Open -> Paid when paid_by > 0 EUR
  Open -> Cancelled when paid_by > 0 EUR

The corrected program:

DoubleWrite.right.hector
Verified Example
Order  status: Open | Paid | Cancelled
  paid_by: Money
  -> Open on Create
  Open -> Paid when paid_by > 0 EUR
  Open -> Cancelled when paid_by <= 0 EUR

One decision, one line, at an event:

DoubleWrite.decision.hector
Verified Example
Desk
Order  paid_by: Money
  status: Open | Paid | Cancelled
  -> Open on Create(paid_by) by Desk
  Open -> Paid if paid_by > 0 EUR else Cancelled on Settle by Desk
EventAfterFinal a final status has no way out: an event that still changes a row there usually lacks its when Time & Deadlines

Cause. An unconditional event changes a row that already sits in a final status, one with no way out, and no condition excludes that event there.

Repair. Add a condition that excludes the final status to the writing line, or give the final status a way out.

The corrected program:

EventAfterFinal.right.hector
Verified Example
Ticket  status: Open | Closed, hits: Count
  start hits = 0
  -> Open on Open
  Open -> Closed on Close
  next hits = hits + 1 on Hit when status is Open
EventAfterFinal.wrong.hector
Refused
Ticket  status: Open | Closed, hits: Count
  start hits = 0
  -> Open on Open
  Open -> Closed on Close
  next hits = hits + 1 on Hit
ExampleArgument an example passes each value to an input the event takes, named when two inputs could take it Examples

Cause. An example passes an argument that the event does not take (price for Book), so the example cannot mean anything.

Repair. Pass only the parameters the event declares, here Book(owner: ana).

ExampleArgument.wrong.hector
Refused · ExampleArgument
Owner  name: Text
Visit  owner: Owner
  -> on Book by owner
example visite
  ana = Owner(name: "Ana")
  v = Book(owner: ana, price: 3 EUR)

The repaired program:

ExampleArgument.right.hector
Verified Example
Owner  name: Text
Visit  owner: Owner
  -> on Book by owner
example visite
  ana = Owner(name: "Ana")
  v = Book(owner: ana)
ExampleEvent an example plays an event of the program or writes a row of one of its sorts Examples

Cause. An example plays a name that is neither an event nor a sort of the program (Launch), so there is nothing to run.

Repair. Play an event the program declares (Book, Finish), or check a fact with see.

ExampleEvent.wrong.hector
Refused · ExampleEvent
Owner  name: Text
Visit  owner: Owner
  -> on Book by owner
example visite
  ana = Owner(name: "Ana")
  v = Book(owner: ana)
  Launch(v)

The repaired program:

ExampleEvent.right.hector
Verified Example
Owner  name: Text
Visit  owner: Owner
  -> on Book by owner
example visite
  ana = Owner(name: "Ana")
  v = Book(owner: ana)
  see v.owner = ana
ExampleForm an example tells facts in order: a row, an event, refused, an answer x.f = v by Who, after, at, see, hidden; it never sets a value itself Examples

Cause. An example writes a field (v.owner = ana), but an example never sets a value: the program decides it.

Repair. Check the value with see v.owner = ana, or play the event that changes it.

ExampleForm.wrong.hector
Refused · ExampleForm
Owner  name: Text
Visit  owner: Owner
  -> on Book by owner
example visite
  ana = Owner(name: "Ana")
  v = Book(owner: ana)
  v.owner = ana

The repaired program:

ExampleForm.right.hector
Verified Example
Owner  name: Text
Visit  owner: Owner
  -> on Book by owner
example visite
  ana = Owner(name: "Ana")
  v = Book(owner: ana)
  see v.owner = ana
ExampleIncomplete a value the example does not say changes the result, so the example must say it Examples

Cause. The example books a visit without naming its owner, but an Owner row is needed and none exists at that moment: Owner is born by an event, so the example cannot invent one.

Repair. Create the owner before the event and pass it: ana = Join(name: "Ana"), then v = Book(owner: ana, ...).

ExampleIncomplete.wrong.hector
Refused · ExampleIncomplete
Owner  name: Text
  -> on Join
Visit  owner: Owner, day: Text
  -> on Book
example visite
  v = Book(day: "lundi")

The corrected program:

ExampleIncomplete.right.hector
Verified Example
Owner  name: Text
  -> on Join
Visit  owner: Owner, day: Text
  -> on Book
example visite
  ana = Join(name: "Ana")
  v = Book(owner: ana, day: "lundi")
ExampleName an example names a row before using it, and gives each row one name Examples

Cause. An example uses a row name (ana) before defining it, so Hector does not know which row is meant.

Repair. Name each row before using it: ana = Owner(name: "Ana").

The same code refuses a name given to two rows of one example, or to a row and to something of the program, two examples of one name, and a line that does not say whose row it speaks of: give another name, or say whose (<row>.<member>, by a.owner).

ExampleName.wrong.hector
Refused · ExampleName
Owner  name: Text
Visit  owner: Owner
  -> on Book by owner
example visite
  v = Book(owner: ana)

The repaired program:

ExampleName.right.hector
Verified Example
Owner  name: Text
Visit  owner: Owner
  -> on Book by owner
example visite
  ana = Owner(name: "Ana")
  v = Book(owner: ana)
ExampleOrder an example goes forward in time: each at is at or after the line above Examples

Cause. An at timestamp in an example block is earlier than the timestamp of a preceding line, moving time backwards.

Repair. Order the lines of the example chronologically so every at instant is at or after the line above it.

Status. No standalone example of the reference raises it yet (published gap).

ExampleSee see c states a condition that must hold, such as see x.total = 3 EUR or see x is Done Examples

Cause. A see line told to an observer (see v.owner to ana) gives a value with no claim, so Hector does not know what to check. Without to, a bare value is a question the judge answers by the line to paste.

Repair. Say what you expect: see v.owner = ana.

ExampleSee.wrong.hector
Refused · ExampleSee
Owner  name: Text
Visit  owner: Owner
  -> on Book by owner
example visite
  ana = Owner(name: "Ana")
  v = Book(owner: ana)
  see v.owner to ana

The repaired program:

ExampleSee.right.hector
Verified Example
Owner  name: Text
Visit  owner: Owner
  -> on Book by owner
example visite
  ana = Owner(name: "Ana")
  v = Book(owner: ana)
  see v.owner = ana
ExampleSituation a row an example writes as it stands must keep the laws of the program Examples

Cause. A starting row written directly in an example violates one of the program's laws before any event runs.

Repair. Adjust the starting row's fields so it satisfies every law of the program, or construct the row through the events that produce it.

Status. No standalone example of the reference raises it yet (published gap).

ExpansionLimit package expansion stops at a bounded number of instances so combinatorial use fan-out cannot exhaust compilation Types & Units

Cause. Expanding use declarations exceeded the maximum number of package instances allowed in one project.

Repair. Reduce combinatorially parameterized use fan-out or share common package instances.

An executable documentation example for package expansion limits remains a published gap (verdict 3): the code is raised when lens::read_project expands a multi-file package graph beyond the instance bound.

ExpectRange expected rows guide trials, by an ordered interval with a positive upper end, in a lexical scope or on a sort Syntax & Names

Cause. Expected rows need two non-negative integers in ascending order, with a positive upper end. The clause holds in a lexical place or on a named sort.

Repair. Write an interval such as expect rows 200..500 on Parcel. The interval guides trial populations.

ExpectRange.wrong.hector
Refused · ExpectRange
Inspector
Parcel number: Count
  -> on Record(number)
  show number to Inspector
expect rows 500..200 on Parcel
ExpectRange.right.hector
Verified Example
Inspector
Parcel number: Count
  -> on Record(number)
  show number to Inspector
expect rows 200..500 on Parcel

example one_parcel
  parcel = Record(number: 1)
  see parcel.number = 1
ExploreBudget a bounded exploration requires positive --depth and --states bounds Syntax & Names

Cause. The requested exploration keeps no state or allows no step. Every bound must be positive, the optional bound of rows included.

Repair. Pass a positive --depth, --states and --rows, or leave them out to use the defaults shown by hector explore.

Executable CLI Run
verdict 2
hector explore ../words/commands/small.hector --depth 0
ExploreOption an exploration command accepts one project and valid non-negative integer --depth and --states options Syntax & Names

Cause. An exploration option has an unknown name, a missing value or a value that cannot represent a whole nonnegative number. The command also requires exactly one project.

Repair. Use hector explore <project> [--depth D] [--states M] [--rows R]. Every limit must be positive. MCP uses the integer fields depth, states and rows.

Executable CLI Run
verdict 2
hector explore ../words/commands/small.hector --depth invalid
FieldOutsideStatus a field that lives only in one status is written in that status's indented sub-block, where it exists Syntax & Names

Cause. A field that belongs only to a single status is declared or read outside that status's indented sub-block, where the field does not exist.

Repair. Move the field declaration into the indented sub-block of the status where it lives, and read it only when the row is in that status.

Status. No standalone example of the reference raises it yet (published gap).

FormGated a restrict imposes a form that a build delivers: a word that asks for one no build has is refused, never read and forgotten Syntax & Names

Cause. restrict partitioned(…), restrict replicated(…) and restrict cached(…) ask for a form that no build delivers: the first two need a realization on several cores, the last one that keeps the results of a function. A restriction is imposed or refused, never read and forgotten. What may commute is derived from the program, never asked.

Repair. Delete the line. The program means the same without it.

FormGated.wrong.hector
Refused · FormGated
Clerk
Order
  status: Open | Paid
  -> Open on Place by Clerk
  Open -> Paid on Pay by Clerk
  show status to Clerk within 1 s
restrict partitioned(by: Order)

The repaired program:

FormGated.right.hector
Verified Example
Clerk
Order
  status: Open | Paid
  -> Open on Place by Clerk
  Open -> Paid on Pay by Clerk
  show status to Clerk within 1 s
FormOwned a fact has one owner: how late a view may be is said by its show … within, a size by expect rows, and no restrict says either a second time Time & Deadlines

Cause. restrict batched(…) and restrict layered(…) ask for a form that another line of the language already says, and no fact is said twice. How late a reader may see a value is said by its view; how many rows are expected is said by expect rows, and the compiler computes where one form overtakes another.

Repair. Say it where it belongs: show status to Clerk within 1 s, or expect rows 1000..5000 on Order.

FormOwned.wrong.hector
Refused · FormOwned
Clerk
Order
  status: Open | Paid
  -> Open on Place by Clerk
  Open -> Paid on Pay by Clerk
  show status to Clerk within 1 s
restrict batched(within: 1 s)

The repaired program:

FormOwned.right.hector
Verified Example
Clerk
Order
  status: Open | Paid
  -> Open on Place by Clerk
  Open -> Paid on Pay by Clerk
  show status to Clerk within 1 s
HISTORY_VALUE_OFF_GRAIN a quantity is held at the finest step the lines of the program write; an input is never rounded to it Types & Units

Cause. A history, an example, a load or a host gives a number finer than the step its quantity is held at. The step is the finest one the lines of the program write (a whole unit when they write none), and an input is never rounded to it. A number too large for a word even at the step that would hold it is refused as HISTORY_VALUE_NOT_NATIVE: its size is the cause.

Repair. Write the line the refusal gives in the sort of the input: a law that always holds and writes a number of the admitting step. Any line the program reads that writes such a number does the same; a definition nothing reads or shows fixes no step.

The corrected program:

HISTORY_VALUE_OFF_GRAIN.right.hector
Verified Example
Parcel  weight: Mass
  -> on Weigh(weight)
  law 1/7 kg > 0 kg
  show weight to self

example a seventh of a kilogram
  p = Weigh(weight: 1/7 kg)
  see p.weight = 1/7 kg
HISTORY_VALUE_OFF_GRAIN.wrong.hector
Refused
Parcel  weight: Mass
  -> on Weigh(weight)
  show weight to self

example a seventh of a kilogram
  p = Weigh(weight: 1/7 kg)
  see p.weight = 1/7 kg
HoleOpen a name that nothing declares, or a ?question nothing answers, is a hole: Hector never guesses its value; declare it or answer ?name = value Syntax & Names

Cause. The program uses a question (?rate) that nothing answers yet, so the result cannot be established: Hector does not guess a value for an open question.

Repair. Answer the question on its own line at the end of the program, ?rate = 10 %; that answer is the one decision the author makes.

The same code is raised for a field typed with a name nothing declares (shelf: Shlf): no sort, value or quantity has that name, so the program is not established; the diagnostic is at the field's line and names the nearest declared sort. Text, Bytes, Path and Html are types of their own, and a field the world decides names the answer it waits for, not a type.

The corrected program:

HoleOpen.right.hector
Verified Example
Order  amount: Money
  tax = amount * ?rate
  show tax to Order

?rate = 10 %
HoleOpen.wrong.hector
Refused
Order  amount: Money
  tax = amount * ?rate
  show tax to Order
IdentitiesExhausted a sort has more rows than Hector can name in this run Syntax & Names

Cause. A sort created more rows than the identity space of the current run can represent.

Repair. Bound row growth, retire unneeded rows, or increase the identity capacity for the run.

Status. Raised only when a run exhausts its identity space; no standalone example of the reference raises it yet (published gap).

ImpactRequired admitting a change with unknown impact requires the author's explicit without_impact: true approval Syntax & Names

The room cannot admit a source change whose retained impact is Unknown without the author's explicit approval. The proposal stays pending.

Call review with the proposal number to inspect the impact and its reason. To proceed with Unknown impact, call admit with without_impact: true. The room records the waiver with the admitted version.

ImpactWaiver an explicit without_impact approval must be a boolean Syntax & Names

The without_impact argument of admit takes a boolean. Use true to authorize admission when the retained impact is Unknown. A recorded waiver belongs to the specific version that needed it.

ImperativeForm Hector has no instructions: a status changes by a transition A -> B on E, a value by next x = e on E, a starting value by start x = e Syntax & Names

Cause. A status is set by hand (status = Done) as if it were a field; a status changes only through a transition, so the assignment is refused.

Repair. Write the transition from the state it leaves: Open -> Done on Finish by Clerk.

The same code refuses every other instruction written where a rule belongs: x += 1, a for loop (an aggregate such as sum or count, or a where filter, says the result), a transition back to the status it leaves (A -> A when c), a decision with neither on nor after. Each refusal gives the form to write in its place: a transition A -> B on E, or next x = e on E.

ImperativeForm.wrong.hector
Refused · ImperativeForm
Clerk
Order
  status: Open | Done
  -> Open on Start by Clerk
  status = Done

The repaired program:

ImperativeForm.right.hector
Verified Example
Clerk
Order
  status: Open | Done
  -> Open on Start by Clerk
  Open -> Done on Finish by Clerk
ImportCycle a package is expanded where it is used, so packages cannot use each other in a circle Laws & Proofs

Cause. A package uses another through use, and that one uses the first back, directly or through others. A package is expanded where it is used, so a cycle would expand forever.

Repair. Break the cycle: move what both need into a third package, or pass it as a parameter instead of importing it.

ImportCycle.wrong
Refused · ImportCycle
Person

use B(Subject = Person)

The repaired program:

ImportCycle.right/A.hector
Verified Example
Person

use B(Subject = Person)
ImportCycle.right/B.hector
Verified Example
?Subject
  seen: Unseen | Seen
InvalidNumber number reads an exact number, a decimal or a fraction; a text that is not one is refused, never read as absent Types & Units

Cause. number was asked to read a text that is not an exact number (a decimal such as 12.5 or a fraction such as 3/4); surrounding whitespace counts as part of the text. The failure is a refusal, never an absent value.

Repair. Trim the text explicitly before reading it, or keep the value as text when it is not meant to be a number.

InvalidNumber.wrong.hector
Refused · InvalidNumber
Item  raw: Text
  status: New | Valid
  -> New on Make
  New -> Valid on Check by Desk when number(raw) > 0
  show status to Item
example bad number
  y = Make(raw: "12")
  Check(y)
  see y is Valid
  x = Make(raw: "abc")
  refused Check(x)
Executable CLI Run
verdict 2
hector check InvalidNumber.wrong.hector

Keeping the value as text when it is not meant to be a number:

InvalidNumber.right.hector
Verified Example
Item  raw: Text
  status: New | Valid
  -> New on Make
  New -> Valid on Check by Desk when trim(raw) = "12"
  show status to Item
example text match
  y = Make(raw: " 12 ")
  Check(y)
  see y is Valid
KeptMember a name kept by a folder cannot also be a member name in that folder or below it, or a reading there would mean either Syntax & Names

Cause. A name kept by a folder is also the name of a member in that folder or one below it, so a reading there could mean either.

Repair. Rename one of them, or show the kept name in the file named like the folder.

KeptMember.wrong
Refused · KeptMember
Out  size: Count
  -> on Put(size)
  show size to Observer
KeptName, ModuleCollision Compiler diagnostic code Syntax & Names

Cause. A name is kept by a folder (declared in a file of the folder other than the one named like it) and is written outside that folder, where it cannot be seen. Each folder keeps its own names; only what the folder shows is visible to the rest of the project.

Repair. Move the use into the folder, or write the name in the file named like the folder to show it to the project.

ModuleCollision names the source locations that implicitly share a bare event across modules. Keep the bare spelling in one owner and qualify the other uses, or give independent events distinct names.

KeptName.wrong
Refused · KeptName
Out  v: Count
  -> on Put(v)
  w = v + step
  show w to Observer
KeptRole two sorts that point to the same parent give it two collections, which need two different names Syntax & Names

Cause. Two kept sorts under the same parent would give that parent the same implicit role, so the role would not identify one collection.

Repair. Give the references distinct explicit roles, or show and share one sort instead.

KeptRole.wrong
Refused · KeptRole
-- Refused with KeptRole: KeptRole.wrong
KernelDomain a scalar kernel is admitted only when the proved integer domain of the sort and field lies inside the kernel domain Delivery & Runtime

Cause. The field's proved integer range fails to establish that every value is in the kernel's declared domain.

Repair. Use a kernel whose verified domain covers the field's proved range. If the program guarantees a tighter range, express that guarantee in the program so Hector can prove it.

KernelLoop every loop inside a scalar kernel is a statically bounded positive repeat with a positive constant count Delivery & Runtime

Cause. The kernel loop has no valid static iteration count or body.

Repair. Write repeat with a positive integer literal within the limit reported by the checker. Indent the body and put the return after the loop.

KernelMemory a scalar kernel computes solely on scalar arguments and locals without memory indexing, loads, stores, or calls Delivery & Runtime

Cause. The kernel attempts to access memory or perform a call outside its scalar operations.

Repair. Read input values through scalar parameters. Compute with scalar locals and return the result for the caller to store.

KernelOp a scalar kernel uses only integer constants and add, sub, and, or, xor, shl, shr, comparisons, and select Delivery & Runtime

Cause. The scalar kernel has an invalid declaration or uses an operation outside the kernel dialect.

Repair. Match the parameters in realizes to the kernel parameters in order and define every local before reading it. Express the computation with integer constants, add, sub, and, or, xor, shl, shr, comparisons, and select.

KernelRefuted exhaustive kernel verification found an input on the stated domain where the kernel disagrees with its specification Delivery & Runtime

Cause. Exhaustive verification found an input in the declared domain where the kernel and its reference disagree.

Repair. Replay the counterexample reported by hector kernel check. Correct the kernel to return the reference result at that input and across the entire declared domain, then verify again.

KernelUnproved exhaustive kernel verification failed to finish inside the bounded budget Delivery & Runtime

Cause. Hector could not complete exhaustive equivalence verification. It requires an executable reference and a supported domain that fits both the case budget and the verification work budget. Nested repeats are charged for each iteration of their bodies.

Repair. Supply a reference understood by the verifier and simplify the kernel's work per case. Choose the smallest domain that still covers every input the program admits at the site.

KernelWidth a scalar kernel binds every value to a uniform machine integer width u8..u64 or i8..i64 with shift counts strictly below its bit width Delivery & Runtime

Cause. An integer lane, literal, declared endpoint, or shift count fails the kernel width check.

Repair. Use u8, u16, u32, u64, i8, i16, i32, or i64. Keep operands and results of integer operations at the required width and signedness. Keep both endpoints inside the domain parameter's lane and each constant shift count below its lane width.

LawHoldsRule a law holds in every state; a condition read once, at the event, is a when on its line Laws & Proofs

Cause. A law on a row with no status and no steps holds as long as the row exists, and it reads a status that another row's deadline changes without anyone being told, so the law can block that rule when the change would violate it.

Repair. If the condition is meant to hold only at admission, move it onto the birth line, where it is read once at the event, and delete the law.

The corrected program:

LawHoldsRule.right.hector
Verified Example
Slot  status: Free | Taken
  -> Free on Open
  Free -> Taken after 10 s
Hold  name: Text
  -> on Place(name) when count(Slot where Taken) <= 1
LawHoldsRule.wrong.hector
Refused
Slot  status: Free | Taken
  -> Free on Open
  Free -> Taken after 10 s
Hold  name: Text
  -> on Place(name)
  law count(Slot where Taken) <= 1
LawScope a law at column 0 speaks of the whole world and has no subject: it names sorts (Account.balance); a law about each row goes indented under its sort Laws & Proofs

Cause. A law at column 0 names a field with no sort (balance), and a law at column 0 has no subject to attach to.

Repair. Write the law under its sort: law balance >= 0 EUR. At column 0 the sort names every row, and no row is a value.

LawScope.wrong.hector
Refused · LawScope
Clerk
Account  balance: Money
law balance >= 0 EUR

The repaired program:

LawScope.right.hector
Verified Example
Clerk
Account  balance: Money
  law balance >= 0 EUR
LiteralWithoutUnit every quantity is written with its unit (30 s, 5 EUR); only zero and counts are bare Types & Units

Cause. A bare number is used where a duration is expected (within 10), so Hector cannot tell seconds from a count.

Repair. Give the duration its unit: within 10 s.

LiteralWithoutUnit.wrong.hector
Refused · LiteralWithoutUnit
Clerk
Ticket  seats: Count
  show seats to Clerk within 10

The repaired program:

LiteralWithoutUnit.right.hector
Verified Example
Clerk
Ticket  seats: Count
  show seats to Clerk within 10 s
MetaInBusiness only a show to an outside actor may read an exposed host fact; business expressions cannot read load measures Laws & Proofs

Cause. A business declaration or a show addressed to rows reads a fact supplied by the host. Replaying the same business events must give the same business results on every host. Load measures such as rate and p99 also stay outside business expressions.

MetaInBusiness.wrong.hector
Refused · MetaInBusiness
law count(meta.Machine) >= 0

Repair. Read an exposed host fact in a show to an outside actor. Declare an adaptation regime separately from business rules.

MetaInBusiness.right.hector
Verified Example
show meta.Machine.cores to Operator
MetaLaw every declaration and show of a project satisfies its meta-laws in rules/ Laws & Proofs

Cause. A project meta-law in rules/ (show … to Diagnostic) reported a violation on a declaration or show of the program; its name is carried by meta in JSON output and checked identically by CLI, LSP and MCP.

Repair. Apply the fix described by the rule's fix line, or update the rule in rules/.

MetaLaw.wrong
Refused · MetaLaw
Viewer
Item  price: Money
  status: Open | Closed
  -> Open on Create(price) by Viewer
  Open -> Closed on Close by Viewer
  show price, status to Viewer within 1 s

With the tolerance declared, the same project satisfies the meta-law:

MetaLaw.right/main.hector
Verified Example
Viewer
Item  price: Money
  status: Open | Closed
  -> Open on Create(price) by Viewer
  Open -> Closed on Close by Viewer
  show price +- 0.01 EUR, status to Viewer within 1 s
MetaLawNoFix every meta-law showing to Diagnostic declares non-empty message and fix constants Laws & Proofs

Cause. A project meta-law in rules/ showing to Diagnostic omits a non-empty message or fix constant, so a violation would have nothing to tell or suggest how to repair.

Repair. Add both message = "..." and fix = "..." as non-empty text constants in that rule file.

MetaLawNoFix.wrong
Refused · MetaLawNoFix
Viewer
Item  amount: Count
  status: Open | Closed
  -> Open on Create(amount) by Viewer
  Open -> Closed on Close by Viewer
  show amount, status to Viewer within 1 s
MetaUnknownFact a qualified host fact must name a declared sort Syntax & Names

Cause. A qualified name asks for a sort the built-in library does not declare.

MetaUnknownFact.wrong.hector
Refused · MetaUnknownFact
show meta.Computer.cores to Operator

Repair. Use a sort listed by the refusal.

MetaInBusiness.right.hector
Verified Example
show meta.Machine.cores to Operator
MetaWrite only the host writes the sorts of its built-in library Syntax & Names

Cause. A program adds a block to a host-fed sort or writes one of its fields. The host alone supplies these rows.

MetaWrite.wrong.hector
Refused · MetaWrite
meta.Machine
  next cores = 1 on Update

Repair. Read the host fact in an outside show. Write business values to a sort declared in the program.

MetaInBusiness.right.hector
Verified Example
show meta.Machine.cores to Operator
MigrationDropsField a migration loses a stored field only when the text says it retired it Delivery & Runtime

Cause. The text hector migrate was given no longer holds a stored field the journal's program held, and nothing says it was removed on purpose. The journal is unchanged.

Repair. Say the removal under its sort, with the lines the answer writes: retired <field> since <version>, under a version at least as high. A field that only changes its name takes rename Old to New instead.

The question needs a journal, which a page of the reference never writes: its executed example remains a published gap (verdict 3).

A program that says it removed a field:

MigrationDropsField.right.hector
Verified Example
version 3
Clerk
Product  name: Text, stock: Count
  retired colour since 3
  show name, stock to Clerk
MisplacedClause a word that opens a clause is read where its clause lives (a path at column 0, a law or a show at column 0 or in a block): written elsewhere it is refused, never read as something else, and the same word followed by = or : is only a name Laws & Proofs

Cause. A word that opens a clause (law, assume, show, tie, prefer, restrict, strategy, path) is read where its clause lives: some at column 0 and in a sort's block, path at column 0 only, because a corridor belongs to the world and no sort owns it. The same word followed by = or : names a value, a field or a definition wherever it is written; a clause in a place that does not read it is refused, never read as something else.

Repair. Write the clause where it is read: a path at column 0, after the sorts: path fulfilment = Paid -> Shipped.

MisplacedClause.wrong.hector
Refused · MisplacedClause
Clerk
Order
  status: Open | Paid | Shipped
  -> Open on Place by Clerk
  Open -> Paid on Pay by Clerk
  Paid -> Shipped on Ship by Clerk
  show status to Clerk within 1 s
  path fulfilment = Paid -> Shipped

The repaired program:

MisplacedClause.right.hector
Verified Example
Clerk
Order
  status: Open | Paid | Shipped
  -> Open on Place by Clerk
  Open -> Paid on Pay by Clerk
  Paid -> Shipped on Ship by Clerk
  show status to Clerk within 1 s
path fulfilment = Paid -> Shipped
MissingPackage use P(…) reads the file P.hector beside the files that use it Syntax & Names

Cause. A use names a package for which the project has no file <Package>.hector beside the files that use it.

Repair. Add <Package>.hector to the project, or fix the name in use.

MissingPackage.wrong
Refused · MissingPackage
Person

Ticket  author: Person
  status: Open | Closed
  -> Open on Open by author
  Open -> Closed on Close by author

use Absent(Subject = Ticket, respondent = author, done = Closed)

The repaired program:

MissingPackage.right/Survey.hector
Verified Example
-- Satisfaction survey: a package of rules, used by 12-helpdesk-complet.hector.
-- Parameters: ?Subject is the sort surveyed, ?respondent the path to who answers, ?done the status that sends the survey.
-- A survey is sent when the subject reaches ?done, rated 1 to 5 by the respondent, and lapses after 7 days.
?Subject
  survey: Idle | Sent | Rated | Lapsed
  rating: Count 1..5?
  Idle -> Sent when ?done
  Sent -> Rated on Rate(rating) by ?respondent
  Sent -> Lapsed after 7 day
  show survey, rating to ?respondent
MissingPackage.right/main.hector
Verified Example
Person

Ticket  author: Person
  status: Open | Closed
  -> Open on Open by author
  Open -> Closed on Close by author

use Survey(Subject = Ticket, respondent = author, done = Closed)
NativeDisagreement Hector's native image and its judge disagree: a defect of Hector, replayed by the history shown, not a mistake of the program Syntax & Names

Cause. The native image and the reference judge give different results on this program (they disagree on one value of one step). This is a defect of Hector, not a mistake of the program, and it is reported as refuted 1. Under the line, check prints the smallest history that still shows it (each step needed), the item where the two sides part, the steps that give the judge's value, and an example that replays it.

Repair. The author changes nothing in the meaning. The defect is reported to the Hector team with the program and the step where the two results part; until it is fixed, the judge's result is the true one.

No program of this reference raises it: each program found to raise it is a defect, fixed at its cause and then kept by a law that compares the native image with the judge, so a living example would only show a defect not fixed yet (published gap).

NativeLimit Hector's native image does not build this form yet; the judge runs it, and the program must not change for it Syntax & Names

Cause. The native image does not yet build this construction: a periodic clock creates a new row (Fee) on each tick, and the copy-and-patch image cannot create rows from a clock. The reference judge still runs the program; only the native build is not established.

Repair. If the rows are not needed, count the periods in a field that the clock advances with next, as the corrected program does; otherwise the author changes nothing and the verdict stays 3.

The corrected program:

NativeLimit.right.hector
Verified Example
Account  name: Text, fees: Count
  Billing every 1 month
  next fees = fees + 1 on Billing
  show name to Account
NativeLimit.wrong.hector
Refused
Account  name: Text
  Billing every 1 month
  show name to Account
Fee  account: Account
  status: Due | Collected
  -> Due on Billing
  Due -> Collected on Collect
NativeNotMeasured Hector compared its native image with the judge only part of the way; the program must not change for it Laws & Proofs

Cause. The comparison of the native image with the reference judge stopped before the end of a history (a budget or a step the image does not run yet), so their agreement on that history is not established. It is reported as unknown 3, with the history, the step reached and the cause.

Repair. The author changes nothing in the meaning. A shorter history, or fewer rows in an example, lets the comparison finish; what the native image does not run yet is the work of the Hector team.

Budgets and the chain of the day decide most of its causes. This one stops because a recursion has no measure, which the same check says as NoMeasure:

Executable CLI Run
verdict 3
hector check NoMeasure.wrong.hector
NativeUnavailable Hector's native compilation of this form is not established yet; the judge runs it, and the program must not change for it Syntax & Names

Cause. A row is born from a periodic clock event; the reference judge runs it, but native compilation of this shape is not established, so the verdict stays unknown.

Repair. Let the caller send the event with no clock, or write the birth without a periodic clock.

The corrected program:

NativeUnavailable.right.hector
Verified Example
Cell  age: Count
  -> on Division
  next age = age + 1 on Division
NativeUnavailable.wrong.hector
Refused
Cell  age: Count
  -> on Division
  next age = age + 1 on Division
Division every 20 min
NegativeWithin a temporal deadline is measured after its trigger, with zero permitting only the trigger instant Time & Deadlines

Cause. The written duration would place the deadline before the trigger.

Repair. Give the obligation a nonnegative duration. A duration of zero requires its response at the same instant.

NegativeWithin.wrong.hector
Refused · NegativeWithin
Ticket
  status: Waiting | Closed
  -> Waiting on Open
  Waiting -> Closed on Close
  law -> Closed within -1 s

example response on the boundary
  row = Open()
  after 1 s
  Close(row)
  see row is Closed
NegativeWithin.right.hector
Verified Example
Ticket
  status: Waiting | Closed
  -> Waiting on Open
  Waiting -> Closed on Close
  law -> Closed within 1 s

example response on the boundary
  row = Open()
  after 1 s
  Close(row)
  see row is Closed
NeverStepped a next without an event or a clock never runs: give it on E, or a clock Name every d Time & Deadlines

Cause. A next line with no event and no clock: nothing ever steps it, so it never runs.

Repair. Attach the step to an event with on, or to a clock.

The corrected program:

NeverStepped.right.hector
Verified Example
Counter  n: Count
  start n = 0
  next n = n + 1 on Tick
NeverStepped.wrong.hector
Refused
Counter  n: Count
  start n = 0
  next n = n + 1
NeverWritten a field that rules read needs a writer: a start value, a birth parameter, an event or a next Syntax & Names

Cause. An indented field is read by a rule, but nothing ever gives it a value (no start value, no birth parameter, no writer), so the rule that reads it can never fire.

Repair. Give it a start value, or let an event supply it.

The corrected program:

NeverWritten.right.hector
Verified Example
Order  status: Open | Paid
  total: Money
  start total = 0 EUR
  -> Open on Place
  Open -> Paid when total > 0 EUR
NeverWritten.wrong.hector
Refused
Order  status: Open | Paid
  total: Money
  -> Open on Place
  Open -> Paid when total > 0 EUR
NewLawRefutation a proposal cannot introduce a witnessed refutation of an obligation that the base revision did not refute Laws & Proofs

hector mcp refuses a proposal when its law ledger has a witnessed refutation that the base revision did not have for that obligation. No proposal is stored. The reply names the law and gives the history that witnesses the refusal.

Replay the history against the proposed revision. Keep the law by changing the rule or guard that lets the witness reach it. dossier shows old refutations and asks the author about lost proofs in proposals that do lodge.

NoAdmissibleRealization a restrict bound is a hard bound: when no form Hector can give the rows fits within it, it is refused with the room still missing, never silently exceeded Syntax & Names

Cause. A restrict memory <= n on Sort bound is lower than every form Hector can give the rows of that sort: no representation holds them within it. The program is refused 2, nothing is built, and the refusal names the room the sort needs beyond the bound.

Repair. Raise the bound by the bytes the refusal names, or bound fewer rows; Hector does not break a bound you wrote.

The same program with a bound the forms fit in:

NoAdmissibleRealization.right.hector
Verified Example
Clerk
Order  amount: Money
  status: Open | Paid
  -> Open on Place by Clerk
  Open -> Paid on Pay by Clerk
  show amount to Clerk within 1 s
  restrict memory <= 1000000 byte on Order

example one order
  c = Place(amount: 20 EUR)
  Pay(c)
  see c.amount = 20 EUR
NoAdmissibleRealization.wrong.hector
Refused
Clerk
Order  amount: Money
  status: Open | Paid
  -> Open on Place by Clerk
  Open -> Paid on Pay by Clerk
  show amount to Clerk within 1 s
  restrict memory <= 1 byte on Order

example one order
  c = Place(amount: 20 EUR)
  Pay(c)
  see c.amount = 20 EUR
NoMeasure a recursion must end: Hector finds a measure or reads law decreasing(m) under the function; without one the result is not established Laws & Proofs

Cause. countdown calls itself with an argument that has no bound, so the judge finds no measure showing that the calls end.

Repair. Declare the domain of the argument (Count 0..5); the calls then end within the bound, as the corrected program does.

The corrected program:

NoMeasure.right.hector
Verified Example
Item  n: Count 0..5
  -> on Make
  total = countdown(n)
  show total to Item
countdown(k: Count) = 0 if k = 0 else countdown(k - 1)
NoMeasure.wrong.hector
Refused
Item  n: Count
  -> on Make
  total = countdown(n)
  show total to Item
countdown(k: Count) = 0 if k = 0 else countdown(k - 1)
NonExhaustive a match gives a value for every case of the value it reads, or covers the others with else -> Laws & Proofs

Cause. A match gives a value for some cases of plan but not for Team, so one case has no result.

Repair. Add a line for every case, here Team -> 3000.

NonExhaustive.wrong.hector
Refused · NonExhaustive
Client  plan: Free | Pro | Team
  limit = match plan
    Free -> 10
    Pro -> 600

The repaired program:

NonExhaustive.right.hector
Verified Example
Client  plan: Free | Pro | Team
  limit = match plan
    Free -> 10
    Pro -> 600
    Team -> 3000
NonStratified a value cannot depend on its own negation: Hector refuses definitions that read not of themselves through other definitions of the same row Syntax & Names

Cause. A field depends on itself through a test or a sum (na = not nb and nb = not na), so no single value satisfies both definitions.

Repair. Define one of the two from a real fact (na = flag > 0) and let the other follow from it, as the corrected program does.

NonStratified.wrong.hector
Refused · NonStratified
Item  flag: Count
  na = not nb
  nb = not na

The corrected program:

NonStratified.right.hector
Verified Example
Item  flag: Count
  na = flag > 0
  nb = not na
NotACase a row of a table is selected by the keys the table is read with: where those are cases, a row writes cases of them, and else covers every other key Syntax & Names

Cause. A row of the table Tier has the key card, and Tier is read with kind: Card | Wire | Cash. A case is written exactly as declared, so no read ever selects the row and the else row answers instead. The same holds for any word, text or number written where every read of the table gives cases.

Repair. Write the case as declared (Card 2 %), or let the else row cover the keys no row names.

A key that some read gives a number or a text takes any row, and a table nothing reads says nothing of its keys. When two sorts read one table, a row writes a case of either.

NotACase.wrong.hector
Refused · NotACase
Clerk
table Tier(kind) -> Ratio
  card  2 %
  else -> 1 %
Payment  kind: Card | Wire | Cash, amount: Money
  fee = amount * Tier(kind)
  -> on Pay by Clerk
  show fee to Clerk within 1 s

The repaired program:

NotACase.right.hector
Verified Example
Clerk
table Tier(kind) -> Ratio
  Card  2 %
  else -> 1 %
Payment  kind: Card | Wire | Cash, amount: Money
  fee = amount * Tier(kind)
  -> on Pay by Clerk
  show fee to Clerk within 1 s
example fee
  p = Pay(kind: Card, amount: 50 EUR)
  see p.fee = 1 EUR
NotAParty by x names who acts: a role, or a field that points to a sort; a status, a condition, a text, a number or an instant is nobody Time & Deadlines

Cause. The field technician is a Text, and by technician needs a party: a text is nobody, so no one could ever act. The same holds for a status, a condition, a quantity or an instant, and for a definition or a path of such a type: only a role, or a value that points to a sort, can act.

Repair. Declare the party as a sort (Technician), and give the field that type.

NotAParty.wrong.hector
Refused · NotAParty
Job  technician: Text
  -> on Start by technician

The repaired program:

NotAParty.right.hector
Verified Example
Technician
Job  technician: Technician
  -> on Start by technician
NotAStatus a transition or birth names a declared status; a bare case in a filter tests the element's status, while another choice or linked row needs an explicit value is Case Syntax & Names

Cause. A transition goes into Sent, which is not a status of Order (status: Open | Done).

Repair. Enter one of the declared statuses (-> Open on Send by Clerk), and reach Done by a transition.

An else continues the transition line just above it: under a line that is no transition, or without the status it takes, it is refused under the same code, with the transition form to write.

In an aggregate filter, a bare case tests the element's status. A case belonging to another choice or linked row needs an explicit test, such as where items.kind is Fragile. Otherwise the reader refuses it and offers the matching fields or link; it never silently treats that case as false.

The same code refuses a status test on a row that names no status of its sort: item is Gone, where Gone is neither a sort nor a status of any field of the sort of item, was false for every row without a word. The refusal names the sort and, when a field of it holds that status, offers field is Gone; a row compared with a row (room is Room, before is not after) is not a status test.

NotAStatus.wrong.hector
Refused · NotAStatus
Clerk
Order
  status: Open | Done
  -> Sent on Send by Clerk

The repaired program:

NotAStatus.right.hector
Verified Example
Clerk
Order
  status: Open | Done
  -> Open on Send by Clerk
  Open -> Done on Finish by Clerk
NotExported a package makes available to its callers only the declarations its export list names, and what it shows is of types it shows Syntax & Names

A package publishes declarations with a top-level export A, B list. Every other declaration belongs to its instances, and a package without a list publishes none. A caller cannot name what is kept, in a type, a value, a call, an event, a clause or a path: a clock it named would be an event nothing sends. An event of the caller's own, which says who sends it (by) or what it carries, is admitted under any name. What the package shows (sort, value, table, function, clock, named value) has only members of types it shows, and so does what the events of a shown sort carry. Export the declaration you mean to share, or refer to one that is public.

NotExported.wrong
Refused · NotExported
Public value: Count
Internal label: Text
export Public
NotExported.right/Package.hector
Verified Example
Public value: Count
Internal label: Text
export Public, Internal
NotExported.right/main.hector
Verified Example
use Package
Reading source: Internal?
  show source to Observer
NotMeasured a promised latency is established only by a native measurement on a named machine and load Laws & Proofs

Cause. A promised latency or memory (restrict p99 <= 2 ms on Deposit, or a restriction written as a comparison) has no native measurement on a named machine and load, so the promise is not checked.

Repair. Delete the promise, or keep it and measure it on a named machine and load.

The corrected program:

NotMeasured.right.hector
Verified Example
latency = 2 ms
Account  balance: Money
  start balance = 0 EUR
  next balance = balance + amount on Deposit(amount: Money)
NotMeasured.wrong.hector
Refused
latency = 2 ms
Account  balance: Money
  start balance = 0 EUR
  next balance = balance + amount on Deposit(amount: Money)
restrict latency <= 2 ms
NotWitnessed a claim with no witnessed history within the exploration bounds stays unknown Syntax & Names

Cause. The bounded exploration found no history that demonstrates this claim among the inputs it tried. The claim remains unknown.

Repair. Increase --depth, --states or a bound of rows given with --rows when a larger search is useful. Review the generated inputs and the program's own examples. Keep the unknown verdict while no witness has been replayed.

Executable CLI Run
verdict 3
hector explore ../words/commands/small.hector --depth 1 --states 1
ObserverKey a web observer is told what its show writes only on a call that carries a key the host declared for it Delivery & Runtime

Cause. A call to the web observer of hector serve --web carries no key the host declared, or asks with it for what is another observer's. Or the file given to --keys cannot be read, is given without --web, or holds a line that declares no key of an observer of the program. The call or the service is refused 2: no observer is told anything.

Repair. Declare each key in the file of --keys, one per line: <party> <key> for a party outside the program, <Sort> <identity> <key> for one row of a sort. A key is written with letters, digits and -._~, and declared once. The observer then asks with key=<key> and nothing says who it is but that key.

An admitted /why question uses the program revision the service opened. For hector why --journal … --for …, WHY_SUBJECT asks for an item shown with why in the journal's program revision. Open the matching revision to ask again. A source left undecided answers unknown 3 there, without its diagnostic. Use the author-facing hector check to see source diagnostics.

Executable CLI Run
verdict 2
hector serve PropertyRefuted.right.hector --keys observers.txt
OutOfScope Hector does not yet understand or decide this form; write the same rule another way, never change the business for it Syntax & Names

Cause. The condition spread > tolerance depends on the time (readings of the last hour), and Hector cannot yet prove the next instant when it becomes true, so the program is not judged there.

Repair. Say when the question is asked: a clock event (Check every 1 min) on the transition, as the corrected program does, keeps the same business rule.

The corrected program:

OutOfScope.right.hector
Verified Example
Sensor  tolerance: Quantity, status: Ok | Drift
  spread = stddev(reading.value where reading.at >= now - 1 h)
  -> Ok on Start
  Ok -> Drift on Check when spread > tolerance

Check every 1 min

Reading  sensor: Sensor, value: Quantity, at: Instant
  -> on Sample by sensor
OutOfScope.wrong.hector
Refused
Sensor  tolerance: Quantity, status: Ok | Drift
  spread = stddev(reading.value where reading.at >= now - 1 h)
  -> Ok on Start
  Ok -> Drift when spread > tolerance

Reading  sensor: Sensor, value: Quantity, at: Instant
  -> on Sample by sensor
OutsideParty a party that the row does not have is anyone of the outside world, never the row's own: the header says which Syntax & Names

Cause. A change says by customer, the sort has no field customer, and the program declares a sort Customer. The party is then read as anyone of the outside world: the right written on the line is no right of the row's customer.

Repair. For the row's own customer, give the header the field customer: Customer (the author of the birth becomes it). For any customer, write by Customer.

The corrected program:

OutsideParty.right.hector
Verified Example
Customer  name: Text
Order  total: Money, customer: Customer
  status: Open | Paid
  -> Open on Place by customer
  Open -> Paid on Pay by customer
  show status to customer
OutsideParty.wrong.hector
Refused
Customer  name: Text
Order  total: Money
  status: Open | Paid
  -> Open on Place by customer
  Open -> Paid on Pay by customer
  show status to customer
PackageBinding use P(X = a) binds each ?X of the package once, to a name of the project that fits it Syntax & Names

Cause. A use Package(parameter = value) binds a name that is not a ?parameter of the package, binds one twice, or binds a subject to something that is not a sort of the project.

Repair. Bind each ?parameter of the package exactly once, and bind the subject (?Subject) to a sort declared in the project.

PackageBinding.wrong
Refused · PackageBinding
-- Satisfaction survey: a package of rules, used by 12-helpdesk-complet.hector.
-- Parameters: ?Subject is the sort surveyed, ?respondent the path to who answers, ?done the status that sends the survey.
-- A survey is sent when the subject reaches ?done, rated 1 to 5 by the respondent, and lapses after 7 days.
?Subject
  survey: Idle | Sent | Rated | Lapsed
  rating: Count 1..5?
  Idle -> Sent when ?done
  Sent -> Rated on Rate(rating) by ?respondent
  Sent -> Lapsed after 7 day
  show survey, rating to ?respondent

The repaired program:

PackageBinding.right/Survey.hector
Verified Example
-- Satisfaction survey: a package of rules, used by 12-helpdesk-complet.hector.
-- Parameters: ?Subject is the sort surveyed, ?respondent the path to who answers, ?done the status that sends the survey.
-- A survey is sent when the subject reaches ?done, rated 1 to 5 by the respondent, and lapses after 7 days.
?Subject
  survey: Idle | Sent | Rated | Lapsed
  rating: Count 1..5?
  Idle -> Sent when ?done
  Sent -> Rated on Rate(rating) by ?respondent
  Sent -> Lapsed after 7 day
  show survey, rating to ?respondent
PackageBinding.right/main.hector
Verified Example
Person

Ticket  author: Person
  status: Open | Closed
  -> Open on Open by author
  Open -> Closed on Close by author

use Survey(Subject = Ticket, respondent = author, done = Closed)
PackageInterface what a package needs of a subject (?Subject needs member: T, …) is declared by the sort a use binds it to: each member of that type, a choice with at least those cases Syntax & Names

Cause. A package says what the sort bound to a subject must declare (?Subject needs member: Type, …), and the sort a use binds lacks a member, declares it of another type, makes it optional, or lacks a case. The refusal stands at the use and lists everything missing.

A subject block can also promise export member: Type. That block must supply the field or computed member with the promised readable type. Bind every type parameter and use a type visible to the caller. A member supplied elsewhere cannot satisfy the export. A broken promise is reported at the use. A malformed or repeated export is reported at its declaration. An export list may name an event, which then keeps its name for the hosts; a second instance exporting the same event is refused at its export line, because one call would reach both. Export it from one package only, or give each package its own event name. A line outside the package that asks a caller of an exported event for more than the package asks (a new input, a field added to a sort the event gives birth to, a parameter, a by) is refused at that line: a host bound to the package alone would no longer fit. Each sort asks for its own inputs: a line of another sort that takes an input of the same name and type asks one more of the caller. A sort that a use gives the package declares its own inputs. A line that takes nothing from the caller is accepted. Write any other line in the package, or send it by an event of another name.

At the top of a package, export policy heads a nonempty block of prefer and restrict Pact clauses. Hector reports other kinds of clauses at their line in the package. Move an ordinary implementation declaration outside the block to keep it private.

Repair. Declare on the sort each member the refusal lists, with its type and cases, or bind the subject to a sort that already does. A member given by a parameter (?reader: Person) is repaired at the use by naming such a member.

PackageInterface.wrong
Refused · PackageInterface
-- A discount on what a row costs. Parameters: ?Subject is the sort priced, ?rate what is
-- taken off, ?reader the member of the sort that sees the discount.
?rate: Ratio
?Subject needs ?reader: Person, amount: Money, status: ?done
  discount = amount * ?rate if ?done else 0 EUR
  show discount to ?reader

The repaired program:

PackageInterface.right/Discount.hector
Verified Example
-- A discount on what a row costs. Parameters: ?Subject is the sort priced, ?rate what is
-- taken off, ?reader the member of the sort that sees the discount.
?rate: Ratio
?Subject needs ?reader: Person, amount: Money, status: ?done
  export discount: Money
  discount = amount * ?rate if ?done else 0 EUR
  show discount to ?reader
PackageInterface.right/main.hector
Verified Example
Person

Order  buyer: Person, amount: Money
  status: Open | Paid
  -> Open on Buy(buyer, amount) by buyer
  Open -> Paid on Pay by buyer

use Discount(Subject = Order, rate = 10 %, reader = buyer, done = Paid)
PackageType a parameter a package types (?x: T) is bound by each use to a value of that type Syntax & Names

Cause. A package types a parameter (?rate: Ratio), and a use binds it to a value of another type.

Repair. At the use, bind the parameter to a value of the type the package declares: a quantity of the same dimension, a value of that type, or one of the cases it lists.

PackageType.wrong
Refused · PackageType
-- A discount on what a row costs. Parameters: ?Subject is the sort priced, ?rate what is
-- taken off, ?reader the member of the sort that sees the discount.
?rate: Ratio
?Subject needs ?reader: Person, amount: Money, status: ?done
  discount = amount * ?rate if ?done else 0 EUR
  show discount to ?reader

The repaired program:

PackageType.right/Discount.hector
Verified Example
-- A discount on what a row costs. Parameters: ?Subject is the sort priced, ?rate what is
-- taken off, ?reader the member of the sort that sees the discount.
?rate: Ratio
?Subject needs ?reader: Person, amount: Money, status: ?done
  discount = amount * ?rate if ?done else 0 EUR
  show discount to ?reader
PackageType.right/main.hector
Verified Example
Person

Order  buyer: Person, amount: Money
  status: Open | Paid
  -> Open on Buy(buyer, amount) by buyer
  Open -> Paid on Pay by buyer

use Discount(Subject = Order, rate = 10 %, reader = buyer, done = Paid)
PanelWrite a panel of panels/ reads the Studio's model: it declares its own sorts, definitions and show lines, and writes, constrains or takes part in nothing of the model Syntax & Names

Cause. A panel of panels/ reads the Studio's model: it declares its own sorts, definitions and show lines. A panel line that adds a field, a birth, a transition or a law to a sort of the model, or a law of the whole world, takes the place of a program line and is refused, as is a line that changes the numbers, the host or the roles of such a sort. A panel's own sort takes no part in a step of the model: no law, assume or stays, and no line caused by an event of the model or by none. hector check and the Studio name the panel file that wrote and say which sort; a line that only changes the numbers, the host or the roles of a model sort names the panel that changes it alone.

Repair. Keep in panels/ only what reads; a rule of the application belongs to the program.

PanelWrite.wrong
Refused · PanelWrite
Order  total: Money
  -> on Place(total)
  show total to Observer

The repaired project, whose panel only shows:

PanelWrite.right/shop.hector
Verified Example
Order  total: Money
  -> on Place(total)
  show total to Observer
PartialGuard, UnguardedSibling Compiler diagnostic code Syntax & Names

Cause. Close is sent by the owner on the transition, but the next line of the same event names nobody: a Close sent by anyone else is still accepted and applies that line.

Repair. Give the line the sender the other lines of the event name, as the corrected program does.

A condition on a transition also belongs to that line alone. UnguardedSibling asks whether a sibling write needs the same condition.

The corrected program:

PartialGuard.right.hector
Verified Example
Owner  name: Text
Item  owner: Owner
  closes: Count
  status: Open | Done
  start closes = 0
  -> Open on Create(owner) by owner
  Open -> Done on Close by owner
  next closes = closes + 1 on Close by owner
  show closes, status to owner

A separate case shows a condition on the transition but not on the sibling write. Explain the write on line 6 to see the decision without changing the program:

Executable CLI Run
verdict 3
hector explain PartialGuard.sibling.hector 6
PartialGuard.wrong.hector
Refused
Owner  name: Text
Item  owner: Owner
  closes: Count
  status: Open | Done
  start closes = 0
  -> Open on Create(owner) by owner
  Open -> Done on Close by owner
  next closes = closes + 1 on Close
  show closes, status to owner
PastTheWord an exact number stays exact only while it fits its word: round it with round(x, step, mode) or declare the block float Types & Units

Cause. An exact arithmetic computation overflowed its machine word, so the exact value can no longer be represented without losing precision.

Repair. Round the quantity explicitly with round(x, step, mode), or declare the enclosing block float when floating-point approximation is acceptable.

Status. Raised at runtime when exact arithmetic leaves its word; no standalone example of the reference raises it yet (published gap).

PathEnds a path runs from one end to another, and the second end follows the first: an event or a status of any sort that some walk of the program reaches from it Syntax & Names

Cause. A path runs from one end to another, and the second end must follow the first: an event, or one status of any sort, then another event or status that some walk of the program reaches from it, through the events and the changes of no event (when, after) on the way. A path whose second end never follows the first, whose ends name nothing, or that is not written path <name> = <end> -> <end> (or a longer chain, <end> -> <end> -> <end>, each end following the one before) is refused with the events that do follow its first end.

Repair. Write the ends in the order the program takes them: path fulfilment = Paid -> Shipped. Qualify a status with its sort (Cart.Open -> Order.Paid) when two sorts share its name.

PathEnds.wrong.hector
Refused · PathEnds
Clerk
Order
  status: Open | Paid | Shipped
  -> Open on Place by Clerk
  Open -> Paid on Pay by Clerk
  Paid -> Shipped on Ship by Clerk
  show status to Clerk within 1 s
path fulfilment = Shipped -> Paid

The repaired program:

PathEnds.right.hector
Verified Example
Clerk
Order
  status: Open | Paid | Shipped
  -> Open on Place by Clerk
  Open -> Paid on Pay by Clerk
  Paid -> Shipped on Ship by Clerk
  show status to Clerk within 1 s
path fulfilment = Paid -> Shipped
PathName a path has a name of its own, in lowercase, that no sort, event, definition or function bears, and a corridor has one name, so a line says on <name> in one way Syntax & Names

Cause. A path names a corridor so that a line can say on <name>, and on reads a name as an event, a sort, a definition, a function and only then a path: a path takes none of those names, is named in lowercase, bears a name once, and is named once (two names for the ends of one path would leave a line with two ways to be written).

Repair. Give the path a name of its own, in lowercase, or delete the second name of a path: path fulfilment = Paid -> Shipped.

PathName.wrong.hector
Refused · PathName
Clerk
Order
  status: Open | Paid | Shipped
  -> Open on Place by Clerk
  Open -> Paid on Pay by Clerk
  Paid -> Shipped on Ship by Clerk
  show status to Clerk within 1 s
path Order = Paid -> Shipped

The repaired program:

PathName.right.hector
Verified Example
Clerk
Order
  status: Open | Paid | Shipped
  -> Open on Place by Clerk
  Open -> Paid on Pay by Clerk
  Paid -> Shipped on Ship by Clerk
  show status to Clerk within 1 s
path fulfilment = Paid -> Shipped
PatternEvent every event named in a pattern must be declared in the program Syntax & Names

Cause. A step in a pattern names an event that is not declared anywhere in the program.

Repair. Declare the event in the program or fix the event name in the pattern step.

PatternEvent.wrong.hector
Refused · PatternEvent
Desk
Account  name: Text
  status: Open | Locked
  -> Open on Make(name) by Desk
  pattern Probe = Login(account), Missing(account) within 1 h
  Open -> Locked when Probe
LoginLog  account: Account
  -> on Login(account) by Desk

The repaired program:

PatternEvent.right.hector
Verified Example
Desk
Account  name: Text
  status: Open | Locked
  -> Open on Make(name) by Desk
  pattern Probe = Login(account), Hit(account) within 1 h
  Open -> Locked when Probe
  show status to Desk
LoginLog  account: Account
  -> on Login(account) by Desk
HitLog  account: Account
  -> on Hit(account) by Desk
example pattern_events
  a = Make(name: "dave")
  Hit(account: a)
  see a is Open
  Login(account: a)
  see a is Open
  Hit(account: a)
  see a is Locked
PatternLength a pattern must expand to between 1 and 16 event steps (xN with N >= 1 and total <= 16) Syntax & Names

Cause. A pattern declares an empty step list, a zero/invalid repeat multiplier, or more than 16 expanded steps (sum of N > 16).

Repair. Use between 1 and 16 expanded event steps in pattern.

PatternLength.wrong.hector
Refused · PatternLength
Desk
Account  name: Text
  status: Open | Locked
  -> Open on Make(name) by Desk
  pattern Burst = Fail(account) x17 within 5 min
  Open -> Locked when Burst
FailLog  account: Account
  -> on Fail(account) by Desk

The repaired program:

PatternLength.right.hector
Verified Example
Desk
Account  name: Text
  status: Open | Locked
  -> Open on Make(name) by Desk
  pattern Burst = Fail(account) x3 within 5 min
  Open -> Locked when Burst
  show status to Desk
FailLog  account: Account
  -> on Fail(account) by Desk
example pattern_length
  a = Make(name: "bob")
  Fail(account: a)
  Fail(account: a)
  see a is Open
  Fail(account: a)
  see a is Locked
PatternNoIdentity every event step of a pattern must name the parameter designating a row of the enclosing sort, as in Fail(account) Syntax & Names

Cause. A step in a pattern does not name the event parameter that identifies a row of the enclosing sort (Fail(account) where account refers to Account, or (self) for a direct event of that sort).

Repair. Write Event(param) with the parameter that designates the sort row in parentheses.

PatternNoIdentity.wrong.hector
Refused · PatternNoIdentity
Desk
Account  name: Text
  status: Open | Locked
  -> Open on Make(name) by Desk
  pattern Burst = Fail x2 within 5 min
  Open -> Locked when Burst
FailLog  account: Account
  -> on Fail(account) by Desk

The repaired program:

PatternNoIdentity.right.hector
Verified Example
Desk
Account  name: Text
  status: Open | Locked
  -> Open on Make(name) by Desk
  pattern Burst = Fail(account) x2 within 5 min
  Open -> Locked when Burst
  show status to Desk
FailLog  account: Account
  -> on Fail(account) by Desk
example pattern_identity
  a = Make(name: "alice")
  Fail(account: a)
  see a is Open
  Fail(account: a)
  see a is Locked
PatternWindow a pattern must end with within <positive duration> carrying a duration unit Time & Deadlines

Cause. A pattern declaration omits within <duration> or specifies a zero, negative, or non-duration window (LiteralWithoutUnit / invalid window).

Repair. End the pattern declaration with within followed by a positive duration carrying a time unit (within 5 min).

PatternWindow.wrong.hector
Refused · PatternWindow
Desk
Account  name: Text
  status: Open | Locked
  -> Open on Make(name) by Desk
  pattern Burst = Fail(account) x2
  Open -> Locked when Burst
FailLog  account: Account
  -> on Fail(account) by Desk

The repaired program:

PatternWindow.right.hector
Verified Example
Desk
Account  name: Text
  status: Open | Locked
  -> Open on Make(name) by Desk
  pattern Burst = Fail(account) x2 within 5 min
  Open -> Locked when Burst
  show status to Desk
FailLog  account: Account
  -> on Fail(account) by Desk
example pattern_window
  a = Make(name: "carol")
  Fail(account: a)
  after 6 min
  Fail(account: a)
  see a is Open
  Fail(account: a)
  see a is Locked
PlaneLeak the program says the business only: machine types, structures, threads, devices and spaced names are Hector's choice or not words of the language Syntax & Names

Cause. The machine type u32 is written as a business type; Hector keeps machine types out of the program, and a count is a Count.

Repair. Write the business type: Count for a whole number, or a quantity with its unit.

The same code refuses what a reader and an editor would not read alike: a tab in the indentation of a line (a block is indented with spaces, two per level). The refusal is at that line only, and its expected form is the line in spaces.

PlaneLeak.wrong.hector
Refused · PlaneLeak
Clerk
Ticket  seats: u32
  show seats to Clerk within 1 s

The repaired program:

PlaneLeak.right.hector
Verified Example
Clerk
Ticket  seats: Count
  show seats to Clerk within 1 s
PremiseBroken an assume is a premise about the world; a run that breaks it leaves what depends on it undecided Syntax & Names

Cause. The assume line declares a bound the world must keep (pos < 2 m), and a run breaks it: the ball passes 2 m, and past that point the program declares nothing.

Repair. State the bound the world keeps inside the step, as a wall (min(pos + vel * dt, 2 m)) with the matching assume; if the act must be refused instead, write a law on the state.

The corrected program:

PremiseBroken.right.hector
Verified Example
Ball  pos: Length, vel: Speed
  start pos = 0 m
  start vel = 1 m/s
  next pos = min(pos + vel * dt, 2 m)
  assume pos <= 2 m

Physics every 100 ms
PremiseBroken.wrong.hector
Refused
Ball  pos: Length, vel: Speed
  start pos = 0 m
  start vel = 1 m/s
  next pos = pos + vel * dt
  assume pos < 2 m

Physics every 100 ms
PremiseNotWatched an assume must be watched by the native image; a premise nothing watches is not established Syntax & Names

Cause. The assume line tests dt, which has no exact native time scale, so no reader of the native image tests it and nothing watches the premise.

Repair. Put the bound inside the step, min(dt, 10 ms), so the program no longer relies on a premise that nothing watches, as the corrected program does.

The corrected program:

PremiseNotWatched.right.hector
Verified Example
Ball  pos: Length, vel: Speed
  start pos = 0 m
  start vel = 1 m/s
  next pos = pos + vel * min(dt, 10 ms)

Physics every 4 ms
PremiseNotWatched.wrong.hector
Refused
Ball  pos: Length, vel: Speed
  start pos = 0 m
  start vel = 1 m/s
  next pos = pos + vel * dt
  assume dt < 10 ms

Physics every 4 ms
PremiseOutsideTheRun a premise that no run of the program reads is taken as given and watched by nothing, so it is not established Syntax & Names

Cause. An assume line states a premise that no run of the program reads: either it observes time in a way the native image does not lower yet (owner hector), or nothing a run does ever reaches what it tests (owner program). The premise is taken as given, and nothing watches it; it is reported as unknown 3, with the premise named.

Repair. When the owner is program, write the premise on what the program's own rows and events make true, or state the bound inside the step (min(x, bound)), as for PremiseNotWatched. When the owner is hector, the author changes nothing: lowering that observation is the work of the Hector team.

Executable CLI Run
verdict 3
hector check PremiseOutsideTheRun.wrong.hector
PremiseOutsideTheRun.wrong.hector
Refused
Item
  status: Open | Closed
  -> Open on Make
  Open -> Closed on Close
  assume age(self) <= 5 s
  show status to Item
example premise outside
  x = Make()
  Close(x)
  see x is Closed
ProjectEditFile a project edit is written into an editable source file of the revision, never a path the project does not have or a locked library Syntax & Names

Cause. A typed change of a project names a file that is not an editable source of the revision: the path is not one of its files, or it is a locked library.

Repair. Select a file listed by map, or leave the file out and let the owner of the changed block be found.

An executable documentation example for a project edit remains a published gap (verdict 3): the code is raised by lens::project_edit when a room projects an answer, a fill or a fix onto its files, not by a program.

ProjectEditOrigin a changed block is written back to one physical block: a block expanded from a package, or declared in several files, has no single place to be rewritten Syntax & Names

Cause. A changed block has no single physical block to be written back to: it is expanded from a package, declared in several files, or its copies stand in several source owners.

Repair. Select the owning file explicitly, or propose the complete source of the file that holds the declaration.

An executable documentation example for a project edit remains a published gap (verdict 3): the code is raised by lens::project_edit when a room projects an answer, a fill or a fix onto its files, not by a program.

ProjectEditOverlap physical block replacements in one source file must occupy disjoint line ranges Syntax & Names

Cause. Two physical edits projected onto the same source file overlap in their line ranges.

Repair. Select the owning file explicitly, or propose its complete source so the overlapping blocks are rewritten together.

An executable documentation example for a project edit remains a published gap (verdict 3): the code is raised by lens::project_edit when a room projects an edit onto its files, not by a program.

ProjectEditOwner a change goes to the file that owns the declaration; where the owner is unsettled or another file was selected, the file is named Syntax & Names

Cause. The file that should receive a project edit cannot be settled: the selected file does not own the changed block or the hole, the hole's source is absent, or a new declaration could go to several files and none was selected.

Repair. Pass the file that owns the declaration (file=PATH), or for a new declaration the file it is to be written in.

An executable documentation example for a project edit remains a published gap (verdict 3): the code is raised by lens::project_edit when a room projects an answer, a fill or a fix onto its files, and by lens::prefer_edit when a priority is written where no file owns its scope, not by a program.

ProjectEditScope a projected edit only references names visible from the selected source file Syntax & Names

Cause. A projected change refers to a private name from another module that is not visible in the selected source file.

Repair. Export the name from its owning module, or select the source file where that name is in scope.

An executable documentation example for a project edit remains a published gap (verdict 3): the code is raised by lens::project_edit when a room projects an edit onto its files, not by a program.

ProjectLocked a locked library source cannot be modified by a project edit Syntax & Names

Cause. A typed change would rewrite a declaration owned by a locked library file.

Repair. Edit a non-locked project source file instead, or unlock the library explicitly before changing it.

An executable documentation example for a project edit remains a published gap (verdict 3): the code is raised by lens::project_edit when a room projects an edit onto its files, not by a program.

ProjectSpelling every line written back by a project edit must lex cleanly under the target file's spelling Syntax & Names

Cause. A generated line failed to lex when re-spelling a projected change back into its target source file.

Repair. Select the owning file explicitly, or propose its complete source directly.

An executable documentation example for a project edit remains a published gap (verdict 3): the code is raised by lens::project_edit when a room projects an edit onto its files, not by a program.

PromiseHeld, PromiseBroken Compiler diagnostic code Syntax & Names

PromiseHeld #

Cause. A restrict line promises a bound the program keeps when it runs (the size it delivers, the memory its arena holds, or a latency), and the check measured it within that bound for the load of this check, on this machine. It is established, not a fault: the line says what was measured and that it changes with the load and the machine.

Repair. Nothing to repair. A promise measured past its bound is PromiseBroken; one the measure cannot separate from its noise is not measured.

Executable CLI Run
verdict 0
hector check PromiseHeld.right.hector

PromiseBroken #

Cause. A measured promise exceeds its bound on this machine and load. A bound on the whole program counts its delivered size or its entire arena. A measured native record takes strictly positive time, so a nonpositive latency bound is broken; a positive bound is broken only when the entire clock-and-noise interval exceeds it. An overlapping interval remains NotMeasured. This refutes the promise, not the rules.

Repair. Raise the bound or reduce what it covers. Changing the machine or load requires measuring it again.

Executable CLI Run
verdict 1
hector check PromiseBroken.wrong.hector
PromiseHeld.right.hector
Valid
Item
  status: Open | Closed
  -> Open on Make
  Open -> Closed on Close
  show status to Item
restrict size <= 64 MB
example within size
  x = Make()
  Close(x)
  see x is Closed
PropertyEstablished a property is established when the program's rules imply it Syntax & Names

Cause. The program's rules imply the stated property. The check reports the proof and the writers it covers.

Repair. No change is needed. A property asks whether a condition holds. Use a law if the program should refuse an event that would break it.

Executable CLI Run
verdict 0
hector check --brief PropertyRefuted.right.hector
PropertyRefuted a property is false after a history the program accepts, so the lines do not keep it Time & Deadlines

Cause. A history the program accepts leaves a property false. A property is not enforced: nothing refuses the events that break it.

Repair. Write the line that keeps it, a precondition or a law, or write the condition that is really meant.

Executable CLI Run
verdict 1
hector hunt PropertyRefuted.hunted.hector --properties

The repaired program:

PropertyRefuted.right.hector
Verified Example
Clerk
Tank
  -> on Open by Clerk
  start level = 0
  next level = level + 1 on Fill by Clerk when level < 1
  property level <= 1
  show level to Clerk
example filling stops at one
  t = Open()
  Fill(t)
  refused Fill(t)
  see t.level = 1
PropertyScope a property speaks of every row of its sort, so it stands in the sort's main block, never under a status Syntax & Names

Cause. A property stands under the name of a status; a property speaks of every row of its sort.

Repair. Write it in the main block of the sort, and say the status in the condition when it matters.

PropertyScope.wrong.hector
Refused · PropertyScope
Clerk
Tank
  status: Empty | Full
  -> Empty on Open by Clerk
  Empty -> Full on Fill by Clerk
  start level = 0
  Full
    property level >= 0

The repaired program:

PropertyScope.right.hector
Verified Example
Clerk
Tank
  status: Empty | Full
  -> Empty on Open by Clerk
  Empty -> Full on Fill by Clerk
  start level = 0
  property status is not Full or level >= 0
  show status, level to Clerk
example filling
  t = Open()
  Fill(t)
  see t is Full
PropertyShape a property is one condition about the world or about each row of a sort Syntax & Names

Cause. A property is not one condition: it gives a value, or it writes ->, which is the shape of a temporal law.

Repair. Write what holds, as a condition on the rows of the sort or on the world.

PropertyShape.wrong.hector
Refused · PropertyShape
Clerk
Tank
  -> on Open by Clerk
  start level = 0
  next level = level + 1 on Fill by Clerk
  property level + 1

The repaired program:

PropertyShape.right.hector
Verified Example
Clerk
Tank
  -> on Open by Clerk
  start level = 0
  next level = level + 1 on Fill by Clerk
  property level >= 0
  show level to Clerk
example filling raises the level
  t = Open()
  Fill(t)
  see t.level = 1
PropertyUnproved a property is established when the lines imply it and refuted by a history that breaks it; neither was found within the bound Syntax & Names

Cause. The lines do not imply a property and the generated histories never break it, so it is neither established nor refuted.

Repair. Write the law that bounds what it reads, which the program then enforces, or search further with --histories and --steps.

Executable CLI Run
verdict 3
hector hunt PropertyUnproved.hunted.hector --properties --histories 2 --steps 40

The repaired program:

PropertyUnproved.right.hector
Verified Example
Clerk
Tank
  -> on Open by Clerk
  start level = 0
  next level = level + 1 on Fill by Clerk
  law level >= 0
  property level >= 0
  show level to Clerk
example filling raises the level
  t = Open()
  Fill(t)
  see t.level = 1
PublicationRefused a publication takes a computed dossier over the journal's present history and a contract that does not move major, or it admits nothing Syntax & Names

admit with publish: true could not publish the proposal, so it admitted nothing: the room keeps its head, the proposal stays pending and the journal keeps every byte. The message says why: publish is not a boolean, the room is bound to no deployment journal, the proposal changes no program, its impact or migration is not computed, the migration asks a question, the contract moves major, the journal is not the history the dossier read, or the migration itself refused (a journal held by a running writer is one case). A publication stopped after its epoch and before the room's commit is finished by the same author calling it again: the journal takes no second epoch.

Stop the writer, serve the room with --journal PATH, propose the change again so that its dossier reads the present history, review it, then call admit with publish: true. A change whose contract moves major, or whose migration asks a question, is admitted without publish and migrated by hector migrate once its clients are ready.

A publication retry requires the current epoch to have the same author and to start at the exact journal prefix reviewed by the proposal.

Quadratic an event costs work in proportion to the rows it touches, never to rows times rows: a birth over two references nothing binds, or an aggregate nothing keeps read inside a sweep, is refused with the reference to bind or the total to keep Time & Deadlines

Cause. The plan oracle derives quadratic or higher asymptotic growth (O(|A| * |B|) or O(|S|^2)) for an entry or observation, such as an unconstrained cross-sort conditional birth -> when ... over two unbound row references or an unkept aggregate inside a full sweep. Hector refuses quadratic scaling by construction rather than compiling an O(N^2) loop.

Repair. Bind at least one reference explicitly through an event parameter (as -> on LinkPair does below) or an equality constraint in the condition, or ensure inner aggregates are maintained incrementally by parent reference.

Quadratic.wrong.hector
Refused · Quadratic
Owner
Left  x: Count
  -> on OpenLeft(x: Count)
Right  y: Count
  -> on OpenRight(y: Count)
Pair  a: Left, b: Right
  -> when a.x > 0 and b.y > 0
  show a to Owner

The corrected program:

Quadratic.right.hector
Verified Example
Owner
Left  x: Count
  -> on OpenLeft(x: Count)
Right  y: Count
  -> on OpenRight(y: Count)
Pair  a: Left, b: Right
  -> on LinkPair when a.x > 0 and b.y > 0
  show a to Owner
ReachUnsound a judge-replayed history reaching a status or event classified unreachable by reach analysis reveals a reach defect Syntax & Names

Cause. A history replayed by the judge reaches a status, transition or accepted event that the compiler's reach analysis classifies as unreachable.

Repair. Keep the program and the reported witness together so the reach analysis can be corrected. Replaying the witness checks the discrepancy independently of the bounded search.

Reassign = defines a value that Hector keeps up to date; a value that changes is written next x = e on E or comes from facts that are summed Syntax & Names

Cause. A definition reads its own name (total = total + 1 EUR): = defines a value Hector keeps up to date, so it cannot change itself, and the loop is refused.

Repair. Give the first value with start, then change it at each event with next total = total + 1 EUR on Add.

Reassign.wrong.hector
Refused · Reassign
Clerk
Tally
  total = total + 1 EUR
  show total to Clerk within 1 s

The repaired program:

Reassign.right.hector
Verified Example
Clerk
Tally
  start total = 0 EUR
  next total = total + 1 EUR on Add by Clerk
  show total to Clerk within 1 s
RegimeMeterUnavailable a regime reads only measures that the live observer supplies Laws & Proofs

Cause. The live observer supplies row counts, event rates and UTC time to a regime. A native p99 producer has yet to supply the meter named here.

Repair. Use a row count, the rate of an event (rate(Record) > 10/s) or a time condition when it describes the policy.

RegimeMeterUnavailable.wrong.hector
Refused · RegimeMeterUnavailable
Parcel number: Count
  -> on Record(number)

Busy when p99(Record) > 10 ms
restrict adapt within 2 s during Busy
RegimeMeterUnavailable.right.hector
Verified Example
Parcel number: Count
  -> on Record(number)

Busy when rows(Parcel) >= 10
restrict adapt within 2 s during Busy
ReservedFolder the folder rules/ at the root of a project holds its rules and not its program, so a file or a module of the program never takes that place or that name Syntax & Names

Cause. The folder rules/ at the root of a project holds the rules of the project (hector rules), written in the sheet's language about the world the program makes, and the folder panels/ holds the panels its Studio reads: their files are never read as part of the program, and a program cannot give its own modules or files those places, nor a module the names rules or panels. A panel file longer than 1,048,576 bytes, or one that cannot be read, is refused under this code and no panel mounts.

Repair. Rename the module's folder, or move the file out of rules/; keep in rules/ only the rules.

ReservedFolder.wrong
Refused · ReservedFolder
Order  total: Money
  -> on Place(total)
  show total to Observer

The repaired project, whose rules/ folder holds a rule and no program:

ReservedFolder.right/shop.hector
Verified Example
Order  total: Money
  -> on Place(total)
  show total to Observer
ReservedWord a word that binds an expression (and or not is in per as where within by on when while if else) cannot name a value Syntax & Names

Cause. The word on is a word of the language, and the law uses it as the name of a value.

Repair. Name the value with another word, here on_value, defined and used the same way.

ReservedWord.wrong.hector
Refused · ReservedWord
Clerk
Ticket  seats: Count
  law seats >= on

The repaired program:

ReservedWord.right.hector
Verified Example
Clerk
Ticket  seats: Count
  on_value = 3
  law seats >= on_value
RetiredName the name of a retired field stays retired: a new member of that name would be another identity Syntax & Names

Cause. A field or a definition bears the name of a field the sort retired, or a field is retired twice. A new member of that name would be another identity than the one the earlier version had.

Repair. Give the new member another name, or delete the retired line if the field was never removed.

RetiredName.wrong.hector
Refused · RetiredName
version 3
Clerk
Product  name: Text, colour: Text
  retired colour since 3
  show name, colour to Clerk

The repaired program:

RetiredName.right.hector
Verified Example
version 3
Clerk
Product  name: Text, stock: Count
  retired colour since 3
  show name, stock to Clerk
RevertContested an admitted version is taken back only while no later version changed, or came to read, what its way back writes Syntax & Names

A version admitted after the one to take back changed, or came to read, an identity that its way back writes. No proposal is stored and the head is unchanged.

Take back the later version first, then this one. To keep part of the later change, read the head with map and propose the program you want with propose.

RoleFieldClash a role field declared differently on a sort or another role keeps its first declaration unless they share type and optionality Syntax & Names

Cause. A sort with is R declares a field whose name already belongs to R (or merges two roles with the same field name), and the declarations differ. A decision includes its actor or operation, arguments, and trigger.

Repair. Use the same field contract across the role and sort, or give the distinct field another name. The refusal points to both declarations. When the declaration of a role is the only line of that role that reads the name, the refusal writes it under a name of its own (name_Role), which keeps both.

RoleFieldClash.wrong.hector
Refused · RoleFieldClash
Clerk
role Payable  amount: Money
Order  amount: Count  is Payable
  -> on Place(amount) by Clerk
  show amount to Clerk

The repaired program:

RoleFieldClash.right.hector
Verified Example
Clerk
role Payable  amount: Money
Order is Payable
  -> on Place(amount)
  show amount to Clerk
example role_clash
  Place(amount: 12 EUR)
  see sum(Payable.amount) = 12 EUR
RoleOrder roles span independent sorts and have no shared cross-sort order: compare with sum, count, min, max, any, all or query one sort Syntax & Names

Cause. An ordered aggregate (seq, concat, top) or the asks for an order across a role R, or groups across R with per, even though roles combine independent sorts without a cross-sort order.

Repair. Aggregate across R with a permutable fold (sum, count, min, max, any, all), or query a single sort instead.

RoleOrder.wrong.hector
Refused · RoleOrder
Clerk
role Payable  amount: Money
Order is Payable
  -> on Place(amount) by Clerk
  show amount to Clerk
show seq(Payable.amount) to Clerk

The repaired program:

RoleOrder.right.hector
Verified Example
Clerk
role Payable  amount: Money
Order is Payable
  -> on Place(amount)
  show amount to Clerk
Refund is Payable
  -> on IssueRefund(amount)
  show amount to Clerk
show sum(Payable.amount) to Clerk
example role_order
  Place(amount: 10 EUR)
  IssueRefund(amount: 5 EUR)
  see sum(Payable.amount) = 15 EUR
RuleToCompiler the recipient Compiler is the four rules the compiler ships, which the plan reads back; a rule of a project shows to another recipient, so it can say what holds of a world and never change a plan Syntax & Names

Cause. A rule of a project shows to Compiler. That recipient is the four rules the compiler ships, which the plan reads back to decide what a program means; a rule of a project is its own analysis and can say what holds of a world, never change a plan.

Repair. Show the rule to another recipient: show present to Report; hector rules then prints its rows and exits 0.

Executable CLI Run
verdict 2
hector rules RuleToCompiler.wrong
SECRET_REACHES_OBSERVER a secret stays with the row it belongs to: a value computed from a secret field is secret too, and a show that reads one goes only to the party of that row (to <reference>, or as viewer where <reference> = viewer) Syntax & Names

Cause. A show reads a value computed from a secret field: through a definition, a next or a start that copies it, a reference followed, a function. The secret does not stop at the field that bears the mark; whatever is computed from it carries it, so the observer would learn it. The program is refused 2, nothing is built, and the refusal names the chain from the secret to what the show reads.

Repair. Show it only to the row it belongs to: address the show to a reference of the row (show doubled to owner), or filter it by the viewer (show doubled to Owner as viewer where owner = viewer). Or remove the item from the show. A secret sent to an effect or kept in a journal is not refused: the confidentiality line of the schema says it.

The same program, shown to the account's own owner:

SECRET_REACHES_OBSERVER.right.hector
Verified Example
Clerk
Owner  name: Text
Account  owner: Owner, balance: Money secret
  -> on Open by Clerk
  doubled = balance + balance
  show doubled to owner within 1 s
SECRET_REACHES_OBSERVER.wrong.hector
Refused
Clerk
Owner  name: Text
Account  owner: Owner, balance: Money secret
  -> on Open by Clerk
  doubled = balance + balance
  show doubled to Clerk
START_DEPENDENCY_CYCLE the first values of one sort’s start lines cannot wait for each other in a circle: make one a constant or a value the birth event gives, and derive the other from it Laws & Proofs

Cause. The start lines of one sort give each other's initial values in a loop: a value that must exist before another one is itself derived from that other. A row cannot be born in an order that satisfies both, so the planner refuses to choose one.

Repair. Break the loop: make one of the starts a constant or a value read from the event that gives birth to the row, and derive the other from it.

START_DEPENDENCY_CYCLE.wrong.hector
Refused · START_DEPENDENCY_CYCLE
Item  a: Count, b: Count
  start a = b + 1
  start b = a + 1
  -> on Make
  show a, b to Item
Executable CLI Run
verdict 2
hector check START_DEPENDENCY_CYCLE.wrong.hector

The repaired program:

START_DEPENDENCY_CYCLE.right.hector
Verified Example
Item  a: Count, b: Count
  start a = 1
  start b = a + 1
  -> on Make
  show a, b to Item
example ordered starts
  x = Make()
  see x.a = 1
  see x.b = 2
SinceFuture a retirement names a version the text has reached, so the text writes a version at least as high Syntax & Names

Cause. A retired line or a versioned start names a version the text has not reached, or the text writes no version.

Repair. Write version N at column 0, at least the version of the declaration.

SinceFuture.wrong.hector
Refused · SinceFuture
version 2
Clerk
Product  name: Text, stock: Count
  retired colour since 3
  show name, stock to Clerk

The repaired program:

SinceFuture.right.hector
Verified Example
version 3
Clerk
Product  name: Text, stock: Count
  retired colour since 3
  show name, stock to Clerk
SinceStartNeedsValue a versioned start that supplies an older row needs a value the migration can carry Syntax & Names

Cause. Rows from a version older than a field need the value declared by its versioned start. The migration computes it from the fields it carries: a literal, a carried value of the same type, or exact quantity arithmetic, read on the row, through its definitions and on the rows its references name. Each value has to fit the new field. A recursive definition, an aggregate, a field without a carried value and a value the older program did not keep require a separate migration. The journal is unchanged on refusal.

The question needs a journal. The example reads a carried quantity both at birth and when older rows first acquire the field.

SinceStartNeedsValue.right.hector
Verified Example
version 4
Parcel weight: kg
  since 3 start tare = weight + 2 kg
  -> on Register(weight)
  show weight, tare to Clerk
SourceRead the program's files must be readable UTF-8 sources, with a valid project lock Syntax & Names

Cause. A source file or the project lock cannot be read: missing, not accessible, not UTF-8, or a lock that is not valid. Nothing is read, nothing is changed, and it is refused 2.

Repair. Give an accessible UTF-8 file, or rewrite the project lock with the command that made it.

hector check raises it when given a path that does not exist:

Executable CLI Run
verdict 2
hector check SourceRead.missing.hector
Stale a change is written against the head version; a change written on an older version is replayed on the head Syntax & Names

Cause. A proposal or change was written against a revision older than the current head version of the workspace, so applying it directly would overwrite or ignore admitted changes.

Repair. Read the current head revision and replay the change on top of it with base set to the head version.

Status. Raised by the workspace and MCP proposal protocol; no standalone example of the reference raises it yet (published gap).

StatusUnreached a status is reached only from statuses that rows can reach; lines that leave from unreachable statuses never happen Syntax & Names

Cause. A status that no row ever reaches: the only lines that enter it leave from statuses no row reaches, so they never happen.

Repair. Enter the status from a status that rows really reach, or delete the status.

The corrected program:

StatusUnreached.right.hector
Verified Example
Item  status: Waiting | Finished | Ghost | Shadow
  -> Waiting on Create
  Waiting -> Finished on Close
  Waiting -> Ghost on Haunt
  Ghost -> Shadow on Haunt
StatusUnreached.wrong.hector
Refused
Item  status: Waiting | Finished | Ghost | Shadow
  -> Waiting on Create
  Waiting -> Finished on Close
  Ghost -> Shadow on Haunt
  Shadow -> Ghost on Haunt
StreamOrderNotApplied a stream clause has no host execution; send a typed batch in the required order and express required predecessors as state transitions Syntax & Names

Cause. An ordered stream clause has no host execution. Hector refuses the declaration before it can change the order in which any input runs.

Repair. Send a typed batch in the required order. Each occurrence gets its own outcome. When the business requires a predecessor regardless of how the caller submits events, express that requirement with a state transition.

StreamOrderNotApplied.wrong.hector
Refused · StreamOrderNotApplied
Parcel  weight: Count
  status: Waiting | Sent
  -> Waiting on Receive(weight)
  Waiting -> Sent on Dispatch
stream Deliveries order by weight
StreamOrderNotApplied.right.hector
Verified Example
Parcel  weight: Count
  status: Waiting | Sent
  -> Waiting on Receive(weight)
  Waiting -> Sent on Dispatch
SuppliedNumber a number the caller chooses is data; if it is chance, the program draws it with ~ Types & Units

Cause. A bounded number that the caller of an event chooses, while the program draws no number anywhere: the value is decided by the caller, not by chance.

Repair. If the number is chance, let the program draw it with a distribution on the event; otherwise keep it as the caller's choice.

The corrected program:

SuppliedNumber.right.hector
Verified Example
Game  total: Ratio, face: Ratio
  start total = 0
  next face ~ uniform(1, 6) on Roll
  next total = total + face on Roll
SuppliedNumber.wrong.hector
Refused
Game  total: Count
  start total = 0
  on Roll(face: Count 1..6)
  next total = total + face on Roll(face)
TemporalReads a temporal law says which condition must follow another on the same row. Its two conditions are read from that row alone Laws & Proofs

Cause. A temporal law names a trigger and a response on one row, in the block of its sort. A law at column 0 has no such row.

Repair. Move the law into the sort that owns its trigger and response. Both sides must be conditions over that row.

TemporalReads.wrong.hector
Refused · TemporalReads
law -> true within 1 s
TemporalReads.right.hector
Verified Example
Ticket
  status: Waiting | Closed
  -> Waiting on Open
  Waiting -> Closed on Close
  law -> Closed within 1 s

example response on the boundary
  row = Open()
  after 1 s
  Close(row)
  see row is Closed
TemporalViolation a temporal obligation is broken when the example passes its deadline without the row's response Time & Deadlines

Cause. The example reaches a time past its deadline without the stated response on the affected row.

Repair. Read the trigger, the response and the deadline against the intended story. Correct the rule or the example where it differs from the intended behaviour.

TemporalViolation.right.hector
Verified Example
Ticket
  status: Waiting | Closed
  -> Waiting on Open
  Waiting -> Closed on Close
  law -> Closed within 1 s

example response on the boundary
  row = Open()
  after 1 s
  Close(row)
  see row is Closed
TemporalViolation.wrong.hector
Refused
Ticket
  status: Waiting | Closed
  -> Waiting on Open
  Waiting -> Closed on Close
  law -> Closed within 1 s

example response on the boundary
  row = Open()
  after 2 s
  Close(row)
  see row is Closed
TotalPastTheWord a total kept by differences left its word where nobody read it; the judge continues where the image stops Types & Units

Cause. An incrementally maintained total overflowed its machine word at a step where no observer read it, so the native image stopped while the reference judge continued.

Repair. The program is not at fault; report the overflow case or bound the total's range so the incremental accumulator stays within its word.

Status. Raised during native-vs-judge agreement checks; no standalone example of the reference raises it yet (published gap).

Unbound a row born by -> A when c is identified by its header fields, and the condition must give each of them a value Syntax & Names

Cause. A birth -> when ... does not bind every identity field: the day of a new Booking would be invented, because the condition says nothing about it.

Repair. Bind the field in the condition, from a collection the program holds (day in Days.name), as the corrected program does.

Unbound.wrong.hector
Refused · Unbound
Room  name: Text
Booking  room: Room, day: Text
  -> when room is Room

The corrected program:

Unbound.right.hector
Verified Example
Room  name: Text
Booking  room: Room, day: Text
  -> when room is Room and day in Days.name
Days  name: Text
UnboundEventSubject an event parameter that refers to this sort does not select its row: without a condition binding that parameter to self, the line applies to every qualifying row Syntax & Names

Cause. Deposit receives target, a reference to an Account, but the next line of Account never says that the row it changes is that account: one Deposit adds its amount to every account.

Repair. Bind the line to the received row with when target = self, as the corrected program does. A line meant for every row keeps its form, and the warning never changes the verdict.

The corrected program:

UnboundEventSubject.right.hector
Verified Example
Teller
Account  balance: Money
  next balance = balance + amount on Deposit(target: Account, amount: Money) when target = self
  show balance to Teller
Receipt  target: Account, amount: Money
  -> on Deposit(target, amount) by Teller
UnboundEventSubject.wrong.hector
Refused
Teller
Account  balance: Money
  next balance = balance + amount on Deposit(target: Account, amount: Money)
  show balance to Teller
Receipt  target: Account, amount: Money
  -> on Deposit(target, amount) by Teller
UnitAliasOnWire a type keeps a unit of the library: an alias is read where a number carries it, never on the wire Types & Units

Cause. A type names an alias of a unit. A unit line is read where a number carries it; a type, an event, a history and a shown value speak a unit of the library.

Repair. Write the unit the alias stands for in the type, and keep the alias on the numbers.

UnitAliasOnWire.wrong.hector
Refused · UnitAliasOnWire
unit cent = 0.01 EUR
Clerk
Order  total: Money cent
  show total to Clerk

The repaired program:

UnitAliasOnWire.right.hector
Verified Example
unit cent = 0.01 EUR
Clerk
Order  total: Money EUR
  large = total > 500 cent
  show total, large to Clerk
UnitFactor unit name = factor Unit stands for a positive exact number of a unit that starts at zero, and every number written with it is such a number Types & Units

Cause. unit name = factor Unit stands for a positive exact number of a unit whose scale starts at zero, written after =. A number written with the alias is that many of the unit, exactly; in a vector, every component is a written number whose scaled value has a finite decimal writing.

Repair. Write a positive number and a unit of the library or of an alias declared above, or write the value in that unit.

UnitFactor.wrong.hector
Refused · UnitFactor
unit cent = 0 EUR
Clerk
Order  total: Money EUR
  show total to Clerk

The repaired program:

UnitFactor.right.hector
Verified Example
unit cent = 1/100 EUR
Clerk
Order  total: Money EUR
  large = total > 500 cent
  show total, large to Clerk
UnitShadow an alias takes a name no unit, quantity, word of the language or other alias already has Types & Units

Cause. An alias takes a name that already means something: a unit or a quantity of the library, a word of the language, or another alias with another value.

Repair. Give the alias a name of its own.

UnitShadow.wrong.hector
Refused · UnitShadow
unit km = 1000 EUR
Clerk
Order  total: Money EUR
  show total to Clerk

The repaired program:

UnitShadow.right.hector
Verified Example
unit grand = 1000 EUR
Clerk
Order  total: Money EUR
  large = total > 5 grand
  show total, large to Clerk
UnknownGoal a goal ranks realizations by an axis from the closed list shown in the repair, on an event, a sort or a definition Syntax & Names

Cause. The goal names no axis or scope Hector can rank by, an event chain does not follow the program's status changes, or a file goal covers no declared sort. The repair lists the available axes. Latency and speed currently use the same costs for ranking. on names an event, a sort, a definition of the block, a flow of events or a path of statuses joined by -> (qualify a status with its sort when ambiguous). on E -> (nothing after the arrow) names an event and everything it sets going, and on a, b several scopes, each holding on its own. Without on, the line applies to its sort, its file in a project folder (the whole module when the file bears the name of its folder), or the whole program at the project root. The closest scope wins; goals of one rank join. In one file the lines of a scope join those of the sort's block first, then the others, each in the order written: of two orders that both rank prices, or both rank within one family, the first joined leads, and an order that ranks prices leads one within a family wherever it stands; several files may say one scope only where which is read first changes nothing (of any two that rank prices, and of any two that rank within one family, one order starts the other or one of them orders nothing), else the line of the later file is refused.

Repair. Name one axis, for the whole program or for one event: prefer speed on Sell.

UnknownGoal.wrong.hector
Refused · UnknownGoal
Clerk
Ticket  seats: Count
  show seats to Clerk within 1 s
prefer fastest

The repaired program:

UnknownGoal.right.hector
Verified Example
Clerk
Ticket  seats: Count
  show seats to Clerk within 1 s
prefer speed
UnknownMethod a member call names a function declared on its receiver; declare that function and its rule before calling it Syntax & Names

Cause. A call names a function that its receiver does not declare.

Repair. Declare the function on the receiver's sort. The suggested edit preserves the call and its arguments and opens a question for the missing rule; it does not invent the result.

UnknownMethod.wrong.hector
Refused · UnknownMethod
Desk
Item price: Money
View item: Item
  total = item.cost(2)
  show total to Desk

The repaired program, with its rule supplied:

UnknownMethod.right.hector
Verified Example
Desk
Item price: Money
  cost(n: Count) = price * n
View item: Item
  total = item.cost(2)
  show total to Desk
UnknownRegime program regimes read declared sorts, UTC instants and acyclic regime references; conditional adaptation names a declared regime Time & Deadlines

Cause. A program regime names an unknown sort or regime, forms a dependency cycle, or has an invalid condition. Conditional adaptation belongs to the program. An otherwise clause needs a during clause for the same adaptation component.

Repair. Give each regime one declaration and name it in the adaptation clause. Read rows(Sort) or rate(Event) > count/s (also /min, /h, /d: the deliveries of the event in the last whole window), compare now with a UTC date, or refer to another regime.

UnknownRegime.wrong.hector
Refused · UnknownRegime
Parcel number: Count
  -> on Record(number)

restrict adapt within 2 s during Busy
UnknownRegime.right.hector
Verified Example
Parcel number: Count
  -> on Record(number)

Busy when rows(Parcel) >= 10
restrict adapt within 2 s during Busy
UnknownRestriction a restrict line uses only the closed list of restrictions, which the expected form of the refusal names, and each takes only the forms of its own kind Syntax & Names

Cause. The restriction fastest is not on the closed list of restrictions, and a restriction not on it is refused. The same refusal covers a byte bound that cannot hold or cannot be read: restrict size <= 0 byte (no program is delivered in no bytes), a bound that is not an upper bound or has no unit of size, a target that is no machine of the product, and a target or delivery written under a sort or with a scope (they are said to the project).

Repair. Use one restriction from the list, such as restrict device(Cpu); write a byte bound as restrict size <= 64 MB (disk none for no disk at all), a destination at column 0 as restrict target a64.

restrict studio remote observe is said to the whole program, at column 0 of a file at its root: under a sort, with on, in a file or a module of a folder, or saying anything else, it is refused with that line.

At one scope, incompatible adaptation parts also produce this refusal. Choose one capacity, and give CPU or reaction bounds only when adaptation is permitted. For example, restrict adapt reserve, cpu <= 5 %, within 2 s gives a capacity and both limits.

One scope takes one form of undo: restrict undo(Journal) beside restrict undo(Copy) on the same scope is refused, in one file or two, and the repair deletes the later line.

A freshness permission takes a positive duration in whole nanoseconds. Write it at its lexical place or use allow stale 5 s on Sort to name a sort.

UnknownRestriction.wrong.hector
Refused · UnknownRestriction
Clerk
Ticket  seats: Count
  show seats to Clerk within 1 s
restrict fastest

The repaired program:

UnknownRestriction.right.hector
Verified Example
Clerk
Ticket  seats: Count
  show seats to Clerk within 1 s
restrict device(Cpu)
restrict studio remote observe
UnknownRole declare role Name at top level before naming it in is Syntax & Names

Cause. A sort header uses is R for a name R that has no top-level role R declaration, or a role line omits a capitalized role name.

Repair. Declare role Name at top level before naming it after is.

UnknownRole.wrong.hector
Refused · UnknownRole
Clerk
Order is Payable
  show "ok" to Clerk

The repaired program:

UnknownRole.right.hector
Verified Example
Clerk
role Payable  amount: Money
Order is Payable
  -> on Place(amount)
  show amount to Clerk
example role_ok
  Place(amount: 7 EUR)
  see count(Payable) = 1
Unreachable every status of a cycle is entered by a birth or a transition, otherwise it can never be reached Laws & Proofs

Cause. The status Done is declared, but no line enters it, so nothing can ever reach it. Nothing is mis-written: a decision is missing, so the program is not established (verdict 3) and the hole asks how a row enters Done.

Repair. Add the transition that enters it, Open -> Done on Finish by Clerk, or remove the status. hector next asks it first, with a line of that form checked to read.

The same code refuses (verdict 2) an else under a line that always applies: nothing is left for it. Give the line above its condition, or delete the else.

The repaired program:

Unreachable.right.hector
Verified Example
Clerk
Order
  status: Open | Done
  -> Open on Start by Clerk
  Open -> Done on Finish by Clerk
Unreachable.wrong.hector
Refused
Clerk
Order
  status: Open | Done
  -> Open on Start by Clerk
UnreadSource every operand and indented line belongs to a form that reads it Syntax & Names

Cause. A form does not read part of the source. For example, version applies to the whole program and owns no indented lines.

The same holds inside a line: nothing follows a case or a count; a type is optional once; a range or a byte width is written only where a field or an event keeps it; a table is never optional; and a name given to an event must be a field of the row, a parameter the event receives or a name the rule reads.

Repair. Remove a line that was written in error. If it is an independent declaration, write it at the indentation of the block that reads it. The refusal identifies the unread source and the form that owns it.

UnreadSource.wrong.hector
Refused · UnreadSource
version 2
  on Order
Order
UnreadSource.right.hector
Verified Example
version 2
Order
Unshown what no observer reads is not computed: a definition is shown to someone, read by a law or a rule, or it goes Laws & Proofs

Cause. A definition is computed and nothing reads it: no show, no law, no condition, no other definition. What no one observes is not even computed; most often a show was forgotten. Nothing is mis-written, so it is not refused: the program is not established (verdict 3) until the definition is shown or goes.

Repair. Add the show Hector prints (add after line N), to the observer the block already shows to; or let a law or a rule read it; a definition no one needs goes.

The corrected program:

Unshown.right.hector
Verified Example
Clerk
Shelf  name: Text
  -> on Open by Clerk
  stock = sum(items.qty)
  show name, stock to Clerk
Item  shelf: Shelf, qty: Count
  -> on Put by Clerk
Unshown.wrong.hector
Refused
Clerk
Shelf  name: Text
  -> on Open by Clerk
  stock = sum(items.qty)
  show name to Clerk
Item  shelf: Shelf, qty: Count
  -> on Put by Clerk
VersionNotIncreasing a journal takes a new text only under a version above every other text it ran Syntax & Names

Cause. hector migrate was given a text whose version is not above that of another text the journal has run. A text with no version is refused the same way once the journal has run a numbered one. The same text may be bound again.

Repair. Write a version above every version the journal ran; the message names the least one.

The refusal needs a journal, which a page of the reference never writes: its executed example remains a published gap (verdict 3).

A program that numbers its text:

VersionNotIncreasing.right.hector
Verified Example
version 3
Clerk
Product  name: Text, stock: Count
  retired colour since 3
  show name, stock to Clerk
VersionShape version N numbers a text once, from 1, in a file at the root of the project, and retired f since N or since N start f = e stands in a sort's main block Types & Units

Cause. A version or retired line does not say its number or its field: the version is one whole number from 1, written once in a file at the root; a retirement is retired <field> since <version> in the main block of its sort.

Repair. Write the version once, and each retirement under its sort.

A versioned start has the form since N start f = e in a sort's main block.

VersionShape.wrong.hector
Refused · VersionShape
version 3
Clerk
Product  name: Text, stock: Count
  retired colour
  show name, stock to Clerk

The repaired program:

VersionShape.right.hector
Verified Example
version 3
Clerk
Product  name: Text, stock: Count
  retired colour since 3
  show name, stock to Clerk
WHATIF_ENTRY a hypothesis names exactly one change, at a position of the real history Syntax & Names

Cause. The requested zero-based entry is outside the real history, or no unique hypothesis was supplied.

Repair. Supply exactly one of without, instead, also. For without or instead, select a position in the real history, starting at zero. With instead, supply one replacement step.

hector whatif and the MCP tool of the same name raise it; here the position is past the end of the history:

Executable CLI Run
verdict 2
hector whatif ../words/commands/small.hector --history ../words/commands/small.history --without 99
WHATIF_INSTANT a hypothetical entry is one history line and keeps the real history ordered by instant Time & Deadlines

Cause. A replacement would move outside its neighbours' instants, the hypothesis contains more than one history entry, or the real history goes backwards in time.

Repair. Supply one history line and a real history whose instants never go back. A replacement must keep its instant between its neighbours; an insertion uses its own instant in that history.

The explanation laws exercise ordered generated histories. hector whatif and the MCP tool of the same name raise it; here replacing entry 2 moves it past entry 3:

Executable CLI Run
verdict 2
hector whatif ../words/commands/small.hector --history ../words/commands/small.history --instead 2 "at 25 Pay 101 by=1"

Here the real history acts at instant 5 after an act at instant 10:

Executable CLI Run
verdict 2
hector whatif ../words/commands/small.hector --history WHATIF_INSTANT.out-of-order.history --without 2
WHYNOT_ENTRY an explanation is asked of a position of the real history Syntax & Names

Cause. The requested zero-based entry is outside the real history, or is not a number.

Repair. Select a position in the history supplied to whynot, starting at zero.

hector whynot and the MCP tool of the same name raise it:

Executable CLI Run
verdict 2
hector whynot ../words/commands/small.hector --entry first
WHYNOT_HAPPENED only an event the real history refused has a reason for not having happened Syntax & Names

Cause. The selected event was not refused in the real history.

Repair. Select an event the real history refused. Use whatif to ask about a different history.

hector whynot and the MCP tool of the same name raise it; here the payment of the order was accepted:

Executable CLI Run
verdict 2
hector whynot ../words/commands/small.hector --history ../words/commands/refused.history --entry 2
WHYNOT_SUBJECT an explanation of a refusal names one refused event, by its entry or by its point Syntax & Names

Cause. The selected entry is not an event, or the event or transition point has no refused occurrence. Exactly one of entry and point is required.

Repair. Select a refused event entry, or its event or transition point from map.

hector whynot and the MCP tool of the same name raise it; here no payment was refused:

Executable CLI Run
verdict 2
hector whynot ../words/commands/small.hector --history ../words/commands/refused.history --point Pay
WHY_NEEDS_JOURNAL recorded explanations (show … why and hector why --journal) require an explicit non-volatile journal path Syntax & Names

Cause. A program requests recorded explanations with show ... why, or hector why --journal was supplied without a journal path.

Repair. Pass --journal <path> and omit --volatile when serving. To query a journal, also pass the shown field and row identity.

Executable CLI Run
verdict 2
hector why ../words/forms/why.hector --journal
WHY_NO_ROW a value is explained for a row that exists at the end of the history Syntax & Names

Cause. The requested row does not exist at the end of the selected history.

Repair. Ask about a row listed by the refusal, or supply the history that creates the requested row.

hector why raises it and lists the rows it can ask about:

Executable CLI Run
verdict 2
hector why ../words/commands/small.hector Order.ready 999 ../words/commands/small.history
WindowNeedsDuration a window given by within takes a duration, such as 2 s or 5 min Time & Deadlines

Cause. The bound after the population is a number without a time dimension.

Repair. Write the duration with its unit, as in within 5 s.

WindowNeedsDuration.wrong.hector
Refused · WindowNeedsDuration
Arrival value: Count
show count(Arrival within 5) to Reader
WindowNeedsDuration.right.hector
Verified Example
Arrival value: Count
  -> on Accept(value)
show count(Arrival within 5 s) to Reader

example retained through the boundary
  row = Accept(value: 1)
  after 5 s
  see count(Arrival within 5 s) = 1
  after 1 s
  see count(Arrival within 5 s) = 0
WindowSource an age window belongs to a population of rows, whose birth instants define the window Time & Deadlines

Cause. The clause ages the members of a population. The supplied list of numbers has no row birth instants.

Repair. Use the population of a sort with the duration. For ordinary numbers, use the aggregate without the age window.

WindowSource.wrong.hector
Refused · WindowSource
show count([1, 2] within 5 s) to Reader
WindowSource.right.hector
Verified Example
Arrival value: Count
  -> on Accept(value)
show count(Arrival within 5 s) to Reader

example retained through the boundary
  row = Accept(value: 1)
  after 5 s
  see count(Arrival within 5 s) = 1
  after 1 s
  see count(Arrival within 5 s) = 0
WorldDecidedLaw a law that only the world's answers decide cannot be kept by refusing events: write assume e else Name Laws & Proofs

Cause. A law that reads only what the world decides (an answer such as a verdict) cannot be kept by any event, so an answer can break it and no event is refused. Under the line, check prints the smallest history in which the judge refuses an event for that law, each step needed, with the reasons it gives.

Repair. Write the condition as a guard on the event that would break it, so that event is refused when the condition fails.

The corrected program:

WorldDecidedLaw.right.hector
Verified Example
Gate  status: Open | Shut
  verdict: Ok | Bad by Bank on Check
  -> Open on Make
  Open -> Shut on Close when verdict is Ok
WorldDecidedLaw.wrong.hector
Refused
Gate  status: Open | Shut
  verdict: Ok | Bad by Bank on Check
  -> Open on Make
  Open -> Shut on Close
  law verdict is Ok
WorldLawNotProved a law over the whole world is proved once by Hector; when it cannot be proved it stays checked, not established Laws & Proofs

Cause. A law over the whole world that the planner tried to maintain by differences and could not prove.

Status. No program of the reference raises it yet. The notice is built in derivation/plan/src/build.rs (about line 1056), but when the proof fails the maintained plan falls back to the general plan (derivation/plan/src/answer.rs, about line 219), which drops the notice: the check does not print the code. A planner change is needed before a program can show it.

WrongArity a built-in operator or call takes the exact number of arguments its signature requires Types & Units

Cause. A built-in call such as declassify was given the wrong number or shape of arguments.

Repair. Pass a single unnamed expression, for example declassify(<expr>).

An executable documentation example for WrongArity remains a published gap (verdict 3): the code is raised during expression resolution when declassify is called with zero, multiple, or named arguments.

question the program leaves a business decision open; answering it is one line ?name = value, and the question never comes back Syntax & Names

Cause. The program contains an open ?name question that represents an undecided business choice.

Repair. Answer the question with a single line ?name = value so the decision is recorded once and the question is closed.