GLOBALGRID2050 / EXPLORE CODE

Part of: Explore Code / Automation and CI / v11 / scripts

Generate Control Plane Projection and 4 more files

A Python command-line tool in the scripts folder of V11 that reads programme state. It renders index (`render_index`) and is built from the projections step (`projections`).

506 lines of Python and YAML from v11, vedic-, in 5 files. Topic: Automation and CI. Section 1869 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. Generate Control Plane Projection geodesy · v11 / scripts/generate_control_plane_projection.py lines 1–194
  2. Validate Control Plane ingest · v11 / scripts/validate_control_plane.py lines 1–90
  3. Test Control Plane test · v11 / tests/test_control_plane.py lines 1–67
  4. VEDIC Anatomy Workflow automation · vedic- / .github/workflows/anatomy.yml lines 1–79
  5. VEDIC Fingerprints Workflow automation · vedic- / .github/workflows/fingerprints.yml lines 1–76

Generate Control Plane Projection

A Python command-line tool in the scripts folder of V11 that reads programme state. It renders index (`render_index`) and is built from the projections step (`projections`).

geodesyv11 / scripts/generate_control_plane_projection.py · lines 1–194 of 194 · Entry point · pattern render_index (shared by 2 files)

What it does
It loads programme state. Defines 6 functions or classes, including load, load_surfaces, render_readme, render_index, projections. Uses libraries __future__, argparse, html, json, pathlib. Side effects: reads or writes files.
Inputs & outputs
In: JSON file programme-state.json; command-line arguments.
Downstream impact
Used directly by 1 file: V11 Control Plane Validation Workflow (v11).
What it achieves
Its name says it generates control plane projection. Defines `load`, `load_surfaces`, `render_readme` and 2 more. It accepts `--root` and `--check`.
Why it matters
Run by V11 Control Plane Validation Workflow.
Application
v11 · scripts · Python CLI
Uses
Validate Control Plane (script call), __future__, argparse, html, json, pathlib
Used by
run by V11 Control Plane Validation Workflow (workflow run)
Produces
load, load_surfaces, render_readme, render_index, projections, main
Defines here
load, load_surfaces, render_readme, render_index, projections, main
Cannot conclude
Whether this code runs, is used by a live app today, or is correct. This is a static reading.
Evidence
v11@debb30e092a1983e775d2ab4126995ab7bb72fe3 scripts/generate_control_plane_projection.py:1-194 · blob 9c4e47dcfe5fcf797e38d481a9313b299595cf14 · GitHub at these lines
State
achieves: name · context: readme_derived · stage: output · effects: filesystem · domain stage: unknown · users: none · canonical: unknown
from __future__ import annotations
import argparse, html, json
from pathlib import Path

ROOT = Path(__file__).resolve().parents[1]

def load(path: Path) -> dict:
    return json.loads(path.read_text(encoding="utf-8"))

def load_surfaces(root: Path) -> tuple[dict, dict, dict, dict]:
    state = load(root / "programme-state.json")
    return (
        state,
        load(root / state["build_plan"]),
        load(root / state["capability_matrix"]),
        load(root / state["source_resource_register"]),
    )

