# Contributing

This repository is the **AIM language specification**, its official & starter **packages**, its reference material, and the open-source **context server** that serves shared AIM contexts to agents — nothing else. The website (<https://intentmodel.org>) and other tooling live in separate repositories.

## What lives here

- `specification.md` — the authoritative AIM Core specification
- `packages/` — official extensions (`systems`, `software`), starter domain packages (`legal`, `aerospace`, `work`, `healthcare`), and `index.json`
- `reference/` — on-demand normative modules, diagnostics, and version history
- `guides/` — advice on shaping a model and coding-agent role mapping; no rule of the language lives there
- `proposals/` — design proposals
- `examples/` — conformance example `.aim` contexts
- `agents/`, `brain/`, `PROMPT.md`, `AGENTS.md`, `GEMINI.md` — agent onboarding and Amy integrations
- `context-server/` — the context server (Node, Docker image `juiceservices/aim-context-server`) and its protocol, `context-server/PROTOCOL.md`; `npm test` in that folder checks the server against the protocol

## Proposing spec changes

1. Open an issue describing the problem the change solves.
2. For accepted changes, edit `specification.md`. Keep section cross-references (`§N.M`) consistent, and add the version to `reference/versions.md`.
3. If the change affects authoring, update the personas (`agents/`, `brain/`) and `PROMPT.md` to match.
4. Add or update a conformance example under `examples/` so the change is demonstrated.
5. Open a pull request.

## Examples

Examples must be valid against the current spec: correct frontmatter (`aim`, `kind`), typed edges that resolve, no orphan nodes or dangling references. Keep them small and focused — one component per example. `python3 examples/check.py` checks the five whole models the specification shows in §2; a change to one of them is a change to that section.
