Skip to content

Commit b1d12c0

Browse files
committed
docs(proof): record Crabbox local-container provenance for csw-1089
1 parent d54d60a commit b1d12c0

3 files changed

Lines changed: 146 additions & 0 deletions

File tree

‎docs/proof/csw-1089/README.md‎

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,3 +85,37 @@ attempt count. It records the real attempt-one classification and queue result
8585
for both and leaves the terminal contrast to the unchanged retry-policy code
8686
and existing focused tests. It does not fake time, edit Durable Object storage,
8787
stub the Worker/DO, or change a retry constant.
88+
89+
## Crabbox provenance
90+
91+
The proof in this directory was re-run unchanged against the reviewed head inside a
92+
Docker-backed Crabbox `local-container` lease, from a clean remote checkout of the PR
93+
(`--fresh-pr openclaw/clawsweeper#1089 --no-hydrate`) rather than from a local working tree.
94+
95+
| Field | Value |
96+
| --- | --- |
97+
| Provider | `local-container` (Crabbox CLI 0.39.0) |
98+
| Container engine | Docker 29.4.0 (OrbStack) |
99+
| Image | `node:24-bookworm` |
100+
| Lease | `cbx_9797931e8d4d` (`coral-prawn`), stopped after the run |
101+
| Reviewed head | `d54d60abf5de708713e0fbedce496cd5a21dd251` |
102+
| Runtime | Node v24.19.0, pnpm 11.10.0 |
103+
| Result | `exit 0`, 21 assertions, `run_status: succeeded` |
104+
| Timings | sync 10.2 s, command 55.6 s, total 65.8 s |
105+
106+
Machine-readable provenance, including the captured queue observations, is in
107+
[`artifacts/crabbox-local-container-provenance.json`](artifacts/crabbox-local-container-provenance.json).
108+
The raw container transcript is in
109+
[`artifacts/crabbox-local-container-stdout.log`](artifacts/crabbox-local-container-stdout.log).
110+
111+
The run needs no elevated privileges. Corepack is enabled into the container user's own
112+
`~/.local/bin`, because the lease user is unprivileged and cannot write to `/usr/local/bin`.
113+
114+
### What this provenance does and does not add
115+
116+
It establishes that the proof reproduces on the exact reviewed head, in a clean containerized
117+
environment, with no dependency on this workstation's state. It does not change what the proof
118+
itself demonstrates; the limits recorded above and in the provenance JSON still apply, in
119+
particular that both queue observations are at attempt 1 and the retry-budget divergence itself is
120+
covered by unit tests and by the production dead-letter statistics quoted in the PR body rather
121+
than by this run.
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
{
2+
"schema": "clawsweeper-crabbox-proof-provenance/v1",
3+
"claim": "docs/proof/csw-1089/run-proof.sh passes against the reviewed PR head inside a Docker-backed Crabbox local-container.",
4+
"crabbox": {
5+
"cli_version": "0.39.0",
6+
"provider": "local-container",
7+
"lease_id": "cbx_9797931e8d4d",
8+
"slug": "coral-prawn",
9+
"machine_type": "node_24-bookworm",
10+
"image": "node:24-bookworm",
11+
"container_engine": "Docker 29.4.0 (OrbStack)",
12+
"checkout": "--fresh-pr openclaw/clawsweeper#1089 (clean remote checkout, --no-hydrate)",
13+
"workdir": "/work/crabbox/cbx_9797931e8d4d/fresh-pr-openclaw-clawsweeper-1089",
14+
"sync_ms": 10174,
15+
"command_ms": 55596,
16+
"total_ms": 65770,
17+
"exit_code": 0,
18+
"run_status": "succeeded",
19+
"lease_stopped": true
20+
},
21+
"runtime": {
22+
"node": "v24.19.0",
23+
"pnpm": "11.10.0"
24+
},
25+
"reviewed_head": "d54d60abf5de708713e0fbedce496cd5a21dd251",
26+
"result": {
27+
"ok": true,
28+
"assertions": 21
29+
},
30+
"observations": {
31+
"state_contention": {
32+
"item": "openclaw/openclaw#108901",
33+
"state": "pending",
34+
"backoff_reason": "publication_retry",
35+
"attempts": 1,
36+
"dead_letters": []
37+
},
38+
"unknown_failure_control_attempt_1": {
39+
"item": "openclaw/openclaw#108904",
40+
"state": "pending",
41+
"backoff_reason": "publication_retry",
42+
"attempts": 1,
43+
"dead_letters": []
44+
}
45+
},
46+
"limits": [
47+
"Both observations are at attempt 1, where state_contention and unknown_failure behave identically; the budget divergence (48 attempts / 24h vs 14 attempts / 1h) is not demonstrated at the boundary.",
48+
"Driving an authentic attempt 14 requires roughly 51 minutes of real publication backoff, so no dead-lettered result was produced or claimed.",
49+
"The retry-budget mapping in dashboard/exact-review-publication-retry.ts is pre-existing code this PR does not modify; what this PR changes is which reason code the batch publisher emits, and that is what the transport chain above exercises end to end.",
50+
"The publication endpoint requires HTTPS, so the run generates a disposable self-signed 127.0.0.1 certificate and a disposable local webhook secret. No production credential or endpoint is involved."
51+
]
52+
}
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
node=v24.19.0 pnpm=11.10.0
2+
head=d54d60abf5de708713e0fbedce496cd5a21dd251
3+
{
4+
"ok": true,
5+
"assertions": 21,
6+
"output_dir": "/work/crabbox/cbx_9797931e8d4d/fresh-pr-openclaw-clawsweeper-1089/docs/proof/csw-1089/artifacts",
7+
"state_contention": {
8+
"ok": true,
9+
"target_repo": "openclaw/openclaw",
10+
"item_number": 108901,
11+
"items": [
12+
{
13+
"lane": "publication",
14+
"state": "pending",
15+
"parked_reason": null,
16+
"parked_recovery_attempts": 0,
17+
"backoff_reason": "publication_retry",
18+
"revision": 1,
19+
"attempts": 1,
20+
"dispatch_failure_status": null,
21+
"dispatch_failure_class": null,
22+
"dispatch_failure_at": null,
23+
"dispatch_failure_fingerprint": null,
24+
"dispatch_failure_detail": null,
25+
"created_at": "2026-08-10T02:27:57.174Z",
26+
"next_attempt_at": "2026-08-10T02:29:02.030Z",
27+
"older_ready_count": 0
28+
}
29+
],
30+
"dead_letters": [],
31+
"position_is_approximate": true
32+
},
33+
"unknown_failure_attempt_1": {
34+
"ok": true,
35+
"target_repo": "openclaw/openclaw",
36+
"item_number": 108904,
37+
"items": [
38+
{
39+
"lane": "publication",
40+
"state": "pending",
41+
"parked_reason": null,
42+
"parked_recovery_attempts": 0,
43+
"backoff_reason": "publication_retry",
44+
"revision": 1,
45+
"attempts": 1,
46+
"dispatch_failure_status": null,
47+
"dispatch_failure_class": null,
48+
"dispatch_failure_at": null,
49+
"dispatch_failure_fingerprint": null,
50+
"dispatch_failure_detail": null,
51+
"created_at": "2026-08-10T02:27:57.251Z",
52+
"next_attempt_at": "2026-08-10T02:29:08.682Z",
53+
"older_ready_count": 0
54+
}
55+
],
56+
"dead_letters": [],
57+
"position_is_approximate": true
58+
}
59+
}
60+
PROOF_EXIT=0

0 commit comments

Comments
 (0)