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.
.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..aim if it is intended to be authoritative. Root AGENTS.md provides bootstrap and working instructions, not system behavior..aim.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.
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).
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.
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.
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).
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
## <FacetType>: <Name>. Top-level sections use bare names such as ## Summary, ## Requirements, ## Tests, ## Children, and ## Dependencies.[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).### Summary, or by ### Label and then ### Summary. The exception is a Persona used only for role/access declaration, which may start with ### Label.### Bindings property.## Bind: <FacetType>:<Name>.## 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).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”.
### Label. It is one line: the name as people say it, in any script. It stands right after the heading (above).label("…"): laengeInMm: number required label("Länge in mm"). A label(...) MUST be one quoted string.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).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 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
from [<address>] names what the rule comes from. That is one of four things:
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.
from: <words> keeps a reason that is not a thing in the model — an answer, a complaint, a decision — as prose.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.from: the owner, <date> and from: proposed tell apart what the owner said from what an authoring tool filled in.
from: proposed by <name>, <date>, with the name it goes by and the day.provenance stays what it is (§15).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]]
satisfies.over [<address>].
over [...] address MUST resolve to a labelled Requirements item.over [...] MUST NOT stand on a “must” and MUST NOT name one.over [...] MUST NOT close a circle.over stands before from.from. It derives over and its inverse, outside the closed taxonomy of §5 and outside traceability.Tools that parse .aim files into an intermediate representation and re-serialize them MUST distinguish preservation of meaning from canonical formatting:
(should)), text, precedence (over) and source (from);### Period, ### Replaces and ### Complete line (§4.1);check line (§4.2);### Label, label(...), enum value labels);## Dependencies (### Requires, and deprecated ### Imports until rewritten);provenance, owner, status, approved_by, approved_at, tags, display, nature, timezone, calendar);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).
## 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.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.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.status concerns specification lifecycle only.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.
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.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.default(false) is a boolean, default(0) a number, default(open) one of the enum’s values.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.
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).object, array, json and dict the nearest defined one is part(...), list(part(...)) or map(...).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.References. A field that points at a row of another Record is a reference.
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.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)).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.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.refs edge (§8). ref(<intent>#<Record>.<field>) derives a refs edge between schema attributes.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.
required, enum, min/max, nested parts, lists and maps) and the Record’s ### Constraints.unique, owner, !owner, ### Immutable and the Record’s States (§4.10) do nothing inside a part.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).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.
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.unique. No uniqueness is inferred from a field’s name, so an id without unique cannot key a map.ref(...), with the same deletion and ownership consequences.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.
file Input. The Capability reads it, and the Operation or Output owns the resulting commitments (§4.16).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.
required unique and has an enum type or a scalar type other than file. Neither form of ref(...) stands in the key position.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 |
1969 is every day of that year.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.~ 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.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).Units. A number field MAY name what it measures with unit(...): weight: decimal unit(kg), price: decimal unit(EUR, CHF).
75, and the shape says what it measures. A unit written beside it is refused.19.99 EUR. A value naming a unit the field does not list is refused.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.
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.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.
owner. A plain reference to a person does not imply ownership.ref(...) links — its own fields, the parts it holds, its map keys — inherits that row’s ownership restriction.plays, does not widen scope.!owner restricts an otherwise authorized action: the acting caller MUST differ from every applicable owner of the target row.
### Authz, qualify an Operation’s ### Input field identifying the target row, or qualify a Record’s reviewer ref(...) field.!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:
### 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.[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.
### 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.
ref(<Record>.<field>), part(<Record>) and list(<Record>) are deprecated (§8).ref(<Record>.<field>) resolves from the containing intent (§9).cross-owner(...), the short #Record:<Name> is deprecated (§8).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.
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.
[A-Za-z][A-Za-z0-9_]* (§3).### Summary, or by ### Label and then ### Summary (§3). The exception is a Persona used only for role and access.### Label (§3) and an inline ### Bindings property (§12).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:
proposals/ that records the evidence.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:
## Flow:, ## Contract:);nature: flow;kind: flow or kind: contract with its file name (§17);aim:<intent>#Flow:<Name>, a bracketed reference, a backticked address, a deprecated short form, a Decides outcome <intent>#Contract:<Name> → Decides[<Label>];## Bind: Flow: or ## Bind: Contract: (§12).The rules for these spellings:
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).Work.
## Record: Contract.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.
### Input, Event ### Payload, an Output’s ### Input and ### Contains, and a promoted entity’s top-level ## 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).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.### Constraints MAY hold one check fence, alone or beside bullets.
default(...) values are filled, on an update with the written fields laid over the stored ones. A delete evaluates nothing.arrival >= today on a Reservation would refuse the check-out the day after arrival.departure > [arrival] checked, “the nights are every date from the arrival to the day before the departure” judged.### 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).
### Rows
- **Free** — Fast models only.
- pricePerBuilder: 0
- peopleIncluded: 2
- **Standard**
- pricePerBuilder: 9.99
- peopleIncluded: 10
- **<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.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.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).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.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:
### Period
- from `since` until `until`
- 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.### 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.
### Complete holds - the collection, a backticked list field of the Record, or both.
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.### Rows are always complete and need no mark.## Schema.Constraints, Immutable, Rows, Period, Replaces, Complete) become top-level sections of the same name.nature: record as a hint.[reads](aim:company.kunde), ref(company.kunde#id), §5).## Schema: <Name> is the deprecated spelling of this facet and is read as a Record.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.
### Authz is permission, never performance. Who performs the operation is resolved as in §4.4.file. The reading Capability parses it, and the Operation owns the resulting records.### Decides bullet is one outcome. It holds a bold label, the criteria after the dash, and the outcome’s edges (emits, invokes, mutates, reads).<intent>#Operation:<Name> → Decides[<Label>].Criteria. A ### Criteria block states the decision as rules, one per line, in a criteria fence:
<Outcome> when <comparison>[, <comparison>]...
otherwise <Outcome>
ref Inputs name and the clock: FreeOfCharge when now < [reservationId.cancellationDeadline]. The conditions of one rule all hold together.### 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.Red when wind > 30, clearingForecastInWindow = false
Red when lightningWithinTenMiles = true, clearingForecastInWindow = false
otherwise Green
<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.
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].[<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.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.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.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.criteria or check fence is evaluated, never judged. A prose bullet is judged, never claimed as proven.check line MUST NOT hold more than one comparison and MUST NOT name an outcome.present and absent are always evaluated. Any other comparison with an absent operand depends on where it stands:
[<input>.<field>], from the row a ref names or from a part that was given, is absent.closedAt >= [openedAt] says nothing while closedAt is empty).Calculation. Either side of a comparison MAY calculate, in a check fence and in Criteria:
amount = sum(lines.amount)
count(attendees) >= 3
due <= filedOn + 21 days
born + 18 years <= today
+, -, * 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.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.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.### 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].
### Authz and the ownership rules of §3 have passed, so a refusal never tells a caller about a row the caller may not read.### 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.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.
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.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).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.2. Check feasibility — [invokes](aim:sales#Operation:CheckFeasibility) — continues: Feasible, SpecialCut.
continues: MAY be left out when exactly one outcome declares no consequence of its own. That outcome continues.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.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.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.
— 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.continues:, every one of the Events goes on: the step waited for any of them.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.### 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.<n>. <words> — for each [<address>] [as <input>] [in order | in order of [<field address>]] — <edges>.
<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>].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.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.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.### On Error for that step, as for any failed step.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.— 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.timezone and the calendar in reach (§4.7).## 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).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.
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.reads, mutates or emits — it inherits no Persona.claims#Persona:Approver, org#Persona:Employee, or a promoted persona’s intent company.hr.accesses edge widens that View’s reads for the named Record only (§3, §4.5).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).### 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.## Role and ## Access, its data a top-level ## Schema, and its operations co-located facets. nature: persona MAY mark it as a hint.
plays and performance by its namespace (§5).## Role. It MUST NOT contain a same-named Persona.## Role and ## Schema.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.
plays link.
cross-owner(...) grant on that Persona’s access edge to this View widens its reads, and only for the named Record.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.
emits edges. An Event MUST NOT author ### Emitted By.triggers an ingest Process, which emits the internal Event, so every Event has an emitter in the model.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.
deadline. Calendar recurrence is schedule.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.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).
unless Event of that case disarms it (an Event belongs to a case as in §4.6).
### Ends (- the case) does the following when it expires for a case:
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.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.
invoke the Capability it calls (§4.2). An Output MUST invoke the function it depends on (§4.16).## Dependencies → ### Requires (- ExchangeRates as Rates). It resolves through a mapping or its Bindings (§7).— as: covers the whole Capability.— as: covers that operation alone. So does an Operation Map line.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.
document Output (§4.16) of its intent and of that intent’s descendants. The nearest Style wins. No edge selects it.document Output’s own Layout wins for that document.content/assets/. The image is used verbatim and is never inside an .aim file.document Output with no Style in reach is complete. The realization chooses a clean neutral look and records it.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.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.
deleted is the exception, as a target only: it MUST NOT be the <From> of a move.<From> → <From>).<From> → <To> move, made by an operation the move names. The realization MUST refuse any other change before it commits.→ 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.### 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.<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.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.
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.consults counts as the basis of a decision..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.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.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.
produces an Output, it is that Output’s accountable producer, as a Persona is (§4.4, §4.16).nature: organisation, at the level that held it (§14).
## Role and ## Access only while it still acts in other work.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.
### Role or ### Access. It MUST NOT be named in Authz. It MUST NOT be the source or the target of an edge.nature: project, at the level that held it.
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.
produces an Output, it is that Output’s accountable producer, as a Persona is (§4.4, §4.16).nature, from its parent or from its depth.nature: software, at the level that held it, with its Records, Operations, Views, Processes and Bindings (§12) of its own.
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.
produces an Output, it is that Output’s accountable producer, as a Persona is (§4.4, §4.16).nature: service, is read-only and stands outside the consuming tree (§7).### Bindings.### Target names the provider intent, as before (§7).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.
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.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.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.### 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.check fence, where it is checked.file field in Input is a document the requester supplies. The Output owns the commitments made from it (§3).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.invokes (§4.8): a certified signature, a rating from a scoring service, validation by the body that owns a standard.
## Dependencies like any invoked Capability (§7).produces edge names who answers for the Output, never who or what carries out the making.
reads of the Output is that actor’s read, narrowed by ownership as any read of theirs is (§3).produces an Output hands it back. Its ### Returns need not restate the Output’s Contains.needs it: the Output is that work’s input.
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).produces the Output (§4.3).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.nature: output MAY mark it as a hint.## Input, ## Contains, ## Constraints, ## Format, ## Ensures, ## Layout.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.Declare each relation once, at its acting node, with [verb](aim:<address>). This is the edge syntax authors write.
from node is the nearest enclosing facet node, or the intent for a top-level declaration. The to node is the resolved address.aim:<namespace>#<FacetType>:<Name> or aim:<namespace> for an intent, inside the same intent too.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).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:
## Schema is a Record endpoint (read, mutated, referenced, held).## Role is an actor (Authz, plays, accesses, performing work).## Steps is a process (invoked and triggered, and the source of the reads, mutations, emissions, consultations, productions and needs of its steps).## 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.
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.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.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.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-Za-z][A-Za-z0-9_-]* or a 1-based integer.- **NET14** — The invoice is payable within fourteen days.invokes/exposes/triggers derive triggered-by.emits derives emitted-by.satisfies derives satisfied-by.produces derives produced-by.needs derives needed-by.### Trigger or ### Emitted By blocks are reconciled against derived sets, with an informational stale-inverse finding on mismatch.A future verb is admitted only if it meets all five of these tests:
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.
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 |
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.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).The names of the files are in §17.
## 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.
## <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>.string. IDs are case-sensitive and match [A-Za-z0-9][A-Za-z0-9_-]*.- <field>: <value> assigns a Schema field other than the key, in the literal grammar of stated rows (§4.1). A field occurs once.### 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.ref(...) field whose target is the target Record’s key is always written as a link, - <field>: [<label>](aim:<row address>).
list(<intent>#<Record>), holds one nested bullet per link, in list order. - <field>: [] is an empty list.mentions or followsUpOn. The label is display text.ref(...).modelref(...) field (§3) is written the same way with a model address: - explainsOperation: [List shifts for a date](aim:scheduling#Operation:ListShiftsForDate).file field holds a /-separated path relative to the project root, the directory of AGENTS.md, as in - document: files/exhibits/contract-2024.pdf.
.aim, as supplied material does (§7).fingerprint(...) field for it (§3), a tool writes the fingerprint, - fingerprint: sha256:9f2c…e41a.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. |
proposed is a suggestion that waits. Any other trailer is confirmed, or is the author’s own account of where the line comes from.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.### Text: <field> heading, for a text the author did not write;provenance: inferred (§15). A whole document is approved as any AIM file is, through owner, status, approved_by and approved_at (§16).source says where a claim comes from, and other entries can link to it.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.
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
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).check lines, periods and replacing.## Dependencies contains ### Requires for capability aliases. A Requires entry has the form - <capability-kind> as <Alias>, for example - Identity as AssigneeUsers.Persona with [plays](aim:...) (§4.4).kind: mapping file or through inline Bindings on its Capability. An alias unresolved by either form is a hard validation error.## 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.part(<provider>#<Record>)) or as an external identifier. It never enters through ref(...), which needs a row of the consumer’s own.— as:.### 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.
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).content/ or at a bound site says nothing about where a value came from.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.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 |
null are absent (§3).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.ref(...) uses the encoding of its target field. A file is a /-separated project-relative path to a file in the package.What is derived
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.
refs and holds;satisfies.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.
<intent>#<FacetType>:<Name>
<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.<Record address>[<key>], as in game#Record:Level[W1-01] and diary#Record:DiaryEntry[2026-11-28], or <intent>[<key>] for a promoted Record.
Team Plus is written [Team%20Plus].game#Record:Level[3] names the row whose integer key is 3.### Rows (§4.1) or in any Entries file (§6). The address never names a file.[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).#<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.
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.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.
All references MUST use this algorithm; implementations MUST NOT substitute another:
<intent>#<FacetType>:<Name> resolves in that intent’s file and its sibling facet files only.company#Operation:Review and company#Record:Review are distinct and both valid, since one name MAY serve two facet types.<intent> resolves to that intent.### Imports;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).
- **Label** — ….<name>/<address>, resolves <name> in the models map of AGENTS.md (§16) and the rest inside that model by these rules.
url.After the algorithm:
| 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.
produces an Output (§4.16), or a Trigger starting a Process or an Operation.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.satisfied-by reaches a requirement’s realizers. No inbound satisfies is a coverage gap.consults, from an Operation, a Process, a View, an Output or an intent with Steps (§5).### 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.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).
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 |
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 |
from (§3).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.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. |
modelref back from it, because the inverse is derived.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
| 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 |
A binding connects an intent node to its realization site.
### Bindings property containing bullets such as - binds: `src/tasks/create.ts#createTask` — as: handler. Multiple sites are allowed.as roles include handler, model, component, route, topic and test. Text after the backticked locator is prose a parser may ignore.- provenance: inferred bullet in the Bindings block carries its trust until human-confirmed, independent of the surrounding intent’s trust.<scheme>:<opaque-locator>.
path#symbol, a whole path, path#L40-L72 (last resort), route:POST /api/tasks, topic:tasks.created and table:tasks.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.
| 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. |
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.document Output that wears a changed Style (its intent and descendants, up to a nearer Style);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. |
DANGLING_BINDING.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.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.
gap, owner question, and advisory note) to gate build or process execution, provided every hard error and informational condition is preserved.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).
A transform changes addresses, never commitments. It MUST preserve behavior and relations, and:
Promote, in particular:
ref(...), part(...), Authz roles, plays, State Of lines, mapping targets, requirement sources.### 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.[<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:
### Imports alias into the full address it names, removing the block;<From> → unchanged — [X] into an ### Only in bullet;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).
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:
Rows, Period, Replaces or Complete, promoted forms included. The owner keeps the prose under another heading or adopts the block in its structured form;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;(should) or end in an over [...] of their own. A requirement without the mark stays a “must”, so no strength changes on upgrade;record and subject, and of models in AGENTS.md, for a purpose of the project’s own;{#name} at the end of a passage or at ... after a link address;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.
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.
proposed until the owner or the collection’s author confirms 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).
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.high or needs-human-check confidence in a non-authoritative encoding report under /aim/work/, never in .aim. The model carries provenance.Files and layout
All AIM source files use .aim and consist of YAML frontmatter followed by CommonMark Markdown. Each file has exactly one H1, its display name.
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) |
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.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.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.nature. Tools MAY infer a projection when it is absent:
version or spec. A project declares one language version. reference/versions.md says what each version added and what it deprecated.Each project MUST have root AGENTS.md with frontmatter:
---
aim_version: 7.0
aim_root: ./aim/
spec: <canonical specification URL>
---
aim_root. aim_root locates source and defaults to ./aim/.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.models map: a short name matching [a-z][a-z0-9-]*, and where that model is found.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:
AGENTS.md; require the language declaration and spec URL. The URL is authoritative; aim_version provides language context.<aim_root>/specs/spec.md when present.specs/spec.md. On adopting a new version, it replaces the cache. The cache MUST remain a verbatim mirror. Tools MUST NOT edit it.specs/ is reserved for cached specifications and MUST NOT be an intent namespace. Other directories containing a <name>.aim intent file are intent directories.<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.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.aim names and has a naming rule of its own.
<intent>.<RecordName>.entries.aim, or <intent>.entries.aim for an intent with its own top-level Schema.<intent>.<label>.entries.aim. The label matches the ID syntax (§6) and is by convention the subject’s ID.aim, its kind and its record or subject. Beyond the agreement of name and header, a file name carries no meaning.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.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.<intent>.flow.aim with kind: flow is the same file identity, as <intent>.contract.aim is <intent>.operation.aim.An intent file requires:
aim/kind frontmatter;