Globetrotter docsversion 0.3.0 · 2026-12-04

Studio and agents

On this page
  1. Overview
  2. Services
  3. Entities
  4. Shapes, clients and webhooks
  5. Permissions
  6. API
  7. Migrations
  8. Flows
  9. Audit
  10. Environments
  11. Targets
  12. Status
  13. More
  14. Saving and the agent's writes
  15. The Agent tab
  16. Both sides at once
  17. Ready-made blocks
  18. Coming back
  19. The MCP tools
The Backend tab on mail: what the pages ask of the service, the services as chips, Threads.list called in Try it as a reader
The Backend tab on mail: what the pages ask of the service, the services as chips, Threads.list called in Try it as a reader

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

Overview: the stores, services, sign-in, flows, targets and what waits as linked sections, the entity diagram below
Overview: the stores, services, sign-in, flows, targets and what waits as linked sections, the entity diagram below

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.

Overview of storefront, 1440 wide: six services, five flows, a client, a webhook and a state machine as cards, the diagram of five entities below
Overview of storefront, 1440 wide: six services, five flows, a client, a webhook and a state machine as cards, the diagram of five entities below

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

Services: what the pages ask for, each service's operations as chips, a command's inspector beside them
Services: what the pages ask for, each service's operations as chips, a command's inspector beside them

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, create or new in a service about one entity is read as a create of it (the same reading add_operation has).
  • 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.
A command named add with no param for the item's required title: Why and To have it generated
A command named add with no param for the item's required title: Why and To have it generated
  • 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-unsupported finding 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 cursor for 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
    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 as updatedAt (changed) and createdAt (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 fixed where, read in words (a link as "assignee is nobody", a row time as "updatedAt is on or after …"); a misspelt field is lint's where-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
    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
    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
    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
    Work.assign's assigneeId param: null empties the link, the job has no assignee again

Entities

Entities: thread with its fields and its relation in words, its inspector beside it with the Versioned switch off
Entities: thread with its fields and its relation in words, its inspector beside it with the Versioned switch off
  • + 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 through an 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: transition picks its move in its inspector.

    The order's state machine on storefront: six states, the moves as arcs with their names
    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
    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

Permissions: operations down, a stranger and each role across, a click makes that role the lowest
Permissions: operations down, a stranger and each role across, a click makes that role the lowest

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.

Permissions on fieldops: three roles and a stranger, the pages' operations open to a stranger on purpose, the Work service by role
Permissions on fieldops: three roles and a stranger, the pages' operations open to a stranger on purpose, the Work service by role

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

The Versioned switch on thread, with a write required to send the version it read, and what lint says about it
The Versioned switch on thread, with a write required to send the version it read, and what lint says about it

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 Idempotent switch, how long keys are kept, and what a repeat gets
A command's Idempotent switch, how long keys are kept, and what a repeat gets

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").

Try it on Threads.reply: the key made, the reply sent, then sent again and answered Replayed: the first answer, nothing ran
Try it on Threads.reply: the key made, the reply sent, then sent again and answered Replayed: the first answer, nothing ran

Limits

Permissions with limits on: the default, the counts kept in each process, the 429 message, one operation's own limit, and the matrix's Limit column
Permissions with limits on: the default, the counts kept in each process, the 429 message, one operation's own limit, and the matrix's Limit column

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 with managed keys: who makes them, the scopes, their life, and the Scope column
Permissions with managed keys: who makes them, the scopes, their life, and the Scope column

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.

Try it as an API key limited to thread:read, pressing Inbox.list, which names no scope: refused, with the words core gives
Try it as an API key limited to thread:read, pressing Inbox.list, which names no scope: refused, with the words core gives

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

API: the contract's operations by service, each with its path and who may call it
API: the contract's operations by service, each with its path and who may call it

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

Migrations: the numbered files for the store, each with its words, read only
Migrations: the numbered files for the store, each with its words, read only
A field saved and not yet synced: Waiting for a sync, with the project's own migrate command
A field saved and not yet synced: Waiting for a sync, with the project's own migrate command

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.

fieldops' Migrations on Postgres: the init, then the seed marked yours
fieldops' Migrations on Postgres: the init, then the seed marked yours

Flows

Flows: archiveCleanup, the event waiting for the relay, each run a timeline with its retry
Flows: archiveCleanup, the event waiting for the relay, each run a timeline with its retry

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

Audit: who changed which row, what changed, and the operation that wrote it
Audit: who changed which row, what changed, and the operation that wrote it

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.

Audit on fieldops: rows name Work.assign, Technicians.update, the job flagOverdue and a flow's step; the older rows say not recorded
Audit on fieldops: rows name Work.assign, Technicians.update, the job flagOverdue and a flow's step; the older rows say not recorded

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

Audit on fieldops after an email change: the value is not kept, the row says personal, not kept
Audit on fieldops after an email change: the value is not kept, the row says personal, not kept

Environments

Environments: where it answers and, per store, the engine and address used here
Environments: where it answers and, per store, the engine and address used here

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

The Targets view on fieldops with Python (:8000, the default) and Rust (:8010) both answering and Compare pressed: every check answered alike, with each target's times
The Targets view on fieldops with Python (:8000, the default) and Rust (:8010) both answering and Compare pressed: every check answered alike, with each target's times

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

Status

Status: "Nothing blocks (2 lint warnings)" over the targets, the last permissions, audit and contract test runs, the last calls made
Status: "Nothing blocks (2 lint warnings)" over the targets, the last permissions, audit and contract test runs, the last calls made

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.
Status: How it behaves lists the idempotent command, the limits and the managed keys, with the last press of each
Status: How it behaves lists the idempotent command, the limits and the managed keys, with the last press of each

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

More

More: stores, jobs, caches, file storage, search, notifications and models as cards
More: stores, jobs, caches, file storage, search, notifications and models as cards

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_here and the session strip say who is on which side. People keep their place: earliest to arrive first, and one who leaves comes back last.
  • blame says 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_asks and 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, and sync --check says 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_changes marks a change another session made as theirs. A person's ⌘Z over a change that came in from an agent or another studio says whose it was; the journal and blame say "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: true counts its writes and ifMatch: "required" refuses a write that sends no version (Versions). With organisations on, scope says whose rows it holds: tenant, membership, rows or global.
  • add_operation reads a command's does from its name when left out: create, new or add; update or edit; delete or remove; restore; else custom. A Query's where, starred=true, answers only those rows. A Query's returns and many are read from its name where it says them surely, in a service about one entity: get, getJob or job answers that entity's one row (found by its key in the path); list, all, listJobs or jobs answers its rows. Any other name is left, and the answer says what to set.
  • add_service_node takes any primitive; its target is a section, {parent, slot} or just a name ("booking", "flows").
  • set_service_props sets allow, emits, a field's rules; null takes 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: default as 600/minute or 10 a minute (none takes it away), by one of principal, tenant, ip, store a redis store's name.
  • set_auth(design, keys: { prefix?, make?, scopes?, expiresIn?, graceFor?, off? }) turns managed API keys on, changes or off. expiresIn and graceFor take seconds or 90 days, never. It needs an apikey type in types first.
  • set_auth(design, types?, roles?, allowFor?, off?, tenancy?, tenancyOff?) turns sign-in on, changes or off. allowFor gives every operation without an allow that role, so nothing is refused at once. off takes the allows too. tenancy (roles, from, name, userField, roleField, staffSeesAll, rls) writes the organisations section. Where no entity has the scope tenant or membership yet, the same save makes both in the first store: organisation (a name) and membership (the person's field, the role as an enum of the roles, a required link to the organisation). tenancyOff takes the section away, and with it every entity's scope and every operation's allowIn and grants.
  • press_operation(design, operation, as?, …, ifMatch?, idempotencyKey?, keyScopes?, keyRole?) reports the ETag, Idempotent-Replayed and Retry-After it 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 is limited, 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 the Retry-After or run the backend with GLOBETROTTER_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 last check_tenancy beside the last check_auth and check_audit, or not run yet.
  • get_audit(design, entity?, principal?, request?, since?, org?, limit?): org keeps 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. org is the organisation's id, sent as its header; target picks which running target to call when there are several. ifMatch is the ETag as read ("3", quotes and all) or *; idempotencyKey is sent as the Idempotency-Key header. as: "key" makes a managed API key as the development admin (keyScopes, keyRole; in the organisation org names), presses with it and revokes it after; keyPressOrg presses 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 _every methods, 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, and state-machine (at an entity with a Machine, service where 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?) and set_default_target(design, target, why?) are in Targets.

Next: Targets, Auth and security, Flows and jobs.