WORK-062
ID:WORK-062Status:done

Inspector Metadata Audit

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

Summary

Add a --audit-meta flag to refrakt inspect that verifies metadata configuration across all runes: which meta types are in use, which status/category fields have sentiment maps, and whether the theme provides CSS for all meta types and sentiments.

Acceptance Criteria

  • refrakt inspect --audit-meta shows meta types in use with rune counts
  • Audit shows sentiment coverage — which fields with sentiment maps vs. which lack them
  • Audit checks theme CSS for [data-meta-type], [data-meta-sentiment], and [data-meta-rank] selectors
  • Missing theme rules are flagged as warnings
  • Output is clear and actionable for theme developers
  • --json flag works with --audit-meta for programmatic use

Approach

Extend the existing inspector audit infrastructure. Walk all rune configs, collect structure entries with metaType, group by type/sentiment. Compare against CSS selectors found in the theme's stylesheets. Report gaps.

References

History

  1. 59ded4a
    Content edited
  2. f262d7b
    source+SPEC-024
  3. 0f16019
    statusreadydone
    • ☑ `refrakt inspect --audit-meta` shows meta types in use with rune counts
    • ☑ Audit shows sentiment coverage — which fields with sentiment maps vs. which lack them
    • ☑ Audit checks theme CSS for `[data-meta-type]`, `[data-meta-sentiment]`, and `[data-meta-rank]` selectors
    • +3 more criteria
  4. a129a9e
    milestone+v0.9.0
  5. a333007
    Created (ready, medium, simple, cli, metadata)