Repository navigation
Conversation
…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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
/developway.Reviewer guide
What changes in substance
bin/sd deskis one daemon on127.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 runsdeskwherecontrol-roomran.CMD_REinpage.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)work/CONFIG.mdbullets 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 phasealso appendswork/PHASES.log. The Desk draws a run's phases from it. Lock and item formats do not change.Requested byline, 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.work/desk/PEOPLE.md, not aCONFIG.mdsection as in Design Desk. (open)Where to look closely
app/src/developer/desk.tsdeskHandlerandDesk.job: role checks for each route. A wrong check lets a viewer start a run or change a setting.app/src/developer/desk-settings.tssetValue: it rewritesCONFIG.md. A bad write can break the next run's configuration.control-room.tsQUERY: 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/dataand/api/people.Scope
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.sd deskandsd desk-agent(app/src/registry.ts).control-room.ts: a larger GraphQL query;requested_by,sizeanddemoon PRs;requested_byon issues, merged PRs and in-flight items.run-state.ts:phaseappendswork/PHASES.log.POST /api/refresh, a member's, at most every 30 s;GET /api/history).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 DeskinRequested by).desk_grill,desk_plan_approval,desk_adr.VERSION6.20.0 and itsCHANGELOG.mdentry; the upgrade step is optional.Issue
No issue tracks this change.
Testing
npm run checkinapp/: typecheck, lint, 198 tests pass. 15 are new intest/desk.test.ts.validate-definition: 0 fail, 1 warn. The warn (CLAUDE.mdover 170 lines) was there before this change.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.