Evolve the WAD and write the specs
§ 1Purpose
Turn a reviewed architecture change into implementation specs sized for the agent that will build it — the WAD-first change workflow.
§ 2Prerequisites
- A recorded reviewed baseline revision
§ 3Flowchart
§ 4Steps
§ 4.11
§ 4.2Edit the target state
Change the *data* to describe the architecture as it should be — new containers, changed relations, moved deploy targets. Keep wcl check green; render to see the future book.
§ 4.32
§ 4.4Read the delta
$ wcl wad spec --from <reviewed-rev> wad.wcl
wrote data/specs/spec_from_ab12cd34.wcl
Gather what actually changed between the reviewed baseline and the new state: the git diff of the data files, wcl diff <rev>:wad.wcl wad.wcl over the evaluated views, and/or a wcl wad spec skeleton — which pins the baseline sha and the exact entity/field change list into a schema-valid spec file (spec-entity churn filtered; --include-specs keeps it, --format json prints the raw list). Add the printed import line to the specs hub.
§ 4.53
§ 4.6Decompose into specs
An LLM reads the delta (and the surrounding WAD for context) and writes the implementation specs: each one a self-contained work package — scope, ordered instructions, acceptance criteria — sized for the model that will implement it. A strong model may need one broad spec (or none — it can implement from the WAD + diff directly); smaller coding models need the change cut into narrow, explicit pieces. A human shapes the cut — decomposition is hard to get right. The mechanical change list is fact: never edit it by hand, re-derive it if the data moves again.
§ 4.74
§ 4.8Review
Review the specs (and the changed book) with the comment loop. Not approved → re-cut the specs or keep editing the data, or mark a spec :abandoned and revert (keep an adr if the abandonment itself is a decision worth recording).
§ 4.95
§ 4.10Hand to the implementer
Set status :in_progress and hand the implementing agent its spec — the raw data/specs/<id>.wcl is typed and legible, and the WAD itself is the surrounding context. The agent implements against the instructions and acceptance criteria.
§ 4.116
§ 4.12Close the loop
When the work lands and the user confirms, set :complete (with updated), re-run extractors so generated data reflects the new reality, and record the merged revision as the next baseline.
Verification
Each spec is schema-valid, carries authored instructions an implementer can follow without the full context, and its status tracks the work truthfully.