GLOBALGRID2050 / EXPLORE CODE

Part of: Explore Code / Automation and CI / data-federation-map-for-globalgrid2050-all-repos / .github/workflows

Po3 Split Gate Workflow and 4 more files

A GitHub Actions workflow in Data Federation Map for GlobalGrid2050 All Repos. Runs by hand.

615 lines of YAML from data-federation-map-for-globalgrid2050-all-repos, in 5 files. Topic: Automation and CI. Section 1695 of 2044.

Cut 2026-12-06T03:07:51+00:00. A copy for reading; the repository at the stated commit is the source.

In the State lines below, domain stage, users and canonical status are rule-based first approximations from code and path evidence (rules explore-agent-rules-v1), not observed facts: the rules.

In this section

  1. Gridbot Federation Map Weekly Workflow automation · data-federation-map-for-globalgrid2050-all-repos / .github/workflows/gridbot_federation_map_weekly.yml lines 1–182
  2. Po3 Split Gate Workflow automation · data-federation-map-for-globalgrid2050-all-repos / .github/workflows/po3_split_gate.yml lines 1–201
  3. Po3b Focus Card Apply Workflow automation · data-federation-map-for-globalgrid2050-all-repos / .github/workflows/po3b_focus_card_apply.yml lines 1–71
  4. Publish Spider Temp Sandbox Workflow automation · data-federation-map-for-globalgrid2050-all-repos / .github/workflows/publish_spider_temp_sandbox.yml lines 1–59
  5. Spider Full Po Branch Build Workflow automation · data-federation-map-for-globalgrid2050-all-repos / .github/workflows/spider_full_po_branch_build.yml lines 1–102

Gridbot Federation Map Weekly Workflow

A GitHub Actions workflow in Data Federation Map for GlobalGrid2050 All Repos that builds and publishes the site. Runs on a schedule and by hand.

automationdata-federation-map-for-globalgrid2050-all-repos / .github/workflows/gridbot_federation_map_weekly.yml · lines 1–182 of 182 · Entry point

What it does
It builds and publishes its content. Side effects: starts processes; uses storage (browser storage, DuckDB or Parquet).
Inputs & outputs
In: DuckDB queries. 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
Runs Build Federation Map (`scripts/build_federation_map.py`) and Publish Federation JSON (`scripts/publish_federation_json.py`).
Why it matters
No other file in the estate was found to import it; it is an entry point.
Application
data-federation-map-for-globalgrid2050-all-repos · .github/workflows · workflow
Uses
Build Federation Map (workflow run), Publish Federation JSON (workflow run)
Used by
none found
Produces
none declared
Defines here
GridBot Federation Publish Weekly
Cannot conclude
Whether this code runs, is used by a live app today, or is correct. This is a static reading.
Evidence
data-federation-map-for-globalgrid2050-all-repos@fffd624e77d820ebc04ab25f9d97871b254be61c .github/workflows/gridbot_federation_map_weekly.yml:1-182 · blob 74b7b394b364f7eba104346cb8e3ae1dbc4e0a2f · GitHub at these lines
State
achieves: comment · context: readme_derived · stage: ingest · effects: process, storage · domain stage: unknown · users: none · canonical: supporting_data
name: GridBot Federation Publish Weekly

on:
  schedule:
    - cron: '31 6 * * 1'
  workflow_dispatch:
    inputs:
      mode:
        description: 'audit builds the plan and writes reports only; apply publishes verified Parquet and JSON after human dispatch'
        type: choice
        required: true
        default: audit
        options:
          - audit
          - apply
      commit_reports:
        description: 'Commit audit report and ledger evidence when mode=audit'
        type: choice
        required: true
        default: 'false'
        options:
          - 'true'
          - 'false'

permissions:
  contents: write

concurrency:
  group: gridbot-federation-publish-weekly
  cancel-in-progress: false

env:
  RUN_MODE: ${{ github.event_name == 'workflow_dispatch' && inputs.mode || 'audit' }}
  COMMIT_REPORTS: ${{ github.event_name == 'workflow_dispatch' && inputs.commit_reports || 'false' }}

