#!/usr/bin/env python3
"""Validate the entity registry and generate the standalone Research Desk visual."""
from __future__ import annotations
import json
from pathlib import Path
ROOT = Path(__file__).resolve().parent
REGISTRY = ROOT / "TOKENIZATION_ENTITY_RELATIONSHIP_REGISTRY_2026-09-01.json"
FIELD_GUIDE = ROOT / "technology_field_guide.json"
TECHNOLOGY_BUILDOUT = ROOT / "TECHNOLOGY_BUILDOUT_LEDGER_2026-09-27.json"
CORPORATE_STACK = ROOT / "CORPORATE_STACK_COMPARISON_2026-09-17.json"
BANK_TRANSITION = ROOT / "BANK_TRANSITION_COMPARISON_2026-09-26.json"
SECURITIZE_ANATOMY = ROOT / "SECURITIZE_INFRASTRUCTURE_ANATOMY_2026-09-17.json"
STACK_EXPANSION = ROOT / "STACK_EXPANSION_2026-09-17.json"
TRANSITION_GATES = ROOT / "TRANSITION_GATES_2026-09-22.json"
FED_GENIUS_HUB = ROOT / "FED_GENIUS_INFRASTRUCTURE_CHANGE_MAP_2026-09-24.json"
OUTPUT = ROOT / "outputs" / "Tokenization Entity and Control Map.html"
def unique_ids(items: list[dict], label: str) -> set[str]:
ids = [item.get("id") for item in items]
if any(not value for value in ids):
raise ValueError(f"{label} contains an empty id")
if len(ids) != len(set(ids)):
raise ValueError(f"{label} contains duplicate ids")
return set(ids)
def validate(data: dict) -> None:
lane_ids = unique_ids(data["lanes"], "lanes")
type_ids = unique_ids(data["relationship_types"], "relationship types")
lens_ids = unique_ids(data["lenses"], "lenses")
node_ids = unique_ids(data["nodes"], "nodes")
edge_ids = unique_ids(data["edges"], "edges")
source_ids = unique_ids(data["sources"], "sources")
ecosystem_ids = unique_ids(data["ecosystems"], "ecosystems")
clock_ids = unique_ids(data["operational_states"], "operational states")
trace_ids = unique_ids(data["asset_traces"], "asset traces")
process_role_ids = unique_ids(data["process_roles"], "process roles")
scale_state_ids = unique_ids(data["scale_states"], "scale states")
stress_state_ids = unique_ids(data["stress_states"], "stress states")
process_ids = unique_ids(data["process_maps"], "process maps")
edges_by_id = {edge["id"]: edge for edge in data["edges"]}
guide = data["technology_field_guide"]
category_ids = unique_ids(guide["categories"], "field guide categories")
profiles = guide["profiles"]
profile_ids = {profile.get("ecosystem_id") for profile in profiles}
guide_ecosystem_ids = ecosystem_ids - set(data.get("current_stack_ids", []))
if profile_ids != guide_ecosystem_ids or len(profiles) != len(guide_ecosystem_ids):
raise ValueError("field guide must contain exactly one profile for every tracked technology ecosystem")
required_guide_fields = {
"plain_name", "category", "what_it_is", "why_following", "differentiator_status",
"differentiator", "differentiator_boundary", "how_it_works", "controls",
"does_not_control", "attachments", "observed_state", "watch_for",
"do_not_confuse", "source_ids",
}
for profile in profiles:
if required_guide_fields - set(profile):
raise ValueError(f"incomplete field guide profile: {profile.get('ecosystem_id')}")
if profile["category"] not in category_ids:
raise ValueError(f"unknown field guide category: {profile['category']}")
if profile["differentiator_status"] not in {"meaningful", "contextual", "not_established"}:
raise ValueError(f"invalid differentiator status: {profile['ecosystem_id']}")
for key in ("plain_name", "what_it_is", "why_following", "differentiator", "differentiator_boundary", "observed_state"):
if not isinstance(profile[key], str) or not profile[key].strip():
raise ValueError(f"empty field guide value {profile['ecosystem_id']}/{key}")
for key in ("how_it_works", "controls", "does_not_control", "attachments", "watch_for", "do_not_confuse", "source_ids"):
if not profile[key] or not all(isinstance(value, str) and value.strip() for value in profile[key]):
raise ValueError(f"empty field guide list {profile['ecosystem_id']}/{key}")
if set(profile["attachments"]) - {"banks", "markets", "records", "cash"}:
raise ValueError(f"invalid field guide attachment: {profile['ecosystem_id']}")
if set(profile["source_ids"]) - source_ids:
raise ValueError(f"unknown field guide source: {profile['ecosystem_id']}")
if len(guide.get("quick_distinctions", [])) < 3 or any(
not item.get("title") or not item.get("explanation") for item in guide["quick_distinctions"]
):
raise ValueError("field guide quick distinctions are incomplete")
buildout = data["technology_buildout"]
buildout_state_ids = unique_ids(buildout["states"], "technology buildout states")
buildout_profiles = buildout["profiles"]
buildout_profile_ids = {profile.get("ecosystem_id") for profile in buildout_profiles}
if buildout_profile_ids != profile_ids or len(buildout_profiles) != len(profile_ids):
raise ValueError("technology buildout ledger must contain exactly one profile for every field guide profile")
required_buildout_fields = {
"refreshed_through", "headline", "transition_state", "strongest_receipt",
"current_builds", "deals_and_integrations", "native_token",
"transition_assessment", "return_gates",
}
for profile in buildout_profiles:
ecosystem_id = profile.get("ecosystem_id")
if required_buildout_fields - set(profile):
raise ValueError(f"incomplete technology buildout profile: {ecosystem_id}")
if profile["transition_state"] not in buildout_state_ids:
raise ValueError(f"invalid technology buildout state: {ecosystem_id}")
if not profile["current_builds"] or not profile["deals_and_integrations"]:
raise ValueError(f"technology buildout profile needs builds and deals: {ecosystem_id}")
if not profile["return_gates"] or not all(isinstance(value, str) and value.strip() for value in profile["return_gates"]):
raise ValueError(f"invalid technology buildout return gates: {ecosystem_id}")
for item in profile["current_builds"] + profile["deals_and_integrations"]:
if item.get("state") not in buildout_state_ids:
raise ValueError(f"invalid technology buildout item state: {ecosystem_id}")
if not all(item.get(key) for key in ("date", "summary", "boundary", "source_ids")):
raise ValueError(f"incomplete technology buildout item: {ecosystem_id}")
if set(item["source_ids"]) - source_ids:
raise ValueError(f"unknown technology buildout item source: {ecosystem_id}")
token = profile["native_token"]
if not all(token.get(key) for key in ("symbol", "role", "required_channel", "value_capture", "source_ids")):
raise ValueError(f"incomplete technology buildout token analysis: {ecosystem_id}")
if set(token["source_ids"]) - source_ids:
raise ValueError(f"unknown technology buildout token source: {ecosystem_id}")
assessment = profile["transition_assessment"]
if not all(assessment.get(key) for key in ("what_changed", "live_now", "still_building", "not_proved")):
raise ValueError(f"incomplete technology buildout transition assessment: {ecosystem_id}")
corporate = data["corporate_stack_comparison"]
corporate_state_ids = unique_ids(corporate["states"], "corporate stack states")
corporate_dimension_ids = unique_ids(corporate["dimensions"], "corporate stack dimensions")
unique_ids(corporate["groups"], "corporate stack groups")
if not all(corporate.get(key) for key in ("title", "cutoff", "summary", "boundary")):
raise ValueError("corporate stack comparison header is incomplete")
for group in corporate["groups"]:
if set(group.get("seats", {})) != corporate_dimension_ids:
raise ValueError(f"corporate stack group must cover every dimension: {group.get('id')}")
if not group.get("label") or not group.get("verdict") or not group.get("boundary"):
raise ValueError(f"incomplete corporate stack group: {group.get('id')}")
if not group.get("source_ids") or set(group["source_ids"]) - source_ids:
raise ValueError(f"invalid corporate stack group evidence: {group.get('id')}")
for dimension_id, seat in group["seats"].items():
if seat.get("state") not in corporate_state_ids or not seat.get("text"):
raise ValueError(f"invalid corporate stack seat: {group.get('id')}/{dimension_id}")
for item in corporate.get("second_ring", []):
if not item.get("label") or not item.get("finding") or not item.get("source_ids"):
raise ValueError("incomplete corporate stack second-ring item")
if set(item["source_ids"]) - source_ids:
raise ValueError(f"unknown corporate stack second-ring source: {item.get('label')}")
bank_transition = data["bank_transition_comparison"]
bank_state_ids = unique_ids(bank_transition["states"], "bank transition states")
bank_dimension_ids = unique_ids(bank_transition["dimensions"], "bank transition dimensions")
bank_archetype_ids = unique_ids(bank_transition["archetypes"], "bank transition archetypes")
bank_source_ids = unique_ids(bank_transition["sources"], "bank transition sources")
unique_ids(bank_transition["institutions"], "bank transition institutions")
if len(bank_transition["institutions"]) != 16:
raise ValueError("bank transition comparison must contain the governed 16-institution cohort")
if not all(bank_transition.get(key) for key in ("title", "cutoff", "summary", "boundary", "method_note", "research_route")):
raise ValueError("bank transition comparison header is incomplete")
for source in bank_transition["sources"]:
if not all(source.get(key) for key in ("title", "publisher", "date", "url")) or not source["url"].startswith(("https://", "http://")):
raise ValueError(f"invalid bank transition source: {source.get('id')}")
for institution in bank_transition["institutions"]:
if institution.get("archetype_id") not in bank_archetype_ids:
raise ValueError(f"unknown bank transition archetype: {institution.get('id')}")
if set(institution.get("capabilities", {})) != bank_dimension_ids:
raise ValueError(f"bank transition institution must cover every dimension: {institution.get('id')}")
if any(not institution.get(key) for key in ("label", "kind", "domicile", "thesis", "frontier", "boundary", "watch")):
raise ValueError(f"incomplete bank transition institution: {institution.get('id')}")
if not institution.get("source_ids") or set(institution["source_ids"]) - bank_source_ids:
raise ValueError(f"invalid bank transition institution evidence: {institution.get('id')}")
for dimension_id, capability in institution["capabilities"].items():
if capability.get("state") not in bank_state_ids or not capability.get("detail") or not capability.get("boundary"):
raise ValueError(f"invalid bank transition capability: {institution.get('id')}/{dimension_id}")
if not capability.get("source_ids") or set(capability["source_ids"]) - bank_source_ids:
raise ValueError(f"invalid bank transition capability evidence: {institution.get('id')}/{dimension_id}")
anatomy = data["securitize_anatomy"]
if not all(anatomy.get(key) for key in ("title", "cutoff", "summary", "boundary", "thesis")):
raise ValueError("Securitize anatomy header is incomplete")
anatomy_sections = {
"entities": ("label", "kind", "role", "status", "boundary", "source_ids"),
"lifecycle": ("label", "action", "control", "record", "boundary", "source_ids"),
"record_models": ("label", "state", "authoritative_pattern", "outside_bodies", "lesson", "source_ids"),
"scale": ("label", "value", "as_of", "meaning", "source_ids"),
}
for section, required in anatomy_sections.items():
unique_ids(anatomy[section], f"Securitize anatomy {section}") if section != "scale" else None
for item in anatomy[section]:
if any(not item.get(key) for key in required):
raise ValueError(f"incomplete Securitize anatomy {section} item: {item.get('id') or item.get('label')}")
if set(item["source_ids"]) - source_ids:
raise ValueError(f"unknown Securitize anatomy source: {item.get('id') or item.get('label')}")
comparison = anatomy.get("ripple_comparison", {})
if not all(comparison.get(key) for key in ("title", "thesis", "boundary", "rows", "interface", "watch")):
raise ValueError("Ripple-Securitize comparison is incomplete")
unique_ids(comparison["rows"], "Ripple-Securitize comparison rows")
for item in comparison["rows"]:
if any(not item.get(key) for key in ("seat", "ripple", "securitize", "distinction", "source_ids")):
raise ValueError(f"incomplete Ripple-Securitize comparison row: {item.get('id')}")
if set(item["source_ids"]) - source_ids:
raise ValueError(f"unknown Ripple-Securitize comparison source: {item.get('id')}")
interface = comparison["interface"]
if not all(interface.get(key) for key in ("title", "steps", "proof_state", "source_ids")):
raise ValueError("Ripple-Securitize interface is incomplete")
if len(interface["steps"]) < 3 or set(interface["source_ids"]) - source_ids:
raise ValueError("Ripple-Securitize interface evidence is incomplete")
if len(comparison["watch"]) < 3 or any(not isinstance(item, str) or not item.strip() for item in comparison["watch"]):
raise ValueError("Ripple-Securitize watch list is incomplete")
genius = anatomy.get("genius_act", {})
if not all(genius.get(key) for key in ("title", "cutoff", "status", "thesis", "boundary", "clocks", "rows", "interface", "watch")):
raise ValueError("Ripple-Securitize GENIUS Act interface is incomplete")
unique_ids(genius["clocks"], "Ripple-Securitize GENIUS clocks")
for item in genius["clocks"]:
if any(not item.get(key) for key in ("label", "date", "state", "meaning", "source_ids")):
raise ValueError(f"incomplete GENIUS clock: {item.get('id')}")
if set(item["source_ids"]) - source_ids:
raise ValueError(f"unknown GENIUS clock source: {item.get('id')}")
unique_ids(genius["rows"], "Ripple-Securitize GENIUS rows")
for item in genius["rows"]:
if any(not item.get(key) for key in ("question", "ripple", "securitize", "effect", "source_ids")):
raise ValueError(f"incomplete GENIUS row: {item.get('id')}")
if set(item["source_ids"]) - source_ids:
raise ValueError(f"unknown GENIUS row source: {item.get('id')}")
genius_interface = genius["interface"]
if not all(genius_interface.get(key) for key in ("title", "steps", "reading", "source_ids")):
raise ValueError("Ripple-Securitize GENIUS interface walk is incomplete")
if len(genius_interface["steps"]) < 3 or set(genius_interface["source_ids"]) - source_ids:
raise ValueError("Ripple-Securitize GENIUS interface evidence is incomplete")
if len(genius["watch"]) < 3 or any(not isinstance(item, str) or not item.strip() for item in genius["watch"]):
raise ValueError("Ripple-Securitize GENIUS watch list is incomplete")
if len(anatomy.get("watch", [])) < 3 or any(not isinstance(item, str) or not item.strip() for item in anatomy["watch"]):
raise ValueError("Securitize anatomy watch list is incomplete")
required_types = {
"control", "capital", "board", "regulatory", "partnership",
"technical", "asset_flow", "historical", "proposal_fit", "operating", "advocacy",
"pending_control",
}
if type_ids != required_types:
raise ValueError(f"relationship types must equal {sorted(required_types)}")
required_lenses = {"triangle", "sec-chain", "networks", "control", "capital", "cash", "cash-leg", "full"}
if lens_ids != required_lenses:
raise ValueError(f"lenses must equal {sorted(required_lenses)}")
required_clocks = {
"proposed", "announced", "planned", "pilot_test", "limited_production",
"live_production", "current_operating", "historical",
}
if clock_ids != required_clocks:
raise ValueError(f"operational states must equal {sorted(required_clocks)}")
required_process_roles = {"controller", "operator", "integrator", "external_dependency"}
if process_role_ids != required_process_roles:
raise ValueError(f"process roles must equal {sorted(required_process_roles)}")
required_scale_states = {
"not_applicable", "not_public", "single_event", "bounded_cohort",
"general_access", "reported_aggregate", "material_volume",
}
if scale_state_ids != required_scale_states:
raise ValueError(f"scale states must equal {sorted(required_scale_states)}")
required_stress_states = {
"not_applicable", "not_public", "untested", "contractual_controls_only",
"controlled_test", "observed_stress",
}
if stress_state_ids != required_stress_states:
raise ValueError(f"stress states must equal {sorted(required_stress_states)}")
required_processes = {"tokenization", "stablecoins", "fx-cross-border"}
if process_ids != required_processes:
raise ValueError(f"process maps must equal {sorted(required_processes)}")
lr = data["legal_routes_map"]
lr_functions = {f["id"] for f in data["legal_process_hub"]["qualifications"]["functions"]}
lr_players = unique_ids(lr["players"], "legal route players")
lr_statuses = unique_ids(lr["statuses"], "legal route statuses")
unique_ids(lr["routes"], "legal routes")
for player in lr["players"]:
if player["status"] not in lr_statuses or not all(player.get(k) for k in ("label", "evidence", "remaining", "appointment")):
raise ValueError("incomplete legal route player")
if not player.get("source_ids") or set(player["source_ids"]) - source_ids:
raise ValueError("invalid legal route player evidence")
if player.get("actor_ref") and player["actor_ref"] not in {a["id"] for a in data["legal_process_hub"]["qualifications"]["actors"]}:
raise ValueError("invalid legal route actor join")
if player.get("assessment_ref") and player["assessment_ref"] not in {a["id"] for a in data["legal_process_hub"]["qualifications"]["records"]}:
raise ValueError("invalid legal route assessment join")
if player.get("assessment_ref") and player.get("actor_ref"):
assessment = next(a for a in data["legal_process_hub"]["qualifications"]["records"] if a["id"] == player["assessment_ref"])
if assessment["actor_id"] != player["actor_ref"]:
raise ValueError("legal route actor assessment mismatch")
if lr.get("all_functions_have_routes") and {fid for r in lr["routes"] for fid in r["function_ids"]} != lr_functions:
raise ValueError("legal route function coverage is incomplete")
for route in lr["routes"]:
if not route.get("eligible_categories") or not all(isinstance(x, str) and x.strip() for x in route["eligible_categories"]):
raise ValueError("legal route eligible categories missing")
if not route["function_ids"] or set(route["function_ids"]) - lr_functions or set(route["player_ids"]) - lr_players:
raise ValueError("invalid legal route connection")
if route["state"] not in {"current", "proposed"} or not all(route.get(k) for k in ("label", "trigger", "basis", "conditions", "limit")):
raise ValueError("incomplete legal route")
if not route.get("source_ids") or set(route["source_ids"]) - source_ids:
raise ValueError("invalid legal route evidence")
if route["state"] == "proposed" and route["player_ids"]:
raise ValueError("proposal cannot qualify a player")
assignment_keys = set()
routes_by_id = {r["id"]: r for r in lr["routes"]}
for assignment in lr.get("assignments", []):
key = (assignment["route_id"], assignment["player_id"])
if key in assignment_keys:
raise ValueError("duplicate legal route entity assignment")
assignment_keys.add(key)
route = routes_by_id.get(assignment["route_id"])
if not route or assignment["player_id"] not in route["player_ids"]:
raise ValueError("invalid legal route entity assignment")
if assignment.get("status") not in {"verified", "dated", "conditional", "lead"}:
raise ValueError("invalid legal route assignment status")
if not all(assignment.get(k) for k in ("capacity", "evidence", "source_ids")) or set(assignment["source_ids"]) - source_ids:
raise ValueError("invalid legal route assignment evidence")
if route["state"] == "proposed":
raise ValueError("proposal cannot establish entity capacity")
directory = lr.get("participation_directory")
if directory:
if directory["source_id"] not in source_ids or not directory.get("as_of"):
raise ValueError("invalid participation directory source")
unique_ids(directory["rows"], "participation directory accounts")
for row in directory["rows"]:
if not all(row.get(k) for k in ("name", "services", "source_row")):
raise ValueError("incomplete participation directory row")
maps = data["transaction_maps"]
route_ids = unique_ids(maps["routes"], "transaction routes")
rights_by_route = {r["id"]: r for r in data["steps_rights_hub"]["routes"]}
if route_ids != set(rights_by_route):
raise ValueError("transaction routes must cover the researched rights routes")
for proto in maps["routes"]:
ref_ids = {x["id"] for x in rights_by_route[proto["id"]]["steps"]}
proto_ids = unique_ids(proto["nodes"] + proto["overlay_nodes"], "transaction milestones")
unique_ids(proto["connections"] + proto["overlay_connections"], "transaction connections")
unique_ids(proto["scenarios"], "transaction scenarios")
for n in proto["nodes"] + proto["overlay_nodes"]:
if n["step_ref"] not in ref_ids or not (0 <= n["row"] < len(proto["lanes"] + proto["overlay_lanes"]) and 0 <= n["col"] < len(proto["phases"])):
raise ValueError("invalid transaction milestone")
if not all(n.get(k) for k in ("before", "after", "explain", "overlay", "label")) or n.get("overlay_role") not in {"specified", "dependency"}:
raise ValueError("incomplete transaction explanation")
for e in proto["connections"] + proto["overlay_connections"]:
if e["from_id"] not in proto_ids or e["to_id"] not in proto_ids or e["kind"] not in {"instruction", "securities", "money", "record", "token"}:
raise ValueError("invalid transaction connection")
if not proto.get("overlay_sources") or set(proto["overlay_sources"]) - source_ids:
raise ValueError("invalid transaction overlay evidence")
for scenario in proto["scenarios"]:
if scenario.get("node_id") not in proto_ids or not all(scenario.get(k) for k in ("title", "before", "after", "explain", "overlay")):
raise ValueError("invalid transaction scenario")
rights = data["steps_rights_hub"]
unique_ids(rights["routes"], "rights routes")
rights_statuses = unique_ids(rights["statuses"], "rights statuses")
for route in rights["routes"]:
unique_ids(route["steps"], "rights steps")
if not all(route.get(k) for k in ("title", "baseline", "overlay", "scope", "clock", "chain")):
raise ValueError("incomplete rights route")
for step in route["steps"]:
if not all(step.get(k) for k in ("action", "actors", "right", "record", "proof", "crypto", "gap", "needed")):
raise ValueError("incomplete rights receipt")
if step.get("status") not in rights_statuses:
raise ValueError("invalid rights status")
if step.get("legal_step_id") not in {r["id"] for r in data["legal_process_hub"]["steps"]}:
raise ValueError("invalid rights legal handoff")
for key in ("baseline_sources", "crypto_sources"):
if not step.get(key) or set(step[key]) - source_ids:
raise ValueError("invalid rights evidence")
legal = data["legal_process_hub"]
step_ids = unique_ids(legal["steps"], "legal steps")
unique_ids(legal["layers"], "legal layers")
unique_ids(legal["cases"], "legal cases")
if not step_ids or not legal.get("report_source_ids") or set(legal["report_source_ids"]) - source_ids:
raise ValueError("invalid legal process research")
for collection, fields in [("steps", ("title", "question", "explanation", "actors", "required_evidence", "output", "boundary")), ("layers", ("title", "summary", "question", "boundary")), ("cases", ("title", "status", "summary", "boundary"))]:
for record in legal[collection]:
if any(not isinstance(record.get(f), str) or not record[f].strip() for f in fields):
raise ValueError(f"incomplete legal {collection}: {record['id']}")
if not record.get("source_ids") or set(record["source_ids"]) - source_ids:
raise ValueError(f"invalid legal sources: {record['id']}")
for case in legal["cases"]:
refs = [r.get("step_id") for r in case["steps"]]
if set(refs) != step_ids or len(refs) != len(step_ids):
raise ValueError(f"incomplete legal case steps: {case['id']}")
if any(not r.get("finding") or not r.get("gap") for r in case["steps"]):
raise ValueError(f"missing legal case evidence: {case['id']}")
if case.get("trace_id") and case["trace_id"] not in trace_ids:
raise ValueError(f"invalid legal trace: {case['id']}")
innovation = legal.get("innovation_exemption_overlay")
if not innovation or any(not innovation.get(k) for k in ("title", "subtitle", "evidence_cutoff", "summary", "boundary", "source_ids")):
raise ValueError("Innovation Exemption overlay is incomplete")
innovation_statuses = unique_ids(innovation["status_legend"], "Innovation Exemption statuses")
if innovation_statuses != {"core_candidate", "conditional_candidate", "supporting_layer", "outside_core"}:
raise ValueError("Innovation Exemption status set is incomplete")
unique_ids(innovation["gates"], "Innovation Exemption gates")
innovation_ecosystems = [r.get("ecosystem_id") for r in innovation["overlaps"]]
if len(innovation_ecosystems) != len(set(innovation_ecosystems)) or set(innovation_ecosystems) != guide_ecosystem_ids:
raise ValueError("Innovation Exemption overlay must cover every tracked technology ecosystem exactly once")
if set(innovation["source_ids"]) - source_ids:
raise ValueError("Innovation Exemption overlay has unknown sources")
for gate in innovation["gates"]:
if any(not gate.get(k) for k in ("title", "rule", "watch")):
raise ValueError(f"incomplete Innovation Exemption gate: {gate.get('id')}")
for row in innovation["overlaps"]:
if row.get("status") not in innovation_statuses or any(not row.get(k) for k in ("overlap", "missing", "watch", "source_ids")):
raise ValueError(f"incomplete Innovation Exemption overlap: {row.get('ecosystem_id')}")
if set(row["source_ids"]) - source_ids:
raise ValueError(f"unknown Innovation Exemption source: {row.get('ecosystem_id')}")
fed = data.get("fed_genius_hub")
if not fed or any(not fed.get(k) for k in ("title", "subtitle", "evidence_cutoff", "status", "summary", "boundary", "source_ids")):
raise ValueError("Fed GENIUS hub header is incomplete")
if fed["status"] != "proposed":
raise ValueError("Fed GENIUS hub must preserve proposal status")
fed_statuses = unique_ids(fed["status_legend"], "Fed GENIUS statuses")
if fed_statuses != {"issuer_application_interface", "custody_distribution_interface", "technical_control_interface", "outside_direct_issuer_perimeter"}:
raise ValueError("Fed GENIUS status set is incomplete")
fed_gate_ids = unique_ids(fed["gates"], "Fed GENIUS gates")
if len(fed_gate_ids) != 12:
raise ValueError("Fed GENIUS hub must preserve twelve gates")
fed_layer_ids = unique_ids(fed["layers"], "Fed GENIUS layers")
if len(fed_layer_ids) != 7:
raise ValueError("Fed GENIUS hub must preserve seven layers")
for layer in fed["layers"]:
if any(not layer.get(k) for k in ("order", "title", "question", "summary", "boundary", "gate_ids")) or set(layer["gate_ids"]) - fed_gate_ids:
raise ValueError(f"incomplete Fed GENIUS layer: {layer.get('id')}")
if sorted(layer["order"] for layer in fed["layers"]) != list(range(1, 8)):
raise ValueError("Fed GENIUS layer order is incomplete")
entity_map = fed.get("entity_map", {})
if any(not entity_map.get(key) for key in ("title", "summary", "boundary", "nodes", "flows")):
raise ValueError("Fed GENIUS entity map is incomplete")
fed_entity_ids = unique_ids(entity_map["nodes"], "Fed GENIUS entity-map nodes")
if "issuer" not in fed_entity_ids or len(fed_entity_ids) < 9:
raise ValueError("Fed GENIUS entity map must preserve the central issuer and surrounding legal seats")
for node in entity_map["nodes"]:
if any(not node.get(key) for key in ("label", "kind", "role", "proof", "boundary", "gate_ids")):
raise ValueError(f"incomplete Fed GENIUS entity-map node: {node.get('id')}")
if set(node["gate_ids"]) - fed_gate_ids or set(node.get("ecosystem_ids", [])) - guide_ecosystem_ids:
raise ValueError(f"invalid Fed GENIUS entity-map references: {node.get('id')}")
unique_ids(entity_map["flows"], "Fed GENIUS entity-map flows")
for flow in entity_map["flows"]:
flow_node_ids = flow.get("node_ids", [])
labels = flow.get("relationship_labels", [])
if not flow.get("label") or len(flow_node_ids) < 2 or set(flow_node_ids) - fed_entity_ids or len(labels) != len(flow_node_ids) - 1 or any(not label for label in labels):
raise ValueError(f"invalid Fed GENIUS entity-map flow: {flow.get('id')}")
unique_ids(fed["clocks"], "Fed GENIUS clocks")
if len(fed["clocks"]) < 8 or any(any(not clock.get(k) for k in ("label", "value", "anchor", "state", "meaning")) for clock in fed["clocks"]):
raise ValueError("Fed GENIUS clocks are incomplete")
unique_ids(fed["question_clusters"], "Fed GENIUS question clusters")
if sum(cluster.get("count", 0) for cluster in fed["question_clusters"]) != 277:
raise ValueError("Fed GENIUS question clusters must total 277")
for gate in fed["gates"]:
if any(not gate.get(k) for k in ("title", "rule", "infrastructure_effect", "implementation_clock", "watch")):
raise ValueError(f"incomplete Fed GENIUS gate: {gate.get('id')}")
fed_ecosystems = [row.get("ecosystem_id") for row in fed["overlaps"]]
if len(fed_ecosystems) != len(set(fed_ecosystems)) or set(fed_ecosystems) != guide_ecosystem_ids:
raise ValueError("Fed GENIUS hub must cover every tracked technology ecosystem exactly once")
if set(fed["source_ids"]) - source_ids:
raise ValueError("Fed GENIUS hub has unknown sources")
for row in fed["overlaps"]:
if row.get("status") not in fed_statuses or any(not row.get(k) for k in ("impact", "not_changed", "watch", "gate_ids", "source_ids")):
raise ValueError(f"incomplete Fed GENIUS overlap: {row.get('ecosystem_id')}")
if set(row["gate_ids"]) - fed_gate_ids or set(row["source_ids"]) - source_ids:
raise ValueError(f"invalid Fed GENIUS references: {row.get('ecosystem_id')}")
expansion = data.get("stack_expansion")
if not expansion or any(not expansion.get(k) for k in ("title", "subtitle", "evidence_cutoff", "summary", "boundary", "liquidity_gap")):
raise ValueError("stack expansion header is incomplete")
expansion_seat_ids = unique_ids(expansion["seats"], "stack expansion seats")
if len(expansion_seat_ids) != 10:
raise ValueError("stack expansion must preserve the ten legal and operating seats")
sublayer_ids: set[str] = set()
for seat in expansion["seats"]:
if any(not seat.get(k) for k in ("label", "question", "sublayers")):
raise ValueError(f"incomplete stack expansion seat: {seat.get('id')}")
ids_here = unique_ids(seat["sublayers"], f"stack expansion sublayers/{seat['id']}")
if sublayer_ids & ids_here:
raise ValueError(f"duplicate stack expansion sublayer across seats: {seat['id']}")
sublayer_ids |= ids_here
if any(not item.get("label") or not item.get("meaning") for item in seat["sublayers"]):
raise ValueError(f"incomplete stack expansion sublayer: {seat['id']}")
if len(sublayer_ids) != 34:
raise ValueError(f"stack expansion must contain exactly 34 sublayers, got {len(sublayer_ids)}")
expansion_system_ids = unique_ids(expansion["systems"], "stack expansion systems")
if len(expansion_system_ids) != 14:
raise ValueError("stack expansion must preserve the fourteen researched system families")
fit_states = {"capability", "candidate", "support", "outside"}
for system in expansion["systems"]:
if any(not system.get(k) for k in ("name", "kind", "jurisdiction", "model", "innovation_status", "summary", "boundary", "watch", "source_ids", "fits", "latest_development", "latest_state", "latest_date", "latest_boundary")):
raise ValueError(f"incomplete stack expansion system: {system.get('id')}")
if system["innovation_status"] not in innovation_statuses:
raise ValueError(f"invalid stack expansion Innovation Exemption status: {system['id']}")
if system["latest_state"] not in buildout_state_ids:
raise ValueError(f"invalid stack expansion current-development state: {system['id']}")
if set(system["source_ids"]) - source_ids:
raise ValueError(f"unknown stack expansion source: {system['id']}")
seen: set[str] = set()
for fit in system["fits"]:
if fit.get("seat_id") not in expansion_seat_ids or fit.get("fit") not in fit_states or not fit.get("note"):
raise ValueError(f"invalid stack expansion fit: {system['id']}")
if fit["seat_id"] in seen:
raise ValueError(f"duplicate stack expansion seat fit: {system['id']}/{fit['seat_id']}")
seen.add(fit["seat_id"])
if not fit.get("sublayer_ids") or set(fit["sublayer_ids"]) - sublayer_ids:
raise ValueError(f"invalid stack expansion sublayer fit: {system['id']}/{fit['seat_id']}")
unique_ids(expansion["comparison_models"], "stack expansion comparison models")
for model in expansion["comparison_models"]:
if not model.get("label") or not model.get("controlling_question") or not model.get("example_ids"):
raise ValueError(f"incomplete stack expansion comparison model: {model.get('id')}")
if set(model["example_ids"]) - expansion_system_ids:
raise ValueError(f"unknown stack expansion comparison example: {model.get('id')}")
transition = data.get("transition_gates", {})
if any(not transition.get(key) for key in ("title", "subtitle", "evidence_cutoff", "summary", "boundary", "source_path")):
raise ValueError("transition gates header is incomplete")
transition_group_ids = unique_ids(transition["groups"], "transition gate groups")
transition_fit_ids = unique_ids(transition["fit_states"], "transition gate fit states")
unique_ids(transition["qualification_path"], "transition qualification path")
transition_requirement_ids = unique_ids(transition["requirements"], "transition requirements")
expected_requirement_ids = {f"req-{number:02d}" for number in range(1, 15)}
if transition_requirement_ids != expected_requirement_ids:
raise ValueError("transition gates must preserve all fourteen Definition-of-Done requirements")
transition_system_ids = profile_ids | expansion_system_ids
mapped_transition_system_ids: set[str] = set()
for requirement in transition["requirements"]:
if requirement.get("group_id") not in transition_group_ids:
raise ValueError(f"unknown transition gate group: {requirement.get('id')}")
if any(not requirement.get(key) for key in ("label", "question", "proof", "boundary", "external_joins", "fits")):
raise ValueError(f"incomplete transition requirement: {requirement.get('id')}")
if requirement.get("number") != int(requirement["id"].split("-")[1]):
raise ValueError(f"transition requirement number mismatch: {requirement.get('id')}")
fit_system_ids = [fit.get("system_id") for fit in requirement["fits"]]
if len(fit_system_ids) != len(set(fit_system_ids)):
raise ValueError(f"duplicate technology in transition requirement: {requirement.get('id')}")
for fit in requirement["fits"]:
if fit.get("system_id") not in transition_system_ids or fit.get("fit") not in transition_fit_ids:
raise ValueError(f"invalid transition technology fit: {requirement.get('id')}/{fit.get('system_id')}")
if any(not fit.get(key) for key in ("maturity", "note")):
raise ValueError(f"incomplete transition technology fit: {requirement.get('id')}/{fit.get('system_id')}")
mapped_transition_system_ids.add(fit["system_id"])
if mapped_transition_system_ids != transition_system_ids:
missing = sorted(transition_system_ids - mapped_transition_system_ids)
raise ValueError(f"transition gates must map every governed and specialist system: {missing}")
q = legal["qualifications"]
actor_ids = unique_ids(q["actors"], "qualification actors")
actor_node_ids = [a["node_id"] for a in q["actors"] if a.get("node_id")]
if len(actor_node_ids) != len(set(actor_node_ids)) or set(actor_node_ids) - {n["id"] for n in data["nodes"]}:
raise ValueError("legal actor graph joins require unique exact node identities")
function_ids = unique_ids(q["functions"], "qualification functions")
status_ids = unique_ids(q["statuses"], "qualification statuses")
unique_ids(q["records"], "qualification records")
if any(f.get("step_id") not in step_ids for f in q["functions"]):
raise ValueError("invalid qualification step")
if any(not f.get("display_title") or not f.get("question") for f in q["functions"]):
raise ValueError("missing qualification job explanation")
inventory = q.get("inventory", [])
inventory_ids = [i["node_id"] for i in inventory]
if len(inventory_ids) != len(set(inventory_ids)) or set(inventory_ids) != {n["id"] for n in data["nodes"]}:
raise ValueError("legal inventory must classify every Hub node exactly once")
for item in inventory:
if item["classification"] not in {"actor", "aggregate", "object"} or set(item["role_ids"]) - function_ids:
raise ValueError("invalid legal inventory classification or role")
if item["classification"] != "object" and item["actor_id"] not in actor_ids:
raise ValueError("legal inventory player missing from actor directory")
if q.get("report_source_id") and q["report_source_id"] not in source_ids:
raise ValueError("legal coverage research source missing")
cases = q.get("visual_cases", [])
unique_ids(cases, "visual legal cases")
for case in cases:
unique_ids(case["stages"], "visual legal stages")
for stage in case["stages"]:
if set(stage["lanes"]) != {"asset", "money", "record"}:
raise ValueError("legal visual must preserve asset, money and record lanes")
for cell in stage["lanes"].values():
if set(cell["actor_ids"]) - actor_ids or set(cell["source_ids"]) - source_ids:
raise ValueError("invalid legal visual evidence join")
for rid in cell.get("record_ids", []):
record = next((r for r in q["records"] if r["id"] == rid), None)
if not record or record["actor_id"] not in cell["actor_ids"]:
raise ValueError("legal visual role link needs exact actor assessment")
if set(cell.get("object_ids", [])) - {n["id"] for n in data["nodes"]}:
raise ValueError("invalid legal visual object")
if cell["status"] not in {"documented", "unresolved", "proposed"} or not cell["text"] or not cell["boundary"]:
raise ValueError("incomplete legal visual evidence")
if cell["status"] == "documented" and not cell["source_ids"]:
raise ValueError("documented legal visual needs sources")
core = data["infrastructure_map"]
institution_ids = unique_ids(core["entities"], "infrastructure entities")
layer_ids = unique_ids(core["layers"], "infrastructure layers")
unique_ids(core["edges"], "infrastructure relationships")
for entity in core["entities"]:
if entity["layer"] not in layer_ids or not all(entity.get(k) for k in ("scope", "boundary", "source_url", "jurisdiction", "evidence_date")):
raise ValueError("incomplete infrastructure entity")
if entity.get("role_actor_ref") and entity["role_actor_ref"] not in actor_ids:
raise ValueError("unknown institutional role-research link")
if entity.get("node_ref") and entity["node_ref"] not in node_ids:
raise ValueError("unknown infrastructure node join")
if set(entity.get("source_ids", [])) - source_ids:
raise ValueError("unknown infrastructure source join")
if entity["layer"] == "authority" and entity["kind"] == "existing_research":
raise ValueError("corporate inventory cannot stand in for public authority")
for edge in core["edges"]:
if edge["from"] not in institution_ids or edge["to"] not in institution_ids or not all(edge.get(k) for k in ("verb", "claim", "boundary", "source_url", "evidence_date")):
raise ValueError("invalid infrastructure relationship")
unique_ids(core["rulebook_crosswalk"], "rulebook crosswalk")
for rule in core["rulebook_crosswalk"]:
if rule["entity_id"] not in institution_ids or not all(rule.get(k) for k in ("kind", "version", "establishes", "boundary", "source_url")):
raise ValueError("invalid rulebook applicability record")
unique_ids(core["access_paths"], "infrastructure access paths")
for route in core["access_paths"]:
if set(route["entity_ids"]) - institution_ids or not route["boundary"] or not route["open_question"]:
raise ValueError("invalid access path institution or limit")
if len(route["steps"]) < 2 or any(not all(step.get(k) for k in ("title", "text", "source_url")) for step in route["steps"]):
raise ValueError("access path needs sourced steps")
for edge in core["edges"]:
if set(edge.get("source_ids", [])) - source_ids:
raise ValueError("unknown institutional relationship source")
if edge.get("registry_edge_ref"):
original = next((e for e in data["edges"] if e["id"] == edge["registry_edge_ref"]), None)
by_id = {n["id"]: n for n in core["entities"]}
if not original or by_id[edge["from"]].get("node_ref") != original["from"] or by_id[edge["to"]].get("node_ref") != original["to"] or edge["claim"] != original["claim"]:
raise ValueError("institutional relationship must preserve original identity and claim")
if edge.get("qualification_ref") and edge["qualification_ref"] not in {r["id"] for r in q["records"]}:
raise ValueError("unknown institutional qualification")
if not core["gaps"]:
raise ValueError("infrastructure coverage must state unresolved work")
overview = data["market_overview"]
unique_ids(overview["layers"], "market overview layers")
covered_functions = [f for layer in overview["layers"] for f in layer["function_ids"]]
if len(covered_functions) != len(set(covered_functions)) or set(covered_functions) != function_ids:
raise ValueError("market overview must cover every function exactly once")
if any(set(layer["node_ids"]) - {n["id"] for n in data["nodes"]} for layer in overview["layers"]):
raise ValueError("market overview has unknown node")
pairs = set()
for r in q["records"]:
pair = (r.get("actor_id"), r.get("function_id"))
if pair in pairs or pair[0] not in actor_ids or pair[1] not in function_ids:
raise ValueError("invalid qualification actor/function pair")
pairs.add(pair)
if r.get("status") not in status_ids or not r.get("source_ids") or set(r["source_ids"]) - source_ids:
raise ValueError("invalid qualification status/source")
if any(not isinstance(r.get(f), str) or not r[f].strip() for f in ("finding", "authority", "conditions", "boundary")):
raise ValueError("incomplete qualification evidence")
liquidity = data["liquidity_hub"]
unique_ids(liquidity["layers"], "liquidity layers")
unique_ids(liquidity["routes"], "liquidity routes")
for record in liquidity["layers"] + liquidity["routes"]:
if not record.get("source_ids") or set(record["source_ids"]) - source_ids:
raise ValueError(f"invalid liquidity source references: {record['id']}")
if record.get("trace_id") and record["trace_id"] not in trace_ids:
raise ValueError(f"invalid liquidity trace: {record['id']}")
if liquidity["report_source_id"] not in source_ids or len(liquidity["stages"]) != 5:
raise ValueError("invalid liquidity research or lifecycle")
for source in data["sources"]:
for field in ("label", "url", "date"):
if not source.get(field):
raise ValueError(f"source {source['id']} missing {field}")
for node in data["nodes"]:
if node["lane"] not in lane_ids:
raise ValueError(f"unknown lane on node {node['id']}")
unknown = set(node.get("sources", [])) - source_ids
if unknown:
raise ValueError(f"unknown sources on node {node['id']}: {sorted(unknown)}")
for field in ("label", "status", "summary", "boundary"):
if not node.get(field):
raise ValueError(f"node {node['id']} missing {field}")
if node.get("operational_state") not in clock_ids:
raise ValueError(f"node {node['id']} has unknown operational state")
for edge in data["edges"]:
if edge["from"] not in node_ids or edge["to"] not in node_ids:
raise ValueError(f"bad endpoint on edge {edge['id']}")
if edge["type"] not in type_ids:
raise ValueError(f"bad relationship type on edge {edge['id']}")
unknown = set(edge.get("sources", [])) - source_ids
if unknown:
raise ValueError(f"unknown sources on edge {edge['id']}: {sorted(unknown)}")
for field in ("label", "status", "claim", "boundary"):
if not edge.get(field):
raise ValueError(f"edge {edge['id']} missing {field}")
if edge.get("operational_state") not in clock_ids:
raise ValueError(f"edge {edge['id']} has unknown operational state")
for lens in data["lenses"]:
unknown_nodes = set(lens.get("node_ids", [])) - node_ids
unknown_types = set(lens.get("relationship_types", [])) - type_ids
if unknown_nodes or unknown_types:
raise ValueError(f"bad references on lens {lens['id']}")
if len(ecosystem_ids) < 9:
raise ValueError("crypto hub requires at least nine governed ecosystem profiles")
for ecosystem in data["ecosystems"]:
unknown_nodes = set(ecosystem.get("node_ids", [])) - node_ids
if ecosystem.get("root_node_id") not in node_ids or unknown_nodes:
raise ValueError(f"bad node references on ecosystem {ecosystem['id']}")
if ecosystem["root_node_id"] not in ecosystem.get("node_ids", []):
raise ValueError(f"ecosystem {ecosystem['id']} root is not a member")
if len(ecosystem.get("walkthrough", [])) < 5:
raise ValueError(f"ecosystem {ecosystem['id']} needs an end-to-end walkthrough")
overlay = set(ecosystem.get("overlay_node_ids") or [])
if overlay - node_ids:
raise ValueError(f"unknown overlay nodes on ecosystem {ecosystem['id']}: {sorted(overlay - node_ids)}")
if overlay & set(ecosystem.get("node_ids") or []):
raise ValueError(f"overlay nodes must stay off the core stack: {ecosystem['id']}")
for field in ("label", "kind", "description", "boundary"):
if not ecosystem.get(field):
raise ValueError(f"ecosystem {ecosystem['id']} missing {field}")
if len(trace_ids) < 6:
raise ValueError("crypto hub requires at least six governed asset traces")
for trace in data["asset_traces"]:
unknown_nodes = set(trace.get("node_ids", [])) - node_ids
unknown_edges = set(trace.get("edge_ids", [])) - edge_ids
if unknown_nodes or unknown_edges:
raise ValueError(f"bad references on asset trace {trace['id']}")
if len(trace.get("node_ids", [])) < 3 or len(trace.get("walkthrough", [])) < 3:
raise ValueError(f"asset trace {trace['id']} needs an explicit path")
for field in ("label", "kind", "description", "boundary"):
if not trace.get(field):
raise ValueError(f"asset trace {trace['id']} missing {field}")
coverage_ids: set[str] = set()
for process in data["process_maps"]:
stage_ids = unique_ids(process.get("stages", []), f"process stages on {process['id']}")
if len(stage_ids) < 10:
raise ValueError(f"process {process['id']} must retain at least ten lifecycle stages")
unknown_ecosystems = set(process.get("ecosystem_ids", [])) - ecosystem_ids
if unknown_ecosystems:
raise ValueError(f"unknown ecosystems on process {process['id']}: {sorted(unknown_ecosystems)}")
if len(process.get("ecosystem_ids", [])) != len(set(process.get("ecosystem_ids", []))):
raise ValueError(f"process {process['id']} contains duplicate ecosystem ids")
for field in ("label", "description", "boundary"):
if not process.get(field):
raise ValueError(f"process {process['id']} missing {field}")
for stage in process["stages"]:
for field in ("label", "description", "question"):
if not stage.get(field):
raise ValueError(f"process stage {stage['id']} missing {field}")
if not stage.get("families"):
raise ValueError(f"process stage {stage['id']} has no lifecycle families")
covered_ecosystems: set[str] = set()
for coverage in process.get("coverage", []):
coverage_id = coverage.get("id")
if not coverage_id or coverage_id in coverage_ids:
raise ValueError(f"duplicate or empty process coverage id: {coverage_id}")
coverage_ids.add(coverage_id)
if coverage.get("ecosystem_id") not in process.get("ecosystem_ids", []):
raise ValueError(f"coverage {coverage_id} uses an ecosystem outside process {process['id']}")
covered_ecosystems.add(coverage["ecosystem_id"])
unknown_stages = set(coverage.get("stage_ids", [])) - stage_ids
unknown_nodes = set(coverage.get("node_ids", [])) - node_ids
unknown_edges = set(coverage.get("edge_ids", [])) - edge_ids
unknown_sources = set(coverage.get("source_ids", [])) - source_ids
if unknown_stages or unknown_nodes or unknown_edges or unknown_sources:
raise ValueError(
f"bad references on coverage {coverage_id}: stages={sorted(unknown_stages)}, "
f"nodes={sorted(unknown_nodes)}, edges={sorted(unknown_edges)}, sources={sorted(unknown_sources)}"
)
if len(coverage.get("stage_ids", [])) != 1:
raise ValueError(f"coverage {coverage_id} must describe one exact stage")
if not coverage.get("stage_ids") or not coverage.get("source_ids"):
raise ValueError(f"coverage {coverage_id} needs stages and primary sources")
if not coverage.get("node_ids") and not coverage.get("edge_ids"):
raise ValueError(f"coverage {coverage_id} needs a supporting node or edge")
coverage_nodes = set(coverage.get("node_ids", []))
for edge_id in coverage.get("edge_ids", []):
edge = edges_by_id[edge_id]
missing_endpoints = {edge["from"], edge["to"]} - coverage_nodes
if missing_endpoints:
raise ValueError(
f"coverage {coverage_id} omits endpoints for {edge_id}: "
f"{sorted(missing_endpoints)}"
)
if coverage.get("role") not in process_role_ids:
raise ValueError(f"coverage {coverage_id} has unknown process role")
if coverage.get("operational_state") not in clock_ids:
raise ValueError(f"coverage {coverage_id} has unknown operational state")
if coverage.get("scale_state") not in scale_state_ids:
raise ValueError(f"coverage {coverage_id} has unknown scale state")
if coverage.get("stress_state") not in stress_state_ids:
raise ValueError(f"coverage {coverage_id} has unknown stress state")
for field in ("summary", "boundary"):
if not coverage.get(field):
raise ValueError(f"coverage {coverage_id} missing {field}")
missing_coverage = set(process.get("ecosystem_ids", [])) - covered_ecosystems
if missing_coverage:
raise ValueError(f"process {process['id']} has listed ecosystems with no mapped coverage: {sorted(missing_coverage)}")
coverage_lookup = {c["id"]: (p["id"], c) for p in data["process_maps"] for c in p["coverage"]}
for trace in data["asset_traces"]:
if trace.get("process_id") not in trace.get("process_ids", []) or not set(trace.get("process_ids", [])) <= process_ids:
raise ValueError(f"trace {trace['id']} has invalid process mappings")
for ref in trace.get("coverage_ids", []):
if ref not in coverage_lookup or coverage_lookup[ref][0] not in trace["process_ids"]:
raise ValueError(f"trace {trace['id']} has invalid coverage {ref}")
if len(trace.get("mapping_steps", [])) != len(trace["walkthrough"]):
raise ValueError(f"trace {trace['id']} needs every narrative step assessed")
for step in trace["mapping_steps"]:
if not set(step["coverage_ids"]) <= set(trace["coverage_ids"]):
raise ValueError(f"trace {trace['id']} step has unmapped coverage")
unique_ids(data.get("evidence_questions", []), "evidence questions")
for question in data.get("evidence_questions", []):
for field in ("label", "finding", "unknown", "needed", "comparison"):
if not question.get(field):
raise ValueError(f"evidence question missing {field}")
if not question.get("coverage_ids") or not set(question["coverage_ids"]) <= set(coverage_lookup):
raise ValueError("evidence question has invalid coverage")
if not question.get("source_ids") or not set(question["source_ids"]) <= source_ids:
raise ValueError("evidence question has invalid sources")
for trace in data["asset_traces"]:
if trace.get("sequence_label") and not trace.get("sequence_boundary"):
raise ValueError("reported sequence needs a timing boundary")
bank_research = data.get("bank_research", {})
if not bank_research.get("cutoff") or bank_research.get("report_source_id") not in source_ids:
raise ValueError("bank research needs a cutoff and saved report source")
banks = bank_research.get("banks", [])
bank_ids = [bank.get("node_id") for bank in banks]
if len(bank_ids) != 17 or len(set(bank_ids)) != len(bank_ids) or not set(bank_ids) <= node_ids:
raise ValueError("bank research must cover the 17 unique July 2026 roster bank nodes")
bank_by_id = {bank["node_id"]: bank for bank in banks}
cases = bank_research.get("cases", [])
if not cases:
raise ValueError("bank research needs sourced transaction cases")
unique_ids(cases, "bank research cases")
completed_banks = set()
for case in cases:
participants = case.get("bank_ids", [])
if not participants or len(set(participants)) != len(participants) or not set(participants) <= set(bank_ids):
raise ValueError(f"bank case {case['id']} has invalid bank participants")
if case.get("trace_id") not in trace_ids:
raise ValueError(f"bank case {case['id']} has an unknown trace")
if not case.get("source_ids") or not set(case["source_ids"]) <= source_ids:
raise ValueError(f"bank case {case['id']} needs valid sources")
for field in ("label", "publication_date", "summary", "boundary"):
if not case.get(field):
raise ValueError(f"bank case {case['id']} missing {field}")
if "execution_date" not in case:
raise ValueError(f"bank case {case['id']} must state its execution-date disclosure")
completed_banks.update(participants)
for bank_id in participants:
if case["trace_id"] not in bank_by_id[bank_id].get("trace_ids", []):
raise ValueError(f"bank {bank_id} omits its case trace {case['trace_id']}")
for bank in banks:
expected = "completed" if bank["node_id"] in completed_banks else "roster"
if bank.get("result") != expected:
raise ValueError(f"bank {bank['node_id']} result must agree with sourced case coverage ({expected})")
refs = bank.get("trace_ids", [])
if len(refs) != len(set(refs)) or not set(refs) <= trace_ids:
raise ValueError(f"bank {bank['node_id']} has invalid trace references")
for adjacent in bank.get("adjacent", []):
if not adjacent.get("label") or not adjacent.get("summary"):
raise ValueError(f"bank {bank['node_id']} has incomplete adjacent research")
if adjacent.get("operational_state") not in clock_ids:
raise ValueError(f"bank {bank['node_id']} adjacent research needs an operating clock")
if not adjacent.get("source_ids") or not set(adjacent["source_ids"]) <= source_ids:
raise ValueError(f"bank {bank['node_id']} adjacent research needs valid sources")
if adjacent.get("node_id") and adjacent["node_id"] not in node_ids:
raise ValueError(f"bank {bank['node_id']} has an unknown adjacent node")
if adjacent.get("edge_id"):
edge = edges_by_id.get(adjacent["edge_id"])
if not edge or bank["node_id"] not in {edge["from"], edge["to"]}:
raise ValueError(f"bank {bank['node_id']} has an invalid adjacent relationship")
if adjacent.get("node_id") and adjacent["node_id"] not in {edge["from"], edge["to"]}:
raise ValueError(f"bank {bank['node_id']} adjacent node and relationship disagree")
unique_ids(data["accounting_layers"], "accounting layers")
known_families = {family for process in data["process_maps"] for stage in process["stages"] for family in stage["families"]}
for layer in data["accounting_layers"]:
if not layer.get("families") or set(layer["families"]) - known_families:
raise ValueError(f"invalid accounting families on {layer['id']}")
for field in ("label", "explanation", "question"):
if not layer.get(field):
raise ValueError(f"accounting layer {layer['id']} missing {field}")
books = data["books_hub"]
if not all(books.get(k) for k in ("title", "subtitle", "cutoff", "test", "boundary", "report_source_id")):
raise ValueError("incomplete books hub")
if books["report_source_id"] not in source_ids:
raise ValueError("books hub report source missing")
kind_ids = unique_ids(books["book_kinds"], "book kinds")
if kind_ids != {"proprietary", "fiduciary", "memo", "none"}:
raise ValueError("book kinds must be proprietary, fiduciary, memo and none")
books_route_ids = unique_ids(books["routes"], "books routes")
if books_route_ids != set(rights_by_route):
raise ValueError("books routes must cover the taught rights routes")
for route in books["routes"]:
if not all(route.get(k) for k in ("title", "amount", "amount_label", "scope", "overlay_name")):
raise ValueError(f"incomplete books route {route['id']}")
if not isinstance(route["amount"], int) or route["amount"] < 1:
raise ValueError(f"books route {route['id']} needs a teaching amount")
unique_ids(route["steps"], "books steps")
rights_steps = {s["id"] for s in rights_by_route[route["id"]]["steps"]}
mapped = [s["rights_step_id"] for s in route["steps"]]
if set(mapped) != rights_steps or len(mapped) != len(rights_steps):
raise ValueError(f"books steps must cover every rights step exactly once: {route['id']}")
for step in route["steps"]:
if step["rights_step_id"] not in rights_steps:
raise ValueError(f"unknown rights step on books {route['id']}/{step['id']}")
if step.get("legal_step_id") not in step_ids:
raise ValueError(f"invalid books legal handoff {route['id']}/{step['id']}")
if not all(step.get(k) for k in ("title", "question", "role_test")):
raise ValueError(f"incomplete books step {step['id']}")
if not step.get("source_ids") or set(step["source_ids"]) - source_ids:
raise ValueError(f"invalid books sources {route['id']}/{step['id']}")
unique_ids(step["entries"], f"books entries {step['id']}")
unique_ids(step.get("overlay_entries", []), f"books overlay entries {step['id']}")
if not step["entries"]:
raise ValueError(f"books step {step['id']} has no ordinary entries")
for entry in step["entries"] + step.get("overlay_entries", []):
if entry.get("book_kind") not in kind_ids:
raise ValueError(f"invalid book kind on {entry.get('id')}")
occupant = entry.get("occupant")
if not occupant:
raise ValueError(f"books entry {entry.get('id')} missing occupant")
if occupant == "unnamed":
if entry.get("occupant_status") or entry.get("occupant_source_ids"):
raise ValueError(f"unnamed occupant cannot carry qualification evidence: {entry['id']}")
else:
if entry.get("occupant_status") not in {"verified", "dated", "conditional", "example", "lead"}:
raise ValueError(f"invalid occupant status on {entry['id']}")
if not entry.get("occupant_source_ids") or set(entry["occupant_source_ids"]) - source_ids:
raise ValueError(f"named occupant needs sources: {entry['id']}")
if not entry.get("occupant_boundary"):
raise ValueError(f"named occupant needs a boundary: {entry['id']}")
if entry.get("node_id") and entry["node_id"] not in node_ids:
raise ValueError(f"unknown occupant node {entry['id']}")
if not entry.get("entity_label") or not entry.get("role_performed"):
raise ValueError(f"incomplete books entry {entry.get('id')}")
debit, credit = (entry.get("debit") or "").strip(), (entry.get("credit") or "").strip()
if entry["book_kind"] in {"proprietary", "fiduciary"}:
if not debit or not credit:
raise ValueError(f"moving books need debit and credit: {entry['id']}")
if entry["book_kind"] == "none" and (debit not in {"", "—", "-"} or credit not in {"", "—", "-"}):
raise ValueError(f"no-entry row cannot book the economic object: {entry['id']}")
walk = data["process_walk"]
if not all(walk.get(k) for k in ("title", "subtitle", "test", "cutoff", "routes")):
raise ValueError("incomplete process walk")
walk_ids = unique_ids(walk["routes"], "process walk routes")
if walk_ids != set(rights_by_route):
raise ValueError("process walk must cover the taught routes")
for route in walk["routes"]:
if not all(route.get(k) for k in ("tab", "title", "today", "overlay_name")):
raise ValueError(f"incomplete walk route {route['id']}")
unique_ids(route["steps"], "walk steps")
books_steps = {s["id"] for s in rights_by_route[route["id"]]["steps"]}
if {s["id"] for s in route["steps"]} != books_steps:
raise ValueError(f"walk steps must match books/rights steps: {route['id']}")
for step in route["steps"]:
if not step.get("title") or not step.get("what") or not step.get("seats"):
raise ValueError(f"incomplete walk step {route['id']}/{step['id']}")
seat_names = [s.get("seat") for s in step["seats"]]
if any(not n for n in seat_names) or len(seat_names) != len(set(seat_names)):
raise ValueError(f"walk seats need unique names: {step['id']}")
for seat in step["seats"]:
if not seat.get("today") or not seat.get("overlap") or not seat.get("overtake"):
raise ValueError(f"incomplete walk seat {step['id']}")
for directory in (books.get("current_directories") or {}).values():
if directory.get("source_id") not in source_ids:
raise ValueError(f"current directory missing source: {directory.get('id')}")
if not directory.get("as_of") or not directory.get("boundary") or not directory.get("shown_on"):
raise ValueError(f"incomplete current directory {directory.get('id')}")
unique_ids(directory["rows"], f"current directory {directory['id']}")
for row in directory["rows"]:
if not row.get("name") or not row.get("id"):
raise ValueError(f"incomplete current directory row {directory['id']}")
for lane in data["lanes"]:
if not lane.get("color"):
raise ValueError(f"lane {lane['id']} missing governed color")
for required in (
"ripple-labs", "xrpl", "rlusd", "xrp", "securitize-llc", "wormhole",
"master-securityholder-file", "linked-electronic-systems", "ethereum", "solana",
"taurus-acquisition-inc", "circle-technology-services", "circle-payments-network",
"tazapay-pte", "tazapay-canada", "tazapay-local-rails",
):
if required not in node_ids:
raise ValueError(f"required boundary node missing: {required}")
tazapay_edge = edges_by_id.get("e-taurus-tazapay-pending-control")
if not tazapay_edge:
raise ValueError("Circle–Tazapay pending-control edge is required")
if (
tazapay_edge.get("from") != "taurus-acquisition-inc"
or tazapay_edge.get("to") != "tazapay-pte"
or tazapay_edge.get("type") != "pending_control"
or tazapay_edge.get("operational_state") != "announced"
):
raise ValueError("Circle–Tazapay acquisition must remain pending control until a closing receipt updates the map")
control_edges = [edge for edge in data["edges"] if edge["type"] == "control"]
if len(control_edges) < 8:
raise ValueError("control skeleton is unexpectedly incomplete")
if len(data["edges"]) < 35 or len(data["nodes"]) < 25:
raise ValueError("map is unexpectedly incomplete")
HTML = r'''
Crypto Infrastructure Hub
Freedom 250 Observatory · evidence cutoff
entities & objects
typed relationships
source objects
actual control edges
Command surface
One evidence base · change the lens, not the page
Crypto stack / Liquidity · research through September 10, 2026
Where funding becomes usable
Who provides it, what restricts it, and when it becomes available again.
Bank rules, product terms and market liquidity meet here. Start with the layers, compare a route, or follow the funding lifecycle.
Full research & worked examples
Crypto stack / Legal process · operative Innovation Exemption through September 17, 2026; proposed Fed GENIUS architecture through September 24 lives in its own Hub room
How a transaction acquires legal effect
Follow the claim, the responsible institutions and the documents that connect one step to the next.
Node rail = functional lane. Line color and pattern = relationship class, never confidence or legal effect. Process role = what an exact entity does at one lifecycle stage. Clock dot = operational state.
Node rails
Relationship lines · refine structural views
Process roles
Operational clocks
Selected
SWIFT banks & tests
Ecosystem stack
Choose an ecosystem or click its root to trace organizations, operators, products, networks and market rails end to end.
Reading rule: a dense web of partnership and technical edges is not a control structure. A process role is stage-specific: operating, integrating or transporting does not confer legal control, cash finality or a public backstop. Proposal status, exact legal entity, date and claim boundary remain decisive.
'''
LIQUIDITY_SCRIPT = r"""
const liquidity=data.liquidity_hub;
const expansion=data.stack_expansion;
const transition=data.transition_gates;
let liqTab='layers',liqQuery='';
let expansionSeat='all',expansionQuery='',expansionSelected='',expansionSelectedSeat='';
let transitionView='gate',transitionRequirement='req-08',transitionSystem='',transitionFit='all';
let bankSelected='citi',bankDimension='all',bankArchetype='all',bankQuery='',bankCapability='money';
let activeRoom='command';
const hubRouteTable={command:{job:'command'},home:{job:'command'},systems:{job:'command'},expansion:{job:'systems'},banks:{job:'systems'},corporate:{job:'systems'},securitize:{job:'systems'},overview:{job:'systems'},stack:{job:'systems'},map:{job:'systems'},xray:{job:'how'},walk:{job:'how'},journey:{job:'how'},books:{job:'how'},rights:{job:'how'},rules:{job:'rules'},genius:{job:'rules'},legal:{job:'rules'},routes:{job:'rules'},transition:{job:'rules'},liquidity:{job:'rules'}};
const legacyRoomAliases={guide:'systems',transactions:'xray',qualification:'rules'};
function hubJobForRoom(room){
if(room==='map')return ['process','trace','compare','accounting'].includes(state.mode)?'how':'systems';
return hubRouteTable[room]?.job||'command';
}
function hubContextForRoom(room){
const job=hubJobForRoom(room),labels={command:'Command surface',systems:'Systems',how:'How it works',rules:'Rules & proof'},roomLabels={expansion:'Stack-role comparison',banks:'Major-bank comparison',corporate:'Corporate comparison',securitize:'Securitize anatomy',overview:'Institutional context',stack:'Current stack',map:'Relationship and lifecycle map',xray:'Joined route',walk:'Plain-language route',journey:'Participant journey',rights:'Rights and records',books:'Books and cash',rules:'Rules & proof',genius:'Fed GENIUS proposals',legal:'Legal process',routes:'Who may do this?',transition:'Readiness gates',liquidity:'Liquidity and collateral'};
const crumbs=[labels[job]];if(roomLabels[room]&&roomLabels[room]!==labels[job])crumbs.push(roomLabels[room]);
let current={command:'One evidence base · change the lens, not the page',systems:'All 34 tracked systems',how:'Follow one Share, Dollar or Fund route',rules:'Permission, readiness and evidence'}[job];
if(room==='systems'){const system=systemRecordById(guideSelected);if(system){crumbs.push(system.label);current=system.summary;}}
if(job==='how')current=`${hubRouteRecord().tab} route · ${roomLabels[room]||'joined evidence'}`;
return {crumbs,current};
}
function syncHubContext(){
const context=hubContextForRoom(activeRoom),breadcrumb=document.getElementById('hubBreadcrumb'),current=document.getElementById('hubCurrent');
if(breadcrumb)breadcrumb.innerHTML=context.crumbs.map((label,index)=>`${index?'›':''}${esc(label)}`).join('');
if(current)current.textContent=context.current;
}
function openCryptoRoom(room,updateHash=true){
if(room==='innovation'){legalTab='innovation';room='legal';}
room=legacyRoomAliases[room]||room;
document.body.classList.toggle('qual-reading',room==='legal' && legalTab==='qualifications');
document.body.classList.toggle('hub-command-room',room==='command');
if(!hubRouteTable[room])room='command';
activeRoom=room;
const onMap=room==='map'||room==='stack';
document.body.classList.toggle('liquidity-room',!onMap);
document.body.classList.toggle('hub-home-room',room==='home');
document.body.classList.toggle('xray-room',room==='xray');
document.body.classList.toggle('current-stack-room',room==='stack');
document.body.classList.toggle('walk-room',room==='walk');
document.getElementById('commandHub').hidden=room!=='command';
document.getElementById('fedGeniusHub').hidden=room!=='genius';
document.getElementById('transitionHub').hidden=room!=='transition';
document.getElementById('fieldGuide').hidden=room!=='systems';
document.getElementById('stackExpansionHub').hidden=room!=='expansion';
document.getElementById('bankTransitionHub').hidden=room!=='banks';
document.getElementById('corporateStackHub').hidden=room!=='corporate';
document.getElementById('securitizeHub').hidden=room!=='securitize';
document.getElementById('xrayHub').hidden=room!=='xray';
document.getElementById('liquidityHub').hidden=room!=='liquidity';
document.getElementById('legalHub').hidden=room!=='legal';
document.getElementById('wholeHub').hidden=room!=='overview';
document.getElementById('rightsHub').hidden=room!=='rights';
document.getElementById('journeyHub').hidden=room!=='journey';
document.getElementById('booksHub').hidden=room!=='books';
document.getElementById('walkHub').hidden=room!=='walk';
document.getElementById('legalRoutesHub').hidden=room!=='routes';
document.body.classList.toggle('legal-routes-room',room==='routes');
document.body.classList.toggle('journey-room',room==='journey');
document.body.classList.toggle('books-room',room==='books');
document.getElementById('stackField').hidden=room!=='stack';
document.getElementById('stackOverlayField').hidden=room!=='stack';
document.getElementById('ecosystemField').hidden=room==='stack'||state.mode!=='explore';
const job=hubJobForRoom(room);
document.querySelectorAll('.hub-chrome-nav [data-hub-job]').forEach(b=>b.setAttribute('aria-pressed',String(b.dataset.hubJob===job)));
document.querySelector('.hub-routebar').hidden=job!=='how';
syncHubRouteBar();
if(room==='stack'){if(!currentStackIds.has(state.ecosystem)){state.ecosystem='us-equity-now';state.focusedNode=ecosystemsById.get(state.ecosystem).root_node_id;}state.mode='explore';setMode('explore')}
else if(room==='map'){if(currentStackIds.has(state.ecosystem)){state.ecosystem='ripple';state.focusedNode=ecosystemsById.get('ripple').root_node_id;}}
const targetHash=room==='map'?'#map?mode='+state.mode:room==='systems'?'#systems-'+guideSelected:room==='command'?'#command?lens='+commandLens+(['systems','evidence'].includes(commandLens)?'&system='+encodeURIComponent(guideSelected):'')+(['flows','rules'].includes(commandLens)?'&route='+encodeURIComponent(hubRoute):'')+(commandLens==='rules'?'&law='+encodeURIComponent(commandLawFocus):''):'#'+room;
if(updateHash && location.hash!==targetHash)history.replaceState(null,'',targetHash);
if(room==='command')renderCommandSurface();else if(room==='genius')renderFedGenius();else if(room==='transition')renderTransition();else if(room==='systems')renderFieldGuide();else if(room==='expansion')renderStackExpansion();else if(room==='banks')renderBankTransition();else if(room==='corporate')renderCorporateStacks();else if(room==='securitize')renderSecuritizeAnatomy();else if(room==='xray')renderXray();else if(room==='walk')renderWalk();else if(room==='routes')renderLegalRoutes();else if(room==='journey')renderJourney();else if(room==='books')renderBooks();else if(room==='rights')renderRights();else if(room==='overview')renderWhole();else if(room==='liquidity')renderLiquidity();else if(room==='legal')renderLegal();else render();
syncHubContext();
}
function liqResearch(ids){return `Sources & evidence${sourceLinks(ids)}`}
function expansionSystemMatches(system){const q=expansionQuery.trim().toLowerCase();return (!q||[system.name,system.kind,system.jurisdiction,system.model,system.summary,system.boundary,system.watch,...system.fits.map(f=>f.note)].join(' ').toLowerCase().includes(q))&&(expansionSeat==='all'||system.fits.some(f=>f.seat_id===expansionSeat));}
function renderExpansionDetail(){
const target=document.getElementById('sxDetail');if(!target)return;
const selectedSeat=expansion.seats.find(s=>s.id===expansionSelectedSeat);
if(selectedSeat){target.innerHTML=`Layer ${String(selectedSeat.order).padStart(2,'0')} · quick definition
${esc(selectedSeat.label)}
${esc(selectedSeat.question)}
${selectedSeat.sublayers.map(s=>`
${esc(s.label)}
${esc(s.meaning)}
`).join('')}
Proof rule: Each sublayer needs its own named actor, authority and operating receipt. A system touching one sublayer does not inherit the whole seat.
Compare claims, funding providers and exits. These routes have different evidence scopes; this is not a ranking or proof of integration.
Find a route `;renderLiquidityRoutes();}
if(liqTab==='flow')target.innerHTML=`
Follow each change in rights and funding. Reuse may begin before external settlement when a bank supplies credit; withdrawal, redemption and sale are different exits.
${liquidity.stages.map((s,i)=>`
${i+1}${i<4?' →':''}${esc(s.title)}
${esc(s.question)}
`).join('')}
Backing
What supports the claim? Identify the assets, custodian, restrictions and holder rights.
Settlement asset
What changes hands to discharge this particular obligation?
Finality
When does the relevant transfer become legally unconditional and irrevocable?
These three dimensions apply across the lifecycle. Blockchain confirmation does not alone establish invoice discharge or completed bank payout.
Proposal, statutory effectiveness, application review, reserve measurement, redemption, publication, supervisory reporting and examination all run on different anchors.
`;
}
let legalTab='walk',legalStep=0,legalCase='',innovationStatus='all',innovationQuery='';
function legalSources(ids){return `Research & source documents${sourceLinks(ids)}`;}
function renderInnovationRows(){
const q=innovationQuery.toLowerCase(),base=innovation.overlaps.map(r=>{const e=ecosystemsById.get(r.ecosystem_id);return {...r,label:e.label,open_id:e.id,adjacent:false};}),adjacent=expansion.systems.map(system=>({status:system.innovation_status,label:system.name,open_id:system.id,adjacent:true,overlap:system.summary,missing:system.boundary,watch:system.watch,source_ids:system.source_ids})),all=base.concat(adjacent),rows=all.filter(r=>innovationStatus==='all'||r.status===innovationStatus).filter(r=>[r.label,r.overlap,r.missing,r.watch].join(' ').toLowerCase().includes(q));
document.getElementById('innovationResults').innerHTML=`
${rows.length} of ${all.length} tracked systems · 20 deep ecosystem profiles plus ${expansion.systems.length} adjacent technology, control and settlement families. Every row remains not selected and not operating under the order.
`;
}
function renderInnovation(){
document.getElementById('legalContent').innerHTML=`Effective order · evidence cutoff ${esc(innovation.evidence_cutoff)}
Follow the questions in order. Several legal duties operate at once; these steps organize the inquiry rather than prescribe a universal transaction sequence.
Carry a worked case through the steps
Step ${legalStep+1} of ${legal.steps.length}
${esc(s.question)}
${esc(s.explanation)}
Who carries the responsibility
${esc(s.actors)}
What to inspect
${esc(s.required_evidence)}
What this step establishes
${esc(s.output)}
${esc(s.boundary)}
${legalSources(s.source_ids)}${c?`
${esc(c.status)}
${esc(c.title)} · this step
${esc(item.finding)}
Still to establish: ${esc(item.gap)}
${legalSources(c.source_ids)}`:''}
`;
}
if(legalTab==='layers')target.innerHTML=`
These authorities can apply simultaneously. Start with the jurisdiction, legal entity and function to determine which instrument governs each question.
${legal.layers.map(r=>`
${esc(r.title)}
${esc(r.summary)}
Locate: ${esc(r.question)}
${esc(r.boundary)}
${legalSources(r.source_ids)}`).join('')}
`;
if(legalTab==='cases')target.innerHTML=`
Each case uses the same questions. Their evidence states remain distinct: proposals, effective conditional exemptions, operating services and reported arrangements do not carry the same authority or operating clock.
${esc(item.classification==='object'?'Supporting object':item.classification==='aggregate'?'Group / mixed entry':'Player or operator')}${esc(n.status)}
${esc(n.label)}
${esc(n.summary)}
${esc(item.actor_type)}
Role leads: ${names.length?names.map(esc).join(' · '):'No function assigned from this entry alone.'}
Evidence and limits
${esc(n.boundary)}
These are inventory research leads. They do not establish registration, appointment, eligibility or current operational readiness.
${legalSources(n.sources)}${qualifications.actors.some(a=>a.id===item.actor_id)?``:''}`;
}
function qualificationModes(){return lvModes();}
function renderQualificationDirectory(){
const counts={};qualifications.inventory.forEach(i=>counts[i.classification]=(counts[i.classification]||0)+1);
document.getElementById('legalContent').innerHTML=`
${qualifications.functions.length} role families · ${qualifications.records.length} scoped assessments. Additional researched actors are included in this search and in “Explore a player.”
';
}
document.addEventListener('input',e=>{if(e.target.id==='qualInventorySearch')updateQualificationDirectory();});
document.addEventListener('change',e=>{if(e.target.id==='qualInventoryType')updateQualificationDirectory();});
let lvCase='',lvSelection=null,lvReturn=null;
function lvModes(){return `
${[['transaction','Follow a transaction'],['role','Understand a role'],['player','Explore a player'],['directory','Directory & coverage']].map(([id,t])=>``).join('')}
`;}
function lvTag(type){return `${esc(type)}`;}
function lvFrame(title,intro,controls,body){
document.getElementById('legalContent').innerHTML=`${lvModes()}
Legal relationships · saved evidence through ${esc(qualifications.evidence_cutoff)}
${esc(title)}
${esc(intro)}
${controls}${qualMode==='role'&&lvReturn?``:''}
${['entity','role','asset','system','group'].map(lvTag).join('')}Solid: documentedDashed: proposed / conditionalDotted: unresolved / research lead
${body}
`;
if(lvSelection)lvShowDetail(lvSelection);
}
function lvState(s){return ['proposed','conditional'].includes(s)?'conditional':s==='documented'||s==='established_scope'?'documented':'unresolved';}
function lvActorType(a){const n=data.nodes.find(n=>n.id===a.node_id);return n?lvNodeShape(n):'entity';}
function lvActorButtons(ids){return ids.map(id=>{const a=qualifications.actors.find(a=>a.id===id);return a?``:'';}).join('');}
function lvShowDetail(sel){
const panel=document.getElementById('lvDetail');if(!panel)return;lvSelection=sel;document.querySelectorAll('[data-lv-cell]').forEach(el=>el.setAttribute('aria-pressed',String(sel.kind==='cell'&&el.dataset.lvCell===sel.stage&&el.dataset.lvLane===sel.lane)));
let title='',text='',boundary='',sources=[],links='',status='';
if(sel.kind==='cell'){
const c=qualifications.visual_cases.find(c=>c.id===sel.case),st=c.stages.find(st=>st.id===sel.stage),v=st.lanes[sel.lane];title=st.title+' · '+sel.lane;text=v.text;boundary=v.boundary;sources=v.source_ids;status=v.status;links=lvActorButtons(v.actor_ids)+(v.record_ids||[]).map(id=>{const r=qualifications.records.find(r=>r.id===id);return ``;}).join('');
}else if(sel.kind==='record'){
const r=qualifications.records.find(r=>r.id===sel.id);title=qualifications.actors.find(a=>a.id===r.actor_id).label;text=r.finding;boundary=r.boundary;sources=r.source_ids;status=r.status;links=`
Required for this arrangement
${esc(r.conditions)}
${esc(r.authority)}
`+lvActorButtons([r.actor_id])+``;
}else if(sel.kind==='edge'){
const e=data.edges.find(e=>e.id===sel.id);title=e.label;text=e.claim;boundary=e.boundary;sources=e.sources;status=e.status;links=[e.from,e.to].map(id=>{const a=qualifications.actors.find(a=>a.node_id===id);return a?lvActorButtons([a.id]):'';}).join('');
}else if(sel.kind==='lead'){
const i=qualifications.inventory.find(i=>i.node_id===sel.id),n=data.nodes.find(n=>n.id===sel.id);title=n.label;text=n.summary;boundary=n.boundary+' Inventory role leads do not establish authorization or appointment.';sources=n.sources;status=n.status;links=lvActorButtons([i.actor_id]);
}else if(sel.kind==='requirement'){
const f=qualifications.functions.find(f=>f.id===sel.id);title=f.display_title;text=f.qualification_check;boundary='This is an applicability checklist, not a determination that every actor qualifies.';sources=[qualifications.report_source_id];status='Eligibility question';
}
panel.classList.add('is-open');
panel.innerHTML=`${esc(status.replaceAll('_',' '))}
${esc(title)}
${esc(text)}
What this does—and does not—establish
${esc(boundary)}
${links}
Evidence
${sources.length?sourceLinks(sources):'
No transaction-specific evidence is mapped for this connection.
'}`;
}
function renderLegalTransaction(){
const cases=qualifications.visual_cases;if(!cases?.length)return;
const c=cases.find(c=>c.id===lvCase)||cases[0];lvCase=c.id;
const controls=`Choose an arrangement`;
const body=`
Read left to right within each lane. Columns organize the arrangement; they do not assert atomic settlement or identical timing across lanes. Click a dotted connection to see the missing evidence.
`;
lvFrame(c.title,c.description,controls,body);
}
function renderLegalRole(){
const f=qualifications.functions.find(f=>f.id===qualFunction);const rows=qualifications.records.filter(r=>r.function_id===f.id);const leads=qualifications.inventory.filter(i=>i.classification!=='object'&&i.role_ids.includes(f.id)&&!rows.some(r=>r.actor_id===i.actor_id));
const controls=`Choose the role`;
const body=`
No scoped assignment saved for this role yet. This is an evidence gap, not a finding of ineligibility.
'}
Other inventory leads (${leads.length})
Function mentions to investigate; these are not established assignments.
${leads.map(i=>``).join('')}
`;
lvFrame('Understand a role','Read the qualification requirements, then inspect each player’s actual appointment and limits.',controls,body);
}
function lvNodeShape(n){const i=qualifications.inventory.find(i=>i.node_id===n.id);if(i?.actor_type==='role'||n.kind==='role')return 'role';if(i?.classification==='aggregate')return 'group';if(i?.classification==='actor')return /technical|network/.test(i.actor_type)?'system':'entity';if(/asset|token|fund|money|share|deposit/.test(n.kind))return 'asset';if(/role/.test(n.kind))return 'role';return 'system';}
function renderLegalPlayer(){
const a=qualifications.actors.find(a=>a.id===qualActor);const rows=qualifications.records.filter(r=>r.actor_id===a.id);const edges=a.node_id?data.edges.filter(e=>e.from===a.node_id||e.to===a.node_id):[];
const controls=`Choose a player or operator group${lvReturn?``:''}`;
const body=`
${lvTag(lvActorType(a))}
${esc(a.label)}
${esc(a.scope)}
Roles held or assessed
${rows.map(r=>``).join('')||'
No completed role assessment for this entry. Use its relationship evidence below to investigate.
'}
Connected entities, products and systems
Arrows preserve the source relationship’s direction. Ownership, service, capital and technical links retain their original meaning.
No direct structural connections are saved for this exact entry. Its scoped assessments above remain available.
'}
`;
lvFrame('Explore a player','See this entry’s legal roles and its directly sourced relationships. A parent’s permissions do not pass automatically to its subsidiaries or products.',controls,body);
}
document.addEventListener('click',e=>{
const cell=e.target.closest('[data-lv-cell]');if(cell)lvShowDetail({kind:'cell',case:lvCase,stage:cell.dataset.lvCell,lane:cell.dataset.lvLane});
for(const [attr,kind] of [['lvRecord','record'],['lvEdge','edge'],['lvLead','lead'],['lvRequirement','requirement']]){const el=e.target.closest('[data-'+attr.replace(/[A-Z]/g,m=>'-'+m.toLowerCase())+']');if(el)lvShowDetail({kind,id:el.dataset[attr]});}
const player=e.target.closest('[data-lv-player]');if(player){if(qualMode==='transaction')lvReturn=lvCase;qualActor=player.dataset.lvPlayer;qualMode='player';lvSelection=null;renderQualifications();}
const role=e.target.closest('[data-lv-role]');if(role){if(qualMode==='transaction')lvReturn=lvCase;qualFunction=role.dataset.lvRole;qualMode='role';lvSelection=null;renderQualifications();}
if(e.target.closest('[data-lv-return]')){lvCase=lvReturn;qualMode='transaction';lvSelection=null;renderQualifications();}
if(e.target.closest('[data-lv-close]')){lvSelection=null;document.querySelectorAll('[data-lv-cell]').forEach(el=>el.setAttribute('aria-pressed','false'));document.getElementById('lvDetail').classList.remove('is-open');document.getElementById('lvDetail').innerHTML='
Inventory leads · role not yet assessed${leads.filter(i=>!records.some(r=>r.actor_id===i.actor_id)).sort((a,b)=>Number(scope.has(b.node_id))-Number(scope.has(a.node_id))).slice(0,3).map(i=>{const n=data.nodes.find(n=>n.id===i.node_id);return `
${esc(n.summary)}
`;}).join('')}
Open question: ${esc(layer.gap)}
${records.length} scoped assessments · ${leads.length} inventory leads. Choose a role above to inspect all.
`;
}
function wholeInstitutionLinks(nodeId){
const matches=data.infrastructure_map.entities.filter(n=>n.node_ref===nodeId||(n.role_actor_ref&&qualifications.actors.find(a=>a.id===n.role_actor_ref)?.node_id===nodeId));
return `
Institutional connections
${matches.length?matches.map(n=>``).join(''):'
This entry has not yet been joined to the institutional map. Its saved relationships below may contain relevant evidence; an absent join does not mean it is unregulated.
'}
Check the exact legal entity, activity, jurisdiction and permission. A parent company’s connections do not automatically apply to its subsidiaries or products.
`;
}
function wholeConnections(){
if(!wholeNode)return '
Explore across layers
Choose an arrangement to highlight its footprint, or search for a player, product, rule or relationship. Selecting a map entry shows its direct connections here.
No direct structural relationships are saved for this entry.
'}
`;
}
let infraSelected='dtc',infraJurisdiction=data.infrastructure_map.default_scope||'',infraRelation='';
function infraInScope(n){return !infraJurisdiction||(infraJurisdiction==='US focus'?(n.jurisdiction==='US'||n.jurisdiction.startsWith('US /')||data.infrastructure_map.us_focus_context_ids.includes(n.id)):n.jurisdiction===infraJurisdiction);}
function infraName(id){return data.infrastructure_map.entities.find(n=>n.id===id)?.label||id;}
function infraEvidence(n){return n.source_ids?sourceLinks(n.source_ids):`Primary source ↗`;}
function infraRoleLinks(n){
if(!n.role_actor_ref)return '';
const rs=qualifications.records.filter(r=>r.actor_id===n.role_actor_ref);
return `
No institution-to-institution connection is assessed here. This is a coverage gap, not evidence of independence. For a company, open its existing arrangement research.
'}
`;
}
function infraAccessPaths(){return `
How participants gain access
Compare the gates and responsibilities. Each path describes a particular access model; it does not approve a named firm.
All ${qualifications.functions.length} role families are shown. A scoped assessment can be documented, conditional, proposed or not established; it is not blanket approval for the actor. Public-authority relationships are mapped separately above.
No actor-level qualification assessment in the saved role records.
'}
Evidence needed: ${esc(f.qualification_check)}
`;}).join('')}
`;}
function infraEcosystemCoverage(){
return `
Coverage across the saved ecosystems
Every saved ecosystem is listed. Counts describe this research model, not approved institutions or complete regulatory coverage. A joined entry may be a company, service, instrument or authority. Assessment counts include conditional and negative findings; read each finding’s status and evidence.
${rs.length?`${rs.length} scoped assessments across ${new Set(rs.map(r=>r.function_id)).size} role families`:'No scoped role assessments linked to these entries.'}
`;
}).join('')}
`;
}
function infraOverview(){
const m=data.infrastructure_map;
return ``;
}
function infraMap(){
const m=data.infrastructure_map;
return `
${m.entities.filter(infraInScope).length} entries in this view · ${m.entities.length} in the saved reference · ${m.edges.length} saved typed connections
Show jurisdiction
Read each connection by its verb: supervises · designates · sets standards · operates · provides services. Rows organize functions; they do not imply that every row commands the next. Select any name to inspect its relationships. All mapped names remain visible below.
${data.infrastructure_map.source_audit.returned_content} of ${data.infrastructure_map.source_audit.total} URLs returned content in the September 10 browser check.
This overview organizes the saved research. Layer placement is a navigation aid, not a license or proof that systems integrate. Highlighting follows explicit case membership or direct relationships.
These supporting views connect the institutional picture to the saved arrangements. Company role leads remain unassessed until supported by a scoped finding.
Read the current system first. Then compare the crypto function at the same step. Each card names the action, the person who can act, the right or obligation, the controlling record, and the evidence needed to call that step complete.
${esc(r.baseline)}
${esc(r.scope)}
${esc(r.clock)}
Whose right are we following?
${r.chain.map(x=>`
${esc(x)}
`).join('')}
These relationships coexist. The numbered steps are a teaching sequence; postings, funding and legal rights can arise at different times or overlap. They are not a claim that every transaction follows one clock.
Show crypto comparison: ${esc(r.overlay)}${rightsOverlay?`Focus `:''}
${rightsOverlay?`
${hub.statuses.map(x=>`
${esc(x.label)}
${esc(x.meaning)}
`).join('')}
“Continuing dependency” is not necessarily a defect crypto must remove. A technical ledger alone cannot grant a charter, create an issuer obligation or adjudicate a legal claim. “Outside reviewed design” is not a prediction that technology can never change.
`:''}
Showing ${rows.length} of ${r.steps.length} steps${rightsFilter!=='all'&&rightsOverlay?' · filtered; choose All steps to restore the full route':''}. All main findings and evidence questions are visible.
Instruction / conditionSecurities obligationMoney obligation / paymentRecord / rights relationship · dashed${journeyOverlay?'Token movement · separate from bank payout':''}
${journeyOverlay?`
Lower lane: ${esc(p.overlay_name)} comparison. Green = specified function; dashed amber = separate dependency; gold = selection.
These maps cover the three researched walkthroughs. The wider library includes more systems; a saved role is not yet a complete transaction route.
Routes still to map
${data.transaction_maps.unmapped.map(x=>`
${esc(x)}
`).join('')}
`;
if(restore)document.querySelector(restore)?.focus({preventScroll:true});
}
function journeySelect(id){journeySelected=id;journeyCommit();}
document.addEventListener('click',e=>{
const route=e.target.closest('[data-journey-route]');if(route){setHubRoute(route.dataset.journeyRoute,false);journeySelected=journeyData().nodes[0].id;journeyScenario='ordinary';journeyCommit();return;}
const b=e.target.closest('[data-journey-node]');if(b)journeySelect(b.dataset.journeyNode);
const p=journeyData(),ns=p.nodes.filter(n=>!n.context),i=ns.findIndex(n=>n.id===journeySelected);
if(e.target.closest('[data-journey-next]')&&i>=0&&i0)journeySelect(ns[i-1].id);
if(e.target.closest('[data-journey-restart]')){journeyScenario='ordinary';journeySelect(ns[0].id);}
if(e.target.closest('[data-journey-normal]')){journeyScenario='ordinary';journeyCommit();}
if(e.target.closest('[data-journey-scenario-focus]')){const sc=p.scenarios.find(s=>s.id===journeyScenario);if(sc)journeySelect(sc.node_id);}
});
document.addEventListener('keydown',e=>{const b=e.target.closest('[data-journey-node]');if(b&&['Enter',' '].includes(e.key)){e.preventDefault();journeySelect(b.dataset.journeyNode);document.querySelector(`[data-journey-node="${journeySelected}"]`)?.focus();}});
document.addEventListener('change',e=>{if(e.target.id==='journeyZoom'){journeyZoom=e.target.value;renderJourney();}if(e.target.id==='journeyOverlay'){journeyOverlay=e.target.checked;const sc=journeyData().scenarios.find(s=>s.id===journeyScenario);if(sc?.requires_overlay&&!journeyOverlay)journeyScenario='ordinary';if(!journeyNodes().some(n=>n.id===journeySelected))journeySelected=journeyData().nodes[0].id;journeyCommit();}if(e.target.id==='journeyScenario'){journeyScenario=e.target.value;const sc=journeyData().scenarios.find(s=>s.id===journeyScenario);if(sc){journeySelected=sc.node_id;if(sc.requires_overlay)journeyOverlay=true;}journeyCommit();}});
let lrFunction='recordkeeping',lrPlayer='',lrFind='';
let lrDirectoryQuery='';
function lrSources(ids){return `
${sourceLinks(ids)}
`;}
function lrStatus(p){return data.legal_routes_map.statuses.find(s=>s.id===p.status)?.label||p.status;}
function lrAssignmentStatus(a){return ({verified:'Primary record checked',dated:'Dated evidence',conditional:'Conditional scope',lead:'Research lead'})[a.status];}
function lrPlayerCard(p,r){const a=(data.legal_routes_map.assignments||[]).find(x=>x.route_id===r.id&&x.player_id===p.id);return ` ${a?`
${lrSources(p.source_ids)}`;}
function lrEntitySummary(routes){const rows=(data.legal_routes_map.assignments||[]).filter(a=>routes.some(r=>r.id===a.route_id));if(!rows.length)return '';return `
Who fills which capacity?
These are sourced examples, not the complete membership or eligibility universe. “Primary record checked” describes the evidence check, not approval for your transaction.
`;}
function lrDirectoryRows(){const d=data.legal_routes_map.participation_directory;if(!d)return '';const rows=d.rows.filter(r=>(r.name+' '+r.id+' '+r.services).toLowerCase().includes(lrDirectoryQuery.toLowerCase()));return `
${rows.length} of ${d.rows.length} member/account rows shown · effective ${esc(d.as_of)}
Member/account number
Publisher’s member/account name
Listed services
${rows.map(r=>`
${esc(r.id)}
${esc(r.name)}
${esc(r.services)}
`).join('')}
`;}
function lrDirectory(){const d=data.legal_routes_map.participation_directory;if(lrFunction!=='participation'||!d)return '';return `
Search the full public GSD directory snapshot
${esc(d.boundary)}
Member, account number or listed service
${lrDirectoryRows()}
${lrSources([d.source_id])}`;}
function renderLegalRoutes(){
const m=data.legal_routes_map,f=qualifications.functions.find(x=>x.id===lrFunction),routes=m.routes.filter(r=>r.function_ids.includes(lrFunction)),playerIds=new Set(routes.flatMap(r=>r.player_ids)),focus=m.players.find(p=>p.id===lrPlayer),records=qualifications.records.filter(r=>r.function_id===lrFunction);
document.getElementById('legalRoutesHub').innerHTML=`U.S. legal routes · research assembled ${esc(m.cutoff)}
What permits this role—and who has the evidence?
Choose the legal function first. Follow the applicable branch, check its conditions, then inspect the exact entity. Registration, a documented service role and an appointment to your arrangement answer different questions.
1 · Function needed→2 · Legal pathway→3 · Conditions to satisfy→4 · Named entity & evidence→5 · Arrangement still to establish
${m.routes.length} mapped pathways · ${m.players.length} named evidence profiles · ${qualifications.functions.length} functions visible. Every function has its own applicability test. Eligible categories describe who may qualify; named profiles show the evidence recovered so far.
${routes.length} pathways for this function · ${playerIds.size} distinct named profiles. Branches depend on the activity and entity; they are not interchangeable options.
${lrEntitySummary(routes)}${lrDirectory()}
${routes.map((r,i)=>`
PATH ${i+1} · ${r.state==='proposed'?'PROPOSED · NO CURRENT PERMISSION':'MAPPED LEGAL / CONTRACTUAL PATH'}
${r.state==='proposed'?'This proposal qualifies no entity.':'No named player has been assessed against this pathway here. The pathway is mapped; its player evidence is still missing.'}
`}
`).join('')||`
The legal routes for this function still need mapping
${esc(f.qualification_check)}
This is an explicit research gap, not a finding that no legal route or eligible player exists.
`}
Related saved role assessments · not automatic qualification
${records.length} saved assessment${records.length===1?'':'s'} for this function. These can include proposals, outside-role findings and foreign examples; the original scope remains controlling.
${records.map(r=>{const a=qualifications.actors.find(x=>x.id===r.actor_id);return ``;}).join('')||'No scoped actor assessment saved.'}
${esc(m.scope)} Technology does not substitute for entity identity, powers, registration, service admission or a required appointment. The current-status labels describe the cited evidence, not a compliance certification.
`;
}
document.addEventListener('click',e=>{const f=e.target.closest('[data-lr-function]');if(f){lrFunction=f.dataset.lrFunction;lrPlayer='';history.replaceState(null,'','#routes-'+lrFunction);renderLegalRoutes();}const p=e.target.closest('[data-lr-player]');if(p){lrPlayer=p.dataset.lrPlayer;history.replaceState(null,'','#routes-'+lrFunction+'?player='+encodeURIComponent(lrPlayer));renderLegalRoutes();const el=document.getElementById('legalEntityFocus');el.focus({preventScroll:true});el.scrollIntoView({block:'center'});}if(e.target.closest('[data-lr-close]')){lrPlayer='';history.replaceState(null,'','#routes-'+lrFunction);renderLegalRoutes();}const profile=e.target.closest('[data-lr-profile]');if(profile){qualActor=profile.dataset.lrProfile;wholeOpenLegal('player');}});
document.addEventListener('input',e=>{if(e.target.id==='lrDirectorySearch'){lrDirectoryQuery=e.target.value;document.getElementById('lrDirectoryRows').innerHTML=lrDirectoryRows();}if(e.target.id==='lrFind'){lrFind=e.target.value;document.querySelectorAll('.lr-functions [data-lr-function]').forEach(b=>{const f=qualifications.functions.find(x=>x.id===b.dataset.lrFunction);b.hidden=!(f.display_title+' '+f.question).toLowerCase().includes(lrFind.toLowerCase());});}});
let walkRoute='securities';
function walkBooks(routeId,stepId){
const r=data.books_hub.routes.find(x=>x.id===routeId),s=r&&r.steps.find(x=>x.id===stepId);
if(!s)return '';
const cards=[...s.entries,...(s.overlay_entries||[])].filter(e=>e.book_kind==='proprietary'||e.book_kind==='fiduciary');
if(!cards.length)return '';
return `T-accounts for this step${cards.map(e=>`
`).join('')}`;
}
function renderWalk(){
const hub=data.process_walk,r=hub.routes.find(x=>x.id===walkRoute)||hub.routes[0];
history.replaceState(null,'','#walk-'+r.id);
document.getElementById('walkHub').innerHTML=`
${esc(hub.cutoff)}
${esc(hub.title)}
${esc(hub.subtitle)}
${esc(hub.test)}
${esc(r.title)}
${esc(r.today)}
Overlay: ${esc(r.overlay_name)}
${r.steps.map((s,i)=>`
${String(i+1).padStart(2,'0')}
${esc(s.title)}
${esc(s.what)}
Seat
Today
Crypto overlap
Took the books?
${s.seats.map(row=>`
${esc(row.seat)}
${esc(row.today)}
${esc(row.overlap)}
${esc(row.overtake)}
`).join('')}
${walkBooks(r.id,s.id)}`).join('')}`;
}
document.addEventListener('click',e=>{
const wr=e.target.closest('[data-walk-route]');if(wr){setHubRoute(wr.dataset.walkRoute,false);renderWalk();window.scrollTo({top:0});}
});
let booksRoute='securities',booksStep='access',booksOverlay=false,booksMoved=false,booksDirQuery='';
function booksData(){return data.books_hub.routes.find(r=>r.id===booksRoute)||data.books_hub.routes[0];}
function booksHash(){return 'books-'+booksRoute+'-'+booksStep+'?overlay='+(booksOverlay?'1':'0')+'&moved='+(booksMoved?'1':'0');}
function booksMoney(n){return new Intl.NumberFormat('en-US',{style:'currency',currency:'USD',maximumFractionDigits:0}).format(n);}
function booksKind(id){return data.books_hub.book_kinds.find(k=>k.id===id);}
function booksOccupant(e){
if(e.occupant==='unnamed')return `
Occupant: unnamed — not a finding that the seat is empty
`;
const st=({verified:'Sourced process office / primary record',dated:'Dated appointment or disclosure',conditional:'Conditional / design-limited',example:'Sourced example — not this teaching party',lead:'Research lead'})[e.occupant_status]||e.occupant_status;
return `
${esc(r.amount_label)} ${money} teaching amount Compare ${esc(r.overlay_name)} Only rows whose books moved
${esc(r.scope)}
${hub.book_kinds.map(k=>`${esc(k.label)}`).join('')}Occupant names stay empty. Process offices (CCP, CSD, Reserve Banks) are the taught constitution, not a member census.
Current evidence state · ${esc(s.latest_date)}${esc(guideStageLabel(s.latest_state))}
${esc(s.latest_development)}
Boundary: ${esc(s.latest_boundary)}
Coverage note: This record supports architecture, stack-role and current-development analysis. It does not yet carry a separate governed deals ledger, deep transaction anatomy or token-value-capture profile.
What changed
${esc(s.latest_development)}
Current receipt boundary: ${esc(s.latest_boundary)}
What is live / still building / not proved
Documented state ${esc(guideStageLabel(s.latest_state))} as of ${esc(s.latest_date)}.
Current model ${esc(s.model)} · ${esc(s.jurisdiction)}
No separate governed deals ledger is attached to this specialist record. Connections remain available through its cited sources and relationship context where mapped.
Token or issued claim
No separate governed token or value-capture profile is attached here. The system’s product model must not be treated as proof of token demand or holder value capture.
No tracked system matches this filter. Clear the search or show all coverage.
';
document.getElementById('fieldGuide').innerHTML=`Systems · 34 tracked technologies and operating families · evidence through ${esc(technologyBuildout.evidence_cutoff)}
One directory. One stable system page.
Every system now enters through the same page grammar: plain answer, current evidence state, what changed, stack role, boundaries and next receipt. Coverage differences remain explicit.
${esc(technologyBuildout.boundary)}
${fieldGuide.quick_distinctions.map(x=>`
${esc(x.title)}
${esc(x.explanation)}
`).join('')}
Find any tracked system, token, deal, role or build
${systemComparePanel()}
${guideList(visible)}${detail}
`;
document.getElementById('guideSearch')?.addEventListener('input',e=>{guideQuery=e.target.value;renderFieldGuide();document.getElementById('guideSearch')?.focus();});
syncHubContext();
}
function commandSourceIds(system){
if(!system)return [];
if(system.coverage==='specialist')return [...new Set(system.specialist.source_ids||[])];
const p=system.profile,b=system.build;
return [...new Set([...(p.source_ids||[]),...(b.current_builds||[]).flatMap(item=>item.source_ids||[]),...(b.deals_and_integrations||[]).flatMap(item=>item.source_ids||[]),...(b.native_token?.source_ids||[])])];
}
function commandCurrent(system){
if(system.coverage==='specialist')return {headline:system.specialist.latest_development,date:system.specialist.latest_date,state:guideStageLabel(system.specialist.latest_state),boundary:system.specialist.latest_boundary};
return {headline:system.build.headline,date:system.build.refreshed_through,state:guideStageLabel(system.build.transition_state),boundary:system.build.transition_assessment.not_proved};
}
function commandRail(records){
const q=commandQuery.trim().toLowerCase(),visible=records.filter(system=>!q||system.search.includes(q));
const lenses=[['briefing','Overview','The whole field',['briefing']],['systems','Structure','Who and what connects',['systems']],['flows','Operation','How things move',['flows']],['rules','Change','Law, state and proof',['rules','evidence']]];
let context='';
if(commandLens==='systems'||commandLens==='evidence')context=`
${commandLens==='systems'?'Structure in view':'Evidence for one system'} · ${records.length}
This specialist record does not silently inherit a deals ledger, transaction anatomy, legal-register role or token-value-capture profile. Those fields remain visibly unproved.
${commandDeepTools(system)}`;
}
function commandDeepTools(system){
return `Specialist analytical views · only when you need them
${system.coverage==='specialist'?'':''}
`;
}
function commandDeals(records){
const rows=records.flatMap(system=>system.coverage==='deep'?system.build.deals_and_integrations.map(item=>({system,item,type:'deal'})):[{system,item:{counterparty:'Specialist current development',date:system.specialist.latest_date,state:system.specialist.latest_state,summary:system.specialist.latest_development,boundary:'No separate governed deals ledger: '+system.specialist.latest_boundary},type:'specialist'}]).sort((a,b)=>String(b.item.date).localeCompare(String(a.item.date)));
return `Deals, builds and institutional connections
What is connected—and at what evidence state?
Named relationships, software availability, pilots and completed operating events stay different. Specialist developments are shown, but never relabeled as deals.
`;
}
function commandFlows(){
const route=hubRouteRecord();
return `Transaction flows · one route, all lenses
Follow ${esc(route.tab)} without leaving the canvas.
Movement, rights, records, books, authority, cash, remedy and evidence stay aligned. The numbered sequence is explanatory; legal and accounting clocks can overlap.
Today: ${esc(seat.today)} Crypto overlap: ${esc(seat.overlap)} Did it take the books? ${esc(seat.overtake)}
`).join('')}`).join('')}
Specialist route tools`;
}
function commandRules(){
const commentClock=fedGenius.clocks.find(clock=>clock.id==='comment-period')||fedGenius.clocks[0];
return `Rules, permissions and readiness
What is permitted—and what is actually operating?
Functional fit, legal seat, appointment, operating receipt, scale and stress are separate gates. Rule packages remain labeled by their own legal clock.
01Functional fitCan it perform the job?02Legal seatMay an eligible entity occupy it?03AppointmentIs it named for this arrangement?04Operating receiptDid the exact route complete?05Scale and stressDoes it recur and recover?
Specialist legal and readiness tools`;
}
function commandEvidence(system){
const ids=commandSourceIds(system),current=commandCurrent(system);
return `Evidence and boundaries
What supports the current ${esc(system.label)} reading?
The answer, source, operating clock and limit stay together. Source count is coverage, not proof of importance or adoption.
${total} joined result${total===1?'':'s'} for “${esc(commandQuery)}”
Results remain grouped by what they are. A matching technology, legal function, transaction route and source are not flattened into one evidence class.
`;
document.getElementById('commandSearch')?.addEventListener('input',event=>{commandQuery=event.target.value;renderCommandSurface();document.getElementById('commandSearch')?.focus();});
syncHubContext();
}
document.addEventListener('click',event=>{
const landscape=event.target.closest('[data-command-landscape]');if(landscape){commandLens='briefing';commandQuery='';openCryptoRoom('command');return;}
const lens=event.target.closest('[data-command-lens]');if(lens){commandLens=lens.dataset.commandLens;openCryptoRoom('command');return;}
const system=event.target.closest('[data-command-system]');if(system){guideSelected=system.dataset.commandSystem;commandLens='systems';commandQuery='';openCryptoRoom('command');return;}
const route=event.target.closest('[data-command-route]');if(route){setHubRoute(route.dataset.commandRoute,false);commandLens='flows';openCryptoRoom('command');return;}
const preset=event.target.closest('[data-command-preset]');if(preset){commandQuery=preset.dataset.commandPreset;openCryptoRoom('command');return;}
const law=event.target.closest('[data-command-law]');if(law){commandQuery='';commandLens='rules';commandLawFocus=law.dataset.commandLaw;openCryptoRoom('command');requestAnimationFrame(()=>{const target=document.getElementById('command-law-'+commandLawFocus);target?.focus({preventScroll:true});target?.scrollIntoView({block:'center'});});return;}
});
document.addEventListener('click',e=>{
const profile=e.target.closest('[data-guide-profile]');if(profile){guideSelected=profile.dataset.guideProfile;history.replaceState(null,'','#systems-'+guideSelected);renderFieldGuide();syncHubContext();return;}
const scope=e.target.closest('[data-systems-scope]');if(scope){systemsScope=scope.dataset.systemsScope;renderFieldGuide();return;}
const compare=e.target.closest('[data-system-compare]');if(compare){const id=compare.dataset.systemCompare;if(systemsCompare.has(id))systemsCompare.delete(id);else if(systemsCompare.size<3)systemsCompare.add(id);renderFieldGuide();return;}
if(e.target.closest('[data-system-compare-clear]')){systemsCompare.clear();renderFieldGuide();return;}
const roleMap=e.target.closest('[data-system-role-map]');if(roleMap){expansionSelected=roleMap.dataset.systemRoleMap;expansionSelectedSeat='';expansionSeat='all';expansionQuery='';openCryptoRoom('expansion');requestAnimationFrame(()=>document.getElementById('sxDetail')?.scrollIntoView({block:'start'}));return;}
const readiness=e.target.closest('[data-system-readiness]');if(readiness){transitionView='system';transitionSystem=readiness.dataset.systemReadiness;openCryptoRoom('transition');return;}
const map=e.target.closest('[data-guide-map]');if(map){const ecosystem=ecosystemsById.get(map.dataset.guideMap);if(ecosystem){state.ecosystem=ecosystem.id;state.focusedNode=ecosystem.root_node_id;ecosystemSelect.value=ecosystem.id;state.mode='explore';setMode('explore');openCryptoRoom('map');}return;}
});
let hubRoute='securities',xrayStep=0,xrayOverlay=true,xrayLayer='all';
function hubRouteRecord(id=hubRoute){return data.process_walk.routes.find(r=>r.id===id)||data.process_walk.routes[0];}
function syncHubRouteBar(){document.querySelectorAll('[data-hub-route]').forEach(b=>b.setAttribute('aria-pressed',String(b.dataset.hubRoute===hubRoute)));}
function setHubRoute(id,rerender=true){
if(!data.process_walk.routes.some(r=>r.id===id))return;
hubRoute=id;walkRoute=id;rightsRoute=id;booksRoute=id;journeyRoute=id;rightsFilter='all';journeyScenario='ordinary';
const b=data.books_hub.routes.find(r=>r.id===id),j=data.transaction_maps.routes.find(r=>r.id===id);
booksStep=b.steps[0].id;journeySelected=j.nodes[0].id;xrayStep=0;syncHubRouteBar();
if(!rerender)return;
if(activeRoom==='command')renderCommandSurface();else if(activeRoom==='xray')renderXray();else if(activeRoom==='walk')renderWalk();else if(activeRoom==='journey')journeyCommit();else if(activeRoom==='books')renderBooks();else if(activeRoom==='rights')renderRights();
}
function hubRoomCard(room,title,description,badge=''){return ``;}
function hubMapCard(mode,title,description,badge=''){return ``;}
function hubViewCard(room,view,title,description,badge=''){return ``;}
function hubSubviewButton(room,view,label){return ``;}
function openHubSubview(room,view){
if(room==='map'){setMode(view);openCryptoRoom('map');return;}
if(view==='room'){openCryptoRoom(room);return;}
if(room==='genius')fedTab=view;
if(room==='transition'){transitionView=view;transitionSystem=view==='system'?(transitionSystem||'ripple'):'';}
if(room==='legal')legalTab=view;
if(room==='liquidity')liqTab=view;
if(room==='xray'){xrayLayer=view;openCryptoRoom('xray');return;}
openCryptoRoom(room,false);
history.replaceState(null,'',`#${room}?view=${encodeURIComponent(view)}`);
}
let homeDeepSearchIndex=null;
function homeSearchStrings(value,out=[]){
if(value===null||value===undefined)return out;
if(typeof value==='string'||typeof value==='number'){const raw=String(value),parts=raw.length>4000?raw.split(/\n{2,}/):[raw];parts.forEach(part=>{const text=part.replace(/\s+/g,' ').trim();if(!text)return;if(text.length<=1200)out.push(text);else for(let start=0;starthomeSearchStrings(item,out));return out;}
if(typeof value==='object')Object.entries(value).forEach(([key,item])=>{if(!['color','dash','url'].includes(key))homeSearchStrings(item,out);});
return out;
}
function homeSearchNormalize(value){return String(value||'').normalize('NFKD').replace(/[\u0300-\u036f]/g,'').toLowerCase().replace(/[^a-z0-9]+/g,' ').trim();}
function homeSearchStem(value){return value.length>5?value.replace(/(ization|ational|ments|ment|ingly|edly|ing|ers|ies|ed|es|s)$/,''):value;}
function homeSearchTokens(value){return [...new Set(homeSearchNormalize(value).split(' ').filter(token=>token.length>1).map(homeSearchStem))];}
function homeSearchWordMatch(word,token){return word===token||word.startsWith(token)||token.length>3&&token.startsWith(word)||token.length>3&&word.includes(token);}
function homeSearchBuildIndex(){
const fed=data.fed_genius_hub,legal=data.legal_process_hub,liq=data.liquidity_hub,transition=data.transition_gates,currentIds=new Set(data.current_stack_ids||[]),currentEcosystems=data.ecosystems.filter(item=>currentIds.has(item.id)),currentNodeIds=new Set(currentEcosystems.flatMap(item=>item.node_ids||[])),currentNodes=data.nodes.filter(item=>currentNodeIds.has(item.id)),currentEdges=data.edges.filter(item=>currentNodeIds.has(item.from)&¤tNodeIds.has(item.to)),sourceIndex=data.sources.map(source=>({id:source.id,label:source.label,publisher:source.publisher,date:source.date,url:source.url})),sourceReports=data.sources.filter(source=>source.local_text).map(source=>({id:source.id,label:source.label,text:source.local_text}));
const targets=[
['guide','room','Systems & entities → Field Guide','Tracked Systems Field Guide','company network token connector plain language controls deals integrations builds transition value capture return gates', [data.technology_field_guide,data.technology_buildout]],
['map','explore','Systems & entities → Crypto map','Entities, relationships and ecosystems','entity organization product network rail relationship control partnership operating source',[data.nodes,data.edges,data.ecosystems,data.relationship_types,sourceIndex,data.bank_research]],
['overview','room','Systems & entities → Whole institutional map','Institutions, access routes and rulebooks','institution member access route rulebook authority arrangement market structure',[data.infrastructure_map,data.market_overview]],
['overview','room','Evidence → Saved Hub reports','Full source reports connected to the Hub','research report source evidence analysis finding boundary',sourceReports],
['stack','room','Systems & entities → Current stack','Current securities, dollar and fund rails','incumbent current share dollar fund rail cash settlement',[currentEcosystems,currentNodes,currentEdges]],
['expansion','room','Systems & entities → Stack expansion','Expanded technology and control stack','technology control rights settlement sublayer seat architecture',data.stack_expansion],
['banks','room','Systems & entities → Major bank transition','Major bank digital transition comparison','bank asset manager digital money tokenization custody settlement collateral financing recovery research thesis',data.bank_transition_comparison],
['corporate','room','Systems & entities → Corporate stacks','Corporate stack comparison','company group ownership operating dimension peer',data.corporate_stack_comparison],
['securitize','room','Systems & entities → Securitize anatomy','Securitize anatomy','regulated entity lifecycle record model security fund cash leg ripple genius',data.securitize_anatomy],
['xray','all','Transactions → X-ray','Transaction X-ray','movement rights record books cash authority permission remedy failure correction',[data.process_walk,data.steps_rights_hub,data.books_hub,data.transaction_maps]],
['walk','room','Transactions → Walk','Plain-language transaction walk','today overlap overtake step sequence share dollar fund',data.process_walk],
['journey','room','Transactions → Transaction maps','Transaction maps and exceptions','participant lane milestone scenario exception overlay',data.transaction_maps],
['rights','room','Transactions → Steps & rights','Rights, obligations and controlling records','right obligation authoritative controlling record completion evidence',data.steps_rights_hub],
['books','room','Transactions → Debits & credits','Books, accounts and fiduciary records','debit credit ledger account cash posting reconciliation',data.books_hub],
['map','process','Transactions → Crypto map → Process','Process coverage','tokenization stablecoin foreign exchange lifecycle stage process role coverage',data.process_maps],
['map','trace','Transactions → Crypto map → Trace','Evidence traces','asset claim evidence path walkthrough boundary',data.asset_traces],
['map','accounting','Transactions → Crypto map → Accounting','Accounting and finality','claim record cash settlement finality balance sheet accounting',data.accounting_layers],
['genius','entities','Rules & permissions → Fed GENIUS','Fed GENIUS entity map','federal reserve payment stablecoin issuer subsidiary legal entity reserve custodian distributor',fed.entity_map],
['genius','layers','Rules & permissions → Fed GENIUS','Fed GENIUS seven layers','institutional layer supervision reserve redemption custody reporting examination capital',fed.layers],
['genius','gates','Rules & permissions → Fed GENIUS','Fed GENIUS twelve gates','application approval eligibility operating gate proof receipt',fed.gates],
['genius','clocks','Rules & permissions → Fed GENIUS','Fed GENIUS nine clocks','proposal comment final rule effective date application approval redemption reporting examination',fed.clocks],
['genius','ecosystems','Rules & permissions → Fed GENIUS','Fed GENIUS ecosystem impacts','ecosystem overlap impact company network adapter reserve custody',fed.overlaps],
['genius','questions','Rules & permissions → Fed GENIUS','Fed GENIUS 277 questions','request for comment question cluster issue section',fed.question_clusters],
['legal','walk','Rules & permissions → Legal process','Legal foundations and process','authority statute rule contract claim evidence legal effect',[legal.steps,legal.subtitle]],
['legal','innovation','Rules & permissions → SEC package','SEC Innovation Exemption','securities exchange commission order exemption eligible actor tokenized stock',legal.innovation_exemption_overlay],
['legal','layers','Rules & permissions → Legal process','Authority layers','legal authority layer regulator rulebook contract arrangement',legal.layers],
['legal','qualifications','Rules & permissions → Legal process','Actors and qualifications','actor function qualification assessment assignment eligibility',legal.qualifications],
['legal','cases','Rules & permissions → Legal process','Worked legal cases','case finding gap status transaction',legal.cases],
['routes','room','Rules & permissions → Permissions & players','Legal pathways and named players','function pathway condition legal basis entity appointment participation',data.legal_routes_map],
['transition','gate','Qualification & evidence → Transition gates','Fourteen transition requirements','functional fit legal seat exact route operating receipt scale stress requirement proof boundary',[transition.requirements,transition.qualification_path,transition.groups]],
['transition','system','Qualification & evidence → Transition gates','System qualification results','technology system family fit dependency evidence',transition.requirements.map(requirement=>requirement.fits)],
['liquidity','layers','Qualification & evidence → Liquidity','Liquidity rule layers','liquidity collateral reserve capital rule funding constraint',liq.layers],
['liquidity','routes','Qualification & evidence → Liquidity','Liquidity route comparisons','route cash collateral provider restriction comparison',liq.routes],
['liquidity','flow','Qualification & evidence → Liquidity','Funding lifecycle','funding stage available reusable release lifecycle',liq.stages]
];
homeDeepSearchIndex=targets.map(([room,view,breadcrumb,label,aliases,payload])=>{const strings=[label,breadcrumb,aliases,...homeSearchStrings(payload)],normalized=homeSearchNormalize(strings.join(' ')),words=[...new Set(normalized.split(' ').filter(Boolean).map(homeSearchStem))];return {room,view,breadcrumb,label,strings,normalized,words};});
return homeDeepSearchIndex;
}
function homeSearchSnippet(row,tokens){
const candidates=row.strings.map(text=>({text,normalized:homeSearchNormalize(text),hits:tokens.filter(token=>homeSearchNormalize(text).split(' ').some(word=>homeSearchWordMatch(homeSearchStem(word),token))).length})).filter(item=>item.hits).sort((a,b)=>b.hits-a.hits||a.text.length-b.text.length);
const selected=[];for(const item of candidates){if(selected.some(text=>text.toLowerCase()===item.text.toLowerCase()))continue;selected.push(item.text.length>210?item.text.slice(0,207)+'…':item.text);if(selected.length===2)break;}
return selected.join(' · ')||'Matching content is inside this room.';
}
function homeDeepSearch(query){
const tokens=homeSearchTokens(query);if(!tokens.length)return [];
return (homeDeepSearchIndex||homeSearchBuildIndex()).map(row=>{const matches=tokens.every(token=>row.words.some(word=>homeSearchWordMatch(word,token)));if(!matches)return null;const heading=homeSearchNormalize(row.label+' '+row.breadcrumb),headingHits=tokens.filter(token=>heading.split(' ').some(word=>homeSearchWordMatch(homeSearchStem(word),token))).length;return {...row,score:headingHits*20+tokens.filter(token=>row.normalized.includes(token)).length,snippet:homeSearchSnippet(row,tokens)};}).filter(Boolean).sort((a,b)=>b.score-a.score||a.label.localeCompare(b.label));
}
function filterHomeAtlas(){
const q=homeAtlasQuery.trim().toLowerCase();let visible=0;
document.querySelectorAll('#hubHome .home-system-card,#hubHome .home-recent-card').forEach(card=>{const show=!q||card.textContent.toLowerCase().includes(q);card.hidden=!show;if(show)visible+=1;});
document.querySelectorAll('#hubHome .atlas-family').forEach(family=>{const meta=[family.querySelector('.liq-kicker')?.textContent,family.querySelector('h3')?.textContent,family.querySelector(':scope>p')?.textContent].join(' ').toLowerCase(),familyMatch=!q||meta.includes(q);let cards=0;family.querySelectorAll('.hub-room-card').forEach(card=>{const show=familyMatch||card.textContent.toLowerCase().includes(q);card.hidden=!show;if(show)cards+=1;});family.hidden=cards===0;if(cards)visible+=1;});
document.querySelectorAll('#hubHome .embedded-room').forEach(card=>{const show=!q||card.textContent.toLowerCase().includes(q);card.hidden=!show;if(show)visible+=1;});
const results=document.getElementById('homeSearchResults'),matches=q?homeDeepSearch(q):[];
if(results){results.hidden=!q;results.innerHTML=q?`
${matches.length} matching ${matches.length===1?'room':'rooms'} inside the HubFull-content search · titles, explanations, entities, relationships, questions, boundaries and source labels
${matches.slice(0,24).map(row=>``).join('')}
${matches.length>24?`
Showing the 24 strongest room matches. Add another remembered word to narrow ${matches.length-24} more.
`:''}`:'';}
const empty=document.getElementById('homeAtlasEmpty');if(empty)empty.hidden=visible>0||matches.length>0;
}
function renderWorkspaceHub(workspace){
const target=document.getElementById('workspaceHub');
const commentClock=fedGenius.clocks.find(clock=>clock.id==='comment')||fedGenius.clocks[0];
target.innerHTML=`Rules & proof · authority, readiness and evidence
What is permitted—and what is actually proved?
Start with the question. Legal permission, technical fit, operating receipt, scale and stress evidence remain separate clocks.
Who may do this?
Permission and responsible actors
${hubRoomCard('routes','Who may perform the function?','Follow function → pathway → conditions → eligible entity → named evidence.','Start here')}${hubRoomCard('legal','How does legal effect arise?','Inspect legal foundations, actor qualifications, transaction assignments and worked cases.')}${hubRoomCard('overview','Institutional context','See institutions, access routes, rulebooks, arrangements and transaction cells.')}
Is it actually ready?
Qualification and operating proof
${hubRoomCard('transition','Readiness gates','Test fourteen requirements against all 34 governed technology families.','Gate matrix')}${hubRoomCard('liquidity','Liquidity and collateral','Compare rule layers, reserve constraints, funding routes and reuse clocks.')}${hubMapCard('accounting','Accounting and finality','Inspect which claim, record or book changed—and what still did not settle.')}
What rule changes it?
${esc(fedGenius.status)}
Federal Reserve GENIUS proposals
Authority
Federal Reserve Board
Legal subject
Payment stablecoin issuer and the insured-state-member-bank subsidiary route
A final rule, entity-specific approval and operating evidence remain distinct future receipts.
${hubRoomCard('genius','Open the Fed package','Entity map, seven layers, twelve gates, nine clocks and 277 questions.')}Effective order
${esc(innovation.title)}
Authority
Securities and Exchange Commission
Legal subject
The eligible actor and transaction design defined by the order
Current clock
Effective at the ${esc(innovation.evidence_cutoff.slice(0,10))} saved cutoff
Receipt needed
${esc(innovation.boundary)}
${hubRoomCard('innovation','Open the SEC package','Eight gates, overlap states, ecosystem matrix and implementation watches.')}
1 · Functional fitCan it perform the required function?2 · Legal seatMay an eligible entity occupy the role?3 · Operating receiptDid the exact route complete in production?4 · Scale and stressDoes it recur and recover under pressure?
`;
}
function homeTrackedSystems(){
const dated=(items,fallback)=>items.map(item=>item.date).filter(date=>/^\d{4}-\d{2}-\d{2}$/.test(date)).sort().at(-1)||fallback;
const core=fieldGuide.profiles.map(profile=>{const build=buildoutByEcosystem.get(profile.ecosystem_id),items=build.current_builds.concat(build.deals_and_integrations);return {id:profile.ecosystem_id,label:profile.plain_name,group:'Core profile',room:'guide',state:build.transition_state,date:dated(items,build.refreshed_through),summary:build.headline};});
const specialists=expansion.systems.map(system=>({id:system.id,label:system.name,group:'Specialist system',room:'expansion',state:system.latest_state,date:system.latest_date,summary:system.latest_development}));
return core.concat(specialists).sort((a,b)=>a.label.localeCompare(b.label));
}
function homeSystemCard(system,recent=false){return ``;}
function renderHubHome(){
const family=(kicker,title,description,cards)=>`${esc(kicker)}
`;
const systems=hubRoomCard('guide','Tracked Systems Field Guide','Plain-language directory for all governed systems.')+hubViewCard('map','explore','Crypto relationship map','Entities, products, networks and typed relationships.')+hubRoomCard('overview','Whole institutional map','Institutions, access routes, rulebooks and connections.')+hubRoomCard('stack','Current stack map','Today’s securities, dollar and fund rails.')+hubRoomCard('expansion','Stack expansion','Ten seats and 34 technology/control sublayers.')+hubRoomCard('banks','Major bank transition','Sixteen institutions across seven separately evidenced transition surfaces.','New')+hubRoomCard('corporate','Corporate stack comparison','Seven groups across seven operating dimensions.')+hubRoomCard('securitize','Securitize anatomy','Entities, lifecycle, record models and cash-leg interfaces.');
const transactions=hubViewCard('xray','all','Transaction X-ray','Five aligned layers for Share, Dollar or Fund.','Start here')+hubRoomCard('walk','Plain-language Walk','Read one route from beginning to end.')+hubRoomCard('journey','Transaction maps','Participant lanes, overlays and exceptions.')+hubRoomCard('rights','Steps & rights','Rights, obligations and authoritative records.')+hubRoomCard('books','Debits & credits','Whose books or fiduciary records move.')+hubViewCard('map','process','Process coverage','Tokenization, stablecoin and FX lifecycle grids.')+hubViewCard('map','trace','Evidence traces','Follow a named asset or claim.')+hubViewCard('map','compare','Lifecycle comparison','Compare systems at the same stage.')+hubViewCard('map','accounting','Accounting & finality','Separate claims, records, cash and settlement.');
const rules=hubViewCard('genius','entities','Fed GENIUS entity map','Legal entities, claims, assets and dependencies.','New')+hubViewCard('legal','innovation','SEC Innovation Exemption','Eight gates and technology-overlap matrix.')+hubRoomCard('routes','Permissions & players','Function → pathway → conditions → evidence.')+hubViewCard('legal','qualifications','Who does what?','Actors, roles, assessments and transaction assignments.');
const qualificationCards=hubViewCard('transition','gate','Transition gates','Fourteen requirements across 34 system families.')+hubViewCard('transition','system','System qualification view','Start with a system and inspect every gate it touches.')+hubViewCard('liquidity','layers','Liquidity & collateral','Rule layers and funding constraints.')+hubViewCard('map','accounting','Accounting & finality','What changed on which book—and what did not settle.');
const embeddedViews=[
embedded('Rules & permissions → Fed GENIUS','Six coordinated Fed views','The proposal room contains six separate infographics; open any one directly.',hubSubviewButton('genius','entities','Entity map')+hubSubviewButton('genius','layers','Seven layers')+hubSubviewButton('genius','gates','Twelve gates')+hubSubviewButton('genius','clocks','Nine clocks')+hubSubviewButton('genius','ecosystems','Twenty ecosystems')+hubSubviewButton('genius','questions','277 questions')),
embedded('Systems + Transactions → Crypto map','Six map modes','The same governed registry can be read structurally, sequentially, comparatively or as accounting.',hubSubviewButton('map','explore','Explore')+hubSubviewButton('map','full','Full map')+hubSubviewButton('map','process','Process')+hubSubviewButton('map','trace','Trace')+hubSubviewButton('map','compare','Compare')+hubSubviewButton('map','accounting','Accounting')),
embedded('Transactions → X-ray','Six layer settings','All-aligned is the default; isolate a layer without losing the joined route context.',hubSubviewButton('xray','all','All aligned')+hubSubviewButton('xray','movement','Movement')+hubSubviewButton('xray','record','Rights & record')+hubSubviewButton('xray','books','Books & cash')+hubSubviewButton('xray','authority','Authority')+hubSubviewButton('xray','remedy','Remedy')),
embedded('Rules & permissions → Legal process','Five legal views','Keep legal foundations, an effective order, authority layers, qualifications and cases distinct.',hubSubviewButton('legal','walk','Step by step')+hubSubviewButton('legal','innovation','Innovation order')+hubSubviewButton('legal','layers','Authority layers')+hubSubviewButton('legal','qualifications','Who does what?')+hubSubviewButton('legal','cases','Worked cases')),
embedded('Qualification & evidence → Transition gates','Two directions through the matrix','Start with a required function or with a named technology family.',hubSubviewButton('transition','gate','Start with a gate')+hubSubviewButton('transition','system','Start with a system')),
embedded('Qualification & evidence → Liquidity','Three liquidity views','Separate rule constraints, route comparisons and the funding lifecycle.',hubSubviewButton('liquidity','layers','Rule layers')+hubSubviewButton('liquidity','routes','Route comparisons')+hubSubviewButton('liquidity','flow','Funding lifecycle')),
embedded('Systems & entities → Securitize anatomy','Embedded company layers','Regulated entities · operating scale · security lifecycle · record models · Ripple comparison · GENIUS cash-leg interface · watch questions.',hubSubviewButton('securitize','room','Open anatomy room')),
embedded('Systems & entities → Stack comparisons','Embedded structural layers','Current stack: Share, Dollar and Fund rails. Stack expansion: ten seats and 34 sublayers. Major-bank transition: 16 institutions and seven capability surfaces. Corporate comparison: seven operating dimensions.',hubSubviewButton('stack','room','Current stack')+hubSubviewButton('expansion','room','Stack expansion')+hubSubviewButton('banks','room','Major banks')+hubSubviewButton('corporate','room','Corporate comparison')),
embedded('Systems & entities → Whole institutional map','Embedded market layers','Institutions · member and access routes · rulebooks · roles · legal foundations · assessments · arrangements · transaction cells · liquidity.',hubSubviewButton('overview','room','Open whole map'))
].join('');
const allSystems=homeTrackedSystems(),featuredIds=['quant','ondo-us-stack','fireblocks-tokeny','cat-reporting','backed-xstocks','dinari-dshares','circle','partior-money'],recent=featuredIds.map(id=>allSystems.find(system=>system.id===id)).filter(Boolean);
document.getElementById('hubHome').innerHTML=`Crypto Infrastructure Hub · 34 tracked systems · evidence through ${esc(technologyBuildout.evidence_cutoff)}
What do you want to understand?
Begin with the remembered question—not the Hub’s filing system. Every path below opens the governed evidence directly.
A system
What is it building?
Open one stable profile for QNT, Ondo, Stellar, Ripple or any other tracked system.
${hubRoomCard('systems','Browse all 34 systems','Architecture, current developments, deals, stack role and evidence.')}A transaction
How does it actually work?
Keep one Share, Dollar or Fund route while inspecting movement, records, books, authority and remedy.
${hubRoomCard('xray','Follow a route','Start with the joined transaction view.')}A permission
Who may do this?
Follow the function through its legal pathway, conditions, eligible entity and named evidence.
${hubRoomCard('routes','Check permission','Open the function-to-actor route.')}A claim
Is it actually ready?
Test functional fit, legal seat, exact route, operating receipt, scale and stress separately.
${hubRoomCard('transition','Test readiness','Open the fourteen-gate matrix.')}
Twenty systems have full architecture, build, deal and value-capture profiles. Fourteen specialist families carry the fields their governed records actually support.
No Hub content matches that search. Try one remembered word or a shorter phrase.
Specialist comparison and analysis tools
${family('Systems','Compare or inspect structure','Relationship, stack, bank, corporate and company-control tools.',systems)}${family('How it works','Change the transaction lens','Route, rights, books, lifecycle and finality tools.',transactions)}${family('Rules & proof','Authority, qualification and evidence','Rule packages, legal routes, readiness, liquidity and finality.',rules+qualificationCards)}
Exact lenses inside those tools
These direct links are available when you already know the exact lens you want.
${embeddedViews}
Reading rule
Easy to reach does not mean proved.
The rebuilt front door removes navigation gates while preserving the exact data owner, legal state, operating clock, boundary and source record behind every answer.
Evidence for this cell${bankSourceLinks(capability.source_ids)}
Why this surface matters: ${esc(dimension.description)}
`;
}
function bankVisible(institution){const query=bankQuery.trim().toLowerCase(),archetypeMatch=bankArchetype==='all'||institution.archetype_id===bankArchetype,queryMatch=!query||[institution.label,institution.kind,institution.domicile,institution.thesis,institution.frontier,institution.boundary,institution.watch,...Object.values(institution.capabilities).flatMap(item=>[item.detail,item.boundary])].join(' ').toLowerCase().includes(query);return archetypeMatch&&queryMatch;}
function renderBankTransition(){
const target=document.getElementById('bankTransitionHub'),gSibs=bankTransition.institutions.filter(item=>item.g_sib).length,liveCells=bankTransition.institutions.flatMap(item=>Object.values(item.capabilities)).filter(item=>['m4','m5','m6'].includes(item.state)).length;
target.innerHTML=`Comparative transition constitution · evidence through ${esc(bankTransition.cutoff)}
${esc(bankTransition.title)}
${esc(bankTransition.summary)}
${esc(bankTransition.boundary)}
${bankTransition.institutions.length}institutions in the governed cohort${gSibs}2025 FSB G-SIB groups${bankTransition.dimensions.length}separately evidenced capability surfaces${liveCells}bounded-live or recurring-production cells
Reading rule: M5 on one surface does not pull the other six surfaces forward. Institution-authored research is doctrine evidence; only a named operating route, legal seat and receipt advances an operating cell.
Reading rule: a group enters the closest-peer set when it occupies most seats with operating products. Partners, pending acquisitions, pre-opening charters and roadmaps can form a powerful federation without proving vertical control.
`;
}
const securitizeAnatomy=data.securitize_anatomy;
function securitizeSources(ids){return `Primary evidence${sourceLinks(ids)}`;}
function renderSecuritizeAnatomy(){
const a=securitizeAnatomy,c=a.ripple_comparison,g=a.genius_act,target=document.getElementById('securitizeHub');
target.innerHTML=`Company anatomy · evidence through ${esc(a.cutoff)}
${esc(a.title)}
${esc(a.summary)}
The lens: ${esc(a.thesis)}
${esc(a.boundary)}
What the operating scale says
${a.scale.map(x=>`${esc(x.value)}${esc(x.label)}As of ${esc(x.as_of)}
${esc(x.meaning)}
${securitizeSources(x.source_ids)}`).join('')}
The regulated operating body
The brand is one group; permissions and customer duties attach to the exact entities below.
${a.entities.map(x=>`${esc(x.kind)}
${esc(x.label)}
${esc(x.status)}
${esc(x.role)}
${esc(x.boundary)}
${securitizeSources(x.source_ids)}`).join('')}
Follow one security through the machine
These are functional stages, not a claim that every product uses one route or one clock.
${a.lifecycle.map(x=>`
${esc(x.label)}
${esc(x.action)}
Control seat
${esc(x.control)}
Record to inspect
${esc(x.record)}
${esc(x.boundary)}
${securitizeSources(x.source_ids)}`).join('')}
“On-chain ownership” is not one record model
The governing documents decide how public-chain state, identity records and incumbent registers fit together.
${index+1}. ${esc(stage.label)}${esc(stage.question||stage.description||'Inspect the exact sourced coverage at this stage.')}
`).join('')}
This is the process constitution around the selected ${esc(hubRouteRecord().tab)} route. It does not assert that one transaction crosses every stage or system.
`).join('')}
`;
}
function xrayTracePanel(){
const processIds=new Set(xrayProcessIds()),traces=data.asset_traces.filter(trace=>(trace.process_ids||[trace.process_id]).some(id=>processIds.has(id)));
return `
${moving.length?esc(moving.map(entry=>`${entry.entity_label}: ${entry.book_kind}`).join(' · ')):'No proprietary or fiduciary entry shown at this step.'}
${esc(right.gap)}
`;}).join('')}
Book entry, authoritative record, cash discharge and legal finality are shown together because they can occur on different clocks.
`;
}
function renderXray(){
const {rightsRouteData,walkRouteData,journeyRouteData,right,walk,books,journey}=xrayJoined(),status=data.steps_rights_hub.statuses.find(s=>s.id===right.status),before=journey[0]?.before||walk?.what||right.action,after=journey[journey.length-1]?.after||right.proof,sourceIds=[...new Set([...(right.baseline_sources||[]),...(right.crypto_sources||[]),...(books.source_ids||[])])];
const layerChoices=[['all','Step view'],['movement','Movement'],['record','Rights & record'],['books','Books & cash'],['authority','Authority'],['remedy','Remedy'],['process','Process'],['trace','Evidence traces'],['accounting','Accounting & finality']];
history.replaceState(null,'','#xray-'+hubRoute+'-'+right.id+'?overlay='+(xrayOverlay?'1':'0')+'&layer='+xrayLayer);
document.getElementById('xrayHub').innerHTML=`
Synthesis view · joins existing route, rights and books owners
How it works
${esc(hubRouteRecord().tab)} · ${esc(rightsRouteData.title)} Move one step at a time without leaving the route. Change the lens to inspect movement, records, books, authority, remedy, the wider process, named evidence traces or accounting and finality.
This is a joined reading of existing evidence, not a new transaction receipt. Technical movement, legal title, book entry, cash discharge and remedy can occur on different clocks.
Step ${xrayStep+1} of ${rightsRouteData.steps.length} · ${esc(right.title)} Show ${esc(rightsRouteData.overlay)} comparison
Layer 1
Action & movement
What happens: ${esc(walk?.what||right.action)}
${journey.map(n=>`
${esc(n.explain)}
`).join('')}
Before${esc(before)}
After / required result${esc(after)}
Layer 2
Right & authoritative record
Right or obligation: ${esc(right.right)}
Controlling record or receipt: ${esc(right.record)}
Layer 3
Books & cash
${xrayBookCards(books)}
Layer 4
Authority & permission
Who can act: ${esc(right.actors)}
Evidence that completes this step: ${esc(right.proof)}