You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@magpie.apache.org by "sharpca (via GitHub)" <gi...@apache.org> on 2026/10/21 10:35:53 UTC

[PR] fix(backlog-stats): stop listing STALE-CANDIDATE as a triage class [magpie]

sharpca opened a new pull request, #1753:
URL: https://github.com/apache/magpie/pull/1753

   ## Summary
   
   - Step 2's class table listed `STALE-CANDIDATE` as one of five triage classes
     while the same row called staleness "orthogonal", so the skill contradicted
     itself. Sonnet followed the table and returned `triage_class:
     STALE-CANDIDATE` for the stale fixture; Opus and Fable followed the
     "orthogonal" half and returned `UNTRIAGED`. The fixture expects `UNTRIAGED`,
     so Sonnet failed `step-2-classify/case-4-stale-candidate` on 10 of 10 runs.
   - Staleness is a flag, not a class. The table now has four rows, and a
     paragraph under it states that an issue keeps its real class while
     `is_stale_candidate` carries staleness. Step 3's `stale_candidate` bucket
     reads the boolean instead of naming a class.
   - The step-2 eval output spec drops `STALE-CANDIDATE` from the allowed
     `triage_class` values and says the rule explicitly, so the spec no longer
     re-introduces the contradiction the skill just dropped.
   
   ## Type of change
   
   - [x] Skill change — prose only, no new fixture needed (see the test plan)
   - [x] Documentation (`docs/`, `README.md`, `CONTRIBUTING.md`)
   
   ## Test plan
   
   - [x] `markdownlint-cli2` on both changed files: 0 issues
   - [x] `measured_tokens` re-stamped with the repo's own counter
         (`4984` → `5055`, verified `stamp == measured` by re-running the tool's
         `measure()` against the stamped file)
   - [x] `surface_hash` unchanged, and checked rather than assumed: the
         fingerprint covers `requires_config` plus step/golden-rule headings, and
         `git diff` contains no heading line (`grep -E '^[+-]#{1,6} '` is empty)
   - [x] No fixture changes, because none are needed:
         `case-4-stale-candidate/expected.json` already asserts
         `UNTRIAGED` + `is_stale_candidate: true`. This PR makes the skill agree
         with the fixture it was already graded against; it does not change what
         the correct answer is.
   - [ ] Full eval suite not run locally — the runner needs a model CLI and
         credentials. The reproduction in the issue is the harness for this.
   
   ## RFC-AI-0004 compliance
   
   - [x] **Vendor neutrality** — the new prose says "an untriaged issue last
         updated 216 days ago", taken from the fixture, and names no model as the
         expected behaviour. The issue's model comparison stays in the issue.
   
   ## Linked issues
   
   Closes #1678
   
   ## Notes for reviewers
   
   - The 216-day example in the new paragraph is the fixture's own numbers, so the
     prose and the graded case now describe the same issue.
   - I left Step 3's pressure score (`stale-candidate → 2 pts each (regardless of
     triage status)`) untouched: it already reads staleness as orthogonal to the
     class, which is what this PR makes the rest of the skill say.
   - `golden-rule-details.md` and `fetch-queries.md` carry no class wording, so the
     contradiction existed in exactly the two places changed here.
   
   ## Generative AI disclosure
   
   This change was authored with an AI coding agent (WorkBuddy AI, DeepSeek-V4.1-Flash)
   under human review. The commit carries the `Generated-by:` trailer; the
   contributor has reviewed the diff and owns the change.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@magpie.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] fix(backlog-stats): stop listing STALE-CANDIDATE as a triage class [magpie]

Posted by "potiuk (via GitHub)" <gi...@apache.org>.
potiuk merged PR #1753:
URL: https://github.com/apache/magpie/pull/1753


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@magpie.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] fix(backlog-stats): stop listing STALE-CANDIDATE as a triage class [magpie]

Posted by "Kaap10 (via GitHub)" <gi...@apache.org>.
Kaap10 commented on code in PR #1753:
URL: https://github.com/apache/magpie/pull/1753#discussion_r4340030407


##########
plugins/magpie-issue/skills/backlog-stats/SKILL.md:
##########
@@ -207,9 +207,16 @@ For each open issue, determine exactly one triage class:
 | `UNTRIAGED` | No comment from a collaborator (`OWNER`, `MEMBER`, `COLLABORATOR`) that contains a triage-proposal marker (the string `Triage proposal` for GitHub Issues, or the project's configured marker from `issue-tracker-config.md`). |
 | `TRIAGED` | A collaborator triage-proposal comment exists. Issue has no linked open PR and no assignee. |
 | `IN-PROGRESS` | A collaborator triage-proposal comment exists AND the issue has an assignee or a linked open PR. |
-| `STALE-CANDIDATE` | `days_since_updated >= warn_days` regardless of triage status. When both `IN-PROGRESS` and `STALE-CANDIDATE` apply, the issue is counted in both (staleness is orthogonal). |
 | `SKIP-SECURITY` | Title or first comment contains security signals (see Golden rule 7). Excluded from all aggregate counts. |
 
+Staleness is **not** a class. It is the separate `is_stale_candidate`
+boolean (`days_since_updated >= warn_days`), so an issue keeps its real
+class and can be stale on top of it. An untriaged issue last updated 216

Review Comment:
   This paragraph is the exact missing contract piece. Grounding it with the 216-day / 90 warn_days example (which directly matches `case-4-stale-candidate`) gives Sonnet unambiguous context to emit `triage_class: "UNTRIAGED"` and `is_stale_candidate: true`.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@magpie.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] fix(backlog-stats): stop listing STALE-CANDIDATE as a triage class [magpie]

Posted by "Kaap10 (via GitHub)" <gi...@apache.org>.
Kaap10 commented on code in PR #1753:
URL: https://github.com/apache/magpie/pull/1753#discussion_r4340053481


##########
tools/skill-evals/evals/issue-backlog-stats/step-2-classify/fixtures/output-spec.md:
##########
@@ -7,16 +7,17 @@ Return ONLY valid JSON with this structure:
 
 ```json
 {
-  "triage_class": "UNTRIAGED | TRIAGED | IN-PROGRESS | STALE-CANDIDATE | SKIP-SECURITY",
+  "triage_class": "UNTRIAGED | TRIAGED | IN-PROGRESS | SKIP-SECURITY",

Review Comment:
   Dropping `STALE-CANDIDATE` from the JSON schema enum ensures the LLM output validator and schema strictly agree with the updated 4-class definition.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@magpie.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org