Section 12 - intel-package design-system recon tier (INV-8c)
Goal
/intel-package recon for a UI section carries a design-system pass, so UI dossiers ship component-pattern
- design-language intelligence. The tier fires ONLY on frontend targets; a backend project never sees it.
Implementation Sketch
/intel-package tiers are a registry-inverted, target-kind-aware system: tier_selection.active_tiers(kind)
(scripts/intel_package_runtime/tier_selection.py:26) is a PURE INVERSION of
tiers.py:REGISTRY[tier]["owning_target_kinds"] — adding one REGISTRY entry automatically lights it for the
owning target kinds, no other code change.
- Add a
design-systementry toscripts/intel_package_runtime/tiers.py:REGISTRYwithowning_target_kindsfor UI-bearing kinds (plan-section,symbol-set,subsystem), asource_querymining component-pattern- design-language intelligence (component-import graph cypher;
similar <component>for prior-art components; design-token/theme symbol inventory),row_schema,tier_class,selector,dark_condition.
- design-language intelligence (component-import graph cypher;
- Gate it to fire ONLY on frontend targets (detection-keyed, analogous to the bug-only
_DEFECT_VIRTUAL_TIERinjection attier_selection.py:22/41) using the s-10has_web_frontendsignal. - The
package.md.j2template renders every active tier; add a render guard so the pass shows only when active.
Spec & Rule References
INV-8 (mission). script-first.md §11 (frontend-gated, domain-agnostic). Depends on s-10 (detection signal).
Layer Coverage
Tooling-scope: L1-L11 N/A. L12 = active_tiers includes design-system for UI kinds on a frontend target
- absent otherwise + a real
/intel-packageUI dossier carrying the pass. pytest gate:scripts/intel_package_runtime/tests/(per-kind active-tiers assertions + selector dark-predicate test).
Work Items
- Add a design-system entry to intel_package_runtime/tiers.py:REGISTRY (owning_target_kinds for UI-bearing kinds, source_query mining component-pattern + design-language intelligence, selector, dark_condition).
- Gate it to fire only on frontend targets (detection-keyed, analogous to _DEFECT_VIRTUAL_TIER); add a package.md.j2 render guard.
Fresh intel (regenerated)
{ “schema_version”: 1, “target”: { “kind”: “plan-section”, “ref”: “installable-harness/s-452600f2” }, “generated_at”: “2026-06-25T18:57:54.473158+00:00”, “graph_state”: { “head_sha”: “2f65ef16”, “last_code_import_at”: “2026-06-25T18:54:38.987Z”, “embedding_stale”: true, “insights_stale”: true, “cpg_stale”: false }, “surfaces”: {}, “summary”: “intel-package[plan-section:installable-harness/s-452600f2] agent-authored dossier”, “degraded”: false, “dossier”: { “objective_symbols”: [], “tiers”: {}, “agent_authored”: true, “difficulty”: { “class”: “routine”, “research_online”: false, “research_mode”: “auto”, “signals”: [], “plan_dir”: “/home/eric/projects/ori_lang/plans/installable-harness” } } }
(full dossier: design-system-intel-tier—s-452600f2.intel.json)