0011: Built from good parts, not a layer on Wolf
- Status: Accepted (owner, 2026-11-14)
- Date: 2026-11-14
- Supersedes: ADR 0001
Context
ADR 0001 made Couchdogs a layer on unmodified Wolf. A year of building showed where that hurts: two compositors per TV frame (one Gamescope on HDMI did the job at about 12% of a core against 53% for Wolf direct mode, ADR 0009), crashes in Wolf's session model (empty rtsp_fake_ip, stoul, sessions/stop ""), and several UIs in Moonlight's app list. The owner's goal: "the go-to tool for a living-room server on HDMI plus devices around the home", "set once and use everywhere", rewriting fine "as long as it is built from good parts", Wolf not assumed.
Decision
Couchdogs owns its core: screens (Gamescope), shell, app runner, pad daemon and Moonlight server (ADR 0012). It is built from the best parts available, judged on merit, and credits them: Wolf's protocol code, inputtino and the Wildlife images (Games on Whales, MIT), Gamescope (BSD-2), Servo (MPL-2.0). Copied code keeps its licence and a pinned origin; generic fixes are still offered upstream with the owner's OK. Design: docs/superpowers/specs/2026-11-14-own-core-design.md.
Consequences
- More code to own; each milestone must reach the TV before the old path goes, so the house never loses a working TV.
- Upstream Wolf updates no longer arrive by a pull; protocol fixes are picked by hand.
- AGENTS.md rule 1 changes from "layer, don't fork" to "built from good parts, credit upstream".