WORK-068
ID:WORK-068Status:done

Inspector Dimensions Audit

Priority:mediumComplexity:simpleMilestone:v0.9.0Source:SPEC-025

Criteria completion

Criteria completion: 7 of 7 (100%) checked; history from Mar 24 to Mar 240%25%50%75%100%Mar 24Mar 24
Branches 3
History 5
  1. e900a90
    Created (done)by bjornolofandersson
  2. f262d7b
    Content editedby Claude
  3. ef043bd
    • ☑ `refrakt inspect --audit-dimensions` shows surface assignments with rune counts and unassigned runes
    • ☑ Audit shows density coverage across all three levels
    • ☑ Audit shows section anatomy coverage for all 6 section roles
    • ☑ Audit shows interactive state coverage
    • ☑ Audit shows media slot coverage for all 5 slot types
    • ☑ Community runes with dimensions but no surface assignment are flagged
    • ☑ `--json` flag works with `--audit-dimensions`
    by Claude
  4. a129a9e
    Content editedby Claude
  5. a333007
    Created (ready)by Claude
    Add work items for SPEC-024 (Metadata) and SPEC-025 (Universal Theming)

Summary

Add a --audit-dimensions flag to refrakt inspect that verifies universal theming dimension coverage: surface assignments, density theming, section anatomy theming, interactive state theming, and media slot theming. Flags community runes missing surface assignments and any dimension values without corresponding theme CSS.

Acceptance Criteria

  • refrakt inspect --audit-dimensions shows surface assignments with rune counts and unassigned runes
  • Audit shows density coverage across all three levels
  • Audit shows section anatomy coverage for all 6 section roles
  • Audit shows interactive state coverage
  • Audit shows media slot coverage for all 5 slot types
  • Community runes with dimensions but no surface assignment are flagged
  • --json flag works with --audit-dimensions

Approach

Extend the inspector audit. Walk all rune configs collecting dimension declarations. Walk theme CSS collecting [data-density], [data-section], [data-state], [data-media] selectors. Cross-reference and report gaps.

References

  • SPEC-025 (Universal Theming Dimensions — Inspector Audit)