Skip to content

feat(security-issue-sync): RM handoff — no shell commands; sync drives full post-advisory close-out - #222

Merged
potiuk merged 1 commit into
apache:mainfrom
potiuk:sync-auto-publish-lifecycle
May 18, 2026
Merged

potiuk merged 1 commit into
apache:mainfrom
potiuk:sync-auto-publish-lifecycle

Conversation

@potiuk

@potiuk potiuk commented May 18, 2026

Copy link
Copy Markdown
Member

Summary

Reshape the release-manager hand-off contract so the RM's surface is Vulnogram-UI clicks, reviewer-thread responses, and the advisory send — nothing else. The CVE-record API push and the entire post-advisory lifecycle close-out are driven by security-issue-sync on the archive-URL signal.

Three coupled changes:

  1. Drop uv run invocations from RM-facing instructions in both hand-off templates. The CVE-record API push (and any re-push triggered by a body change) is run by the security team during sync via vulnogram-api-record-update, not by the RM. Even in the manual-paste fallback variant, the RM only pastes JSON in the #source UI; the API tooling is not exposed.

  2. Sync drives the entire post-advisory lifecycle close-out. On the next sync run after the advisory lands in the users-list archive, the skill — in a single combined apply triggered by the archive-URL signal — does all of:

    • Capture the URL into the Public advisory URL body field.
    • Extract the public-facing short summary from the advisory email body and write it back to the Short public summary for publish body field, so the tracker matches what actually shipped.
    • Flip the tracker labels (fix released → announced - emails sent + announced).
    • Regenerate and re-push the CVE JSON.
    • Move the Vulnogram record REVIEW → PUBLIC via the OAuth API. Formerly a manual Step-15 click; now driven by sync since the archive URL is the real-world signal that the advisory has actually shipped.
    • Move the project board to the Announced column.
    • Close the tracker.
  3. Sync posts a conditional wrap-up comment tagging the RM with the residual manual steps: archive the now-closed tracker from the Announced column, and — only if every sibling on the tracker's milestone is also closed at that moment — close the milestone via the URL the comment carries.

The previous framing of REVIEW → PUBLIC as "intentionally human-only" is reversed. The gate is now "published archive URL captured", which collapses RM workflow to a small handful of clicks and one reviewer-thread response.

Changes in this PR

Implementation TBD

This PR is the convention update. The matching implementation lands in a follow-up PR:

  • New tool: vulnogram-api-publish (REVIEW → PUBLIC via OAuth API).
  • Sync code to extract the public short summary from the archived advisory email body.
  • Sync code to flip labels (fix released → announced - emails sent + announced) on the archive-URL signal.
  • Sync code to close the tracker as part of the combined apply.
  • Sync code to compose + post the conditional wrap-up comment (with the milestone URL when last-sibling).

The convention documented here is the target state. Reviewers can land the doc changes first; the implementation can land alongside or follow.

Worked examples (adopter dry-run)

The Apache Airflow security team applied the same convention as an .apache-steward-overrides series today against airflow-s/airflow-s (#427, #428, #429 merged in sequence). Two trackers carry handoff comments edited in place to the new shape:

Both show the post-edit RM-facing shape and pair with the framework templates updated here.

Test plan

  • Existing skill-validate / link-check pre-commit hooks pass.
  • No new uv run invocations in either handoff template's RM-facing body.
  • Template TOCs regenerate cleanly.
  • Implementation follow-up PR will carry the actual code + sandbox tests; this PR is doc-only.

Co-changes

Once this PR merges, the Apache Airflow adopter's local override at airflow-s/airflow-s .apache-steward-overrides/security-issue-sync.md becomes redundant and can be removed via /setup-override-upstream.

…s full post-advisory close-out

Reshape the release-manager hand-off contract so the RM's surface is
**Vulnogram-UI clicks, reviewer-thread responses, and the advisory
send** — nothing else. Three coupled changes:

1) **Drop `uv run` invocations from RM-facing instructions** in both
   hand-off templates. The CVE-record API push (and any re-push
   triggered by a body change) is run by the security team during
   sync via `vulnogram-api-record-update`, not by the RM. Even in the
   manual-paste fallback variant, the RM only pastes JSON in the
   `#source` UI; the API tooling is not exposed.

2) **Sync drives the entire post-advisory lifecycle close-out.** On
   the next sync run after the advisory lands in the users-list
   archive, the skill — in a single combined apply triggered by the
   archive-URL signal — captures the URL into the *Public advisory
   URL* body field, **extracts the public-facing short summary from
   the advisory email body** and writes it back to the *Short public
   summary for publish* body field, flips the tracker labels
   (`fix released → announced - emails sent + announced`),
   regenerates and re-pushes the CVE JSON, **moves the Vulnogram
   record `REVIEW → PUBLIC` via the OAuth API** (formerly a manual
   Step-15 click; now driven by sync since the archive URL is the
   real-world signal that the advisory has actually shipped),
   moves the project board to the `Announced` column, and closes the
   tracker.

3) **Sync posts a conditional wrap-up comment** tagging the RM with
   the residual manual steps: archive the now-closed tracker from
   the `Announced` column, and — **only if every sibling on the
   tracker's milestone is also closed at that moment** — close the
   milestone via the URL the comment carries. The conditional
   close-milestone line means the RM never has to check sibling
   state by hand; the milestone close happens when the *last*
   sibling tracker reaches this step.

The previous framing of `REVIEW → PUBLIC` as "intentionally
human-only" is reversed. The gate is now "published archive URL
captured", which collapses RM workflow to a small handful of clicks
and one reviewer-thread response.

Documentation changes in this commit:

  - tools/vulnogram/release-manager-handoff-comment-oauth-pushed.md
    fully rewritten: 7 RM-facing steps, no `uv run` blocks, Step 6
    documents the auto-publish flow, Step 7 follows the wrap-up
    comment.
  - tools/vulnogram/release-manager-handoff-comment.md (manual-paste
    variant) reworked to match the same 7-step RM-facing shape with
    paste-into-#source-UI as the fallback when OAuth is unavailable.
    Still no `uv run` invocations RM-facing.
  - .claude/skills/security-issue-sync/SKILL.md — Step 2b's
    advisory-archive row rewritten as the combined-apply trigger;
    lifecycle-states table updated to reflect the collapsed
    14 → 15 transition.

Implementation TBD as a follow-up: a `vulnogram-api-publish` tool
(REVIEW → PUBLIC via OAuth API), sync code to extract short summary
from the archived email body, label-flip + tracker-close + wrap-up-
comment composition. The convention documented here is the target;
the implementation will follow in a separate PR.

Worked examples landed today on airflow-s/airflow-s as the adopter-
side dry-run of the convention:
  - airflow-s/airflow-s#295 (CVE-2026-27173)
  - airflow-s/airflow-s#355 (CVE-2026-42526)

The adopter override codifying the same convention is at
airflow-s/airflow-s .apache-steward-overrides/security-issue-sync.md
(landed via airflow-s PRs apache#427, apache#428, apache#429 today). When this
upstream PR + the implementation follow-up land, the override
becomes redundant and can be removed via /setup-override-upstream.
@potiuk
potiuk merged commit 4a2a22d into apache:main May 18, 2026
13 checks passed
potiuk added a commit that referenced this pull request May 18, 2026
Add a new ``vulnogram-api-record-publish`` command that drives the
``REVIEW`` → ``PUBLIC`` state transition over the OAuth API. The
existing ``vulnogram-api-record-update`` is intentionally
content-only — it writes arbitrary JSON to a record but does not
encode state semantics. This new command is intentionally narrow:

  1. Fetch the current stored JSON via the existing ``get_record``
     helper.
  2. Refuse the transition unless the current state is in the
     accepted set (default ``{"REVIEW"}``; ``--allow-state`` widens
     it).
  3. Set ``CNA_private.state = "PUBLIC"`` (preserving every other
     field).
  4. POST the modified document via the existing ``update_record``
     helper.

Idempotent on records already in ``PUBLIC`` (exits 0 with an
informational message). Refuses unexpected states with exit 3
rather than silently flipping — the safety net for a sync that
re-runs the publish on a tracker that already published.

Driver: the new convention documented in #222 (RM-handoff no shell
commands; sync drives the post-advisory close-out). On the
"published archive URL captured" signal the sync skill now runs
this command to drive the CNA-feed dispatch to ``cve.org`` rather
than waiting on a manual Vulnogram UI click. The full
sync-skill-side wiring (label flips, tracker close, wrap-up comment
composition) lands in a follow-up PR.

Tests cover the seven invariants:

- Invalid CVE-ID form rejected before any network call.
- ``PUBLIC`` already → no-op, exit 0, informational stderr.
- Unexpected state → refusal, exit 3, name the observed state.
- ``--allow-state REVIEW --allow-state READY`` widens the
  accepted set (verified with a ``READY`` fixture).
- ``--dry-run`` reports the proposed transition without POSTing.
- Apply path flips ``state`` to ``PUBLIC`` and POSTs once.
- ``SessionExpired`` from ``get_record`` returns exit 2.

Stdlib-only — no new runtime deps, consistent with the rest of
``vulnogram-api``.
potiuk added a commit that referenced this pull request May 18, 2026
… hand-off (#224)

Add `tools/vulnogram/release-manager-wrap-up-comment.md` — the
template `security-issue-sync` posts AFTER the tracker has been
auto-closed at the end of the post-advisory lifecycle close-out
(the combined apply on the `Advisory archived on <users-list>`
row of Step 2b).

By the time this comment posts, sync has already done all of:
captured the archive URL, extracted the public short summary into
the body, flipped labels (`fix released → announced - emails sent`
+ `announced`), regenerated and re-pushed the JSON, moved the
Vulnogram record `REVIEW → PUBLIC` via the new
`vulnogram-api-record-publish` CLI (#223), moved the board to the
`Announced` column, and closed the tracker. The wrap-up comment is
informational + a tiny ping to the RM with two residual manual
steps:

  1. Archive the closed tracker from the `Announced` column.
  2. (Conditional, last-sibling case only) Close the milestone via
     the clickable URL the skill substitutes into MILESTONE_BULLET.
     In the more common "other siblings still open" case the bullet
     resolves to an empty string and the milestone close happens
     when the *last* sibling tracker reaches the same step.

Marker: `<!-- apache-steward: release-manager-wrap-up v1 -->` —
sync uses this for idempotency (the tracker is closed by the time
this comment posts; re-posting on a re-sync would just be noise).

Companion to #222 (convention update — describes when this comment
fires) and #223 (`vulnogram-api-record-publish` — the tool that
flips REVIEW → PUBLIC, referenced from the template). The
SKILL.md Step 4 hookup (the apply-side code that actually composes
the placeholders and posts the comment) lands in a follow-up PR
once the agent-procedure for the combined apply is wired through.
potiuk added a commit that referenced this pull request May 18, 2026
#225)

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 #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 #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 #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:

  - #222: convention + handoff templates
  - #223: vulnogram-api-record-publish CLI
  - #224: wrap-up comment template
  - this PR: Step 4 action recipes that wire it all together
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 the contract:cve-authority Tool capability: CVE allocation / record management / publication label Sep 25, 2026
@potiuk potiuk added capability:intake Import external signal + sync tracker state family:security security-* skills family:tools tools/* 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 contract:cve-authority Tool capability: CVE allocation / record management / publication family:security security-* skills family:tools tools/*

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant