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.
| Section | Obligations | Count |
|---|---|---|
| Stub obligations | PR-S1 to PR-S5 | 5 |
| Round 1 obligations | PR-1 to PR-11 | 11 |
| Round 1 review amendments | PR-12 to PR-18 | 7 |
| Round 2 obligations | PR-19 to PR-26 | 8 |
| Round 3 obligations | PR-27 to PR-29 | 3 |
| Round 4 obligations | PR-30 to PR-34 | 5 |
| Round 5 obligations | PR-35 to PR-43 | 9 |
| Round 6 obligations | PR-44 to PR-50 | 7 |
| Round 7 obligations | PR-51 to PR-54 | 4 |
| Round 8 obligations | PR-55 to PR-59 | 5 |
| Round 9 obligations | PR-60 to PR-64 | 5 |
| Round 10 obligations | PR-65 to PR-68 | 4 |
| Round 11 obligations | PR-69 to PR-72 | 4 |
| Round 12 obligations | PR-73 to PR-456 | 384 |
| Launch slice, public surfaces | PUB-1 to PUB-7e | 12 |
| Launch slice, compact corpus | CORPUS-1 to CORPUS-10 | 10 |
| Launch slice, Windows portability | WIN-1 to WIN-9 | 9 |
| Launch slice, Windows portability review amendment | WIN-10 to WIN-12 | 3 |
| Launch slice, library API | API-1 to API-10 | 10 |
| Launch slice, panic surface | PANIC-1 to PANIC-10 | 10 |
| Launch slice, library API review amendment | API-11 to API-12 | 2 |
| Launch slice, library API and panic surface second review amendment | API-13 to API-15, PANIC-11 to PANIC-13 | 6 |
| Launch slice, release plumbing | REL-1 to REL-4 | 4 |
| Launch slice, release plumbing review amendment | REL-5 to REL-10 | 6 |
| Launch slice, performance on large traces | PERF-1 to PERF-7 | 7 |
| Launch slice, performance review amendment | PERF-8 to PERF-11 | 4 |
| Launch slice, importing agent logs | IMPORT-1 to IMPORT-9 | 9 |
| Launch slice, MCP server | MCP-1 to MCP-15 | 15 |
| Launch slice, command line wiring | CLI-1 to CLI-14 | 14 |
| Launch slice, importer, MCP server and command line review amendment | IMPORT-10 to IMPORT-14, MCP-16 to MCP-18, CLI-15 to CLI-16, API-16 to API-17 | 12 |
| Launch slice, launch polish | LAUNCH-1 to LAUNCH-8 | 8 |
| Launch slice, first release | REL-11 to REL-13 | 3 |
| Launch slice, first release review amendment | REL-14 to REL-17 | 4 |
| Launch slice, published crate | CRATE-1 to CRATE-7 | 7 |
| Launch slice, published crate review amendment | CRATE-8 to CRATE-12 | 5 |
| Polish slice, package contents | POL-1 | 1 |