# Decision: Fork in the Board: Diagram element for AI agents

> A choice and its two outcomes. The question is on the header card; the pawn drops onto the fork square, rocks toward one lane and then the other, the two lanes draw down to two outcome cards, then the pawn hops down the chosen lane onto its card and the other card dims.

Canonical page: https://agentframes.ai/elements/tabletop/decision-branch/
Markdown: https://agentframes.ai/elements/tabletop/decision-branch.md

## Overview

- Name: Decision: Fork in the Board (`decisionBranch`), an element: one HyperFrames block per size
- Part of: the [Tabletop](https://agentframes.ai/packs/tabletop.md) pack (6 of 50). Available only through the All-access subscription.
- Category: Diagram
- Purpose: A choice and its two outcomes. The question is on the header card; the pawn drops onto the fork square, rocks toward one lane and then the other, the two lanes draw down to two outcome cards, then the pawn hops down the chosen lane onto its card and the other card dims.
- Pack: [Tabletop](https://agentframes.ai/packs/tabletop.md), included in All-access (from $14/month billed annually ($168/year), or $19 monthly)
- Subscribe: POST https://agentframes.ai/api/checkout/subscribe with interval=month or interval=year (optional currency=USD|GBP|EUR|AUD|CAD; 303 redirect to Stripe checkout; a human pays there). Then download any pack with the subscriber key: https://agentframes.ai/account.md
- Aspects: 16:9 (native), 9:16 (native), 4:5 (native), 1:1 (native)
- Canvases: works on Cream table (cream linen, white board) (`cream`), Kitchen table (pale oak, pastel pieces) (`kitchen`), Sky table (pale blue, white board, bright pieces) (`sky`); avoid none
- Typical duration: 6.5s
- Speaker-safe: no
- Preview video (watermarked): https://agentframes.ai/media/tabletop/decision-branch.mp4
- Poster: https://agentframes.ai/media/tabletop/decision-branch.jpg
- Licence: [AgentFrames Licence](https://agentframes.ai/licence.md)

## Paste this into Claude Code

```text
Use the AgentFrames Tabletop pack. Add a `decisionBranch` beat to plan.json on a `cream` canvas with slots `label`, `question`, `fork`, `left`, `right` and `pick` from my script. Then run validate → build → qa and show me qa/contact.jpg.
```

## Variables

| Variable | Type | Label | Description | Default |
|---|---|---|---|---|
| `label` | string | label | {"type":"string","minLength":1,"maxLength":34} | Round 4 |
| `question` | string | question | {"type":"string","minLength":1,"maxLength":54} | Take the interest out, or leave it in? |
| `fork` | string | fork | {"type":"string","minLength":1,"maxLength":9} | Choose |
| `left` | string | left | JSON string. {"type":"object","properties":{"label":{"type":"string","minLength":1,"maxLength":12},"outcome":{"type":"string","minLength":1,"maxLength":60}},"required":["label","outcome"]} | {"label":"Take it out","outcome":"Your pot stays at £1,000 every year."} |
| `right` | string | right | JSON string. {"type":"object","properties":{"label":{"type":"string","minLength":1,"maxLength":12},"outcome":{"type":"string","minLength":1,"maxLength":60}},"required":["label","outcome"]} | {"label":"Leave it in","outcome":"Next year you earn interest on more."} |
| `pick` | enum | pick | {"type":"string","enum":["left","right","none"]} | right |

## What your agent can change

**Decision: Fork in the Board**. Native 1920×1080, 6.5s at 30fps.

A choice and its two outcomes. The question is on the header card; the pawn drops onto the fork square, rocks toward one lane and then the other, the two lanes draw down to two outcome cards, then the pawn hops down the chosen lane onto its card and the other card dims.

**Motion.** Fork square set down; the pawn falls onto it and squashes; it rocks left and right (weighing it up); the lanes draw (ease in-out); the outcome cards are set down a beat apart; two hops down the chosen lane; the other card fades to 45%.
**Why it moves.** change + character: the pawn hesitating shows there is a real choice, and the lane it takes is the recommendation.

### Mount

Copy every manifest file into your project (plus `af-tabletop-runtime`). Mount with a unique host id, `data-composition-id="af-tabletop-decision-branch-16x9"`,
`data-composition-src="compositions/af-tabletop-decision-branch-16x9.html"`, `data-duration="6.5"` and `data-variable-values`.
Use the variant whose size matches your project (16x9, 9x16, 4x5, 1x1): each is laid out natively, never scaled.

### Content slots

Nested slots are JSON strings. Every slot is checked against `constraints.json` and measured against the layout before anything
draws; the block stops with a message naming the slot and the fix (it never truncates or shrinks text).

- `label`: {"type":"string","minLength":1,"maxLength":34}
- `question` (required): {"type":"string","minLength":1,"maxLength":54}
- `fork`: {"type":"string","minLength":1,"maxLength":9}
- `left` (required): {"type":"object","properties":{"label":{"type":"string","minLength":1,"maxLength":12},"outcome":{"type":"string","minLength":1,"maxLength":60}},"required":["label","outcome"]}
- `right` (required): {"type":"object","properties":{"label":{"type":"string","minLength":1,"maxLength":12},"outcome":{"type":"string","minLength":1,"maxLength":60}},"required":["label","outcome"]}
- `pick`: {"type":"string","enum":["left","right","none"]}

- `left` is drawn in blue and `right` in green in every size.
- `pick` sends the pawn down one lane; `none` leaves it on the fork.

Style: `colourway` (cream, kitchen, sky), `accent` (optional hex), `footer`, `round` (e.g. 3/5), `exit` (lift or cut).

### Timing

6.5s. Everything has landed by 3.9s (60%), then the scene holds for reading (the lamp light drifts slowly over the table;
text stays still) and every piece is lifted off the table over the last 0.5 s, leaving the empty table.

### Example

```json
{
  "label": "Round 4",
  "question": "Take the interest out, or leave it in?",
  "fork": "Choose",
  "left": "{\"label\":\"Take it out\",\"outcome\":\"Your pot stays at £1,000 every year.\"}",
  "right": "{\"label\":\"Leave it in\",\"outcome\":\"Next year you earn interest on more.\"}",
  "pick": "right"
}
```

## FAQ

### What can my AI agent change in Decision: Fork in the Board?

Your agent fills the `label`, `question`, `fork`, `left`, `right` and `pick` slots through the block's data-variable-values (or the starter project's variables). Motion, timing, palette, fonts and the internal layout are protected, so the result keeps the Tabletop look.

### Which aspect ratios does Decision: Fork in the Board support?

Decision: Fork in the Board is designed natively for 16:9, 9:16, 4:5 and 1:1. A typical beat lasts 6.5s.

### How do I get Decision: Fork in the Board?

Decision: Fork in the Board is included in the Tabletop pack, which is part of the AgentFrames All-access subscription along with 49 other templates in this pack and every other pack on the store. You get the full source, the editing contracts and the agent instructions.

## More in Tabletop

- [Step Flow: The Pawn Walks the Track](https://agentframes.ai/elements/tabletop/step-flow.md): Two to five steps in order as squares on a track. The pawn drops onto the first square and hops square by square, landing on each step's cue; each square flips over as the pawn lands to reveal its step. In 9:16, 4:5 and 1:1 the track runs across the top and each step is set down below as a numbered card.
- [Cycle: A Lap of the Board](https://agentframes.ai/elements/tabletop/cycle-loop.md): A loop of three to six stages as squares round a loop board with arrows on the track. The pawn drops onto the first square and hops one full lap; each square dips as it lands; when the lap closes the centre word is set down on a big chip.
- [Hub and Spoke: Cards Dealt from the Chip](https://agentframes.ai/elements/tabletop/hub-spoke.md): One idea and what it connects to. A big poker chip holding the idea is set down in the middle, then three to six cards are dealt out of it to their places and the board lines draw behind them.
- [Comparison: The Score Pad](https://agentframes.ai/elements/tabletop/comparison.md): Two alternatives compared on the same basis, as a score pad: two players (a mini pawn each) head the columns, every row names what is compared and both answers are written in, row by row; the winning column is tinted and stamped.

## Community

Coming soon.
