What changes, and what stays the same?
Imagine a service that calls a worker directly. You want the API to enqueue work instead, with a worker consuming it later. This diagram illustrates that proposed change; it does not implement a queue or prove the application’s delivery guarantees.
The direct API-to-Worker edge is removed. Client-to-API, API-to-Redis, API-to-Postgres and Worker-to-Postgres remain unchanged. The new queue uses the same visual language as the worker, so the comparison emphasizes topology rather than a restyling.
The starting layout reserves space for the queue and uses explicit positions. In a crowded diagram, make room for the new component before routing its connections.
1. Open the existing editable project
Install the CLI, download the before project, and run:.isotopo.json file carries both the architecture source and its layout state. Start from this file rather than asking an agent to reconstruct the architecture from the screenshot.
2. Give the agent a bounded change
Use a request that names both the desired mutation and the invariants:dsl and the current layout_state as previous to iso_design. Carry forward the newly returned source/state pair. Do not feed the original project back into a later turn after somebody has edited the saved revision.
3. Review the source change before the picture
Download the before YAML, after YAML and full diff. The logical edge change is:- Graph: the direct edge disappeared and both replacement edges exist. There is exactly one new component.
- Unrelated content: existing IDs, labels, styles and positions stayed intact. No invented infrastructure appeared.
- Drawing: arrows reach the intended components; the queue label is readable; new routes do not hide behind unrelated objects.
4. Render and reopen the revised project
To inspect the checked result immediately, download the after project:topology.svg, report.json and the editable project.isotopo.json. Inspect the report and the exported image from the same revision. Do not publish an old preview after a failed edit.
The project is the handoff artifact. The SVG is the published drawing. Keep both in Git if you want readers to see the result and reviewers to inspect the editable source. For a README workflow, see publishing diagrams.
5. Make a second edit
In Studio, select Worker and change its display label to Jobs while keeping its IDworker. Wait for the save confirmation. Stop the server, then run:
What was actually verified?
The repository contains a runnable reproduction attools/queue-edit/build.py. It builds the real CLI, starts from the before source, inserts the queue node and replaces the direct connector, then designs the edited project using the previous state.
The checks verify that:
- Every existing node definition remains byte-for-byte unchanged, including the source comment.
- The connector count changes from five to six.
- Existing saved positions are preserved.
- Both exported projects reproduce their SVG when reopened.
- A follow-up Worker-to-Jobs source edit updates the SVG, preserves positions and survives another reopen.
- The downloadable files and comparison frame match the reproducible output.