Skip to content

Commit d98ae4d

Browse files
committed
Add triage duty tooling
Signed-off-by: Evan Lezar <elezar@nvidia.com>
1 parent 4d7f402 commit d98ae4d

8 files changed

Lines changed: 414 additions & 0 deletions

File tree

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
---
2+
name: apply-triage-action
3+
description: Apply, reject, or defer exactly one recommendation from the most recent local triage queue report. Use when the on-duty engineer explicitly supplies one report-local ID such as R-01. For external actions, revalidate and preview the exact write, then require a second per-action confirmation before posting, labeling, creating, or closing anything.
4+
---
5+
6+
# Apply Triage Action
7+
8+
Process exactly one report-local recommendation ID from the most recent dated queue-review report. Do not accept a natural-language approval without an ID. Do not accept an ID from an older report.
9+
10+
## Locate and validate
11+
12+
1. Find the most recent report in `architecture/plans/triage-duty-reports/`.
13+
2. Read the selected recommendation and its current local disposition.
14+
3. Reject missing, expired, already-final, or ambiguous IDs without making a write.
15+
4. Append every explicit disposition to a dated local action report beside the queue reports. Record the source report, ID, timestamp, disposition, reason, and outcome. Keep sensitive content out of the record.
16+
17+
## Reject or defer
18+
19+
For **reject** or **defer**, require the engineer to give a reason. Record the no-write disposition.
20+
21+
- **Reject** is terminal locally. Do not recommend the item again unless material new evidence changes the case.
22+
- **Defer** is non-terminal. Preserve its original priority and carry it into the next review's **Needs your decision** section.
23+
24+
## Apply
25+
26+
Before any external write, re-read the target and determine whether it materially changed.
27+
28+
- If the action is already complete or would be a harmless no-op, make no external write and record the reason.
29+
- If new information makes the action unsafe or substantially different, stop and request a fresh review/approval.
30+
- Otherwise, show the exact single external write and require explicit second confirmation for that action.
31+
32+
After confirmation, perform only the approved action and record the outcome.
33+
34+
Supported v1 actions:
35+
36+
- Add `state:triage-needed` to an eligible community issue.
37+
- Create one GitHub issue.
38+
- Post one concise explanatory Slack reply, including a public-doc link when applicable.
39+
- Mark an existing issue as a likely duplicate, including any approved comment or close action.
40+
41+
Never create a public GitHub issue for a security finding. Route it through the project's private security process instead.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
interface:
2+
display_name: "Apply Triage Action"
3+
short_description: "Apply one approved triage recommendation safely"
4+
default_prompt: "Use $apply-triage-action to process recommendation R-01."
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
---
2+
name: review-triage-queue
3+
description: Create a read-only, local triage queue report from OpenShell GitHub and Slack intake. Use when the on-duty engineer asks to review the triage queue, scan incoming work, inspect new community PRs, check main-branch CI failures, or summarize the configured Slack channels. Never use to post, label, close, or otherwise mutate GitHub or Slack.
4+
---
5+
6+
# Review Triage Queue
7+
8+
Create a decision-focused, local Markdown report. Do not write to GitHub or Slack.
9+
10+
## Local state
11+
12+
Use these ignored local paths:
13+
14+
- Checkpoint: `architecture/plans/triage-duty-state.local.yml`
15+
- Reports: `architecture/plans/triage-duty-reports/<UTC timestamp>.md`
16+
- Inbox: `architecture/plans/triage-duty-inbox.md`
17+
18+
On the first run, ask for the triage-duty start date and store it. Do not infer it. Use that date as the initial Slack baseline. Update source cursors only after the report is complete. Search with an overlap window and deduplicate source items.
19+
20+
Keep the checkpoint minimal: duty-period start, last successful scan, source cursors, and explicit local dispositions. Never store copied Slack content, credentials, or personal data.
21+
22+
Read unchecked inbox entries at the start of every review. Treat them as local
23+
follow-up prompts, not as independent evidence or authorization for an external
24+
action. When an entry materially informs the review, include it in the report's
25+
**Local inbox follow-up** section. After the dated report is written, mark that
26+
entry complete in the inbox with the report filename. Leave entries unchecked
27+
when they were not yet actionable or were not considered.
28+
29+
## Gather intake
30+
31+
Use these sources:
32+
33+
- All open GitHub issues labeled `state:triage-needed`, ordered by most recently updated.
34+
- Newly opened community issues without that label; exclude maintainer/core-contributor issues and already-routed work from label recommendations.
35+
- Older open, unlabelled community issues: measure first; audit all when there are at most 20, otherwise inspect the five oldest unresolved candidates per run. Age sets ordering only and never justifies closure.
36+
- Newly opened community pull requests.
37+
- Failed CI runs on `main`.
38+
- Unresolved/actionable questions in Slack channel `C0AE9P50JVA`.
39+
- Related engineering/design context in Slack channel `C0AR6QP0CKH`.
40+
- Published repository documentation for applicable public answers.
41+
42+
Do not scan GitHub Discussions or a dedicated security-reporting source in v1. Do not treat the design/engineering Slack channel as a direct-question queue. Consult resolved Slack threads only as evidence for a candidate, within the prior 30 days.
43+
44+
Treat an unlabelled issue as already routed when it has a roadmap/accepted label, a milestone, a Project item, or an explicit maintainer comment that assigns, schedules, or otherwise intentionally removes it from triage. Report that signal as context; never recommend adding `state:triage-needed` to it.
45+
46+
## Analyze and rank
47+
48+
Detect related signals across sources. Preserve each source as linked provenance. Group similar evidence into one recommendation; do not count a global fixed number of occurrences as the only evidence of repetition.
49+
50+
Recommend work for repeated questions, defects, documentation/support gaps, requested product changes, or likely duplicates. Treat documentation and support improvements as bug-fix or feature work when they address a demonstrated user need. If a Slack question has a clear public-docs answer without a stronger signal, recommend a concise documentation-backed Slack reply.
51+
52+
Classify recommendations as bug, feature, documentation/support improvement, duplicate, intake-gap routing, release blocker, or security finding. The agent may infer a release blocker only with concrete evidence, source links, and confidence. Keep `critical` for security findings and release blockers; use `high`, `normal`, or `low` for all other items. Set confidence to `high`, `medium`, or `low`, and explain uncertainty unless it is high.
53+
54+
## Write the report
55+
56+
Create a dated immutable report. Include generation time, duty-period start, source/checkpoint coverage, and scan limitations. Use links and short paraphrases only.
57+
58+
Include these sections:
59+
60+
1. **Needs your decision** — at most five decision-worthy recommendations. Each entry has report-local ID (`R-01`...), priority, classification, concise proposed action, confidence, linked evidence, applicable public-doc links or `none found`, and current disposition.
61+
2. **Triage queue** — state the total count of open `state:triage-needed` issues and how many are unlisted. Show up to five recently updated items, each with number, title, last-update time, and a concise summary of current context and material changes since the prior review. Put the rest in overflow. Do not assess these issues; direct the engineer to `triage-issue`.
62+
3. **Community pull requests** — up to five new community PRs with number, title, author, check status, and link. Put the rest in overflow. Do not recommend or act on PRs in v1.
63+
4. **Deferred and overflow findings** — preserve lower-priority and capacity-limited findings without silently dropping them.
64+
5. **Local inbox follow-up** — list each inbox entry incorporated into this report, its outcome, and any resulting recommendation ID or finding. Do not copy the whole inbox.
65+
66+
Pending and deferred recommendations retain their original priority and consume the five-item decision budget. When all five slots are pending, record new ordinary findings but do not add them to **Needs your decision**. Only security findings and release blockers may exceed this cap.
67+
68+
Never mark a recommendation as processed merely because it was reviewed. Carry it forward until the engineer explicitly applies, rejects, or defers it through `apply-triage-action`.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
interface:
2+
display_name: "Review Triage Queue"
3+
short_description: "Create a safe, local triage queue report"
4+
default_prompt: "Use $review-triage-queue to review the current triage intake."

