Skip to content

Commit d20cf36

Browse files
feat(review): classify unrecoverable UX bugs as P0 (#387)
* feat(review): classify unrecoverable UX bugs as P0 * fix(schema): accept UX impact label justifications * fix(dashboard): route UX impact labels * docs(dashboard): document UX routing group * fix(review): tighten UX release-blocker threshold --------- Co-authored-by: Eva <[email protected]> Co-authored-by: Peter Steinberger <[email protected]>
1 parent a397ae0 commit d20cf36

8 files changed

Lines changed: 133 additions & 10 deletions

‎dashboard/triage-routing-groups.ts‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@ export const TRIAGE_ROUTING_GROUPS: TriageRoutingGroup[] = [
3030
title: "Security",
3131
labels: ["impact:security"],
3232
},
33+
{
34+
id: "user-experience",
35+
title: "User experience",
36+
labels: ["impact:ux-release-blocker", "impact:ux-friction"],
37+
},
3338
{
3439
id: "other-impact",
3540
title: "Other impact",

‎docs/triage-dashboard.md‎

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -67,15 +67,16 @@ changing GitHub state.
6767

6868
Impact groups are a read-only projection of existing `impact:*` labels:
6969

70-
| Group | Labels |
71-
| ---------------- | ----------------------------------------- |
72-
| Message delivery | `impact:message-loss` |
73-
| Auth providers | `impact:auth-provider` |
74-
| State and data | `impact:session-state`, `impact:data-loss` |
75-
| Reliability | `impact:crash-loop` |
76-
| Security | `impact:security` |
77-
| Other impact | `impact:other` |
78-
| Unclassified | no recognized impact label |
70+
| Group | Labels |
71+
| ---------------- | ------------------------------------------------- |
72+
| Message delivery | `impact:message-loss` |
73+
| Auth providers | `impact:auth-provider` |
74+
| State and data | `impact:session-state`, `impact:data-loss` |
75+
| Reliability | `impact:crash-loop` |
76+
| Security | `impact:security` |
77+
| User experience | `impact:ux-release-blocker`, `impact:ux-friction` |
78+
| Other impact | `impact:other` |
79+
| Unclassified | no recognized impact label |
7980

8081
An issue may appear in multiple groups. The dashboard does not pick a primary
8182
group, create labels, assign maintainers, or route work. Group filters operate

‎prompts/review-item.md‎

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,23 @@ and is not limited to PR patch defects. Use the current GitHub label rubric:
138138
`P2`: Normal priority bug or improvement with limited blast radius.
139139
`P3`: Low-risk cleanup, docs, polish, ergonomics, or speculative feature.
140140
Use `none` only when ClawSweeper should intentionally leave priority labels absent.
141+
142+
Apply this UX override before falling back to ordinary technical severity:
143+
144+
| User-experience evidence | Required classification |
145+
| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------- |
146+
| A non-technical first-time or community user is blocked in website, download, install, update, setup, onboarding, auth/provider setup, first useful run, or in-product recovery, with no in-product path forward. | Set `triagePriority: "P0"` and include `impact:ux-release-blocker`. |
147+
| Completing or recovering that blocked path requires terminal commands, config edits, log inspection, manual file edits, internal knowledge, or maintainer/support intervention. | Set `triagePriority: "P0"` and include `impact:ux-release-blocker`. |
148+
| The user can proceed only through docs, support, guessing, or fragile workaround steps, but progress is not fully blocked. | Use `P1` or `P2` and include `impact:ux-friction`. |
149+
| Cosmetic confusion or a fully recoverable in-product issue that does not block progress. | Use normal `P2` or `P3`; do not add `impact:ux-release-blocker`. |
150+
151+
Do not promote ordinary advanced configuration or optional power-user workflows
152+
solely because they use a terminal or config file. The override requires a
153+
blocked user-facing path. When recovery from that blocker currently requires a
154+
technical path, make `bestSolution` or `workReason` recommend a less-technical
155+
product surface such as a Doctor button, Fix button, setup wizard, inline
156+
recovery, or visible command launcher.
157+
141158
Do not raise `triagePriority` solely because CI or status checks are failing,
142159
pending, missing, flaky, or require routine maintainer follow-up. Treat check
143160
state as priority evidence only when the item itself reports a user-facing
@@ -154,6 +171,8 @@ the issue, and keep this separate from `triagePriority` and
154171
`impact:message-loss`: This issue is about lost, duplicated, misrouted, or suppressed channel messages.
155172
`impact:session-state`: This issue is about session, memory, transcript, context, or agent state drift.
156173
`impact:auth-provider`: This issue is about auth, provider routing, model choice, or SecretRef resolution.
174+
`impact:ux-release-blocker`: A non-technical user is blocked without terminal, logs, config, or support.
175+
`impact:ux-friction`: User-facing flow adds avoidable confusion or support burden without fully blocking progress.
157176
`impact:other`: This issue has meaningful maintainer-visible impact outside the owned taxonomy.
158177
Use `impact:other` only when the issue has a concrete maintainer-visible impact
159178
but none of the specific owned impact labels fit. Prefer a specific impact label
@@ -164,6 +183,9 @@ labels are searchable GitHub labels only; they describe what the item is about,
164183
not the risk of merging a PR. They do not close, merge, block, or replace
165184
review findings.
166185

186+
Prefer `impact:ux-release-blocker` over `impact:ux-friction` when the same
187+
evidence supports both.
188+
167189
Set `maturityLabels` for issues only; use `[]` for PRs or unsupported matches.
168190
`maturity:stable`: Issue affects a taxonomy feature currently scored M4/M5.
169191
First run `node "$CLAWSWEEPER_PROOF_SCRATCH_DIR/maturity-stable-shortlist.mjs"`

‎schema/clawsweeper-decision.schema.json‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,10 +187,12 @@
187187
"impact:message-loss",
188188
"impact:session-state",
189189
"impact:auth-provider",
190+
"impact:ux-release-blocker",
191+
"impact:ux-friction",
190192
"impact:other"
191193
]
192194
},
193-
"description": "ClawSweeper-owned GitHub impact labels for maintainers to find the affected problem class on issues. Use [] for pull requests and when no meaningful owned impact signal applies. These describe what the issue is about, not PR merge risk. Use at most 3; impact:other counts toward this max and means meaningful maintainer-visible impact exists but no specific owned impact label fits. Prefer a specific impact label over impact:other. impact:data-loss: This issue is about lost, corrupted, or silently dropped user/session/config data. impact:security: This issue is about security boundaries, credentials, authz, sandboxing, or sensitive data. impact:crash-loop: This issue is about crashes, hangs, restart loops, or process-level availability. impact:message-loss: This issue is about lost, duplicated, misrouted, or suppressed channel messages. impact:session-state: This issue is about session, memory, transcript, context, or agent state drift. impact:auth-provider: This issue is about auth, provider routing, model choice, or SecretRef resolution. impact:other: This issue has meaningful maintainer-visible impact outside the owned taxonomy."
195+
"description": "ClawSweeper-owned GitHub impact labels for maintainers to find the affected problem class on issues. Use [] for pull requests and when no meaningful owned impact signal applies. These describe what the issue is about, not PR merge risk. Use at most 3; impact:other counts toward this max and means meaningful maintainer-visible impact exists but no specific owned impact label fits. Prefer a specific impact label over impact:other, and prefer impact:ux-release-blocker over impact:ux-friction when the same evidence supports both. UX override: a non-technical first-time or community user blocked in website/download/install/update/setup/onboarding/auth/provider setup/first useful run/in-product recovery with no in-product path forward requires P0 plus impact:ux-release-blocker. The same applies when completing or recovering that blocked path requires terminal commands, config edits, log inspection, manual file edits, internal knowledge, or maintainer/support intervention. Recoverable docs/support/guessing paths use P1/P2 plus impact:ux-friction. Do not promote ordinary advanced configuration or optional power-user workflows solely because they use a terminal or config file. Technical recovery from a blocker should recommend a Doctor button, Fix button, setup wizard, inline recovery, or visible command launcher in bestSolution/workReason. impact:data-loss: This issue is about lost, corrupted, or silently dropped user/session/config data. impact:security: This issue is about security boundaries, credentials, authz, sandboxing, or sensitive data. impact:crash-loop: This issue is about crashes, hangs, restart loops, or process-level availability. impact:message-loss: This issue is about lost, duplicated, misrouted, or suppressed channel messages. impact:session-state: This issue is about session, memory, transcript, context, or agent state drift. impact:auth-provider: This issue is about auth, provider routing, model choice, or SecretRef resolution. impact:ux-release-blocker: A non-technical user is blocked without terminal, logs, config, or support. impact:ux-friction: User-facing flow adds avoidable confusion or support burden without fully blocking progress. impact:other: This issue has meaningful maintainer-visible impact outside the owned taxonomy."
194196
},
195197
"mergeRiskLabels": {
196198
"type": "array",
@@ -294,6 +296,8 @@
294296
"impact:message-loss",
295297
"impact:session-state",
296298
"impact:auth-provider",
299+
"impact:ux-release-blocker",
300+
"impact:ux-friction",
297301
"impact:other",
298302
"maturity:stable",
299303
"merge-risk: 🚨 compatibility",

‎src/clawsweeper.ts‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,8 @@ type ImpactLabelName =
131131
| "impact:message-loss"
132132
| "impact:session-state"
133133
| "impact:auth-provider"
134+
| "impact:ux-release-blocker"
135+
| "impact:ux-friction"
134136
| "impact:other";
135137
type MergeRiskLabelName =
136138
| "merge-risk: 🚨 compatibility"
@@ -1329,6 +1331,17 @@ const IMPACT_LABELS = [
13291331
description:
13301332
"This issue is about auth, provider routing, model choice, or SecretRef resolution.",
13311333
},
1334+
{
1335+
name: "impact:ux-release-blocker",
1336+
color: "B60205",
1337+
description: "A non-technical user is blocked without terminal, logs, config, or support.",
1338+
},
1339+
{
1340+
name: "impact:ux-friction",
1341+
color: "FBCA04",
1342+
description:
1343+
"User-facing flow adds avoidable confusion or support burden without fully blocking progress.",
1344+
},
13321345
{
13331346
name: "impact:other",
13341347
color: "C5DEF5",

‎test/dashboard-worker.test.ts‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,14 @@ test("triage routing groups classify impact labels without forcing one primary g
3333
triageRoutingGroupsForLabels(["impact:unknown"]).map((group) => group.id),
3434
["unclassified"],
3535
);
36+
assert.deepEqual(
37+
triageRoutingGroupsForLabels(["impact:ux-release-blocker"]).map((group) => group.id),
38+
["user-experience"],
39+
);
40+
assert.deepEqual(
41+
triageRoutingGroupsForLabels([{ name: "impact:ux-friction" }]).map((group) => group.id),
42+
["user-experience"],
43+
);
3644
assert.equal(TRIAGE_ROUTING_GROUPS.at(-1)?.id, "unclassified");
3745
});
3846

‎test/decision-parser.test.ts‎

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,24 @@ test("decision parser enforces required schema-shaped evidence", () => {
268268
).impactLabels,
269269
["impact:other"],
270270
);
271+
for (const [triagePriority, impactLabel, reason] of [
272+
["P0", "impact:ux-release-blocker", "Setup is blocked without an in-product recovery path."],
273+
["P1", "impact:ux-friction", "Setup is recoverable but creates avoidable support burden."],
274+
] as const) {
275+
assert.deepEqual(
276+
parseDecision(
277+
closeDecision({
278+
triagePriority,
279+
impactLabels: [impactLabel],
280+
labelJustifications: [
281+
{ label: triagePriority, reason: "The issue has user-facing setup impact." },
282+
{ label: impactLabel, reason },
283+
],
284+
}),
285+
).impactLabels,
286+
[impactLabel],
287+
);
288+
}
271289
assert.deepEqual(
272290
parseDecision(
273291
closeDecision({

‎test/pr-label-policy.test.ts‎

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -468,6 +468,17 @@ test("ClawSweeper impact label scheme exposes owned impact labels", () => {
468468
description:
469469
"This issue is about auth, provider routing, model choice, or SecretRef resolution.",
470470
},
471+
{
472+
name: "impact:ux-release-blocker",
473+
color: "B60205",
474+
description: "A non-technical user is blocked without terminal, logs, config, or support.",
475+
},
476+
{
477+
name: "impact:ux-friction",
478+
color: "FBCA04",
479+
description:
480+
"User-facing flow adds avoidable confusion or support burden without fully blocking progress.",
481+
},
471482
{
472483
name: "impact:other",
473484
color: "C5DEF5",
@@ -517,6 +528,47 @@ test("ClawSweeper impact label schema avoids unsupported response-format keyword
517528
assert.equal(schema.properties?.impactLabels?.uniqueItems, undefined);
518529
});
519530

531+
test("review prompt and schema define UX release-blocker override", () => {
532+
const schema = JSON.parse(reviewDecisionSchemaText()) as {
533+
properties?: {
534+
impactLabels?: {
535+
description?: string;
536+
items?: {
537+
enum?: string[];
538+
};
539+
};
540+
labelJustifications?: {
541+
items?: {
542+
properties?: {
543+
label?: {
544+
enum?: string[];
545+
};
546+
};
547+
};
548+
};
549+
};
550+
};
551+
const schemaDescription = schema.properties?.impactLabels?.description ?? "";
552+
const impactLabelEnum = schema.properties?.impactLabels?.items?.enum ?? [];
553+
const justificationLabelEnum =
554+
schema.properties?.labelJustifications?.items?.properties?.label?.enum ?? [];
555+
const prompt = reviewPromptTemplate();
556+
557+
assert.match(prompt, /Apply this UX override before falling back to ordinary technical severity/);
558+
assert.match(prompt, /non-technical first-time or community user/);
559+
assert.match(prompt, /terminal commands, config edits, log inspection, manual file edits/);
560+
assert.match(prompt, /override requires a\s+blocked user-facing path/);
561+
assert.match(prompt, /Set `triagePriority: "P0"` and include `impact:ux-release-blocker`/);
562+
assert.match(prompt, /Doctor button,\s+Fix button,\s+setup wizard,\s+inline\s+recovery/);
563+
assert.match(schemaDescription, /UX override:/);
564+
assert.match(schemaDescription, /non-technical first-time or community user/);
565+
assert.match(schemaDescription, /Doctor button, Fix button, setup wizard, inline recovery/);
566+
assert.ok(impactLabelEnum.includes("impact:ux-release-blocker"));
567+
assert.ok(impactLabelEnum.includes("impact:ux-friction"));
568+
assert.ok(justificationLabelEnum.includes("impact:ux-release-blocker"));
569+
assert.ok(justificationLabelEnum.includes("impact:ux-friction"));
570+
});
571+
520572
test("ClawSweeper merge-risk label scheme exposes PR-only merge warning labels", () => {
521573
assert.deepEqual(mergeRiskLabelSchemeForTest(), [
522574
{

0 commit comments

Comments
 (0)