Skip to content

factory: triage.yml still uses a broad contains for the triage verb, so a quoting prompt starts a second run #866

Closed

Description

@LSantha

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-18 still uses a broad contains for /oc triage. On an issue (PRs are excluded at triage.yml:16), an anchored /oc review//oc fix prompt quoting /oc triage will now start both opencode (required by tests: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

  1. A spurious Triage run costs a read-only agent plus a ## Triage comment on an issue that is already triaged - noise, and one more comment to interpret.
  2. 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.yml job if: - apply the same anchored-exemption shape as opencode.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 as tests/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.js stays 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.js or 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 triage behavior and both-workflow agreement
  • Full report: ## Triage comment 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

  1. added
    kind/chore
    area/build
    on Nov 7, 2026
  2. LSantha commented on Nov 7, 2026

    @LSantha
    OwnerAuthor

    /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.

  3. added
    kind/bug
    area/test
    and removed
    kind/chore
    on Nov 7, 2026
  4. LSantha commented on Nov 7, 2026

    @LSantha
    OwnerAuthor

    Triage

    • Area: area/build + area/test (.github/workflows/triage.yml and .github/scripts/tests/)
    • Kind: kind/bug (gate behavior defect; same class as factory: a /oc review prompt that quotes the approve verb is silently skipped by the trigger gate #862; kind/chore removed - this changes trigger behavior)
    • Repro: anchored /oc review or /oc fix quoting /oc triage starts both opencode and Triage; triage.yml:17-18 still uses broad contains while opencode.yml exempts anchored non-triage verbs
    • Blast radius: L2 package (workflow gate + testable predicate/tests; CI-only, no boot or runtime impact; a wrong gate silently stops or double-runs triage)
    • Expected scope: narrow triage.yml's job if: with the anchored exemption shape from opencode.yml; add a testable predicate helper mirroring .github/scripts/opencode-trigger.js plus triage-trigger.test.js; keep PR exclusion, session-link, and author gates unconditional; no OS code, no opencode.yml reroute
    • Test path: node --test .github/scripts/tests/*.test.js
    • Merge signal: human-review (kind/bug; pipeline trigger gate can silently disable or double-run triage, 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 triage behavior and both-workflow agreement on the same body
    • Suggested next: fix
    • Split proposal: none - focused (one workflow, one helper, one test file)
    • Labels applied: kind/bug added, area/test added, kind/chore removed (behavior defect, not a no-behavior refactor), area/build kept

    github run

  5. added
    agent/done
    on Nov 7, 2026
  6. LSantha commented on Nov 7, 2026

    @LSantha
    OwnerAuthor

    Triage

    • Area: area/build + area/test (.github/workflows/triage.yml, .github/scripts/ trigger predicate/tests)
    • Kind: kind/bug (trigger-gate behavior defect: spurious second Triage run; same class as factory: a /oc review prompt that quotes the approve verb is silently skipped by the trigger gate #862)
    • Repro: anchored /oc review or /oc fix quoting /oc triage in prose starts both opencode and Triage; triage.yml:17-18 still uses broad contains while opencode.yml:31-37 exempts anchored non-triage verbs
    • Blast radius: L2 package (one workflow gate + predicate/tests; CI-only, no OS boot or runtime impact; a wrong gate silently stops or double-runs triage)
    • Expected scope: narrow triage.yml job if: with the anchored-exemption shape from opencode.yml; add a testable isTriageTrigger predicate (new triage-trigger.js or reuse opencode-trigger.js) plus triage-trigger.test.js with workflow-wiring assertions; keep PR exclusion, session-link, and author gates unconditional; no OS code, no opencode.yml behavior change
    • Test path: node --test .github/scripts/tests/*.test.js
    • Merge signal: human-review (kind/bug; pipeline trigger gate can silently disable or double-run triage, 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 triage behavior and both-workflow agreement on the same body
    • Suggested next: fix
    • Split proposal: none - focused (one workflow, one helper, one test file)
    • Labels applied: kind/bug, area/build, area/test (audit clean; re-applied, no removals)

    github run

  7. LSantha commented on Nov 7, 2026

    @LSantha
    OwnerAuthor

    Triage

    • Area: area/build + area/test (.github/workflows/triage.yml gate, .github/scripts/ predicate, .github/scripts/tests/)
    • Kind: kind/bug (trigger-gate behavior defect; same class as factory: a /oc review prompt that quotes the approve verb is silently skipped by the trigger gate #862; not a refactor)
    • Repro: post an anchored /oc review or /oc fix comment on an issue that quotes /oc triage in prose; both opencode (intended) and Triage (spurious) start, because triage.yml:17-18 still uses broad contains while opencode.yml:31-37 exempts anchored non-triage verbs
    • Blast radius: L2 package (workflow gate + testable predicate + tests; CI-only, no OS boot or runtime impact; a wrong gate silently stops or double-runs triage)
    • Expected scope: narrow triage.yml's job if: (lines 15-22) with the anchored-exemption shape from opencode.yml; add a testable isTriageTrigger helper (new .github/scripts/triage-trigger.js or extend opencode-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, no opencode.yml reroute
    • Test path: node --test .github/scripts/tests/*.test.js
    • Merge signal: human-review (kind/bug; trigger gate can silently disable or double-run triage; 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 triage behavior and both-workflow agreement on the same body
    • Suggested next: fix
    • Split proposal: none - focused (one workflow, one helper, one test file)
    • Labels applied: kind/bug, area/build, area/test verified (no changes needed; kind/triage absent; agent/done untouched)

    github run

  8. LSantha commented on Nov 7, 2026

    @LSantha
    OwnerAuthor

    /oc Please proceed with this task.

  9. added
    agent/failed
    and removed
    agent/done
    on Nov 7, 2026
  10. LSantha commented on Nov 7, 2026

    @LSantha
    OwnerAuthor

    /oc Please proceed with this task.

  11. LSantha commented on Nov 7, 2026

    @LSantha
    OwnerAuthor

    /oc Please proceed with this task.

  12. LSantha commented on Nov 7, 2026

    @LSantha
    OwnerAuthor

    /oc Please proceed with this task.

  13. LSantha commented on Nov 7, 2026

    @LSantha
    OwnerAuthor

    /oc Please proceed with this task.

  14. LSantha commented on Nov 20, 2026

    @LSantha
    OwnerAuthor

    /run

  15. removed
    agent/failed
    on Nov 20, 2026
  16. LSantha commented on Nov 20, 2026

    @LSantha
    OwnerAuthor

    /run

  17. LSantha commented on Nov 20, 2026

    @LSantha
    OwnerAuthor

    /oc Please proceed with this task.

  18. LSantha commented on Nov 20, 2026

    @LSantha
    OwnerAuthor

    Created PR #980

    github run

  19. added
    agent/done
    on Nov 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    agent/donearea/buildarea/testkind/bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions