agentic-intent-model

AIM diagnostics

What a conforming tool reports about a model, kept beside the specification. A hard error makes a model invalid. A data validation error says that what a collection records is not valid, and the model may be. An informational condition is something incomplete or worth a question to the owner. The sentences are those that stood in the specification until 7.0 was polished, in their wording and under the section they stood in. Section numbers are those of the AIM 7.0 specification. The codes are in diagnostic-codes.md.

§3 Statements and values

Diagnostics: informational, a ### Label with more than one line or an empty one; hard error, a label(...) that is not one quoted string, or an enum value label that is not one quoted string after its value. Diagnostics: hard error, a from [...] address that does not resolve, or resolves to anything other than a Knowledge facet, a Requirements item, an Event or a row; an edge token on a Requirements bullet. Informational: stale source (§3). Diagnostics: hard error, (should) on a bullet with no label; an over [...] that stands on a “must” or names one, that does not resolve to a labelled Requirements item, or that closes a circle. Informational: a “should” that was not kept, with the reason where one is recorded; two requirements that collide with nothing said.

§4 4.1 Record

Hard errors: more than one owner field; a ref(...) or part(...) whose Record or field does not resolve (§13); a Record that holds itself through required single parts alone, directly or through other parts, since no finite value satisfies it (an optional part, a list or a map ends the cycle with an absent or empty value); a map key whose target is not a scalar field declared unique; now or today in a check line of Constraints (name the writing operation’s Expects). Informational: a Record read but never mutated in the model owes supplied contents (§7), unless it is used only as a part; unique, owner, !owner or ### Immutable on a Record used only as a part, where they do nothing; a Record with no fields leaves its rows unstated for whoever realizes it. Hard errors for stated rows: a misplaced or repeated Rows block; Rows on a Record whose Schema declares no key; more than one key field, or key on a field that is not a required unique enum or non-file scalar; an invalid or duplicate key; a malformed row or value bullet; a value bullet that repeats the key or another field of its row, names no Schema field or names a field of an excluded type; a stated value that violates its type, min, max, enum, unique, an evaluable check line or a provable reference; a mutates edge to, or a State over, a Record with Rows; Rows together with Entries. Hard errors for the other blocks: a ### Period that does not name two date or two datetime fields of the Record, or whose per field is no field of it; a ### Replaces field that is no reference to the Record’s own key; a ### Complete bullet that is neither the collection nor a list field. Among rows, wherever they are written: two rows that start on one day under one at a time; a row that replaces itself through a chain. Informational: an empty Rows block, which states an empty set; an enum key with a value no row uses, since the membership is then stated twice and the two differ; ### Immutable on a Record with Rows; a required value still to be made or supplied, which is a realization or handoff obligation (§7); a written end that disagrees with the start of the next period; an older row that two rows replace.

§4 4.2 Operation

Hard error: a Criteria rule naming an outcome not declared under Decides; an operand that is neither a literal of the other side’s type, a field of the place, a field reached through a ref or part Input, now nor today; a literal on the left; a comparison that names no field; [<input>.<field>] where the Input is neither a ref(...) nor a part(...), where the ref target is not declared unique, or where the field is not in the referenced Record; two sides of unlike types; an ordering operator on a type that has no order; two ref fields compared that reference different targets; the clock now beside anything but a datetime, today beside anything but a date; no otherwise, or two; ### Criteria without ### Decides; two check fences in one block; a check line with more than one comparison, or naming an outcome. Informational: an Operation nothing exposes, invokes, triggers or subscribes (orphan); a Criteria rule no input combination can reach because an earlier rule covers it; an outcome no rule names (declared but undecidable); a Decides block with fewer than two outcomes; an outcome without criteria; an outcome Event nothing subscribes to or anchors a Trigger on; two or more emitted Events whose consumers diverge without a Decides block (ask whether it is a decision); a decision with no basis — no reads, Capability invokes, consulted Knowledge, needed Output or Input; a comparison that reads a row’s field while its work declares neither reads nor mutates of that Record; a comparison whose two operands are the same operand (two different ref Inputs to one Record are not: [fromAccountId.currency] = [toAccountId.currency]); a check line no value can satisfy; today with no timezone in reach (ask which); a field named now or today in work whose rules use the word (say that the field is meant); an Expects check on work that mutates no Record the check reads (ask whether the value should be reserved). Hard errors for calculation: arithmetic on an operand that is no number, date, instant or length of time; sum(...) or count(...) over anything but a list field of the place, or sum over a field that is no number; two operands whose shapes name different units; a duration beside one whose unit does not compare with it (§3).

§4 4.3 Process

Hard error: a continues: label that is no outcome of the decision the step invokes, or on a waiting step an Event the step does not subscribe to; an Ends on address that is not an Event; on a step over a collection, an address that is neither a list field of the case’s record nor a Record referencing it, a Record referencing it through several fields with no by, in order on a Record, in order of naming a field not of that Record (or of the part, for a list of parts), continues:, an invoked operation with no Input field that can take the item or several and no as, or as naming a field that cannot take it; until naming a field that is not date or datetime or not a field of the case’s record, after: without a unit the Schedule grammar knows, or both on one step. Informational: a single-subscription step with continues: (nothing to choose); a race, or an Ends on Event, that can never belong to the case (never emitted within it and never referencing its record); an Event subscribed at a step and also listed under Ends on (the step’s side is dead: the case ends first); a step over a collection with no operation (a human step per item, valid and shown per item); a timed wait with no timezone in reach, or business-days with no calendar in reach (ask which); an outcome that repeats the next step’s operation (redundant continuation); a deciding step followed by further steps where neither continues: nor exactly one outcome without a consequence of its own says which outcomes go on (ambiguous continuation — ask for continues:, never guess from labels); a sequence with no entry point, a step no entry reaches, a step that cannot reach an end, or a cycle with no decision outcome or deadline Trigger leading out of it.

§4 4.4 Persona

Hard error: an intent used as an actor — named in Authz, the target of plays, the source of accesses or produces, or performing work — without a top-level ## Role. Informational: owed work with no performer — distinguishing no performer at all, permission only (Authz without an invoking Persona) and a Trigger only, and asked once per Process where one declaration answers several steps; a performer outside the roles Authz names; a Persona that performs, reaches, produces, plays and is permitted nothing (give it its part or remove it). The owner answers these; the Architect never assigns a performer to clear one.

§4 4.5 View

Informational: a View no Persona reaches, directly or through its intent or an ancestor (orphan); a View with no Style in reach (§4.9); missing supplied copy (§7).

§4 4.6 Event

Informational: an Event nothing emits (orphan); a decision outcome’s Event nothing consumes (§4.2).

§4 4.7 Trigger

Hard error: ### Ends on a Trigger whose kind is not deadline; an ### Ends bullet other than the case. Informational: a Trigger that fires nothing (orphan); ### Ends with no unless Event (it will always fire: ask whether that is meant); an anchor or unless Event that does not resolve (unanchored deadline: declare the Event and its emitter); a business-days deadline with no calendar in reach, or a schedule or deadline with no timezone in reach (ask which).

§4 4.8 Capability

Hard error: a Requires alias that resolves through neither a mapping nor Bindings (§7); a mapping line naming an operation the Capability does not declare or the provider does not declare. Informational: a Capability nothing invokes and no Requires names (unused); a declared operation no binding or mapping covers while others are covered (tools MAY treat it as blocking readiness, §13); a Capability whose name is a vendor or product name the workspace also names as a Service, which reads as that Service. Such a Capability stays valid and is never rewritten by migration: naming the functions its operations stand for is the Architect’s judgement, made with the owner.

§4 4.9 Style

Hard error: more than one Style on an intent. Informational: a View with no Style in reach.

§4 4.10 State

Hard errors: ### Of missing or not a required Record enum field; states and values differing or repeated; not exactly one initial state; a move endpoint that is no state (deleted only as a target; deprecated unchanged read as Only in); a move by an operation that Only in confines to other states, which can never happen (name both lines); an Only-in state that is no state; a move out of a final state other than to deleted; a self-move <From> → <From>; a move naming no operation, an unresolved one, one that is no Operation or Process, or one that does not mutate the Record; the same move by the same operation twice; two States over one field; any sub-block other than Summary, Of, States, Moves, Only in, Label and Bindings. Informational: a state no move reaches; a non-final state with no way out; an operation that mutates the Record and is named in no move or Only-in bullet (often right — it may leave the status alone); a State with no moves.

§4 4.11 Knowledge

Hard error: consults to anything other than a Knowledge facet, or from anything other than an Operation, Process, View, Output, promoted process or promoted Output. Informational: a Knowledge facet nothing consults, which may be background only (§10); background that cannot be read (BACKGROUND_UNAVAILABLE, §10); a Knowledge facet with no Source and no Bindings, whose content is owed but nowhere said. Reviewer guidance, not a diagnostic: an operation that consults Knowledge while its Summary says it decides, with no Decides or rule in the model, keeps its decision only in the text; the reviewer asks for the rule.

§4 4.12 Organisation

Hard error: no Summary; an intent used as an actor without a top-level ## Role (§4.4). Informational: an Organisation that performs, reaches, produces, plays and is permitted nothing.

§4 4.13 Project

Hard error: no Summary; a Project with ### Role or ### Access, named in Authz, or the source or target of an edge.

§4 4.14 Software

Hard error: no Summary.

§4 4.15 Service

Hard error: no Summary. Informational: a Service whose Bindings bind nothing (not connected).

§4 4.16 Output

Hard error: produces or needs to anything other than an Output or an intent with a top-level ## Format, or from a source the taxonomy does not allow (§5); an edge an Output may not declare (§4.16); invokes from an Output to anything other than a Capability; a Format whose first word is not text, data, document, file or physical; ### Layout on an Output whose Format is not document; ### Constraints without ### Contains; a ref(...) to an Output. Informational: an Output nothing produces and nothing needs (orphan); an Output that work needs and nothing produces, which is owed from outside; an Output with no Constraints and no Ensures, which says what one is but not what a good one is; a Format naming a standard while the Output invokes no Capability and none is in reach, where the standard’s function is owed; an Operation whose Returns restates the Contains of an Output it does not produce. Reviewer guidance, not a diagnostic: an Operation that only returns a part and changes nothing reads as the making of an Output; the reviewer asks the owner.

§6 Entries

Data validation errors (§13): a header that names both record and subject or neither, or whose Record or subject does not resolve; a key line in the frontmatter, since the key is declared in the Schema; a second list for one Record; a file name that disagrees with its header (§17); a heading that names no Record, or in a list a Record other than the list’s; an invalid or duplicate ID; an unknown or repeated field; a value that does not fit its type; a link whose target is missing, or is of another Record or key field than the field declares; a modelref whose target is missing, of another kind, or a Requirements item addressed by position; an entry that does not belong to its document, or a document without its subject’s entry; a trailer that is neither from: <words> nor from [<address>], a second trailer on one line, a from [<address>] that resolves to neither a row nor a Knowledge facet, a mark that begins with proposed and is neither proposed by <name>, <date> nor the bare proposed; two texts of one field in one language, or several texts of one field where one names no language; a missing file, or one that no longer fits its fingerprint; at #<name> naming an anchor that is not in the target’s text, at words, a page or a time into a text that can change, or quoted words that are not there; a Record with both Rows and Entries. Informational: the number of lines waiting for confirmation, as confirmation coverage is for inferred intent (§15); a page or a time that cannot be checked.

§10 Context

Diagnostics. Informational: BACKGROUND_UNAVAILABLE, as above. The errors of a modelref field are data validation errors (§6).

§13 Diagnostics