Context capsules

Small, task-scoped pointers into docs/design/ and the code. Read the capsule that matches your task instead of paying the full design-doc token cost up front.

Capsules are pointers, not copies. docs/design/*.md are the source of truth by contract area. If a capsule and a design doc disagree, the design doc wins. Update the relevant design doc first, then refresh the capsule’s section list if structure changed.

TaskCapsule
Simulation, tick, services, AI, self-play harnessserver-sim.md
Plain-language server architecture walkthrough../design/server-architecture-walkthrough.md
Rendering, input, HUD, client modules, teardownclient-ui.md
Wire messages, snapshot shape, fog filteringprotocol.md
Costs, supply, sight, unit/building statsbalance.md
Node integration tests, regression, client smoketesting.md
Hardening limits, server bind, build/run pipelinedeployment.md
Server wiki route and generated stats referencedeployment.md
Match history persistence and /api/matchesmatch-history.md
Multi-phase or phased implementation planningplanning.md

Read the relevant design doc only when changing cross-file contracts (protocol ⇄ client, Game API, balance mirror, fog rules). Otherwise, the capsule + the code is enough.

For new unit work, start with docs/new-unit-checklist.md, then read the task-specific capsules it references as each phase begins.

For any multi-phase or phased implementation plan, read planning.md before writing the plan.

For optional source-to-doc navigation, use the advisory routing map at ../doc-map.json. It points common source areas to likely relevant capsules and design docs, but it does not claim exclusive ownership or require a docs change for every mapped source change.