Brainstorm and Grill Altitude
Spec: Brainstorm and Grill Altitude
Context
Standalone $brainstorm ran interview rounds in all four observed calls, never rendered a show-me view unasked, and offered to implement. Zero of nine grill runs asked a module-level question: module detail stayed Illustrative or became unasked defaults, and deeper rounds came only from compile gaps. The grill also skipped its own required calls (log Current-State Findings).
This spec splits the front end into three roles. brainstorm proposes shapes and writes a Brainstorm Brief. flow-lenses finds candidate gaps for its callers. requirements-grill becomes a graph that asks every question round and routes rounds by Altitude until each branch reaches its Target Altitude. Terms follow the brainstorm and grill altitude glossary.
user ─steers─▶ brainstorm ──writes──▶ Brainstorm Brief
│ exit │ import (before first round)
▼ ▼
requirements-grill: router ─▶ ground ─▶ round(one Altitude) ─▶ checkpoint ─┐
▲ (flow-lenses) │
└──────── next round / next level ◀─────────────────┘
└─ all branches at Target Altitude or parked ─▶ close ─▶ create-architecture (flow-lenses)Non-Goals
- Changing the upstream
grillingprimitive. - Planning inside the grill: edit order, task breakdown, waves, estimates, tuning constants.
- Changing Finder's Fog; it stays one precision input.
Requirements and Outcomes
OUT-001: brainstorm is a proposal loop
Each brainstorm turn shows the current proposed shape, two or three alternative shapes with their tradeoff against the current shape, an evidence anchor or explicit unknown for each claim, and open forks stated as proposals with a default ("I take X unless you steer"). Every turn has one show-me view: a rendered page when the host supports it, otherwise show-me text views. The turn ends on the proposal and an invitation to react. brainstorm runs no interview or question rounds, uses no numbered question list and no AskUserQuestion, and is no longer an internal gap scan. It bounds the system and names its real operators (end users, agents, operators, or a mix); agent legibility (agent-intuitive, agent-ergonomic, agent-accretive) is one lens that applies when agents operate the system. When brainstorm applies flow-lenses to its own shapes, findings show as tradeoffs inside the proposal.
Architecture: OUT-001 mapping; ARC-001, FLOW-001.
OUT-002: brainstorm exits only to another turn or the grill, and writes only the Brainstorm Brief
brainstorm has two exits: another brainstorm turn, or $requirements-grill with the Brainstorm Brief. It edits no code, writes no plan, and starts no implementation. It writes the Brief at <wiki-root>/content/docs/project/grilling/<topic>-brainstorm-brief.md with the routed-wiki frontmatter and the grilling/meta.json entry of the grill artifacts. It updates the Brief at the end of every turn in which the user accepted or rejected a shape or stated a preference. The Brief holds: bounded system and operators; chosen shape; rejected shapes with the reason; user-stated preferences quoted verbatim; open forks with the proposed default; evidence anchors.
Architecture: OUT-002 mapping; ARC-001, ARC-002, FLOW-001-STEP-004, FLOW-001-STEP-005.
OUT-003: the grill starts from existing precision
Before the first round, requirements-grill imports the Brief: user-stated preferences and the accepted shape become answered log entries with source Brainstorm Brief; rejected shapes become rejected alternatives; open forks become frontier questions at their altitude. The grill does not re-ask a preference the Brief records. The router reads four precision inputs: the Fog graph when Finder context is supplied, the Brief, the grill status file, and code evidence. When these already settle a level for a branch, that branch starts at the next level.
Architecture: OUT-003 mapping; ARC-002, ARC-004, FLOW-002-STEP-001.
OUT-004: flow-lenses owns the Flow Lenses
A new internal skill flow-lenses at skills/agnostic/requirements/flow-lenses/ holds the ten Flow failure lenses moved out of brainstorm. Its description names its callers; users do not invoke it directly. Its output is candidate gaps, each with evidence or an explicit unknown, the guarantee at stake, and the altitude of the question it implies. Callers own the questions. Callers: the grill checkpoint after every response set, including partial sets; create-architecture step 3; optionally brainstorm.
Architecture: OUT-004 mapping; ARC-003.
OUT-005: requirements-grill is a Durable Workflow Graph
requirements-grill follows write-graph-based-skills: bootstrap SKILL.md, flat phases/ with router.md and the gates ground, round, checkpoint, close, and AUTHORING-HANDOFF.md. ground finds facts through subagents and never asks the user. round runs one $grilling round over the selected altitude's ready questions, presented through $wait-what with a show-me view. checkpoint records answers, runs $domain-modeling and flow-lenses, derives next-level questions, recomputes the frontier, and persists. close confirms shared understanding, runs a final $domain-modeling, shows the persisted understanding through show-me, runs wiki synthesis after explicit closure, and hands off to create-architecture. $grilling stays unchanged; the router owns question selection. references/artifact-output.md and references/wiki-output.md stay; references/grilling-flow.md moves into the gates. $wayfinder routing for one stuck unknown stays.
Architecture: OUT-005 mapping; ARC-004, ARC-005, ARC-006, ARC-007, ARC-008, ARC-009, FLOW-002.
OUT-006: rounds are routed by Altitude down to L3 Modules
The altitude ladder is L1 Outcome (users, flows, scope, observable behavior, states, copy, non-goals), L2 Shape (deployables, boundaries, state ownership and authority, contracts between parts, data lifecycle, external dependencies) and L3 Modules (primitives and libraries with exact module and symbol, modules and their interfaces, seams and adapters, dependency direction and injection, type and schema shapes, file and folder layout, resource lifetime owner). Planning stays out of the grill: edit order, task breakdown, waves, estimates, tuning constants. Each branch records a Target Altitude and a Settled Altitude: a code-bearing branch targets L3, a product-only branch L1, and a branch becomes code-bearing as soon as an accepted answer has a code consequence. Each round asks one altitude: the shallowest with ready frontier questions across all branches; branches descend independently. When every level-N question of a branch is answered or parked and N is below target, the checkpoint derives its level N+1 questions; L3 derivation uses codebase-design vocabulary, the applicable stack skills, opensrc for exact primitives, and a show-me interface sketch or module tree. The Illustrative default is removed: at L3 the grill decides module names, interfaces, primitives, seam placement, and file layout.
Architecture: OUT-006 mapping; ARC-010, ARC-007, FLOW-002-STEP-003, FLOW-003.
OUT-007: the grill closes only at Target Altitude
The grill closes only when every branch is settled at its Target Altitude, or parked at a named altitude with the user's reason. The explicit shared-understanding confirmation stays. User-authorized auto-pinning of defaults stays; each pinned default records its altitude.
Architecture: OUT-007 mapping; ARC-008, FLOW-002-STEP-006, FLOW-003-STEP-004.
OUT-008: grill artifacts record altitude and required-call evidence
The Branch Dashboard has Target altitude and Settled altitude columns; Current Round has Altitude: L1 | L2 | L3; the round question table has an Altitude column; each log question entry has Altitude: L1 | L2 | L3. Each gate names its own required calls. The checkpoint records each call's evidence in the status file for the round (for example flow-lenses: R<N> run); a skipped call is visible and blocks the next round.
Architecture: OUT-008 mapping; ARC-009, ARC-007, FLOW-002-STEP-005.
OUT-009: consumers follow the new roles
requirements-phase step 3 completes when every material branch is settled at its Target Altitude or explicitly parked. create-architecture step 3 calls flow-lenses in place of $brainstorm; L3 decisions feed its module and interface sections; a compile gap returns to the grill with its altitude. ask-hi references that describe brainstorm, requirements-grill, or the requirements family, and any skill text that calls $brainstorm as a gap scan, follow the change.
Architecture: OUT-009 mapping; ARC-011, ARC-012, ARC-013, FLOW-004.
OUT-010: contract tests guard the change and run in CI
The skills repo contract tests cover the new brainstorm, requirements-grill graph, and flow-lenses behavior. A package.json test script and a GitHub Actions workflow run the suite on push to main and on pull requests, and the suite starts green.
Architecture: OUT-010 mapping; ARC-015, ARC-016, FLOW-005-STEP-001.
OUT-011: the Baseline ships the change with matching docs
This repository ships the pushed skills commit through bun run sync:skills with baseline changelog notes, distributes flow-lenses through the CLI catalog, and updates the Harness wiki pages that describe brainstorm, requirements-grill, or the requirements flow through docs-ingest-phase.
Architecture: OUT-011 mapping; ARC-014, ARC-017, FLOW-005.
Acceptance Criteria
- AC-001:
brainstorm/SKILL.mdrequires per turn the current shape, 2–3 alternatives each with its tradeoff, an evidence anchor or explicit unknown per claim, forks stated as a proposal with a default, oneshow-meview, and an ending on the proposal and an invitation to react; it contains no instruction to ask question rounds, to number questions for the user, or to useAskUserQuestion.- Covers: OUT-001
- Architecture: AC-001, ARC-001, FLOW-001-STEP-002, FLOW-001-STEP-003, FLOW-001-STEP-005
- AC-002:
brainstorm/SKILL.mdand its description no longer name the operating agent's seat as the default frame or another skill invoking$brainstorm; the skill requires naming the system's real operators, lists agent legibility as a lens for agent-operated systems, and states thatflow-lensesfindings appear as tradeoffs, never as questions.- Covers: OUT-001
- Architecture: AC-002, ARC-001, FLOW-001-STEP-001
- AC-003:
brainstorm/SKILL.mdnames exactly two exits (another turn,$requirements-grillwith the Brief) and forbids code edits, plans, and starting implementation.- Covers: OUT-002
- Architecture: AC-003, ARC-001, FLOW-001-STEP-005
- AC-004:
brainstorm/SKILL.mdnames the Brief path<wiki-root>/content/docs/project/grilling/<topic>-brainstorm-brief.md, the routed-wiki frontmatter andgrilling/meta.jsonentry, the end-of-turn update rule, and the six content items of OUT-002, and names the Brief as its only durable write.- Covers: OUT-002
- Architecture: AC-004, ARC-002, FLOW-001-STEP-004
- AC-005:
requirements-grillimports the Brief before the first round with the OUT-003 mapping (answered entries with sourceBrainstorm Brief, rejected alternatives, frontier questions at their altitude) and states that a recorded preference is not re-asked.- Covers: OUT-003
- Architecture: AC-005, ARC-002, FLOW-002-STEP-001
- AC-006:
phases/router.mdreads the Fog graph (when supplied), the Brief, the status file, and code evidence, and starts a branch at the next level when these settle a level.- Covers: OUT-003, OUT-006
- Architecture: AC-006, ARC-004, FLOW-002-STEP-001, FLOW-003-STEP-001
- AC-007:
skills/agnostic/requirements/flow-lenses/SKILL.mdexists with the ten lenses under their current exact labels, a description that names its callers, output fields (evidence or unknown, guarantee at stake, implied altitude), and no write or question step;brainstorm/SKILL.mdno longer contains the lens list. - AC-008: The grill
checkpointcallsflow-lensesafter every response set including partial sets, andcreate-architecturestep 3 callsflow-lenses.- Covers: OUT-004, OUT-009
- Architecture: AC-008, ARC-003, ARC-007, ARC-012, FLOW-002-STEP-005, FLOW-004-STEP-002
- AC-009:
requirements-grillcontainsSKILL.mdwithout gate bodies,AUTHORING-HANDOFF.md,phases/with exactlyrouter.md,ground.md,round.md,checkpoint.md,close.md, andreferences/with exactlyartifact-output.mdandwiki-output.md;references/grilling-flow.mdis absent. - AC-010: The
write-graph-based-skillsaudit phase passes forrequirements-grill: every gate defines guard, inputs, bounded action, invariants, completion evidence, exits, and durable handoff, and every router route resolves to one gate or stop. - AC-011:
grounduses subagents and never asks the user;roundruns$grillingthrough$wait-whatwith ashow-meview;checkpointandclosename the OUT-005 steps;$wayfinderrouting for one stuck unknown is present;skills/agnostic/requirements/grilling/SKILL.mdis unchanged.- Covers: OUT-005
- Architecture: AC-011, ARC-005, ARC-006, ARC-007, ARC-008, FLOW-002-STEP-002, FLOW-002-STEP-004, FLOW-002-STEP-005, FLOW-002-STEP-007
- AC-012: The grill states the L1/L2/L3 contents and the planning exclusions of OUT-006, sets code-bearing targets to L3 and product-only targets to L1, and raises a target to L3 on the first accepted code consequence.
- Covers: OUT-006
- Architecture: AC-012, ARC-010, FLOW-003-STEP-002
- AC-013: The router selects exactly one altitude per round: the shallowest with ready frontier questions across all branches.
- Covers: OUT-006
- Architecture: AC-013, ARC-004, FLOW-002-STEP-003
- AC-014: The checkpoint derives level N+1 questions when every level-N question of a branch is answered or parked and N is below target; L3 derivation names
codebase-designvocabulary, stack skills,opensrc, and ashow-meinterface sketch or module tree.- Covers: OUT-006
- Architecture: AC-014, ARC-007, FLOW-003-STEP-003
- AC-015: No file under
requirements-grill/containsIllustrative, and the log template has noIllustrative:field. - AC-016: The
closeguard admits closure only when every branch is settled at its Target Altitude or parked at a named altitude with the user's reason; the explicit confirmation stays; an auto-pinned default records its altitude.- Covers: OUT-007
- Architecture: AC-016, ARC-008, FLOW-002-STEP-006, FLOW-003-STEP-004
- AC-017:
references/artifact-output.mddefines the four altitude fields of OUT-008. - AC-018: Each gate names its required calls; the checkpoint records per-round call evidence in status; the router does not start the next round while a required call has no evidence.
- Covers: OUT-008
- Architecture: AC-018, ARC-007, FLOW-002-STEP-005
- AC-019:
requirements-phasestep 3 completes when every material branch is settled at its Target Altitude or explicitly parked.- Covers: OUT-009
- Architecture: AC-019, ARC-011, FLOW-004-STEP-001
- AC-020:
create-architecturestep 3 namesflow-lensesand not$brainstorm; its artifact contract and template nameflow-lensesas the owner of the lens labels; the skill routes L3 decisions to module and interface sections and returns a compile gap to the grill with its altitude.- Covers: OUT-009
- Architecture: AC-020, ARC-012, FLOW-004-STEP-002, FLOW-004-STEP-003
- AC-021: No skill text in the skills repo calls
$brainstormas a gap scan, and everyask-hifile that describesbrainstorm,requirements-grill, or the requirements family states the proposal loop, the grill graph with altitude routing, andflow-lenses. - AC-022:
tests/brainstorm.contract.test.mjsassertsshow-meevery turn, proposal ending, no question rounds, two exits, and the Brief path; arequirements-grillgraph test asserts router and gates, altitude ladder, one altitude per round, close guard, L3 derivation inputs, and noIllustrativedefault; aflow-lensestest exists;tests/requirements-grill-composition.contract.test.mjsand other tests no longer pin removed text. - AC-023: The skills repo
package.jsonhas"test": "node --test tests/*.test.mjs"; a GitHub Actions workflow runs it on push tomainand on pull requests; the suite passes with zero failures.- Covers: OUT-010
- Architecture: AC-023, ARC-016, FLOW-005-STEP-001
- AC-024:
apps/cli/scripts/sync-skills-repo.mjspins the pushed skillsmaincommit;bun run sync:skillsreceipt SHA equals it;apps/cli/src/data/catalog/skills.tshas aflow-lensesentry withsourceDirectory: "skills/agnostic/requirements/flow-lenses"and adefaultpack lists it;BASELINE_CHANGELOG.mdhas reviewedUnreleasednotes; CLI tests and type checks pass.- Covers: OUT-011
- Architecture: AC-024, ARC-017, FLOW-005-STEP-002, FLOW-005-STEP-003
- AC-025: The Harness wiki pages that describe
brainstorm,requirements-grill, or the requirements flow match the synced skills; wikicheck:healthadds no finding andcheck:contentreports current.- Covers: OUT-011
- Architecture: AC-025, ARC-014, FLOW-005-STEP-003
Constraints
- Only
requirements-grillasks the user question rounds;brainstormproposes (Glossary Q25 axiom). - Skill text starts in
wearedevpunks/skillsonmain;apps/cli/skillsand.agents/skillschange only throughbun run sync:skills(rootCLAUDE.mdshared-skills rule). requirements-grillis converted withwrite-graph-based-skills(Convert mode); all gate and skill text followswriting-for-agents(log Context).- The canonical terms Altitude, Target Altitude, Settled Altitude, Brainstorm Brief, and Flow Lenses are used exactly; "Fog" stays Finder's artifact name.
- Pre-existing test failures are fixed only by updating an assertion that pins stale text to the current accepted skill text; a failure that shows a real skill regression blocks and goes to the user (Q24).
Dependency Readiness
No Stack Required.
Branch/Base Intent
Not applicable. Skills changes land on skills main per the root shared-skills rule, from c86912b42c3b; this repository's changes land on branch t3/brainstorm-requirements-grill-retro from main 3e79a7801d53.
Architecture Source
- URL: https://github.com/wearedevpunks/harness-intelligence/blob/5a9667427afe2591c24e6e8319cf2e684ed0c424/apps/wiki/content/docs/project/specs/cli/brainstorm-grill-altitude/ARCHITECTURE.md
- Commit:
5a9667427afe2591c24e6e8319cf2e684ed0c424 - Path:
apps/wiki/content/docs/project/specs/cli/brainstorm-grill-altitude/ARCHITECTURE.md - Content identity: sha256
22dac0208d147844…
Accepted Technical Decisions
brainstormturn contract, exits, and seat (Q1–Q4); Brief path, writer, update rule, content (Q5); Brief import (Q6).flow-lensesatskills/agnostic/requirements/flow-lenses/, internal, output fields and callers (Q7, Q8).- Leading word altitude and the L1/L2/L3 ladder; planning stays out (Q9).
- Target and Settled Altitude per branch; code-bearing → L3 (Q10); one altitude per round, shallowest first (Q11); N+1 derivation with
codebase-design, stack skills,opensrc,show-me(Q12); noIllustrativedefault (Q13). - Close guard (Q14); precision inputs (Q15).
- Graph layout:
SKILL.md,AUTHORING-HANDOFF.md,phases/{router,ground,round,checkpoint,close}.md,references/{artifact-output,wiki-output}.md;grilling-flow.mdfolded into gates (Q16). - Altitude fields in status and log (Q17); per-round call evidence blocks a skipped call (Q18).
- Consumer edits in
requirements-phase,create-architecture,ask-hi(Q19–Q21); wiki pages throughdocs-ingest-phase(Q22). - The CLI registry publishes only catalogued skills (
apps/cli/src/registry/publisher/sources/skills.test.ts), soflow-lensesneeds a catalog entry (ARC-017). - Non-material unknowns (Brief import gate, ladder file location,
flow-lensespack, old-format grills, CI file name) stay open as listed in the architecture's Parked Work and Non-material Unknowns; owner: implementer throughcreate-plan.
Accepted Testing Decisions
- Rewrite
tests/brainstorm.contract.test.mjs; addrequirements-grillgraph tests modelled ontests/design-phase-graph.contract.test.mjs; addflow-lensestests; updatetests/requirements-grill-composition.contract.test.mjsand every other test that pins old text (Q23). package.json"test": "node --test tests/*.test.mjs"; GitHub Actions on push tomainand pull requests; the suite starts green from today's 337 tests with 14 failures (Q24).
Verification Seams
- Skills repo files and
node --test tests/*.test.mjs(AC-001–AC-009, AC-011–AC-022). write-graph-based-skillsauditphase output (AC-010).package.json, the workflow file, and its run on push or pull request (AC-023).- Sync receipt SHA versus skills
mainHEAD;apps/cli/src/data/catalog/{skills,packs}.ts; CLI test and type-check commands;BASELINE_CHANGELOG.md(AC-024). - Wiki pages,
check:health,check:content(AC-025).
Decision Log
| Decision | Evidence | Rationale |
|---|---|---|
brainstorm proposes; only the grill asks rounds | Q1 | User direction: question rounds "RESERVED" for the grill |
Brainstorm Brief written by brainstorm | Q5 | Fork 3, option 1 |
Lenses move to flow-lenses | Q7 | brainstorm had two jobs |
| Leading word altitude | Q9 | Fork 1, option 1; "Fog" stays Finder's |
| One altitude per round | Q11 | Fork 2, option 1 |
Remove Illustrative default | Q13 | Zero of nine grills asked module-level questions |
| Required calls leave evidence | Q18 | Grill skipped its own calls |