Track changes
Keep the model up to date
Add the line your agent proposed after the first model to your AGENTS.md (or CLAUDE.md), and it updates the model with every change to the architecture:
A change to the architecture (a service, job, store, channel or external system, a call or connection between them) also updates
wiremap/: use the wiremap skill's Update mode, then runwiremap check.
Updates follow your conventions too, and propose new ones when a change needs new choices.
See what a change does
The model is committed with the code, so a pull request that changes the architecture also changes wiremap/model.txt, and that diff reads on its own. Here the bookshop starts shipping orders through Kafka:
--- a/wiremap/model.txt
+++ b/wiremap/model.txt
@@ -2,4 +2,9 @@ service orders on go {
call payment-provider
write orders-db
+ publish order-placed
+}
+service shipping on java {
+ call carrier
+ consume order-placed
}
service web on typescript {
@@ -10,4 +15,6 @@ job sales-report on sql {
}
store orders-db on postgres
+channel order-placed on kafka
+external carrier outside
external payment-provider outside
actor user {
@@ -20,4 +27,8 @@ group checkout {
member web
}
+group fulfilment {
+ member order-placed
+ member shipping
+}
rule no edge to payment-provider except from orderswiremap/evidence.txt changes with it, with the anchors of each new node and edge.
For a report of the change, ask your agent:
What does this change do to the architecture?
It compares the model before and after the change and prints the report, ready for the pull request:
# Architecture change
3 nodes added; 3 edges added; 1 group added.
## Nodes
- added `service shipping on java`
- `at deploy/compose.yaml | shipping:`
- `on java at services/shipping/pom.xml | <maven.compiler.release>21</maven.compiler.release>`
- added `channel order-placed on kafka`
- `at deploy/topics.yaml | - name: order-placed`
- `on kafka at deploy/compose.yaml | image: apache/kafka:3.9.0`
- added `external carrier outside`
## Edges
### Added
- `orders publish order-placed`
- `at services/orders/events.go | Topic: "order-placed",`
- `shipping call carrier`
- `at services/shipping/src/main/java/bookshop/shipping/CarrierClient.java | URI.create(config.carrierUrl())`
- `at deploy/shipping.env | CARRIER_URL=https://api.carrier.example.com`
- `shipping consume order-placed`
- `at services/shipping/src/main/java/bookshop/shipping/OrderListener.java | @KafkaListener(topics = "order-placed")`
## Groups
- added `group fulfilment`
- members: `order-placed, shipping`
- `at docs/teams.md | The fulfilment team runs shipping and the order-placed topic.`wiremap report --link ends the report with a link that opens the change in the viewer this site hosts: the change travels in the link itself, after its #, and never reaches a server. The report and the link both hold the anchors' snippets, lines copied from your code and configuration, so anyone you give them to can read those lines. Ask it to open the change in the viewer, and the Change tab plays it:
TIP
The repository doesn't need a model yet: the agent then models only what the change touches, in a temporary directory, and writes nothing in the repository.
Propose a change
Ask your agent:
Propose adding a notifications service that consumes order-placed.
It writes the new nodes and edges as planned, with no anchors since nothing is built yet, and prints the report:
# Architecture change
1 node added; 1 edge added.
## Nodes
- added `service notifications planned`
## Edges
### Added
- `notifications consume order-placed planned`The Change tab draws planned nodes and edges dotted:
Once the code builds them, the next update drops planned and adds their anchors, and lists what is still planned.
Next: enforce rules.