Skip to content

feat(claude-ops): changelog diff emits component decisions by action lens - #5362

Merged
kyle-sexton merged 7 commits into
mainfrom
feat/4024-changelog-decision-lenses
Sep 29, 2026
Merged

kyle-sexton merged 7 commits into
mainfrom
feat/4024-changelog-decision-lenses

Conversation

@kyle-sexton

@kyle-sexton kyle-sexton commented Sep 29, 2026 •

Copy link
Copy Markdown
Member

Refs #4024

Summary

Slice 2 of #4024. /claude-ops:changelog diff now emits decisions grouped by owner surface instead of a P1/P2/P3 triage of items. Each row carries one of five action lenses (correct, replace, adopt, note, skip) and the sentence its lens requires. Skip items leave no row. Slices 1 (#4041) and 2 are on the branch.

Fix

  • The classification rubric is rewritten around the five lenses, with a source-precedence rule and a docs-lag section.
  • diff writes rows to their named homes: corrections to the owning plugin CHANGELOG, replace candidates nominated to the audit-native-overlap gate, adoptions and declines to docs/upstream/claude-code.md.
  • diff saves its working set under <memory_dir>/claude-code-changelog/<range>/ and apply reads it back.
  • New context/decisions.md spoke; an eval and fixtures cover decisions grouped by owner surface.
  • claude-ops 0.63.36 to 0.64.0, CHANGELOG entry, README line for the changelog skill.

Remaining, so the issue stays open: slice 3 (surface-discovery script, examples spoke, both-shapes eval) and slice 4 (apply as handoff, filing through the seam, phase removal, README and description updates, evals wiring).

Verification

  • markdownlint-cli2 on CHANGELOG.md and README.md: 0 issues.
  • scripts/check-changelog-parity.sh --check --check-order: pass.
  • scripts/validate-plugins.sh: all plugin manifests and the catalog validated.
  • bash plugins/claude-ops/skills/changelog/scripts/changelog-status.test.sh: all 70 assertions passed.
  • Pre-commit hooks passed on each commit.
  • grep -rnE 'P1|P2|P3' plugins/claude-ops/skills/changelog returns nothing.

Related

🤖 Generated with Claude Code

kyle-sexton and others added 5 commits September 29, 2026 13:58
Replace the P1/P2/P3 tiers with correct, replace, adopt, note and skip,
each with the sentence its decision row must carry, the defer-pending-probe
evidence bar for adopt, and the changelog-versus-docs source-precedence rule.

Refs #4024

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…al 5 to the adopt lens

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

Copy link
Copy Markdown
Contributor

PR body contract — issue linkage

This PR body does not yet satisfy the issue-linkage contract:

  • Missing a native closing keyword (Closes/Fixes/Resolves #N). If this PR references an issue it must not close, put "Refs: #N" (or "Relates to: #N") on its own line. If it relates to no GitHub issue at all, state "No linked issue" (or "No related issue:") in the body instead.

Edit the body and this comment updates itself on the next run.

@kyle-sexton
kyle-sexton marked this pull request as ready for review September 29, 2026 18:10
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 29, 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-09-29T18:14:17.424620Z 0c390e5 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.

@claude

claude Bot commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @kyle-sexton's task in 3m 14s —— View job


Code review (/review:code-review)

This is a documentation/skill-content change (no scripts or executable code touched): SKILL.md, classification-rubric.md, the new decisions.md, read-actions.md, evals.json + two new fixtures, plus the version/CHANGELOG/README bumps. Reviewed against origin/main via gh pr diff 5362, scoped to the changed files.

Finding (posted inline)

classification-rubric.md:12 vs decisions.md:23-24 — the two files disagree on where a note lens's one line is emitted. The rubric table says "One line in the read summary"; decisions.md (new in this PR) distinguishes "one line under the table" for note from "the read summary['s count]" for skip, implying two different locations. SKILL.md's reference index routes the same diff/Phase 1 task to both files, so this would hand an implementing agent contradictory placement instructions for note rows. Detail and a fix link are on the inline comment.

Everything else checked out: the five-lens rubric is internally coherent for correct/replace/adopt/skip, decisions.md's decision-homes table and persistence/fan-out sections align with the SKILL.md phase descriptions, the new eval (id: 8) and its two fixtures (release-decisions.md, owner-surfaces.md) match each other and produce the expected grouped-by-owner-surface rows, eval IDs stay unique/sequential (1–8), and the 0.63.36 → 0.64.0 minor version bump matches the added-capability CHANGELOG entry. No P1/P2/P3 remnants found. The PR body's markdownlint-cli2, check-changelog-parity.sh, validate-plugins.sh, and changelog-status.test.sh results are author-claimed and were not independently re-run in this pass.

@claude

claude Bot commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @kyle-sexton's task in 1m 6s —— View job


Security review complete

No security issues found.

This PR is documentation- and configuration-only: it rewrites the changelog skill's classification rubric (P1/P2/P3 → five action lenses), adds context/decisions.md, updates SKILL.md/context/read-actions.md prose, bumps the plugin version/CHANGELOG/README, and adds eval fixtures (evals/fixtures/owner-surfaces.md, evals/fixtures/release-decisions.md) plus evals/evals.json expectation text. No shell scripts, hooks, workflows, or executable code are touched, and no new fetch/exec/credential-handling logic is introduced — the existing curl-based fetch route in read-actions.md is unchanged by this diff.

Checked the instruction-surface deletion lens against docs/conventions/instruction-exception-register/README.md (Gate 0 classes: irreversible-action, secret-handling, data-integrity, external-publication, legal-compliance, agent-authority) since classification-rubric.md was substantially rewritten: the old P1-always rule for security fixes and plugin-system changes is preserved (now "Security fixes and model-specific changes are never skip"), and the new replace lens explicitly adds a guardrail rather than removing one ("A run never edits or removes the component: a replace candidate is nominated to /claude-ops:audit-native-overlap, which owns the decision" — context/decisions.md#L333). No protected-class guardrail was weakened or removed.

GitHub Actions hardening (zizmor's lane) is not applicable — no workflow files changed.

Branch ·

@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: 0c390e567e

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

Reuse the saved working set before resolving content, bind it to the
repository revision and re-verify rows against the current tree, use the
full release version in item ids, stop restating the changelog page's
bullet layout, state the overlap gate's scope, and name one location for
a note line.

Refs #4024

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

claude Bot commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @kyle-sexton's task in 44s —— View job


Security review (/review:security-review)


No security issues found.

This PR remains documentation- and configuration-only. The commits since the prior security pass (0c390e5 → 1afb74d) touch only four files, all prose tightening in response to review feedback:

  • SKILL.md — reorders Phase 0 so the saved working set is checked (and validated) before content is re-resolved.
  • context/classification-rubric.md / context/decisions.md — names one location for a note line, scopes the replace lens's overlap gate to skills/agents, switches item ids to the full release version.
  • context/decisions.md#L79 — binds a saved working set to the repository revision it was derived at and requires the local verifier to re-check each row's owner path and false/true pair against the current tree before reuse (a hardening of the persistence/reuse logic, not a weakening).
  • evals/fixtures/ledger-marker.md — fixture id format update to match.

No scripts, hooks, workflows, or executable code are touched by this commit range, and nothing added or changed widens a trust boundary or handles secrets/credentials/injection-relevant input.

Instruction-surface lens (rechecked): docs/conventions/instruction-exception-register/README.md is present in this checkout and was consulted. This commit doesn't touch the earlier P1-preserving language ("Security fixes and model-specific changes are never skip," unchanged from the last pass) and doesn't remove any guardrail — the one substantive scope change (replace candidates on a non-skill/agent owner surface now explicitly wait as nominated rather than being silently unrepresented) adds a check rather than removing one.

GitHub Actions hardening (zizmor's lane) is not applicable — no workflow files changed.

Branch ·

@claude

claude Bot commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @kyle-sexton's task in 3m 14s —— View job


Code review (/review:code-review)

This lane re-reviewed HEAD 1afb74d (fix(claude-ops): tighten changelog decisions spoke after review), scoped to git diff origin/main...HEAD. That commit is a direct response to the prior review round on 0c390e5, so I diffed 0c390e5..1afb74d and re-checked each earlier finding against the new text rather than re-deriving from scratch.

All six prior findings are resolved on this head

  1. Codex — overlap gate can't represent scripts. classification-rubric.md's replace section now states the gate's actual scope and the fallback: "That gate compares skills and agents; a candidate on another owner surface (script, hook, rule, doc, setting) waits as nominated in the ledger until the gate can represent it." Verified against audit-native-overlap's own code (overlap.py) — it does in fact scan only plugins/*/skills/*/SKILL.md and plugins/*/agents/*.md, so the new sentence is accurate, not just asserted.
  2. Codex — saved rows can go stale across repo/worktree state changes. decisions.md Persistence now records the derivation revision (git rev-parse HEAD) in rows.md, requires the local verifier to re-check a reused row's owner path and false/true pair before reuse, and forces full re-verification when the recorded revision isn't current or the memory dir is shared across worktrees.
  3. Codex — apply fetched content before checking the working set. SKILL.md Phase 0 now runs "Reuse the working set" as step 3, ahead of "Resolve content" (step 4), so a reusable apply no longer pays for a redundant fetch.
  4. Codex — item IDs dropped the minor/major version. IDs are now <version>-<ordinal> (e.g. 2.1.257-001) everywhere, including the evals/fixtures/ledger-marker.md fixture row that was still on the old 257-052 shape.
  5. Codex — undated restatement of upstream page shape. The [VSCode]-marker/bullet-ordering claim in decisions.md is gone; the ID rule is now phrased invariant to page layout ("whatever its prefix"), with saved IDs kept stable via the item files rather than by asserting a page-shape fact.
  6. Claude (inline) — note placement disagreed between files. classification-rubric.md's note row now reads "One line under the decision table," matching decisions.md's "one line under the table."

Confirmed with a repo-wide grep of the skill directory that no P1/P2/P3 remnants or old-format bare IDs (\d+-\d{3} without a version prefix) remain.

Other checks

  • SKILL.md's reference index, the lens table, the decision-homes table, and the eval/fixtures (evals.json id 8, release-decisions.md, owner-surfaces.md) all stay internally consistent with the rewritten rubric.
  • Version bump 0.63.36 → 0.64.0 matches an added-capability change; README's changelog row description matches the new diff behavior.
  • No new correctness issues found in the lines the fix commit touched.

markdownlint-cli2, check-changelog-parity.sh, validate-plugins.sh, and changelog-status.test.sh results in the PR body are author-claimed; this pass didn't have shell execution available to independently re-run them.

Branch ·

@kyle-sexton
kyle-sexton merged commit a58a884 into main Sep 29, 2026
3 checks passed
@kyle-sexton
kyle-sexton deleted the feat/4024-changelog-decision-lenses branch September 29, 2026 18:25
kyle-sexton added a commit that referenced this pull request Sep 30, 2026
…shape (#5529)

Refs #4024

## Summary

Slice 3 of #4024 (decision 6 and the surface-discovery eval of decision
13). `/claude-ops:changelog` explore no longer reads a fixed list of
repo surfaces. It runs `scripts/discover-surfaces.sh`, which prints the
repo shape (`marketplace` or `consumer`) and the surface classes
present, and greps only those.

## Fix

- Added
`plugins/claude-ops/skills/changelog/scripts/discover-surfaces.sh` and
`discover-surfaces.test.sh` (34 assertions), plus a consumer fixture
under `evals/fixtures/consumer-repo/`.
- `context/repo-surfaces.md` is now an examples spoke; Phase 1 explore
runs the script first.
- Added the both-shapes eval to `evals/evals.json`.
- Bumped `claude-ops` to 0.71.0 with a CHANGELOG entry.

Slice 4 remains: apply as handoff, filing through the work-items seam,
removal of the plan/implement/verify/close-issues phases, README and
description updates, and evals wiring. The issue stays open.

## Verification

- `bash
plugins/claude-ops/skills/changelog/scripts/discover-surfaces.test.sh`:
all 34 assertions pass.
- `scripts/check-changelog-parity.sh --check` and `--check-bump
origin/main`: pass.
- `scripts/validate-plugins.sh`: all manifests and the catalog validate.
- markdownlint-cli2 on `plugins/claude-ops/CHANGELOG.md`: 0 issues.

## Related

- #4024 (slices 1 and 2 merged as #4041 and #5362)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
kyle-sexton added a commit that referenced this pull request Sep 30, 2026
…ementing them (#5617)

Closes #4024

## Summary

Slice 4, the last of #4024. `/claude-ops:changelog apply` no longer
plans, implements, verifies and closes issues itself. After the scope
gate, rows that fit the session go through the marketplace stage skills,
and rows too large are filed through `/work-items:track`. The plan,
implement, verify and close-issues phases are removed.

## Fix

- `SKILL.md`: apply runs ingest, explore, research, scope gate, hand
off, native-surface drift. Rows that fit go through `/planning:plan`,
`/implementation:implement` and `/verification:confirm`, one PR per
owner plugin. A stage whose plugin is missing is reported as not
executed. No issue is closed by title match.
- Description, router, README and `plugin.json` describe apply as
in-scope execution plus handoff.
- Eval 2 checks the handoff.
- `claude-ops` 0.76.0, CHANGELOG entry, regenerated `docs/catalog.md`.

## Verification

- Tests: `changelog-status.test.sh` 77/77, `discover-surfaces.test.sh`
43/43, `scripts/validate-plugins.sh`, `check-changelog-parity.sh
--check` and `--check-bump origin/main`, markdownlint on CHANGELOG and
README: all pass.
- Evals 4, 6, 7, 8, 9 ran once each as headless `claude -p` sessions
(sonnet, `--plugin-dir plugins/claude-ops`, Edit/Write denied), because
the suite is in evals.json format and `claude plugin eval` loads only
case.yaml suites. Each output was graded by hand against its
`expectations`:
  - 4, 7, 9: all expectations met.
- 6: in this worktree the repo has `docs/upstream/claude-code.md`, so
the eval's premise (no ledger) does not hold and the run correctly
reported marker 2.1.263. In a scratch git repo holding only the plugin
and no ledger it reported last-applied none, ignored the commit-body
versions, gave range 2.1.257..2.1.263 with 6 releases and 20 items, and
relayed the ledger recommendation: met.
- 8: all six expectations met. It labeled the failed-hook stderr row
`correct` and `/mcp reconnect all` `replace`, where `expected_output`
says `replace` and `adopt`. The expectations do not pin those lenses.
- These are single samples, not repeated runs.

## Related

Slices 1 to 3: #4041, #5362, #5529.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
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