agentic-intent-model

Agentic Intent Model (AIM) v7.0

AIM 7 widens the language from software and business processes to knowledge in general: what a person, a team or an organisation knows, records and commits to, written so that people and AI can both check it. A Record can state the rows its owner fixes. A collection such as a diary, the minutes of a meeting or an incident report is written in AIM as entries, and every line can say who put it there, so that an assistant’s suggestion never passes for the author’s word. What someone needs to read for a piece of work is derived from the links and the tree, and nobody writes context by hand. The text of the specification is re-ordered to follow that picture and shows five whole models. A model valid under 6.6 stays valid, apart from a short list of spellings that an upgrade preview shows.

Formerly “Application Intent Model” — renamed when the language generalized beyond software.

AIM is a specification language for humans and AI agents. It captures the intent of a system — an application’s behavior, a business process, an organization’s commitments — in structured .aim files that agents read once, realize, review against, and repair over time — replacing the sprawl of PRDs, SOPs, design notes, and plan files that otherwise hold intent hostage in prose. Software was AIM’s first domain and remains its most worked example; nothing in the language is specific to it.

This repository is the specification itself — the language, its reference examples, and the role prompts. Tooling, the package catalog, and publishing live in separate repositories.


What’s new in 7.0

Status. 7.0 was written into the specification on 29 November 2026, before any of its pilots had run. A second review, kept at the end of the proposal, advised running the pilots for fixed rows and for a writable diary first and held its approval of the combined draft. The constructs of 7.0 are therefore specified and not yet proven on a real model.

Rows the owner fixes. A Record names its key in the Schema (id: string required unique key) and may state its rows in ### Rows: the levels of a game, the tiers of a plan, the moods a diary offers. The set is closed, the running system only reads it, and a review compares it with what is realized (§4.1, §12).

Knowledge is written. A kind: entries file holds rows of a Record in AIM, as a list or as a document about one thing: a meeting with its decisions and actions. A text keeps its author’s words. What is recorded about them is a line of its own, and every line can say where it comes from. A line that an assistant adds on its own ends in — from: proposed by Claude, 2026-11-28 until it is confirmed, and a confirmed line keeps who proposed it (§6).

Context is derived. What to read for a piece of work follows from its links and from the Knowledge above it in the tree. Nothing called context is written, stored or handed over (§10).

Time, strength and everyday values. What holds only for a while is a row with a period, and a newer row names the one it replaces. A date may be rough (1650~), a length of time is a value (21 days), a number says its unit (unit(EUR)), a place its position, a text its language. A requirement may be a (should) and may win over another “should”; a “must” never gives way. A check may calculate (amount = sum(lines.amount), born + 18 years <= today). A list is open unless its owner says it is complete, and only then does an absence mean “no” (§3, §4.1, §4.2).

Beyond one project and one text. A link may point into another AIM model that the project names, at a file with its fingerprint, and inside a text at a named anchor (§6, §9, §16).

The text follows the picture. The specification opens with the picture on one page, shows five whole models beside the words they were made from (examples/diary, board, claims, scheduling, incidents, checked by examples/check.py), and then says what is written, what is derived, how a model stays true, and files last. Every section has a new number. What a model does not need on every turn is kept beside the text: reference/versions.md holds the history and maps the numbers of 6.6, reference/diagnostics.md lists what a checker reports, and reference/diagnostic-codes.md gives those conditions stable codes. The specification holds no advice on how to shape a model: what used to be rules about decomposition, breadth and “monoliths” is now guides/modelling.md, a collection of habits that no checker enforces.

What’s new in 6.6

From reading six example models in full for commitments that only prose carried. One finding recurred in every one of them: a rule that compares two fields, or a field with the clock, could not be written in a form a tool can check. A model valid under 6.5 is valid 6.6; nothing is migrated. See the 6.6 proposal.

What’s new in 6.5

From five real cases — a customer’s recipe skill, an invitation text that a valid model could never produce, a menu whose arrangement had nowhere to go, the correction of written exams, and a building crew waiting for concrete. In each, what the owner cared about was a noun: the thing the work hands over. A model valid under 6.4 is valid 6.5; nothing is migrated. See the 6.5 proposal.

What’s new in 6.4

From the NASA example set beside BPMN 2 and DMN: three real processes — lifecycle gates, a launch countdown, anomaly resolution — each had a place where the language ran out. 6.4 fills them the AIM way: no new verb, every fill a property of a construct that exists, and one behaviour where two realizations could otherwise differ. A model valid under 6.3 is valid 6.4. See the 6.4 proposal.

What’s new in 6.3

From Amy’s Studio, where an owner wrote “we have a shipping department” and got a process, and from writing a whole organisation (NASA) in the language. A model valid under 6.2 is valid 6.3; the renamed spellings are still read and are rewritten when a model is opened. See the 6.3 proposal.

What’s new in 6.2

From a real owner’s first session (a packaging manufacturer modelling its company) and a consistency review of 6.1. A model valid under 6.1 is valid 6.2; old spellings are still read and are rewritten in full when a model is opened. See the 6.2 proposal.

What’s new in 6.1

Parts. A field can hold one structured value inside its holder — a build’s result, a project’s GitHub link — as part(<Record>), and several as list(part(<Record>)). Before, AIM could only point at a row elsewhere (ref(...)), so such fields were written object and read as text. A part is checked against its Record’s fields, refuses keys the Record does not name, and derives a holds edge. Values keyed by run-time text — a sha per file path, a price per currency — are map(<type>); values keyed by rows — a quantity per product — are map(ref(Product.id), integer), with each key a checked reference. Nothing existing changes meaning. See the 6.1 proposal.

What’s new in 6.0 — and why it matters

