Repository navigation
feat(release-management): live verification checklist tool-call feed and skill integration (closes #2006) - #2013
Conversation
potiuk
left a comment
There was a problem hiding this comment.
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 preflightprints{ok, blockers, warnings, values}and exits 0 whenever it wrote JSON, so a blocked pre-flight (ok: false) shows PASS;release-verify verdictandverify-rc reportreturnoverall(which can beFAILornull) and nostatus, so a FAIL verdict shows PASS;verify-rc rat/jvm/reproreturnstatus: nullwhile their result is still pending, and SKILL.md says that is never a result;release-verifyexits 2 with error-only JSON on bad input, andtypeof res === 'object' && !res.isErroraccepts that too, whatever the exit code.
The tests hide this because their fixtures addstatus: 'PASS'to shapes the real tools never emit. Derive the status per tool from its real output: pre-flight fromok/blockers, the verdict row fromoverall, and leavestatus: nullas running. Drop the!res.isErrorfallback, 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
b12fcaf to
960d9a5
Compare
potiuk
left a comment
There was a problem hiding this comment.
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-panemod 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.
…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
- 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
left a comment
There was a problem hiding this comment.
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 reproerror payload ({"ok": false, "error": …}, exit 2) now fails the Step 9 row instead of leaving it running. - A
verify-rc reportrefusal over an unresolved verdict keeps the verdict row running instead of turning the pane FAILED. - Dropped the
release-verify ratmapping (there is no such subcommand; RAT isverify-rc rat) and switched the end-to-end tests to the real invocation. - Renamed
applyJvmAndReproSkipRulestoapplyJvmSkipRules, since it covers Steps 6b and 6c only. - A fresh
release-verify allrun 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.
Summary
tool.callmiddleware hook forBashinplugins/magpie-release-management/hooks/verify-rc-pane.tsto passively observerelease-configandrelease-verifycommands, updating the live verification checklist pane in real time.release-verify all, with skip heuristics for non-JVM artefacts (Steps 6b, 6c) and--skip-repro(Step 9).verify-rc/SKILL.md(vendor-neutral; Codex, Antigravity, Cursor, and headless CI continue using standard CLI output) while synchronizing frontmattersurface_hashandmeasured_tokens.Type of change
plugins/magpie-release-management/skills/verify-rc/SKILL.md)tools/<system>/*.md)tools/*/withpyproject.toml)docs/,README.md,CONTRIBUTING.md)projects/_template/)prek, workflows, validators)Test plan
claude plugin test plugins/magpie-release-managementpasses with 34 passed, 0 failedclaude plugin validate --strict plugins/magpie-release-managementpasses with 0 errors and 0 warningspython tools/dev/add-license-headers.py --checkpasses with 0 errorstools/dev/check-family-plugins.pycheck_codex_hook_files()passes cleanly with[]surface_hashverified matchingsha256:594e276d2b0a7906(tools/dev/skill-surface-hash.py)measured_tokensverified matching exact count6686(tools/skill-token-count)crlf=0), zero emojis, and zero double-hyphens in markdown prose verifiedRFC-AI-0004 compliance
Linked issues
Closes #2006. Part of umbrella roadmap #1497. Follows merged #2007.
Notes for reviewers (optional)
--skip-reproare detected, and folding multiline strings in details to prevent line injection.