Skip to content

Docs: backfill MADR 4.0 decisions/ for load-bearing decisions#226

Merged
twschiller merged 3 commits into
mainfrom
adr/backfill-decisions
Jun 9, 2026
Merged

Docs: backfill MADR 4.0 decisions/ for load-bearing decisions#226
twschiller merged 3 commits into
mainfrom
adr/backfill-decisions

Conversation

@twschiller

Copy link
Copy Markdown
Contributor

Summary

Backfills a decisions/ tree of MADR 4.0 ADRs
covering 15 load-bearing decisions reconstructed from merged PRs, issues, and
the user-facing docs.

Each ADR cites its primary source inline (PR description, review thread,
issue body, or doc passage); none of the pros/cons or motivations are
invented. Where one PR superseded another (PR #221 supersedes PR #61's
JSON+codegen pipeline for rule defaults), the supersession is captured in
the relevant ADR's status + Consequences.

Decisions captured

# Title Primary source
0001 Source-available PolyForm Shield 1.0.0 + CLA LICENSING.md, LICENSE, .github/CLA.md
0002 Rule ID naming taxonomy (<target>-<verb>, five verbs) PR #105
0003 Run rule engine in all frames PR #4
0004 Centralize data-abs-* DOM markers in lib/dom-markers.ts PR #95
0005 Enforce lib/rules/ import boundary via ESLint PR #85
0006 Re-scan SPA-mutated subtrees via shared subtree watcher PR #87, AGENTS.md
0007 Scrub data carrier; don't detach framework-rendered DOM PR #176
0008 Pierce open shadow roots; document closed roots as out of scope Issue #164, PRs #165#169
0009 Rule defaults in rule-metadata.ts + build-time override flag PR #61, PR #221
0010 No telemetry; opt-in LLM rule is the only outbound call PR #134
0011 Encode prompt-injection patterns in YAML, decode at build time PR #5
0012 Biome + ESLint split with project-specific custom rules PR #29
0013 Background-worker purity canary PR #130
0014 CSS-first hide for selector-only removeEntirely rules Issue #150 Tier 2 #13, PR #173
0015 CalVer + workflow_dispatch-driven extension release PR #17

Conventions

  • Files named NNNN-kebab-case-title.md under decisions/.
  • MADR 4.0 format with YAML frontmatter (status, date). The
    decision-makers / consulted / informed fields are intentionally
    omitted — this is a small project with a single primary maintainer.
  • A decisions/README.md indexes every ADR with a one-line description and
    status.

Test plan

  • pre-commit run --files decisions/*.md — mdformat + markdownlint clean.
  • Reviewer spot-checks 2–3 ADRs against their cited PRs to confirm no
    invented motivations.

🤖 Generated with Claude Code

Reconstructs 15 ADRs from merged PRs, issues, and the user-facing docs.
Each entry cites its primary source inline so claims can be traced back
to the originating PR description, issue body, or doc passage. Covers
licensing, the rule taxonomy + naming, all-frames execution, DOM-marker
registry, lib/rules import boundary, SPA re-scan, scrub-don't-detach,
shadow-DOM coverage, rule-default centralization + build-time overrides,
no-telemetry policy, build-time decoded injection patterns, the
Biome+ESLint split, the background-worker purity canary, CSS-first
selector hide, and CalVer + workflow-driven releases.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@vercel

vercel Bot commented Jun 9, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
agent-browser-shield-demo-site Ready Ready Preview, Comment Jun 9, 2026 12:26pm

Request Review

@unblocked unblocked Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 issue found.

About Unblocked

Unblocked has been set up to automatically review your team's pull requests to identify genuine bugs and issues.

📖 Documentation — Learn more in our docs.

💬 Ask questions — Mention @unblocked to request a review or summary, or ask follow-up questions.

👍 Give feedback — React to comments with 👍 or 👎 to help us improve.

⚙️ Customize — Adjust settings in your preferences.

Comment thread decisions/README.md Outdated
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
The README header still said "MADR 3.0" after the format switched to 4.0
during authoring. Caught by unblocked[bot] on PR #226.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@twschiller twschiller self-assigned this Jun 9, 2026
@twschiller twschiller merged commit 637b58c into main Jun 9, 2026
7 checks passed
@twschiller twschiller deleted the adr/backfill-decisions branch June 9, 2026 12:28
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.

1 participant