decisions DECIDED

311. A contract between programs is code, not prose

Ruled 2026-10-26 (UTC), tree-wide. It sets where the contract pile of §310 (read a note against its code) goes, and it binds every other place the tree writes prose as well.

The rule

An agreement between two programs is code that both sides use, so the compiler or a test holds both sides to it. The forms that serve:

Prose may say why the contract takes the shape it has. Prose is never the only statement of a contract, and never a second copy of what the code says.

Scope

Every place the tree writes prose: notes, rustdoc, comments and design text. A wire layout, a slot number, a role word, a report word and an order two programs follow are all contracts.

A contract held only in prose is a finding

A lane that finds a contract stated only in prose, or only implicit in one side's code, records a finding. A contract crate's docs count as prose here: they do not make a contract code. The finding goes to a proposed milestone for an architect, with a sketch of the code that would state it.

A reading lane does not write contract code itself, because contract code is new public surface. It leaves the passage as it found it, so the agreement keeps its one statement until the code lands.

The evidence

The two pilots of §310 found the case this rule exists for.

How it relates to other sections

Enforcement

Review. Each reading under §310 asks of every contract passage whether code both sides use holds it, and lists each one that is not as a proposed milestone with its sketch. No check can tell a contract from orientation in prose, so this section proposes none.