Harness Intelligence Wiki
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

BranchCompletionTarget altitudeSettled altitudeLocked directionOpen itemsParked
scope100%L1L1 (anchors: Brief, log Q18)One grill in HI over skills, HI, ci-app, devpunks-intelligence——
layer-model100%L3L3 (anchors: log Q1-Q11, Q19, Q20, Q23, Q24, Q31, Q44, Q50)app | routes → composition → features → entities → modules → integrations → ui——
layer-enforcement100%L3L3 (anchors: log Q12, Q26-Q28, Q30, Q41, Q42, Q45, Q49)Skill text + frontend-layers plugin; Registry release enforces——
solution-tiers100%L3L3 (anchors: log Q13, Q21, Q29, Q43)packages/entities, agnostic packages/modules, no foundation; lint 0.2.0——
portal-restructure100%L3L3 (anchors: log Q14-Q16, Q31-Q39, Q46)Portal follows the model after the release, on PR #79——
lint-config-package100%L3L3 (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.md sha256 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 idBranchAltitudePrerequisitesQuestionState
Q19layer-modelL2Q1Do ui/ (lowest layer; shared UI package in a monorepo) and routes/ (alternative route folder) stay in the model?answered
Q20layer-modelL2Q3; GlossaryIs composition/routing/ the Surface folder, or does it hold several Surfaces (route groups such as portal, cms, public)?answered
Q21solution-tiersL2Q13; fact: tier consumers reportedDoes 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
Q41layer-enforcementL2Q12, Q20; Flow Lenses R1 lens 9How do the new rules reach existing react-Pack consumers (pegasus, apito, emera, assolombarda, ci-app, devpunks-intelligence), including those already on composition/<surface>/?answered
Q46portal-restructureL1Q21 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
Q50layer-modelL3Q44; F4 conflict 19A 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
Q49layer-enforcementL3Q28Q28 merges into .oxfmtrc.json. What happens for a consumer without oxfmt (Prettier, Biome) or without that file?answered
Q47lint-config-packageL2Q17, Q46PR #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
Q48lint-config-packageL2Q17, Q478 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
Q42layer-enforcementL2Q12, Q46With devpunks-intelligence migrating after the release, is the local plugin-copy stopgap dropped?answered
Q43solution-tiersL2Q13, Q21What does ci-solution-structure (ci-solutions Pack) change beyond the tier rename?answered
Q44layer-modelL3Q7, Q43Entity api/ (server-backed Data Source) collides with package api/ (HttpApiGroup contract, package-shape.md:41). Which names do entity Data Sources use?answered
Q45layer-enforcementL3Q41Where does the migration map live besides BASELINE_CHANGELOG.md?answered
Q23layer-modelL3Q10Do feature-owned data sources (features/access/api) use the same api/ and simulated/ subpaths and import rule as entities? (Brief fork 1)answered
Q24layer-modelL3Q8How is "modules carry no product terms" checked? (Brief fork 2)answered
Q25lint-config-packageL3Q17Name, location and exports of the shared Oxlint config package. (Brief fork 3)answered
Q26layer-enforcementL3Q10, Q11, Q12Which rule ids does frontend-layers add or change? (Brief fork 5)answered
Q27layer-enforcementL3Q26 (answered)How does the plugin recognize a test file (today it cannot)?answered
Q28layer-enforcementL3Q12; 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
Q29solution-tiersL3Q13, Q21Where does the tier rename land in ci-app, and how is it versioned? (Brief fork 4)answered
Q30layer-enforcementL3Q1-Q11Which other skills and HI wiki pages restate the layer model and change with it?answered
Q31layer-modelL3Q1, Q8, Q19Where do agnostic UI primitives copied across features go (confirmation-dialog, cx, notice, info-list, selectable-card, stat, table-tabs, typography)?answered
Q32portal-restructureL3Q8Where does generic integrations/ci-runtime/network.ts (Pace, simulate, runInterruptible, no SDK import, ~30 importers) go?answered
Q33portal-restructureL3Q7, Q9Who owns CV vocabulary (integrations/cv-vocabulary, features/cv-vocabulary)?answered
Q34portal-restructureL3Q9Who owns features/dashboard (overview, sample data, session panel)?answered
Q35portal-restructureL3Q7, Q14Where does the interview assignment contract live (duplicated in features/tech-interview-assignment/port.ts and features/interview-summaries/model/assignment.ts)?answered
Q36portal-restructureL3Q14developer-options carries InterviewKind and hr/tech score fields: all in entities/candidate/options, or split?answered
Q37portal-restructureL3Q11, Q14Do the interview features follow the no-prefix rule (features/interview/{assignment,summaries})?answered
Q38portal-restructureL3Q5Where do the challenge page templates in features/challenges/views/*/index.tsx (390, 319, 155 lines) go?answered
Q39portal-restructureL3Q14Is unreferenced code deleted in the move (10 of 11 integrations/candidate-challenges files, modules/candidates/mocks.ts)?answered
Q40lint-config-packageL3Q17, 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/ and simulated/; 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.mdx marked superseded

Technical Grounding

BranchEvidence anchorsApplicable dimensionsOpen technical decisionsGrounding
layer-modelwearedevpunks/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, namingnonegrounded
layer-enforcementHI 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, distributionnonegrounded
solution-tiersci-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-93tier names, boundaries tags, release, consumersnonegrounded
portal-restructuredevpunks-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 accessnonegrounded
lint-config-packagedevpunks-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.extendsconfig composition, versions, CI routesnonegrounded

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.

  1. 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).
  2. Critical paths: covered. Skill text and plugin rule ids change together (skill-parity.test.ts).
  3. State ownership: not applicable; no runtime state.
  4. Transaction boundaries: covered. One HI Baseline carries both skill and plugin.
  5. Concurrency: not applicable.
  6. Idempotency: covered; hi update converges on rerun.
  7. Partial failure: covered by Q28 (kept local edits).
  8. Durability: not applicable.
  9. Lifecycle transitions: gap. Existing consumers, some already migrated to composition/<surface>/ under PR #272, receive new error rules on their next update. -> Q41 (L2).
  10. Observability: covered by BASELINE_CHANGELOG.md and the lint report.

Flow Lenses — checkpoint R2

Flows: rule rollout (Q41) and the ci-solution skill path (user comment R2).

  1. Entry points: gap. ci-solution-structure reaches consumers only through npm @collective-intelligence/lint and 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.
  2. Lifecycle transitions: gap. PR #79 is open with CTO review; the user puts the devpunks-intelligence migration after the release. -> Q46, Q42.
  3. 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.

  1. Partial failure: gap. Until the lint config package lands, every portal commit fails the commit gate on 2 ci-solution/package-entrypoint findings (Baseline commit 5971a9ab used --no-verify). -> Q47.
  2. Lifecycle: covered by Q46 (restructure after release on the same branch).
  3. Observability: covered; managed lint and hi check show 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).

  1. State ownership and authority: gap. The authoritative policy today is the JSON chain. Eight workspaces (app/backend/core, app/backend/functions, four app/frontend/*, packages/frontend-shared, infra/aws) already hold oxlint.config.ts files with ultracite presets and a local anti-slop plugin; the scripts skip them, and .devpunks/installed.json does not manage them. Moving to oxlint.config.ts activates whichever content it holds. -> Q48.
  2. 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).

  1. Entry points: gap. integrations/interview-api/http.ts, features/candidate-access/components/sidebar.tsx and modules/interview-assignments/booking-details.tsx are client code that imports barrels which also reach server-only readers (integrations/portal-server/index.ts starts with import "server-only"). One remote/index.ts would mix both. -> Q50.
  2. 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-intelligence differ from HI sources only by oxfmt formatting.
  • F3 ci-app tiers, lint, releases, consumers: reported R0. Only emera-platform uses tier tags; ci-emera and ci-assolombarda use flat packages/*.
  • 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 vs SavedCv), split contract and placeholder output in integrations/candidate-intake/* and integrations/interview-summaries/*, move mockMatchSearch out of features/active-search/model/matching.ts, move CV rendering views to entities/candidate/cv/views, modules/session/{sign-in-url,display-name} and mock-session to features/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) or simulated/ (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: app or routes → 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 through index.ts and server code only through server.ts. Checkable as: model
  • An index file only re-exports. Checkable as: type

Flagged Ambiguities

  • "Surface" (Frontend Composition Layer glossary: composition/<surface>/) versus composition/routing/. Resolution: Q20 retires Surface; a route group is a Shell.
  • "api/" means a server-backed Data Source in an Entity, and the HttpApiGroup contract in a ci-solution package (package-shape.md:41). Resolution: Q44; Data Sources use remote/ and simulated/.
  • "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-architecture under $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.json entries
  • 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, branch team/stefan/entities-layer-model

On this page