def render_readme(state: dict, plan: dict, caps: dict, register: dict) -> str:
    active = next(unit for unit in plan["units"] if unit["id"] == state["current_unit"])
    resource = register["resources"][0]
    capability_lines = "\n".join(
        f"- `{item['id']}` — **{item['name']}**: `{item['state']}`"
        for item in caps["capabilities"]
    )
    unit_lines = "\n".join(
        f"- `{item['id']}` — **{item['title']}**: `{item['status']}`"
        for item in plan["units"]
    )
    return f"""# V11 Engineering Operating System

V11 is the sole active engineering and programme-authority repository for the GlobalGrid2050 solar engineering system. It is being built as a deterministic, evidence-led control plane before any laboratory capability is migrated.

<!-- V11-STATUS:START -->
## Current machine state

| Field | Authority |
|---|---|
| Active repository | `{state['active_repository']}` |
| Programme | `{state['programme_id']}` |
| Programme status | `{state['programme_status']}` |
| Active unit | `{active['id']} — {active['title']}` |
| Current objective | {state['current_objective']} |
| Next authorised unit | `{'none' if state['next_unit'] is None else state['next_unit']}` |
| Validation | `{state['validation']['status']}` |
| Final V11-001 TEST PASS | **not claimed** |
| Operator-session limit | `{plan['operator_protocol']['session_limit_seconds']} seconds` |

The control-plane capability is `under_validation`. A branch, file, local execution or laboratory result does not constitute a final V11 pass.
<!-- V11-STATUS:END -->

## Repository boundary

Only `Ventusltd/v11` may receive new implementation, tests, workflows, receipts, ledgers or programme-state changes.

The former laboratory is a pinned read-only resource:

- Repository: `{resource['repository']}`
- Anchor: `{resource['anchor_commit']}`
- Mode: `{resource['mode']}`
- Licence: `{resource['licence']}`

Laboratory evidence may be inspected, cited, adapted or reimplemented with exact provenance. It is not current V11 authority and must not receive commits, branches or pull requests.

## Programme units

{unit_lines}

`V11-002` is planned but not authorised while `next_unit` remains null.

## Capability state

{capability_lines}

## Deterministic projections

`index.html` and this README are rendered from:

- `programme-state.json`
- `{state['build_plan']}`
- `{state['capability_matrix']}`
- `{state['source_resource_register']}`

Regenerate them:

```bash
python -S scripts/generate_control_plane_projection.py
```

Check for drift without writing:

```bash
python -S scripts/generate_control_plane_projection.py --check
```

Validate the current machine surfaces:

```bash
python -S scripts/validate_control_plane.py
python -S -m unittest -v tests/test_control_plane.py
```

## Outstanding V11-001 work

V11-001 remains incomplete until repository-controlled validation exists and passes. The remaining governed work includes the GitHub Actions workflow, exact CI-tested SHA and artefact evidence, machine receipt, ledger closure, capability-state transition and programme advancement.

No engineering capability migration or V11-002 implementation is authorised yet.

## Governing continuity

- `{state['current_quantum_spawn']}`
- `trueself/202608021707-v11-does-not-get-stuck-trueself-chatgpt.md`
- `quantum_spawn/202608021855-complete-thread-record-laboratory-to-v11-control-plane-chatgpt.md`
"""

def render_index(state: dict, plan: dict, caps: dict, register: dict) -> str:
    active = next(unit for unit in plan["units"] if unit["id"] == state["current_unit"])
    resource = register["resources"][0]
    units = "".join(
        f"<tr><td><code>{html.escape(item['id'])}</code></td><td>{html.escape(item['title'])}</td><td><span class='state'>{html.escape(item['status'])}</span></td></tr>"
        for item in plan["units"]
    )
    capabilities = "".join(
        f"<tr><td><code>{html.escape(item['id'])}</code></td><td>{html.escape(item['name'])}</td><td><span class='state'>{html.escape(item['state'])}</span></td></tr>"
        for item in caps["capabilities"]
    )
    next_unit = "None authorised" if state["next_unit"] is None else state["next_unit"]
    return f"""<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>V11 Control Plane</title>
<style>
:root{{--bg:#0b0d10;--panel:#14181d;--text:#edf1f5;--muted:#9da8b3;--line:#2a3139;--accent:#f2c94c}}
*{{box-sizing:border-box}} body{{margin:0;background:var(--bg);color:var(--text);font:16px/1.5 system-ui,sans-serif}}
main{{max-width:1100px;margin:auto;padding:48px 24px 80px}} h1{{font-size:clamp(2.4rem,7vw,5.5rem);line-height:.95;margin:0 0 18px}}
h2{{margin-top:40px}} .eyebrow,.state{{color:var(--accent);font-weight:700;text-transform:uppercase;letter-spacing:.08em}}
.grid{{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:14px}} .card{{background:var(--panel);border:1px solid var(--line);padding:20px}}
.card strong{{display:block;font-size:1.25rem;margin-top:6px}} table{{width:100%;border-collapse:collapse;background:var(--panel)}}
th,td{{text-align:left;padding:12px;border-bottom:1px solid var(--line)}} code{{overflow-wrap:anywhere}} .warning{{border-left:4px solid var(--accent);padding:14px 18px;background:var(--panel)}}
a{{color:var(--text)}} footer{{color:var(--muted);margin-top:48px}}
</style>
</head>
<body><main>
<p class="eyebrow">GlobalGrid2050 engineering authority</p>
<h1>V11 Control Plane</h1>
<p>Deterministic status projection from V11 machine-state files. This page displays authority; it does not create it.</p>
<div class="warning"><strong>V11-001 is under validation.</strong> No final TEST PASS is claimed and no later unit is authorised.</div>
<section class="grid">
<div class="card">Active repository<strong>{html.escape(state['active_repository'])}</strong></div>
<div class="card">Active unit<strong>{html.escape(active['id'])} — {html.escape(active['title'])}</strong></div>
<div class="card">Validation<strong>{html.escape(state['validation']['status'])}</strong></div>
<div class="card">Next unit<strong>{html.escape(next_unit)}</strong></div>
</section>
<h2>Current objective</h2><p>{html.escape(state['current_objective'])}</p>
<h2>Programme units</h2><table><thead><tr><th>ID</th><th>Unit</th><th>State</th></tr></thead><tbody>{units}</tbody></table>
<h2>Capabilities</h2><table><thead><tr><th>ID</th><th>Capability</th><th>State</th></tr></thead><tbody>{capabilities}</tbody></table>
<h2>Read-only laboratory resource</h2>
<div class="card"><p><strong>{html.escape(resource['repository'])}</strong></p><p>Anchor: <code>{html.escape(resource['anchor_commit'])}</code></p><p>Mode: <span class="state">{html.escape(resource['mode'])}</span></p><p>Laboratory results are not current V11 authority.</p></div>
<h2>Validation commands</h2>
<pre><code>python -S scripts/validate_control_plane.py
python -S -m unittest -v tests/test_control_plane.py
python -S scripts/generate_control_plane_projection.py --check</code></pre>
<footer>Programme <code>{html.escape(state['programme_id'])}</code> · generated deterministically with no runtime timestamp.</footer>
</main></body></html>
"""

def projections(root: Path) -> dict[Path, str]:
    state, plan, caps, register = load_surfaces(root)
    return {
        root / "README.md": render_readme(state, plan, caps, register),
        root / "index.html": render_index(state, plan, caps, register),
    }

def main(argv=None) -> int:
    parser = argparse.ArgumentParser()
    parser.add_argument("--root", type=Path, default=ROOT)
    parser.add_argument("--check", action="store_true")
    args = parser.parse_args(argv)
    expected = projections(args.root.resolve())
    drift = [str(path.relative_to(args.root.resolve())) for path, content in expected.items() if not path.is_file() or path.read_text(encoding="utf-8") != content]
    if args.check:
        if drift:
            raise SystemExit("projection drift: " + ", ".join(drift))
        print("projection check passed: README.md, index.html")
        return 0
    for path, content in expected.items():
        path.write_text(content, encoding="utf-8")
    print("generated: README.md, index.html")
    return 0

if __name__ == "__main__":
    raise SystemExit(main())

Validate Control Plane

A Python command-line tool in the scripts folder of V11 that reads programme state. It validates payloads (`validate_payloads`) and validates control plane (`validate_control_plane`).

ingestv11 / scripts/validate_control_plane.py · lines 1–90 of 90 · Entry point

What it does
It loads programme state. Defines 6 functions or classes, including ControlPlaneValidationError, need, load, validate_payloads, validate_control_plane. Uses libraries __future__, argparse, json, re, pathlib. Side effects: reads or writes files.
Inputs & outputs
In: JSON file programme-state.json; command-line arguments.
Downstream impact
Used directly by 2 files: V11 Control Plane Validation Workflow (v11); Generate Control Plane Projection (v11).
What it achieves
Its name says it validates control plane. Defines `ControlPlaneValidationError`, `need`, `load` and 2 more. It accepts `--root` and `--require-projection`.
Why it matters
Run by V11 Control Plane Validation Workflow and Generate Control Plane Projection.
Application
v11 · scripts · Python CLI
Uses
__future__, argparse, json, re, pathlib
Used by
run by V11 Control Plane Validation Workflow (workflow run), run by Generate Control Plane Projection (script call)
Produces
ControlPlaneValidationError, need, load, validate_payloads, validate_control_plane, main
Defines here
ControlPlaneValidationError, need, load, validate_payloads, validate_control_plane, main
Cannot conclude
Whether this code runs, is used by a live app today, or is correct. This is a static reading.
Evidence
v11@debb30e092a1983e775d2ab4126995ab7bb72fe3 scripts/validate_control_plane.py:1-90 · blob 05b6300781bef9c11e0d9c864205cacaf93b8a7b · GitHub at these lines
State
achieves: name · context: readme_derived · stage: ingest · effects: filesystem · domain stage: unknown · users: none · canonical: unknown
from __future__ import annotations
import argparse, json, re
from pathlib import Path

