Skip to content

feat(security-issue-sync): wire archive-URL combined apply into Step 4 - #225

Merged
potiuk merged 1 commit into
apache:mainfrom
potiuk:sync-step4-archive-url-combined-apply
May 18, 2026
Merged

potiuk merged 1 commit into
apache:mainfrom
potiuk:sync-step4-archive-url-combined-apply

Conversation

@potiuk

@potiuk potiuk commented May 18, 2026

Copy link
Copy Markdown
Member

Summary

Complete the post-advisory close-out chain by adding three new action bullets to Step 4 (Apply confirmed changes) in security-issue-sync/SKILL.md.

This is the orchestration piece that ties together the three previously-merged PRs:

PR Provides
#222 Convention + handoff templates + Step 2b Advisory archived trigger description
#223 vulnogram-api-record-publish CLI (REVIEW → PUBLIC over the OAuth API)
#224 release-manager-wrap-up-comment.md template
This PR The concrete per-action recipes Step 4 reads when executing the combined apply

Three new Step 4 bullets

Vulnogram state transition (REVIEW → PUBLIC)

uv run --project <framework>/tools/vulnogram/oauth-api \
  vulnogram-api-record-publish --cve-id <CVE-YYYY-NNNNN>

Locked to the "Advisory archived on <users-list>" combined-apply trigger; idempotent on already-PUBLIC; refuses unexpected states with exit 3.

Advisory short-summary extraction

Fetches the archived advisory email body from lists.apache.org, extracts the prose block between the CVE header line and the Affected version range: block, surfaces in the Step 2 proposal so the user can spot misextraction before the body-field update applies. Lands the summary into the Short public summary for publish body field before the Step 5 JSON regen, so the re-pushed JSON carries the published summary verbatim (lock-step with the body).

Wrap-up comment (post-close)

Loads release-manager-wrap-up-comment.md (#224) and posts as the last action of the combined apply. The conditional MILESTONE_BULLET placeholder is resolved by a sibling-state check:

ms=$(gh issue view <N> --repo <tracker> --json milestone --jq '.milestone.number // empty')
if [ -n "$ms" ]; then
  open=$(gh issue list --repo <tracker> --milestone "$ms" --state open --json number --jq 'length')
  if [ "$open" -eq 0 ]; then
    # Last-sibling case → substitute close-milestone link
    ...
  else
    bullet=""
  fi
fi

Idempotent via the <!-- apache-steward: release-manager-wrap-up v1 --> marker.

Test plan

  • skill-validate pre-commit passes (verified).
  • Live smoke test deferred to the first real post-advisory cycle that exercises the combined apply — at that point the agent reads the new Step 4 bullets and runs the recipes against a real tracker. Worked examples already landed adopter-side on airflow-s#295 and airflow-s#355 (handoff comments), but those predate the SKILL.md wiring; the next real advisory cycle is the first end-to-end test.

Closes

End of the no-uv-run-for-RM + sync-drives-lifecycle-close-out arc upstream:

Complete the post-advisory close-out chain by adding three new
action bullets to Step 4 (Apply confirmed changes):

  1. Vulnogram state transition (REVIEW → PUBLIC) via the
     `vulnogram-api-record-publish` CLI from apache#223. Locked to the
     "Advisory archived on <users-list>" combined-apply trigger;
     idempotent on already-PUBLIC records.

  2. Advisory short-summary extraction. Fetches the archived
     advisory email body from lists.apache.org, extracts the prose
     block between the CVE header and the affected-version-range
     block, surfaces in the Step 2 proposal so the user can spot
     misextraction before the body-field update applies. Lands the
     summary into the *Short public summary for publish* body
     field BEFORE the Step 5 JSON regen so the re-pushed JSON
     carries the published summary verbatim.

  3. Wrap-up comment (post-close) using the
     `release-manager-wrap-up-comment.md` template from apache#224.
     Posts after the tracker close succeeds. The conditional
     `MILESTONE_BULLET` placeholder is resolved by a sibling-state
     check: if every milestone-sibling is closed at this moment,
     substitute the close-milestone link; otherwise substitute an
     empty bullet (the milestone close happens when the last
     sibling tracker reaches this same step). Idempotent via the
     `<!-- apache-steward: release-manager-wrap-up v1 -->` marker.

The orchestration (which action fires in which order) is already
documented in apache#222 on the Step 2b "Advisory archived" row; this PR
provides the concrete per-action recipes that the agent reads when
executing that combined apply.

Closes the upstream side of the no-uv-run-for-RM + sync-drives-
lifecycle-close-out arc:

  - apache#222: convention + handoff templates
  - apache#223: vulnogram-api-record-publish CLI
  - apache#224: wrap-up comment template
  - this PR: Step 4 action recipes that wire it all together
@potiuk
potiuk merged commit e760608 into apache:main May 18, 2026
13 checks passed
potiuk added a commit that referenced this pull request May 25, 2026
… RM close-out (#274)

* docs(security): align process/roles/README with post-2026 sync-driven RM close-out

Recent sync-skill changes (#202, #222, #225, #255) shifted Vulnogram
REVIEW -> PUBLIC, JSON re-push, board move, and tracker close from RM
hand-clicks to sync automation. The reference docs still described the
pre-2026 flow; this brings them back in sync.

- process.md Step 12: document the two-stage hand-off gate (six
  mandatory body fields populated + CVE record state REVIEW) and the
  Remediation-developer fill-fields comment that fires when either
  gate fails. RM hand-off comment now only fires when both gates clear.
- process.md Step 13: rewrite RM checklist as three single-click
  Vulnogram actions (REVIEW -> READY, send advisory, stop). Drop the
  stale "REVIEW (then READY)" phrasing -- REVIEW is set by sync.
- process.md Step 14: rename to "Capture the public advisory URL and
  close out" and list the eleven actions of sync's combined apply
  (URL capture, short-summary extraction, label flips, JSON re-push,
  READY -> PUBLIC via OAuth API, board move, tracker close, board
  archive, conditional milestone close, wrap-up comment).
- process.md Step 15: collapse to "RM verifies the close-out landed"
  -- the RM has no remaining manual work; just receives a
  purely-informational timeline marker.
- process.md Mermaid diagram + label-lifecycle table + label
  reference table updated to match.
- roles.md "Handoff from the remediation developer": mention the
  fill-fields comment they may receive when six mandatory fields
  are incomplete.
- roles.md "Sending the advisory": replace with the three-step
  Vulnogram clickflow matching process.md Step 13.
- roles.md "Capturing the public archive URL and closing out":
  list the sync-driven combined apply.
- roles.md "Publishing the CVE and closing the issue": now
  "Nothing to do".
- roles.md RM "Tools you use most": drop stale Vulnogram-paste
  language.
- README.md: "Eight skills" -> "Nine skills ... plus one read-only
  supporting skill". Split skills table into "Lifecycle skills" (9)
  and "Supporting tools" (1), adding security-tracker-stats-dashboard.

Generated-by: Claude Code (Opus 4.7)

* docs(security): fix Step 14 link — oauth-api/README.md, not vulnogram-api/SKILL.md

`vulnogram-api-record-publish` is documented in
`tools/vulnogram/oauth-api/README.md`; the previous commit linked a
non-existent `tools/vulnogram/vulnogram-api/SKILL.md`. Caught by
lychee.

Generated-by: Claude Code (Opus 4.7)
@potiuk potiuk added capability:intake Import external signal + sync tracker state family:security security-* skills labels Nov 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

capability:intake Import external signal + sync tracker state family:security security-* skills

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant