Brainstorm and Grill Altitude
Architecture: Brainstorm and Grill Altitude
Context Scope
- Capability identity:
apps/wiki/content/docs/project/specs/cli/brainstorm-grill-altitude. The capability splits the requirements front end into three roles:brainstormproposes shapes, the newflow-lensesskill finds candidate gaps, and a graph-basedrequirements-grillasks all question rounds and routes them by Altitude down to module-level decisions. - Actors and outcome: the user steers brainstorm proposals and answers grill rounds; the operating agent runs the skills;
requirements-phaseandcreate-architectureconsume the closed grill. The outcome: brainstorms end in a durable Brainstorm Brief without question rounds, and every code-bearing grill branch settles at L3 Modules before closure (Q1, Q10, Q14). - In scope: shared skills
brainstorm,requirements-grill, newflow-lenses; consumer edits inrequirements-phase,create-architecture,ask-hi; contract tests, apackage.jsontest script, and a GitHub Actions workflow inwearedevpunks/skills; Baseline sync, changelog, and wiki pages in this repository (S1 Phase State). - Non-goals: changes to the upstream
grillingprimitive (S1 Phase State, Q16); planning items inside the grill: edit order, task breakdown, waves, estimates, tuning constants (Q9); changes to Finder's Fog, which stays one precision input (Q15). - Spec: sibling
SPEC.mdin this folder (codes mapped in Spec Traceability).
Canonical Terms
The terms come from the published glossary and Glossary Q25.
- Altitude: the level of abstraction of a grill question or settled decision: L1 Outcome, L2 Shape, or L3 Modules. Avoid: depth, granularity, zoom, fog level.
- Target Altitude: the deepest altitude a branch must settle before the grill can close.
- Settled Altitude: the deepest altitude at which every question of a branch is answered or parked.
- Brainstorm Brief: the durable record of a brainstorm: chosen shape, rejected shapes, user preferences, open forks. Avoid: brainstorm summary, brainstorm handoff.
- Flow Lenses: the ten end-to-end failure lenses that produce candidate gaps for a caller. Avoid: architectural lenses, brainstorm lenses.
- Relationships: each Branch has exactly one Target Altitude and one Settled Altitude. One Round asks questions at exactly one Altitude.
- Axioms: only
requirements-grillasks the user question rounds;brainstormproposes. The grill closes only when every branch has reached its Target Altitude or is parked at a named altitude. - Flagged ambiguity: "Fog" names Finder's artifact; grill depth uses Altitude, and the Fog is one precision input (Q15).
Sources
| Source | Role | Exact location and anchor | Immutable revision or content hash |
|---|---|---|---|
| S1 | Grill status and closure | apps/wiki/content/docs/project/grilling/brainstorm-grill-altitude-grill-status.md#phase-state, #branch-dashboard, #technical-grounding, #glossary | commit 657296989d59; sha256 c4ef2247c829cca4… |
| S2 | Grill decision log | apps/wiki/content/docs/project/grilling/brainstorm-grill-altitude-grill-log.md #current-state-findings, Q1–Q24, #glossary-q25, #closure | commit 657296989d59; sha256 12cdbd140711b564… |
| S3 | Published glossary | apps/wiki/content/docs/project/domains/brainstorm-grill-altitude-glossary.mdx | commit 657296989d59; sha256 9750cf43f88d21f7… |
| S4 | Current shared skills and tests (observed current behavior) | wearedevpunks/skills skills/agnostic/requirements/{brainstorm,requirements-grill,grilling}/**; skills/agnostic/docs/write-graph-based-skills/**; skills/phases/design-phase/phases/router.md; skills/phases/requirements-phase/SKILL.md; skills/agnostic/planning/create-architecture/{SKILL.md,references/artifact-contract.md,assets/ARCHITECTURE-TEMPLATE.md}; skills/agnostic/cli/ask-hi/**; tests/*.test.mjs | main c86912b42c3b |
| S5 | Skills history for the Illustrative default (observed) | wearedevpunks/skills commits f370868 (adds module-shape questions) and 3b0e174 (removes them, adds Illustrative:) | f370868, 3b0e174 |
| S6 | Baseline distribution and catalog (observed current behavior) | apps/cli/scripts/sync-skills-repo.mjs defaultRepositoryRef, defaultRepositoryCommit; apps/cli/src/data/catalog/{skills,packs}.ts; apps/cli/src/registry/shape.ts default-pack install; apps/cli/src/registry/publisher/sources/skills.test.ts "one skill item per catalogued skill" | commit 657296989d59 |
| S7 | Installed Flow failure lens list used for this compile | .agents/skills/brainstorm/SKILL.md#flow-failure-lenses | commit 657296989d59 |
Source Disposition
| Question / entry | Disposition | Accepted detail, replacement, or unresolved point | Evidence |
|---|---|---|---|
| Q1–Q24, Glossary Q25 | accepted | All entries answered; shared understanding confirmed; closed by the user 2026-10-16 | S1 Phase State, S2 Closure |
brainstorm as internal gap scan for requirements-grill and create-architecture | superseded | Replaced by flow-lenses (Q1, Q7, Q20) | S4 brainstorm/SKILL.md steps 2, 4 |
brainstorm "Return evidence-grounded observations and unresolved decisions" | superseded | Proposal turn with forks as defaults (Q2) | S4 brainstorm/SKILL.md step 4 |
| "Operating agent's seat" default frame | superseded | Bound the system and name its real operators (Q4) | S4 brainstorm/SKILL.md step 2 |
Illustrative: log field and "leave illustrative spelling … to downstream work" | superseded | L3 decides names, interfaces, primitives, seams, layout (Q13) | S4 artifact-output.md, grilling-flow.md#technical-grounding; S5 |
references/grilling-flow.md | superseded | Content moves into the gates (Q16) | S4 |
| Parked items | none | No parked branch | S1 Branch Dashboard |
Whole System
Question: which owners change, and which skill calls which?
Conclusion: question rounds come only from requirements-grill; brainstorm writes only the Brief; flow-lenses produces candidates for three callers, which own the questions (Q1, Q3, Q7, Q8). All skill text starts in the skills repo; this repository ships it (root CLAUDE.md shared-skills rule).
Architecture Blocks
| Selector | Owner | Authority and mutation rights | Accepted boundary | Constraint and evidence |
|---|---|---|---|---|
ARC-001 brainstorm skill | skills repo skills/agnostic/requirements/brainstorm/SKILL.md (rewritten) | User-facing proposal loop. Each turn: current shape; 2–3 alternative shapes, each with its tradeoff against the current shape; evidence anchor or explicit unknown per claim; open forks as proposals with a default ("I take X unless you steer"), never a numbered question list and no AskUserQuestion; one show-me view (rendered page when the host supports it, else show-me text views); ends on the proposal and an invitation to react. 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 when agents operate the system. May apply flow-lenses to its own shapes; findings show as tradeoffs, never as questions. Edits no code, writes no plan, starts no implementation. The Flow failure lens list and the "another skill invokes $brainstorm" trigger leave this file | Two exits only: another turn, or $requirements-grill with the Brief | Q1–Q4, Q8; S4 current text |
| ARC-002 Brainstorm Brief | brainstorm writes; requirements-grill reads | Path <wiki-root>/content/docs/project/grilling/<topic>-brainstorm-brief.md, with the routed-wiki frontmatter and grilling/meta.json entry of the grill artifacts. Content: bounded system and operators; chosen shape; rejected shapes with reason; user-stated preferences quoted verbatim; open forks with proposed default; evidence anchors. Updated at the end of every turn in which the user accepted or rejected a shape or stated a preference. The Brief is the only durable write of brainstorm | Grill import: preferences and accepted shape → answered log entries with source Brainstorm Brief; rejected shapes → rejected alternatives; open forks → frontier questions at their altitude; no re-ask of a recorded preference | Q3, Q5, Q6 |
ARC-003 flow-lenses skill | skills repo skills/agnostic/requirements/flow-lenses/SKILL.md (new, internal) | Holds the ten Flow failure lenses moved out of brainstorm with their exact labels (S7). Description names its callers; users do not invoke it directly. Output: candidate gaps, each with evidence or explicit unknown, the guarantee at stake, and the altitude of the question it implies. Writes nothing; callers own the questions | Callers: grill checkpoint (every response set, including partial sets); create-architecture step 3; optional brainstorm | Q7, Q8 |
ARC-004 requirements-grill bootstrap and router | skills repo requirements-grill/{SKILL.md,AUTHORING-HANDOFF.md,phases/router.md} | Graph-based skill under write-graph-based-skills (Convert mode): bootstrap SKILL.md without gate bodies; flat phases/ with router.md and one file per gate; AUTHORING-HANDOFF.md records authoring. Router owns question selection: it reads precision inputs (Fog graph when Finder context is supplied, Brainstorm Brief, grill status, code evidence); starts a branch at the next level when these already settle a level; selects one altitude per round, the shallowest that has ready frontier questions across all branches. $wayfinder routing for one stuck unknown stays | Router selects exactly one gate or stop from current evidence; cold resume from status | Q11, Q15, Q16; S4 write-graph-based-skills/SKILL.md required target structure, design-phase/phases/router.md |
ARC-005 ground gate | requirements-grill/phases/ground.md | Finds facts through subagents; never asks the user. Carries the technical-grounding obligations of the current grilling-flow.md#technical-grounding that remain current | Feeds evidence to router and round | Q16; S4 grilling-flow.md |
ARC-006 round gate | requirements-grill/phases/round.md | One $grilling round over the ready questions of the selected altitude, presented through $wait-what with a show-me view. $grilling stays unchanged as the per-round interview primitive | One altitude per round | Q11, Q16 |
ARC-007 checkpoint gate | requirements-grill/phases/checkpoint.md | After every response set, including partial sets: record answers; $domain-modeling; flow-lenses; next-level derivation; frontier recompute; persist. Raises a branch target to L3 when an accepted answer has a code consequence. When every question of a branch at level N is answered or parked and N is below target, derives level N+1 questions; L3 derivation uses codebase-design vocabulary (module, interface, seam, adapter, depth), applicable stack skills (for example effect-service-design), opensrc for exact primitives, and a show-me interface sketch or module tree. Records each required call's evidence in status for the round (for example flow-lenses: R<N> run); a skipped call is visible and blocks the next round | Next round only after persisted call evidence | Q8, Q10, Q12, Q16, Q18 |
ARC-008 close gate | requirements-grill/phases/close.md | Guard: every branch settled at its Target Altitude or parked at a named altitude with the user's reason. Then: explicit shared-understanding confirmation; final $domain-modeling; show-me of the persisted understanding; wiki synthesis after explicit closure; handoff to create-architecture. User-authorized auto-pinning of defaults stays; each pinned default records its altitude | Only exit to create-architecture | Q14, Q16 |
| ARC-009 Grill references | requirements-grill/references/{artifact-output,wiki-output}.md | artifact-output.md stays and adds altitude fields: Branch Dashboard Target altitude and Settled altitude columns; Current Round Altitude: L1 | L2 | L3; round question table Altitude column; each log question entry Altitude: L1 | L2 | L3. The Illustrative: field leaves the log template. wiki-output.md stays. references/grilling-flow.md is removed; its content moves into the gates | Gates point to the references they use | Q13, Q16, Q17 |
| ARC-010 Altitude ladder | requirements-grill router and gates | 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. L3 Modules: primitives and libraries (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: edit order, task breakdown, waves, estimates, tuning constants. Code-bearing branch targets L3; product-only branch targets L1. No Illustrative default in grill text | Used by router (selection), checkpoint (derivation, target raise), close (guard) | Q9, Q10, Q13 |
ARC-011 requirements-phase | skills repo skills/phases/requirements-phase/SKILL.md | Step 3 completes when every material branch is settled at its Target Altitude or explicitly parked | Step 4 unchanged | Q19; S4 step 3 |
ARC-012 create-architecture | skills repo skills/agnostic/planning/create-architecture/{SKILL.md,references/artifact-contract.md,assets/ARCHITECTURE-TEMPLATE.md} | Step 3 calls flow-lenses in place of $brainstorm. The contract and template text that reads lens labels from brainstorm names flow-lenses as the lens owner. L3 decisions feed the architecture's module and interface sections. A compile gap returns to the grill with its altitude | Compile reads the closed grill; never interviews | Q20, Q21, Q7; S4 artifact-contract.md "Resolve the installed brainstorm skill" |
ARC-013 ask-hi references | skills repo skills/agnostic/cli/ask-hi/{SKILL.md,references/*.md} | Every reference that describes brainstorm, requirements-grill, or the requirements family follows the new roles, graph, and flow-lenses. Observed files naming them: SKILL.md, references/{requirements,phase-graph,baseline,delivery,discovery-and-docs,known-gaps,quality}.md | Text only | Q21; S4 |
| ARC-014 Wiki pages | apps/wiki/content/docs/harness/** through docs-ingest-phase | Harness entrypoint and skill-reference pages that describe brainstorm, requirements-grill, or the requirements flow. Observed candidates include harness/entrypoints/brainstorming-requirements-backlog.mdx and harness/skills-and-packs/{skill-reference,skill-graph,skill-packs,phase-wrappers}.mdx; docs-ingest-phase owns the final list | Pages follow the synced skills | Q22 |
| ARC-015 Contract tests | skills repo tests/*.contract.test.mjs | Rewrite tests/brainstorm.contract.test.mjs: show-me every turn, proposal ending, no question rounds, two exits, Brief path. New requirements-grill graph tests modelled on tests/design-phase-graph.contract.test.mjs: router and gates exist, altitude ladder, one altitude per round, close guard, L3 derivation inputs, no Illustrative default. New flow-lenses tests. Update tests/requirements-grill-composition.contract.test.mjs and any other test that pins the old text | Tests read skill files through the repo root | Q23; S2 Current-State Findings |
| ARC-016 Test runner and CI | skills repo package.json, .github/workflows/* | package.json with "test": "node --test tests/*.test.mjs". A GitHub Actions workflow runs it on push to main and on pull requests. The suite starts green: an assertion that pins stale text is updated to the current accepted skill text; a failure that shows a real skill regression blocks and goes to the user. Baseline at grill time: 337 tests, 14 failing (agent-workflow-contract 1, brainstorm 1, parallel-research 1, wayfinder-lifecycle 11) | Green suite before sync | Q24; S2 Current-State Findings |
| ARC-017 Baseline distribution | apps/cli/scripts/sync-skills-repo.mjs, apps/cli/src/data/catalog/{skills,packs}.ts, root BASELINE_CHANGELOG.md | Skills commit on skills main → pin defaultRepositoryRef and defaultRepositoryCommit → bun run sync:skills with matching receipt SHA → apps/cli/skills and .agents/skills → baseline Unreleased notes. The registry publishes one item per catalogued skill (S6), so flow-lenses needs a skills.ts entry with sourceDirectory: "skills/agnostic/requirements/flow-lenses" and membership in a default pack | Release classification selects baseline | Root CLAUDE.md shared-skills rule; S1 Phase State scope; S6 |
Critical Flows and Boundaries
FLOW-001 Brainstorm turn
Question: what does one brainstorm turn do, and where can it go next?
- FLOW-001-STEP-001: bound the system and name its real operators; apply agent legibility only when agents operate it (Q4).
- FLOW-001-STEP-002: the proposal carries the current shape, 2–3 alternatives with tradeoffs, evidence or unknowns, and forks as defaults; optional
flow-lensesfindings appear as tradeoffs (Q2, Q8). - FLOW-001-STEP-003: one
show-meview every turn: rendered page when the host supports it, otherwise text views (Q2). - FLOW-001-STEP-004: write ARC-002 at turn end when the user accepted or rejected a shape or stated a preference (Q5).
- FLOW-001-STEP-005: the turn ends on the proposal and an invitation to react; exits are another turn or
$requirements-grillwith the Brief (Q2, Q3).
Conclusion: no path in a brainstorm turn asks a question round, edits code, or writes a plan; the Brief carries everything the grill needs (Q1, Q3).
FLOW-002 Grill route
Question: in which order do grill gates run, and what blocks progress?
- FLOW-002-STEP-001: the router reads the precision inputs; a level they already settle for a branch is skipped. Before the first round the grill imports the Brief into answered entries, rejected alternatives, and frontier questions (Q6, Q15).
- FLOW-002-STEP-002: ARC-005 gathers facts by subagents and never asks the user (Q16).
- FLOW-002-STEP-003: the router selects one altitude, the shallowest with ready questions across all branches (Q11).
- FLOW-002-STEP-004: ARC-006 asks the selected altitude's ready questions in one round (Q11, Q16).
- FLOW-002-STEP-005: ARC-007 runs its required calls on every response set, including partial sets, and persists call evidence; a skipped call blocks the next round (Q8, Q16, Q18).
- FLOW-002-STEP-006: the close guard passes only when every branch is settled at its Target Altitude or parked at a named altitude with the user's reason (Q14).
- FLOW-002-STEP-007: ARC-008 closes and hands off to
create-architecture(Q16).
Conclusion: the router, not $grilling, picks the questions; required calls become durable status evidence, so a dropped call stops the grill instead of passing silently (Q16, Q18).
FLOW-003 Branch altitude descent
Question: how does one branch move from L1 to its Target Altitude?
- FLOW-003-STEP-001: a branch starts at the first level its precision inputs do not settle (Q15).
- FLOW-003-STEP-002: Settled Altitude rises to N when every level-N question is answered or parked (Q12, Glossary Q25). An accepted answer with a code consequence raises the Target Altitude to L3 (Q10).
- FLOW-003-STEP-003: the checkpoint derives level N+1 questions; they join the next round of that altitude; branches descend independently (Q11, Q12).
- FLOW-003-STEP-004: a branch settled at target, or parked at a named altitude, satisfies the close guard (Q14).
Conclusion: a code-bearing branch cannot close above L3 Modules unless the user parks it, which removes the "Illustrative" escape that kept module decisions out of every observed grill (Q10, Q13; S2 Current-State Findings).
FLOW-004 Requirements Phase and compile gaps
- FLOW-004-STEP-001:
requirements-phasestep 3 runs the grill until every material branch is settled at its Target Altitude or explicitly parked (ARC-011, Q19). - FLOW-004-STEP-002:
create-architecturestep 3 callsflow-lenses; L3 decisions feed module and interface sections (ARC-012, Q20). - FLOW-004-STEP-003: a compile gap returns to the grill with its altitude, and the router places it in a round of that altitude (Q20, Q11).
FLOW-005 Skill source to Baseline
FLOW-005-STEP-001 skills main: brainstorm, flow-lenses, requirements-grill graph, consumers, tests,
package.json, workflow → node --test green (ARC-015, ARC-016) → commit, push
FLOW-005-STEP-002 harness-intelligence: pin ref + commit (ARC-017) → bun run sync:skills → receipt SHA = skills main HEAD
FLOW-005-STEP-003 flow-lenses catalog entry, BASELINE_CHANGELOG Unreleased, wiki pages (ARC-014, ARC-017)
Conclusion: skill text never starts in apps/cli/skills; the sync receipt proves which skills commit the Baseline ships, and the new CI keeps the suite green on skills main (Q24; root CLAUDE.md shared-skills rule).
Module layout
Question: which files exist after the change in the skills repo?
skills/agnostic/requirements/
├── brainstorm/SKILL.md # ARC-001 rewritten proposal loop
├── flow-lenses/SKILL.md # ARC-003 new, internal
├── grilling/ # unchanged upstream primitive
└── requirements-grill/
├── SKILL.md # ARC-004 bootstrap, no gate bodies
├── AUTHORING-HANDOFF.md # ARC-004 authoring record
├── phases/
│ ├── router.md # ARC-004, ARC-010
│ ├── ground.md # ARC-005
│ ├── round.md # ARC-006
│ ├── checkpoint.md # ARC-007
│ └── close.md # ARC-008
└── references/
├── artifact-output.md # ARC-009 altitude fields, no Illustrative
└── wiki-output.md # ARC-009 unchanged role
# grilling-flow.md removed (folded into gates)
skills/phases/requirements-phase/SKILL.md # ARC-011
skills/agnostic/planning/create-architecture/** # ARC-012
skills/agnostic/cli/ask-hi/** # ARC-013
tests/*.contract.test.mjs # ARC-015
package.json, .github/workflows/* # ARC-016Conclusion: the grill graph has exactly four gates plus the router, matching Q16; the tree adds no file the grill did not decide, except the CI workflow file whose name is not recorded.
Accepted Detail Coverage
| Question + exact entry/evidence anchor | Exact accepted choice | Provided rationale / alternatives | Architecture selector | System constraint served |
|---|---|---|---|---|
| Q1 | Proposal loop; no interview or question rounds; no longer an internal gap scan | User direction: question rounds "RESERVED" for the grill | ARC-001, FLOW-001 | One question owner |
| Q2 | Turn content: shape, 2–3 alternatives with tradeoffs, evidence/unknown, forks with default, no AskUserQuestion, one show-me view, proposal ending | All four observed calls ran interview rounds (S2) | ARC-001, FLOW-001-STEP-002, FLOW-001-STEP-003, FLOW-001-STEP-005 | Proposals, not questions |
| Q3 | Two exits; no code, plan, or implementation; Brief is only durable write | User corrected implementation offers twice (S2) | ARC-001, ARC-002, FLOW-001-STEP-005 | Bounded side effects |
| Q4 | Drop operating-agent seat; name real operators; agent legibility as one lens | Agent fought the frame (S2) | ARC-001, FLOW-001-STEP-001 | Correct operator model |
| Q5 | brainstorm writes Brief at <wiki-root>/content/docs/project/grilling/<topic>-brainstorm-brief.md, routed frontmatter, grilling/meta.json; update rule; content list | Fork 3, option 1 | ARC-002, FLOW-001-STEP-004 | Durable brainstorm state |
| Q6 | Import before first round; source Brainstorm Brief; rejected → rejected alternatives; forks → frontier at altitude; no re-ask | not recorded | ARC-002, FLOW-002-STEP-001 | No repeated questions |
| Q7 | Lenses move to internal skills/agnostic/requirements/flow-lenses/; description names callers; output candidate gaps with evidence/unknown, guarantee, altitude | Brainstorm had two jobs (S2) | ARC-003, ARC-012 | One lens owner |
| Q8 | Callers: grill checkpoint every response set incl. partial; create-architecture step 3; optional brainstorm as tradeoffs | not recorded | ARC-003, ARC-007, FLOW-001-STEP-002, FLOW-002-STEP-005 | Gap scan at every set |
| Q9 | Leading word altitude (fork 1, option 1); L1/L2/L3 contents; planning out of grill | "Fog" stays Finder's | ARC-010 | Shared depth vocabulary |
| Q10 | Target and settled altitude per branch; code-bearing → L3, product-only → L1; raise on first code consequence | Zero of nine grills asked L3 (S2) | ARC-010, ARC-007, FLOW-003-STEP-002 | Code branches reach modules |
| Q11 | One altitude per round (fork 2, option 1); shallowest ready altitude; independent descent | not recorded | ARC-004, ARC-006, FLOW-002-STEP-003, FLOW-003-STEP-003 | Coherent rounds |
| Q12 | N+1 derivation at checkpoint; L3 inputs codebase-design, stack skills, opensrc, show-me sketch or module tree | not recorded | ARC-007, FLOW-003-STEP-003 | Planned descent, not compile gaps |
| Q13 | Remove Illustrative from template and grill text; L3 decides names, interfaces, primitives, seams, layout | Commit history S5 | ARC-009, ARC-010 | No unasked module defaults |
| Q14 | Close only at target or parked at named altitude with reason; confirmation stays; auto-pin stays with altitude | not recorded | ARC-008, FLOW-002-STEP-006, FLOW-003-STEP-004 | Closure proves depth |
| Q15 | Precision inputs: Fog graph, Brief, status, code evidence; settled level skipped | not recorded | ARC-004, FLOW-002-STEP-001, FLOW-003-STEP-001 | No re-asking known levels |
| Q16 | Graph shape; gates ground, round, checkpoint, close with listed duties; $grilling unchanged; references kept; grilling-flow.md folded; $wayfinder stays | write-graph-based-skills Convert | ARC-004..ARC-009, FLOW-002, Module layout | Durable, resumable grill |
| Q17 | Dashboard columns; Current Round Altitude; round table column; log entry Altitude | not recorded | ARC-009 | Altitude is durable state |
| Q18 | Each gate names its calls; checkpoint records call evidence per round; skip blocks next round | Directa skipped calls (S2) | ARC-007, FLOW-002-STEP-005 | Calls are observable |
| Q19 | requirements-phase step 3 completion at target or parked | not recorded | ARC-011, FLOW-004-STEP-001 | Phase uses same guard |
| Q20 | create-architecture step 3 → flow-lenses; L3 feeds module/interface sections; gap returns with altitude | not recorded | ARC-012, FLOW-004-STEP-002, FLOW-004-STEP-003 | Compile consumes depth |
| Q21 | ask-hi references naming the family; any skill text calling $brainstorm as gap scan | not recorded | ARC-012, ARC-013 | No stale routing text |
| Q22 | Harness entrypoint and skill-reference wiki pages via docs-ingest-phase | not recorded | ARC-014, FLOW-005-STEP-003 | Wiki matches skills |
| Q23 | Rewrite brainstorm test; new grill graph tests; new flow-lenses tests; update composition and other pinning tests | not recorded | ARC-015 | Behavior guarded |
| Q24 | package.json "test": "node --test tests/*.test.mjs"; workflow on push to main and PRs; start green; stale assertions updated; real regression blocks to user | No runner existed (S2) | ARC-016, FLOW-005-STEP-001 | Suite runs on every change |
| Glossary Q25 | Canonical terms, relationships, axioms | "Fog" ambiguity | Canonical Terms | One vocabulary |
Spec Traceability
- State: complete. Every current OUT and AC code in the sibling
SPEC.mdmaps below.
| Spec code / section selector | Architecture selectors | Accepted grill Q / exact log-entry evidence anchors | Coverage explanation |
|---|---|---|---|
OUT-001 (SPEC #out-001) | ARC-001, FLOW-001-STEP-001, FLOW-001-STEP-002, FLOW-001-STEP-003 | Q1, Q2, Q4, Q8 | Proposal-loop turn content and operator framing |
OUT-002 (SPEC #out-002) | ARC-001, ARC-002, FLOW-001-STEP-004, FLOW-001-STEP-005 | Q3, Q5 | Two exits; Brief as the only durable write |
OUT-003 (SPEC #out-003) | ARC-002, ARC-004, FLOW-002-STEP-001, FLOW-003-STEP-001 | Q6, Q15 | Brief import and precision inputs |
OUT-004 (SPEC #out-004) | ARC-003 | Q7, Q8 | flow-lenses ownership, output, callers |
OUT-005 (SPEC #out-005) | ARC-004, ARC-005, ARC-006, ARC-007, ARC-008, ARC-009, FLOW-002 | Q16 | Graph structure and gate duties |
OUT-006 (SPEC #out-006) | ARC-010, ARC-007, FLOW-002-STEP-003, FLOW-003 | Q9, Q10, Q11, Q12, Q13 | Altitude ladder, selection, derivation |
OUT-007 (SPEC #out-007) | ARC-008, FLOW-002-STEP-006, FLOW-003-STEP-004 | Q14 | Close guard at Target Altitude |
OUT-008 (SPEC #out-008) | ARC-009, ARC-007, FLOW-002-STEP-005 | Q17, Q18 | Altitude fields and call evidence |
OUT-009 (SPEC #out-009) | ARC-011, ARC-012, ARC-013, FLOW-004 | Q19, Q20, Q21 | Consumer changes |
OUT-010 (SPEC #out-010) | ARC-015, ARC-016, FLOW-005-STEP-001 | Q23, Q24 | Tests, runner, CI |
OUT-011 (SPEC #out-011) | ARC-014, ARC-017, FLOW-005 | Q22 | Sync, catalog, changelog, wiki; catalog need from S6 |
AC-001 (SPEC #ac-001) | ARC-001, FLOW-001-STEP-002, FLOW-001-STEP-003, FLOW-001-STEP-005 | Q1, Q2 | Turn content, no question rounds |
AC-002 (SPEC #ac-002) | ARC-001, FLOW-001-STEP-001, FLOW-001-STEP-002 | Q4, Q8 | Operators, agent-legibility lens, lens findings as tradeoffs |
AC-003 (SPEC #ac-003) | ARC-001, FLOW-001-STEP-005 | Q3 | Exits and forbidden side effects |
AC-004 (SPEC #ac-004) | ARC-002, FLOW-001-STEP-004 | Q5 | Brief path, metadata, update rule, content |
AC-005 (SPEC #ac-005) | ARC-002, FLOW-002-STEP-001 | Q6 | Brief import mapping |
AC-006 (SPEC #ac-006) | ARC-004, FLOW-002-STEP-001, FLOW-003-STEP-001 | Q15 | Precision inputs |
AC-007 (SPEC #ac-007) | ARC-003, ARC-001 | Q7 | flow-lenses file, lenses moved |
AC-008 (SPEC #ac-008) | ARC-003, ARC-007, ARC-012, FLOW-002-STEP-005, FLOW-004-STEP-002 | Q8, Q20 | Caller wiring |
AC-009 (SPEC #ac-009) | ARC-004, ARC-009 | Q16 | Graph file set |
AC-010 (SPEC #ac-010) | ARC-004, FLOW-002 | Q16 | Graph audit |
AC-011 (SPEC #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 | Q16 | Gate duties; $grilling unchanged; $wayfinder kept |
AC-012 (SPEC #ac-012) | ARC-010, FLOW-003-STEP-002 | Q9, Q10 | Ladder content and targets |
AC-013 (SPEC #ac-013) | ARC-004, FLOW-002-STEP-003 | Q11 | One altitude per round |
AC-014 (SPEC #ac-014) | ARC-007, FLOW-003-STEP-003 | Q12 | Next-level derivation |
AC-015 (SPEC #ac-015) | ARC-009, ARC-010 | Q13 | No Illustrative default |
AC-016 (SPEC #ac-016) | ARC-008, FLOW-002-STEP-006, FLOW-003-STEP-004 | Q14 | Close guard, confirmation, auto-pin altitude |
AC-017 (SPEC #ac-017) | ARC-009 | Q17 | Artifact altitude fields |
AC-018 (SPEC #ac-018) | ARC-007, FLOW-002-STEP-005 | Q18 | Call evidence blocks next round |
AC-019 (SPEC #ac-019) | ARC-011, FLOW-004-STEP-001 | Q19 | requirements-phase step 3 |
AC-020 (SPEC #ac-020) | ARC-012, FLOW-004-STEP-002, FLOW-004-STEP-003 | Q20, Q21 | create-architecture step 3, contract, template |
AC-021 (SPEC #ac-021) | ARC-012, ARC-013 | Q21 | No gap-scan $brainstorm calls; ask-hi text |
AC-022 (SPEC #ac-022) | ARC-015 | Q23 | Contract test set |
AC-023 (SPEC #ac-023) | ARC-016, FLOW-005-STEP-001 | Q24 | Runner, workflow, green suite |
AC-024 (SPEC #ac-024) | ARC-017, FLOW-005-STEP-002, FLOW-005-STEP-003 | Q22 | Pin, receipt, catalog, changelog; distribution from root shared-skills rule and S6 |
AC-025 (SPEC #ac-025) | ARC-014, FLOW-005-STEP-003 | Q22 | Wiki pages through docs-ingest-phase |
Flow Failure Coverage
Lens labels come from S7.
| Lens | Evidence / unknown / justified not applicable | Guarantee at stake | Material unresolved gap |
|---|---|---|---|
| Entry points and path convergence | Every grill entry, resume, and compile-gap return goes through the router (ARC-004, FLOW-004-STEP-003). brainstorm has one entry and two exits (Q3). flow-lenses gives one output shape to three callers (Q7) | One rule set per entry | None |
| Critical execution paths | FLOW-002 order: router → ground → round → checkpoint → router → close (Q16); Brief import before the first round (Q6) | Evidence before questions; checkpoint before next round | None |
| State ownership and authority | Brief: written only by brainstorm, read by grill (ARC-002). Status and log: grill via artifact-output (ARC-009). flow-lenses writes nothing (ARC-003). Router alone selects questions (Q16) | No double authorship | None |
| Transaction and side-effect boundaries | Checkpoint persists answers, call evidence, and frontier before the next round (Q16, Q18); wiki synthesis only after explicit closure; Brief written at turn end (Q5) | No unpersisted round | None |
| Concurrency and stale state | Unknown: a Brief edited after the grill imported it. Import is defined before the first round (Q6); the Brief stays a router precision input (Q15); brainstorm exits to the grill (Q3) | Grill reflects user preferences | None (non-material) |
| Idempotency and retries | Stable Q<N> ids and status-driven cold resume (S4 artifact-output.md); no re-ask of recorded preferences (Q6). Unknown: deduplication rule for Brief import on resume is not recorded | Resume does not duplicate entries | None (non-material) |
| Partial failure and recovery | Partial response sets still run the checkpoint (Q8); skipped call blocks (Q18); compile gap returns with altitude (Q20); real test regression blocks to user (Q24) | Visible failure, no silent skip | None |
| Execution lifetime and durability | Brief, status, and log are routed wiki files; router recomputes from them on every entry (Q5, Q15, Q16) | Cold resume | None |
| Lifecycle and dependency transitions | Lens list moves out of brainstorm; every caller and contract that read it moves (ARC-012, ARC-013, Q21); grilling-flow.md removal updates its readers (ARC-015). flow-lenses ships only when catalogued (S6, ARC-017). Unknown: migration of open grills whose status lacks altitude fields is not recorded | No dangling reference; new skill installed with its callers | None (non-material) |
| Completion and observability | Dashboard target/settled altitude (Q17); per-round call evidence (Q18); close guard (Q14); green CI (Q24); sync receipt SHA (FLOW-005-STEP-002) | Distinguish settled, parked, closed, shipped | None |
Parked Work and Non-material Unknowns
| Question / source | Disposition and scope consequence | Owner / resume trigger | Why current guarantees remain closed |
|---|---|---|---|
| Gate that performs the Brief import (Q6, Q16) | Not recorded | Implementer; write-graph-based-skills authoring | Q6 fixes timing (before first round) and result; any gate placement meets it |
| File that holds the single definition of the altitude ladder (ARC-010) | Not recorded | Implementer; write-graph-based-skills authoring | Q9 fixes the content; placement does not change behavior |
flow-lenses pack membership (ARC-017, S6) | Not recorded; a catalog entry is required to ship | Implementer; create-plan | default packs always install (S6 shape.ts); callers sit in default packs requirements and planning |
| Brief edited after import | Unknown | Implementer | Import timing and router input are accepted (Q6, Q15) |
| Open grills in the old status format | Not recorded | Implementer; first resume of an old grill | Closed grills feed create-architecture, which reads status/log, not altitude columns |
| CI workflow file name and Node version | Not recorded | Implementer; create-plan | Q24 fixes triggers and command |
Validation
- Decision/source/glossary reconciliation: Q1–Q24 and Glossary Q25 match S1–S3 at commit
657296989d59; status closure, glossary snapshot, and published glossary agree. - Exact-detail cross-level coverage: every accepted Q has a row in Accepted Detail Coverage.
- Relative links, selector targets, visual source/order checks: grill links use
#q<N>and#glossary-q25heading anchors; every ARC/FLOW/STEP selector has an explicit<a id>. - Spec-code → architecture → grill coverage: complete for OUT-001..OUT-011 and AC-001..AC-025.
- Mermaid parsing/rendering: all four diagrams rendered to SVG with
@mermaid-js/mermaid-cli@11(mmdc), 2026-10-16. - Existing spec agreement: sibling
SPEC.mdcompiled from this architecture; no other spec covers these skills. - Flow-lens source: the Skill tool resolved a user-global
brainstormcopy without a Flow failure lens section; the lens labels come from the project-installed copy (S7). - Remaining limits: the non-material unknowns above.