jobs:
  federation-publish:
    runs-on: ubuntu-latest
    timeout-minutes: 60
    environment: ${{ github.event_name == 'workflow_dispatch' && inputs.mode == 'apply' && 'federation-apply' || 'federation-audit' }}

    steps:
      - name: Checkout federation map repo using GridBot PAT
        uses: actions/checkout@v4
        with:
          fetch-depth: 0
          token: ${{ secrets.GRIDBOT_PAT }}

      - name: Check GridBot PAT is available
        env:
          GRIDBOT_PAT: ${{ secrets.GRIDBOT_PAT }}
        run: |
          set -euo pipefail
          if [ -z "${GRIDBOT_PAT}" ]; then
            echo "GRIDBOT_PAT is missing or unavailable to this workflow."
            exit 1
          fi
          echo "GRIDBOT_PAT is available to this workflow."

      - name: Enforce mode and apply gate
        run: |
          set -euo pipefail
          echo "RUN_MODE=${RUN_MODE}"
          echo "COMMIT_REPORTS=${COMMIT_REPORTS}"
          if [ "${RUN_MODE}" != "audit" ] && [ "${RUN_MODE}" != "apply" ]; then
            echo "Invalid mode: ${RUN_MODE}"
            exit 1
          fi
          if [ "${RUN_MODE}" = "apply" ] && [ "${GITHUB_EVENT_NAME}" != "workflow_dispatch" ]; then
            echo "Apply is only allowed from a human workflow_dispatch."
            exit 1
          fi
          if [ "${GITHUB_EVENT_NAME}" != "workflow_dispatch" ] && [ "${RUN_MODE}" != "audit" ]; then
            echo "Scheduled/default runs must remain audit only."
            exit 1
          fi

      - name: Sync latest main before processing
        run: git pull --ff-only origin main

      - name: Set up Python
        uses: actions/setup-python@v5
        with:
          python-version: '3.11'

      - name: Install build dependencies
        run: |
          set -euo pipefail
          python -m pip install --upgrade pip
          pip install duckdb requests

      - name: Run scanner
        id: scanner
        continue-on-error: true
        env:
          GH_TOKEN: ${{ secrets.GRIDBOT_PAT }}
          GRIDBOT_PAT: ${{ secrets.GRIDBOT_PAT }}
        run: |
          set -euo pipefail
          python scripts/build_federation_map.py --owner Ventusltd

      - name: Run federation publish bridge
        env:
          GRIDBOT_PAT: ${{ secrets.GRIDBOT_PAT }}
          GH_TOKEN: ${{ secrets.GRIDBOT_PAT }}
        run: |
          set -euo pipefail
          python scripts/publish_federation_json.py \
            --mode "${RUN_MODE}" \
            --repository "${GITHUB_REPOSITORY}" \
            --scanner-status "${{ steps.scanner.outcome }}"

      - name: Upload federation publish report
        uses: actions/upload-artifact@v4
        if: always()
        with:
          name: federation-publish-report
          if-no-files-found: warn
          path: |
            reports/FEDERATION_MAP_LATEST.md
            reports/json/FEDERATION_MAP_LATEST.json
            reports/FEDERATION_PUBLISH_LATEST.md
            reports/json/FEDERATION_PUBLISH_LATEST.json
            live_sandbox/federation_control_ledger/PUBLISH_LEDGER.md
            data/federation_map/current/nodes.parquet
            data/federation_map/current/edges.parquet

      - name: Commit federation publish audit evidence
        if: ${{ success() && env.RUN_MODE == 'audit' && env.COMMIT_REPORTS == 'true' }}
        env:
          GH_WRITE_TOKEN: ${{ secrets.GRIDBOT_PAT }}
        run: |
          set -euo pipefail
          git config user.name "Gridbot"
          git config user.email "gridbot@users.noreply.github.com"
          git add \
            scripts/build_federation_map.py \
            scripts/publish_federation_json.py \
            .github/workflows/gridbot_federation_map_weekly.yml \
            every-drop-is-the-ocean/AUDITOR_VERIFICATION_CONTRACT.md \
            reports/FEDERATION_MAP_LATEST.md \
            reports/json/FEDERATION_MAP_LATEST.json \
            reports/FEDERATION_PUBLISH_LATEST.md \
            reports/json/FEDERATION_PUBLISH_LATEST.json \
            live_sandbox/federation_control_ledger/PUBLISH_LEDGER.md
          if git diff --cached --name-only | grep -E '^(live_sandbox/federation_control_ledger/data/(nodes|edges)\.json|data/federation_map/current/(nodes|edges)\.parquet|data/federation_map/snapshots/)'; then
            echo "Audit commit attempted to stage target JSON or Parquet."
            exit 1
          fi
          if git diff --cached --quiet; then
            echo "No federation publish audit evidence changes to commit."
          else
            git commit -m "data: provenance-discriminator audit"
            git push origin HEAD:${GITHUB_REF_NAME}
          fi

      - name: Commit federation publish apply output
        if: ${{ success() && env.RUN_MODE == 'apply' }}
        env:
          GH_WRITE_TOKEN: ${{ secrets.GRIDBOT_PAT }}
        run: |
          set -euo pipefail
          git config user.name "Gridbot"
          git config user.email "gridbot@users.noreply.github.com"
          git add \
            data/federation_map/current/nodes.parquet \
            data/federation_map/current/edges.parquet \
            data/federation_map/snapshots \
            reports/FEDERATION_MAP_LATEST.md \
            reports/json/FEDERATION_MAP_LATEST.json \
            live_sandbox/federation_control_ledger/data/nodes.json \
            live_sandbox/federation_control_ledger/data/edges.json \
            live_sandbox/federation_control_ledger/PUBLISH_LEDGER.md \
            reports/FEDERATION_PUBLISH_LATEST.md \
            reports/json/FEDERATION_PUBLISH_LATEST.json \
            DEPENDENCIES.md
          if git diff --cached --quiet; then
            echo "No federation publish apply changes to commit."
          else
            git commit -m "data: provenance-discriminator apply"
            git push origin HEAD:${GITHUB_REF_NAME}
          fi

Po3 Split Gate Workflow

A GitHub Actions workflow in Data Federation Map for GlobalGrid2050 All Repos. Runs by hand.

automationdata-federation-map-for-globalgrid2050-all-repos / .github/workflows/po3_split_gate.yml · lines 1–201 of 201 · Entry point

What it does
It runs automated jobs on GitHub Actions. Side effects: changes the web page (DOM); reads or writes files; starts processes.
Why it exists in the grid workflow
Domain stage field_execution (path word 'gate'): on-road and off-road field navigation to the farm gate (access gates, terrain slope, ground-bearing limits, electrical hazards), as Ventus Ltd describes its SatNav work.
Inputs & outputs
In: JSON file nodes.json; JSON file edges.json; JSON file PO3_SPLIT_GATE_LATEST.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
Named “PO 3 Split Gate”.
Why it matters
No other file in the estate was found to import it; it is an entry point.
Application
data-federation-map-for-globalgrid2050-all-repos · .github/workflows · workflow
Uses
none found
Used by
none found
Produces
none declared
Defines here
PO 3 Split Gate
Cannot conclude
Whether this code runs, is used by a live app today, or is correct. This is a static reading.
Evidence
data-federation-map-for-globalgrid2050-all-repos@fffd624e77d820ebc04ab25f9d97871b254be61c .github/workflows/po3_split_gate.yml:1-201 · blob 28ea5225ab2bc03e863c23600310a989bac0e6c9 · GitHub at these lines
State
achieves: comment · context: readme_derived · stage: output · effects: dom, filesystem, process · domain stage: field_execution · users: EPC_contractor, landowner_planner · canonical: supporting_data
name: PO 3 Split Gate

on:
  workflow_dispatch:
    inputs:
      target:
        description: "Which split PO gate to audit"
        required: true
        default: "po3a"
        type: choice
        options:
          - po3a
          - po3b
          - po3c
      commit_reports:
        description: "Commit generated reports back to main"
        required: true
        default: "false"
        type: choice
        options:
          - "false"
          - "true"

permissions:
  contents: write

concurrency:
  group: po3-split-gate
  cancel-in-progress: false

jobs:
  audit:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v4
        with:
          fetch-depth: 0

      - name: Run PO 3 split gate
        shell: bash
        run: |
          set -euo pipefail
          python - <<'PY'
          from __future__ import annotations
          import hashlib
          import json
          import os
          from datetime import datetime, timezone
          from pathlib import Path

          target = os.environ.get("TARGET", "po3a")
          root = Path.cwd()
          report_dir = root / "reports"
          json_dir = report_dir / "json"
          report_dir.mkdir(exist_ok=True)
          json_dir.mkdir(parents=True, exist_ok=True)

          checks = []
          notes = []

          def add(name: str, passed: bool, detail: str = "") -> None:
              checks.append({"check": name, "pass": bool(passed), "detail": detail})

          def exists(path: str) -> bool:
              return (root / path).exists()

          def read(path: str) -> str:
              return (root / path).read_text(encoding="utf-8")

          def md5(path: Path) -> str:
              return hashlib.md5(path.read_bytes()).hexdigest()

          add("audit_law_present", exists("every-drop-is-the-ocean/AUDIT_AND_COMMIT_EMPLOYERS_REQUIREMENT.md"), "binding audit law file must be present")
          add("po_ledger_present", exists("reports/PO_LEDGER.md"), "ledger must be present for split gate context")
          add("failed_po3_external_js_absent", not exists("dashboard/federation_radial_po3.js"), "failed PO3 external JS must not be present")
          add("live_dashboard_present", exists("dashboard/federation_radial.html"), "live dashboard must exist")
          add("live_css_present", exists("dashboard/federation_radial.css"), "live CSS must exist")

          html = read("dashboard/federation_radial.html") if exists("dashboard/federation_radial.html") else ""
          css = read("dashboard/federation_radial.css") if exists("dashboard/federation_radial.css") else ""
          add("dashboard_inline_renderer_preserved", "<script src=\"federation_radial_po3.js\"" not in html and "drawSpider" in html, "dashboard should not load failed PO3 JS and should retain inline Spider renderer marker")
          add("spider_tokens_present", all(token in html for token in ["spider", "svg", "marker", "arrow"]) or all(token in css for token in ["spider", "gold"]), "basic Spider renderer/style tokens should remain present")

          mirror_dir = root / "dashboard" / "back_mirrors"
          add("back_mirror_directory_present", mirror_dir.exists(), "dashboard/back_mirrors should exist as recovery anchor")
          if mirror_dir.exists():
              mirror_files = {p.name: p for p in mirror_dir.rglob("*") if p.is_file()}
              html_mirror = mirror_files.get("federation_radial.html")
              css_mirror = mirror_files.get("federation_radial.css")
              if html_mirror and exists("dashboard/federation_radial.html"):
                  add("html_matches_available_back_mirror", md5(html_mirror) == md5(root / "dashboard/federation_radial.html"), f"mirror={html_mirror}")
              else:
                  notes.append("No direct federation_radial.html mirror file found for byte comparison.")
              if css_mirror and exists("dashboard/federation_radial.css"):
                  add("css_matches_available_back_mirror", md5(css_mirror) == md5(root / "dashboard/federation_radial.css"), f"mirror={css_mirror}")
              else:
                  notes.append("No direct federation_radial.css mirror file found for byte comparison.")

          if target == "po3a":
              base = "data/federation_map/contents/provenance=declared/repo=Ventusltd__globalgrid2050"
              manifest_path = f"{base}/manifest.json"
              nodes_path = f"{base}/nodes.json"
              edges_path = f"{base}/edges.json"
              add("po3a_manifest_present", exists(manifest_path), manifest_path)
              add("po3a_nodes_present", exists(nodes_path), nodes_path)
              add("po3a_edges_present", exists(edges_path), edges_path)
              manifest = json.loads(read(manifest_path)) if exists(manifest_path) else {}
              nodes = json.loads(read(nodes_path)) if exists(nodes_path) else []
              edges = json.loads(read(edges_path)) if exists(edges_path) else []
              manifest_text = json.dumps(manifest, sort_keys=True)
              nodes_text = json.dumps(nodes, sort_keys=True)
              edges_text = json.dumps(edges, sort_keys=True)
              add("po3a_manifest_stamps_monolith_sha_88894be", "88894be" in manifest_text, "manifest should tie cartridge to scanned monolith state")
              add("po3a_generation_history_path_correct", "uk_energy_tracking_v6/generation_history" in nodes_text, "generation_history must not be treated as root folder")
              add("po3a_why_pages_are_markdown_blobs", "why_ventusltd_building_globalgrid2050/uk_energy_tracker_purpose.md" in nodes_text and "why_ventusltd_building_globalgrid2050/physical_layer_solar_cable_integrity.md" in nodes_text, "why_ventusltd entries must be markdown blobs")
              add("po3a_edges_have_rows", isinstance(edges, list) and len(edges) > 0, f"edgeRows={len(edges) if isinstance(edges, list) else 'not-list'}")
              add("po3a_declared_only_text", "derived" not in (manifest_text + nodes_text + edges_text).lower(), "PO3A committed contents cartridge should not claim derived rows")
          elif target == "po3b":
              add("po3b_no_external_po3_js", not exists("dashboard/federation_radial_po3.js"), "PO3B must not revive failed external JS")
              add("po3b_renderer_not_split", "federation_radial_po3.js" not in html, "PO3B must remain minimal inline dashboard diff")
              add("po3b_focus_card_scope_only", "window.open" in html or "open(" in html, "PO3B should be judged only after focus-card open behaviour is intentionally implemented")
          elif target == "po3c":
              expected = "../data/federation_map/contents/provenance=declared/repo=Ventusltd__globalgrid2050/"
              add("po3c_expected_relative_data_path_present", expected in html, "PO3C should fetch committed JSON via Pages-relative path")
              add("po3c_no_dashboard_data_path", "dashboard/data/federation_map/contents" not in html, "PO3C must not fetch dashboard/data fallback as truth")
              add("po3c_no_hardcoded_globalgrid_child_graph", "repd_grid_atlasv8" not in html or expected in html, "child scope should come from committed JSON, not hard-coded renderer truth")
          else:
              add("target_valid", False, f"unknown target {target}")

          passed = all(item["pass"] for item in checks)
          payload = {
              "schema_version": "po3_split_gate_report.v1",
              "generated_utc": datetime.now(timezone.utc).isoformat(),
              "repository": "Ventusltd/data-federation-map-for-globalgrid2050-all-repos",
              "target": target,
              "mode": "audit",
              "data_law_result": "PASS" if passed else "FAIL",
              "checks": checks,
              "notes": notes,
              "next_action": "seek independent clean-clone receipt before closing" if passed else "fix only the failing scoped PO before moving on",
              "rollback": "revert the workflow commit if this gate itself is wrong; do not revert target PO commits from this workflow"
          }

          json_path = json_dir / "PO3_SPLIT_GATE_LATEST.json"
          md_path = report_dir / "PO3_SPLIT_GATE_LATEST.md"
          json_path.write_text(json.dumps(payload, indent=2, sort_keys=True) + "\n", encoding="utf-8")

          lines = [
              "# PO 3 Split Gate Latest",
              "",
              f"Schema version: `{payload['schema_version']}`",
              f"Generated UTC: `{payload['generated_utc']}`",
              f"Repository: `{payload['repository']}`",
              f"Target: `{target}`",
              "Mode: `audit`",
              f"Data-law result: `{payload['data_law_result']}`",
              "",
              "## Checks",
              "",
              "| Check | Result | Detail |",
              "|---|---:|---|"
          ]
          for item in checks:
              result = "PASS" if item["pass"] else "FAIL"
              detail = str(item.get("detail", "")).replace("|", "\\|")
              lines.append(f"| `{item['check']}` | {result} | {detail} |")
          if notes:
              lines += ["", "## Notes", ""] + [f"- {note}" for note in notes]
          lines += ["", "## Next action", "", payload["next_action"], "", "## Rollback", "", payload["rollback"], ""]
          md_path.write_text("\n".join(lines), encoding="utf-8")
          print(json.dumps(payload, indent=2))
          if not passed:
              raise SystemExit(1)
          PY
        env:
          TARGET: ${{ inputs.target }}

      - name: Upload reports
        if: always()
        uses: actions/upload-artifact@v4
        with:
          name: po3-split-gate-reports
          path: |
            reports/PO3_SPLIT_GATE_LATEST.md
            reports/json/PO3_SPLIT_GATE_LATEST.json

      - name: Commit reports if requested
        if: ${{ always() && inputs.commit_reports == 'true' }}
        shell: bash
        run: |
          set -euo pipefail
          git config user.name "github-actions[bot]"
          git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
          git add reports/PO3_SPLIT_GATE_LATEST.md reports/json/PO3_SPLIT_GATE_LATEST.json
          if git diff --cached --quiet; then
            echo "No report changes to commit."
            exit 0
          fi
          git commit -m "docs: po3 split gate audit report"
          git push

