# Swim Lanes: The Race: Diagram element for AI agents

> Two approaches racing. Two swimmers in roped lanes; one strokes fast and reaches the red finish line, then treads water; the other is still swimming; lane labels name them.

Canonical page: https://agentframes.ai/elements/archetype/swim-lanes/
Markdown: https://agentframes.ai/elements/archetype/swim-lanes.md

## Overview

- Name: Swim Lanes: The Race (`swimLanes`), an element: one HyperFrames block per size
- Part of: the [Archetype](https://agentframes.ai/packs/archetype.md) pack (45 of 50). Available only through the All-access subscription.
- Category: Diagram
- Purpose: Two approaches racing. Two swimmers in roped lanes; one strokes fast and reaches the red finish line, then treads water; the other is still swimming; lane labels name them.
- Pack: [Archetype](https://agentframes.ai/packs/archetype.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 none; avoid none
- Typical duration: 7s
- Speaker-safe: no
- Preview video (watermarked): https://agentframes.ai/media/archetype/swim-lanes.mp4
- Poster: https://agentframes.ai/media/archetype/swim-lanes.jpg
- Licence: [AgentFrames Licence](https://agentframes.ai/licence.md)

## Paste this into Claude Code

```text
Use the AgentFrames Archetype pack. Add a `swimLanes` beat to plan.json on a `k` canvas with slots `title`, `a`, `b` and `caption` from my script. Then run validate → build → qa and show me qa/contact.jpg.
```

## Variables

| Variable | Type | Label | Description | Default |
|---|---|---|---|---|
| `title` | string | title | {"type":"string","minLength":1,"maxLength":44} |  |
| `a` | string | a | {"type":"string","minLength":1,"maxLength":16} | Perfect plan |
| `b` | string | b | {"type":"string","minLength":1,"maxLength":16} | Rough start |
| `caption` | string | caption | {"type":"string","minLength":1,"maxLength":48} | The *rough start* finishes first |

## What your agent can change

**Swim Lanes: The Race**. Native 1920×1080, 7s at 30fps.

Two approaches racing. Two swimmers in roped lanes; one strokes fast and reaches the red finish line, then treads water; the other is still swimming; lane labels name them.

**Motion.** Lane ropes fade up; swimmers set off with stroke cycles and wake ripples; the fast one finishes at 3.4 s and treads water; the other keeps going; caption fades up above the pool.
**Why it moves.** contrast: progress over the same distance.

### Mount

Copy every manifest file into your project (plus `af-archetype-runtime`). Mount with a unique host id, `data-composition-id="af-archetype-swim-lanes-16x9"`,
`data-composition-src="compositions/af-archetype-swim-lanes-16x9.html"`, `data-duration="7"` 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).

- `title`: {"type":"string","minLength":1,"maxLength":44}
- `a` (required): {"type":"string","minLength":1,"maxLength":16}
- `b` (required): {"type":"string","minLength":1,"maxLength":16}
- `caption`: {"type":"string","minLength":1,"maxLength":48}


Style: `colourway` (void, abyss, dusk), `accent` (optional hex for the tip colour), `footer`, `enter` / `exit` (dark or cut).

### Timing

7s. Everything has landed by 4.2s (60%), then the scene holds for reading (figures keep a small idle, ripples
spread, text stays still). It fades up out of black and closes to black over the last 0.5 s.

### Example

```json
{
  "title": "",
  "a": "Perfect plan",
  "b": "Rough start",
  "caption": "The *rough start* finishes first"
}
```

## FAQ

### What can my AI agent change in Swim Lanes: The Race?

Your agent fills the `title`, `a`, `b` and `caption` 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 Archetype look.

### Which aspect ratios does Swim Lanes: The Race support?

Swim Lanes: The Race is designed natively for 16:9, 9:16, 4:5 and 1:1. A typical beat lasts 7s.

### How do I get Swim Lanes: The Race?

Swim Lanes: The Race is included in the Archetype 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 Archetype

- [Step Flow: The Climb](https://agentframes.ai/elements/archetype/step-climb.md): Two to five steps in order, climbed. In 16:9 a figure hops up a staircase, one tread per step, and each step label (STEP n, title, detail) sits above its column on a dashed leader; in 9:16, 4:5 and 1:1 the figure climbs a ladder with a board per step and the labels to the right of each red tip.
- [Cycle: The Loop-the-Loop](https://agentframes.ai/elements/archetype/cycle-loop.md): A loop of three to six stages. A wireframe loop-the-loop stands in the water with chevrons showing the direction; a figure runs one full lap round the inside of the ring, and each stage marker lights and its label appears as the runner passes; the centre word sits in the middle.
- [Hub and Spoke: The Balloons](https://agentframes.ai/elements/archetype/hub-balloons.md): One idea and what connects to it. A figure stands on a plinth with the idea written on its face; three to six balloons rise out of its raised hand one by one on strings and float into an arch, each with its label.
- [Decision: Two Boards](https://agentframes.ai/elements/archetype/decision-boards.md): A two-way choice and its outcomes. A tower stands in the water with a diving board each way; each board has its label above the tip and its outcome below. The figure looks one way, then the other, then walks out along the chosen board and dives; the other side dims.

## Community

Coming soon.
