Reading the contract

CONTRACT.md is the spec of westering. Every obligation in it is stated so that a test can fail on it. This page says how the file is ordered and where each part of it stands.

How the record grows

Each slice of work writes its obligations in a new section at the end of the contract before any code is written, and the code and tests of that slice follow. From the launch polish slice on, no slice changes text an earlier slice merged. Before it, a few early rounds and the launch pass edited earlier text in place, and the git history keeps those edits. The paragraph near the top of the contract that points here is the one text the launch polish slice placed outside its own section. When a later slice changes what an earlier obligation says, it writes an amendment that names the earlier text, and the earlier text stays where it stands, so the file shows both the first reading and every correction to it. A section opens with a preamble that records what was probed or measured before its obligations were written, and each obligation follows as a numbered paragraph.

The stub obligations and the round sections come from the first build of the tool. Rounds 1 to 4 built it in Python, Round 5 ported it to Rust under PR-36 to PR-43, and the later rounds built on the port. The Round 12 section holds its own obligations, PR-73 to PR-76, and also those of every round after it, PR-77 onward. The launch sections come from the work that readied the first release and published the crate. The polish sections come from the work on the released crate.

Finding an obligation

Each obligation starts its paragraph with its identifier, such as PR-37. or PERF-3., so a search for that text finds it.

Sections

The table lists every section of the contract in order, with the identifiers of the obligations it holds and their count. A test derives this table from the contract and fails when the two differ, so the table stays current as sections are added.

SectionObligationsCount
Stub obligationsPR-S1 to PR-S55
Round 1 obligationsPR-1 to PR-1111
Round 1 review amendmentsPR-12 to PR-187
Round 2 obligationsPR-19 to PR-268
Round 3 obligationsPR-27 to PR-293
Round 4 obligationsPR-30 to PR-345
Round 5 obligationsPR-35 to PR-439
Round 6 obligationsPR-44 to PR-507
Round 7 obligationsPR-51 to PR-544
Round 8 obligationsPR-55 to PR-595
Round 9 obligationsPR-60 to PR-645
Round 10 obligationsPR-65 to PR-684
Round 11 obligationsPR-69 to PR-724
Round 12 obligationsPR-73 to PR-456384
Launch slice, public surfacesPUB-1 to PUB-7e12
Launch slice, compact corpusCORPUS-1 to CORPUS-1010
Launch slice, Windows portabilityWIN-1 to WIN-99
Launch slice, Windows portability review amendmentWIN-10 to WIN-123
Launch slice, library APIAPI-1 to API-1010
Launch slice, panic surfacePANIC-1 to PANIC-1010
Launch slice, library API review amendmentAPI-11 to API-122
Launch slice, library API and panic surface second review amendmentAPI-13 to API-15, PANIC-11 to PANIC-136
Launch slice, release plumbingREL-1 to REL-44
Launch slice, release plumbing review amendmentREL-5 to REL-106
Launch slice, performance on large tracesPERF-1 to PERF-77
Launch slice, performance review amendmentPERF-8 to PERF-114
Launch slice, importing agent logsIMPORT-1 to IMPORT-99
Launch slice, MCP serverMCP-1 to MCP-1515
Launch slice, command line wiringCLI-1 to CLI-1414
Launch slice, importer, MCP server and command line review amendmentIMPORT-10 to IMPORT-14, MCP-16 to MCP-18, CLI-15 to CLI-16, API-16 to API-1712
Launch slice, launch polishLAUNCH-1 to LAUNCH-88
Launch slice, first releaseREL-11 to REL-133
Launch slice, first release review amendmentREL-14 to REL-174
Launch slice, published crateCRATE-1 to CRATE-77
Launch slice, published crate review amendmentCRATE-8 to CRATE-125
Polish slice, package contentsPOL-11