← Back31 October 202614 min

FoodBlock 1.7

Deals that fit how food really trades, and nothing filled in for anyone.

A large revision of 1.6. It came from testing the protocol against how people really organise food work, from fuzzing two independent engines against each other (feeding both the same random inputs and comparing their answers), and from two full reviews, one against its founding ideas and one against attackers.

A signed word binds only its signer

Most of 1.7 applies one rule more strictly than 1.6 did. A signed word binds only its signer, and nothing fills in what anyone left out, so silence is never agreement. The protocol therefore holds no defaults, records facts rather than verdicts, puts no duty on anyone who didn't sign it, and gives no company, state or law a special place.

The same rule sets what a signed word can reach. It binds only its signer, never her body. What she can hand on is what she acquired or was handed. A body was never acquired, so no word hands it on.

A broken deal has three remedies

The rule also decides what happens when a deal breaks. A broken deal has three remedies, and 1.7 now carries all three as facts. What is still the other side's comes back, what both signed for this case moves, and anyone may refuse to deal again. Force or fraud is an attack, not a broken deal, and it goes to the victim's judge.

Richer deals, still one shape

Deals are richer in 1.7, they still have one shape, and every change below applies the same rule somewhere new.

Nothing fills anyone's silence

The rule shows most directly in what the protocol now leaves unsaid.

  • The protocol holds no defaults. A block must say who can see it, when it was written and what kind of thing its author is. A grant gives only what it writes down. A repeat names its time zone.
  • Facts, never verdicts. The protocol reports who did what and when. "Kept" or "broken" is each reader's call. There are no scores about people, and no probabilities.
  • What a node does is its own published promise, never the protocol's rule. That covers whom it admits, how much it serves and what it forgets.
  • Force can be named. A signer can add "I signed that under force", "that wasn't me" or "I couldn't understand it" beside any block she signed. It's shown forever, nothing is erased, and a judge the deal named can rule it doesn't count.

No one governs it

The protocol itself gives no one a special place either.

  • Public domain (CC0), replacing MIT. Anyone's fork is equal.
  • The repository is FoodX's copy. There will never be a steward.
  • The words lock once two nodes and one implementation by other people pass the tests. Anyone can check whether that has happened.
  • No special place for any company, state, law or standards body. A regulator's recall is an ordinary grant. A currency code is one issuer's label.

Only her own keys speak for her

Since only a signed word binds, 1.7 tightens what a key speaks for and what it can undo.

  • A recovery key is named in her first block or never.
  • Her first block may be private.
  • Rotating her own key only closes the future. She can't un-sign yesterday's sale.
  • Two-key links. "This phone key and that laptop key are both mine" counts as one hand only when both keys sign it. One signature is only that key's word.
  • One rule decides who may add her keys, whatever she calls herself. It is she herself, her recovery key, or someone she signed a grant to.
  • A stopped operator can never add a key again. A key grant the decline did not see counts for nothing.
  • A fork, where one key signs two different things at the same point, never frees the signer from what she owes. It only voids what she claims.

A promise can name its conditions

A promise is the basic signed word, and in 1.7 it can say much more.

  • Promises not to do something, such as "no pesticide until March" or "sell only to me".
  • Conditions the protocol can check, such as "after that is paid", "after this deed", a sensor reading or a signal from named people.
  • A new condition, accepted, for "I buy in Leeds only if York says yes." A trader can sign both halves at once and never get stuck holding goods nobody wants.
  • Conditions that something didn't happen by a time, such as "if she hasn't arrived by 9am, the £200 is yours." The time comes from a clock both sides chose, so nobody can backdate.
  • A fair clock for "in time". An offer can name a clock both sides trust, so an acceptance that clock received in time binds even if the offerer stays unreachable.
  • Pay on a code, such as "if anyone shows the code, my £5 becomes the rider's." Any computer checks it alike, with no judge or clock.
  • A transfer can carry a condition. Title moves when the condition holds, with no second act. That covers goods kept until paid, an escrow and a pawn. The one it would benefit can let it go by her own word.
  • A will is a transfer conditioned on the successor's close. It is one worked example, with no new primitive.
  • A note can say it pays on demand, on notice or on a date, and how long after she asks it pays.
  • A message can carry a receipt, and a demand counts only once it reached her.
  • A signed release says "we are settled, nothing more is owed between us, except these debts."

Prices fit how food trades

