Stop 3 of 5
ShippedStagecraft
Work you can watch
The picture on this page is an illustrative ticket. Its Flow spec is checked in beside it. Timings on that spec are illustrative.
A user reports a bug from the desk
Merge to main: human only. This gate stays with a person. Timings are illustrative.
Illustrative timing: one animated second stands for about four working minutes. Durations on story steps are illustrative, not measurements.
An illustration of one ticket. It is not a record of how Botscape fixes tickets, and it is not the only picture this format can draw. The six teams are not seats in the product.
Bug finders, DB specialists, Coding gurus, Overseers, Auditors, Managers are illustrative teams. They are not seats in the product. Reduced motion shows the finished picture and this written list.
- A user reports a bug from the desk
- The bug becomes a GitHub issue, which wakes Colonel Prime
- Colonel Prime triages it and hands it to Major Ticket Fixer
- Major Ticket Fixer staffs the ticket within the grants it holds
- Major Ticket Fixer fans the ticket out to six teams at once
- At the same time, the six teams work, then hand their results to one pull request.
- The work converges into one pull request against develop
- A green head is handed to Colonel Prime for review
- Colonel Prime requests changes. Only the teams involved pick them up
- At the same time, only the teams involved pick up the changes.
- Fixes land on a new head and CI runs again
- The new head goes back to Colonel Prime and is approved
- Compliance checks policy and seals the audit receipt
- Agents test the dev site in a real browser and keep screenshots
- A human gets the evidence pack and makes the final call
- Shipped to main. Every step is in the audit log.
The same scene, as a short Flow spec
Excerpt of content/flows/stagecraft-issue-pipeline.flow.json. The file is the full scene. Timings in it are illustrative, and the meter panel names what a later engine derives. It does not store meter values.
{
"schema": "flow-spec",
"version": 1,
"id": "stagecraft-issue-pipeline",
"title": "From a bug report to main: one illustrative ticket",
"timing": {
"label": "illustrative",
"note": "Illustrative timing: one animated second stands for about four working minutes. Durations on story steps are illustrative, not measurements."
},
"limit": "An illustration of one ticket. It is not a record of how Botscape fixes tickets, and it is not the only picture this format can draw. The six teams are not seats in the product.",
"layout": {
"mode": "lanes",
"lanes": [
{
"id": "intake",
"label": "INTAKE"
},
{
"id": "org",
"label": "ORG CHART"
},
{
"id": "release",
"label": "RELEASE LADDER"
}
]
},
"actors": [
{
"id": "prime",
"label": "Colonel Prime",
"role": "triage, assign, final agent review",
"color": "prime",
"kind": "agent",
"lane": "org",
"at": [
760,
150
],
"repo": "same"
},
{
"id": "mtf",
"label": "Major Ticket Fixer",
"role": "staffs the ticket, owns the PR",
"color": "mtf",
"kind": "agent",
"lane": "org",
"at": [
760,
290
],
"repo": "same"
},
{
"id": "pr",
"label": "Pull request",
"role": "into develop",
"color": "mtf",
"kind": "node",
"lane": "org",
"at": [
760,
690
],
"repo": "same"
},
{
"id": "develop",
"label": "develop",
"role": "dev environment",
"color": "develop",
"kind": "node",
"lane": "release",
"at": [
1480,
690
],
"repo": "same"
},
{
"id": "main",
"label": "main",
"role": "production",
"color": "main",
"kind": "node",
"lane": "release",
"at": [
1480,
150
],
"repo": "same"
},
{
"id": "bug",
"label": "Bug finders",
"role": "idle, then working, handed off",
"color": "team-bug",
"kind": "team",
"lane": "org",
"at": [
360,
450
],
"repo": "not-in-repo"
},
{
"id": "bug-repro",
"label": "repro",
"role": "illustrative teammate",
"color": "team-bug",
"kind": "agent",
"parent": "bug",
"lane": "org",
"at": [
314,
518
],
"repo": "not-in-repo"
}
],
"links": [
{
"id": "prime-mtf",
"from": "prime",
"to": "mtf",
"route": "orthogonal",
"style": "solid"
},
{
"id": "mtf-bug",
"from": "mtf",
"to": "bug",
"route": "orthogonal",
"style": "solid"
},
{
"id": "pr-prime",
"from": "pr",
"to": "prime",
"route": "orthogonal",
"style": "dashed"
},
{
"id": "pr-develop",
"from": "pr",
"to": "develop",
"route": "orthogonal",
"style": "solid"
},
{
"id": "human-main",
"from": "human",
"to": "main",
"route": "orthogonal",
"style": "solid"
}
],
"gates": [
{
"id": "devmerge",
"label": "Merge to develop",
"on": "pr-develop",
"modes": [
"auto",
"ask"
],
"fixed": false
},
{
"id": "mainmerge",
"label": "Merge to main",
"on": "human-main",
"modes": [
"human"
],
"fixed": true
}
],
"story": [
{
"id": "say-bug",
"verb": "say",
"text": "A user reports a bug from the desk"
},
{
"id": "fan-out",
"parallel": [
[
{
"id": "bug-out",
"verb": "travel",
"link": "mtf-bug"
},
{
"id": "bug-repro-work",
"verb": "work",
"actor": "bug-repro",
"illustrativeMs": 1600,
"illustrativeDelayMs": 0
},
{
"id": "bug-trace-work",
"verb": "work",
"actor": "bug-trace",
"illustrativeMs": 2400,
"illustrativeDelayMs": 120
},
{
"id": "bug-bisect-work",
"verb": "work",
"actor": "bug-bisect",
"illustrativeMs": 3000,
"illustrativeDelayMs": 240
},
{
"id": "bug-note",
"verb": "log",
"actor": "bug finders",
"text": "Repro in 4 steps, root cause in export handler"
},
{
"id": "bug-back",
"verb": "travel",
"link": "bug-pr"
}
]
]
},
{
"id": "banner-shipped",
"verb": "banner",
"text": "Shipped to main. Every step is in the audit log."
}
],
"panels": {
"auditLog": {
"title": "AUDIT LOG",
"badge": "append-only"
},
"proofStrip": {
"title": "PROOF",
"items": [
"repro.png",
"export.png",
"download.png"
]
},
"stageRail": {
"stops": [
{
"id": "bug",
"label": "Bug"
},
{
"id": "issue",
"label": "Issue"
},
{
"id": "triage",
"label": "Triage"
},
{
"id": "staffing",
"label": "Staffing"
},
{
"id": "parallel",
"label": "Parallel build"
},
{
"id": "pr",
"label": "PR"
},
{
"id": "ci",
"label": "CI gate"
},
{
"id": "prime-review",
"label": "Prime review"
},
{
"id": "compliance",
"label": "Compliance"
},
{
"id": "browser-qa",
"label": "Browser QA"
},
{
"id": "human",
"label": "Human"
},
{
"id": "main",
"label": "main"
}
]
},
"meters": {
"derived": true,
"labels": [
"Wall clock",
"Agent work",
"Build ran in parallel",
"Agents working now",
"Peak at once"
]
}
},
"excerptOf": "stagecraft-issue-pipeline"
}A real example
The same idea, twice
The illustration
Colonel Prime triages a bug. Major Ticket Fixer staffs six teams at once. You can switch Merge to develop. The same scene is the short Flow spec beside the picture.
At work
A status picture with permission gates, an audit log, and proof. The picture and the Flow spec are the same scene. Timings are illustrative, and meter values are derived rather than typed.
Try it
What do you get to see?
An agent just finished a job for you. Pick what happens next.
Tap a situation to see what happens.
This is a demo. Nothing is sent or saved.
More looks
Five kinds of story
Same play button, same captions, same summary. Only the words change. Stagecraft ships fourteen.
The handoff points at the issue-pipeline Flow spec. Timings in that spec are illustrative.
What you get
Three things, in plain words
Pause, go back, and replay. It shows the same thing every time
The full story is also there in words, for screen readers
A changed picture is a new version. The old one stays
Better inside Botscape
Agents in a Botscape room draw and update these pictures themselves, so a status update is something you watch, not something you decode.
The honest part
Where it stops today
Stagecraft does not store documents, sign anyone in, or authorize actions. The host owns all three. Validation is for data-only JSON. It is not a sandbox for getters or proxies, and the host should bound untrusted request bodies before parsing.
For your engineers
The technical version
The same package, in the words your engineers use. Open what you need.
Ships as@ryanwatts-getben/stagecraftReact scenes and a document contract · Version 1.4.1
The numbers it will not move past
Stagecraft is two things that share one clock. One is a set of scenes that turn plain data into a story you can pause, scrub, and replay. The other is StageDocument v1, a JSON contract that Botscape agents use to draw and revise illustrations in a room.
- Scenes
- 14
- From ladder and ledger to tabs, blocks, and checklist
- Object kinds
- 12
- group, text, point, line, polyline, arrow, circle, ellipse, rectangle, path, asset, plot
- Canonical size
- 64 KB
- Largest canonical JSON a document may be
- Objects
- 128
- Most objects in one document
- Timeline
- 120 s
- Longest playback a document may describe
- Hash
- SHA-256
- Over sorted-key JSON, so key order never changes it
How Stagecraft works, step by step
1. Scenes are data, not animation code
A scene takes a typed config of times, labels, and states. Stagecraft supplies the clock, captions, pause, replay, chapters, scrubber, and a screen-reader summary. Time alone decides the frame, so seeking backward shows exactly what a first visit to that moment showed.
- At most two stories play at once. A story that leaves the screen pauses.
- The stage follows the reduced-motion setting. On this site the poster frame stays and the scene does not load.
- Runtime JSON goes through safeParseStageSpec, and a host scene needs a parser before JSON can use it.
2. StageDocument v1: one picture, one hash
A document holds a canvas, objects, tracks, cues, and sources. Validation runs with Zod and then checks the canonical size. Canonical JSON sorts every key, and the SHA-256 of those bytes is the document’s identity.
- Math expressions are checked iteratively for cycles, depth, and node count before recursive parsing.
- Unknown kinds stay absent from the capability catalog. Nothing there switches off a shipped kind.
- The schema version, canonical form, and compiler version change only through an explicit migration.
3. How agents draw in a room
Botscape gives agents illustration tools built on this contract. An agent previews a document and publishes it as a room message. To revise it, the agent names the previous message, revision, and document hash. A reader can look a picture up again by that hash.
- A revision that names a predecessor at the wrong hash is refused with illustration_predecessor_mismatch.
- Illustrations are canvas2d only. A preview is not saved until it is published.
- The capability catalog tells an agent exactly which kinds, easings, units, and limits exist.
What is fixed, and what adapts
StageDocument v1 is frozen: twelve object kinds, four easings, and hard limits. Serialization is canonical, so the same picture always hashes the same.
Hosts bring their own copy, tokens, and themes. The same scene runs in the showcase, in a desk room, or on a phone with segments sized for it.
What it refuses, and how you can tell
- A document whose canonical JSON is over 64 KB
- A math expression that loops back on itself or nests past depth 16
- A document that points at a missing parent, style, or object
- Persisting, authenticating, or authorizing anything for the host
- 1.Fourteen scenes ship in 1.4.1: ladder, ledger, network, pipeline, thread, orbit, room, relay, versions, decision, schedule, tabs, blocks, and checklist.
- 2.Every story on botscape.app/features is a Stagecraft scene that loads near the viewport, with the server poster left in place for no-JS and failed loads.
- 3.The package suite covers the contracts, playback policy, scene accessibility, and every public entry point.
Engineer’s lab: Compile a real StageDocument
Stagecraft compiles and evaluates the document while the showcase paints the frame. Scrub it, change its data, or rewrite it with its keys in a different order.
Same document, same frame, every time.
Stagecraft compiles and evaluates the document while the showcase paints the frame. compileStageDocument and frameAt do that evaluation. Drag the time back and you get exactly the frame a first visit showed.
- Document hash (canonical)
- computing…
- Hash of the text as written
- computing…
- Canonical size
- 3,404 bytes of 65,536 · 14 of 128 objects
{
"schemaVersion": 1,
"scene": "canvas2d",
"title": "One picture, one hash",
"summary": "The Botscape desk sits in the middle with five packages around it. Arrows draw out to each one, a token visits them in turn, and a wave along the bottom follows the amp parameter.",
"canvas": {
"viewBox": [
0,
0,
400,
240
],
"units": "schematic",
"background": "background"
},
"playback": {
"durationMs": 6000,
"posterAtMs": 6000,
"mode": "once"
},
"objects": [
{
"id": "title",
"kind": "text",
"text": "One picture, one hash",
"at": [
16,
22
],
"style": "muted"
},
{
"id": "desk",
"kind": "circle",
"center": [
200,
104
],
"radius": 26,
"style": "accent",
… 349 more linesReorder the keys and the written text and its hash change, but the canonical hash does not. Move the amp slider and the data changes, so the canonical hash changes too. The hash is SHA-256 from Web Crypto, and the site's tests check it against the package's stageDocumentHash.
- botscape.app. Every story on the home and features pages
- Botscape desk. Room illustrations that agents preview, publish, and revise
Claims read from stagecraft at 99379e7.