Harness Intelligence Wiki
SpecsCLIFrontend Composition Layer

Frontend Composition Layer Plan

Plan: Frontend Composition Layer

Context Pointers

PointerIdentityFreshness rule
SPECSPEC.md @ eb647c05, sha256 73d1b07abac6dc6b…Re-verify bytes before each wave; a changed spec stops dispatch
ARCHITECTUREARCHITECTURE.md @ f5991916, sha256 ca84ba32d9520cc9…Same
Grillstatus and log @ fad22f140861 (Q1–Q35, Q35-R5, Glossary Q15)Decisions change only through requirements-grill
Glossarydomains/frontend-composition-layer-glossary.mdxUse its terms exactly
Skills source/home/stefan/repos/skills branch main @ 21a3cac at planning timeVerify git -C /home/stefan/repos/skills branch --show-current = main before T1, T2
BacklogLinear Epic IP-514, milestone V4.7 Frontend Composition LayerProvider readback below
  • architecture_applicability: architecture-bearing. Evidence: two Stories change one capability cumulatively, T3 introduces a new plugin module with a public rule seam, T4 changes Pack composition, and T5 adds a cross-repository parity seam (ARC-006, ARC-008).

Initial Situation

  • frontend-domain-structure puts shells and providers in the route layer, allows a narrow peer-feature exception, and mandates no architecture check (ARCHITECTURE Source Disposition).
  • HI ships no import-direction lint rule; the frontend Pack has no detection data; the react Pack carries react-core and react-you-might-not-need-an-effect (apps/cli/src/data/catalog/packs.ts:328).
  • typescript-anti-slop is the only custom JS plugin asset; it has packaging tests only (apps/cli/src/registry/publisher/sources/lint.test.ts:41-62).

Problem Statement

Agents have no legal owner for combining code, and nothing checks layer direction (SPEC Context).

Proposed Solution Shape

Rewrite the skill around the fixed layer model; ship frontend-layers as react-frontend-layers on the react Pack; prove skill–plugin parity in HI; document and record the Baseline change.

Resolved Decision Ledger

DecisionSource
Layer order app/routes → composition → features → modules → integrations → ui; server/ outsideQ1, Q12, Q13, Q23
Seven rules: layer-order, route-imports, no-peer-feature, public-entrypoint, no-prototype-folder, known-top-level, ui-placementQ11, Q31
Asset on react Pack; plugin source apps/cli/src/data/lint/frontend-layers/index.mjsQ19, Q31
Parity test reads apps/cli/skills/agnostic/frontend/frontend-domain-structure/references/structure.mdQ35-R5
Plugin tests run real oxlint on pass/fail fixture treesQ34
One HI branch t3/frontend-domain-structure-layers; skills commits on mainSPEC Branch/Base Intent
Plan-time choice: fixture trees are written to a temporary directory per test, not checked in under src/, so HI typecheck and lint never see intentionally invalid importsExecution detail within Q34
Plan-time choice: catalog asset declares frontend-layers/<rule>: "error" for all seven rules, as typescript-anti-slop doesExecution detail within Q16, Q31

Assumptions and Constraints

  • User rule, 2026-10-22: every prompt and skill edit goes through writing-for-agents.

  • oxlint 1.86.0 and @oxlint/plugins are already apps/cli devDependencies (apps/cli/package.json:58,69).

  • apps/cli Vitest includes src/**/*.test.ts (apps/cli/vitest.config.ts:11).

  • Root AGENTS.md: skills change only on main of the skills repository; bun run sync:skills then writes apps/cli/skills and prints a receipt SHA.

  • Release classification: changed BASELINE_CHANGELOG.md selects baseline.

Codebase Findings

  • Lint asset definition fields and sourceFiles copying: apps/cli/src/data/catalog/lint.ts:25-43,99-132; apps/cli/src/registry/publisher/sources/lint.ts:92-105.
  • Applicability: apps/cli/src/registry/builders/lint.ts:100-108.
  • Nested-scope plugin rename (override prefix): apps/cli/src/registry/builders/lint.ts:215-218.
  • Plugin API: @oxlint/plugins@1.86.0 index.d.ts:3801-3823 (filename absolute), :1763-1821, :2520-2570.
  • Skills contract tests: /home/stefan/repos/skills/tests/{frontend-domain-structure,architecture-convergence,architecture-conformance}.contract.test.mjs; runner node --test tests/*.test.mjs.

Wiki Context

  • Knowledge used:
    • Skill packs, selected by search "lint asset": Pack lint asset table lists react: react-core, react-you-might-not-need-an-effect (line 138). Fresh; verified against packs.ts:328. Shapes T6.
    • Hooks: Managed Lint, selected by search "managed lint": assets are Copied JSON under .devpunks/specs/lint/assets/ (line 85). Fresh; verified against publisher/sources/lint.ts:100-105. Shapes T4, T6.
    • CLI scaffolding runbook, "Applies when" scaffolding and managed lint change: scope selection and oxlint.local.ts ownership. Fresh; verified against builders/lint.ts:369-372. Shapes T6.
    • Skill reference, search "frontend-domain-structure": current one-line description. Fresh. Shapes T6.
    • Issue 224 managed lint grill log Q8: owner-local evidence for framework assets. Fresh. Shapes T4.
  • Stale or contradictory claims: none found.
  • Returned findings: knowledge no-op; the plan adds no claim beyond the retained pair.

External Research

  • None beyond the retained pair's sources (S9 oxlint typings read at planning time).

Target Ownership Topology

wearedevpunks/skills (main)
└── skills/agnostic/frontend/frontend-domain-structure/       owner: layer model authority (ARC-001)
    ├── references/structure.md      public: layer table + "## Lint Rules" table
    ├── references/react/structure.md  React placement only
    └── SKILL.md, agents/openai.yaml   workflow; must not restate rules
    consumers: create-plan, implement-spec, ask-hi, hi-cli    must not define layer rules (ARC-009)

harness-intelligence apps/cli
├── src/data/lint/frontend-layers/index.mjs   owner: rule mechanics (ARC-006, ARC-007)
│     public: plugin "frontend-layers" with 7 rules; must not read project options
├── src/data/catalog/{lint,packs}.ts          owner: asset packaging + applicability
│     public: asset "react-frontend-layers" on react Pack; frontend Pack unchanged
├── skills/agnostic/frontend/frontend-domain-structure/   synced copy, owned by sync:skills
└── src/data/lint/frontend-layers/skill-parity.test.ts   owner: parity proof (ARC-008)

Conclusion: the skill owns meaning, the plugin owns mechanics, the catalog owns reach, and only the parity test reads both.

Declared Dependency Graph

  • Allowed: edges above only.
  • Forbidden: plugin importing anything outside Node built-ins and @oxlint/plugins; plugin reading the skill text at lint time; consumer skills restating rule ids; frontend Pack listing the asset.

Responsibility Acceptance Criteria

criterion_idOwnerObservable assertionEvidencedue_architecture_wave
RAC-1skill structure.mdContains layer table, entrypoint rules and ## Lint Rules with exactly seven ids (AC-001–AC-005)cd /home/stefan/repos/skills && node --test tests/frontend-domain-structure.contract.test.mjsA1
RAC-2skill react/structure.md, SKILL.mdReact placement and scoped application (AC-006, AC-007)cd /home/stefan/repos/skills && node --test tests/frontend-domain-structure.contract.test.mjsA1
RAC-3pluginEach rule fails its failing tree and passes its passing tree on oxlint 1.86.0 (AC-011–AC-016)bun run --cwd apps/cli vitest run --config vitest.config.ts src/data/lint/frontend-layersA1
RAC-4consumer skillsConsumers describe the model consistently (AC-008)cd /home/stefan/repos/skills && node --test tests/*.test.mjsA2
RAC-5catalogAsset on react Pack, copied byte-identically only where react applies (AC-009, AC-010)bun run --cwd apps/cli vitest run --config vitest.config.ts src/registry/publisher/sources/lint.test.ts src/registry/builders/lint.test.tsA2
RAC-6parity testEqual sets pass; the parser rejects an in-memory table with a missing id (AC-017)bun run --cwd apps/cli vitest run --config vitest.config.ts src/data/lint/frontend-layers/skill-parity.test.tsA3
RAC-7wiki and changelogPages and BASELINE_CHANGELOG.md updated; release classification selects baseline (AC-018)bun run --cwd apps/wiki check:content && bun run --cwd apps/wiki check:health; node apps/cli/scripts/classify-release-impact.mjs --base origin/main --head HEADA4

Architecture Waves

A1 boundary establishment: skill authority (T1) + plugin mechanics (T3)   RAC-1, RAC-2, RAC-3
  checkpoint: rule ids in T1 table == rule names in T3 plugin (manual compare)
A2 vertical slice: consumers (T2) + Pack reach (T4)                         RAC-4, RAC-5
  checkpoint: RAC-1..RAC-5 green
A3 convergence seam: sync + parity (T5)                                     RAC-6
  checkpoint: RAC-1..RAC-6 green
A4 final closure: docs + changelog (T6)                                     RAC-7
  zero-drift: all RAC green; migration ledger empty

Public Seam Contract

SeamOwnerAllowed consumers
## Lint Rules table in structure.mdskillagents; parity test (synced copy)
Plugin frontend-layers rule namesindex.mjsoxlint via catalog asset; parity test
Asset react-frontend-layerslint catalogreact Pack
Rule override frontend-layers[-<scope>]/<rule>: "off"project oxlint.local.tsproject maintainers (Q20)

Migration Ledger

Empty. No temporary seam is planned.

Dependency Graph and Waves

TnProvider TaskStorydepends_onwave_boundaryarchitecture_wave
T1IP-518IP-515—W1A1
T3IP-519IP-516—W1A1
T2IP-520IP-515T1W2A2
T4IP-521IP-516T3W2A2
T5IP-522IP-516T1, T2, T3W3A3
T6IP-523IP-517T4, T5W4A4

W1 runs T1 and T3 in parallel (different repositories). W2 runs T2 and T4 in parallel (different repositories). A task starts as soon as its own blockers pass their gates.

Testing Strategy

  • Skills: contract tests through node --test (RED first in T1, T2).
  • Plugin: Vitest spawns node_modules/.bin/oxlint 1.86.0 with a generated config enabling frontend-layers/* on temp fixture trees; asserts rule name and severity in JSON output.
  • Catalog: extend existing packaging and builder tests.
  • Parity: one Vitest test over the synced copy and the plugin export.
  • CI owns the full suite.

Risks and Mitigations

RiskMitigation
IP-506 (V4.6, in progress) edits the frontend Pack, catalog and wikiT4 and T6 rebase on main before edit and re-read packs.ts and skill-packs page
sync:skills fetches the pinned tag, not main; a new pin also pulls unrelated skills commitsT5 tags and pins the exact commit, records skills-sync.json, and lists every changed skill in its log
Fixture files trip HI lint or typecheckFixtures generated in temp dirs (plan-time choice)
Nested-scope plugin rename breaks documented overrideT2 documents frontend-layers-<scope>/<rule> in hi-cli managed-lint

Validation Gates

  • Task gates: each task's RED/GREEN plus bun run --cwd apps/cli check-types and bun run --cwd apps/cli lint when the task touches apps/cli.
  • Architecture checkpoints: see Architecture Waves.

Tasks

T1: Rewrite frontend-domain-structure around the Composition layer model

  • depends_on: []
  • location: /home/stefan/repos/skills/skills/agnostic/frontend/frontend-domain-structure/
  • owned_paths: [skills/agnostic/frontend/frontend-domain-structure/**, tests/frontend-domain-structure.contract.test.mjs] (skills repo)
  • read_dependencies: [SPEC AC-001–AC-008, ARCHITECTURE ARC-001–ARC-005, ARC-009, glossary]
  • shared_runtime_resources: skills repo main checkout (exclusive with T2 by dependency)
  • relevant_input_set: SPEC/ARCHITECTURE pointers; skills main HEAD before and after
  • wave_boundary: W1
  • description: Rewrite references/structure.md as authority (layer table, import rules, domains, entrypoints, layer root, ui/, server/, ## Lint Rules with seven ids and one-line meaning each), references/react/structure.md React placement, SKILL.md lint step and scoped application, agents/openai.yaml prompt; update the contract test first.
  • validation: cd /home/stefan/repos/skills && node --test tests/*.test.mjs
  • status: Done (Task Gate passed 2026-10-22)
  • log: Worker rewrote the skill; parent gate re-ran the suite (373/373) and committed skills main 6502c093.
  • files edited/created: skills/agnostic/frontend/frontend-domain-structure/{SKILL.md,agents/openai.yaml,references/structure.md,references/react/structure.md}, tests/frontend-domain-structure.contract.test.mjs
  • task_identity_mode: provider-task
  • backlog_item_id: IP-518
  • backlog_item_url: https://linear.app/devpunks/issue/IP-518
  • relation_mode: native
  • backlog_sync_skip_reason:
  • assigned_skills: [writing-for-agents, tdd, wait-what] (planning provenance also: frontend-domain-structure, the subject being rewritten)
  • implementation_skill_guidance:
    • skill: writing-for-agents applicable_behavior: Mandatory for every skill edit (user rule 2026-10-22). Description is a front-loaded context pointer; SKILL.md holds steps with checkable completion criteria; rules live once in references/structure.md; positive phrasing; prune no-ops and sediment.
    • skill: tdd applicable_behavior: Change the contract test first and capture its failure before editing skill text.
    • skill: wait-what applicable_behavior: Write in ASD-STE100 with the glossary terms Composition, Surface, Feature, Module, Integration.
  • tdd_status: required
  • tdd_target: Contract test asserts: structure.md lists the layer order, server/ boundary, ## Lint Rules with exactly the seven ids, composition/providers/, Surface subfolders, no peer-feature exception, mocks as integrations, index.ts/index.tsx entrypoints, layer root rule, ui/ monorepo rule, and no "These labels may differ between projects" (AC-001–AC-005); react/structure.md contains composition/providers/ and generateMetadata (AC-006); SKILL.md names frontend-layers and invoking-scope application and test/story files (AC-007); agents/openai.yaml names the composition layer (AC-008 part).
  • red_command: cd /home/stefan/repos/skills && node --test tests/frontend-domain-structure.contract.test.mjs
  • expected_red_failure: assertion on missing ## Lint Rules table / composition layer wording
  • green_command: cd /home/stefan/repos/skills && node --test tests/*.test.mjs
  • reason_not_testable:
  • red_evidence: node --test tests/frontend-domain-structure.contract.test.mjs → pass 0, fail 5 (missing ## Layers, missing ## Lint Rules, no composition/providers/, description lacks composition layer)
  • green_evidence: contract test pass 5/5; node --test tests/*.test.mjs → 373 pass, 0 fail (parent rerun)
  • codebase_design_notes: The Lint Rules table is the one public seam; keep it a plain Markdown table with rule id in the first column so T5 parses it without a custom format.
  • review_mode: cli
  • runtime_validation: not_required
  • runtime_target: not_applicable
  • runtime_evidence: not_applicable
  • runtime_cleanup: not_applicable
  • architecture_wave: A1
  • behavior_owner: skill reference
  • integration_surface: agents; T5 parity test
  • public_seam: ## Lint Rules table
  • topology_delta: route layer no longer owns shells/providers; composition added; integrations split from modules
  • forbidden_ownership: lint mechanics, Pack applicability
  • temporary_seams: none
  • responsibility_acceptance_criteria: [RAC-1, RAC-2]

T3: Build the frontend-layers oxlint plugin with per-rule fixture tests

  • depends_on: []
  • location: apps/cli/src/data/lint/frontend-layers/
  • owned_paths: [apps/cli/src/data/lint/frontend-layers/index.mjs, apps/cli/src/data/lint/frontend-layers/frontend-layers.test.ts]
  • read_dependencies: [SPEC AC-011–AC-016, ARCHITECTURE ARC-004, ARC-006, ARC-007, FLOW-001, apps/cli/src/data/lint/anti-slop/index.mjs (definePlugin pattern), @oxlint/plugins typings]
  • shared_runtime_resources: OS temp dir; each test owns a unique mkdtemp directory and removes it
  • relevant_input_set: SPEC/ARCHITECTURE pointers; apps/cli/package.json oxlint version
  • wave_boundary: W1
  • description: Implement the plugin with one shared classifier (layer root, layer, domain), one specifier resolver (relative + @/), one monorepo probe, and seven rules. Tests write a passing and a failing tree per rule, plus trees for AC-012 (no route layer), AC-013 (no src/, export from, import(), require), AC-014 (monorepo vs single repo), AC-015 (test/story files), AC-016 (off override).
  • validation: bun run --cwd apps/cli vitest run --config vitest.config.ts src/data/lint/frontend-layers/frontend-layers.test.ts; bun run --cwd apps/cli check-types
  • status: Done (Task Gate passed 2026-10-22)
  • log: Worker built 7 rules TDD rule by rule; parent removed the invented LICENSE (first-party code; anti-slop LICENSE exists only because it is vendored), reran 20/20 and check-types.
  • files edited/created: apps/cli/src/data/lint/frontend-layers/index.mjs, apps/cli/src/data/lint/frontend-layers/frontend-layers.test.ts
  • task_identity_mode: provider-task
  • backlog_item_id: IP-519
  • backlog_item_url: https://linear.app/devpunks/issue/IP-519
  • relation_mode: native
  • backlog_sync_skip_reason:
  • assigned_skills: [tdd, codebase-design, quality-types]
  • implementation_skill_guidance:
    • skill: tdd applicable_behavior: Start with layer-order failing tree; one rule at a time RED → GREEN through oxlint output.
    • skill: codebase-design applicable_behavior: Keep classifier, resolver and probe as private helpers behind the seven rule objects; rules stay thin.
    • skill: quality-types applicable_behavior: Test against real oxlint output, not a mocked rule context.
  • tdd_status: required
  • tdd_target: oxlint on a tree where src/features/a/index.ts imports @/composition/x reports frontend-layers/layer-order as error.
  • red_command: bun run --cwd apps/cli vitest run --config vitest.config.ts src/data/lint/frontend-layers/frontend-layers.test.ts
  • expected_red_failure: plugin module not found / zero diagnostics where one error expected
  • green_command: bun run --cwd apps/cli vitest run --config vitest.config.ts src/data/lint/frontend-layers/frontend-layers.test.ts
  • reason_not_testable:
  • red_evidence: tracer run failed (oxlint could not load the missing plugin → invalid JSON); then each rule RED with "Rule '' not found in plugin 'frontend-layers'"; AC-012/AC-013 branches proven by single mutations (1 failed / 19 passed each)
  • green_evidence: vitest run … frontend-layers.test.ts → 20 passed (parent rerun); check-types exit 0; bun run --cwd apps/cli lint exit 0
  • codebase_design_notes: Deep module: seven small rules over one classifier; the only interface is the plugin export. The monorepo probe caches per process. No project options (Q23, Q26).
  • review_mode: cli
  • runtime_validation: not_required
  • runtime_target: not_applicable
  • runtime_evidence: not_applicable
  • runtime_cleanup: not_applicable
  • architecture_wave: A1
  • behavior_owner: frontend-layers plugin
  • integration_surface: oxlint JS plugin loader
  • public_seam: plugin frontend-layers rule names
  • topology_delta: new rule-mechanics owner
  • forbidden_ownership: reading skill text; Pack applicability; project-configurable layer names
  • temporary_seams: none
  • responsibility_acceptance_criteria: [RAC-3]

T2: Route create-plan, implement-spec, ask-hi and hi-cli to the new layer model

  • depends_on: [T1]
  • location: /home/stefan/repos/skills/skills/agnostic/
  • owned_paths: [skills/agnostic/planning/create-plan/references/architecture-convergence.md, skills/agnostic/planning/implement-spec/references/architecture-conformance.md, skills/agnostic/cli/ask-hi/references/discovery-and-docs.md, skills/agnostic/cli/ask-hi/references/baseline.md, skills/agnostic/cli/hi-cli/references/managed-lint.md, tests/architecture-convergence.contract.test.mjs, tests/architecture-conformance.contract.test.mjs, tests/frontend-layer-consumers.contract.test.mjs (new; ask-hi and hi-cli assertions)] (skills repo)
  • read_dependencies: [T1 output, SPEC AC-008, ARCHITECTURE ARC-009, FLOW-002, apps/cli/src/registry/builders/lint.ts:215-218]
  • shared_runtime_resources: skills repo main checkout
  • relevant_input_set: T1 commit SHA
  • wave_boundary: W2
  • description: Name the composition layer and route frontend scope to the skill's layer table; ask-hi baseline lists react-frontend-layers on react; hi-cli managed-lint documents the asset and the frontend-layers-<scope>/<rule> override name in nested scopes. Do not restate rule ids outside the skill.
  • validation: cd /home/stefan/repos/skills && node --test tests/*.test.mjs
  • status: Done (Task Gate passed 2026-10-22)
  • log: Worker updated five consumer references and added a no-restatement guard test; parent corrected "nested Software Scope" to "Software Scope other than the repository root" (verified apps/cli/src/registry/builders/lint.ts pluginAlias), reran 379/379, committed skills main 82a7667b.
  • files edited/created: skills/agnostic/planning/create-plan/references/architecture-convergence.md, skills/agnostic/planning/implement-spec/references/architecture-conformance.md, skills/agnostic/cli/ask-hi/references/{discovery-and-docs,baseline}.md, skills/agnostic/cli/hi-cli/references/managed-lint.md, tests/{architecture-convergence,architecture-conformance,frontend-layer-consumers}.contract.test.mjs
  • task_identity_mode: provider-task
  • backlog_item_id: IP-520
  • backlog_item_url: https://linear.app/devpunks/issue/IP-520
  • relation_mode: native
  • backlog_sync_skip_reason:
  • assigned_skills: [writing-for-agents, tdd, wait-what]
  • implementation_skill_guidance:
    • skill: writing-for-agents applicable_behavior: Mandatory for every skill edit (user rule 2026-10-22). Change only the routing sentences; keep each reference's existing structure; each pointer names the skill with a front-loaded trigger; no rule list duplicated outside structure.md.
    • skill: tdd applicable_behavior: Add contract assertions for "composition" routing first and capture their failure.
    • skill: wait-what applicable_behavior: Use glossary terms exactly.
  • tdd_status: required
  • tdd_target: contract tests assert exact new strings: architecture-convergence.md frontend paragraph contains composition/; architecture-conformance.md frontend sentence contains composition/; ask-hi baseline.md contains react-frontend-layers; ask-hi discovery-and-docs.md frontend-domain-structure line contains composition; hi-cli managed-lint.md contains react-frontend-layers and frontend-layers-<scope>.
  • red_command: cd /home/stefan/repos/skills && node --test tests/architecture-convergence.contract.test.mjs tests/architecture-conformance.contract.test.mjs tests/frontend-layer-consumers.contract.test.mjs
  • expected_red_failure: assertions on missing composition/ and react-frontend-layers strings
  • green_command: cd /home/stefan/repos/skills && node --test tests/*.test.mjs
  • reason_not_testable:
  • red_evidence: 3 contract files → 10 tests, 5 fail (missing composition/ ×2, react-frontend-layers on react row, composition on discovery line, react-frontend-layers in managed-lint)
  • green_evidence: node --test tests/*.test.mjs → 379 pass, 0 fail (parent rerun)
  • codebase_design_notes: Consumers reference the skill seam; they never duplicate the rule list (Q21).
  • review_mode: cli
  • runtime_validation: not_required
  • runtime_target: not_applicable
  • runtime_evidence: not_applicable
  • runtime_cleanup: not_applicable
  • architecture_wave: A2
  • behavior_owner: consumer skills
  • integration_surface: planning and implementation agents
  • public_seam: unchanged
  • topology_delta: consumers point to the composition model
  • forbidden_ownership: defining layer rules
  • temporary_seams: none
  • responsibility_acceptance_criteria: [RAC-4]

T4: Register react-frontend-layers on the react Pack and prove its installation

  • depends_on: [T3]
  • location: apps/cli/src/data/catalog/
  • owned_paths: [apps/cli/src/data/catalog/lint.ts, apps/cli/src/data/catalog/packs.ts, apps/cli/src/registry/publisher/sources/lint.ts (scope transfer 2026-10-22, AC-010), apps/cli/src/registry/publisher/sources/lint.test.ts, apps/cli/src/registry/builders/lint.test.ts]
  • read_dependencies: [T3 plugin, SPEC AC-009, AC-010, ARCHITECTURE ARC-006, typescript-anti-slop entry lint.ts:99-132]
  • shared_runtime_resources: apps/cli/skills/** read by registry:build (exclusive with T5's sync)
  • relevant_input_set: packs.ts and lint.ts at main after IP-506
  • wave_boundary: W2
  • description: Add asset react-frontend-layers (jsPlugin frontend-layers at ./tools/oxlint/frontend-layers/index.mjs, sourceFiles for index.mjs only (first-party code; no LICENSE), seven rules at error, @oxlint/plugins devDependency as anti-slop does); add it to react Pack lintAssets; extend packaging and builder tests, including a builder test that a project oxlint.local.ts rule frontend-layers/<rule>: "off" (and frontend-layers-<scope>/<rule> in a nested scope) wins over the managed error (AC-016).
  • validation: bun run --cwd apps/cli vitest run --config vitest.config.ts src/registry/publisher/sources/lint.test.ts src/registry/builders/lint.test.ts; bun run --cwd apps/cli registry:build; bun run --cwd apps/cli check-types
  • status: Done (Task Gate passed 2026-10-22)
  • log: Worker registered the asset; first returned blocked on AC-010 (publisher gave source files a when only from language Packs); parent granted scope transfer of apps/cli/src/registry/publisher/sources/lint.ts; parent reran 50/50 and check-types; HI commit 3a166f88.
  • files edited/created: apps/cli/src/data/catalog/{lint,packs}.ts, apps/cli/src/registry/publisher/sources/{lint,lint.test}.ts, apps/cli/src/registry/builders/lint.test.ts
  • task_identity_mode: provider-task
  • backlog_item_id: IP-521
  • backlog_item_url: https://linear.app/devpunks/issue/IP-521
  • relation_mode: native
  • backlog_sync_skip_reason:
  • assigned_skills: [tdd, codebase-design]
  • implementation_skill_guidance:
    • skill: codebase-design applicable_behavior: Reuse the existing asset shape; add no new builder seam.
    • skill: tdd applicable_behavior: Add the packaging test for lint-react-frontend-layers first and capture its failure.
  • tdd_status: required (packaging test); recovered (builder AC-016 test, RED reconstructed against HEAD catalog)
  • tdd_target: lint-react-frontend-layers item copies index.mjs byte-identically to ~/{{scope.path}}/tools/oxlint/frontend-layers/ and the react Pack depends on it while frontend does not.
  • red_command: bun run --cwd apps/cli vitest run --config vitest.config.ts src/registry/publisher/sources/lint.test.ts
  • expected_red_failure: no lint-react-frontend-layers registry item
  • green_command: bun run --cwd apps/cli vitest run --config vitest.config.ts src/registry/publisher/sources/lint.test.ts src/registry/builders/lint.test.ts
  • reason_not_testable:
  • red_evidence: packaging: Error: Missing lint-react-frontend-layers (1 failed, 5 passed); after catalog edit, missing when: { technologies: ["react"] }; builder (recovered): against HEAD catalog 2 failed expected { reported: false, status: 0 } to equal { reported: true, status: 1 }
  • green_evidence: publisher+builder+packs tests 24/24 (worker); parent rerun publisher+builder+materialize+data/lint 50/50; registry:build 182 items, lint-react-frontend-layers/index.mjs meta when: {technologies:["react"]}, anti-slop meta unchanged; check-types 0; lint 0
  • codebase_design_notes: Reuse the anti-slop asset shape; no builder change (Q33 rejected per-package settings). Execution amendment: the publisher limited source-file copies only by language Packs, so a detected-Pack asset would copy into every scope; source files now fall back to the existing devDependency condition when no language Pack selects the asset (AC-010).
  • review_mode: cli
  • runtime_validation: not_required
  • runtime_target: not_applicable
  • runtime_evidence: not_applicable
  • runtime_cleanup: not_applicable
  • architecture_wave: A2
  • behavior_owner: lint catalog
  • integration_surface: registry publisher and installer
  • public_seam: asset id react-frontend-layers
  • topology_delta: react Pack gains the asset
  • forbidden_ownership: rule mechanics; frontend Pack membership
  • temporary_seams: none
  • responsibility_acceptance_criteria: [RAC-5]

T5: Sync the skills and prove skill–plugin rule parity

  • depends_on: [T1, T2, T3]
  • location: apps/cli/
  • owned_paths: [apps/cli/skills/** (written only by sync:skills), apps/cli/scripts/sync-skills-repo.mjs (defaultRepositoryRef, defaultRepositoryCommit), pin quotes in apps/wiki/content/docs/project/runbooks/hi-cli-scaffolding.md, apps/cli/src/data/lint/frontend-layers/skill-parity.test.ts; skills repo tag sync/frontend-composition-layer-<sha12>]
  • read_dependencies: [skills main SHA after T2, T3 plugin, SPEC AC-017, ARCHITECTURE ARC-008, Q35-R5]
  • shared_runtime_resources: network access to the skills remote; apps/cli/skills/** (exclusive: do not run while T4 runs registry:build)
  • relevant_input_set: sync receipt SHA
  • wave_boundary: W3
  • description: Push skills main and tag it sync/frontend-composition-layer-<sha12>; set defaultRepositoryRef and defaultRepositoryCommit in apps/cli/scripts/sync-skills-repo.mjs to that tag and commit and update every quote of the old pin (grep 022a4851); run bun run sync:skills; verify apps/cli/.devpunks-cache/skills-sync.json names the tagged commit; add the parity test parsing the ## Lint Rules table in apps/cli/skills/agnostic/frontend/frontend-domain-structure/references/structure.md and comparing ids with the plugin's exported rule names; prove a mismatch fails through a pure parser test on an in-memory table with one id removed (no edit to synced files).
  • validation: bun run --cwd apps/cli vitest run --config vitest.config.ts src/data/lint/frontend-layers/skill-parity.test.ts; bun run --cwd apps/cli check-types
  • status: Done (Task Gate passed 2026-10-22)
  • log: Parent pushed skills 82a7667 and tag sync/frontend-composition-layer-82a7667bef26; worker bumped pin, synced (9 expected files, byte-identical to git archive 82a7667), added parity test; parent reran 26/26; HI commit e699ee79. skill-graph.mdx snapshot SHA handed to T6.
  • files edited/created: apps/cli/scripts/sync-skills-repo.mjs (pin), apps/cli/skills/** (9 synced files), apps/cli/src/data/lint/frontend-layers/skill-parity.test.ts, apps/wiki/content/docs/project/runbooks/hi-cli-scaffolding.md (current-pin sentence)
  • task_identity_mode: provider-task
  • backlog_item_id: IP-522
  • backlog_item_url: https://linear.app/devpunks/issue/IP-522
  • relation_mode: native
  • backlog_sync_skip_reason:
  • assigned_skills: [tdd]
  • implementation_skill_guidance:
    • skill: tdd applicable_behavior: Write the parity test before the sync and capture its failure against the old synced copy.
  • tdd_status: required
  • tdd_target: parity test passes only when the synced table ids equal the seven plugin rule names.
  • red_command: bun run --cwd apps/cli vitest run --config vitest.config.ts src/data/lint/frontend-layers/skill-parity.test.ts
  • expected_red_failure: no ## Lint Rules table in the pre-sync copy
  • green_command: bun run --cwd apps/cli vitest run --config vitest.config.ts src/data/lint/frontend-layers/skill-parity.test.ts
  • reason_not_testable:
  • red_evidence: pre-sync: 1 failed, 1 passed — expected [] to strictly equal [ 'known-top-level', …(6) ] (old copy has no ## Lint Rules)
  • green_evidence: post-sync 2/2; receipt apps/cli/.devpunks-cache/skills-sync.json commit 82a7667bef26…; skills/plugin/prompt tests 79/79 (worker), parent rerun 26/26; check-types 0; lint 0
  • codebase_design_notes: The test is the only module that reads both sides; it parses the first column of the table only.
  • review_mode: cli
  • runtime_validation: not_required
  • runtime_target: not_applicable
  • runtime_evidence: not_applicable
  • runtime_cleanup: not_applicable
  • architecture_wave: A3
  • behavior_owner: parity test
  • integration_surface: CI
  • public_seam: unchanged
  • topology_delta: parity edge added
  • forbidden_ownership: editing synced skill files by hand
  • temporary_seams: none
  • responsibility_acceptance_criteria: [RAC-6]

T6: Document the layer model and lint asset in the wiki and Baseline changelog

  • depends_on: [T4, T5]
  • location: apps/wiki/content/docs/, repository root
  • owned_paths: [apps/wiki/content/docs/harness/skills-and-packs/skill-graph.mdx (snapshot SHA, added 2026-10-22), apps/wiki/content/docs/harness/skills-and-packs/skill-packs.mdx, apps/wiki/content/docs/harness/skills-and-packs/skill-reference.mdx, apps/wiki/content/docs/harness/validation-and-tools/hooks.mdx, apps/wiki/content/docs/project/runbooks/hi-cli-scaffolding.md, apps/wiki/content/docs/harness/index.mdx, apps/wiki/content/docs/project/runbooks/index.mdx, BASELINE_CHANGELOG.md, apps/wiki/log.md]
  • read_dependencies: [T4, T5 results, SPEC AC-018, Wiki Context pages]
  • shared_runtime_resources: none
  • relevant_input_set: main after IP-506 for the same wiki pages
  • wave_boundary: W4
  • description: Add react-frontend-layers to the Pack lint asset table and managed lint list; update the skill reference line; note the override name in the runbook; add a BASELINE_CHANGELOG.md Unreleased entry with compatibility; commit, then run release classification (it compares HEAD).
  • validation: bun run --cwd apps/wiki check:content && bun run --cwd apps/wiki check:health; node apps/cli/scripts/classify-release-impact.mjs --base origin/main --head HEAD
  • status: Done (Task Gate passed 2026-10-22)
  • log: Worker updated skill-packs, skill-reference, skill-graph (snapshot 82a7667bef26, new hi-cli → frontend-domain-structure edge), hooks, runbook, BASELINE_CHANGELOG Unreleased, log.md; parent reran wiki checks (no new finding) and committed aa0f5870; release classification baseline.
  • files edited/created: BASELINE_CHANGELOG.md, apps/wiki/content/docs/harness/skills-and-packs/{skill-packs,skill-reference,skill-graph}.mdx, apps/wiki/content/docs/harness/validation-and-tools/hooks.mdx, apps/wiki/content/docs/project/runbooks/hi-cli-scaffolding.md, apps/wiki/log.md
  • task_identity_mode: provider-task
  • backlog_item_id: IP-523
  • backlog_item_url: https://linear.app/devpunks/issue/IP-523
  • relation_mode: native
  • backlog_sync_skip_reason:
  • assigned_skills: [docs-ingest-phase, wait-what, writing-for-agents]
  • implementation_skill_guidance:
    • skill: docs-ingest-phase applicable_behavior: Update owning pages and section indexes; append one log.md entry.
    • skill: wait-what applicable_behavior: Use glossary terms exactly.
    • skill: writing-for-agents applicable_behavior: Apply to any agent-consumed text this task touches (wiki pages read by agents through pointers); positive phrasing, single source of truth, no restated config.
  • tdd_status: not_applicable
  • tdd_target: Wiki health and content checks plus release classification output.
  • red_command:
  • expected_red_failure:
  • green_command: bun run --cwd apps/wiki check:content && bun run --cwd apps/wiki check:health
  • reason_not_testable: docs-only and changelog bookkeeping
  • red_evidence:
  • green_evidence: check:content current; check:health 10 pre-existing findings, identical before/after; classify-release-impact --base origin/main --head HEAD → releaseKind: baseline, reason baseline-changelog
  • codebase_design_notes: not_applicable
  • review_mode: cli
  • runtime_validation: not_required
  • runtime_target: not_applicable
  • runtime_evidence: not_applicable
  • runtime_cleanup: not_applicable
  • architecture_wave: A4
  • behavior_owner: wiki and changelog
  • integration_surface: operators
  • public_seam: unchanged
  • topology_delta: none
  • forbidden_ownership: defining layer rules
  • temporary_seams: none
  • responsibility_acceptance_criteria: [RAC-7]

Backlog Sync

  • Mode: provider-task, readback 2026-10-22: Epic IP-514 (parent IP-456); Stories IP-515, IP-516, IP-517 in V4.7 Frontend Composition Layer; Tasks IP-518–IP-523 in the same milestone, assigned to the authenticated user; native blockers IP-518→IP-520, IP-519→IP-521, {IP-518, IP-519, IP-520}→IP-522, {IP-521, IP-522}→IP-523. Authority links point to spec eb647c05 and architecture f5991916.

Unresolved Questions

  • None.

On this page