Coding agents
One source of truth applies to humans and coding agents (Copilot, Claude, Cursor, Hermes). The source is AGENTS.md in the kailash-os repository (default branch master). The companion guide for the kailash-packages overlay repo is AGENTS.md there. Tool-specific files (CLAUDE.md, .github/copilot-instructions.md) point at these. On any disagreement, AGENTS.md wins.
Read the files at the source — the GitHub-rendered pages stay current:
kailash-os: project map, layer model and the manifest single-home rule, TDD standard with the layer map, the ADR process (docs/adr/), PR contract, labels, security rules (the distribution packages offensive tooling — the safety posture is deliberate and testable).kailash-packages: the overlay flake — pins, packaging shapes, and the manifest rules. Every other artefact generates from these rules.
Architecture Decision Records
Structural changes carry an ADR in the same PR. Most slices are leaf-sized: the issue’s plan reference IS the design record. Write no ADR there. Write one only when the change makes a new persistent artefact, or removes or changes one: a manifest schema field whose semantics lock, a profile contract, a wire format, a gate script.
The structural record home is deliberately single: kailash-os docs/adr/ — the process and the record format. Overlay decisions land there too, with the PR that makes the change.
The rules:
- Accepted ADRs are immutable. A change that contradicts an accepted ADR supersedes it with a new one. Never rewrite the accepted record.
- Never invent discussion, deciders, or quotes. Cite commit/issue permalinks, or write “No substantive technical discussion recorded”.
- Dependency bumps, docs tweaks, and CI tweaks need no ADR.
This repo also records repo-local prose decisions in its own docs/adr/ (the writing-standard record).
This page does not mirror either file. A mirror drifts the moment the repos move. The source-of-truth rule (AGENTS.md wins) states the place to look.