Source .dot files for the diagrams that ship with the Go SDK docs.
Run ./render.sh to produce paired *-light.svg and *-dark.svg
next to each source. make diagrams from the repo root invokes this.
architecture.dot— top-level component layout: client, transports, middleware, server, and the runtime's auth/credentials/eventlog/idstore dependencies. Embedded on the front page and in architecture.md.session-lifecycle.dot— session FSM, including the resume edge that reuses the priorsession_idand rotates theresume_token. Embedded in guides/sessions.md and guides/resume.md.job-lifecycle.dot—pending → running → terminalwith the lease, budget, and timeout edges that drive each terminal status. Embedded in guides/jobs.md.lease-and-budget-enforcement.dot—ValidateOpdecision tree (expiry → glob → budget → proceed;cost.*metrics debit on the proceed path). Embedded in guides/leases.md.
- Two-anchor palette: blue (
#3B82F6) for entry, amber (#F59E0B) for hub. - Shapes encode meaning:
boxrounded for components/states,diamondfor guards,notefor invariants, dashed edges for asynchronous returns. - Edge labels carry the spec section in parens, e.g.
job.subscribe (§7.6).