Skip to content

Commit 11117ec

Browse files
committed
test: record live runner label proof
1 parent 3233474 commit 11117ec

2 files changed

Lines changed: 165 additions & 5 deletions

File tree

‎docs/proof/runner-label-escape-hatches/README.md‎

Lines changed: 23 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@
33
## Claim
44

55
Every GitHub Actions job that defaults to a Blacksmith runner can be redirected with a repository
6-
variable while preserving its existing Blacksmith label when the variable is unset. No repository
7-
variables are set by this change.
6+
variable while preserving its existing Blacksmith label when the variable is unset. The report
7+
lane's override is live: `CLAWSWEEPER_REPORT_RUNNER=ubuntu-latest` remains set while Blacksmith
8+
us-west is unavailable. The E2E and spam overrides remain unset, so their fallbacks are unchanged.
89

910
## Label inventory and variable ownership
1011

@@ -51,11 +52,28 @@ contains proof artifacts only after the tested workflow tree; no workflow, test,
5152
change follows the tested head in this push. Full machine provenance is frozen in
5253
`container-receipt.json`.
5354

55+
## Live GitHub Actions proof
56+
57+
GitHub accepted a `workflow_dispatch` for `maintainer-report-discord.yml` directly from branch
58+
`steipete/runner-label-escape-hatches` at tested head
59+
`32334740ba22b0e7fe69d1c71bfc013441f3dbf6`. Run
60+
[`31759075251`](https://github.com/openclaw/clawsweeper/actions/runs/31759075251) resolved the report
61+
job label to `ubuntu-latest`, assigned GitHub-hosted runner `GitHub Actions 1011717149`, and
62+
completed successfully. This demonstrates that branch dispatch used the PR branch workflow
63+
definition and respected the configured repository variable.
64+
65+
For contrast, scheduled run
66+
[`31688886472`](https://github.com/openclaw/clawsweeper/actions/runs/31688886472) at pre-change
67+
`main` head `4d41d3df4baf191dca9c385c82689425a135a5c4` resolved the same job to
68+
`blacksmith-4vcpu-ubuntu-2404` and ran on a Blacksmith runner. The full redacted API transcript,
69+
object cross-checks, behavior contract, and variable end-state are in `live-actions.md`.
70+
5471
OpenClaw Bay is unaffected: runner selection does not change workflow lifecycle publication,
5572
status telemetry, dashboard data contracts, or the observer-only action boundary.
5673

5774
## Limits
5875

59-
This proves static workflow selection and the repository gates. It does not dispatch the workflows
60-
or set repository variables. With variables unset, GitHub Actions resolves the same Blacksmith
61-
labels as before.
76+
The live run exercises the report-lane override only. The E2E, containment, repair-publication,
77+
and spam mappings remain covered by the workflow-shape tests and repository gate rather than live
78+
dispatches. The historical report run proves the report lane's Blacksmith default; the unchanged
79+
fallback expressions and tests cover the other unset defaults.
Lines changed: 142 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,142 @@
1+
# Live GitHub Actions runner override proof
2+
3+
Captured 2026-08-14 UTC for
4+
[PR 1157](https://github.com/openclaw/clawsweeper/pull/1157).
5+
6+
## Behavior contract
7+
8+
With `CLAWSWEEPER_REPORT_RUNNER=ubuntu-latest`, dispatch the report workflow from the PR branch and
9+
observe through the GitHub Actions API that the job resolves the configured label, receives a
10+
GitHub-hosted runner, starts real steps, and completes. Compare that result with a prior run of the
11+
same workflow showing the Blacksmith fallback. Leave the report override set, and do not create the
12+
E2E or spam overrides.
13+
14+
## Route
15+
16+
The branch version of `maintainer-report-discord.yml` exposes `workflow_dispatch`, so the proof used
17+
the report lane directly. GitHub tied the run to the requested PR branch and exact PR head; no
18+
default-branch-definition fallback or precedent-only proof route was needed.
19+
20+
## Committed-object cross-check
21+
22+
The tested head, tree, and base were resolved by command substitution and checked with
23+
`git cat-file` before dispatch evidence was committed:
24+
25+
```console
26+
$ proof_head=$(git rev-parse HEAD)
27+
$ proof_tree=$(git rev-parse 'HEAD^{tree}')
28+
$ proof_base=$(git rev-parse origin/main)
29+
$ printf 'proof_head=%s\nproof_tree=%s\nproof_base=%s\n' "$proof_head" "$proof_tree" "$proof_base"
30+
proof_head=32334740ba22b0e7fe69d1c71bfc013441f3dbf6
31+
proof_tree=8792b966061fe9aad1ba23ffe9d4a7704b9aa334
32+
proof_base=dc738b3845655ad36f91ea9584d90abdd4df3ca3
33+
$ printf 'proof_head_type=%s\n' "$(git cat-file -t "$proof_head")"
34+
proof_head_type=commit
35+
$ printf 'proof_tree_type=%s\n' "$(git cat-file -t "$proof_tree")"
36+
proof_tree_type=tree
37+
$ printf 'proof_base_type=%s\n' "$(git cat-file -t "$proof_base")"
38+
proof_base_type=commit
39+
```
40+
41+
## Variable and dispatch
42+
43+
```console
44+
$ gh variable set CLAWSWEEPER_REPORT_RUNNER --repo openclaw/clawsweeper --body ubuntu-latest
45+
$ gh variable get CLAWSWEEPER_REPORT_RUNNER --repo openclaw/clawsweeper
46+
ubuntu-latest
47+
$ gh workflow run 281699657 --repo openclaw/clawsweeper --ref steipete/runner-label-escape-hatches
48+
https://github.com/openclaw/clawsweeper/actions/runs/31759075251
49+
```
50+
51+
The run identity reported by `gh run view 31759075251 --json ...` was:
52+
53+
```json
54+
{
55+
"conclusion": "success",
56+
"createdAt": "2026-08-14T00:57:31Z",
57+
"databaseId": 31759075251,
58+
"event": "workflow_dispatch",
59+
"headBranch": "steipete/runner-label-escape-hatches",
60+
"headSha": "32334740ba22b0e7fe69d1c71bfc013441f3dbf6",
61+
"name": "maintainer report to discord",
62+
"startedAt": "2026-08-14T00:57:31Z",
63+
"status": "completed",
64+
"updatedAt": "2026-08-14T00:58:12Z",
65+
"url": "https://github.com/openclaw/clawsweeper/actions/runs/31759075251",
66+
"workflowDatabaseId": 281699657
67+
}
68+
```
69+
70+
## Resolved label and runner pickup
71+
72+
The attempt-specific Actions jobs API avoids a stale cached first response. The final response was:
73+
74+
```console
75+
$ gh api 'repos/openclaw/clawsweeper/actions/runs/31759075251/attempts/1/jobs?filter=all&per_page=100&page=1' --jq '<job projection>'
76+
{
77+
"id": 94641313387,
78+
"name": "Summarize maintainer report",
79+
"status": "completed",
80+
"conclusion": "success",
81+
"started_at": "2026-08-14T00:57:35Z",
82+
"completed_at": "2026-08-14T00:58:12Z",
83+
"runner_id": 1011717149,
84+
"runner_name": "GitHub Actions 1011717149",
85+
"runner_group_id": 0,
86+
"runner_group_name": "GitHub Actions",
87+
"labels": ["ubuntu-latest"],
88+
"html_url": "https://github.com/openclaw/clawsweeper/actions/runs/31759075251/job/94641313387"
89+
}
90+
```
91+
92+
The `Set up job` step ran from `00:57:37Z` to `00:57:38Z`, and every workflow step, including
93+
`Post report summary`, completed successfully. The non-null runner assignment plus completed setup
94+
and checkout steps demonstrate pickup rather than a queued label-only result.
95+
96+
## Historical Blacksmith contrast
97+
98+
The most recent scheduled report run before this PR used `main` head
99+
`4d41d3df4baf191dca9c385c82689425a135a5c4`:
100+
101+
```console
102+
$ gh api repos/openclaw/clawsweeper/actions/runs/31688886472/attempts/1/jobs --jq '<job projection>'
103+
{
104+
"id": 94411349909,
105+
"name": "Summarize maintainer report",
106+
"status": "completed",
107+
"conclusion": "success",
108+
"started_at": "2026-08-13T09:56:50Z",
109+
"completed_at": "2026-08-13T09:57:26Z",
110+
"runner_id": 12762319,
111+
"runner_name": "blacksmith-scale2-01kzx8ttr5349w912nmq4jtwqd-4vcpu",
112+
"runner_group_id": 5,
113+
"runner_group_name": "blacksmith runners 01kwyrrg4m5049hqd9h5a6vf13",
114+
"labels": ["blacksmith-4vcpu-ubuntu-2404"],
115+
"html_url": "https://github.com/openclaw/clawsweeper/actions/runs/31688886472/job/94411349909"
116+
}
117+
```
118+
119+
This is the same workflow and job, so it is a direct before/after contrast rather than evidence
120+
borrowed from another lane.
121+
122+
## Variable end-state
123+
124+
```console
125+
$ gh variable get CLAWSWEEPER_REPORT_RUNNER --repo openclaw/clawsweeper
126+
ubuntu-latest
127+
$ gh variable get CLAWSWEEPER_E2E_RUNNER --repo openclaw/clawsweeper
128+
variable CLAWSWEEPER_E2E_RUNNER was not found
129+
$ gh variable get CLAWSWEEPER_SPAM_RUNNER --repo openclaw/clawsweeper
130+
variable CLAWSWEEPER_SPAM_RUNNER was not found
131+
```
132+
133+
Result: the report override remains set to `ubuntu-latest`; the E2E and spam fallbacks remain
134+
active because their variables are absent.
135+
136+
## Limits
137+
138+
This live proof exercises the report expression, runner assignment, and successful job execution.
139+
It does not dispatch the E2E, containment, repair-publication, or spam lanes. Their exact expression
140+
shapes remain covered by the committed workflow tests. No new Crabbox lease was needed for this
141+
round; the earlier container proof lease `cbx_d1a06e39d867` is stopped as recorded in
142+
`container-receipt.json`.

0 commit comments

Comments
 (0)