In this section
- Attest Live Pointer Lineage automation · gridatlas / .github/workflow-archive/202608301321-hostile-amnesia/202608300345-attest-live-pointer-lineage.yml lines 1–150
- Bootstrap Five Hour V8 V9 Closure automation · gridatlas / .github/workflow-archive/202608301321-hostile-amnesia/202608300430-bootstrap-five-hour-v8-v9-closure.yml lines 1–13
- Five Hour V8 V9 Watchdog automation · gridatlas / .github/workflow-archive/202608301321-hostile-amnesia/202608300437-five-hour-v8-v9-watchdog.yml lines 1–231
Attest Live Pointer Lineage
A configuration file in the workflow archive folder of GridAtlas. Runs on push, on a schedule and by hand.
automationgridatlas / .github/workflow-archive/202608301321-hostile-amnesia/202608300345-attest-live-pointer-lineage.yml · lines 1–150 of 150 · version 2026-08-30 03:45 · Not reached from any entry point (candidate for review)
- Why it exists in the grid workflow
- Domain stage experimental (path word 'archive'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow.
- Inputs & outputs
- In: JSON file release-manifest.json; JSON file build-manifest.json. Out: JSON file release-manifest.json; JSON file live-set.json.
- What it achieves
- Named “Attest current Atlas live-pointer lineage”.
- Why it matters
- No other file in the estate was found to import it.
- Application
- gridatlas · .github/workflow-archive/202608301321-hostile-amnesia · configuration
- Uses
- none found
- Used by
- none found
- Produces
- none declared
- Defines here
- 202608300345 Attest current Atlas live-pointer lineage
- Cannot conclude
- Whether this code runs, is used by a live app today, or is correct. This is a static reading.
- Evidence
- gridatlas@98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5 .github/workflow-archive/202608301321-hostile-amnesia/202608300345-attest-live-pointer-lineage.yml:1-150 · blob 77ed535ebee54eb219b4b38b10dc6dfbae5e0ce5 · GitHub at these lines
- State
- achieves: comment · context: readme_derived · stage: unknown · effects: none found · domain stage: experimental · users: none · canonical: unreached_review
name: 202608300345 Attest current Atlas live-pointer lineage
on:
push:
branches: [main]
paths:
- '.github/workflows/202608300345-attest-live-pointer-lineage.yml'
workflow_dispatch:
schedule:
- cron: '2 * * * *'
permissions:
contents: write
concurrency:
group: gridatlas-live-pointer-lineage-attestation
cancel-in-progress: false
jobs:
attest:
name: Derive source, publication and promotion commits from governed evidence
runs-on: ubuntu-24.04
timeout-minutes: 10
steps:
- name: Checkout exact source boundary
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
with:
ref: ${{ github.sha }}
fetch-depth: 100
persist-credentials: true
- name: Validate promoted pointer and derive lineage
id: lineage
run: |
set -euo pipefail
test "$GITHUB_REF" = refs/heads/main
test "$(git rev-parse HEAD)" = "$GITHUB_SHA"
git fetch --no-tags origin main:refs/remotes/origin/main
test "$(git rev-parse origin/main)" = "$GITHUB_SHA"
test -f state/live-set.json
test -f releases/current-v5.json
cmp state/live-set.json releases/current-v5.json
release_id="$(jq -r '.current.release_id // empty' state/live-set.json)"
generation="$(jq -r '.generation // empty' state/live-set.json)"
live_url="$(jq -r '.current.live_url // empty' state/live-set.json)"
test "$(jq -r '.classification' state/live-set.json)" = VERIFIED_LIVE_V8_MIRROR_RENDER_READY_ATLAS_V9
test "$(jq -r '.verification.promotion_eligible' state/live-set.json)" = true
test "$(jq -r '.verification.failed_gates' state/live-set.json)" = 0
[[ "$release_id" =~ ^[0-9]{12}-atlas-v9$ ]]
[[ "$generation" =~ ^[0-9]{12}$ ]]
test "$release_id" = "${generation}-atlas-v9"
test "$live_url" = "https://ventusltd.github.io/gridatlas/$release_id/"
test -f "$release_id/release-manifest.json"
test -f "$release_id/build-manifest.json"
test -f "$release_id/sha256sums.txt"
(
cd "$release_id"
sha256sum --check sha256sums.txt
)
source_commit="$(jq -r '.source_commit // empty' "$release_id/release-manifest.json")"
[[ "$source_commit" =~ ^[a-f0-9]{40}$ ]]
test "$(jq -r '.release_id' "$release_id/release-manifest.json")" = "$release_id"
publication_commit="$(git log --diff-filter=A --format=%H -- "$release_id/release-manifest.json" | tail -n 1)"
promotion_commit="$(git log -1 --format=%H -- state/live-set.json)"
[[ "$publication_commit" =~ ^[a-f0-9]{40}$ ]]
[[ "$promotion_commit" =~ ^[a-f0-9]{40}$ ]]
test "$publication_commit" != "$promotion_commit"
test "$(git merge-base --is-ancestor "$source_commit" "$publication_commit"; echo $?)" = 0
test "$(git merge-base --is-ancestor "$publication_commit" "$promotion_commit"; echo $?)" = 0
git show "$publication_commit:$release_id/release-manifest.json" >/tmp/publication-release-manifest.json
test "$(jq -r '.release_id' /tmp/publication-release-manifest.json)" = "$release_id"
test "$(jq -r '.source_commit' /tmp/publication-release-manifest.json)" = "$source_commit"
git show "$promotion_commit:state/live-set.json" >/tmp/promotion-live-set.json
test "$(jq -r '.current.release_id' /tmp/promotion-live-set.json)" = "$release_id"
test "$(jq -r '.verification.failed_gates' /tmp/promotion-live-set.json)" = 0
echo "release_id=$release_id" >> "$GITHUB_OUTPUT"
echo "source_commit=$source_commit" >> "$GITHUB_OUTPUT"
echo "publication_commit=$publication_commit" >> "$GITHUB_OUTPUT"
echo "promotion_commit=$promotion_commit" >> "$GITHUB_OUTPUT"
- name: Build mirrored attested pointer
env:
RELEASE_ID: ${{ steps.lineage.outputs.release_id }}
SOURCE_COMMIT: ${{ steps.lineage.outputs.source_commit }}
PUBLICATION_COMMIT: ${{ steps.lineage.outputs.publication_commit }}
PROMOTION_COMMIT: ${{ steps.lineage.outputs.promotion_commit }}
run: |
set -euo pipefail
candidate_pages_run_id="$(jq -r '.verification.candidate_pages_run_id' state/live-set.json)"
jq \
--arg source "$SOURCE_COMMIT" \
--arg publication "$PUBLICATION_COMMIT" \
--arg promotion "$PROMOTION_COMMIT" \
--argjson pages "$candidate_pages_run_id" \
'.current.source_commit = $source
| .current.publication_commit = $publication
| .current.promotion_commit = $promotion
| .current.candidate_pages_run_id = $pages
| .verification.commit_lineage_attested = true
| .verification.commit_lineage_rule = "SOURCE_ANCESTOR_OF_PUBLICATION_ANCESTOR_OF_PROMOTION"
| .verification.commit_lineage = {
source_commit: $source,
publication_commit: $publication,
promotion_commit: $promotion
}' \
state/live-set.json > /tmp/live-set.json
mv /tmp/live-set.json state/live-set.json
cp state/live-set.json releases/current-v5.json
cmp state/live-set.json releases/current-v5.json
test "$(jq -r '.current.release_id' state/live-set.json)" = "$RELEASE_ID"
test "$(jq -r '.current.source_commit' state/live-set.json)" = "$SOURCE_COMMIT"
test "$(jq -r '.current.publication_commit' state/live-set.json)" = "$PUBLICATION_COMMIT"
test "$(jq -r '.current.promotion_commit' state/live-set.json)" = "$PROMOTION_COMMIT"
test "$(jq -r '.verification.commit_lineage_attested' state/live-set.json)" = true
python3 -m json.tool state/live-set.json >/dev/null
git diff --check
- name: Compare-and-swap attestation onto main
env:
RELEASE_ID: ${{ steps.lineage.outputs.release_id }}
run: |
set -euo pipefail
if git diff --quiet -- state/live-set.json releases/current-v5.json; then
echo "Atlas pointer lineage already attested for $RELEASE_ID" >> "$GITHUB_STEP_SUMMARY"
exit 0
fi
git fetch --no-tags origin main:refs/remotes/origin/main
test "$(git rev-parse origin/main)" = "$GITHUB_SHA"
git add state/live-set.json releases/current-v5.json
mapfile -t staged < <(git diff --cached --name-only | sort)
expected=(releases/current-v5.json state/live-set.json)
test "${staged[*]}" = "${expected[*]}"
git config user.name gridatlas-lineage-attestation-bot
git config user.email actions@users.noreply.github.com
git commit -m "attest: $RELEASE_ID source publication promotion lineage"
git push origin HEAD:main
{
echo '## Atlas live-pointer lineage attested'
echo
echo "- Release: $RELEASE_ID"
echo "- Source: ${{ steps.lineage.outputs.source_commit }}"
echo "- Publication: ${{ steps.lineage.outputs.publication_commit }}"
echo "- Promotion: ${{ steps.lineage.outputs.promotion_commit }}"
echo '- Cadence: hourly at minute 02.'
} >> "$GITHUB_STEP_SUMMARY"Bootstrap Five Hour V8 V9 Closure
A configuration file in the workflow archive folder of GridAtlas. Runs by hand.
automationgridatlas / .github/workflow-archive/202608301321-hostile-amnesia/202608300430-bootstrap-five-hour-v8-v9-closure.yml · lines 1–13 of 13 · version 2026-08-30 04:30 · Not reached from any entry point (candidate for review)
- Why it exists in the grid workflow
- Domain stage experimental (path word 'archive'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow.
- What it achieves
- Named “Retired Atlas bootstrap wrapper”.
- Why it matters
- No other file in the estate was found to import it.
- Application
- gridatlas · .github/workflow-archive/202608301321-hostile-amnesia · configuration
- Uses
- none found
- Used by
- none found
- Produces
- none declared
- Defines here
- 202608300430 Retired Atlas bootstrap wrapper
- Cannot conclude
- Whether this code runs, is used by a live app today, or is correct. This is a static reading.
- Evidence
- gridatlas@98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5 .github/workflow-archive/202608301321-hostile-amnesia/202608300430-bootstrap-five-hour-v8-v9-closure.yml:1-13 · blob 13e0041c1bdbb5553b10b4fffed0abca3e383204 · GitHub at these lines
- State
- achieves: comment · context: readme_derived · stage: unknown · effects: none found · domain stage: experimental · users: none · canonical: unreached_review
name: 202608300430 Retired Atlas bootstrap wrapper
on:
workflow_dispatch:
permissions:
contents: read
jobs:
retired:
runs-on: ubuntu-24.04
steps:
- run: echo 'Superseded by the direct five-hour strict V8 V9 comparator.'Five Hour V8 V9 Watchdog
A configuration file in the workflow archive folder of GridAtlas that fetches five hour attempt history and postcodes. Runs on push, on a schedule and by hand.
automationgridatlas / .github/workflow-archive/202608301321-hostile-amnesia/202608300437-five-hour-v8-v9-watchdog.yml · lines 1–231 of 231 · version 2026-08-30 04:37 · Not reached from any entry point (candidate for review)
- What it does
- It fetches five hour attempt history and postcodes. Side effects: changes the web page (DOM); reads or writes files; makes network requests.
- Why it exists in the grid workflow
- Domain stage experimental (path word 'archive'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow. Domain terms in the code: postcodes.
- Inputs & outputs
- In: JSON file release-manifest.json; JSON file build-manifest.json. Out: JSON file five-hour-attempt-history.json.
- What it achieves
- Named “Five-hour strict V8 V9 comparator”.
- Why it matters
- No other file in the estate was found to import it.
- Application
- gridatlas · .github/workflow-archive/202608301321-hostile-amnesia · configuration
- Uses
- Render Ready Comparator (workflow run), GlobalGrid2050 — Renewable Energy Planning Database (REPD) Grid Atlas v8 Page (estate URL)
- Used by
- none found
- Produces
- none declared
- Defines here
- 202608300437 Five-hour strict V8 V9 comparator
- Cannot conclude
- Whether this code runs, is used by a live app today, or is correct. This is a static reading.
- Evidence
- gridatlas@98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5 .github/workflow-archive/202608301321-hostile-amnesia/202608300437-five-hour-v8-v9-watchdog.yml:1-231 · blob f51709cbcccfbb960c3695469a086047e77cc095 · GitHub at these lines
- State
- achieves: comment · context: readme_derived · stage: output · effects: dom, filesystem, network · domain stage: experimental · users: none · canonical: unreached_review
name: 202608300437 Five-hour strict V8 V9 comparator
run-name: Five-hour V8/V9 actual-render check ${{ github.run_number }} from ${{ github.sha }}
on:
push:
branches: [main]
paths:
- '.github/workflows/202608300437-five-hour-v8-v9-watchdog.yml'
workflow_dispatch:
schedule:
- cron: '5 4-8 30 8 *'
permissions:
contents: read
actions: read
concurrency:
group: gridatlas-five-hour-v8-v9-watchdog
cancel-in-progress: false
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: 'true'
MISSION_INCEPTED_AT: '2026-08-30T03:37:00Z'
MISSION_EXPIRES_AT: '2026-08-30T08:35:00Z'
MINIMUM_GENERATION: '202608292311'
ATLAS_STATE_URL: https://ventusltd.github.io/gridatlas/state/live-set.json
ORACLE_URL: https://globalgrid2050.com/repd_grid_atlasv8/
CONTRACT: contracts/202608292311-render-ready-runtime.json
COMPARATOR: atman/202608292311-render-ready-comparator.mjs
GOLDEN_REPD_REF: '13599'
GOLDEN_TECHNOLOGY: solar
jobs:
prove:
name: Prove promoted Atlas against V8 actual render
runs-on: ubuntu-24.04
timeout-minutes: 45
steps:
- name: Enforce bounded five-hour mission window
id: window
run: |
set -euo pipefail
now="$(date -u +%s)"
starts="$(date -u -d "$MISSION_INCEPTED_AT" +%s)"
expires="$(date -u -d "$MISSION_EXPIRES_AT" +%s)"
if (( now < starts || now > expires )); then
echo 'active=false' >> "$GITHUB_OUTPUT"
echo "GridAtlas five-hour mission inactive outside $MISSION_INCEPTED_AT to $MISSION_EXPIRES_AT." >> "$GITHUB_STEP_SUMMARY"
exit 0
fi
echo 'active=true' >> "$GITHUB_OUTPUT"
- name: Checkout exact GridAtlas source boundary
if: steps.window.outputs.active == 'true'
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
with:
ref: ${{ github.sha }}
fetch-depth: 120
persist-credentials: false
- name: Require exact main and resolve promoted release
if: steps.window.outputs.active == 'true'
id: atlas
run: |
set -euo pipefail
test "$GITHUB_REF" = refs/heads/main
git fetch --no-tags origin main:refs/remotes/origin/main
test "$(git rev-parse HEAD)" = "$GITHUB_SHA"
test "$(git rev-parse origin/main)" = "$GITHUB_SHA"
mkdir -p work
curl --fail --location --silent --show-error --retry 3 --retry-delay 2 \
"$ATLAS_STATE_URL" -o work/live-set.json
python3 -m json.tool work/live-set.json >/dev/null
cmp state/live-set.json work/live-set.json
generation="$(jq -r '.generation // empty' work/live-set.json)"
release_id="$(jq -r '.current.release_id // empty' work/live-set.json)"
live_url="$(jq -r '.current.live_url // empty' work/live-set.json)"
parent_url="$(jq -r '.predecessor.live_url // empty' work/live-set.json)"
[[ "$generation" =~ ^[0-9]{12}$ ]]
(( 10#$generation >= 10#$MINIMUM_GENERATION ))
test "$release_id" = "${generation}-atlas-v9"
test "$live_url" = "https://ventusltd.github.io/gridatlas/$release_id/"
test "$(jq -r '.classification' work/live-set.json)" = VERIFIED_LIVE_V8_MIRROR_RENDER_READY_ATLAS_V9
test "$(jq -r '.verification.promotion_eligible' work/live-set.json)" = true
test "$(jq -r '.verification.failed_gates' work/live-set.json)" = 0
test "$(jq -r '.verification.commit_lineage_attested' work/live-set.json)" = true
test "$(jq -r '.verification.v8_css_byte_identical' work/live-set.json)" = true
test "$(jq -r '.verification.v8_html_surface_preserved' work/live-set.json)" = true
test -f "$release_id/release-manifest.json"
test -f "$release_id/build-manifest.json"
test -f "$release_id/202608291818-place-postcode-search.js"
test -f "$CONTRACT"
test -f "$COMPARATOR"
curl --fail --location --silent --show-error --retry 3 --retry-delay 2 \
"${live_url}release-manifest.json" -o work/release-manifest.json
test "$(jq -r '.release_id' work/release-manifest.json)" = "$release_id"
sentinel="${live_url}?repd_ref=${GOLDEN_REPD_REF}&technology=${GOLDEN_TECHNOLOGY}"
effective="$(curl --fail --location --silent --show-error --retry 3 --retry-delay 2 \
--output work/sentinel.html --write-out '%{url_effective}' "$sentinel")"
test "$effective" = "$sentinel"
grep -q 'ventus-corev8engine.js' work/sentinel.html
grep -q '202608292311-maplibre-worker-bridge.js' work/sentinel.html
grep -q '202608291818-place-postcode-search.js' work/sentinel.html
echo "generation=$generation" >> "$GITHUB_OUTPUT"
echo "release_id=$release_id" >> "$GITHUB_OUTPUT"
echo "live_url=$live_url" >> "$GITHUB_OUTPUT"
echo "parent_url=$parent_url" >> "$GITHUB_OUTPUT"
- name: Configure pinned Node
if: steps.window.outputs.active == 'true'
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020
with:
node-version: '22.18.0'
cache: npm
- name: Install pinned browser runtime
if: steps.window.outputs.active == 'true'
run: |
set -euo pipefail
npm ci --ignore-scripts
npx playwright install --with-deps chromium
- name: Run actual-render comparator with bounded noise retries
if: steps.window.outputs.active == 'true'
env:
CANDIDATE_URL: ${{ steps.atlas.outputs.live_url }}
PARENT_URL: ${{ steps.atlas.outputs.parent_url }}
MODE: public
run: |
set -euo pipefail
final_output=work/five-hour-public-render-ready-proof.json
final_record=work/five-hour-public-render-ready-record.jsonl
rm -f "$final_output" "$final_record" work/five-hour-attempt-*.json work/five-hour-record-attempt-*.jsonl
passed=false
successful_attempt=0
for attempt in 1 2 3; do
attempt_output="work/five-hour-attempt-${attempt}.json"
attempt_record="work/five-hour-record-attempt-${attempt}.jsonl"
echo "Atman public comparison attempt $attempt of 3"
set +e
OUTPUT="$attempt_output" RECORD_OUTPUT="$attempt_record" node "$COMPARATOR"
rc=$?
set -e
if test "$rc" = 0 \
&& test -f "$attempt_output" \
&& test -f "$attempt_record" \
&& test "$(jq -r '.classification' "$attempt_output")" = VERIFIED_PUBLIC_RENDER_READY_400KV \
&& test "$(jq -r '.failed_gates' "$attempt_output")" = 0 \
&& test "$(jq -r '.label' "$attempt_record")" = PROMOTE \
&& test "$(jq -r '.privacy' "$attempt_record")" = NO_PERSONAL_DATA; then
cp "$attempt_output" "$final_output"
cp "$attempt_record" "$final_record"
passed=true
successful_attempt="$attempt"
break
fi
sleep 8
done
python3 - <<'PY'
import glob
import json
from pathlib import Path
attempts = []
for name in sorted(glob.glob('work/five-hour-attempt-*.json')):
proof = json.loads(Path(name).read_text(encoding='utf-8'))
attempts.append({
'attempt': int(Path(name).stem.rsplit('-', 1)[-1]),
'classification': proof.get('classification'),
'failed_gates': [gate['id'] for gate in proof.get('gates', []) if not gate.get('passed')],
'candidate_desktop_p95_ms': proof.get('benchmark', {}).get('candidate', {}).get('desktop', {}).get('render_ready', {}).get('p95_ms'),
'candidate_mobile_p95_ms': proof.get('benchmark', {}).get('candidate', {}).get('mobile', {}).get('render_ready', {}).get('p95_ms'),
})
Path('work/five-hour-attempt-history.json').write_text(
json.dumps({'schema': 'gridatlas.atman.five-hour-attempt-history.v1', 'attempts': attempts}, indent=2) + '\n',
encoding='utf-8',
)
PY
echo "ATMAN_SUCCESSFUL_ATTEMPT=$successful_attempt" >> "$GITHUB_ENV"
test "$passed" = true
test -f "$final_output"
test -f "$final_record"
- name: Retain five-hour comparator evidence
if: always() && steps.window.outputs.active == 'true'
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a
with:
name: gridatlas-five-hour-v8-v9-${{ github.run_number }}-${{ github.sha }}
path: |
work/five-hour-public-render-ready-proof.json
work/five-hour-public-render-ready-record.jsonl
work/five-hour-attempt-history.json
work/five-hour-attempt-*.json
work/five-hour-record-attempt-*.jsonl
work/live-set.json
work/release-manifest.json
work/sentinel.html
if-no-files-found: warn
retention-days: 90
compression-level: 0
- name: Publish proof summary
if: always() && steps.window.outputs.active == 'true'
run: |
{
echo '## Five-hour GridAtlas V8/V9 closure'
echo
echo "- Window: $MISSION_INCEPTED_AT to $MISSION_EXPIRES_AT"
echo "- Release: ${{ steps.atlas.outputs.release_id || 'unresolved' }}"
echo "- Clean attempt: ${ATMAN_SUCCESSFUL_ATTEMPT:-none}"
if test -f work/five-hour-public-render-ready-proof.json; then
echo "- Classification: $(jq -r '.classification' work/five-hour-public-render-ready-proof.json)"
echo "- Failed gates: $(jq -r '.failed_gates' work/five-hour-public-render-ready-proof.json)"
echo "- V8 desktop p95: $(jq -r '.benchmark.oracle.desktop.render_ready.p95_ms' work/five-hour-public-render-ready-proof.json) ms"
echo "- V9 desktop p95: $(jq -r '.benchmark.candidate.desktop.render_ready.p95_ms' work/five-hour-public-render-ready-proof.json) ms"
echo "- V8 mobile p95: $(jq -r '.benchmark.oracle.mobile.render_ready.p95_ms' work/five-hour-public-render-ready-proof.json) ms"
echo "- V9 mobile p95: $(jq -r '.benchmark.candidate.mobile.render_ready.p95_ms' work/five-hour-public-render-ready-proof.json) ms"
else
echo '- No clean comparator proof produced.'
fi
} >> "$GITHUB_STEP_SUMMARY"