Skip to content

scoring: add WHEN: trigger pattern recognition #72

Description

@spboyer

Problem

The triggerPatterns in internal/scoring/scoring.go only recognizes USE FOR:, triggers:, etc. It does not recognize WHEN: — which is the recommended trigger format in sensei for cross-model compatibility.

Expected Behavior

  • Add "when:" to triggerPatterns in internal/scoring/scoring.go
  • WHEN: should score at least as high as USE FOR: (sensei scores it higher)
  • Update scoring tests to cover WHEN: triggers

References

  • spboyer/sensei references/scoring.md — "WHEN: preferred (scores higher)"
  • internal/scoring/scoring.go:76-81 — current trigger patterns

Acceptance Criteria

  • WHEN: recognized as a trigger pattern
  • Existing tests pass
  • New test cases for WHEN: triggers added

Metadata

Metadata

Assignees

No one assigned

    Labels

    go:needs-researchNeeds investigationsensei-parityParity with spboyer/sensei scoringsquadSquad triage inbox — Lead will assign to a membersquad:basherAssigned to Basher (Tester / QA)squad:linusAssigned to Linus (Backend Developer)

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions