Table of Contents generated with DocToc

GitHub — issue-body field schema

The skills treat every tracker's issue body as a structured document with named fields, rather than free-form prose. Each field is a markdown ### <field name> heading followed by a value block; the set of field names is the schema the skills read from and write to.

The field names themselves are project-specific (they come from the project's GitHub issue-template YAML). Generic skill logic refers to them by role — “the CVE-tool-link field”, “the public-advisory URL field” — and the role → concrete-name mapping is declared in the project manifest. For Airflow, see ../../<project-config>/project.md.

Where the schema is authoritative

Three surfaces need to stay in lock-step whenever a field is added, renamed, or removed:

  1. The GitHub Form YAML — .github/ISSUE_TEMPLATE/issue_report.yml in the tracker repo. This is what GitHub renders as the “New issue” form and is the machine-readable schema.
  2. The project manifest — <project-config>/project.md declares the concrete field name each skill role maps to. Renaming the field in the YAML requires updating this mapping.
  3. The skills that write fresh issue bodies — security-issue-import renders the full field set with security-management issue-import render-body (DEFAULT_HEADINGS in security_management/shared/body.py, each overridable through tracker.body_fields); when the schema changes, that list must change in lock-step, and so must the sibling import skills' tracker-body-template.md files (a test pins them to it).

No skill parses the YAML at runtime. The field list is hand- maintained in the project manifest and in security-management, and the three surfaces are kept aligned by convention.

Field roles the skills use

The generic lifecycle refers to fields by these roles:

RoleRead byWritten byPurpose
issue-descriptiondedupeimportThe verbatim inbound report; private to the security team.
public-summaryCVE JSON generatorrelease manager (Step 13)Sanitised one-paragraph public summary for the advisory.
affected-versionsCVE JSON generator, syncsync proposes, user confirmsThe >= X, < Y range that populates CVE 5.x affected[].
security-threaddedupe, sync (reporter-notification lookup)importPrivate pointer to the inbound mail thread — the Gmail threadId, any PonyMail archive URL, and the root Message-ID (archive-independent message handle; backtick-wrapped). Never exported to the public CVE record.
public-advisory-urlCVE JSON generator, sync (gates close)sync (Step 14)Public archive URL; tagged vendor-advisory in references[].
reporter-creditCVE JSON generatorimport (placeholder), sync (after reporter confirms)Credit line as the reporter wants to appear in the public advisory.
pr-with-fixsync, CVE JSON generatorfix, syncURL of the merged <upstream> PR.
remediation-developerCVE JSON generatorsync (auto-populated from pr-with-fix author when set; manual edits preserved)Person(s) who authored the fix; one credit per line.
cweCVE JSON generatorsync proposes, user confirmsCWE number for the CVE 5.x problemTypes[].
severityCVE JSON generatorsync proposes, user confirmsCVSS severity; never copy the reporter's self-assigned value.
cve-tool-linksync, security-cve-allocate (blocker check)security-cve-allocateCanonical link to the CVE record in the project's CVE tool.

The concrete field names each role maps to for the adopting project live in the project manifest.

Body-field surgery

How a field is found, read and rewritten — field boundaries, code blocks, which heading is the field, and what is refused as ambiguous — is the body-field contract. Skills never split a body themselves: they read and write one field through an implementation of it, such as github-body-field (get / set) or the body-field-get / body-field-set vetted operations, which keep everything outside the field byte-identical.

Never construct the body by string concatenation in a shell command — literal backticks, $(…), and newlines in the body are silently corrupted by shell quoting. Always materialise the edited body to a temp file first.

Empty-field convention

GitHub's issue-form renderer writes the literal string _No response_ into every unfilled body field. The skills honour this convention:

  • On read, treat _No response_ as “field unset”.
  • On write, preserve _No response_ in fields the triager has not yet filled (do not collapse them to empty strings or delete the heading).
  • The CVE JSON generator treats _No response_ as absence and simply omits the corresponding CVE-record element.

Issue-template to CVE 5.x mapping

The generate-cve-json tool maps body-field roles to CVE 5.x record elements as follows (generic — applies to any project using this schema):

Body field roleCVE 5.x element
public-summarydescriptions[].value
affected-versionsaffected[].versions[].version / .lessThan
cweproblemTypes[].descriptions[].cweId
severitymetrics[].other.content (textual severity)
public-advisory-urlreferences[] with tags: ["vendor-advisory"]
pr-with-fixreferences[] with tags: ["patch"]
reporter-creditcredits[] with type: "finder"
remediation-developercredits[] with type: "remediation developer"
security-threadnot exported — private-only
cve-tool-linknot exported — points at the tool itself, not at a public URL

Full implementation lives in the generate-cve-json skill / Python tool (to be relocated under tools/cve-tool-vulnogram/ in PR 4 of this refactor series).