> ## Documentation Index
> Fetch the complete documentation index at: https://iso-topology.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Keep editing an AI-generated architecture diagram

> Watch an actual agent-to-editor-to-agent source handoff, download all four YAML stages, and reproduce the next edit without losing a label change.

An AI-generated architecture diagram remains editable when you retain its authoring document and give the next editor the current version. This demonstration follows one YAML file through generation, a cache addition, a browser label edit and another agent change.

[Try the browser playground](https://nexusfox88.github.io/iso-topology/) · [中文说明](https://iso-topology.mintlify.site/zh/guides/edit-ai-generated-diagrams.md)

## Watch the 65-second walkthrough

<video controls crossOrigin="anonymous" playsInline preload="metadata" width="100%" poster="/assets/evidence/2026-12-02/source-handoff/poster.png" aria-label="Edited walkthrough of an agent and browser editor sharing editable diagram source">
  <source src="https://mintcdn.com/iso-topology/lQ2RPYsY4suituCu/assets/evidence/2026-12-02/source-handoff/walkthrough.mp4?fit=max&auto=format&n=lQ2RPYsY4suituCu&q=85&s=bd981ae8b48191d1c6f3579490f883a6" type="video/mp4" />

  <track kind="captions" src="https://nexusfox88.github.io/iso-topology/handoff-captions-en.vtt" srcLang="en" label="English" />

  <track kind="captions" src="https://nexusfox88.github.io/iso-topology/handoff-captions-zh.vtt" srcLang="zh" label="简体中文" />
</video>

[Download the video](../assets/evidence/2026-12-02/source-handoff/walkthrough.mp4) or use the step-by-step transcript below.

The video is an edited montage of actual browser screenshots, with captions and no audio. It omits waiting and agent execution time; 65 seconds is the video length, not a measured task-completion time. Codex performed the source-generation and continuation runs. The browser edit was performed by maintainer automation, not an independently recruited participant.

## Follow the source through four stages

| Stage | What changed | Download the actual source |
| - | - | - |
| 1. Generate | User → API → Database, with persistent IDs and an owner comment | [first.yaml](../assets/evidence/2026-12-02/source-handoff/first.yaml) |
| 2. Extend | Add Cache and API → Cache | [cache.yaml](../assets/evidence/2026-12-02/source-handoff/cache.yaml) |
| 3. Edit in the browser | Change API's label to Public API, then download YAML | [ui-edited.yaml](../assets/evidence/2026-12-02/source-handoff/ui-edited.yaml) |
| 4. Continue with the agent | Read that downloaded file, then add Worker and API → Worker | [handoff.yaml](../assets/evidence/2026-12-02/source-handoff/handoff.yaml) |

The UI-edited snapshot differs from the cache version only in the label value. The final source keeps `Public API`, the existing IDs, all previous edges and the exact owner comment. The retained renderer reports no validation issues for these four source snapshots. That result concerns this small example; it does not establish a success rate for other tasks or models.

## Reproduce the handoff

1. Download `cache.yaml`, open the playground, and use **Open YAML** to import it.
2. Select the API component, change its label to `Public API`, and apply the label.
3. Download YAML and save it as your authoring file, for example `architecture.yaml`.
4. Give your agent this task, with access to that file and the renderer:

```text theme={"system"}
Read the current architecture.yaml from disk before editing it.
Preserve the Public API label, existing node IDs and connections,
and the exact Owner note comment. Add a Worker node and an API-to-Worker
connection. Consult the renderer's capabilities if needed.
Validate, render and inspect the result. Return the updated source
and SVG paths, plus any remaining issues.
```

5. Inspect the resulting file and image. Compare the relevant changes with `handoff.yaml`; a new agent run need not produce identical formatting, styling or placement.

If no agent is available, load the supplied final file to inspect the result. That exercises the viewer and source import, but does not repeat the agent step. The playground makes no model calls itself.

For local rendering with the CLI installed:

```bash theme={"system"}
isotopo validate architecture.yaml
isotopo render architecture.yaml ./out
```

Open `out/topology.svg` and retain `architecture.yaml` for the next edit. Validate returns 0 for clean input, 2 for warnings and 3 for errors; inspect its output before continuing.

## Transcript and observations

* **0–15 seconds:** the browser displays the three-node source generated by Codex.
* **15–30 seconds:** Cache appears with its API connection; existing IDs and the comment remain in the source.
* **30–45 seconds:** the browser's label control and diagram show Public API. The downloaded YAML becomes the next agent's input.
* **45–57 seconds:** the next Codex run reads that file and adds Worker while preserving the earlier edit.
* **57–65 seconds:** the final view has five nodes. Validation in this run reported no issues; source and images still need semantic and visual review for a real system.

## Evidence and limits

The run took place on December 2, 2026, using renderer revision `28ee6d3f54e124be3d1af8e14fd96d088dab4bd0`. The retained binary identifies that revision with an unmodified build tree. The browser capture is from the playground development that became [PR #30](https://github.com/NexusFox88/iso-topology/pull/30); current UI details may differ.

The first agent stage initially tried unsupported command syntax and invalid YAML, then corrected them using capability discovery and validation. The video shows the successful stages, not a first-attempt success claim. This is maintainer-run evidence, separate from the [recorded comparison cohort](https://iso-topology.mintlify.site/agent/evaluation.md).

The [artifact provenance](../assets/evidence/2026-12-02/source-handoff/provenance.json) identifies the source stages and media hashes. The UI-edited source was recovered verbatim from the second agent run's initial file read, since the working file was subsequently updated. Raw local session logs remain private; published artifacts contain no local account configuration.

[Agent workflow](https://iso-topology.mintlify.site/agent/workflow.md) · [Source and layout](https://iso-topology.mintlify.site/concepts/source-and-layout.md) · [Local rendering and data](https://iso-topology.mintlify.site/guides/local-rendering-and-data.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.