MWG rule-basis anchor broken: defensive-browser-policies-validate-origins (guide validate-origins)

Open
#21 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
55/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
javascript, node.js
Domain
tooling

Research direction

Start by locating the drift check that emits ANCHOR-BROKEN and the registry entry for rule defensive-browser-policies-validate-origins. Compare its quoted anchor with the validate-origins guide in upstream version 0.0.195; the issue does not name source files or tests. Done means the rule evidence points to text that exists in the guide and the anchor check passes.

Written by the indexing model from the issue text.

Description

This is an anchor-broken alert. It is NOT a stale-heartbeat alert and NOT an unactioned-delta alert: the drift check ran, and what failed is the rule basis it verifies.

Upstream version: 0.0.195
Rule-basis anchor problem(s): 1

The registry quotes verbatim guide text as evidence for each rule, so an anchor that no longer
resolves means the guide we depend on has moved (or vanished) and a human must re-anchor it.
Refreshing the heartbeat cannot repair this, and neither can waiting for a version delta: the
versions may already agree.

Violations:

Drift-check output:

ANCHOR-BROKEN: 1 rule-basis anchor problem(s) against upstream 0.0.195
  - Rule "defensive-browser-policies-validate-origins" for guide "validate-origins": anchor not found in guide text: "event.origin === 'https://trusted.example.com'"
ANCHOR-BROKEN: 1 rule-basis anchor problem(s) against upstream 0.0.195
{"result":"anchor-broken","analysedVersion":"0.0.194","upstreamVersion":"0.0.195","checkedAt":"2026-10-20T01:01:46.760Z","source":"https://registry.npmjs.org/modern-web-guidance/latest","anchorCheck":{"result":"anchor-broken","rules":8,"anchors":16,"violations":["Rule \"defensive-browser-policies-validate-origins\" for guide \"validate-origins\": anchor not found in guide text: \"event.origin === 'https://trusted.example.com'\""],"source":"https://registry.npmjs.org/modern-web-guidance/-/modern-web-guidance-0.0.195.tgz"}}
Dominant language
JavaScript
Stars
11
Forks
1
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from PaulKinlan/web-uplift

All issues in PaulKinlan/web-uplift

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.