> ## 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.

# Source, layout, and manual edits

> Understand which file owns the diagram, when Studio saves, and what dragging changes.

The DSL source is the editable document. Rendering computes a view of that document; Studio connects source edits and visual edits to the same file.

## Automatic layout expresses intent

`layout` describes a pattern and `place` describes relationships. The solver computes positions when rendering, so changing a part can change the arrangement. The renderer resolves layout on a copy rather than replacing the author's layout declarations.

## A drag expresses a chosen position

When you first move a node in an automatically arranged scope, Studio freezes relevant layout into explicit offsets. A nested group can be frozen independently; root layout may also need freezing to keep it stable.

The next render now respects those coordinates. This is why changing a label or adding a node after dragging does not necessarily rearrange the whole scene. Undo restores the preceding source; otherwise restore the relevant `layout` or `place` declarations from a saved version and remove conflicting offsets deliberately.

## Saving is separate from rendering

| Surface | Source persistence |
| - | - |
| `isotopo render` | Writes output files and a source copy; it does not overwrite the input file. |
| Studio served locally | Automatically saves parseable, nonempty source changes to the bound file. |
| Static `topology.html` | Keeps browser-local draft behavior; live editing needs the server. |
| Stateless render/edit API | Returns a result; saving is a separate `/api/save` operation. |
| `repair --write` | Explicitly writes the repaired YAML to the input file. |

A parsed document can still contain validation issues. Autosave is not a guarantee that a diagram is ready to publish. Studio can retain the last good rendered image while the current source needs correction.

## Working with an agent and Studio

Use one clearly named source file. Studio polls external changes when its local source is synchronized. Avoid simultaneous edits from multiple writers: this is local file synchronization, not conflict-free collaborative editing.

After a human edits in Studio, the agent must reread the saved file before
continuing. An earlier tool argument or chat message can contain stale source.
Render again when publishing: Studio autosave does not refresh an earlier export
directory. Keep the authoring file distinct from the generated `topology.yaml` copy.

[Studio guide](https://iso-topology.mintlify.site/guides/studio.md) · [Agent workflow](https://iso-topology.mintlify.site/agent/workflow.md)


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