Skip to content

feat(release-management): live verification checklist tool-call feed and skill integration (closes #2006) - #2013

Merged
potiuk merged 4 commits into
apache:mainfrom
Kaap10:feat/release-management-verify-rc-feed
Nov 13, 2026
Merged

potiuk merged 4 commits into
apache:mainfrom
Kaap10:feat/release-management-verify-rc-feed

Conversation

@Kaap10

@Kaap10 Kaap10 commented Nov 5, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Implements the tool.call middleware hook for Bash in plugins/magpie-release-management/hooks/verify-rc-pane.ts to passively observe release-config and release-verify commands, updating the live verification checklist pane in real time.
  • Supports both individual step execution and batch release-verify all, with skip heuristics for non-JVM artefacts (Steps 6b, 6c) and --skip-repro (Step 9).
  • Documents the companion Claude Code mod in verify-rc/SKILL.md (vendor-neutral; Codex, Antigravity, Cursor, and headless CI continue using standard CLI output) while synchronizing frontmatter surface_hash and measured_tokens.

Type of change

  • Skill change (plugins/magpie-release-management/skills/verify-rc/SKILL.md)
  • Tool / bridge contract (tools/<system>/*.md)
  • Python package (tools/*/ with pyproject.toml)
  • Groovy reference impl
  • Cross-cutting (RFC, AGENTS.md, sandbox, privacy-LLM)
  • Documentation (docs/, README.md, CONTRIBUTING.md)
  • Project template (projects/_template/)
  • CI / dev loop (prek, workflows, validators)
  • Other: Claude Code mod tool-call feed (plugins/magpie-release-management)

Test plan

  • claude plugin test plugins/magpie-release-management passes with 34 passed, 0 failed
  • claude plugin validate --strict plugins/magpie-release-management passes with 0 errors and 0 warnings
  • python tools/dev/add-license-headers.py --check passes with 0 errors
  • tools/dev/check-family-plugins.py check_codex_hook_files() passes cleanly with []
  • Frontmatter surface_hash verified matching sha256:594e276d2b0a7906 (tools/dev/skill-surface-hash.py)
  • Frontmatter measured_tokens verified matching exact count 6686 (tools/skill-token-count)
  • Strict LF line endings (crlf=0), zero emojis, and zero double-hyphens in markdown prose verified

RFC-AI-0004 compliance

  • HITL — read-only passive tool-call observation; all mutation steps remain gated on explicit maintainer confirmation
  • Sandbox — executes inside the plugin mod sandbox; fails open gracefully and never obstructs underlying tool execution
  • Vendor neutrality — empty Codex hooks and manifests maintained; alternative harnesses continue standard sequential CLI output
  • Conversational + correctable — provides clear terminal status feedback and allows manual verification runs
  • Write-access discipline — purely observational and presentational; does not write to tracker or publish comments
  • Privacy LLM — processes only public release candidate tags, checksums, and verification tool output

Linked issues

Closes #2006. Part of umbrella roadmap #1497. Follows merged #2007.

Notes for reviewers (optional)

@github-actions github-actions Bot added capability:triage Sweep + classify + propose disposition family:release-management release-* skills labels Nov 5, 2026
@Kaap10 Kaap10 changed the title feat(release-management): live verification checklist tool-call feed and skill integration (part of #2006) feat(release-management): live verification checklist tool-call feed and skill integration (closes #2006) Nov 5, 2026

@potiuk potiuk left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The feed is wired in cleanly, but it parses output shapes the real release-config / release-verify / verify-rc commands do not print: batch Steps 6 and 7 never update, and a blocked pre-flight, a FAIL verdict or a still-pending result all show as PASS — the tests pass only because their fixtures add fields the tools never emit, so please rebuild them from actual CLI output.

GitHub has not yet computed whether this branch merges cleanly with its base.

Correctness: release-verify all step names do not map (plugins/magpie-release-management/hooks/verify-rc-pane.ts:613)

const matchedId = mapCliSubcommandToStepId(`release-verify ${batchStep.step || batchStep.name}`);  # ←

release-verify all (cmd_all in tools/release-verify) emits the canonical step names binary-exclusion, source-tree-integrity and version-consistency, not the subcommand names. Re-mapping release-verify binary-exclusion / release-verify source-tree-integrity through mapCliSubcommandToStepId matches nothing, because the regexes only accept binaries / symlinks; version-consistency matches only because version\b hits at the hyphen. So after the batch run, which is how the skill actually runs those steps, Steps 6 and 7 stay pending, and a FAIL on either never reaches the pane. The test passes only because its fixture uses invented names (binaries, symlinks, version). When batchStep.step is already a step id, use it as-is and fall back to the subcommand mapping only otherwise. Build the test fixture from the real cmd_all output.

Flagged by both the primary and adversarial reviewers.

Correctness: a missing status falls back to PASS (plugins/magpie-release-management/hooks/verify-rc-pane.ts:631)

} else if (res?.exitCode === 0 || (typeof res === 'object' && !res.isError)) {
  target.status = 'passed';  # ←

Several real tool outputs carry no truthy status, so they fall through to this branch and show as PASS:

  • release-config preflight prints {ok, blockers, warnings, values} and exits 0 whenever it wrote JSON, so a blocked pre-flight (ok: false) shows PASS;
  • release-verify verdict and verify-rc report return overall (which can be FAIL or null) and no status, so a FAIL verdict shows PASS;
  • verify-rc rat / jvm / repro return status: null while their result is still pending, and SKILL.md says that is never a result;
  • release-verify exits 2 with error-only JSON on bad input, and typeof res === 'object' && !res.isError accepts that too, whatever the exit code.
    The tests hide this because their fixtures add status: 'PASS' to shapes the real tools never emit. Derive the status per tool from its real output: pre-flight from ok / blockers, the verdict row from overall, and leave status: null as running. Drop the !res.isError fallback, and build the fixtures from actual CLI output.

Flagged by both the primary and adversarial reviewers.

Smaller observations

  • tools/spec-loop/specs/release-management-lifecycle.md:228 — This PR ships the tool-call feed, but the spec still says nothing fills the pane yet and that the interceptor is the next part of #2006. Update the "verify-rc pane is additive" bullet to describe the Bash tool-call feed and bump .last-sync, or open a companion sync-specs PR.
  • See inline comments on plugins/magpie-release-management/hooks/verify-rc-pane.ts:574, plugins/magpie-release-management/hooks/verify-rc-pane.ts:529, plugins/magpie-release-management/hooks/verify-rc-pane.ts:429, plugins/magpie-release-management/hooks/verify-rc-pane.ts:554, plugins/magpie-release-management/hooks/verify-rc-pane.ts:495, plugins/magpie-release-management/skills/verify-rc/SKILL.md:446.

This review was drafted by an AI-assisted tool and
confirmed by an Apache Magpie maintainer. After you've
addressed the points above and pushed an update, an Apache Magpie
maintainer — a real person — will take the next look
at the PR. The findings cite the project's review criteria;
if you think one of them is mis-applied, please reply on the
PR and a maintainer will weigh in.

More on how Apache Magpie handles maintainer review:
Contributing guide.

…and skill integration (apache#2006)

Implement Bash tool.call middleware interceptor for release candidate verification, update verify-rc skill docs, and add comprehensive simulation tests.

- Implement Bash tool.call hook interceptor to passively observe release-config and release-verify commands
- Parse JSON output, update step status, duration, failure details, and overall rollup
- Support batch runner release-verify all and individual step invocations
- Implement skip heuristics for non-JVM artefacts (Steps 6b, 6c) and --skip-repro (Step 9)
- Document interactive verification checklist pane mod in verify-rc/SKILL.md
- Keep surface_hash and measured_tokens synchronized in SKILL.md
- Add comprehensive unit and simulation test suite (34 tests passing)

Refs apache#2006, apache#1497

Generated-by: Antigravity (Gemini 2.5 Pro)
…call feed (apache#2013)

- map canonical step IDs from release-verify all before fallback parsing

- derive status from real CLI payloads (preflight ok/blockers, verdict overall, repro skipped)

- reset verify-rc state on preflight re-runs and multi-RC sessions

- mark in-flight step re-runs as running and clear completion timestamps

- derive repro skip strictly from verify-rc repro output rather than CLI flag

- decouple REVIEW status token to running so verification rollup stays in progress

- anchor command matching to executable head to avoid false positive matches

- clean up maintainer citation comments to cite SKILL.md steps

- shorten verify-rc/SKILL.md checklist section to SemBr sentences and restamp tokens

- sync release-management-lifecycle.md with tool-call feed and bump .last-sync
@Kaap10
Kaap10 force-pushed the feat/release-management-verify-rc-feed branch from b12fcaf to 960d9a5 Compare November 9, 2026 08:49
@github-actions github-actions Bot added family:tools tools/* family:dev Repo dev: .asf.yaml, spec-loop specs, Node manifests, .claude/settings.json labels Nov 9, 2026
@Kaap10
Kaap10 requested a review from potiuk November 9, 2026 09:01

@potiuk potiuk left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for working through every point from the last round: the step mapping, status derivation, REVIEW handling, command anchoring and SKILL.md wording all hold up now. One correctness issue remains in the skill's own command order (release-config load resets the pre-flight row, so the pane never shows a final verdict), plus a few smaller gaps around resets, batch failures and the .last-sync marker.

pane shows each step's live status (plugins/magpie-release-management/hooks/verify-rc-pane.ts:413)

Under Claude Code, the verify-rc-pane mod shows each step's live status from the commands above.

if (/^(?:preflight|load)\b/.test(rest)) return 'preflight';

release-config load maps to the preflight step, and a preflight step id always starts a fresh state (line 592). The skill runs release-config load ... > <scratch>/verify-rc-load.json right after pre-flight (SKILL.md § Commands), so that call wipes the recorded pre-flight result and, because its stdout is redirected, the fallback branch leaves the row at running. calculateOverallStatus then never leaves running, and the footer shows Running… even after release-verify verdict returns overall: PASS/FAIL. The same happens to any step whose JSON the skill saves with > (Step 1 asks for exactly that), and to the NOTICE/LICENSE row the verdict resolves through --status notice-license=… (its row stays at the REVIEW → running value). My earlier suggestion to reset on preflight|load was wrong for load, sorry. Suggested fix: do not map load to a step (or treat it as a no-op), and let a resolved verdict (overall non-null) set the overall status, completedAt and the rows it reports in step_summary directly. An end-to-end test in the skill's real order (preflight → redirected load → steps → verdict) would pin it.

Smaller observations

  • See inline comments on plugins/magpie-release-management/hooks/verify-rc-pane.ts:592, plugins/magpie-release-management/hooks/verify-rc-pane.ts:672, plugins/magpie-release-management/hooks/verify-rc-pane.ts:665, tools/spec-loop/.last-sync:1, plugins/magpie-release-management/hooks/verify-rc-pane.ts:541.

This review was drafted by an AI-assisted tool and
confirmed by an Apache Magpie maintainer. After you've
addressed the points above and pushed an update, an Apache Magpie
maintainer — a real person — will take the next look
at the PR. The findings cite the project's review criteria;
if you think one of them is mis-applied, please reply on the
PR and a maintainer will weigh in.

More on how Apache Magpie handles maintainer review:
Contributing guide.

Comment thread tools/spec-loop/.last-sync Resolved
…feed

- Decouple release-config load from preflight step mapping so redirected calls do not reset preflight status
- Anchor RC tag extraction to explicit flags and tool invocations, ignoring path arguments
- Handle batch release-verify all failures cleanly across exit codes and exceptions
- Authoritatively reconcile verdict step rows from step_summary and assign overall status
- Support wrapped tool call response shapes { result: { stdout, exitCode } }
- Revert tools/spec-loop/.last-sync to match upstream/main
- Add end-to-end and failure lifecycle tests in verify-rc-pane.test.ts
@Kaap10
Kaap10 requested a review from potiuk November 10, 2026 12:22
- verify-rc-pane.ts: a `verify-rc repro` error payload
  ({"ok": false, "error": ...}, exit 2) fails the Step 9 row instead of
  leaving it running.
- verify-rc-pane.ts: a `verify-rc report` refusal over an unresolved
  verdict keeps the verdict row running instead of failing the pane.
- verify-rc-pane.ts: drop the `release-verify rat` mapping (there is no
  such subcommand; RAT is `verify-rc rat`) and use the real invocation
  in the end-to-end tests.
- verify-rc-pane.ts: rename applyJvmAndReproSkipRules to
  applyJvmSkipRules; it covers Steps 6b and 6c only.
- verify-rc-pane.ts: a fresh `release-verify all` run marks the batch
  rows running, as a re-run already did.
- Tests for the three behaviour changes.

Generated-by: Claude Opus 5

@potiuk potiuk left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks — every earlier thread is addressed, and the pane now follows the real tool outputs. I pushed one fixup commit, edb9ac9, for what remained in plugins/magpie-release-management/hooks/verify-rc-pane.ts:

  • A verify-rc repro error payload ({"ok": false, "error": …}, exit 2) now fails the Step 9 row instead of leaving it running.
  • A verify-rc report refusal over an unresolved verdict keeps the verdict row running instead of turning the pane FAILED.
  • Dropped the release-verify rat mapping (there is no such subcommand; RAT is verify-rc rat) and switched the end-to-end tests to the real invocation.
  • Renamed applyJvmAndReproSkipRules to applyJvmSkipRules, since it covers Steps 6b and 6c only.
  • A fresh release-verify all run now marks the batch rows running, as a re-run already did.
  • Tests for the three behaviour changes.

One thing to follow up: the tool.result shape the middleware reads is still unconfirmed against a live verify-rc run. Please check it on the next real RC and open an issue if it differs.


This review was drafted by an AI-assisted tool and
confirmed by an Apache Magpie maintainer. The maintainer
approving this PR has read the findings and signed off. If
something feels off, please reply on the PR and a maintainer
will follow up.

More on how Apache Magpie handles maintainer review:
Contributing guide.

@potiuk
potiuk merged commit d6ceeba into apache:main Nov 13, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

capability:triage Sweep + classify + propose disposition family:dev Repo dev: .asf.yaml, spec-loop specs, Node manifests, .claude/settings.json family:release-management release-* skills family:tools tools/*

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(release-management): add verify-rc live checklist pane Claude Code mod (part of #1497)

2 participants