feat(pyxlog): add typed host row bridge - #288
Open
levi770 wants to merge 1 commit into
Open
Conversation
levi770
force-pushed
the
codex/pyxlog-file-compile
branch
from
August 31, 2026 19:26
a75691f to
6e9fca0
Compare
levi770
force-pushed
the
codex/pyxlog-host-row-bridge
branch
from
August 31, 2026 19:26
84847a9 to
a5d31b0
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 a production Pyxlog worker that can compile a frozen XLOG source tree once, load per-context facts without PyTorch/DLPack as an ambient dependency, execute the exact deterministic hot loop under the strict D2H gate, capture transfer counters before export, and only then download lexical results.
The existing public relation-session surface required caller-owned DLPack capsules. That is appropriate for tensor integrations but forces an unrelated tensor runtime into a small isolated symbolic worker. This PR adds a narrow typed lexical row seam while preserving CUDA-resident evaluation.
This is a stacked PR:
LogicProgram.compile_file)Changes
LogicRelationSession.put_relation_rows(name, rows)for all XLOG scalar types.f32/f64values and non-canonical boolean spellings.symbolvalues through XLOG core and upload typed column bytes throughCudaKernelProvider::create_buffer_from_slices.LogicRelationSession.export_relation_rows(name)for deterministic typed lexical export after the strict measurement window.GPU evidence
Authorized host: RTX PRO 4500 Blackwell, CUDA 13.0.
Development build:
Exact pushed commit verification:
The host-row test covers
symbol,u32,u64,i32,i64,f32,f64, andbool; rejects wrong arity, non-finite floats, and invalid booleans; then verifies:inside the measured
evaluate()window. The strict gate is explicitly disabled only before final lexical export.Local verification
All passed.
Claim boundary
This PR proves zero tracked host transfers and zero strict-D2H violations only for the measured deterministic evaluation window in the focused GPU test. Relation upload occurs before counters are reset. Lexical export occurs after the gate is disabled. This PR does not claim zero transfer for compilation, setup, final observation export, probabilistic execution, or neural execution.
Review focus
Stack topology
This PR is the third layer of the Pyxlog/runtime stack. It depends on #287 and #286; review and merge order is #286 -> #287 -> #288 -> #289.