← Back20 November 202618 min

FoodBlock 1.9

What changed from 1.7 to 1.9, area by area. Every rule left applies one premise, that a signed word binds only its signer, or is a value a person signed in her own block.

FoodBlock is an open language for the food economy, in the public domain. Every record in it is a small block, signed by its author. Version 1.9 is the next public version after 1.7, and the tables below set each rule as it was in 1.7 beside what it is now. Every rule in 1.9 is one of two kinds. Either it applies one premise once, that a signed word binds only its signer and nothing fills anyone's silence, or it is a value a person signed in her own block.

Read the FoodBlock 1.9 whitepaper.

Only her signed list speaks for her

Who may speak for her is one ranked list she signs, and a voice changes only what is below it. A voice is anything on her signed list of who may speak for her, such as one of her keys, a key named only by its hash, or a group of named people. Her clocks are people or services she picked, who sign that they held a block at a given time. Delays run on them.

Change Before (1.7) Now (1.9)
Who makes her key A host could store her key; custodian labelled who held it. Her key is made in a thing she holds; a key a host made is the host's key.
Passkeys Whether to demand UV (the device checked its holder) was the author's policy. A passkey signature counts only with the user-verified bit set.
A SIM key Not stated. Never her first voice.
Who may speak as her Her keys, a recovery_key_hash named in the genesis, and an operator. One ranked list she signs, state.voices: her keys, keys named by hash, and named people with needed.
Changing the list Rotation by the key, the recovery key or the operator, with crossing rules and frozen keys. A voice changes only what is below it; the first voice is always her own key.
A key and its own place Not stated. A voice may put a new key in its own place and change nothing else there, so a stolen daily key cannot raise its own limit or set its own passes.
Clocks keepers: { names, needed }, names possibly a circle#role. clocks: people or services she picked, who sign "I held this then".
Delays Only recovery_reach, read on the reader's arrivals. reach delays what a key moves of hers, and wait delays any word that lets another act for her, both timed on her named clocks.
A voice with no wait or reach Not stated. No wait: it lets no one act for her by itself. No reach: it delays nothing.
Signing twice Not a rule. Her own choice: with a wait above zero, the key must say the word again once the wait has run, unless a voice above says it.
Where things that come to her land Not stated. The voice marked receives: true, else her first voice.
What a stolen key hands on Everything its blocks moved. The record shows the receiver as owner. Whose the thing is goes to a judge, who reads her not_me (her word that the key was taken and she did not sign) and whether that key's voice says passes (her word that what it signs over is the receiver's). A new key starts with no passes.
Cutting off a lost key Only the recovery key could reach back, with counted_to. A higher voice names in state.counted_to the last block of the lost key that is hers; it takes back nothing others built on.
Family helping The recovery key only. Named people may replace a key above them or close her list, only with above: true placed by her first voice.
A will A transfer conditioned on a successor's close (profiles/successor.md). Her own transfers conditioned on { closed: <her id> }; they hold nothing while she lives.
A machine An operator grant brought in its keys. It has its own list of voices; nobody stands over another's keys. A machine lock, the owner's report that it is locked, is a reading, not a grant.
A device's readings Spoke for the sensor, its owner, or the holder of the owner's operator grant. Speak for her when signed by a key her list brings in.

A tool binds her only inside her promise

A tool's block binds her only for a deal her grant names, and she never loses more than her own figures. A tool is her AI or a machine acting under her grant, and a grant is her signed word saying what it may do.

Change Before (1.7) Now (1.9)
When a tool's block binds her When its type, parties and limit fit scope, or by undo or a specific ask. Only when the block is for a deal her grant names in scope.on and keeps to her promise.
How far it may differ from her promise No such test. One value inside a range or list she wrote, at a closed list of places.
Worst case Bounded by the limit, if the counterparty could see it. Never more than her own figures, whatever happens to the tool's key.
Limits Sealed in scope.limit_commitment, or visible. Visible only; a limit the other side cannot read binds nobody.
Counting a limit Each act checked against the grant. Every block under a grant is counted on one line, refs.meter.
A budget on her own key Bounds only on grants. A voice may state each, limit and every ("£50 a go, £200 a week").
Paying A grant covering transfer could pay within its limit. A tool pays only what is to come under a deal that binds her, and not before it is due.
Choosing by a deadline No term. scope.deadline and scope.fallback: at the deadline, the lowest signed offer.
When a grant ends scope.until. scope.expires, the same word an offer uses.
STOP by text A host's witness under her grant counted as her word. Her grant states scope.ends_on: { witness, said: "STOP" }; the witness binds only the host. Consent rules are a reading, outside the rule set.
Counting signers Four spellings. One panel, { names, needed }, for clocks, voices, signals, a price fixed later and the bench.

Only the sides and their judge settle a deal

A deal is its lines, paid only by the payee's word or the thing itself, and only the judge both sides chose can lower its stage. A deal is a promise one side offers and the other answers. Its bench is the judges both sides named to settle a dispute.

Change Before (1.7) Now (1.9)
What a deal is A top-level quantity and price, beside optional lines. Its lines: each line has an id, a quantity and a price; an answer names { id, quantity } per line, and money is counted per line.
A promise with no other side Accepted when made. Her plan: it binds no one and has no stage, and her own blocks may name it in refs.for.
Money { minor, currency }, with codes, labels and issuer units with decimals. An amount, { value, unit }, like goods; no currency list.
Ranges band let a price or quantity be accepted inside a range. A figure binds a range's owner only by her own side's word; two ranges meet where they overlap.
Rounding Decimals could be divided. Prices multiply and never divide; the seller may sign a step, the least amount she takes, and the total rounds up to whole steps.
Cash or credit No term. terms.waits_on: price (the goods wait for payment, which is cash) or goods (payment waits until she accepts the delivery).
What pays a price Money transfers from the buyer's side, and the payee's latest covers. Only the payee's word, or the thing the price names reaching her; one payment counts once.
Counting what is left Each fold counted parts in its own way. One rule for every stated amount: goods, pots, offers, limits.
Asking for more than is left No one rule. The word takes nothing and is never cut down (1 kg sack, two 0.6 kg sales: the second takes nothing).
A line that is both a loan and a thing Read as a job. Refused when written.
One thing signed to two buyers Shown as a conflict in ownership. Where both said yes and both cannot be met, neither is shown as owner; the seller stays bound to both.
Order between words Some answers named the lowest hash. Where the record does not show which came first, neither came first.
A missing block Not stated. The answer is not_shown, with lacks; never "nobody".
Freeing a held thing No holds. Only the one it would go to can give it up before it lands.
A deposit forfeit was kept whoever stopped. Lost only on the payer's own stop, inside one deal.
A deal stopped short No stated way back. The rest comes back by the seller's "done", terms.stoppable, a passed delivery date, or a judge both named.
A promise not to do something terms.refrain, with a breached stage. An ordinary promise, with a stake on ruled by a judge both named.
A judge named after the deal A referee grant, which one side could stop. A new term both sides signed; neither side alone ends it.
Lowering a deal's stage A late decline and other special cases could. Only the judge both sides chose, and she moves no thing.
Who sees a ruling terms.rulings, where silence meant private, and two cases public whatever the offer said. The ruling's own audience; whoever holds it may show it unless she promised not to.
Fraud inside a deal The victim's judge. The deal's bench. Force, fraud that harms someone outside the deal, and a word signed under threat go to the victim's judge.
Putting right an attack Through the attacker's own signed payment after a ruling. The attacker's consent is not asked; title moves only by the previous owner's signed word.

Owners hold parts and act by rows

Owners hold parts, and some of them act for the circle only by rows the owners set, or all together. A circle is people who own things together, such as a business, a household or a co-op. It never signs. A row is the owners' standing grant that lets some of them act for the circle.

Change Before (1.7) Now (1.9)
Owners Members by member grants; no parts. state.pack states parts; the founder owns them first.
Joining and leaving A member grant, and a stop of it. A transfer of parts, accepted by the receiver.
Who may act Roles with powers sign, admit, remove. Rows, written { parts, scope } (holders of that many parts) or { to, needed, scope } (that many of the people named).
Without a row Nothing. Every owner signing together may act.
People who own no part Acted by holding a role. Act only under a grant as the circle, no wider than its row.
One member, one vote Members counted; share_vote for shares. A row that counts the holders of a named grant.
Removal A state.removal threshold. Ending a grant, or a transfer of parts.
Being both sides Not stated. A move that gives to an owner holds only by a row met without her own signature counting, or by every owner together.
A row's money cap No rows. Reads a sale as its deal's total ("up to £300 a deal" covers a £3 loaf).
A row that is silent No rows. Silence on any field allows nothing; "any" must be stated.
A circle owning parts of a circle A circle could not be a member. Allowed; its own rows speak for it.

A sealed block shows strangers nothing

One key writes public or sealed blocks, never both, and a stranger receives nothing of a sealed one. A sealed block is one encrypted to the people it is for.

Change Before (1.7) Now (1.9)
Public and sealed keys One key could write both. One key writes public or sealed blocks, never both.
A stranger and a sealed block Received its header. Receives nothing of it.
Leaving someone out state.withheld in the header. Gone; no block says who else saw it.
Showing a deal terms.show listed who may show. Either side may show; silence is kept by a promise not to show.
Keeping apart A key per counterparty, linked by same_as. Four ways: one sealing key, a key per counterparty, an identity per counterparty, a key for one deal.
Padding No rule. Pad to 512, 1,024, 2,048 or 4,096 bytes, then each 4,096.
A wrapped copy No such copy. A copy sealed again to a mailbox key; the host does not learn who wrote it.
Deniability Not stated. Stated as not given: a signed block proves who said it to whoever holds it.
Sealing and quantum computers X25519 only. An encryption key names its method; xwing: keys (X25519 with ML-KEM-768) seal against a later quantum computer. An unknown key is skipped and the rest of her grant stands.

Anyone can check what she was shown

The read-back is the text a person is shown before she says yes, and anyone with the same blocks gets the same digest.

Change Before (1.7) Now (1.9)
Who writes it The host, as free text; a witness kept its digest. A published reading, put into words by a published renderer, each named by hash.
Checking it Not possible. Anyone with the same blocks gets the same digest, or names the block she lacks.
What it may say Anything. Twenty lines, each copying one answer field, each shown only where it changes what she would do.
Names Not stated. The name each person signed, plus a short code; no name matching.
Length by SMS Not stated. Past 160 characters it runs whole over several texts.

Bytes compared exactly, rules named by hash

Every block but a genesis is signed once, over its header, and a rule set is named by the hash of its files.

Change Before (1.7) Now (1.9)
Text Unicode NFC required. Well-formed UTF-8, compared byte for byte; no normal form checked.
Signing Over the block's bytes; a sealed block's header signed apart. Every block but a genesis is signed once, over its header.
valid Also judged fields, and waited on prev and grants. Reads only who said these bytes; read judges values.
An unknown field Refused (undeclared_field), and later blocks waited. Valid, kept, marked not read; only answers that need it say so.
Naming the rules "Version 1.7" in core.md; 1.6 was year zero. A rule set is named by the hash of its files, and a block names its own in state.rule_set. A block that names none is read by H₀, the first set. A reader that does not run a block's rule set holds it as unknown_rules and answers less.
A release Not defined. A signed software_release naming bytes by hash.
What a builder implements 102 door operations. 38 protocol operations: 7 for bytes and signatures, 31 for the four questions (who signed, whom it speaks for, what it binds, who owns what it moved).

Removed

Each 1.7 part below is gone, with the reason and what to use instead.

Removed Why Use instead
terms.refrain, breached A special kind of term. A promise not to do, with a stake.
Roles, may_act_as, circle#role, share_vote A title carried power nobody signed for. Rows and parts.
The operator grant It put someone over a machine's keys. The owner's own key, or a tool under her grant.
Refusing a block a reader cannot read It stalled every later block of its signer. Kept as not read.
notice No rule read it. A stake on a stop.
personal Her own yes already guards it. Accepting or declining the work.
pass, answerable, owing A second way to hand on a duty. A grant, her release, or a sub-deal.
terms.show It read as "secret unless listed". A promise not to show.
undo It let a block bind her by a path she had not signed. Her own later yes.
refs.act, act_check A name for a deal is a reading. What the blocks say.
Act templates A second shape beside the promise. An open offer is its own template.
The recovery key One fixed shape for recovery. Her list of voices.
The successor profile It handed on her things without her word. Her own wills.
scope.limit_commitment A hidden limit binds nobody. A visible scope.limit.
scope.condition A second way to limit a grant. Her promise in scope.on.
state.withheld An unchecked claim shown to every carrier. Nothing; no block claims who else saw it.
The referee grant A losing side could stop it. A term both sides signed.
terms.rulings Its silence had a meaning. The ruling's own audience.
read's runs "The core alone" meant something different to each reader. H₀, the first rule set.
The time-zone pin Core forbids pinning a release, and it was already out of date. The calendar as a reading.
The TLA+ model and the simulator Both modelled older versions and read no spec. Rebuilt in 2.0, tied to the engines.

Renamed

These kept their job under a new name.

Old New
keepers clocks
scope.acts scope.types
owed, owed, owed_on, owed_back to come, to_come, to_come_on, to_come_back
acts, overlap_acts (in use_shown) uses, overlap_uses
scope.until scope.expires
referee, referee_ties judge, judge_ties
not_on_line not_on_chain (a key's blocks in order are its chain; a line is a deal line)
held (the blocks a reader has) blocks
traceability_plan traceability_document

Two engines built apart show no new disagreement

A Rust core and a JavaScript oracle were built apart and compared, and the runs after the last changes found 0 new disagreements.

Check Result
Two engines built apart, a Rust core and a JavaScript oracle Built stage by stage and compared; where they split, the text was fixed first.
Random-world test, before building Found 53 disagreements the hand audit missed; each became a fixed world.
Fixed test cases 3,007 protocol cases, and 2,224 frozen audit answers that every later engine must give. Rebuilding them changes nothing.
Fuzz The long run: 85 worlds, 39,736 questions, 23,896 property checks, 0 new disagreements. Runs after the last changes found 0 new. 30 known differences between the engines remain listed, each with a reason.
SDKs Rust, JavaScript (through WebAssembly), Python, Go, Swift and Kotlin pass.
Necessity table 126 parts: 117 covered (deleting one fails a test), 9 used (a valid test block carries it, but nothing fails without it), 0 untested, 0 dead. All 27 numbered invariants are stated in the spec and carried by a test.

Writing the spec's prose last found 14 places where both engines disagreed with the text in the same way, such as both still reading the sensor operator grant, undo, checks left from roles and a UTF-16 sort. All 14 are fixed.

1.9 stays open until others pass its tests

The rules FoodX's people maintain are fixed once nodes FoodX does not run, and an implementation FoodX did not write, pass its conformance vectors. From then on a signed block keeps the meaning it had when signed, and later versions may only add. Until then 1.9 stays open.

Known limits

  • A double sale accepted by the seller's own puppet, a second identity she controls, holds the honest buyer's thing until a clock, the puppet or a judge ends it.
  • Two buyers who never compare records may each believe they own the same thing.
  • A thief who holds her only key, or her top voice, can act as her until she is warned.
  • A seller at delivery cannot see a double sale she was not shown.
  • An offer with no end and no clock cannot be withdrawn from someone who has not seen the withdrawal.
  • Whoever runs her AI sees what it reads.
  • Sealing gives no forward secrecy, so a leaked encryption key opens every envelope sealed to it.
  • A carrier sees who deals with whom.
  • With a card that has no keypad, she types her PIN into someone else's reader.
  • Free keys let one person look like many.
  • Money written as a plain unit does not say whether it is a claim on someone.
  • Nothing about a basic phone has been tested on a real one.
  • The random-world test covers only the worlds it can generate.

Only what she signed binds her

In 1.9 a person is bound only by what she signed, and nothing fills her silence. Her own list says who speaks for her, her grant says how far a tool may go, and a deal is settled by its sides and the judge they both chose.

For a baker, a grower or a shop, this means her AI can trade for her and the worst she can lose is the figures she wrote. The limits above are where that still falls short, and the sharpest is a thief holding her only key before she is warned.

The spec, code and tests are public domain at github.com/FoodXDevelopment/FoodBlock.