WORK-705
ID:WORK-705Status:ready

Generate a per-rune intro record from each reference page and the rune's resolution

SPEC-187 D5: the rune intro renders from data. One record per rune, beside the attribute records scripts/generate-rune-attributes.mjs already writes.

Priority:mediumComplexity:moderateMilestone:v0.48.0Source:SPEC-187
changeset-release/main View source

Criteria completion

Criteria completion: 0 of 6 (0%) checked; tracking started on Nov 3, no incremental history yet0%25%50%75%100%Nov 3Nov 4

Tracking started Nov 3 — check back for trends.

Branches 2
changeset-release/main current ready
main doneclaude/composition-usage-rune-pages-c87ar6 done
History 3
  1. fe601a4
    Created (ready)by github-actions[bot]
  2. 506a927
    Content editedby Claude
    plan: SPEC-187 decides the schema.org badge and the Install drawer
  3. f91f637
    Content editedby Claude
    plan: v0.48.0 — compositions go live, and the rune page intro (SPEC-187)

Acceptance Criteria

  • Each rune with a reference page has one record with title, description, package, composed, status, schemaType and source, and no install field (D8)
  • title, description and status are read from the reference page's frontmatter, not repeated anywhere else
  • composed and source come from how the rune resolves on the main site: a composition's .md definition, or a native rune's schema file, as a repo-relative path
  • schemaType is the type the rune's resolved schema row publishes with its defaults, the row refrakt inspect <rune> --site main prints; it is the default when an attribute changes the type or can switch it off, and empty when the rune publishes nothing (D9)
  • The drift check fails when the committed data differs from a fresh run, as it does for the attribute data
  • A test covers one core rune, one native plugin rune, one composed rune, and one rune that publishes no structured data

Approach

Extend generate-rune-attributes.mjs or add a sibling; SPEC-187 leaves the choice open. Reading resolution from the loaded plugins, not a list, means WORK-702 to WORK-704 flip composed with no edit here.

References

  • SPEC-187: D4, D5, D8, D9.
  • SPEC-128: the generated attribute data.
  • SPEC-130: D5, visibility in place of validation.