Harness Intelligence Wiki
SpecsCLIBrainstorm and Grill Altitude

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 grilling primitive.
  • 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.md requires 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, one show-me view, 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 use AskUserQuestion.
  • AC-002: brainstorm/SKILL.md and 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 that flow-lenses findings appear as tradeoffs, never as questions.
  • AC-003: brainstorm/SKILL.md names exactly two exits (another turn, $requirements-grill with the Brief) and forbids code edits, plans, and starting implementation.
  • AC-004: brainstorm/SKILL.md names the Brief path <wiki-root>/content/docs/project/grilling/<topic>-brainstorm-brief.md, the routed-wiki frontmatter and grilling/meta.json entry, the end-of-turn update rule, and the six content items of OUT-002, and names the Brief as its only durable write.
  • AC-005: requirements-grill imports the Brief before the first round with the OUT-003 mapping (answered entries with source Brainstorm Brief, rejected alternatives, frontier questions at their altitude) and states that a recorded preference is not re-asked.
  • AC-006: phases/router.md reads 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.
  • AC-007: skills/agnostic/requirements/flow-lenses/SKILL.md exists 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.md no longer contains the lens list.
  • AC-008: The grill checkpoint calls flow-lenses after every response set including partial sets, and create-architecture step 3 calls flow-lenses.
  • AC-009: requirements-grill contains SKILL.md without gate bodies, AUTHORING-HANDOFF.md, phases/ with exactly router.md, ground.md, round.md, checkpoint.md, close.md, and references/ with exactly artifact-output.md and wiki-output.md; references/grilling-flow.md is absent.
  • AC-010: The write-graph-based-skills audit phase passes for requirements-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: ground uses subagents and never asks the user; round runs $grilling through $wait-what with a show-me view; checkpoint and close name the OUT-005 steps; $wayfinder routing for one stuck unknown is present; skills/agnostic/requirements/grilling/SKILL.md is unchanged.
  • 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.
  • AC-013: The router selects exactly one altitude per round: the shallowest with ready frontier questions across all branches.
  • 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-design vocabulary, stack skills, opensrc, and a show-me interface sketch or module tree.
  • AC-015: No file under requirements-grill/ contains Illustrative, and the log template has no Illustrative: field.
  • AC-016: The close guard 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.
  • AC-017: references/artifact-output.md defines 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.
  • AC-019: requirements-phase step 3 completes when every material branch is settled at its Target Altitude or explicitly parked.
  • AC-020: create-architecture step 3 names flow-lenses and not $brainstorm; its artifact contract and template name flow-lenses as 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.
  • AC-021: No skill text in the skills repo calls $brainstorm as a gap scan, and every ask-hi file that describes brainstorm, requirements-grill, or the requirements family states the proposal loop, the grill graph with altitude routing, and flow-lenses.
  • AC-022: tests/brainstorm.contract.test.mjs asserts show-me every turn, proposal ending, no question rounds, two exits, and the Brief path; a requirements-grill graph test asserts router and gates, altitude ladder, one altitude per round, close guard, L3 derivation inputs, and no Illustrative default; a flow-lenses test exists; tests/requirements-grill-composition.contract.test.mjs and other tests no longer pin removed text.
  • AC-023: The skills repo package.json has "test": "node --test tests/*.test.mjs"; a GitHub Actions workflow runs it on push to main and on pull requests; the suite passes with zero failures.
  • AC-024: apps/cli/scripts/sync-skills-repo.mjs pins the pushed skills main commit; bun run sync:skills receipt SHA equals it; apps/cli/src/data/catalog/skills.ts has a flow-lenses entry with sourceDirectory: "skills/agnostic/requirements/flow-lenses" and a default pack lists it; BASELINE_CHANGELOG.md has reviewed Unreleased notes; CLI tests and type checks pass.
  • AC-025: The Harness wiki pages that describe brainstorm, requirements-grill, or the requirements flow match the synced skills; wiki check:health adds no finding and check:content reports current.

Constraints

  • Only requirements-grill asks the user question rounds; brainstorm proposes (Glossary Q25 axiom).
  • Skill text starts in wearedevpunks/skills on main; apps/cli/skills and .agents/skills change only through bun run sync:skills (root CLAUDE.md shared-skills rule).
  • requirements-grill is converted with write-graph-based-skills (Convert mode); all gate and skill text follows writing-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

Accepted Technical Decisions

  • brainstorm turn contract, exits, and seat (Q1–Q4); Brief path, writer, update rule, content (Q5); Brief import (Q6).
  • flow-lenses at skills/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); no Illustrative default (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.md folded 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 through docs-ingest-phase (Q22).
  • The CLI registry publishes only catalogued skills (apps/cli/src/registry/publisher/sources/skills.test.ts), so flow-lenses needs a catalog entry (ARC-017).
  • Non-material unknowns (Brief import gate, ladder file location, flow-lenses pack, old-format grills, CI file name) stay open as listed in the architecture's Parked Work and Non-material Unknowns; owner: implementer through create-plan.

Accepted Testing Decisions

  • Rewrite tests/brainstorm.contract.test.mjs; add requirements-grill graph tests modelled on tests/design-phase-graph.contract.test.mjs; add flow-lenses tests; update tests/requirements-grill-composition.contract.test.mjs and every other test that pins old text (Q23).
  • package.json "test": "node --test tests/*.test.mjs"; GitHub Actions on push to main and 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-skills audit phase output (AC-010).
  • package.json, the workflow file, and its run on push or pull request (AC-023).
  • Sync receipt SHA versus skills main HEAD; 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

DecisionEvidenceRationale
brainstorm proposes; only the grill asks roundsQ1User direction: question rounds "RESERVED" for the grill
Brainstorm Brief written by brainstormQ5Fork 3, option 1
Lenses move to flow-lensesQ7brainstorm had two jobs
Leading word altitudeQ9Fork 1, option 1; "Fog" stays Finder's
One altitude per roundQ11Fork 2, option 1
Remove Illustrative defaultQ13Zero of nine grills asked module-level questions
Required calls leave evidenceQ18Grill skipped its own calls

On this page