Po3b Focus Card Apply Workflow

A GitHub Actions workflow in Data Federation Map for GlobalGrid2050 All Repos. Runs by hand.

automationdata-federation-map-for-globalgrid2050-all-repos / .github/workflows/po3b_focus_card_apply.yml · lines 1–71 of 71 · Entry point

What it does
It runs automated jobs on GitHub Actions. Side effects: changes the web page (DOM); reads or writes files; starts processes.
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
Named “PO 3B Focus Card Apply”.
Why it matters
No other file in the estate was found to import it; it is an entry point.
Application
data-federation-map-for-globalgrid2050-all-repos · .github/workflows · workflow
Uses
none found
Used by
none found
Produces
none declared
Defines here
PO 3B Focus Card Apply
Cannot conclude
Whether this code runs, is used by a live app today, or is correct. This is a static reading.
Evidence
data-federation-map-for-globalgrid2050-all-repos@fffd624e77d820ebc04ab25f9d97871b254be61c .github/workflows/po3b_focus_card_apply.yml:1-71 · blob 555528aa374dbda4dd43963d2c164ef7a32582dd · GitHub at these lines
State
achieves: comment · context: readme_derived · stage: output · effects: dom, filesystem, process · domain stage: unknown · users: none · canonical: supporting_data
name: PO 3B Focus Card Apply

