--- name: maestro-design description: Resolve material unknowns blocking the next authorized slice, using research, grilling, prototypes, models, or wayfinding. Record durable decisions and apply the shared record-depth rule. review-date: 2027-02-28 --- # maestro-design Use when a material choice blocks the next slice. Read [Decisions and readiness](~/maestro/WORKFLOW.md#decisions-and-readiness) and [Authorization boundaries](~/maestro/WORKFLOW.md#authorization-boundaries). Design is read-only toward production code and authorizes nothing. ## Mode per unknown Identify what kind of unknown blocks progress, then load only the reference that resolves it: | The unknown | Mode | Reference | |---|---|---| | Decisions only the user can make, several and interdependent | grill | [references/grilling.md](references/grilling.md) | | A decision owned by someone not in the conversation | route to `maestro-questionnaire` | | | A fact in docs, APIs, or source outside this repo | research | `maestro recipe show investigation` | | "Does this state model feel right?" or "What should it look like?" | prototype | `maestro recipe show prototype` | | Fuzzy terminology, or a hard-to-reverse choice worth recording | model | [references/domain-modeling.md](references/domain-modeling.md) | | The effort exceeds one session and is wrapped in fog, or the user does not know what to do next | wayfind | [references/wayfinder.md](references/wayfinder.md) | Facts are yours to find; material product and scope choices are the user's. Never ask the user for anything you could look up. Modes compose: grill runs with each word defined where it is used; wayfind dispatches grill, research, and prototype per child work item. Each design pass must close at least one fork; a pass that closes none surfaces the blocker to the user instead of looping. ## Intake Pin the problem before choosing a method: > For [who], reach [observable outcome] within [boundary], because [impact], > without [excluded effect]. Route uncertainty to a lane: | Current uncertainty | Lane | |---|---| | state unknown | scout, no-write | | several architectures | two or three decision lanes | | contract clear | delivery | | candidate needs breaking | challenge | | hard-to-reverse fork | council | Weigh the ROI of independent judgment on five questions: 1. Would wrong framing be costly? 2. Is the decision hard to reverse? 3. Is the domain new to the owner? 4. Can independent judgment produce a materially different option? 5. Is human attention fragmented? Mostly no: the direct session. Mixed: the main chat plus one sub-agent. Mostly yes: several lanes. Yes on every question including hard to reverse: a council. Before launching any lane, pin the branch and commit, active writers, and dirty paths. ## Recall pass first Before proposing anything, search the store for precedent: ``` maestro search "" # hits labeled work/note/decision/memory maestro topic show # deep-read a past topic maestro decision list # locked choices that bind this scope ``` A past topic that settled the same fork is evidence; cite it instead of re-deriving the argument. ## Working method - Read the current `maestro work show`, linked decisions, notes, and source. - Present a blocking user-owned fork with a concrete recommendation; resolve reversible implementation details within the approved scope directly. - Record durable decisions under WORKFLOW.md's threshold: the owner's pick inside one feature goes in the topic's DECISIONS.md; a choice that binds beyond one topic or supersedes an earlier ruling is `maestro decision add "" --rationale "" --work `. Supersede an old decision with `--supersedes`; never rewrite its history. - Keep acceptance, non-goals, and authority visible on the work item. - `maestro topic open --work `, when SPEC.md and VERIFY.md are called for, tells the reviewer above you that a design has begun. - Do not edit code during a design-only engagement. ## Council A hard-to-reverse fork with wide blast radius runs the `maestro-council` protocol: neutral brief, sealed seats, one premise check on unanimity, one cross-examination round, one audit of the draft verdict, and one binding verdict recorded with `maestro decision add --rationale` carrying the dissent. The candidate under review stays frozen; a new finding creates a new candidate. ## Readiness gate and exit Check readiness of the next bounded slice, not the number of open questions about the whole project. Keep later questions visible without blocking an independent slice. If the problem itself is unclear, wayfind. Forks already settled are synthesized, never re-asked. An external claim entering a decision (API behavior, library semantics, versions) comes from research against primary sources, never from memory. Then exit by [Record depth](~/maestro/WORKFLOW.md#record-depth): - Tracked work: design ends with a work item with clear acceptance, `maestro work add "" --acceptance "<observable result>"`, plus any durable decisions. The why lives in the title or acceptance; when it needs a paragraph, add `maestro work note <id> "why: <paragraph>"`, and record findings from the research mode as `research: <finding>` notes. No SPEC is required; the work is verified inline by its recipe (`maestro recipe show <name>`). A one-sentence change never reaches design. - SPEC.md and VERIFY.md: `maestro topic open <slug> --work <workId>`, opened in the store whose checkout will change (a walk run in the Hub still opens its topic where the code lives; note the topic on the Hub map and the map on the topic's work item), then fill SPEC.md as a pure contract: Problem, Solution, Scope, Anti-goals (each traces to a real risk in this repo and gets a matching VERIFY.md check; an anti-goal that cannot be checked is a wish, not a constraint), Decisions (ids only, Hub decisions as `hub:<id>`; `maestro topic show <slug>` renders them; the owner's picks inside the feature go in DECISIONS.md). Plan checks using [Testing discipline](~/maestro/WORKFLOW.md#testing-discipline), including existing checks and necessary new tests, not a test quota. Draft VERIFY.md from acceptance, relevant risks, and anti-goals; then write a checkpoint (`maestro work note <id> --state "<text>" --next "<text>"`, the base on `--state`) and the original authorization as the item's authority (`maestro work note <id> --authority "<text>"`) on the work item. A SPEC that locks a decision on a derived artifact - a module map, a dependency graph, a measured table - ships that artifact in the topic beside SPEC.md, under `## Derived artifacts`, with the script or command that produced it and a plain statement of what the method over- or under-approximates. The conclusion is not the evidence: a stated table nobody can re-run reads as settled precisely because it is stated with confidence, and a VERIFY check that asks a later reviewer to re-derive what the design claimed to have settled is the sign the artifact is missing. If the next slice's acceptance or authority needs guessing, resolve that blocker. Otherwise continue implementation when the user's original request already authorizes it; do not ask again merely because design is complete. For a design-only request, finish with the proposed scope and implementation gate. A SPEC authorizes nothing. For unattended/away-mode design constraints, read `maestro recipe show unattended`.