Skip to content

Commit 6c38277

Browse files
committed
docs(triage): minimize changes to original duty skills
Signed-off-by: Jim Meyer <jimeyer@nvidia.com>
1 parent 4834350 commit 6c38277

3 files changed

Lines changed: 62 additions & 89 deletions

File tree

Lines changed: 23 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,47 @@
11
---
22
name: apply-triage-action
3-
description: Apply, reject, or defer one stable item ID from a local triage queue report. Use when an engineer selects an issue or CI recommendation; preview and confirm each external write before performing it.
3+
description: Apply, reject, or defer exactly one issue or CI recommendation from a local triage queue report. Use when the on-duty engineer explicitly supplies an item ID.
44
metadata:
55
internal: true
66
---
77

88
# Apply Triage Action
99

10-
Process exactly one stable item ID, such as `I2991` or a CI run's `C<hash>`, from a report created by `review-triage-queue`. `R-01` is display order only: ask for the stable ID instead. Natural-language approval without an ID does not select a recommendation. PR IDs are informational and have no supported action in v1.
10+
Process exactly one item ID from a queue-review report. Do not accept a natural-language approval without an ID. PRs are informational in v1.
1111

1212
## Locate and validate
1313

14-
1. Read `.agents/triage-duty/state.local.yml`, the relevant immutable report under `reports/`, and action records under `actions/`. Action records are authoritative; reconcile the checkpoint index from them before proceeding.
15-
2. Resolve the ID to its recorded repository and canonical source object, never to a row in the newest report. If the engineer names a report, use that snapshot; otherwise use the latest snapshot containing that ID and show its report filename, source, and action. If it differs materially from a prior recommendation the engineer may have read, require selection of the new action before previewing it.
16-
3. Stop for a missing, colliding, ambiguous, already-final, or superseded recommendation. An older report may select the same object, but a materially changed action requires a fresh review. Rejected items can return only with recorded material new evidence. Never substitute another item.
17-
4. Record every explicit disposition or attempted action in a dated append-only action record: repository, canonical source, stable ID, source report, timestamp, action, disposition, reason, confirmation, and outcome. Update the checkpoint index afterward; do not edit reports. Exclude secrets, private reasons, and vulnerability details. Private reasons stay with the engineer; record only `private reason withheld` locally.
14+
1. Read the checkpoint and action records under `.agents/triage-duty/`; reconcile dispositions using the [local-state rules](../review-triage-queue/SKILL.md#local-state).
15+
2. Use the named report, or the latest report containing the ID. Read the recommendation and current disposition. Material changes to a previously selected recommendation require fresh review and selection.
16+
3. Reject missing, superseded, already-final, or ambiguous recommendations without making a write. Never substitute another item.
17+
4. Append every explicit disposition or attempted action to a dated local action record. Record repository, target, source report, ID, timestamp, disposition, reason, confirmed payload, and outcome; update the checkpoint afterward. Keep sensitive content out of the record; use `private reason withheld` for private reasons.
1818

1919
## Reject or defer
2020

21-
Require a reason for **reject** or **defer**. Reject is terminal locally until material new evidence; defer preserves original priority and carries into later reports independently of the new-intake budget.
21+
For **reject** or **defer**, require the engineer to give a reason. Record the local disposition.
2222

23-
A shareable deferral (waiting on reporter evidence, a dependency, or linked PR changes) should survive a duty handoff on the GitHub issue. Draft a concise comment with the reason, relevant public links, and next step, then use the same per-write preview/confirmation gate below. Do not post automatically because the engineer requested deferral. If posting is declined, record that the deferral is local only. Private reasons remain local and must never enter an external payload or committable file.
23+
- **Reject** is terminal locally. Do not recommend the item again unless material new evidence changes the case.
24+
- **Defer** is non-terminal. Preserve its original priority and carry it into the next review's carried **Needs your decision** section.
2425

25-
For missing reporter evidence, separately propose the current lifecycle label whose discovered description denotes awaiting information. Do not replace lifecycle labels for unrelated dependency waits. A comment and a label transition are separate writes and require separate confirmations; do not infer that one approves the other. Existing public waiting context can be linked instead of repeated.
26+
For shareable deferrals, draft a GitHub issue comment with reason, public links, and next step, or link existing waiting context. Use the confirmation rule below; declined posting leaves a local-only deferral. Keep private reasons out of external payloads and committable files. For missing reporter evidence, also propose the awaiting-information assessment state using `triage-issue`; unrelated dependency waits do not change lifecycle labels.
2627

2728
## Apply
2829

29-
Re-read the target and current labels/comments/checks before previewing a write. Follow [Label Discovery](../../../CONTRIBUTING.md#label-discovery), including all pages; use current definitions instead of a fixed label inventory. If a definition is unclear, resolve it before proposing a state change. Do not accept work, place it on the roadmap, or infer implementation authority from a label.
30+
Before any external write, re-read the target and determine whether it materially changed. Follow [Label Discovery](../../../CONTRIBUTING.md#label-discovery), retrieving all pages of current definitions before proposing a label change; use [`triage-issue`](../triage-issue/SKILL.md) for assessment states and maintainer authority.
3031

31-
- If already complete or a harmless no-op, make no external write and record why.
32-
- If evidence or the target changed materially, stop for a fresh review and selection of the revised action.
33-
- Otherwise, show the stable ID, source report, canonical target, and exact **one** external write: full body/title, label diff, or closure reason as applicable. Require explicit confirmation of that payload. Selection of `apply <ID>` alone is not confirmation.
32+
- If the action is already complete or would be a harmless no-op, make no external write and record the reason.
33+
- If new information makes the action unsafe or substantially different, stop and request a fresh review/selection.
3434

35-
After confirmation, revalidate that the preview remains valid, perform only that write, and record its result and resulting public URL. If a material change occurred after preview, request a new preview/confirmation. If a write times out or its outcome is uncertain, inspect the target before retrying; do not duplicate a comment or issue. Keep failed/partial actions pending with the observed outcome; mark applied only once the selected action succeeds. Never reuse confirmation for a later invocation or changed payload.
35+
You MUST ALWAYS preview the exact payload, item ID, source report, and canonical target, then receive explicit confirmation for each individual external write. Selecting or deferring an item is not confirmation; comments, label changes, and closures require separate confirmations. Revalidate immediately before execution; changed payloads require a new preview and confirmation. Never reuse confirmation for a later invocation.
3636

37-
Supported v1 writes:
37+
After confirmation, perform only the approved action and record its outcome and public URL; mark applied only after success.
3838

39-
- Add the discovered triage-queue label to an open substantive community issue with **no `state:*` label**, no intentional routing signal, and no duplicate, spam, or security-disclosure indication. Exclude maintainers/core contributors; uncertain eligibility stops the write. Recheck eligibility at application time.
40-
- Create one GitHub issue using `create-github-issue`, including its first-hand user-story requirements. Confirmation does not waive missing evidence.
41-
- Post one public issue comment, including shareable waiting context or a duplicate explanation.
42-
- Change an issue's assessment state to awaiting information, following the existing `triage-issue` conventions and replacing its prior assessment state as appropriate.
43-
- Close one issue, with the exact closure reason and evidence previewed separately. For duplicates, identify the canonical issue; approval to comment or label is not approval to close.
39+
Supported v1 actions:
4440

45-
Never create a public issue for a suspected vulnerability. Follow [SECURITY.md](../../../SECURITY.md). This workflow supports GitHub only.
41+
- Add the discovered triage-queue label to an open substantive community issue; recheck the [intake eligibility rules](../review-triage-queue/SKILL.md#gather-intake) and exclude duplicates, spam, and security disclosures.
42+
- Create one GitHub issue using [`create-github-issue`](../create-github-issue/SKILL.md).
43+
- Post one public issue comment, including waiting context or a duplicate explanation.
44+
- Change an issue's assessment state to awaiting information.
45+
- Close one issue with an evidenced reason; identify the canonical issue for duplicates.
46+
47+
Never create a public GitHub issue for a security finding. Follow [SECURITY.md](../../../SECURITY.md).

0 commit comments

Comments
 (0)