Grilling
Entities Layer Model Grill Status
Entities Layer Model Grill Status
Decision record: grill log. Input: Brainstorm Brief. Supersedes in part: Frontend Composition Layer (Modules as a domain layer, Integrations as the mock owner, Surface folders).
Branch Dashboard
| Branch | Completion | Target altitude | Settled altitude | Locked direction | Open items | Parked |
|---|---|---|---|---|---|---|
| scope | 100% | L1 | L1 (anchors: Brief, log Q18) | One grill in HI over skills, HI, ci-app, devpunks-intelligence | — | — |
| layer-model | 100% | L3 | L3 (anchors: log Q1-Q11, Q19, Q20, Q23, Q24, Q31, Q44, Q50) | app | routes → composition → features → entities → modules → integrations → ui | — | — |
| layer-enforcement | 100% | L3 | L3 (anchors: log Q12, Q26-Q28, Q30, Q41, Q42, Q45, Q49) | Skill text + frontend-layers plugin; Registry release enforces | — | — |
| solution-tiers | 100% | L3 | L3 (anchors: log Q13, Q21, Q29, Q43) | packages/entities, agnostic packages/modules, no foundation; lint 0.2.0 | — | — |
| portal-restructure | 100% | L3 | L3 (anchors: log Q14-Q16, Q31-Q39, Q46) | Portal follows the model after the release, on PR #79 | — | — |
| lint-config-package | 100% | L3 | L3 (anchors: log Q17, Q25, Q40, Q47, Q48) | @devpunks/oxlint-config; catalog-pinned Oxlint 1.90.0; every workspace on oxlint.config.ts | — | — |
Precision Inputs
- Brief import:
apps/wiki/content/docs/project/grilling/entities-layer-model-brainstorm-brief.mdsha256 3c24c2604b09d2437958e1d62636cd9470fe3fb6750287c0faa4da656667d7eb R0 - Fog: not supplied
- Altitude upgrade: not needed
- Auto-pin: not authorized
- Conservative closure: not requested
- Compile gaps: none
Current Round
- Round: R7
- Altitude: L3
- Current frontier: empty
- Shared-understanding confirmation: confirmed — user, 2026-10-30: "we reached shared understanding. confirm agree all."
- Closure: closed R8
| Question id | Branch | Altitude | Prerequisites | Question | State |
|---|---|---|---|---|---|
| Q19 | layer-model | L2 | Q1 | Do ui/ (lowest layer; shared UI package in a monorepo) and routes/ (alternative route folder) stay in the model? | answered |
| Q20 | layer-model | L2 | Q3; Glossary | Is composition/routing/ the Surface folder, or does it hold several Surfaces (route groups such as portal, cms, public)? | answered |
| Q21 | solution-tiers | L2 | Q13; fact: tier consumers reported | Does the tier rename migrate emera-platform (6 tier:foundation, 1 tier:modules, boundaries test, ~110 mentions) in this delivery, or as a follow-up in that repository? | answered |
| Q41 | layer-enforcement | L2 | Q12, Q20; Flow Lenses R1 lens 9 | How do the new rules reach existing react-Pack consumers (pegasus, apito, emera, assolombarda, ci-app, devpunks-intelligence), including those already on composition/<surface>/? | answered |
| Q46 | portal-restructure | L1 | Q21 confirmation (R2) | Does PR #79 wait for the Registry release and get its restructure then, or merge first with the restructure in a later PR? | answered |
| Q50 | layer-model | L3 | Q44; F4 conflict 19 | A remote/ source holds browser clients and server-only readers; client components import these barrels today. How does remote/ keep server-only code out of client bundles? | answered |
| Q49 | layer-enforcement | L3 | Q28 | Q28 merges into .oxfmtrc.json. What happens for a consumer without oxfmt (Prettier, Biome) or without that file? | answered |
| Q47 | lint-config-package | L2 | Q17, Q46 | PR #79 waits for the release, and its commits fail the gate on the 2 ci-solution/package-entrypoint findings until the lint config package lands. When and where does that package land? | answered |
| Q48 | lint-config-package | L2 | Q17, Q47 | 8 workspaces hold dormant oxlint.config.ts files (ultracite + local anti-slop, from commit 518e4d2e, not HI-managed) that their --config ../.oxlintrc.json scripts skip. When each workspace moves to oxlint.config.ts, which policy does it run? | answered |
| Q42 | layer-enforcement | L2 | Q12, Q46 | With devpunks-intelligence migrating after the release, is the local plugin-copy stopgap dropped? | answered |
| Q43 | solution-tiers | L2 | Q13, Q21 | What does ci-solution-structure (ci-solutions Pack) change beyond the tier rename? | answered |
| Q44 | layer-model | L3 | Q7, Q43 | Entity api/ (server-backed Data Source) collides with package api/ (HttpApiGroup contract, package-shape.md:41). Which names do entity Data Sources use? | answered |
| Q45 | layer-enforcement | L3 | Q41 | Where does the migration map live besides BASELINE_CHANGELOG.md? | answered |
| Q23 | layer-model | L3 | Q10 | Do feature-owned data sources (features/access/api) use the same api/ and simulated/ subpaths and import rule as entities? (Brief fork 1) | answered |
| Q24 | layer-model | L3 | Q8 | How is "modules carry no product terms" checked? (Brief fork 2) | answered |
| Q25 | lint-config-package | L3 | Q17 | Name, location and exports of the shared Oxlint config package. (Brief fork 3) | answered |
| Q26 | layer-enforcement | L3 | Q10, Q11, Q12 | Which rule ids does frontend-layers add or change? (Brief fork 5) | answered |
| Q27 | layer-enforcement | L3 | Q26 (answered) | How does the plugin recognize a test file (today it cannot)? | answered |
| Q28 | layer-enforcement | L3 | Q12; fact: HI manages no oxfmt config (no oxfmtrc in apps/cli/src) | How do consumers stop reformatting copied plugins (tools/oxlint/**), which hi update reports as local edits? | answered |
| Q29 | solution-tiers | L3 | Q13, Q21 | Where does the tier rename land in ci-app, and how is it versioned? (Brief fork 4) | answered |
| Q30 | layer-enforcement | L3 | Q1-Q11 | Which other skills and HI wiki pages restate the layer model and change with it? | answered |
| Q31 | layer-model | L3 | Q1, Q8, Q19 | Where do agnostic UI primitives copied across features go (confirmation-dialog, cx, notice, info-list, selectable-card, stat, table-tabs, typography)? | answered |
| Q32 | portal-restructure | L3 | Q8 | Where does generic integrations/ci-runtime/network.ts (Pace, simulate, runInterruptible, no SDK import, ~30 importers) go? | answered |
| Q33 | portal-restructure | L3 | Q7, Q9 | Who owns CV vocabulary (integrations/cv-vocabulary, features/cv-vocabulary)? | answered |
| Q34 | portal-restructure | L3 | Q9 | Who owns features/dashboard (overview, sample data, session panel)? | answered |
| Q35 | portal-restructure | L3 | Q7, Q14 | Where does the interview assignment contract live (duplicated in features/tech-interview-assignment/port.ts and features/interview-summaries/model/assignment.ts)? | answered |
| Q36 | portal-restructure | L3 | Q14 | developer-options carries InterviewKind and hr/tech score fields: all in entities/candidate/options, or split? | answered |
| Q37 | portal-restructure | L3 | Q11, Q14 | Do the interview features follow the no-prefix rule (features/interview/{assignment,summaries})? | answered |
| Q38 | portal-restructure | L3 | Q5 | Where do the challenge page templates in features/challenges/views/*/index.tsx (390, 319, 155 lines) go? | answered |
| Q39 | portal-restructure | L3 | Q14 | Is unreferenced code deleted in the move (10 of 11 integrations/candidate-challenges files, modules/candidates/mocks.ts)? | answered |
| Q40 | lint-config-package | L3 | Q17, Q25 (answered) | One pinned Oxlint version for all workspaces (5 installed today: 1.66 to 1.87)? | answered |
Required Calls
R0
- ground: R0 run — Brief import, 4 fact subagents, domain-modeling
R1
- grilling: R1 run — Q19, Q20, Q21
- wait-what: R1 run
- show-me: R1 run — module tree with open points via html_render
- domain-modeling: R1 run — Shell redefined; Surface retired (Glossary Q20); axiom order adds routes and ui
- flow-lenses: R1 run — rollout to existing consumers (lens 9) -> Q41
- expand: R1 run — Q41
- level derivation: R1 run — L2 settled for layer-model, solution-tiers, portal-restructure, lint-config-package; their L3 questions Q23-Q40 exist from ground; no new ids
R2
- grilling: R2 run — Q41
- wait-what: R2 run
- show-me: R2 run — rollout flow and options table via html_render
- domain-modeling: R2 run — flagged ambiguity:
api/(entity Data Source vs package HttpApiGroup contract) -> Q44 - flow-lenses: R2 run — lens 9 PR #79 timing vs release -> Q46; lens 1 ci-solutions Pack entry for skill change -> Q43
- expand: R2 run — Q42, Q43, Q46 (from user comments), Q45 (from Q41)
- level derivation: R2 run — not due (layer-enforcement L2 still open)
R3
- grilling: R3 run — Q46
- wait-what: R3 run
- show-me: R3 run — PR #79 timing, two sequences via html_render
- domain-modeling: R3 run — no change
- flow-lenses: R3 run — lens 7/9 commit gate blocks PR #79 until the lint package lands -> Q47
- expand: R3 run — Q47
- level derivation: R3 run — portal-restructure L1 settled; L2 already settled by Q14-Q16; L3 questions Q32-Q39 exist
R4
- grilling: R4 run — Q42, Q43, Q47
- wait-what: R4 run
- show-me: R4 run — decision table via html_render
- domain-modeling: R4 run — no change (package Modules invariant matches the Module term)
- flow-lenses: R4 run — lens 3 effective policy per workspace changes when scripts drop
--config ../.oxlintrc.json-> Q48 - expand: R4 run — Q48
- level derivation: R4 run — layer-enforcement and solution-tiers L2 settled; their L3 questions exist (Q26-Q28, Q30, Q45; Q29)
R5
- grilling: R5 run — Q48
- wait-what: R5 run
- show-me: R5 run — workspace policy table via html_render
- domain-modeling: R5 run — no change
- flow-lenses: R5 run — none (lens 3 resolved by Q48; deleted configs have no other reader)
- expand: R5 run — none
- level derivation: R5 run — every code-bearing branch settled at L2; L3 frontier from ground and checkpoints; codebase-design vocabulary and plugin API evidence (F2) applied; view R6
R6
- grilling: R6 run — Q23, Q24, Q25, Q26, Q28, Q29, Q30, Q31, Q32, Q33, Q34, Q35, Q36, Q37, Q38, Q39, Q44, Q45
- wait-what: R6 run
- show-me: R6 run — target module tree and rule table via html_render
- domain-modeling: R6 run — Data Source subpaths
remote/andsimulated/;api/ambiguity resolved - flow-lenses: R6 run — lens 1 client/server entry of
remote/-> Q50; lens 9 consumers without oxfmt -> Q49 - expand: R6 run — Q49, Q50
- level derivation: R6 run — not due (L3 is the Target Altitude)
R7
- grilling: R7 run — Q27, Q40, Q49, Q50
- wait-what: R7 run
- show-me: R7 run — remote subpath interface sketch via html_render
- domain-modeling: R7 run — no change
- flow-lenses: R7 run — none; Q40
catalog:compatibility resolved by evidence (registry/dependencies.ts) - expand: R7 run — none
- level derivation: R7 run — not due
Close
- domain-modeling: run — final pass: Data Source, Shell, Composition consistent with Q20, Q44, Q50; Surface retired
- show-me: run — persisted understanding via html_render
- wiki synthesis: run —
domains/entities-layer-model-glossary.mdx;frontend-composition-layer-glossary.mdxmarked superseded
Technical Grounding
| Branch | Evidence anchors | Applicable dimensions | Open technical decisions | Grounding |
|---|---|---|---|---|
| layer-model | wearedevpunks/skills@1730646 skills/agnostic/frontend/frontend-domain-structure/SKILL.md:4-7,12-13,24-26,44; references/structure.md:5-6,14-21,41-50,58-59,63-71,78-97,116,133-134,141-155; references/react/structure.md:10-13,19,25,30-31,63-64,72-73,88; HI copy byte-identical at apps/cli/skills/agnostic/frontend/frontend-domain-structure/ | file layout, dependency direction, naming | none | grounded |
| layer-enforcement | HI apps/cli/src/data/lint/frontend-layers/index.mjs:7-14 (LAYER_RANK), :17-26 (TOP_LEVEL_FOLDERS), :28 (DOMAIN_LAYERS), :101-118 (locate; api only for app/api), :244-245 (isEntrypoint ≤3 segments), :257-268 (no-prototype-folder); skill-parity.test.ts:12-27 (rule ids of structure.md ## Lint Rules table equal Object.keys(plugin.rules)); frontend-layers.test.ts:9-17,45-57,79-107 (real oxlint on fixture trees; CLEAN fixture index files hold JSX); asset apps/cli/src/data/catalog/lint.ts:237-270, Pack packs.ts:333; sync apps/cli/scripts/sync-skills-repo.mjs:22-24 (sync/<topic>-<sha12> tags) | rule model, test detection, content inspection, distribution | none | grounded |
| solution-tiers | ci-app@5b906d6ed5 packages/public/lint/skills/ci-solution-structure/SKILL.md:12-28,34,39-40,47,64-77; references/tiers.md:11-19,28-29; references/enforcement.md:8-48,65; lint src/index.ts:9,23-31, src/workspace/layout.ts:8-15 (no tier names in code); release .github/workflows/release-npm-packages.yml, .github/scripts/npm_release.py; HI pin apps/cli/src/data/catalog/package-skills.ts:18 (0.1.24), apps/cli/scripts/sync-package-skills.mjs:41-94; emera-platform@edf0309 root turbo.json:4-45, tools/boundaries/boundaries.test.ts:22-29,84-93 | tier names, boundaries tags, release, consumers | none | grounded |
| portal-restructure | devpunks-intelligence@5971a9ab app/frontend/recruiter-portal/src/: composition/providers/{portal-root,active-search-providers,cv-workspace-providers,interview-assignment-providers}.tsx, composition/portal/{index.ts,shell/*,pages/*}, integrations/* (14), modules/{candidates,developer-options,interview-assignments,session}, features/{candidate-*,challenges,dashboard,interview-summaries,tech-interview-assignment}; server/ imported only by integrations/{candidate-access,interview-api,portal-server} | file layout, ownership, server access | none | grounded |
| lint-config-package | devpunks-intelligence@5971a9ab .oxlintrc.json chains (/, app/backend, app/backend/extensions, app/frontend, infra, packages); 9 --config ../.oxlintrc.json scripts; packages/ui/oxlint.config.ts; app/backend/extensions/test/import-lint.test.ts (spawns root oxlint 1.66.0 with extensions config); .github/workflows/ci.yml path filters and lint jobs; recruiter-portal-ci.yml; Oxlint 1.87.0 configuration_schema.json properties.extends | config composition, versions, CI routes | none | grounded |
Flow Lenses — checkpoint R1
Flow: a rule and naming change travels from the skill text and plugin (HI Registry) and the CI lint package (npm) to consumers.
- Entry points: covered. Consumers get the plugin through
hi update(react Pack asset) and the skill through skill sync; ci-solution rules through npm and the HI pin (package-skills.ts:18). Copies kept as local edits keep old rules (Q28). - Critical paths: covered. Skill text and plugin rule ids change together (
skill-parity.test.ts). - State ownership: not applicable; no runtime state.
- Transaction boundaries: covered. One HI Baseline carries both skill and plugin.
- Concurrency: not applicable.
- Idempotency: covered;
hi updateconverges on rerun. - Partial failure: covered by Q28 (kept local edits).
- Durability: not applicable.
- Lifecycle transitions: gap. Existing consumers, some already migrated to
composition/<surface>/under PR #272, receive new error rules on their next update. -> Q41 (L2). - Observability: covered by
BASELINE_CHANGELOG.mdand the lint report.
Flow Lenses — checkpoint R2
Flows: rule rollout (Q41) and the ci-solution skill path (user comment R2).
- Entry points: gap.
ci-solution-structurereaches consumers only through npm@collective-intelligence/lintand the HI pin (apps/cli/src/data/catalog/package-skills.ts:18,sync-package-skills.mjs); the HI copy differs from published 0.1.24 (missing enforcement paragraph). -> Q43. - Lifecycle transitions: gap. PR #79 is open with CTO review; the user puts the
devpunks-intelligencemigration after the release. -> Q46, Q42. - Observability: covered. A consumer is migrated when managed lint passes with the new rules. 2-8: unchanged from R1.
Flow Lenses — checkpoint R3
Flow: PR #79 from now to merge under Q46.
- Partial failure: gap. Until the lint config package lands, every portal commit fails the commit gate on 2
ci-solution/package-entrypointfindings (Baseline commit5971a9abused--no-verify). -> Q47. - Lifecycle: covered by Q46 (restructure after release on the same branch).
- Observability: covered; managed lint and
hi checkshow the released Baseline on the branch. Other lenses: unchanged.
Flow Lenses — checkpoint R4
Flow: one workspace moves from oxlint --config ../.oxlintrc.json . to its own oxlint.config.ts (Q17, Q47).
- State ownership and authority: gap. The authoritative policy today is the JSON chain. Eight workspaces (
app/backend/core,app/backend/functions, fourapp/frontend/*,packages/frontend-shared,infra/aws) already holdoxlint.config.tsfiles with ultracite presets and a local anti-slop plugin; the scripts skip them, and.devpunks/installed.jsondoes not manage them. Moving tooxlint.config.tsactivates whichever content it holds. -> Q48. - Observability: covered; each workspace lint result before and after shows a policy change. Other lenses: not applicable to a static config change.
Flow Lenses — checkpoint R6
Flows: a client component reads entity data through a Data Source; a consumer receives copied plugins (Q28).
- Entry points: gap.
integrations/interview-api/http.ts,features/candidate-access/components/sidebar.tsxandmodules/interview-assignments/booking-details.tsxare client code that imports barrels which also reachserver-onlyreaders (integrations/portal-server/index.tsstarts withimport "server-only"). Oneremote/index.tswould mix both. -> Q50. - Lifecycle: gap. Q28 assumes
.oxfmtrc.json; consumers on Prettier or Biome, or with no formatter config, get no ignore. -> Q49. 2-8, 10: covered by earlier checkpoints or not applicable to static layout.
Fact Requests
- F1 skill text and sync path: reported R0 (Technical Grounding, layer-model).
- F2 plugin, parity test, asset, local edits: reported R0. Installed copies in
devpunks-intelligencediffer from HI sources only byoxfmtformatting. - F3 ci-app tiers, lint, releases, consumers: reported R0. Only
emera-platformuses tier tags; ci-emera and ci-assolombarda use flatpackages/*. - F4 portal file classification and lint routes: reported R0. Findings beyond the accepted mapping are Q31 to Q40. Further per-file consequences of accepted rules (no new decision): split
integrations/candidate-cv/download.ts(pdf-lib export vsSavedCv), split contract and placeholder output inintegrations/candidate-intake/*andintegrations/interview-summaries/*, movemockMatchSearchout offeatures/active-search/model/matching.ts, move CV rendering views toentities/candidate/cv/views,modules/session/{sign-in-url,display-name}andmock-sessiontofeatures/access.
Glossary
Terms
- Composition: the top frontend layer. It holds global root providers, the proxy and routing (access, shells, pages). Avoid: abstractions, root, templates.
- Shell: the layout of one route group, in
composition/routing/shells/<name>/; it combines feature providers with selected Data Sources. Avoid: Surface, area, section, sub-app, layout bucket. - Page Template: the component a route renders, in
composition/routing/pages/<page>/. Avoid: page component, screen. - Feature: a user-facing capability that combines entities, with its own workflow, policy, state and providers. Avoid: page, widget, flow folder.
- Entity: a repository-like domain for one business entity: contract, port, CRUD and query, providers, data sources and entity views. Avoid: kernel, model, repository, domain.
- Data Source: an implementation of a port, in a
remote/(server-backed) orsimulated/(in-memory) subpath of an Entity or Feature. Avoid: api, mock, fake, adapter. - Module: business-agnostic app-local code with no product terms. Avoid: shared, lib, utils, common, foundation.
- Integration: an adapter to a third-party system. Avoid: infra, api, mock.
Relationships
- A Feature combines one or more Entities.
- An Entity owns zero or more Data Sources; Composition selects which one a Shell injects.
- Routing holds one or more Shells; a Shell wraps the Page Templates of its route group.
Axioms
- Each layer imports only lower layers:
apporroutes→ composition → features → entities → modules → integrations → ui. Checkable as: model - A Feature never imports another Feature; an Entity never imports another Entity. Checkable as: model
- Only Composition and tests import a Data Source. Checkable as: model
- A
remote/Data Source exposes browser code only throughindex.tsand server code only throughserver.ts. Checkable as: model - An
indexfile only re-exports. Checkable as: type
Flagged Ambiguities
- "Surface" (Frontend Composition Layer glossary:
composition/<surface>/) versuscomposition/routing/. Resolution: Q20 retires Surface; a route group is a Shell. - "api/" means a server-backed Data Source in an Entity, and the
HttpApiGroupcontract in a ci-solution package (package-shape.md:41). Resolution: Q44; Data Sources useremote/andsimulated/. - "modules" means domain code in the current skill texts and in
ci-solution-structure, and agnostic code in this grill. Resolution: Q1, Q8, Q13 (agnostic).
Gate Outcomes
close
- Phase: close
- Status: complete
- Exit: grill_closed
- Scope: R7; all branches
- Artifacts: status confirmation pending; Close calls
- Validation: Close Guard passes: no unanswered question; every branch settled at Target Altitude; code-bearing branches grounded with no open technical decision; Required Calls R1-R7 complete
- Grill state: confirmed and closed R8; scope directions Q51, Q52 recorded
- Next suggested route:
$create-architectureunder$requirements-phase - Blockers: none
- Resume identity: none
checkpoint
- Phase: checkpoint
- Status: complete
- Exit: recorded
- Scope: R7; layer-model, layer-enforcement, lint-config-package
- Artifacts: log Q27, Q40, Q49, Q50
- Validation: user reply "agree all"
- Grill state: every branch settled at its Target Altitude; no open question
- Next suggested route: close
- Blockers: none
- Resume identity: none
round
- Phase: round
- Status: checkpoint
- Exit: answers_required
- Scope: R7; layer-model, layer-enforcement, lint-config-package
- Artifacts: status Current Round, Required Calls R7
- Validation: frontier Q27, Q40, Q49, Q50 at L3
- Grill state: round R7 open at L3
- Next suggested route: checkpoint on the user's answers
- Blockers: none
- Resume identity: none
ground
- Phase: ground
- Status: complete
- Exit: grounded
- Scope: R0; all branches
- Artifacts: Brief written; log Q1-Q18 (Source: Brainstorm Brief); status created;
grilling/meta.jsonentries - Validation: Brief sha256 recorded; 4 fact reports recorded; every branch has Target and Settled Altitude with anchors
- Grill state: all branches settled L1 by Brief; L2 frontier Q19, Q20, Q21
- Next suggested route: round R1 at L2
- Blockers: none
- Resume identity: HI worktree
/home/stefan/repos/hi-wt-entities-layer-model, branchteam/stefan/entities-layer-model