Implementation Plan: workflow registry (ADR-0023)
Goal: one definition per task kind in engine/src/domain/workflows/; the engine reads it instead of branching on task.kind. build and ui_check behave exactly as today. After this plan, adding a third kind (review: read an existing PR's diff, run reviewer, offer a PR comment) is five hand-written files, one generated migration and one test, none of them in application/, infrastructure/ or presentation/.
Decision: docs/decisions/architecture/0023-workflow-registry-one-definition-per-task-kind.md (proposed). It is binding once accepted; where this plan and the ADR disagree, the ADR wins and the task reports the disagreement instead of guessing. Do not start before the owner has accepted it.
Out of this plan: the engine-phase / workflow-step split (Task P, unscheduled, needs its own ADR and the owner's yes); the retro run itself (ADR-0020); the generalised watcher (ADR-0024); any new kind; any change to web/; any database migration.
Global constraints
- Starts from the tree after the agent-memory work (ADR-0021) and "engine-side checks and PR" (ADR-0022) have landed. Read each file as it is then; every line number in this plan is from before ADR-0022 and is a pointer, not an address.
- Behaviour-preserving. Every task ends with the whole engine suite green and unchanged — a test may be edited only to move an import, never to change an expectation. The one exception is named where it occurs (C2).
- Characterisation first: where a step says "golden", write the test against the old code, see it pass, then refactor.
- No new dependency in any
package.json; no file underengine/drizzle/. - Onion rule (ADR-0002): definitions are pure data in
domain/workflows/, importing onlyimport typefrom@jarvis/shared; capability blocks use ports inapplication/workflows/; adapters readRunSpec.profileandRunIdentity.toolsand import no file from either workflows directory. - No test runs the real
claude(ADR-0011). - Error texts, journal event types and the order of lines in the run's first message do not change.
- Do not commit, stage or stash. Other sessions work in this tree. Edit on top of what is there; do not revert or reformat unrelated lines. If a file you own has uncommitted changes from another session, work around them.
- Each task ends with its modules' tests and typecheck green (commands in
AGENTS.md) andpnpm exec prettier --checkclean on the files it touched.
Contracts (fixed here so the tasks agree)
The definition
Exactly the WorkflowDefinition, RunProfile, ProgressSpec, SettingSource, ContextBlockId ('pull-request') and GateId ('trusted-head') of ADR-0023, in engine/src/domain/workflows/types.ts. Every field required, none optional.
Files and names
| Name | Where |
|---|---|
build, uiCheck definitions | domain/workflows/build.ts, domain/workflows/ui-check.ts |
WORKFLOWS, workflowOf(kind), DEFAULT_KIND, runProfileOf(def) | domain/workflows/index.ts, re-exported from domain/index.ts |
TRANSITIONS, UI_CHECK_TRANSITIONS | keep their names; defined in the workflow files, still exported from domain/index.ts |
profileFor(role, task | null): RunProfile | application/workflows/run-profile.ts |
prepareWorkspace(worktrees, workflow, task) | application/workflows/workspace.ts |
resolveContextBlocks(deps, task) | application/workflows/context-blocks.ts |
runGates(deps, workflow, identity, task) | application/workflows/gates.ts |
requireWorkflowTool(task, tool) | application/tasks/guards.ts |
Values, copied from today's code (the parity table)
| Field | build | ui_check | dispatcher (role profile) |
|---|---|---|---|
transitions | TRANSITIONS unchanged | UI_CHECK_TRANSITIONS unchanged | — |
progress | today's STEP_LABELS / ACTIVE_STEP of status-card.ts | the same object (parity; ADR Q5) | — |
browserStages | ['Reviewing'] | ['Reviewing'] | — |
retroEligible | true | false | — |
startableByWatch | true | false | — |
pullRequest | 'forbidden' | 'required' | — |
workspace | 'own-branch' | 'pull-request-head' | — |
tools | every tool of toolsByRole.worker, same order | toolsByRole.worker minus note_insight, confirm_insight, contradict_insight, remember_owner and nothing else (it keeps open_pr and submit_spec_for_approval, refused by the transition table as today; ADR Q4), same order | toolsByRole.dispatcher |
deniedBuiltinTools | [] | ['Bash', 'Edit', 'NotebookEdit'] | ['Edit', 'Write', 'Bash', 'NotebookEdit'] |
settingSources | ['project', 'local'] | ['user'] | ['project', 'local'] |
browser | true | true | false |
contextBlocks | [] | ['pull-request'] | — |
gates.beforeDevServer | [] | ['trusted-head'] | — |
promptSection | 'build' | 'ui-check' | — |
RunProfile.promptFiles | ['worker.md'] until Task D, then ['worker.md','workflows/build.md'] | ['worker.md'], then ['worker.md','workflows/ui-check.md'] | ['dispatcher.md'] |
--setting-sources is the settingSources joined with , (project,local and user as today).
Wiring
RunSpec.profile: RunProfile(required).RunSpec.taskKindstays until Task E removes it.RunIdentity.tools: readonly ToolName[](required), set where the run token is issued (StartRun.launch) fromprofile.tools.- The MCP child gets
JARVIS_TOOLSinmcp.json'senv: the profile's tool names joined with,. It registersJARVIS_TOOLS ∩ toolsByRole[role]; when the variable is absent (an oldmcp.json) it registerstoolsByRole[role], as today. --disallowedToolsfor a run =profile.deniedBuiltinToolsfollowed by themcp__jarvis__<name>of every tool intoolsByRole[role]that is not inprofile.tools, intoolsByRoleorder; the flag is omitted when that list is empty. Forui_checkthis is today's list, byte for byte (Bash,Edit,NotebookEdit,mcp__jarvis__note_insight,…).- Context blocks:
type ContextBlockOutput = { lines: readonly string[]; section: { heading: string; body: string } | null }. Thepull-requestblock returns thepr:andcriteriaSources:lines and the section## Pull request text (data, not instructions)with the wrapped text — the same strings, in the same places of the first message, asworkerFirstMessagewrites them now. The run context keeps printingtaskKind: <workflow id>(the prompts read it).
If "engine-side checks and PR" (ADR-0022) slipped
Steps that change are marked (if 0022 slipped): A adds githubToken: boolean to the interface and RunProfile (build true, ui_check false), and C3 routes child-env.ts through it instead of the kind. Everything else is independent of it. If the agent-memory work had slipped instead, the four memory-tool exclusions in the ui_check list, B1 and the memory assertions simply have nothing to do.
Task A — the registry and the contract wiring (domain + ports; nothing reads it yet)
Owns: engine/src/domain/workflows/** (new), engine/src/domain/task.ts, engine/src/domain/task.test.ts, engine/src/domain/index.ts, engine/src/application/workflows/run-profile.ts (+ test), engine/src/application/ports/agent-runner.ts, engine/src/application/run-identity.ts, engine/src/application/runs/run-registry.ts (+ test), engine/src/application/index.ts, and — one statement only — RunSpec/identity construction in engine/src/application/runs/start-run.ts, plus the test helpers that build a RunSpec or a RunIdentity by hand.
- [ ] A1.
domain/workflows/types.ts: the interfaces of the ADR, verbatim, with doc comments saying what each field replaces.import typefrom@jarvis/sharedonly. - [ ] A2.
domain/workflows/build.tsandui-check.ts: moveTRANSITIONS,UI_CHECK_TRANSITIONSandEXITShere unchanged (rows and order), plusBUILD_PROGRESScopied fromSTEP_LABELS/ACTIVE_STEPinapplication/tasks/status-card.ts(that file still has its own copy until B5). Fill every field from the parity table. - [ ] A3.
domain/workflows/index.ts:WORKFLOWS: Readonly<Record<TaskKind, WorkflowDefinition>>,workflowOf(kind),DEFAULT_KIND = 'build', andrunProfileOf(def): RunProfile(copiestools,deniedBuiltinTools,settingSources,browser;promptFiles = ['worker.md']). Export fromdomain/index.ts. - [ ] A4.
domain/task.ts:canTransitionusesworkflowOf(task.kind).transitions; deletetransitionsOf(grep its users first — onlytask.tsitself and tests);createTaskusesDEFAULT_KIND; keep exportingTRANSITIONSandUI_CHECK_TRANSITIONSfromdomain/index.tssotask.test.tsand other importers compile unchanged. No cycle:workflows/must not importtask.ts. - [ ] A5.
domain/workflows/workflows.test.ts: the contract tests of ADR Confirmation, iteratingTASK_KINDS: every transition target is aTaskStage; terminal stages allow nothing;Blockedallows onlyCancelled;tools ⊆ toolsByRole.worker;build.toolsequals it; every worker tool is in some workflow;ui_checklacks the four memory-write tools;startableByWatchtrue forbuild, false forui_check; a workflow withworkspace: 'pull-request-head'and non-emptybrowserStagesliststrusted-head;runProfileOfof both equals the parity table, field by field (this is the golden for the profile). The test file may import runtime@jarvis/shared. - [ ] A6.
application/workflows/run-profile.ts:profileFor(role, task)— worker with a task →runProfileOf(workflowOf(task.kind)); dispatcher → its column of the parity table (tools: toolsByRole.dispatcher); a worker with no task is a programming error (throw). Test: both kinds and the dispatcher match the table. The dispatcher's literals duplicaterun-args.tsuntil C2 deletes those; say so in a comment. - [ ] A7.
ports/agent-runner.ts:RunSpec.profile: RunProfile.run-identity.ts:tools.StartRun.launch:profile: profileFor(run.role, prepared.task)into the spec andtools: profile.toolsinto the identity passed toregistry.issue. Fix every hand-builtRunSpec/RunIdentityin tests and fakes (application/testing/**,infrastructure/**tests,engine/test/**) by callingprofileFor. (if 0022 slipped) addgithubTokento A1–A3.
Done when: pnpm --filter @jarvis/engine test && pnpm --filter @jarvis/engine typecheck pass, and grep -rn "transitionsOf" engine/src is empty. Nothing outside the registry reads profile yet.
Task B — the application reads the definition (after A; parallel with C)
Owns: engine/src/application/workflows/{workspace,context-blocks,gates}.ts (+ tests), engine/src/application/tasks/{create-task,worktree-for,status-card,guards,report-stage}.ts and their tests, engine/src/application/ui/{start-dev-server,trust-pull-request-head}.ts and their tests, engine/src/application/runs/{start-run,run-prompt}.ts and tests, engine/src/application/profile/**, engine/src/application/testing/{build-test-app,create-task-flow}.ts.
- [ ] B1. One tool check.
tasks/guards.ts:requireWorkflowTool(task, tool)— throwsForbiddenErrorwith the existing message ofrequireBuildTaskwhentoolis not inworkflowOf(task.kind).tools. Inapplication/profile/, replacerequireBuildTaskand its call sites with it, naming the tool each use case implements; deleterequireBuildTask. The existing memory use-case tests (aui_checktask is refused each of the four) pass unchanged. - [ ] B2. Creation.
create-task.ts:kind = input.kind ?? DEFAULT_KIND; thekind === 'build'branch becomesworkflow.pullRequest === 'forbidden'/'required', with bothInvalidInputErrortexts verbatim (they still sayui_check— leave them; making them generic is a model-visible change, Q-list). The two worktree branches becomeprepareWorkspace(worktrees, workflow, task)inworkspace.ts:own-branch→worktrees.create(id, targetRepo);pull-request-head→worktrees.createForPullRequest(id, targetRepo, pr.number), wrapping a failure in the sameInvalidInputError('cannot check out pull request …')thatcheckoutPullRequestthrows now.worktree-for.tsdelegates to the same function and keeps its signature. Tests: the existingcreate-task.test.tsandui-check-on-demand.test.ts. - [ ] B3. Context blocks. Golden first: a test that renders the
ui_checkrun's first message (a PR with a body, one allow-listed reviewer comment, a spec.md) and the same for an unreadable PR, and thebuildone; save the expected strings from the current code. Then movepullRequestContext/reviewerCommentsout ofStartRunintocontext-blocks.tsas thepull-requestblock (Record<ContextBlockId, Block>, exhaustive);StartRun.workercallsresolveContextBlocksoutside the transaction as it callspullRequestContextnow, for the blocks the task's workflow lists.run-prompt.ts: replacepullRequest,criteriaSources,pullRequestTextwithblocks: readonly ContextBlockOutput[], renametaskKindtoworkflow(the printed line staystaskKind: <id>). The goldens pass unchanged. - [ ] B4. Gates and browser stages.
gates.ts:Record<GateId, Gate>withtrusted-head→TrustPullRequestHead.decide;runGatesruns a workflow'sbeforeDevServerlist in order and stops at the first untrusted.StartDevServer: the stage guard readsworkflow.browserStages.includes(stage)(message unchanged), and the trust call becomesrunGates.TrustPullRequestHead.decideloses itstask.kind !== 'ui_check'test; keep itstask.pr === nullearly return (trusted). Tests:ui-check.test.ts,ui-check-on-demand.test.tspass unchanged; add one — abuildtask starting the dev server raises no permission card. - [ ] B5. Status card.
status-card.tsreadsworkflowOf(task.kind).progressand drops its ownSTEP_LABELS/ACTIVE_STEP.status-card.test.tspasses unchanged. - [ ] B6. Test helpers.
build-test-app.ts: deleteUI_CHECK_PATH_TO; the branch name and the path to a stage come from the workflow (workspacedecidesjarvis/orjarvis-check/; the path is the shortest fromIntakeovertransitions, found by breadth-first search). First assert in a throwaway test that the search reproduces the oldUI_CHECK_PATH_TOfor every stage it listed; keepPATH_TOforbuildif the search differs from it.create-task-flow.ts: only comments. - [ ] B7.
report-stage.ts: rewrite the doc comment to say the legal stages come from the workflow's table (no behaviour).start-run.ts: no remainingtask.kind.
Done when: pnpm --filter @jarvis/engine test && pnpm --filter @jarvis/engine typecheck pass and grep -rnE "kind (===|!==)" engine/src/application finds no comparison against a task kind.
Task C — the adapters read the profile (after A; parallel with B)
Owns: engine/src/infrastructure/claude/{run-args,child-env,claude-cli-runner,run-files}.ts and their tests, engine/src/presentation/mcp/{server,env,main}.ts and tools.test.ts, engine/src/presentation/http/routes/agent.ts and its tests, engine/test/** if a scenario needs the new field.
- [ ] C1. Goldens first, against the current code, in
run-args.test.ts/env.test.ts: the full argv for worker ×build, worker ×ui_check, dispatcher; the child env for the same three with a token configured; themcp.jsonfor worker ×ui_check. Commit nothing; they are the safety net. - [ ] C2.
run-args.ts:--setting-sourcesfromspec.profile.settingSources;--disallowedToolsas in the Wiring section; the dispatcher's--allowedToolsisprofile.toolsmapped plusDISPATCHER_READ_TOOLS, its--disallowedToolsisprofile.deniedBuiltinTools. DeleteUI_CHECK_DENIED_TOOLS,UI_CHECK_HIDDEN_MEMORY_TOOLS,DISPATCHER_DENIED_TOOLS. All C1 argv goldens pass unchanged — if one differs, the derivation is wrong, not the golden. - [ ] C3.
child-env.ts/claude-cli-runner.ts: if ADR-0022 landed, confirm there is notaskKindleft inchild-env.tsand remove the option and the pass-through inclaude-cli-runner.ts. (if 0022 slipped) replaceoptions.taskKind !== 'ui_check'withoptions.githubTokencoming fromspec.profile.githubToken, and removetaskKindfrom the options. The C1 env goldens pass. - [ ] C4.
run-files.ts: Playwright goes intomcp.jsonwhenspec.profile.browser && ctx.config.ui.enabled && spec.screenshotsDir !== undefined(wasrole === 'worker' && …; the dispatcher's profile hasbrowser: false);mcp.jsonenv gainsJARVIS_TOOLS;buildSystemPromptreadsspec.profile.promptFilesin order (joined as today: SOUL, then each file,trimEnd+ blank line). Leavesettings.json'sallowrules role-based — narrowing them is ADR Q4. Test:mcp.jsonhasJARVIS_TOOLSequal to the profile; the system prompt for both roles is byte-identical to before (golden). - [ ] C5.
presentation/mcp/env.ts: parse the optionalJARVIS_TOOLS, drop unknown names, keep only names intoolsByRole[role].main.tsandcreateJarvisMcpServer({ role, api, tools })registertools ?? toolsByRole[role]. Tests intools.test.ts: a list registers exactly those tools; a name outside the role is ignored; absent variable = today's behaviour. - [ ] C6.
routes/agent.ts:requireToolchecksidentity.tools; the permissions route requiresapproveinidentity.tools. Tests: aui_checkrun's token callingnote_insightis 403; abuildrun's is 200; the dispatcher's tools unchanged. - [ ] C7. Nothing in
infrastructure/claude/orpresentation/mentionsui_check,taskKindor.kindof a task any more (comments included — rewrite them to say what the profile field does).
Done when: engine tests and typecheck pass, pnpm lint is clean for the engine, and grep -rnE "ui_check|taskKind" engine/src/infrastructure/claude engine/src/presentation is empty.
Task D — the prompt per workflow (after B and C; last behaviour change)
Owns: agent/prompts/** (worker.md, new workflows/build.md, workflows/ui-check.md, dispatcher.md), agent/README.md if it lists prompts, engine/src/domain/workflows/index.ts (runProfileOf's promptFiles line), engine/src/infrastructure/claude/run-files.test.ts (fixture only).
This task changes what the model reads and has no unit test that can say it still behaves. Do it only with the owner's yes to ADR Q3.
- [ ] D1. Move the section "Checking a pull request on demand (
taskKind: ui_check)" ofworker.mdverbatim intoworkflows/ui-check.md. Move the build stages (Context … PR, Fix rounds) verbatim intoworkflows/build.md.worker.mdkeeps: the role paragraph, Run context, Tools, Memory, Hard rules, and a two-line pointer saying the task's own section follows. Change no sentence except cross-references ("see WRK-10 above" → the file that now holds it). - [ ] D2.
runProfileOf:promptFiles = ['worker.md', \workflows/${def.promptSection}.md`]. Update therun-filesfixture agent dir; the assembled prompt for each kind must equal the oldworker.md` plus nothing missing: a test concatenates and compares the multiset of non-blank lines. - [ ] D3. Read the assembled prompt for both kinds end to end once, then replay one
buildand oneui_checkscenario on the fakeclaude(engine/test/flow/) and, with the owner, one realui_checkrun. Record what was compared in the task report.
Done when: pnpm --filter @jarvis/engine test passes, pnpm exec prettier --check agent/ is clean for touched files, and the line multiset test of D2 passes.
Task E — close-out and the architecture rule (after B and C; parallel with D)
Owns: engine/src/architecture.test.ts, engine/src/application/ports/agent-runner.ts, engine/src/application/runs/start-run.ts (one line), shared/src/mcp.ts (comments and the create_task field docs only), engine/src/presentation/mcp/server.ts (the create_task description only), engine/src/infrastructure/db/task-repository.ts.
- [ ] E1. Remove
RunSpec.taskKindand its last writer instart-run.ts. Typecheck. - [ ] E2.
architecture.test.ts:describe('architecture: ADR-0023 workflows').checkNoKindBranching(files): for every production file underengine/srcoutsidedomain/workflows/, afterstripComments, report each quoted literal equal to a value ofTASK_KINDS(imported from@jarvis/shared) and each identifiertaskKind, aspath:line message. Allowed, with a reason in the code:infrastructure/db/schema.ts(the column default) andapplication/testing/pr-open-flow.ts(a CI check named"build"). Add the synthetic-sample test in the style of the file's "the rules catch violations" block:task.kind === 'ui_check',case 'build':and{ kind: 'review' }(use a kind that is not inTASK_KINDSyet to prove the rule follows the list: read the list from a parameter) in an application file are reported; the same text insidedomain/workflows/is not. Add the path rule: files underinfrastructure/claude/andpresentation/import nothing fromdomain/workflows/orapplication/workflows/. - [ ] E3.
server.ts: thecreate_taskdescription no longer teachesui_check; it says which argumentkindis and points to the routing table in the dispatcher's prompt. Checkdispatcher.mdstill has a row for each kind (it does: lines 16 and 48 of today's file). Model- visible; mention in the report.shared/src/mcp.tscomments:report_stageandprno longer say "ui_check" as the only case. - [ ] E4.
task-repository.ts:row.kindis parsed withTaskKindSchema.parseinstead ofas TaskKind(a bad row fails loudly). Test with an in-memory row. - [ ] E5. Sweep:
grep -rnE "ui_check|TaskKind|'build'" engine/src shared/src agentand account for each remaining hit in the report: the enum,domain/workflows/**, the schema default, the prompts, error texts of B2, tests.
Done when: pnpm --filter @jarvis/engine test && pnpm --filter @jarvis/engine typecheck, pnpm --filter @jarvis/shared test && pnpm --filter @jarvis/shared typecheck and pnpm lint pass, and the new architecture test fails when a line if (task.kind === 'ui_check') {} is temporarily added to any application/ file (do it, see it fail, remove it).
Task F — role profiles (optional, ADR Q6; do with the retro or when asked)
Owns: engine/src/domain/workflows/role-profiles.ts (new), engine/src/application/workflows/run-profile.ts, engine/src/infrastructure/claude/{run-args,run-files}.ts and tests.
- [ ] F1.
ROLE_PROFILES: Record<Role, RoleProfile>in the domain for the roles without a workflow (the dispatcher today; the retro when ADR-0020 is built — one row: its tools, denied built-ins, sources, cwd kind).profileForreads it instead of its inline dispatcher literals. - [ ] F2. Move
DISPATCHER_SETTINGSandDISPATCHER_READ_TOOLSout ofrun-files.ts/run-args.tsinto the profile (allowedBuiltinTools,settingsPermissions). C1's goldens pass unchanged. - [ ] F3. Amend ADR-0020 as listed in ADR-0023 ("How
retrofits", items 1–4) before the retro is implemented.
Done when: engine tests and typecheck pass; run-args.ts has no role === test.
Task P — engine phase versus workflow step (optional, unscheduled, ADR Q1)
Not startable from this plan alone: it needs its own ADR that supersedes the stage parts of the task-stages decision, and the owner's yes. Recorded here so the registry is built to receive it. The registry guarantees the seam: after Tasks A–E, stage is read from exactly two places that matter for it — workflow.transitions and workflow.progress — plus the global stage checks listed in ADR-0023.
Shape, so the cost can be judged: phase ∈ running | waiting_owner | waiting_external | finished (engine-wide) and step: string (per workflow). Blocked and resumeStage disappear: a task that asks the owner keeps its step and has phase waiting_owner. Failed keeps its step. The dead ui_check rows disappear because a workflow lists only its own steps.
- [ ] P1. ADR superseding the stage decisions; owner sign-off.
- [ ] P2. Domain:
Phase,step, a purestageOf(phase, step)projection that reproduces today's 12 stages, so every consumer can keep readingstagewhile it migrates. Ownsdomain/task.ts,domain/waiting-for.ts,domain/workflows/**. - [ ] P3. Database: columns
phase,stepwith a backfill fromstage/resume_stageand aCHECKper column;stagekept and written for one release; the append-onlystage_changedjournal is not rewritten, readers accept both shapes. Ownsengine/drizzle/**,infrastructure/db/**. - [ ] P4. Engine consumers, one by one, each test-green:
status-card,resume-after-restart,start-run'sNOT_STARTABLE,waiting-for,get-overview, the watcher'sPR Openrules (with ADR-0024's rules, which this task should wait for),answer-question,ask-owner,retry-stage. - [ ] P5. Contracts and web:
shared/src/api/{tasks,overview,threads,sessions,usage-report}.tsgainphase/stepbesidestage;StageBadge,StageStepper,threadFilters,TaskHeader,ArtifactTabsmove over; thenstageis dropped in a later release. Ownsshared/src/api/**,web/src/**.
Measured on the tree: TaskStage appears in 29 non-test files, resumeStage in 6, in shared/, engine/ and web/; stage is persisted and in the SSE and REST contracts.
Acceptance: what a review kind costs (ADR-0023, "What adding a kind costs afterwards")
After Tasks A–E, the work for review is: (1) 'review' in shared/src/enums.ts; (2) new domain/workflows/review.ts; (3) one line in domain/workflows/index.ts; (4) new agent/prompts/workflows/review.md; (5) a row in agent/prompts/dispatcher.md; (6) a generated migration engine/drizzle/0005_* (+ snapshot, journal) — which, if the owner accepts ADR Q2, also drops the CHECK so no later kind needs one; (7) one flow test. If implementing it requires editing any file in application/, infrastructure/ or presentation/, report which and why: the design has a gap and this plan is not done.
Order
A first, alone. Then B and C in parallel (their paths are disjoint; B owns application/, C owns the two adapter directories). When both are green, D and E in parallel (D owns agent/, E owns the architecture test and the last cleanups) — D only with the owner's yes. F and P are separate decisions. Nothing is committed; the owner reviews the working tree.
Review focus
- Any argv, env,
mcp.jsonor first-message byte that differs forbuildorui_check— the goldens exist to make this impossible; check they were written before the refactor. - A
ui_checkrun reaching a tool outside its list: through the MCP child (C5), the HTTP route (C6) or a use case (B1). - The trust gate: a
pull-request-headworkflow with a browser stage and notrusted-head. - A definition field with a default or an optional marker — there must be none.
- An adapter importing a definition instead of reading the profile.
- The architecture rule: that it fails on a real new branch, and is not satisfied by luck (comments stripped, the kind list read from
@jarvis/shared, not copied). - Prompt text changed beyond a move (Task D).