Trying OpenBelt by hand
To see OpenBelt's pages in every state they have, seed a running OpenBelt once, then switch yourself
between states. Both work on bun run dev with no flags, and on any launched instance with
--run <dir>.
bun run dev # in one terminal (a server: leave it running)
bun run seed # people, groups, connections, apps, tokens, consents, activity (a few seconds)
bun run qa # the states, one line each; * marks yours
bun run qa connected # puts you in one, and prints what to open
bun run qa reset # back to the seeded default (the same as bun run seed)
bun run seed stop # stops the fake GitHub the seed started
You are whoever the front door says: on this machine (http://acme.localhost:<port>), you, the
person running bun run dev (your Tailscale login, or <user>@localhost without Tailscale); on
the tailnet URL (https://acme.<domain>:<port>), your Tailscale login. For the signed-out pages,
open the platform with no door in front, the address bun run dev prints as "Signed out" (port +
1000).
You may be Ada, the seeded admin (a run whose door signs everyone in as her): then the seed leaves
her as reset says you are, and the states that make you a member refuse. To seed another OpenBelt,
pass --fakes <origin> (fake servers already running, instead of starting one) and --one-workspace.
What's seeded
Running it again changes nothing: it makes what's missing and puts back what moved. Data already there stays, except what the seed owns (its people, groups, connections and apps).
| Who | Role and groups | What they have |
|---|---|---|
| You | admin, eng | your GitHub token, my-prs and pr-digest allowed, 2 more tokens |
Ada Lovelace (ada@) | admin | the seed works as her (a token for the run, revoked after it) |
Alice Chen (alice@) | member, eng | GitHub token, my-prs and pr-digest allowed; owns my-prs |
Bob Okafor (bob@) | member, eng, GitHub all (his) | GitHub token, my-prs allowed, tokens "CI deploys" and "Old laptop" |
Carol Diaz (carol@) | member, contractors | GitHub token, but GitHub is none for contractors |
Dave Kim (dave@) | member | invited, never signed in |
Erin Walsh (erin@) | member | removed |
All @acme.test. Connections:
- github (
person): a fake GitHub (scripts/verify/drive/dummy-mcp.ts --github, or the--fakesones) the seed starts in the background and keeps running; its pid is in the seed's folder (.dev/seed/forbun run dev,<run>/seed/for--run). Each person's token istok-gh-<login>, and it answers with made-up pull requests. Everyoneread,contractorsnone, Boball;merge_pull_requestdisabled. - deepwiki (
none): the real DeepWiki. Everyoneread,engall;ask_wiki_questionmarked read. - linear (
workspace): the fake answering 401, as a server does once its token expired, so its refresh fails and Settings says it isn't working.
Groups: eng, contractors, and support with nobody in it (a group's page as it starts).
The workspace at scale (scripts/seed/scale.ts): 32 more people in design, data, sales,
success and finance, 19 more connections (made-up servers from scripts/seed/catalog.ts,
served by the fake GitHub at /catalog/<name>/mcp), what some chose for themselves (Carol read
only on Notion, Eli with Google Calendar's create_event off), 31 asks for more (Vercel, Snowflake,
Sentry, GitHub...), agents' calls that ran and were refused, and answers Ada keeps.
Sync with a directory (People): one SCIM token, Okta, that checked the connection, looked up Alice, Bob and Carol, and was refused once (a userName that isn't an email). Its secret is kept in the seed's folder, so a second seed sends nothing again; any other SCIM token is revoked.
Apps, each with an owner, and a picture once OpenBelt takes one: my-prs (your pull
requests, GitHub as the viewer, DeepWiki as the workspace; also in the preview environment
redesign), pr-digest, repo-qa (DeepWiki as the workspace), ship-it (binds the disabled
merge_pull_request, so its deploy warns), lunch, oncall, handbook, okrs. Events gets agents'
and pages' calls that ran and that were refused. A second workspace, globex, is invite-only and has
Ada but not you.
The edge cases
bun run seed --edge seeds all of the above, then the extremes the pages have to hold
(scripts/seed/edge.ts). Like the rest, running it again changes nothing.
- People (203 more, 242 in all): a name at the 100-character limit and an email at 64 characters before
the
@, a one-letter name, one invited by email alone, Chinese, Japanese, Korean, Arabic and Hebrew names, emoji (a family of four in one character), combining marks, markup and SQL that must stay text, a 93-character word with no spaces, two Alex Kims, a plus address, a name that is an email, runs of spaces; then 180 more, every 9th an admin, every 12th invited, every 15th removed. - Groups (35 more): one at the 40-character limit,
x,2026,all-hands(everyone),solo,empty-on-purpose,eng-backendbesideeng-backend-db, 26 squads. Polly (polly@) is in every group but the empty one and has 25 tokens (a 60-character label, emoji, markup, every expiry). - Connections:
enterprise-data-warehouse-prod(the 30-character limit, 151 tools, one with a 57-character name),x(one tool),zero-tools(none),access-maze(a level for every group and 25 people's exceptions). 44 asks for more (one a long paragraph), 240 more agents' calls, about half refused. - Apps (57 more): one at the 40-character limit with a 300-character description,
x, one with no description, right-to-left and emoji text, markup in the title and description, a 2,000-row table, one whose owner was removed, and 50 more for Apps. - Workspaces: 6 more you're in, one at the 40-character limit and one called
z.
The states
Each moves only you (your role, groups, GitHub token, consents and the seed's tokens of yours)
and keeps the token you have. reset also puts back everything else.
| State | You are | Look at |
|---|---|---|
reset | admin in eng, GitHub connected, apps allowed | Apps and its person menu; my-prs lists your pull requests |
fresh | member in no group, no GitHub token, nothing allowed | my-prs: Connect GitHub and OpenBelt's sheet; Settings, Agents with one token |
needs-consent | member in eng with your token, my-prs not allowed | my-prs's sheet; Connections with ?connect=github&app=my-prs: Allow |
connected | member in eng, token set, my-prs allowed | my-prs lists your pull requests; Connections lists it under apps you allowed |
contractor | member in contractors (GitHub none) | my-prs: GitHub is off for you, naming the admins |
admin | admin (only you change) | Settings, People and Groups (support is empty); Events: filter calls by person, tool and result; GitHub's Who has access; Linear not working; ship-it |
asks-again | you allowed pr-digest, then a deploy bound another tool | pr-digest asks again, for get_me too |
invited-only-workspace | not invited to globex (acme stays as it was) | https://globex.<domain>:<port>/: not a member, ask Ada |
bun run qa <state> prints each page's URL.
Screenshots of any page
Agents can't open a browser by hand, so one command gives them a page in a state:
bun run shot /admin/people --as admin # dark and light, desktop and phone; prints the PNGs
bun run shot / --step "click #you-button" --size phone # after a click (repeat --step, in order)
bun run shot / --host app:my-prs --as fresh # an app's host: OpenBelt's sheet over my-prs
bun run shot /signin --host signed-out --launch # on a fresh seeded platform of its own
bun run shot --scene consent # one of the design council's scenes
It shoots bun run dev (seeded) unless given --run <dir> or --launch, puts you back in reset
after --as, and writes to .verify/shots/<page>/<theme>.<size>.png. bun run design:shots <label>
shoots every scene the design council scores (--list names them); see brand/COUNCIL.md.
Apps shows New (a horizontal strip of the newest apps when there are more than five), Jump back in (the apps you opened last, as a five-card mosaic once you have five), and the All apps grid below. Each card shows the app's picture, icon tile, name, and last-updated time (for example, 2h).
Apps without a live version show Not live; apps awaiting their directory entry show Not published.
When checking Apps, compare the compact OpenBelt wordmark in the desktop sidebar and
phone drawer. The phone header shows only the menu button. Its drawer has rounded corners without a border,
with a 50% dark backdrop; tapping the backdrop closes it. The tile is 16px and the wordmark capitals
are 12px. Sign-in and consent pages use the larger 32px icon and 24px wordmark, with 32px below the logo.
How it works
Everything goes through the doors the product has, so what you see is what people get:
- The operator's
/_ops/tokensand/_ops/workspace-admins(withOPENBELT_ADMIN_TOKEN), which name Ada an admin and mint her a token for the run. - A workspace admin's
/_workspaceroutes, as Ada: people, groups, roles, connections, levels, tools. - Each person's own settings pages and
/_meroutes: tokens, consents, API tokens. The front door's headers say who is viewing; a local OpenBelt takes them as sent on 127.0.0.1, which is why the seed sends them to the platform's own address, not through the front door (where every request is you). - MCP for deploys (as each app's owner) and agents' calls.
bun run dev writes .dev/dev.json (where you open it, its own address
http://127.0.0.1:<port>, your token and the operator's) for the seed to read. For another
OpenBelt, pass --url <workspace url as you open it> --token <yours> --admin-token <OPENBELT_ADMIN_TOKEN>,
and, behind a front door, --via http://127.0.0.1:<port>: the seed sends people's requests there
with the URL's host, as the front door would.
If a state ever leaves you unable to do something, bun run qa reset makes you an admin again
with the operator's token. bun run verify qa proves all of this on a fresh platform:
seeding twice ends the same, each state shows what the table says, and a browser shows my-prs in
them.
Source: docs/qa.md on GitHub