‎CONTRIBUTING.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,8 @@ Skills live in `.agents/skills/`. Your agent's harness can discover and load the
8888
| Reviewing | `launch-openshell-gator` | Launch and supervise OpenShell gator agents for issue and PR monitoring |
8989
| Reviewing | `test-release-canary` | Dispatch and iterate on the Release Canary workflow that smoke-tests published artifacts |
9090
| Triage | `triage-issue` | Assess, classify, and route community-filed issues |
91+
| Triage | `review-triage-queue` | Create a local, read-only queue report from GitHub and Slack intake |
92+
| Triage | `apply-triage-action` | Apply, reject, or defer one explicitly selected triage recommendation |
9193
| Platform | `generate-sandbox-policy` | Generate YAML sandbox policies from requirements or API docs |
9294
| Platform | `helm-dev-environment` | Start and manage the local Kubernetes development environment |
9395
| Platform | `tui-development` | Development guide for the ratatui-based terminal UI |
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Triage-duty inbox
2+
3+
Capture follow-up ideas here during a triage period. This is a local working
4+
inbox, not an operational record. During a manual queue review, incorporate
5+
applicable entries into the dated report and mark them complete with that
6+
report's filename.
7+
8+
- [ ] Update vouch action to also close the Discussion once vouched.
9+
- [ ] Check whether the stale issue action is working as expected. It has been
10+
noted that the label is not removed if someone comments on the issue.
11+
- [x] Investigate why new issues are not created with the `state:triage-needed`
12+
label. — incorporated in `2026-08-24T081721Z.md`; the issue-triage workflow
13+
intentionally labels non-maintainer authors only.
14+
- [x] Decide how roadmap-labeled issues should appear in intake-gap reporting. — incorporated in `2026-08-19T144914Z.md`
15+
- [ ] Consider scheduling or notifications after the manual queue-review workflow is stable.

0 commit comments

Comments
 (0)