Skip to content

feat(rendered-views): let a view load a pinned CDN library with a fallback - #16490

Merged
kyle-sexton merged 2 commits into
mainfrom
feat/rendered-views-lift-self-containment
Nov 16, 2026
Merged

kyle-sexton merged 2 commits into
mainfrom
feat/rendered-views-lift-self-containment

Conversation

@kyle-sexton

Copy link
Copy Markdown
Member

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

  • Security baseline, second bullet. States the new rule, the fallback requirement, and what stays self-contained: a view for a published claude.ai Artifact, and any page the shared builder or the escape helper emits.
  • Content classes, the model-written page's policy. The owner decided this separately. A page that loads a CDN library names the path of that library's pinned version in script-src (or style-src for a stylesheet), never the bare CDN origin. The rest of the policy is unchanged, with no connect-src: script on a misclassified page still cannot fetch, beacon or submit a form.
  • Two lines of the contract that contradicted the new rule are reworded (the opening sentence and the Client-interactive tier's "no network").
  • The tagged restatements in adhd:clarify and 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.py passes with 19 tagged restatements; its suite passes.
  • scripts/sync-shared-copies.sh --check: every copy matches.
  • scripts/check-affected.sh --tests exits 0 on the committed head.

Related

  • No skill loads a CDN library yet; the deepening report is the first, in a later pull request with its eval case.
  • Not required by this change: an integrity hash on the CDN tag.

🤖 Generated with Claude Code

…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]>
@kyle-sexton
kyle-sexton marked this pull request as ready for review November 16, 2026 02:32
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-16T02:35:20.589678Z 3d94790 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-refine/fix-docs
Model rung 0
Leg handoff
Run job success
Activity step success
Commits pushed none (read lane)
Run 43792861520

Failed GitHub API calls

Method Path Status
GET /repos/{repo}/git/ref/tags/* 404

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

claude-review: 1 inline finding(s) on 3d94790009a0efe0a6317bee55fbf21e9ff5f348; the summary is in this lane's pull request comment.

claude-lane: claude-review

Comment thread scripts/contract-clause-registry.json Resolved
@github-actions

github-actions Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

claude-review reviewed 5a039f3b63bd3759cf31321780072d37e74fe511: read 9 of 9 changed file(s); 0 finding(s), 0 as inline comments.

Code review (incremental, since 3d94790): blocking only

This review covers only the push since 3d94790 and reports blocking findings only, because this lane already reviewed an earlier head. I found nothing blocking.

What changed

  • "Exact version" wording. "Pinned to a version" now reads "pinned to an exact version" everywhere it appears:
    • the rendered-views contract bullet in the README and its CHANGELOG entry;
    • the adhd:clarify restatement;
    • the deepening.md restatement;
    • the four html-chrome.html copies.
  • Clause registry. In scripts/contract-clause-registry.json, the cdn-pinned-version qualifier now matches pinned to an exact version. A new no-other-request qualifier matches no other external request.

What I checked

  • Earlier finding. The registry finding from the last round (no pattern enforced "no other external request") is fixed by the new no-other-request qualifier. The owner resolved that thread.
  • Do the new patterns match? Yes. The README bullet, clarify and deepening.md all contain both pinned to an exact version and no other external request, so both patterns match every tagged copy.
  • Stale wording. No copy still says "pinned to a version". The CSP text at docs/contracts/rendered-views/README.md:140 ("path of that library's pinned version") still agrees with the new rule.
  • JSON syntax. The registry entries are well-formed (lines 209–233 at head).
  • Integrity (SRI) hash. The owner decided to leave the integrity attribute out of this change (settled thread on README lines 720–725), so I did not raise it again.
  • Plugin manifests. None changed in this push.

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.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

claude-security-review: 1 inline finding(s) on 3d94790009a0efe0a6317bee55fbf21e9ff5f348; the summary is in this lane's pull request comment.

claude-lane: claude-security-review

Comment thread docs/contracts/rendered-views/README.md Resolved
@github-actions

github-actions Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

claude-security-review reviewed 5a039f3b63bd3759cf31321780072d37e74fe511: read 9 of 9 changed file(s); 0 finding(s), 0 as inline comments.

Security review: PR #16490, incremental (3d94790 → 5a039f3)

This is an incremental review. I read every hunk of the 7 files in scope in .claude-lane/incremental.diff. Two files are copies of the shared chrome and were not re-read: plugins/planning/reference/html-chrome.html and plugins/visualization/reference/html-chrome.html. They are reference HTML at paths that run nothing, so their location doesn't change what their content does.

What changed since the last review:

  • Wording: every statement of the CDN rule now says "pinned to an exact version" where it said "pinned to a version". That covers the contract README, the CHANGELOG, the shared chrome panel and its adhd copy, the adhd:clarify restatement and the deepening playbook restatement.
  • Clause registry: scripts/contract-clause-registry.json now checks for the new wording. It also adds a no-other-request clause, so each tagged restatement must keep "no other external request".

Effect: both changes tighten the rule and widen nothing:

  • A floating tag such as lib@11 no longer meets the rule.
  • The added registry clause stops a restatement from quietly dropping the "no other request" limit.

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 MAJOR.MINOR.PATCH string. This lane already reviewed an earlier head (blocking only: yes), so that leftover SUGGESTION is not posted again. Nothing new reaches IMPORTANT or CRITICAL. What a tampered CDN copy could expose is the content of a page built from the user's own repository (K0/K1) and opened locally. That is not a token, secret or key, and no credentialed lane is involved.

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]>
@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 16, 2026
Merged via the queue into main with commit 5c6b47f Nov 16, 2026
53 checks passed
@kyle-sexton
kyle-sexton deleted the feat/rendered-views-lift-self-containment branch November 16, 2026 03:03
@github-actions github-actions Bot added the merge-path: owner-agent Post-merge accounting record (README.md, Merge paths) label Nov 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-path: owner-agent Post-merge accounting record (README.md, Merge paths)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant