In this section
- Validate Clean Wheel storage · solar-electrical-topology-analysis-engine-text-based / scripts/validate_clean_wheel.py lines 1–406
- Validate Inverter Block Wheel electrical · solar-electrical-topology-analysis-engine-text-based / scripts/validate_inverter_block_wheel.py lines 1–199
- Spider Navigation render · solar-electrical-topology-analysis-engine-text-based / spider-navigation.css lines 1–8
Validate Clean Wheel
A Python command-line tool in the scripts folder of Solar Electrical Topology Analysis Engine Text Based that works with venv python (`venv_python`) (units: kVA, mm²), covering solar, using SHA-256.
storagesolar-electrical-topology-analysis-engine-text-based / scripts/validate_clean_wheel.py · lines 1–406 of 406 · Entry point · pattern venv_python (shared by 2 files)
- What it does
- Defines run, venv_python, main. Uses libraries __future__, os, pathlib, subprocess, sys. Side effects: reads or writes files; starts processes.
- Why it exists in the grid workflow
- Domain stage sub33kv_design (repository name word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: solar.
- Downstream impact
- Used directly by 3 files: Run Ts004 Integration (solar-electrical-topology-analysis-engine-text-based); Run V10 Validation (solar-electrical-topology-analysis-engine-text-based); V10 Validation Workflow (solar-electrical-topology-analysis-engine-text-based). Reached from 6 other entry points, including Build 025 Small Gates Workflow (solar-electrical-topology-analysis-engine-text-based); Microbuild Worker Workflow (solar-electrical-topology-analysis-engine-text-based); Run Microbuild (solar-electrical-topology-analysis-engine-text-based).
- What it achieves
- It is built from the run step (`run`). Build, install and exercise the public Build 025 API outside the checkout. Its code works with 352 kVA.
- Why it matters
- Run by Run Ts004 Integration, Run V10 Validation and V10 Validation Workflow.
- Application
- solar-electrical-topology-analysis-engine-text-based · scripts · Python CLI
- Uses
- Array Engine (import), Geometry Authority (import), __future__, os, pathlib, subprocess, sys, tempfile, hashlib, importlib.metadata
- Used by
- run by Run Ts004 Integration (script call), run by Run V10 Validation (script call), run by V10 Validation Workflow (workflow run)
- Produces
- run, venv_python, main
- Defines here
- run, venv_python, main
- Cannot conclude
- Whether this code runs, is used by a live app today, or is correct. This is a static reading.
- Evidence
- solar-electrical-topology-analysis-engine-text-based@d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9 scripts/validate_clean_wheel.py:1-406 · blob 27cf05c80952ae06967d7215ef07cbfdc6fd412f · GitHub at these lines
- State
- achieves: comment · context: readme_derived · stage: output · effects: filesystem, process · domain stage: sub33kv_design · users: EPC_contractor, ICP_grid_engineer · canonical: production_core
#!/usr/bin/env python3
"""Build, install and exercise the public Build 025 API outside the checkout."""
from __future__ import annotations
import os
from pathlib import Path
import subprocess
import sys
import tempfile
ROOT = Path(__file__).resolve().parents[1]
def run(command: list[str], *, cwd: Path, env: dict[str, str] | None = None) -> None:
subprocess.run(
command,
cwd=cwd,
env=env,
check=True,
text=True,
)
def venv_python(venv: Path) -> Path:
if os.name == "nt":
return venv / "Scripts" / "python.exe"
return venv / "bin" / "python"
def main() -> int:
with tempfile.TemporaryDirectory(prefix="solar-topology-wheel-") as raw:
workspace = Path(raw).resolve()
dist = workspace / "dist"
environment = workspace / "venv"
probe_dir = workspace / "probe"
dist.mkdir()
probe_dir.mkdir()
run(
[
sys.executable,
"-m",
"build",
"--wheel",
"--outdir",
str(dist),
],
cwd=ROOT,
)
wheels = sorted(dist.glob("*.whl"))
if len(wheels) != 1:
raise RuntimeError(f"expected one wheel, found {wheels}")
run([sys.executable, "-m", "venv", str(environment)], cwd=workspace)
python = venv_python(environment)
run(
[
str(python),
"-m",
"pip",
"install",
"--disable-pip-version-check",
str(wheels[0]),
],
cwd=workspace,
)
probe = probe_dir / "probe.py"
probe.write_text(
"""from __future__ import annotations
import hashlib
import importlib.metadata
import json
import math
import os
from pathlib import Path
import sys
import array_engine
import geometry_authority
import solar_topology as topology_api
import solar_topology.array as array_api
import solar_topology.equipment_profiles as equipment
import solar_topology.resistance_qualification as qualification
source_root = Path(os.environ["SOURCE_ROOT"]).resolve()
module_paths = {
"solar_topology": Path(topology_api.__file__).resolve(),
"solar_topology.array": Path(array_api.__file__).resolve(),
"solar_topology.equipment_profiles": Path(equipment.__file__).resolve(),
"solar_topology.resistance_qualification": Path(
qualification.__file__
).resolve(),
"array_engine": Path(array_engine.__file__).resolve(),
"geometry_authority": Path(geometry_authority.__file__).resolve(),
}
for name, path in module_paths.items():
if path.is_relative_to(source_root):
raise AssertionError(f"{name} resolved from repository source: {path}")
if array_engine is not sys.modules["solar_topology.array.array_engine"]:
raise AssertionError("legacy array_engine import is not the packaged authority")
if geometry_authority is not sys.modules[
"solar_topology.array.geometry_authority"
]:
raise AssertionError(
"legacy geometry_authority import is not the packaged authority"
)
for name in ("array_engine", "geometry_authority"):
normalised = str(module_paths[name]).replace("\\\\", "/")
if "/solar_topology/array/" not in normalised:
raise AssertionError(f"{name} did not resolve inside packaged array authority")
if array_api.ARRAY_AUTHORITY_MIGRATION_STAGE != "build-025.5-package-authority":
raise AssertionError("installed array API reports the wrong migration stage")
qualification_exports = (
"RESISTANCE_QUALIFICATION_SCHEMA_VERSION",
"ResistanceSourceAssessment",
"ResistanceSourceStatus",
"assess_resistance_source",
"resistance_source_assessment_hash",
"resistance_source_assessment_json",
"resistance_source_assessment_payload",
)
for name in qualification_exports:
if name not in topology_api.__all__:
raise AssertionError(f"qualification export missing from package API: {name}")
if topology_api.public_api_status(name) != topology_api.ApiStatus.PROVISIONAL:
raise AssertionError(f"qualification export is not explicitly provisional: {name}")
if topology_api.assess_resistance_source is not qualification.assess_resistance_source:
raise AssertionError("top-level qualification function is not the module authority")
if topology_api.ResistanceSourceStatus is not qualification.ResistanceSourceStatus:
raise AssertionError("top-level qualification status is not the module authority")
if (
topology_api.resistance_source_assessment_payload
is not qualification.resistance_source_assessment_payload
):
raise AssertionError("top-level assessment payload is not the module authority")
if (
topology_api.resistance_source_assessment_json
is not qualification.resistance_source_assessment_json
):
raise AssertionError("top-level assessment JSON is not the module authority")
if (
topology_api.resistance_source_assessment_hash
is not qualification.resistance_source_assessment_hash
):
raise AssertionError("top-level assessment hash is not the module authority")
qualification_results = {}
for product in (
topology_api.FACTORY_LEAD_4MM2,
topology_api.EXTERNAL_STRING_6MM2,
):
assessment = topology_api.assess_resistance_source(
product.resolved_resistance
)
if assessment.status != topology_api.ResistanceSourceStatus.CANDIDATE:
raise AssertionError(
f"generic product {product.product_id} was unexpectedly promoted"
)
if assessment.reasons != (
"SOURCE_REVISION_PLACEHOLDER",
"VERIFICATION_NOT_VERIFIED",
):
raise AssertionError(
f"unexpected qualification reasons for {product.product_id}: "
f"{assessment.reasons!r}"
)
expected_payload = {
"schema_version": assessment.schema_version,
"record_hash": assessment.record_hash,
"status": str(assessment.status),
"reasons": list(assessment.reasons),
}
expected_json = json.dumps(
expected_payload,
sort_keys=True,
separators=(",", ":"),
ensure_ascii=False,
)
expected_hash = "sha256:" + hashlib.sha256(
expected_json.encode("utf-8")
).hexdigest()
actual_payload = topology_api.resistance_source_assessment_payload(assessment)
actual_json = topology_api.resistance_source_assessment_json(assessment)
actual_hash = topology_api.resistance_source_assessment_hash(assessment)
if actual_payload != expected_payload:
raise AssertionError(
f"unexpected assessment payload for {product.product_id}: "
f"{actual_payload!r}"
)
if actual_json != expected_json:
raise AssertionError(
f"unexpected assessment JSON for {product.product_id}: "
f"{actual_json!r}"
)
if actual_hash != expected_hash:
raise AssertionError(
f"unexpected assessment hash for {product.product_id}: "
f"{actual_hash!r}"
)
if qualification.resistance_source_assessment_payload(
assessment
) != expected_payload:
raise AssertionError("module and package assessment payloads differ")
if qualification.resistance_source_assessment_json(
assessment
) != expected_json:
raise AssertionError("module and package assessment JSON differ")
if qualification.resistance_source_assessment_hash(
assessment
) != expected_hash:
raise AssertionError("module and package assessment hashes differ")
qualification_results[product.product_id] = {
"status": str(assessment.status),
"record_hash": assessment.record_hash,
"reasons": list(assessment.reasons),
"assessment_payload": actual_payload,
"assessment_json": actual_json,
"assessment_hash": actual_hash,
}
equipment_exports = (
"EQUIPMENT_PROFILE_SCHEMA_VERSION",
"GENERIC_REFERENCE_CONTRACT_REVISION",
"GENERIC_REFERENCE_EQUIPMENT_CONTRACT",
"ReferenceEquipmentContract",
"build_generic_reference_equipment_contract",
"reference_equipment_contract_payload",
"reference_equipment_contract_json",
"reference_equipment_contract_hash",
"reference_equipment_missing_evidence",
"validate_reference_equipment_contract",
)
for name in equipment_exports:
if name not in topology_api.__all__:
raise AssertionError(f"equipment export missing from package API: {name}")
if topology_api.public_api_status(name) != topology_api.ApiStatus.PROVISIONAL:
raise AssertionError(f"equipment export is not explicitly provisional: {name}")
if topology_api.ReferenceEquipmentContract is not equipment.ReferenceEquipmentContract:
raise AssertionError("top-level equipment contract type is not module authority")
if topology_api.build_generic_reference_equipment_contract is not (
equipment.build_generic_reference_equipment_contract
):
raise AssertionError("top-level equipment builder is not module authority")
if topology_api.reference_equipment_contract_hash is not (
equipment.reference_equipment_contract_hash
):
raise AssertionError("top-level equipment hash is not module authority")
contract = topology_api.build_generic_reference_equipment_contract()
second_contract = topology_api.build_generic_reference_equipment_contract()
if contract != second_contract:
raise AssertionError("generic equipment contract is not deterministic")
if contract.module_count != 720:
raise AssertionError("generic equipment contract does not contain 720 modules")
if not math.isclose(contract.string_rated_power_kwp, 19.8, abs_tol=1e-12):
raise AssertionError("generic string is not 19.8 kWp")
if not math.isclose(contract.dc_nameplate_power_kwp, 475.2, abs_tol=1e-12):
raise AssertionError("generic reference block is not 475.2 kWp")
if contract.inverter.apparent_power_kva.value != 352.0:
raise AssertionError("generic inverter is not 352 kVA")
if not math.isclose(contract.dc_ac_nameplate_ratio, 1.35, abs_tol=1e-12):
raise AssertionError("generic reference block does not have 1.35 DC/AC ratio")
if len(contract.inverter.dc_inputs) != 24:
raise AssertionError("generic inverter does not expose 24 physical inputs")
if len({item.input_id for item in contract.inverter.dc_inputs}) != 24:
raise AssertionError("generic physical input identifiers are not unique")
if len(
{
terminal
for item in contract.inverter.dc_inputs
for terminal in (item.positive_terminal_id, item.negative_terminal_id)
}
) != 48:
raise AssertionError("generic physical input terminal identifiers are not unique")
if any(item.mppt_id.value is not None for item in contract.inverter.dc_inputs):
raise AssertionError("generic physical inputs silently invented MPPT assignments")
if contract.inverter.internal_dc_topology.value != "unknown":
raise AssertionError("generic internal DC topology was silently resolved")
if contract.inverter.reverse_current_blocking.value != "unknown":
raise AssertionError("generic reverse-current blocking was silently resolved")
if contract.inverter.pce_backfeed_current_a.value is not None:
raise AssertionError("generic PCE backfeed was silently invented")
contract_payload = topology_api.reference_equipment_contract_payload(contract)
contract_json = topology_api.reference_equipment_contract_json(contract)
contract_hash = topology_api.reference_equipment_contract_hash(contract)
missing_evidence = topology_api.reference_equipment_missing_evidence(contract)
if contract_payload != equipment.reference_equipment_contract_payload(contract):
raise AssertionError("module and package equipment payloads differ")
if contract_json != equipment.reference_equipment_contract_json(contract):
raise AssertionError("module and package equipment JSON differ")
if contract_hash != equipment.reference_equipment_contract_hash(contract):
raise AssertionError("module and package equipment hashes differ")
if contract_hash != topology_api.reference_equipment_contract_hash(second_contract):
raise AssertionError("equipment contract hash is not deterministic")
if json.loads(contract_json) != contract_payload:
raise AssertionError("equipment contract JSON does not reproduce payload")
if "inverter.dc_inputs.dc_input_01.mppt_id" not in missing_evidence:
raise AssertionError("equipment contract does not expose missing MPPT mapping")
if "inverter.dc_inputs.dc_input_24.mppt_id" not in missing_evidence:
raise AssertionError("equipment contract does not expose all input mappings")
if "inverter.internal_dc_topology" not in missing_evidence:
raise AssertionError("equipment contract does not expose missing DC topology")
if "inverter.reverse_current_blocking" not in missing_evidence:
raise AssertionError("equipment contract does not expose missing reverse blocking")
if "factory_leads.conductor_resistance_source" not in missing_evidence:
raise AssertionError("factory-lead candidate resistance is not visible")
if "field_conductor.conductor_resistance_source" not in missing_evidence:
raise AssertionError("field-conductor candidate resistance is not visible")
for prohibited in ("manufacturer_name", "project_name", "client_name", "site_name"):
if prohibited in contract_json.lower():
raise AssertionError(f"generic equipment contract contains {prohibited}")
equipment_result = {
"contract_id": contract.contract_id,
"revision": contract.revision,
"contract_hash": contract_hash,
"module_count": contract.module_count,
"string_count": contract.string_count,
"modules_per_string": contract.modules_per_string,
"dc_nameplate_power_kwp": contract.dc_nameplate_power_kwp,
"inverter_apparent_power_kva": contract.inverter.apparent_power_kva.value,
"physical_dc_input_count": len(contract.inverter.dc_inputs),
"internal_dc_topology": contract.inverter.internal_dc_topology.value,
"reverse_current_blocking": contract.inverter.reverse_current_blocking.value,
"missing_evidence_count": len(missing_evidence),
}
first = array_api.compare_reference_24_by_30()
second = array_api.compare_reference_24_by_30()
if first.comparison_hash != second.comparison_hash:
raise AssertionError("strategy comparison is not deterministic")
if first.sequential.receipt_hash != second.sequential.receipt_hash:
raise AssertionError("sequential Build 025 receipt is not deterministic")
if first.leapfrog.receipt_hash != second.leapfrog.receipt_hash:
raise AssertionError("leapfrog Build 025 receipt is not deterministic")
sequential = first.sequential.routing.metrics
leapfrog = first.leapfrog.routing.metrics
expected = {
"sequential_total_m": 2513.328,
"leapfrog_total_m": 2560.128,
"field_reduction_m": 798.288,
"factory_increase_m": 845.088,
"total_change_m": 46.8,
}
actual = {
"sequential_total_m": sequential.total_circuit_conductor_length_m,
"leapfrog_total_m": leapfrog.total_circuit_conductor_length_m,
"field_reduction_m": (
sequential.inverter_home_run_length_m
- leapfrog.inverter_home_run_length_m
),
"factory_increase_m": (
leapfrog.series_interconnect_length_m
- sequential.series_interconnect_length_m
),
"total_change_m": (
leapfrog.total_circuit_conductor_length_m
- sequential.total_circuit_conductor_length_m
),
}
for key, expected_value in expected.items():
if not math.isclose(actual[key], expected_value, rel_tol=0.0, abs_tol=1e-9):
raise AssertionError(
f"installed API {key}={actual[key]!r}, expected {expected_value!r}"
)
payload = {
"pass": True,
"distribution_version": importlib.metadata.version(
"solar-electrical-topology-engine"
),
"authority_status": array_api.ARRAY_AUTHORITY_STATUS,
"migration_stage": array_api.ARRAY_AUTHORITY_MIGRATION_STAGE,
"comparison_hash": first.comparison_hash,
"module_paths": {name: str(path) for name, path in module_paths.items()},
"qualification": qualification_results,
"equipment_contract": equipment_result,
"metrics": actual,
}
print(json.dumps(payload, sort_keys=True))
""",
encoding="utf-8",
)
child_env = os.environ.copy()
child_env.pop("PYTHONPATH", None)
child_env["PYTHONNOUSERSITE"] = "1"
child_env["SOURCE_ROOT"] = str(ROOT)
run([str(python), str(probe)], cwd=probe_dir, env=child_env)
return 0
if __name__ == "__main__":
raise SystemExit(main())Validate Inverter Block Wheel
A Python command-line tool in the scripts folder of Solar Electrical Topology Analysis Engine Text Based that works with venv python (`venv_python`), using SHA-256.
electricalsolar-electrical-topology-analysis-engine-text-based / scripts/validate_inverter_block_wheel.py · lines 1–199 of 199 · Entry point · pattern venv_python (shared by 2 files)
- What it does
- Defines run, venv_python, main. Uses libraries __future__, os, pathlib, subprocess, sys. Side effects: reads or writes files; starts processes.
- Why it exists in the grid workflow
- Domain stage sub33kv_design (path word 'inverter'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary.
- Downstream impact
- Used directly by 3 files: Run Authority Slice (solar-electrical-topology-analysis-engine-text-based); Run Microbuild (solar-electrical-topology-analysis-engine-text-based); Run Ts004 Integration (solar-electrical-topology-analysis-engine-text-based). Reached from 6 other entry points, including Build 025 Small Gates Workflow (solar-electrical-topology-analysis-engine-text-based); Microbuild Worker Workflow (solar-electrical-topology-analysis-engine-text-based); Test End to End Authority Slice (solar-electrical-topology-analysis-engine-text-based).
- What it achieves
- It is built from the run step (`run`). Build a wheel and prove the inverter-block contract outside the checkout.
- Why it matters
- Run by Run Authority Slice, Run Microbuild and Run Ts004 Integration.
- Application
- solar-electrical-topology-analysis-engine-text-based · scripts · Python CLI
- Uses
- __future__, os, pathlib, subprocess, sys, tempfile, json, math
- Used by
- run by Run Authority Slice (script call), run by Run Microbuild (script call), run by Run Ts004 Integration (script call)
- Produces
- run, venv_python, main
- Defines here
- run, venv_python, main
- Cannot conclude
- Whether this code runs, is used by a live app today, or is correct. This is a static reading.
- Evidence
- solar-electrical-topology-analysis-engine-text-based@d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9 scripts/validate_inverter_block_wheel.py:1-199 · blob 538d07247930bc53fd73b2b7b9e7ce999590cb5a · GitHub at these lines
- State
- achieves: comment · context: readme_derived · stage: output · effects: filesystem, process · domain stage: sub33kv_design · users: EPC_contractor, ICP_grid_engineer · canonical: production_core
#!/usr/bin/env python3
"""Build a wheel and prove the inverter-block contract outside the checkout."""
from __future__ import annotations
import os
from pathlib import Path
import subprocess
import sys
import tempfile
ROOT = Path(__file__).resolve().parents[1]
def run(command: list[str], *, cwd: Path, env: dict[str, str] | None = None) -> None:
subprocess.run(command, cwd=cwd, env=env, check=True, text=True)
def venv_python(venv: Path) -> Path:
if os.name == "nt":
return venv / "Scripts" / "python.exe"
return venv / "bin" / "python"
def main() -> int:
with tempfile.TemporaryDirectory(prefix="solar-inverter-block-wheel-") as raw:
workspace = Path(raw).resolve()
dist = workspace / "dist"
environment = workspace / "venv"
probe_dir = workspace / "probe"
dist.mkdir()
probe_dir.mkdir()
run(
[sys.executable, "-m", "build", "--wheel", "--outdir", str(dist)],
cwd=ROOT,
)
wheels = sorted(dist.glob("*.whl"))
if len(wheels) != 1:
raise RuntimeError(f"expected one wheel, found {wheels}")
run([sys.executable, "-m", "venv", str(environment)], cwd=workspace)
python = venv_python(environment)
run(
[
str(python),
"-m",
"pip",
"install",
"--disable-pip-version-check",
str(wheels[0]),
],
cwd=workspace,
)
probe = probe_dir / "probe_inverter_block.py"
probe.write_text(
'''from __future__ import annotations
import json
import math
import os
from pathlib import Path
import solar_topology as api
import solar_topology.array as array_api
import solar_topology.inverter_block as block_api
source_root = Path(os.environ["SOURCE_ROOT"]).resolve()
for module in (api, array_api, block_api):
path = Path(module.__file__).resolve()
if path.is_relative_to(source_root):
raise AssertionError(f"module resolved from repository source: {path}")
exports = (
"INVERTER_BLOCK_SCHEMA_VERSION",
"REFERENCE_INVERTER_BLOCK_ID",
"InverterBlockEvidenceState",
"InverterBlockReceipt",
"build_inverter_block",
"build_reference_inverter_block",
"inverter_block_hash",
"inverter_block_json",
"inverter_block_payload",
"validate_inverter_block_receipt",
)
for name in exports:
if name not in api.__all__:
raise AssertionError(f"inverter-block export missing: {name}")
if api.public_api_status(name) != api.ApiStatus.PROVISIONAL:
raise AssertionError(f"inverter-block export not provisional: {name}")
if getattr(api, name) is not getattr(block_api, name):
raise AssertionError(f"top-level inverter-block identity differs: {name}")
first = api.build_reference_inverter_block()
second = api.build_reference_inverter_block()
api.validate_inverter_block_receipt(first)
if first != second:
raise AssertionError("reference inverter block is not deterministic")
if first.receipt_hash != second.receipt_hash:
raise AssertionError("reference inverter-block hash is not deterministic")
if api.inverter_block_hash(first) != first.receipt_hash:
raise AssertionError("inverter-block receipt hash does not recompute")
payload = api.inverter_block_payload(first)
serialised = api.inverter_block_json(first)
if payload != block_api.inverter_block_payload(first):
raise AssertionError("module and package inverter-block payloads differ")
if serialised != block_api.inverter_block_json(first):
raise AssertionError("module and package inverter-block JSON differ")
if json.loads(serialised) != payload:
raise AssertionError("inverter-block JSON does not reproduce its payload")
boundary = payload["product_boundary"]
expected = {
"module_rated_power_wp": 660.0,
"modules_per_string": 30,
"string_count": 24,
"module_count": 720,
"string_rated_power_kwp": 19.8,
"dc_nameplate_power_kwp": 475.2,
"inverter_apparent_power_kva": 352.0,
"dc_ac_nameplate_ratio": 1.35,
}
for key, expected_value in expected.items():
actual = boundary[key]
if isinstance(expected_value, float):
if not math.isclose(actual, expected_value, rel_tol=0.0, abs_tol=1e-12):
raise AssertionError(f"wrong {key}: {actual!r}")
elif actual != expected_value:
raise AssertionError(f"wrong {key}: {actual!r}")
if first.allocated_physical_input_count != 24:
raise AssertionError("reference inverter block does not allocate 24 physical inputs")
if len(first.table_receipts) != 1:
raise AssertionError("reference inverter block must bind one current fixture receipt")
table = first.table_receipts[0]
binding = payload["table_receipts"][0]
if binding["build025_receipt_hash"] != table.receipt_hash:
raise AssertionError("child Build 025 receipt identity is not bound")
if binding["geometry_hash"] != table.geometry.geometry_hash:
raise AssertionError("child geometry identity is not bound")
if binding["routing_hash"] != table.routing.routing_hash:
raise AssertionError("child routing identity is not bound")
input_authority = payload["input_authority"]
if input_authority["mppt_count"] is not None:
raise AssertionError("MPPT count was silently invented")
if input_authority["internal_dc_topology"] != "unknown":
raise AssertionError("internal DC topology was silently resolved")
if input_authority["reverse_current_blocking"] != "unknown":
raise AssertionError("reverse-current blocking was silently resolved")
if input_authority["pce_backfeed_current_a"] is not None:
raise AssertionError("PCE backfeed was silently invented")
if input_authority["routing_fixture_mppt_labels_are_equipment_evidence"] is not False:
raise AssertionError("routing fixture labels were promoted to equipment evidence")
if payload["equipment_evidence"]["state"] != "incomplete_evidence":
raise AssertionError("missing equipment evidence is not visible")
if payload["equipment_evidence"]["missing_evidence_count"] != 47:
raise AssertionError("unexpected equipment evidence count")
comparison = array_api.compare_reference_24_by_30()
expected_comparison_hash = (
"sha256:413aa93c98d1b9fd5f9ffee4f577cfe29a6e74f48bd927a3ebe7f541545d6366"
)
if comparison.comparison_hash != expected_comparison_hash:
raise AssertionError("established strategy comparison hash changed")
print(json.dumps({
"pass": True,
"block_id": first.block_id,
"receipt_hash": first.receipt_hash,
"equipment_contract_hash": payload["equipment_contract"]["contract_hash"],
"build025_receipt_hash": binding["build025_receipt_hash"],
"comparison_hash": comparison.comparison_hash,
"module_count": first.module_count,
"string_count": first.string_count,
"modules_per_string": first.modules_per_string,
"allocated_physical_input_count": first.allocated_physical_input_count,
"evidence_state": str(first.evidence_state),
"missing_evidence_count": len(first.equipment_missing_evidence),
}, sort_keys=True))
''',
encoding="utf-8",
)
child_env = os.environ.copy()
child_env.pop("PYTHONPATH", None)
child_env["PYTHONNOUSERSITE"] = "1"
child_env["SOURCE_ROOT"] = str(ROOT)
run([str(python), str(probe)], cwd=probe_dir, env=child_env)
return 0
if __name__ == "__main__":
raise SystemExit(main())Spider Navigation
A style sheet in Solar Electrical Topology Analysis Engine Text Based. Served with the page at https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/.
rendersolar-electrical-topology-analysis-engine-text-based / spider-navigation.css · lines 1–8 of 8 · Entry point
- What it does
- Side effects: changes the web page (DOM).
- 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).
- Downstream impact
- Used directly by 2 files: Solar Electrical Topology Analysis Engine Text Based — Index Page (solar-electrical-topology-analysis-engine-text-based, https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/); Index V6 Before Leapfrog (solar-electrical-topology-analysis-engine-text-based, https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/restore_points/2026-07-27-v8-leapfrog/index-v6-before-leapfrog.html). Reached from 134 other entry points, including GlobalGrid2050 Historical Builds (globalgrid2050, https://globalgrid2050.com/historical_builds.html); GlobalGrid2050 Homepage Before Four Nests (globalgrid2050, https://globalgrid2050.com/homepage-before-four-nests-20260925.html); Homepage V002 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v002.html). It is itself an entry point, published at https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/.
- What it achieves
- No statement of purpose was found in the file, a README line naming it, or its name.
- Why it matters
- Loaded by the Solar Electrical Topology Analysis Engine Text Based page at https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/ and 1 other page.
- Application
- solar-electrical-topology-analysis-engine-text-based · / · style sheet
- Uses
- none found
- Used by
- loaded by Solar Electrical Topology Analysis Engine Text Based — Index Page (stylesheet), loaded by Index V6 Before Leapfrog (stylesheet)
- Produces
- none declared
- Defines here
- none
- Cannot conclude
- Whether this code runs, is used by a live app today, or is correct. This is a static reading.
- Evidence
- solar-electrical-topology-analysis-engine-text-based@d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9 spider-navigation.css:1-8 · blob 72c579ad5f50caed64d7fea5cd22f144ffe68fba · GitHub at these lines
- State
- achieves: name · context: readme_derived · stage: output · effects: dom · domain stage: agent_infra · users: ai_agent · canonical: production_core
.canvas-wrap{position:relative;overflow:auto!important;cursor:grab;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;touch-action:none;background:radial-gradient(circle at center,rgba(0,229,255,.04),transparent 50%);scroll-behavior:auto}
.canvas-wrap.dragging{cursor:grabbing;user-select:none}
.canvas-wrap canvas{display:block;width:2200px;height:1350px;max-width:none!important;max-height:none!important;transform-origin:0 0}
#zoomReadout{position:sticky!important;top:12px;left:14px;width:max-content;z-index:5;pointer-events:none}
.zoom-toolbar{position:sticky;top:12px;float:right;margin-right:12px;z-index:8;display:flex;border:1px solid #38506a;border-radius:999px;overflow:hidden;background:rgba(9,18,29,.92);backdrop-filter:blur(10px);box-shadow:0 8px 24px rgba(0,0,0,.35)}
.zoom-toolbar button{min-width:46px;height:42px;padding:0 13px;border:0;border-right:1px solid #38506a;border-radius:0;background:transparent;color:#dcecff;font:800 20px ui-monospace,monospace;touch-action:manipulation}
.zoom-toolbar button:last-child{border-right:0}.zoom-toolbar #zoomReset{min-width:72px;font-size:12px;color:var(--cyan)}.zoom-toolbar button:active{background:rgba(39,216,255,.18)}
@media(max-width:700px){.canvas-wrap{height:72vh!important;min-height:560px}.canvas-wrap canvas{width:2200px;height:1350px}.zoom-toolbar{top:10px;margin-right:10px}.zoom-toolbar button{min-width:52px;height:48px;font-size:24px}.zoom-toolbar #zoomReset{min-width:76px;font-size:12px}}