Skip to content

ci(upstream-drift): run all drift checks from one weekly workflow - #16397

Merged
kyle-sexton merged 5 commits into
mainfrom
feat/14211-weekly-upstream-drift-workflow
Nov 15, 2026
Merged

kyle-sexton merged 5 commits into
mainfrom
feat/14211-weekly-upstream-drift-workflow

Conversation

@kyle-sexton

Copy link
Copy Markdown
Member

Refs: #14211

Summary

Problem: an upstream change reached nobody unless a person noticed a failed workflow run, and the vendored skills' drift was checked by a separate weekly workflow that never opened an issue. Intent: "to ensure what we build is what I want".

One weekly workflow now runs every drift check and keeps one issue per upstream, vendored skills included. While an upstream's issue is open, the run updates it and files no second one. A run passes once its issues are written and fails only after filing everything it can.

Fix

  • New adapter scripts/upstream-drift-vendored-report.sh: seven rows (the six vendored-skill update scripts and good-css's hash check), one page line per row with pin=unknown head=unknown. A timed-out row or an exit other than 0, 1 or 2 maps to untracked; an out-of-contract exit is also written to a broken-contract file. Check output goes only to the job summary, rows run with no token, and the adapter exits 0 or 2, writing no report on 2.
  • plugins/user-interface/scripts/check-good-css-drift.sh now only hashes the vendored copies, offline; the curl prerequisite is gone.
  • .github/workflows/maintenance-file-upstream-drift-issues.yml runs on cron 29 10 * * 1 with two jobs: report (contents: read, 30 minutes, token on the docs/upstream step only) uploads the reports as a one-day artifact only when both producers finished; file (issues: write, needs: report) files every issue, then fails when the broken-contract file is not empty. .github/workflows/maintenance-check-upstream-drift.yml is deleted.
  • The maintenance monitor reads the new workflow; the upstream-drift contract's section is "Weekly drift issues" and its CHANGELOG gets a minor entry; the docs the issue lists say weekly.

Three things that differ from the issue's wording, each from what main holds now:

  • The contract version is 6.1.0, not 4.4.0: the contract CHANGELOG already stood at 6.0.0.
  • The file job also holds contents: read, because it checks the repository out to run the filer. issues: write is still its only write grant.
  • The Dometrain row's script path in the issue is stale; the row uses the script's current path.

Verification

  • scripts/upstream-drift-vendored-report.test.sh: PASS=49 FAIL=0 (it failed 39 cases before the script existed); plugins/user-interface/tests/check-good-css-drift.test.sh: all checks pass. Both run again by the session that opened this PR.
  • The filer's own suite passes unchanged (167 cases); actionlint and zizmor are clean on the new workflow.
  • The issue's own checks: the grep for the old workflow's name finds no match in the listed paths; bash scripts/upstream-drift-issues.sh --dry-run <report> prints one action= line per id and makes no write; grep -c "fetch_blob_sha\|curl" plugins/user-interface/scripts/check-good-css-drift.sh returns 0.
  • Dry run before the first live dispatch, at the branch head: both producers, then the filer with --dry-run against the live issue list: 16 ids, 17 page lines (7 from the adapter), no broken-contract row; create 6, edit 2, reopen 0, close 0, none 8.

Left out: scripts/check-artifact-retention.sh and 4 of 31 cases in the monitor's test file did not run locally, because the packages they need (yaml, ajv) are not installed in this checkout and installing them was refused by the building session's permission system; CI runs both. No workflow was dispatched.

Related

Remaining

  • The items that need the workflow on main: a dispatched run that found drift and wrote every issue passes; a failed issue write still fails the run; a producer exiting 2 or more fails report with nothing filed; the dispatched report holds the seven adapter lines; each new issue carries needs-human; the dry run is repeated at the merge commit. feat(upstream-drift): run all drift checks from one weekly workflow #14211 closes when those are recorded.

🤖 Generated with Claude Code

https://claude.ai/code/session_015te8Csz4bqxpok4iu8Mcrd

kyle-sexton and others added 3 commits November 15, 2026 12:17
scripts/upstream-drift-vendored-report.sh runs each vendored skill's own
check script from a seven-row table (D6) and writes one report `page` line
per row with `pin=unknown head=unknown` (Q63), in the form the one filer
reads. Exit 0, 1 and 2 map to clean, drift and untracked; a timeout
(--row-timeout, default 120 s) is untracked with a warning (D19); any other
exit is untracked with an error and the row id in the broken-contract file
(D15). Each check's output goes only to the job summary (D14), rows run with
no token (D5), and the adapter exits 0 or 2, never 1, writing no report on 2
(D16).

Refs: #14211

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ored-copy hash

check-good-css-drift.sh now only checks, offline, that the two vendored
good-css copies still hash to their pinned blob SHAs (Q60). The upstream
side of the pin is read by scripts/check-upstream-drift.sh from the
standard-form record, so the script drops PIN, the upstream compare,
fetch_blob_sha and curl. Its test keeps cases 1, 4, 5 and 6, drops the
upstream cases 2, 3 and 3b, and adds a case that runs the check with no curl
on PATH. The curl prerequisite goes with its only reader.

Refs: #14211

Co-Authored-By: Claude Opus 5.5 <[email protected]>
maintenance-file-upstream-drift-issues.yml now runs weekly at the deleted
maintenance-check-upstream-drift.yml's slot, 29 10 * * 1 (D4), in two jobs
(D5): `report` (contents: read, 30-minute timeout) runs the pinned check
with the token on that step alone and the vendored-skill adapter with none,
and uploads the reports with a 1-day retention only on success; `file`
(issues: write, needs: report) files every issue, then fails on an
unreachable upstream or a non-empty broken-contract list (D15).

The monitoring lane reads the filer workflow in place of the deleted one,
and its audit finding no longer says a failed run reported findings. The
upstream-drift contract retitles its section "Weekly drift issues" and
covers the adapter (6.1.0, the next minor after 6.0.0); the docs that named
the old workflow or a monthly run now name the weekly one.

Refs: #14211

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

chatgpt-codex-connector Bot commented Nov 15, 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-15T17:33:14.080851Z c185057 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 43741535245

Failed GitHub API calls

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

@github-actions

github-actions Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

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

Security review (incremental, blocking only): PR #16397

No security issues found.

Scope. I read every hunk of all 4 files that changed since c18505739ef6f3d7af3bbe262727d400b06106d1, using .claude-lane/incremental.diff. This lane already reviewed an earlier head, so this review was blocking only: it reports only CRITICAL and IMPORTANT findings.

What changed.

  • .github/scripts/maintenance-monitor-signals/signals.mjs: rewords the summary text of the signal 6 "Audit failed" finding. It now also names the report job failing with nothing filed. The fields it reads (workflow, run.createdAt, run.url) are the same ones it read before, and it changes no logic, gate or permission.
  • .github/scripts/maintenance-monitor-signals/signals.test.mjs: adds one assertion on that new wording.
  • docs/conventions/pr-pipeline/README.md: the same wording change in the signal table's row 6.
  • .changes/pr-pipeline/feat-14211-…md: the same wording change in the changelog fragment.

Trust controls and instructions. None of the four files matches a trusted-path glob. The change touches no trust control, merge hold, token scope, kill switch, plugin manifest or standing instruction.

Prior and settled items. My earlier review left no inline finding on this pull request, so nothing is re-posted.

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

claude-lane: claude-review

@github-actions

github-actions Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

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

Code review, incremental (c185057 → e286dbf)

No findings. This round reported blocking findings only, because this lane already reviewed an earlier head. I read every hunk of all 4 files changed since then:

  • the .changes/pr-pipeline fragment
  • signals.mjs
  • signals.test.mjs
  • docs/conventions/pr-pipeline/README.md

The prior finding is fixed. My earlier advisory finding said signal 6's summary claimed a failed drift-workflow run had always filed every issue first. That finding (resolved thread on signals.mjs:255) is now addressed in all three places it pointed to:

  • Summary text: signals.mjs:255 now names the case where the report job fails with nothing filed because a drift check could not finish.
  • README row 6: README.md:3493 gives the same producer case.
  • Changelog fragment: the .changes/pr-pipeline fragment gives it too.

New test: the assertion in signals.test.mjs:324 uses a regex that matches the new summary text word for word. If the wording were dropped or changed, the test would fail.

Not verified by me: the PR author reports the test failed first (49 pass, 1 fail) and passes now (50 pass, 0 fail). That is the author's claim; I did not run it.

Manifests: no plugin.json or marketplace.json changed. The fragment edit only rewords the text and does not change its bump:.

Spend: nothing in this increment changes how much the workflows spend.

Verifier dropped 0 of 0 candidates.

kyle-sexton and others added 2 commits November 15, 2026 12:45
A drift check that could not finish fails the workflow's report job, so
the file job never runs and nothing is filed (D15). The signal-6 summary,
the pr-pipeline README's row 6 and the pr-pipeline fragment said every
filer failure came after filing every issue; each now names that case.

Refs: #14211

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 15, 2026
Merged via the queue into main with commit 2aaabf3 Nov 15, 2026
57 checks passed
@kyle-sexton
kyle-sexton deleted the feat/14211-weekly-upstream-drift-workflow branch November 15, 2026 18:01
@github-actions github-actions Bot added the merge-path: owner-agent Post-merge accounting record (README.md, Merge paths) label Nov 15, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Post-merge mutation testing

Killed 6, survived 1, timeout 0, no coverage 0, invalid 0, not run 0.
Covered-code score 86%; mutation score 86%.

File Killed Survived Timeout No coverage Invalid Not run
.github/scripts/maintenance-monitor-signals/collect.mjs 0 1 0 0 0 0
plugins/user-interface/scripts/check-good-css-drift.sh 1 0 0 0 0 0
scripts/upstream-drift-vendored-report.sh 5 0 0 0 0 0

Surviving mutants

Location Operator Disposition Cause
.github/scripts/maintenance-monitor-signals/collect.mjs:162 other productive input-gap

The run's summary has the full report.

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