Export Microcosm schema metadata for Orrery - #888
Open
MaxGhenis wants to merge 1 commit into
Open
Conversation
MaxGhenis
marked this pull request as ready for review
September 8, 2026 21:21
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add a Python adapter and CLI that turn saved
microcosm.graph.schema.v1metadata into Orrery'sgraph-explorer/v1document. The export retains operations, sources, versioned fields, read roles, ancestry and complete supplied metadata, with exact transport tags for integers outside JavaScript's safe range. Reference, size and JSON checks reject malformed exports; the CLI refuses existing output files.From a synced Microcosm checkout:
uv run python -m microcosm.graph.explorer \ --input compiled-schema.json --output graph.json --title "Microcosm US" graph-explorer --input graph.json --output graph.htmlThe second command uses the separately installed, accepted shared viewer 0.3.0 package (
@axiom-foundation/graph-explorer). Orrery is the shared viewer's new repository name; the JSON contract is unchanged. This delivers a native exporter and local offline report, not a hosted Microcosm app route. The existing deterministic run viewer remains available. Imported schema declarations do not establish execution, cache, calibration, gate or Receipt verdicts; complete supplied metadata is retained, so canvas filtering is not redaction.Validation:
This source-only PR contains code, invented tests and documentation. Local schema snapshots, generated reports, probe artifacts and machine-specific evidence remain outside the PR. Full country-graph schema coverage and deployed dashboard integration remain separate work. Related runtime consolidation: #885.