# docs/AGENTS.md ## Purpose Durable documentation that explains *why* the project is shaped the way it is. Currently: architecture decision records under `docs/adr/`. ## Ownership - This doc owns the ADR numbering scheme, file format, and status rules. - The root AGENTS.md owns repo-wide rules and the top-level Child DOX Index. - Each ADR owns its single decision; nothing outside `docs/` is owned from here. ## Local Contracts - ADRs live in `docs/adr/` and are numbered sequentially: `0001-slug.md`, `0002-slug.md`, and so on. The next free number is one above the highest existing file. - Format follows the domain-modeling skill's `ADR-FORMAT.md`: a short title, then one to three sentences giving context, decision, and reason. Optional `Status` frontmatter, `Considered Options`, and `Consequences` sections are added only when they carry real information. - Existing records: - `0001-stack.md`: native pi-ai `Provider` over legacy `ProviderConfig`, because the legacy form leads to agent-key minting that Nous retired. - `0002-license.md`: GPL-3.0-or-later. - `0003-forge-and-ci.md`: Gitea remote, no CI file yet. - An ADR records a decision that is hard to reverse, surprising without context, and the result of a real trade-off. Easy-to-reverse choices do not get an ADR. ## Work Guidance - Add an ADR when a decision meets all three criteria above; do not backfill records for obvious choices. - When an ADR is superseded, change its status rather than deleting it, and add the replacement under the next number. - Keep each record to a single decision. ## Verification - No automated check. Review by reading: every file in `docs/adr/` matches `NNNN-slug.md` and numbering is gap-free and sequential. ## Child DOX Index | Path | Scope | |---|---| | (none) | `adr/` is a flat set of peer records with shared rules that live in this doc |