ACTIVE = "Ventusltd/v11"
LAB = "Ventusltd/solar-electrical-topology-analysis-engine-text-based"
ANCHOR = "d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9"
PROGRAMME = "v11-native-control-plane-20260802"
SHA40 = re.compile(r"^[0-9a-f]{40}$")

class ControlPlaneValidationError(ValueError):
    pass

def need(value: bool, message: str) -> None:
    if not value:
        raise ControlPlaneValidationError(message)

def load(path: Path) -> dict:
    value = json.loads(path.read_text(encoding="utf-8"))
    need(isinstance(value, dict), f"{path} must contain an object")
    return value

def validate_payloads(state, plan, caps, register, *, root: Path, require_projection=False):
    need(state.get("schema_version") == "globalgrid2050.v11.programme-state.v1", "wrong state schema")
    need(plan.get("schema_version") == "globalgrid2050.v11.build-plan.v1", "wrong plan schema")
    need(caps.get("schema_version") == "globalgrid2050.v11.capability-matrix.v1", "wrong capability schema")
    need(register.get("schema_version") == "globalgrid2050.v11.source-resource-register.v1", "wrong resource schema")
    need({state.get("programme_id"), plan.get("programme_id"), caps.get("programme_id"), register.get("programme_id")} == {PROGRAMME}, "programme identities disagree")
    need(state.get("active_repository") == ACTIVE, "V11 must be active")
    need(state.get("programme_status") == plan.get("programme_status") == "active", "programme must be active")
    session, protocol = state.get("operator_session", {}), plan.get("operator_protocol", {})
    need(session.get("limit_seconds") == protocol.get("session_limit_seconds") == 300, "session limit must be 300")
    need(session.get("review_required_after_session") is True and protocol.get("review_required_after_every_session") is True, "session review required")
    need(protocol.get("session_advances_programme") is False, "session may not advance programme")
    need(SHA40.fullmatch(str(session.get("started_from_commit", ""))) is not None, "invalid session SHA")
    units = plan.get("units")
    need(isinstance(units, list) and units, "units required")
    need([u.get("id") for u in units] == [f"V11-{n:03d}" for n in range(1, len(units)+1)], "unit order invalid")
    need([u.get("ordinal") for u in units] == list(range(1, len(units)+1)), "unit ordinals invalid")
    active = [u for u in units if u.get("status") == "active"]
    need(len(active) == 1, "one active unit required")
    need(active[0].get("id") == plan.get("active_unit") == state.get("current_unit"), "active unit disagrees")
    need(plan.get("next_unit") == state.get("next_unit") is None, "later unit authorised")
    planned_seen = False
    for unit in units:
        status = unit.get("status")
        need(status in {"passed", "active", "planned"}, "invalid unit status")
        planned_seen = planned_seen or status == "planned"
        need(not (planned_seen and status != "planned"), "planned suffix invalid")
        if status != "passed":
            need(unit.get("evidence") is None, "unfinished unit has evidence")
    lab_state, lab_plan, lab_caps = state["laboratory_resource"], plan["laboratory_policy"], caps["laboratory_capabilities"]
    resources = register.get("resources")
    need(isinstance(resources, list) and len(resources) == 1, "one lab resource required")
    resource = resources[0]
    need({lab_state.get("repository"), lab_plan.get("repository"), resource.get("repository")} == {LAB}, "laboratory identity disagrees")
    need({lab_state.get("anchor_commit"), lab_plan.get("anchor_commit"), lab_caps.get("anchor_commit"), resource.get("anchor_commit")} == {ANCHOR}, "laboratory anchors disagree")
    need(lab_state.get("mode") == lab_plan.get("mode") == resource.get("mode") == "read_only", "laboratory must be read-only")
    need(lab_state.get("capabilities_are_current_v11_authority") is False and lab_plan.get("laboratory_result_is_v11_authority") is False and lab_caps.get("current_v11_authority") is False, "laboratory promoted into V11 authority")
    need("claim laboratory capability as current V11 authority" in resource.get("prohibited_actions", []), "authority prohibition missing")
    items = caps.get("capabilities")
    need(isinstance(items, list) and items, "capabilities required")
    need(len({i.get("id") for i in items}) == len(items), "capability IDs duplicate")
    for item in items:
        need(item.get("authority_repository") == ACTIVE, "capability authority is not V11")
        need(item.get("state") not in {"implemented", "validated", "canonical", "available"}, "unvalidated capability claimed")
        need(item.get("evidence") is None, "unvalidated capability has evidence")
    for field in ("current_quantum_spawn", "build_plan", "execution_ledger", "capability_matrix", "source_resource_register"):
        relative = state.get(field)
        need(isinstance(relative, str) and (root / relative).is_file(), f"missing referenced file: {relative}")
    need(state["current_unit"] in (root / state["execution_ledger"]).read_text(encoding="utf-8"), "ledger omits current unit")
    missing = [p for p in state.get("generated_outputs", []) if not (root / p).is_file()]
    if require_projection:
        need(not missing, f"generated outputs missing: {missing}")
    return {"pass": True, "active_unit": state["current_unit"], "laboratory_mode": "read_only", "missing_generated_outputs": missing}

