feat(cli): export completed runtime relations as JSON - #289
Open
levi770 wants to merge 1 commit into
Open
Conversation
levi770
force-pushed
the
codex/runtime-materialization-evidence
branch
from
August 31, 2026 19:26
1508c1d to
6cff2a2
Compare
This was referenced Aug 31, 2026
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.
Context
Mistaber needs dynamic evidence from the exact XLOG run that reached fixpoint.
xlog explain --format jsonis static source diagnostics and cannot establish which relation tuples were actually materialized. Treating static explain output as runtime proof would be unsound.Changes
xlog run --output json.--materialize-relation <name>selectors.evaluate_with_relation_store_and_cache, preserving XLOG GPU evaluation as the sole source of truth.--materialize-relationwithout JSON, and--output-dirwith JSON.post_fixpoint_d2h. This export is outside the resident evaluation hot loop and makes no ZERO TRANSFER claim for serialization.The structured response schema is
xlog.deterministic-run.v1withexecution_engine: xlog-gpuandfixpoint_state: complete.Runtime semantics
The new route does not implement a host evaluator and does not infer tuples from source text. The CUDA evaluator runs to its normal completed fixpoint, constraints are enforced, and then selected GPU buffers are downloaded for external consumption. Full-store export currently follows the ordinary deterministic plan and fails through the existing capability boundary for unsupported epistemic full-store shapes.
Evidence
Authorized RunPod only: NVIDIA RTX PRO 4500 Blackwell, driver 580.167.08.
Exact commit
6cff2a21d2735fac9e81fd501aa8a7458db8a379, clean detached worktree:The same source content before commit was also checked with:
Coverage includes recursive derivation, source and derived materialization, all eight scalar types, deterministic selector ordering/deduplication, pre-CUDA mode rejection, unknown-relation failure, and the existing CLI run/explain/epistemic regression surface.
Consumer impact
This creates the dynamic materialization bridge required for Mistaber closure evidence. Consumers should verify
schema_version,execution_engine,fixpoint_state, requested relation coverage, scalar types, and rows; they must not reinterpret static explain traces as dynamic proof.Stack topology
This PR is the fourth layer of the Pyxlog/runtime stack. It depends on #288, which depends on #287 and #286; review and merge order is #286 -> #287 -> #288 -> #289.