diff --git a/changelog.d/added-18721-run-stats-failure-scenarios.md b/changelog.d/added-18721-run-stats-failure-scenarios.md
new file mode 100644
index 0000000000..fd9bb5752d
--- /dev/null
+++ b/changelog.d/added-18721-run-stats-failure-scenarios.md
@@ -0,0 +1 @@
+- **Contributor run stats by model now say why runs failed.** Each model row of `GET /api/contribute/run-stats/models` (and the `models` array of `GET /api/contribute/run-stats`) gains `abandoned`, `scenarios` (the same scenario counts run-stats already gives per backend, summing to `runs`) and `failure_kinds` (`environment`, `task`, `unspecified`, summing to the failed runs). A high failure rate can now be read as "mostly the contributors' environments" or "mostly the work". `failure_rate` and the other existing fields are unchanged. On the contributor wall, hovering a post's "failed" model-evidence figure shows the split, with the labels the run history uses. (#18721)
diff --git a/dashboard/openapi.json b/dashboard/openapi.json
index 14373a6618..9e1cf22101 100644
--- a/dashboard/openapi.json
+++ b/dashboard/openapi.json
@@ -37667,7 +37667,7 @@
"Contribute"
],
"summary": "Contributor run stats by model",
- "description": "Returns per-model run counts, verified-PR share, and failure rate for contributor-wall evidence.",
+ "description": "Returns per-model run counts, verified-PR share, and failure rate for contributor-wall evidence, plus why runs ended (#18721): `abandoned` (count), `scenarios` (scenario -> count, the same keys as /api/contribute/run-stats backends[].scenarios, summing to runs) and `failure_kinds` ({environment, task, unspecified}, summing to the failed runs behind failure_rate).",
"responses": {
"200": {
"description": "OK"
diff --git a/src/docs/api-reference/contribute.md b/src/docs/api-reference/contribute.md
index 05fca9515e..2de912ceeb 100644
--- a/src/docs/api-reference/contribute.md
+++ b/src/docs/api-reference/contribute.md
@@ -21,7 +21,7 @@ Part of the [Dashboard REST API reference](../api-reference.md); see that page f
| `GET` | `/api/contribute/limits` | Public | Contribute Limits | `pkg/dashboard/api_contribute.go:275` |
| `GET` | `/api/contribute/metrics` | Public | Contribute Metrics | `pkg/dashboard/api_contribute.go:281` |
| `GET` | `/api/contribute/me` | Public path; caller identity resolved server-side (401 anonymous; a signed-in caller with no profile on this hive gets 200 with `has_profile:false` and no counters, [#12111](https://github.com/hivecommons/hive/issues/12111)) | The caller's OWN contribution stats — issues worked (24h and all-time), completions that produced a verified PR (24h and all-time, [#7894](https://github.com/hivecommons/hive/issues/7894)), and failures. No username parameter, so it only ever answers for its caller ([#6543](https://github.com/hivecommons/hive/issues/6543)) | `pkg/dashboard/api_contribute.go:291` |
-| `GET` | `/api/contribute/run-stats/models` | Public | Per-model run evidence for the contributor wall: runs, verified-PR share, and failure rate over the selected window. | `pkg/dashboard/api_contribute.go` |
+| `GET` | `/api/contribute/run-stats/models` | Public | Per-model run evidence for the contributor wall: runs, verified-PR share, and failure rate over the selected window, plus why runs ended ([#18721](https://github.com/hivecommons/hive/issues/18721)): `abandoned`, `scenarios` (same keys as `/api/contribute/run-stats` `backends[].scenarios`, summing to `runs`) and `failure_kinds` (`environment`/`task`/`unspecified`, summing to the failed runs). `/api/contribute/run-stats` returns the same rows as `models`. | `pkg/dashboard/api_contribute.go` |
| `GET` | `/api/contribute/wall` | Public | Contributor wall posts when the hive-wide wall switch is enabled; anonymous readers see visible posts, authors can still see their own hidden posts. | `pkg/dashboard/api_contribute.go` |
| `POST` | `/api/contribute/wall` | Signed-in contributor | Create a 500-character plain-text wall post or one-level reply, with optional `model`, `backend`, and `repo` tags. Returns 401 anonymous, 403 when disabled/revoked/muted, and 429 when rate-limited. | `pkg/dashboard/api_contribute.go` |
| `DELETE` | `/api/contribute/wall/{id}` | Post author | Author deletes their own wall post; action is audit logged. | `pkg/dashboard/api_contribute.go` |
diff --git a/src/docs/backend-smoke.md b/src/docs/backend-smoke.md
index 8de48550a8..29c421de55 100644
--- a/src/docs/backend-smoke.md
+++ b/src/docs/backend-smoke.md
@@ -137,6 +137,16 @@ counts, the chrome-idle share, and duration p50/p95. The intended use is a
ratchet: watch `idle_complete` share and `env_failure` counts per backend
trend toward zero, and treat a jump as a regression to root-cause.
+The same response's `models` array (also served alone by
+`GET /api/contribute/run-stats/models`) gives the per-model view: `runs`,
+`verified_pr_share` and `failure_rate` (failed ÷ runs; abandonments are not
+failures), plus, since #18721, `abandoned`, `scenarios` (the keys above plus
+`abandoned_handback`, `abandoned_disconnect` and `abandoned_other`, summing to
+`runs`) and `failure_kinds` (`environment`, `task`, `unspecified`, summing to
+the failed runs). That is the split that tells "this model's contributors have
+broken environments" from "this model gets the work wrong". The contributor
+wall shows it as the tooltip on a post's "failed" model-evidence figure.
+
This is DECLARE-only telemetry, per the boundary
`src/pkg/dashboard/contribute_protocol.go` documents: nothing routes,
cooldowns, or gates on any of it, and a telemetry write failure never fails a
diff --git a/src/pkg/dashboard/contribute_landing.go b/src/pkg/dashboard/contribute_landing.go
index 035b9511b4..e1dfa99933 100644
--- a/src/pkg/dashboard/contribute_landing.go
+++ b/src/pkg/dashboard/contribute_landing.go
@@ -5804,6 +5804,22 @@ function ccScenarioLabel(sc){
abandoned_handback:'handed back (relay asked for new work)',abandoned_disconnect:'handed back (connection lost)',abandoned_other:'handed back'};
return map[sc]||(sc||'').replace(/_/g,' ');
}
+// ccModelEvidenceFailTip (#18721) is the tooltip on a wall post's "failed"
+// model-evidence figure: the model's runs split by scenario (labelled as in the
+// run history above), then its failed runs by kind, so a high failure figure
+// reads as "the contributors' environments" or "the work". Plain text for a
+// title attribute; empty when the server sent no split (an older hub).
+function ccModelEvidenceFailTip(me){
+ var sc=(me&&me.scenarios)||{},lines=[];
+ var order=['verdict_complete','idle_complete','headless_complete','env_failure','task_failure','unspecified_failure','abandoned_handback','abandoned_disconnect','abandoned_other'];
+ Object.keys(sc).filter(function(k){return order.indexOf(k)<0;}).sort().forEach(function(k){order.push(k);});
+ order.forEach(function(k){if(sc[k])lines.push(ccScenarioLabel(k)+': '+sc[k]);});
+ var fk=me&&me.failure_kinds;
+ if(fk&&((fk.environment||0)+(fk.task||0)+(fk.unspecified||0))>0){
+ lines.push('Failed runs by kind: environment '+(fk.environment||0)+' \u00b7 task '+(fk.task||0)+' \u00b7 unspecified '+(fk.unspecified||0));
+ }
+ return lines.join('\n');
+}
function ccRenderRuns(user,data){
var el=document.getElementById('runs-list'),cnt=document.getElementById('runs-count');
if(!el)return;
@@ -6062,7 +6078,8 @@ function ccWallPostHTML(p){
var tags=p.tags||{};
var evidence='';
if(p.model_evidence){
- evidence='