research-document THY-WC-0001
Web Component Framework Theory Registry Update
Web Component Framework Theory Registry Update
Affected principles
PR-WC-001: Native first, custom when justified
- Status: Strengthened
- Confidence change: Medium -> High
- Update: Native semantic HTML and native controls should remain the default author-facing contract unless a measurable requirement cannot be met.
PR-WC-002: Encapsulation is category-dependent
- Status: Strengthened
- Confidence change: Medium -> High
- Update: DOM strategy must vary by component class. Shadow DOM is a tool, not a doctrine.
PR-WC-003: Visual identity must not own behavior
- Status: Strengthened
- Confidence change: Medium -> High
- Update: Token and theme layers should flow into components through narrow public styling contracts rather than direct component-internals control.
PR-WC-004: Machine-readable contracts are required for long-lived reuse
- Status: New candidate principle
- Confidence: High
- Update: CEM, API diffing, metadata linting, and generated docs are first-class architecture, not optional tooling.
PR-WC-005: Accessibility is a shared contract
- Status: Strengthened
- Confidence change: Medium-high -> High
- Update: Component internals can guarantee intrinsic behavior, but product semantics, labeling, hierarchy, and instructions remain partly consumer-owned.
Invalidated predictions
- Invalidated: One framework or base class should define every reusable artifact.
- Invalidated: The best shared boundary is "all UI becomes custom elements."
- Invalidated: Theme flexibility alone can absorb most redesign pressure.
New theory candidates
- Reuse durability increases when the smallest public contract is semantic and behavioral, while visual contracts remain layered and explicit.
- Shadow DOM improves long-term maintainability only when the component has protected internal invariants worth the styling and composition cost.
- AI-maintainable component systems require machine-readable contracts and package guardrails, not just human-authored docs.