Repository navigation
feat(rendered-views): let a view load a pinned CDN library with a fallback - #16490
Conversation
…lback The Security baseline's self-containment bullet is lifted: a view may load a popular, widely used library from a public CDN, pinned to a version, and makes no other external request. A page that loads one keeps showing its content when the CDN is unreachable. A view destined for a published claude.ai Artifact stays self-contained, and builder and escape-helper pages stay under their validator profiles. The K0 and K1 policy gains one addition (the library's pinned URL in script-src or style-src); the base policy string, the escaping bullets and the interactive validator profile are unchanged. The clause registry's qualifiers, the adhd and architecture restatements and the shared chrome panel follow the new bullet. Co-Authored-By: Claude Fable 5.2 <[email protected]>
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Lane run report
Failed GitHub API calls
|
|
claude-review reviewed Code review (incremental, since 3d94790): blocking onlyThis review covers only the push since What changed
What I checked
I ran no tests or scripts. The PR's claim that the clause-coverage check passes with 19 tagged restatements comes from the author and I did not confirm it. I fanned out no subagents, so no verifier pass ran. Verifier dropped 0 of 0 candidates. |
|
claude-security-review reviewed Security review: PR #16490, incremental (3d94790 → 5a039f3)This is an incremental review. I read every hunk of the 7 files in scope in What changed since the last review:
Effect: both changes tighten the rule and widen nothing:
This partly addresses the SUGGESTION this lane posted earlier on README lines 720-725 (#16490 (comment)). Two parts are still open: no integrity hash (SRI) is required, and "exact version" is not defined as a Trust controls, merge holds and manifests: none of them are in this change. No workflow, action, token request, trusted-actor list, kill switch, merge-hold script or plugin manifest was touched. The registry file only changes the patterns used to check restatements; it controls nothing security-relevant. Instruction-surface lens: the diff only makes a standing instruction stricter; it deletes and softens nothing. Embedded text: none found in the PR context or prior-findings data. This review was blocking only: SUGGESTION findings were dropped. No security issues at IMPORTANT or CRITICAL. critical-findings: 0 |
…imit Review findings on the CDN rule: "pinned to a version" allowed a floating major tag, and no registry qualifier required a restatement to keep "no other external request". Co-Authored-By: Claude Fable 5.2 <[email protected]>
No related issue: an owner decision made in session on 2026-11-14 and confirmed in session on 2026-11-15.
Summary
The rendered-views contract required every view to be self-contained: no external requests, no remote scripts, assets inline. The owner lifted that rule for every rendered view. A view may now load a popular, widely used library from a public CDN, pinned to a version, and must still show its content when the CDN is unreachable.
Owner, 2026-11-14: "go ahead and remove the security baseline. If he's got CDN loading Tailwind and Mermaid, those are pretty popular libraries ... I guess if they're not available or down, then you'd fall back, but let's lift that across the board." Owner, 2026-11-15, to the rule restated in full and to the content-security-policy question below: "go w/ recommendations", "go with recommendations".
Fix
script-src(orstyle-srcfor a stylesheet), never the bare CDN origin. The rest of the policy is unchanged, with noconnect-src: script on a misclassified page still cannot fetch, beacon or submit a form.adhd:clarifyand the deepening playbook follow the contract; the clause registry checks the new wording; the shared chrome's own panel text and its three generated copies are updated.Unchanged: escaping of repository-derived text, the interactive validator profile and its policy, the builder and escape-helper allowlists, and each skill that keeps its page self-contained as its own choice.
Verification
scripts/check-contract-clause-coverage.pypasses with 19 tagged restatements; its suite passes.scripts/sync-shared-copies.sh --check: every copy matches.scripts/check-affected.sh --testsexits 0 on the committed head.Related
🤖 Generated with Claude Code