← Architecture review

Architecture documentation workbook guide

Complete reference for the agent architecture documentation workbook. Each sheet's purpose, column descriptions, and dropdown values are documented below.

Quick start: Download the blank workbook or sample filled workbook. Fill sheets in order: Overview → Agent Topology → Components → Tool Registry → Data Flows → Trust Boundaries → Memory Architecture → Guardrails → Autonomy → Observability.

Agentic-specific sheets

The workbook adds four agentic-specific sheets — Agent Topology, Tool Registry, Memory Architecture, and Guardrails — alongside the standard cloud architecture sheets (Overview, Components, Data Flows, Trust Boundaries, Autonomy, Observability). This structure models the cognitive control loop, multi-agent topologies, tool registries, and tiered memory systems rather than treating the agent as a monolithic black box.

Agent Topology

Map the cognitive control loop: nodes, edges, conditions, and state payloads. A directed graph structure that visual tools can ingest directly.

ColumnDescriptionValuesExample
node_idUnique node identifierrequiredNODE_CLASSIFIER
node_typeNode category (dropdown)requiredLLM_Agent
parent_clusterLogical grouping or layerfree textControl Plane
target_node_idEdge destination noderequiredNODE_EVALUATOR
edge_typeEdge type (dropdown)requiredconditional
edge_conditionTrigger logic for the edgefree textconfidence < 0.85
state_payloadKey state variables passed across the edgefree textclaim_id, uncertainty_reason
state_read_keysState channels read by the nodecomma-separatedvalidated_claim, context_chunks
state_write_keysState channels written or appended by the nodecomma-separatedapproval_decision
input_token_budgetMaximum input tokens allocated to the nodeinteger2000
output_token_budgetMaximum output tokens allocated to the nodeinteger1000
mermaid_flow_codeExcel-generated Mermaid edge; copy the populated column into a flowchartformulaNODE_A -->|conditional| NODE_B

Node types: LLM_Agent, Deterministic_Function, Router, HITL_Gate, Tool_Node, End

Edge types: sync, async, conditional, fallback, human_interrupt

Sample topology (from 7-node claims triage):

Ingestion Plane Control Plane Knowledge Plane Governance Plane NODE_INGEST ──sync──▶ NODE_CLASSIFIER ──conditional──▶ NODE_RAG_LOOKUP ──sync──▶ NODE_EVALUATOR (DF) (LLM) │ (Tool) (LLM) │ │ │ │ │ conditional ├──conditional──▶ NODE_PAYMENT_EXEC │ ▼ (confidence<0.85) │ │ NODE_HITL_GATE ──human_interrupt──▶ NODE_PAYMENT_EXEC └─────────────────────────────────────────────────────────┘ (amt>500)

Tool Registry

Document every tool or action the agent can invoke. Separate passive data ingestion from active external side effects.

ColumnDescriptionValuesExample
tool_idUnique tool identifierrequiredTOOL-003
tool_nameSchema function namerequiredsubmit_approval
description_promptSemantic description the LLM uses for selectionrequiredSubmit claim approval to payment gateway
execution_typeHow the tool executes (dropdown)requiredAPI
side_effect_levelImpact on external state (dropdown)requiredIrreversible_Action
is_idempotentWhether retrying produces the same safe resultYes / NoNo
schema_formatTool-interface contract formatdropdownJSON_Schema
auth_sandboxExecution boundaryfree textPayment API Gateway
timeout_retry_policyTimeout and fallback behaviorfree text10s, no retry — requires idempotency key
mermaid_sequence_codeExcel-generated Mermaid participant declarationformulaparticipant TOOL-003 as submit_approval

Execution types: API, SQL_Query, Sandboxed_Python, CLI_Command, Function_Call

Side effects: Read_Only, Idempotent_Write, Irreversible_Action

Memory Architecture

Define how context windows and persistent storage interact across conversational turns.

ColumnDescriptionValuesExample
tierMemory tier (dropdown)requiredWorking_Context
storage_engineStorage backendfree textIn-Memory State
retrieval_strategyHow data is fetched (dropdown)free textFull_Context
context_eviction_strategyHow context is reduced during long execution loopsdropdownSummarize_Window
token_budget_limitAllocated context sizefree text4,000 tokens
notesAdditional contextfree textCurrent turn context window

Memory tiers: Working_Context, Short_Term_Session, Episodic_History, Semantic_Knowledge

Retrieval strategies: Dense_Vector, Hybrid_BM25_Dense, GraphRAG, Sliding_Window, Full_Context

Eviction policies: TTL, LRU, Summarize_on_Overflow, Selective_Pruning, None

Guardrails

Map defensive filters applied across the agent lifecycle.

ColumnDescriptionValuesExample
interception_pointWhere the guardrail fires (dropdown)requiredPre_Model_Input
guardrail_typeType of guard (dropdown)requiredPII_Redaction
action_on_breachResponse on violation (dropdown)requiredSanitize
mitre_atlas_techniqueMapped adversarial-ML techniquedropdownAML.T0003_Execution
latency_impactExpected overheadfree text~20ms
notesAdditional contextfree textRedact SSN, DOB, bank account before LLM call

Interception points: Pre_Model_Input, In_Reasoning_Execution, Post_Model_Output, Pre_Tool_Execution

Guardrail types: Prompt_Injection_Detection, PII_Redaction, Regex_Schema_Validator, Hallucination_Eval, Tool_Output_Validator

Breach actions: Block_and_Alert, Reprompt_Self_Correction, Fallback_to_Human, Sanitize, Log_Only

Standard architecture sheets

Overview

System metadata: name, version, owner, purpose, autonomy level, data sensitivity.

10 key-value pairs with guidance notes in the third column. Autonomy level: none / assistive / supervised / autonomous.

Components

Inventory of deployed components with exact versions and deployment mode. Dropdowns for category, deployment, state owner.

Data Flows

How data moves between components and external systems. Captures synchronous versus asynchronous transport, frequency, protocol, and an Excel-generated mermaid_flow_code edge.

Trust Boundaries

Security and authorization boundaries, including authentication, authorization, encryption, and an OWASP LLM threat mapping such as prompt injection, sensitive-information disclosure, or excessive agency.

Autonomy

What the system can do without human approval, safety controls, rollback methods.

Observability

Telemetry: traces, logs, metrics, evals. Dropdown for coverage level.


Need help? Send the filled workbook to madhavraop@dhristhi.com with context about your system.