agentic-intent-model

Modelling guides

Habits that have worked for people who write AIM models. They are not part of the language. A model that follows none of them is exactly as valid as one that follows all, and no conforming checker reports a model for its shape. A tool may offer some of them as advice, may offer others, and may offer different ones for different kinds of model.

Until 7.0 these passages stood in the specification, some of them as conditions a tool had to report. They are kept here in their wording. Section numbers are those of the AIM 7.0 specification.

Where things live

Design nodes and relations before serializing files. Parents are lean indexes of cross-cutting requirements, Children and dependencies. Shared facets belong at their consumers’ lowest common ancestor; only entities move upward, never the local roles reading them. Embed a handful there; sibling facet files earn themselves when the set grows. Cross-top-level entities have one canonical home, conventionally <app>.core, referenced by its full address. When a thing gains a user outside its subtree, its home becomes the lowest common ancestor of its users: move it there (§14). The depth of an address therefore says how widely a thing is shared; what the whole organization uses sits near the root and has a short address. A provider intent is exempt: it is never moved (§7). Before defining an entity, search the project graph and reference an existing definition rather than regenerate it.

A child owns one observable capability, its requirements/tests and specific facets. A child with only one facet and no own commitments adds no meaning; keep the facet on its parent/entity until it earns a level through purpose, requirements, entry points or multiple facets. Split distinct behaviors, preserving the shape rules. Promote noun-clusters together when the next change touches them. Promote substantive Persona, Organisation, Project, Software or Record entities with their own operations into intents; their operations arrive as facets, not one-operation child wrappers.

Organizational process boundaries follow end-to-end commitments across people, software and systems. A project’s root Summary states purpose; Requirements state existential commitments and the root canonically owns organization-wide shared entities. Children fulfill ancestor commitments through satisfies; organizational requirements use labels. Software, processes and obligations may be siblings. Derive structure from commitments, bottom-up or top-down; do not mirror reporting lines. Represent people as Personas and groups that act as one as Organisations, permission as Authz and performance by declared performer relations.

Shared background belongs at the lowest common ancestor of the intents that use it.

When a facet becomes an intent

A facet until earned: a thing stays a facet on the level that shares it until it earns an intent — the Architect’s test is whether it has its own intent to do something, a purpose, requirements, entry points or several facets of its own. This is a judgement, not a diagnostic: either reading leaves a valid model, and a later promotion or merge adjusts it (§14).

An Output stays a facet on the level that shares it.

How wide and how deep a tree is

Decompose into focused child intents by default. The parent indexes children and owns shared facets and cross-cutting requirements. A single file with embedded facets and no children is appropriate only when all content fits comfortably on one screen, specifies one clear behavior, and no facet needs independent ownership/review.

Each level SHOULD form a short table of contents, normally 3–9 children. Single-child chains and levels outside this band merit diagnostics. Depth has no absolute cap: each level earns its place, and decomposition stops at one clear behavior. A Summary that still combines distinct behaviors calls for children; depth count alone neither requires nor forbids a split.

Collections of entries

From the Entries chapter of the specification (§6).

Files follow meaning. Neither time nor length is a reason to split a collection. A phase of life, a job or a circle of friends is a thing that entries point at.

Processes

From the Process block of the specification (§4.3).

Phases. A large process splits into phases, each a run of consecutive steps producing one artifact; a phase with its own Record and operations becomes a process-natured child. The root keeps the shared roles, the entry Trigger, cross-cutting requirements, the Children index and an orchestrating sequence that invokes the phases; each phase keeps its steps, operations, Events and Record. A step is declared at its owning level only. References cross phases freely.

Long-running orchestration uses these constructs: a Process invokes work, mutates a progress Record, and emits or subscribes to compensation Events. Durable timers and signals are realization.

An organization with several processes gives each its own process-natured intent; a project that is one process uses its root and MUST NOT wrap it in a lone child. A Process that is named and not yet worked out is promoted like any Process once it has steps, operations, records or requirements of its own.

What a checker used to point at

These were informational conditions. Each is a taste about tidy trees and says nothing about whether a model is right.

Targeting an intent without Steps is a modeling smell.

What a good one looks like

One sentence per facet, written for AIM 7.0.

Names and tests

Observable Tests and precision facets for stable interfaces are recommended.

PascalCase is recommended for a facet name (§3).