Skip to content

Commit 30e2c40

Browse files
committed
🔬 Label fallback assertion sites for one bounded diagnostic replay
1 parent b91382f commit 30e2c40

5 files changed

Lines changed: 1618 additions & 95 deletions

File tree

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: One fallback attribution capture
22
on:
33
push:
4-
branches: [codex/fallback-host-plugin-35749f4]
4+
branches: [codex/fallback-static-label-35749f4]
55
permissions:
66
contents: read
77
jobs:
@@ -11,10 +11,10 @@ jobs:
1111
steps:
1212
- name: Retain initial envelope before checkout or runtime setup
1313
run: |
14-
mkdir -p "$RUNNER_TEMP/fallback-host-attribution/evidence"
15-
printf '{"schema":"fallback-initial.v1","consumerExecutions":0,"status":"before-checkout-and-setup","envelope":"%s","run":"%s","attempt":"%s","image":"%s","runner":"%s"}\n' "$GITHUB_SHA" "$GITHUB_RUN_ID" "$GITHUB_RUN_ATTEMPT" "$ImageVersion" "$RUNNER_NAME" > "$RUNNER_TEMP/fallback-host-attribution/evidence/initial-manifest.json"
16-
uname -a > "$RUNNER_TEMP/fallback-host-attribution/evidence/initial-uname.txt"
17-
cat /etc/os-release > "$RUNNER_TEMP/fallback-host-attribution/evidence/initial-os-release.txt"
14+
mkdir -p "$RUNNER_TEMP/fallback-static-label/evidence"
15+
printf '{"schema":"fallback-initial.v1","consumerExecutions":0,"status":"before-checkout-and-setup","envelope":"%s","run":"%s","attempt":"%s","image":"%s","runner":"%s"}\n' "$GITHUB_SHA" "$GITHUB_RUN_ID" "$GITHUB_RUN_ATTEMPT" "$ImageVersion" "$RUNNER_NAME" > "$RUNNER_TEMP/fallback-static-label/evidence/initial-manifest.json"
16+
uname -a > "$RUNNER_TEMP/fallback-static-label/evidence/initial-uname.txt"
17+
cat /etc/os-release > "$RUNNER_TEMP/fallback-static-label/evidence/initial-os-release.txt"
1818
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10
1919
with:
2020
fetch-depth: 0
@@ -32,41 +32,41 @@ jobs:
3232
- name: Admit runner and complete outer diagnostic preflights
3333
run: |
3434
runner_binary="$(readlink -f "/proc/$PPID/exe")"
35-
printf '%s\n' "$runner_binary" > "$RUNNER_TEMP/fallback-host-attribution/evidence/runner-worker-path.txt"
35+
printf '%s\n' "$runner_binary" > "$RUNNER_TEMP/fallback-static-label/evidence/runner-worker-path.txt"
3636
export CAPTURE_RUNNER_VERSION="$("$(dirname "$runner_binary")/Runner.Listener" --version)"
3737
deno run --allow-all --node-modules-dir=none --frozen scripts/fallback-capture-deno.ts preflight
38-
cp "$RUNNER_TEMP/fallback-host-attribution/evidence/manifest.json" "$RUNNER_TEMP/fallback-host-attribution/evidence/preflight-manifest.json"
38+
cp "$RUNNER_TEMP/fallback-static-label/evidence/manifest.json" "$RUNNER_TEMP/fallback-static-label/evidence/preflight-manifest.json"
3939
- name: Prepare exact product after successful outer preflight
4040
run: |
4141
runner_binary="$(readlink -f "/proc/$PPID/exe")"
42-
printf '%s\n' "$runner_binary" > "$RUNNER_TEMP/fallback-host-attribution/evidence/runner-worker-prepare-path.txt"
42+
printf '%s\n' "$runner_binary" > "$RUNNER_TEMP/fallback-static-label/evidence/runner-worker-prepare-path.txt"
4343
export CAPTURE_RUNNER_VERSION="$("$(dirname "$runner_binary")/Runner.Listener" --version)"
4444
deno run --allow-all --node-modules-dir=none --frozen scripts/fallback-capture-deno.ts prepare
45-
cp "$RUNNER_TEMP/fallback-host-attribution/evidence/manifest.json" "$RUNNER_TEMP/fallback-host-attribution/evidence/prepare-manifest.json"
46-
- name: Replay fixed original prefix before either overlay
45+
cp "$RUNNER_TEMP/fallback-static-label/evidence/manifest.json" "$RUNNER_TEMP/fallback-static-label/evidence/prepare-manifest.json"
46+
- name: Replay fixed original prefix before label overlay
4747
timeout-minutes: 9
4848
run: |
4949
runner_binary="$(readlink -f "/proc/$PPID/exe")"
5050
export CAPTURE_RUNNER_VERSION="$("$(dirname "$runner_binary")/Runner.Listener" --version)"
5151
deno run --allow-all --node-modules-dir=none --frozen scripts/fallback-capture-deno.ts prefix
52-
cp "$RUNNER_TEMP/fallback-host-attribution/evidence/manifest.json" "$RUNNER_TEMP/fallback-host-attribution/evidence/prefix-manifest.json"
53-
- name: Apply two overlays after prefix and baseline proof
52+
cp "$RUNNER_TEMP/fallback-static-label/evidence/manifest.json" "$RUNNER_TEMP/fallback-static-label/evidence/prefix-manifest.json"
53+
- name: Apply one label overlay after prefix and baseline proof
5454
run: |
5555
runner_binary="$(readlink -f "/proc/$PPID/exe")"
5656
export CAPTURE_RUNNER_VERSION="$("$(dirname "$runner_binary")/Runner.Listener" --version)"
5757
deno run --allow-all --node-modules-dir=none --frozen scripts/fallback-capture-deno.ts overlay
58-
cp "$RUNNER_TEMP/fallback-host-attribution/evidence/manifest.json" "$RUNNER_TEMP/fallback-host-attribution/evidence/overlay-manifest.json"
58+
cp "$RUNNER_TEMP/fallback-static-label/evidence/manifest.json" "$RUNNER_TEMP/fallback-static-label/evidence/overlay-manifest.json"
5959
- name: Capture complete original consumer once after successful preparation
6060
timeout-minutes: 6
6161
run: |
6262
runner_binary="$(readlink -f "/proc/$PPID/exe")"
6363
export CAPTURE_RUNNER_VERSION="$("$(dirname "$runner_binary")/Runner.Listener" --version)"
64-
deno run --allow-all --node-modules-dir=none --frozen scripts/fallback-capture-deno.ts consume
64+
env -u XMD_TEST_ARTIFACTS deno run --allow-all --node-modules-dir=none --frozen scripts/fallback-capture-deno.ts consume
6565
- name: Retain partial evidence after every terminal outcome
6666
if: always()
6767
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a
6868
with:
69-
name: fallback-host-attribution-35749f4-${{ github.run_id }}-attempt-${{ github.run_attempt }}
70-
path: ${{ runner.temp }}/fallback-host-attribution/evidence
69+
name: fallback-static-label-35749f4-${{ github.run_id }}-attempt-${{ github.run_attempt }}
70+
path: ${{ runner.temp }}/fallback-static-label/evidence
7171
include-hidden-files: true
7272
if-no-files-found: error

0 commit comments

Comments
 (0)