v2.29.0 ·
A picture of the system that moves with the code
I give a project its architectural direction and then let autopilot build. After enough unattended merges, the only way to see whether the system still looks like what I asked for was to read the code. That is exactly the job I handed off.
AIDLC already drew diagrams. A change could carry its own architecture diagram, but that diagram described one change and froze when the change shipped. Nothing carried it forward. In one project I built the missing half by hand: a file of five Mermaid diagrams called "the system as it stands", and a rule that a diagram moves there once its change merges. Nothing did the move. Whether the file matched the code depended on someone remembering.
What changed
A project now keeps one living document at .aidlc/architecture/system.md. Nobody creates it up
front. The first change that draws a diagram creates it from a template, which aidlc init and
aidlc update install at .aidlc/resources/templates/system.md. A project that never draws a
diagram never gets the file.
Design draws a diagram only when the change alters the system's shape: it adds or removes a service or a store, adds a data flow between components, or moves a boundary. Otherwise, or when the agent is unsure, no diagram. Most changes draw nothing, and that is the point.
The instance that drew one then updates the living document in its own branch, before merge, to match what was built. So the diagram diff lands in the same pull request as the code that caused it, and I review "added: API to queue" next to the change instead of trusting a picture later.
Why this way
Mermaid, not HTML. An agent can add one node or one arrow to Mermaid without breaking the rest, and the diff reads as the change it is. Hand-written SVG gets its layout rewritten whole, and a diff of a few hundred positioning lines gets approved unread.
The edit is scoped. Change the diagrams the work touched, leave the others alone, never regenerate the file. A stale diagram is worse than none because people trust it, and a regenerated one is a diff nobody reads.
There is a Mermaid guidance layer too, at .aidlc/guidance/mermaid-diagrams.md. It loads only
when a diagram is drawn or changed, so it costs nothing on the changes that draw none.
What it does not do
No gate checks the update. If an agent skips it, the reviewer sees a pull request that added a service and touched no diagram. I chose that over another gate every future change has to pass. It also does not render or validate diagrams in the CLI; the guidance tells the agent to run the Mermaid CLI itself before committing. And moving my hand-built file into the new place is something that project does by hand, after release.