Repository navigation
feat(pr-unblock): sync the CDN pins on a Dependabot manifest bump - #18336
Conversation
Refs: #17783 Co-Authored-By: Claude Opus 5.5 <[email protected]>
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]>
|
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. |
|
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. |
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]>
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. |
There was a problem hiding this comment.
💡 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".
|
claude-security-review reviewed Security review: PR #18336 (incremental, head
|
|
claude-review reviewed CI code review: PR #18336 at
|
…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]>
… 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]>
|
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. |
…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
|
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. |
…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
|
The pr-unblock lane stopped
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 gh workflow run pr-unblock.yml -R melodic-software/claude-code-plugins -f pr-number=18336 -f activity=resolve-conflicts |
…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
|
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 |
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
|
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. |
|
Held by session f8b9f2fc (GitHub Work) with the do-not-merge label while it fixes the two pr-verify findings at c0e831d:
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
|
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 |
|
Held by session f8b9f2fc (GitHub Work) with the do-not-merge label while it reads the |
|
Session f8b9f2fc (GitHub Work) has dispositioned the CRITICAL, both lanes: the merge gates admit a lanes App commit by the
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 ( IMPORTANT: 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 IMPORTANT: the content-rule test uses a stand-in for SUGGESTION: |
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
lib/cdn-pins/sync.mjs syncover 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 ALLandno-new-privileges, so it can write the runner-owned result directory without any added capability.pr-run-activity-write.ymlwithpatch-prepare: cdn-pins-sync.patch-rules.jsonrowcdn-pins-syncwith a new allow classcdn-pins: onlylib/cdn-pins/pins.jsonand thetargets[].pathentries of the base branch'spins.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 basesync.mjs checkpasses on the patched tree. With nopins.jsonon the base, the class allows nothing.lib/cdn-pins/pins.jsonandsync.mjsinto apply-patch's base directory for acdn-pins-syncpatch, and nothing when the base has none, so the allow class and content rule read the trusted base.pins.jsonlists 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.cdnSyncRefusal(pr-unblock'sapply-dependency-verdict.mjsmerge path) and its twincdn_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 basepins.jsonor itstargets[].path, each modified in place as a 100644 blob on both sides. A missing or invalid base registry refuses.fixRefusalandinFixScopeare unchanged, so afixverdict gains nothing, andpushRefusalstill binds the pusher..github/lane-registry.jsonregisters theapply-cdn-pins-syncjob, sorefire-refused.mjsreads it from the registry; the newresolve-branch-tipstep uses main's ci-workflows pin.scan-uploadaction, which replaced the local one on main.docs/conventions/pr-pipeline.yamlgains an enforcement floor row for.github/scripts/apply-patch/cdn-paths.mjs(it decides what thecdn-pinsclass may write), with the generated floor copies and floor pins updated.apply-patch.test.mjsdeclares// test-scope: .github/scripts/apply-patch/* .github/scripts/lib/*: its staged-layout test copies both trees.pr-run-activity-write.ymldrops itsworkflow_callinput 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 takenpr-unblock.ymlover the template-size fail line. Nothing reads the descriptions at run time.Path list (owner-approved)
The allow class covers every file
sync.mjsrewrites, read from the basepins.jsontargets[]:plugins/architecture/skills/improve/research/deepening/html-report.md, the two eval samples underplugins/architecture/evals/deepening-report-on-chrome-with-counts/samples/,plugins/architecture/scripts/deepening-report.mjs,plugins/architecture/scripts/deepening-report.test.mjs, andlib/cdn-pins/pins.json(whichsync.mjsitself 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: thecdn-pinsallow takes only the base registry and its targets and throws with no registry; thecdn-pins-synccontent rule passes a patched tree the basecheckaccepts 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.mjs159 pass,callers.test.mjs300 pass,workflow-gates.test.mjs69 pass (the sync job:permissions: {}, a digest-pinned image, no token),dependency-relock.test.mjs12 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.shclean.node:24.21.0-slim, the repository's.node-version, pinned to the index digest Docker Hub served for that tag at build time.engine.test.sh548 OK;merge-holds.test.mjs76,callers.test.mjs301,lane-registry.test.mjs9 pass;test_merge_holds_sync+test_diff_risk167 OK;apply-patch.test.mjs434 andworkflow-gates.test.mjs69 pass;selection-audit.sh trace --strictonapply-patch.test.mjs,test_diff_risk.pyandtest_floor_paths.py: no gap;sync-hold-floor.py --checkclean;scripts/check-affected.sh: 23 passed, 1 skipped.apply-dependency-verdict.test.mjs+dependency-classify.test.mjs+review-dependency.test.mjs163 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; afixverdict landing the pin files is still refused.test_babysit_merge_policy.py) 613 OK with the same sync cases throughdependabot_eligibility, part c 615 OK, part d 2914 OK (6 skipped), includingCdnSyncIsTheGates, which runs both predicates and both registry parsers under node and Python over 13 commit vectors and 15 registry texts.selection-audit.sh trace --stricton the five edited suites: no gap.sync-hold-floor.pyregenerated the floor block after the merge.scripts/check-affected.sh --base origin/mainat 1bb9f94: 23 passed, 1 skipped.workflow-gates.test.mjs70 pass after the merge.run:block, taken verbatim frompr-unblock.ymland fed a stubsync.mjsthat rewrites one file, with the result directory created by the runner user (1000:1000) at 0755. At c0e831d the container failed withError: EACCES: permission denied, mkdir '/result/docs'and wrote nothing; at f77a1e1 it exited 0 and wrotedocs/view.md(1000:1000, mode 644) with the synced text. No writable HOME was needed.workflow-gates.test.mjsnow asserts--userbeside--cap-drop ALL(70 pass).apply-patch.test.mjsis pushed under the old rule and escalatesdependency-pin-protected-pathunder the new one (445 pass).check-workflow-template-size.sh:pr-unblock.yml10,160,708 bytes, 415,600 under the fail line.Remaining
sync.mjsand its check) merges after this pull request; until then this route stays inert.Related
🤖 Generated with Claude Code
https://claude.ai/code/session_01UJUn7JjbzH3qP4NugM6Ns5