Skip to content

feat(lanes): file one issue per new Claude Code release from a daily check - #10317

Merged
kyle-sexton merged 6 commits into
mainfrom
fix/claude-code-release-issues
Oct 27, 2026
Merged

kyle-sexton merged 6 commits into
mainfrom
fix/claude-code-release-issues

Conversation

@kyle-sexton

Copy link
Copy Markdown
Member

Refs: #10195

Summary

Nobody notices a new Claude Code release until someone runs /harness-ops:changelog. This adds the small form of #7407 that the owner released under C12: a scheduled check that files one issue per unread release, built to the decision record. It opens with Refs: rather than Closes, because the second amended criterion (a dispatched run on the PR branch, linked here) has not run yet. See Verification.

Fix

  • .github/workflows/maintenance-file-claude-code-release-issues.yml: runs daily at 08:27 UTC and on workflow_dispatch with no inputs. Top-level permissions: {}; the job holds only its own GITHUB_TOKEN with contents: read and issues: write. It runs no Claude step, touches no broker or App token, and honours the lanes kill switch the way maintenance-monitor-signals.yml does. It runs changelog-status.sh in its fetching mode (record decision 1), writes the status to the job summary, and passes it to the filer as a file, never as a ${{ }} expression (decision 4).

  • scripts/claude-code-release-issues.sh checks the whole status file before any gh call:

    • range: up to date files nothing.
    • range: not computed or last-applied: none exits 2 and files nothing (decision 2).
    • cap: within budget files Claude Code changelog: <X.Y.Z> for each release, unless an issue with that exact title exists in any state.
    • cap: exceeded files only Claude Code changelog: unread releases beyond the replay cap, holding the recommend: line, unless one is open (decision 3).

    It reads the issue list once, through one title search, and matches titles exactly in jq. It adds no label.

  • Docs: a "Daily Claude Code release issues" section and an enforceability update in docs/conventions/upstream-drift/README.md. Because that convention's own rule makes an enforceability-verdict change a major bump, its CHANGELOG.md gets a 4.0.0 entry. There is also a row in docs/conventions/loop-lane/posting-lanes.md.

Verification

  • bash scripts/claude-code-release-issues.test.sh: PASS=57 FAIL=0, and 38 of those cases failed before the script existed. They cover the first amended criterion row by row:

    • marker equal to newest files nothing
    • one unread release files one issue
    • an existing issue with the same title files nothing
    • two unread releases file two issues
    • over the cap, one beyond-the-cap issue and no per-release issue, and nothing when that issue is open
    • range: not computed exits non-zero and files nothing

    The last four cases feed the filer the real changelog-status.sh output for a fixture ledger and changelog.

  • Affected suites all pass: check-script-contract, check-upstream-drift, upstream-drift-issues, workflow-self-paths, lib/gate-entry, lib/test-harness and the discovery contract suite. scripts/check-affected.sh --tests reports 11 passed and 3 skipped.

  • actionlint, zizmor --no-online-audits (no findings) and bash scripts/check-lane-coverage.sh --check are clean. shellcheck and shfmt -i 2 are clean.

  • Live dry run against the current changelog page: changelog-status.sh prints range: not computed (no <Update label=...> release blocks parsed ...), and the filer exits 2 and files nothing, as the not-computed test predicts. The page now marks releases as **2.1.310** lines, not <Update label=...> blocks, so the status script cannot parse it. That is a harness-ops defect outside this change, and until it is fixed the scheduled run fails red instead of reporting nothing unread.

  • The filer's one real gh read, gh issue list --state all --search 'in:title "Claude Code changelog"' --json number,title,state, returns a JSON array against this repository: [], so no such issue exists yet.

  • Dispatched run on this branch: this cannot be met as written. GitHub only dispatches a workflow whose file exists on the default branch (events that trigger workflows, workflow_dispatch: "This event will only trigger a workflow run if the workflow file exists on the default branch"), so this new workflow cannot be dispatched on the PR branch before it merges. Until the changelog parser is fixed, any run will exit 2, which proves only the failure path.

Related

  • Refs #10195
  • Parent: #7407. It keeps apply-in-CI, opening PRs and the broker change.

🤖 Generated with Claude Code

kyle-sexton and others added 2 commits October 26, 2026 11:56
…check

A daily, dispatchable workflow runs the changelog skill's status script in
its fetching mode and hands the status to scripts/claude-code-release-issues.sh,
which files `Claude Code changelog: <version>` per unread release unless that
title exists in any state, or over the replay cap one beyond-the-cap issue
holding the status recommendation unless one is open. A range not computed or
a missing marker fails the run and files nothing. The job holds only its own
GITHUB_TOKEN (contents: read, issues: write), runs no model, adds no label, and
honours the lanes kill switch.

Refs: #10195

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-26T17:45:23.489837Z f5e9db6 PR opened
ℹ️ 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

github-actions Bot commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

claude-security-review reviewed 38ab5594e00bb801872cd16f56796102492fa57c: 1 finding(s), 0 as inline comments.

Security review of #10317 at 38ab559: one SUGGESTION and no CRITICAL findings.

Trusted paths. None of the 6 changed files match a trusted-path glob. The change touches no trust control. It does not widen the trusted-trigger check, the lanes App token, merge holds, the token broker's inputs or the other .github/actions/ controls.

Kill switch. The new workflow consults check-kill-switch, and both work steps are gated on steps.kill.outputs.proceed == 'true'. So a kill-switch read that fails closed still stops it.

