In this section
- PipelineNews Diagnose Atlas Deep Link Identity Workflow automation · pipelinenews / .github/workflows/202608300416-diagnose-atlas-deep-link-identity.yml lines 1–163
- PipelineNews Bootstrap Five Hour Atlas Integration Workflow automation · pipelinenews / .github/workflows/202608300430-bootstrap-five-hour-atlas-integration.yml lines 1–169
- PipelineNews Repair Five Hour Bootstrap Workflow automation · pipelinenews / .github/workflows/202608300434-repair-five-hour-bootstrap.yml lines 1–49
PipelineNews Diagnose Atlas Deep Link Identity Workflow
A GitHub Actions workflow. Runs on push and by hand.
automationpipelinenews / .github/workflows/202608300416-diagnose-atlas-deep-link-identity.yml · lines 1–163 of 163 · version 2026-08-30 04:16 · Entry point
- What it does
- It runs the REPD register. Side effects: reads or writes files; starts processes.
- Why it exists in the grid workflow
- Domain stage upstream_foresight (path word 'atlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: the REPD register.
- Inputs & outputs
- Out: JSON file atlas-deep-link-identity-diagnosis.json.
- Downstream impact
- It is itself an entry point (workflow); no other file was found loading it.
- What it achieves
- No statement of purpose was found in the file, a README line naming it, or its name.
- Why it matters
- No other file in the estate was found to import it; it is an entry point.
- Application
- pipelinenews · .github/workflows · workflow
- Uses
- none found
- Used by
- none found
- Produces
- none declared
- Defines here
- 202608300416 Diagnose Atlas deep-link identity
- Cannot conclude
- Whether this code runs, is used by a live app today, or is correct. This is a static reading.
- Evidence
- pipelinenews@45c944c8640a9d7ae65edb51d66032ba204f3f46 .github/workflows/202608300416-diagnose-atlas-deep-link-identity.yml:1-163 · blob e8ca060c1b164dcf8ddac75334d39052fbeb7468 · GitHub at these lines
- State
- achieves: name · context: readme_derived · stage: output · effects: filesystem, process · domain stage: upstream_foresight · users: IPP_developer, ICP_grid_engineer · canonical: production_core
name: 202608300416 Diagnose Atlas deep-link identity
on:
push:
branches: [main]
paths:
- '.github/workflows/202608300416-diagnose-atlas-deep-link-identity.yml'
workflow_dispatch:
permissions:
contents: read
concurrency:
group: pipelinenews-atlas-deep-link-identity-diagnosis
cancel-in-progress: true
env:
RELEASE_ROOT: releases/202608291447-pipelinenews
CORE_DATA: releases/202608291447-pipelinenews/data/202608270055-8ab1807551bc-v8-fast-projects.json
SEARCH_DATA: releases/202608291447-pipelinenews/data/202608270055-8ab1807551bc-v8-fast-search.json
REQUESTED_REPD_REF: '16135'
jobs:
diagnose:
name: Find one browser-served exact REPD identity
runs-on: ubuntu-24.04
timeout-minutes: 8
steps:
- name: Checkout exact PipelineNews source
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
with:
ref: ${{ github.sha }}
fetch-depth: 1
persist-credentials: false
- name: Audit compact core, aligned search and partitions
run: |
set -euo pipefail
python3 - <<'PY'
from __future__ import annotations
import json
import os
import re
from collections import Counter
from pathlib import Path
root = Path(os.environ['RELEASE_ROOT'])
core_path = Path(os.environ['CORE_DATA'])
search_path = Path(os.environ['SEARCH_DATA'])
requested = os.environ['REQUESTED_REPD_REF']
def load(path: Path):
return json.loads(path.read_text(encoding='utf-8'))
def rows(payload):
if isinstance(payload, list):
return payload
if not isinstance(payload, dict):
return []
for key in ('projects', 'records', 'rows', 'items', 'data'):
value = payload.get(key)
if isinstance(value, list):
return value
return []
def normalise_ref(value):
text = str(value or '').strip()
if text.isdigit():
return text
match = re.search(r'(?:GG2050-REPD-|REPD-)(\d+)$', text, re.I)
return match.group(1) if match else ''
def ref_of(row):
# Compact V8-fast rows are positional arrays; field zero is repd_ref.
if isinstance(row, (list, tuple)):
return normalise_ref(row[0] if row else '')
if not isinstance(row, dict):
return ''
for key in ('repd_ref', 'REPD_REF', 'ref', 'ref_id', 'reference', 'gg_project_id', 'id'):
value = row.get(key)
ref = normalise_ref(value)
if ref:
return ref
return ''
core_payload = load(core_path)
search_payload = load(search_path)
core_rows = rows(core_payload)
search_rows = rows(search_payload)
core_refs = [ref_of(row) for row in core_rows if ref_of(row)]
partition_files = sorted(root.glob('data/projects/*.json'))
partition_refs = []
requested_locations = []
requested_partition_rows = []
for path in partition_files:
payload = load(path)
file_rows = rows(payload)
refs = [ref_of(row) for row in file_rows if ref_of(row)]
partition_refs.extend(refs)
for row in file_rows:
if ref_of(row) == requested:
requested_locations.append(str(path))
requested_partition_rows.append(row)
core_set = set(core_refs)
partition_set = set(partition_refs)
candidate = requested if requested in core_set else (core_refs[0] if core_refs else '')
candidate_index = core_refs.index(candidate) if candidate in core_set else -1
aligned_search_text = search_rows[candidate_index] if 0 <= candidate_index < len(search_rows) else None
report = {
'schema': 'pipelinenews.atlas-deep-link-identity-diagnosis.v2',
'requested_repd_ref': requested,
'requested_in_core': requested in core_set,
'requested_in_partitions': requested in partition_set,
'requested_locations': sorted(set(requested_locations)),
'requested_partition_rows': requested_partition_rows[:2],
'core_rows': len(core_rows),
'core_unique_refs': len(core_set),
'search_rows': len(search_rows),
'search_aligned_to_core': len(search_rows) == len(core_rows),
'partition_files': len(partition_files),
'partition_refs': len(partition_refs),
'partition_unique_refs': len(partition_set),
'core_partition_identity_match': core_set == partition_set,
'recommended_golden_repd_ref': candidate,
'recommended_core_index': candidate_index,
'recommended_search_text': aligned_search_text,
'first_core_refs': core_refs[:10],
'first_core_row': core_rows[0] if core_rows else None,
'first_search_row': search_rows[0] if search_rows else None,
'first_partition_row': rows(load(partition_files[0]))[0] if partition_files and rows(load(partition_files[0])) else None,
'duplicate_core_refs': [key for key, count in Counter(core_refs).items() if count > 1][:10],
'duplicate_partition_refs': [key for key, count in Counter(partition_refs).items() if count > 1][:10],
}
Path('/tmp/atlas-deep-link-identity-diagnosis.json').write_text(
json.dumps(report, indent=2, sort_keys=True) + '\n', encoding='utf-8'
)
print(json.dumps(report, indent=2, sort_keys=True))
if not candidate:
raise SystemExit('No browser-served REPD identity exists')
if len(search_rows) != len(core_rows):
raise SystemExit('Search index is not row-aligned to core data')
if core_set != partition_set:
raise SystemExit('Core and partition REPD identities diverge')
PY
- name: Publish exact diagnosis
if: always()
run: |
set -euo pipefail
{
echo '## PipelineNews Atlas deep-link identity diagnosis'
echo
if test -f /tmp/atlas-deep-link-identity-diagnosis.json; then
echo '```json'
cat /tmp/atlas-deep-link-identity-diagnosis.json
echo '```'
else
echo 'Diagnosis report was not produced.'
fi
} >> "$GITHUB_STEP_SUMMARY"PipelineNews Bootstrap Five Hour Atlas Integration Workflow
A GitHub Actions workflow. Runs on push and by hand.
automationpipelinenews / .github/workflows/202608300430-bootstrap-five-hour-atlas-integration.yml · lines 1–169 of 169 · version 2026-08-30 04:30 · Entry point
- What it does
- It runs automated jobs on GitHub Actions. Side effects: changes the web page (DOM); reads or writes files; makes network requests; starts processes.
- Why it exists in the grid workflow
- Domain stage upstream_foresight (path word 'atlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight.
- Inputs & outputs
- In: JSON file gridatlas-v9-current.json. Out: commits pushed to the repository.
- Downstream impact
- It is itself an entry point (workflow); no other file was found loading it.
- What it achieves
- No statement of purpose was found in the file, a README line naming it, or its name.
- Why it matters
- No other file in the estate was found to import it; it is an entry point.
- Application
- pipelinenews · .github/workflows · workflow
- Uses
- PipelineNews Sync Atlas V9 Deep Links (workflow run)
- Used by
- none found
- Produces
- none declared
- Defines here
- 202608300430 Bootstrap five-hour PipelineNews Atlas integration
- Cannot conclude
- Whether this code runs, is used by a live app today, or is correct. This is a static reading.
- Evidence
- pipelinenews@45c944c8640a9d7ae65edb51d66032ba204f3f46 .github/workflows/202608300430-bootstrap-five-hour-atlas-integration.yml:1-169 · blob 7fd65fde7adbed40d6e8e3329946c0aeeafd8e0f · GitHub at these lines
- State
- achieves: name · context: readme_derived · stage: output · effects: dom, filesystem, network, process · domain stage: upstream_foresight · users: IPP_developer, ICP_grid_engineer · canonical: production_core
name: 202608300430 Bootstrap five-hour PipelineNews Atlas integration
on:
push:
branches: [main]
paths:
- '.github/workflows/202608300430-bootstrap-five-hour-atlas-integration.yml'
workflow_dispatch:
permissions:
contents: write
concurrency:
group: pipelinenews-five-hour-atlas-bootstrap
cancel-in-progress: false
env:
PYTHONDONTWRITEBYTECODE: '1'
jobs:
bootstrap:
name: Repair Atlas source-of-truth dependency and bound five-hour retries
runs-on: ubuntu-24.04
timeout-minutes: 8
steps:
- name: Checkout exact PipelineNews source boundary
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
with:
ref: ${{ github.sha }}
fetch-depth: 120
persist-credentials: true
- name: Repair direct GridAtlas contract and five-hour conductors
run: |
set -euo pipefail
python3 - <<'PY'
from pathlib import Path
script_path = Path('scripts/202608300232-sync-atlas-v9-deep-links.py')
script = script_path.read_text(encoding='utf-8')
old_normalise = '''def normalise_base(value: str) -> str:
parsed = urlparse(value)
require(parsed.scheme == "https", "Atlas base must use HTTPS")
require(parsed.netloc in {"globalgrid2050.com", "www.globalgrid2050.com"}, "Atlas base must use GlobalGrid2050")
require(re.fullmatch(r"/\\d{12}-atlas-v9/", parsed.path) is not None, "Atlas base is not an immutable V9 route")
return value.rstrip("/") + "/"
'''.replace(' ', '')
new_normalise = '''def normalise_base(value: str, release_id: str) -> str:
parsed = urlparse(value)
require(parsed.scheme == "https", "Atlas base must use HTTPS")
if parsed.netloc == "ventusltd.github.io":
expected_path = f"/gridatlas/{release_id}/"
elif parsed.netloc in {"globalgrid2050.com", "www.globalgrid2050.com"}:
expected_path = f"/{release_id}/"
else:
raise RuntimeError("Atlas base must use governed GridAtlas or GlobalGrid2050 hosting")
require(parsed.path == expected_path, "Atlas base is not the exact immutable V9 route")
require(not parsed.query and not parsed.fragment, "Atlas base must not contain query or fragment data")
return value.rstrip("/") + "/"
'''.replace(' ', '')
if script.count(old_normalise) != 1:
raise SystemExit('PipelineNews normalise_base anchor mismatch')
script = script.replace(old_normalise, new_normalise, 1)
script = script.replace(
' parser.add_argument("--globalgrid", required=True, type=Path)\n',
' parser.add_argument("--globalgrid", type=Path)\n',
1,
)
old_pointer = ''' global_pointer = load(args.globalgrid / "state/gridatlas-v9-current.json")
require(global_pointer.get("classification") == "MIRRORED_PROMOTED_GRIDATLAS_V9", "GlobalGrid mirror is not promoted")
require(global_pointer.get("release_id") == release_id, "GlobalGrid mirror and Atlas pointer disagree")
base_url = normalise_base(str(global_pointer.get("globalgrid_live_url") or ""))
'''.replace(' ', '')
new_pointer = ''' base_url = normalise_base(str(current.get("live_url") or ""), release_id)
globalgrid_mirror_verified = False
if args.globalgrid:
global_pointer_path = args.globalgrid / "state/gridatlas-v9-current.json"
if global_pointer_path.is_file():
global_pointer = load(global_pointer_path)
if (
global_pointer.get("classification") == "MIRRORED_PROMOTED_GRIDATLAS_V9"
and global_pointer.get("release_id") == release_id
):
normalise_base(str(global_pointer.get("globalgrid_live_url") or ""), release_id)
globalgrid_mirror_verified = True
'''.replace(' ', '')
if script.count(old_pointer) != 1:
raise SystemExit('PipelineNews GlobalGrid dependency anchor mismatch')
script = script.replace(old_pointer, new_pointer, 1)
old_field = ' "globalgrid_pointer": "Ventusltd/globalgrid2050:state/gridatlas-v9-current.json",\n'
new_field = (
' "globalgrid_pointer": "Ventusltd/globalgrid2050:state/gridatlas-v9-current.json" if args.globalgrid else None,\n'
' "globalgrid_mirror_verified": globalgrid_mirror_verified,\n'
)
if script.count(old_field) != 1:
raise SystemExit('PipelineNews pointer evidence anchor mismatch')
script = script.replace(old_field, new_field, 1)
script_path.write_text(script, encoding='utf-8', newline='\n')
sync_path = Path('.github/workflows/202608300232-sync-atlas-v9-deep-links.yml')
sync = sync_path.read_text(encoding='utf-8')
replacements = [
(" - cron: '27,57 * * * *'", " - cron: '20 4-8 30 8 *'"),
(' cancel-in-progress: false\n\njobs:',
" cancel-in-progress: false\n\nenv:\n PYTHONDONTWRITEBYTECODE: '1'\n MISSION_INCEPTED_AT: '2026-08-30T03:30:00Z'\n MISSION_EXPIRES_AT: '2026-08-30T08:35:00Z'\n\njobs:"),
(' - name: Checkout exact PipelineNews source boundary\n uses:',
" - name: Enforce bounded five-hour mission window\n id: window\n run: |\n set -euo pipefail\n now=\"$(date -u +%s)\"\n expires=\"$(date -u -d \"$MISSION_EXPIRES_AT\" +%s)\"\n if (( now > expires )); then\n echo 'active=false' >> \"$GITHUB_OUTPUT\"\n echo \"PipelineNews five-hour source-sync mission retired … [line shortened here: 683 characters; full line on GitHub]
(' - name: Require exact current main and validate synchroniser\n run:',
" - name: Require exact current main and validate synchroniser\n if: steps.window.outputs.active == 'true'\n run:"),
(' - name: Fetch governed Atlas and GlobalGrid pointers\n run: |\n set -euo pipefail\n rm -rf "$RUNNER_TEMP/gridatlas" "$RUNNER_TEMP/globalgrid2050"\n git clone --depth 1 https://github.com/Ventusltd/gridatlas.git "$RUNNER_TEMP/gridatlas"\n git clone --depth 1 https://github.com/Ventusltd/globalgrid2050.git "$RUNNER_TEMP/globalgrid2050" … [line shortened here: 402 characters; full line on GitHub]
" - name: Fetch governed GridAtlas pointer\n if: steps.window.outputs.active == 'true'\n run: |\n set -euo pipefail\n rm -rf \"$RUNNER_TEMP/gridatlas\"\n git clone --depth 1 https://github.com/Ventusltd/gridatlas.git \"$RUNNER_TEMP/gridatlas\""),
(' - name: Synchronise canonical Atlas V9 deep links\n id: sync\n run:',
" - name: Synchronise canonical Atlas V9 deep links\n id: sync\n if: steps.window.outputs.active == 'true'\n run:"),
(' --globalgrid "$RUNNER_TEMP/globalgrid2050" \\\n', ''),
("${{ steps.sync.outputs.base_url || 'waiting for GlobalGrid mirror' }}",
"${{ steps.sync.outputs.base_url || 'waiting for verified GridAtlas' }}"),
]
for before, after in replacements:
if sync.count(before) != 1:
raise SystemExit(f'PipelineNews sync workflow anchor mismatch: {before[:80]}')
sync = sync.replace(before, after, 1)
sync_path.write_text(sync, encoding='utf-8', newline='\n')
successor_path = Path('.github/workflows/202608300309-current-gridatlas-v9-deep-link-successor.yml')
successor = successor_path.read_text(encoding='utf-8')
successor_replacements = [
(" - '.github/workflows/202608300309-current-gridatlas-v9-deep-link-successor.yml'\n", ''),
(" - cron: '17 * * * *'", " - cron: '30 4-8 30 8 *'"),
(" GOLDEN_REPD_REF: '9873'", " GOLDEN_REPD_REF: '13599'"),
(' PUBLIC_URL: https://ventusltd.github.io/pipelinenews/releases/202608300309-pipelinenews/\n',
" PUBLIC_URL: https://ventusltd.github.io/pipelinenews/releases/202608300309-pipelinenews/\n PYTHONDONTWRITEBYTECODE: '1'\n MISSION_INCEPTED_AT: '2026-08-30T03:30:00Z'\n MISSION_EXPIRES_AT: '2026-08-30T08:35:00Z'\n"),
(' - name: Resolve promotion-eligible Atlas receiver\n id: atlas\n run: |\n set -euo pipefail\n curl --fail',
" - name: Resolve promotion-eligible Atlas receiver\n id: atlas\n run: |\n set -euo pipefail\n now=\"$(date -u +%s)\"\n expires=\"$(date -u -d \"$MISSION_EXPIRES_AT\" +%s)\"\n if (( now > expires )); then\n echo 'ready=false' >> \"$GITHUB_OUTPUT\"\n echo \"PipelineNews five-hour exact-link mission retired a … [line shortened here: 525 characters; full line on GitHub]
]
for before, after in successor_replacements:
if successor.count(before) != 1:
raise SystemExit(f'PipelineNews successor workflow anchor mismatch: {before[:80]}')
successor = successor.replace(before, after, 1)
successor_path.write_text(successor, encoding='utf-8', newline='\n')
PY
python3 -m py_compile scripts/202608300232-sync-atlas-v9-deep-links.py
git diff --check
grep -q "cron: '20 4-8 30 8 \*'" .github/workflows/202608300232-sync-atlas-v9-deep-links.yml
grep -q "cron: '30 4-8 30 8 \*'" .github/workflows/202608300309-current-gridatlas-v9-deep-link-successor.yml
grep -q "GOLDEN_REPD_REF: '13599'" .github/workflows/202608300309-current-gridatlas-v9-deep-link-successor.yml
grep -q 'globalgrid_mirror_verified' scripts/202608300232-sync-atlas-v9-deep-links.py
- name: Compare-and-swap repaired five-hour mission onto main
run: |
set -euo pipefail
git fetch --no-tags origin main:refs/remotes/origin/main
test "$(git rev-parse origin/main)" = "$GITHUB_SHA"
git add \
scripts/202608300232-sync-atlas-v9-deep-links.py \
.github/workflows/202608300232-sync-atlas-v9-deep-links.yml \
.github/workflows/202608300309-current-gridatlas-v9-deep-link-successor.yml
mapfile -t staged < <(git diff --cached --name-only | sort)
expected=(
'.github/workflows/202608300232-sync-atlas-v9-deep-links.yml'
'.github/workflows/202608300309-current-gridatlas-v9-deep-link-successor.yml'
'scripts/202608300232-sync-atlas-v9-deep-links.py'
)
test "${staged[*]}" = "${expected[*]}"
git config user.name pipelinenews-five-hour-mission-bot
git config user.email actions@users.noreply.github.com
git commit -m '202608300430: repair and run Atlas integration for five hours'
git push origin HEAD:mainPipelineNews Repair Five Hour Bootstrap Workflow
A GitHub Actions workflow. Runs on push and by hand.
automationpipelinenews / .github/workflows/202608300434-repair-five-hour-bootstrap.yml · lines 1–49 of 49 · version 2026-08-30 04:34 · Entry point
- What it does
- It runs automated jobs on GitHub Actions. Side effects: reads or writes files; starts processes.
- Why it exists in the grid workflow
- Domain stage upstream_foresight (repository name word 'pipelinenews'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight.
- Inputs & outputs
- Out: commits pushed to the repository.
- Downstream impact
- It is itself an entry point (workflow); no other file was found loading it.
- What it achieves
- No statement of purpose was found in the file, a README line naming it, or its name.
- Why it matters
- No other file in the estate was found to import it; it is an entry point.
- Application
- pipelinenews · .github/workflows · workflow
- Uses
- none found
- Used by
- none found
- Produces
- none declared
- Defines here
- 202608300434 Repair PipelineNews five-hour bootstrap
- Cannot conclude
- Whether this code runs, is used by a live app today, or is correct. This is a static reading.
- Evidence
- pipelinenews@45c944c8640a9d7ae65edb51d66032ba204f3f46 .github/workflows/202608300434-repair-five-hour-bootstrap.yml:1-49 · blob 0cd6ac1502f1bbd4761c147291823e07d45f14b1 · GitHub at these lines
- State
- achieves: name · context: readme_derived · stage: output · effects: filesystem, process · domain stage: upstream_foresight · users: IPP_developer, ICP_grid_engineer · canonical: production_core
name: 202608300434 Repair PipelineNews five-hour bootstrap
on:
push:
branches: [main]
paths:
- '.github/workflows/202608300434-repair-five-hour-bootstrap.yml'
workflow_dispatch:
permissions:
contents: write
jobs:
repair:
runs-on: ubuntu-24.04
timeout-minutes: 4
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
with:
ref: ${{ github.sha }}
fetch-depth: 20
persist-credentials: true
- name: Preserve relative Python indentation in bootstrap replacements
run: |
set -euo pipefail
python3 - <<'PY'
from pathlib import Path
path = Path('.github/workflows/202608300430-bootstrap-five-hour-atlas-integration.yml')
text = path.read_text(encoding='utf-8')
anchor = "'''.replace(' ', '')"
count = text.count(anchor)
if count != 4:
raise SystemExit(f'expected four indentation anchors, found {count}')
path.write_text(text.replace(anchor, "'''"), encoding='utf-8', newline='\n')
PY
git diff --check
- name: Compare-and-swap bootstrap repair
run: |
set -euo pipefail
git fetch --no-tags origin main:refs/remotes/origin/main
test "$(git rev-parse origin/main)" = "$GITHUB_SHA"
git add .github/workflows/202608300430-bootstrap-five-hour-atlas-integration.yml
test "$(git diff --cached --name-only)" = .github/workflows/202608300430-bootstrap-five-hour-atlas-integration.yml
git config user.name pipelinenews-bootstrap-repair-bot
git config user.email actions@users.noreply.github.com
git commit -m '202608300434: preserve PipelineNews patch indentation'
git push origin HEAD:main