Skip to content

feat: the Desk, one page for the team: runs, requests, decisions (6.20.0) - #62

Open
xjacka wants to merge 3 commits into
mainfrom
feat/developer-desk
Open

xjacka wants to merge 3 commits into
mainfrom
feat/developer-desk

Conversation

@xjacka

@xjacka xjacka commented Nov 30, 2026 •

Copy link
Copy Markdown

What and why

The operator's control room shows the instance's state to one person. The team has no page to see what the developer does, who asked for each change, or to ask for a change itself. This change adds the Desk: one interactive artifact in the Design Desk family. It shows the system now and takes requests the /develop way.

Reviewer guide

What changes in substance

  • bin/sd desk is one daemon on 127.0.0.1:5555. It serves the Desk API and the control room routes. The alternative was a second daemon on another port. The operator now runs desk where control-room ran.
  • A press on the page is a job from a closed command set (CMD_RE in page.html), checked against the caller's role. The page sends the agent one line, do desk job J-<n>. This is a new source of work orders, next to the hand-off label and Slack. CLAUDE.md → Trust boundary names it. (open)
  • Settings writes work/CONFIG.md bullets directly, for the operator only. Commands the agent runs (verify, verify_exclusive, verify_environment, demo_environment), mode, schedules and labels are read-only on the page. (open)
  • run-state.sh phase also appends work/PHASES.log. The Desk draws a run's phases from it. Lock and item formats do not change.
  • The control room GraphQL query also reads each PR's size and files, and each issue's author, body, last 10 comments and labeled events. The Desk uses them for "who asked". (open)
  • Who asked, in order: the Desk request, the PR Requested by line, an issue line (Filed from Slack…, Handed off from Slack by…, Asked on the Desk by…), the last account that put the hand-off label on the issue, the issue author.
  • Roles: operator (page owner), PM, SW architect, developer, viewer. The roster is a table in work/desk/PEOPLE.md, not a CONFIG.md section as in Design Desk. (open)

Where to look closely

  • app/src/developer/desk.ts deskHandler and Desk.job: role checks for each route. A wrong check lets a viewer start a run or change a setting.
  • app/src/developer/desk-settings.ts setValue: it rewrites CONFIG.md. A bad write can break the next run's configuration.
  • control-room.ts QUERY: the larger query can cost GitHub rate limit or fail on a big repository. It runs at most once a minute.
  • Desk.refresh: a member can read GitHub again at most every 30 s. A viewer cannot. Check the throttle holds per server, not per caller.
  • Desk.view: it must never send another person's email to a non-operator. A test covers /api/data and /api/people.

Scope

  • New: app/desk/page.html (the Desk page), app/desk/dev/harness.mjs (local preview with made-up data), app/src/developer/desk.ts, app/src/developer/desk-settings.ts, app/test/desk.test.ts, docs/desk.md.
  • New commands: sd desk and sd desk-agent (app/src/registry.ts).
  • control-room.ts: a larger GraphQL query; requested_by, size and demo on PRs; requested_by on issues, merged PRs and in-flight items.
  • run-state.ts: phase appends work/PHASES.log.
  • Everything the control room page shows is on the Desk too: Needs you, every open PR, the annunciator, a console per slot, the state machine's transitions, the full TICK.log, the alarm history, and Read GitHub now (POST /api/refresh, a member's, at most every 30 s; GET /api/history).
  • Docs: CLAUDE.md (run type, trust boundary, desk_* keys, docs map), README.md, app/README.md, docs/environments.md (screenshots also go to the Desk), docs/slack.md (a Slack grill, hand-off or filing also records a Desk request), .agents/skills/implement-issue/SKILL.md (<name> on the Desk in Requested by).
  • New config keys with defaults: desk_grill, desk_plan_approval, desk_adr.
  • VERSION 6.20.0 and its CHANGELOG.md entry; the upgrade step is optional.

Issue

No issue tracks this change.

Testing

  • npm run check in app/: typecheck, lint, 198 tests pass. 15 are new in test/desk.test.ts.
  • validate-definition: 0 fail, 1 warn. The warn (CLAUDE.md over 170 lines) was there before this change.
  • Manual: node app/desk/dev/harness.mjs 5720, in a browser, as each role and at mobile width. Checked: new request, research verdict, grill answer, discussion, decisions, Settings, People.
  • Not tested: a deployed instance with the real platform relay, GitHub and Slack.

…0.0)

The Desk shows what the instance does now and who asked for each change:
the slots, the runs and their phases, what waits for whom, each change's
pull request with its files, and its Environment with screenshots. People
ask for changes there, and each request goes the /develop way: research
of the area, a grill answered on the page, a plan to approve, the issues
filed with the decisions. Each request keeps a discussion that carries its
Slack thread. Decisions are D-<n> records, and each one that changes the
architecture gets an ADR an architect accepts. People and roles (viewer,
developer, PM, SW architect) and Settings follow Design Desk.

- bin/sd desk serves the Desk and the control room's routes on one port;
  bin/sd desk-agent is the agent's side.
- run-state.sh phase also appends work/PHASES.log.
- The control room's query also reads who asked, and each pull
  request's size and files.
An issue filed from the Desk ends with an "Asked on the Desk by <name>"
line. implement-issue now turns that line into "<name> on the Desk" on the
pull request's Requested-by line, and the Desk reads the same line when an
issue has no pull request yet.
Runs gains Needs you (ready to merge, conflicts, failed required checks,
Environments left behind, answers, a dead run's locks) and Pull requests
(every open one, with its review, checks, mergeability, last review and
the issue it names). The lists say what GitHub holds beyond what was read.

System gains the annunciator, a console per slot, the exclusive lock's
guards, the state machine's transitions and whether each can flow, the
full TICK.log (slot, session, why, checked results), the alarm history,
and how old the picture is with Read GitHub now (POST /api/refresh, a
member's, at most every 30 s). Ask beside an alarm, a lit tile or a row
of Needs you opens the private chat with the question written in.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant