Skip to content

feat(lint-artifact): compare an update against the prior file - #13

Merged
cursor[bot] merged 1 commit into
mainfrom
cursor/pr-update-lint-85a6
Oct 4, 2026
Merged

cursor[bot] merged 1 commit into
mainfrom
cursor/pr-update-lint-85a6

Conversation

@twidtwid

@twidtwid twidtwid commented Oct 4, 2026

Copy link
Copy Markdown
Owner

Why

An update can drop id="search" or the copy-as-prompt control and the current lint still passes. Class 9 needs a prior-file comparison.

What changed

  • lint-artifact.mjs --against <prior.html> fails dropped ids, a dropped copy-as-prompt control, or a deleted inline script.
  • --allow-dropped-id covers an intentional rename.
  • Step 7 of SKILL.md names the flag.

Scope

This PR only adds the update comparison. It does not require data-shape and does not add application/json source islands to any shape. Podcast keeps the island it already has.

Tradeoffs

JSON islands stay out of this stack. The spikes never measured a size or safety win that justified expanding the publish sensitivity scan. Class 9 is handled by --against. Direction B in plans/README.md stays a later experiment.

The script-drop check ignores application/json and ld+json islands so the podcast package is not the only thing keeping an update green.

Blast Radius

Default lint is unchanged. Skill tokens rose 12241 → 12256. --against on the dashboard pair stays well under 2 seconds.

Verification

  • Same dashboard file twice exits 0.
  • Dropping id="search" or id="donut-svg" names that id.
  • Removing copy-as-prompt wording names copy-as-prompt.
  • Deleting the inline script names the script.
  • make check is green.
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
@cursor
cursor Bot force-pushed the cursor/pr-update-lint-85a6 branch from 71b2ac4 to 077d58b Compare October 4, 2026 21:09
@cursor
cursor Bot force-pushed the cursor/pr-registry-85a6 branch from 88d7348 to a8eb3c4 Compare October 4, 2026 22:17
--against fails dropped ids, a dropped copy-as-prompt control, or
a deleted inline script. --allow-dropped-id covers an intentional
rename. JSON source islands stay podcast-only.

Co-authored-by: Todd Dailey <twidtwid@users.noreply.github.com>
@cursor
cursor Bot force-pushed the cursor/pr-update-lint-85a6 branch from 077d58b to 1b73847 Compare October 4, 2026 22:19
@cursor
cursor Bot changed the base branch from cursor/pr-registry-85a6 to main October 4, 2026 22:19
@cursor
cursor Bot merged commit 7c8db4f 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