The graph, drawn

The three verbs as figures a press can walk: the walk from the checkout door four hops out, the walk around the fact it emits, and the first chain from the door to the payment's capture, each printed under its drawing as the agent reads it.

Open in CursorView as Markdown

This page is the graph drawn: the answers Vibe coding with the graph prints, as figures a press can walk. The commands it draws are durable-sdk graph walk <subject> and durable-sdk graph path <from> <to>.

Each figure is one answer of the engine over the storefront sample's index: the drawing above, the lines the agent receives below, one clock between them. Press Walk and the drawing fills one depth a beat with its lines; press a pill and the walk starts there, the command under the stops rewritten; press Path, then two pills, and the first chain between them lights. The frame you arrive at is complete, and a page without a script shows the same frame.

The walk from the door#

walk door:api:checkout/complete · out · depth 4 · 12 edges · 13 nodes
The walk from door:api:checkout/complete, drawnwalk door:api:checkout/complete · out · depth 4 · 12 edges · 13 nodes. One row an edge under its verb, the depth as the indent, the start solid first.door checkout/completeworkflow checkout.completefact order.placedlistener send-receiptworkflow receipt.sendstep cart.readprovider cart.readstep stock.reserveprovider stock.reservestep payment.captureprovider payments.capturestep order.createprovider orders.create

The solid pill is where the walk starts. A pill drawn twice is a step with an undo. A dashed stub leaves a pill the walk reached and did not expand: the next question starts there. Press a pill to walk from it. Press Path, then two pills, for the first chain between them: durable-sdk graph path <from> <to>.

durable-sdk graph walk door:api:checkout/complete --depth 4walk door:api:checkout/complete · out · depth 4 · 12 edges · 13 nodesdepth 1door:api:checkout/complete admits workflow:checkout.complete · body checkoutId @ api/checkout/complete.ts:17depth 2workflow:checkout.complete emits fact:order.placedworkflow:checkout.complete declares step:checkout.complete:cart.read · ctx.step · read · cannot undo: a read @ src/workflows/checkout-complete.ts:12workflow:checkout.complete declares step:checkout.complete:stock.reserve · ctx.step · provider · undo @ src/workflows/checkout-complete.ts:17workflow:checkout.complete declares step:checkout.complete:payment.capture · ctx.step · provider · undo @ src/workflows/checkout-complete.ts:23workflow:checkout.complete declares step:checkout.complete:order.create · ctx.step · provider · undo @ src/workflows/checkout-complete.ts:29depth 3fact:order.placed listens listener:send-receipt · recordstep:checkout.complete:cart.read calls provider:cart.read · via effects @ src/workflows/checkout-complete.ts:14step:checkout.complete:stock.reserve calls provider:stock.reserve · via effects @ src/workflows/checkout-complete.ts:19step:checkout.complete:payment.capture calls provider:payments.capture · via effects @ src/workflows/checkout-complete.ts:25step:checkout.complete:order.create calls provider:orders.create · via effects @ src/workflows/checkout-complete.ts:31depth 4listener:send-receipt starts workflow:receipt.senddrawbacks: admits, emit, ctx.step, on: record, calls, execute
admitsA door judges from the rows as read and answers a refusal as a value before any run exists, and the step keeps the same guard as the race's backstop: two posts a moment apart both pass the door's reading and the step's compare-and-set refuses the second from the row as it stands, so the door's judgement is a courtesy to the phone, never the fence; the run the door admits is keyed by the input and a second post under the key answers the first run (reused).
emitOne outbox row under the catalog's key, inserted with the run's commit and dispatched after it, a second emit under the key collapsing onto the row; with deliverAt the row does not exist for the dispatcher, the relay or retention until its moment, and a cancel by key before it leaves the row cancelled for good; ctx.emit sits after a step returns and never inside its body, a batch chunk or a hook handler (a step served from its row never runs its closure, so an in-step emit is refused at the door, emit.inside_step).
ctx.stepOne step row per call, started before the body and finished after it, the ledger rows the body appends under its effect; a crash between the body and the row's finish re-invokes the body on the next attempt (a provider call is replayed from its ledger row, a read is run again), and a redrive replays every finished row and re-runs the step that failed. A read step declared completion: "behind" (FP-011 as landed, opt-in) lands its COMPLETED row on the next boundary's statement or the finish instead of its own, one statement a step where there were two, at the price that a crash between its body's return and that statement leaves the row STARTED and the next attempt reads again; the default ("now") keeps the answer on its row before the body goes on, replayed after any crash (ADR-0063 B22).
on: recordRecords, never acts: on a peer's copy the row is recorded and the body never runs, on the origin the body runs as a keyed run per fact in partition order, and a body that reaches a scope resolver on a copy fails its run as a value (ActsOnRelayedCopy).
callsA provider call is reached through a connector by capability, never a provider's name (business code branches on the connector's capabilities, the connector modules alone import a client), takes a token from its account's bucket first and carries the step's stop so a cancel or a deadline aborts it in flight; it is never retried by the client when non-idempotent, and the call has no row of its own: once the step's row landed the call is replayed from it, and a crash between the call and the row's finish re-invokes the step on the next attempt and sends it again (the ctx.step row), so a call that must not be sent twice is read for first or made under a recordedWrite or an external step, whose row is written before it; a call the walk reads outside any step is a provider reached with no row to replay from, said as the body's.
executeA run keyed by the input: a second start under the key answers the first run (reused), a run that failed stays in limbo until a person redrives it or, for a transient cause under the bound policy, the engine's auto-redrive does (ADR-0084), and RunNotStarted and KeyCollision are the only throws, both before a run exists; everything after is a value.

What the agent reads: one line per edge under its depth, the file and line to open next on every line that names a thing, the drawbacks folded, one sentence per primitive met, the registry’s own.

durable-sdk graph walk door:api:checkout/complete --depth 4: the door, the run it admits, its four steps and the fact, the providers and the listener, and the run the listener starts, four hops out, the CLI's bound.

The walk around the fact#

walk fact:order.placed · both · depth 2 · 8 edges · 9 nodes
The walk from fact:order.placed, drawnwalk fact:order.placed · both · depth 2 · 8 edges · 9 nodes. One row an edge under its verb, the depth as the indent, the start solid first.fact order.placedlistener send-receiptworkflow receipt.sendworkflow checkout.completestep cart.readstep stock.reservestep payment.capturestep order.createdoor checkout/complete

The solid pill is where the walk starts. A pill drawn twice is a step with an undo. A dashed stub leaves a pill the walk reached and did not expand: the next question starts there. Press a pill to walk from it. Press Path, then two pills, for the first chain between them: durable-sdk graph path <from> <to>.

durable-sdk graph walk fact:order.placed --direction both --depth 2walk fact:order.placed · both · depth 2 · 8 edges · 9 nodesdepth 1fact:order.placed listens listener:send-receipt · recordworkflow:checkout.complete emits fact:order.placeddepth 2listener:send-receipt starts workflow:receipt.sendworkflow:checkout.complete declares step:checkout.complete:cart.read · ctx.step · read · cannot undo: a read @ src/workflows/checkout-complete.ts:12workflow:checkout.complete declares step:checkout.complete:stock.reserve · ctx.step · provider · undo @ src/workflows/checkout-complete.ts:17workflow:checkout.complete declares step:checkout.complete:payment.capture · ctx.step · provider · undo @ src/workflows/checkout-complete.ts:23workflow:checkout.complete declares step:checkout.complete:order.create · ctx.step · provider · undo @ src/workflows/checkout-complete.ts:29door:api:checkout/complete admits workflow:checkout.complete · body checkoutId @ api/checkout/complete.ts:17drawbacks: on: record, emit, execute, ctx.step, admits
on: recordRecords, never acts: on a peer's copy the row is recorded and the body never runs, on the origin the body runs as a keyed run per fact in partition order, and a body that reaches a scope resolver on a copy fails its run as a value (ActsOnRelayedCopy).
emitOne outbox row under the catalog's key, inserted with the run's commit and dispatched after it, a second emit under the key collapsing onto the row; with deliverAt the row does not exist for the dispatcher, the relay or retention until its moment, and a cancel by key before it leaves the row cancelled for good; ctx.emit sits after a step returns and never inside its body, a batch chunk or a hook handler (a step served from its row never runs its closure, so an in-step emit is refused at the door, emit.inside_step).
executeA run keyed by the input: a second start under the key answers the first run (reused), a run that failed stays in limbo until a person redrives it or, for a transient cause under the bound policy, the engine's auto-redrive does (ADR-0084), and RunNotStarted and KeyCollision are the only throws, both before a run exists; everything after is a value.
ctx.stepOne step row per call, started before the body and finished after it, the ledger rows the body appends under its effect; a crash between the body and the row's finish re-invokes the body on the next attempt (a provider call is replayed from its ledger row, a read is run again), and a redrive replays every finished row and re-runs the step that failed. A read step declared completion: "behind" (FP-011 as landed, opt-in) lands its COMPLETED row on the next boundary's statement or the finish instead of its own, one statement a step where there were two, at the price that a crash between its body's return and that statement leaves the row STARTED and the next attempt reads again; the default ("now") keeps the answer on its row before the body goes on, replayed after any crash (ADR-0063 B22).
admitsA door judges from the rows as read and answers a refusal as a value before any run exists, and the step keeps the same guard as the race's backstop: two posts a moment apart both pass the door's reading and the step's compare-and-set refuses the second from the row as it stands, so the door's judgement is a courtesy to the phone, never the fence; the run the door admits is keyed by the input and a second post under the key answers the first run (reused).

What the agent reads: one line per edge under its depth, the file and line to open next on every line that names a thing, the drawbacks folded, one sentence per primitive met, the registry’s own.

durable-sdk graph walk fact:order.placed --direction both --depth 2: what emits the fact and who listens on it, then what reaches each of those and what each reaches, two hops each way.

The path from the door to the capture#

path door:api:checkout/complete → provider:payments.capture · 3 hops
The path from door:api:checkout/complete to provider:payments.capture, drawn: 3 hops lit over the walkwalk door:api:checkout/complete · out · depth 3 · 11 edges · 12 nodes. One row an edge under its verb, the depth as the indent, the start solid first.door checkout/completeworkflow checkout.completefact order.placedlistener send-receiptstep cart.readprovider cart.readstep stock.reserveprovider stock.reservestep payment.captureprovider payments.capturestep order.createprovider orders.create

The solid pill is where the walk starts. A pill drawn twice is a step with an undo. A dashed stub leaves a pill the walk reached and did not expand: the next question starts there. Press a pill to walk from it. Press Path, then two pills, for the first chain between them: durable-sdk graph path <from> <to>.

durable-sdk graph path door:api:checkout/complete provider:payments.capturepath door:api:checkout/complete → provider:payments.capture · 3 hopsdoor:api:checkout/complete admits workflow:checkout.complete · body checkoutId @ api/checkout/complete.ts:17workflow:checkout.complete declares step:checkout.complete:payment.capture · ctx.step · provider · undo @ src/workflows/checkout-complete.ts:23step:checkout.complete:payment.capture calls provider:payments.capture · via effects @ src/workflows/checkout-complete.ts:25drawbacks: admits, ctx.step, calls
admitsA door judges from the rows as read and answers a refusal as a value before any run exists, and the step keeps the same guard as the race's backstop: two posts a moment apart both pass the door's reading and the step's compare-and-set refuses the second from the row as it stands, so the door's judgement is a courtesy to the phone, never the fence; the run the door admits is keyed by the input and a second post under the key answers the first run (reused).
ctx.stepOne step row per call, started before the body and finished after it, the ledger rows the body appends under its effect; a crash between the body and the row's finish re-invokes the body on the next attempt (a provider call is replayed from its ledger row, a read is run again), and a redrive replays every finished row and re-runs the step that failed. A read step declared completion: "behind" (FP-011 as landed, opt-in) lands its COMPLETED row on the next boundary's statement or the finish instead of its own, one statement a step where there were two, at the price that a crash between its body's return and that statement leaves the row STARTED and the next attempt reads again; the default ("now") keeps the answer on its row before the body goes on, replayed after any crash (ADR-0063 B22).
callsA provider call is reached through a connector by capability, never a provider's name (business code branches on the connector's capabilities, the connector modules alone import a client), takes a token from its account's bucket first and carries the step's stop so a cancel or a deadline aborts it in flight; it is never retried by the client when non-idempotent, and the call has no row of its own: once the step's row landed the call is replayed from it, and a crash between the call and the row's finish re-invokes the step on the next attempt and sends it again (the ctx.step row), so a call that must not be sent twice is read for first or made under a recordedWrite or an external step, whose row is written before it; a call the walk reads outside any step is a provider reached with no row to replay from, said as the body's.

What the agent reads: one line per edge under its depth, the file and line to open next on every line that names a thing, the drawbacks folded, one sentence per primitive met, the registry’s own.

durable-sdk graph path door:api:checkout/complete provider:payments.capture: the first chain from the door to the payment's capture, three hops, lit over the walk from the door.

Read it like the agent does#

The pane under each drawing is the answer as the agent receives it, line for line. The first line is the header: the verb, the start, the direction, the depth, and the count of edges and nodes. Then one line per edge under its depth, depth 1, depth 2 and on: the near node, the verb, the far node, what the edge carries, and at the end the file and line to open next, on every line that names a thing in the tree. A path prints its hops in order under one header with the hop count. The last line, drawbacks:, lists the primitives the walk met, and each folds to one sentence, the registry's own, open on a press. The lines are the engine's renderer over the sample's index, generated and held by a test; nothing on this page is typed.

The terminal prints the same lines, --json the same answer as data, and the guide says what a deployment answers and where the index comes from.