Frontend Composition Layer Grill Status
Frontend Composition Layer Grill Status
Log: frontend-composition-layer-grill-log. Brief: frontend-composition-layer-brainstorm-brief.
Branch Dashboard
| Branch | Completion | Target altitude | Settled altitude | Locked direction | Open items | Parked |
|---|---|---|---|---|---|---|
| Layer model | 100% | L3 | L3 (anchors: log Q27–Q30) | app or routes → composition → features → modules → integrations → ui; monorepo uses only packages/ui; server/ outside; layer root src/ else package root; only packages with a route layer are checked | — | — |
| Enforcement | 100% | L3 | L3 (anchors: log Q31–Q34) | Lint asset on the react Pack; plain errors; local override allowed; skill reference is authority | — | — |
| Glossary | 100% | L1 | L1 (anchors: log Glossary Q15) | Composition, Surface, Feature, Module, Integration | — | — |
| Downstream consumers | 100% | L3 | L3 (anchors: log Q35) | One delivery: skill, contract test, create-plan, implement-spec, ask-hi, hi-cli, apps/cli lint asset, wiki, BASELINE_CHANGELOG | — | — |
Precision Inputs
- Brief import:
apps/wiki/content/docs/project/grilling/frontend-composition-layer-brainstorm-brief.mdsha2563b6981ffb2bf4745f51c43b9cb039efde3eda1c4bc84800bc1356847843586dbR0 - Fog: not supplied
- Altitude upgrade: not needed
- Auto-pin: not authorized
- Conservative closure: not requested
- Compile gaps: none
Technical Grounding
| Branch | Evidence anchors | Applicable dimensions | Open technical decisions | Grounding |
|---|---|---|---|---|
| Layer model | wearedevpunks/skills@21a3cac skills/agnostic/frontend/frontend-domain-structure/{SKILL.md,references/structure.md,references/react/structure.md}; pegasus@bf896c7 ARCHITECTURE.md, apps/web/src/architecture.test.ts; ci-app@973e1843 apps/dashboard/src/routes (TanStack route dir), apps/dashboard/oxlint.routes.config.ts; effect-backend-structure/references/layout.md "Nearest common parent business Layer" | layer topology, dependency direction, public entrypoints, framework route directories, aliases, React package roots | none | grounded — facts R3: all four apps/web keep code in src/ with @/* → ./src/*; shadcn components.json components alias is @/ui in pegasus, @/components in apito, emera, assolombarda; react declared in apps/web, packages/ui (all four), apps/wiki (apito, emera, assolombarda), apps/extensions (apito), apps/video (assolombarda) |
| Enforcement | apps/cli/src/data/catalog/packs.ts:201-235 (frontend Pack, category surface, lintAssets: [], no detection data), :241 (nextjs → next-core), :328 (react → react-core); apps/cli/src/registry/builders/lint.ts:100-108 (packApplies true for every scope without detection data), :369-372,455-466 (oxlint.local.ts rules override last); apps/cli/src/data/catalog/lint.ts:99-132 (typescript-anti-slop JS plugin asset); apps/cli/src/data/scripts/managed-lint.mjs:688-712 (one oxlint run per Software Scope, cwd = scope); @oxlint/plugins@1.86.0 index.d.ts (context.filename, cwd, settings, options, ImportDeclaration); grilling/issue-224-managed-lint-grill-log.md:228-239 (Q8 framework asset needs owner-local evidence) | asset packaging, Pack attachment, scope, rule API, configuration | none | grounded — HI monorepo signals apps/cli/src/integrations/repository-detector.ts:547-590 (pnpm-workspace.yaml, turbo.json, package.json workspaces, several manifests); no existing import-direction rule; no managed baseline mechanism; facts R3: @oxlint/plugins@1.86.0 index.d.ts:3801-3803 context.filename is absolute; visitor keys for ImportDeclaration, ImportExpression, ExportNamedDeclaration, ExportAllDeclaration, CallExpression (require); no resolver helper, the rule resolves paths itself; anti-slop has packaging tests only (apps/cli/src/registry/publisher/sources/lint.test.ts:41-62), no rule-behaviour tests; react Pack detection reads all dependency kinds and skips wiki manifests (apps/cli/src/integrations/repository-detector.ts:141-158,221-222,440-446) |
| Downstream consumers | wearedevpunks/skills@21a3cac tests/frontend-domain-structure.contract.test.mjs; skills/agnostic/planning/create-plan/references/architecture-convergence.md:37; skills/agnostic/planning/implement-spec/references/architecture-conformance.md:23-30; skills/agnostic/cli/ask-hi/references/{discovery-and-docs.md:215,baseline.md:78}; skills/agnostic/cli/hi-cli/references/managed-lint.md | contract wording | none | grounded |
Current Round
- Round: R4
- Altitude: L3
- Current frontier: empty
- Shared-understanding confirmation: confirmed — user, 2026-10-22: "agree lets go"
- Closure: closed R4; supersession R5 (Q35-R5, path correction from create-plan, user-confirmed)
| Question id | Branch | Altitude | Prerequisites | Question | State |
|---|---|---|---|---|---|
| Q27 | Layer model | L3 | Q8, Q21 | Which skill files own the layer model and the rule list? | answered |
| Q28 | Layer model | L3 | Q11 | What is a domain, and what is its public entrypoint file? | answered |
| Q29 | Layer model | L3 | Q3, Q4 | Is the inside of composition/ fixed? | answered |
| Q30 | Layer model | L3 | Q11 | Do test and story files follow the layer rules? | answered |
| Q31 | Enforcement | L3 | Q11, Q19, Q22, Q24 | What are the asset id, plugin name, file paths and rule names? | answered |
| Q32 | Enforcement | L3 | Q11, Q26; fact: no resolver in plugin API reported | Which import specifiers does the rule resolve, and how? | answered |
| Q33 | Enforcement | L3 | Q24 | How does the rule know it runs in a monorepo? | answered |
| Q34 | Enforcement | L3 | Q31; fact: anti-slop has packaging tests only reported | How is the rule tested? | answered |
| Q35-R5 | Downstream consumers | L3 | Q35 | Which synced skill copy does the parity test read? | answered |
| Q35 | Downstream consumers | L3 | Q21, Q27, Q31 | What proves the skill rule list and the lint rules match exactly? | answered |
Required Calls
R0
- domain-modeling: R0 run — working glossary seeded; terms raised as Glossary Q15
R1
- grilling: R1 run — Glossary Q15, Q16, Q17
- wait-what: R1 run
- show-me: R1 run — target file tree and adoption flow
- domain-modeling: R1 run — five terms and one axiom accepted (Glossary Q15)
- flow-lenses: R1 run — lens 1 (skill text vs lint rule divergence) -> Q21; lens 7 (partial scoped migration leaves non-layer folders) -> Q22; lens 9 (framework route directory variance under fixed names) -> Q23; lenses 4, 5, 6, 8 not applicable (static source layout, no runtime state); lenses 2, 3, 10 covered by Q2, Q8, Q9
- level derivation: R1 run — L2 frontier already present (Q11–Q14, Q18–Q20); added Q21–Q23 from flow lenses
R2
- grilling: R2 run — Q11, Q12, Q13, Q14, Q18, Q19, Q20, Q21, Q22, Q23
- wait-what: R2 run
- show-me: R2 run — import-direction diagram with server and route adapters
- domain-modeling: R2 run — no term change;
ui/flagged as ambiguous (Q24) - flow-lenses: R2 run — lens 1 (react Pack enters non-app React packages) -> Q25; lens 1 (apps without
src/) -> Q26; lens 3 (ui/vs shared UI package ownership) -> Q24; lenses 4, 5, 6, 8 not applicable (static layout); lenses 2, 7, 9, 10 covered by Q11, Q16, Q17, Q22 - level derivation: R2 not due — new L2 gaps Q24–Q26 hold Layer model at L2; Enforcement and Downstream L3 derive after them; L3 fact request dispatched (oxlint
context.filename, import node coverage, plugin test layout, shadcn aliases, react package roots)
R3
- grilling: R3 run — Q24, Q25, Q26
- wait-what: R3 run
- show-me: R3 run — package tree with rule applicability
- domain-modeling: R3 run —
uiambiguity resolved: UI is the shared UI package in a monorepo,src/ui/in a single-package repository - flow-lenses: R3 run — lens 1 (how the rule learns monorepo status at lint time) -> Q33; lens 9 (single repo converted to monorepo turns
src/ui/into errors) resolved by Q16 plain errors; lenses 4, 5, 6, 8 not applicable (static layout); others covered by Q22–Q26 - level derivation: R3 run — Layer model L3: Q27–Q30; Enforcement L3: Q31–Q34; Downstream L3: Q35; module tree view in R4 (codebase-design vocabulary: module, interface, seam; primitive
@oxlint/plugins@1.86.0index.d.ts)
R4
- grilling: R4 run — Q27–Q35
- wait-what: R4 run
- show-me: R4 run — module tree of skill files and lint plugin
- domain-modeling: R4 run — no change
- flow-lenses: R4 run — lens 1 (Q35 reads the synced skill copy, present at
.agents/skills/frontend-domain-structure/) resolved by evidence; lens 9 (nested scopes rename local plugins<name>-<scope>,apps/cli/src/registry/builders/lint.ts:215-218, so Q20 overrides use the renamed prefix) resolved by evidence, documentation only; lens 10 covered by Q34, Q35; lenses 4, 5, 6, 8 not applicable (static layout); no new gaps - level derivation: R4 not due — every branch settled at Target Altitude L3
Close
- domain-modeling: run — final pass; five terms, two relationships, three axioms consistent with log
- show-me: run — branch table and glossary summary
- wiki synthesis: run —
domains/frontend-composition-layer-glossary.mdx;domains/index.mdx,domains/meta.json;grilling/index.mdxentry;log.md
Glossary
Terms
- Composition: the top frontend layer; it combines features and modules into providers, surface shells, page templates and registries. Avoid: abstractions, root, templates, shell layer.
- Surface: one part of an app that a distinct user group sees through its own shell. Avoid: area, portal, section, sub-app.
- Feature: a user-facing capability with its own workflow, policy or state. Avoid: page, screen, widget.
- Module: an app-local capability that several features use; it owns no user workflow. Avoid: shared, lib, utils, common.
- Integration: an adapter to an outside system, client setup, or a fake or mock runtime. Avoid: infra, adapters, mock, prototype.
Relationships
- A Surface is a subfolder of Composition.
- Composition imports Feature and Module.
Axioms
-
In a monorepo, primitives and shadcn components live only in the shared UI package.
-
Each layer imports only lower layers.
-
A Feature never imports another Feature.
Flagged Ambiguities
-
"ui" may mean an app-local
src/ui/folder or the shared UI package (packages/ui). Resolution: Q24 — the shared package in a monorepo,src/ui/in a single-package repository. -
"abstractions" meant a bottom contract layer in ci-app and a top layer in the user's first message. Resolution: Q1 names the top layer Composition; "abstractions" is not a frontend layer term.
-
"module" means a layer here, a workbook IT module in emera, and any top-level
src/directory in ci-app backend. Resolution: Glossary Q15 pins Module as the layer.
Gate Outcomes
ground
- Phase: ground
- Status: complete
- Exit: facts_requested
- Scope: R0; all branches
- Artifacts: brief, status and log created
- Validation: Brief import record matches sha256; every branch has Target and Settled Altitude; Technical Grounding rows anchored
- Grill state: no branch settled; frontier empty
- Next suggested route: round R1 at L1
- Blockers: none; lint asset facts reported R1
- Resume identity: none
checkpoint
- Phase: checkpoint
- Status: complete
- Exit: recorded
- Scope: R4; all branches
- Artifacts: log Round R4 (Q27–Q35); status Branch Dashboard, Required Calls R4
- Validation: every R4 answer recorded; no flow-lens gap
- Grill state: all branches settled at Target Altitude
- Next suggested route: close
- Blockers: none
- Resume identity: none
round
- Phase: round
- Status: complete
- Exit: answers_required
- Scope: R4; Layer model, Enforcement, Downstream consumers
- Artifacts: status Current Round and Required Calls R4
- Validation: frontier is one Altitude (L3); every question has recommendation and alternative
- Grill state: frontier Q27–Q35
- Next suggested route: checkpoint on user answers
- Blockers: none
- Resume identity: none
close
- Phase: close
- Status: complete
- Exit: closed
- Scope: R4; all branches
- Artifacts: log Closure; status confirmation and Closure; glossary page
- Validation: Close Guard passes; confirmation and closure quoted from the user
- Grill state: closed R4
- Next suggested route:
$create-architecture - Blockers: none
- Resume identity: none