# Proposal — open facets: domain-neutral Core, packages, and authoritative `nature`

**Status:** Drafted into AIM v8.0 ([`specification.md`](../specification.md) & [`packages/`](../packages/)) on 2026-12-01. Catalogue governance remains open.  
**Related:** [Coding-lens removal](./coding-lens-removal.md) (applied 2026-12-01).

## Principle

**AIM Core is domain-neutral, facets are open through packages, an intent is a facet grown to its own file, and `nature` is authoritative.**

AIM defines **11 universal Core facets** and **13 domain-neutral edge verbs** — enough to model any domain cleanly with zero software bias. Field-specific concepts are loaded from declared packages (`kind: package`) in `AGENTS.md`. Normal domain packages specialize Core facets in one flat step so any reader without the package still falls back to Core without losing data or breaking links.

---

## 1. Domain-neutral Core (11 facets, 13 edges)

| Facet | Role |
|---|---|
| `Subject` | General named scope / container (replaces generic `Project` and nature-less intents) |
| `Record` | Structured stored data (`### Schema`, `### Constraints`, `### Immutable`, `### Rows`) |
| `Operation` | Discrete unit of work (`### Input`, `### Expects`, `### Ensures`, `### Returns`, `### Decides`) |
| `Process` | Multi-step workflow (`### Steps`, `### Ends`, gates, waits, races, loops) |
| `Persona` | Human or agent actor (`### Role`, `### Access`) |
| `Organisation` | Team, company, court, or agency (`### Role`, `### Access`) |
| `Event` | Fact that happened (`### Schema`, `### Summary`) |
| `Trigger` | Non-actor entry point (`schedule`, `deadline`, `webhook`, `external`) |
| `State` | Finite lifecycle attached to a `Record` (`### Transitions`) |
| `Knowledge` | Rules, policies, domain reference, or bound `Entries` notes |
| `Result` | Produced artifact or deliverable (renamed from `Output`) |

**Core edge verbs (13):** `invokes`, `reads`, `mutates`, `consults`, `emits`, `subscribes`, `plays`, `triggers`, `refs`, `holds`, `satisfies`, `produces`, `needs`.

---

## 2. Two-tier packages (`kind: package`)

Projects declare packages under `packages:` in `AGENTS.md` and cache them under `aim/specs/packages/<name>.aim`. Project-local custom facets use the exact same format.

- **Tier 1 — Domain packages (`tier: domain`)**: Specialize a Core facet in **one flat step** (`Origin: <CoreFacet>`). They may rename a facet, add optional/required sub-blocks (`### Adds`), or tighten Core rules (`### Requires`), including requiring named or typed fields in `### Schema`. Required fields are always written **explicitly** in `### Schema` (never hidden), so any tool without the package falls back cleanly to `Origin`.
- **Tier 2 — Official extension packages (`tier: extension`)**: Maintained beside the specification. May also add companion file kinds, new edge verbs, and Core-to-extension edge rules:
  - [`systems.aim`](../packages/systems.aim): `Service`, `Capability`, and `kind: mapping`.
  - [`software.aim`](../packages/software.aim) *(includes `systems`)*: `Software`, `View`, `Style`, and screen verbs (`exposes`, `navigates`, `accesses`).

Shipped Tier 1 domain packages:
- [`legal.aim`](../packages/legal.aim) — `Matter`, `Evidence`, `Regulation`, `Filing`, `CourtDeadline`
- [`aerospace.aim`](../packages/aerospace.aim) — `Mission`, `Directive`, `Telemetry`
- [`work.aim`](../packages/work.aim) — `Project`, `Task`, `Milestone`, `Decision`, `Meeting`
- [`healthcare.aim`](../packages/healthcare.aim) — `Patient`, `ClinicalRecord`, `Procedure`, `Guideline`, `ClinicalOrder`

**Addressing & fallback rules:**
- Declared facet names appear in headings (`## Evidence: Exhibit`), addresses (`aim:matter_41#Evidence:Exhibit`), and kebab-case `nature:` / sibling filenames (`nature: court-deadline`, `matter_41.court-deadline.aim`).
- `AGENTS.md` may include `origins:` for offline Core fallback and `aliases:` to resolve cross-package name collisions (`PACKAGE_FACET_COLLISION`).
- Authoring assistants default to Core + declared packages and never invent custom facets silently.

---

## 3. Universal promotion & authoritative `nature`

Every intent is a facet grown to its own file:

1. **`nature:` is required and authoritative.** Every `kind: intent` file declares one `nature:` naming a Core or loaded package facet (plain multi-facet scopes use `nature: subject`). `nature` decides which lifted sections and edges are legal.
2. **One uniform promotion rule.** Promoting any facet keeps its name, sets `nature:` to its facet type, lifts its sub-blocks to top-level `##` sections (`### Label` → `# Title`, `### Summary` → `## Summary`, `### Bindings` → `## Bindings`), and adds the intent envelope (`## Requirements`, optional `## Tests`, `## Children`, `## Dependencies`).
3. **One origin, always separate.** Every facet and every intent has strictly one origin. Actors (`Persona` / `Organisation`) and stored data (`Record`) never merge into one facet — a `Patient` or `Client` actor stays separate from its `Record`.
4. **Placement-scoped facets.** Promoting a background `Knowledge`, `State`, or `Style` into a child intent narrows its subtree scope (or must remain under its `Record`'s intent for `State`). Extension packages declare their own promotion limits (e.g. `Capability` is answered, never promoted; `Service` is connected instead).

---

## 4. Verification & live examples

All changes were implemented and verified across the specification, package registry, and public workspaces:

- **Core + modules:** Slim [`specification.md`](../specification.md) (~12k tokens) backed by on-demand normative modules under [`reference/`](../reference/).
- **Package-powered workspaces:** [`examples/legal/`](../examples/legal/) (`packages: [legal]`) and [`examples/nasa/`](../examples/nasa/) (`packages: [aerospace, software]`).
- **Core workspaces:** [`examples/diary/`](../examples/diary/), [`examples/board/`](../examples/board/), [`examples/claims/`](../examples/claims/), [`examples/scheduling/`](../examples/scheduling/), and [`examples/incidents/`](../examples/incidents/) — all passing [`examples/check.py`](../examples/check.py).

---

## 5. Open item

1. **Catalogue governance** — hosting, community submission/review workflow, versioning policy, and whether third-party packages count as supplied material under §7.
