Skip to content

feat(pr-unblock): sync the CDN pins on a Dependabot manifest bump - #18336

Merged
kyle-sexton merged 17 commits into
mainfrom
feat/17783-cdn-pins-sync-route
Nov 23, 2026
Merged

kyle-sexton merged 17 commits into
mainfrom
feat/17783-cdn-pins-sync-route

Conversation

@kyle-sexton

@kyle-sexton kyle-sexton commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

Refs: #17783

Summary

Builds done-when 5 of #17783: a pr-unblock dependency route that syncs the rendered views' CDN pins on a Dependabot pull request bumping lib/cdn-pins, under the narrow allow class the owner chose (Q140 A, recorded on the issue with the owner-decisions row link).

Fix

  • A tokenless job, in a container pinned by digest, runs the base branch's lib/cdn-pins/sync.mjs sync over the pull request's manifest, read as data. No pull request code runs. The container runs as the runner user (--user "$(id -u):$(id -g)") under --cap-drop ALL and no-new-privileges, so it can write the runner-owned result directory without any added capability.
  • A patch job checks the request's sha256 and builds the patch; the apply job pushes it through pr-run-activity-write.yml with patch-prepare: cdn-pins-sync.
  • A new patch-rules.json row cdn-pins-sync with a new allow class cdn-pins: only lib/cdn-pins/pins.json and the targets[].path entries of the base branch's pins.json. Its content rule passes only when every file is an in-place modification at mode 100644 on both sides (the same mode the merge gates require) and the base sync.mjs check passes on the patched tree. With no pins.json on the base, the class allows nothing.
  • The write runner copies the base branch's lib/cdn-pins/pins.json and sync.mjs into apply-patch's base directory for a cdn-pins-sync patch, and nothing when the base has none, so the allow class and content rule read the trusted base.
  • No-change rule: the select job builds a sync request only when the head manifest moves a package pins.json lists off its recorded version. A lock-only or unlisted-package bump syncs no file and goes to the model review, so it never escalates on an empty sync result.
  • Merge-gate predicate (owner decision Q154, "go w/ recommendations"; owner-decisions row "Unattended merge of a CDN-pin bump carrying the lane's sync commit", melodic-software/architecture#203): both merge gates now take the pushed sync commit. Before this, they refused it as outside the fix rule, and every synced bump went to a person. cdnSyncRefusal (pr-unblock's apply-dependency-verdict.mjs merge path) and its twin cdn_sync_refusal (pr-merge's _fix_commit_refusal) run only after the fix rule refuses a commit. They admit a single-parent [dependabot skip] commit that GitHub signed for the lanes App (committer web-flow) and whose files are all the base pins.json or its targets[].path, each modified in place as a 100644 blob on both sides. A missing or invalid base registry refuses. fixRefusal and inFixScope are unchanged, so a fix verdict gains nothing, and pushRefusal still binds the pusher.
  • .github/lane-registry.json registers the apply-cdn-pins-sync job, so refire-refused.mjs reads it from the registry; the new resolve-branch-tip step uses main's ci-workflows pin.
  • The two new scan steps use ci-workflows' scan-upload action, which replaced the local one on main.
  • docs/conventions/pr-pipeline.yaml gains an enforcement floor row for .github/scripts/apply-patch/cdn-paths.mjs (it decides what the cdn-pins class may write), with the generated floor copies and floor pins updated.
  • apply-patch.test.mjs declares // test-scope: .github/scripts/apply-patch/* .github/scripts/lib/*: its staged-layout test copies both trees.
  • pr-run-activity-write.yml drops its workflow_call input and output descriptions, as fix(pr-pipeline): keep pr-unblock under GitHub's workflow size limit #17572 did for the read reusable: pr-unblock calls it 15 times, and the new jobs had taken pr-unblock.yml over the template-size fail line. Nothing reads the descriptions at run time.

Path list (owner-approved)

The allow class covers every file sync.mjs rewrites, read from the base pins.json targets[]: plugins/architecture/skills/improve/research/deepening/html-report.md, the two eval samples under plugins/architecture/evals/deepening-report-on-chrome-with-counts/samples/, plugins/architecture/scripts/deepening-report.mjs, plugins/architecture/scripts/deepening-report.test.mjs, and lib/cdn-pins/pins.json (which sync.mjs itself writes). The issue named three of them; the owner approved the full list on 2026-11-23 (Q151 A, his words in session: "go w/ recommendations"; comment).

Verification

Each suite ran alone with node --test --test-concurrency=4:

  • apply-patch.test.mjs: 434 pass, 0 fail. New cases: the cdn-pins allow takes only the base registry and its targets and throws with no registry; the cdn-pins-sync content rule passes a patched tree the base check accepts and refuses one it does not.
  • review-dependency.test.mjs: 40 pass. New case: select writes the hashed sync request only for a Dependabot bump of the manifest or its lock whose head targets equal the base's.
  • resolve.test.mjs 159 pass, callers.test.mjs 300 pass, workflow-gates.test.mjs 69 pass (the sync job: permissions: {}, a digest-pinned image, no token), dependency-relock.test.mjs 12 pass.
  • scripts/check-affected.sh --base origin/main: 18 passed, 6 skipped. By hand: check-orphaned-fixtures.sh, check-test-tmp-cleanup.sh, check-silent-skips.sh, check-purged-em-dashes.sh clean.
  • The image is node:24.21.0-slim, the repository's .node-version, pinned to the index digest Docker Hub served for that tag at build time.
  • At 281803c: babysit engine.test.sh 548 OK; merge-holds.test.mjs 76, callers.test.mjs 301, lane-registry.test.mjs 9 pass; test_merge_holds_sync + test_diff_risk 167 OK; apply-patch.test.mjs 434 and workflow-gates.test.mjs 69 pass; selection-audit.sh trace --strict on apply-patch.test.mjs, test_diff_risk.py and test_floor_paths.py: no gap; sync-hold-floor.py --check clean; scripts/check-affected.sh: 23 passed, 1 skipped.
  • Merge-gate predicate, after merging main: apply-dependency-verdict.test.mjs + dependency-classify.test.mjs + review-dependency.test.mjs 163 pass, 0 fail. New cases: a valid sync commit is marked for merge (refused before the fix); refusals, each checked for its logged reason, for an extra file, the sync script, an added, renamed or deleted file, a mode at either side, no [dependabot skip], another author, a non-web-flow committer, an unsigned commit, two parents, and an absent, failing, non-JSON or invalid base registry; a fix verdict landing the pin files is still refused.
  • babysit engine: part a 548 OK (13 skipped), part b (test_babysit_merge_policy.py) 613 OK with the same sync cases through dependabot_eligibility, part c 615 OK, part d 2914 OK (6 skipped), including CdnSyncIsTheGates, which runs both predicates and both registry parsers under node and Python over 13 commit vectors and 15 registry texts.
  • selection-audit.sh trace --strict on the five edited suites: no gap. sync-hold-floor.py regenerated the floor block after the merge. scripts/check-affected.sh --base origin/main at 1bb9f94: 23 passed, 1 skipped. workflow-gates.test.mjs 70 pass after the merge.
  • At f77a1e1, the sync container as the runner user: a local run of the step's run: block, taken verbatim from pr-unblock.yml and fed a stub sync.mjs that rewrites one file, with the result directory created by the runner user (1000:1000) at 0755. At c0e831d the container failed with Error: EACCES: permission denied, mkdir '/result/docs' and wrote nothing; at f77a1e1 it exited 0 and wrote docs/view.md (1000:1000, mode 644) with the synced text. No writable HOME was needed. workflow-gates.test.mjs now asserts --user beside --cap-drop ALL (70 pass).
  • At f77a1e1, the 100644 content rule: a new "executable on both sides" case in apply-patch.test.mjs is pushed under the old rule and escalates dependency-pin-protected-path under the new one (445 pass). check-workflow-template-size.sh: pr-unblock.yml 10,160,708 bytes, 415,600 under the fail line.
  • Not run: a hosted Dependabot bump end to end. That needs #18281 on main first.

Remaining

  • #18281 (done-when 1-4: the manifest, Dependabot entry, sync.mjs and its check) merges after this pull request; until then this route stays inert.

Related

  • #18281
  • #17301: the relock route this copies.
  • #17572: the same description cut on the read reusable.

🤖 Generated with Claude Code

https://claude.ai/code/session_01UJUn7JjbzH3qP4NugM6Ns5

kyle-sexton and others added 2 commits November 22, 2026 22:48
review-dependency select writes a CDN pins sync request when a Dependabot
pull request changes only lib/cdn-pins/package.json or its lock and the
head's pins.json targets equal the base's. A tokenless job runs the base
sync.mjs in a digest-pinned node image, a patch job builds the patch from
the synced files, and apply-cdn-pins-sync pushes it under the new
cdn-pins-sync patch-rules row.

The row's cdn-pins allow class takes only lib/cdn-pins/pins.json and the
base pins.json targets, and fails closed when the base has no pins.json.
Its content rule passes only when the base sync.mjs check passes on the
patched tree.

Refs: #17783

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@kyle-sexton kyle-sexton added the do-not-merge Hard merge gate: do not merge while applied. label Nov 23, 2026
@kyle-sexton

Copy link
Copy Markdown
Member Author

Held by session 28e2c19c (GitHub Work) with the do-not-merge label until the owner signs off on the allow-class path list.

The owner chose Q140 A, "only the files sync.mjs rewrites". When asked, he was shown html-report.md and the eval samples. This build's class also covers deepening-report.mjs, deepening-report.test.mjs and pins.json, all written by sync.mjs, as the "Agent-made choice" section lists. That widens a lane's write grant past what he saw, so he decides it: approve the full list, or restrict the class to the files he was shown.

@kyle-sexton

Copy link
Copy Markdown
Member Author

Hold lifted by session d50afbf4 (GitHub Work). The owner approved the full allow-class path list (Q151 A) in session on 2026-11-23, in his words: "go w/ recommendations". The class covers every file sync.mjs rewrites, as the "Agent-made choice" section lists: html-report.md, the two eval samples, deepening-report.mjs, deepening-report.test.mjs and lib/cdn-pins/pins.json.

@kyle-sexton kyle-sexton removed the do-not-merge Hard merge gate: do not merge while applied. label Nov 23, 2026
refire-refused.mjs: keep main's writeCallers, now read from the lane
registry; register the PR's apply-cdn-pins-sync job in
.github/lane-registry.json instead. Move the new job's resolve-branch-tip
pin to main's ci-workflows v0.81.0 so the repository keeps one pin.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@kyle-sexton
kyle-sexton marked this pull request as ready for review November 23, 2026 14:10
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 23, 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-23T14:13:43.102348Z d2bcad8 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.

@chatgpt-codex-connector chatgpt-codex-connector 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: d2bcad877f

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread .github/workflows/pr-unblock.yml Resolved
@github-actions

github-actions Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

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

Security review: PR #18336 (incremental, head f77a1e1d)

I found no security issues in this push. This lane already reviewed an earlier head, so this review reports blocking findings only (CRITICAL and IMPORTANT).

Scope. This push changes four files since c0e831d3: .github/scripts/apply-patch/apply-patch.mjs, apply-patch.test.mjs, .github/scripts/pr-unblock/workflow-gates.test.mjs and .github/workflows/pr-unblock.yml. All four are on the trusted-path list. I read every hunk of .claude-lane/incremental.diff.

What I checked.

  • cdn-pins-sync content rule (apply-patch.mjs#L340). The rule used to accept oldMode === newMode with the new mode in [REGULAR, EXECUTABLE]. It now requires oldMode === REGULAR && newMode === REGULAR, and REGULAR is "100644" (L104). This narrows the rule: a patch that keeps a pin file executable on both sides is now refused. It matches the 100644 rule both merge gates apply, so nothing new gets through. The allow-class check and the base sync.mjs check step are unchanged.
  • Sync container (pr-unblock.yml#L4097). The docker run now adds --user "$(id -u):$(id -g)". The container used to run as root; it now runs as the runner's unprivileged user, so this lowers its privilege.
    • --cap-drop ALL, --security-opt no-new-privileges, the read-only request mount, the digest-pinned CDN_SYNC_IMAGE, the job's permissions: {} and the sha256 check on the request are all unchanged.
    • $(id -u) and $(id -g) take their values from the runner. No pull request text or github context value reaches the command, so this adds no injection surface.
    • The container still gets no token.
  • Tests. The two test files only add assertions: a case where the file is executable on both sides, and a check that --user sits next to the existing hardening flags. They run no pull request code.
  • Trust controls. No change widens who is trusted, what a token may do, what untrusted text reaches a lane, or a merge hold. Both behaviour changes narrow what gets through.

Earlier findings. This lane's only earlier post is the summary for c0e831d3, which had no findings, so there is nothing to repeat.

Cost. This push adds no billable change and no extra prepaid spend.

critical-findings: 0

@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 d2bcad877fd8d10a5664d2f62c395fd7ced94b20; the summary is in this lane's pull request comment.

claude-lane: claude-review

@github-actions

github-actions Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

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

CI code review: PR #18336 at f77a1e1d (incremental since c0e831d3, blocking only)

No blocking issues found.

This lane already reviewed earlier heads of this pull request (blocking only: yes), so this review covers blocking findings only. Security findings go to the separate security lane.

Scope: 4 files changed since the last review. I read every hunk of each in .claude-lane/incremental.diff:

  • .github/scripts/apply-patch/apply-patch.mjs
  • .github/scripts/apply-patch/apply-patch.test.mjs
  • .github/scripts/pr-unblock/workflow-gates.test.mjs
  • .github/workflows/pr-unblock.yml

What changed and what I checked:

  • cdn-pins-sync content rule (apply-patch.mjs:340):
    • Before: the rule allowed either 100644 or 100755, as long as the mode did not change.
    • Now: both sides must be REGULAR (100644). This matches the merge-gate predicate described in the PR body, and it is stricter.
    • Test: the new "executable on both sides" case sets the head target to 0755 and keeps 0755 in the patch. It expects dependency-pin-protected-path and no API calls, so the test fails if the rule goes back to the old version.
    • Pinned .mjs targets: deepening-report.mjs and deepening-report.test.mjs have no shebang, which suggests they are regular 100644 files. I could not read git modes without a shell, so this is a guess, not a confirmed check.
  • Sync container user (pr-unblock.yml:4097):
    • The change: --user "$(id -u):$(id -g)" makes the container run as the runner user, so it can write to $RUNNER_TEMP/cdn-pins-result, which that user created.
    • Writes are safe: the inline script writes only to mkdtempSync("/tmp/cdn-pins-") (anyone can write to /tmp) and to /result. It needs no HOME and no npm.
    • Hardening unchanged: --cap-drop ALL and no-new-privileges stay.
    • Test: the workflow-gates.test.mjs assertion now pins --user together with the hardening flags.

Earlier findings: both earlier inline threads, the empty-sync escalation and the missing apply-base copy, were settled at earlier heads. This push does not touch the code they covered.

Not verified: I ran no tests or workflows. The PR body's pass counts, and the EACCES result before the fix and the success after it, come from the author and I have not checked them.

Closing issue: the PR body says Refs: #17783, and the context file has no closing-issue section, so there were no acceptance criteria to check.

Loosened checks: none in this change. Loosened checks would be marked: fail. The prompt had no loosened_check_verdict: or loosened_check_patterns: line, so I used the default (fail, no consumer entries). It had no decision-record line either, so I did not check the citation requirement.

Manifests: no plugin.json or marketplace.json changed.

Embedded text: none found in the PR context or prior-findings files.

No subagent verifier ran.

Verifier dropped 0 of 0 candidates.

kyle-sexton and others added 2 commits November 23, 2026 09:38
…upload

Main moved scan-upload to ci-workflows (#18300), so the CDN sync and
patch scans now use that action with the base publish gate, as the relock
scan does. cdn-paths.mjs decides what the cdn-pins class may write and
apply-patch imports it, so it joins the hold floor as an enforcement row
beside protected-paths.mjs; the generated copies and the floor pins move
with it. apply-patch.test.mjs copies apply-patch/ and lib/ into its
staged-layout test, so it declares both in its test-scope.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Main added a gate row to the hold floor (#18450) while this branch added
the cdn-paths.mjs enforcement row. The floor pins carry both: 163 rows,
gate 72, enforcement 66; high and author_review take main's digests,
review takes this branch's. pr-require-checks.yml's hold_patterns is
regenerated by scripts/sync-hold-floor.py.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

@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 281803ce0c0ffe5e8d9638d44ecc66e733089a28; the summary is in this lane's pull request comment.

claude-lane: claude-review

… nothing

The write runner's apply-patch base held no lib/cdn-pins/pins.json or
sync.mjs, so the cdn-pins allow and content rule refused every CDN sync
patch in CI. The copy step now copies both from the base for a
cdn-pins-sync patch, and nothing when the base has none.

cdnRequest now builds a request only when the head manifest moves a
package pins.json lists off its recorded version, read as sync.mjs reads
it. A lock-only or unlisted-package bump syncs no file, so it goes to the
model review instead of escalating on an empty sync result.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@kyle-sexton kyle-sexton added the do-not-merge Hard merge gate: do not merge while applied. label Nov 23, 2026
@kyle-sexton

Copy link
Copy Markdown
Member Author

Held by session d50afbf4 (GitHub Work) with the do-not-merge label while it builds the fix for the open P1 thread: both dependency merge gates admit the lane's CDN sync commit (a lanes App single-parent commit touching only the base pins.json and its targets, modified in place). The label comes off when that is pushed and green.

kyle-sexton and others added 5 commits November 23, 2026 11:28
…ync commit

The sync commit apply-cdn-pins-sync pushes changes lib/cdn-pins/pins.json
and its targets, which the fix rule (inFixScope, in_fix_scope) never admits,
so the pr-unblock verdict gate and the pr-merge Dependabot gate both refused
it and every synced CDN-pin bump escalated to a person.

Each gate's per-commit check on the merge path now admits a commit the fix
rule refuses when it is the sync: cdnSyncRefusal (dependency-classify.mjs)
and its twin cdn_sync_refusal (babysit_dependabot.py) require the lanes App
as author with GitHub's web-flow committing and a valid signature, one
parent, the [dependabot skip] marker, and every file one of the base
pins.json and its targets[].path, modified in place and a regular 100644
file on both sides. An unreadable, absent or invalid base registry refuses.
fixRefusal and inFixScope are unchanged, so a fix verdict gains nothing.

Tests reproduce the refusal of a valid sync commit in both gates, then
refuse an extra file, an added, deleted or renamed file, a mode change, a
non-lanes-App author or committer, an unsigned commit, a second parent, a
missing marker and an unreadable base; a parity test runs both predicates
and both registry parsers over the same vectors.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01UJUn7JjbzH3qP4NugM6Ns5
review-dependency.mjs keeps the CDN sync request after the relock and
before main's trust-gate hold skip, which now carries cdnError too. The
hold-floor block in pr-require-checks.yml is regenerated by
scripts/sync-hold-floor.py, and the floor pins count main's new trust row
and this branch's cdn-paths.mjs enforcement row (164 rows).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01UJUn7JjbzH3qP4NugM6Ns5
…uld be the sync

cdnSyncRefusal and cdn_sync_refusal now check the commit's own author,
committer, signature, parent, [dependabot skip] marker and file listing
before they read the base pins.json, so a refused ordinary fix commit costs
no registry read. A refused lanes App commit's reason now names both
refusals, the fix rule's and the sync's (`<fix>;cdn-sync-<why>`); the
pr-merge tests' expected reasons say so.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01UJUn7JjbzH3qP4NugM6Ns5
The fragment needs a ### section for the release tooling, and a test name
spelled a word typos rejects.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01UJUn7JjbzH3qP4NugM6Ns5
Main moved every ci-workflows action to v0.82.1 in #18487; the steps this
branch adds to pr-unblock.yml still named v0.81.0, so callers.test.mjs
found two ci-workflows pins.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01UJUn7JjbzH3qP4NugM6Ns5
@kyle-sexton

Copy link
Copy Markdown
Member Author

Hold lifted by session d50afbf4 (GitHub Work): the rework is pushed (efc2501) and every test lane passes. The merge-gate change is the owner's Q154 A, recorded in melodic-software/architecture#203.

@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to a conflict with the base branch Nov 23, 2026
…ync-route

# Conflicts:
#	.github/scripts/pr-unblock/review-dependency.mjs
#	.github/workflows/pr-require-checks.yml
#	plugins/source-control/skills/babysit-prs/scripts/tests/test_floor_paths.py
@melodic-automation-lanes melodic-automation-lanes Bot added the needs-session A pr-unblock stop a session builder takes: a change the lane cannot make. Not an owner stop. label Nov 23, 2026
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

The pr-unblock lane stopped resolve-conflicts on this pull request: a conflicted path is a workflow, submodule config or a settings file, which the lane does not resolve. The lane labels it needs-session for a session builder, who makes the change this lane cannot, and the run ends in a failing pr-unblock/conflict status on the head the lane gated.

When a retry on this head can change the outcome, the lane runs one on its own, up to its per-head cap, and edits this comment if it stops again; a run that does not stop clears the status. When no retry can (a review thread the lane does not take or settle, or a failing check after the retries are spent), a person resolves the threads or gets the checks green, then dispatches the workflow below: that run finds the cause gone and clears the status. On a pull request the lanes App opened, the dispatchers start that run once per stop; on any other, a person does. A new commit to the branch starts clean.

To run it again on this head now, dispatch the pr-unblock workflow:

gh workflow run pr-unblock.yml -R melodic-software/claude-code-plugins -f pr-number=18336 -f activity=resolve-conflicts

kyle-sexton and others added 2 commits November 23, 2026 15:31
…ync-route

# Conflicts:
#	.github/actions/resolve-config/callers.test.mjs
#	.github/actions/resolve-config/patch-rules.json
#	.github/actions/resolve-config/patch-rules.schema.json
#	.github/scripts/apply-patch/apply-patch.test.mjs
#	.github/workflows/pr-require-checks.yml
#	.github/workflows/pr-run-activity-write.yml
#	plugins/source-control/skills/babysit-prs/scripts/tests/test_diff_risk.py
#	plugins/source-control/skills/babysit-prs/scripts/tests/test_floor_paths.py
Lane-Activity: pr-unblock/resolve-conflicts
@kyle-sexton kyle-sexton added the do-not-merge Hard merge gate: do not merge while applied. label Nov 23, 2026
@kyle-sexton

Copy link
Copy Markdown
Member Author

Held by session f8b9f2fc (GitHub Work) with the do-not-merge label. After the latest main merge, Lint Repo's workflow-template-size check fails: the estimate for .github/workflows/pr-unblock.yml is 10,658,662 bytes, past the known-failing figure of 10,581,308 (main alone is 10,076,912). The session is moving the new CDN sync step bodies into sourced scripts to get back under the line. The label comes off once that rework is pushed and green.

pr-unblock.yml expands pr-run-activity-write.yml once per call (15
calls), and the new apply-cdn-pins-sync call put it 82,354 bytes over
the workflow-template-size fail line. Dropping the description of each
workflow_call input and output, as #17572 did for the read reusable,
cuts 35,572 bytes per call. The file parses to its old object minus the
descriptions; nothing reads them at run time.

pr-unblock.yml: 10,658,662 -> 10,160,654 bytes, 415,654 under the fail
line 10,576,308.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01UJUn7JjbzH3qP4NugM6Ns5
@kyle-sexton

Copy link
Copy Markdown
Member Author

Hold lifted by session f8b9f2fc (GitHub Work). The template-size fix is pushed as c0e831d: it removes the input and output descriptions from the write reusable, with no change to any step, job or permission. pr-unblock.yml now estimates 10,160,654 bytes, 415,654 under the fail line.

@kyle-sexton kyle-sexton removed do-not-merge Hard merge gate: do not merge while applied. needs-session A pr-unblock stop a session builder takes: a change the lane cannot make. Not an owner stop. labels Nov 23, 2026
@github-actions github-actions Bot added the pr-verify-failed pr-verify failed this head; a pass at a new commit, or after a trusted body edit, removes it. label Nov 23, 2026
@kyle-sexton kyle-sexton added the do-not-merge Hard merge gate: do not merge while applied. label Nov 23, 2026
@kyle-sexton

Copy link
Copy Markdown
Member Author

Held by session f8b9f2fc (GitHub Work) with the do-not-merge label while it fixes the two pr-verify findings at c0e831d:

  • review-cdn-pins-sync runs the container as root under --cap-drop ALL, so it cannot write into the runner-owned result directory, and every sync that changes a file would fail. It will run as the runner user, with a test showing that a changed file reaches the result directory.
  • The cdn-pins-sync content rule will require mode 100644, matching both merge gates.

The label comes off once the fix is pushed and green.

The review-cdn-pins-sync container ran as root with every capability
dropped, so it could not write into the result directory the runner user
created at 0755: each sync that changed a file failed with EACCES and
escalated as dependency-pin-invalid. It now runs as the runner's uid:gid,
keeping --cap-drop ALL, no-new-privileges, the read-only request mount and
the digest pin.

The cdn-pins-sync content rule in apply-patch now requires mode 100644 on
both sides, matching cdnSyncRefusal and cdn_sync_refusal, which refuse any
other mode at merge.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01UJUn7JjbzH3qP4NugM6Ns5
@kyle-sexton

Copy link
Copy Markdown
Member Author

Hold lifted by session f8b9f2fc (GitHub Work). Both pr-verify findings are fixed in f77a1e1. The CDN sync container now runs as the runner user, and a local run of the step showed EACCES before the change and the synced file written after it. The cdn-pins-sync content rule now requires mode 100644 on both sides, matching the gates. The body's Verification section carries the evidence.

@kyle-sexton kyle-sexton removed the do-not-merge Hard merge gate: do not merge while applied. label Nov 23, 2026
@github-actions github-actions Bot removed the pr-verify-failed pr-verify failed this head; a pass at a new commit, or after a trusted body edit, removes it. label Nov 23, 2026
@kyle-sexton kyle-sexton added the do-not-merge Hard merge gate: do not merge while applied. label Nov 23, 2026
@kyle-sexton

Copy link
Copy Markdown
Member Author

Held by session f8b9f2fc (GitHub Work) with the do-not-merge label while it reads the pr-review-main findings at f77a1e1 (claude-security-review: 1 finding, 1 critical; claude-review: 6 findings, 1 critical). pr-verify passed this head with notes, and both hosted lanes report 0 findings. Each pr-review-main finding is fixed or answered on this pull request before the label comes off.

@kyle-sexton

Copy link
Copy Markdown
Member Author

Session f8b9f2fc (GitHub Work) has dispositioned the pr-review-main findings at f77a1e1 (run), and this lifts the session's hold. pr-verify passed this head with notes, and both hosted lanes report 0 findings.

CRITICAL, both lanes: the merge gates admit a lanes App commit by the [dependabot skip] substring and the base-registry paths, without checking content. Confirmed as a gap, with no exposed surface today:

  • Four patch rows write the marker (.github/actions/resolve-config/patch-rules.json lines 31, 42, 54 and 66). Three allow only dependency-manifests. The fourth is cdn-pins-sync, whose content rule runs the base sync.mjs check.
  • The rows that can write plugin code (ci-context, review-threads, default, issue) carry no marker.
  • {ref} cannot inject one, because git refuses [ in a ref name.
  • Until feat(rendered-views): keep the CDN pins and SRI hashes on a Dependabot-bumped manifest #18281 adds lib/cdn-pins/pins.json, both gates refuse for lack of a base registry, so the route is inert.

The condition that would make it matter is a later row that carries the marker and an allow class covering a CDN target. #18281 closes it before the route goes live: both gates will require the row's exact message (Sync the CDN pins to the bumped manifest on <ref> [dependabot skip]) and its Lane-Activity: trailer, not a substring.

IMPORTANT: lib/cdn-pins/pins.json and sync.mjs get no enforcement floor row. Correct. Both files are added by #18281, which will add them as enforcement floor rows, with the generated copies and floor pins.

IMPORTANT: the deleted input descriptions held gate rationale. Their text stays in this pull request's history and in the parent commit. The repository's comment lint rejects unlinked comments, so #17572 dropped the read reusable's descriptions the same way. No change here.

IMPORTANT: no test runs cdnPatch or the container script. The container script ran locally at both heads (EACCES before the fix, the synced file written after; see Verification). #18281 adds an end-to-end test over the real sync.mjs, the patch CLI and apply-patch's cdn-pins-sync row.

IMPORTANT: the content-rule test uses a stand-in for sync.mjs. #18281 adds a contract test against the real script: check(root) returns string[], and sync <root> rewrites the targets.

SUGGESTION: max-files: 6 matches today's target count. Going over it escalates, so it fails closed. #18281 adds a test that the registry's path count stays within the row's max-files.

@kyle-sexton kyle-sexton removed the do-not-merge Hard merge gate: do not merge while applied. label Nov 23, 2026
@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 23, 2026
Merged via the queue into main with commit 227fd82 Nov 23, 2026
146 of 147 checks passed
@kyle-sexton
kyle-sexton deleted the feat/17783-cdn-pins-sync-route branch November 23, 2026 23:11
@github-actions github-actions Bot added the merge-path: owner-agent Post-merge accounting record (README.md, Merge paths) label Nov 23, 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