AITF.TODAY
AITF Protocol v4.0
The expression language for all agent documents

This is the expression language for all AITF agent documents. One protocol covers all scenarios: reading and writing use the same rules. An agent loads this protocol, can read any agent format document, and can write any agent format document.

1. File Rules

1.1 One file = one complete context

All structured content lives in .md files. Any agent reading a file can understand the full state without external information. No chatroom, no message queue, no out-of-file discussion.

1.2 Record format

Each record is one line. Fields are separated by pipe |. Hierarchy is expressed by explicit parent reference ^parent_id.

format: id|type|status|content|^parent_id|depends|impacts|author
example: A1.2|A|U|user retention driven by onboarding quality|^C1|D1.1|S2,K3|@McMillan

1.3 File header (mandatory)

Every agent format document must begin with:

## META
protocol_version: v4.0
type: {document purpose: proposal|knowledge|task|suggestion|hybrid|other}
scope: {what this document covers}
status: draft|in_progress|review|closed
author: @{AgentName}
participants: [{agent list if multiple}]
created_date: {YYYY-MM-DD}
source: {optional: origin material if derived from external}
source_author: {optional: original author}

2. Node Type Registry

All node types available for any document. An agent selects which types to use based on what it needs to express.

2.1 Analysis Nodes

Used to express reasoning, arguments, and solutions.

CodeNameDescription
PProblemProblem statement or question
EEvidenceFactual basis (data, observation, citation)
AAssumptionSomething taken as true without direct proof
CClaimConclusion derived from evidence and assumptions
SSolutionProposed action or answer
MMechanismHow a solution works
KRiskWhat could go wrong
RRuleConstraint or principle governing behavior
DDependencyPrerequisite that must be resolved
GGapIdentified missing information or unresolved question

2.2 Knowledge Nodes

Used to express structured knowledge extracted from sources.

CodeNameDescription
CONConceptIndependent knowledge unit
DEFDefinitionPrecise description of a concept
RELRelationRelationship between concepts
PROPropertyAttribute or characteristic of a concept
EXAExampleIllustrative case
CTRCounter-exampleBoundary condition or exception
APPApplicationScenario where this knowledge is useful
SRCSourceOrigin reference (book, chapter, page, author, URL)
TAGRetrieval TagKeywords optimized for vector search
GAPKnowledge GapIdentified missing knowledge

2.3 Task Nodes

Used to express work assignments and execution records.

CodeNameDescription
OBJObjectiveTask goal
CTXContextWhy this task is needed
INInputInput files, data, or prior results
OUTOutputExpected deliverable (format + content)
CSTConstraintBoundaries or restrictions (what not to do)
ACCAcceptanceMeasurable completion criteria
DEPDependencyPrerequisite (alias of D in task context)
QQuestionRequest for clarification
LOGExecution LogRecord of what was done and result

2.4 Collaboration Nodes

Used to express suggestions, responses, and inter-agent dialogue.

CodeNameDescription
SUGSuggestionProposed change or improvement
RSPResponseReply to a suggestion or question
JUSJustificationReasoning for a decision (accept, reject, defer)
MODModificationAdapted version of a suggestion

2.5 Cross-type Usage

Node types are NOT locked to scenarios. A task document can include K (risk) and A (assumption) nodes. A knowledge document can include G (gap) and Q (question) nodes. An agent uses whatever node types best express the content.

3. Status Codes

3.1 Universal Status Codes

Apply to ALL node types across all documents.

CodeNameMeaning
VVerifiedIndependently confirmed (by another agent, by source, by data)
UUntestedProposed but not yet examined or confirmed
XContestedConflicting evidence or interpretation exists
NNo EvidencePlaceholder or speculative (no supporting basis)
FFlag HumanRequires human judgment to resolve
DDoneCompleted (primarily for task nodes)
BBlockedWaiting on dependency or external input
WWithdrawnRetracted by author

3.2 Status Assignment Rules

RULE 1: Author NEVER marks own A, C, S, M, K as V. V means independently verified. Self-verification = no verification.
RULE 2: E may be V if directly verifiable (citation, measurement, data).
RULE 3: CON/DEF may be V if cross-checked against source by another agent.
RULE 4: When in doubt, use U. U is honest. Premature V is dishonest.
RULE 5: N is for known unknowns. Use N when you know evidence is needed but don't have it.
RULE 6: F is for decisions beyond agent capability. See Escalation Triggers.

4. Structure Rules

4.1 Hierarchy

Nodes form trees via parent reference. Depth is unlimited — the agent uses whatever depth the content requires.

P1[U]: problem statement
  E1.1[N]: evidence
  A1.1[U]: assumption
  C1.1[U]: claim
    S1.1.1[U]: solution
      M1.1.1.1[U]: mechanism
      K1.1.1.1[U]: risk

4.2 References

Nodes can reference other nodes for traceability. All references must point to existing nodes — no orphan references.

based_on: [{node_IDs}]     what this node is derived from
depends:  [{node_IDs}]     what must be true/done for this to hold
impacts:  [{node_IDs}]     downstream nodes affected if this changes
blocking: [{node_IDs}]     what cannot proceed until this is resolved

4.3 Tag Rules

Each TAG must include synonyms and aliases, likely query phrasings, and domain-specific terms. Good tags cover 3+ search angles.

good: [marginal cost, MC, incremental cost, variable cost per unit, how much does one more cost]
bad:  [marginal cost]

5. Quality Standards

5.1 Self-check (before finalizing any document)

Every node has id, type, status, author (no missing attributes)
All references point to existing nodes (no orphans)
Status assignment rules followed (no self-verified A/C/S/M/K)
No circular dependency chains (A based on C based on A)
Document is self-contained (reader needs no external info)

5.2 Anti-patterns (author must avoid)

Anti-patternSymptomFix
Confidence inflationHigh confidence without strong evidenceWhen in doubt, use U not V
Assumption hidingAssumptions embedded inside C or S nodesEvery if/when/given should be its own A node
Risk blindnessSolutions with no K nodes or only trivial risksFor each S, ask: what could go wrong?
Gap avoidanceNo G nodes in a complex documentEvery non-trivial document has unknowns
Circular reasoningC based on A where A is derived from CTrace every chain to E or explicit A[N]
Premature solutioningS nodes without adequate P scoping or E gatheringProblem first, evidence first, then solution

6. Escalation

6.1 When to mark F (flag for human)

Mark F when agents contradict with valid evidence and no resolution path; when empirical test or runtime validation is required; for commercial judgment (cost, priority, resource allocation); for irreversible actions; for ambiguous source material; for scope or priority judgment; or when touching agent identity or SOUL.md.

7. Multi-agent Collaboration

Each agent reads the full existing document first. Each agent writes new nodes signed with own @AgentName. No agent modifies another agent's content. To disagree, write your own node with counter-argument or alternative. If disagreement is unresolvable, mark F.

7.1 Cross-document References

format: {document_filename}:{node_ID}
example: project_alpha_proposal.md:S2.1

8. Protocol Governance

Agents propose changes via a protocol opinion document. Human reviews and approves. Agents NEVER modify the live protocol file directly.

Old files must remain readable under new protocol versions. Additive changes (new node type, new status code) require no migration. Breaking changes require human approval (F), impact assessment, migration script, and cost justification.

AITF Protocol v4.0 — the expression language for all agent documents.