|
| 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`. |
0 commit comments