# Agentic Intent Model (AIM) v7.0

## 1. The picture

AIM states what is known and what must hold, in a form that people and AI can both check. A model describes a subject — a system, an organisation, a process, a person's own records — through its commitments, the shapes of its data, what its collections record, and how these relate. A realization is either an artifact, such as code or configuration, or a performance repeated for each process instance. AIM specifies what must hold, who may act, and observable obligations; implementation mechanisms belong to the realization. Requirements, criteria, and steps may carry normative prose. Typed edges and structured properties carry relationships and mechanically checkable constraints.

A model answers a small number of questions about its subject, and each answer has one place.

| The question | Where the answer is written | § |
|---|---|---|
| What is this, and what is it for? | An intent, with its Summary | 17 |
| What must hold, how strongly, and why? | Requirements: each a "must" or a "should", with its source | 3 |
| Who is involved? | Persona, Organisation | 4.4, 4.12 |
| What is kept, and in what shape? | Record | 4.1 |
| What does the owner fix once and for all? | The stated rows of a Record | 4.1 |
| What held when, and what replaced what? | A period and a replacing link on a Record | 4.1 |
| What was written down, and who said it? | Entries | 6 |
| What is known, to consult or to read as background? | Knowledge | 4.11 |
| What is done, and what does it guarantee? | Operation | 4.2 |
| In what order, with which forks and waits? | Process | 4.3 |
| What is handed over as a result? | Output | 4.16 |
| What happened that others wait for? | Event | 4.6 |
| What starts work without anyone starting it? | Trigger | 4.7 |
| How may a thing change over its life? | State | 4.10 |
| What do people see and use? | View, Style | 4.5, 4.9 |
| What must the work be able to do, and what answers it? | Capability, Service, Software | 4.8, 4.15, 4.14 |
| Toward what end? | Project | 4.13 |
| How do these relate? | Typed edges between facets, links between entries | 5, 6 |

The table is a reading aid. Where a statement answers two questions it may be written in either place, and either reading leaves a valid model.

Five things hold for every model, whatever its subject.

- **Everything has an address.** An intent, a facet, a field, a requirement and a row can each be named and linked to (§8).
- **What is written is kept apart from what is derived.** The files are written. The graph, the inverse of every edge, what holds on a day, the backlinks of an entry and the context of a piece of work are derived from them and never stored (§8, §9, §10).
- **What is checked is kept apart from what is judged.** A shape, an edge, a comparison and a link are checked. Prose is judged, and nothing judged is reported as proven (§12).
- **Words are kept apart from readings.** What someone wrote stays as written. What is recorded about it is a line of its own, and every line can say where it comes from (§6).
- **Nothing is invented or changed silently.** A gap is a question to the owner. A mismatch is resolved by repairing the realization or by revising the model, in the open (§11, §15).

AIM checks and does not draw conclusions. It keeps who said what, not what is true.

The text follows this picture. §2 shows five whole models beside the words they were made from. §3 to §7 are what is written: statements and values, the facets, the edges, entries, and dependencies and material. §8 to §10 are what is derived: the graph, resolution and traceability, and context. §11 to §15 are how a model stays true: who may write what, review, diagnostics, change, and making a model from what is at hand. §16 and §17 are files and layout. The text says what a model is and when it is valid or incomplete. It holds no advice on how to shape one. Beside it, `guides/modelling.md` collects habits that have worked, `reference/versions.md` holds the history of the versions and the section numbers of AIM 6.6, `reference/diagnostics.md` what a checking tool reports, and `reference/diagnostic-codes.md` the codes for it. None of these is needed to write or to read a model.

An **intent** is identified by a lowercase dotted namespace, such as `juice.tasks`. It has one required intent file (`kind: intent`), optional embedded or sibling facets, optional children, optional capability mappings, and optional realization bindings. The intent file is its canonical entry point. A child is an intent with the same node type as its parent.

### Authority

- **`.aim` files.** `.aim` files under the project's AIM root are the sole behavioral authority, including their typed edges. The graph is derived from these files. It is never a competing authority.
- **Entries files.** An Entries file (§6) is the authority for what its collection records: the rows, their values, their links and who put each line there. It states no behavior. A rule about access or behavior that stands only in an entry's text is not a commitment. It belongs in the intent.
- **Other documents.** Other documents may explain or summarize intent but MUST NOT introduce behavioral requirements. Behavior stated only in Markdown notes, chat history, comments, or material outside the AIM root is drift. Move it into `.aim` if it is intended to be authoritative. Root `AGENTS.md` provides bootstrap and working instructions, not system behavior.
- **Bindings.** Bindings authoritatively locate realizations but never define behavior. Their provenance is separate from the behavioral intent's provenance.
- **Metadata.** Facts about authoring, review, change history, implementation status, or maintenance of the specification are metadata. They MUST NOT appear in behavioral bodies. A fact is metadata if it would cease to apply when the specification's team and toolchain were replaced while the specified system stayed identical. Spec-defined frontmatter carries portable authority and accountability metadata. Other metadata belongs in the collaboration/storage environment or project-specific frontmatter. AIM does not prescribe version control, review, or approval storage.
- **Behavior inside the system.** Actors, approvals, and evidence within the specified system are behavior and may be modeled.
- **Enforcement.** The authority boundary is enforced by review, not a parser hard error. Tools MAY report apparent behavioral requirements in non-authoritative documents and recommend moving them into `.aim`.

## 2. Whole models

Five small models, each shown beside the words it was made from. They are the files under `examples/` of the specification's repository, complete and unabridged, and `examples/check.py` there checks them. Each is small enough to read in one sitting and leaves out nothing a model needs.

### A diary

Made from: "I want to keep my diary here. My words stay as I wrote them. An assistant may suggest who I mean and what an entry follows up on, and I confirm that. Nobody reads it but me and the assistants I name. Now and then I would like a reflection on my week."

`aim/diary/diary.aim`

````markdown
---
aim: diary
kind: intent
---

# Diary

## Summary

My journal, and what an assistant may do with it.

## Requirements

- **MY-WORDS** — What I wrote in an entry is never changed. A correction is a new entry that links to the earlier one.
- **MARKED** — Whatever an assistant adds to an entry stays marked as proposed until I confirm it.
- **CITED** — Every answer drawn from the diary names the entries it used and says nothing they do not hold.
- **MINE** — Nobody reads the diary but me and the assistants I name.

## Persona: Diarist

### Summary

The person who keeps this diary.

### Access

- Has a reflection on a week made — [produces](aim:diary#Output:WeeklyReflection)

## Record: Person

### Summary

A person named in the diary.

### Schema

```schema
id: string required unique key
name: string required
```

## Record: Mood

### Summary

A mood the diary offers.

### Schema

```schema
id: string required unique key
label: string required
order: integer required min(1)
```

### Rows

- **calm**
  - label: Calm
  - order: 1
- **restless**
  - label: Restless
  - order: 2

## Record: DiaryEntry

### Summary

One dated entry in my words, and what is recorded about it.

### Schema

```schema
id: string required unique key
date: date required
body: string required min(1)
mentions: list(diary#Person)
followsUpOn: ref(diary#DiaryEntry.id)
mood: ref(diary#Mood.id)
```

### Immutable

- `date`
- `body`

## Knowledge: Journal

### Summary

The entries of the diary, to reflect on and to answer from.

### Source

The diary's own entry collection.

### Bindings

- binds: `entries:diary#Record:DiaryEntry`

## Output: WeeklyReflection

### Summary

A reflection on one week of the diary, made for the person who keeps it.

### Input

```schema
weekOf: date required
```

### Format

- text

### Ensures

- Names every entry it used and says nothing they do not hold — [consults](aim:diary#Knowledge:Journal), [satisfies](aim:diary#Requirements[CITED])
````

`aim/diary/diary.Person.entries.aim`

````markdown
---
aim: diary
kind: entries
record: "diary#Record:Person"
---

# People in the diary

## Person: Anna

- name: Anna
````

`aim/diary/diary.DiaryEntry.entries.aim`

````markdown
---
aim: diary
kind: entries
record: "diary#Record:DiaryEntry"
---

# Journal

## DiaryEntry: 2026-11-21

- date: 2026-11-21
- mentions:
  - [Anna](aim:diary#Record:Person[Anna])

### Text: body

Anna suggested taking the train for our December trip.

## DiaryEntry: 2026-11-28

- date: 2026-11-28
- mood: [Calm](aim:diary#Record:Mood[calm])
- mentions:
  - [Anna](aim:diary#Record:Person[Anna]) — from: proposed by Claude, 2026-11-28
- followsUpOn: [21 November](aim:diary#Record:DiaryEntry[2026-11-21]) — from: proposed by Claude, 2026-11-28

### Text: body

Anna and I walked by the river. We decided to take the train.
````

The diary is not an application: nobody adds an entry through an operation, because writing an entry is writing. The model holds the rules between the diarist and an assistant, the shapes of what the diary names, the moods as stated rows, and one Output. In the entry of 28 November the diarist wrote the text and set the mood; the assistant proposed the two marked lines. Three of the four rules have no satisfier: `MY-WORDS` is held by `### Immutable`, `MARKED` by the conduct of tools and `MINE` by who is given the files (§9).

### A meeting

Made from: "Board meeting of 28 November. Anna chaired, Ben was there. We decided to move the launch to 1 March. Ben tells the customers by 5 December."

`aim/board/board.aim`

````markdown
---
aim: board
kind: intent
---

# Board

## Summary

The board's meetings, what they decided and what follows from it.

## Requirements

- **KEPT** — What a meeting decided is never changed. A later meeting decides anew and links to the earlier decision.

## Record: Person

### Summary

A person who attends.

### Schema

```schema
id: string required unique key
name: string required
```

## Record: Meeting

### Summary

One meeting of the board.

### Schema

```schema
id: string required unique key
date: date required
chair: ref(board#Person.id) required
attendees: list(board#Person)
```

## Record: Decision

### Summary

One thing a meeting decided.

### Schema

```schema
id: string required unique key
meeting: ref(board#Meeting.id) required
replaces: ref(board#Decision.id)
body: string required min(1)
```

### Immutable

- `meeting`
- `body`

### Replaces

- `replaces`

## Record: Action

### Summary

One thing a person takes on after a meeting.

### Schema

```schema
id: string required unique key
meeting: ref(board#Meeting.id) required
follows: ref(board#Decision.id)
assignee: ref(board#Person.id) required
due: date
status: enum(open, done) required default(open)
body: string required min(1)
```
````

`aim/board/board.Person.entries.aim`

````markdown
---
aim: board
kind: entries
record: "board#Record:Person"
---

# People of the board

## Person: Anna

- name: Anna

## Person: Ben

- name: Ben
````

`aim/board/board.2026-11-28.entries.aim`

````markdown
---
aim: board
kind: entries
subject: "board#Record:Meeting[2026-11-28]"
owner: Anna
status: review
---

# Board meeting, 28 November 2026

## Meeting: 2026-11-28

- date: 2026-11-28
- chair: [Anna](aim:board#Record:Person[Anna])
- attendees:
  - [Anna](aim:board#Record:Person[Anna])
  - [Ben](aim:board#Record:Person[Ben])

## Decision: 2026-11-28-1

- meeting: [28 November](aim:board#Record:Meeting[2026-11-28])

### Text: body

The launch moves to 1 March.

## Action: 2026-11-28-a1 — from: proposed by Claude, 2026-11-28

- meeting: [28 November](aim:board#Record:Meeting[2026-11-28])
- follows: [Launch moves to 1 March](aim:board#Record:Decision[2026-11-28-1])
- assignee: [Ben](aim:board#Record:Person[Ben])
- due: 2026-12-05
- status: open

### Text: body

Tell the customers about the new date.
````

The meeting is one document: it holds the meeting, its decision and the action that follows, in the order of the minutes. Both name the meeting, which is what makes them belong. A note-taking assistant wrote the action, so the whole entry is marked on its heading. When Ben accepts it, the mark becomes `from: Ben, 2026-12-01, proposed by Claude, 2026-11-28`; when the next meeting approves the minutes, the file's `status` becomes `approved`. A decision of a later meeting that names this one in `replaces` replaces it, and this one stays as it is.

### A process

Made from: "An employee hands in a claim with its lines. Someone else decides it, never the person themselves. If a receipt is missing it goes back. Finance pays what is approved. A claim that waits five working days goes to finance. Every line should have a receipt."

`aim/claims/claims.aim`

````markdown
---
aim: claims
kind: intent
timezone: Europe/Berlin
calendar: DE
---

# Expense claims

## Summary

An employee hands in an expense claim, an approver decides it, and finance pays it.

## Requirements

- **FAIR** — Nobody decides their own claim — from: the owner, 2026-11-29
- **ADDS-UP** — A claim's amount is the sum of its lines.
- **FIVE-DAYS** — A claim is decided within five working days of being handed in.
- **RECEIPTS** (should) — Every line of a claim has a receipt.

## Persona: Employee

### Role

- Hands in claims for what they spent

### Access

- Asks for their money back — [invokes](aim:claims#Process:ReimburseClaim)
- [invokes](aim:claims#Operation:SubmitClaim)

## Persona: Approver

### Role

- Decides other people's claims

### Access

- Review submitted claims — [accesses](aim:claims#View:Claims) cross-owner(claims#Record:Claim)
- [invokes](aim:claims#Operation:ApproveClaim)

## Persona: Finance

### Role

- Pays approved claims

### Access

- [invokes](aim:claims#Operation:PayClaim)
- [invokes](aim:claims#Operation:EscalateClaim)

## Record: Member

### Summary

A person who works here.

### Schema

```schema
id: string required unique key
name: string required
```

## Record: ClaimLine

### Summary

One thing that was paid for.

### Schema

```schema
what: string required min(1)
amount: decimal required min(0) unit(EUR)
receipt: file
```

## Record: Claim

### Summary

One expense claim an employee hands in.

### Schema

```schema
id: string required unique key
ownerId: ref(claims#Member.id) required owner
amount: decimal required min(0) unit(EUR)
lines: list(part(claims#ClaimLine)) required
status: enum(Submitted, Approved, Returned, Paid) required default(Submitted)
```

### Constraints

```check
amount = sum(lines.amount)
count(lines) >= 1
```

### Immutable

- `ownerId`

## State: ClaimStatus

### Summary

A claim is handed in, then approved or returned, and an approved claim is paid.

### Of

- `claims#Record:Claim.status`

### States

- Submitted — initial
- Approved
- Returned — final
- Paid — final

### Moves

- Submitted → Approved — [claims#Operation:ApproveClaim]
- Submitted → Returned — [claims#Operation:ApproveClaim]
- Approved → Paid — [claims#Operation:PayClaim]

## Operation: SubmitClaim

### Summary

An employee hands in a claim with its lines.

### Input

```schema
amount: decimal required min(0) unit(EUR)
lines: list(part(claims#ClaimLine)) required
```

### Ensures

- The claim is kept as handed in, and its amount is the sum of its lines — [mutates](aim:claims#Record:Claim), [emits](aim:claims#Event:ClaimSubmitted), [satisfies](aim:claims#Requirements[ADDS-UP])

## Operation: ApproveClaim

### Summary

An approver approves or returns another person's claim.

### Input

```schema
claimId: ref(claims#Claim.id) required !owner
complete: boolean required
```

### Authz

- `claims#Persona:Approver` cross-owner(claims#Record:Claim) !owner

### Ensures

- The claim records the decision — [mutates](aim:claims#Record:Claim), [satisfies](aim:claims#Requirements[FAIR]), [satisfies](aim:claims#Requirements[RECEIPTS])

### Decides

- **Approved** — every line is supported by a receipt — [emits](aim:claims#Event:ClaimApproved)
- **Returned** — a line lacks its receipt — [mutates](aim:claims#Record:Claim)

### Criteria

```criteria
Approved when complete = true
otherwise Returned
```

## Operation: PayClaim

### Summary

Finance pays an approved claim.

### Input

```schema
claimId: ref(claims#Claim.id) required
```

### Ensures

- The claim is paid in full — [mutates](aim:claims#Record:Claim), [emits](aim:claims#Event:ClaimPaid)

## Operation: EscalateClaim

### Summary

Finance takes up a claim that nobody decided in time.

### Input

```schema
claimId: ref(claims#Claim.id) required
```

### Ensures

- The claim is brought to the head of the approvers — [reads](aim:claims#Record:Claim)

## Process: ReimburseClaim

### Summary

From a claim handed in to the money paid.

### Steps

1. The employee hands in the claim — [invokes](aim:claims#Operation:SubmitClaim)
2. The approver decides it — [invokes](aim:claims#Operation:ApproveClaim) — continues: Approved
3. Finance pays it — [invokes](aim:claims#Operation:PayClaim)

### On Error

- A failed payment leaves the claim approved and is retried the next day.

## Event: ClaimSubmitted

### Summary

An employee handed in a claim.

### Payload

```schema
claimId: ref(claims#Claim.id) required
```

## Event: ClaimApproved

### Summary

An approver approved a claim.

### Payload

```schema
claimId: ref(claims#Claim.id) required
```

## Event: ClaimPaid

### Summary

Finance paid a claim.

### Payload

```schema
claimId: ref(claims#Claim.id) required
```

## Trigger: ApprovalDeadline

### Summary

A claim that waits five working days for a decision goes to finance.

### Kind

- deadline

### Schedule

- 5 business-days after [claims#Event:ClaimSubmitted] — unless [claims#Event:ClaimApproved]

### Fires

- [triggers](aim:claims#Operation:EscalateClaim), [satisfies](aim:claims#Requirements[FIVE-DAYS])

## View: Claims

### Summary

The claims that wait for a decision.

### Display

- Each submitted claim with its lines and receipts — [reads](aim:claims#Record:Claim)

### Actions

- Approve or return — [exposes](aim:claims#Operation:ApproveClaim)

### Layout

- The oldest claim comes first.
````

The work is one Process over four Operations, with the fork carried by the decision in step 2 and the time limit by a deadline. The amount is checked by calculation, the money names its unit, and `RECEIPTS` is a "should": a claim approved without a receipt is reported with its reason and is no error.

### A piece of software

Made from: "The crew calls a shift that starts Monday at 22:00 and ends Tuesday at 06:00 'Monday night'. A planner who looks for that handover checks Monday's roster."

`aim/scheduling/scheduling.aim`

````markdown
---
aim: scheduling
kind: intent
nature: software
---

# Shift scheduling

## Summary

A roster calendar that shows shift planners what starts on each local date.

## Requirements

- **OVERNIGHT-DATE** — Group overnight shifts under their start date in the shift site's local time — from [scheduling#Record:ContextNote[OvernightShift]]

## Persona: ShiftPlanner

### Summary

A person who reviews the roster for a site.

### Access

- [invokes](aim:scheduling#Operation:ListShiftsForDate)

## Operation: ListShiftsForDate

### Summary

Lists the shifts for a calendar date at a site.

### Input

```schema
siteId: string required
date: date required
```

### Ensures

- Return the shifts whose local start date at the requested site matches the requested date — [satisfies](aim:scheduling#Requirements[OVERNIGHT-DATE]).

## Record: ContextNote

### Summary

An explanation or example that helps someone build or review the scheduling app.

### Schema

```schema
id: string required unique key
body: string required min(1)
relatedNote: ref(scheduling#ContextNote.id)
explainsRequirement: modelref(Requirement)
explainsOperation: modelref(Operation)
```

## Knowledge: SchedulingContext

### Summary

The conventions and examples behind the shift calendar.

### Bindings

- binds: `entries:scheduling#Record:ContextNote`
````

`aim/scheduling/scheduling.ContextNote.entries.aim`

````markdown
---
aim: scheduling
kind: entries
record: "scheduling#Record:ContextNote"
---

# Scheduling context

## ContextNote: NightCrew

- explainsRequirement: [Group overnight shifts by start date](aim:scheduling#Requirements[OVERNIGHT-DATE])

### Text: body

The crew plans a handover around the evening the shift starts.

## ContextNote: OvernightShift

- relatedNote: [Night crew handovers](aim:scheduling#Record:ContextNote[NightCrew])
- explainsOperation: [List shifts for a date](aim:scheduling#Operation:ListShiftsForDate)

### Text: body

The crew calls a shift that starts Monday at 22:00 and ends Tuesday at 06:00
“Monday night.” A planner looking for that handover checks Monday's roster.
````

The software commits to the rule. The words it was made from are kept as an entry, and the requirement cites that entry as its source. A second note illustrates the requirement through a `modelref` field. Whoever builds or reviews `ListShiftsForDate` finds both in its context (§10).

### An incident

Made from: "Checkout was down from 9:12 to 9:42 on 17 November. Jonas saw the database refuse connections. We have the database log. Claude thinks the pool was too small; nobody has confirmed that yet. We never name a person at fault."

`aim/incidents/incidents.aim`

````markdown
---
aim: incidents
kind: intent
timezone: Europe/Zurich
---

# Incidents

## Summary

What went wrong in operations, what was seen while it did, and what we think caused it.

## Requirements

- **AS-SEEN** — An observation stays as it was written. A correction is a new observation that replaces the earlier one.
- **NO-BLAME** — A review names causes and never a person at fault.
- **STANDING** — A cause is never reported as a fact while its standing is suspected.
- **POOL-ALERT** (should) — The connection pool raises an alert at 80 percent — from [incidents#Record:Incident[2026-11-17-checkout]]

## Record: Severity

### Summary

How bad an incident is, and how fast someone answers.

### Schema

```schema
id: string required unique key
answerWithin: duration required
```

### Rows

- **low** — Nobody outside the team noticed.
  - answerWithin: 24 hours
- **high** — Customers could not finish what they came for.
  - answerWithin: 15 minutes

## Record: Incident

### Summary

One incident, from the first sign to the end.

### Schema

```schema
id: string required unique key
title: string required
severity: ref(incidents#Severity.id) required
began: datetime required
ended: datetime
```

### Period

- from `began` until `ended`

## Record: Observation

### Summary

One thing someone or something saw, in the words it was reported in.

### Schema

```schema
id: string required unique key
incident: ref(incidents#Incident.id) required
at: datetime required
replaces: ref(incidents#Observation.id)
body: string required min(1)
```

### Immutable

- `at`
- `body`

### Replaces

- `replaces`

## Record: Exhibit

### Summary

A file kept as evidence.

### Schema

```schema
id: string required unique key
incident: ref(incidents#Incident.id) required
document: file required
fingerprint: fingerprint(document)
```

## Record: Cause

### Summary

What may have caused an incident, and how settled that is.

### Schema

```schema
id: string required unique key
incident: ref(incidents#Incident.id) required
standing: enum(suspected, confirmed, ruledOut "ruled out") required
basis: list(incidents#Observation)
shown: ref(incidents#Exhibit.id)
body: string required min(1)
```

## Knowledge: IncidentLog

### Summary

Every incident with what was seen and what was concluded, to learn from.

### Bindings

- binds: `entries:incidents#Record:Incident`
````

`aim/incidents/incidents.2026-11-17-checkout.entries.aim`

````markdown
---
aim: incidents
kind: entries
subject: "incidents#Record:Incident[2026-11-17-checkout]"
owner: Mara
status: review
---

# Checkout down, 17 November 2026

## Incident: 2026-11-17-checkout

- title: "Customers could not pay for half an hour"
- severity: [High](aim:incidents#Record:Severity[high])
- began: 2026-11-17T09:12:00+01:00
- ended: 2026-11-17T09:42:00+01:00

## Observation: checkout-1

- incident: [Checkout down](aim:incidents#Record:Incident[2026-11-17-checkout])
- at: 2026-11-17T09:14:00+01:00

### Text: body

Checkout shows an error page. Three customers wrote in within two minutes.

## Observation: checkout-2

- incident: [Checkout down](aim:incidents#Record:Incident[2026-11-17-checkout])
- at: 2026-11-17T09:20:00+01:00 — from: Jonas, 2026-11-17

### Text: body — from: Jonas, 2026-11-17

The database refuses new connections. The pool is full.

## Exhibit: db-log

- incident: [Checkout down](aim:incidents#Record:Incident[2026-11-17-checkout])
- document: files/db-1.log
- fingerprint: sha256:eea07e6501aa5a880dee797533b42bc7f093d289724678538bb8972026de7cc0

## Cause: pool-too-small — from: proposed by Claude, 2026-11-18

- incident: [Checkout down](aim:incidents#Record:Incident[2026-11-17-checkout])
- standing: suspected
- basis:
  - [Jonas at 09:20](aim:incidents#Record:Observation[checkout-2]) at "The pool is full"
- shown: [Database log](aim:incidents#Record:Exhibit[db-log]) at "remaining connection slots are reserved"

### Text: body

The connection pool was sized for last year's traffic and ran out during the Monday peak.
````

The incident is one document. The severities are stated rows with a length of time. What was seen is kept as written and can only be replaced, never edited. The log is a file with its fingerprint, and the cause points at the words it rests on, in a text and in the log that cannot change. The cause is an assistant's suggestion and its standing is `suspected`, which are two separate facts; an answer drawn from this file says both. The incident is the source of a "should".

**What is written**

## 3. Statements and values

- **Headings.** H2 introduces top-level sections or facets. H3 introduces facet sub-blocks. Facets use `## <FacetType>: <Name>`. Top-level sections use bare names such as `## Summary`, `## Requirements`, `## Tests`, `## Children`, and `## Dependencies`.
- **Sections of promoted forms.** Data-bearing, acting, process or output intents may also have the top-level sections of their promoted forms (§4.1, §4.3, §4.4, §4.16): Schema, Constraints, Immutable, Rows, Period, Replaces, Complete, Role, Access, Steps, Ends on, Input, Authz, Expects, Ensures, Returns, Decides, Criteria, On Error, Contains, Format and Layout.
- **Facet names.** A facet name MUST match `[A-Za-z][A-Za-z0-9_]*`. Names with spaces or punctuation are hard errors. A name is an identity: addresses, edges and file paths depend on it, so it stays ASCII. The owner's own spelling is its label (below).
- **After the facet heading.** The facet heading MUST be immediately followed by explicit `### Summary`, or by `### Label` and then `### Summary`. The exception is a Persona used only for role/access declaration, which may start with `### Label`.
- **Bindings.** Realization bindings are an inline `### Bindings` property.
- **Older spellings.**
  - Deprecated binding sidecars use `## Bind: <FacetType>:<Name>`.
  - Tools MUST accept deprecated `## Subintents` and `## Subcomponents` as aliases of `## Children`.
  - `## Schema: <Name>` is the deprecated Record facet spelling, and `aim-attrs` is the deprecated `schema` fence spelling. Both remain accepted and SHOULD be migrated without forced rewrites.
  - `## Flow: <Name>` and `## Contract: <Name>` are the deprecated spellings of `## Process: <Name>` and `## Operation: <Name>` (§4.0).

### Labels

A name is for addresses; a label is what people read. A German owner's role `Geschaeftsfuehrerin` and field `laengeInMm` are shown as "Geschäftsführerin" and "Länge in mm".

- **Facets.** Any facet MAY carry `### Label`. It is one line: the name as people say it, in any script. It stands right after the heading (above).
- **Fields.** A schema field MAY carry the modifier `label("…")`: `laengeInMm: number required label("Länge in mm")`. A `label(...)` MUST be one quoted string.
- **Enum values.** A value MAY be followed by its label in quotes: `enum(Offen, InPruefung "In Prüfung")`. An enum value label MUST be one quoted string after its value. People see "In Prüfung"; the value stored, compared and checked stays `InPruefung`. A State reuses the labels of the enum field it governs (§4.10).
- **What a label is.** A label is display only.
  - Resolution, addresses, edges and every check use the name.
  - A label never resolves and never makes two names one.
  - A label is not unique. Tools disambiguate by name where it matters.
  - Without a label, the name is shown, split into words.
  - A label is part of the model: an authoring tool that writes a name from the owner's words writes the label with it.
- **Not labelled.** An intent needs no label: its H1 (or `display`) already is its display name. A promoted facet's label becomes the promoted intent's H1. Requirement labels are keys owners do not read. Namespaces and paths stay ASCII.

### A requirement's source

A requirement is a commitment; where it comes from is kept with it. A Requirements bullet MAY end with one source trailer:

```markdown
- **NET14** — The invoice is payable within fourteen days — from [shop#Knowledge:AGB]
- **RANGE** — The count does not leave the hold without the range's clearance — from [nasa#Requirements[RANGE]]
- **TWO-DAYS** — Every order ships within two days — from: customers complained about delivery, 2026-10
```

- **An address.** `from [<address>]` names what the rule comes from. That is one of four things:
  - a Knowledge facet (a regulation, a document);
  - a Requirements item of this or an ancestor intent (a rule derived from a rule);
  - an Event (a rule made because something happened);
  - a row, by its row address (§8), such as the entry a rule is drawn from.

  A `from [...]` address MUST resolve, and it MUST resolve to a Knowledge facet, a Requirements item, an Event or a row. Several sources are one trailer with addresses separated by commas.
- **Words.** `from: <words>` keeps a reason that is not a thing in the model — an answer, a complaint, a decision — as prose.
- **Not an edge.** The trailer is a structured reference, like a State's moves or a Trigger's anchor. It derives `from` and its inverse `source-of` as structure, outside the closed taxonomy of §5 and outside traceability. A Requirements bullet MUST NOT carry an edge token. A requirement item stays a target of `satisfies` and is never the source of an edge. A requirement with no source is complete.
- **What it is for.** A tool MAY list every requirement drawn from a source.
  - *Stale source.* When a Knowledge facet is read again, a Requirements item is rewritten at its label, an Event's emitter changes, or the text or the values of a cited row change, the requirements drawn from it are flagged for a look (*stale source*). This is the way a stale satisfier flags work whose requirement changed (§14).
  - *Conflict.* Two requirements in conflict are shown with their sources, never ranked by them.
- **Provenance at the grain of a bullet.** `from: the owner, <date>` and `from: proposed` tell apart what the owner said from what an authoring tool filled in.
  - An assistant or a tool writes `from: proposed by <name>, <date>`, with the name it goes by and the day.
  - A confirmed item keeps that behind who confirmed it, as a line of an entry does (§6).
  - The file's `provenance` stays what it is (§15).

### A requirement's strength

A requirement is a "must" unless it says otherwise. It MAY carry the mark `(should)` right after its label:

```markdown
- **MY-WORDS** — What I wrote in an entry is never changed.
- **DAILY** (should) — I write an entry every day.
- **HEALTH** (should) — I sleep eight hours — over [me#Requirements[DAILY]]
```

- **Two strengths.**
  - A "must" always holds, and a broken one is something to fix.
  - A "should" is meant seriously and may bend: whoever does the work may depart from it and says so.
  - A "should" that was not kept is reported with a request for the reason and is not an error. The reason may be kept as an entry that names the requirement (§6).
  - There is nothing between the two.
  - A wish with an end is a Project (§4.13).
- **Everything else stays.** A "should" has a label, may cite its source, and is a target of `satisfies`.
- **Which "should" wins.** A "must" always wins over a "should". Between two "should" requirements, the one that wins MAY name the one that gives way in the trailer `over [<address>]`.
  - The address is a labelled Requirements item that is a "should" too. An `over [...]` address MUST resolve to a labelled Requirements item.
  - An `over [...]` MUST NOT stand on a "must" and MUST NOT name one.
  - An `over [...]` MUST NOT close a circle.
  - Several addresses are separated by commas.
  - `over` stands before `from`.
  - It is said once, on the requirement that wins, and never as a number.
- **A "must" never gives way.** Two "must" requirements that can collide are a mistake in the rules. They are shown side by side with their sources, and the owner mends them. Either the exception is written into the rule itself, as in "read by a second lawyer, unless the deadline would be missed", or one of the two becomes a "should".
- **No guessing.** Two requirements that collide with nothing said are shown side by side with their sources and the owner is asked. Whoever does the work never picks. When both cannot be kept, the report names which requirement gave way and to which.
- **Not an edge.** The trailer is a structured reference like `from`. It derives `over` and its inverse, outside the closed taxonomy of §5 and outside traceability.

### Preservation of meaning vs. canonical formatting

Tools that parse `.aim` files into an intermediate representation and re-serialize them MUST distinguish **preservation of meaning** from **canonical formatting**:

- **Preservation of meaning** requires retaining every one of these:
  - intent and facet node;
  - requirement label, strength (`(should)`), text, precedence (`over`) and source (`from`);
  - typed edge;
  - schema attribute and modifier;
  - stated row with its key, words and values as the author wrote them;
  - `### Period`, `### Replaces` and `### Complete` line (§4.1);
  - Criteria rule and `check` line (§4.2);
  - label (`### Label`, `label(...)`, enum value labels);
  - `## Dependencies` (`### Requires`, and deprecated `### Imports` until rewritten);
  - frontmatter authority and lifecycle metadata (`provenance`, `owner`, `status`, `approved_by`, `approved_at`, `tags`, `display`, `nature`, `timezone`, `calendar`);
  - realization binding (including merging any deprecated `kind: binding` sidecar `## Bind:` entries into inline `### Bindings` before retiring the sidecar).

  A tool that reads and writes an Entries file retains every key, value, text, link label, list order, origin trailer and anchor (§6).
- **Canonical formatting** normalizes whitespace, heading order, and deprecated spellings (`## Subintents` → `## Children`, `aim-attrs` → `schema`, inline `### Bindings` for `## Bind:`, a short address → its full address, an imported alias → the full address it names, `<From> → unchanged` → `### Only in`, `Flow` → `Process` and `Contract` → `Operation` in every place the type is written). It does so without altering the derived graph, bindings, or authority metadata. An automated migration MUST NOT run if the intermediate representation drops any of these elements.

### Markdown restrictions

- **Structured blocks.** Structured blocks use the specified bullet, `schema` fence, and edge-token forms. Requirements, Tests, Steps, Ends on, Schema, Payload, Input, Contains, Format, Authz, Expects, Ensures, Returns, Decides, Criteria, Display, Actions, Access, Of, States, Moves, Only in, Ends, Rows, Period, Replaces, Complete, and Bindings are structured blocks. Label is one line of text.
- **Inside a structured block.** Tables, blockquotes, task lists, and footnotes are forbidden there. Bold, italic, links, and inline code are permitted within list items.
- **Fences.** Fences in Schema, Input, Contains, Payload and Returns blocks use `schema`. The fence in Criteria uses `criteria` (§4.2). A `check` fence stands only in Expects and Constraints (§4.1, §4.2). Arbitrary fences are permitted elsewhere where the block's defined syntax allows them.
- **Free prose.** Free prose, including Summary and descriptive paragraphs, permits ordinary CommonMark.
- **Raw HTML.** Raw HTML is forbidden everywhere.
- **Status.** Task lists MUST NOT express implementation or verification status in structured intent; that status belongs in work reports. Frontmatter `status` concerns specification lifecycle only.

### Schema properties

Schemas use a fenced `schema` block, with one attribute per line:

```schema
title: string required min(1) max(200)
code: string required unique
seats: integer required min(1)
price: decimal required min(0)
contactEmail: email required
website: url
phone: phone
ownerId: string required ref(team#Member.id) owner
reviewerId: string ref(team#Member.id) !owner
items: list(expenses#ExpenseItem)
laengeInMm: number label("Länge in mm")
```

Grammar: `<name>: <type> <modifier>*`.

| Position | Allowed forms |
|---|---|
| Scalar type | `string`, `number`, `integer`, `decimal`, `boolean`, `date`, `datetime`, `email`, `url`, `phone`, `file`, `duration`, `position` |
| Other type | `enum(a, b, c)`, `list(<type>)`, `ref(<intent>#<Record>.<field>)`, `ref(<intent>#<field>)`, `part(<intent>#<Record>)`, `map(<type>)`, `map(ref(<intent>#<Record>.<field>), <type>)`, `modelref(<Type>)`, `fingerprint(<field>)` |
| Modifier | `required`, `optional`, `unique`, `min(n)`, `max(n)`, `ref(<intent>#<Record>.<field>)`, `ref(<intent>#<field>)`, `enum(a, b, c)`, `default(<value>)`, `list(<type>)`, `owner`, `!owner`, `label("…")`, `key`, `rough`, `unit(<unit>, …)` |

**Full addresses.** Every Record named in `ref`, `part`, `list` and `map` is written as its full address: `<intent>#<Record>` for a Record facet, `<intent>` for a promoted entity (an intent with a top-level `## Schema`, §5).

**Presence and defaults.**

- A field is absent when no value is given. Null is absent.
- `required` means a stored row and an accepted Input MUST hold a value.
- `optional` says explicitly that the field is not required, and it is the default.
- A `default(<value>)` fills an absent field when the row is created or the Input accepted, before `required` is checked. So `required default(A)` never fails for absence. It fills nothing on an update that leaves the field out.
- The default is a literal of the field's type, valid like any value of it: `default(false)` is a boolean, `default(0)` a number, `default(open)` one of the enum's values.
- An empty text or an empty list is a value, not an absence. Refusing it is a constraint (`min(1)`), never implied.
- `required` together with `optional`, a default its type does not admit, and two conflicting types are hard errors.

**Scalar types.** Each says which values are valid; a realization MUST refuse any other before it stores it.

| Type | Valid values |
|---|---|
| `string` | Any text. |
| `number` | Any number. |
| `integer` | A whole number, positive, negative or zero. |
| `decimal` | A number with or without a fractional part, kept exactly as given — never rounded through binary floating point. |
| `boolean` | `true` or `false`. |
| `date` | A calendar date, ISO 8601 (`2026-10-26`). |
| `datetime` | A moment, ISO 8601 with a time zone or offset. |
| `email` | One e-mail address, `local@domain`, with a dot in the domain and no spaces; the domain compares case-insensitively. |
| `url` | One absolute web address beginning `http://` or `https://`. |
| `phone` | One telephone number in international form: `+`, then 7 to 15 digits. Spaces, dashes, dots and parentheses MAY be written; the stored value has none. |
| `file` | A document (below). |
| `duration` | A length of time: a whole number and a unit, `21 days`. The units are `minutes`, `hours`, `days`, `business-days`, `weeks`, `months` and `years` (below). |
| `position` | A point on earth: latitude, then longitude, in decimal degrees, `47.3769, 8.5417`. The latitude lies between -90 and 90 and the longitude between -180 and 180. |

**Bounds.** `min(n)` and `max(n)` bound a number's value and a text's length.

**A type outside the table.** A type outside this table is not an error.

- Tools MUST read `int` as `integer`, `float` as `decimal`, `bool` as `boolean`, and `text` and `uuid` as `string`, and any other word as `string`, reporting it as an unknown type with the nearest defined one (§13).
- For `object`, `array`, `json` and `dict` the nearest defined one is `part(...)`, `list(part(...))` or `map(...)`.
- A bare Record name is no exception: it is read as `string`, and the notice names `ref(<intent>#<Record>.id)` and `part(<intent>#<Record>)`. A reference or a part is written out, never inferred from a name.
- A new scalar type is admitted only with its row in this table — what is valid, and how it is stored where that is not obvious — and its check in every conforming realization.

**References.** A field that points at a row of another Record is a reference.

- *Two positions.* `ref(<intent>#<Record>.<field>)` may stand as the type itself — `owner: ref(team#Member.id)` — or follow a scalar as a modifier — `ownerId: string ref(team#Member.id)`. Both mean the same: the field holds a value of the target field, and that row MUST exist.
- *A promoted entity's own field* is `ref(<intent>#<field>)` — `kunde: ref(company.kunde#id)`. A lowercase field straight after `#` belongs to the intent's own Schema. A capitalized name is a Record facet inside it (`ref(company.kunde#Angebot.id)`).
- *The scalar before it.* A scalar written before `ref(...)` MUST be the target field's type: `quantity: string ref(shop#Product.quantity)` where `quantity` is an integer is a hard error. Values compare as the target field's type.
- *The target.* The Record MUST be declared in the named intent, or the intent itself MUST be a promoted entity for `ref(<intent>#<field>)`. The field MUST exist. A non-Record target or missing field is a hard error. Because every reference names its intent, unrelated Records with the same name (`billing#Record:Account`, `identity#Record:Account`) coexist without collision.
- *Resolution and edges.* A reference resolves like any address (§9) and derives a `refs` edge (§8). `ref(<intent>#<Record>.<field>)` derives a `refs` edge between schema attributes.
- *Deletion.* A row other rows still refer to cannot be deleted while they do, unless the same change deletes or re-points them.

**Lists.** `list(<type>)` holds repeated scalars, references (`list(<Record>)`, a `refs` edge to the Record) or parts (`list(part(<Record>))`). `list(<intent>#<Record>)` holds several references to that Record's rows.

**Parts.** `part(<Record>)` holds one value whose fields are that Record's schema — `result: part(builds#BuildResult)` — and `list(part(<Record>))` holds several, in order.

- *A value, not a row.* A part is a value of that shape kept inside its holder. The holder is a row, an Input, a Returns, a Payload, or an Output's Input or Contains (§4.16). A part need not come from any row: it is not a row of the Record, has no identity of its own, and is created, changed and deleted with its holder.
- *Value rules apply.* A part follows its Record's value rules: the field rules (types, `required`, `enum`, `min`/`max`, nested parts, lists and maps) and the Record's `### Constraints`.
- *Only the named fields.* A part holds only the fields its Record names. A realization MUST refuse any other key, like any invalid value, before it stores or sends it.
- *Row rules do not apply.* The rules of stored rows stay with stored rows: identity, `unique`, `owner`, `!owner`, `### Immutable` and the Record's States (§4.10) do nothing inside a part.
- *References inside a part.* Every `ref(...)` inside a part MUST resolve. In a stored row, a part's references are the row's own, at any depth of nesting. The row is the referrer, so the referenced row cannot be deleted while the part names it (above). The row also inherits the referenced row's ownership restriction as through a field of its own (below).
- *Outside a stored row.* A part in an Input, Returns or Payload, or in an Output's Input or Contains, is checked when it is accepted, sent or handed over and carries no lasting obligation. A row that stores it takes the obligations on.
- *Rows of the Record.* A Record used only as a part — never referenced, read or mutated as a store — has no rows. A Record that is also stored keeps its rows, and its parts are values of the same shape, independent of them.
- *The `holds` edge.* `part(<Record>)` derives a `holds` edge from the schema field that names it to the Record. The field is identified by its facet, its block (`### Schema`, top-level `## Schema`, `### Input`, `### Returns`, `### Payload`, an Output's `### Contains`, or a promoted Output's top-level `## Input` or `## Contains`) and its name, so an Input field and a Returns or Contains field of one name stay distinct. A `holds` edge has cardinality 1 for a `required` field whose part stands alone, 0..1 for an optional one, and 0..* inside any list or map.

**Maps.** `map(<type>)` holds values of one type under keys — `shas: map(string)`, `marks: map(part(cases#CaseMark))`. A key is non-empty text.

- *Keyed by rows.* `map(ref(<intent>#<Record>.<field>), <type>)` keys the values by rows of a Record instead — `quantities: map(ref(shop#Product.id), integer)`, where `shop#Record:Product` declares `id: string required unique`.
- *The key field.* The target field MUST be a scalar field declared `unique`. No uniqueness is inferred from a field's name, so an `id` without `unique` cannot key a map.
- *Each key.* Each key MUST be present, non-empty and resolve to exactly one existing row, and a realization MUST refuse a key that does not. Otherwise it is checked like any `ref(...)`, with the same deletion and ownership consequences.
- *No duplicate keys.* Keys are unique within a map. Reference keys compare by the target field's stored value, so two spellings of one e-mail address or phone number are one key. A realization MUST refuse a duplicate.
- *No order.* A map has no order.
- *Values.* Each value MUST satisfy its type, as a list's items do.
- *Not a list of parts.* A `list(part(...))` whose part carries a `ref(...)` field is a different value — ordered, and allowing repeats unless a Constraint forbids them — not another spelling of a keyed map.

**Edges through containers.** Edges are derived through containers at any depth: `stock: map(ref(shop#Product.id), list(part(shop#Batch)))` derives `refs` to `shop#Record:Product.id` from its keys and `holds` to `shop#Record:Batch` from its values.

**Files.** `file` is a document value, not a storage or parsing mechanism.

- An Operation or an Output invoking a document-reading Capability for a caller's document declares a `file` Input. The Capability reads it, and the Operation or Output owns the resulting commitments (§4.16).
- A document acquired by an external service does not imply a caller upload.
- Parsed text and source addresses remain ordinary values.

**Unique.** `unique` declares that no two rows of the Record may hold the same non-empty value for that attribute.

**The key.** A Record names its key with the modifier `key`: `id: string required unique key`.

- At most one field of a Record carries it.
- The field is declared `required unique` and has an enum type or a scalar type other than `file`. Neither form of `ref(...)` stands in the key position.
- The key belongs to the Record, so stated rows (§4.1), entries (§6), row addresses (§8) and supplied rows (§7) all use this one declaration.
- A field that is merely named `key` is an ordinary field, because a modifier stands after the type.

**Rough dates.** A `date` field with the modifier `rough`, as in `born: date rough`, takes a date written as roughly as it is known, in the spelling of ISO 8601-2. Without the modifier a date is an exact day.

| Written | Means |
|---|---|
| `1969-07-20` | That exact day |
| `1969-07` | Some day in July 1969 |
| `1969` | Some day in 1969 |
| `199X` | Some time in the nineties |
| `1650~` | About 1650 |
| `1984?` | Probably 1984, not sure |

- *A range of days.* A rough date stands for a range of days: `1969` is every day of that year.
- *Comparing.* A comparison (§4.2) holds only when it holds for the whole range, so `1969` is before 1970 and does not fall into a period from 2012 to 2019. Where it holds for part of the range the answer is "possibly" and never a flat yes. A `check` or Criteria line that only possibly holds does not hold.
- *About and probably.* A value marked `~` or `?` compares like the value it names. AIM gives "about" no width, and an answer that rests on such a value says so: `1650~` is before 1700, and the answer is "yes, about". Whoever knows a range writes the range, as in `165X`.
- *Kept as written.* The value is kept as written and no tool widens or narrows it.
- *Seasons.* The season codes of the standard are not taken over.

**Lengths of time.** A `duration` is a whole number and a unit, written as steps and deadlines write one (§4.3, §4.7): `21 days`, `10 business-days`, `6 months`.

- `minutes`, `hours`, `days` and `weeks` compare with one another.
- `months` and `years` compare with one another.
- `business-days` compares only with itself and counts by the `calendar` in reach (§16).
- Any other pair is a hard error, because the answer would depend on the calendar.
- Adding a length to a date is calculation (§4.2).

**Units.** A number field MAY name what it measures with `unit(...)`: `weight: decimal unit(kg)`, `price: decimal unit(EUR, CHF)`.

- *One unit.* With one unit the value is the bare number, `75`, and the shape says what it measures. A unit written beside it is refused.
- *Several units.* With several the value names its own, `19.99 EUR`. A value naming a unit the field does not list is refused.
- *Shown.* Wherever the value is shown, its unit is shown.
- *Comparing.* Only like compares with like (§4.2).
- *Which units.* Money names its currency by ISO 4217 code. Apart from that AIM keeps no list of units: the unit is the owner's word, and two units are the same when they are spelled the same.
- *No conversion.* AIM does not convert. Turning one unit or currency into another is a function the work must be able to do, which is a Capability (§4.8).

**Positions.** A `position` is a point on earth: `47.3769, 8.5417`.

- A place is already a thing, an entry with a name that other entries point at, and "Zürich is in Switzerland" is a link from one place to another. The position says where on earth it is.
- Any tool can put the point on a map, and "what is near here?" is answered exactly from the points (§10).
- Areas, borders and routes have no type.

**Model references.** `modelref(<Type>)` is a field type of a Record with Entries (§6). The field holds one link to a node of the model.

- *Targets.* `modelref(Requirement)` accepts a labelled Requirements item, `aim:<intent>#Requirements[<label>]`. `modelref(<FacetType>)` accepts a facet of that type, `aim:<intent>#<FacetType>:<Name>`, for any facet type of §4. An intent as a whole is not a target in this version.
- *The value.* The value is the full address and the link's label is display text.
- *What it says.* It says that the entry is about that node, explains it or illustrates it. It derives a backlink from the node to the entry and field (§10).
- *Not an edge.* It is a structured reference outside the closed taxonomy of §5, like a requirement's `from`.

**Fingerprints.** `fingerprint(<field>)` names a `file` field of the same Record and holds a code calculated from that file's content, written `<algorithm>:<hex digits>`, as in `sha256:9f2c…`. A tool fills it in and nobody types it (§6).

**Ownership.** `owner` and `!owner` govern row-level ownership and separation of duties:

- **`owner`** marks the referenced actor (`ref(...)`) to whom the row belongs.
  - On creation, the field is bound to the acting caller's identity.
  - At most one field on a Record may carry `owner`. A plain reference to a person does not imply ownership.
  - A row referencing an owned row through one or more `ref(...)` links — its own fields, the parts it holds, its map keys — inherits that row's ownership restriction.
  - All applicable ownership restrictions MUST hold: by default, a caller may see or mutate a directly or indirectly owned row only when every applicable owner matches the caller's identity.
  - Records with no ownership path are not owner-scoped.
  - A different local Persona, including one linked through `plays`, does not widen scope.
- **`!owner`** restricts an otherwise authorized action: the acting caller MUST differ from every applicable owner of the target row.
  - It may follow a backticked role in `### Authz`, qualify an Operation's `### Input` field identifying the target row, or qualify a Record's reviewer `ref(...)` field.
  - A field-level restriction applies when that Input is supplied or that Record field is written. An Authz restriction applies when acting under that entry.
  - It never grants visibility or mutation rights.
  - To permit action on others' rows while forbidding self-action, declare both an explicit cross-owner grant and `!owner`.

**Explicit cross-owner scope.** `cross-owner(<Record-address>)` is a modifier, not a graph verb. `<Record-address>` is the Record's full address, `<namespace>#Record:<Name>` or a promoted entity's `<namespace>`, without `aim:`. It MUST resolve to a Record. Repeat the modifier to name several Records. It is permitted only:

- After a backticked role on an Operation or Process's `### Authz` entry. It lifts ownership scope only for that operation's declared `reads` or `mutates` targets named by the modifier, while acting under that entry. It grants no permission beyond the entry's Authz and no scope to invoked operations.
- After a Persona's `[accesses](aim:<View-address>)` edge in `### Access`. It qualifies that edge and lifts ownership scope only for the named Record among that View's declared `reads` targets. It grants no scope to other Views or to operations exposed or invoked by the View; each operation still needs its own authorization and scope.

A grant applies only to rows of its named Record, including that Record's inherited ownership restrictions. It grants no access to related Records, ancestors or descendants. It is not inherited through `ref(...)`, `plays`, or other graph edges. The named Record MUST be a declared read/mutation target of the operation or a declared read target of the accessed View, respectively.

```markdown
### Authz
- `claims#Persona:Approver` cross-owner(claims#Record:Claim) !owner

### Access
- Review claims — [accesses](aim:claims#View:Claims) cross-owner(claims#Record:Claim)
```

The first entry permits the Approver to act on others' claims under that operation's rules. The second permits that Persona to see claims across owners in Claims; it does not authorize approval.

**Older spellings.**

- The short spellings `ref(<Record>.<field>)`, `part(<Record>)` and `list(<Record>)` are deprecated (§8).
- The deprecated `ref(<Record>.<field>)` resolves from the containing intent (§9).
- In `cross-owner(...)`, the short `#Record:<Name>` is deprecated (§8).

## 4. Facets

A facet is a node of the graph. It is declared by a heading, `## <FacetType>: <Name>`, and its properties stand in H3 sub-blocks. AIM 7 has sixteen facets: Record, Operation, Process, Persona, View, Event, Trigger, Capability, Style, State, Knowledge, Organisation, Project, Software, Service and Output. Each is specified in its own block below, and every block has the same parts, so a facet can be read, implemented and reviewed on its own.

**What a facet means, and what nesting means.**

- **A facet** expresses what something means, and it does so consistently at any level of the tree: a department is an Organisation whether it is the root of a workspace or three levels down.
- **Nesting** expresses how things fit together in the model: where a thing is described and how widely it is shared (§8). It expresses nothing else: not that one organisation is a member of another, and not whether a software is built on its own.
- **What may hold what** is guidance for the authoring tool. It is never a rule the language or an engine enforces.

### 4.0 How a facet is specified

Every facet block has these parts, in this order:

| Part | Says |
|---|---|
| **Purpose** | What the facet commits to, in one paragraph, and what it does not. |
| **Form** | Its heading and every sub-block: required or optional, and the grammar of each. |
| **Example** | One complete facet as it is written in a `.aim` file. |
| **Edges** | The verbs it declares and the verbs that reach it (§5). |
| **Rules** | Its normative rules. |
| **Not valid** | Present only where something makes a model invalid and no rule of the block says so. |

**Rules every facet shares.**

- **The name.** A facet name matches `[A-Za-z][A-Za-z0-9_]*` (§3).
- **Summary first.** The heading is immediately followed by `### Summary`, or by `### Label` and then `### Summary` (§3). The exception is a Persona used only for role and access.
- **Sub-blocks are properties.** A facet's sub-blocks are its properties. They belong to the node and are not nodes themselves. A schema is a property, not a node.
- **Label and Bindings.** A facet may carry an inline `### Label` (§3) and an inline `### Bindings` property (§12).
- **Listed sub-blocks.** Only State restricts its sub-blocks to the listed ones (§4.10). Its Label and Bindings stay allowed.
- **Promotion.** A facet whose substance outgrows its host may become an intent of its own.
  - Record, Persona, Process, Organisation, Project, Software and Output have defined promoted forms, given in their blocks.
  - A Service is connected instead (§4.15).
  - A Capability is answered, never promoted (§4.8).
  - The promoted intent is addressed by its namespace. Its label becomes the intent's H1.
  - Promotion rewrites every reference to the facet (§14).
  - Facets of one name that are one real thing (a `Record: Kunde` and a `Persona: Kunde`) are promoted together into one intent.

**Adding a facet.** A future facet is admitted only when it meets all three of these tests:

1. It expresses a commitment no existing facet and property can carry without losing checkability.
2. It has demonstrated need in real models.
3. It arrives complete: a block with every part above; its node type; the verbs it declares and receives, added to the closed taxonomy in §5 with their endpoints; any derived structure; its place in traceability (§9) and whether it can be an orphan; its diagnostics; and a statement that existing models stay valid.

- **The proposal.** A future facet arrives with a proposal under `proposals/` that records the evidence.
- **A new sub-block.** A new sub-block of an existing facet meets the same tests and is added to that facet's block.
- **Removing.** Removing a facet is breaking.
- **Renaming.** Renaming a facet keeps its old spelling readable everywhere the type is written, as below.

**Deprecated facet spellings.** In 6.3 Flow became Process and Contract became Operation. The old spellings are read as the new ones in every place the type is written:

- the heading (`## Flow:`, `## Contract:`);
- a promoted process's `nature: flow`;
- a sibling facet file's `kind: flow` or `kind: contract` with its file name (§17);
- the type in every address: an edge token `aim:<intent>#Flow:<Name>`, a bracketed reference, a backticked address, a deprecated short form, a Decides outcome `<intent>#Contract:<Name> → Decides[<Label>]`;
- a deprecated binding sidecar's `## Bind: Flow:` or `## Bind: Contract:` (§12).

The rules for these spellings:

- **Reading and writing.** Tools MUST read each as its new form, and a conforming reader needs no write to do so. Authors MUST NOT write them.
- **A provider intent.** A connected provider intent (§7), which only its own source changes, is read under the old spellings as it is and never rewritten.
- **Migration.** Migration MAY rewrite them when it opens a model (§14).
- **Hard errors.** A `Flow:` and a `Process:`, or a `Contract:` and an `Operation:`, of one name in one intent are a hard error (one duplicate). A `kind: flow` and a `kind: process` file, or a `kind: contract` and a `kind: operation` file, for one intent are a hard error (one sidecar).
- **Informational.** A deprecated spelling awaiting migration is informational. It is never raised on a provider intent.

**Work.**

- **What the word means.** Where this specification says *work*, it means an Operation or a Process. An Operation is one unit of work. A Process is work done in order.
- **Never an endpoint.** *Work* is a word of the prose and never an endpoint. The rows of §5 name who may declare each edge, facet by facet, and no sentence that says *work* narrows a row.
- **The word *contract*** stays an ordinary word. An operation's contract is its Expects and Ensures together, and a Record of real contracts is `## Record: Contract`.

### 4.1 Record

**Purpose.** A Record is passive data that operations store, read or process: an order, a claim, a team member. It declares what one row holds and the rules on that data. It never acts; an actor is a Persona. Its rows live in the running system, are stated in the model (*Stated rows*, below) or are written as entries in AIM (§6).

**Form.**

| Sub-block | Required | Holds |
|---|---|---|
| `### Summary` | yes | What one row is. |
| `### Schema` | expected | A `schema` fence, one field per line, in the grammar of §3 (types, `required`, `unique`, `key`, `min`, `max`, `default`, `enum`, `ref`, `list`, `owner`, `!owner`, `label`, `rough`, `unit`). |
| `### Constraints` | no | Data constraints, one bullet each, and at most one `check` fence (below). |
| `### Immutable` | no | Fields that never change after the row is created, one bullet each. |
| `### Rows` | no | The rows the owner fixes: one bullet per row with its key, optional words and nested value bullets (below). |
| `### Period` | no | The two fields that say from when until when a row holds, and optionally that only one row holds at a time (below). |
| `### Replaces` | no | One bullet: the backticked field through which a newer row names the row it replaces (below). |
| `### Complete` | no | What the owner declares complete: `the collection`, a backticked list field, or both (below). |

**Example.**

````markdown
## Record: Claim

### Summary

One expense claim an employee submits.

### Schema

```schema
id: string required unique key
ownerId: string required ref(team#Member.id) owner
amount: number required min(0)
status: enum(Draft, Submitted, Approved) required
note: string
items: list(claims#ClaimLine)
```

### Constraints

- A claim's amount equals the sum of its lines.

### Immutable

- `ownerId`
````

**Edges.** A Record declares no edge verbs. Its schema derives `refs` from each `ref(...)` — a field, a modifier or a map key — and each Record-valued `list(...)`, and `holds` from each `part(...)` at any depth of lists and maps (§3). It receives `reads` and `mutates` from Operations, Processes and Views, `reads` from Outputs, and the derived `governs` from a State.

**Rules.**

- **One schema grammar.** The same schema grammar serves every data property: Operation `### Input`, Event `### Payload`, an Output's `### Input` and `### Contains`, and a promoted entity's top-level `## Schema`.
- **Ownership.** Ownership is declared on the schema: `owner` marks the field naming whose row it is, rows referencing an owned row inherit its owner, and `cross-owner(...)` and `!owner` state the exceptions (§3).
- **A Record that holds itself.** A Record MUST NOT hold itself through `required` single parts alone, directly or through other parts, since no finite value satisfies it. An optional part, a list or a map ends the cycle with an absent or empty value.
- **Checked constraints.** `### Constraints` MAY hold one `check` fence, alone or beside bullets.
  - *Form.* The fence holds one comparison per line in the grammar of §4.2 (*Comparisons*). The operands are the Record's own fields. A block that holds only the fence is not empty.
  - *When the lines are checked.* Every create and every update MUST satisfy every line before it commits (§4.2). The lines are evaluated on the row as it will stand: on a create after `default(...)` values are filled, on an update with the written fields laid over the stored ones. A delete evaluates nothing.
  - *No clock.* The clock MUST NOT appear. A rule true only at the moment of writing is a precondition of the operation that writes and belongs in its Expects: `arrival >= today` on a Reservation would refuse the check-out the day after arrival.
  - *Parts.* A part is held to its Record's lines wherever its value rules are checked (§3).
  - *The bullets.* The bullets stay prose and are judged, never claimed as proven. A bullet written as a check line is replaced by it, not kept beside it: `departure > [arrival]` checked, "the nights are every date from the arrival to the day before the departure" judged.
- **One source of rows.** A Record's rows have one authoritative source: its `### Rows`, its Entries (§6) or the running system. A Record with Rows has no Entries. A Record with Entries takes no further rows from a seed file or a second writable store.
- **Stated rows.** `### Rows` states a closed set that the owner decides and the running system only reads: the levels of a game, the tiers of a plan, the moods a diary offers. A Record with Rows declares a key (§3).

  ```markdown
  ### Rows

  - **Free** — Fast models only.
    - pricePerBuilder: 0
    - peopleIncluded: 2
  - **Standard**
    - pricePerBuilder: 9.99
    - peopleIncluded: 10
  ```

  - *Form.* Every top-level bullet is `- **<key>**` or `- **<key>** — <words>`. The key names one row and has its field's type. The words say what the row is for and may continue on indented lines. Each nested bullet states one value, `- <field>: <value>`. The field MUST be a field of the Record's Schema other than the key, and its type MUST be an enum, a scalar other than `file`, or a `ref(...)` to one of those. A row MUST NOT state the same field in two value bullets. Parts, lists, maps and files are assembled outside the block (§7). A misplaced or repeated Rows block is a hard error.
  - *Literals.* Booleans are `true` or `false`. Numbers use JSON number syntax, and decimals are read exactly. Text-like and enum values are a JSON-quoted string or a bare token of ASCII letters, digits, periods, underscores and hyphens. A date, a `duration`, a `position` and a number with its unit are written as §3 writes them. A reference is written as a literal of its target field or, where the target field is the target Record's key, as a link to the row, `[<label>](aim:<row address>)`. A tool keeps the form the author wrote. A blank value and a bare `null` state nothing and are errors. The quoted `"null"` is a text.
  - *A closed set.* The keys are the complete membership of the Record. Adding, removing or changing a stated key or value is a change to the model. The running system may load and cache the rows. They are read-only there, fields filled outside the model included. A `mutates` edge to the Record is a hard error. A fact about a row that changes while the system runs lives in another Record that references it. A State (§4.10) cannot govern a Record with Rows. `### Immutable` adds nothing to one. Ownership and `cross-owner(...)` apply to its reads as to any Record (§3).
  - *Typed equality.* Keys and stated values compare as their Schema types. The order of the rows means nothing unless a field or a requirement gives it a meaning.
  - *Assembly by key.* A row may leave fields unstated, which the realization makes or the owner supplies (§7). Assembly starts one row per stated key and joins made and supplied fields onto it by key. Each source contributes at most one fragment per key. A fragment names only a stated key and fields its row leaves unstated. Each unstated field has at most one source. After joining, Schema defaults fill absent fields, and the completed rows are checked as stored rows.
  - *Checked in the model.* Key and value literals are checked against their types, `min`, `max` and `enum`, and `unique` among the stated values. A `check` line of Constraints is evaluated where all its operands are stated, and on the completed row otherwise. A reference is proved when a target row states a matching value. A missing match is an error only when the target has Rows and every target row states the referenced field. Otherwise it is decided on the completed data.
  - *Words are judged.* A row's words are judged, never checked. A guarantee that must be traced, such as a level in which nothing can hurt the player, is a requirement. A row is outside traceability and is never an edge endpoint. Its address is the row address of §8.
- **Periods.** What holds only for a while is a row with a start and an end: a home, a price, a membership, a job. A single field carries no time, which keeps every check free of the question "at which time?". `### Period` MUST name the two fields, which are fields of the Record and both `date` or both `datetime`. A row may leave the end empty:

  ```markdown
  ### Period

  - from `since` until `until`
  ```

  - *When a row holds.* A row holds from its start through its end, both included. With no end it still holds. It holds from its start also when it was written down earlier.
  - *Derived from the dates.* Which rows hold on a given day, and which hold now, follow from the dates alone. Nothing is linked by hand.
  - *Dated rows of other Records.* A row of another Record that carries a date falls into every row whose period contains that date: a diary entry of 1 May 2015 falls into the home in Zürich. This is derived and never written (§10).
  - *One at a time.* A second bullet, `- one at a time` or ``- one at a time per `<field>` ``, says that only one row may hold on a day, for the Record or for each value of that field. The `per` field MUST be a field of the Record. The next period ends the one before it: the older row holds until the day before the newer one starts, and its end need not be written. A written end that reaches past the next start disagrees and is reported. Two rows that start on the same day cannot be put in order and are an error.
  - *Rough dates.* With a rough start or end (§3), "holds on that day" may be only possible, and an answer says so.
- **Replacing.** `### Replaces` names one field, a `ref(...)` to the Record's own key or a list of such references. A row that names another row in it replaces that row. The older row stays exactly as it was: it is not edited, marked or deleted.
  - *Without a period.* What holds now is every row that no other row replaces, from the moment the newer row is written.
  - *With a period.* The dates decide what holds and the link gives only the order. "What is the newest written?" and "what holds on a day?" are two questions and may have two answers. A price of €12.99 from 1 December, written down on 20 November and naming the price of €9.99 it replaces, is the newest written from 20 November on, and €9.99 holds through 30 November.
  - *Several rows.* A row may replace several. An older row that two newer rows replace is reported, because it may have been split. A row that replaces itself through a chain is an error.
  - *Not ruling out.* Replacing is not ruling out. A claim that was ruled out is replaced by nothing. How settled a claim is, is a field of its own (§6).
- **Complete.** A list is open unless its owner says otherwise. An absence in an open list is "not recorded" and never a "no". `### Complete` holds `- the collection`, a backticked list field of the Record, or both.
  - *What a complete list answers.* With the homes of a diary complete, "did you ever live in Basel?" is answered "no". With the `attendees` of a meeting complete, "was Ben there?" is answered "no". An answer says which of the two it means. A check that rests on an absence holds only where the list is complete.
  - *The whole list at hand.* A "no" also needs the whole list at hand: a reader that holds only part of a collection answers "not in what I have".
  - *Stated rows.* The keys of `### Rows` are always complete and need no mark.
  - *The owner's statement.* Saying that a list is complete is a statement by its owner, and a tool never adds it.
- **A promoted Record.** A Record whose data and lifecycle warrant a file becomes an intent.
  - Its schema becomes top-level `## Schema`.
  - Its other properties (`Constraints`, `Immutable`, `Rows`, `Period`, `Replaces`, `Complete`) become top-level sections of the same name.
  - The intent MAY carry `nature: record` as a hint.
  - Its operations co-locate as facets.
  - The intent is the entity, read, mutated and referenced by its namespace (`[reads](aim:company.kunde)`, `ref(company.kunde#id)`, §5).
  - The intent MUST NOT contain a same-named Record facet.
- **Older spellings.** `## Schema: <Name>` is the deprecated spelling of this facet and is read as a Record.

### 4.2 Operation

**Purpose.** An Operation is one unit of work: what a caller supplies, who may perform it, what must hold before, what is guaranteed after, what it returns and what it decides. A decision is an Operation that reaches a judgment. An Operation states outcomes, not mechanics. It is the unit an automation automates; it is never a process.

**Form.**

| Sub-block | Required | Holds |
|---|---|---|
| `### Summary` | yes | The operation's purpose. |
| `### Input` | no | Caller-supplied fields, in a `schema` fence. |
| `### Authz` | no | Who may perform it: bullets naming roles by backticked address, each optionally followed by `cross-owner(<Record-address>)` and `!owner` (§3). |
| `### Expects` | no | Preconditions, one bullet each, and at most one `check` fence (below). |
| `### Ensures` | no | Postconditions and their edges, one bullet each. |
| `### Returns` | no | Externally returned results, one bullet each; the returned fields MAY come first, in a `schema` fence. |
| `### Decides` | no | Outcomes of a judgment, one bullet each (below). |
| `### Criteria` | no, only beside `### Decides` | The rules that decide among the outcomes, in a `criteria` fence (below). |

**Example.**

````markdown
## Operation: ApproveClaim

### Summary

An approver approves or returns another person's submitted claim.

### Input

```schema
claimId: string required ref(claims#Claim.id) !owner
```

### Authz

- `claims#Persona:Approver` cross-owner(claims#Record:Claim) !owner

### Expects

- The claim is submitted.

### Ensures

- The claim records who decided and when — [mutates](aim:claims#Record:Claim), [satisfies](aim:claims#Requirements[FAIR])

### Decides

- **Approved** — every line is supported by a receipt — [emits](aim:claims#Event:ClaimApproved)
- **Returned** — any line lacks a receipt — [invokes](aim:claims#Operation:CorrectClaim)
````

**Edges.** Declares `reads`, `mutates`, `emits`, `invokes` (to an Operation, Process, promoted process or Capability), `consults` (to Knowledge), `subscribes` and `satisfies`, inside Ensures or Decides bullets, and `produces` and `needs` (to an Output, §4.16) inside Ensures or Expects bullets. Receives `exposes` and `invokes` from Views, `invokes` from Personas, Processes and Operations, `triggers` from Triggers, and the derived `moved-by` from a State.

**Rules.**

- **Authz.** `### Authz` is permission, never performance. Who performs the operation is resolved as in §4.4.
- **Outside information.** An operation acquiring outside information MUST declare the Capability it invokes or the Knowledge it consults (§4.11). A source named only in prose is insufficient.
  - For a caller's document, the Input declares a `file`. The reading Capability parses it, and the Operation owns the resulting records.
  - Acquisition may be a collect operation that invokes the Capability and mutates a Record. Later operations read that Record.
- **Decisions.** The Operation (or Process) that reaches a judgment is the decision. There is no separate decision node.
  - Each `### Decides` bullet is one outcome. It holds a bold label, the criteria after the dash, and the outcome's edges (`emits`, `invokes`, `mutates`, `reads`).
  - The label is in the facet-name grammar and is addressable as `<intent>#Operation:<Name> → Decides[<Label>]`.
  - The criteria are normative: the realization MUST decide on them.
  - The block MUST hold at least two outcomes. It asserts that they are mutually exclusive and exhaustive.
  - The block derives one exclusivity group for the node. Operations that share a step without such a decision are joint work.
- **Criteria.** A `### Criteria` block states the decision as rules, one per line, in a `criteria` fence:

  ```text
  <Outcome> when <comparison>[, <comparison>]...
  otherwise <Outcome>
  ```

  - *The whole decision.* When present, the block is the whole decision: the rules decide, completely. The outcomes' bullets keep their words. Those words explain and MUST NOT add a condition the rules do not test.
  - *What the rules cannot express.* A judgement the rules cannot express is made first, by an earlier human or automated operation, and arrives as an Input the rules read.
  - *Conditions.* Each condition is a comparison (below) over the operation's Input fields, the rows its `ref` Inputs name and the clock: `FreeOfCharge when now < [reservationId.cancellationDeadline]`. The conditions of one rule all hold together.
  - *Outcomes.* An outcome that a rule names MUST be declared under `### Decides`.
  - *Order.* Rules are tried in order, and the first that holds decides.
  - *`otherwise`.* `otherwise` is required, so no combination of inputs is left unmatched. A block with no `otherwise`, or with two, is a hard error.
  - *On a Process.* A Process that decides (§4.3) carries Criteria the same way.

  ```criteria
  Red when wind > 30, clearingForecastInWindow = false
  Red when lightningWithinTenMiles = true, clearingForecastInWindow = false
  otherwise Green
  ```
- **Comparisons.** A comparison is `<left> <op> <right>` with `=`, `!=`, `<`, `<=`, `>`, `>=`, `in (a, b, c)` or `between a and b`, or `<operand> present` / `<operand> absent`. Every comparison names at least one field.
  - *Operands.* Its operands are:
    - *A literal* of the other side's type, on the right only. A bare word on the left is a field name, so a misspelled field is an error, never a comparison of two values.
    - *A field of the place.* This is an Input field of the operation; in Constraints, it is a field of the Record or of the Output's Contains (§4.1, §4.16). It is written by its bare name on the left and in brackets on the right: `status = open` compares with the value `open`, `status = [open]` with a field named `open`. Brackets are allowed on the left and mean the same: `[departure] > [arrival]`.
    - *A field of the row an Input names*, `[<input>.<field>]`, on either side. `<input>` is an Input field declared `ref(...)` whose target field is declared `unique`, so it names exactly one row, or an Input field declared `part(<Record>)`, whose value is in hand and needs no lookup. `<field>` is a field of that Record. The path is one step, never longer.
    - *The clock*: `now` beside a `datetime`, `today` beside a `date`. `now` is an instant. `today` is the date in the `timezone` in reach (§4.7), and without one a realization MUST NOT evaluate it. On the left, a field of the place named `now` or `today` is that field, and the clock is meant only where no such field exists. On the right, a bare `now` or `today` beside an enum or a string is the literal it was.
  - *Types.* Both sides MUST be of one type.
    - `integer`, `number` and `decimal` compare with one another, exactly.
    - `date` compares with `date` and `datetime` with `datetime`, never one with the other. Two `datetime` values compare by instant, whatever offset each was written with.
    - An enum compares with a literal of its values or with a field whose enum has the same set of values, enums being declared inline (§3).
    - Two `ref(...)` fields compare with `=` and `!=` only, and only when they reference the same field of the same Record (`reviewerId != [ownerId]`).
    - `<`, `<=`, `>`, `>=` and `between` apply to numbers, `date`, `datetime` and `duration` (among the units that compare, §3) and to nothing else. `between` and `in` take their operands in the same way.
  - *One evaluation* reads one consistent set of row values and the clock once.
  - *Evaluated or judged.* A line in a `criteria` or `check` fence is evaluated, never judged. A prose bullet is judged, never claimed as proven.
  - *A check line.* A `check` line MUST NOT hold more than one comparison and MUST NOT name an outcome.
  - *An absent operand.* `present` and `absent` are always evaluated. Any other comparison with an absent operand depends on where it stands:
    - In Criteria it does not hold.
    - In an Expects check its line is not applied when an optional Input field of the operation itself is absent. Its line does not hold, so the operation is refused, when a field read through `[<input>.<field>]`, from the row a `ref` names or from a part that was given, is absent.
    - In a Constraints check its line is not applied (`closedAt >= [openedAt]` says nothing while `closedAt` is empty).
  - *A value that follows from others* is still written by the work that maintains it. A check may state what it must equal (*Calculation*, below), and the comparison reads the stored field.
  - *The reference a comparison derives.* A comparison that names a field derives a structured reference from the facet or intent that holds it to that field, outside the closed taxonomy of §5, like a State's moves.
- **Calculation.** Either side of a comparison MAY calculate, in a `check` fence and in Criteria:

  ```check
  amount = sum(lines.amount)
  count(attendees) >= 3
  due <= filedOn + 21 days
  born + 18 years <= today
  ```

  - *Arithmetic.* `+`, `-`, `*` and `/` over the operands of a comparison, with parentheses. An operand of arithmetic MUST be a number, a date, an instant or a length of time. Inside a calculation a literal may stand on either side, and every comparison still names at least one field.
  - *Adding up a list.* `sum(<list>.<field>)` and `count(<list>)` run over the items one row holds, whether they are parts or references. `<list>` MUST be a list field of the place. The field that `sum` adds up MUST be a number.
  - *Time.* A `date` or a `datetime` plus or minus a `duration` (§3) gives a date or an instant. One date minus another gives a length in days, which compares with `days` and `weeks` and never with `months` or `years`; an age is therefore checked from the birthday forward. Where adding `months` or `years` lands on a day that does not exist, the result is the last day of that month: 29 February 2008 plus 18 years is 28 February 2026, and 31 January plus one month is 28 February, or 29 February in a leap year. Whoever counts differently, as some laws do, states that as a rule of their own.
  - *Units.* Only values of one unit are added, subtracted or compared (§3). A value with a unit is multiplied or divided by a plain number only. Two fields whose shapes name different units are a hard error. Where a value brings its own unit, a line that meets another unit is refused when it is evaluated.
  - *Exactness.* Decimals are calculated exactly, as they are compared. A line that would divide by zero does not hold. A rough date (§3) calculates as its range, and a line that only possibly holds does not hold.
  - *Still yes or no.* AIM fills no value in. The line checks that the value written down equals what the calculation gives. There is no calculation across several rows, no average, and no function of the owner's own.
- **Checked preconditions.** `### Expects` MAY hold one `check` fence, alone or beside bullets, with exactly one comparison per line and operands as in Criteria. Every line must hold: `tageBeantragt <= [mitarbeiterId.tageUebrig]`.
  - *Refusal.* A realization MUST refuse the operation when a line does not hold, before it performs anything, and say which line.
  - *After permission.* A realization evaluates the check only after `### Authz` and the ownership rules of §3 have passed, so a refusal never tells a caller about a row the caller may not read.
  - *One commit.* The values a check read and the writes the Operation makes commit as one: no other write to those values falls in between.
  - *Guarding, not reserving.* A comparison guards; it does not reserve. Two vacation requests cannot use the same days only because the operation that passes the check also takes the days off the balance in the same act, which is its Ensures. A check on an operation that changes nothing it compared with protects nothing against the next caller.
  - *The bullets* are further preconditions, judged as before. A bullet written as a check line is replaced by it, not kept beside it.
- **Every write is held to the model.** However a realization performs an Operation — coded, interpreted or by a runtime engine — every Record mutation it makes MUST satisfy the Record's `### Schema`, the `check` lines of its `### Constraints` (§4.1) and `### Immutable`, ownership (`owner`, `!owner`, grants; §3) and every State governing the Record (§4.10), before it commits. When a realization may perform an Operation without interpretation is realization, not language.

### 4.3 Process

**Purpose.** A Process is one piece of work done in order: its steps, where it branches, where it waits and what happens on error. It puts operations in order and does not replace them. Work that happens at different times for different reasons is separate operations, not one Process.

**Form.**

| Sub-block | Required | Holds |
|---|---|---|
| `### Summary` | yes | What the work achieves. |
| `### Steps` | expected | A numbered list, one step per item. |
| `### Ends on` | no | The Events that end the case wherever it is, one bullet each: `- [<intent>#Event:<Name>]`. |
| `### On Error` | no | Error handling, one bullet each. |
| `### Input`, `### Authz`, `### Expects`, `### Ensures`, `### Returns`, `### Decides`, `### Criteria` | no | As on an Operation (§4.2). |

**Example.**

```markdown
## Process: ReimburseClaim

### Summary

From a submitted claim to the payment.

### Steps

1. The approver reviews the claim — [invokes](aim:claims#Operation:ApproveClaim) — continues: Approved
2. Finance pays it — [invokes](aim:claims#Operation:PayClaim)
3. The employee is told — [emits](aim:claims#Event:ClaimPaid)

### On Error

- A failed payment leaves the claim approved and is retried the next day.
```

**Edges.** Declares `invokes`, `reads`, `mutates`, `emits`, `consults`, `subscribes`, `produces` and `needs` (to an Output, §4.16) in its steps, and `satisfies`. Receives `invokes` and `triggers`. Its callers are derived, so a Process MUST NOT author an inverse `### Trigger` block.

**Rules.**

- **A step.** One numbered item is one step. The position sets the order, not the written number, and an indented line continues the step above. A step's edge tokens are its operations, and they keep the step's index in the graph.
  - A step with no edges is a human step. Every projection of the process shows it.
  - A step whose only operations are `reads`, `mutates` or `emits` is work the Process performs itself.
  - `produces` and `needs` say what a step makes and what it cannot be done without (§4.16). They add no operation: a step whose only edges are these, with or without `satisfies`, is performed as a human step is.
  - A step's words describe the work. They never say who performs it (§4.4).
- **Several operations in one step.** Several `invokes` in one item are one step. Where they are the outcomes of a deciding Operation, they are exclusive alternatives. Otherwise they are unordered joint work that MAY run concurrently. The next step is the join, and it MUST NOT begin until all of them have completed. A parallel branch of several steps is a Process or a promoted process of its own, invoked jointly from one step. Joint work is not a race: where "the first to complete wins" between operations is a real commitment, the step's words say so and the procedure is verified (§12). A race between Events is a wait on several Events (below).
- **Which step comes next.** The next step follows by position, whatever was emitted, unless a decision ends the branch (below). Only `invokes` and `emits` lead along an edge; `reads`, `mutates`, `produces`, `needs` and `satisfies` lead nowhere. An emitted Event continues the branch at its subscribers: a subscriber without steps is the next work on that branch, and a subscriber with steps starts a separate run. An Event nobody subscribes to ends only that branch. A Trigger anchored on an Event arms a timer and continues nothing.
- **A step that decides.** A step that invokes a deciding Operation (§4.2) carries the fork. After its edges it names the outcomes that go on to the next step: `2. Check feasibility — [invokes](aim:sales#Operation:CheckFeasibility) — continues: Feasible, SpecialCut`.
  - A named outcome goes on to the next step after its own consequence. Several MAY continue. Each name MUST be an outcome of the decision the step invokes.
  - An outcome that is not named ends with the consequence in its own Decides bullet.
  - `continues:` MAY be left out when exactly one outcome declares no consequence of its own. That outcome continues.
  - The next step is the continuation of an outcome that goes on, so that outcome MUST NOT declare it again.
  - If no outcome goes on, the deciding step is the last, and every outcome declares its continuation.
  - The names stand on the step and not on the Operation, because one decision may continue differently in another process.
- **Loops.** A correcting outcome may invoke work that invokes the decision again. That cycle is legal while the Steps stay the linear procedure. A correction loop is bounded by a deadline Trigger that is anchored on the start of that part of the process and disarmed by the confirming Event. When it expires it ends the loop: it invokes work that leaves the loop or disables the correction. A deadline that only reminds or escalates does not bound a loop. A bound by count has no syntax of its own: a Record that counts the attempts and a deciding Operation with the outcomes Retry and Exhausted express one.
- **A Process before its steps.** A Process with a Summary and no Steps is named and not yet worked out. It has an address and may be invoked from a step, as a sub-process handed over by name. Its missing steps are the informational condition of a sequence with no entry point, never a hard error.
- **A case.** A case is one run of one process, whether a Process facet or a promoted process. An entry starts it: an actor that invokes the process, a Trigger, a subscription at its top, or a step of another case that invokes it.
  - *A child case.* A step that invokes a process starts a child case. The step completes when the child case ends, which is the join. A run that an emitted Event starts, at a subscriber with steps, is a separate case and not a child.
  - *An item run.* A step over a collection (below) runs once for each item. The record of an item run is the item, a row or a list element. An item run is part of its case and not a case of its own.
  - *The Events of a case.* An Event belongs to the case that emitted it and to every case whose record its Payload references (§4.6). An Event that references an item's row belongs to that item run. A child case's Events are the child's, unless they reference the parent's record.
  - *One order.* A case keeps every Event that belongs to it in one order, from the moment the case began. The realization keeps that order, and "first" always means first in it. Two Events that arrive together are ordered by it and are never left undefined.
  - *Hearing and taking.* A wait hears every Event of its case since the case began. It takes the earliest Event of its kind that belongs to it and that no other wait of the same case has taken. A wait that is reached after its Event arrived therefore takes it and continues at once, and two waits in a row on the same Event wait for two occurrences. The wait of an item run takes Events of its item. Two waits that nothing tells apart take in the order in which they were reached.
  - *Ending.* A case ends by its last step, by an Event under `Ends on`, or by a deadline's `### Ends` (§4.7). The child cases its steps started end with it at once, and their own cleanup does not run. Item runs end with their step. A step of the ended case that waited for a child case never completes. A separate case that an Event started is not affected. A child case that ends by itself, by its last step, its own `Ends on` or its own deadline, completes the parent's step.
- **Waiting for an Event.** A step whose operation is `subscribes` is a wait. The case pauses at that step and continues with the next step when the wait takes an Event of its case: one emitted within the case, or one that carries the case's own record in its Payload, as a `ref(...)` to it. A subscription outside Steps, at the top of a Process or an Operation, is an entry point that starts a run. `needs` is no wait: a step that waits for an Output to arrive waits on the Event that announces it (§4.16). A wait has no limit of its own; a deadline Trigger states one (§4.7). Keeping a wait alive over time is realization.
- **A race.** A step with several `subscribes` waits for whichever of those Events comes first in the case's order. That Event ends the wait, and this step does not take the others: `4. Wait for the customer's answer — [subscribes](aim:sales#Event:OfferAccepted), [subscribes](aim:sales#Event:OfferDeclined) — continues: OfferAccepted`.
  - After the edges, `— continues: <Event>, <Event>` names the Events that go on to the next step, by facet name, as outcomes are named. On any waiting step, each name MUST be an Event the step subscribes to.
  - An Event that is not named ends the case at this step. Its own subscribers elsewhere still run, as for any Event.
  - Without `continues:`, every one of the Events goes on: the step waited for any of them.
  - A race is for two things of which the case wants the first. An Event that must end the case whenever it comes is written once, under `Ends on`, and never as a side of a race. A race takes the earliest Event in the case's order, so a readiness that came early would win over a cancellation that came later.
- **What ends a case.** `### Ends on`, or top-level `## Ends on` on a promoted process, lists Events in the form a Trigger's Schedule uses, `- [<intent>#Event:<Name>]`. Each address MUST be an Event. When such an Event of the case takes its place in the case's order, the case ends there, at once: nothing after it in the order advances the case, no step starts, no wait completes, and its child cases and item runs end with it. There is no cleanup. The Event is already the record of what happened, and whatever must happen on ending is the work of its emitter. The `Ends on` of a child case ends the child only; a parent that must end on the same Event lists it itself. A deadline that ends the case is §4.7, `### Ends`.
- **A step over a collection.** `<n>. <words> — for each [<address>] [as <input>] [in order | in order of [<field address>]] — <edges>`.
  - *The collection* is a list field of the case's record, `<intent>#Record:<Name>.<field>` with a `list(...)` type, or a Record whose rows belong to the case, `<intent>#Record:<Name>` with a `ref(...)` field to the case's record. Where that Record references the case's record through several fields, the one that is meant MUST be named: `[<intent>#Record:<Name> by <field>]`.
  - *Selected once.* The items are what the collection holds when the step starts. Items added or removed afterwards do not join or leave the step.
  - *Order.* A list keeps its order. Rows have none of their own, so a step over a Record runs its items jointly unless `in order of [<field address>]` names a field of that Record to order by. `in order` alone is allowed for a list and is a hard error for a Record. A list of parts may also be ordered `in order of` a field of the part.
  - *Jointly or one after another.* Items are joint work and MAY run concurrently. `in order` and `in order of` run them one after another. The next step is the join: it begins when every item has completed. An empty collection completes the step at once.
  - *The item is the operation's Input.* The invoked operation declares an Input field that takes the item: a scalar of the list's item type, a `ref(...)` to the Record's row, or a `part(...)` of its shape. Where several Input fields could take it, `as <input>` MUST name the one that does. With exactly one, `as` may be left out.
  - *A failed item fails the step.* The step is complete when every item has completed. An item whose operation did not complete leaves the step incomplete, and the case goes to `### On Error` for that step, as for any failed step.
  - *Completed is not succeeded.* The outcomes of a deciding operation apply to each item and carry their consequences for that item. They never branch the case, so `continues:` MUST NOT be written on a step over a collection. What the outcomes of all items amount to is decided by the next step, an operation that reads what the items recorded: `7. Poll every station — for each [launch#Record:Countdown.stations] as station — [invokes](aim:launch#Operation:PollStation)`, then `8. Go/No-Go — [invokes](aim:launch#Operation:PollGoNoGo) — continues: Go`.
- **A timed wait.** `— after: <n> <unit>` or `— until [<address>]` delays the start of a step. It is written after the edges and before `continues:`, and a step carries one of the two, never both: `3. The board conducts the review — [invokes](aim:program#Operation:ConductReview) — after: 10 business-days — continues: Proceed`.
  - `after:` counts from the moment the step is reached, in the units of a Trigger's Schedule: `minutes`, `hours`, `days`, `business-days`, `weeks`, `months` or `years`. `months` and `years` count as §4.2 counts them.
  - `until` names a `date` or `datetime` field of the case's record. A `datetime` is the instant it holds, and a `date` is the start of that day in the `timezone` in reach. A moment that is already past waits not at all.
  - The due instant is resolved when the step is reached, and it is kept. A later change to the field does not move a wait that exists. Moving it is an explicit act: a new run, or a step that waits again.
  - Where the field has no value when the step is reached, the case waits at the step until the field is written, and that write schedules it.
  - Both forms count in the `timezone` and the `calendar` in reach (§4.7).
  - A step that carries a timed wait and no edges is a wait and not a human step.
  - A timed wait is bounded as any wait is, by a deadline (§4.7). Keeping the timer alive is realization.
- **A promoted process.** A process with its own operations, records and requirements may become an intent. Its sequence is a top-level `## Steps` in the same grammar, declared from the intent node. Its other properties become top-level sections of the same names: `Input`, `Authz`, `Expects`, `Ensures`, `Returns`, `Decides`, `Criteria`, `On Error` and `Ends on`. `nature: process` MAY mark it as a hint. No Process facet of the same name restates it. It is invoked and triggered by its namespace (§5).
- **Expects and Criteria on a Process.** The Expects check of a Process (§4.2) is evaluated when the case starts, before the first step. A Process holds nothing in between: a value that must still hold at the moment of a write is guarded by the Operation that writes, or by the Constraints of the Record (§4.1). The Criteria of a Process read rows and the clock when the decision is reached, after its steps.

### 4.4 Persona

**Purpose.** A Persona is a human: a person who exists (an employee, a client) or a role people hold (the approver of a claim). A group that acts as one is an Organisation (§4.12); a system that acts is a Software (§4.14) or a Service (§4.15). A Persona declares what the actor reaches, what work it performs and which Outputs it answers for (§4.16). Permission, reach (access) and performance are three separate facts: Authz declares who may perform an operation, and edges declare what the actor reaches and which work it performs.

**Form.**

| Sub-block | Required | Holds |
|---|---|---|
| `### Summary` | no | Who the actor is. |
| `### Role` | no | One bullet describing the actor; may carry `[plays](aim:<address>)`. |
| `### Access` | no | Bullets with the Views or intents it `accesses` (each optionally followed by `cross-owner(<Record-address>)`), the operations it `invokes` and the Outputs it `produces`. |

**Example.**

```markdown
## Persona: Approver

### Role

- Reviews other people's expense claims — [plays](aim:org#Persona:Employee)

### Access

- Review submitted claims — [accesses](aim:claims#View:Claims) cross-owner(claims#Record:Claim)
- [invokes](aim:claims#Operation:ApproveClaim)
```

**Edges.** Declares `accesses`, `invokes`, `produces` (to an Output, §4.16) and `plays`. Receives `plays` from roles that are filled by it. Authz entries name it without an edge.

**Rules.**

- **Who performs the work.** Work is performed by, in order:
  1. The Persona that `invokes` it. Several invokers are alternatives, and any one may act. Where a particular actor must act in a particular step, that step invokes an operation only that actor invokes. Joint performance is one step per actor.
  2. The Process itself, for a step whose only operations are `reads`, `mutates` or `emits` — it inherits no Persona.
  3. The performer of the nearest enclosing Process or promoted process, for a human step or an operation with no performer of its own. That performer is direct or inherited in turn, and the first declaration stops inheritance.
- **Work that owes a performer.** Work owes a performer when it is a step of a Process, is invoked by a step, or is started by a Trigger or a subscription. Owed work without one is incomplete. An operation only offered through a View owes none: whoever reaches it may act within its Authz.
- **Every performer.** These rules apply by reference to an Organisation, a Software and a Service that performs work (§4.12, §4.14, §4.15): where they say Persona, read the performer. A Project never performs (§4.13).
- **These facts stay distinct.** Authz declares permission, never performance.
  - Authz names roles by backticked full address: `claims#Persona:Approver`, `org#Persona:Employee`, or a promoted persona's intent `company.hr`.
  - Several named roles are alternatives.
  - A name in the prose of Authz names nobody.
  - The performer MUST be among the roles Authz names.
  - With no named role, whoever performs the operation is permitted.
  - Accessing a View that exposes an operation reaches it and commits the Persona to nothing.
  - A Trigger starts work and never performs it.
  - Role prose and step prose assign no work.
- **A grant on an access.** A grant after an `accesses` edge widens that View's reads for the named Record only (§3, §4.5).
- **Producing an Output.** A `produces` edge in Access makes the actor the Output's accountable producer: it makes one or has one made, and answers for it. Where a realization makes it, the making runs under the actor's identity, and every read made for it is the actor's, narrowed by ownership (§3, §4.16).
- **Roles and shared entities.** An entity shared across processes has one canonical home. A role a process reads stays with that process. Moving shared entities upward MUST NOT merge distinct roles and erase a handoff.
  - Where a local role is filled by a shared Persona, the local role is its own Persona whose `### Role` carries `[plays](aim:<address>)`. It stays a distinct performer in every projection and handoff. It takes the shared Persona's identity. It gains no permission or ownership scope by it: its own Authz and access apply.
  - Where there is no distinct role, the process names the shared entity by its full address directly. Never declare a second canonical entity for the same group.
- **Promoted persona.** A Persona that acquires its own data and operations may become an intent. Its acting face becomes top-level `## Role` and `## Access`, its data a top-level `## Schema`, and its operations co-located facets. `nature: persona` MAY mark it as a hint.
  - The intent is the actor. It is named in Authz, `plays` and performance by its namespace (§5).
  - The intent MUST keep `## Role`. It MUST NOT contain a same-named Persona.
  - An actor that is also data the company keeps (a customer who approves quotes) is one intent with both `## Role` and `## Schema`.

### 4.5 View

**Purpose.** A View is a surface people use: what it shows, which records it reads, and the actions it offers. It commits to the existence of copy and the names of actions, not to the words of the copy or the pixels of the layout.

**Form.**

| Sub-block | Required | Holds |
|---|---|---|
| `### Summary` | yes | What the surface is for. |
| `### Display` | no | What it shows, one bullet each, with the `reads` of each. |
| `### Actions` | no | Each action's label and the operation it `exposes` or `invokes`, or the View it `navigates` to. |
| `### Layout` | no | Arrangements the owner stated, one bullet each, in their words. |

**Example.**

```markdown
## View: Claims

### Summary

The claims waiting for a decision.

### Display

- Each submitted claim with its lines and receipts — [reads](aim:claims#Record:Claim)

### Actions

- Approve or return — [exposes](aim:claims#Operation:ApproveClaim)

### Layout

- The oldest claim comes first.
```

**Edges.** Declares `reads`, `exposes` (a user action), `invokes` (a programmatic call), `consults` (Knowledge it shows or searches), `navigates` and `satisfies`. Receives `accesses` from Personas.

**Rules.**

- **Copy and labels.** Display declares that copy exists, not its words: the words are supplied material (§7). Action labels are intent, because they name commitments.
- **Ownership.** A View reading owned rows shows only the caller's own by default, whatever the caller's Persona or `plays` link.
  - Only a `cross-owner(...)` grant on that Persona's access edge to this View widens its reads, and only for the named Record.
  - Authz on an exposed operation does not widen the View.
  - Access to the View widens no operation.
- **Layout.** Layout states only what the owner specified: relative position, order, grouping, prominence. It names its subject through the View's Display terms, Action labels or read Records.
  - Layout declares no edges. A parser MUST NOT compare its prose with other blocks. Review judges it.
  - Pixels, grids and stylesheets are realization.
  - Unstated arrangement is the realization's freedom. A tool's arrangement MUST NOT become Layout unasked.
- **Surface ownership.** A page with an accountable outcome of its own is a child intent once that purpose is understood, before it owns data or operations.
  - Its Summary and requirements state the purpose, and its sections are View facets. It MUST NOT add a same-named View restating itself.
  - A Persona may access the intent, covering every View in it.
  - A static piece of a screen is a Display bullet, not a node.
  - A piece that acquires its own data, operations or surface owns those facets: a child intent when they form a capability, or a View beside its siblings.
  - Inline visual composition has no edge.

### 4.6 Event

**Purpose.** An Event is an announcement that something happened, with its data. It is a fact, never work: the work lives in what subscribes to it.

**Form.**

| Sub-block | Required | Holds |
|---|---|---|
| `### Summary` | yes | What happened. |
| `### Payload` | no | Its data, in a `schema` fence. |
| `### Routing` | no | Routing properties as bullets, such as `Channel: claims.approved`, `Durable: true`. |

**Example.**

````markdown
## Event: ClaimApproved

### Summary

An approver approved a claim.

### Payload

```schema
claimId: string required ref(claims#Claim.id)
approvedAt: datetime required
```
````

**Edges.** Declares none. Receives `emits` from Operations and Processes and `subscribes` from Operations, Processes and intents. Triggers name it as an anchor.

**Rules.**

- **Emitters.** Emitters are derived from `emits` edges. An Event MUST NOT author `### Emitted By`.
- **An outside announcement.** An outside announcement enters through a Trigger that `triggers` an ingest Process, which emits the internal Event, so every Event has an emitter in the model.
- **An Event and its case.** An Event belongs to a case when it is emitted within the case or its Payload references the case's record; a case keeps its Events in one order, and a waiting step and a deadline hear only their own case's Events (§4.3, *A case*; §4.7).
- **Where an Event leads.** Where an Event leads is §4.3, *Which step comes next*, *Waiting for an Event*, *A race* and *What ends a case*.

### 4.7 Trigger

**Purpose.** A Trigger is an entry point that is not an actor: a schedule, a deadline, a webhook or another outside origin. It starts work and never performs it.

**Form.**

| Sub-block | Required | Holds |
|---|---|---|
| `### Summary` | yes | When and why it fires. |
| `### Kind` | expected | One of `schedule`, `deadline`, `webhook`, `external`. |
| `### Schedule` | for `schedule` and `deadline` | One line: `cron: <expression>`; `<n> <unit> after [<intent>#Event:<Name>]` with `minutes`, `hours`, `days`, `business-days`, `weeks`, `months` or `years`; or `monthly on the <n>th`, `weekly on <weekday>`, `yearly on <date>` — the latter forms optionally followed by `— unless [<intent>#Event:<Name>]`. The short `[Event:<Name>]` is deprecated (§8). |
| `### Fires` | expected — without it the Trigger is an orphan | `triggers` edges to what it starts. |
| `### Ends` | no, only on a `deadline` | One bullet, `the case`: the deadline ends the case it belongs to (below). |

Webhook and external origins describe their source in prose instead of a Schedule.

**Example.**

```markdown
## Trigger: ApprovalDeadline

### Summary

A claim waiting five business days for a decision is escalated.

### Kind

- deadline

### Schedule

- 5 business-days after [claims#Event:ClaimSubmitted] — unless [claims#Event:ClaimApproved]

### Fires

- [triggers](aim:claims#Operation:EscalateClaim)
```

**Edges.** Declares `triggers` (to an Operation, Process or promoted process) and `satisfies` (a deadline enforcing a time policy).

**Rules.**

- **What uses a Trigger.** Schedules, polling, SLAs, escalation windows, expiries and recurring obligations all use this facet. An escalation ladder is chained deadlines. An expiry is a deadline triggering a revocation.
- **Which kind.** Event-anchored timing is `deadline`. Calendar recurrence is `schedule`.
- **The performer.** Work a Trigger starts still owes a performer (§4.4).
- **The `unless` clause.** The `unless` clause is prose, and no parser evaluates it. It binds the realization all the same: a deadline whose `unless` holds MUST NOT fire. Where disarming must be verifiable, it SHOULD name an Event the fulfilling operation emits, so the graph can check that Event and its emitter.
- **The calendar and the clock are intent.** Every schedule and deadline counts in the `timezone` in reach: the intent's own frontmatter, else the nearest ancestor's. `business-days` counts the working days of the `calendar` in reach (§16).
  - Company closures are a requirement in the owner's words, and deadlines respect them.
  - The duration and its anchor are intent too.
  - How dates are computed and stored, and the holiday tables, are realization.
- **A deadline belongs to its case.** A deadline is armed per case. Only its `unless` Event of that case disarms it (an Event belongs to a case as in §4.6).
  - The anchoring Event again in the same case restarts the timer from the new Event: one timer per case, never two.
  - Any other policy — count from the first anchor, keep several timers — is stated in the Trigger's Summary, normatively, and the realization follows it.
- **A deadline that ends the case.** A deadline with `### Ends` (`- the case`) does the following when it expires for a case:
  1. It interrupts the case at once: no Event advances it, no step starts, no wait completes, and nothing of the case runs but what the deadline triggers.
  2. It runs the triggered work as the cleanup. The cleanup records what must be recorded and moves the case's record where a State requires.
  3. It ends the case when the triggered work completes, after which it hears no further Events.
  4. If the triggered work does not complete, it leaves the case interrupted. A realization MUST show it as such — a question for the owner, never silent. Recovery is explicit: the realization offers to run the triggered work again or to end the case by hand, and neither happens on its own. A case ended by hand with its triggered work incomplete carries the run-time finding *cleanup incomplete*, kept and shown with the case; it is a fact of that run, not a diagnostic of the graph, and no static check reports it.
  5. Child cases and item runs end with the case (§4.3, *A case*), at once, and their own cleanup is not run.
- **Other deadlines and single steps.** `unless` disarms a deadline with `### Ends` as it disarms any deadline. A deadline without `### Ends` starts work and interrupts nothing. Ending a single step is not expressible: a deadline anchored on a case's start cannot tell which step it governs.

### 4.8 Capability

**Purpose.** A Capability is a function the work must be able to do, operating on knowledge, resources or data: fetch exchange rates, generate a DDEX file, render a PDF, send e-mail. It is named by what it does, never by a vendor, a transport or credentials. It is what is needed, apart from what provides it. A system the work consumes through a connection is a Service (§4.15), and software described in the workspace is a Software (§4.14); either may answer it. Information the work consults as text to decide is Knowledge (§4.11); information answered as a typed result (`FetchRates(currency) -> rates`) stays a Capability. An account is not a Capability: it is the connection that answers one, configuration beside the model.

**Form.**

| Sub-block | Required | Holds |
|---|---|---|
| `### Summary` | yes | The kind of source or service. |
| `### Operations` | no | What it offers, one bullet each, as signatures such as `` `FetchRates(currency) -> rates` ``. |
| `### Bindings` | no | The realization that answers it (§12). |

**Example.**

```markdown
## Capability: ExchangeRates

### Summary

An official source of daily currency exchange rates.

### Operations

- `FetchRates(currency, date) -> rates`
```

**Edges.** Declares none. Receives `invokes` from the operations that call it and from the Outputs that depend on it (§4.16). That edge derives no inverse.

**Rules.**

- **Calling it.** A consuming operation MUST `invoke` the Capability it calls (§4.2). An Output MUST `invoke` the function it depends on (§4.16).
- **Required and resolved.** The Capability is required in `## Dependencies → ### Requires` (`- ExchangeRates as Rates`). It resolves through a mapping or its Bindings (§7).
- **Document-shaped information.** Document-shaped information a Capability returns is acquired by a collect Operation that invokes the Capability and mutates a Record. Later work reads the Record. This route does not apply to Knowledge, which is consulted directly (§4.11).
- **Coverage.** Operations lists what the work relies on, not everything a provider offers. A provider's offer is its own model, reached by mapping.
  - A Binding without `— as:` covers the whole Capability.
  - A Binding naming an operation after `— as:` covers that operation alone. So does an Operation Map line.
  - A Capability resolved operation by operation is resolved only for the operations covered. An uncovered declared operation leaves the work that relies on it unresolved, however resolved the alias looks.
  - A mapping line naming an operation the Capability does not declare is a hard error. So is a mapping line naming a provider operation the target intent does not declare.
- **Answered, never promoted.** A Capability is answered by a Service's operation through a mapping (§7), by a Software described in the workspace (its Operation bound as the Capability's realization), by a direct Binding (a library, a built-in service of the tool, code written for the purpose), or by nothing yet. It never becomes an intent of its own.
- **What a performed intent needs supplied.** Unresolved capabilities, with Records read but never mutated in the model, Outputs needed but produced by nothing in the model, and schedules to arm, are what a performed intent needs supplied.

### 4.9 Style

**Purpose.** A Style is how what people see should look, at the grain the owner states it: identity, never stylesheet mechanics.

**Form.**

| Sub-block | Required | Holds |
|---|---|---|
| `### Summary` | yes | The look in a sentence. |
| `### Palette`, `### Type`, `### Shape`, `### Mark`, `### Layout` | no | Bullets of `<token>: <value>`; a token is one lowercase word from an open vocabulary; a value is the owner's words, an exact value, or both. |

**Example.**

```markdown
## Style: Warm

### Summary

Calm and warm, close to paper.

### Palette

- surface: bone `#fbf9f6`
- ink: charcoal `#26221f`
- accent: orange, the only hue

### Layout

- actions: left-aligned under the content
```

**Edges.** None, in either direction. A Style is never an orphan and is outside behavioral traceability.

**Rules.**

- **Where it is written.** A Style is authored in its intent's file, never a separate kind. An intent has at most one.
- **What it applies to.** A Style applies to every View and every `document` Output (§4.16) of its intent and of that intent's descendants. The nearest Style wins. No edge selects it.
- **Tokens and values.** Tooling MUST accept any token. A realization MUST use exact values verbatim. It MUST elaborate descriptive words consistently, recording its choice.
- **Grain.** A Style with only a Summary is valid. A parser does not judge the grain of values.
- **Layout.** A Style's Layout sets conventions for every screen and document wearing it. A View's own Layout wins for that screen. A `document` Output's own Layout wins for that document.
- **Mark.** A Mark's description is intent. Its image is supplied material under `content/assets/`. The image is used verbatim and is never inside an `.aim` file.
- **No Style in reach.** A View or a `document` Output with no Style in reach is complete. The realization chooses a clean neutral look and records it.
- **A recovered look.** A recovered look is proposed with provenance and needs the owner's signature.
- **Older spellings.** Owner-entered legacy `content/style/` tokens MAY move into a Style without inventing values, keeping words and exact values, recording the move, and leaving the tokens readable as a backup.

### 4.10 State

**Purpose.** A State is the complete list of how one enum field of a Record may change: where it starts, where it ends, every move with the operation that makes it, where deletion is allowed, and which operations may run only in certain states.

**Form.** A State has only these sub-blocks, besides the inline `### Label` and `### Bindings` every facet may carry (§3, §12):

| Sub-block | Required | Holds |
|---|---|---|
| `### Summary` | yes | How the record moves. |
| `### Of` | yes | One bullet: a backticked `<intent>#Record:<Name>.<field>`, or `<intent>#<field>` for a promoted entity (the short `Record:<Name>.<field>` is deprecated, §8); the field MUST be a required enum. States show the labels of its values (§3). |
| `### States` | yes | One bullet per enum value, one to one. Names compare case-insensitively with spaces as underscores (`In review` is `in_review`); a different value follows in parentheses (`Waiting (on_hold)`). Exactly one is marked `— initial`; any number `— final`. |
| `### Moves` | yes | One bullet per move: `<From> → <To> — <operations>` (`->` accepted), the operations bracketed Operation or Process full addresses, comma-separated. The reserved target `deleted` declares deletion. |
| `### Only in` | no | One bullet per confinement: `<State>, <State> — <operations>`: those operations run only while the record is in one of the listed states. |

**Example.**

```markdown
## State: ClaimStatus

### Summary

A claim moves from draft to approved; only a draft may be edited or withdrawn.

### Of

- `claims#Record:Claim.status`

### States

- Draft — initial
- Submitted
- Approved — final

### Moves

- Draft → Submitted — [claims#Operation:SubmitClaim]
- Submitted → Approved — [claims#Operation:ApproveClaim]
- Submitted → Draft — [claims#Operation:CorrectClaim]
- Draft → deleted — [claims#Operation:WithdrawClaim]

### Only in

- Draft — [claims#Operation:EditClaim]
```

**Edges.** A State declares no edge tokens; its moves are structured references. The graph derives `governs` to its Record and `moved-by` to each named operation; these are structure, not verbs. A State is never an orphan and is outside traceability.

**Rules.**

- **One State per field.** One State per field across the whole model. Separate fields have separate States, never combined ones. A State lives with its Record or in a descendant intent.
- **An enum without a State.** An enum without a State is only a set of values. A machine MUST NOT be inferred from an enum or from guard prose. A recovered machine is proposed with provenance and needs the owner's signature.
- **How a move is written.**
  - Each endpoint of a move MUST be a state. The reserved `deleted` is the exception, as a target only: it MUST NOT be the `<From>` of a move.
  - A move MUST NOT go from a state to that same state (`<From> → <From>`).
  - A move MUST name an operation. Each operation it names MUST resolve, MUST be an Operation or a Process, and MUST mutate the Record.
  - The same move MUST NOT be declared twice by the same operation.
  - A move MUST NOT name an operation that Only in confines to other states, because that move can never happen. The report of this error names both lines.
- **Writing the Record.** For every operation writing the Record:
  - *A changed value.* A changed value MUST be a declared `<From> → <To>` move, made by an operation the move names. The realization MUST refuse any other change before it commits.
  - *The same value.* Writing the same state value is no move.
  - *Creation.* Creation starts in the initial state, by any creating operation. Creation is no move.
  - *Deletion.* Where `→ deleted` moves exist, deletion is allowed only from their states and by their operations, a final state included. With none, the State says nothing about deletion.
  - *Final states.* No move leaves a final state except a declared deletion.
  - *Only in.* An operation listed under `### Only in` runs only while the record is in one of the listed states, whatever it writes. The realization MUST refuse it in any other state. An operation in several Only-in bullets runs in any of their states. Any other operation follows its own rules. Other fields and related records are otherwise not frozen.
  - *No permission.* A legal move grants no permission. It changes nothing about the operation's Input, Authz, Expects or Ensures.
- **What a State keeps and touches.** Moves keep their resolved operations and the roles those operations' Authz admits. A State's impact includes its Record, its operations and every other operation that mutates the Record. References are rewritten when the Record or operations move.
- **Older spellings.** The deprecated guard `<From> → unchanged — [X]` is read as `<From> — [X]` under Only in. Such a line is a confinement and not a move, so its `unchanged` is not an endpoint that is no state.
- **Enforcement.** A realization that does not enforce these rules is drift and MUST NOT be described as enforcing the State.

### 4.11 Knowledge

**Purpose.** Knowledge is a body of knowledge: a handbook, a regulation, a supplier's certificate rules, past correspondence, a collection of entries. It is named by what it holds, never by where it is hosted. Running work consults it to understand or decide. Whoever builds, reviews or changes the intents it stands above has it in reach as background (§10). It informs; it never decides for the model.

**Form.**

| Sub-block | Required | Holds |
|---|---|---|
| `### Summary` | yes | What it holds, and what it is the reference for. |
| `### Source` | no | Where it lives, in words: a document collection, a wiki space, a regulation, a mailbox. Never credentials or a provider's address. |
| `### Bindings` | no | The realization that answers it (§12): documents read once and kept searchable, a connection queried live at run time, or `entries:<Record address>` for a collection written in AIM (§6). |

**Example.**

```markdown
## Knowledge: HolzNachweise

### Label

Holz-Nachweise

### Summary

Welche Nachweise ein Lieferant für welches Holz liefern muss: Herkunft für EUDR bei jedem Material, HT-Nachweis nur bei Vollholz.

### Source

Die Lieferantenvereinbarungen und die ISPM-15-Unterlagen der Firma.
```

**Edges.** Declares none. Receives `consults` from Operations, Processes, Views and Outputs. That edge derives no inverse.

**Rules.**

- **The model stays the authority.** A rule the work MUST follow is stated in the model, as a requirement, an `Expects` or a `Decides` outcome, even when it comes from the knowledge. Knowledge says where the background is, so the work can consult it for what the model does not state.
- **Who consults.** Only operations consult: an Operation, a Process, a promoted process, a View that shows or searches it, or an Output whose making uses it (§4.16). A Persona never consults. The edge sits on the step or operation where the knowledge is used.
- **Sufficient on its own.** Consulting Knowledge declares the outside information an operation uses (§4.2). It needs no Capability and no intermediate Record. `consults` counts as the basis of a decision.
- **Read, not copied.** Knowledge may be searched, summarized and interpreted. Its contents never override the model's commitments. Its content is supplied material (§7) and is never written into `.aim`, unless it is an Entries collection (below). §7's "use supplied material verbatim" applies to copy, seed data and media, not to consulted Knowledge.
- **What fulfils it is not intent.** Documents read once and kept, or a large or changing source queried live through a connection: either answers it. One connection may fulfil a Knowledge facet and a Capability at once: a document drive consulted for its handbooks and called to upload a file.
- **Entries as its content.** A Knowledge facet MAY bind to an Entries collection with `entries:<Record address>`. The locator resolves the Record's authoritative Entries form (§6). That form answers `consults` directly or through a derived index. A citation names an entry by its row address. Such content is written in AIM; what the rule above says about supplied material applies to every other source.
- **In reach by placement.** The Knowledge declared on an intent and on its ancestors is background for every node of that intent (§10). A Knowledge facet nothing consults may be background only.

### 4.12 Organisation

**Purpose.** An Organisation is a group that works together and acts as one: a company, a club, a department, a team, a site, a supplier, a partner. It is a legal or collective person, never a natural one; the people in it are Personas. It declares what the group is, what it reaches, what work it performs and which Outputs it answers for (§4.16). It is the same facet wherever it is described, and the form of such a group before it has earned an intent of its own.

**Form.**

| Sub-block | Required | Holds |
|---|---|---|
| `### Summary` | yes | What the group is and does. |
| `### Role` | no | One bullet describing it as an actor; may carry `[plays](aim:<address>)` to a shared Organisation. |
| `### Access` | no | Bullets with the Views or intents it `accesses`, the operations it `invokes` and the Outputs it `produces`, as on a Persona (§4.4). |

**Example.**

```markdown
## Organisation: Shipping

### Label

Versand

### Summary

Gets every order out of the house.

### Access

- Packs and hands over — [invokes](aim:shop.orders#Operation:PackOrder)
```

**Edges.** Declares `accesses`, `invokes`, `produces` (to an Output, §4.16) and `plays` (to an Organisation or an intent with a Role). Receives `plays` from local organisation roles filled by it; Authz entries name it without an edge.

**Rules.**

- **An Organisation that works.** When an Organisation performs work, the performer rules of §4.4 apply to it: who performs, permission and performance distinct, owed work.
- **An Organisation that produces.** When an Organisation `produces` an Output, it is that Output's accountable producer, as a Persona is (§4.4, §4.16).
- **Where it is described is not membership.** The place where an Organisation is described says whose model describes it. It does not say whose member it is: a department and a supplier may both be described under the same level.
- **A promoted Organisation.** A promoted Organisation is an intent with `nature: organisation`, at the level that held it (§14).
  - It holds Children: its processes, its Personas, its Records, its Services.
  - It keeps a top-level `## Role` and `## Access` only while it still acts in other work.
  - The root of a project may be an Organisation.

### 4.13 Project

**Purpose.** A Project is a goal with an end: the website relaunch, done by March. It contains work; it does not perform it — the people are Personas, a project team is an Organisation. It is the form of such a goal before it has earned an intent, and it recurs anywhere in the tree with logic of its own. What an organisation keeps as projects — an agency's client projects, rows with a client and a deadline — is a Record, not a Project.

**Form.**

| Sub-block | Required | Holds |
|---|---|---|
| `### Summary` | yes | The goal and its end, in words. |

**Example.**

```markdown
## Project: Relaunch

### Summary

The new website replaces the old one by the end of March.
```

**Edges.** Declares none; receives none. It is never a performer, never named in Authz and never a `plays` target.

**Rules.**

- **A Project never acts.** A Project MUST NOT carry `### Role` or `### Access`. It MUST NOT be named in Authz. It MUST NOT be the source or the target of an edge.
- **The end.** There is no construct for the end date: the end is words in the Summary. A deadline the work must keep is a Trigger (§4.7).
- **A promoted Project.** A promoted Project is an intent with `nature: project`, at the level that held it.
  - It holds its processes, people, software and sub-projects as Children.
  - The work in it is performed by the Personas and Organisations it holds or names.
  - The root of a project may be a Project.

### 4.14 Software

**Purpose.** A Software is software whose structure and behaviour are described here: a website, an app, a system, or a part of one, with its Records, Operations, Views and Processes beneath it, at the root of a workspace or nested inside another intent. It acts when it performs a step on its own ("the webshop sends the confirmation"). Who builds it, who owns it and where it runs do not make it a Software: a system that is only consumed through a connection is a Service (§4.15), and the same software may be a Software where it is described and a Service wherever it is consumed. A function the work must be able to do is a Capability (§4.8).

**Form.**

| Sub-block | Required | Holds |
|---|---|---|
| `### Summary` | yes | What it is and does. |
| `### Role` | no | One bullet describing it as an actor. |
| `### Access` | no | The operations it `invokes` when it performs a step on its own, and the Outputs it `produces`. |

**Example.**

```markdown
## Software: Billing

### Summary

Issues and sends the invoices of the shop.

### Access

- Sends the invoice — [invokes](aim:shop.webshop#Operation:SendInvoice)
```

**Edges.** Declares `invokes` when it acts and `produces` (to an Output, §4.16) for what it answers for; receives none.

**Rules.**

- **A Software that acts.** When a Software acts, as a system that is the doer of a step, the performer rules of §4.4 apply to it.
- **A Software that produces.** When a Software `produces` an Output, it is that Output's accountable producer, as a Persona is (§4.4, §4.16).
- **Build decisions are explicit.** Whether a Software is built, deployed or listed on its own is a fact of its realization: a build target, a Binding (§12). It is stated there. It is never derived from `nature`, from its parent or from its depth.
- **A promoted Software.** A promoted Software is an intent with `nature: software`, at the level that held it, with its Records, Operations, Views, Processes and Bindings (§12) of its own.
  - A Software described inside another Software is a part of that description, nothing more.
  - The root of a project may be a Software.

### 4.15 Service

**Purpose.** A Service is a system consumed through a defined connection — an ERP, a CRM, a carrier's portal, a code host, or a software of the organisation's own that another part of it reaches only through its interface — named by the system (SAP, Zoho, GitHub). It acts when it performs a step ("SAP posts the invoice"). It is the consumer's naming of the system; the system's own model is a provider intent (§7), outside the consuming tree, which may itself be a Software described elsewhere. A function the work must be able to do, which a Service may answer, is a Capability (§4.8).

**Form.**

| Sub-block | Required | Holds |
|---|---|---|
| `### Summary` | yes | What the organisation uses it for. |
| `### Role` | no | One bullet describing it as an actor. |
| `### Access` | no | The operations it `invokes` when it performs a step, and the Outputs it `produces`. |
| `### Bindings` | no | The connection that answers it (§12): a `binds:` locator, the provider intent's address where its model exists (`` binds: `aim:sap` ``). |

**Example.**

```markdown
## Service: SAP

### Summary

Our ERP: orders, invoices and stock.

### Access

- Posts the invoice — [invokes](aim:shop.billing#Operation:PostInvoice)

### Bindings

- binds: `aim:sap` — as: provider
```

**Edges.** Declares `invokes` when it acts and `produces` (to an Output, §4.16) for what it answers for; receives none. Answering a Capability through a mapping (§7) is not an edge.

**Rules.**

- **A Service that acts.** When a Service acts, the performer rules of §4.4 apply to it.
- **A Service that produces.** When a Service `produces` an Output, it is that Output's accountable producer, as a Persona is (§4.4, §4.16).
- **Several Capabilities.** One Service may answer several Capabilities on several levels.
- **Connected, not promoted.** A Service earns its intent by being connected.
  - That intent is the provider's model, read from the connection or shipped prepared. It has `nature: service`, is read-only and stands outside the consuming tree (§7).
  - The facet stays as the consumer's naming of the system, connected through its own `### Bindings`.
  - A mapping's `### Target` names the provider intent, as before (§7).

### 4.16 Output

**Purpose.** An Output is a result of work that is handed over — a recipe, an invitation text, a corrected exam, a menu as a document, a DDEX file, ready-mixed concrete on site, a poured foundation — named by what it is, never by who or what makes it. It may be information or a thing in the world. It commits to what one is made from, what one contains or is, the form it is handed over in and what holds for every one. It says nothing about how one is made. It never acts and it is never kept: work that keeps one, or data about one, stores it in a Record. A View is what people look at and use; an Output is what the work hands over.

**Form.**

| Sub-block | Required | Holds |
|---|---|---|
| `### Summary` | yes | What the thing is and what it is for. |
| `### Input` | no | What one is made from, in a `schema` fence, in the grammar of an Operation's Input (§4.2). A field may be a `file`. |
| `### Contains` | no | The content of one, or for a thing in the world the properties it is described by, in a `schema` fence, in the grammar of §3. Absent for free text. |
| `### Constraints` | no | Rules on the content, one bullet each, and at most one `check` fence, as on a Record (§4.1). |
| `### Format` | no | The form one is handed over in, one bullet. The first word is `text`, `data`, `document`, `file` or `physical`; a named standard, format or carrier may follow in words after ` — `. Absent means the form is not stated; a realization that makes the Output itself hands over text. |
| `### Ensures` | no | What holds for every one, one bullet each, with its edges. |
| `### Layout` | no, only for a `document` | Arrangements the owner stated, one bullet each, in their words, under the rules of a View's Layout (§4.5). |

**Example.**

````markdown
## Output: Rezept

### Summary

Ein schnelles Rezept für eine Mahlzeit.

### Input

```schema
wunsch: string required
personen: integer
```

### Contains

```schema
titel: string required
zutaten: list(string) required
schritte: list(string) required
minuten: integer required max(30)
```

### Ensures

- Enthält kein Gluten und keine Nüsse — [satisfies](aim:kueche#Requirements[ALLERGIEN])
````

**Edges.** Declares `reads` (stored Records it is made from), `consults` (Knowledge), `invokes` to a Capability only, and `satisfies`, inside Ensures bullets. Its Input and Contains derive `holds` from each `part(...)` (§3). Receives `produces` from Operations, Processes and intents with Steps, and from a Persona, an Organisation, a Software, a Service or an intent with a Role; and `needs` from Operations, Processes and intents with Steps. `produces` derives `produced-by`, `needs` derives `needed-by`.

**Rules.**

- **It never acts.** An Output declares no `mutates`, `emits`, `exposes`, `navigates`, `subscribes` or `triggers`. It invokes no Operation and no Process. Work that changes something while making one is an Operation that `produces` it.
- **It is never kept.** An Output has no rows, no identity and no `ref(...)`. Work that keeps one is an Operation that `produces` it and `mutates` a Record whose fields take its values. A `document` or `file` is kept in a `file` field.
- **Content and representation.** Contains and Constraints describe the content. Format describes the representation that is handed over.
  - A realization that makes or carries an Output MUST check the content before it renders or hands over anything, whatever the Format: required fields, types, value rules and Constraints.
  - `data` hands the content over as its fields.
  - `text`, `document` and `file` render the content. The representation MUST carry the whole content and state nothing the content does not hold.
  - Where the Format names a standard that can be validated, the representation MUST be valid in it.
  - An Output without Contains is free text, and only its Format and Ensures apply.
- **Checked content.** `### Constraints` MUST NOT be written without `### Contains`. A `check` fence in Constraints compares fields of the Contains, as on a Record (§4.1, §4.2). A Constraints block that holds only the fence is not empty. The content is held to its lines once, when it is handed over. An Output is never changed afterwards, so the clock is allowed.
- **Judged guarantees.** Ensures prose is judged, as an Operation's is (§4.2). A realization records the judgment and never claims a judged rule as proven. A rule that can be stated as a comparison on the content belongs in a `check` fence, where it is checked.
- **Input by document.** A `file` field in Input is a document the requester supplies. The Output owns the commitments made from it (§3).
- **The look.** A `document` wears the Style in reach, as a View does (§4.9). `### Layout` states only what the owner specified. It names its subject through the Output's Contains fields, and it declares no edges. Pixels and templates are realization.
- **Dependencies.** A function the Output must get from outside is a Capability it `invokes` (§4.8): a certified signature, a rating from a scoring service, validation by the body that owns a standard.
  - That Capability is required in `## Dependencies` like any invoked Capability (§7).
  - The Ensures bullet says what the function is used for.
  - Reading an Input and rendering a Format are the realization's responsibility and need no declared Capability. A model declares one for reading or rendering only when the work depends on a particular function doing it.
- **The accountable producer.** A `produces` edge names who answers for the Output, never who or what carries out the making.
  - From an Operation, a Process or a step, the Output is made as part of that work, for whoever performs it (§4.4).
  - From a Persona, an Organisation, a Software, a Service or an intent with a Role, that actor is its accountable producer: it makes one or has one made.
  - Where a realization makes it, the making runs on the actor's behalf and under the actor's identity. Every `reads` of the Output is that actor's read, narrowed by ownership as any read of theirs is (§3).
  - An Operation that `produces` an Output hands it back. Its `### Returns` need not restate the Output's Contains.
- **Who or what makes it is open.** An Output may be made by a person, an organisation or an outside system, or realized by code, by a single model call, by a workflow or by an agent. The model states its commitments and the dependencies it requires. How it is made is chosen by whoever makes it, except where intent prescribes steps.
- **Needed by work.** Work that cannot be done without an Output `needs` it: the Output is that work's input.
  - Within one case, a step that needs an Output an earlier step produced gets that one (§4.3, *A case*).
  - An Output that work needs and nothing in the model produces is supplied from outside and is owed, as a Record that is read and never mutated owes its contents (§7).
  - `needs` states a dependency, not a wait: work that waits for an Output to arrive waits on the Event that announces it (§4.3, *Waiting for an Event*).
- **When steps are intent.** Drafting, checking and revising inside the making are realization. A step belongs in the model when its occurrence, its order or its hand-over is a commitment: a teacher approves a correction before it is released, a grade is recorded. That work is a Process or an Operation that `produces` the Output (§4.3).
- **The model stays the authority.** Everything that shapes an Output is in the model: its Contains, Constraints, Format, Layout and Ensures, the Requirements it satisfies and the Knowledge it consults.
  - A realization may use instructions, templates and examples to implement those commitments. It MUST NOT carry a rule for the Output that the model does not state.
  - A correction meant for one Output changes that one. A correction meant for every later one is a change to the model.
- **Acceptance.** Where no realization makes or carries the Output (a person, an organisation or an outside system makes it, or it is `physical`), its Contains, Constraints and Ensures are what one is accepted against. Accepting is work: an Operation or a step that `needs` the Output states it. A realization records the acceptance and never claims a rule as held that nobody checked.
- **A promoted Output.** An Output with a purpose, requirements and knowledge of its own may become an intent (§14).
  - `nature: output` MAY mark it as a hint.
  - Its Summary and requirements stand at the top.
  - Its blocks become top-level sections of the same names, declared from the intent node: `## Input`, `## Contains`, `## Constraints`, `## Format`, `## Ensures`, `## Layout`.
  - A promoted Output states its Format even when it is `text`: an intent with a top-level `## Format` is an Output endpoint. Such an intent is produced and needed by its namespace (§5), and it MUST NOT contain a same-named Output facet.

## 5. Edges

Declare each relation once, at its acting node, with `[verb](aim:<address>)`. This is the edge syntax authors write.

- **From and to.** The `from` node is the nearest enclosing facet node, or the intent for a top-level declaration. The `to` node is the resolved address.
- **The address.** Addresses are written fully qualified, `aim:<namespace>#<FacetType>:<Name>` or `aim:<namespace>` for an intent, inside the same intent too.
- **The label.** A prose label before the token is optional. It SHOULD NOT repeat the verb.
- **A backticked address alone.** A backticked address not immediately preceded by a declared verb (an Authz role, a Dependencies target) is never an edge.
- **Older spellings.** The 5.13 same-intent shorthand is a deprecated spelling. It is a declared verb immediately followed by a backticked same-intent address, as in `invokes` `` `#Operation:CreateTask` ``. Tools MUST read it as that link. Authors MUST NOT write it. A tool that rewrites a file writes the link form. The short `aim:#<FacetType>:<Name>` is deprecated (§8).

### Closed taxonomy

Only these verbs and endpoint types are allowed. A disallowed `(verb, from, to)` triple is a hard error.

| Verb | From | To | Meaning | Kind |
|---|---|---|---|---|
| `exposes` | view | operation | A View action surfaces an Operation to users. | declared |
| `invokes` | process, view, operation, persona, organisation, software, service, intent; output and intent with Format to a capability only | operation, process, intent, capability | Calls a behavioral unit; from a Persona, an Organisation, a Software, a Service or an intent with a Role, performs it directly; to a Capability, calls that function. | declared |
| `reads` | operation, process, view, intent with Steps, output, intent with Format | record, intent with Schema | Reads a persisted Record. | declared |
| `mutates` | operation, process, intent with Steps | record, intent with Schema | Creates, updates or deletes a Record. | declared |
| `consults` | operation, process, view, intent with Steps, output, intent with Format | knowledge | Reads, searches or interprets a body of knowledge while the work runs (§4.11). | declared |
| `emits` | process, operation, intent with Steps | event | Produces an Event. | declared |
| `subscribes` | process, operation, intent | event | Consumes an Event: at the top of a Process, Operation or intent an entry point that starts a run; inside Steps a wait (§4.3). | declared |
| `accesses` | persona, organisation, intent with Role | view, intent | Permits a Persona, an Organisation or an acting intent to reach a surface or screen/route intent. | declared |
| `plays` | persona, organisation | persona, organisation, intent with Role | Binds a local role to the shared one that fills it — a Persona to a Persona, an Organisation to an Organisation, or either to an intent with a Role — while preserving distinct performer lanes. | declared |
| `navigates` | view | view | UI navigation between surfaces. | declared |
| `triggers` | trigger | operation, process, intent | A schedule, webhook or external origin initiates a behavioral unit. | declared |
| `refs` | record field | record field, field of an intent with Schema | Data foreign reference declared by `ref()`, as a field, a modifier or a map key. | declared |
| `holds` | schema field — facet, block and field: a Record's Schema, the Input, Returns or Payload of an operation, process or event, or the Input or Contains of an output or an intent with Format | record, intent with Schema | A part: the field carries one or many values shaped by the Record, declared by `part(...)` at any depth of lists and maps. | declared |
| `satisfies` | operation, process, view, trigger, output, intent with Format | requirement item | Realizes a `## Requirements` item; a deadline Trigger may enforce a time policy; an Output guarantees it for every one. | declared |
| `produces` | operation, process, intent with Steps, persona, organisation, software, service, intent with Role | output, intent with Format | Answers for one Output: from work, it is made as part of that work; from an actor, the actor makes one or has one made, under that actor's identity (§4.16). | declared |
| `needs` | operation, process, intent with Steps | output, intent with Format | Cannot be done without one Output: the Output is this work's input (§4.16). | declared |
| `triggered-by` | process, operation, intent | process / operation / view / trigger / persona / organisation / software / service / intent | Inverse of `invokes` / `exposes` / `triggers`. | derived |
| `emitted-by` | event | process / operation | Inverse of `emits`. | derived |
| `satisfied-by` | requirement item | operation / process / view / trigger / output / intent | Inverse of `satisfies`. | derived |
| `produced-by` | output, intent with Format | operation / process / persona / organisation / software / service / intent | Inverse of `produces`. | derived |
| `needed-by` | output, intent with Format | operation / process / intent | Inverse of `needs`. | derived |

**Intents as endpoints.** An intent is the endpoint its content makes it, never its `nature`:

- An intent with a top-level `## Schema` is a Record endpoint (read, mutated, referenced, held).
- An intent with a top-level `## Role` is an actor (Authz, `plays`, `accesses`, performing work).
- An intent with top-level `## Steps` is a process (invoked and triggered, and the source of the reads, mutations, emissions, consultations, productions and needs of its steps).
- An intent with a top-level `## Format` is an Output (produced and needed, and the source of the reads, consultations, Capability invokes and satisfactions of its Ensures, §4.16).

One intent MAY be several: a customer who is kept and also acts has both Schema and Role. An intent used as an endpoint its content does not provide is a hard error. A Project is in no row of the table: it neither declares nor receives an edge (§4.13).

**Rules.**

- **What is no edge verb.** `requires` is the capability-alias relation in Dependencies, not an edge verb. `extends` is the `parent:` relation, not an edge verb. Render/layout composition is not an edge verb.
- **Data relationships and structured references.** A link between two rows (§6), a `modelref` field, a requirement's `from` and `over` (§3) and the field a comparison names (§4.2) are data relationships or structured references. They are derived and can be queried. They are not verbs: none is declared with an edge token, and none joins traceability.
- **A View reaching an Operation.** Use View `exposes` for user-initiated actions and View `invokes` for programmatic calls. Both count as reaching an Operation.
- **`accesses` and `invokes` at intent level.** `accesses` an intent grants reachability to every View in its subtree. Intent-level `accesses` and `invokes` in a promoted Persona's top-level `## Access` are permanent declarations, not placeholders.
- **An intent or a facet as the callee.** Use `invokes` or `triggers` to an intent for a promoted process with top-level `## Steps`. Use the facet address when the callee is a facet.
- **`invokes` to a Capability.** Capability-targeted `invokes` means consulting an external source-kind. Its target must be a required capability of the resolving scope. It derives no `triggered-by`.
- **`subscribes` at intent level.** Intent-level `subscribes` is valid when an internal handler is not yet named. At Level 3 it SHOULD be refined to the consuming Operation or Process.
- **`satisfies`.** `satisfies` targets only a Requirements item, never a Capability. Its address is `aim:<intent>#Requirements[<key>]`, without a facet-type colon.
  - A key is either a label matching `[A-Za-z][A-Za-z0-9_-]*` or a 1-based integer.
  - Declare a label at the bullet's start: `- **NET14** — The invoice is payable within fourteen days.`
  - Labels MUST be unique within the intent. They SHOULD be used once satisfies edges exist.
  - Labeled and unlabeled bullets may coexist. All remain position-addressable.
  - Inserting or reordering items changes positional targets.
  - Renaming a label changes identity and requires a rename transform.
- **Inverses.** Inverse relations are derived, never authored.
  - Behavioral-unit-targeted `invokes`/`exposes`/`triggers` derive `triggered-by`.
  - `emits` derives `emitted-by`.
  - `satisfies` derives `satisfied-by`.
  - `produces` derives `produced-by`.
  - `needs` derives `needed-by`.
  - Legacy authored `### Trigger` or `### Emitted By` blocks are reconciled against derived sets, with an informational stale-inverse finding on mismatch.

### Language extension policy

A future verb is admitted only if it meets all five of these tests:

1. It expresses a relational commitment between existing node types.
2. It cannot already be expressed with existing verbs plus prose without losing checkability.
3. It enables a new query or diagnostic.
4. It has demonstrated need in real models.
5. It arrives with endpoint types, inverse or explicit absence of one, and diagnostics.

- **Existing constructs.** Attributes, sequencing, composition and accountability prose belong in their existing constructs.
- **Blocks and attribute families.** The same tests apply to proposed blocks or attribute families, routing non-relational proposals to those forms.
- **Removing and renaming.** Removing or renaming a verb is breaking. Aliases and domain synonyms are forbidden.
- **Constructs not admitted.** Beyond a wait on several Events and the ending of a case (§4.3, §4.7), no race/cancellation construct is admitted, and no delivery, per-View-style or implicit foreign-key-by-naming construct.

## 6. Entries

A Record defines a shape. An Entries file holds rows of that shape, written in AIM: the entries of a diary and the people it names, a meeting with its decisions and actions, the accounts of a historical event. A person writes an entry and its links by hand, and a tool validates and follows the same source.

An entry keeps two things apart. A text holds its author's words as they were written. What is recorded about those words is separate: who the entry mentions, what it follows up on, which two accounts differ. Each of these is a line of its own, and each line can say where it comes from.

A diary is a history with one witness and a catalogue of sources a history with many. An assistant that helps with either is one more witness, and its lines never pass for someone else's.

| Form | Holds | In a diary |
|---|---|---|
| `### Rows` on a Record (§4.1) | A fixed membership and the values the model commits to | The moods the diary offers |
| An Entries file | Editable rows of a Record, with text, values and typed links | Today's entry mentions Anna and follows up on an earlier one |
| Knowledge (§4.11) | A collection that work consults or that is read as background | The weekly reflection consults the journal and cites the entries it used |

§2 shows a diary and a meeting as whole files.

### The file

An Entries file has the frontmatter and the H1 of every source file (§16). Its `aim` names an existing intent and its `kind` is `entries`. There are two kinds of Entries file.

| File | Frontmatter | Holds |
|---|---|---|
| A list | `record`, the full address of a Record | Rows of that one Record: the people of a diary |
| A document | `subject`, the row address of one entry | That entry and the entries that belong to it, so that the file reads like the thing itself: one meeting with its decisions and actions |

- **The header.** A header that names both `record` and `subject`, or neither, is a data validation error. A header whose Record or subject does not resolve is a data validation error. A `key` line in the frontmatter is a data validation error, since the key is declared in the Schema.
- **One collection, many files.** A Record's collection is its list, if it has one, together with its entries in every document. A Record has at most one list. IDs are unique across the list and all the documents. A Record has Entries when it has a list or appears in a document. A list with only frontmatter and H1 declares an empty collection.
- **Belonging.** An entry belongs to a document when one of its reference fields, a `ref(...)` or a reference list, names the subject itself. The subject's own entry belongs by being the subject. A link to another entry of the file is not enough, so a nested entry names the subject too. Rows that reference a case's record belong to that case in the same way (§4.3).
- **What a document holds.** An entry that does not belong to its document is a data validation error. A document without its subject's entry is a data validation error.
- **A document need not be complete.** An action agreed later names the meeting from wherever it is written, and the context of the meeting finds it there (§10).
- **Addresses do not change.** A row address names the Record and the ID and never the file (§8). Moving an entry from a list into a document, or back, changes no address and breaks no link.

The names of the files are in §17.

### An entry

```markdown
## DiaryEntry: 2026-11-28

- date: 2026-11-28
- mood: [Calm](aim:diary#Record:Mood[calm])
- mentions:
  - [Anna](aim:diary#Record:Person[Anna]) — from: proposed by Claude, 2026-11-28
- followsUpOn: [21 November](aim:diary#Record:DiaryEntry[2026-11-21]) — from: proposed by Claude, 2026-11-28

### Text: body

Anna and I walked by the river. We decided to take the train.
```

- **Heading.** `## <Record>: <ID>` introduces a row of that Record of the file's own intent. A row of a Record that another intent owns is headed by the full Record address, as in `## company#Record:Action: 2026-11-28-a1`. In the list of an intent with its own top-level Schema the heading is `## Entry: <ID>`.
- **ID.** The ID is the value of the Record's key (§3), which for a Record with Entries is a `string`. IDs are case-sensitive and match `[A-Za-z0-9][A-Za-z0-9_-]*`.
- **Values.** A bullet `- <field>: <value>` assigns a Schema field other than the key, in the literal grammar of stated rows (§4.1). A field occurs once.
- **Text.** `### Text: <field>` supplies a `string` field as Markdown. The text runs from the first nonblank line below the heading to the next H2 or H3 outside a fence, or to the end of the file. Blank lines at its boundaries are trimmed. Headings inside a text are H4 or deeper. A field is given either as a value or as a text.
- **Links.** A `ref(...)` field whose target is the target Record's key is always written as a link, `- <field>: [<label>](aim:<row address>)`.
  - A reference list, `list(<intent>#<Record>)`, holds one nested bullet per link, in list order. `- <field>: []` is an empty list.
  - A reference to a field that is not the key is written as a literal of that field.
  - The field supplies the kind of relationship, such as `mentions` or `followsUpOn`. The label is display text.
  - A link resolves to an entry, or to a stated row whatever the type of its key (§8, §9). The target's Record and key field match the field's `ref(...)`.
  - Only links in such fields declare a relationship. Markdown links inside a text are kept and mean nothing to the graph. An Entries file is never searched for edge tokens.
- **Model links.** A `modelref(...)` field (§3) is written the same way with a model address: `- explainsOperation: [List shifts for a date](aim:scheduling#Operation:ListShiftsForDate)`.
- **Files.** A `file` field holds a `/`-separated path relative to the project root, the directory of `AGENTS.md`, as in `- document: files/exhibits/contract-2024.pdf`.
  - The file itself stays outside `.aim`, as supplied material does (§7).
  - Where the Record declares a `fingerprint(...)` field for it (§3), a tool writes the fingerprint, `- fingerprint: sha256:9f2c…e41a`.
  - A file that is missing, or whose content no longer fits its fingerprint, is a data validation error: this is "words kept as written", applied to a file.
  - The entry carries the meaning, which is who handed the file in, when, and what it shows.
  - A new version of a file is a new entry that replaces the earlier one (§4.1).
- **Not in this version.** Parts, maps and lists of scalars have no source form in an entry.

### Who said each line

A line with no mark is the author's own. A line MAY end with one origin trailer, the trailer a requirement uses for its source (§3).

| Trailer | Says |
|---|---|
| `— from: proposed by <name>, <date>` | An assistant or a tool added the line on its own, under the name it goes by, on that day, and nobody has confirmed it. The bare `— from: proposed` says only that the line is a suggestion; it is for a mark that someone sets by hand. |
| `— from: <who>, <date>, proposed by <name>, <date>` | A suggestion that was confirmed: who confirmed it and when, and still who proposed it and when. A bare mark that is confirmed becomes `— from: <who>, <date>, proposed`. |
| `— from: <words>` | Who said it and when, for a line the author took from someone else. |
| `— from [<address>]` | What the line is drawn from: a row, such as a source entry, or a Knowledge facet. |

- **Waiting or confirmed.** A trailer that begins with `proposed` is a suggestion that waits. Any other trailer is confirmed, or is the author's own account of where the line comes from.
- **The form of a trailer.** A trailer that is neither `from: <words>` nor `from [<address>]` is a data validation error. A second trailer on one line is a data validation error. A `from [<address>]` that resolves to neither a row nor a Knowledge facet is a data validation error. A mark that begins with `proposed` and has neither of the two forms in the first row of the table, `proposed by <name>, <date>` or the bare `proposed`, is a data validation error.
- **Where a trailer stands.** The trailer may end any of these, and the nearest mark applies:
  - a field bullet;
  - each nested link of a reference list;
  - a `### Text: <field>` heading, for a text the author did not write;
  - an entry heading, where it covers every line of that entry that has no trailer of its own.
- **Whole files.** A whole file that an assistant compiled carries `provenance: inferred` (§15). A whole document is approved as any AIM file is, through `owner`, `status`, `approved_by` and `approved_at` (§16).
- **Tools mark what they add.** An assistant or a tool that writes into a collection for its author marks every line it adds on its own, with the name it goes by and the day. It never removes a mark and never changes a line it did not write. This cannot be read off a file, because an unmarked line looks like the author's. It is a rule of conduct and is verified as a procedure is (§12).
- **The collection's rules say who confirms.** A board's rules say an action is accepted by the person who gets it, and a law firm's that a citation is confirmed by the lawyer who signs. In a diary it is the diarist. Confirming rewrites the trailer as the table shows and changes nothing else in the entry. Rejecting a line removes the line. Where the rule has to be enforced, confirming is an Operation with Authz (§4.2).
- **Marks are checked and kept.** A proposed line is validated like any other: its type fits and its target exists. Reading and writing a file preserves every trailer.
- **Marks travel.** A relationship, a backlink or a context (§10) derived from a marked line carries the mark. A reader of "which entries mention Anna" sees which mentions are proposed.
- **Confirmed lines only.** A query, a skill or a derived context can leave out proposed lines, or everything one assistant proposed. Whether proposed lines count for a piece of work is a rule of the collection's owner, stated in Requirements.
- **Origin, source and standing are three things.**
  - *Origin.* The trailer says who put a line into the collection.
  - *Source.* A field such as `source` says where a claim comes from, and other entries can link to it.
  - *Standing.* How settled a claim is — alleged, admitted, found, or suspected, confirmed, ruled out — is an ordinary enum field in the owner's own words. A State (§4.10) says which step may follow which where operations take them. The trailer is never used for it, and an answer says the standing: "suspected, not confirmed".

### Languages

A text heading MAY name the language of the text in brackets, with a BCP 47 code. A second text block for the same field in another language is a translation.

```markdown
### Text: body (de)

Anna und ich sind am Fluss spazieren gegangen.

### Text: body (en) — from: proposed by Claude, 2026-11-28

Anna and I walked by the river.
```

- **The original.** A field has one original text, the first block written for it. It stays as written and is the value of the field.
- **A translation.** A translation is a reading: it names its language, carries its origin like any line, and never replaces the original. An answer cites the original and may show a translation beside it.
- **One text per language.** Two texts of one field in one language are a data validation error.
- **Without a language.** Without a language a field has one text block: several texts of one field where one names no language are a data validation error. Short values such as a name carry no language.

### Pointing inside a target

A link points at an entry or a file as a whole unless it says where inside.

| The target | How a link points inside |
|---|---|
| A text that can be edited | At a named anchor in the text |
| A text that cannot change, which is a field under `### Immutable`, or a file with a fingerprint | At quoted words, a page or a time, checked once when the link is written |

An anchor is `{#<name>}` at the end of a passage, with a name in the ID syntax. A link names it after its address.

```markdown
### Text: body

We talked about the trip for an hour.
We decided to take the train. {#train}
```

```markdown
- basis: [Note of 28 November](aim:trip#Record:Note[2026-11-28]) at #train
- shown: [Contract](aim:case#Record:Exhibit[contract-2024]) at page 4
- said: [Diary, 28 November](aim:diary#Record:DiaryEntry[2026-11-28]) at "We decided to take the train"
- heard: [Recording](aim:board#Record:Recording[2026-11-28]) at 12:40
```

- **The reader of a text sees the anchor.** Whoever is about to edit the passage knows that something may point at it.
- **Editing the words breaks nothing.** The link holds as long as the anchor is there. Only the removal of an anchor that a link names is reported, which is the check made whenever a target disappears.
- **No edit of a text causes a check of the links into it.** Where a text can change, a link points at an anchor. Where a link points at words, a page or a time, the target cannot change.
- **The author places the anchor.** An assistant may suggest one, marked like any suggestion. Nobody adds an anchor to a text that never changes, to a file, or to a text in another model.
- **What is checked.**
  - An anchor's name is unique within its entry.
  - Quoted words are checked to be there exactly as written. They are looked for in the target entry's texts or in its file.
  - A page or a time applies to the target entry's file. A page and a time are checked when a tool can read that kind of file and are otherwise *not checkable*, never wrong.
  - Lines are not addressed, because one added line would shift them.

### Authority and keeping

- **The source form.** The Entries form is the authoritative source form of its Record's rows: the collection holds what that form says.
- **Where it is kept.** Where the collection is kept is realization (§1). It may be a file in the repository, a database or a document store, provided the realization reads and writes the Entries form without loss and there is one writable authority. A search index, a cache or a table used for queries is derived from it.
- **Giving or taking the form.** Giving an existing Record an Entries form, or taking it away, transfers its rows and preserves their references.
- **Writing by hand.** People with write access may edit the file directly. A personal collection needs no operation, because writing an entry is writing.
- **An application for many users.** An application that keeps a collection for many users declares its writes through the Record's `mutates` operations. A file-editing path it offers has the same authorization and data obligations as its other writes. Its rows can be scoped to a person with `owner` (§3).
- **Data or model.** Adding an entry, editing its text or changing a link changes the recorded data. Editing the Schema, the requirements or the stated rows changes the model.
- **Nothing is hidden.** Nothing in an AIM file is hidden. The file is plain text, and whoever has it reads all of it. Who may read a collection is therefore decided by who is given which files, and what is private is kept in an area of its own that is not handed over.
- **Rules about reading.** A rule about reading is an ordinary requirement, kept by whoever serves the entries. A reader that holds only part of a collection answers "not in what I have" and never "no" (§4.1).

### Validation

- **Stored data.** The whole resolved collection and its links are validated as stored data (§3, §4.1): presence, types, uniqueness, `check` lines, periods and replacing.
- **Defaults.** A new row has its Schema defaults written.
- **Nothing is lost.** Reading and writing a file preserves keys, text, values, link labels, list order, trailers and anchors.
- **One change is one check.** One change, an editor's or a tool's, is checked as a whole, inbound links included.
- **Renaming and moving.** A renamed key or a moved Record updates every address and link in the same change (§14).
- **Deleting.** A row is not deleted while a link names it, unless the same change removes or repoints that link.

## 7. Dependencies and supplied material

- **Requires.** `## Dependencies` contains `### Requires` for capability aliases. A Requires entry has the form `- <capability-kind> as <Alias>`, for example `- Identity as AssigneeUsers`.
- **No imports.** AIM has no imports: every reference names the canonical node by its full address (§8).
- **One shared Persona in several roles.** Where a process has multiple distinct roles played by the same shared organizational Persona, model each local role as a `Persona` with `[plays](aim:...)` (§4.4).
- **What the work depends on.**
  - A function the work requires is a Capability facet (§4.8). It is required here by its alias.
  - A system that answers it, where the work consumes one through a connection, is a Service facet (§4.15). It is connected through its own Bindings.
  - A body of knowledge the work consults is a Knowledge facet (§4.11). It needs no alias.
- **Resolving an alias.** Each Requires alias resolves either through a co-located `kind: mapping` file or through inline Bindings on its Capability. An alias unresolved by either form is a hard validation error.
- **A mapping.** A mapping has `## Map: <Alias>`, `### Target` with a backticked provider intent bullet, and `### Operation Map` bullets in the form ``- `<Alias>.<Operation>` → `<provider>.<Operation>` ``. It is intent-to-intent.
- **A provider intent.** A provider intent, such as a service's own model, written from what the service offers, lives outside the consuming organization's tree. Nothing is moved into or out of it, and only its own source changes it. Its data enters the consumer as a value of its shape (`part(<provider>#<Record>)`) or as an external identifier. It never enters through `ref(...)`, which needs a row of the consumer's own.
- **Bindings.** Bindings resolve an external provider with no intent model and remain intent-to-realization. A Capability binding MAY name the Capability operation it realizes after `— as:`.
- **Older spellings.** The deprecated `### Imports` (``- `org.Employee` as Traveler``) is read so its aliases resolve. Migration rewrites every use into the full address and removes the block (§14).

Supplied material is concrete copy, seed data and media beside the model. It is never authored into `.aim` and is never a new facet, verb or block.

- **What is owed.**
  - A View reading a Record owes displayed data and any stated empty-state message.
  - A Record read but never mutated in-model owes externally supplied contents, unless it states its rows (§4.1) or has Entries (§6).
  - An Output that work needs and nothing in the model produces is owed from outside (§4.16).
  - Optional starting entries for mutable Records are permitted material but create no owed-material obligation.
- **Intent or material.** Visual identity belongs in Style. A mark's words are intent, and its image file is supplied material. Action labels remain intent, and material MUST NOT duplicate them.
- **Handoff channels.** The conventional handoff channels are `records/` for seed rows and `content/` for copy/media (`content/assets/` for image assets). Their file shapes are not specified, except the JSON profile for rows (below).
- **Using material.** Consumers MUST use supplied material verbatim and never write it back into the model.
- **Missing material.** Missing material is a question for the owner. It is never permission to invent content or ship placeholders.
- **Recovered material.** Material recovered from an existing realization is a draft for owner confirmation, with the same provenance discipline as inferred intent.
- **Readiness.** Material readiness is derived from the handoff. It never changes specification level or becomes a hard model error.
- **Slots and placement.** Ecosystem tooling determines owed content slots. Placement remains realization unless stated in Layout.

### Made or handed over

- **Made content.** Content made to realize the model, such as a layout, a dialogue file or an image the Realizer makes, is a realization, as code is (§1). The Realizer chooses within the freedom the model leaves and follows its observable commitments. A binding makes the site reviewable (§12).
- **Handed-over content.** Finished content that the owner hands over is supplied material. The handoff says which values it supplies, by Record, key and field where that applies. The consumer preserves those values. Packaging and schema-directed decoding may change the representation and never the values.
- **A directory.** A directory is a convention for finding material: that a file lies under `content/` or at a bound site says nothing about where a value came from.
- **Both in one row.** One row may hold both. A level has a layout the Realizer made and music the owner supplied, and the work that assembles the row shows which source contributed each field.
- **A promised value that is missing.** A value the handoff promises and omits is a handoff finding.
- **A required value nobody assigns.** A required value that nothing assigns and no default fills is owed by the Realizer, as a completed row or as a question recorded for the owner.

### Supplied rows

- **A seed row.** A supplied seed row for a Record without Rows is a complete row.
- **A fragment.** A supplied fragment for a Record with Rows (§4.1) holds the key and only the unstated fields the owner supplies. The consumer checks a fragment's values against their field rules, verifies its key and checks for overlap before assembly.
- **Validation.** For both kinds the consumer validates the completed rows before use, after filling defaults, against the full Schema and the `check` lines of Constraints: required fields, unknown fields, nested values, uniqueness across the data that will be loaded, and references against the data the realization uses.
- **A failure.** A failure names the Record, the row and the field or check. It is a handoff finding, apart from model conformance.

**The JSON profile.** The portable form is a JSON array of row objects, at a path the Record's address determines:

| Record | Complete seed rows | Fragments for stated rows |
|---|---|---|
| A Record facet `<intent>#Record:<Name>` | `records/<intent>/<Name>/seed.json` | `records/<intent>/<Name>/supplied.json` |
| A promoted Record `<intent>` | `records/<intent>/seed.json` | `records/<intent>/supplied.json` |

- **Path.** The namespace is written in full, with its dots. A path mapping that is ambiguous on the file system in use is rejected.
- **Keys.** A fragment's key uses the encoding of its field. Duplicate object keys are rejected, and so are duplicate row keys where a key is required.
- **Absent values.** A missing property and JSON `null` are absent (§3).
- **Scalars.** `boolean`, `integer` and `number` use JSON booleans and numbers. A `decimal` is its number literal in a JSON string, so the exact value survives. Other scalars and enum values are JSON strings.
- **References and files.** A `ref(...)` uses the encoding of its target field. A `file` is a `/`-separated project-relative path to a file in the package.
- **Nested values.** Parts and maps are objects and lists are arrays, with the Schema applied at every depth.
- **Other representations.** Other representations may be supplied or bound. They are verified through a reader that understands them, and where a reviewer has no such reader the gap is recorded (§12).

**What is derived**

## 8. Graph identity and derivation

The graph is normative. Relations are declared once at the acting end. Inverse relations are derived. Tree position determines ownership but does not constrain cross-intent or cross-level edges. Tools SHOULD expose useful graph queries and views without requiring people to comprehend the entire graph.

| Node | Source | Identity/type |
|---|---|---|
| Intent | `aim` and H1 | Namespace; `intent`, with the semantic types its content gives it (§5) |
| Facet | `## <FacetType>: <Name>` | Heading keyword determines type; no inference |
| Section | Bare top-level section | `section` |
| Sub-block/item | H3 and its list items | Addressable `block`, not an independent facet type |

**Edge endpoints.**

- **Sections.** Sections are valid report anchors but are edge-inert.
- **Intents and facets.** Typed edges connect intents/facets, with only two sub-block exceptions:
  - schema attributes participate in `refs` and `holds`;
  - individual top-level Requirements items are targets of `satisfies`.
- **Other sub-blocks.** No other sub-block is an edge endpoint.
- **Rows.** A row is no edge endpoint either.
- **Relationships that are no edges.** A link between two rows is a data relationship, derived from an Entries file and labelled by its field (§6). A `modelref` field and a requirement's `from` and `over` are structured references (§3). None of them is a verb of §5, and none joins traceability.

**Addresses.**

- **An intent address** is its namespace.
- **A facet address** is:

```text
<intent>#<FacetType>:<Name>
```

- **A field address** is `<intent>#<Record>.<field>` for a field of a Record facet, or `<intent>#<field>` for a field of the intent's own top-level `## Schema` (a promoted entity). A capitalized name after `#` is a facet, a lowercase one a field of the intent itself.
- **A promoted facet.** A promoted Record, Persona, process or Output is addressed by its intent (§5). No alias keeps its former facet address alive.
- **A row address** is `<Record address>[<key>]`, as in `game#Record:Level[W1-01]` and `diary#Record:DiaryEntry[2026-11-28]`, or `<intent>[<key>]` for a promoted Record.
  - The key is the value of the Record's key field (§3).
  - A text key stands without quotes. A character an address cannot carry is percent-encoded as in any web address, so the key `Team Plus` is written `[Team%20Plus]`.
  - The key field gives the type: `game#Record:Level[3]` names the row whose integer key is 3.
  - A row has this one address wherever it is written, in the Record's `### Rows` (§4.1) or in any Entries file (§6). The address never names a file.
  - Reports name a row by it, links between entries use it, and a requirement may cite it as its source (§3).
- **Fully qualified.** Every reference is written fully qualified, inside its own intent too: `[invokes](aim:juice.tasks#Operation:CreateTask)`, never `#Operation:CreateTask`. One spelling per thing reads the same in every file and lets a transform rewrite every reference to it (§14).
- **Verbatim.** Facet type capitalization and name match the heading verbatim. No percent encoding is required for valid names.
- **Older spellings.** The short forms are deprecated spellings: `#<FacetType>:<Name>`, and `ref(<Record>.<field>)`, `part(<Record>)` or `list(<Record>)` without an intent. Tools read them (§9) and write only full addresses.

**Pointers and Requirements targets.**

- **A report pointer.** A report may add ` → ### <Sub> [<index>]`, or ` → ## Requirements [<index>]`, to identify a 1-based list item. Such pointers are revision-specific and MUST NOT be authored edge targets. Work artifacts SHOULD include the item's text as a content anchor.
- **An authored `satisfies` target** uses `<intent>#Requirements[<key>]`: a stable declared label (or a numeric 1-based index in legacy source). Once edges exist, labels SHOULD be used.
- **Positional requirements.** Inserting or reordering positional requirements is a rename-class transform and MUST re-point all inbound positional edges.

**Deriving the graph.** Derive the graph by collecting fully qualified intent/facet/sub-block nodes; collecting inline edge tokens and structured references; resolving targets and validating legal source/verb/target triples; and adding inverses, reconciling any authored inverse blocks.

The graph may live in memory or a build artifact, never as an independent source file.

## 9. Resolution and traceability

### Canonical resolution

All references MUST use this algorithm; implementations MUST NOT substitute another:

1. **A full address names where the thing is declared.**
   - `<intent>#<FacetType>:<Name>` resolves in that intent's file and its sibling facet files only.
   - It matches type and name together: `company#Operation:Review` and `company#Record:Review` are distinct and both valid, since one name MAY serve two facet types.
   - An intent address `<intent>` resolves to that intent.
   - A field address resolves to the field of the Record facet or of the intent's own Schema (§8).
   - The named intent MUST exist and the thing MUST be declared there. No lookup continues upward.
2. **A deprecated short form resolves from the current intent**, by first match:
   1. embedded facet in the intent file;
   2. sibling facet file;
   3. an alias in deprecated `### Imports`;
   4. parent, grandparent, and continuing upward;
   5. a required alias through mapping or Capability binding (§7);
   6. absent.

   A schema `ref(<Record>.<field>)`, `part(<Record>)` or `list(<Record>)` names a Record. Tools rewrite each short form into the full address it resolves to (§14).
3. A typed reference whose name exists there only under another facet type is a hard error.
4. **A report pointer and a Requirements key.**
   - Resolve any report sub-block pointer by heading and 1-based item index.
   - Resolve a Requirements key against the named intent's top-level Requirements, by numeric position or a bullet label declared as `- **Label** — …`.
   - Missing/out-of-range keys and duplicate labels are hard errors.
5. **A row address** resolves its Record by step 1 and then the row, by typed equality on the Record's key (§3), among the Record's stated rows or its entries in every Entries file of the resolved project. Exactly one row MUST match.
6. **An address into another model**, `<name>/<address>`, resolves `<name>` in the `models` map of `AGENTS.md` (§16) and the rest inside that model by these rules.
   - When that model can be read, the target MUST exist and be of the kind its place requires.
   - When it cannot be read, the reference is *unverifiable* and never invalid, as an unsupported binding locator is (§12).
   - Nothing is copied: the other model stays the one place where the thing is described, only its own source changes it, and a link gives no right to read what it points at.
   - A target that was renamed or removed over there is reported the next time both models are at hand, and it is never repaired by guessing.
   - A link to something that is not written in AIM remains a `url`.

After the algorithm:

- **Unresolved.** A required unresolved reference is a hard error. An address that a promotion or move left behind is one, and is never repaired by guessing.
- **Shadows.** Under a deprecated short form, lower-precedence definitions produce informational shadow diagnostics.

### Levels and traceability

| Level | Specification |
|---|---|
| 1 | Intent only |
| 2 | Intent plus some facets and edges |
| 3 | Full facet trace with bindings, enabling declared/realized graph comparison |

**Levels.**

- **What a level governs.** Levels govern expected realization precision and traceability/review strictness. Tools MAY report the level.
- **Intent only.** Intent-only source remains valid with reduced fidelity.
- **Level 3.** At Level 3, unbound declared nodes become enforceable findings. Review verifies edges at bound sites with confidence, or uses a supplied realized-graph manifest.

**Traceability.**

- **Where it begins.** Traceability begins at individual Requirements satisfied by behavior.
- **Entry points.** Behavioral entry points are a Persona or an Organisation accessing a View/screen intent, an actor that `produces` an Output (§4.16), or a Trigger starting a Process or an Operation.
- **The chain.** Views expose Operations. Operations may invoke Processes. Operations and Processes read or mutate Records, consult Knowledge and emit Events, and produce and need Outputs.
- **An Output** is inside traceability. It is reached by `produces` and `needs`, and it can be an orphan. It reads Records and consults Knowledge as work does. Its `satisfies` edges count toward a requirement's `satisfied-by`.
- **Coverage.** Following derived `satisfied-by` reaches a requirement's realizers. No inbound `satisfies` is a coverage gap.
- **Style and State** do not join this behavioral chain: Style has no edges; State's structural edges are derived.
- **Knowledge** joins the chain only through `consults`, from an Operation, a Process, a View, an Output or an intent with Steps (§5).
- A requirement's source (§3) is outside traceability.
- **A complete trace.** A complete Level-3 trace has no orphan behavioral nodes or dangling edges.
- Stated rows and entries are outside traceability: neither is an edge endpoint.
- **A requirement with no satisfier.** A requirement held by the shape of the data (`### Immutable`), by the conduct of tools (§6) or by who is given the files has no satisfier. Its coverage gap stays informational for the owner to answer.

## 10. Context

Knowledge is written and context is derived. Nothing called context is authored, stored or handed over. What someone needs in reach to work on a node — a person, a Realizer, a Reviewer, or a skill while it runs — follows from the links and from the tree, as the graph itself does (§8).

### The context of a node

A node is an intent, a facet, a labelled Requirements item or a row. Its context has five parts.

| Part | Holds | Derived from |
|---|---|---|
| Itself | The node, and the Summary and Requirements of the intent it belongs to | §17 |
| What it names | The targets of the edges and references it declares, the requirements it satisfies and the Knowledge it consults among them | §3, §5 |
| Where it comes from | The sources that its requirements, or the requirements it satisfies, cite with `from` | §3 |
| What is said about it | The rows that link to it through a reference field or a `modelref` field | §3, §6 |
| The background above it | The Knowledge declared on its intent and on that intent's ancestors | §4.11 |

- **Derived, never authored.** No file, block or edge holds a context. A tool computes it, and two tools derive the same parts from the same project.
- **One step.** Each part is one step from the node. This is what a worker has without asking. Anything further is a question (below).
- **In reach, not read in full.** A small body is read whole. A large or growing collection is searched, and entered through *where it comes from* and *what is said about it*.
- **Access holds.** Deriving a context obeys the access rules of what it reaches, ownership included (§3). What cannot be read is reported.
- **Marks travel.** A row or a line in a context keeps its origin mark (§6).
- **Context informs.** It never decides (§4.11). A rule found only in the context is not a commitment, and the reviewer asks for the requirement.
- **Not an edge.** Deriving a context declares no edge and is outside traceability. `consults` stays the declaration that running work reads a body. A realization builds a lookup at run time only where `consults` says so.

For `scheduling#Operation:ListShiftsForDate` of §2:

| Part | Holds |
|---|---|
| Itself | The operation, and the Summary and Requirements of `scheduling` |
| What it names | `OVERNIGHT-DATE`, which it satisfies |
| Where it comes from | The entry `OvernightShift`, the source of `OVERNIGHT-DATE` |
| What is said about it | The entry `OvernightShift`, through `explainsOperation` |
| The background above it | `SchedulingContext`, the collection of notes |

### Reach by placement

- **Background reaches down the tree.** The Knowledge declared on an intent and on its ancestors in the resolved tree is the last part of the context of every node in that intent. Several facets in reach accumulate.
- **A link brings no background.** A reference or a dependency into another intent does not bring that intent's background along.
- **Placement sets reach.** Placement therefore sets reach, and a rule drawn from background is a requirement that cites it with `from` (§3).
- **A handover of the repository alone.** A handover that passes on the repository alone includes the background it expects the next group to read, or says how to read it from the checkout.
- **Background that is not available.** Background that applies and is missing, unreadable or reachable only through a service that is not available is reported as `BACKGROUND_UNAVAILABLE` against the Knowledge address and the affected intent. The review records which claims stay unverified and goes on with those that have enough evidence. Missing access is a handoff or verification finding, never a defect of the model.

### What is said about a node

Two relations lead from knowledge to the model, and each is authored once.

| Relation | Authored on | It is used when |
|---|---|---|
| The rule comes from the entry | The requirement, with `from [<row address>]` (§3) | The rule would be reconsidered if the entry changed. The entry shows the requirement drawn from it, and a change to the entry flags the requirement as a *stale source*. |
| The entry is about the node | The entry, with a `modelref` field (§3) | The entry explains or illustrates the node. A facet has no `from`, so this is the only link from an entry to an Operation or any other facet. |

- **The inverse is derived.** A requirement that cites an entry needs no `modelref` back from it, because the inverse is derived.
- **Backlinks follow access.** Backlinks are shown according to the reader's access to the entries.

### A question shows its way

Context is what a worker has without asking, and it stays at one step. A question is something a person or a skill asks of the knowledge.

- **As far as it needs.** A question may go as far as it needs, along several links or by comparing typed values, such as an entry's date with the start and end of a period (§4.1).
- **The answer shows the way.** The one condition is that the answer shows the way it went: the links it followed and the values it compared. Two answers from a diary: "12 entries, found through the circle Zürich friends, its 4 people, and the entries that mention them", and "31 entries, found by date, between the start and the end of the phase".
- **Every step is exact.** A link resolves or it does not, and values compare under the rules of §4.2.
- **The choice of way is a reading.** It is visible, so the person can reject it.
- **Nothing is written twice.** No entry carries a link to a phase or a circle that its date or its people already imply.
- **What a grouping contains is the owner's to say.** Whether "my time at Juice" means the entries dated in that period, the entries that mention colleagues, or both, is written once in the owner's words, as a requirement of the collection or in the skill that shows it.
- **An answer says what it rests on.** It says "possibly" for a rough date (§3), "about" for a value so marked, "not recorded" for an absence in an open list and "not in what I have" for a list it holds in part (§4.1), the standing of a claim (§6), and which of the lines it used are proposed.

AIM checks and does not draw conclusions, and it keeps who said what, not what is true.

**How it stays true**

## 11. Who may write what

| Capability | May write |
|---|---|
| Architect | Intent and its relationships; bindings when realization is known |
| Realizer, called Developer in software | Realization and its bindings |
| Reviewer | No model or realization changes; reports drift |

- **Operating modes.** These are operating modes, not language constructs or a required agent roster. One agent may hold multiple capabilities.
- **Reviewer.** A Reviewer MUST run cold with read-only access to what it judges. Continuing the session that produced the realization is not independent verification. Independence depends on context and permissions, not model identity.
- **Realizer.** The Realizer MUST NOT invent material behavior absent from intent. Preserve documented intent. Minimize assumptions. Surface assumptions for review or explicit intent revision. Resolve a mismatch explicitly: repair reality or revise intent. Never silently substitute one for the other.
- **Architect.** Before presenting a proposal or committing an extension/addition, the Architect MUST derive the proposed graph and repair every hard error it can resolve autonomously.
  - Surface only decisions requiring the owner, such as canonical ownership, a confirmed duplicate merge, ambiguous bindings, or missing/conflicting performers.
  - Never assign a performer merely to clear a finding.
  - A rewritten requirement requires reconsidering every satisfier. State explicitly when an unchanged satisfier still holds.

## 12. Bindings and review

A binding connects an intent node to its realization site.

- **Optional.** Bindings are optional. Missing coverage is informational at Level 1/2. Writing bindings opts into Level-3 graph-diff responsibility for those claims.
- **Form.** Canonical bindings are a node's inline `### Bindings` property containing bullets such as ``- binds: `src/tasks/create.ts#createTask` — as: handler``. Multiple sites are allowed.
- **Roles.** Advisory `as` roles include handler, model, component, route, topic and test. Text after the backticked locator is prose a parser may ignore.
- **Provenance.** An optional `- provenance: inferred` bullet in the Bindings block carries its trust until human-confirmed, independent of the surrounding intent's trust.
- **Locators.** Locators have an open scheme set, `<scheme>:<opaque-locator>`.
  - Code-family locators include `path#symbol`, a whole path, `path#L40-L72` (last resort), `route:POST /api/tasks`, `topic:tasks.created` and `table:tasks`.
  - Domains may use system, workflow, form, agent, queue, calendar or other schemes.
  - Unknown schemes are valid. An unsupported scheme is unverifiable, never invalid.
- **Specified schemes.** Two schemes are specified.
  - `rows-json:<project-relative-path>` on a Record with stated rows names a file that holds the complete assembled set in the JSON profile (§7). The Record it is bound to says which Schema governs it.
  - `entries:<Record address>` on a Knowledge facet names that Record's Entries collection (§6).
- **Older spellings.** The accepted deprecated sidecar form is `kind: binding` with `## Bind: <FacetType>:<Name>` entries (`## Bind: Flow:` and `## Bind: Contract:` read as Process and Operation, §4.0). Conforming tools MUST read it. They MUST merge its locators into inline `### Bindings` before any migration that removes the sidecar file.

- **The two graphs.** The declared graph consists of intent nodes and declared relations. The realized graph consists of sites and recovered relations. Bindings project them into a common space for diffing.
- **Bounded review.** Review is bounded: for each declared edge, inspect the bound site and check that claim rather than reconstructing the entire system.
- **A manifest.** Tools MAY supply a precomputed realized-graph manifest. Its format, enforcement mechanics and report formats are not specified.
- **What is checked how.** Structural counterparts are checked by graph-diff. Guarantee semantics require inspecting realization. Guarantees whose outcomes cannot be verified use procedure verification.

| Finding | Condition | Severity / owner |
|---|---|---|
| `UNBOUND_NODE` | A facet has no binding. Requirements, sub-blocks, schema fields and Steps owe none of their own: a requirement is covered through the bound facets that satisfy it, a property through its facet. | Informational at Level 1/2; MISSING at Level 3. |
| `DANGLING_BINDING` | Site no longer exists. | INCORRECT; Realizer. |
| `MISSING_EDGE` | Declared edge has no realized counterpart at its bound site. | MISSING; Realizer. |
| `EDGE_MISMATCH` | Edge exists on both sides with different endpoints. | INCORRECT; Realizer. |
| `UNDECLARED_EDGE` | Realized behavior has no declared counterpart. | UNDOCUMENTED; Architect. |
| `AMBIGUOUS_BINDING` | Conflicting sites for one node, or two nodes share one site that nobody has confirmed. One site realizing several commitments is normal; the finding clears once the owner confirms the sharing. | Ambiguous; user input. |

- **Confidence.** Every finding carries confidence. It is `high` when the bound realization clearly matches or clearly does not. It is `needs-human-check` when dynamic or ambiguous realization prevents a conclusion. Proxy confidence concerns procedure conformance, never outcome truth.
- **A clean report.** A clean report means every declared edge was reviewed as realized and no undeclared behavior was found at inspected bound sites, at stated confidence. It is not global proof.
- **The impact set.** The impact set is every node reachable from a changed node by following inbound edges, together with what depends on it without an edge:
  - every View and `document` Output that wears a changed Style (its intent and descendants, up to a nearer Style);
  - for a changed State, its Record and every operation that mutates that Record;
  - for a changed field, every facet or intent whose Criteria, Expects or Constraints names it in a comparison (§4.2).
- **Stated rows in the impact set.** A changed, added or removed stated row puts the Record's realization and every reference known to name the row in the impact set. Rows are matched by typed key. A key change is a removal and an addition, unless the change records a rekey and updates its references.
- **Context.** The context of a node (§10) is the counterpart of the impact set: the impact set is what must be looked at when a node changes, the context what must be read to work on it. Both are derived from the same graph, and neither is stored.

### Reviewing stated rows

A reviewer checks a Record's stated rows (§4.1) against the complete catalogue the running system uses. The bound file is shown to feed the running Record, or to be a complete extract of it at an identified snapshot. A source fragment or an extract of unknown coverage establishes nothing about completeness.

| Finding | Condition | Severity / owner |
|---|---|---|
| `MISSING_ROW` | A stated key is absent from the complete realized catalogue. | MISSING; Realizer restores the row. |
| `UNDECLARED_ROW` | The complete realized catalogue holds a key the model does not state. | INCORRECT; Realizer removes it. A deliberate addition is a model change for the Architect. |
| `ROW_MISMATCH` | A realized row's key matches and a stated field is missing or differs under typed equality. | INCORRECT; Realizer. |
| `INVALID_ROW` | The realized data violates the Schema or a checked constraint, a repeated key included. | INCORRECT; Realizer, or the owner for invalid supplied material. |
| `UNVERIFIABLE_ROWS` | The bound site is unreadable, unsupported or yields only part of the catalogue. | Verification gap; the Reviewer records which claims could not be checked. |

- **A missing site.** A site known to be missing is `DANGLING_BINDING`.
- **Partial evidence.** Partial evidence may establish a mismatch on a row it shows. Only a complete enumeration establishes that a key is missing or that the catalogue conforms.
- **Duplicate keys.** Duplicate keys are reported before rows are paired by key.
- **A snapshot.** Checking a snapshot establishes membership and values at that snapshot.
- **Checked apart.** That the running system keeps the rows read-only, and any words of a row that depend on behavior, are checked apart.

### Verification modes

- **Checking the output.** For cheaply and completely checkable outcomes, state Ensures and verify the result; do not also prescribe a procedure.
- **Checking the procedure.** For an unverifiable guarantee, state a Process invoked by the Operation and verify its normative Steps.
- **Both, per guarantee.** These modes compose per guarantee: output-check what is observable and cover only the remainder by procedure.
- **What may be reported.** Procedure conformance MUST NOT be reported as outcome verification. Proxy-verified guarantees never earn high outcome confidence.
- **When uncertain.** When uncertain, check output and prescribe procedure only where output cannot answer.

## 13. Diagnostics

- **Scope.** Evaluate conformance over the complete resolved project graph, never a file alone.
- **Where a rule stands.** A rule that makes a model invalid is stated where its construct is defined. A few that cross facets are listed below.
- **The list of conditions.** `reference/diagnostics.md` lists every condition a conforming tool reports: what makes a model invalid, what makes the data of a collection invalid, and what is incomplete and is asked of the owner.
- **Codes.** Every condition listed in `reference/diagnostic-codes.md` has a stable code. A tool reports the condition under that code and points to the AIM address concerned and, where useful, to the field or the row. A malformed file is named by its project-relative path and its location.
  - Two mentions of one condition share a code.
  - A published code keeps its meaning.
  - A retired code is never used again.
  - A tool's own conditions carry a tool prefix outside these names.
- **Serialization.** How a report is serialized stays open (§12).
- **Readiness tiers.** Tools MAY further partition informational conditions into readiness tiers (such as structural `gap`, owner `question`, and advisory `note`) to gate build or process execution, provided every hard error and informational condition is preserved.

### Not valid across facets

- An invalid facet heading type or name; duplicate effective facet definitions; child collision with an authoritative parent facet.
- A `key`, `rough`, `unit(...)`, `modelref(...)` or `fingerprint(...)` where §3 does not allow it; a malformed `(should)` (§3).

Data validation errors are reported apart from behavioral model errors. They say that what a collection records is not valid, not that the model is (§6).

## 14. Evolution

- **Authoring operations.** Authoring operations are EXTEND an existing intent and ADD an intent.
- **Transforms.** Tools reshape structure using promote (capability to child), split (distinct behaviors to siblings under an index), move/re-home, merge or rename. These are transforms, not language syntax or additional author primitives.

A transform changes addresses, never commitments. It MUST preserve behavior and relations, and:

1. Repoint all inbound references across the whole graph, in every intent of the project or workspace that names the old address, in the one change. Introduce no dangling reference or illegal triple. No alias keeps an old address alive. An address outside the graph that still names the old place is a dangling reference wherever it is read. It is said and never repaired by guessing.
2. Write every address in the moved content in full. A deprecated short address is rewritten to what it resolved to before the move.
3. Update every affected Children index.
4. Restore agreement of directory, filename, aim and parent.
5. Carry inline bindings with nodes. Relocate/update legacy sidecars. Preserve realization locators because the realization has not moved.
6. Have Architect confirmation before merging purported duplicates. Remove the duplicate, choose one canonical node and repoint both sets of references.
7. Never count as acceptance. Provenance stays per file.
   - Moving inferred content into a confirmed intent is one change that says it confirms that content. Approving it is the confirmation.
   - Moving confirmed content into an inferred intent is refused as an automatic transform. Confirm the destination first, or keep the content in its own sibling facet file, which keeps its own provenance (§15).
8. Leave the background of every intent as it was. Compare, before and after, the Knowledge in reach of each affected intent and the sources it resolves to (§10), matching renamed facets by identity. A move that changes which background an intent has in reach, or what a Knowledge facet resolves to, is a commitment change that the owner reviews and not a transform.

Promote, in particular:

- The facet becomes an intent, its promoted form (§4.1, §4.3, §4.4, §4.12–§4.14, §4.16).
- Its label becomes the intent's H1.
- Facets of its name that are one real thing come along into the same intent.
- Every reference to it is rewritten to the intent's address: edges, `ref(...)`, `part(...)`, Authz roles, `plays`, State `Of` lines, mapping targets, requirement sources.
- The transform carries, with the addresses, everything the realization attached to the facet: the rows of a Record promoted with it, the people who hold a Persona, the permissions its Authz entries gave, the connection a Service is bound to.
- A Record's stated rows, its `### Period`, `### Replaces` and `### Complete` and its Entries files move with it. Every row address, link, `entries:` locator, `modelref` value and requirement source that names it is rewritten.
- A renamed Schema field is renamed in every value bullet and entry line that names it.
- A transform that drops one of these is not a valid transform.
- A rename of a Record field or an Input field rewrites `[<field>]` and `[<input>.<field>]`, and a bare left side naming it, in every comparison that names it (§4.2).

**Migration of deprecated spellings.** A tool adopting this version MAY rewrite deprecated spellings when it opens a model, under the preservation rules of §3:

- each short address into the full address it resolves to;
- each use of a `### Imports` alias into the full address it names, removing the block;
- each `<From> → unchanged — [X]` into an `### Only in` bullet;
- each `Flow` into `Process` and each `Contract` into `Operation` (§4.0), in headings, `nature`, `kind`, file names, binding sidecars and every address, in one change, never the heading alone.

The rewrite changes no resolved node and no edge. It is shown to the owner like any change. A provider intent is never rewritten (§7).

- **6.5** deprecates nothing. A model that describes a produced thing as an Operation returning a part stays valid and is never rewritten into an Output by migration. Whether it is one is the Architect's judgement, made with the owner (§4.16).
- **6.6** deprecates nothing either. Prose Expects and Constraints stay valid and are never rewritten into `check` lines by migration.

**Adopting 7.0.** The new meanings apply when the owner declares `aim_version: 7.0` in `AGENTS.md`. A project declared as 6.6 keeps the 6.6 reading of headings, type words, material and Knowledge. Before the declaration changes, a tool shows an upgrade preview and changes nothing while it does:

- every Record block named `Rows`, `Period`, `Replaces` or `Complete`, promoted forms included. The owner keeps the prose under another heading or adopts the block in its structured form;
- every field declared `duration` or `position`, with the values it holds. The owner keeps the 6.6 meaning by declaring the field `string`, or adopts the type once every value reads as it;
- every requirement whose words begin with `(should)` or end in an `over [...]` of their own. A requirement without the mark stays a "must", so no strength changes on upgrade;
- every use of the frontmatter keys `record` and `subject`, and of `models` in `AGENTS.md`, for a purpose of the project's own;
- every text that already holds `{#name}` at the end of a passage or `at ...` after a link address;
- for every intent, the Knowledge it newly has in reach by placement, and any of it that cannot be read;
- for supplied rows, the inputs that the validation of §7 would reject and those that need a reader for their shape, with the source values left as they are.

`key`, `rough` and `unit(...)` stand after the type. So a field merely named `key` is unaffected, a date without `rough` stays an exact day, and a number without a unit stays a plain number. A check line that is valid in 6.6 keeps its meaning.

A Record gains Entries only when an author creates the file. Turning an existing store into an Entries collection preserves IDs and relationships and switches the authoritative source as one change.

7.0 deprecates nothing, and migration rewrites nothing.

**Graph-diffs.** Transforms yield graph-diffs of nodes, addresses, edges and bindings, with computable impact sets. A valid transform preserves the explicit edges and what nodes inherit without one (a View's or a `document` Output's effective Style), and introduces no attributable hard error, orphan, shadow or duplicate.

**Change record.** A change record MAY preserve this delta under `/aim/work/` for realization handoff. It is non-authoritative, point-in-time, archived after application. On disagreement `.aim` wins and review falls back to full graph-diff. Its format is not specified.

**EXTEND that rewrites a requirement.** EXTEND that rewrites a requirement changes a commitment.

- Revisit every item containing a satisfies edge to it: revise the item or explicitly confirm and report that it still holds.
- Stale satisfier compares both sides of a change: requirement text changed at the same label, or same position if unlabeled, while the satisfying list item/step/paragraph did not. It also flags harmless rewording for confirmation.
- Removing satisfies is never repair.
- New requirements have no existing satisfiers to revisit.
- Removed requirements produce dangling references.
- Reordered labeled items do not change identity.

## 15. A model made from what is at hand

A model may be made from anything at hand: a conversation, documents, data, an existing realization, a person's own account. This is the reverse pass. It is described by its result, whatever produced it.

- **The given words are kept or cited.** What someone said or wrote stays as written, as the text of an entry (§6) or as a source a requirement cites (§3). It is not paraphrased into a rule that then stands alone.
- **Every line says where it comes from.** A requirement carries its source and a line of an entry its origin. What the maker filled in on its own is marked `proposed` until the owner or the collection's author confirms it.
- **A gap is a question.** What the material does not say is asked and never invented. A rule that was asserted without evidence is kept with a confirming question.
- **It passes the checks before it is shown.** The proposed graph is derived, and every hard error its maker can resolve is resolved first (§11).

What an assistant does to a diary is this pass at the grain of a line. It recovers structure from someone's testimony, and what it recovers stays marked until that person confirms it (§6).

- **Reverse encoding.** Reverse encoding infers intent from artifacts or testimony. It acts as Architect and Realizer and emits bindings in the same pass.
- **Sources.** Cite artifact sources. Record who supplied testimony and when. Testimony defaults to needs-human-check until its source or principal confirms.
- **Exceptions.** Capture exceptions in On Error or separate operations and ask about them explicitly.
- **Provenance.** Re-encoded files MUST carry `provenance: inferred`. Remove it or set confirmed on human acceptance. Absence means confirmed. A transform never counts as acceptance (§14 rule 7). Overall file provenance and per-node binding provenance compose independently.
- **Inferred intent.** Inferred intent is provisionally authoritative for resolution and diagnostics but MUST be visually/reportably distinguished wherever presented. Confirmation coverage is informational.
- **Confidence.** Record `high` or `needs-human-check` confidence in a non-authoritative encoding report under `/aim/work/`, never in `.aim`. The model carries provenance.
- **Bindings.** Emit a binding for every inferred node with an identifiable realization site. Personas and Organisations as roles, and manual steps known only from testimony, are exempt. Otherwise reverse encoding provides Level-3 binding coverage immediately.
- **One intent at a time.** Bound each examination by intent. An entire tree MAY be drafted together but humans confirm each intent separately.
- **Existing entities.** Resolve-or-reference existing entities before defining new ones. Duplicates use the ordinary diagnostic and Architect-confirmed merge.

**Files and layout**

## 16. Files and project bootstrap

All AIM source files use `.aim` and consist of YAML frontmatter followed by CommonMark Markdown. Each file has exactly one H1, its display name.

### Frontmatter

Every source file begins with `---`-delimited YAML:

```yaml
---
aim: juice.tasks.create_task
kind: intent
parent: juice.tasks
---
```

| Key | Meaning and values |
|---|---|
| `aim` | Required lowercase, dot-separated intent namespace; authoritative identity |
| `kind` | Required file role: `intent`, a facet kind (`record`, `operation`, `process`, …), `mapping`, `entries` (§6), or deprecated `binding`; `contract` and `flow` are the deprecated spellings of `operation` and `process` (§4.0) |
| `parent` | Parent namespace; present on child intents |
| `display` | Display name overriding H1 for tooling |
| `tags` | Array of free-form discovery tags |
| `nature` | The kind of the intent, a projection hint: `organisation`, `project`, `software`, `service`, `process`, `persona`, `record`, `output`, `view`, `event`, `trigger`, or `capability`; absent defaults to capability reading; `flow` is the deprecated spelling of `process` |
| `provenance` | `inferred` for unaccepted recovered intent; absent or `confirmed` means authored/accepted intent |
| `owner` | Free-form accountable identity, used to route findings |
| `status` | Specification lifecycle: `draft`, `review`, `approved`, or `deprecated`; absent means unspecified |
| `approved_by` | Identity ratifying current content |
| `approved_at` | Optional ratification date accompanying `approved_by` |
| `timezone` | The IANA time zone every schedule and deadline counts in (`Europe/Berlin`); inherited by descendants, which may override it (§4.7) |
| `calendar` | The working days `business-days` counts: a country or country-region code (`DE`, `DE-BY`) meaning Monday to Friday plus that region's public holidays; inherited by descendants, which may override it (§4.7) |
| `record` | In a `kind: entries` file that is a list: the full address of the Record whose rows it holds (§6) |
| `subject` | In a `kind: entries` file that is a document: the row address of the entry the file is about (§6) |

- **Authority.** Only `provenance` qualifies authority. `owner`, `status`, and approval fields never change how tools treat content. Acceptance changes provenance and records the approver in the same act. `provenance: inferred` with `status: approved` or a present `approved_by` produces an informational contradiction diagnostic.
- **An explicit `nature`.** `nature` is explicit. One intent carries one `nature`. A tool MUST NOT change it from content: a Schema added to a persona does not make it a record. A tool MAY refuse to open an intent whose nature it does not know how to present.
- **What `nature` does not affect.** `nature` MUST NOT affect resolution, edge legality, or synthesis: what an intent is follows from what it holds (§5, intents as endpoints). Nothing operational follows from `nature`: not what may be nested under what, and not what is built (§4.14). A root intent may be of any kind: an organisation, a project, a software, a process or a persona. The kind of a child is independent of its parent's.
- **An absent `nature`.** Tools MAY infer a projection when it is absent:
  - a top-level Schema without acting edges reads as record;
  - intent-level Role/Access or acting edges reads as persona;
  - top-level Steps reads as process;
  - a top-level Format reads as output.
- **Nature against content.** Contradiction between declared nature and content is informational. Content remains authoritative.
- **Open frontmatter.** Frontmatter is open: conforming tools MUST ignore unrecognized keys, with at most an informational diagnostic. Project keys MUST NOT redefine spec-defined keys.
- **Versions.** Source files have no per-file `version` or `spec`. A project declares one language version. `reference/versions.md` says what each version added and what it deprecated.
- **Older spellings.** Tools MAY canonicalize older spellings only under the preservation rules of §3.

### Bootstrap and spec cache

Each project MUST have root `AGENTS.md` with frontmatter:

```yaml
---
aim_version: 7.0
aim_root: ./aim/
spec: <canonical specification URL>
---
```

- **`aim_root`.** `aim_root` locates source and defaults to `./aim/`.
- **The prose of `AGENTS.md`.** Its prose explains roles, project conventions, graph serialization, and co-location of mappings/bindings with their intents. It may include other project working instructions.
- **Other models.** A project names the other AIM models it refers to in an optional `models` map: a short name matching `[a-z][a-z0-9-]*`, and where that model is found.

```yaml
models:
  family: https://example.org/family-model
```

An address that begins with such a name and a slash, `family/people#Record:Person[Oma]`, points into that model (§9). A project that names no model reaches none.

Agents resolve the specification in this order:

1. Read `AGENTS.md`; require the language declaration and `spec` URL. The URL is authoritative; `aim_version` provides language context.
2. Read `<aim_root>/specs/spec.md` when present.
3. Otherwise fetch the declared URL.
4. Refuse to proceed if the project declaration or specification cannot be resolved.

- **The cache.** On setup, tooling fetches the declared specification into `specs/spec.md`. On adopting a new version, it replaces the cache. The cache MUST remain a verbatim mirror. Tools MUST NOT edit it.
- **Reserved directory.** `specs/` is reserved for cached specifications and MUST NOT be an intent namespace. Other directories containing a `<name>.aim` intent file are intent directories.

## 17. Layout and tree

### Layout and decomposition

- **File names.** The intent file is `<intent>.aim`. Sibling facet, mapping, and deprecated binding files are `<intent>.<kind>.aim`. All are co-located in the intent directory. Generic filenames `aim.aim`, `intent.aim`, `schema.aim`, `mapping.aim`, and `binding.aim` are invalid.
- **Directories.** A root directory uses its full namespace. Each nested child directory uses its added namespace segment. Children occupy nested directories under their parent. A child's mapping/binding files belong alongside that child, never in the parent directory.
- **Name and header agree.** A file's `kind` and its file name agree: `<intent>.process.aim` holds `kind: process`. Header identity is authoritative. Directory and filename MUST agree with it, otherwise a hard error results.
- **Entries files.** An Entries file (§6) sits in the directory of the intent its `aim` names and has a naming rule of its own.
  - A list is named `<intent>.<RecordName>.entries.aim`, or `<intent>.entries.aim` for an intent with its own top-level Schema.
  - A document is named `<intent>.<label>.entries.aim`. The label matches the ID syntax (§6) and is by convention the subject's ID.
  - A file's identity is its `aim`, its `kind` and its `record` or `subject`. Beyond the agreement of name and header, a file name carries no meaning.
  - The file is discovered with that intent's sources and creates no child intent.
- **Child namespaces.** A child namespace extends its parent by exactly one segment and declares `parent`. No intermediate level may be skipped without its own intent file and Summary. The one-segment constraint applies to each edge, not total breadth or depth.
- **Children.** Children are auto-discovered from directories containing intent files whose `parent` matches. An explicit `## Children` list overrides discovery: listed children MUST exist, every discovered child MUST be listed, and the list controls presentation order. Where such a list exists, an omitted discovered child is a hard error.
- **Older spellings.** The deprecated `<intent>.flow.aim` with `kind: flow` is the same file identity, as `<intent>.contract.aim` is `<intent>.operation.aim`.

### Minimum intent envelope

An intent file requires:

- valid `aim`/`kind` frontmatter;
- exactly one H1;
- a Summary containing at least one paragraph, or an H1-following paragraph serving as Summary;
- Requirements containing at least one bullet.