Token and permissions.

  • Top-level permissions: {}, with contents: read and issues: write at job level only.
  • No App token, no secrets, no model step.
  • The checkout sets persist-credentials: false.
  • The triggers are schedule and workflow_dispatch with no inputs, so nothing attacker-controlled reaches a ${{ }} expression inside a run: block.

Injection surfaces in scripts/claude-code-release-issues.sh. Changelog text is fetched from a remote page, so I traced it:

  • Every version is checked against ^[0-9]+\.[0-9]+\.[0-9]+$ before it reaches a title, a jq --arg or a gh argument. Titles go to jq through --arg, never interpolated.
  • releases is expanded unquoted, so a glob could expand to file names. Each result then fails the version regex and the script exits 2.
  • The recommend: text is the only free text that reaches an issue body. It is placed in a fenced code block with backticks replaced, so it cannot open a mention or break out of the markdown.
  • Bodies go through --body-file. There are no labels, assignees or mentions.
  • A malformed or unparseable status exits 2 before any gh call.

Instruction surfaces and manifests. No instruction file was removed or softened. No plugin.json or marketplace.json changed, so there are no manifest lines to report.

Spend. The workflow runs no model. It makes one gh issue list read and a few gh issue create calls per day, with no charge and no prepaid spend.

critical-findings: 0

Findings not posted inline (their lines are not in the diff):

  • scripts/claude-code-release-issues.sh:357 (RIGHT): severity: SUGGESTION

The duplicate check counts an issue with the exact title in any state and by any author (see the header comment on the search). Anyone who can open an issue can pre-file Claude Code changelog: <next version>, then close it or leave it open. Release numbers are predictable. The daily run then sees the title as existing and files nothing, so the notification this workflow exists to deliver never arrives for that release. The cap issue is not affected because it only checks open issues, and the effect is limited to suppressing a notice.

A possible fix is to match only issues authored by github-actions[bot]. Fetch author with --json number,title,state,author and require .author.login == "app/github-actions" (check the exact login in the gh output) in exists for the per-release titles. Alternatively, accept the risk and record it in the convention doc.

@github-actions

github-actions Bot commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

claude-review reviewed 38ab5594e00bb801872cd16f56796102492fa57c: 0 finding(s), 0 as inline comments.

Code review: #10317 (daily Claude Code release issues)

No blocking findings. I read all 6 changed files, changelog-status.sh and changelog-releases.sh. I did not run any tests or scripts. The PR's pass counts and its live dry run are author-claimed and unverified by me.

What I checked

  • Workflow: permissions: {} at the top, with contents: read and issues: write on the one job. The kill-switch step gates both later steps. Changelog text reaches the filer only as a file, never through a ${{ }} expression. The concurrency group and cancel-in-progress: false match the new row in posting-lanes.md.
  • Filer vs. status output: the keys the filer reads are the ones changelog-status.sh prints. The releases: line is omitted only when the release count is over the cap, and the filer's exceeded branch doesn't need it. changelog-status.sh exits 0 on range: not computed, so the filer is what fails the run, as intended.
  • Failure paths: every unreadable or malformed status shape exits 2 before any gh call. Version strings are checked against X.Y.Z before they reach a title or a body. A failed create does not stop the other releases from being tried, and the script still exits 1.
  • Convention docs: the 4.0.0 major bump in docs/conventions/upstream-drift/CHANGELOG.md is consistent with that contract's rule that an enforceability-verdict change is major.

Manifests: the diff touches no plugin.json or marketplace.json, so no manifest <field> lines apply. No closing issue is listed, since the PR uses Refs:. I found no paved-path or path-scoped rule to apply.

Notes that are not counted as findings

  • Search query differs from the verified one: the script searches in:title "Claude Code changelog:" (scripts/claude-code-release-issues.sh:322). The PR's Verification section describes the live read with the colon left out. The stub-based tests can't tell whether GitHub search treats the trailing colon inside the quoted phrase the same way. If it returned no results, the filer would see no existing issues and file duplicates every day. One live --dry-run after merge would settle it.
  • Stale PR description: the Verification section says the live changelog page uses **X.Y.Z** markup and changelog-status.sh can't parse it, so scheduled runs will fail red. In this head, plugins/harness-ops/scripts/changelog-releases.sh:68 already matches **X.Y.Z** lines, and the new test's "current markup" case expects it to work. The description appears to predate that parser support, so it should be refreshed.
  • Stray edit in the upstream-drift README: the diff re-wraps one unrelated line in the "The scope of an absence" section (the "fragile, because the next reader who / checks the premise…" hunk). It changes no meaning, but it sits in a versioned contract doc and could be dropped.
  • Spend: the workflow runs no model and spends no prepaid credits or subscription usage. It uses only the job's GITHUB_TOKEN on a standard runner for up to 15 minutes a day, so it does not trigger a cost hold.

@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: f5e9db62b1

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

melodic-automation-lanes Bot and others added 3 commits October 26, 2026 17:53
Lane-Activity: pr-refine/fix-docs
The changelog page now marks each release with a `**X.Y.Z**` line, a date
line and bold group headings. A case built in that form fails on the
`<Update>`-only parser this branch was cut from (range not computed, exit 2,
nothing filed), so the daily workflow cannot ship without the parser fix
from main. The suite's test-scope now names the shared release parser.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@kyle-sexton
kyle-sexton added this pull request to the merge queue Oct 27, 2026
Merged via the queue into main with commit 5237d8e Oct 27, 2026
39 checks passed
@kyle-sexton
kyle-sexton deleted the fix/claude-code-release-issues branch October 27, 2026 05:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant