Studio and agents
On this page

The studio's Backend tab puts the service where the canvas is. A project
with no pages opens on it, and ⌘K reaches every region by name. The studio
wants a window wider than 640 px; under that it says so and shows nothing else.
A service file that does not validate is said with its issues, by path, and the
view opens when it validates again. An agent works
on the same file through the MCP tools, below.
Overview

On a bigger service every part has its card: storefront's has five flows and a job, a client, a webhook, shapes and a state machine, and its diagram lays the cards out in as many columns as the pane has room for, and draws the many-to-many between product and category as one line.

The Backend view opens on Overview: the backend as a whole, before any one tab. Its sections are the stores (the engine each runs on and how many entities live there), the services (queries and commands each answers), sign-in (its sign-in methods and the ladder of roles, or "Off"), organisations (one line, when on), flows and jobs, the targets (which is the default; which is running is in Targets), and what waits, read as Status reads it (operations still to write, lint errors, disagreements with the pages, asks left on nodes, migrations to write). Every name is a link to the tab that holds it, with the thing picked: a store opens Entities on its first entity, a service opens Services on its first operation, sign-in opens Permissions, a flow or job opens Flows, a target opens Targets, and what waits opens Status. A backend with no entity says so in a sentence and offers + Entity right there.
Below the sections is the entity diagram: a card per entity (its key field first, then its fields with their types, a red star on the ones every row must have, and a row for each relation), and a line per relation with its cardinality at each end (1, many, 0..1; a relation that holds a list is one-to-many from its owner, one that points at one entity is many-to-one). Parents sit left of their children; a layer of more than five cards wraps into more columns. A card's name is a button: it opens the entity in Entities (press Enter on it from the keyboard). The pane scrolls the diagram sideways, and Fit to width shrinks it (down to half size) when it is wider than the pane. Entities has the same diagram behind a List | Diagram toggle, with the selected entity ringed and its inspector beside it. A screen reader reads the relations as sentences ("order has many orderLine through lines"). Nothing here saves anything; the diagram's colours and sizes are the studio's tokens, so it follows light and dark.
Services

Pick an operation to change it, see where its code is, and press it as a role.
- + Service takes a name and its route. Operations are chips.
- + Query and + Command add operations. A command named
add,createornewin a service about one entity is read as a create of it (the same readingadd_operationhas). - A command's card says whether its code is generated or yours. When it is yours it shows Why (for example "A new task needs its title, which its params do not give") and To have it generated (the one change to make). The words come from one reader,
operationOwnership, the same that the generated stub's 501 uses.

An operation's inspector says who may run it, what it writes and emits, and where its code is, and under What lint says about it its findings, each with Fix where lint has one. A
target-unsupportedfinding for the operation is listed there too, read from the backend's status.Try it calls the real operation in the running backend, as a role or as a stranger, and shows the status, the body and the audit rows it left. The answer stays while the operation's props are saved, by you or an agent. Each param says what the contract says of it under its field (a decimal like 19.99, one of the sort choices, a whole number from 1 to 100) and turns red when what you typed is not that: it is still pressed, and the backend's 422 tells why. A list that has more rows to give shows Use the next cursor under its answer, which fills
cursorfor the next press. A create whose key or unique value is taken answers 409 in the words the design gives (rowExists), and the operation's inspector lists it under The other ways it says no.
Try it on storefront's product list: a filter and a size typed, the next cursor used for the second page From the pages lists what the pages need that the service does not give (
propose_operations), each with the call that adds it.A list query's inspector has How it lists: the order (
sort,sortable), the pages (paging,pageSize,maxPageSize,total), the fields a search reads (searchIn) and what each query param does to the rows (filter,field,many). The choices are the entity's own fields; lint's findings for the operation sit under it, with Fix where there is one. A param may keep rows by a single relation: it offers equals, one of and is empty, and reads "Keeps rows by the link assignee: the technician with this key." The order's choices name the row times asupdatedAt (changed)andcreatedAt (made). Closed, the row says "by the link assignee" and an order by a row time in words ("newest changed first"). Rows it always keeps is the list's fixedwhere, read in words (a link as "assignee is nobody", a row time as "updatedAt is on or after …"); a misspelt field is lint'swhere-invalid, shown under the field.
How it lists on fieldops' Work.list: the assignee param keeps rows by the link to a technician, the unassigned param by that link being empty An update's param that fills an optional field has Null empties the field: "Sent as null, the field is emptied. Left out it stays as it was; sent blank it stays too." Its line then reads "null empties it", and Try it has Send email as null for it under "Null empties these fields".

fieldops' Technicians.update, the email param: "null empties it" in its summary and the Null empties the field switch on 
Try it on Technicians.update: Send email as null ticked, the body showing email null A param named for a single relation (
assigneeId) empties the link, not a field: the switch says Null empties the link, and a link that is always set does not offer it.
Work.assign's assigneeId param: null empties the link, the job has no assignee again
Entities

+ Entity adds one. Each entity's fields, relations and indexes are shown in words.
The entity's heading opens the entity itself: a rename that carries its relations and indexes, and Remove, which removes its rows.
Before a change is saved it shows the migration it will write, a dropped column said, what lint will say after it, and who uses the field by its name (a command's param, a page's rows) when it is renamed or removed.
A name already taken is said under its field.
With organisations on, each entity's card says whose rows it has (the organisation itself, who belongs, its rows belong to one, shared, or not said); the heading's inspector changes it, reviewed before it is saved.
+ Relation asks how many: one, many, or Many, both ways (a join table links the two, and the other entity gets the way back; the first saved relation owns the table). A relation that goes
throughan entity of its own is shown in words, not edited. The diagram draws a many-to-many as one line with a fork at both ends.An entity with a state machine shows its states and moves as a drawing (a forward move arcs above the states, one back below; a thick edge is the start, a double one an end; hover an arc and it lights and names its moves, and the labels carry a halo so they stay readable where lines cross), and each transition as a row that opens to its from and to states, who may, the guard (a guard that does not read is said in words), and what it emits. + Transition and Remove save through the same ops as the agent's tools. A command that
does: transitionpicks its move in its inspector.
The order's state machine on storefront: six states, the moves as arcs with their names A move that a row's state refuses answers 409 naming the state ("A job that is In progress cannot be started; it must be Open or Overdue."), and the command's inspector lists that refusal and the event the move emits.

The progress machine of fieldops' job: four moves, who may make each, finish emitting job.completed
Shapes, clients and webhooks
Services ends with a card for each thing a service says beyond rows and operations; Overview lists them too.
- Shapes are the answers that are not a row. Each shape is a table of its parts (what each reads or works out, and the type it answers with, said or inferred); what is wrong is said under the part. + Shape and + Part add them; a part opens to its settings. An operation's What it answers with lists shapes beside the entities.
- Clients (only where the design has one) show each outside service: how it signs in (the key's variable name, never a value), its timeout and retries, the base address in each environment (read only; set in Environments) and its calls with method, path and what they return. Settings opens the policy in place: timeout, retries, first wait, and when the breaker opens and for how long. An empty field is the default.
- Webhooks (the same) show the path, how a delivery is checked, the
secret's variable name, and each handler with what it runs and emits.
Settings changes how a delivery is signed, its secret's variable, path,
tolerance and how long ids are kept; a handler's Edit changes its event, the
command it runs, its values, what it emits and, with tenants on, its
tenantFrom. A refusal is said in the form and nothing is saved; lint's words stay under the card.
Environments gains a Files section for a File the design puts on a bucket: the bucket, prefix, endpoint and region, and the key and secret as the names of variables.
Permissions

Who may run what is one grid, operations down, a
stranger and each role across. A click makes that role the lowest. Each role's
reach is also written in words. Sign-in is turned on here (a sign-in method, the roles
lowest first, the lowest given every operation to start) or off. A save that
gives the backend a new package (sign-in with casbin) runs uv sync and
restarts the running backend on it, said in the strip. When uv is not found the
studio says where it looked; GLOBETROTTER_UV=/path/to/uv names it. Working on the studio itself: E2E_THROTTLE=4 npm run e2e runs the pages on a CPU four times slower, where a step that waited for the wrong thing shows. Narrow, the columns past
Refuse all (Scope, Limit, In an organisation) move to a line under each
operation instead of scrolling the grid sideways.
On fieldops the ladder is technician < dispatcher < admin. Its pages' operations (Dashboard.list, Jobs.*, NewJob.create) are allow: anyone on purpose, so the stranger's column is filled for them and a line under the matrix says so; the Work service starts at technician, reopen at dispatcher and lapse at admin.

Organisations
The first part of Permissions, above the matrix (one word everywhere: organisations).
Off: one line, "Organisations are off", and Turn organisations on…, which opens a
form in the reader's words: which entity is the organisation, which says who
belongs to which (each also offers A new entity), where a request names its
organisation (header, cookie or claim, and its name), the fields for the person and
the role, the roles inside an organisation lowest first (taken from the
membership's role enum when it has one), the top sign-in role seeing every
organisation, and row-level security. With no entity to choose it says "No
organisation entity yet: one will be made, with a membership", and one save makes
both (an organisation with a name, a membership with the person, the role as an
enum of the roles and a required cascade link to the organisation; names kept free of
clashes), as set_auth does. Picking entities the design has, the membership gets
the person and role fields and the link it lacks, said under the form before the
save. One save writes the section, the entities and their scope together; a
refusal says what to add and nothing is saved.
On: a sentence and Say it in full (the organisation, how a request names it,
the roles, the rows each entity holds), what lint says about it, Edit, and
Turn organisations off…, which says first, with the count, what goes with it
(the scope of each entity, allowIn and grants on operations, tenantFrom on
handlers) and is confirmed once. Each operation's row gains In an organisation,
the lowest role there that may run it (allowIn), beside the global role; a create of
the organisation itself also has Creator becomes, the role its asker is given in
the new organisation (grants, one of the roles). Organisations need sign-in on first.
Versions

An entity's inspector has Versioned and, when on, A write must send the
version it read. Try it then has an If-Match field, with Use the
version read and Send a stale one once a read has been kept.
With If-Match optional, two writes that race leave the later refused (409);
the inspector says it in the entity's words.
What versions are.
Idempotency keys

A command's inspector has Idempotent and Keys kept for (6 hours,
2 days). Try it then has an Idempotency-Key field with New key,
Send again and Send again with another body.
What idempotency keys are.
A refused press says why in words: 422 (the key was used for another request), and 503 on SQLite when a repeat meets a key whose first request is still writing (it waits about five seconds, then "Retry-After 1").

Limits

Permissions has a Limits part: Turn limits on… takes the default
(10 a minute), who one caller is, the redis store for the counts and the
failed sign-in limit. The matrix gains a Limit column, and an operation's
inspector a Limit line (none opts out). Try it says a 429 with the
wait counting down ("Wait 50 s. Pressing before then is refused again"); the
count goes on when the inspector is drawn again.
What rate limits are.
Keys

Permissions has a Keys part: Manage keys… takes who may make,
rotate and revoke keys, the scopes a key can be given, how long a key lives
and its prefix. It needs the session way in (a person makes keys) beside API
key sign-in. The matrix gains a Scope column: a choice among the listed
scopes, or none. What API keys are.
Keys made lists the keys on the running backend (as the development person
that may make keys) with Rotate and Revoke… on each, and makes one; a
secret is shown once, when made or rotated, and kept nowhere. manage_keys
is the same for an agent. In an organisation a key acts at its maker's role
there (the lower of that and its own role where the role is also the
organisation's), so lowering the maker lowers every key they made.
Try it's As has An API key: made as the development person that may
make keys, sent alone, revoked after. With organisations it takes the
organisation, and a second one to press in, to see the key refused outside the
one it was made in. press_operation does the same with as: "key",
keyScopes, keyRole, org and keyPressOrg.

When a target cannot generate something
A box at the top of a part says, per target and in lint's sentence
(target-unsupported), what the design asks for that the target does not
generate. Both targets generate versions, idempotency, limits and managed API
keys today, with or without organisations, so no box shows for them
(what each target generates).
The Words panel's Backend table lists the messages of what the design uses (organisations, state machines, versions, idempotency keys, limits, API keys) and saves a changed one to the service design.
API

Every operation of the contract sync last wrote, grouped by service: the
method, the path, what it does and who may call it. Opened, an operation shows
its parameters, what it takes and answers as tables of fields (the raw JSON
behind a switch), the answers that mean no, each with the headers it sends
(ETag, Retry-After, Idempotent-Replayed), and an example. It runs nothing:
Try it hands the operation to Services.
Migrations


Each store's numbered SQL files as backend/migrations/ keeps them, what each
changes in words, its SQL when opened, and the migration the next sync will
write from changes already saved. The note that says to apply it prints your project's own migrate command, and the field review before a save reads the last written migration, so it shows the SQL sync will write. Read only: nothing is written or applied
here. A file that sync did not write (a seed, a backfill you made by hand,
the file without the -- @globetrotter migration line) carries a yours
chip and says what its first comment says; sync never rewrites it.

Flows

Each flow's runs as timelines, with retries and dead letters, and the events
still waiting for the relay. A flow's step says what it does in a person's
words, so "who is told when a job is done" reads here. A flow's Starts when
lists the events the commands emit, including the one a state-machine move
emits (Orders.pay runs the pay move, which emits order.paid), so a flow
on it is not told that nothing starts it.
Audit

The audit rows, each linked to the operation that wrote it.
By names the operation the row itself says (audit_log.operation, written by
both targets): a command as Work.assign, a flow's step as "the step
tellDispatcher of flow onJobCompleted", a scheduled job as "the job
flagOverdue", a webhook's handler as "the webhook payments", each linking to
where the Backend view has it. Both rows one press leaves name the same
operation. A row written before the column (or outside anything known) falls
back to the backend's traces, then to the one command that could have written
it; otherwise it says "not recorded", and a second such row of the same
request says "the same press as the row above". A database that has not had
the migration adding the column cannot be read: the tab says so and names the
migration to apply.

A personal field's value is not kept, and the row says so: "email changed,
personal, not kept".

Environments

Each components.<env>.json as a form: stores, auth settings, flows, the
observability exporter. A password in a URL is refused, and a secret is a name.
Targets

Each target turned on, the default first, and what each leaves out. Compare and Make default are in Targets.
Status

What is left, read from the files and the checks, nothing run. It reads again every few seconds while open:
- operations still to write, or no longer fitting their design;
- a migration waiting to be written, and on a mysql store written before 2026-11-13 the foreign keys it still owes (Data and migrations);
- the pages' data that no operation answers;
- drift that is the service's move;
- a step whose last run died;
- How it behaves (picture below);
- lint: an error is a thing to do, a warning is listed below, and when warnings are all that is left the heading says "Nothing blocks (2 lint warnings)", while "Nothing to do" is for when there is nothing at all; each target turned on with what it leaves out;
- the last checks (one older than the service's last change asks to be run again) and the last calls made.

A 429 reads "limited", in grey: over its limit, not a fault.
More

The last tab holds the parts that are not entities, operations or flows: stores, jobs and schedules, caches, file storage, search, notifications and models. Each node's settings are a form built from the catalogue's props, saved a field at a time through the same ops as the agent's tools. Adding makes the primitive's starter; removing says what it breaks.
Saving and the agent's writes
The view reads the file every three seconds while it is in front of the person, so an agent's change shows within a moment. A read that began before the person's own save landed (or while it was in flight) answers with the file as it was: it is dropped and the file read again, so the next save never sends the older hash and meets a 409. A change from outside is never dropped, only taken from a read that began after the save.
The Agent tab
On the backend side (Ask the agent in the left panel) the agent writes the impl, runs the contract tests and calls what it wrote. Its chips are what Status says is left: an operation to write, the pages' asks, drift, lint's errors, failing tests.
Both sides at once
A person and agents see each other. Each session writes a presence file in
.globetrotter/presence/: people in the studio and agents in a terminal, and
an agent changing what a person has selected is told so.
who_is_hereand the session strip say who is on which side. People keep their place: earliest to arrive first, and one who leaves comes back last.blamesays what each change did, by whom, in words.- An ask crosses sides: from the studio's ask on a widget sent to The
backend, or
ask_other_side.list_asksand the backend's session list it with who asked and when. It is then answered, by whom and with what, or gone when its node was removed first. - Contract drift: when a page and its service disagree, the side that owns
the path is asked (a page claims one with
describe_action … owner: page). The owner may decline, every reader says whose move it is, andsync --checksays so. - A renamed operation's callers are told its new name, and a removed one's that it is gone and by whom. A choice control whose choices are not the entity's enum is drift, since the service would refuse the send.
session_changesmarks a change another session made as theirs. A person's⌘Zover a change that came in from an agent or another studio says whose it was; the journal andblamesay "Undoes what Ann changed", not "a save".- On the pages' side the Lint shows contract drift with its fixes (Post as a near name, Ask the service, Add the field on the service's side), and the toolbar counts it. A form posting fields its command does not read is said too. A bound row field offers the entity's own field names, and says when its name is not one of them.
Ready-made blocks
A piece of a service saved and reused. Shipped (the studio's + Ready-made, a list's In pages):
| Block | Gives |
|---|---|
| Pagination | page and size, 20 a page, at most 100, the total as X-Total-Count. |
| Soft delete with undo | A remove and a restore command on an entity. |
| Email verification | An emailVerified field, a notice with a link, and the commands that send and confirm it. |
| Password reset | A notice with a link, and the commands that send it and set the new password. |
| Signed upload | A File: uploads checked for size and kind, downloads through links that expire. |
| State machine commands | A command for each move of an entity's state machine that no command runs yet. |
Lint's list-unbounded offers pagination on a list with no bound: 10,000 rows
at once were 1.5 MB and a page of 10,000 widgets. list-unpaged says when the
page that reads the list has no field named page to reach the others.
Coming back
globetrotter status has the backend's to-dos beside the pages' (to do: …, the
same words service_status says, with Next → the first), and its notes
(note: …: what lint says that never blocks, such as list-unbounded); on a
backend alone it says nothing to do when there is none. With
--since <ref> it says what changed on each side in words, by whom, and the
migrations that came. service_session is the whole service as an outline:
sign-in, organisations (where a request names one, the roles in it), fields
with their rules, relations, indexes, what each operation does and allows
(allowIn and grants too), shapes, clients, webhooks, flows and jobs, every
node named so the tools take it.
The MCP tools
The same server as for pages, on designs/<name>.service.json. Every change
goes through the write path and answers what changed and lint's findings. Call a
tool again when it answers "the design changed on disk"; never rewrite whole
JSON.
| Job | Tools |
|---|---|
| Start and see where it stands | service_session, service_status, propose_operations |
| Shape the service | add_entity, add_operation, add_service_node, set_service_props, move_service_node, remove_service_node |
| Sign-in and access | set_auth, press_operation, check_auth, check_audit, check_tenancy, get_audit |
| Reuse | use_service_block, save_service_block, insert_service_block, list_blocks (side: service) |
| See what ran | get_runs, look_at_traces |
| Targets | compare_targets, set_default_target |
| Work with others | who_is_here, blame, ask_other_side, decline_drift, list_asks |
| The words and the contract | get_words, set_words, get_contract |
Details:
add_entity(design, name, store?, fields?, versioned?, ifMatch?, scope?)makes an entity with its fields.versioned: truecounts its writes andifMatch: "required"refuses a write that sends no version (Versions). With organisations on,scopesays whose rows it holds:tenant,membership,rowsorglobal.add_operationreads a command'sdoesfrom its name when left out: create, new or add; update or edit; delete or remove; restore; else custom. A Query'swhere,starred=true, answers only those rows. A Query'sreturnsandmanyare read from its name where it says them surely, in a service about one entity:get,getJoborjobanswers that entity's one row (found by its key in the path);list,all,listJobsorjobsanswers its rows. Any other name is left, and the answer says what to set.add_service_nodetakes any primitive; its target is a section,{parent, slot}or just a name ("booking","flows").set_service_propssetsallow,emits, a field's rules;nulltakes one away. A rename carries the references by name. It is also how an entity that exists becomes versioned ({ versioned: true, ifMatch: "required" }), a command idempotent ({ idempotent: true, keepFor: 3600 }), and an operation limited ({ limit: "10/minute", limitBy: "ip" }) or scoped ({ scope: "jobs:read" }). The node is an id, a name,Service.operation, or a name with its kind in front (entity:technician,field:Job.technician), which is never ambiguous with another node of the same name.set_limits(design, default?, by?, store?, signIn?, off?)writes the limits section:defaultas600/minuteor10 a minute(nonetakes it away),byone ofprincipal,tenant,ip,storea redis store's name.set_auth(design, keys: { prefix?, make?, scopes?, expiresIn?, graceFor?, off? })turns managed API keys on, changes or off.expiresInandgraceFortake seconds or90 days,never. It needs anapikeytype intypesfirst.set_auth(design, types?, roles?, allowFor?, off?, tenancy?, tenancyOff?)turns sign-in on, changes or off.allowForgives every operation without an allow that role, so nothing is refused at once.offtakes the allows too.tenancy(roles,from,name,userField,roleField,staffSeesAll,rls) writes the organisations section. Where no entity has the scopetenantormembershipyet, the same save makes both in the first store:organisation(aname) andmembership(the person's field, the role as an enum of the roles, a required link to the organisation).tenancyOfftakes the section away, and with it every entity'sscopeand every operation'sallowInandgrants.press_operation(design, operation, as?, …, ifMatch?, idempotencyKey?, keyScopes?, keyRole?)reports theETag,Idempotent-ReplayedandRetry-Afterit got.as: "key"makes a key (as the development person that may make keys), presses with it alone, and revokes it.check_auth(design): a 429 islimited, not a wrong answer. With any, the head says it is not a pass and it is not kept; repeating the check counts against the limits, so wait theRetry-Afteror run the backend withGLOBETROTTER_LIMITS=off.service_status(design)also lists How it behaves (versions, idempotent commands, limits, the last press of each) and says, for a design with organisations, the lastcheck_tenancybeside the lastcheck_authandcheck_audit, ornot run yet.get_audit(design, entity?, principal?, request?, since?, org?, limit?):orgkeeps the changes of one organisation (its id). Python target only; the Rust audit reader has no such filter.press_operation(design, operation, as?, body?, params?, idempotencyKey?, ifMatch?, org?, target?, keyScopes?, keyRole?, keyPressOrg?)calls one operation as a role, a stranger, or nobody when sign-in is off, with the development credentials local gives each role.orgis the organisation's id, sent as its header;targetpicks which running target to call when there are several.ifMatchis theETagas read ("3", quotes and all) or*;idempotencyKeyis sent as theIdempotency-Keyheader.as: "key"makes a managed API key as the development admin (keyScopes,keyRole; in the organisationorgnames), presses with it and revokes it after;keyPressOrgpresses it in another organisation, to see the refusal.check_tenancy(design)lists every place in your code that gets round the organisation scope (every=True, the Rust_everymethods, raw SQL), by file and line.use_service_block(design, block, at?, service?, name?)applies a shipped block to what the service has:pagination,soft-delete-undo,email-verification,password-reset,signed-upload, andstate-machine(atan entity with a Machine,servicewhere the commands go: one for each move no command runs yet).ask_other_side(design, to: service|pages, text, page?, at?)leaves an ask in the file for whoever works on the other side next.decline_drift(design, path)lets a path's owner decline the ask raised when the other side's save made them disagree. To accept, change your side.compare_targets(design, repeat?)andset_default_target(design, target, why?)are in Targets.
Next: Targets, Auth and security, Flows and jobs.