on:
  workflow_dispatch:

permissions:
  contents: write

concurrency:
  group: po3b-focus-card-apply
  cancel-in-progress: false

jobs:
  apply:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout main
        uses: actions/checkout@v4
        with:
          fetch-depth: 0

      - name: Apply PO 3B focus card behaviour
        shell: bash
        run: |
          set -euo pipefail
          python - <<'PY'
          from pathlib import Path
          
          paths = [
              Path("dashboard/federation_radial.html"),
              Path("dashboard/sandbox/federation_radial_uniform.html"),
          ]
          
          old_col = 'function drawColumn(focus,out,inc){const nodes=S().nodes;const shell=document.createElement("div");shell.className="shell";shell.innerHTML=`<div class="focuswrap">${cardInner(focus,{center:true})}</div>`;const section='
          new_col = 'function drawColumn(focus,out,inc){const nodes=S().nodes;const shell=document.createElement("div");shell.className="shell";const dim=!actionable(focus),go=goLabel(focus);shell.innerHTML=`<div class="focuswrap">${cardInner(focus,{center:true,dim,go})}</div>`;shell.querySelector(".focuswrap").addEventListener("click",()=>handleTap(current));const section='
          old_spider = 'center.innerHTML=cardInner(focus,{center:true});canvas.appendChild(center);'
          new_spider = 'const centerDim=!actionable(focus),centerGo=goLabel(focus);center.innerHTML=cardInner(focus,{center:true,dim:centerDim,go:centerGo});center.addEventListener("click",()=>handleTap(current));canvas.appendChild(center);'
          
          for path in paths:
              text = path.read_text(encoding="utf-8")
              if text.count(old_col) != 1:
                  raise SystemExit(f"{path}: expected one drawColumn focus target, found {text.count(old_col)}")
              if text.count(old_spider) != 1:
                  raise SystemExit(f"{path}: expected one drawSpider centre target, found {text.count(old_spider)}")
              text = text.replace(old_col, new_col)
              text = text.replace(old_spider, new_spider)
              path.write_text(text, encoding="utf-8")
          PY

      - name: Verify scope
        shell: bash
        run: |
          set -euo pipefail
          changed="$(git diff --name-only)"
          printf '%s\n' "$changed"
          test "$changed" = $'dashboard/federation_radial.html\ndashboard/sandbox/federation_radial_uniform.html'
          git diff -- dashboard/federation_radial.html dashboard/sandbox/federation_radial_uniform.html

      - name: Commit PO 3B
        shell: bash
        run: |
          set -euo pipefail
          git config user.name "github-actions[bot]"
          git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
          git add dashboard/federation_radial.html dashboard/sandbox/federation_radial_uniform.html
          if git diff --cached --quiet; then
            echo "No PO 3B changes to commit."
            exit 1
          fi
          git commit -m "ui po3b focus card open behaviour"
          git push

Publish Spider Temp Sandbox Workflow

A GitHub Actions workflow in Data Federation Map for GlobalGrid2050 All Repos that builds and publishes the site. Runs by hand.

automationdata-federation-map-for-globalgrid2050-all-repos / .github/workflows/publish_spider_temp_sandbox.yml · lines 1–59 of 59 · Entry point

What it does
It builds and publishes its content. Side effects: reads or writes files; starts processes.
Why it exists in the grid workflow
Domain stage experimental (path word 'sandbox'): 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
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
Its name says it publishes spider temp sandbox.
Why it matters
No other file in the estate was found to import it; it is an entry point.
Application
data-federation-map-for-globalgrid2050-all-repos · .github/workflows · workflow
Uses
none found
Used by
none found
Produces
none declared
Defines here
Publish Spider Temp Sandbox
Cannot conclude
Whether this code runs, is used by a live app today, or is correct. This is a static reading.
Evidence
data-federation-map-for-globalgrid2050-all-repos@fffd624e77d820ebc04ab25f9d97871b254be61c .github/workflows/publish_spider_temp_sandbox.yml:1-59 · blob ed4879fe303759db814c62ca37045525bcd9cccf · GitHub at these lines
State
achieves: name · context: readme_derived · stage: output · effects: filesystem, process · domain stage: experimental · users: none · canonical: supporting_data
name: Publish Spider Temp Sandbox

on:
  workflow_dispatch:
    inputs:
      source_branch:
        description: Source branch containing tested Spider HTML
        required: true
        default: spider-full-po-test
      output_path:
        description: Temporary sandbox HTML path on main
        required: true
        default: dashboard/sandbox/spider_full_po_test.html

permissions:
  contents: write

jobs:
  publish:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
        with:
          ref: main
          fetch-depth: 0
      - name: Copy tested branch dashboard into temp sandbox page
        run: |
          set -euo pipefail
          git fetch origin "${{ inputs.source_branch }}:${{ inputs.source_branch }}"
          mkdir -p "$(dirname '${{ inputs.output_path }}')"
          git show "${{ inputs.source_branch }}:dashboard/federation_radial.html" > "${{ inputs.output_path }}"
          python3 - <<'PY'
          from pathlib import Path
          p=Path('${{ inputs.output_path }}')
          s=p.read_text(encoding='utf-8')
          s=s.replace('href="federation_radial.css"','href="../federation_radial.css"')
          s=s.replace('const CONTENTS_BASE="../data/federation_map/contents/provenance=declared/repo=Ventusltd__globalgrid2050/";','const CONTENTS_BASE="../../data/federation_map/contents/provenance=declared/repo=Ventusltd__globalgrid2050/";')
          p.write_text(s,encoding='utf-8')
          PY
      - name: Syntax check temp page
        run: |
          mkdir -p reports/spider-temp
          python3 - <<'PY'
          from pathlib import Path
          p=Path('${{ inputs.output_path }}')
          s=p.read_text(encoding='utf-8')
          js=s.split('<script>',1)[1].split('</script>',1)[0]
          Path('reports/spider-temp/temp.js').write_text(js,encoding='utf-8')
          assert 'href="../federation_radial.css"' in s
          assert 'const CONTENTS_BASE="../../data/federation_map/contents/provenance=declared/repo=Ventusltd__globalgrid2050/";' in s
          PY
          node --check reports/spider-temp/temp.js
      - name: Commit temp sandbox page
        run: |
          git config user.name "github-actions[bot]"
          git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
          git add "${{ inputs.output_path }}"
          git commit -m "dashboard: publish temp spider full po sandbox"
          git push

Spider Full Po Branch Build Workflow

A GitHub Actions workflow in Data Federation Map for GlobalGrid2050 All Repos. Runs by hand.

automationdata-federation-map-for-globalgrid2050-all-repos / .github/workflows/spider_full_po_branch_build.yml · lines 1–102 of 102 · 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 agent_infra (path word 'spider'): AI-agent memory, coordination and code audit (the multi-agent journey named in Ventus Ltd's brief).
Inputs & outputs
In: JSON file nodes.json; JSON file edges.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
Runs `.github/scripts/spider_patch_po.py` and `reports/spider-runtime/smoke.js`.
Why it matters
No other file in the estate was found to import it; it is an entry point.
Application
data-federation-map-for-globalgrid2050-all-repos · .github/workflows · workflow
Uses
Spider Patch Po (workflow run)
Used by
none found
Produces
none declared
Defines here
Spider Full PO Branch Build
Cannot conclude
Whether this code runs, is used by a live app today, or is correct. This is a static reading.
Evidence
data-federation-map-for-globalgrid2050-all-repos@fffd624e77d820ebc04ab25f9d97871b254be61c .github/workflows/spider_full_po_branch_build.yml:1-102 · blob 1a91985a62fa8b0e931bd5301865151b6e4e13a0 · GitHub at these lines
State
achieves: comment · context: readme_derived · stage: output · effects: filesystem, process · domain stage: agent_infra · users: ai_agent · canonical: supporting_data
name: Spider Full PO Branch Build

on:
  workflow_dispatch:
    inputs:
      branch_name:
        description: Test branch name
        required: true
        default: spider-full-po-test
      include_sandbox:
        description: Patch sandbox focus-card parity
        required: true
        type: choice
        default: "true"
        options: ["true", "false"]

permissions:
  contents: write

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
        with:
          ref: main
          fetch-depth: 0
      - name: Make test branch
        run: git checkout -B "${{ inputs.branch_name }}"
      - name: Patch code
        env:
          INCLUDE_SANDBOX: ${{ inputs.include_sandbox }}
        run: python3 .github/scripts/spider_patch_po.py
      - name: Check cartridge and scripts
        run: |
          mkdir -p reports/spider-runtime
          python3 - <<'PY'
          import json
          from pathlib import Path
          base=Path('data/federation_map/contents/provenance=declared/repo=Ventusltd__globalgrid2050')
          m=json.loads((base/'manifest.json').read_text())
          n=json.loads((base/'nodes.json').read_text())
          e=json.loads((base/'edges.json').read_text())
          assert m.get('scannedMonolithSHA')=='88894be', m
          assert len(n)==8, len(n)
          assert len(e)==11, len(e)
          print('cartridge OK')
          for f in ['dashboard/federation_radial.html','dashboard/sandbox/federation_radial_uniform.html']:
              s=Path(f).read_text(encoding='utf-8')
              js=s.split('<script>',1)[1].split('</script>',1)[0]
              out=Path('reports/spider-runtime')/(Path(f).name+'.js')
              out.write_text(js,encoding='utf-8')
              print(out)
          PY
          node --check reports/spider-runtime/federation_radial.html.js
          node --check reports/spider-runtime/federation_radial_uniform.html.js
      - name: Browser smoke test
        run: |
          npm init -y >/dev/null 2>&1
          npm install --no-save playwright@1 >/dev/null
          npx playwright install --with-deps chromium
          python3 -m http.server 8000 > reports/spider-runtime/http-server.log 2>&1 &
          sleep 2
          cat > reports/spider-runtime/smoke.js <<'JS'
          const { chromium } = require('playwright');
          (async()=>{
            const browser=await chromium.launch({headless:true});
            const page=await browser.newPage({viewport:{width:1440,height:1000}});
            const errors=[]; page.on('pageerror',e=>errors.push(String(e))); page.on('console',m=>{if(m.type()==='error')errors.push(m.text())});
            await page.goto('http://127.0.0.1:8000/dashboard/federation_radial.html',{waitUntil:'networkidle'});
            if(await page.locator('#focus option').count()<1) throw new Error('main focus empty');
            if(await page.locator('.card').count()<1) throw new Error('main cards empty');
            await page.locator('#focus').selectOption({label:'globalgrid2050'});
            await page.waitForTimeout(300);
            const txt=await page.locator('button.contents').first().textContent({timeout:3000});
            if(!txt || !txt.includes('8')) throw new Error('contents button missing');
            await page.locator('button.contents').first().click();
            await page.waitForTimeout(300);
            if(await page.locator('#focus option').count()!=8) throw new Error('contents count not 8');
            await page.screenshot({path:'reports/spider-runtime/main.png',fullPage:true});
            await page.goto('http://127.0.0.1:8000/dashboard/sandbox/federation_radial_uniform.html',{waitUntil:'networkidle'});
            if(await page.locator('#focus option').count()<1) throw new Error('sandbox focus empty');
            await page.screenshot({path:'reports/spider-runtime/sandbox.png',fullPage:true});
            if(errors.length) throw new Error(errors.join(' | '));
            await browser.close();
          })().catch(e=>{console.error(e);process.exit(1)});
          JS
          node reports/spider-runtime/smoke.js
      - name: Commit test branch
        run: |
          git diff --name-only | tee reports/spider-runtime/changed-files.txt
          git diff -- dashboard/federation_radial.html dashboard/sandbox/federation_radial_uniform.html > reports/spider-runtime/spider.diff
          git config user.name "github-actions[bot]"
          git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
          git add dashboard/federation_radial.html dashboard/sandbox/federation_radial_uniform.html
          git commit -m "ui: complete spider po recovery test branch"
          git push -u origin "${{ inputs.branch_name }}"
      - uses: actions/upload-artifact@v4
        if: always()
        with:
          name: spider-full-po-runtime-evidence
          path: reports/spider-runtime/