The sufficient action handler in post-triage.sh applies category-specific labels for feature (adds feature + triaged) but does not add a bug label when triage_summary.category is "bug". It only defers ready-to-code.
This means the bug label only appears if the agent happens to include it in label_actions, which is non-deterministic. The feature path is deterministic because the post-script handles it directly.
Observed in CI: functional-tests on PR #54 failed with required_labels pass rate 75% (3/4). Case 001-bug-url-encoding expects both ready-to-code and bug, but only got ready-to-code. The agent result had category: "bug" with no label_actions for bug.
Fix: Split bug out of the bug|documentation|performance case branch at line 318 and explicitly add_label "bug". Same pattern as the feature branch. Also update post-triage-test.sh: add a sufficient-bug-gets-bug-label test, add bug to the mock label list, and change the nonexistent-label test fixture from bug to a truly nonexistent label name.
The
sufficientaction handler inpost-triage.shapplies category-specific labels forfeature(addsfeature+triaged) but does not add abuglabel whentriage_summary.categoryis"bug". It only defersready-to-code.This means the
buglabel only appears if the agent happens to include it inlabel_actions, which is non-deterministic. Thefeaturepath is deterministic because the post-script handles it directly.Observed in CI: functional-tests on PR #54 failed with
required_labelspass rate 75% (3/4). Case001-bug-url-encodingexpects bothready-to-codeandbug, but only gotready-to-code. The agent result hadcategory: "bug"with nolabel_actionsforbug.Fix: Split
bugout of thebug|documentation|performancecase branch at line 318 and explicitlyadd_label "bug". Same pattern as thefeaturebranch. Also updatepost-triage-test.sh: add asufficient-bug-gets-bug-labeltest, addbugto the mock label list, and change the nonexistent-label test fixture frombugto a truly nonexistent label name.