The whole language, said once. An agent reads the specification before it writes or checks a model — in practice, on every turn. 5.13 had grown to 221 KB and 34,000 words: the history of every release, tutorials, before/after demonstrations, and the same rule stated in several places. 6.0 says the same language once, in thirteen sections, about 11,400 words and 74 KB. In Amy, the prompt an agent reads per decision shrank to well under half. Less to read is less to contradict, and every rule now has one home.

Nothing to migrate. A model valid under 5.13 is valid 6.0, read as it is (§16). The 5.13 edge shorthand and binding sidecars are still read; they are simply no longer written.

Four things a model can now say that it could not before.

  1. A process keeps its own roles, filled by the organization’s people. The Submitter and the Approver of a claim are two roles with two lanes and two sets of permissions — and both are employees. Each local role now names the shared one it is filled by, without merging them and without a second “Employee” (§4):

    ## Persona: Approver
    
    ### Role
    
    - Approves expense claims — [plays](aim:org#Persona:Employee)
    
  2. Privacy that reaches what it should, and no further. owner marks whose row it is, and a row that references a private row is private too — the lines of a claim are as private as the claim. Two modifiers state the exceptions exactly: cross-owner(...) lets one role act on other people’s rows of one record, for one operation or one screen; !owner forbids acting on one’s own (§3). “Approvers approve other people’s claims, never their own” is one line:

    ### Authz
    
    - `#Persona:Approver` cross-owner(#Record:Claim) !owner
    
  3. A record’s lifecycle can protect the rest of the record. A State already said how the status may move. Now it can also say when the other fields may change (§4):

    ### Moves
    
    - Draft → Submitted — [Contract:SubmitClaim]
    - Draft → unchanged — [Contract:EditClaim]
    

    EditClaim may change the claim only while it is a draft.

  4. Every write is held to the model. However an operation is performed — code, an automation, an AI interpreter — each change it makes must satisfy the schema, the immutable fields, ownership and every State of its record before it commits (§4). The model is no longer advice the realization may skip; it is the check every write passes.

Types that mean what they say. integer, decimal, email, url and phone join the scalar types, each with the values it admits, and every realization checks them before storing. A field that names another record is a reference — owner: ref(Member.id) — and that row must exist (§3).

Every facet reads as an extension. Each of the ten facets — Record, Contract, Flow, Persona, View, Event, Trigger, Capability, Style, State — is one self-contained block with the same parts: Purpose, Form, Example, Edges, Rules, Diagnostics and Since (§4). A new facet arrives the same way, with its example and its diagnostics, so the language can grow without anyone rereading the rest.

Tools can trust each other’s output. A tool that reads a model and writes it back must keep every node, rule, edge, modifier, dependency, binding and authority field, and must not rewrite a file when anything would be lost (§3, Preservation of meaning). Models move between editors, agents and repositories without silently losing meaning.

See the 6.0 proposal for the complete list of changes, the editorial decisions, where each 5.13 section went, and the questions still open.


Why AIM

AIM pays off when reading the model is meaningfully easier than inspecting the realization. For trivially small or throwaway work, acting directly is the right call.


The graph foundation (the v4 break)

v4 was the breaking change from v3.1 that founded the language on a graph; v5 generalized it beyond software and finished the naming; 6.0 says it all once (spec §8). The three shifts:

  1. Graph-founded model. The .aim Markdown file is a projection of an underlying node-and-edge graph. Every heading is an addressable node.
  2. Typed edge taxonomy. One CommonMark-native token — [verb](aim:<address>) — replaces v3.1’s inconsistent prose cross-references. Dangling references, orphan nodes, and impact sets fall out for free, and the traceability chain becomes computable rather than aspirational.
  3. Intent↔realization binding layer. An inline ### Bindings property on each node (with its own provenance; deprecated kind: binding sidecars still accepted) maps intent nodes to their realization sites — in code, in systems, in automations — turning drift detection into a graph-diff.

Migrating from v3.1: see Section 13 of the 5.13 specification — 6.0 keeps release history in proposals/ instead of the specification.


File format at a glance

---
aim: nemicko.demo.todo
kind: intent
---

# TaskManager

## Summary

A personal task manager.

## Requirements

- Users can create and complete tasks.

## View: TodoDashboard

### Summary

The owner's task-list surface.

### Actions

- Submitting the "New Task" form — [exposes](aim:nemicko.demo.todo#Operation:CreateTodo)

The [exposes](aim:nemicko.demo.todo#Operation:CreateTodo) token is a typed edge: View → exposes → Operation:CreateTodo. Collect every such token across a project and you have the relation graph.

Worked examples ship with the spec:


The roles

  1. Architect designs the intent graph from a human’s narration and serializes it as .aim files.
  2. Realizer makes reality match the model — a development team, an automation, an agent performing a process — and keeps bindings current. (In software this role is the Developer, and the shipped prompt templates use that name.)
  3. Reviewer diffs reality against the declared graph and reports drift — explicitly routed to a realization fix (Realizer) or an intent revision (Architect).

Render .aim files as Markdown on GitHub

Drop a .gitattributes file at your repo root:

*.aim linguist-language=Markdown
*.aim linguist-detectable=true

GitHub will render .aim files as Markdown — frontmatter, headings, lists, and the edge tokens as clickable links.


Repository contents


Meet Amy

AIM is the language; Amy is the assistant who speaks it. You don’t pick a role from a menu — you talk to Amy and she enters the right mode herself: design the intent, build code from it, review code against it, or reverse-engineer an existing codebase into an intent model.

Any other agent: point it at AGENTS.md and the spec at https://intentmodel.org/specification.md.


Current spec: AIM v7.0

Built by Juice d.o.o. · MIT License