Documentation

Docs / Reference

ADR 0079 - Architecture graph: components, links, annotations and chains

Status: Accepted (delegated review, 2026-11-19)

Context

Launch 1 (item 3; ROADMAP.md) and milestone M2 of the project plan ask for the 2D architecture graph "with protocol/auth annotations where the code proves them", from components (L1) down to the line. The design rounds (the T026 task record (internal)) ended with developer decisions AG1-AG18 (2026-11-18): combination X+ (quiet map, fixed three-cell glyph protocol | auth | TLS, inspector with sources, Links tab with a Not proven list, chain drawn in place), React Flow + ELK (ADR 0046), components from confirmed manifests with kinds only from stored facts, deploy markers that never create links, libraries folded, tests and docs hidden, SDK imports as dotted stubs, auth worded "declares" / "as written" / "documented", TLS and database engine unknown unless a deploy-config file proves them, and a chain from any node in both directions with all branches.

The investigation inventory (the T026 task record (internal)) measured what main can compute: no L1 or L2 node is stored; manifests are scanned files whose content no extractor states as a package (the Python resolver reads pyproject and uv workspaces for import roots only, ADR 0072; cargotoml reads Cargo files for sqlx and Diesel); protocol facts for HTTP, Tauri IPC and SQL exist; auth is stored only as Express route middleware names and OpenAPI security; no deploy configuration is read. Langflow route chains outgrow any map (210 of 296 still grow at depth 6).

The claim contracts are in docs/contract/claims/architecture-graph.md (rows CM, CK, CV, CD, CE, AP, AA, AT, AE, DC, DA, CH).

Options considered

1. Where components come from

2. Deploy configuration

3. Auth facts

4. Chain query

5. Layout

Decision

Options 1A, 2A, 3A, 4A and 5 as above, with the claim contracts of docs/contract/claims/architecture-graph.md:

Consequences

Implementation notes (the implementation)

AG-B1 component model and API (2026-11-18)

AG-B2 chain query and API (2026-11-18)

AG-B4a FastAPI and hey-api auth (2026-11-18)

AG-B4b Express and Axum auth (2026-11-18)

AG-B3 deploy-config extractor (2026-11-18)

AG-C1 UI map (2026-11-18)

AG-C3 Flow tab Tables column (2026-11-18)

AG-B5 TypeScript bridges (2026-11-18)

AG-F T026 fix round (2026-11-18)

Review fix round (2026-11-18)

Fixes of the independent review (the T026 task record (internal)), each as a class rule with its contract row, docs and test:

Known gaps

TOP-2 of 2026-11-18: server actions, project members, deterministic Not proven

A contract change the developer asked for (rows added to docs/contract/claims/architecture-graph.md; code and tables stay 1:1):

Acceptance notes (2026-11-19)

Revision (T042): chain depth up to 10, default 6

Status of this revision: Proposed (pending the developer's review; the decisions above keep their status).

Report a problem with this pageSource: docs/adr/0079-architecture-graph.md