Repository navigation
Add squabbler training corpus v4 #169
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,45 @@ | ||
| // SPDX-License-Identifier: CC-BY-SA-4.0 | ||
| // Copyright (c) 2026 Jonathan D.A. Jewell (hyperpolymath) | ||
| = Squabbler training corpus (draft) | ||
|
|
||
| One JSON file per observed CI failure, under `cases/`. Each is a structured case: | ||
| what failed, how it was classified, whether the default branch has the same failure, | ||
| what fix is proposed, who owns it, and how to retry. | ||
|
|
||
| == Files | ||
|
|
||
| * `schema/case.schema.json`: the case shape. | ||
| * `cases/SQ-CASE-NNNN.json`: the cases (this patch adds 15). | ||
| * `validate.py`: offline checker (standard library only). Silent means the case is valid and scrubbed. | ||
| * `tests/run-tests.py`: fire and silence tests for the validator, offline. | ||
|
|
||
| == Rules the validator enforces | ||
|
|
||
| [cols="1,4"] | ||
| |=== | ||
| | Code | Meaning | ||
| | V001 | Top-level fields differ from the schema. | ||
| | V002 | A field has the wrong type or an unknown enum value. | ||
| | V003 | File name differs from the case id. | ||
| | V004 | `log_excerpt` is longer than 30 lines. | ||
| | V005 | Possible secret or token. | ||
| | V006 | Email address. | ||
| | V007 | Internal hostname or private address. | ||
| | V009 | Confidence `proven` without a verbatim error string. | ||
| | V010 | A fix with an owner does not require the owner's go. | ||
| | V011 | `observed_at` is not UTC `YYYY-MM-DDThh:mm:ssZ` or null. | ||
| | V012 | An error string is not in the log excerpt. | ||
| |=== | ||
|
|
||
| == Honesty conventions | ||
|
|
||
| * `error_strings` hold only text that was read verbatim. Where it was not retained the list is empty and confidence is `likely` or `hypothesis`, never `proven`. | ||
| * `null` means not known or not retained, never a guess. | ||
| * A case with confidence `hypothesis` states a cause that the log does not show. | ||
|
|
||
| == Run | ||
|
|
||
| ---- | ||
| python3 -I tests/run-tests.py | ||
| python3 -I validate.py cases/*.json | ||
| ---- | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,43 @@ | ||
| { | ||
| "attempt": null, | ||
| "classification": { | ||
| "confidence": "proven", | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
| "group": "rate-limit" | ||
| }, | ||
| "evidence": { | ||
| "error_strings": [ | ||
| "NO VERDICT WAS PRODUCED" | ||
| ], | ||
| "exit_code": null, | ||
| "log_excerpt": null | ||
| }, | ||
| "fix": { | ||
| "description": "Shared installation API budget is exhausted; no single-workflow fix. Cut API calls per push (skip statuses already posted, narrow the workflow_run trigger, add per-SHA concurrency), retry with backoff honouring Retry-After, then re-run once after the window.", | ||
| "files": [ | ||
| ".github/workflows/ci-gate.yml" | ||
| ], | ||
| "owner": "ci-gate-owner", | ||
| "requires_owner_go": true, | ||
| "risk": "medium" | ||
| }, | ||
| "id": "SQ-CASE-0001", | ||
| "job": "gate-pr / CI gate", | ||
| "main_comparison": { | ||
| "note": "Commit status CI/gate on the same head was re-evaluated to success at 13:15Z; the 12:00Z check-run stayed red.", | ||
| "state": "unknown" | ||
| }, | ||
| "observed_at": "2026-11-20T11:59:46Z", | ||
| "pr": 469, | ||
| "provenance": { | ||
| "note": "Read-only inspection of public CI logs and check data; no run was re-run.", | ||
| "read_by": "api" | ||
| }, | ||
| "repo": "hyperpolymath/rsr-template-repo", | ||
| "retry_policy": { | ||
| "action": "rerun-after-window", | ||
| "note": "One re-run after the installation budget has recovered." | ||
| }, | ||
| "run_id": null, | ||
| "schema_version": "1", | ||
| "step": null | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,42 @@ | ||
| { | ||
| "attempt": 1, | ||
| "classification": { | ||
| "confidence": "proven", | ||
| "group": "rate-limit" | ||
| }, | ||
| "evidence": { | ||
| "error_strings": [ | ||
| "API rate limit exceeded for installation", | ||
| "Error: Failed to fetch url https://api.github.com/repos/oven-sh/bun/git/refs/tags. (status code: 403, status text: Forbidden)" | ||
| ], | ||
| "exit_code": 1, | ||
| "log_excerpt": null | ||
| }, | ||
| "fix": { | ||
| "description": "Fetch the Bun release without the GitHub API, or cache it; retry with backoff.", | ||
| "files": [], | ||
| "owner": "ci-gate-owner", | ||
| "requires_owner_go": true, | ||
| "risk": "low" | ||
| }, | ||
| "id": "SQ-CASE-0002", | ||
| "job": "Proven 3-outcome test & bench suite", | ||
| "main_comparison": { | ||
| "note": "This is the main commit bf64192f itself.", | ||
| "state": "fails" | ||
| }, | ||
| "observed_at": "2026-11-19T22:26:35Z", | ||
| "pr": null, | ||
| "provenance": { | ||
| "note": "Read-only inspection of public CI logs and check data; no run was re-run.", | ||
| "read_by": "api" | ||
| }, | ||
| "repo": "hyperpolymath/rsr-template-repo", | ||
| "retry_policy": { | ||
| "action": "rerun-after-window", | ||
| "note": "Re-run after the window; the failure is not content-related." | ||
| }, | ||
| "run_id": 44628578926, | ||
| "schema_version": "1", | ||
| "step": "Set up Bun" | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,43 @@ | ||
| { | ||
| "attempt": 1, | ||
| "classification": { | ||
| "confidence": "hypothesis", | ||
| "group": "rate-limit" | ||
| }, | ||
| "evidence": { | ||
| "error_strings": [ | ||
| "release not found" | ||
| ], | ||
| "exit_code": 1, | ||
| "log_excerpt": null | ||
| }, | ||
| "fix": { | ||
| "description": "Make install.sh show the real gh error and retry the release lookup once with backoff; confirm whether the 404 comes from the token or from rate limiting.", | ||
| "files": [ | ||
| ".github/actions/squabble/install.sh" | ||
| ], | ||
| "owner": "repo-owner", | ||
| "requires_owner_go": true, | ||
| "risk": "low" | ||
| }, | ||
| "id": "SQ-CASE-0003", | ||
| "job": "Squabble CI chains & required-context gate", | ||
| "main_comparison": { | ||
| "note": "This is the main commit bf64192f itself. The v0.1.0 release exists, is not a draft and carries the pinned asset, so the lookup error is not a missing release.", | ||
| "state": "fails" | ||
| }, | ||
| "observed_at": "2026-11-19T22:27:11Z", | ||
| "pr": null, | ||
| "provenance": { | ||
| "note": "Read-only inspection of public CI logs and check data; no run was re-run.", | ||
| "read_by": "api" | ||
| }, | ||
| "repo": "hyperpolymath/rsr-template-repo", | ||
| "retry_policy": { | ||
| "action": "rerun-after-window", | ||
| "note": "Cause not visible in the log; the failure sits inside a known rate-limit window." | ||
| }, | ||
| "run_id": 44628578862, | ||
| "schema_version": "1", | ||
| "step": "Install pinned & SLSA-attested squabble v0.1.0" | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,41 @@ | ||
| { | ||
| "attempt": null, | ||
| "classification": { | ||
| "confidence": "hypothesis", | ||
| "group": "rate-limit" | ||
| }, | ||
| "evidence": { | ||
| "error_strings": [], | ||
| "exit_code": 1, | ||
| "log_excerpt": null | ||
| }, | ||
| "fix": { | ||
| "description": "Same as the rsr-template-repo squabble install case.", | ||
| "files": [ | ||
| ".github/actions/squabble/install.sh" | ||
| ], | ||
| "owner": "repo-owner", | ||
| "requires_owner_go": true, | ||
| "risk": "low" | ||
| }, | ||
| "id": "SQ-CASE-0004", | ||
| "job": "Squabble CI chains & required-context gate", | ||
| "main_comparison": { | ||
| "note": "resource-algebra main itself was green.", | ||
| "state": "passes" | ||
| }, | ||
| "observed_at": "2026-11-18T12:29:01Z", | ||
| "pr": 54, | ||
| "provenance": { | ||
| "note": "Read-only inspection of public CI logs and check data; no run was re-run.", | ||
| "read_by": "api" | ||
| }, | ||
| "repo": "hyperpolymath/resource-algebra", | ||
| "retry_policy": { | ||
| "action": "rerun-after-window", | ||
| "note": "No rate-limit text in this job; the timing matches a known exhaustion window." | ||
| }, | ||
| "run_id": null, | ||
| "schema_version": "1", | ||
| "step": "Install pinned & SLSA-attested squabble v0.1.0" | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,44 @@ | ||
| { | ||
| "attempt": null, | ||
| "classification": { | ||
| "confidence": "proven", | ||
| "group": "rate-limit" | ||
| }, | ||
| "evidence": { | ||
| "error_strings": [ | ||
| "API rate limit exceeded for installation", | ||
| "Error: Failed to fetch url https://api.github.com/repos/oven-sh/bun/git/refs/tags. (status code: 403, status text: Forbidden)" | ||
| ], | ||
| "exit_code": 1, | ||
| "log_excerpt": null | ||
| }, | ||
| "fix": { | ||
| "description": "Shared installation API budget is exhausted; no single-workflow fix. Cut API calls per push (skip statuses already posted, narrow the workflow_run trigger, add per-SHA concurrency), retry with backoff honouring Retry-After, then re-run once after the window.", | ||
| "files": [ | ||
| ".github/workflows/ci-gate.yml" | ||
| ], | ||
| "owner": "ci-gate-owner", | ||
| "requires_owner_go": true, | ||
| "risk": "medium" | ||
| }, | ||
| "id": "SQ-CASE-0005", | ||
| "job": "Proven 3-outcome test & bench suite", | ||
| "main_comparison": { | ||
| "note": "resource-algebra main itself was green.", | ||
| "state": "passes" | ||
| }, | ||
| "observed_at": "2026-11-18T12:29:01Z", | ||
| "pr": 54, | ||
| "provenance": { | ||
| "note": "Read-only inspection of public CI logs and check data; no run was re-run.", | ||
| "read_by": "api" | ||
| }, | ||
| "repo": "hyperpolymath/resource-algebra", | ||
| "retry_policy": { | ||
| "action": "rerun-after-window", | ||
| "note": "Re-run after the window." | ||
| }, | ||
| "run_id": null, | ||
| "schema_version": "1", | ||
| "step": "Set up Bun" | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,44 @@ | ||
| { | ||
| "attempt": null, | ||
| "classification": { | ||
| "confidence": "likely", | ||
| "group": "rate-limit" | ||
| }, | ||
| "evidence": { | ||
| "error_strings": [ | ||
| "API rate limit exceeded for installation", | ||
| "no resource-algebra_chora.deed at c4e5729 — this repo cannot declare a canon pin" | ||
| ], | ||
| "exit_code": null, | ||
| "log_excerpt": null | ||
| }, | ||
| "fix": { | ||
| "description": "Shared installation API budget is exhausted; no single-workflow fix. Cut API calls per push (skip statuses already posted, narrow the workflow_run trigger, add per-SHA concurrency), retry with backoff honouring Retry-After, then re-run once after the window.", | ||
| "files": [ | ||
| ".github/workflows/ci-gate.yml" | ||
| ], | ||
| "owner": "ci-gate-owner", | ||
| "requires_owner_go": true, | ||
| "risk": "medium" | ||
| }, | ||
| "id": "SQ-CASE-0006", | ||
| "job": "Canon lockstep", | ||
| "main_comparison": { | ||
| "note": "Canon lockstep passes on resource-algebra main.", | ||
| "state": "passes" | ||
| }, | ||
| "observed_at": "2026-11-18T12:29:01Z", | ||
| "pr": 54, | ||
| "provenance": { | ||
| "note": "Read-only inspection of public CI logs and check data; no run was re-run.", | ||
| "read_by": "api" | ||
| }, | ||
| "repo": "hyperpolymath/resource-algebra", | ||
| "retry_policy": { | ||
| "action": "rerun-after-window", | ||
| "note": "The canon message is a consequence of a failed API call earlier in the job." | ||
| }, | ||
| "run_id": null, | ||
| "schema_version": "1", | ||
| "step": null | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,39 @@ | ||
| { | ||
| "attempt": null, | ||
| "classification": { | ||
| "confidence": "likely", | ||
| "group": "infra-flake" | ||
| }, | ||
| "evidence": { | ||
| "error_strings": [], | ||
| "exit_code": null, | ||
| "log_excerpt": null | ||
| }, | ||
| "fix": { | ||
| "description": "Re-run once; the Ubuntu package mirror returned HTTP 503. Consider a retry around apt-get.", | ||
| "files": [], | ||
| "owner": "none", | ||
| "requires_owner_go": false, | ||
| "risk": "low" | ||
| }, | ||
| "id": "SQ-CASE-0007", | ||
| "job": "guile-3.0 install", | ||
| "main_comparison": { | ||
| "note": "main was green over about 35 runs.", | ||
| "state": "passes" | ||
| }, | ||
| "observed_at": null, | ||
| "pr": 153, | ||
| "provenance": { | ||
| "note": "Read-only inspection of public CI logs and check data; no run was re-run.", | ||
| "read_by": "log" | ||
| }, | ||
| "repo": "hyperpolymath/proven-cicd-and-workflows", | ||
| "retry_policy": { | ||
| "action": "rerun", | ||
| "note": "Transient mirror failure." | ||
| }, | ||
| "run_id": null, | ||
| "schema_version": "1", | ||
| "step": null | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,39 @@ | ||
| { | ||
| "attempt": 2, | ||
| "classification": { | ||
| "confidence": "likely", | ||
| "group": "infra-flake" | ||
| }, | ||
| "evidence": { | ||
| "error_strings": [], | ||
| "exit_code": null, | ||
| "log_excerpt": null | ||
| }, | ||
| "fix": { | ||
| "description": "Re-run once more after the mirror recovers; attempt 2 was already a re-run.", | ||
| "files": [], | ||
| "owner": "none", | ||
| "requires_owner_go": false, | ||
| "risk": "low" | ||
| }, | ||
| "id": "SQ-CASE-0008", | ||
| "job": "capnproto/protobuf install", | ||
| "main_comparison": { | ||
| "note": "Main is red on other jobs; this mirror failure is separate.", | ||
| "state": "fails" | ||
| }, | ||
| "observed_at": null, | ||
| "pr": 524, | ||
| "provenance": { | ||
| "note": "Read-only inspection of public CI logs and check data; no run was re-run.", | ||
| "read_by": "log" | ||
| }, | ||
| "repo": "hyperpolymath/echidna", | ||
| "retry_policy": { | ||
| "action": "rerun-after-window", | ||
| "note": "Ubuntu mirror returned HTTP 503 on two attempts." | ||
| }, | ||
| "run_id": null, | ||
| "schema_version": "1", | ||
| "step": null | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Script executed:
Repository: hyperpolymath/cicd-squabbler
Length of output: 9260
Add
corpus/to the root allowlist or move it out of the root.This PR adds
corpus/at the repository root..machine_readable/root-allow.txtdoes not list it, and this PR does not change that file. The header ofroot-allow.txtsays that root entries not on the list must be moved into a subdirectory or added with a justification comment.scripts/check-root-shape.sh .therefore reportscorpus/ (directory)and exits 1.Choose one of these corrections:
corpus/under an permitted directory, such asdocs/, and update the paths that reference it.corpus/at the root. Add a justified entry to.machine_readable/root-allow.txt, in the same dated-block format used forcontracts/. The entry must end in/and must include a comment that explains why the directory must stay at the root.Suggested fix (allowlist option)
Re-run
scripts/check-root-shape.sh .after the change. It must printPASSand exit 0.