Repository navigation
Description
factory: triage.yml still uses a broad contains for the triage verb, so an anchored prompt quoting it starts a second Triage run
Summary
opencode.yml's approved-verb exclusions were narrowed for anchored non-approve/non-triage triggers (PR #864, ticket #862). triage.yml:17-18 still uses the broad contains form, so an anchored /oc review or /oc fix prompt that quotes /oc triage in prose now starts two runs: opencode (correct, required by the new gate's tests) and Triage (spurious, read-only).
Evidence
deepseek's second-opinion review of PR #864 (verified against the merged workflow):
triage.yml:17-18still uses a broad contains for/oc triage. On an issue (PRs are excluded attriage.yml:16), an anchored/oc review//oc fixprompt quoting/oc triagewill now start both opencode (required bytests:24) and Triage. The spurious Triage match pre-exists this PR; the double run is a consequence of the intended over-run.
Real-world likelihood: my own shadow prompts quoted the excluded verbs twice in one afternoon (ticket #862), and a triage-related review prompt is natural on triage tickets.
Why it matters
- A spurious Triage run costs a read-only agent plus a
## Triagecomment on an issue that is already triaged - noise, and one more comment to interpret. - The asymmetry is now confusing to reason about: the same phrase is excluded for opencode but not for triage.
What to look at
.github/workflows/triage.ymljobif:- apply the same anchored-exemption shape asopencode.yml(or reuse the predicate from.github/scripts/opencode-trigger.js).- Mirror the gate's tests: an anchored non-triage verb quoting the triage verb in prose must not start Triage; a genuine
/oc triage ...still must.
Acceptance criteria
triage.yml's gate is covered by tests of the same shape astests/opencode-trigger.test.js, and the two workflows cannot disagree about the same body.- A genuine triage command still starts Triage; the session-link and author gates stay unconditional.
node --test .github/scripts/tests/*.test.jsstays green.
Triage Addendum (auto, 2026-11-07)
- Area / Kind: area/build + area/test / kind/bug
- Blast radius: L2 package (.github/workflows/triage.yml + trigger predicate/tests; CI-only, no OS boot or runtime impact; a wrong gate silently stops or double-runs triage)
- Expected scope: triage.yml job
if:anchored exemption mirroring opencode.yml; testable predicate helper (triage-trigger.jsor the opencode-trigger predicate) +.github/scripts/tests/triage-trigger.test.js; keep PR exclusion, session-link, and author gates unconditional; no OS code - Test path:
node --test .github/scripts/tests/*.test.js - Merge signal: human-review (kind/bug; pipeline trigger gate, factory: a /oc review prompt that quotes the approve verb is silently skipped by the trigger gate #862 precedent)
- Gaps: none blocking; tests must pin embedded
/oc triagebehavior and both-workflow agreement - Full report:
## Triagecomment below.
✅ Ticket Runner Status
| Field | Value |
|---|---|
| Phase | DONE |
| Turn | 0/7 |
| Retries | 0/3 |
| PR | #980 |
| Review in progress | no |
| Started | 2026-11-20T19:42:40.282Z |
Activity
LSantha commentedon Nov 7, 2026
/oc triage issue #866
Triage run ONLY. Load the jnode-triage-issue skill and obey it. Output is exactly one ## Triage comment plus kind/area label edits. FORBIDDEN in this run: git checkout -b, git push, gh pr create, any branch, any PR.
LSantha commentedon Nov 7, 2026
Triage
.github/workflows/triage.ymland.github/scripts/tests/)kind/choreremoved - this changes trigger behavior)/oc reviewor/oc fixquoting/oc triagestarts both opencode and Triage;triage.yml:17-18still uses broadcontainswhileopencode.ymlexempts anchored non-triage verbstriage.yml's jobif:with the anchored exemption shape fromopencode.yml; add a testable predicate helper mirroring.github/scripts/opencode-trigger.jsplustriage-trigger.test.js; keep PR exclusion, session-link, and author gates unconditional; no OS code, noopencode.ymlreroutenode --test .github/scripts/tests/*.test.js/oc triagebehavior and both-workflow agreement on the same bodygithub run
LSantha commentedon Nov 7, 2026
Triage
.github/workflows/triage.yml,.github/scripts/trigger predicate/tests)/oc reviewor/oc fixquoting/oc triagein prose starts both opencode and Triage;triage.yml:17-18still uses broadcontainswhileopencode.yml:31-37exempts anchored non-triage verbstriage.ymljobif:with the anchored-exemption shape fromopencode.yml; add a testableisTriageTriggerpredicate (newtriage-trigger.jsor reuseopencode-trigger.js) plustriage-trigger.test.jswith workflow-wiring assertions; keep PR exclusion, session-link, and author gates unconditional; no OS code, noopencode.ymlbehavior changenode --test .github/scripts/tests/*.test.js/oc triagebehavior and both-workflow agreement on the same bodygithub run
LSantha commentedon Nov 7, 2026
Triage
.github/workflows/triage.ymlgate,.github/scripts/predicate,.github/scripts/tests/)/oc reviewor/oc fixcomment on an issue that quotes/oc triagein prose; both opencode (intended) and Triage (spurious) start, becausetriage.yml:17-18still uses broadcontainswhileopencode.yml:31-37exempts anchored non-triage verbstriage.yml's jobif:(lines 15-22) with the anchored-exemption shape fromopencode.yml; add a testableisTriageTriggerhelper (new.github/scripts/triage-trigger.jsor extendopencode-trigger.js) plus.github/scripts/tests/triage-trigger.test.js; keep PR exclusion,opencode.ai/s/session-link, and author-association gates unconditional. No-go: OS code, noopencode.ymlreroutenode --test .github/scripts/tests/*.test.js/oc triagebehavior and both-workflow agreement on the same bodykind/triageabsent;agent/doneuntouched)github run
LSantha commentedon Nov 7, 2026
/oc Please proceed with this task.
LSantha commentedon Nov 7, 2026
/oc Please proceed with this task.
LSantha commentedon Nov 7, 2026
/oc Please proceed with this task.
LSantha commentedon Nov 7, 2026
/oc Please proceed with this task.
LSantha commentedon Nov 7, 2026
/oc Please proceed with this task.
LSantha commentedon Nov 20, 2026
/run
LSantha commentedon Nov 20, 2026
/run
LSantha commentedon Nov 20, 2026
/oc Please proceed with this task.
LSantha commentedon Nov 20, 2026
Created PR #980
github run