def validate_control_plane(root: Path, require_projection=False):
    state = load(root / "programme-state.json")
    return validate_payloads(state, load(root / state["build_plan"]), load(root / state["capability_matrix"]), load(root / state["source_resource_register"]), root=root, require_projection=require_projection)

def main(argv=None):
    parser = argparse.ArgumentParser()
    parser.add_argument("--root", type=Path, default=Path(__file__).resolve().parents[1])
    parser.add_argument("--require-projection", action="store_true")
    args = parser.parse_args(argv)
    print(json.dumps(validate_control_plane(args.root.resolve(), args.require_projection), sort_keys=True))
    return 0

if __name__ == "__main__":
    raise SystemExit(main())

Test Control Plane

A test in the tests folder of V11. It sets up class (`setUpClass`) and is built from the control plane tests class (`ControlPlaneTests`).

testv11 / tests/test_control_plane.py · lines 1–67 of 67 · Entry point · pattern setUpClass (shared by 19 files)

What it does
It tests its inputs. Defines 9 functions or classes, including ControlPlaneTests, setUpClass, validate, test_current_surfaces_validate, test_programme_mismatch_rejected. Uses libraries copy, importlib.util, json, pathlib, unittest. Side effects: reads or writes files.
Inputs & outputs
In: JSON file programme-state.json.
Downstream impact
Used directly by 1 file: V11 Control Plane Validation Workflow (v11).
What it achieves
Defines `ControlPlaneTests`, `setUpClass`, `validate` and 6 more.
Why it matters
Run by V11 Control Plane Validation Workflow.
Application
v11 · tests · test
Uses
copy, importlib.util, json, pathlib, unittest
Used by
run by V11 Control Plane Validation Workflow (workflow run)
Produces
ControlPlaneTests
Defines here
ControlPlaneTests, setUpClass, validate, test_current_surfaces_validate, test_programme_mismatch_rejected, test_writable_laboratory_rejected, test_laboratory_promotion_rejected, test_unvalidated_capability_claim_rejected, test_active_unit_mismatch_rejected
Cannot conclude
Whether this code runs, is used by a live app today, or is correct. This is a static reading.
Evidence
v11@debb30e092a1983e775d2ab4126995ab7bb72fe3 tests/test_control_plane.py:1-67 · blob e94d01255f48d2d2685515fc8b21e51b5831a0e3 · GitHub at these lines
State
achieves: name · context: readme_derived · stage: ingest · effects: filesystem · domain stage: unknown · users: none · canonical: unknown
from copy import deepcopy
import importlib.util, json
from pathlib import Path
import unittest

ROOT = Path(__file__).resolve().parents[1]
SPEC = importlib.util.spec_from_file_location("validator", ROOT / "scripts" / "validate_control_plane.py")
assert SPEC and SPEC.loader
V = importlib.util.module_from_spec(SPEC)
SPEC.loader.exec_module(V)

class ControlPlaneTests(unittest.TestCase):
    @classmethod
    def setUpClass(cls):
        cls.state = json.loads((ROOT / "programme-state.json").read_text())
        cls.plan = json.loads((ROOT / cls.state["build_plan"]).read_text())
        cls.caps = json.loads((ROOT / cls.state["capability_matrix"]).read_text())
        cls.register = json.loads((ROOT / cls.state["source_resource_register"]).read_text())

    def validate(self, state=None, plan=None, caps=None, register=None):
        return V.validate_payloads(
            deepcopy(state or self.state),
            deepcopy(plan or self.plan),
            deepcopy(caps or self.caps),
            deepcopy(register or self.register),
            root=ROOT,
        )

    def test_current_surfaces_validate(self):
        result = V.validate_control_plane(ROOT)
        self.assertTrue(result["pass"])
        self.assertEqual(result["active_unit"], "V11-001")
        self.assertEqual(result["laboratory_mode"], "read_only")
        self.assertEqual(result["missing_generated_outputs"], [])

    def test_programme_mismatch_rejected(self):
        plan = deepcopy(self.plan)
        plan["programme_id"] = "wrong"
        with self.assertRaisesRegex(V.ControlPlaneValidationError, "programme identities"):
            self.validate(plan=plan)

    def test_writable_laboratory_rejected(self):
        state = deepcopy(self.state)
        state["laboratory_resource"]["mode"] = "writable"
        with self.assertRaisesRegex(V.ControlPlaneValidationError, "read-only"):
            self.validate(state=state)

    def test_laboratory_promotion_rejected(self):
        caps = deepcopy(self.caps)
        caps["laboratory_capabilities"]["current_v11_authority"] = True
        with self.assertRaisesRegex(V.ControlPlaneValidationError, "promoted"):
            self.validate(caps=caps)

    def test_unvalidated_capability_claim_rejected(self):
        caps = deepcopy(self.caps)
        caps["capabilities"][0]["state"] = "validated"
        with self.assertRaisesRegex(V.ControlPlaneValidationError, "unvalidated capability"):
            self.validate(caps=caps)

    def test_active_unit_mismatch_rejected(self):
        state = deepcopy(self.state)
        state["current_unit"] = "V11-002"
        with self.assertRaisesRegex(V.ControlPlaneValidationError, "active unit"):
            self.validate(state=state)

if __name__ == "__main__":
    unittest.main()

VEDIC Anatomy Workflow

A GitHub Actions workflow that builds and publishes the site. Runs on push, on pull requests and by hand.

automationvedic- / .github/workflows/anatomy.yml · lines 1–79 of 79 · Entry point

