Triage Finding
Objective
Triage existing security findings against the current repository using static code evidence. Return one evidence-backed verdict per supplied finding:
confirmed, not_actionable, or needs_review. For confirmed and needs_review findings, also assign a discrete exploitability stack rank inside that verdict's own queue.
This skill is for backlog burn-down. It starts from findings the user already has, such as SARIF results, CVEs, advisories, scanner tickets, bug bounty reports, Jira/Linear issues, or Codex Security finding artifacts. It is not a repository-wide scan, dynamic validation run, fix implementation, dashboard, or queue manager.
Backlog Burn-Down Scope
Treat multiple supplied findings as one backlog-reduction problem, not as a set of unrelated one-off triages. The goal is to turn noisy existing finding sources into a ranked, evidence-backed action queue while preserving one result per input for auditability and app rendering.
For now, run the workflow inline in the current thread, but structure the work like a backlog pipeline:
- Build the normalized triage item list for the whole supplied or imported collection before assigning verdicts. Here, normalize means: assign
triage_item_id, preserve source ids and references, extract the fields in the Inputs section below, and record missing fields as proof gaps without inventing scanner, severity, remediation, or generated Codex Security fields.
- Triage each normalized item using static evidence and keep one output result per supplied finding.
- Rank the
confirmed and needs_review results as an action queue for backlog burn-down.
- Do not perform deduplication in this skill. If duplicate-looking inputs are present, keep one result per supplied finding; deduplication belongs in a separate workflow.
- Do not spawn subagents, use a subagent queue, or use deep triage mode until a future implementation explicitly adds those mechanics.
Finding Schema Decision
Do not use plugins/codex-security/schemas/findings.schema.json as the canonical data shape for input normalization.
That schema describes completed Codex Security scan output. It requires generated fields such as scanId, findingId, occurrenceId, fingerprints,
severity, remediation, provenance, and at least one location. Most triage inputs are incomplete external claims, and forcing them into that schema before investigation would require inventing stable IDs, severity, remediation, or locations.
Use the schema only as an optional compatibility source when the user supplies an existing codex-security.findings JSON artifact. In that case, extract the available fields into the triage normalization record and preserve the original IDs as source identifiers. The triage result contract is defined in references/triage-result-contract.md.
Static Assessment Guidance
Use the shared static finding assessment reference in ../../references/static-finding-assessment.md for the reusable evidence work: source/control/sink tracing, smallest useful evidence search,
reachability, boundary inputs, counterevidence, proof gaps, and static confidence.
This skill still owns external finding intake, the backlog triage verdicts,
the first-pass no-runtime constraint, and the output contract.
Routing and Connector Use
Use this skill for security or vulnerability Jira/Linear tickets, even when the user mentions @atlassian-rovo, @linear, Jira, Linear, JQL, project keys,
ticket URLs, or ticket search phrases. Treat Atlassian Rovo and Linear mentions as connector hints for importing ticket content, not as a reason to switch to Atlassian Rovo's triage-issue skill or another generic ticket workflow.
Do not run duplicate-bug triage instead of security-impact triage. Generic Jira duplicate triage answers "is this already filed?" This skill answers "does this existing security claim affect this repository, and how should it rank for backlog burn-down?"
Jira and Linear Intake
When the user supplies Jira or Linear issue URLs, Jira issue keys, Linear issue identifiers, JQL, project/search phrases, or asks to import tickets from Jira or Linear, retrieve the issue content before normalizing findings.
For Jira, use the Atlassian Rovo connector when it is available:
- Prefer structured JQL for repeatable imported collections, ordered by a stable field such as key or created date. Use natural-language search only for discovery, such as finding the cloud/site, project, issue family, or first matching key from a vague user phrase; after discovery, switch to JQL or exact issue fetches.
- Jira text search tokenizes punctuation. If a hyphenated marker such as
KAN-PROMPTFOO-SYNTH returns no rows, broaden to a stable token such as PROMPTFOO, then filter returned summaries for the exact family before triage.
- For exact issue URLs or keys, fetch those issues directly when the connector supports it. For a project family or saved query, use JQL and preserve the JQL string as source provenance.
For Linear, fetch exact issue URLs or identifiers directly when provided. When the user supplies a team/project/search phrase instead, use the Linear connector's search results only to identify the intended issue set, then fetch the selected issues before normalizing.
Normalize Jira and Linear vulnerability tickets as source_type: "scanner_ticket"
unless the ticket body clearly represents a more specific input type such as bug_bounty, advisory, cve, or codex_security_finding. Preserve source-system provenance including issue key or identifier, URL, project, status, labels, components, priority, assignee,
reporter, timestamps, issue type, and the import query in input_id,
normalized_input.references, and evidence/proof-gap text.
Default to read-only import and triage. Do not add comments, transition issues,
close issues, assign owners, or change labels unless the user explicitly asks for writeback. If the user does ask for writeback, finish the static verdicts first, summarize the planned issue mutations, and keep the mutation step separate from evidence analysis.
For imported Jira or Linear collections, the concise final summary should say how many issues were imported, what query or issue set was used, where the full result was rendered or saved, and whether any Jira or Linear changes were made.
The default source-system status is: no Jira or Linear changes made.
GitHub Repository Intake
When the user supplies a GitHub repository instead of pasted finding content,
use references/github-rest-intake.md before normalizing findings.
Detect GitHub repositories from owner/repo, GitHub URLs, GitHub SSH remotes,
the current Codex project's attached GitHub repository, or the current local repository's GitHub remote.
If the user asks to pull from GitHub without typing an owner/repo or URL, first infer the GitHub repository from the current Codex project attachment when that metadata is available. Prefer that attached repository over a local path or local git remote. If no Codex project attachment is visible, fall back to the current repository's GitHub remote. Only ask for a repository URL or owner/repo
when neither source resolves to a GitHub repository.
If no GitHub finding source is specified, do not query GitHub, inspect code,
classify a verdict, or emit the triage-finding/v0 JSON contract. Ask the user to choose one of:
- code scanning
- Dependabot vulnerabilities and malware
- security advisories and private vulnerability reports
- all of the above
If the user specifies a source, query only the matching GitHub REST endpoint family from references/github-rest-intake.md. If the user chooses all, query the REST sources listed there, but do not include GitHub Issues in all.
Use REST for all GitHub finding retrieval. Do not use the GitHub Connector to fetch findings, even when it is installed or the user explicitly asks for it.
If the user asks to use the GitHub Connector, silently use it only as the first auth-token source when a connector token acquisition path is available, then retrieve finding data directly with REST. If connector token acquisition is not available, fall through to the next REST auth source in the reference.
Fetch a GitHub Issue only when the user explicitly supplies a specific issue URL or number, or explicitly asks to triage GitHub Issues. Normalize explicit issues as source_type: "freeform".
Missing Input
If no finding is supplied, do not inspect the repository, do not classify a verdict, and do not emit the triage-finding/v0 JSON contract.
Ask the user to provide a finding to triage. Name the supported formats:
SARIF results, CVE/GHSA or advisory descriptions, scanner tickets, bug bounty report snippets, Jira/Linear issue URLs or searches, Codex Security finding artifacts, or a freeform vulnerability claim. If useful, ask for the repository path or affected file/component at the same time.
Inputs
Start by extracting:
- repository path or current working repository
- GitHub repository owner/name and selected GitHub REST source, when the input is a GitHub repository intake request
- Jira/Linear source query, issue key or identifier, URL, project, status,
labels, components, priority, assignee, reporter, timestamps, and issue type when the input is imported from a ticketing system
- input id, scanner id, SARIF rule/result id, CVE/GHSA id, ticket id, or Codex Security
findingId/occurrenceId when present
- title or short claim
- source type:
sarif, cve, advisory, scanner_ticket,
bug_bounty, codex_security_finding, freeform, or unknown
- vulnerable component, package, API, file, route, class, function, or service
- claimed attacker-controlled source
- claimed sink or broken security control
- affected version, path, configuration, or deployment surface
- required preconditions and claimed impact
- existing code references, evidence, and counterevidence supplied by the user
- GitHub provenance such as alert URL, advisory URL, issue URL, alert number,
advisory state, package name, manifest path, rule id, and instance locations
Ask a follow-up question only when the repository path or finding claim is too vague to inspect. Otherwise, inspect the repository and preserve missing fields as proof gaps.
Repository Security Policy Gate
Before static evidence analysis, check whether the target repository has a SECURITY.md file at or above the repository root. If present, read the repository's SECURITY.md before tracing source, control, sink, reachability,
or assigning a verdict.
Treat SECURITY.md as the primary local source for supported security boundaries, trusted inputs, supported versions, disclosure scope, hardening controls, and out-of-scope surfaces. Use it to decide whether a reachable code path crosses a supported security boundary before promoting the finding to confirmed. If no SECURITY.md is present, record that absence as a proof gap and continue with the next-best local policy evidence.
Workflow
- If the input is a Jira or Linear intake request, follow the Jira and Linear Intake section above.
- Retrieve the source issue content before normalizing findings.
- Use repeatable structured queries for Jira collections when possible.
- Preserve ticket provenance and normalize vulnerability tickets into the
existing source types instead of adding new
source_type enum values.
- Do not write back to Jira or Linear unless the user explicitly asks.
- If the input is a GitHub repository intake request, follow
references/github-rest-intake.md.
- If the user did not specify a GitHub finding source, ask for the source and
stop without emitting triage JSON.
- If REST auth is unavailable, ask for a supported auth source and stop
without emitting triage JSON.
- Normalize retrieved GitHub findings into the existing source types:
sarif, cve, advisory, or freeform for explicit GitHub Issues.
- Preserve GitHub provenance in
input_id, normalized_input.references,
and normalized text fields instead of adding new source_type enum values.
- Normalize each supplied or imported finding into a triage item.
- Assign
triage_item_id values such as triage-001.
- Preserve external source ids in
input_id.
- Do not invent scanner fields, generated Codex Security ids, severity, or
remediation just to satisfy another schema.
- Resolve the repository path and git revision when available.
- Apply the Repository Security Policy Gate.
- Look for
SECURITY.md in the target repository before source/control/sink
tracing or reachability analysis.
- If present, read it and record the relevant policy basis for supported
security boundaries, trusted inputs, supported versions, hardening
controls, and out-of-scope surfaces.
- If absent, record the absence as a proof gap and continue with available
product docs, threat models, disclosure policy, and local comments.
- If
SECURITY.md and available local product evidence do not establish the
intended product surface, untrusted input boundary, or trusted
operator/developer inputs, ask targeted operator-context questions before
assigning a verdict when the answer would materially affect the result.
- Follow
../../references/static-finding-assessment.md to inspect the smallest relevant static evidence set and record source, control, sink,
reachability, boundary inputs, counterevidence, proof gaps, and static confidence.
- Classify the product surface and trust boundary.
- Identify whether the path is a CLI, library API, hosted service, local
developer UI, MCP/tooling surface, example/demo, test/fixture, docs,
generated code, vendored code, or unknown surface.
- Check package manifests, exports, binary entrypoints, deployment files,
product docs,
SECURITY.md, disclosure policy, threat models, and nearby
comments when they are standard or local to the claim.
- Record whether the claimed source is untrusted input in the intended
product model, or trusted operator/developer configuration.
- Trace the claimed source, control, sink, and reachable path.
- Treat scanner/advisory prose as a claim, not as proof.
- Start from the cited code, manifest, version range, or supplied evidence.
confirmed already requires reachability. When claiming reachability,
record reachability anchor evidence: the concrete caller, entrypoint,
route, command, package export, deployment path, dependency edge, or other
repo fact that proves the vulnerable condition is connected to the product
surface.
- Record supporting evidence.
- Record counterevidence that weakens or defeats the claim.
- Record unresolved proof gaps instead of smoothing them over.
- Apply the verdict rules.
- Assign exploitability stack ranks for
confirmed and needs_review
findings.
- For
confirmed findings, add owner hints after verdicting when local ownership evidence is easy to derive.
- Build one valid
triage-finding/v0 result using the contract in references/triage-result-contract.md.
- If the Codex Security app tool
open_codex_security_triage_results is
available, call it with the complete result before the final response so
the app renders the findings table. After a successful tool call, return a
concise Markdown summary; do not paste the full JSON block unless the user
asks for the raw contract.
- If the app tool is unavailable or rejects the result, fall back to the
fenced JSON block alongside the concise Markdown summary.
Surface and Boundary Gate
Before assigning confirmed, classify the finding's intended product surface and trust boundary.
Inspect the smallest available evidence for:
- shipped or runtime surfaces, such as package manifests, exports, binary entrypoints, server routes, deploy configs, container/build files, public API docs, or product docs
- non-product or trusted surfaces, such as examples, tests, fixtures, docs snippets, local-only developer tools, generated/vendor code, internal harnesses, CLI configs, plugin/test utilities, or deliberately code-executing extension points
- repository security policy or threat model, such as
SECURITY.md,
docs/security, supported-versions docs, disclosure policy, threat models, or comments that define trusted inputs and supported boundaries
A reachable dataflow is not enough. confirmed requires both:
- the vulnerable condition is statically reachable under stated preconditions
- the source crosses a security boundary that the project appears to support
If the code is reachable only through trusted configuration, local developer interfaces, examples, tests, fixtures, or demo applications, do not mark confirmed unless static evidence shows that surface is shipped, deployed,
documented for untrusted users, or bypasses a documented hardening/auth boundary.
When the boundary classification is policy-dependent or unclear, prefer needs_review and put the ambiguity in proof gaps.
Verdict Rules
Use confirmed only when static evidence connects the vulnerable condition to reachable code under stated preconditions and the source crosses an intended security boundary for a shipped, deployed, or documented product surface.
Dependency or component presence by itself is not enough.
Use not_actionable only when static evidence positively defeats the finding,
for example:
- the vulnerable package or feature is absent
- the locked version is outside the affected range
- the claimed code path is unreachable in the repository's configuration
- the dangerous sink is protected by a relevant guard, validator, sanitizer, or authorization control
- the scanner claim points at dead, test-only, generated, vendored, or unused code and repository evidence supports that conclusion
- the relevant code is example-only, fixture-only, docs-only, local-only, or not shipped in the affected artifact
- the source is trusted configuration, a CLI argument, a local-only tool input,
or an intentionally code-executing extension point under the repository's documented security model
Use needs_review when evidence is insufficient, ambiguous, runtime-only,
policy-dependent, environment-dependent, or blocked by missing repository context. Prefer needs_review over speculative confirmed or not_actionable verdicts.
Exploitability Stack Ranking
After verdicting, assign discrete exploitability stack ranks separately for confirmed and needs_review findings.
confirmed findings use the confirmed rank queue and rank labels P0,
P1, P2, etc. P0 is the most exploitable confirmed finding in this result set.
needs_review findings use the needs_review rank queue and the same P0, P1, P2, etc. labels. P0 is the highest-exploitability unresolved finding to review first.
- Rank labels intentionally do not encode the verdict queue. Use
rank_queue
to distinguish confirmed priorities from needs-review priorities.
not_actionable findings are not stack-ranked; set their rank queue and rank to null.
Rank by exploitability, not by scanner severity alone. Prioritize findings with clearer attacker reachability, lower required privileges, fewer preconditions,
more direct source-to-sink control, weaker or absent guards, and more reliable static evidence that the exploit path can be exercised. Use claimed impact or scanner severity only as a final tiebreaker when exploitability is otherwise equal.
Keep findings in input order in the JSON result. Use the stack-rank fields to show review/remediation priority instead of reordering the results.
Owner Hints
For confirmed findings only, add a concise owner hint after assigning the verdict and exploitability stack rank when local ownership evidence is easy to derive.
Prefer CODEOWNERS or OWNERS evidence when available. If ownership is not clear,
omit the owner hint rather than guessing. Owner hints are routing metadata only:
do not use ownership to influence verdict, confidence, boundary assessment, or exploitability rank.
The triage-finding/v0 contract does not define a dedicated owner field. Do not add undocumented fields to the app-tool payload. Put owner-hint text in existing Markdown output, evidence, or recommended-next-step text when it is useful.
App Surface and Output Contract
The Markdown result should include:
- finding title or input id
- verdict and confidence
- short rationale
- affected locations, if any
- reachable path, if established
- boundary assessment: product surface, source trust level, policy basis, and whether a supported security boundary is crossed
- exploitability stack rank for
confirmed and needs_review findings
- evidence
- counterevidence
- proof gaps
- owner hint for
confirmed findings, when available
- recommended next step
$fix-finding handoff when verdict is confirmed
The app-tool payload or fallback JSON block must include:
schema_version: "triage-finding/v0"
- repository path and revision when available
- one result object per input finding, in input order
source_type on every finding result, using one of the input source types listed above
boundary_assessment on every finding result, even when fields are unknown
exploitability_stack_rank on every finding result
Prefer the app tool over showing raw JSON. The intended default UX is:
- generate the valid
triage-finding/v0 result internally
- call
open_codex_security_triage_results with that result
- respond with the concise Markdown summary
Use the fenced JSON block only as a fallback when the app tool cannot be used,
or when the user explicitly asks to see or copy the raw result contract.
Fix-Finding Handoff
For confirmed findings, include a concise prompt-ready handoff for $fix-finding with:
- vulnerable source, sink, or broken control
- attacker-controlled input and preconditions
- exact code references
- required security invariant
- recommended fix boundary
- proof gaps that
$fix-finding should preserve or validate
Do not invoke $fix-finding unless the user explicitly asks to continue into fixing.
Hard Rules
- Do not run tests, builds, applications, PoCs, exploit checks, or dynamic validation.
- Do not edit repository files while triaging.
- Do not search for unrelated vulnerabilities.
- Do not claim exhaustive repository coverage.
- Do not claim runtime validation happened.
- Do not use the GitHub Connector for GitHub finding retrieval. It may be used only as the first auth-token source for REST requests when available.
- Do not mutate Jira, Linear, or other backlog sources unless the user explicitly asks for writeback after triage.
- Do not include GitHub Issues in default GitHub intake or in the all-source GitHub intake path.
- Do not mark
confirmed solely because attacker-influenced data reaches a dangerous sink; first establish the relevant product surface and supported security boundary.
- Do not use deep triage mode unless a future implementation explicitly adds it.
- Do not deduplicate, group, canonicalize, or drop duplicate-looking inputs in this skill; keep one result per supplied finding.
- Do not hide proof gaps or turn missing evidence into confidence.
1---2name: triage-finding3description: "Use when the user supplies or imports existing security findings, vulnerability reports, or security/vulnerability Jira/Linear tickets from scanners, advisories, GitHub, Atlassian Rovo, Linear, or similar backlog sources and wants static repo-impact triage. Do not use for discovery, duplicate-bug triage, validation, or fixes."4metadata:5 source: https://skillmd.com/skills/concertonotes/triage-finding6 short-description: "Triage pasted or imported security findings from Jira/Linear, scanners, GitHub, and advisories"7---89# Triage Finding1011## Objective1213Triage existing security findings against the current repository using static code evidence. Return one evidence-backed verdict per supplied finding:14`confirmed`, `not_actionable`, or `needs_review`. For `confirmed` and `needs_review` findings, also assign a discrete exploitability stack rank inside that verdict's own queue.1516This skill is for backlog burn-down. It starts from findings the user already has, such as SARIF results, CVEs, advisories, scanner tickets, bug bounty reports, Jira/Linear issues, or Codex Security finding artifacts. It is not a repository-wide scan, dynamic validation run, fix implementation, dashboard, or queue manager.1718## Backlog Burn-Down Scope1920Treat multiple supplied findings as one backlog-reduction problem, not as a set of unrelated one-off triages. The goal is to turn noisy existing finding sources into a ranked, evidence-backed action queue while preserving one result per input for auditability and app rendering.2122For now, run the workflow inline in the current thread, but structure the work like a backlog pipeline:2324- Build the normalized triage item list for the whole supplied or imported collection before assigning verdicts. Here, normalize means: assign `triage_item_id`, preserve source ids and references, extract the fields in the Inputs section below, and record missing fields as proof gaps without inventing scanner, severity, remediation, or generated Codex Security fields.25- Triage each normalized item using static evidence and keep one output result per supplied finding.26- Rank the `confirmed` and `needs_review` results as an action queue for backlog burn-down.27- Do not perform deduplication in this skill. If duplicate-looking inputs are present, keep one result per supplied finding; deduplication belongs in a separate workflow.28- Do not spawn subagents, use a subagent queue, or use deep triage mode until a future implementation explicitly adds those mechanics.2930## Finding Schema Decision3132Do not use `plugins/codex-security/schemas/findings.schema.json` as the canonical data shape for input normalization.3334That schema describes completed Codex Security scan output. It requires generated fields such as `scanId`, `findingId`, `occurrenceId`, fingerprints,35severity, remediation, provenance, and at least one location. Most triage inputs are incomplete external claims, and forcing them into that schema before investigation would require inventing stable IDs, severity, remediation, or locations.3637Use the schema only as an optional compatibility source when the user supplies an existing `codex-security.findings` JSON artifact. In that case, extract the available fields into the triage normalization record and preserve the original IDs as source identifiers. The triage result contract is defined in `references/triage-result-contract.md`.3839## Static Assessment Guidance4041Use the shared static finding assessment reference in `../../references/static-finding-assessment.md` for the reusable evidence work: source/control/sink tracing, smallest useful evidence search,42reachability, boundary inputs, counterevidence, proof gaps, and static confidence.4344This skill still owns external finding intake, the backlog triage verdicts,45the first-pass no-runtime constraint, and the output contract.4647## Routing and Connector Use4849Use this skill for security or vulnerability Jira/Linear tickets, even when the user mentions `@atlassian-rovo`, `@linear`, Jira, Linear, JQL, project keys,50ticket URLs, or ticket search phrases. Treat Atlassian Rovo and Linear mentions as connector hints for importing ticket content, not as a reason to switch to Atlassian Rovo's `triage-issue` skill or another generic ticket workflow.5152Do not run duplicate-bug triage instead of security-impact triage. Generic Jira duplicate triage answers "is this already filed?" This skill answers "does this existing security claim affect this repository, and how should it rank for backlog burn-down?"5354## Jira and Linear Intake5556When the user supplies Jira or Linear issue URLs, Jira issue keys, Linear issue identifiers, JQL, project/search phrases, or asks to import tickets from Jira or Linear, retrieve the issue content before normalizing findings.5758For Jira, use the Atlassian Rovo connector when it is available:5960- Prefer structured JQL for repeatable imported collections, ordered by a stable field such as key or created date. Use natural-language search only for discovery, such as finding the cloud/site, project, issue family, or first matching key from a vague user phrase; after discovery, switch to JQL or exact issue fetches.61- Jira text search tokenizes punctuation. If a hyphenated marker such as `KAN-PROMPTFOO-SYNTH` returns no rows, broaden to a stable token such as `PROMPTFOO`, then filter returned summaries for the exact family before triage.62- For exact issue URLs or keys, fetch those issues directly when the connector supports it. For a project family or saved query, use JQL and preserve the JQL string as source provenance.6364For Linear, fetch exact issue URLs or identifiers directly when provided. When the user supplies a team/project/search phrase instead, use the Linear connector's search results only to identify the intended issue set, then fetch the selected issues before normalizing.6566Normalize Jira and Linear vulnerability tickets as `source_type: "scanner_ticket"`67unless the ticket body clearly represents a more specific input type such as `bug_bounty`, `advisory`, `cve`, or `codex_security_finding`. Preserve source-system provenance including issue key or identifier, URL, project, status, labels, components, priority, assignee,68reporter, timestamps, issue type, and the import query in `input_id`,69`normalized_input.references`, and evidence/proof-gap text.7071Default to read-only import and triage. Do not add comments, transition issues,72close issues, assign owners, or change labels unless the user explicitly asks for writeback. If the user does ask for writeback, finish the static verdicts first, summarize the planned issue mutations, and keep the mutation step separate from evidence analysis.7374For imported Jira or Linear collections, the concise final summary should say how many issues were imported, what query or issue set was used, where the full result was rendered or saved, and whether any Jira or Linear changes were made.75The default source-system status is: no Jira or Linear changes made.7677## GitHub Repository Intake7879When the user supplies a GitHub repository instead of pasted finding content,80use `references/github-rest-intake.md` before normalizing findings.8182Detect GitHub repositories from `owner/repo`, GitHub URLs, GitHub SSH remotes,83the current Codex project's attached GitHub repository, or the current local repository's GitHub remote.8485If the user asks to pull from GitHub without typing an `owner/repo` or URL, first infer the GitHub repository from the current Codex project attachment when that metadata is available. Prefer that attached repository over a local path or local git remote. If no Codex project attachment is visible, fall back to the current repository's GitHub remote. Only ask for a repository URL or `owner/repo`86when neither source resolves to a GitHub repository.8788If no GitHub finding source is specified, do not query GitHub, inspect code,89classify a verdict, or emit the `triage-finding/v0` JSON contract. Ask the user to choose one of:9091- code scanning92- Dependabot vulnerabilities and malware93- security advisories and private vulnerability reports94- all of the above9596If the user specifies a source, query only the matching GitHub REST endpoint family from `references/github-rest-intake.md`. If the user chooses all, query the REST sources listed there, but do not include GitHub Issues in all.9798Use REST for all GitHub finding retrieval. Do not use the GitHub Connector to fetch findings, even when it is installed or the user explicitly asks for it.99If the user asks to use the GitHub Connector, silently use it only as the first auth-token source when a connector token acquisition path is available, then retrieve finding data directly with REST. If connector token acquisition is not available, fall through to the next REST auth source in the reference.100101Fetch a GitHub Issue only when the user explicitly supplies a specific issue URL or number, or explicitly asks to triage GitHub Issues. Normalize explicit issues as `source_type: "freeform"`.102103## Missing Input104105If no finding is supplied, do not inspect the repository, do not classify a verdict, and do not emit the `triage-finding/v0` JSON contract.106107Ask the user to provide a finding to triage. Name the supported formats:108SARIF results, CVE/GHSA or advisory descriptions, scanner tickets, bug bounty report snippets, Jira/Linear issue URLs or searches, Codex Security finding artifacts, or a freeform vulnerability claim. If useful, ask for the repository path or affected file/component at the same time.109110## Inputs111112Start by extracting:113114- repository path or current working repository115- GitHub repository owner/name and selected GitHub REST source, when the input is a GitHub repository intake request116- Jira/Linear source query, issue key or identifier, URL, project, status,117 labels, components, priority, assignee, reporter, timestamps, and issue type when the input is imported from a ticketing system118- input id, scanner id, SARIF rule/result id, CVE/GHSA id, ticket id, or Codex Security `findingId`/`occurrenceId` when present119- title or short claim120- source type: `sarif`, `cve`, `advisory`, `scanner_ticket`,121 `bug_bounty`, `codex_security_finding`, `freeform`, or `unknown`122- vulnerable component, package, API, file, route, class, function, or service123- claimed attacker-controlled source124- claimed sink or broken security control125- affected version, path, configuration, or deployment surface126- required preconditions and claimed impact127- existing code references, evidence, and counterevidence supplied by the user128- GitHub provenance such as alert URL, advisory URL, issue URL, alert number,129 advisory state, package name, manifest path, rule id, and instance locations130131Ask a follow-up question only when the repository path or finding claim is too vague to inspect. Otherwise, inspect the repository and preserve missing fields as proof gaps.132133## Repository Security Policy Gate134135Before static evidence analysis, check whether the target repository has a `SECURITY.md` file at or above the repository root. If present, read the repository's `SECURITY.md` before tracing source, control, sink, reachability,136or assigning a verdict.137138Treat `SECURITY.md` as the primary local source for supported security boundaries, trusted inputs, supported versions, disclosure scope, hardening controls, and out-of-scope surfaces. Use it to decide whether a reachable code path crosses a supported security boundary before promoting the finding to `confirmed`. If no `SECURITY.md` is present, record that absence as a proof gap and continue with the next-best local policy evidence.139140## Workflow1411421. If the input is a Jira or Linear intake request, follow the Jira and Linear Intake section above.143 - Retrieve the source issue content before normalizing findings.144 - Use repeatable structured queries for Jira collections when possible.145 - Preserve ticket provenance and normalize vulnerability tickets into the146 existing source types instead of adding new `source_type` enum values.147 - Do not write back to Jira or Linear unless the user explicitly asks.1482. If the input is a GitHub repository intake request, follow `references/github-rest-intake.md`.149 - If the user did not specify a GitHub finding source, ask for the source and150 stop without emitting triage JSON.151 - If REST auth is unavailable, ask for a supported auth source and stop152 without emitting triage JSON.153 - Normalize retrieved GitHub findings into the existing source types:154 `sarif`, `cve`, `advisory`, or `freeform` for explicit GitHub Issues.155 - Preserve GitHub provenance in `input_id`, `normalized_input.references`,156 and normalized text fields instead of adding new `source_type` enum values.1573. Normalize each supplied or imported finding into a triage item.158 - Assign `triage_item_id` values such as `triage-001`.159 - Preserve external source ids in `input_id`.160 - Do not invent scanner fields, generated Codex Security ids, severity, or161 remediation just to satisfy another schema.1624. Resolve the repository path and git revision when available.1635. Apply the Repository Security Policy Gate.164 - Look for `SECURITY.md` in the target repository before source/control/sink165 tracing or reachability analysis.166 - If present, read it and record the relevant policy basis for supported167 security boundaries, trusted inputs, supported versions, hardening168 controls, and out-of-scope surfaces.169 - If absent, record the absence as a proof gap and continue with available170 product docs, threat models, disclosure policy, and local comments.171 - If `SECURITY.md` and available local product evidence do not establish the172 intended product surface, untrusted input boundary, or trusted173 operator/developer inputs, ask targeted operator-context questions before174 assigning a verdict when the answer would materially affect the result.1756. Follow `../../references/static-finding-assessment.md` to inspect the smallest relevant static evidence set and record source, control, sink,176 reachability, boundary inputs, counterevidence, proof gaps, and static confidence.1777. Classify the product surface and trust boundary.178 - Identify whether the path is a CLI, library API, hosted service, local179 developer UI, MCP/tooling surface, example/demo, test/fixture, docs,180 generated code, vendored code, or unknown surface.181 - Check package manifests, exports, binary entrypoints, deployment files,182 product docs, `SECURITY.md`, disclosure policy, threat models, and nearby183 comments when they are standard or local to the claim.184 - Record whether the claimed source is untrusted input in the intended185 product model, or trusted operator/developer configuration.1868. Trace the claimed source, control, sink, and reachable path.187 - Treat scanner/advisory prose as a claim, not as proof.188 - Start from the cited code, manifest, version range, or supplied evidence.189 - `confirmed` already requires reachability. When claiming reachability,190 record reachability anchor evidence: the concrete caller, entrypoint,191 route, command, package export, deployment path, dependency edge, or other192 repo fact that proves the vulnerable condition is connected to the product193 surface.194 - Record supporting evidence.195 - Record counterevidence that weakens or defeats the claim.196 - Record unresolved proof gaps instead of smoothing them over.1979. Apply the verdict rules.19810. Assign exploitability stack ranks for `confirmed` and `needs_review`199 findings.20011. For `confirmed` findings, add owner hints after verdicting when local ownership evidence is easy to derive.20112. Build one valid `triage-finding/v0` result using the contract in `references/triage-result-contract.md`.20213. If the Codex Security app tool `open_codex_security_triage_results` is203 available, call it with the complete result before the final response so204 the app renders the findings table. After a successful tool call, return a205 concise Markdown summary; do not paste the full JSON block unless the user206 asks for the raw contract.20714. If the app tool is unavailable or rejects the result, fall back to the208 fenced JSON block alongside the concise Markdown summary.209210## Surface and Boundary Gate211212Before assigning `confirmed`, classify the finding's intended product surface and trust boundary.213214Inspect the smallest available evidence for:215216- shipped or runtime surfaces, such as package manifests, exports, binary entrypoints, server routes, deploy configs, container/build files, public API docs, or product docs217- non-product or trusted surfaces, such as examples, tests, fixtures, docs snippets, local-only developer tools, generated/vendor code, internal harnesses, CLI configs, plugin/test utilities, or deliberately code-executing extension points218- repository security policy or threat model, such as `SECURITY.md`,219 docs/security, supported-versions docs, disclosure policy, threat models, or comments that define trusted inputs and supported boundaries220221A reachable dataflow is not enough. `confirmed` requires both:2222231. the vulnerable condition is statically reachable under stated preconditions2242. the source crosses a security boundary that the project appears to support225226If the code is reachable only through trusted configuration, local developer interfaces, examples, tests, fixtures, or demo applications, do not mark `confirmed` unless static evidence shows that surface is shipped, deployed,227documented for untrusted users, or bypasses a documented hardening/auth boundary.228229When the boundary classification is policy-dependent or unclear, prefer `needs_review` and put the ambiguity in proof gaps.230231## Verdict Rules232233Use `confirmed` only when static evidence connects the vulnerable condition to reachable code under stated preconditions and the source crosses an intended security boundary for a shipped, deployed, or documented product surface.234Dependency or component presence by itself is not enough.235236Use `not_actionable` only when static evidence positively defeats the finding,237for example:238239- the vulnerable package or feature is absent240- the locked version is outside the affected range241- the claimed code path is unreachable in the repository's configuration242- the dangerous sink is protected by a relevant guard, validator, sanitizer, or authorization control243- the scanner claim points at dead, test-only, generated, vendored, or unused code and repository evidence supports that conclusion244- the relevant code is example-only, fixture-only, docs-only, local-only, or not shipped in the affected artifact245- the source is trusted configuration, a CLI argument, a local-only tool input,246 or an intentionally code-executing extension point under the repository's documented security model247248Use `needs_review` when evidence is insufficient, ambiguous, runtime-only,249policy-dependent, environment-dependent, or blocked by missing repository context. Prefer `needs_review` over speculative `confirmed` or `not_actionable` verdicts.250251## Exploitability Stack Ranking252253After verdicting, assign discrete exploitability stack ranks separately for `confirmed` and `needs_review` findings.254255- `confirmed` findings use the `confirmed` rank queue and rank labels `P0`,256 `P1`, `P2`, etc. `P0` is the most exploitable confirmed finding in this result set.257- `needs_review` findings use the `needs_review` rank queue and the same `P0`, `P1`, `P2`, etc. labels. `P0` is the highest-exploitability unresolved finding to review first.258- Rank labels intentionally do not encode the verdict queue. Use `rank_queue`259 to distinguish confirmed priorities from needs-review priorities.260- `not_actionable` findings are not stack-ranked; set their rank queue and rank to `null`.261262Rank by exploitability, not by scanner severity alone. Prioritize findings with clearer attacker reachability, lower required privileges, fewer preconditions,263more direct source-to-sink control, weaker or absent guards, and more reliable static evidence that the exploit path can be exercised. Use claimed impact or scanner severity only as a final tiebreaker when exploitability is otherwise equal.264265Keep findings in input order in the JSON result. Use the stack-rank fields to show review/remediation priority instead of reordering the results.266267## Owner Hints268269For `confirmed` findings only, add a concise owner hint after assigning the verdict and exploitability stack rank when local ownership evidence is easy to derive.270271Prefer CODEOWNERS or OWNERS evidence when available. If ownership is not clear,272omit the owner hint rather than guessing. Owner hints are routing metadata only:273do not use ownership to influence verdict, confidence, boundary assessment, or exploitability rank.274275The `triage-finding/v0` contract does not define a dedicated owner field. Do not add undocumented fields to the app-tool payload. Put owner-hint text in existing Markdown output, evidence, or recommended-next-step text when it is useful.276277## App Surface and Output Contract278279The Markdown result should include:280281- finding title or input id282- verdict and confidence283- short rationale284- affected locations, if any285- reachable path, if established286- boundary assessment: product surface, source trust level, policy basis, and whether a supported security boundary is crossed287- exploitability stack rank for `confirmed` and `needs_review` findings288- evidence289- counterevidence290- proof gaps291- owner hint for `confirmed` findings, when available292- recommended next step293- `$fix-finding` handoff when verdict is `confirmed`294295The app-tool payload or fallback JSON block must include:296297- `schema_version: "triage-finding/v0"`298- repository path and revision when available299- one result object per input finding, in input order300- `source_type` on every finding result, using one of the input source types listed above301- `boundary_assessment` on every finding result, even when fields are unknown302- `exploitability_stack_rank` on every finding result303304Prefer the app tool over showing raw JSON. The intended default UX is:3053061. generate the valid `triage-finding/v0` result internally3072. call `open_codex_security_triage_results` with that result3083. respond with the concise Markdown summary309310Use the fenced JSON block only as a fallback when the app tool cannot be used,311or when the user explicitly asks to see or copy the raw result contract.312313## Fix-Finding Handoff314315For `confirmed` findings, include a concise prompt-ready handoff for `$fix-finding` with:316317- vulnerable source, sink, or broken control318- attacker-controlled input and preconditions319- exact code references320- required security invariant321- recommended fix boundary322- proof gaps that `$fix-finding` should preserve or validate323324Do not invoke `$fix-finding` unless the user explicitly asks to continue into fixing.325326## Hard Rules327328- Do not run tests, builds, applications, PoCs, exploit checks, or dynamic validation.329- Do not edit repository files while triaging.330- Do not search for unrelated vulnerabilities.331- Do not claim exhaustive repository coverage.332- Do not claim runtime validation happened.333- Do not use the GitHub Connector for GitHub finding retrieval. It may be used only as the first auth-token source for REST requests when available.334- Do not mutate Jira, Linear, or other backlog sources unless the user explicitly asks for writeback after triage.335- Do not include GitHub Issues in default GitHub intake or in the all-source GitHub intake path.336- Do not mark `confirmed` solely because attacker-influenced data reaches a dangerous sink; first establish the relevant product surface and supported security boundary.337- Do not use deep triage mode unless a future implementation explicitly adds it.338- Do not deduplicate, group, canonicalize, or drop duplicate-looking inputs in this skill; keep one result per supplied finding.339- Do not hide proof gaps or turn missing evidence into confidence.