Frontend Composition Layer Plan
Plan: Frontend Composition Layer
Context Pointers
| Pointer | Identity | Freshness rule |
|---|---|---|
| SPEC | SPEC.md @ eb647c05, sha256 73d1b07abac6dc6b… | Re-verify bytes before each wave; a changed spec stops dispatch |
| ARCHITECTURE | ARCHITECTURE.md @ f5991916, sha256 ca84ba32d9520cc9… | Same |
| Grill | status and log @ fad22f140861 (Q1–Q35, Q35-R5, Glossary Q15) | Decisions change only through requirements-grill |
| Glossary | domains/frontend-composition-layer-glossary.mdx | Use its terms exactly |
| Skills source | /home/stefan/repos/skills branch main @ 21a3cac at planning time | Verify git -C /home/stefan/repos/skills branch --show-current = main before T1, T2 |
| Backlog | Linear Epic IP-514, milestone V4.7 Frontend Composition Layer | Provider 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-structureputs 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
frontendPack has no detection data; thereactPack carriesreact-coreandreact-you-might-not-need-an-effect(apps/cli/src/data/catalog/packs.ts:328). typescript-anti-slopis 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
| Decision | Source |
|---|---|
Layer order app/routes → composition → features → modules → integrations → ui; server/ outside | Q1, Q12, Q13, Q23 |
Seven rules: layer-order, route-imports, no-peer-feature, public-entrypoint, no-prototype-folder, known-top-level, ui-placement | Q11, Q31 |
Asset on react Pack; plugin source apps/cli/src/data/lint/frontend-layers/index.mjs | Q19, Q31 |
Parity test reads apps/cli/skills/agnostic/frontend/frontend-domain-structure/references/structure.md | Q35-R5 |
| Plugin tests run real oxlint on pass/fail fixture trees | Q34 |
One HI branch t3/frontend-domain-structure-layers; skills commits on main | SPEC 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 imports | Execution detail within Q34 |
Plan-time choice: catalog asset declares frontend-layers/<rule>: "error" for all seven rules, as typescript-anti-slop does | Execution detail within Q16, Q31 |
Assumptions and Constraints
-
User rule, 2026-10-22: every prompt and skill edit goes through
writing-for-agents. -
oxlint1.86.0 and@oxlint/pluginsare alreadyapps/clidevDependencies (apps/cli/package.json:58,69). -
apps/cliVitest includessrc/**/*.test.ts(apps/cli/vitest.config.ts:11). -
Root
AGENTS.md: skills change only onmainof the skills repository;bun run sync:skillsthen writesapps/cli/skillsand prints a receipt SHA. -
Release classification: changed
BASELINE_CHANGELOG.mdselects baseline.
Codebase Findings
- Lint asset definition fields and
sourceFilescopying: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.0index.d.ts:3801-3823(filenameabsolute),:1763-1821,:2520-2570. - Skills contract tests:
/home/stefan/repos/skills/tests/{frontend-domain-structure,architecture-convergence,architecture-conformance}.contract.test.mjs; runnernode --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 againstpacks.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 againstpublisher/sources/lint.ts:100-105. Shapes T4, T6. - CLI scaffolding runbook, "Applies when" scaffolding and managed lint change: scope selection and
oxlint.local.tsownership. Fresh; verified againstbuilders/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.
- Skill packs, selected by search "lint asset": Pack lint asset table lists
- 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;frontendPack listing the asset.
Responsibility Acceptance Criteria
| criterion_id | Owner | Observable assertion | Evidence | due_architecture_wave |
|---|---|---|---|---|
| RAC-1 | skill structure.md | Contains 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.mjs | A1 |
| RAC-2 | skill react/structure.md, SKILL.md | React placement and scoped application (AC-006, AC-007) | cd /home/stefan/repos/skills && node --test tests/frontend-domain-structure.contract.test.mjs | A1 |
| RAC-3 | plugin | Each 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-layers | A1 |
| RAC-4 | consumer skills | Consumers describe the model consistently (AC-008) | cd /home/stefan/repos/skills && node --test tests/*.test.mjs | A2 |
| RAC-5 | catalog | Asset 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.ts | A2 |
| RAC-6 | parity test | Equal 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.ts | A3 |
| RAC-7 | wiki and changelog | Pages 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 HEAD | A4 |
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 emptyPublic Seam Contract
| Seam | Owner | Allowed consumers |
|---|---|---|
## Lint Rules table in structure.md | skill | agents; parity test (synced copy) |
Plugin frontend-layers rule names | index.mjs | oxlint via catalog asset; parity test |
Asset react-frontend-layers | lint catalog | react Pack |
Rule override frontend-layers[-<scope>]/<rule>: "off" | project oxlint.local.ts | project maintainers (Q20) |
Migration Ledger
Empty. No temporary seam is planned.
Dependency Graph and Waves
| Tn | Provider Task | Story | depends_on | wave_boundary | architecture_wave |
|---|---|---|---|---|---|
| T1 | IP-518 | IP-515 | — | W1 | A1 |
| T3 | IP-519 | IP-516 | — | W1 | A1 |
| T2 | IP-520 | IP-515 | T1 | W2 | A2 |
| T4 | IP-521 | IP-516 | T3 | W2 | A2 |
| T5 | IP-522 | IP-516 | T1, T2, T3 | W3 | A3 |
| T6 | IP-523 | IP-517 | T4, T5 | W4 | A4 |
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/oxlint1.86.0 with a generated config enablingfrontend-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
| Risk | Mitigation |
|---|---|
IP-506 (V4.6, in progress) edits the frontend Pack, catalog and wiki | T4 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 commits | T5 tags and pins the exact commit, records skills-sync.json, and lists every changed skill in its log |
| Fixture files trip HI lint or typecheck | Fixtures generated in temp dirs (plan-time choice) |
| Nested-scope plugin rename breaks documented override | T2 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-typesandbun run --cwd apps/cli lintwhen the task touchesapps/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
maincheckout (exclusive with T2 by dependency) - relevant_input_set: SPEC/ARCHITECTURE pointers; skills
mainHEAD before and after - wave_boundary: W1
- description: Rewrite
references/structure.mdas authority (layer table, import rules, domains, entrypoints, layer root,ui/,server/,## Lint Ruleswith seven ids and one-line meaning each),references/react/structure.mdReact placement,SKILL.mdlint step and scoped application,agents/openai.yamlprompt; 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
main6502c093. - 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-agentsapplicable_behavior: Mandatory for every skill edit (user rule 2026-10-22). Description is a front-loaded context pointer;SKILL.mdholds steps with checkable completion criteria; rules live once inreferences/structure.md; positive phrasing; prune no-ops and sediment. - skill:
tddapplicable_behavior: Change the contract test first and capture its failure before editing skill text. - skill:
wait-whatapplicable_behavior: Write in ASD-STE100 with the glossary terms Composition, Surface, Feature, Module, Integration.
- skill:
- tdd_status: required
- tdd_target: Contract test asserts:
structure.mdlists the layer order,server/boundary,## Lint Ruleswith exactly the seven ids,composition/providers/, Surface subfolders, no peer-feature exception, mocks as integrations,index.ts/index.tsxentrypoints, layer root rule,ui/monorepo rule, and no "These labels may differ between projects" (AC-001–AC-005);react/structure.mdcontainscomposition/providers/andgenerateMetadata(AC-006);SKILL.mdnamesfrontend-layersand invoking-scope application and test/story files (AC-007);agents/openai.yamlnames 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 Rulestable /compositionlayer 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, nocomposition/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 Rulestable - 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/pluginstypings] - shared_runtime_resources: OS temp dir; each test owns a unique
mkdtempdirectory and removes it - relevant_input_set: SPEC/ARCHITECTURE pointers;
apps/cli/package.jsonoxlint 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 (nosrc/,export from,import(),require), AC-014 (monorepo vs single repo), AC-015 (test/story files), AC-016 (offoverride). - 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:
tddapplicable_behavior: Start withlayer-orderfailing tree; one rule at a time RED → GREEN through oxlint output. - skill:
codebase-designapplicable_behavior: Keep classifier, resolver and probe as private helpers behind the seven rule objects; rules stay thin. - skill:
quality-typesapplicable_behavior: Test against real oxlint output, not a mocked rule context.
- skill:
- tdd_status: required
- tdd_target: oxlint on a tree where
src/features/a/index.tsimports@/composition/xreportsfrontend-layers/layer-orderas 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 (
oxlintcould 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-typesexit 0;bun run --cwd apps/cli lintexit 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-layersplugin - integration_surface: oxlint JS plugin loader
- public_seam: plugin
frontend-layersrule 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
maincheckout - 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-hibaseline listsreact-frontend-layersonreact;hi-climanaged-lint documents the asset and thefrontend-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.tspluginAlias), reran 379/379, committed skillsmain82a7667b. - 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-agentsapplicable_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 outsidestructure.md. - skill:
tddapplicable_behavior: Add contract assertions for "composition" routing first and capture their failure. - skill:
wait-whatapplicable_behavior: Use glossary terms exactly.
- skill:
- tdd_status: required
- tdd_target: contract tests assert exact new strings:
architecture-convergence.mdfrontend paragraph containscomposition/;architecture-conformance.mdfrontend sentence containscomposition/;ask-hibaseline.mdcontainsreact-frontend-layers;ask-hidiscovery-and-docs.mdfrontend-domain-structure line containscomposition;hi-climanaged-lint.mdcontainsreact-frontend-layersandfrontend-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/andreact-frontend-layersstrings - 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-layerson react row,compositionon discovery line,react-frontend-layersin 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-slopentrylint.ts:99-132] - shared_runtime_resources:
apps/cli/skills/**read byregistry:build(exclusive with T5's sync) - relevant_input_set:
packs.tsandlint.tsatmainafter IP-506 - wave_boundary: W2
- description: Add asset
react-frontend-layers(jsPluginfrontend-layersat./tools/oxlint/frontend-layers/index.mjs,sourceFilesforindex.mjsonly (first-party code; no LICENSE), seven rules aterror,@oxlint/pluginsdevDependency as anti-slop does); add it toreactPacklintAssets; extend packaging and builder tests, including a builder test that a projectoxlint.local.tsrulefrontend-layers/<rule>: "off"(andfrontend-layers-<scope>/<rule>in a nested scope) wins over the managederror(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
whenonly from language Packs); parent granted scope transfer ofapps/cli/src/registry/publisher/sources/lint.ts; parent reran 50/50 andcheck-types; HI commit3a166f88. - 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-designapplicable_behavior: Reuse the existing asset shape; add no new builder seam. - skill:
tddapplicable_behavior: Add the packaging test forlint-react-frontend-layersfirst and capture its failure.
- skill:
- tdd_status: required (packaging test); recovered (builder AC-016 test, RED reconstructed against HEAD catalog)
- tdd_target:
lint-react-frontend-layersitem copiesindex.mjsbyte-identically to~/{{scope.path}}/tools/oxlint/frontend-layers/and thereactPack depends on it whilefrontenddoes 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-layersregistry 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, missingwhen: { technologies: ["react"] }; builder (recovered): against HEAD catalog 2 failedexpected { 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:build182 items,lint-react-frontend-layers/index.mjsmetawhen: {technologies:["react"]}, anti-slop meta unchanged;check-types0;lint0 - 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:
reactPack gains the asset - forbidden_ownership: rule mechanics;
frontendPack 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 bysync:skills),apps/cli/scripts/sync-skills-repo.mjs(defaultRepositoryRef,defaultRepositoryCommit), pin quotes inapps/wiki/content/docs/project/runbooks/hi-cli-scaffolding.md,apps/cli/src/data/lint/frontend-layers/skill-parity.test.ts; skills repo tagsync/frontend-composition-layer-<sha12>] - read_dependencies: [skills
mainSHA 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 runsregistry:build) - relevant_input_set: sync receipt SHA
- wave_boundary: W3
- description: Push skills
mainand tag itsync/frontend-composition-layer-<sha12>; setdefaultRepositoryRefanddefaultRepositoryCommitinapps/cli/scripts/sync-skills-repo.mjsto that tag and commit and update every quote of the old pin (grep022a4851); runbun run sync:skills; verifyapps/cli/.devpunks-cache/skills-sync.jsonnames the tagged commit; add the parity test parsing the## Lint Rulestable inapps/cli/skills/agnostic/frontend/frontend-domain-structure/references/structure.mdand 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
82a7667and tagsync/frontend-composition-layer-82a7667bef26; worker bumped pin, synced (9 expected files, byte-identical togit archive 82a7667), added parity test; parent reran 26/26; HI commite699ee79.skill-graph.mdxsnapshot 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:
tddapplicable_behavior: Write the parity test before the sync and capture its failure against the old synced copy.
- skill:
- 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 Rulestable 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.jsoncommit82a7667bef26…; skills/plugin/prompt tests 79/79 (worker), parent rerun 26/26;check-types0;lint0 - 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:
mainafter IP-506 for the same wiki pages - wave_boundary: W4
- description: Add
react-frontend-layersto the Pack lint asset table and managed lint list; update the skill reference line; note the override name in the runbook; add aBASELINE_CHANGELOG.mdUnreleasedentry with compatibility; commit, then run release classification (it comparesHEAD). - 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, newhi-cli→frontend-domain-structureedge), hooks, runbook, BASELINE_CHANGELOG Unreleased, log.md; parent reran wiki checks (no new finding) and committedaa0f5870; release classificationbaseline. - 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-phaseapplicable_behavior: Update owning pages and section indexes; append onelog.mdentry. - skill:
wait-whatapplicable_behavior: Use glossary terms exactly. - skill:
writing-for-agentsapplicable_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.
- skill:
- 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:contentcurrent;check:health10 pre-existing findings, identical before/after;classify-release-impact --base origin/main --head HEAD→releaseKind: baseline, reasonbaseline-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 inV4.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 speceb647c05and architecturef5991916.
Unresolved Questions
- None.