Repository navigation
skills/security-cve-allocate: trim frontmatter to fit metadata budget - #124
Conversation
choo121600
left a comment
There was a problem hiding this comment.
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
Summary
Trims
security-cve-allocatefrontmatter (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 --attachinvocation, and the post-allocation reconciliation handed off tosecurity-issue-sync.Tracking: #118
Before / after
The
when_to_useshrank 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
<vendor>: <product>:,[ Security Report ], trailing version parens and similar noise")(PMC-gated)flaggenerate-cve-json --attachto embed the paste-ready JSON in the body")security-issue-sync's own frontmatter / bodyThe trimmed
descriptionstill names every routing-relevant artefact (ASF Vulnogram allocation URL,CVE-ready title, CVE tool link field,cve allocatedlabel, paste-ready CVE JSON,security-issue-synchandoff) 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_useis 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 substringvalid/invalid decisionis 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.