Skip to main content

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​

CategoryShowsGenerationValidationExamples
Semantic diagramPrecise 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 illustrationA 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 viewNavigation, 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.

InformationFirst choiceAlternativeDerived fromLimits and cost
Exact values, attributes of options, trade-offsTableListNoSplit a table with more than about seven columns. Tables fit symbolic tasks.
Ordered interaction among parties: requests, operations, eventsSequence diagramNumbered stepsFlow step interactions and participants, or body sentencesSegment above about ten messages. Name the parties as the source names them.
Lifecycle with states and transitionsState diagramState-by-event tableLifecycle sentences and derived-fact tablesLabel the conditions on transitions. States are facts of the source, not phases.
Prerequisite order: artifact dependencies, task prerequisitesDirected graph, arrow from prerequisite to dependentEdge listIdentity records; the tasks list and task depends_onDraw declared edges only, not transitive edges. The reader-derived view is primary.
Behavior journey with branches and loopsFlowchart from transitions, with conditions on edgesStep list with "to step n when"Flow recordLoops are valid. A flow is not a DAG and not an execution order.
Containment and hierarchy: layout, components, bounded contextsTree listing or nested groupsIndented listDirectory listing or body textShow only the depth that the reader needs.
Change impact and consumersGraph of element references grouped by artifact, consumer to supplierTable of consumer, supplier and reasonreferences front matterIt is not the dependency graph. Show unresolved targets as unresolved.
Evidence traceability: criterion, check, result, sourceTableGraph for navigationUnit evidence; task evidence_recordsResults are recorded claims, not verification.
Quantities and measurementsTableChart only when a trend mattersMeasurement tablesPosition encodes most accurately. Rarely necessary.
Responsibility by role or phaseTableSwimlane diagramWorkflow tablesPhases are not runtime states.
Before and after a changeTwo-column comparison or paired listingsProse with the differenceEstablished and proposed knowledgeAlign the compared items.
A concept or mental modelWorked example with concrete valuesExplanatory illustrationRequirement examplesLabel 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​

  1. Notation. Use Mermaid in a fenced block labelled mermaid. Prefer flowchart, sequenceDiagram, stateDiagram-v2, classDiagram and erDiagram. 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.
  2. 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 accTitle and accDescr; the source line. The body text carries the facts. When the surrounding text does not state them, add a list after the source line.
  3. 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 with Illustrative: instead of Source:.
  4. 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.
  5. Size. Use about 15 nodes or 25 edges at most per diagram. Split a larger graph into an overview and detail diagrams.
  6. 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.
  7. 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.
  8. 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.

  1. 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.
  2. 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.
  3. 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.
  4. Select. Use the selection guide. Prefer the reader-derived view for structural facts and a table for exact comparison. Use one representation per relationship.
  5. 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.
  6. Generate. Write the notation from the fact list under the authoring rules.
  7. Explain. Write the introduction paragraph. Check that the body text carries every fact of the picture.
  8. 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.
  9. 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.
  10. 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​

PhaseUseDerived fromAvoid
RequirementExample scenarios with concrete values; before-and-after comparisons; measurement tables; a journey listing of candidate flows.Confirmed facts and examplesArchitecture pictures; invented protocol detail
SpecificationContract 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 recordsA picture in place of the contract text
ADRAlternatives table with options and criteria. A decision graph only when the options branch.Alternatives sectionA diagram of a linear choice
PlanThe 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_onHand-drawn task order; task edges across artifacts
ImplementationEvidence 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 supportsA diagram as proof of execution
VersionChange summary table: what changed, compatibility level, affected contracts.Version record and identity record differenceA 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.

GraphNodesEdge meaningSourceShape
Phase orderPhasesThe next phase uses the output of the previous phaseWorkflowSequence with returns
Task graphTasks of one changePrerequisite task before dependent tasktasks list, task depends_onAcyclic
Artifact graphArtifactsUpstream artifact establishes before dependent implementationIdentity recordsAcyclic
Flow graphSteps of one flowBehavior transition, with a conditionFlow recordBranches, joins and loops allowed
Element referencesElementsConsumer uses supplier knowledgereferences front matterAny 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.