You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 98fae30
Browse filesBrowse the repository at this point in the historyBrowse files
- Source of truth: `scripts/stuck-queued-run-remediation.mjs`, `scripts/operator-skip-reasons.mjs`, and `.github/workflows/exact-review-dead-letter-reconcile.yml`
6
+
- Base revision: `openclaw/clawsweeper@e0dc54438e6562f144623fcde2263b3b839fe28d`
7
+
- Update when: the remediation throttle contract, dead-letter workflow ordering, or focused loopback fixtures change
8
+
9
+
The proof claim is that GitHub rate-limit and abuse throttles are an operator-visible graceful skip for opportunistic queued-run remediation, including after earlier cancellations, while persistent 5xx and authorization failures remain hard failures. The exercised surface is the production CLI routed through its real `GITHUB_API_URL` seam to loopback HTTP listeners, plus the parsed production workflow.
10
+
11
+
[`red-green-transcript.txt`](red-green-transcript.txt) records the red test-only run against the base production script and the green focused run. The fixtures cover a 403 installation rate-limit body, a 429 secondary-rate-limit response after one successful cancellation, a non-throttle 403, persistent 503 responses with three attempts, an invalid inventory shape, and the workflow sequencing/upload contract. No live credentials or external mutations are used.
12
+
13
+
The source-blind behavior contract is in [`behavior-contract.md`](behavior-contract.md). All five clauses passed through the operator CLI/workflow artifact surfaces. Anti-cheat probes varied both status and body, distinguished authorization from throttling, retained a completed mutation before the mid-run skip, and verified the persistent failure path.
14
+
15
+
OpenClaw Bay is unaffected: this changes only an internal housekeeping CLI and workflow sequencing, with no dashboard data contract or observer surface change. No dashboard files were touched, so the requested scripts/workflow proof replaces a Crabbox real-Worker receipt.
16
+
17
+
Limits: the transport is loopback HTTP rather than live GitHub, and workflow behavior is validated structurally rather than by dispatching the production schedule. Full repository gates provide the broader integration check.
Opportunistic stuck-run remediation must yield to GitHub throttling without preventing the scheduled dead-letter reconcile cycle, while authentication failures, persistent server failures, and malformed responses remain hard failures.
6
+
7
+
## Target
8
+
9
+
- Type: operator CLI and GitHub Actions workflow artifact
10
+
- Launch or access: `node scripts/stuck-queued-run-remediation.mjs` through the focused loopback test and parsed `.github/workflows/exact-review-dead-letter-reconcile.yml`
11
+
- Allowed fixtures and credential source: loopback HTTP listeners through `GITHUB_API_URL`; synthetic placeholder token only
12
+
13
+
## User Tasks
14
+
15
+
1. Run discovery when GitHub returns a rate-limit 403.
16
+
2. Run discovery when GitHub returns a persistent 503 or a non-throttle 403.
17
+
3. Run execute mode when one cancellation succeeds and the next request is throttled.
18
+
4. Inspect the workflow ordering and artifact-upload policy.
19
+
20
+
## Expected Observable Behavior
21
+
22
+
- A discovery throttle exits 0 and emits one JSON line with `skip_reasons.github_throttled`, phase, and request path.
23
+
- Persistent 5xx retries three times and exits 1; a non-throttle 403 exits 1 without retry.
24
+
- A throttle after a successful cancellation retains that action, stops further remediation, emits the skip reason, and exits 0.
25
+
- The workflow lets both dead-letter reconcile stages run after a remediation failure, then fails honestly; absent inventory files do not create a second upload failure.
26
+
27
+
## Anti-Cheat Probes
28
+
29
+
- Vary the throttle signal between a 403 rate-limit body and HTTP 429 secondary-rate-limit response.
30
+
- Replace the throttle body with an authorization error and verify it does not skip.
31
+
- Replace the throttle response with persistent 503 and verify the bounded retry plus hard failure.
32
+
- Exercise throttling after a prior mutation rather than only on the first request.
33
+
34
+
## Evidence Required
35
+
36
+
- Red/green Node test transcript showing exit status and named scenarios.
37
+
- Focused workflow-shape assertion in the green run.
38
+
- Secret scan of the committed transcript.
39
+
40
+
## Out Of Scope
41
+
42
+
- Live GitHub cancellation mutations.
43
+
- Cloudflare Worker, dashboard, or OpenClaw Bay behavior.
not ok - discovery GitHub throttling exits successfully with a structured skip reason
9
+
AssertionError [ERR_ASSERTION]: GET /actions/runs?status=queued&per_page=100&page=1 returned 403: {"message":"API rate limit exceeded for installation"}
0 commit comments