Prices and payments now fit how food really trades.

  • Open offers anyone can answer. Haggling with them works over any number of counter-offers. Whoever accepts the last counter makes a deal, and it counts against the offer's stock, so nobody oversells by accident.
  • A price in any kind, such as "6 sacks of flour" or "40 eggs", as well as money. Goods paid toward it count in their own unit, and nothing is converted. Money counts toward a goods price, or goods toward a money price, only where the payee signed that the payment covers it.
  • Limits in any unit, such as kilos, covers, hours or money, and a cap on any single act.
  • Catch weight, such as "10 kg of cod, give or take 5%".
  • A price fixed later. The figure comes from named readers on a named clock, or as a fraction of a reader's figure, within a minimum and maximum the deal states. A reader who signs two figures counts for none.
  • Sealed bids count only when they state the same deadline, clock and currency. There is no default clock.
  • Pay-by dates.
  • Real calendars, time zones and repeats. Each week's payment names its own week.
  • A visible limit binds. When a public grant shows a limit, an act past it falls outside the grant.
  • The side that charges cannot start a charge alone, and a new pay-by date counts only when both sides signed it.
  • Money paid for a deal that never came is still the payer's, unless the deal said it's kept. A promise nobody paid for is just a broken word, shown on the record.
  • The person owed can sell or give the claim, and the debtor then pays the new holder, unless the deal said it can't be passed on.
  • A standard promise of no side payments. Anyone acting for her, such as a buyer, an agent or an AI's operator, can sign "I take nothing from anyone else about what I do for you", with money behind it.
  • Trade rulebooks. A deal can name a shared rulebook and glossary by fingerprint, with a cover price from three quotes, a judge who reads only papers on a deadline, and a window to fix a bad lot before anyone has broken her word.
  • More shared forms, with no new rule. They cover the issuers she relies on, a market-price reading, a holder's record of a loss, who pays any confirmer, and a place's bound drawn as a walk of named marks.

People can stand behind each other

One person can now stand behind another's word, and many can pledge or save together.

  • Vouching, such as "I stand behind Jide up to £100 until June", with the record showing how much is left, and Jide's own "if you pay for me, I owe you back". An operator can stand behind her own machine for any stranger it harms, and a broker behind the goats she sells.
  • A vouch has a written-out cap. A voucher can write "all I hold", shown as "no limit". Co-vouchers can sign how they share what one of them pays. Nothing is equal or unlimited by default.
  • A cap can be a count of things as well as money, such as "up to 2 heifers", for a vouch or a pool.
  • A vouch reaches whoever holds anything made from the lot it stands behind.
  • Group pledges, as a published schema, such as "I pay my share if pledges reach KSh 12,000." The schema counts money pledged, not keys.
  • Savings circles that anyone can check. Turns are drawn from commitments and reveals, and a late reveal goes last by the member's own word. Rules change only within bounds a member signed. A pot can be locked.
  • A share of the members is a count, such as "two thirds of us" or "all of us", read at the block's own moment.

Groups run by their members' rules

A group runs by rules its members state, and what it does inside never undoes what outsiders built on.

  • Each group states its own removal rule when it's founded. Every removal-like act needs that many holders of the power to remove.
  • A block signed "as the group" is the signer's own word, unless the group asks for more signatures.
  • Closing an open invitation stops new joins. It doesn't throw anyone out.
  • What someone outside the group built on stands, whatever happens inside it later.
  • Refusing together, such as "none of us deals with X until she settles". It binds once enough members have signed, and lifts the moment she pays.
  • Mutual pools. Members pay in, and a member is paid when the confirmer they all named says the event happened, never past what the pool holds.

Only a named judge rules

When a deal or an attack needs a ruling, the ruling comes from a judge someone named.

  • Referees the deal names in advance. When more than one is named, the deal says how many must agree, or nothing rules.
  • A judge's remark is not a ruling. Only her confirms or defeats moves what counts, and "no term on this" rules nothing.
  • Harm with no deal behind it. The person harmed can name a judge, whose ruling is shown as a fact. The accused can answer with her own judge. Nobody gets a veto by refusing to choose one.
  • A circle can be the judge of a claim of harm, ruling through the members who hold the power to sign for it.

Leases and long use have records

A right in part of a thing, or a long use of a place, now has its own record.

  • Leases as shares. "Bench 3, Tuesdays, until June" is a thing the tenant owns, and selling the kitchen doesn't take it away. A share never reaches a kind, a copy, a replanted seed or a person.
  • First use of a place or of a use of it, such as a water draw since 2014. It is a dated record of acts with its bound, shown with its seasons, its overlaps with a neighbour's, and a clock that is not the author's own. It is evidence a referee reads, never title. A resting field stays its user's.

A node trusts nothing it is sent

Each of these rules holds only if a node can't be tricked or stalled by blocks built to break it.

  • Each signature has one valid form. Ed25519 and P-256, two common signature schemes, are both checked strictly. A P-256 signature must be in its low-S form, the smaller of two encodings that would otherwise both pass. Nonces, the one-time numbers inside a signature, are derived from the key and message (RFC 6979).
  • A block with no author can't take another block's identity.
  • A block that fails the byte checks is refused at once, out loud, never dropped silently.
  • A long chain of permissions is checked once per block, so a few crafted blocks can't stall a node. One case went from 36 s to 0.02 s.
  • Hard limits on size, depth and digits. Expensive cases were measured and cut, for example a 400-member group from 35 s to 0.5 s, and a forked push from 20 s to 0.3 s.
  • The reference node trusts nothing it's sent, keeps waiting blocks only from their own author, and refuses to start until its owner states every choice.
  • Private keys are never printed, and are wiped from memory after use.
  • A pinned toolchain, a reproducible WebAssembly core, locked builds and no install scripts.