What it does
It builds and publishes its content. Side effects: starts processes; uses storage (browser storage, DuckDB or Parquet).
Why it exists in the grid workflow
Domain stage agent_infra (repository name word 'vedic'): AI-agent memory, coordination and code audit (the multi-agent journey named in Ventus Ltd's brief).
Inputs & outputs
In: JSON file dictionary.json; JSON file vedic-prior.json; DuckDB queries. Out: GitHub Pages deployment.
Downstream impact
It is itself an entry point (workflow); no other file was found loading it.
What it achieves
Runs VEDIC Validate Anatomy (`tools/validate_anatomy.py`), VEDIC Validate Translation (`tools/validate_translation.py`) and VEDIC Validate Graph (`tools/validate_graph.py`); publishes to GitHub Pages.
Why it matters
No other file in the estate was found to import it; it is an entry point.
Application
vedic- · .github/workflows · workflow
Uses
VEDIC Test Anatomy (workflow run), VEDIC Test Daily Accelerator (workflow run), VEDIC Test Daily Intelligence (workflow run), VEDIC Test Daily Operations (workflow run), VEDIC Test Daily Source Policy (workflow run), VEDIC Test Dictionary (workflow run), VEDIC Test Dictionary Shards (workflow run), VEDIC Test Family Pulse (workflow run), and 21 more
Used by
none found
Produces
none declared
Defines here
VEDIC anatomy checks
Cannot conclude
Whether this code runs, is used by a live app today, or is correct. This is a static reading.
Evidence
vedic-@1c95ee78c2dd3f1f72c0fd5a5f6e247aaf1624e0 .github/workflows/anatomy.yml:1-79 · blob ccda1dd01f667bbc17e7c69d739f9344c6864057 · GitHub at these lines
State
achieves: comment · context: readme_derived · stage: ingest · effects: process, storage · domain stage: agent_infra · users: ai_agent · canonical: unknown
name: VEDIC anatomy checks
on:
  pull_request:
  push:
    branches: [main]
  workflow_dispatch:
permissions:
  contents: read
jobs:
  validate:
    runs-on: ubuntu-24.04
    steps:
      - uses: actions/checkout@v4
        with:
          fetch-depth: 0
      - uses: actions/setup-python@v5
        with:
          python-version: '3.12'
      - run: python -m pip install numpy==2.4.6 pyarrow==25.0.1 duckdb==1.4.2
      - run: python -m unittest discover -s tools -p 'test_*.py' -v
      - run: python tools/validate_anatomy.py --online
      - run: python tools/validate_translation.py --online
      - run: python tools/validate_graph.py --online
      - run: python tools/verify_reuse_routes.py
      - name: Check permanent dictionary identity against previous release
        env:
          BASE_SHA: ${{ github.event.pull_request.base.sha || github.event.before }}
        run: |
          if [ -n "$BASE_SHA" ] && git cat-file -e "$BASE_SHA:data/dictionary.json" 2>/dev/null; then
            git show "$BASE_SHA:data/dictionary.json" > "$RUNNER_TEMP/vedic-prior.json"
            python tools/validate_dictionary.py --online --prior "$RUNNER_TEMP/vedic-prior.json"
          else
            python tools/validate_dictionary.py --online
          fi
      - run: python tools/validate_v2_allocation.py --online
      - run: python tools/allocate_commands.py --check
      - run: python tools/source_admissions.py --check --online
      - run: python tools/stage_demo.py
      - run: python -m pip install playwright==1.56.0
      - run: python -m playwright install --with-deps chromium webkit
      - run: python tools/browser_smoke.py
      - run: python tools/stage_pages.py _site
      - run: python tools/check_pages_candidate.py _site
      - uses: actions/upload-pages-artifact@v3
        if: github.ref == 'refs/heads/main' && github.event_name != 'pull_request'
        with:
          path: _site

  publish:
    if: github.ref == 'refs/heads/main' && github.event_name != 'pull_request'
    needs: validate
    runs-on: ubuntu-latest
    permissions:
      contents: read
      pages: write
      id-token: write
    concurrency:
      group: vedic-pages
      cancel-in-progress: false
    environment:
      name: github-pages
      url: ${{ steps.deployment.outputs.page_url }}
    steps:
      - uses: actions/checkout@v4
        with:
          fetch-depth: 0
      - uses: actions/setup-python@v5
        with:
          python-version: '3.12'
      - uses: actions/configure-pages@v5
      - name: Stage public dashboard only
        run: python tools/stage_pages.py _site
      - name: Deploy validated dashboard
        id: deployment
        uses: actions/deploy-pages@v4
      - name: Verify exact served dashboard files
        env:
          PAGE_URL: ${{ steps.deployment.outputs.page_url }}
        run: python tools/verify_published.py

VEDIC Fingerprints Workflow

A GitHub Actions workflow. Runs on push, on pull requests and on a schedule.

automationvedic- / .github/workflows/fingerprints.yml · lines 1–76 of 76 · Entry point

What it does
It runs automated jobs on GitHub Actions. Side effects: starts processes; uses storage (browser storage, DuckDB or Parquet).
Why it exists in the grid workflow
Domain stage agent_infra (repository name word 'vedic'): AI-agent memory, coordination and code audit (the multi-agent journey named in Ventus Ltd's brief).
Inputs & outputs
In: DuckDB queries.
Downstream impact
It is itself an entry point (workflow); no other file was found loading it.
What it achieves
Runs Extract (`fingerprints/extract.py`), Candidates (`fingerprints/candidates.py`) and Modular Join (`fingerprints/modular_join.py`).
Why it matters
No other file in the estate was found to import it; it is an entry point.
Application
vedic- · .github/workflows · workflow
Uses
Test Candidates (workflow run), Test Enrich (workflow run), Test Extract (workflow run), Test Modular Join (workflow run), Extract (workflow run), Candidates (workflow run), Modular Join (workflow run), Enrich (workflow run)
Used by
none found
Produces
none declared
Defines here
fingerprints
Cannot conclude
Whether this code runs, is used by a live app today, or is correct. This is a static reading.
Evidence
vedic-@1c95ee78c2dd3f1f72c0fd5a5f6e247aaf1624e0 .github/workflows/fingerprints.yml:1-76 · blob 3c40d6f30111458c85d01bda20c686cd8c2c46ab · GitHub at these lines
State
achieves: comment · context: readme_derived · stage: ingest · effects: process, storage · domain stage: agent_infra · users: ai_agent · canonical: unknown
name: fingerprints

# Tests the fingerprint scripts on every change to fingerprints/. On demand (and weekly) it also runs the
# whole pipeline on GitHub's machine: clone every public Ventusltd repository, extract units, join them to
# Modular Star's permanent numbers, propose VEDIC candidates. Generated tables are uploaded as a workflow
# artifact, never committed; only the one-line ledger fingerprints/runs.tsv records each run.

on:
  push:
    branches: [main]
    paths: ['fingerprints/**', '.github/workflows/fingerprints.yml']
  pull_request:
    paths: ['fingerprints/**', '.github/workflows/fingerprints.yml']
  schedule:
    - cron: '23 4 * * 1'
  workflow_dispatch:

permissions:
  contents: read

jobs:
  test:
    runs-on: ubuntu-24.04
    steps:
      - uses: actions/checkout@v4
      - uses: actions/setup-python@v5
        with:
          python-version: '3.12'
      - run: python -m pip install numpy==2.4.6 pyarrow==25.0.1 duckdb==1.4.2
      - run: python -m unittest discover -s fingerprints -p 'test_*.py' -v

  run:
    if: github.event_name == 'workflow_dispatch' || github.event_name == 'schedule' || (github.event_name == 'push' && contains(toJSON(github.event.commits), 'fingerprints/RUN.md'))
    needs: test
    runs-on: ubuntu-24.04
    timeout-minutes: 60
    steps:
      - uses: actions/checkout@v4
      - uses: actions/setup-python@v5
        with:
          python-version: '3.12'
      - run: python -m pip install numpy==2.4.6 pyarrow==25.0.1 duckdb==1.4.2
      - name: Clone every public repository (one commit each)
        env:
          GH_TOKEN: ${{ github.token }}
        run: |
          mkdir clones
          gh api --paginate 'users/Ventusltd/repos?type=owner&per_page=100' \
            --jq '.[] | select(.private == false and .fork == false and .archived == false) | .name' > repos.txt
          while read -r r; do
            GIT_LFS_SKIP_SMUDGE=1 timeout 900 git clone -q --depth 1 --filter=blob:limit=1m \
              "https://github.com/Ventusltd/$r" "clones/$r" || echo "::warning::could not clone $r"
          done < repos.txt
      - name: Modular Star database
        env:
          GH_TOKEN: ${{ github.token }}
        run: |
          mkdir -p /tmp/ms
          gh release download modular-star --repo Ventusltd/stars --pattern modular.sqlite.gz --dir /tmp/ms \
            && gunzip /tmp/ms/modular.sqlite.gz || echo "::warning::Modular Star database unavailable; families not joined"
      - name: Extract, join, propose
        run: |
          python fingerprints/extract.py --src clones --out fingerprints/out
          python fingerprints/candidates.py --units fingerprints/out/units.parquet --rules fingerprints/rules.json \
            --dictionary data/dictionary.json --out fingerprints/out
          python fingerprints/modular_join.py --db /tmp/ms/modular.sqlite --out fingerprints/out
          python fingerprints/enrich.py --out fingerprints/out --dictionary data/dictionary.json \
            --elements clones/elements/catalogue/elements.json
          tail -n 3 fingerprints/runs.tsv
      - uses: actions/upload-artifact@v4
        with:
          name: fingerprints-${{ github.run_number }}
          path: |
            fingerprints/out
            fingerprints/runs.tsv
          retention-days: 90