Skip to content

feat(contracts): add one shape and primitive registry - #11

Merged
cursor[bot] merged 2 commits into
mainfrom
cursor/pr-registry-85a6
Oct 4, 2026
Merged

cursor[bot] merged 2 commits into
mainfrom
cursor/pr-registry-85a6

Conversation

@twidtwid

@twidtwid twidtwid commented Oct 4, 2026

Copy link
Copy Markdown
Owner

Why

Adding a shape still means editing the skill, a reference file, an example, the gallery, the harness map, and a test count by hand. Those lists drift. examples/podcast.html still said nine shapes and eleven examples.

What changed

  • contracts/shapes.json and contracts/primitives.json own the twelve shapes and ten primitives.
  • scripts/check-contracts.mjs fails when SKILL.md, references, examples, or the harness disagree with those files.
  • The harness now loads the JSON. Podcast copy says twelve and ten.

Scope

This PR only adds the registry and the drift gate. It does not require data-shape on generated HTML and does not add --against. Checklist and podcast-transcript stay out of the shape list.

Tradeoffs

The harness used to hardcode SHAPE_REFERENCES. Loading JSON is the smaller way to keep one list.

Blast Radius

make check now runs the new checker. A missing example or a stale nine/eleven string fails CI. Podcast briefing text changed. Interactive behavior did not.

Verification

  • node scripts/check-contracts.mjs exits 0 and prints 12 shapes and 10 primitives.
  • Hiding examples/dashboard.html names dashboard. Restoring the nine/eleven strings names examples/podcast.html.
  • make check is green. skill_md.total_tokens stays 12241.
Open in Web Open in Cursor 

@cursor
cursor Bot force-pushed the cursor/pr-registry-85a6 branch from a3cd5ce to 88d7348 Compare October 4, 2026 21:08
cursoragent and others added 2 commits October 4, 2026 22:17
JSON owns the twelve shapes and ten primitives. The new checker
fails when SKILL.md, references, examples, or the harness disagree,
and when podcast.html still says nine or eleven.

Co-authored-by: Todd Dailey <twidtwid@users.noreply.github.com>
Comment Sicko: usage header restates the script. Duplicate drift tests
overwrote each other. Rename says a JSON drop fails while the skill
still names the shape.

Co-authored-by: Todd Dailey <twidtwid@users.noreply.github.com>
@cursor
cursor Bot changed the base branch from cursor/pr-holes-85a6 to main October 4, 2026 22:17
@cursor
cursor Bot force-pushed the cursor/pr-registry-85a6 branch from 88d7348 to a8eb3c4 Compare October 4, 2026 22:17
@cursor
cursor Bot merged commit 320e2c5 into main Oct 4, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants