Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
bb09341
chore(studio): phase-1 tokens, redesign design doc and plan
egagofur Nov 22, 2026
41ccda7
feat(goal): idempotent freeze so Studio and the host can both approve
egagofur Nov 22, 2026
b4d950b
feat(studio): machine-wide instance file
egagofur Nov 22, 2026
50bcb2b
feat(studio): discover registry projects and worktrees with a read scope
egagofur Nov 22, 2026
e907d12
fix(studio): close symlink escapes in the read scope and resolve work…
egagofur Nov 22, 2026
79a2af4
feat(studio): run summaries with six-stage ring and waiting state
egagofur Nov 22, 2026
7d735c7
fix(studio): guard every run file read and treat REPORTED runs as fin…
egagofur Nov 22, 2026
d9458fc
feat(studio): one-shot wait notifications for macOS and Linux
egagofur Nov 22, 2026
90e631e
feat(studio): read-only multi-project server with one freeze action
egagofur Nov 22, 2026
27af475
feat(studio): machine-wide studio command with --background and --stop
egagofur Nov 22, 2026
f23ad84
fix(studio): stop only our own studio process and keep other instance…
egagofur Nov 22, 2026
96bb3d8
feat(studio): project list and run detail UI
egagofur Nov 22, 2026
a43e26a
fix(studio): select and freeze worktree runs, freeze from the project…
egagofur Nov 23, 2026
8974bb3
feat(studio): 3D loop ring with an SVG fallback
egagofur Nov 23, 2026
b2e4d2f
feat!: Studio rebuilt as a read-only bot monitor with Freeze
egagofur Nov 23, 2026
9bc04d4
fix(studio): drop the unused studio runtime, update studio help
egagofur Nov 23, 2026
add9b28
fix(studio): freeze waits, pre-auth crash, token-free log, async noti…
egagofur Nov 23, 2026
f2d3b99
feat(studio): ring and list match the approved option C design
egagofur Nov 23, 2026
6f9b623
feat(studio): goal tabs, richer header, interactive bot
egagofur Nov 23, 2026
8a5b20f
feat(studio): full-screen Saturn ring stage with a details sheet
egagofur Nov 23, 2026
58b24be
feat(studio): bot rooms, moods and zoom
egagofur Nov 23, 2026
3e2eeda
feat(studio): turntable diorama with premium bot and rooms
egagofur Nov 23, 2026
c040ac4
feat(studio): restaurant kitchen scene
egagofur Nov 23, 2026
a6b37d0
feat(studio): goal diagrams before freeze
egagofur Nov 23, 2026
b025a0a
fix(studio): fast order sketch and no duplicate shelves
egagofur Nov 23, 2026
6eacb66
feat(studio): round bot and micro-interactions
egagofur Nov 23, 2026
171d44b
feat(studio): kitchen art and lighting pass
egagofur Nov 23, 2026
205ea70
feat(studio): chef hat, expressive eyes, real cooking and tasting
egagofur Nov 23, 2026
0f5137c
fix(studio): phone layout and zoom framing
egagofur Nov 23, 2026
f41b446
fix(studio): record Studio freezes in Run history, guard IPC disconnect
egagofur Nov 24, 2026
671c990
fix(ci): Studio tests on Node 18 and Windows
egagofur Nov 24, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .agents/skills/ael/references/loop-commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ No task (`ael`, "hi", "what can you do"): offer, numbered, 1) build my workflow,

## Studio

Stage commands (`run`, `goal`, `gate`, `verify`, `review-pack`, `deliver`, `node start|activity|complete`) stream into an open Studio; `status --json` reports `studioUrl`. Emit `npx ai-engineering-loop activity heartbeat --run <runId> --phase <phase> --message <short factual summary>` only during long manual work, never before every stage. Before asking the human, persist the question with `npx ai-engineering-loop interaction question --run <runId> --id <id> --message <text>` so it appears once in Studio.
`ael studio` opens one machine-wide, read-only monitor of every registered project; it reuses a running instance (`~/.ai-engineering-loop/studio.json`). `--background` keeps it running for notifications, `--stop` ends it, `--no-notify`, `--port`, `--no-open`. Studio only reads Run artifacts: it cannot start, edit, cancel or answer anything. Its one write is Freeze of a waiting Goal; `goal freeze` then answers `alreadyFrozen: true`, so continue. `status --json` reports `studioUrl`. Emit `npx ai-engineering-loop activity heartbeat --run <runId> --phase <phase> --message <short factual summary>` only during long manual work, never before every stage. Before asking the human, persist the question with `npx ai-engineering-loop interaction question --run <runId> --id <id> --message <text>` so Studio shows the Run as waiting and notifies once (`docs local-workflow-studio`).

## Budget

Expand Down
2 changes: 1 addition & 1 deletion .agents/skills/ael/references/loop-goal.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
- Write `.ai-engineering-loop/drafts/goal.json`, then `npx ai-engineering-loop goal draft --json --run <runId> --file <file> --revision <currentRevision>`. Show `goal show --run <runId> --human` and `impactPreview`.
- Write `objective`, AC `statement` and `failureCases` in STE style (`docs goal-contract`): short, active, testable. Fix `readability` warnings before asking for the freeze.
- If `goal draft` returns `diagramOptions`, offer the recommended view or freeze; render only the pick (`goal diagram --view <v>`), then ask: freeze, another view, or add AC for `?`/side effects.
- Freeze: show the Goal, ask one host question **Freeze** / **Revise** (`loop-hosts`). Only after Freeze: `goal freeze --json --latest --run <runId> --by "<their name>"`. `--by` is that person, never `agent`, `ael-agent`, a model id, or empty. Never set `AEL_GOAL_FREEZE_OK`. T0: `quick start`.
- Freeze: show the Goal, ask one host question **Freeze** / **Revise** (`loop-hosts`). Only after Freeze: `goal freeze --json --latest --run <runId> --by "<their name>"`. `--by` is that person, never `agent`, `ael-agent`, a model id, or empty. Never set `AEL_GOAL_FREEZE_OK`. T0: `quick start`. `alreadyFrozen`: the human froze it in Studio; continue.
- Otherwise the freeze writes a DRAFT blast-radius map: `impact show --run <runId>`. ASSISTED: the human confirms or edits it (`impact confirm --by <name> [--allow <glob>] [--remove <path>]`); copy/CSS/comment-only goals: `impact skip --by <name> --reason <text>` (`docs blast-radius-map`).
- Do not edit production code until the Goal gate passes.
- After the freeze, work from the frozen contract (`goal show --run <runId>`), not the drafting chat; compact the conversation there if the host supports it.
2 changes: 1 addition & 1 deletion .claude/skills/ael/references/loop-commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ No task (`ael`, "hi", "what can you do"): offer, numbered, 1) build my workflow,

## Studio

Stage commands (`run`, `goal`, `gate`, `verify`, `review-pack`, `deliver`, `node start|activity|complete`) stream into an open Studio; `status --json` reports `studioUrl`. Emit `npx ai-engineering-loop activity heartbeat --run <runId> --phase <phase> --message <short factual summary>` only during long manual work, never before every stage. Before asking the human, persist the question with `npx ai-engineering-loop interaction question --run <runId> --id <id> --message <text>` so it appears once in Studio.
`ael studio` opens one machine-wide, read-only monitor of every registered project; it reuses a running instance (`~/.ai-engineering-loop/studio.json`). `--background` keeps it running for notifications, `--stop` ends it, `--no-notify`, `--port`, `--no-open`. Studio only reads Run artifacts: it cannot start, edit, cancel or answer anything. Its one write is Freeze of a waiting Goal; `goal freeze` then answers `alreadyFrozen: true`, so continue. `status --json` reports `studioUrl`. Emit `npx ai-engineering-loop activity heartbeat --run <runId> --phase <phase> --message <short factual summary>` only during long manual work, never before every stage. Before asking the human, persist the question with `npx ai-engineering-loop interaction question --run <runId> --id <id> --message <text>` so Studio shows the Run as waiting and notifies once (`docs local-workflow-studio`).

## Budget

Expand Down
2 changes: 1 addition & 1 deletion .claude/skills/ael/references/loop-goal.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
- Write `.ai-engineering-loop/drafts/goal.json`, then `npx ai-engineering-loop goal draft --json --run <runId> --file <file> --revision <currentRevision>`. Show `goal show --run <runId> --human` and `impactPreview`.
- Write `objective`, AC `statement` and `failureCases` in STE style (`docs goal-contract`): short, active, testable. Fix `readability` warnings before asking for the freeze.
- If `goal draft` returns `diagramOptions`, offer the recommended view or freeze; render only the pick (`goal diagram --view <v>`), then ask: freeze, another view, or add AC for `?`/side effects.
- Freeze: show the Goal, ask one host question **Freeze** / **Revise** (`loop-hosts`). Only after Freeze: `goal freeze --json --latest --run <runId> --by "<their name>"`. `--by` is that person, never `agent`, `ael-agent`, a model id, or empty. Never set `AEL_GOAL_FREEZE_OK`. T0: `quick start`.
- Freeze: show the Goal, ask one host question **Freeze** / **Revise** (`loop-hosts`). Only after Freeze: `goal freeze --json --latest --run <runId> --by "<their name>"`. `--by` is that person, never `agent`, `ael-agent`, a model id, or empty. Never set `AEL_GOAL_FREEZE_OK`. T0: `quick start`. `alreadyFrozen`: the human froze it in Studio; continue.
- Otherwise the freeze writes a DRAFT blast-radius map: `impact show --run <runId>`. ASSISTED: the human confirms or edits it (`impact confirm --by <name> [--allow <glob>] [--remove <path>]`); copy/CSS/comment-only goals: `impact skip --by <name> --reason <text>` (`docs blast-radius-map`).
- Do not edit production code until the Goal gate passes.
- After the freeze, work from the frozen contract (`goal show --run <runId>`), not the drafting chat; compact the conversation there if the host supports it.
4 changes: 4 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
tests/fixtures/*.md text eol=lf
vendor/egm/** text eol=lf
adapters/spec/** text eol=lf
studio/**/*.js text eol=lf
studio/**/*.css text eol=lf
studio/**/*.html text eol=lf
studio/**/*.json text eol=lf
26 changes: 25 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,31 @@ All notable changes to this project are documented here. Versions follow [Semant

## Unreleased

_No changes yet._
- **Fixed:** a Studio Freeze now records the same Run history as `goal freeze`: one `GOAL_FROZEN` lifecycle event (or the goal node's `NODE_COMPLETED` on a workflow Run) with the Studio actor, and the draft impact map, so recap and node evidence show Studio-frozen Runs. A background Studio no longer crashes when the starting terminal drops the IPC channel first. On phones the guest card sits clear of the Details button.
- **Fixed:** Studio on phones (600px and narrower). The kitchen camera frames the active station with its neighbours and pans with the bot instead of shrinking the whole counter; the six stations sit in a scrollable strip under the scene; the guest card is a bottom card that is never clipped; the run header is compact and takes over the "waiting for you" block; the ticket label moves clear of the bot's speech bubble (or hides) and bubbles stay inside the scene; buttons are at least 44px tall. The zoomed station view, on desktop too, is framed from the bot's size so the whole toque is visible.
- **Changed:** Studio chef bot and props. The bot wears a tall pleated chef's toque at every station (laurel on the brim at Order; the Critic swaps it for a dark beret). Its eyes are flat, unlit capsules drawn on the sphere with lid shapes for each mood: focused, serious at the Cook, a narrow suspicious squint at the Critic, worried, annoyed, angry, a blink and ^ ^ on click. The Cook tosses a frying pan (food flips and lands) over a flame that bursts with each toss and lights the scene warmly; reduced motion keeps a steady flame. The Head chef tastes a plated dish at the pass with a spoon and nods, rings the bell on a pass and pushes the plate back toward the Cook on an iterate; the gavel and hammer are gone. The Critic holds the magnifier over the plate, Taste and Order use the spoon, bowl, quill and notepad, Serve carries a tray with a cloche. Domes, bells and lids are no longer inside out, and polished metal reads as metal in both themes.
- **Changed:** Studio kitchen art and bot. The bot is a glossy orange sphere with two tall capsule eyes that carry its moods (blink, squint, angry tilt, wide eyes with a question mark, ^ ^ on click) and small station accessories (chef hat, laurel and quill, monocle and a near-black body for the Critic, gavel, tray with cloche); diners are spheres of the same family. The kitchen gets a warm tiled backsplash, a bracketed back shelf, a hood over the Cook station, pendant lamps over the pass, veined marble, brushed steel and wood grain, warm key, fill and rim lights with per-theme exposure, and larger, clearer props; the bot stands on the counter. Subtle micro-interactions: squash and stretch on hops, eyes follow the pointer, station hover lift, a bell wobble when the Judge passes, diners glancing at the bot, a check on a successful Freeze. Reduced motion keeps only fades.
- **Fixed:** the order sketch opens instantly: the recommended view is prepared while a Run waits for Freeze, the sheet shows a skeleton until a view loads, tabs keep their iframe and load lazily, and `goal/diagram?view=…&rev=<draft hash>` is cacheable while that hash is current. Switching projects in Studio no longer shows the shelves and jars twice: the kitchen is repainted in place instead of stacking a second one.
- **Added:** look before you freeze in Studio. While a draft with a `flow` waits for Freeze, the guest table, the Freeze chip and the project list offer **Look at the order sketch**: a sheet with the State, Storyboard and Lanes diagrams (recommended first), the undecided, hotspot and side-effect counts, and Freeze at the bottom. New read-only `GET /api/projects/:id/runs/:runId/goal/diagram?view=…` serves the diagram in a sandboxed iframe with its own hash-based CSP and writes no file; the Run detail carries `diagramOptions` and `flowCounts`. `freeze_diagram: off` hides it. The diagram page no longer uses inline style attributes.
- **Changed:** the Studio turntable is now an open restaurant kitchen: one counter read left to right with six stations (Order, Cook, Taste, Critic, Head chef, Serve) labelled with their AEL stage, status lamps (green done, pulsing orange now, dim pending, grey skipped), a ticket rail whose orange ticket follows the active station, a dashed "Sent back to the kitchen" path and "Iteration n of m" ticket after a Run goes back, a chef bot that walks between stations, the Devil's Advocate as a dark food critic, and a guest table for you ("Confirm the order?" with Freeze, "Bring it out?" for delivery approval). Wait lines are restaurant-flavoured. The flat ring fallback carries the same text.
- **Added:** Studio diners: a small dining area with animated NPC diners and hover/focus name tags. The named diners (a nod to people who inspired AEL) ship in `studio/diners.json`, generic diners fill the other chairs; override them with `studio.diners` in `~/.ai-engineering-loop/config.json` (max 6, validated, escaped).
- **Changed:** the Studio Saturn ring is now a turntable diorama: six procedural stage rooms on a round plinth (philosopher's study, workshop, lab, a dim Devil's Advocate room, courtroom, shipping dock) that turns the current stage to the front, status plaques and lamps per room, and the room view zooms into the same room instead of opening a separate scene. The bot is redesigned as a small robot with a clearcoat shell, glass visor and mood eyes. Rendering uses ACES tone mapping, soft shadows and a generated studio environment, all with core three.js (no addons, no downloaded models).
AEL Studio rebuilt as a read-only bot monitor with one action, Freeze (`docs/superpowers/specs/2026-11-22-studio-redesign-design.md`).

- **Breaking:** Studio is machine-wide. `ael studio` shows every project in the registry (`ael projects list`) and their worktree Runs, and reuses a running instance recorded in `~/.ai-engineering-loop/studio.json` (pid, port, URL; never the token). New flags: `--background` (detached, log in `~/.ai-engineering-loop/studio.log`), `--stop`, `--no-notify`; `--port` and `--no-open` stay. The per-project `<project>/.ai-engineering-loop/studio.json` is no longer written. `studio-layouts/` is no longer written either; it stays in the private runtime ignore list for one more release so 2.17 folders do not show as untracked, and is safe to delete.
- **Breaking:** the old control panel is removed: the wiring and recipe editor, layout save, node start/complete/fail/approve/retry, Run create/cancel/duplicate, Goal edit and unfreeze, answering questions and decisions, delivery adapter select, loop-limit changes, and their about 40 endpoints (`/api/bootstrap`, `/api/live`, `/api/validate`, `/api/install`, `/api/layout`, ...). Do these in the agent host or the CLI (`ael run`, `ael run --abandon`, `ael goal draft`, recipe files and `ael recipe`, `ael generate-adapter`); the table is in `core/local-workflow-studio.md`.
- **Added:** the new API: `GET /api/projects`, `GET /api/projects/:id/runs/:runId`, `GET|PUT /api/me` (the Freeze actor, stored as `studioActor` in `~/.ai-engineering-loop/config.json`), `POST /api/projects/:id/runs/:runId/goal/freeze` (requires `expectedHash`), `GET /api/events` (`projects` snapshots), `GET /healthz`. Projects are addressed by opaque ids; the browser never sends a path, and only `.ai-engineering-loop/` inside registry paths and their worktrees is read.
- **Added:** Freeze from the project list or the Run view in both `goalFreeze` modes (`goal.approval: "studio"`). `goal freeze` is now idempotent: freezing the same draft again returns `alreadyFrozen: true` with the original channel and actor, so the host question and Studio can both approve and the first answer wins.
- **Added:** one OS notification per new wait (Goal waiting for Freeze, delivery waiting for approval, agent question) via `osascript` on macOS and `notify-send` on Linux; never repeated, never for routine progress.
- **Added:** the selected Run as the loop ring of the approved design (option C): a card with the `<project> · <tier> · iteration n/m` eyebrow, the six stages as labelled dots on a front-facing circle (done green, in progress orange with a halo), the bot on the ring at the current stage (or the last done stage of a settled Run), and the current activity in the centre (for example "Devil's Advocate" with "3 findings · 1 blocking"). The ring is readable text at every width, including 375 px; there is no separate stage rail. With WebGL the bot is a glossy three.js sphere that glides to the new stage; without WebGL, with reduced motion, or if three.js fails it is a CSS bot. Project list rows show the bot icons (working, waiting with an outline, idle grey), `<project> · Freeze?` for Freeze waits, and the selected row as a raised card. three.js 0.185.1 (MIT) is vendored in `studio/vendor/`; still no build step and no runtime dependency.
- **Added:** Studio bot moods and rooms. A waiting bot escalates from a calm "?" (under 30 s) to tapping its foot, to annoyed (2 min), to ranting with steam (5 min), with fixed bubble copy per wait kind. Clicking the bot zooms into a stage room (low-poly diorama from primitives) with a glass card, the Freeze button when it applies, Previous/Next (←/→) across projects with an active Run, and Esc to zoom back out.
- **Changed:** the Studio Run view is one screen. The loop ring is a tilted, Saturn-like three.js ring (bands, gaps, drifting dust, pulsing current stage) with DOM stage names projected under each marker and a bigger bot riding it; the flat option C ring is the fallback without WebGL. The eyebrow, title, start time, wait chip and Freeze button float on the stage; findings, PR, receipt, Goal and assumptions moved into a **Details** bottom sheet (`D`, Esc, drag down on touch). Below 900 px the project list is a **Projects** menu.
- **Added:** Studio Goal tabs (Formatted, the default, and Markdown), a product top bar with count chips and a Live/Reconnecting/Offline indicator, and an interactive bot: a button that names what the bot is doing, per-stage animations (Goal writes like a philosopher, Review turns dark as the Devil's Advocate, Maker, Verify, Judge and Deliver have their own props), a hop-and-spin reaction on click or Enter, and a glance toward the mouse. The bot's glow is toned down. Reduced motion keeps still poses.
- **Changed:** the AEL orange brand on warm paper (light) or ink (dark, following the OS), all colours in `studio/tokens.css`, Geist when installed, motion per Emil Kowalski's rules with reduced motion keeping fades.
- **Fixed:** a Goal drafted with `goal draft` showed as "Agent asks you" instead of **Freeze?**, and after a Studio Freeze the Run kept waiting. The draft's freeze question is now shown as the Freeze wait; a Studio Freeze and a repeat `goal freeze` of a frozen draft answer it. A repeat `goal freeze` refuses an agent-like `--by` before recording anything. The list Freeze button sends the hash of the draft it was rendered with, so a changed draft gets 409.
- **Fixed:** a malformed request target (`GET http://[`) crashed Studio before auth; it now gets `400 Bad request`. `--background` no longer writes the session token to `studio.log` (the URL reaches your terminal over IPC, the log is `0600`), and its error output keeps multibyte log history intact. `readInstance` rebuilds the loopback URL from the stored port. Notifications run asynchronously with a timeout and are not repeated for waits already open when Studio restarts. A finished worktree Run shows an idle bot. List Freeze buttons name their target for screen readers.
- **Removed:** `ael studio --json`, which was accepted but did nothing; it is now an unknown flag.
- **Fixed:** the project list and Run meta showed `[object Object]` for Runs whose recorded tier is an object (`{ current, auto, source, ... }`); Studio now shows the current tier, and a T0 Run with such a tier dims Review and Judge.

## 2.17.0 - 2026-11-22

Expand Down
Loading
Loading