Mini

Laws and objects

A law is a predicate the kernel checks on every change to a resource, whoever proposed it. Objects, activities and seats build on that rule. All of what follows is compiled and proved in Lean and has run through signed Host operations on scratch worlds; none of it is deployed.

What law, claim and requires mean

Which code wrote

Every law state begins with the slot objective/artifact. For a command with an Objective claim it holds the claimed method's identity; for any other command it holds -1. A clause objectivePin accepts only steps whose slot names a pinned artifact, so an ordinary command is refused whatever its writes. Every object's judged law leads with that clause for its pinned package, derived from the record and never stored, so no creator law omits it.

Objects

A cell is an object to the kernel only if it has a record: its package pin, its declared state type, the package's laws, the creator's law, an upgrade policy and a payer. A birth on a cell without a record is refused, and so is a birth of any package but the pinned one. There is no direct write of declared state: every write comes from a birth, a delivery, a call frame or a delivered message under the pinned package. Each must type at the declared state type and is judged by the pin clause, the package's laws, the creator's law and, at the end of the turn, every domain the object belongs to. A delivery's write is judged with the activity's principal as subject, never the deliverer. A refusal names the failing clause and refuses the whole turn.

Activities

An activity is a persisted checkpoint plus one await. Its reply slot has one decider and one deadline, decided once. A resume delivers the settled outcome together with the object's state and version read in the same turn, so no write is computed from a stale read. An attempt that exhausts its declared envelope is a paid turn; an ended activity's record and settled slots are retired, and the id never returns; anyone may abandon an await after its deadline plus a grace, which pays the timeout fee and returns the rest of the purse. One public tariff prices every declared envelope, for native admission and for activities. Each turn is a signed native command (Host operations 210 to 214, mini activity).

Seats

A seat holds one side of a contract in its own Book account. Its law is offer safety: every want is met, or every give is refunded. The law is judged on every reallocation, and the exit path never reads the contract's clause, so no clause can forbid an exit. Each seat turn is a signed native command (Host operations 215 to 219, mini seat).

Where each stands

The journey rows run on scratch worlds; their results are kept outside this repository.

PartEvidenceLandedJourney row
Native Objective admission (signed invocation, receipt, refusals)integrated on scratch worlds6df4602f, 73223088, a2454432objective
Law slot and the pin clausecompiled, proved2a7c372bnone
Object record, law on every state writeintegrated on scratch worldseac4b18c, de9c84f7, 7b97da60objectrecord
Activities: records, slots, resume with view, paid exhaustion, abandonmentintegrated on scratch worlds8194e09d, 67362781, d1ce7b0c, 34d803f8activity
One public tariffcompiled, proved; in the Hostbf28dd19objective (prices the claim)
Seats and invitationsintegrated on scratch worlds6347dcb4, 2c1b5733, 6336af2bseats
The bend verb (author and run a program as an activity)built; carried by the next build063ba6cd, 65277f41jbend

Not built: a storage charge for packages, object records and state cells; activities that call, send or await a message; objects holding capabilities; a multi-turn migration.

Objects, activities and seats in the language guide, the kernel activity and seats: each theorem and its line.