Skip to content

skills/security-cve-allocate: trim frontmatter to fit metadata budget - #124

Merged
potiuk merged 1 commit into
apache:mainfrom
choo121600:trim-security-cve-allocate-skill
May 11, 2026
Merged

potiuk merged 1 commit into
apache:mainfrom
choo121600:trim-security-cve-allocate-skill

Conversation

@choo121600

Copy link
Copy Markdown
Member

Summary

Trims security-cve-allocate frontmatter (description + when_to_use) from 1,197 → 813 characters.

Same principle as #103, #119, #120, #121, #122, #123: frontmatter is the routing layer. The body already covers the title-cleanup spec, the non-PMC relay rule, the exact generate-cve-json --attach invocation, and the post-allocation reconciliation handed off to security-issue-sync.

Tracking: #118

Before / after

before after Δ
description 817 450 -367
when_to_use 380 363 -17
total 1,197 813 -384
budget margin 339 723 +384
budget 1,536 1,536

The when_to_use shrank by only 17 chars because nearly all of it is a literal trigger phrase or a routing skip-cue that has to stay verbatim.

What moved where

Detail Where it lives now
Title-cleanup spec ("the issue title stripped of redundant <vendor>: <product>:, [ Security Report ], trailing version parens and similar noise") Body Steps (CVE-ready title preparation)
Non-PMC relay rule ("allocation is PMC-gated — non-PMC triagers relay to a PMC member") Body — replaced in frontmatter by the shorter (PMC-gated) flag
Exact CLI invocation ("runs generate-cve-json --attach to embed the paste-ready JSON in the body") Body Steps
Sync post-conditions ("(milestone, assignee, reporter drafts, fix-PR state) now that the CVE landing is complete") security-issue-sync's own frontmatter / body
Comment-collapsing detail ("collapsed status-change comment" → "status-change comment") Body Steps (status-change comment formatting)

The trimmed description still names every routing-relevant artefact (ASF Vulnogram allocation URL, CVE-ready title, CVE tool link field, cve allocated label, paste-ready CVE JSON, security-issue-sync handoff) so user phrasings like "open the Vulnogram form for NNN", "add the cve-allocated label", or "generate the CVE JSON" still route here.

Trigger-phrase preservation

Every literal trigger phrase from the original when_to_use is preserved verbatim:

  • "allocate a CVE for NNN"
  • "open the ASF CVE tool for NNN"
  • "time to allocate NNN"
  • (process step 6)

Skip cues preserved:

  • before the valid/invalid decision has landed (was "has been landed" — passive-voice variant; the matchable substring valid/invalid decision is verbatim)
  • trackers that already carry a CVE ID in their *CVE tool link* body field (verbatim)

The (PMC-gated) flag is a one-word stand-in for the original parenthetical "allocation is PMC-gated — non-PMC triagers relay to a PMC member" — the routing distinction survives; the implementation detail of the relay flow lives in the body.

Routing recall does not regress.

@choo121600 choo121600 left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Budget: 1,197 → 813 chars; margin 339 → 723. Well under the 1,536 cap.

Checked all four analysis dimensions:

PMC-gating invariant. "(PMC-gated)" is shorter than the original "(allocation is PMC-gated — non-PMC triagers relay to a PMC member)", but the relay flow is fully preserved in the body (Step 3, Hard Rules). A maintainer reading only the frontmatter will see the constraint flagged; they won't see the relay detail, which is the accepted trade-off. Claude's matcher still routes only on "security team member" phrasing — no recall regression. Acceptable.

Process step 6. Preserved verbatim in when_to_use. ✓

"Not appropriate" guards. Semantics preserved; wording changed from "Not appropriate before … nor for …" to "Skip before … or for …". Both matchable substrings (valid/invalid decision, CVE ID in their *CVE tool link* body field) are verbatim. ✓

security-issue-sync cross-reference. Still present in the trimmed description. ✓

Minor bonus: <tracker> is now backtick-fenced in the description, improving placeholder legibility.

No issues found. LGTM.

🤖 This review was drafted by an AI-assisted tool. An apache-steward maintainer has read and confirmed it before posting; mistakes are still possible — point them out and the maintainer will sort it. See CONTRIBUTING.md for what an apache-steward maintainer review covers.

The frontmatter for security-cve-allocate was carrying body content —
the full title-cleanup spec (vendor/product prefix, `[ Security Report ]`
banner, trailing version parens), the non-PMC relay rule, the exact
`generate-cve-json --attach` invocation, and the security-issue-sync
post-conditions (milestone / assignee / reporter drafts / fix-PR state).
Trims description + when_to_use from 1,197 → 813 chars (margin 339 → 723).

Keeps the routing-relevant artefact names verbatim (ASF Vulnogram URL,
*CVE tool link* field, `cve allocated` label, paste-ready CVE JSON,
`security-issue-sync` handoff) and a `(PMC-gated)` flag for the
non-PMC relay distinction.

Every literal trigger phrase from the original when_to_use is preserved
verbatim. Routing recall does not regress.

Tracking: #118
@potiuk
potiuk merged commit 54514a7 into apache:main May 11, 2026
12 checks passed
@potiuk potiuk added capability:resolve Close-out: invalidate, dedupe, CVE allocate, announcement 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:resolve Close-out: invalidate, dedupe, CVE allocate, announcement family:security security-* skills

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants