feat: publish authoritative fabric cutover export
All checks were successful
CI Smoke / host-smoke (push) Successful in 0s
CI Smoke / container-smoke (push) Successful in 1s

Assistant: codex
Assistant-Model: gpt-5.6-sol
Assistant-Session: 01a053ff-1d6f-7fe2-ac1c-a6eb40a42a0c
This commit is contained in:
codex 2026-08-31 22:18:26 +02:00
parent 7745a965f6
commit 113445def9
5 changed files with 112 additions and 6 deletions

View file

@ -323,7 +323,13 @@ def test_registry_http_service_serves_queries(tmp_path: Path) -> None:
) == 0
assert store.latest_snapshot("railiance-fabric")["commit"] == "test-cli"
second_export = build_graph([Path(".")]).to_export()
removed_node_id = second_export["nodes"][-1]["id"]
second_export["nodes"] = second_export["nodes"][:-1]
second_export["edges"] = [
edge
for edge in second_export["edges"]
if edge["from"] != removed_node_id and edge["to"] != removed_node_id
]
_post_json(
f"{base_url}/repositories/railiance-fabric/snapshots",
{
@ -352,6 +358,14 @@ def test_registry_http_service_serves_queries(tmp_path: Path) -> None:
timeout=5,
) as response:
providers_payload = json.loads(response.read())
with urllib.request.urlopen(f"{base_url}/graph/edges", timeout=5) as response:
edges_payload = json.loads(response.read())
with urllib.request.urlopen(f"{base_url}/graph/summary", timeout=5) as response:
graph_summary_payload = json.loads(response.read())
with urllib.request.urlopen(f"{base_url}/exports/state-hub", timeout=5) as response:
state_hub_export = json.loads(response.read())
with urllib.request.urlopen(f"{base_url}/exports/financial", timeout=5) as response:
financial_export = json.loads(response.read())
artifact_payload = _post_json(
f"{base_url}/artifacts",
{
@ -404,6 +418,15 @@ def test_registry_http_service_serves_queries(tmp_path: Path) -> None:
with urllib.request.urlopen(f"{base_url}/exports/libraries/xregistry", timeout=5) as response:
library_projection_payload = json.loads(response.read())
assert providers_payload[0]["provider_id"] == "railiance-platform.openbao.runtime-secrets"
assert edges_payload
assert graph_summary_payload["node_count"] == len(state_hub_export["nodes"])
assert graph_summary_payload["edge_count"] == len(state_hub_export["edges"])
assert state_hub_export["source"]["producer"] == "railiance-fabric"
assert state_hub_export["source"]["commit"].startswith("snapshot-set:sha256:")
assert state_hub_export["source"]["snapshots"][-1]["commit"] == "test-cli-2"
assert financial_export["apiVersion"] == "railiance.fabric/v1alpha2"
assert financial_export["schema_version"] == "financial-fabric-v1"
assert financial_export["source"]["commit"] == state_hub_export["source"]["commit"]
assert snapshots_payload[0]["commit"] == "test-cli-2"
assert status_payload["counts"]["repositories"] == 1
assert status_payload["counts"]["snapshots"] == 3