agentic-intent-model

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.

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

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

---
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

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

# People in the diary

## Person: Anna

- name: Anna

aim/diary/diary.DiaryEntry.entries.aim

---
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

---
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

---
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

---
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

---
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

---
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

---
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

---
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

---
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

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”.

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:

- **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

A requirement’s strength

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

- **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]]

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:

Markdown restrictions

Schema properties

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

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.

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.

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

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.

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

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.

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.

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

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.

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

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

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.

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:

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:

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.

### 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.

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.

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.

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.

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 rules for these spellings:

Work.

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.

## 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.

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.

## 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.

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.

## 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.

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.

## 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.

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.

## 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.

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.

## 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.

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.

## 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.

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.

## 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.

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.

## 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.

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.

## 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.

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.

## 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.

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.

## 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.

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.

## 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.

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.

## 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.

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.

## 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.

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.

## 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.

5. Edges

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

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:

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.

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.

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 names of the files are in §17.

An entry

## 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.

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.

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.

### 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.

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.

### Text: body

We talked about the trip for an hour.
We decided to take the train. {#train}
- 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

Authority and keeping

Validation

7. Dependencies and supplied material

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.

Made or handed over

Supplied rows

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

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.

Addresses.

<intent>#<FacetType>:<Name>

Pointers and Requirements targets.

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:

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.

Traceability.

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

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

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.

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.

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

12. Bindings and review

A binding connects an intent node to its realization site.

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.

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.

Verification modes

13. Diagnostics

Not valid across facets

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

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:

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

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).

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:

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.

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.

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).

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:

---
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)

Bootstrap and spec cache

Each project MUST have root AGENTS.md with frontmatter:

---
aim_version: 7.0
aim_root: ./aim/
spec: <canonical specification URL>
---
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.

17. Layout and tree

Layout and decomposition

Minimum intent envelope

An intent file requires: