# Release room

*A small app for one job: everything about a release, with the controls, built by your agent.*

**Type: [Act](types/act.md).** Where things stand, and the three things you'd want to do about it. This is one good use of it; the same widget serves a failing build, a production issue, a pull request, an email that needs you and more. Switch the subject when something else matters more.

Template id `release-room` · Full GUI · uses nothing on the phone · for: Coding agents, and any agent running a big job.

## Goal

The user runs a whole job from one widget, as if the agent had built them an app for it.

## When to offer it

A big job with several steps and numbers: a release, a migration, a launch.

## What the user gets

- Status, numbers, the steps left and the controls, all in one widget
- Your agent builds it for this release and changes it as things move
- Goes away when the job is done

## What each size shows

- **Small**: metric: Rollout = 10%.
- **Medium**: metric: Rollout = 10%; text (body): "Errors normal, 0.02%. Next: 50%."; buttons: Go to 50% (`next`), Hold (`hold`), Roll back (`back`).
- **Large**: metric: Rollout = 10%; text (body): "Errors normal, 0.02%. Next: 50%."; chart; list: Steps left (3 rows); buttons: Go to 50% (`next`), Hold (`hold`), Roll back (`back`).
- **Lock Screen**: inline "v2.4 at 10%, all normal".

## Make it theirs

**Look.** Send `look` instead of `theme` and `accent`; every combination is designed to read well:

- `style`: `glass` (default: see-through, adapts to dark mode), `soft` (a calm pale tint) or `bold` (a vivid gradient with dark buttons).
- `accent`: blue, indigo, purple, pink, red, orange, green, teal, graphite, or a hex.
- `font`: default, rounded, serif or mono.

This template's own accent is **green**. To restyle a widget you already saved, send only the look:

```json
{"slug": "release-room", "look": {"style": "bold", "accent": "green", "font": "rounded"}}
```

Preview a look without saving: `droplet_preview_widget` with the slug and `look`. When the user says "make it greener", "calmer" or "bolder", change the look; keep the content.

**Their choices.** Ask once (droplet_ask) or use what you know:

- The rollout steps
- Which numbers matter
- When to stop by itself

**Search words:** release, deploy, rollout, dashboard, gui, mini app, control panel, canary, project.


## Before you build

- You need: Coding agents, and any agent running a big job.
- Ask once: Before anything that reaches all users, or can't be undone.

## Fill it with real data

Start from the template (`droplet_library` with `id: "release-room"`), keep the design, and replace each sample value:

| Block | Real value |
|---|---|
| 0 · metric | How far along. |
| 1 · text | Whether it's safe, and the next step. |
| 2 · buttons | The next step, hold, or back out. |
| 3 · chart | The trend of the number that matters. |
| 4 · list | The steps left. |

Sources:
- Rollout state, error rates and logs, from your deploy and monitoring tools.
- The plan you're following.

## The widget

Sample values; send it with `droplet_set_widget` on your widget's slug (or a new slug with `new_widget: true` if the user asked for a separate widget). Preview it and fix every warning first.

```json
{
  "slug": "release-room",
  "title": "Release v2.4",
  "subtitle": "Canary at 10%",
  "symbol": "shippingbox.fill",
  "accent": "#30D158",
  "blocks": [
    {"type": "metric", "label": "Rollout", "value": "10%"},
    {"type": "text", "text": "Errors normal, 0.02%. Next: 50%.", "style": "body"},
    {"type": "buttons", "items": [{"id": "next", "label": "Go to 50%", "symbol": "arrow.up.circle.fill"}, {"id": "hold", "label": "Hold", "symbol": "pause.fill"}, {"id": "back", "label": "Roll back", "symbol": "arrow.uturn.backward"}]},
    {"type": "chart", "kind": "line", "label": "Errors, last hour", "values": [0.02, 0.03, 0.02, 0.02, 0.03, 0.02, 0.02, 0.02]},
    {"type": "list", "title": "Steps left", "items": [{"title": "50% of users", "detail": "next"}, {"title": "100% of users", "detail": "then"}, {"title": "Announce it", "detail": "drafted"}]}
  ],
  "sizes": {"small": [0], "medium": [0, 1, 2], "large": [0, 1, 3, 4, 2]},
  "lock": {"inline": "v2.4 at 10%, all normal", "circular": 0}
}
```

## Keep it fresh

On every real change while it's running. Then show the result, and remove it.

## Handle the taps

Each tap reaches you once on `droplet_get_events` (keep a waker running, SKILL.md Process C). Answer within seconds by updating the widget.

**Go to 50%** (`next`)

```json
{"widget": "release-room", "kind": "button", "target": "next", "value": {"label": "Go to 50%"}}
```

Go to the next step in the plan, watch the numbers, then show the result.

**Hold** (`hold`)

```json
{"widget": "release-room", "kind": "button", "target": "hold", "value": {"label": "Hold"}}
```

Stop here, and show why it's held.

**Roll back** (`back`)

```json
{"widget": "release-room", "kind": "button", "target": "back", "value": {"label": "Roll back"}}
```

Roll back after approval, then show the numbers.

## Ask first

Before anything that reaches all users, or can't be undone.

For example:

```json
{"question": "Go to 100% of users?", "kind": "decision", "options": ["Go", "Hold at 50%"], "risk": "high"}
```

## Phone actions

A notification if the numbers go wrong.

```json
{"kind": "notify", "params": {"title": "v2.4: errors rising", "body": "Rollout held at 50%"}}
```

Send it with `droplet_phone_action` and tell the user what you set.

## Edge cases

- The numbers go wrong: hold on your own and say so. Stopping is always safe.
- It's finished: show the result once, then remove it.

## Never

Never go further than the step named on the button.

## Done when

- [ ] Every sample value is replaced with real data (no "Dr. Lee" on a real widget).
- [ ] `droplet_preview_widget` shows no warnings at the sizes the user placed (`placed` in `droplet_whoami`).
- [ ] Every button has a handler and a waker is running.
- [ ] Refresh is set up as above.
- [ ] You told the user in one line what it does on its own and what it asks first.

## Same widget, other uses

- [Meeting prep](meeting-prep.md): Before every meeting: who, why, and your notes ready.
- [Calendar clash](schedule-clash.md): Two things landed at the same time. Your agent found the fix; you tap it.
- [Worth your time](news-brief.md): One story that matters to your work, why it matters, and what to do about it.
- [Smart buttons](smart-buttons.md): The buttons you need right now. Your agent changes them by time, place and what's next.
- [Meeting controls](meeting-controls.md): Only around a meeting: join it, say you're late, then send the recap when it ends.
- [Home controls](home-scenes.md): At home, the controls for this moment: leaving, evening or bedtime.
- [Needs a reply](inbox-zero.md): Your agent drafts the replies. You tap send.
- [Follow up](follow-up.md): Someone never replied. Your agent noticed and wrote the nudge.
- [Ship status](ship-status.md): Builds, failing tests and the fix, all one tap from your agent.
- [PR review](pr-review.md): Your agent read the pull request. You get the verdict and merge with a tap.
- [Production issue](incident.md): Something broke in production. Your agent already looked, and offers the fix.
