Repository navigation
feat!: Studio rebuilt as a read-only bot monitor with Freeze (restaurant kitchen) - #175
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…tree ids Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ished Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
createStudioServer({ home, token, notifier, pollMs }) serves every
registry project: /api/projects, run detail, /api/me (GET/PUT actor),
the Goal freeze POST and an SSE stream fed by one shared poll loop that
also drives the wait notifier. Token-cookie exchange, Host check, CSP,
no-store and the mutation origin check are kept. runDetail now carries
goalHash so Studio freezes only the draft it showed.
Removes the old endpoints, lib/studio-layout.js and the tests that
exercised them; adapter-detect and audit-hardening point at the new API.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…s' files Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Rebuild the Studio page as plain ES modules: a project list ordered waiting, working, idle, missing; the selected Run's head, six-stage text rail, Goal (as text), findings, PR, receipt and unconfirmed assumptions; Freeze as <actor> for Goals waiting to be frozen, asking for a name once when the actor is not valid. Live updates come from /api/events. An empty #ring is reserved for the 3D ring. Render functions are pure and escape every Run-derived string, so they are tested in Node. Old-Studio assertions on index.html and styles.css are dropped; app.js stays until it is removed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… list Worktree Run summaries carry their worktreeId, and the list renders each one as a selectable row, so the existing detail and freeze path works for worktree Runs. Rows whose Run waits for a freeze get a sibling "Freeze as <actor>" button. It selects that Run, fetches the detail for goalHash and freezes, with the same conflict and already-frozen handling as the Run view. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The selected Run gets a three.js ring: six stage markers 60 degrees apart clockwise from the top, coloured from tokens.css, and an orange bot that eases to the active (or last done) stage and then stops rendering. The render loop pauses while the tab is hidden and the scene is disposed on Run change. Without WebGL, with reduced motion or at narrow width, main.js mounts the SVG ring instead; the text stage rail stays. three.js 0.185.1 is vendored (module + core builds, MIT); 0.186+ no longer ships minified builds. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Remove the old Studio UI (studio/app.js) and the studio-layouts/ runtime
ignore, drop the v110 assertions that read app.js, and rewrite the Studio
docs, README section, loop-commands Studio section, CHANGELOG and board.
Fix [object Object] in the project list and Run meta: run.tier is the
tier record { current, auto, source, ... } in real Runs, so Studio now
shows tier.current and dims Review/Judge for a T0 record.
BREAKING CHANGE: Studio is machine-wide and read-only; the wiring editor,
node control, Run create/cancel, Goal edit/unfreeze, decisions, adapter
select, loop-limit and layout save are gone (use the agent host and CLI).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Delete lib/studio-runtime.js; its test users now create workflow-bound Runs through tests/helpers/workflow-run.js, the same path `ael run` uses. The blank-task INVALID_RUN_TASK check was Studio-only and is dropped. Short help describes the machine-wide read-only monitor. studio-layouts/ stays in the private runtime ignore list for one more release. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…fier - The freeze question that `goal draft` posts now reads as the Freeze wait (with the draft goalHash), and a Studio Freeze or a repeat `goal freeze` answers it. The repeat path checks the human actor first. - A request target that is not a URL gets 400 instead of crashing. - `--background` passes the tokenised URL over IPC; the log stays token-free and 0600, and its tail is sliced by bytes. - The list Freeze button sends the hash it was rendered with and has an aria-label naming its target; finished worktree Runs show an idle bot. - The notifier is async with a timeout, resolves notify-send once, and seeds open waits silently on start. - readInstance rebuilds the loopback URL; `studio --json` is removed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Replace the Saturn ring with a rotating turntable of six procedural stage rooms, zoom into the front room for the room view, and redesign the bot as a clearcoat robot with a glass visor and mood eyes. Core three.js only. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Replace the turntable with an open kitchen: six stations on one counter (Order, Cook, Taste, Critic, Head chef, Serve) with status lamps, a ticket rail, a return path for iterations, a chef bot that walks between stations, a guest table for Freeze and approvals, restaurant wait copy, and a dining area with NPC diners (defaults in studio/diners.json, studio.diners config override served through /api/me). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Offer 'Look at the order sketch' at the guest table, the Freeze chip and the project list while a draft with a flow waits for Freeze: a sheet with State, Storyboard and Lanes tabs (recommended first), the flow counts, and Freeze on the same expectedHash path. The read-only diagram route serves the rendered page into a sandboxed iframe with its own hash-based CSP and writes no file; the run detail carries diagramOptions and flowCounts. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The order sketch is prepared while a Run waits for Freeze, opens on a skeleton, keeps one sandboxed iframe per visited tab and warms the other tabs when idle. Diagram URLs carry the draft hash, so the server marks them cacheable only while that hash is current. A project switch now repaints the one kitchen behind a short fade instead of stacking a second kitchen; Previous/Next still slides, and every replaced kitchen is disposed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The bot is one glossy AEL-orange sphere with two tall capsule eyes set right of centre, a soft contact shadow and no visor or mouth. Stages show through small accessories: chef hat, laurel and quill, a monocle with a near-black body and dim red eyes for the Critic, a gavel, a tray with a cloche. The eyes carry the moods (blink with jitter, squint, angry tilt, wide eyes with a question mark, ^ ^ when clicked). Diners are spheres of the same family and now and then glance at the bot. Micro-interactions: squash and stretch on hops between stations, eyes follow the pointer, a lift and label highlight on hovered stations, a bell wobble when the Judge passes, a check and one pulse on a successful Freeze, press feedback on tabs. Reduced motion keeps only fades; an idle scene wakes only to blink. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A warm open kitchen: cream subway-tile backsplash over plaster, a wooden back shelf on iron brackets with jars, a steel hood over the Cook station, a steel back counter, pendant lamps over the pass casting soft pools, veined marble on a wood-grain front and a terracotta floor. Warm key, fill and rim lights with a per-theme exposure and ambient token, soft shadows and contact shadows. Larger, clearer props per station, the bot standing on the counter, a tighter camera, and the stage caption on the same glass card as the Run card so the overlays never collide. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- toque on the bot at every station, laurel on its brim at Order, dark beret for the Critic - flat unlit capsule eyes drawn on the sphere with lid shapes per mood - Cook tosses a pan over a flame that bursts in sync with a flickering warm light - Head chef tastes a plated dish, rings the bell on pass, pushes the plate back on iterate - lathe profiles auto-orient so cloche, bell and lids face outward; metals tuned for both themes Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A Studio Freeze appends the GOAL_FROZEN lifecycle event (NODE_COMPLETED on workflow Runs) and drafts the impact map, matching goal freeze. The background child only disconnects while still connected. The phone guest card leaves room for the Details button. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Mark studio/vendor as ES modules so Node 18 loads the vendored three.js from tests, check studio sources out with LF so the source assertions match on Windows, and skip POSIX file-mode checks on win32. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Merged
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
AEL Studio is rebuilt from zero as a read-only, machine-wide bot monitor whose only action is Freeze (spec:
docs/superpowers/specs/2026-11-22-studio-redesign-design.md, plan:docs/superpowers/plans/2026-11-22-studio-redesign.md).ael studioshows every registered project and its worktree Runs. Flags:--background,--stop,--no-notify,--port,--no-open. Instance file:~/.ai-engineering-loop/studio.json, which never holds the token.GET /api/projects,GET /api/projects/:id/runs/:runId,GET|PUT /api/me,POST …/goal/freeze(requiresexpectedHash),GET …/goal/diagram?view=(sandboxed, writes nothing),GET /api/events(SSE),GET /healthz.D) with Goal tabs (Formatted/Markdown).studio/diners.json, overridable in local config.goalFreezemodes.goal freezeis now idempotent (alreadyFrozen). A Studio freeze records the sameGOAL_FROZENlifecycle event and impact map as the CLI.studio/app.js,lib/studio-layout.js,lib/studio-runtime.jsandstudio --json. The CLI and agent-host replacements are listed incore/local-workflow-studio.md.Why
The old Studio had grown into a half control panel that contradicted the gated loop: the wiring editor could change a gated flow, and there were node controls and Goal editing. It also had not followed the CLI since 2026-10. The maintainer wanted a high-level window: see which bots work where and which one waits for you, and freeze, with no micromanaging.
Security model (please review)
HttpOnly; SameSite=Strictcookie, and the redirect drops it from the URL.script-src 'self', no inline). Static files come from an exact allowlist..ai-engineering-loop/inside registry and worktree roots is read, with symlink guards. Projects are addressed by opaque ids.sandbox=""with its own CSP based on a style hash and no scripts.--backgroundpasses the URL over IPC, so no token lands instudio.log(0600).Testing
npm test: 902/902 pass.npm run audit:packagepasses.check:skillspasses. The vendored three.js 0.185.1 was checked byte-for-byte (sha256) against the npm tarball.--background/--stop.Reviewer notes
studio/diners.jsonnames Matt Pocock ("Skills For Real Engineers") and Claude ("Loop engineering") as a tribute; there is no endorsement claim. The maintainer should confirm shipping the name.user.namelookup is not cached, a WebGL context can leak if mount throws, andworktrees.jsonis read without the symlink guard (path strings only).ael studiousers; migration notes are inCHANGELOG.mdandcore/local-workflow-studio.md.🤖 Generated with Claude Code