Skip to content

desk DC9: the session view — MAWS's report over the session, history to the first line, the column's agents and jobs, the hub's output - #30

Merged
SSFSKIM merged 88 commits into
masterfrom
desk-dc9
Oct 18, 2026

Conversation

@SSFSKIM

@SSFSKIM SSFSKIM commented Oct 18, 2026

Copy link
Copy Markdown
Owner

The desk's DC9: the session view (child DC9 of docs/doperpowers/specs/2026-10-15-desk-design.md; execution document docs/doperpowers/plans/2026-10-17-desk-dc9-session-view.md; report docs/doperpowers/plans/2026-10-17-desk-dc9-report.md).

On a desktop browser whose machine is online, opening a session now shows MAWS's own report over the session's transcript, folded per turn. A Report · Transcript toggle switches between them, and history pages back to the transcript's first line. The log-built channel stays as the fallback for an offline machine and for the phone, which never loads the transcript.

Deploy order: the hub ships before any uplink answers output (DX4), so this hub goes out before DC8's machine side is relied on. Shared edit G6 already landed as #26, which this branch carries through master.

What changed

apps/desk-hub

  • output: DX3 output {sub, taskId, tail} goes up, DX2 output goes down, and the DX4 output kind carries four variants.
  • Widened bodies: the subagents body and the snapshot now carry status and evidence, jobs and mcp. Older producers still typecheck.
  • The fake machine as DC8's producer (producer: 'dc8'):
    • DX4's jobs and agent status, pinned by DC8's shared fixture (vendored at doperpowers 48f254aa);
    • output with exact containment;
    • the session-view recording, its synthesized rows' shape sources named in recorded.json, with a compaction in its older history;
    • paging after the replay ends.
  • Test-only fix: rpcs.test.ts's setUp race.

apps/desk-web

  • One owner per (machine, session): the center and the column share one subscription.
  • The session view:
    • <Transcript ownerLane> with the desk's toggle;
    • streaming bridged into the report's turns;
    • history in the center, the reader's place kept through late pages.
  • The channel around it (owner's verdicts 1B and 2B):
    • tail sends with their delivery state in the bubble's foot. They are matched to their rows only by the delivery frame's identity and provenance, never by text;
    • requests as cards inline at the tail, with an "N waiting ↓" pill;
    • the ask mod's question with the log's answer, or a withdrawal, overlaid;
    • the end marker with Resume;
    • the fallbacks.
  • Retired: the folds and DX8's transcript slot are removed.
  • The column:
    • DX4's agent statuses, authoritative over held-row artifacts;
    • the Jobs tab: MAWS's ShellRow/MonitorRow, output under its row, Stop disabled with its reason;
    • MCP names.
  • The interrupt: a turn ends at its interrupt marker (Esc's, or doperpowers P5 O10 M2: the endpoint module — state, enrollment, the org state #225's two rows, or the bridge's legacy row), with no bubble.
  • Landings on a request card or a <message> page toward older history and yield to the reader.

Not changed: MAWS's own src/, apart from S1 (#26). Its components are imported as they stand.

Validation Evidence

Claim Command Result
Static, typecheck, lint, unit on the final head scripts/ci-gate.sh <worktree> --gates static,unit 39086239342: success on af6d5b8c
desk-web browser suite on the final head scripts/ci-gate.sh <worktree> --gates e2e:desk-web --runner linux 39086762891: success on af6d5b8c
The same gates on the panel-fix head 48ad4b43 / d259f3f3 as above 39085114852, 39085680076: success
The same gates on the panel's range head 79a8c812 as above 39082173156, 39082718236: success
DC9 acceptance G1–G5, clause by clause, against the fake machine replaying session-view apps/desk-web/e2e/acceptance.spec.ts and the specs cited in M6's report mapped in M6's task report. DC8's machine side end to end waits for the deployment
DC8's shared fixture pinned apps/desk-hub/test/fake-machine/jobs-parity.test.ts (vendored 48f254aa) every body and output case passes
Phone loads no transcript chunk (G3, as amended) apps/desk-web/e2e/phone-load.spec.ts no SessionView or TranscriptPane chunk; no fetched script holds MAWS's Transcript
Last local runs (fix-wave head) pnpm --filter desk-web exec vitest run; session-view, session-view-tail, acceptance, depth specs 529/529 unit; 30/30 and 18/18 browser

Reviews:

  • Every milestone passed a task review (sol/xhigh), with fix waves re-reviewed.
  • An xhigh whole-branch panel ran over d9466376..79a8c812, run by the composite's writer. It found 4 P2s, all fixed.
  • A reviewer-high checked the fix delta. Its one P2 is fixed and re-reviewed clean.

Unresolved Review Findings

  • Fake machine output resolver (apps/desk-hub/fake-machine/output.ts): a .. after a dangling symlink isn't refused. The read stays inside the root. A tech-debt row.
  • Held end time (apps/desk-web/src/depth/agents/task-feed.ts): when DX4's status equals the held one, the held end time stays, so a legacy launch followed by a completion keeps the launch's time. A tech-debt row.
  • Older-plugin steer (apps/desk-web/src/depth/source/interrupt.ts): a steer through a plugin older than doperpowers P5 O10 M2: the endpoint module — state, enrollment, the org state #225 whose whole text is an interrupt marker ends a turn. P5 O10 M2: the endpoint module — state, enrollment, the org state #225's bridge now refuses that steer. A tech-debt row.
  • Unended last turn (desk only): an idle or ended session's last turn reads "working" when the transcript never ended it, as with a process killed mid-turn or a cut replay. A tech-debt row.

Residue

  • The MAWS app's disk-only background jobs. The backfill is parked on desk-backfill-jobs (S2 of this plan). It needs a disk-only session.events read (reversing C8b's documented line), an exited rule, BackgroundTool's live gate dropped, and Stop hidden for reconstructed jobs. Open findings ride with it: a monitor's expiry is lost on a branch rejoin, and the preamble-form notification is missed.
  • maws-fe suggestions:
    • the bubble's delivery foot for UserRow;
    • a QuestionRow prop to replace the desk's portal overlay;
    • names in agent_message rows;
    • a disk-only async ask-mod question stays "Not answered";
    • a peer's bubble is still announced "Your message".
  • Web Stop for jobs: a DX6 RPC, a hub route and the machine side.
  • A relayed DX4 turn-end kind from DC8, more exact than the interrupt marker.
  • Lazy shiki and KaTeX on the phone: load them only when a message holds code or math.
  • The bridge's async-answer prompt still draws as a raw bubble.

…tity only, status precedence, missing with path null)
The tail row's delivery line (1A under the bubble, 1B in its foot), the request band (2A band, 2B inline, and both with four waiting), the end marker (ended with Resume, retired), and the column's jobs view (4A output under its row, 4B as the pane, 4C each output variant), with a screenshot of each surface at desktop width.
…d, the end marker as drawn)

Each chosen alternative is badged CHOSEN (owner, 2026-10-17); the assembled view uses 1B and 2B with the question row reading 'Waiting for your answer · below'; 2B's pill reads 'N waiting ↓'; Stop is disabled with its reason on hover. Screenshots re-shot.
… body, DX8's output()

The hub takes DX3's output {sub, taskId, tail} (taskId [A-Za-z0-9_-]{1,64}, tail 1 to 524288, else bad-shape),
routes it as rows (ownRoute, the lease check) to the sub's machine as DX2 output with its agentId, and relays
DX4's output kind unread. DX4's output answer is a discriminated union (ok, missing with path string | null,
refused, unknown-task); the subagents body and the snapshot carry status, evidence, running, spawn, outcome,
file, jobs and mcp, optional where a producer older than DC8 omits them. DX8's Subscription gains
output(taskId, tail), sent by the hub client within the hub's bounds; both doubles carry it.
… comment says the exact realpath rule

DC8's shared fixture (dx4-jobs.json) omits name in every $.agent.list() seed spawn, so SubagentSpawn.name is
optional and the seed's type case omits it. The TaskOutput comment now states DX4's rule: the opened target's
realpath equals <realpath of a root>/<taskId>.output for one of the session's canonical roots.
…us, output, the session-view recording

jobs.ts derives DX4's widened subagents body (status and evidence by the
precedence, nested agents from their parent's transcript, jobs, MCP names)
as pure functions over rows; output.ts answers output with DX4's exact
containment. Both pass DC8's shared vectors (dx4/dx4-jobs.json, vendored
from doperpowers 8b34237b) through jobs-parity.test.ts.

SessionDepth and FakeMachine take producer: 'dc8' (default 'dc3', as
built), re-derive on every row, bridge agent event and presence change,
send subagents when it changed, answer output from the recording's
tasks/ under the session's canonical roots, and keep subscriptions open
after the session ends. recordings/session-view is two-subagents extended
by session-view.py with synthesized rows whose sources recorded.json names.
FakeMachineReplay takes the recording and producer, and answers output.
…es, the interrupted turn's end (DC9 M5)

Unit and browser suites green before the last lint fix; the final full-suite rerun was in flight at the commit.
…ames, an interrupted turn ended at its marker (DC9 M5)

Completes ca591de (its WIP subject stands in history). The bridge's interrupt record, stored as a meta row with the plugin's origin, ends the turn in either form: with its "Task …" lines it is normalized to its marker line before MAWS's backfill maps it; a typed prompt, another plugin's row, or a row with lines not the bridge's never ends one. A job's missing output with no path says plainly that none was named once the job or the session has ended.
# Conflicts:
#	apps/desk-web/src/depth/source/desk-transcript.ts
… under its row, the bridge's two-row interrupt (DC9 M5)

A DC8 producer's status is the agent's status for every entry, unknown included; held-row events give status only for an older producer. Every body case of DC8's vendored fixture is drawn with the body's status through the main subscription; an older launch MAWS's backfill reads completed draws exited, and a stoppedByUser meta with DX4 completed draws completed. A job's summary stands under MAWS's row, so a missing output still says what the job did. The bridge's marker on its own meta row ends the turn (doperpowers #225's two rows: marker, then a note that draws nothing); the older one-row record stays recognized; a steer of a marker through an older plugin is the documented residual, with a debt row.
…o paging to the first row crosses a compaction (DC9 M6)
…t its frame line, a peer's labelled; message landings in the session view; the phone's direct channel measured (DC9 M6)
…rn's record, and the fake machine disconnected (DC9 M6)
…ued prompt, labelled in its text; a landing resolves its span and pages toward an older row, saying so (DC9 M6)
# Conflicts:
#	docs/tech-debt-tracker.md
…tualized list, focused and marked; a withdrawn async question reads withdrawn; keep-place and paging count the rows the report draws; a peer's name escapes $

The rows MAWS's list draws (drawn-rows.ts: the store's rows and tail, through the report's projection when it is the view) are now what keep-place's index jump and older-pages' progress measure, so a page that folds into a closed working record asks for the next and a restore lands on the rendered index. A request landing moves the list to its card's rendered index and waits for the mount before focusing it. A verified withdrawn settlement feeds the question overlay.
…ng-link .., held end time on an equal status, a paged landing's pull)
…essage's, on their wheel, touch, press, keys, or focus moved, never on the list's own scrolling (keep-place's rule, shared in reader-intent.ts); the paged-landing debt row closed
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