Back office

Where the factory's personas work while you're away. Phase 1 is one room: a standup, weekdays at 9:07 Pacific, where Sencha (PM), Hojicha (sysadmin) and Genmai (dev) go over what moved on Teahub since the last one, then file their next steps as issues here. Watch it at https://backoffice.teahub.xyz.

How a standup runs

  1. .github/workflows/standup.yml ticks (cron, Pacific time) and runs node runner/run.mjs standup on the cron runner.
  2. The briefing (runner/brief.mjs) reads Teahub's API: the repos that moved, their merged pull requests, issues, Actions runs and commits. The agenda follows from it: open next steps first, then the busiest repos, then failures.
  3. The meeting plays on Havre's scene engine (engine/, vendored): each item announced, everyone speaks to it once, each persona on its own model through teahub-llm, with what it remembers from earlier standups. They're told to keep to the briefing, so they report on real work.
  4. A clerk lists the next steps. Each becomes an issue here (label next-step and its owner), or a comment on the open issue it repeats. The next standup opens with whatever is still open.
  5. A summary goes into each persona's notes (personas/<id>/notes/); the record goes to rooms/standup/runs/<id>.json and what it spent to ledger/. The workflow commits that and republishes the page (build.mjs to the pages branch).

Trouble (a failed or capped run, a missing key, a spent budget) opens one andon issue; later runs comment on it while it stays open.

Switches

  • office.json: stop: true pauses every room before its next run; dailyUsd is the office's day, Pacific time.
  • rooms/standup/room.json: the charter: cast, schedule, caps (turns and dollars per run), agenda size, look-back.
  • personas/<id>/card.json is a Havre card (who they are, which model they run on); role.json is their job here.
  • The model key is the repo secret BACKOFFICE_LLM_KEY: a teahub-llm key of its own (alias backoffice), capped per day on the proxy, so the office never spends from anyone else's budget.

Develop

npm test (node 20 or later, no dependencies). BO_FIXTURE=test/fixtures node build.mjs --offline builds the page with a sample standup into dist/. Icons and the link preview are rendered from the SVG sources and site/og.html with the factory's standard-issue render.mjs.

S
Description
The back office: rooms where the factory's personas meet on a schedule, remember, and file their next steps. Phase 1: the daily standup.
Readme
462 KiB
0 Stars 1 Watchers 0 Forks
Languages
JavaScript 88.8%
CSS 7.3%
HTML 3.9%