# Wave selection guide ## Implicit contention Hold two issues out of the same wave when they would change the same thing in incompatible ways. Look for: - **Overlapping files or modules.** Compare each candidate's likely footprint, from its issue body and acceptance criteria, with running branch and pull-request footprints and with the other candidates. Two edits to one module's public surface contend; two edits to unrelated functions in one large file usually do not. - **Competing schema migration or interface versions.** Two tasks that each add a SQLite schema migration, or each bump the same API's minor version, must run in sequence; the second rebases onto the first. - **An architectural decision still in flight.** When a running task or open specification is deciding a design question, hold candidates whose approach depends on the answer. - **Competing external services.** Two tasks that exercise, reconfigure, or reset the same external service or test environment contend even when their code does not overlap. Name the evidence for each held pair: the file, module, migration, interface, decision, or service, and where you read it. When the evidence is only a guess from an issue title, say so and prefer holding the newer candidate. ## Resource affinity - Group Ready tasks that need the same `ml-server` model, so the model loads once for the group. - Prefer a candidate whose resource is free or already loaded over one that would force a reload, unless the Operator's priority order says otherwise. - Size the wave to the free GPU workers the Lease Registry reports; extra GPU tasks wait in the queue. - When a task waits, give its queue reason from the registry: the lease it waits for, who holds it, and its position, for example "waiting for `ml-server:qwen-27b`; held by #412; second in queue". ## Aggressiveness The default is moderate: admit a candidate when you found no contention, and hold it when you found plausible contention you could not rule out. Priority order breaks ties. Prefer a smaller wave whose members are clearly independent over a larger one that risks rework.