Frontend Composition Layer
Architecture: Frontend Composition Layer
Context and Scope
- Capability identity:
apps/wiki/content/docs/project/specs/cli/frontend-composition-layer. The capability gives the sharedfrontend-domain-structureskill one fixed layer model with a top Composition layer, and enforces that model with a managed oxlint asset that HI installs through thereactPack. - Actors and outcome: an operating agent applies the skill while it plans or implements frontend work; the managed lint run reports every layer violation; a project maintainer reads the errors and may turn a rule off. The outcome: shells, providers and page templates have one legal owner, and the structure that the skill describes is the structure that lint checks (Q1, Q3, Q9, Q21).
- In scope: the skill in
wearedevpunks/skills(skills/agnostic/frontend/frontend-domain-structure/**and its contract test); its consumerscreate-plan,implement-spec,ask-hi,hi-cli; thereact-frontend-layerslint asset, itsfrontend-layersplugin and thereactPack entry inapps/cli; the parity test; wiki pages andBASELINE_CHANGELOG.md(Q18). - Non-goals: migration of pegasus, apito, emera or assolombarda in this delivery; a violation baseline or ratchet; a mechanism that refuses local rule overrides; per-project layer names or route folder options (Q10, Q16, Q20, Q23).
- Spec: sibling
SPEC.md(not yet compiled).
Canonical Terms
Source: glossary, Glossary Q15, Q24.
- 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.
- UI: primitives and shadcn components; the shared UI package in a
monorepo,
src/ui/in a single-package repository. - Relationships: a Surface is a subfolder of Composition; Composition imports Feature and Module.
- Axioms: each layer imports only lower layers; a Feature never imports another Feature; in a monorepo, primitives and shadcn components live only in the shared UI package.
Sources
| Source | Role | Exact location and anchor | Immutable revision or content hash |
|---|---|---|---|
| S1 | Grill status and closure | apps/wiki/content/docs/project/grilling/frontend-composition-layer-grill-status.md #branch-dashboard, #technical-grounding, #current-round, #glossary | commit fad22f140861; sha256 693c7380ea424dda… |
| S2 | Grill decision log | apps/wiki/content/docs/project/grilling/frontend-composition-layer-grill-log.md Q1–Q35, #glossary-q15, #q35-r5, #closure | commit fad22f140861; sha256 071a0e08e77ef4ad… |
| S3 | Published glossary | apps/wiki/content/docs/project/domains/frontend-composition-layer-glossary.mdx | commit 99fa23fe313e; sha256 2f242755ee1c9c6c… |
| S4 | Brainstorm Brief | apps/wiki/content/docs/project/grilling/frontend-composition-layer-brainstorm-brief.md | commit 99fa23fe313e; sha256 3b6981ffb2bf4745… |
| S5 | Current skill (observed) | wearedevpunks/skills skills/agnostic/frontend/frontend-domain-structure/{SKILL.md,references/structure.md,references/react/structure.md,agents/openai.yaml}; tests/frontend-domain-structure.contract.test.mjs | commit 21a3cac7cff1 |
| S6 | Skill consumers (observed) | wearedevpunks/skills 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 | commit 21a3cac7cff1 |
| S7 | Managed lint (observed) | apps/cli/src/data/catalog/packs.ts:201-235,328,337; apps/cli/src/data/catalog/lint.ts:99-132; apps/cli/src/registry/builders/lint.ts:100-108,215-218,369-372,455-466; apps/cli/src/registry/publisher/sources/lint.ts:92-105; apps/cli/src/registry/publisher/sources/lint.test.ts:41-62; apps/cli/src/data/scripts/managed-lint.mjs:688-712 | commit 99fa23fe313e |
| S8 | Repository detector (observed) | apps/cli/src/integrations/repository-detector.ts:141-158,221-222,440-446,547-590 | commit 99fa23fe313e |
| S9 | Oxlint plugin API (observed) | @oxlint/plugins@1.86.0 index.d.ts:3801-3823 (filename absolute, cwd), :1763-1821 (ImportExpression, ImportDeclaration, ExportNamedDeclaration, ExportAllDeclaration sources), :2520-2570 (visitor keys) | package version 1.86.0 |
| S10 | Evidence repositories (observed) | pegasus@bf896c7 ARCHITECTURE.md, apps/web/src/architecture.test.ts; apito@3b59cee, emera@b1e86e1, assolombarda@0da85a7 apps/web/src; ci-app@973e1843 apps/backend/AGENTS.md:9, apps/dashboard/src/routes | listed commits |
| S11 | Issue-224 managed lint decision | apps/wiki/content/docs/project/grilling/issue-224-managed-lint-grill-log.md:228-239 (Q8 owner-local evidence) | commit 99fa23fe313e |
Source Disposition
| Question / entry | Disposition | Accepted detail, replacement, or unresolved point | Evidence | Parked owner / resume trigger |
|---|---|---|---|---|
| Q1–Q8, Q10 | accepted | Brief decisions, Source: Brainstorm Brief | S2, S4 | — |
| Q9 | accepted, refined | "lint asset of the frontend Pack" refined by Q19 to the react Pack | S2 Q9, Q19 | — |
| Glossary Q15, Q11–Q14, Q16–Q35 | accepted | User answers R1–R4 | S2 | — |
Q35 path .agents/skills/frontend-domain-structure/... | superseded | Replaced by Q35-R5: parity test reads apps/cli/skills/agnostic/frontend/frontend-domain-structure/references/structure.md | S2 Supersession R5 | — |
Current skill: "These labels may differ between projects" (references/structure.md:24-25) | superseded | Fixed names (Q8) | S5 | — |
Current skill: framework composition owns shells, layouts and providers (references/structure.md:17-18) | superseded | Composition owns them; routes import only composition (Q2, Q3) | S5 | — |
Current skill: narrow peer-feature exception (references/structure.md:115-118) | superseded | No peer-feature import (Q5) | S5 | — |
Current skill: modules own integrations and client setup (references/structure.md:19,78-80) | superseded | Integration layer (Q1, Q7) | S5 | — |
Current skill: "does not mandate architecture tests" (references/react/structure.md:68-71) | superseded | Mandatory lint asset (Q9) | S5 | — |
Current skill: app-wide providers in an app-local module (references/react/structure.md:44) | superseded | Providers in composition/providers/ (Q3, Q29) | S5 | — |
Whole System
The skill reference is the single authority. The lint plugin implements its Lint Rules table, a parity test proves the two match, and managed lint runs the plugin in every React package that has a route layer. Agents read the skill through planning and implementation skills.
Anchors: Q9, Q18, Q19, Q20, Q21, Q27, Q31, Q35; S5–S8. Conclusion: because the plugin and the skill meet only in the parity test, a change to either one without the other fails CI, so the agent guidance and the lint result cannot drift.
| Block selector / component / level | Owner | State and authority | Interface / dependency | Supported constraint and source |
|---|---|---|---|---|
| ARC-001 Layer model | skills repo references/structure.md | Authority for layer order, domains, entrypoints and the Lint Rules table | Read by agents; parsed by ARC-008 | One fixed model with a legal owner for shells and providers; Q1, Q2, Q3, Q8, Q21, Q27 |
| ARC-002 Composition layer | adopting app composition/ | First level fixed: providers/ plus one folder per Surface | Imports features, modules, integrations, ui | Shells and page templates out of features/; Q3, Q4, Q6, Q14, Q29 |
| ARC-003 Domain and public entrypoint | adopting app layer folders | A domain is the first folder under a layer; index.ts or index.tsx is its entrypoint | Cross-domain imports only through the entrypoint; ui/ exempt | Deep imports and peer cycles rejected; Q5, Q11, Q28 |
| ARC-004 Layer root and applicability | frontend-layers plugin | Layer root src/ else package root; package checked only with app/ or routes/; monorepo by detector signals | Reads filesystem at lint time | No false errors in packages/ui, video or extension packages; Q22–Q26, Q33 |
| ARC-005 Server boundary | adopting app server/ | Outside the frontend layers; effect-backend-structure governs it | app/api imports only server/; only integrations/ imports server public entrypoints | Backend is an outside system for the frontend; Q13 |
| ARC-006 Lint asset and plugin | apps/cli | react-frontend-layers asset in the lint catalog; react Pack lintAssets; plugin frontend-layers with seven rules | definePlugin from @oxlint/plugins; installed at <scope>/tools/oxlint/frontend-layers/index.mjs | Owner-local applicability (issue-224 Q8); Q9, Q11, Q19, Q31 |
| ARC-007 Import resolution | frontend-layers plugin | No resolver in the plugin API; the plugin resolves relative and @/ specifiers itself | context.filename absolute | Relative imports cannot bypass the rules; Q11, Q32 |
| ARC-008 Rule–skill parity | apps/cli test | Compares Lint Rules ids in the synced skill copy with plugin rule names | Reads apps/cli/skills/agnostic/frontend/frontend-domain-structure/references/structure.md and the plugin | Skill and lint never disagree; Q21, Q35 |
| ARC-009 Skill files and consumers | skills repo and HI wiki | SKILL.md, both references, agents/openai.yaml, contract test; consumer references; wiki pages; BASELINE_CHANGELOG.md | Synced to HI by bun run sync:skills | One delivery moves every consumer; Q18, Q27 |
| ARC-010 Adoption behavior | adopting repository and agent | Every violation is an error; no baseline; oxlint.local.ts may turn a rule off; the agent applies the pattern only to its invoking scope | Existing managed-lint override contract | Mandatory without new machinery; Q16, Q17, Q20 |
Critical Flows and Boundaries
FLOW-001 Lint run on one Software Scope
- FLOW-001-STEP-001: managed lint runs oxlint
once per Software Scope with
cwd= scope (S7managed-lint.mjs:688-712). The asset applies where thereactPack applies: the scope's own manifest declaresreact,react-domornext; wiki manifests are skipped (S8:141-158,221-222,440-446; Q19). - FLOW-001-STEP-002: layer root is
src/when it exists, else the package root (Q26). - FLOW-001-STEP-003: a package without
app/orroutes/under its layer root is not checked (Q25). - FLOW-001-STEP-004: the first path segment
under the layer root gives the layer; the second gives the domain (Q28).
Root files
proxy.ts,middleware.ts,instrumentation.tscount as the route layer (Q22). Test and story files get no exemption (Q30). - FLOW-001-STEP-005: specifiers from
ImportDeclaration,ExportNamedDeclarationandExportAllDeclarationwithsource,ImportExpressionwith a string literal, and aCallExpressionofrequirewith a string literal (Q32; S9). - FLOW-001-STEP-006: relative specifiers resolve
against the absolute
context.filename;@/resolves against the layer root; every other specifier is a package and is ignored (Q32; S9:3801-3803). - FLOW-001-STEP-007: rules evaluate the (source layer, source domain) → (target layer, target domain, target file) edge and the folder names (Q11, Q31).
- FLOW-001-STEP-008: each violation is an error;
no baseline exists; a project may set a rule
offinoxlint.local.ts, using the renamed plugin prefix in nested scopes (Q16, Q20; S7builders/lint.ts:215-218,369-372).
Conclusion: because the plugin resolves every relative and @/ specifier and
classifies by path only, one pass per file decides every rule without a
module resolver or project options (Q32, Q23).
FLOW-002 Agent applies the skill
create-plan (architecture-convergence) | implement-spec (architecture-conformance) FLOW-002-STEP-001
read SKILL.md -> references/structure.md (+ react/structure.md for React) FLOW-002-STEP-002
place each changed responsibility in its honest layer, only in the invoking scope FLOW-002-STEP-003
run managed lint (frontend-layers rules) FLOW-002-STEP-004
fix violations in the touched scope; existing violations elsewhere stay errors FLOW-002-STEP-005- FLOW-002-STEP-001: planning and conformance skills route frontend scope to the skill (S6; Q18).
- FLOW-002-STEP-002:
structure.mdis the authority;react/structure.mdholds React placement (Q27). - FLOW-002-STEP-003: the agent applies the pattern only to the scope of the implementation that invoked it (Q17).
- FLOW-002-STEP-004 and FLOW-002-STEP-005: lint proves the touched code; whole-app migration is not part of this flow (Q10, Q16).
Conclusion: because adoption is scoped and violations are plain errors, a non-conforming repository adopts the model one implementation at a time and lint shows the remaining distance.
FLOW-003 Rule–skill parity
skills repo: edit structure.md Lint Rules table FLOW-003-STEP-001
HI: bun run sync:skills -> apps/cli/skills copy FLOW-003-STEP-002
HI: parity test reads table ids and plugin rule names FLOW-003-STEP-003
CI: unequal sets fail FLOW-003-STEP-004- FLOW-003-STEP-001 to FLOW-003-STEP-004: Q21, Q35. The skills contract test cannot see the plugin; HI sees both (Q35 rejected alternative).
- Steps 2 and 3 read the synced copy, not the skills repo.
Conclusion: because the HI test reads both sides, a skill sync that changes the table without the plugin fails CI before release.
Layer import direction
Anchors: Q1, Q2, Q5, Q12, Q13, Q22, Q24. Conclusion: every arrow points to a lower layer, so the graph is acyclic by construction; a higher layer may also import any layer below its direct neighbour.
Modules and Interfaces
wearedevpunks/skills: skills/agnostic/frontend/frontend-domain-structure/
├── SKILL.md workflow; adds "run the frontend-layers lint rules"
│ and "apply only to the invoking scope" (Q17, Q27)
├── agents/openai.yaml default prompt follows the new model (Q18)
├── references/structure.md AUTHORITY: layer table, import rules,
│ "## Lint Rules" table (rule id per row) (Q21, Q27)
└── references/react/structure.md providers, shells, page templates, hooks (Q27)
wearedevpunks/skills: tests/frontend-domain-structure.contract.test.mjs (Q18)
harness-intelligence apps/cli/src/
├── data/lint/frontend-layers/
│ ├── index.mjs definePlugin({ meta: { name: "frontend-layers" }, rules }) (Q31)
│ └── (fixtures + tests) real oxlint on pass/fail trees per rule (Q34)
├── data/catalog/lint.ts asset id "react-frontend-layers"; jsPlugins
│ [{ name: "frontend-layers",
│ specifier: "./tools/oxlint/frontend-layers/index.mjs" }]
├── data/catalog/packs.ts react Pack: lintAssets += "react-frontend-layers" (Q19)
└── parity test Lint Rules ids == plugin rule names (Q35)
adopting Software Scope:
└── tools/oxlint/frontend-layers/index.mjs copied by the registry (S7 sources/lint.ts:92-99)Rule interface (Q31): plugin frontend-layers exports exactly these rules.
| Rule | Error when | Source |
|---|---|---|
layer-order | an import targets a higher layer, or a file outside integrations/ and app/api/ imports server/ | Q1, Q11 check 1, Q13 |
route-imports | a route-layer file imports anything other than composition/; an app/api/ handler imports anything other than server/ | Q2, Q11 check 2, Q13 |
no-peer-feature | a file in features/<a> imports features/<b> | Q5, Q11 check 3 |
public-entrypoint | a cross-domain import targets a file other than the domain's index.ts/index.tsx (ui/ exempt) | Q11 check 4, Q28 |
no-prototype-folder | a folder named *prototype* or mock* exists outside integrations/ | Q7, Q11 check 6 |
known-top-level | a top-level folder under the layer root is not app, routes, composition, features, modules, integrations, ui, server | Q22, Q23 |
ui-placement | an app-local ui/ folder exists in a monorepo | Q24, Q33 |
Shared mechanics (Q11 check 5, Q32, Q33): every rule uses one specifier
resolver (relative + @/) and one monorepo probe (walk up from the package
root for pnpm-workspace.yaml or a package.json with workspaces, read
once per run).
Accepted Detail Coverage
| Question + exact entry/evidence anchor | Exact accepted choice and supplied detail | Provided rationale / alternatives | Architecture selector + applicable visual | System constraint served |
|---|---|---|---|---|
| Q1 | app → composition → features → modules → integrations; lower-only imports | Rejected abstractions/, root/+templates/, no integrations/ | ARC-001; layer import direction view | Acyclic layer graph |
| Q2 | Routes import only composition/ | Rejected module readers in routes | ARC-001, ARC-006 route-imports | Thin routes |
| Q3 | Composition owns providers, surface shells, page templates, registries | not recorded | ARC-002 | Legal owner for combining code |
| Q4 | Surface is a subfolder of composition/ only; features flat | Rejected features nested by surface, surface mini-apps | ARC-002 | One owner per feature |
| Q5 | No peer-feature imports; nearest composition wires them | Rejected narrow exception; rejected pegasus "move down" only | ARC-003, ARC-006 no-peer-feature | No feature cycles |
| Q6 | Consumable shell parts are modules; assembly is composition | not recorded | ARC-002 | Removes shell↔feature cycles |
| Q7 | Mock/demo/fake runtimes are integrations; no production UI in "prototype" folders | not recorded | ARC-006 no-prototype-folder | Prototype code off production paths |
| Q8 | Fixed layer names | Drops "labels may differ" | ARC-001 | Lint needs fixed names |
| Q9 | Mandatory lint asset (refined by Q19) | Rejected recommended-only; rejected skill-shipped script | ARC-006 | Enforcement |
| Q10 | Skill and enforcement only; repos migrate by running the skill | Rejected repo migration plans | Context and Scope; FLOW-002 | Bounded delivery |
| Q11 | Six checks: layer order, routes→composition, no peer feature, public entrypoint, relative imports, prototype/mock folders | Rejected checks 1–3 only | ARC-006 rule table; FLOW-001-STEP-007 | Full structure enforcement |
| Q12 | ui/ holds primitives and shadcn; other presentation with its owner | Rejected no ui/ | ARC-004; layer view | Primitive placement |
| Q13 | server/ outside layers, effect-backend-structure; app/api → server/; only integrations import server public entrypoints | Rejected modules import server readers | ARC-005; layer view | Backend as outside system |
| Q14 | Page template exports component + optional generateMetadata and loaders; framework packages importable everywhere | Rejected routes import module readers | ARC-002; FLOW-001-STEP-006 (packages ignored) | Routes stay adapters |
| Glossary Q15 | Composition, Surface, Feature, Module, Integration; relationships; axioms | Rejected two-term variant | Canonical Terms | Shared vocabulary |
| Q16 | Every violation an error; no baseline | Rejected ratchet | ARC-010; FLOW-001-STEP-008 | No new mechanism |
| Q17 | Skill applies pattern only to the invoking implementation scope | Rejected one-shot migration and review inventory | ARC-010; FLOW-002-STEP-003 | Incremental adoption |
| Q18 | One delivery: skill files, contract test, create-plan, implement-spec, ask-hi, hi-cli, apps/cli asset, wiki, BASELINE_CHANGELOG.md | Rejected split delivery | ARC-009; system map | Consumers move together |
| Q19 | Asset on react Pack; skill stays in frontend Pack | Rejected detection data on frontend Pack | ARC-006; FLOW-001-STEP-001 | Owner-local applicability (S11) |
| Q20 | Local off allowed through existing override contract | Rejected override-refusal mechanism | ARC-010; FLOW-001-STEP-008 | Existing contract reused |
| Q21 | Skill reference is authority; lint implements and links it; no disagreement | Rejected lint as authority | ARC-001, ARC-008 | Single authority |
| Q22 | Unknown top-level folder is an error; proxy.ts, middleware.ts, instrumentation.ts are route layer | Rejected ignore | ARC-006 known-top-level; FLOW-001-STEP-004 | No catch-all folders |
| Q23 | Route layer enum app/ or routes/; no option | Rejected per-project option | ARC-004, ARC-006 | Next and TanStack Router |
| Q24 | Monorepo: only packages/ui; app-local ui/ is an error; single repo: src/ui/ lowest layer | Rejected both; rejected no single-repo src/ui/ | ARC-004, ARC-006 ui-placement | One primitive home |
| Q25 | Checked only with app/ or routes/ under layer root | Rejected exemption lists | ARC-004; FLOW-001-STEP-003 | No false errors in libraries |
| Q26 | Layer root src/ else package root | Rejected require src/ | ARC-004; FLOW-001-STEP-002 | No project option |
| Q27 | structure.md rewritten with layer table + Lint Rules table; react/structure.md React placement; SKILL.md adds lint + scoped application | Rejected new layers.md | ARC-001, ARC-009; module tree | One authority file |
| Q28 | Domain = first folder under a layer; entrypoint index.ts/index.tsx; free inside; ui/ exempt | Rejected public.ts | ARC-003; public-entrypoint | Deliberate boundaries |
| Q29 | Composition first level fixed: providers/ + surfaces; inside surface guided (shell/, pages/<page>/), not linted | Rejected linted surface internals | ARC-002 | Light constraint |
| Q30 | Tests and stories follow the rules | Rejected pegasus exemption | FLOW-001-STEP-004 | No test-only back edges |
| Q31 | Asset react-frontend-layers; plugin frontend-layers at apps/cli/src/data/lint/frontend-layers/index.mjs, installed <scope>/tools/oxlint/frontend-layers/index.mjs; seven rules | Rejected single rule | ARC-006; module tree; rule table | Per-rule control |
| Q32 | Resolve relative vs absolute context.filename, @/ vs layer root, others ignored; five node kinds | Rejected tsconfig paths | ARC-007; FLOW-001-STEP-005/006 | Simple, deterministic resolution |
| Q33 | Walk up for pnpm-workspace.yaml or package.json workspaces, once per run | Rejected per-package generated setting | ARC-004 | No builder change |
| Q34 | Vitest runs real oxlint on pass/fail fixture trees per rule, beside packaging test | Rejected fake-context unit tests | ARC-006; module tree | Proves oxlint wiring |
| Q35, Q35-R5 | HI test parses the Lint Rules table in apps/cli/skills/agnostic/frontend/frontend-domain-structure/references/structure.md and compares with plugin rule names | Rejected skills contract test pin | ARC-008; FLOW-003 | Exact parity |
Spec Traceability
- State: complete. Every
OUT-###andAC-###of the siblingSPEC.mdmaps to architecture selectors and accepted grill entries.
| Spec code / section selector | Architecture selectors | Accepted grill Q / exact log-entry and evidence anchors | Coverage explanation |
|---|---|---|---|
| OUT-001 | ARC-001, ARC-002, ARC-003, ARC-005 | Q1, Q3, Q5, Q8, Q13, Q21; S2 | Skill reference owns the fixed layer model |
| AC-001 | ARC-001, ARC-005; layer import direction view | Q1, Q8, Q12, Q13, Q23; S2 | Layer names, order and server/ boundary |
| AC-002 | ARC-002 | Q3, Q4, Q29; S2 | Composition ownership and first-level layout |
| AC-003 | ARC-002, ARC-003 | Q5, Q6, Q7; S2 | No peer features, shell split, mocks as integrations |
| AC-004 | ARC-003, ARC-004, ARC-005 | Q13, Q22, Q24, Q26, Q28; S2 | Domains, entrypoints, layer root, root files, UI and server placement |
| AC-005 | ARC-001, ARC-006 rule table | Q27, Q31; S2 | Lint Rules table lists the seven rule ids |
| OUT-002 | ARC-002, ARC-009 | Q3, Q14, Q27; S2 | React placement lives in the React addendum |
| AC-006 | ARC-002, ARC-009 | Q3, Q14, Q27; S2 | Providers, shells, page templates and route adapters in React terms |
| OUT-003 | ARC-009, ARC-010, FLOW-002 | Q17, Q18, Q27; S2 | Agents and consumer skills follow the new model |
| AC-007 | ARC-010, FLOW-002-STEP-003, FLOW-002-STEP-004 | Q17, Q27, Q30; S2 | SKILL.md runs lint and applies only to the invoking scope |
| AC-008 | ARC-009, FLOW-002-STEP-001 | Q18; S2 | Consumer references and contract test move together |
| OUT-004 | ARC-006, FLOW-001-STEP-001 | Q9, Q19, Q31; S2 | Asset reaches React scopes through the react Pack |
| AC-009 | ARC-006; module tree | Q19, Q31; S2 | Catalog and Pack entries |
| AC-010 | ARC-006, FLOW-001-STEP-001 | Q19, Q31; S2 | Byte-identical install path and owner-local applicability |
| OUT-005 | ARC-004, ARC-006, ARC-007, FLOW-001 | Q11, Q22, Q23, Q24, Q25, Q26, Q31, Q32, Q33; S2 | Plugin enforces the model |
| AC-011 | ARC-006 rule table, FLOW-001-STEP-007, FLOW-001-STEP-008 | Q11, Q31, Q34; S2 | Each rule fails its failing fixture and passes its passing fixture |
| AC-012 | ARC-004, FLOW-001-STEP-003 | Q25; S2 | Packages without a route layer are not checked |
| AC-013 | ARC-004, ARC-007, FLOW-001-STEP-002, FLOW-001-STEP-005, FLOW-001-STEP-006 | Q26, Q32; S2 | Layer root and specifier resolution |
| AC-014 | ARC-004, ARC-006 ui-placement | Q24, Q33; S2 | Monorepo probe and UI placement |
| AC-015 | FLOW-001-STEP-004 | Q30; S2 | Tests and stories are checked |
| AC-016 | ARC-010, FLOW-001-STEP-008 | Q16, Q20; S2 | Plain errors; local off honored |
| OUT-006 | ARC-008, FLOW-003 | Q21, Q35, Q35-R5; S2 | Skill and plugin cannot drift |
| AC-017 | ARC-008, FLOW-003-STEP-003, FLOW-003-STEP-004 | Q21, Q35, Q35-R5; S2 | Parity test fails on mismatch |
| OUT-007 | ARC-009 | Q18; S2 | Docs and release notes move with the change |
| AC-018 | ARC-009 | Q18; S2 | Wiki pages and BASELINE_CHANGELOG.md entry |
Flow Failure Coverage
| Lens | Evidence / unknown / justified not applicable | Guarantee at stake | Material unresolved gap |
|---|---|---|---|
| Entry points and path convergence | Agents enter through create-plan, implement-spec or direct invocation (FLOW-002, S6); lint enters per Software Scope (FLOW-001-STEP-001); both converge on ARC-001 through ARC-008 parity (Q21, Q35); non-app React packages gated (Q25); wiki manifests skipped (S8) | Guidance and lint apply the same rules | None |
| Critical execution paths | FLOW-001 steps 1–8 ordered; skip branch at STEP-003 (Q25) | Every checked file classified before rules evaluate | None |
| State ownership and authority | structure.md owns the rules (Q21, Q27); asset applicability owned by the react Pack (Q19); local override owned by the project (Q20) | One authority per decision | None |
| Transaction and side-effect boundaries | Not applicable: static source analysis with no writes; registry copies files through existing installer (S7) | — | None |
| Concurrency and stale state | Stale synced skill copy vs plugin caught by parity test (FLOW-003; Q35); otherwise not applicable (read-only lint) | Parity at release | None |
| Idempotency and retries | Lint and parity test are pure reads; reruns give the same result | Deterministic result | None |
| Partial failure and recovery | Partially migrated repositories stay red until each scope adopts (Q16, Q17); a project may turn a rule off (Q20) | Visible remaining distance | None |
| Execution lifetime and durability | Not applicable: no long-running work; monorepo probe cached per lint run only (Q33) | — | None |
| Lifecycle and dependency transitions | Single repo converted to monorepo makes src/ui/ an error (Q16, Q24); nested scopes rename the local plugin prefix, so overrides use frontend-layers-<scope> (S7 builders/lint.ts:215-218) | Overrides keep working | None — documentation detail for hi-cli managed-lint reference |
| Completion and observability | Lint errors name the rule; parity test and fixture tests prove the plugin (Q34, Q35) | Operator sees which rule failed | None |
Parked Work and Non-material Unknowns
| Question / source | Disposition and scope consequence | Owner / resume trigger | Why current guarantees remain closed |
|---|---|---|---|
| Repository migrations (pegasus, apito, emera, assolombarda) | Out of scope by Q10 | Each repository's next frontend implementation that invokes the skill (Q17) | Lint reports the distance; no guarantee depends on migration |
ImportExpression with a non-literal source | Not resolved by the rule (Q32 covers string literals only) | Future grill if dynamic specifiers appear | Non-material: no evidence repository uses computed import paths across layers |
Validation
- Decision/source/glossary reconciliation: status closed R4 with quoted confirmation; log Q1–Q35 and Glossary Q15 each mapped; published glossary matches status glossary terms, relationships and axioms (S1–S3).
- Exact-detail and cross-level coverage: every accepted entry has a row in Accepted Detail Coverage with a selector.
- Relative links, selector targets, and visual source/order checks: grill log
anchors follow its
### Q<N>headings; ARC/FLOW anchors are explicit<a id>elements; views follow accepted order. - Spec-code -> architecture -> grill coverage: complete; 7 outcomes and 18 criteria each map to selectors and accepted Q entries.
- Mermaid parsing/rendering: recorded in the compile handoff.
- Existing spec agreement: absent; architecture precedes spec.
- Remaining limits: the non-literal dynamic import unknown above.