Each rule lives in one place

Each rule now lives in one place, in the spec and in the code.

  • Each rule is stated once, under a named primitive. A text pass cut the spec from about 41,500 words to about 30,200. The later additions brought it to about 50,400, and the optional profiles to about 14,800. Most of the growth is worked examples.
  • One Rust core decides every rule. All five SDKs (JavaScript, Python, Go, Swift, Kotlin) wrap it with code generated from one list of operations.

Breaking changes from 1.6

Applying the rule strictly meant removing some fields, requiring others and renaming a few.

These fields are removed.

  • state.confidence, state.orderer and state.reason
  • the recovery pair on a key grant
  • version on messages
  • any suite named beside a block, since the suite comes from the signing key

These are now required, because leaving them out would otherwise widen something.

  • audience, at and an actor's kind when writing
  • a repeat's zone
  • a grant's parties and acts, where unstated means none
  • a node's admission, cap and pair choices

Five things are renamed, so that each word keeps one meaning.

  • The bearer slip is a "note", never a "voucher". A voucher is the person who vouches.
  • A grant's scope.per is scope.every.
  • A refrain past its date is elapsed, not done.
  • The deposits profile and its admission field deposit are now earnest. "Deposit" keeps one meaning, custody.
  • A right to be paid is owed, and the stage field claims is now owed. "Claim" keeps one meaning, a signed assertion not yet settled.

Other changes.

  • An ask with no expiry, and a membership or key grant with an end date, are no longer refused.
  • The owner of a hen is the first owner of its eggs.
  • A recipe or any kind has no owner, because an idea is not property.
  • An owner who lets a thing go with no receiver ends her title, and whoever next takes it is its first owner.
  • Each pay-in is kept or held, in a pool's own terms.
  • A lead may speak for refusal signals by a grant.
  • "All current holders" can be a count.
  • One payment can pay several occurrences.
  • A place use can name a layer, and a dispute of a first use shows its standing.
  • A claim of harm shows whether a signed order is among the evidence and whether the accused was told.
  • Base schema ids were published again (kept_promises and kept_and_broken are gone), and the CBOR key table was reordered. CBOR is the compact binary encoding of a block.
  • 1.6 blocks that carry none of the removed fields are 1.7 blocks. Older data enters once, through fb convert, which fills in nothing.

Two engines agreed on every case

Every rule was checked by two engines that must agree, by random cases and by people reading it.

  • 2,927 shared test vectors, passed exactly by the Rust core and by an independent oracle, a second checker written from the spec text alone.
  • Fuzzing on the final build ran 296,087 random cases at the door over 400 random worlds, and 90,007 fold queries over 402 worlds, ownership included. There were 0 disagreements and 0 answers that depend on order.
  • In the necessity table, every listed thing is used and tested, and none is dead.
  • Two release reviews, with 20 readers on the premise and 20 on security. Their 62 findings are fixed or decided.
  • Every SDK's own tests pass, along with the suites for the reference node, the CLI and the MCP door (the server through which an AI assistant reads and writes FoodBlock, over the Model Context Protocol). Kotlin and the TLA+ model, a formal model of the protocol that a tool checks, pass on the final build.

Richer deals bind only their signers

FoodBlock 1.7 lets a signed word say much more of what food trade needs, and it still binds only the person who signed it. Conditions, prices in goods, vouches, pools, leases and judges all fit the one shape of a deal, and the protocol fills in nothing that anyone left out.

For people in food, this means a deal can be written as they really make it, a lease on a bench, a catch-weight sale of cod or a pledge among neighbours, without the protocol adding a term they never agreed to. Whether a deal was kept stays each reader's call, read from the signed facts.

Install

Every package is version 1.7.0. Until the 1.7 packages are published, install from a clone by following DISTRIBUTION.md.

Known limits

spec/THREAT-MODEL.md says plainly who FoodBlock defends against and what it doesn't promise. That includes what a thief with a stolen key can do before the recovery key acts. It also includes the fact that a flood from free keys is bounded only by what each node chooses to charge or admit, including a total for all strangers that a node can publish.

The MCP door's suite has 4 failing tests that come from FoodX's own code, which still writes a 1.6-shaped first block. FoodBlock itself passes.

The full history of every decision is in CHANGELOG.md, and the spec, code and tests are at github.com/FoodXDevelopment/FoodBlock.