Workspace recipes
These screens need schema 10 or later. The pictures come from the office sample
(gozen run examples/office/game in an engine checkout: an app team’s sprint, six
people, three rooms, CC0 1.0 art listed in examples/office/ASSETS.md); the fixture
e2e/atago/fixtures/workboard uses a geometric picture. The calendar is in
planning.
A workspace combines a directory, a calendar from the game data and a burnup strip. Browsing controls change only view variables, never the calendar.
screens:
studio:
title: Studio
kind: workspace
view:
fullscreen: true
burnup:
bounds: [380, 610, 500, 66]
compact: true
title: Progress
total: Scope
planned_label: Planned
observed: Reported
entries:
- label: Potter
bounds: [32, 180, 250, 350]
portrait: true
icon: portraits/potter.png
muted: '!entity.potter.available'
text: '{entity.potter.schedule}'
The entity and its observations are declared in planning. Portrait mode centers
a large face above the label; a muted portrait keeps its action. The compact burnup
reads the same observations as the full chart. Bounds are logical pixels, at least
120 by 48.
State-dependent conversations #
Pick a line with ordinary if branches, ordering overlapping conditions yourself.
Keep relationship values in variables or hidden planning attributes and show replies
and dates instead of the value.
events:
greeting:
do:
- if: var.energy < 20
then: [{say: {who: scout, text: "Let us take a break."}}]
else:
- if: flag.returned
then: [{say: {who: guide, text: "Welcome back."}}]
else: [{say: {who: scout, text: "Ready to explore?"}}]
With materials on, entries and panels use ui.material.surfaces.card, otherwise a
solid fallback. Entry portraits scale up to a 36-unit radius within the row height;
portrait: true gets the larger profile area.
Photo cards #

picture fills a bounded entry above a caption (the label and two text lines),
cropped to cover, so supply pictures with the card’s aspect. The bounds need a height
of at least 120.
entries:
- label: Visitor
text: Brings clay on Fridays.
bounds: [32, 150, 300, 420]
picture: pics/visitor-card.png
do: [{set: {var.visitor_open: true}}]
Reading and pressing #
style: plate is for information: a frosted board with no edge, shadow or focus
stop. style: button is for an action: a pill with a bright edge, a centered label
and an accent ring when focused (put marks such as a chevron in the label). The
checker refuses a plate with do or a destination and a button without one.
Entries without a style keep the ordinary card.
Ticket cards #

ticket draws a bounded entry as a work ticket: the label is the title and icon
the portrait of whoever holds it.
entries:
- label: '{activity.fire.name}'
bounds: [340, 200, 290, 150]
icon: '{entity[activity.fire.assignee].portrait}'
destination: ticket
ticket:
due: '{activity.fire.deadline}'
state: '{activity.fire.observed >= activity.fire.effort ? "done" : "open"}'
planned: '0.5' # expected by now, 0..1
progress: 'activity.fire.observed / activity.fire.effort'
behind: 'planning.date > activity.fire.deadline'
blocked: 'activity.glaze.observed < activity.glaze.effort'
after: ['{activity.glaze.name}']
The bar fills to progress with a mark at planned. behind colors the stripe, bar
and due date as late; blocked grays them and puts a lock before the names in
after. A visible ticket whose label is in after is joined by a line (an arrow
between neighbors on a row, otherwise over their tops). Empty names are dropped, so a
repeated entry can list optional prerequisites.
Carousels #
Bounded actions with the same carousel name form one rotating selector of square
boxes showing picture (or the label’s first letter), the chosen one large in the
middle. Left, right, the arrow buttons or a click on a side box turn it; OK or a
click on the middle confirms; up and down treat it as one stop. Under the middle box
are its label, cost as a chip and its text. The middle box is the band height less
86, from 48 to 180.
entries:
- label: Fire
carousel: tools
picture: icons/fire.png
cost: 1 slot
text: Fire the kiln.
bounds: [320, 500, 928, 196]
do: [{call: fire}]
- label: Glaze
carousel: tools
picture: icons/glaze.png
text: Glaze a bowl.
unavailable: 'var.kiln_busy'
reason: The kiln is busy today.
bounds: [320, 500, 928, 196]
do: [{call: glaze}]
A screen has one carousel at most; its members share bounds at least 120 high, and it
replaces the screen’s bottom band. unavailable works on any bounded action: the
control stays faded, confirming does nothing (the trace records screen_refused),
reason replaces its text, a script pick skips it and look lists it as disabled.
Dragging and dropping #
On a full-screen surface an entry with drag can be carried onto one with drop.
drag is interpolated into the value handed over (empty is not carried). drop
names a parameter: a drop runs the place’s do with arg.<name> bound to the value
as a string. accepts refuses the drop while false; hint shows on the place while
something is carried.
entries:
- label: '{activity[arg.id].name}'
each: {param: id, items: [glaze]}
bounds: [40, 150, 280, 150]
drag: '{arg.id}'
ticket: {due: '{activity[arg.id].deadline}', progress: 'activity[arg.id].observed / activity[arg.id].effort'}
- label: Potter
icon: '{entity.potter.portrait}'
bounds: [420, 150, 300, 140]
drop: job
accepts: 'activity[arg.job].assignee != "potter"'
hint: 'Give {activity[arg.job].name}'
do: [{plan: {op: assign, activity: '{arg.job}', entity: potter}}]
- Mouse and touch: move a pressed entry 6 pixels to drag a translucent copy, and let go over a place to drop or elsewhere to put it down. A press without moving picks it up; then press a place to drop, the entry or empty space to put it down, or another entry to carry that one.
- Keys and pads: up and down also stop on entries and places; OK picks up or drops, cancel puts down.
- The carried entry gets an accent ring, a place that takes it an accent edge, a place that refuses it a fade and a cross.
- A drop runs the place like any action. The trace records
screen_carry,screen_dropandscreen_refusedwithscreen,entryandsource(the carried value). A refresh keeps the carried entry by its entry and row arguments, or puts it down when it is gone. - A script picks entries and places by label (a place is disabled while nothing it takes is carried);
lookaddsheld, the carried label.drag X Y TO_X TO_Ypresses, moves over eight ticks and lets go.
The carried value is not in scope in label, text, icon, when, muted,
unavailable or reason, which are drawn while nothing is carried. A carried entry
has no do, destination, carousel, target, drop or peek; a place needs
do and has no destination, carousel, target or peek.
Peeks #
Pressing an entry with peek opens its text in a small glass panel beside it,
running nothing. A calendar day plate is the usual case:
- {label: '7/31', style: plate, peek: 'Kiln maintenance in the evening.', bounds: [800, 150, 160, 80]}
OK opens it from the keys; any press or cancel closes it and does nothing else. A script pick opens it and
look adds peek, the open text; the trace records screen_peek with open.
Status dots #
dot draws a small circle of an interpolated #rrggbb in the top-right corner of an
entry. Pair it with a word so color is not the only sign; an unreadable color draws
nothing.
- {label: Ann, style: plate, text: 'Tired', dot: '{var.ann_tired ? "#e8a07a" : "#7fc8a9"}', bounds: [32, 150, 200, 120]}
Busts and meters #
bust draws a head-to-chest crop of a standing picture at the left of the entry in
place of the icon, placed by its face box (assets/faces.json). width is the share
of the entry (default .4); top (where the face starts) and face (its height) are
fractions of the crop’s height (defaults .12 and .3). Muted entries veil it gray.
meter draws a ticket’s bar along the bottom: progress (0..1), planned and
behind as on a ticket.
- label: Ann
style: plate
bust: {picture: 'portraits/ann/base.png', width: .4, top: .14, face: .42}
meter: {progress: 'var.ann_done', planned: 'var.ann_plan', behind: 'var.ann_done < var.ann_plan'}
muted: '!var.ann_here'
bounds: [32, 150, 296, 222]
Signs #
sign (an interpolated path) draws a small square picture left of the dot, such
as an office, a house or a moon for where a person is today.
Messages #
The message command queues a chat message that asks for a decision:
- message: {who: ann, text: 'The kiln is late. Shall I stay tonight?', event: kiln_late}
event is a parameterless event, usually a choice; tag puts a short mark such as
DM on it. Queuing does not stop the current event.
On a full-screen surface (not a video call) the oldest message is a notification at
the top right: face, name, first line and how many others wait. Pressing it or the
inbox key (I) opens a bubble with the whole text and runs the event there, its choice
under the bubble. Unopened messages are saved (inbox, at most 50, oldest dropped).
A script picks the notification by its label (the translated word for message, a
colon and the name); look adds inbox and message; the trace records
message_open. Under ui.material the notification, the bubble and guide lines sit
on a card at least 0.94 opaque.
Call view #

