Skip to content

fix(harness-ops): parse the changelog's current release headings - #10312

Merged
kyle-sexton merged 1 commit into
mainfrom
fix/harness-ops-changelog-release-markers
Oct 26, 2026
Merged

kyle-sexton merged 1 commit into
mainfrom
fix/harness-ops-changelog-release-markers

Conversation

@kyle-sexton

Copy link
Copy Markdown
Member

No related issue: the changelog page's release markup changed; found while building #10195

Summary

The Claude Code changelog page now marks each release with a line that is only **X.Y.Z**, followed by a date line, optional bold group headings (**Added**, **6 improvements**, **14 bug fixes**) and * bullets; no <Update label=...> block remains on the page. changelog-status.sh parsed only <Update label= blocks, so it reported range: not computed (no <Update label=...> release blocks parsed ...), which left /harness-ops:changelog status, diff and apply without a range and would stop the daily release-issue workflow in #10195.

Fix

  • New plugins/harness-ops/scripts/changelog-releases.sh: the one parser of the page's release markup. It accepts both release-marker forms (<Update label="X.Y.Z"> and a line that is only **X.Y.Z**), ends a release at </Update>, the next marker or end of input, counts only */- bullets as items (bold group headings are not items), and emits release and item rows; --blocks <A..B|X> prints the raw lines of those releases.
  • changelog-status.sh takes its releases, latest and item counts from those rows; its output keys are unchanged, and the parse-failure message now reads no release markers parsed.
  • The behavior-probes recheck (probe.py changelog_items) reads items through the same parser, so item ids keep the <version>-<ordinal> form for both formats.
  • context/read-actions.md no longer restates the page's markup: it points at the live page with an as-of date (2026-10-26) and a recheck trigger, and slices releases with changelog-releases.sh --blocks instead of an <Update>-bound awk range. SKILL.md and decisions.md say "release" rather than "release block".
  • New fixture skills/changelog/evals/fixtures/changelog-current.md: a trimmed excerpt of the live page (the prelude, 2.1.310, 2.1.308, 0.2.26, 0.2.21), with a markdownlint-disable MD004 MD022 comment on top so the upstream bytes stay as fetched.
  • probe.test.sh's test-scope now names the parser, so a parser-only change still runs the recheck tests.

Verification

  • TDD: before the fix, the new status cases failed (5 of 83 assertions failed: latest, the 2.1.308..2.1.310 range with 25 core items, release order, the end-of-file release, a cross-era range) and test_probe.RecheckTests.test_current_release_headings_give_the_same_ids failed with [] items. After it, changelog-status.test.sh passes all 86 assertions and test_probe.py runs 34 tests, all OK. The old-format cases keep their inputs and expected values, except the no-release-markers case, whose expected message text was reworded with the script. The three --blocks slice assertions (Case 15) were written after the parser existed, so they are coverage, not fail-before tests.
  • The expected item count comes from upstream's own group headings: 2.1.310 has 3 Added, 3 Changed, **6 improvements**, **14 bug fixes** (26 bullets), less 2 [VSCode] lines. Over the whole live copy, every one of 225 grouped headings' counts equals the bullets under it, so the fetched page was complete.
  • Live run, fetching through the script's own path: latest: 2.1.310, range: 2.1.299..2.1.310 (12 releases, 604 core items), cap: exceeded. Until the ledger marker is reset, feat(lanes): file one issue per new Claude Code release from a scheduled check #10195's first live run will file only the beyond-the-cap issue, not one issue per release.
  • markdownlint-cli2 and typos are clean on the changed markdown.
  • scripts/run-plugin-tests.sh over all 48 harness-ops suites passed (one optional Windows-only skip); the selector's other picks (evals-fixtures.test.sh, check-summary-reader-parity.test.sh) pass. shellcheck, shfmt and the pinned ruff check and format are clean.
  • feat(lanes): file one issue per new Claude Code release from a scheduled check #10195's scripts/claude-code-release-issues.test.sh, run against this branch's changelog-status.sh: 55 pass, 2 fail. Both failures are its "markup moved" case, whose fixture uses the **2.1.298** form that this PR makes parseable. With that fixture changed to an unparseable form (## 2.1.298), all 57 pass.

Related

🤖 Generated with Claude Code

The changelog page now marks each release with a `**X.Y.Z**` line instead
of an `<Update label=...>` block, so changelog-status.sh reported
`range: not computed` and status, diff and apply had no range.

One parser, plugins/harness-ops/scripts/changelog-releases.sh, reads both
release-marker forms and emits release and item rows; changelog-status.sh,
the behavior-probes recheck and the fetch action's slice (--blocks) all use
it. read-actions.md now points at the live page with an as-of date and a
recheck trigger instead of restating its markup.

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-26T16:59:14.427888Z b5cd9a9 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.

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

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

@github-actions

Copy link
Copy Markdown
Contributor

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

No findings. I read the full diff (.claude-lane/pr.diff) and the PR context. I read only the grep hits in probe.py and changelog-status.sh that I needed to check wiring. I did not run any tests or scripts here, so the author's counts (86 assertions, 34 tests, live run) are author-claimed and unverified.

What I checked by reading:

  • Parser (changelog-releases.sh): both marker forms open a release. </Update>, the next marker or end of input closes it. Only */- bullets followed by whitespace count as items, so **Added**-style group headings do not. --blocks range validation and exit 3 are consistent with the header.
  • changelog-status.sh: the awk consumer turns release and item rows into per-version counts, and n[$2] += 0 keeps item-less releases in the range. The [VSCode] filter still matches the fixture's \[VSCode] text. My hand count of the expected 2.1.308..2.1.310 (2 releases, 25 core items) is 26 bullets in 2.1.310, less 2 [VSCode], plus 1 in 2.1.308. plugin_root is now computed before the fetch branch, and the ../../.. fallback resolves to the plugin root.
  • probe.py: CHANGELOG_PARSER resolves to plugins/harness-ops/scripts/. bash_argv0 and subprocess already exist in that file. Ids keep the <version>-<NNN> form through the per-version ordinal.
  • Changelog fragment: bump: patch is appropriate for a parser fix.
  • Docs and tests: the read-actions.md as-of date and recheck trigger are present, and the new test cases are consistent with the fixture.

No plugin.json or marketplace.json changed, so there are no manifest lines. The PR has no closing issue, so there are no acceptance criteria to check. No trusted-path file is touched.

Minor, not flagged: if the parser script were missing, the status script would report "no release markers parsed", which would misattribute the cause. That is an unlikely edge.

@github-actions

Copy link
Copy Markdown
Contributor

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

Security review of PR #10312 at b5cd9a9: no security issues found.

critical-findings: 0

  • Trusted paths and trust controls: None of the 11 changed files matches a trusted-path glob. The diff doesn't touch the trusted-trigger list, lane token scope, kill switch, merge holds, pr-pipeline.yaml, CODEOWNERS or .gitmodules.
  • Manifests: The diff changes no plugin.json or marketplace.json, so there are no manifest <field> lines.
  • Instruction surface: The edits to SKILL.md, decisions.md and read-actions.md reword "release block" to "release" and replace the restated page markup with a pointer. No guardrail, block list or allowlist is removed or softened.
  • New parser (changelog-releases.sh): It reads a file or stdin and does no eval or command substitution on page content. It passes content only to awk as data, and passes lo/hi through -v after a strict X.Y.Z regex check, so there is no injection path. An unreadable file or malformed argument exits 3.
  • probe.py: It runs the parser with a fixed argv (bash_argv0(), a repo-relative script path) and no shell, and passes the text on stdin.
  • changelog-status.sh: plugin_root still comes from CLAUDE_PLUGIN_ROOT or the script's own location. That is the same trust assumption as before; the line only moves earlier. Page text is used only to compute versions and counts, which are validated as numeric by the regex. A hostile changelog line shaped like **9.9.9** could skew the computed range or counts. The page is fetched from the docs host, and the status script already trusted it for <Update label>, so this adds no new boundary.
  • PR context: The description contains no embedded instructions aimed at the reviewer.
  • Spend: This change adds no billing or prepaid-credit spend.

@kyle-sexton
kyle-sexton added this pull request to the merge queue Oct 26, 2026
Merged via the queue into main with commit feb36c1 Oct 26, 2026
39 checks passed
@kyle-sexton
kyle-sexton deleted the fix/harness-ops-changelog-release-markers branch October 26, 2026 22:31
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