Skip to content

rendered-views: keep CDN pins and SRI hashes current through Dependabot #17783

Description

@kyle-sexton

Refs: #17718
Blocked by: #17718

Problem

#17718 keeps rendered-view CDN libraries on exact-version pins with SRI hashes (owner decision, architecture docs/owner-decisions.md line 284). Nothing keeps those pins current, and no security alert reaches them: Dependabot reads package manifests, not <script src> URLs in markdown or HTML (supported ecosystems).

Decision

The owner chose Dependabot as the keep-current mechanism, 2026-11-20 ~10:5x PM EST, verbatim: "Go with recommendations." The recommendation read: a manifest-only package.json that Dependabot bumps, a sync script that writes the URLs, SRI hashes and CSP from it, and a CI check that fails on drift.

Change

  • A manifest-only directory (package.json plus lock file, no install step) pinning exact mermaid and @tailwindcss/browser, the libraries the rendered views load today.
  • A Dependabot npm entry for that directory in .github/dependabot.yml, in the same per-directory shape as the existing npm entries.
  • A sync script that reads the manifest and writes each CDN URL, its integrity="sha384-..." hash and the CSP source into every file that loads from the CDN: today plugins/architecture/skills/improve/research/deepening/html-report.md and the two eval samples under plugins/architecture/evals/deepening-report-on-chrome-with-counts/samples/. The hash is computed over the exact file the URL serves.
  • A CI check, run in an existing lane job, that fails when any of those files differs from what the sync script writes.

Done when

  • A Dependabot npm entry covers the manifest directory, and the manifest pins both libraries at the versions the views load.
  • Running the sync script on an unchanged tree changes no file.
  • Changing a version in the manifest and running the sync script updates every CDN URL, SRI hash and CSP source, and the views still render in headless Chromium.
  • The CI check fails on a tree whose view URL or hash differs from the manifest, and passes after the sync script runs.
  • A Dependabot PR bumping the manifest gets its views synced before merge by the pr-unblock dependency route (the D408 shape): the route runs the sync script on Dependabot's PR in a job with no token, inside a pinned container, with network to fetch each file it hashes, the way fix(pr-pipeline): relock the directory a Dependabot group left behind, with uv in a tokenless container #17301 relocks the second Playwright pip directory. No session pushes to the Dependabot PR (R698).

Related

🤖 Generated with Claude Code

Activity

  1. added
    needs-triage
    on Nov 21, 2026
  2. github-actions commented on Nov 21, 2026

    @github-actions
    Contributor

    Size: Medium
    Complexity: Medium
    Uncertainty: Knowable
    Flags: none
    Blocked by: #17718
    Blast radius: a new manifest-only directory, one Dependabot entry, a sync script, a CI check in an existing lane job, a pr-unblock dependency route, and the three CDN-loading files in the architecture plugin. Maintainers and CI read it.
    Reversible: yes; revert the change and the pins go back to hand-maintained.
    Open questions: none
    I understood this as: keep the rendered-view CDN pins current by having Dependabot bump a manifest-only package.json for mermaid and @​tailwindcss/browser. A sync script then rewrites the URLs, SRI hashes and CSP sources. A CI drift check and the pr-unblock route cover Dependabot's PRs. The design and done-when are exact, so nothing is missing. The issue names #17718 as a blocker and that issue is still open, so this work waits on it. No merged pull request already covers it.

    Automated triage. A maintainer reviews it.

  3. removed
    needs-triage
    on Nov 21, 2026
  4. melodic-automation-lanes commented on Nov 21, 2026

    @melodic-automation-lanes
    Contributor

    Not admitted to the issue lane yet: blocker #17718 is not closed by a listed human or a merge.

  5. melodic-automation-lanes commented on Nov 21, 2026

    @melodic-automation-lanes
    Contributor

    {"v":1,"actor_id":337595936,"title_sha256":"5321b5b2e81baec5afdc19b2cd27b463058c631d844a93d6267b46a34a720dd9","body_sha256":"5a3c078096221d497a4f3f7e0d2081a36ea6700bd29c6c2393706d6b52443dca"}

  6. melodic-automation-lanes commented on Nov 21, 2026

    @melodic-automation-lanes
    Contributor

    This records a re-fire of an earlier stop, not a new one. The start gate stopped run 44886436585, the work-resolve-issue run that agent-ready started, before any model turn, because the GITHUB_TOKEN budget was under its start-gate share, or the window was projected to have under its start-project share of the header's limit left by the run's expected end (github-token start-gate, start-project and start-run-minutes in rate-limits.json; the run's start-gate notice names which); that run ended at 2026-11-21T08:48:36Z. work-unblock has now removed and added agent-ready back to start a fresh run. A budget stop is the lanes' load, not a fault in this issue: it never counts toward limits.limit-stops-per-issue or the kill-switch wait.

  7. github-actions commented on Nov 21, 2026

    @github-actions
    Contributor
    No description provided.
  8. added
    host-run
    on Nov 21, 2026
  9. melodic-automation-lanes commented on Nov 21, 2026

    @melodic-automation-lanes
    Contributor

    The work-resolve-issue lane stopped on this issue (patch-protected-path): the change needs a path the issue lane may not push, which a maintainer session builds by hand.
    It added host-run and set Work status to confirmed: an agent run on a host builds it, and it waits on no decision from a person.

    In the run's words:

    The run stopped early (patch-protected-path): its change needs a path the issue lane may not push, which a person changes instead. In the run's words: patch-protected-path: .github/workflows/pr-unblock.yml. The done-when item 'A Dependabot PR bumping the manifest gets its views synced before merge by the pr-unblock dependency route' needs new jobs in .github/workflows/pr-unblock.yml (the #17301 relock it copies is the review-dependency-select / review-dependency-relock / review-dependency-relock-patch jobs, lines 3188-3860). The 'CI check, run in an existing lane job' also lands in a workflow under .github/workflows/. This lane cannot push a change to /.github/workflows/**.

    What the run says it did not do:

    • The whole issue is not done. The manifest directory, the Dependabot entry, the sync script, the CI check and the pr-unblock route were all left undone, because the route's jobs live in the protected path .github/workflows/pr-unblock.yml.
    • check-affected skipped its size-check: audit-size.sh is missing from the lane's checks tree (exit 127). The tree has no change, so nothing was size-checked anyway.

    Run: https://github.com/melodic-software/claude-code-plugins/actions/runs/44922172089

    To hand it back to the lane, remove host-run and set Work status to agent-ready again.

  10. added
    session-owned
    on Nov 23, 2026
  11. kyle-sexton commented on Nov 23, 2026

    @kyle-sexton
    MemberAuthor

    Decision recorded.

    Q140, the pr-unblock route for cdn-pins bump PRs (done-when 5). Options put to the owner: (A) approve a narrow allow class: only the files sync.mjs rewrites, and only when the pushed diff equals sync.mjs output; (B) no widening: drop the Dependabot entry, bumps stay manual via sync.mjs; (C) keep PR 18281 held.

    The owner, typed in a session at 2026-11-23T01:59:42Z, verbatim: "Go with the recommendation." (recommendation: A)

    Owner-decisions row: https://github.com/melodic-software/architecture/blob/4cf90acc1006b2e35650c7bf72742172e9c0aa25/docs/owner-decisions.md#L352

    Next: a session build adds that narrow allow class for done-when 5; PR 18281 (done-when 1-4) merges after it.

  12. kyle-sexton commented on Nov 23, 2026

    @kyle-sexton
    MemberAuthor

    Decision recorded.

    Q151, the cdn-pins allow-class path list (done-when 5, PR #18336). Options put to the owner: (A) approve the full list: every file sync.mjs rewrites, read from the base branch's lib/cdn-pins/pins.json targets[], plus pins.json itself; (B) restrict to the files shown for Q140; (C) hold both PRs.

    The owner, typed in a session on 2026-11-23 at about 13:58Z, verbatim: "go w/ recommendations" (recommendation: A)

    Owner-decisions row: https://github.com/melodic-software/architecture/blob/4c069f099ad558b73727e801f469c45ca9f9a909/docs/owner-decisions.md#L359

    Q154, unattended merge of a CDN-pin bump carrying the lane's sync commit (done-when 5, PR #18336). Options put to the owner: (A) both dependency merge gates (pr-unblock's verdict gate and the pr-merge twin) admit a commit only when it is a single-parent lanes App commit changing only the base branch's pins.json and its targets[] paths, each modified in place, with the push-identity check still binding and a failed read refusing; (B) a person merges each CDN bump.

    The owner, typed in a session on 2026-11-23 at about 16:2xZ, verbatim: "go w/ recommendations" (recommendation: A)

    Owner-decisions row: https://github.com/melodic-software/architecture/blob/4c069f099ad558b73727e801f469c45ca9f9a909/docs/owner-decisions.md#L367

    Next: PR #18336 builds both; PR #18281 (done-when 1-4) merges after it.

  13. removed
    host-run
    on Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    session-owned

    Fields

    Work status

    confirmed

    Priority

    medium

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions