WORK-068
ID:WORK-068Status:done

Inspector Dimensions Audit

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

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

History

  1. 59ded4a
    Content edited
  2. f262d7b
    source+SPEC-025
  3. ef043bd
    statusreadydone
    • ☑ `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
    • +4 more criteria
  4. a129a9e
    milestone+v0.9.0
  5. a333007
    Created (ready, medium, simple, cli, dimensions)