docs: install DOX framework and initialize the DOX tree

Appends the canonical DOX framework to the root AGENTS.md and creates
child docs for the two durable boundaries: docs/ (ADR numbering,
format and status rules) and tests/ (jiti aliasing to host-package
stubs, what the tests pin, the NOUS_API_KEY fallback gotcha).

tests/stubs/ gets no child doc on purpose: it is a single file whose
only contract is owned by tests/AGENTS.md.
This commit is contained in:
AlexKucera committed 2026-11-25 09:35:17 +01:00
1 parent 690fcdfe22
commit 8bbece7613
3 files changed
+160

No files matched your search

+37
View File
@@ -0,0 +1,37 @@
# 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 |