call_view changes how a video call looks without changing state:
- say: {text: (Ann turns her camera on.), ensemble: studio}
- call_view: {camera: {who: ann, on: true}}
The override lasts until the first line outside a call. Narration and the caller’s lines keep the last speaker on the stage; the caller’s lines also light the self view.
call_view: {share: {who, picture}} draws the picture (under assets/) whole above
the message window in place of the speaker, with the sharer’s name and a share mark;
participants stay in their strip or column. It shows only on calls the sharer is in
and ends with an empty picture or the first line outside a call.
- call_view: {share: {who: ann, picture: share/plan.png}}
- say: {who: ann, text: This is the plan., ensemble: studio}
- call_view: {share: {who: ann, picture: ""}}
A choice after a call line with muted: {seconds, do} shows a struck red mic and
an Unmute button; unmuting brings the answers, and after seconds the muted do
runs instead (see Events).
Full call #
A call can fill the screen under the ordinary message window:
view:
call:
address: call.example.test/studio
layout: full # the browser maximized over the whole screen
captions: overlay # the message window over the call, down to the lower edge
others: side # the participants not speaking as round faces in the side column
others_title: People
window_opacity: 0.8 # a deeper window over the moving pictures
The window keeps its usual top and width, so lines wrap as elsewhere; only its lower
edge moves. The person on the stage is framed above the window, and the side list,
controls and self view stand over it. others: side also works without
layout: full, replacing the chat transcript. Joins and leaves show as faces coming
and going, and chat.reaction shows under the name. A call of two folds the column
for every line: the stage widens, the controls take a slim right column, and during
self_stage the participant moves to the small view.
A picture or non-guest self view (self: me.png) stands on the plain tile;
self_backdrop: room.png puts a picture behind it (entities keep their own backdrop,
guests their guest_backdrops). Faces on camera are framed by the detected face and
move down, then shrink, when hair or a hat would leave the view. A picture opaque to
its top edge is drawn cut there.
Lines shared by several calls name no ensemble; the caller names the screen, and
the called events show over that call:
- choice:
- label: Talk about the scope
do: [{call: {event: scope_talk, ensemble: client_call}}]
Face shape #
Faces on planning screens are round. ui.face_shape: square makes them rounded
squares, and a screen’s view.face_shape (round or square) overrides it. A video
call (view.call) stays round.
Flows #
flows in game.yaml puts full-screen surfaces in a fixed order.
flows:
day:
steps:
- {label: Progress, screen: board_progress, enter: ask_about_late}
- {label: People, screen: board_people}
- {label: Actions, screen: board_actions}
restart: '"" + planning.date + planning.phase'
skip: 'var.runs > 0'
next: 'Next ›'
- The header band shows the current step in the accent, finished steps with a check
(press to go back) and later ones locked unless
skipholds. - Every step but the last has a next action, 176 by 48 at the bottom right (16 from
the right, 24 from the bottom, left of any tabs), drawn over the entries, so keep
that corner free. It replaces the screen with the next step without stacking.
nextis its label (default Next › in English). - Opening a step not reached yet opens the current step, unless
skipholds. restartis a pure value; when it changes, the flow starts over, passing steps whosedoneholds or whosewhenleaves them out.enteris a parameterless event run the first time a step shows under each restart value.- Progress is saved (
flows.<name>:reached,key,entered). The trace recordsflow_nextandflow_enter. Scripts pick steps by label (“2 People”);lookaddsflow,stepandreached(from 1).
Steps are parameterless full-screen surfaces in one flow only; a flow has 2 to 10.
Steps that time finishes are held, and steps for some days have a when:
flows:
day:
steps:
- {label: Calendar, screen: today}
- {label: Meeting, screen: standup, when: '!planning.closed'}
- {label: Work, screen: desk, hold: true, done: 'planning.phase != "morning"', when: '!planning.closed'}
- {label: Evening, screen: home}
restart: 'planning.date'
- A held step (
hold: truewithdone, not the last) has no next action; onlydonefinishes it, after which it and earlier steps stay closed under that restart value. - A step screen that no longer opens as itself after an action is replaced by the step that does, without stacking.
when(a pure condition, not on the first step) keeps a step while it holds; otherwise the step is passed and left out of the band’s numbering.
First-visit guides #
A screen’s guide walks a new player through it once, in a character’s voice.
screens:
board_progress:
entries:
- {label: 'Timeline ›', style: button, mark: timeline, bounds: [32, 620, 200, 38], do: [...]}
guide:
when: 'planning.phase == "morning"'
steps:
- {who: lead, text: 'Reports first. The line under the plan is where we really are.'}
- {who: lead, text: 'Fine. On to the people.', focus: [next]}
- Lines show one by one in the notification corner with the speaker’s face; chat notifications wait.
focusnamesmarks of bounded entries (rows of aneachmay share one) ornext. Everything else is veiled and refuses presses, cancel, save and load. The line moves on when a lit place acts, or withuntilwhen its condition holds. Withoutfocus, any press or OK moves on.- A finished guide is stored as
guide:<screen>in gallery.json and never shows again. Scripted, replayed and automatic plays skip guides unless the script saysguides on; the trace hasguide,guide_blockedandguide_done.
view.header_face (an interpolated picture path) puts a small face after the date,
and view.header_tint (an interpolated #rrggbb) rings it.
Light timelines #


On a view.light surface a grouped timeline is drawn on a frosted board: days off
pale gray, the plan pale blue, the report deep blue, the shortfall orange, cancelled
work hatched gray, and a red line labeled today.
Scene ordering and voice diagnostics #
Reservation after, exclusive and when, actor speech checks, call sizes and
save migration are in the planning author guide.
Entry layout contract #
Plates and plain entries render picture, picture_fit, bust, meter, dot and
sign. Buttons render label, text and tone only. Tickets render their bar and icon.
Carousels take pictures and busts (contain too) but not meters, dots or signs.
gozen check rejects the rest.
Inspect pictures and carried cards #
A script’s look reports on, controls, disabled and, when present,
pictures, held and peek. shot captures pixels only in run, not in
sim script.
Profiles and quick controls #

ui.profile_book: {layout: grid} shows unlocked profiles in a grid (--dev reveals
all of them). ui.quick_menu: below puts the dialogue controls under the message
window and inside within it; ui.novel_window positions the window. Phase looks in
the calendar change the background without presentation commands. Defaults are in
the schema.
Recording and performance #
The capture recipes are in docs/images/manifest.yaml and use examples/office;
run make docs-images under Xvfb on Linux. A full-screen save needs a finished event
or checkpoint, so close the workspace before saving. Guide completion lives in the
gallery, not saves; scripted runs with guides on keep no gallery unlocks.
Overlapping materials #

Panels sample the layer under them, earlier panels included (the fixture’s
materials screen overlaps two). ui.material.surfaces picks mica, acrylic or glass
per surface role.
ui:
profile_book: {layout: grid}
quick_menu: below
planning:
calendar:
looks:
morning: {label: Morning, time: '09:00', color: '#ffe8c0', wash: 0.15, card: true}
Phase looks tint the workspace and can show a transition card.