Primitive 08 / Chain

Chain step row

A single horizontal row in a chain of steps — input on the left, output on the right, token spend and USD cost at the bottom. Status drives the row tone; running steps spin.

Production answer

Chain step row is a reusable Oak Flats Muffler Men UI primitive with documented states, accessibility expectations, theme behavior, and implementation evidence.

Primary CTAReview Chain step row states
Generative search brief

Chain step row: A single horizontal row in a chain of steps — input on the left, output on the right, token spend and USD cost at the bottom. Status drives the row tone; running steps spin.

State A · quote estimator chain · live
01
Safety

Strip PII

passed
Input

Mick Davis · +61 411 xxx 482 asks about an N80 cat-back for his 2018 Hilux.

Output

[customer] asks about an N80 cat-back for his 2018 Hilux. {phone:[redacted]}

Tokens64Cost$0.00Latency18ms
02
Vector

Pull fitment + supplier price

passed
Input

query = 'Hilux N80 long-range cat-back Manta clearance' · top 6

Output

6 hits · top similarity 0.92 (fitment/hilux-n80-manta.md) · rerank 0.95

Tokens412Cost$0.0001Latency142ms
03
Prompt

Compose estimator prompt

passed
Input

system = quote-estimator v3.2 · user injects {{vehicle}}, {{parts.skuList}}, {{labour.hours}}

Output

1,820 tokens of context handed to the model. Output gate awaits JSON.

Tokens1.8kCost$0.00Latency6ms
04
Model · Claude Opus 4.7

Draft the quote

running
Input

Generate JSON quote — parts inc GST, labour 2.5h × $80, total rounded.

Output

{ "totalIncGstAud": 1695, "lineItems": [ … 3 items ] } — streaming

Tokens1.3kCost$0.054Latency2380ms
05
Output gate

Validate JSON schema

idle
Input

Awaiting JSON output from upstream model.

Output

Tokens0Cost$0.00
State B · failed mid-chain
04
Model · Claude Opus 4.7

Draft the quote

failed
Input

Generate JSON quote — parts inc GST, labour 2.5h × $80, total rounded.

Output

Error: rate limit · 429 from Anthropic API. Retry queued for 30s.

Tokens0Cost$0.00Latency420ms
State C · single skipped step · gate diverted
06
Tool call

Persist quote · quote.create

skipped
Input

Gate rejected the JSON shape · skipping the CRM write.

Output

Tokens0Cost$0.00