Visual Representations
Use this guide when you write, review or change a table, listing, diagram or derived view in ADD knowledge. The principles and their research basis are in visual knowledge. The worked examples apply this guide to real artifacts.
The text is the knowledge. Structural facts stay in YAML front matter, and the Markdown body explains them. A representation presents knowledge that the text already states. It adds no fact, phase, review step or workflow state.
Categories
| Category | Shows | Generation | Validation | Examples |
|---|---|---|---|---|
| Semantic diagram | Precise relationships that the source states: prerequisites, transitions, interactions, containment, consumption, lifecycle. | From a fact list taken from front matter or body sentences. Every node and edge maps to one fact. | Count the nodes and edges against the fact list. Confirm that no element is extra, missing or reversed, that labels and directions equal the source, that the notation renders, and that the text alternative agrees. Record the check in the owning self-check or task evidence. | Task graph, flow diagram, write-path sequence, lifecycle state diagram |
| Explanatory illustration | A concept, analogy or comparison that helps a reader form a mental model. | From the concept, labelled Illustrative:. | Review that it contradicts no source fact and that its text says what it does not encode. | Comparison of two layouts, a labelled example scenario |
| Interactive knowledge view | Navigation, exploration and editing over structured records. | Derived by a reader tool from records. Never authored. | The reader's own validation and diagnostics. | Dependency, task, unit and flow graphs of a reader tool |
Tables and listings are semantic representations or illustrations according to their content. The same rules apply to them.
Selection Guide
"Derived from" names the records that a reader or an agent regenerates the representation from. "No" means that the facts exist only in prose.
| Information | First choice | Alternative | Derived from | Limits and cost |
|---|---|---|---|---|
| Exact values, attributes of options, trade-offs | Table | List | No | Split a table with more than about seven columns. Tables fit symbolic tasks. |
| Ordered interaction among parties: requests, operations, events | Sequence diagram | Numbered steps | Flow step interactions and participants, or body sentences | Segment above about ten messages. Name the parties as the source names them. |
| Lifecycle with states and transitions | State diagram | State-by-event table | Lifecycle sentences and derived-fact tables | Label the conditions on transitions. States are facts of the source, not phases. |
| Prerequisite order: artifact dependencies, task prerequisites | Directed graph, arrow from prerequisite to dependent | Edge list | Identity records; the tasks list and task depends_on | Draw declared edges only, not transitive edges. The reader-derived view is primary. |
| Behavior journey with branches and loops | Flowchart from transitions, with conditions on edges | Step list with "to step n when" | Flow record | Loops are valid. A flow is not a DAG and not an execution order. |
| Containment and hierarchy: layout, components, bounded contexts | Tree listing or nested groups | Indented list | Directory listing or body text | Show only the depth that the reader needs. |
| Change impact and consumers | Graph of element references grouped by artifact, consumer to supplier | Table of consumer, supplier and reason | references front matter | It is not the dependency graph. Show unresolved targets as unresolved. |
| Evidence traceability: criterion, check, result, source | Table | Graph for navigation | Unit evidence; task evidence_records | Results are recorded claims, not verification. |
| Quantities and measurements | Table | Chart only when a trend matters | Measurement tables | Position encodes most accurately. Rarely necessary. |
| Responsibility by role or phase | Table | Swimlane diagram | Workflow tables | Phases are not runtime states. |
| Before and after a change | Two-column comparison or paired listings | Prose with the difference | Established and proposed knowledge | Align the compared items. |
| A concept or mental model | Worked example with concrete values | Explanatory illustration | Requirement examples | Label illustrations. Reduce examples for expert readers. |
Use no representation when:
- the relationship covers four items or fewer with one relation;
- a table already holds the facts;
- a sequence has five steps or fewer and no branch;
- a reader-derived view already shows the structure;
- the picture would only decorate.
Authoring Rules
- Notation. Use Mermaid in a fenced block labelled
mermaid. Preferflowchart,sequenceDiagram,stateDiagram-v2,classDiagramanderDiagram. Do not use click directives, HTML in labels, init directives or external resources. Do not put a semicolon in an unquoted label, because Mermaid reads it as the end of a statement. Another text-defined notation is acceptable when all readers of the knowledge render it; name the notation in the source line. - Order. Put these items in this sequence: one introduction paragraph that says what the picture shows and what its arrows mean; the fenced block with
accTitleandaccDescr; the source line. The body text carries the facts. When the surrounding text does not state them, add a list after the source line. - Source line. Write
Source: <logical identities>; derived <rule>; <revision or "current snapshot">. Use the forms of the identity table. An explanatory illustration starts the line withIllustrative:instead ofSource:. - Labels and edges. Node identifiers use letters, digits and underscores. Labels use the identifier or title of the element as the source writes it. State the arrow meaning once per diagram. Solid edges mean established relationships; dotted edges (
-.->) mean proposed relationships. - Size. Use about 15 nodes or 25 edges at most per diagram. Split a larger graph into an overview and detail diagrams.
- Facts. Draw only relationships that the source states. Mark gaps and unresolved targets as the source marks them. Do not combine phase order, task prerequisites, artifact prerequisites, flow transitions or element references in one picture.
- Stale marking. When a source changed and nobody has rechecked the diagram, add the line
Stale: <identity> changed; recheck pending.after the source line. Remove the line when the self-check regenerates or confirms the diagram. - Generated output. A diagram from an agent or a tool is a proposal until the validation of procedure step 9 is recorded. Image output of a generative model is never a semantic diagram.
The diagram below shows rules 7 and 8 as the states of one embedded diagram. Each arrow is an event that changes the state of the diagram.
Source: authoring rules 7 and 8 and procedure step 10 of this guide; derived one state per stated condition and one transition per stated event; current snapshot.
Agent Procedure
Apply these steps when you create, review or change a representation. They run inside the existing phase self-check or task check and add no phase.
- Analyze. Read the purpose, the front matter and the body structure of the element. List the relationships that the text states: sequence, states, prerequisites, containment, consumption, comparison and quantities. Note the readers and their expertise.
- Identify difficulty. Mark passages where a reader must keep more than about four related items in mind, follow a sequence across paragraphs, compare more than two options on more than two attributes, or follow a path across documents.
- Decide. A representation is justified when a relationship from step 1 is the subject of the passage, a reader task needs search or comparison that the prose spreads apart, and no derived view or table already shows it. Otherwise keep the prose and record the decision in one sentence.
- Select. Use the selection guide. Prefer the reader-derived view for structural facts and a table for exact comparison. Use one representation per relationship.
- Model. Write the fact list that the representation will show: nodes, edges, labels and states, each with the identity of its source. Include only stated facts. Mark gaps as gaps.
- Generate. Write the notation from the fact list under the authoring rules.
- Explain. Write the introduction paragraph. Check that the body text carries every fact of the picture.
- Link. Write the source line. Name nodes so that a reader can find the elements. Put links to governing elements in the text, not in the diagram.
- Validate. Count nodes and edges against the fact list. Confirm that no element is extra, missing or reversed, that labels equal the source, that the notation renders or parses, that the text alternative agrees, and that the layout implies no relationship. Record the check and its result in the self-check or task evidence.
- Maintain. When a source element changes, regenerate the diagram from its derivation or mark it stale. Remove a representation when its subject is removed. Do not edit a diagram to show a fact that the source does not state; change the source first.
Answer each self-review question with yes before you record the check:
- Does the body state every fact that the diagram shows, and does the diagram show only stated facts?
- Does each arrow style have one declared meaning, and are graphs with different edge meanings separate pictures?
- Does a reader without the renderer get the same facts from the text?
- Does the source line name the identities and the derivation?
- Is the diagram within the size limit, or split into levels?
- Do the labels use existing identifiers and titles?
- Is a table or a reader-derived view not better for the task?
- Is the check recorded with its result?
Prohibitions:
- No decorative or redundant visuals.
- No invented behavior or relationships.
- No image-generation output as verified architecture.
- No loss of semantic precision for appearance.
- No mandatory diagramming tool.
- No simplified picture in place of complete technical knowledge.
Phase Application
| Phase | Use | Derived from | Avoid |
|---|---|---|---|
| Requirement | Example scenarios with concrete values; before-and-after comparisons; measurement tables; a journey listing of candidate flows. | Confirmed facts and examples | Architecture pictures; invented protocol detail |
| Specification | Contract tables for inputs, outputs and errors; sequence diagrams for interactions; state diagrams for lifecycles; containment diagrams for boundaries; flow diagrams from flow records; model participation from participants and interactions. | Body sentences; flow and model records | A picture in place of the contract text |
| ADR | Alternatives table with options and criteria. A decision graph only when the options branch. | Alternatives section | A diagram of a linear choice |
| Plan | The task graph that a reader derives from the task list and the task prerequisites; an embedded derived copy when readers have no reader tool. | tasks list and depends_on | Hand-drawn task order; task edges across artifacts |
| Implementation | Evidence table: DoD item, check, result and source. Updated behavior diagrams when the behavior changed. Test and implementation supports on flow steps. | Task evidence_records; flow supports | A diagram as proof of execution |
| Version | Change summary table: what changed, compatibility level, affected contracts. | Version record and identity record difference | A new diagram for an unchanged structure |
These views cross artifacts. Each is derived and has its own meaning:
- feature evolution, from version records and their source changes;
- dependency navigation, from identity records;
- runtime interaction, from flow records;
- change impact, from references and flow supports in reverse;
- evidence traceability, from unit evidence and task records;
- lifecycle, from the derived-fact rules.
Four Graphs, Four Meanings
ADD knowledge contains graphs that look alike and mean different things. Keep them in separate pictures and name the meaning of each arrow.
| Graph | Nodes | Edge meaning | Source | Shape |
|---|---|---|---|---|
| Phase order | Phases | The next phase uses the output of the previous phase | Workflow | Sequence with returns |
| Task graph | Tasks of one change | Prerequisite task before dependent task | tasks list, task depends_on | Acyclic |
| Artifact graph | Artifacts | Upstream artifact establishes before dependent implementation | Identity records | Acyclic |
| Flow graph | Steps of one flow | Behavior transition, with a condition | Flow record | Branches, joins and loops allowed |
| Element references | Elements | Consumer uses supplier knowledge | references front matter | Any shape; explains artifact edges |
Traceability and Maintenance
Each semantic diagram has a source line. Each phase self-check lists the representations of the changed documents and records, for each one, that it was regenerated or checked against its sources. A task that changes behavior rechecks the diagrams of the governing specification and reports stale diagrams to the coordinator. Version preparation confirms that no stale line remains in the working knowledge. Do not edit a representation in a retained change or an established version; a correction is a new change.
Reader Support
A reader of ADD knowledge meets this guide when it:
- renders a fenced Mermaid block from its text without external resources, or shows the block as source text with its label, so that the introduction, the text alternative and the source line stay readable;
- keeps the derived views of structural facts as the primary form, with proposed additions and removals marked;
- never treats an embedded diagram as a structural fact. Front matter is the only structural source.