oficina / equipo Public
Dynamic specialists: Design, reviewers, taste and a page renderer
Status: 2026-11-28, revision 3.2, APPROVED by Paul. Drafted by Claude (Opus 5.5) on design-dynamic-specialists from main 55e192cf. Nothing is built. Astra rounds 1 and 2: NOT READY (13, then 5 findings, all folded in). Round 3: NOT READY on one item, the workspace snapshot, fixed in 3.1 by pausing the step while it is copied (section 3). A scoped Astra check of that fix alone: CLEAN. Paul's rulings on section 6 are in section 7.
Paul, 2026-11-28: "Where did we get to with allowing the coordinator to 'hire' other specialists to build out a team according to the user's prompts? e.g. I want to ask it about a Patrix design overhaul, which feels like it should go to a design specialist." Then: "each specialist should self-improve over time as it learns my taste. Option A sounds good."
Option A: more profiles on the closed menu, led by a Design specialist that makes things; read-only reviewer profiles; a taste notebook per person; and a runner-side page renderer so Design and the reviewers can see pages.
0. What exists today
propose_specialist(internal/equipo/chat/specialists.go) works from the person's own live turn, only for an owner, and raises a card with Add and Not now. Only an owner's Add, in one transaction, makes the specialist active, writes one grant per capability at its revision, and appends an audit row (proposed, approved, declined, revoked; grant use is not audited). Research binds each step to the grant and checks it again before it starts (researchGrant,research.go:719). Revoking cancels only Research steps. Add does not start any work by itself.- The menu (
internal/specialist/menu.go) is closed and holds one profile,research-v1. A row sets name, brief and model preference; the profile fixes the rest. One open proposal and one active specialist per profile. There is no project scope. - Copy learns only from the delegating owner's edits and imports (
copy_notes.go: 40 notes, 6 KiB in the prompt). The coordinator'swrite_notekeepssource: persononly for a whole sentence of the person's message in that turn. - Candidate progression knows Engineering by name (
review.go:102), and an exploration's Try again starts another Engineering step (explore.go:242). Explorations skip Checks and end at a direction card (Build this, Try again with a note, Drop) for one candidate. - No step can see a page. Engineering's sandbox mounts
/usrread only, so/usr/bin/chromiumis visible on docs-t1, unpinned and unchecked.wire.ToolHealth.Rendereris reserved and always empty. The thin runner'ssubmit_renderis a stub left from the plan runner; this spec does not reuse the name.scripts/ci-chromium.jsonpins Debian 13'schromium-headless-shell156 and its libraries for CI. - Patrix is a Go server app with Go-template themes. Its Timeless fonts are licensed and fetched by
make fonts; without them it uses DM Sans.
1. Profiles as data
The menu stays closed and in code. A profile fixes capabilities, tools, sandbox, native-tool policy and a prompt pack (an embedded file whose digest is part of the profile). Changing any of these means a new id (design-v2); old grants do not carry over, because an unknown profile already denies. A golden test pins each profile.
A specialist is a row: profile, name, brief, and a new project scope (one project, or the whole team; migration adds project_id, "" meaning the team). The coordinator picks the profile and writes name and brief from the person's request; it never sets capabilities or tools. Changing brief or scope is a new card and a new tap. One open proposal and one active row per profile per scope; a project's own row wins over a team-wide one.
New capabilities: branch.edit (edit the task's branch and submit a candidate, as Engineering does; never merge, push the default branch, preview, publish, or touch settings, places or grants), branch.read (read base and candidate) and page.render (section 3). web.research stays exclusive, so it never meets page.render.
| Profile | Slice | Capabilities | Tools | |---|---|---|---| | design-v1 | 1 | branch.edit, page.render | renderpage, submitcandidate, askperson | | design-review-v1 | 4 | branch.read, page.render | renderpage, submitspecialistreview | | accessibility-review-v1 | 4 | branch.read, page.render | renderpage, submitspecialistreview | | security-review-v1 | 4 | branch.read | submitspecialist_review |
suggest_note (section 2) arrives in slice 5 as new profile versions (design-v2 and the reviewers' v2), each needing a new Add.
Design is a maker on Engineering's machinery. The step keeps the maker step kind (engineering) and gains specialist_id on the task and the step. Placement, candidate reporting, fix rounds, retries and Try again reuse the task's maker, and the change task Build this creates inherits it, so Design stays Design through the whole task. What differs: the design-v1 prompt pack, render_page, the taste notes in its brief, and placement only on a runner whose renderer is healthy. The pack is a design discipline in the spirit of the impeccable skill: direction before pixels, a real type and spacing system, state first, every viewport checked, and the project's DESIGN.md from the trusted base as quoted project context. It is a reviewed file in the repository, never fetched at run time.
Every attempt is bound to its grant. A maker or reviewer step records the specialist id, revision, project and capabilities when dispatched. Every privileged effect checks them again in its own transaction (grantFor, generalising researchGrant): the runner's start authorization, each render_page call, and AuthorizePublication before a branch push. A mismatch refuses. Grant use is audited at dispatch (new). Revoking any specialist cancels its queued and running steps, as cancelResearch does today, and withdraws their pending publications; the task waits and the coordinator offers Engineering in its place.
Routing. status lists active specialists (id, profile, name, brief, scope). start_task gains an optional specialist (default Engineering). House rule: visual design, layout, themes and mockups go to Design; with no Design specialist active the coordinator calls propose_specialist and says in one line why. For a Patrix design overhaul that is one card ("Design for Patrix: can change the design on a task's branch and look at its pages in a browser with no network. It can't merge, publish or add anyone."). Add, in its transaction, queues one coordinator continuation turn tied to the proposing turn (idempotent per card). That turn carries an instance-written line ("Paul added Design for Patrix"), labelled as Equipo's record and never the person's words, and works from the person's original message. The coordinator then records the task and starts it with Design.
Reviewers never replace Review. Checks, Review and the owner's merge tap stay the only path to a merge. In slice 4, a Design-made candidate gets Design review when one is active, and the coordinator may add Security or Accessibility review. A blocking finding is a fix round for the maker under MaxFixRounds; the owner can mark a finding "Not a problem".
2. Taste memory
Each person has a notebook per discipline (design, security, accessibility). Design and Design review share the design notebook. A note covers one project or all of the person's projects. A step reads only the task creator's notebook: their team-wide notes and that project's. Only the person can see their notes.
What teaches it. Only the person's own signals, each recorded by the instance from authenticated records, never from a specialist's say-so:
- Their words. A whole sentence of their own message, kept when the coordinator calls
note_owner_wordsin that person's live turn; the instance matches the text against the person's stored messages of that turn. Or a note they type on the specialist's page. Labelled "your words". - Their choices. Build this, Try again (with their note, quoted as their words) or Drop on a direction card; merging or declining a Design candidate; "Not a problem" on a finding. Stored as a structured fact: task, choice, and the option's title quoted as Design's words.
- Their edits (slice 5). A push to the task branch whose pusher, as the forge reports it, is the person; never the commit's author field. The diff is shown to the maker in its next step as the owner's edit. It is not a note.
Copy's existing notes stay Copy's; slice 5 shows them on the same kind of page.
What never teaches it. Model text on its own, repository content, rendered pages, web pages, Research findings and other people's signals.
Lessons (slice 5). A specialist may draft a short lesson from choices and edits with suggest_note. It is model text, so it is kept only on the person's tap, and stays labelled as Design's words, kept or edited by the person, with any edit recorded beside the original. Model origin is never erased.
Shown, corrected, forgotten. The specialist's page (/team/{id}) leads with state ("Design knows 12 things about your taste."). Each note shows its words, its source, date and scope, with Edit, scope, and Forget; "Forget everything" clears the notebook. Every write, edit and forget has an audit row (actor, note id, source kind; never the text). A removed member's notes stop being used at once.
Fed to the prompt. Each note is quoted under a label naming its source (AGENTS.md rule 3). At most 60 active notes, 300 characters each, 6 KiB in the prompt, project notes first and then newest; the page says when some do not fit. Recent choices add at most 10 facts. The brief records the notebook revision it used, and a forget bumps it. The start authorization compares the two: a queued or deferred step with a stale brief is refused and dispatched again with a rebuilt one, and a step whose saved session predates a forget starts a fresh session instead of resuming. A forgotten note reaches no step that has not started; one already running finishes with what it was given. For Security and Accessibility, notes change emphasis and format but never waive a finding: one the person accepted before is still reported, grouped as "you accepted this before".
3. The page renderer
render_page runs on the runner and is served only to profiles with page.render. The owner's Add is the consent: the card says the specialist looks at pages in a browser with no network, in that scope. Engineering does not get the tool in v1 (open question 4).
Contract. Input: tree (base or work); up to 6 pages, each a site path, a viewport from a fixed set (phone 390x844, tablet 834x1194, desktop 1440x900) and full_page; and compare, which renders both trees. Each capture is written as a PNG, re-encoded by the runner (at most 2 MB, full pages capped at 10,000 px), to a read-only /render/ mount the model reads with its own file tool; the tool's text reply lists them. With each: the page title, console errors (20), failed loads (30, each external blocked, not found or font), same-site links answering 404 (30), an accessibility outline (8 KiB), and with compare a changed-pixel ratio and a diff image. All text is page content: quoted, labelled, bounded, control characters stripped. Errors are fixed codes: renderer_missing, renderer_mismatch, no_site, too_many, busy, timeout, crashed. Captures the maker names in submit_candidate (at most 12) go to the instance as task files (chat_task_files), bound to the task, attempt and tree digest, and show on the task page and the direction card through the existing authenticated task-file route.
What it renders. The site is the directory release/preview.json names, exported from git objects with exportPreview's rules (clean paths, regular files, its caps), then scanned by the preview's pinned gitleaks before any render. base is the task's base commit and renders only if it has that file. work is a snapshot of the step's workspace made by the runner in its own git directory: a private index, hooks off, no filters or attribute drivers, links stored and never followed, written to a tree object and never to the branch. No write can reach the workspace while it is copied: the runner pauses every process of the step's sandbox (the model's CLI is already waiting on the tool call) for the bounded copy, at most 10 seconds, then resumes them, and refuses with busy if it cannot. A render is always of one consistent, immutable tree. The plan picks the pause mechanism; it must never freeze a cgroup that systemd spawns into. Slice 3 adds running apps: .equipo/render.json on the trusted base names a build, a serve command listening on $PORT, an optional seed and the pages to check, run in the offline checks sandbox. Renders are evidence for the specialist and the person, never merge evidence.
Sandbox. equipo-runner render runs under its own bubblewrap launch policy (not the fetcher's, which shares the network): every namespace unshared, loopback the only interface, the pinned browser tree and the exported site read only, a tmpfs for scratch, no home, environment, credentials, runner state or inherited descriptors beyond the browser's pipe. It serves the site on 127.0.0.1 inside the namespace and drives the browser over --remote-debugging-pipe. The browser's own sandbox stays on; a host that cannot nest it reports the renderer missing and never falls back to --no-sandbox. Tests prove direct IPs, redirects, other loopback ports and descriptors reach nothing. Limits per call: 60 seconds, 2 GiB, one render at a time per runner; per step 20 calls and 60 captures.
Pin and provisioning, as gitleaks. internal/release/renderer.json pins the packages of scripts/ci-chromium.json (written by the same script, so CI and runners move together). The instance release builds one renderer tree and a manifest; the manifest's SHA-256 is linked into the matching runner, as gitleaksSHA256 is. install-v1.sh, upgrade-thin.sh and both cutover scripts install the tree beside the runner on Linux and refuse one whose manifest or files differ. verify-installed checks the files against the linked digest and renders a fixture page. The runner reports ToolHealth.Renderer (ok, missing, mismatch, unpinned), status shows it, and the coordinator treats a bad renderer as "the runner needs updating", never as a reason to retry.
Mac runners. Not in v1: a Mac runner reports no renderer and its install does not require one, and Design work goes to a Linux runner. A Mac renderer (Chrome for Testing's headless shell under a network-less sandbox-exec profile) and native screens are later work.
4. Security and abuse
- No self-grant. Only the person's own live turn proposes, only an owner's tap adds, and no profile holds a tool that touches specialists, grants, settings, places, merges or publishing. A specialist cannot propose another. After Not now, the coordinator cannot propose that profile and scope again for 7 days; an owner can still add it from the team page.
- Injection from pages. A rendered page is repository content, and a screenshot can carry instructions no filter removes. The defence is what Design can do: edit one branch, with no network and no credential, and everything it makes passes Checks or the direction card, Review and the owner's tap. Page text enters prompts only quoted and labelled. Nothing a page says can become a note, and a lesson a page may have shaped still needs the person's Keep.
- Budget. Design turns count against the person's connections and the housekeeping ledger like Engineering. Without a message from the person, Design runs at most 3 steps per task. Render limits are in section 3.
- Audit. Specialist changes (today), grant use at dispatch, note writes, edits and forgets, and each render's counts and timing on the step.
5. Slices
- Design maker with static renders (L, built as 1a and 1b). 1a: the renderer tree, pin, install and verify,
ToolHealth.Renderer, staticrender_pagewith the workspace snapshot (M). 1b: project scope,design-v1and its pack, grant binding and revocation for all specialists, the Add continuation,statusandstart_taskrouting, captures as task files (M). Design's mockups for an explore task live undermockups/<task>/withrelease/preview.jsonnaming it: one candidate, each option (at most 4) its own page, named insubmit_candidate. When there is more than one, Build this takes a note (the person's words) saying which, and Try again narrows as today. No before shots, since there is no baseline yet. Witness on staging, then production: Paul asks for a Patrix design overhaul, taps Add on the Design card, and an explore task shows Design's options on a branch with screenshots on the task page and the direction card. - Taste notebook (M). Their words and choices, the specialist's page, Edit and Forget, prompt feeding, the fresh-session rule.
- Running-app renders (M).
.equipo/render.json, so Design sees real Patrix pages, with before and after. - Reviewer profiles (M). The three review profiles,
submit_specialist_review, blocking findings as fix rounds. - Lessons and edits (S).
suggest_note, Suggestions, pusher-verified edits, Copy's notes on the same kind of page.
Each slice adds a protocol and additive migrations. Card and page strings go into copy.go, marked pending for copy review.
6. Open questions for Paul
- Slice 1 shows static mockups, not live Patrix pages. Recommend: accept; options are the right first step of an overhaul, and slice 3 brings real pages.
- Licensed fonts like Timeless can't be fetched with no network. Recommend: a read-only font folder per project on the runner, filled once by the runner's owner, in slice 3; until then renders say the font fell back.
- The design discipline. Recommend: our own pack drawing on impeccable's method, after checking its licence, which you review once.
- Engineering seeing pages. Recommend: later, behind a per-project setting you switch on, once Design has used the renderer for a while.
- Whose taste on a shared project. Recommend: the task creator's only; a later "make this a project rule" for owners.
- Your known rules (no Bricolage Grotesque, no coloured left borders, no em dashes). Recommend: type them yourself on Design's page once. Agent-written summaries of them would be kept as agent words.
7. Paul's rulings (2026-11-28)
Paul accepted every recommendation in section 6:
- Slice 1 shows static mockups, not live Patrix pages; slice 3 brings real pages.
- Licensed fonts such as Timeless: a read-only font folder per project on the runner, filled once by the runner's owner, in slice 3. Until then renders say the font fell back.
- The design discipline is our own pack drawing on impeccable's method, after checking its licence, and Paul reviews it once.
- Engineering gets
render_pagelater, behind a per-project setting he switches on, once Design has used the renderer for a while. - On a shared project, only the task creator's taste is used; a later "make this a project rule" is for owners.
- Paul types his known rules on Design's page once himself; agent-written summaries of them would be kept as agent words.