Skip to content

Add kumo-pytorch as an experimental package - #244

Merged
lambyqq merged 2 commits into
mainfrom
kumo-pytorch/experimental-package
Nov 7, 2026
Merged

lambyqq merged 2 commits into
mainfrom
kumo-pytorch/experimental-package

Conversation

@lambyqq

@lambyqq lambyqq commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

Adds kumo-pytorch as an experimental package at packages/experimental/kumo-pytorch/, imported as kumo.pytorch. It builds point-in-time-correct PyTorch batches from relational tables using DiskGraph; see the package README for an overview and a quick start.

Summary

Besides the package itself, this PR adds its CI and registers it with the repository's tooling:

  • CI. Four workflows share a kumo-pytorch-setup action:

    • kumo-pytorch-tests.yml runs the CPU checks.
    • kumo-pytorch-diskgraph.yml runs the suite, the example notebooks, and a build-and-install job against DiskGraph built from the same commit.
    • kumo-pytorch-t2a.yml runs the end-to-end train, score and serve flows on small generated data.
    • kumo-pytorch-t2b.yml runs them nightly at 09:00 UTC on larger data, with extra conformance seeds.

    Pull request triggers are path-filtered to the package, the setup action and the workflow itself; the DiskGraph workflow also runs on DiskGraph changes. All run on GitHub-hosted CPU runners, and none is a required check.

  • Workspace. The package is a member in the root pyproject.toml. uv.lock adds kumo-pytorch and its one new runtime dependency, tokenizers, with the six packages tokenizers needs (huggingface-hub, hf-xet, httpx2, httpcore2, httpx2-jsfetch, truststore). The package's extras add nothing new: dev is pytest and examples is torch-geometric, both already locked. No existing locked version changes.

  • Licensing. The package is added to scripts/check_python_license_metadata.py (DistributionSpec and FIRST_PARTY_DISTRIBUTIONS), to the licensing job's wheel build, and to the distribution count in test/scripts/test_python_license_metadata.py.

  • Lint scoping. The package keeps its own ruff configuration, so it's excluded from flake8, isort, yapf, autoflake and pyright, like kumo-core and diskgraph.

  • Notebooks. The root .gitignore ignores *.ipynb; the package's three example notebooks are un-ignored by path.

  • Docker contexts. tests/public_setup/Dockerfile.dockerignore keeps the new member's pyproject.toml, which that context needs for every workspace member.

Not part of the next release

kumo-pytorch won't ship in the next kumo-engine release, and nothing in this PR publishes it:

  • packages/kumo-engine/scripts/build_wheel.sh bundles each packages/*/ directory that has a pyproject.toml, and now skips experimental by name, next to kumo-sdk and diskgraph. test/scripts/test_engine_wheel.py adds an experimental package to its fake monorepo, and a pyproject.toml directly under packages/experimental/, and checks neither is built. Releasing kumo-pytorch later means removing that skip.
  • Every publishing workflow names its package explicitly, and none is changed: kumo-engine-wheel.yml and its kitmaker-portal.yml step, kumo-api-release.yml, kumo-sdk-* and kumo-glove-6b-50d-wheel.yml.
  • scripts/stamp_version.py doesn't stamp kumo-pytorch's version, so a release version bump doesn't touch it.
  • packages/experimental/ is added to .dockerignore next to the other members the images don't ship. The requirements exported for the backend images and the public-tests image are identical before and after this PR.

Change map

See the change-map comment.

Testing Done

The kumo-pytorch workflows run on this PR, since it adds them:

  • kumo-pytorch-tests: conformance, pytest -q, ruff (pinned in the workflow, not a package dependency) and the package build.
  • kumo-pytorch-diskgraph: conformance on both engines, and pytest -q --require-imports with DiskGraph built from this commit.
  • kumo-pytorch-notebooks: the three example notebooks reproduce their committed outputs. The notebook runner (nbclient, ipykernel) is pinned in the workflow; like kumo-engine's other notebooks, the package doesn't depend on Jupyter.
  • kumo-pytorch-install: builds the sdist, then the wheel from it, and installs the wheel and DiskGraph's into a fresh virtual environment outside the workspace. It then runs the README quick start and the notebooks from a copy of the docs, tests and examples without src/, so kumo.pytorch can only come from the installed wheel.
  • kumo-pytorch-t2a and kumo-pytorch-t2b: the end-to-end flows at both sizes, and the extra conformance seeds.

workflow_dispatch can only run workflows that exist on the default branch, so these pull request runs are the workflows' first runs.

pytest (test/config/ test/connector/) includes two BigQuery permission tests that need GCP_BIGQUERY_NO_*_SERVICE_ACCOUNT, which isn't configured here; the same shard fails on other recent PRs.

Also run locally on macOS (arm64, Python 3.12), following the same steps as kumo-pytorch-install: DiskGraph's wheel built from this commit; uv build --package kumo-pytorch (sdist kumo_pytorch-0.1.0a1.tar.gz, then the wheel from it); both wheels installed into a fresh virtual environment outside the workspace, with kumo.pytorch imported from its site-packages. The README quick start printed its documented output, and the three notebooks reproduced their committed outputs (3 passed, 72 s).

Repository checks, run locally from the root: scripts/check_license_headers.py, scripts/check_python_license_metadata.py (14 manifests), uv lock --check (uv 0.13.7, as pinned), scripts/check_public_references.py and .github/scripts/workflow-security.cjs: all pass.

Open items

  • CODEOWNERS has no entry for packages/experimental/kumo-pytorch/ yet; that's a maintainer decision.
  • tokenizers (with its six dependencies above) is a new third-party runtime dependency. It isn't redistributed in any artifact here, so THIRD-PARTY.txt doesn't change.
  • None of the new workflows is a required check. Making one required would need the unfiltered-workflow-plus-aggregator pattern kumo-core-gpu.yml uses.
  • The nightly workflow doesn't notify anyone when it fails; how failing nightlies are reported here is for kumo-engine to decide.

Hotfix Context

Not a hotfix.

Checklist

  • I listed all the breaking changes introduced by the PR (none: a new package)
  • I made sure to update examples and documentation with my changes (if necessary)
  • I have added and modified unit tests required to cover changes made by this PR.

🤖 Generated with Claude Code

@lambyqq

lambyqq commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor Author

Change map

Observed requirement: add kumo-pytorch as an experimental workspace package with its own CI, excluded from releases. Smallest change: the package, its workflows, and the registrations the repository's checks require. Verification: the kumo-pytorch workflows on this PR (including a build and fresh-environment install) and the existing checks. Stopping condition: all checks green.

File What changed Why
packages/experimental/kumo-pytorch/src/kumo/pytorch/__about__.py packages/experimental/kumo-pytorch/src/kumo/pytorch/__init__.py packages/experimental/kumo-pytorch/src/kumo/pytorch/anchors.py packages/experimental/kumo-pytorch/src/kumo/pytorch/api.py packages/experimental/kumo-pytorch/src/kumo/pytorch/architectures.py packages/experimental/kumo-pytorch/src/kumo/pytorch/artifact.py packages/experimental/kumo-pytorch/src/kumo/pytorch/assembly.py packages/experimental/kumo-pytorch/src/kumo/pytorch/batches/__init__.py packages/experimental/kumo-pytorch/src/kumo/pytorch/build.py packages/experimental/kumo-pytorch/src/kumo/pytorch/config.py packages/experimental/kumo-pytorch/src/kumo/pytorch/contract/__init__.py packages/experimental/kumo-pytorch/src/kumo/pytorch/contract/_frozen.py packages/experimental/kumo-pytorch/src/kumo/pytorch/contract/batch/__init__.py packages/experimental/kumo-pytorch/src/kumo/pytorch/contract/batch/_common.py packages/experimental/kumo-pytorch/src/kumo/pytorch/contract/batch/encodings.py packages/experimental/kumo-pytorch/src/kumo/pytorch/contract/batch/layouts.py packages/experimental/kumo-pytorch/src/kumo/pytorch/contract/batch/representations.py packages/experimental/kumo-pytorch/src/kumo/pytorch/contract/batch/sources.py packages/experimental/kumo-pytorch/src/kumo/pytorch/contract/batch/spec.py packages/experimental/kumo-pytorch/src/kumo/pytorch/contract/batch/targets.py packages/experimental/kumo-pytorch/src/kumo/pytorch/contract/batch/tokens.py packages/experimental/kumo-pytorch/src/kumo/pytorch/contract/batch/validation.py packages/experimental/kumo-pytorch/src/kumo/pytorch/contract/dtypes.py packages/experimental/kumo-pytorch/src/kumo/pytorch/contract/sample.py packages/experimental/kumo-pytorch/src/kumo/pytorch/contract/schema.py packages/experimental/kumo-pytorch/src/kumo/pytorch/data/__init__.py packages/experimental/kumo-pytorch/src/kumo/pytorch/data/field_batches.py packages/experimental/kumo-pytorch/src/kumo/pytorch/data/masking.py packages/experimental/kumo-pytorch/src/kumo/pytorch/data/model.py packages/experimental/kumo-pytorch/src/kumo/pytorch/data/records.py packages/experimental/kumo-pytorch/src/kumo/pytorch/data/sequences.py packages/experimental/kumo-pytorch/src/kumo/pytorch/data/typed_vectors.py packages/experimental/kumo-pytorch/src/kumo/pytorch/dataset.py packages/experimental/kumo-pytorch/src/kumo/pytorch/datasets/__init__.py packages/experimental/kumo-pytorch/src/kumo/pytorch/datasets/bank.py packages/experimental/kumo-pytorch/src/kumo/pytorch/datasets/metrics.py packages/experimental/kumo-pytorch/src/kumo/pytorch/datasets/retail.py packages/experimental/kumo-pytorch/src/kumo/pytorch/encoding.py packages/experimental/kumo-pytorch/src/kumo/pytorch/engine.py packages/experimental/kumo-pytorch/src/kumo/pytorch/engines/__init__.py packages/experimental/kumo-pytorch/src/kumo/pytorch/engines/diskgraph.py packages/experimental/kumo-pytorch/src/kumo/pytorch/engines/in_memory/__init__.py packages/experimental/kumo-pytorch/src/kumo/pytorch/engines/in_memory/anchors.py packages/experimental/kumo-pytorch/src/kumo/pytorch/engines/in_memory/engine.py packages/experimental/kumo-pytorch/src/kumo/pytorch/engines/in_memory/graph.py packages/experimental/kumo-pytorch/src/kumo/pytorch/engines/in_memory/samples.py packages/experimental/kumo-pytorch/src/kumo/pytorch/engines/in_memory/source.py packages/experimental/kumo-pytorch/src/kumo/pytorch/engines/parquet_anchors.py packages/experimental/kumo-pytorch/src/kumo/pytorch/engines/unsupported.py packages/experimental/kumo-pytorch/src/kumo/pytorch/materialization.py packages/experimental/kumo-pytorch/src/kumo/pytorch/models/__init__.py packages/experimental/kumo-pytorch/src/kumo/pytorch/models/causal.py packages/experimental/kumo-pytorch/src/kumo/pytorch/models/common.py packages/experimental/kumo-pytorch/src/kumo/pytorch/models/fusion.py packages/experimental/kumo-pytorch/src/kumo/pytorch/models/hierarchical.py packages/experimental/kumo-pytorch/src/kumo/pytorch/models/layers.py packages/experimental/kumo-pytorch/src/kumo/pytorch/models/model.py packages/experimental/kumo-pytorch/src/kumo/pytorch/models/patterns.py packages/experimental/kumo-pytorch/src/kumo/pytorch/models/protocols.py packages/experimental/kumo-pytorch/src/kumo/pytorch/models/typed.py packages/experimental/kumo-pytorch/src/kumo/pytorch/objectives.py packages/experimental/kumo-pytorch/src/kumo/pytorch/output.py packages/experimental/kumo-pytorch/src/kumo/pytorch/preparation.py packages/experimental/kumo-pytorch/src/kumo/pytorch/serving.py packages/experimental/kumo-pytorch/src/kumo/pytorch/serving_rows.py packages/experimental/kumo-pytorch/src/kumo/pytorch/spec.py packages/experimental/kumo-pytorch/src/kumo/pytorch/task.py Added: the library, imported as kumo.pytorch The package itself
packages/experimental/kumo-pytorch/tests/__init__.py packages/experimental/kumo-pytorch/tests/api_reference.py packages/experimental/kumo-pytorch/tests/conformance/conftest.py packages/experimental/kumo-pytorch/tests/conformance/test_assertions.py packages/experimental/kumo-pytorch/tests/conformance/test_case_validation.py packages/experimental/kumo-pytorch/tests/conformance/test_dtype_matrix.py packages/experimental/kumo-pytorch/tests/conformance/test_expectations.py packages/experimental/kumo-pytorch/tests/conformance/test_fake_ingest.py packages/experimental/kumo-pytorch/tests/conformance/test_field_semantics.py packages/experimental/kumo-pytorch/tests/conformance/test_functional_harness.py packages/experimental/kumo-pytorch/tests/conformance/test_guarantees.py packages/experimental/kumo-pytorch/tests/conformance/test_projections.py packages/experimental/kumo-pytorch/tests/conformance/test_properties.py packages/experimental/kumo-pytorch/tests/conformance/test_property_harness.py packages/experimental/kumo-pytorch/tests/conformance/test_required_execution.py packages/experimental/kumo-pytorch/tests/conformance/test_sampling_harness.py packages/experimental/kumo-pytorch/tests/conftest.py packages/experimental/kumo-pytorch/tests/data/synthetic_banking_subset.json packages/experimental/kumo-pytorch/tests/e2e/__init__.py packages/experimental/kumo-pytorch/tests/e2e/runs.py packages/experimental/kumo-pytorch/tests/e2e/test_hm_dataset.py packages/experimental/kumo-pytorch/tests/e2e/test_lifecycle.py packages/experimental/kumo-pytorch/tests/e2e/test_runs.py packages/experimental/kumo-pytorch/tests/e2e/tiers.py packages/experimental/kumo-pytorch/tests/helpers.py packages/experimental/kumo-pytorch/tests/lifecycle_app.py packages/experimental/kumo-pytorch/tests/limitations_reference.py packages/experimental/kumo-pytorch/tests/reference_models/__init__.py packages/experimental/kumo-pytorch/tests/reference_models/architecture_definitions.py packages/experimental/kumo-pytorch/tests/reference_models/batch_adapters.py packages/experimental/kumo-pytorch/tests/reference_models/batch_definitions.py packages/experimental/kumo-pytorch/tests/reference_models/data_recipes.py packages/experimental/kumo-pytorch/tests/reference_models/data_schema.py packages/experimental/kumo-pytorch/tests/reference_models/fixtures.py packages/experimental/kumo-pytorch/tests/serving_fetch.py packages/experimental/kumo-pytorch/tests/test_anchor_tables.py packages/experimental/kumo-pytorch/tests/test_api_reference.py packages/experimental/kumo-pytorch/tests/test_architectures.py packages/experimental/kumo-pytorch/tests/test_batch_api.py packages/experimental/kumo-pytorch/tests/test_batch_examples.py packages/experimental/kumo-pytorch/tests/test_bound_contract.py packages/experimental/kumo-pytorch/tests/test_build.py packages/experimental/kumo-pytorch/tests/test_candidates.py packages/experimental/kumo-pytorch/tests/test_columnar_token_stream.py packages/experimental/kumo-pytorch/tests/test_contract_serialization.py packages/experimental/kumo-pytorch/tests/test_core_api.py packages/experimental/kumo-pytorch/tests/test_datasets.py packages/experimental/kumo-pytorch/tests/test_diskgraph_backend.py packages/experimental/kumo-pytorch/tests/test_diskgraph_graph_output.py packages/experimental/kumo-pytorch/tests/test_diskgraph_unsupported.py packages/experimental/kumo-pytorch/tests/test_docs_code.py packages/experimental/kumo-pytorch/tests/test_encoding_runtime.py packages/experimental/kumo-pytorch/tests/test_engine_seam.py packages/experimental/kumo-pytorch/tests/test_entity_contract.py packages/experimental/kumo-pytorch/tests/test_entity_identity.py packages/experimental/kumo-pytorch/tests/test_event_output_order.py packages/experimental/kumo-pytorch/tests/test_field_outputs.py packages/experimental/kumo-pytorch/tests/test_fitted_state_persistence.py packages/experimental/kumo-pytorch/tests/test_graph_edge_uniqueness.py packages/experimental/kumo-pytorch/tests/test_graph_self_relation.py packages/experimental/kumo-pytorch/tests/test_graph_time_and_reductions.py packages/experimental/kumo-pytorch/tests/test_in_memory_samples.py packages/experimental/kumo-pytorch/tests/test_inference_lifecycle.py packages/experimental/kumo-pytorch/tests/test_input_design.py packages/experimental/kumo-pytorch/tests/test_masking.py packages/experimental/kumo-pytorch/tests/test_materialization_types.py packages/experimental/kumo-pytorch/tests/test_mode_reduction.py packages/experimental/kumo-pytorch/tests/test_model.py packages/experimental/kumo-pytorch/tests/test_model_column_hotpath.py packages/experimental/kumo-pytorch/tests/test_model_history_limits.py packages/experimental/kumo-pytorch/tests/test_notebooks.py packages/experimental/kumo-pytorch/tests/test_nuformer.py packages/experimental/kumo-pytorch/tests/test_occurrence_projection.py packages/experimental/kumo-pytorch/tests/test_padding_identity_native.py packages/experimental/kumo-pytorch/tests/test_panther.py packages/experimental/kumo-pytorch/tests/test_preview.py packages/experimental/kumo-pytorch/tests/test_public_contract.py packages/experimental/kumo-pytorch/tests/test_reference_recipes.py packages/experimental/kumo-pytorch/tests/test_request_hotpath.py packages/experimental/kumo-pytorch/tests/test_serving.py packages/experimental/kumo-pytorch/tests/test_serving_rows_drift.py packages/experimental/kumo-pytorch/tests/test_target_layouts.py packages/experimental/kumo-pytorch/tests/test_temporal_declarations.py packages/experimental/kumo-pytorch/tests/test_time_boundaries.py packages/experimental/kumo-pytorch/tests/test_time_columns.py packages/experimental/kumo-pytorch/tests/test_time_delta.py packages/experimental/kumo-pytorch/tests/test_token_field_order.py packages/experimental/kumo-pytorch/tests/test_tokenization.py packages/experimental/kumo-pytorch/tests/test_treasure.py packages/experimental/kumo-pytorch/tests/test_type_resolution.py packages/experimental/kumo-pytorch/tests/test_typed_review_regressions.py packages/experimental/kumo-pytorch/tests/test_typed_sample_values.py packages/experimental/kumo-pytorch/tests/test_varlen_metadata.py Added: unit, integration, conformance-harness and end-to-end tests with their data The package's test suite, run by the kumo-pytorch workflows
packages/experimental/kumo-pytorch/conformance/README.md packages/experimental/kumo-pytorch/conformance/__init__.py packages/experimental/kumo-pytorch/conformance/__main__.py packages/experimental/kumo-pytorch/conformance/assertions.py packages/experimental/kumo-pytorch/conformance/cases.py packages/experimental/kumo-pytorch/conformance/corpus/.gitkeep packages/experimental/kumo-pytorch/conformance/expectations.json packages/experimental/kumo-pytorch/conformance/expectations.py packages/experimental/kumo-pytorch/conformance/fake_ingest.py packages/experimental/kumo-pytorch/conformance/fixtures.py packages/experimental/kumo-pytorch/conformance/generate.py packages/experimental/kumo-pytorch/conformance/graph_cases.py packages/experimental/kumo-pytorch/conformance/in_memory_divergences/repro-aec68015a13dd97d.json packages/experimental/kumo-pytorch/conformance/known_gaps/repro-0e6731dc166334bb.json packages/experimental/kumo-pytorch/conformance/known_gaps/repro-17377cd26ed0ecf8.json packages/experimental/kumo-pytorch/conformance/known_gaps/repro-347e53900d7b9027.json packages/experimental/kumo-pytorch/conformance/known_gaps/repro-6d4a103649f844e5.json packages/experimental/kumo-pytorch/conformance/known_gaps/repro-7657161068432210.json packages/experimental/kumo-pytorch/conformance/known_gaps/repro-99c19aba95fd9583.json packages/experimental/kumo-pytorch/conformance/known_gaps/repro-ea4df9342ba46532.json packages/experimental/kumo-pytorch/conformance/known_gaps/repro-f18d19cbed41f126.json packages/experimental/kumo-pytorch/conformance/outputs.py packages/experimental/kumo-pytorch/conformance/properties.py packages/experimental/kumo-pytorch/conformance/registry.py packages/experimental/kumo-pytorch/conformance/repro.py packages/experimental/kumo-pytorch/conformance/sequence_cases.py packages/experimental/kumo-pytorch/conformance/spec/guarantees/G-ARTIFACT-001/golden/C-ARTIFACT-001.json packages/experimental/kumo-pytorch/conformance/spec/guarantees/G-ARTIFACT-001/guarantee.md packages/experimental/kumo-pytorch/conformance/spec/guarantees/G-CALC-001/golden/C-CALC-001.json packages/experimental/kumo-pytorch/conformance/spec/guarantees/G-CALC-001/golden/C-CALC-002.json packages/experimental/kumo-pytorch/conformance/spec/guarantees/G-CALC-001/golden/C-CALC-003.json packages/experimental/kumo-pytorch/conformance/spec/guarantees/G-CALC-001/guarantee.md packages/experimental/kumo-pytorch/conformance/spec/guarantees/G-COMPOSITE-001/golden/C-COMPOSITE-001.json packages/experimental/kumo-pytorch/conformance/spec/guarantees/G-COMPOSITE-001/guarantee.md packages/experimental/kumo-pytorch/conformance/spec/guarantees/G-CONTRACT-001/golden/C-CONTRACT-001.json packages/experimental/kumo-pytorch/conformance/spec/guarantees/G-CONTRACT-001/guarantee.md packages/experimental/kumo-pytorch/conformance/spec/guarantees/G-ENCODING-001/golden/C-ENCODING-001.json packages/experimental/kumo-pytorch/conformance/spec/guarantees/G-ENCODING-001/golden/C-ENCODING-002.json packages/experimental/kumo-pytorch/conformance/spec/guarantees/G-ENCODING-001/golden/C-ENCODING-003.json packages/experimental/kumo-pytorch/conformance/spec/guarantees/G-ENCODING-001/guarantee.md packages/experimental/kumo-pytorch/conformance/spec/guarantees/G-ENTITY-001/golden/C-ENTITY-001.json packages/experimental/kumo-pytorch/conformance/spec/guarantees/G-ENTITY-001/guarantee.md packages/experimental/kumo-pytorch/conformance/spec/guarantees/G-FIELDS-001/golden/C-FIELDS-001.json packages/experimental/kumo-pytorch/conformance/spec/guarantees/G-FIELDS-001/golden/C-FIELDS-002.json packages/experimental/kumo-pytorch/conformance/spec/guarantees/G-FIELDS-001/guarantee.md packages/experimental/kumo-pytorch/conformance/spec/guarantees/G-GRAPH-001/golden/C-GRAPH-001.json packages/experimental/kumo-pytorch/conformance/spec/guarantees/G-GRAPH-001/guarantee.md packages/experimental/kumo-pytorch/conformance/spec/guarantees/G-HISTORY-001/golden/C-HISTORY-001.json packages/experimental/kumo-pytorch/conformance/spec/guarantees/G-HISTORY-001/golden/C-HISTORY-002.json packages/experimental/kumo-pytorch/conformance/spec/guarantees/G-HISTORY-001/guarantee.md packages/experimental/kumo-pytorch/conformance/spec/guarantees/G-IDSPACE-001/golden/C-IDSPACE-001.json packages/experimental/kumo-pytorch/conformance/spec/guarantees/G-IDSPACE-001/guarantee.md packages/experimental/kumo-pytorch/conformance/spec/guarantees/G-INFERENCE-001/golden/C-INFERENCE-001.json packages/experimental/kumo-pytorch/conformance/spec/guarantees/G-INFERENCE-001/guarantee.md packages/experimental/kumo-pytorch/conformance/spec/guarantees/G-REUSE-001/golden/C-REUSE-001.json packages/experimental/kumo-pytorch/conformance/spec/guarantees/G-REUSE-001/guarantee.md packages/experimental/kumo-pytorch/conformance/spec/guarantees/G-ROWS-001/golden/C-ROWS-001.json packages/experimental/kumo-pytorch/conformance/spec/guarantees/G-ROWS-001/golden/C-ROWS-002.json packages/experimental/kumo-pytorch/conformance/spec/guarantees/G-ROWS-001/guarantee.md packages/experimental/kumo-pytorch/conformance/spec/guarantees/G-SERVING-001/golden/C-SERVING-001.json packages/experimental/kumo-pytorch/conformance/spec/guarantees/G-SERVING-001/guarantee.md packages/experimental/kumo-pytorch/conformance/spec/guarantees/G-TARGET-001/golden/C-TARGET-001.json packages/experimental/kumo-pytorch/conformance/spec/guarantees/G-TARGET-001/guarantee.md packages/experimental/kumo-pytorch/conformance/spec/guarantees/G-TYPE-001/golden/C-TYPE-001.json packages/experimental/kumo-pytorch/conformance/spec/guarantees/G-TYPE-001/golden/C-TYPE-002.json packages/experimental/kumo-pytorch/conformance/spec/guarantees/G-TYPE-001/guarantee.md packages/experimental/kumo-pytorch/conformance/transfer.py packages/experimental/kumo-pytorch/conformance/variants.py Added: behavior guarantees with hand-checked example cases, and the harness that runs them on the engines Specification the package is tested against (python -m conformance)
packages/experimental/kumo-pytorch/e2e/README.md packages/experimental/kumo-pytorch/e2e/__init__.py packages/experimental/kumo-pytorch/e2e/baselines/__init__.py packages/experimental/kumo-pytorch/e2e/baselines/hm-m.json packages/experimental/kumo-pytorch/e2e/baselines/hm-s.json packages/experimental/kumo-pytorch/e2e/baselines/kumo_engine_hm.py packages/experimental/kumo-pytorch/e2e/baselines/kumo_engine_hm_plan.json packages/experimental/kumo-pytorch/e2e/datasets/__init__.py packages/experimental/kumo-pytorch/e2e/datasets/hm.py packages/experimental/kumo-pytorch/e2e/flows/__init__.py packages/experimental/kumo-pytorch/e2e/flows/common.py packages/experimental/kumo-pytorch/e2e/flows/hm_gnn.py packages/experimental/kumo-pytorch/e2e/flows/hm_pragma.py packages/experimental/kumo-pytorch/e2e/metrics.py Added: synthetic dataset generator, end-to-end flows and recorded baselines Used by the T2a and T2b lifecycle workflows
packages/experimental/kumo-pytorch/docs/01-concepts.md packages/experimental/kumo-pytorch/docs/02-contracts.md packages/experimental/kumo-pytorch/docs/03-encodings-and-ids.md packages/experimental/kumo-pytorch/docs/04-engines-and-data.md packages/experimental/kumo-pytorch/docs/05-training-batches.md packages/experimental/kumo-pytorch/docs/06-inference-and-serving.md packages/experimental/kumo-pytorch/docs/07-model-input-shapes.md packages/experimental/kumo-pytorch/docs/08-design-principles.md packages/experimental/kumo-pytorch/docs/README.md packages/experimental/kumo-pytorch/docs/api/README.md packages/experimental/kumo-pytorch/docs/api/artifacts-and-serving.md packages/experimental/kumo-pytorch/docs/api/authoring.md packages/experimental/kumo-pytorch/docs/api/batches.md packages/experimental/kumo-pytorch/docs/api/datasets.md packages/experimental/kumo-pytorch/docs/api/encodings.md packages/experimental/kumo-pytorch/docs/api/engines.md packages/experimental/kumo-pytorch/docs/api/lifecycle.md packages/experimental/kumo-pytorch/docs/api/samples.md packages/experimental/kumo-pytorch/docs/api/schema.md packages/experimental/kumo-pytorch/docs/api/targets.md packages/experimental/kumo-pytorch/docs/installation.md packages/experimental/kumo-pytorch/docs/limitations.md Added: user guide, installation, limitations and API reference User documentation
packages/experimental/kumo-pytorch/examples/README.md packages/experimental/kumo-pytorch/examples/churn/README.md packages/experimental/kumo-pytorch/examples/churn/churn_model.py packages/experimental/kumo-pytorch/examples/churn/contract.json packages/experimental/kumo-pytorch/examples/churn/output_schema.json packages/experimental/kumo-pytorch/examples/churn/serving_request.json packages/experimental/kumo-pytorch/examples/churn/walkthrough.ipynb packages/experimental/kumo-pytorch/examples/hm-recommendation/README.md packages/experimental/kumo-pytorch/examples/hm-recommendation/contract.json packages/experimental/kumo-pytorch/examples/hm-recommendation/output_schema.json packages/experimental/kumo-pytorch/examples/hm-recommendation/recommender.py packages/experimental/kumo-pytorch/examples/hm-recommendation/walkthrough.ipynb packages/experimental/kumo-pytorch/examples/pragma-fraud/README.md packages/experimental/kumo-pytorch/examples/pragma-fraud/contract.json packages/experimental/kumo-pytorch/examples/pragma-fraud/id_spaces.json packages/experimental/kumo-pytorch/examples/pragma-fraud/output_schema.json packages/experimental/kumo-pytorch/examples/pragma-fraud/transaction_model.py packages/experimental/kumo-pytorch/examples/pragma-fraud/walkthrough.ipynb Added: three example notebooks with their helper modules and committed outputs Examples, executed by the notebooks and install jobs
packages/experimental/kumo-pytorch/README.md Added: package README with the quick start Package description; pyproject readme
packages/experimental/kumo-pytorch/LICENSE Added: Apache-2.0, identical to the root LICENSE Required by the license-metadata check
packages/experimental/kumo-pytorch/pyproject.toml Added: setuptools metadata, kumo.pytorch namespace package, workspace DiskGraph dependency, dev (pytest) and examples (torch-geometric) extras Package build and workspace membership
.github/actions/kumo-pytorch-setup/action.yml Added: locked CPU workspace environment plus kumo-pytorch, optionally DiskGraph from this commit's wheel Shared setup for the kumo-pytorch workflows
.github/workflows/kumo-pytorch-tests.yml Added: in-memory conformance, test suite, ruff and package build on CPU Package CI; path-filtered to the package
.github/workflows/kumo-pytorch-diskgraph.yml Added: conformance on both engines, full suite with --require-imports, example notebooks, and the build/fresh-install job Package CI against DiskGraph built from the same commit
.github/workflows/kumo-pytorch-t2a.yml Added: end-to-end train/infer/serve flows at size S Lifecycle tier per main commit; PRs only when the flows change
.github/workflows/kumo-pytorch-t2b.yml Added: nightly end-to-end flows at size M and extra conformance seeds Nightly lifecycle tier
pyproject.toml Added packages/experimental/kumo-pytorch to [tool.uv.workspace] members Workspace membership
uv.lock Locked kumo-pytorch and its new runtime dependency tokenizers with the six packages it needs; other locked versions unchanged uv lock --check and uv sync --locked
scripts/check_python_license_metadata.py DistributionSpec for kumo-pytorch with LICENSE Every tracked distribution must be in the licensing inventory
scripts/gen_third_party.py kumo-pytorch in FIRST_PARTY_DISTRIBUTIONS First-party classification for the notice tooling
.github/workflows/linting.yml Licensing job also builds the kumo-pytorch wheel --require-all expects a wheel for every registered distribution
.pre-commit-config.yaml Excluded the package from autoflake, yapf, isort and flake8 The package keeps its own ruff configuration
setup.cfg Excluded the package from flake8, isort and yapf Same reason, for the CI lint jobs
pyrightconfig.json Excluded the package from pyright Package-owned checks, like kumo-core
precommit-pyrightconfig.json Excluded the package from pyright Same, for pre-commit
.dockerignore Excluded packages/experimental/ The backend images don't ship experimental packages
tests/public_setup/Dockerfile.dockerignore Kept packages/experimental/kumo-pytorch/pyproject.toml in the context The public-setup context keeps every workspace member's manifest
.gitignore Un-ignores packages/experimental/kumo-pytorch/examples/*/walkthrough.ipynb The root ignores *.ipynb; the example notebooks are source
test/scripts/test_python_license_metadata.py Expected distribution count 13 -> 14 kumo-pytorch is a new registered distribution
packages/kumo-engine/scripts/build_wheel.sh Skips packages/experimental/ by name, next to kumo-sdk and diskgraph Experimental packages aren't released; remove the skip to release one
test/scripts/test_engine_wheel.py Fake monorepo includes an experimental package, and a pyproject.toml directly under packages/experimental/; neither may be built Pins that the kumo-engine wheel never bundles kumo-pytorch

@lambyqq
lambyqq temporarily deployed to gha-kumo-workflow-tests November 6, 2026 17:14 — with GitHub Actions Inactive
@lambyqq lambyqq mentioned this pull request Nov 6, 2026
3 tasks done
@coderabbitai

coderabbitai Bot commented Nov 6, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Too many files!

This PR contains 304 files, which is 4 over the limit of 300.

To get a review, reduce the PR to 300 files or fewer by splitting it into smaller PRs or changing its base branch.

Run configuration

Commits

Reviewing files that changed from the base of the PR and between d501afb and 79ba160.

Files ignored due to path filters: 1

  • uv.lock is excluded by !**/*.lock, !**/*.lock
Files selected for processing: 304

  • .dockerignore
  • .github/actions/kumo-pytorch-setup/action.yml
  • .github/workflows/kumo-pytorch-diskgraph.yml
  • .github/workflows/kumo-pytorch-t2a.yml
  • .github/workflows/kumo-pytorch-t2b.yml
  • .github/workflows/kumo-pytorch-tests.yml
  • .github/workflows/linting.yml
  • .gitignore
  • .pre-commit-config.yaml
  • packages/experimental/kumo-pytorch/LICENSE
  • packages/experimental/kumo-pytorch/README.md
  • packages/experimental/kumo-pytorch/conformance/README.md
  • packages/experimental/kumo-pytorch/conformance/__init__.py
  • packages/experimental/kumo-pytorch/conformance/__main__.py
  • packages/experimental/kumo-pytorch/conformance/assertions.py
  • packages/experimental/kumo-pytorch/conformance/cases.py
  • packages/experimental/kumo-pytorch/conformance/corpus/.gitkeep
  • packages/experimental/kumo-pytorch/conformance/expectations.json
  • packages/experimental/kumo-pytorch/conformance/expectations.py
  • packages/experimental/kumo-pytorch/conformance/fake_ingest.py
  • packages/experimental/kumo-pytorch/conformance/fixtures.py
  • packages/experimental/kumo-pytorch/conformance/generate.py
  • packages/experimental/kumo-pytorch/conformance/graph_cases.py
  • packages/experimental/kumo-pytorch/conformance/in_memory_divergences/repro-aec68015a13dd97d.json
  • packages/experimental/kumo-pytorch/conformance/known_gaps/repro-0e6731dc166334bb.json
  • packages/experimental/kumo-pytorch/conformance/known_gaps/repro-17377cd26ed0ecf8.json
  • packages/experimental/kumo-pytorch/conformance/known_gaps/repro-347e53900d7b9027.json
  • packages/experimental/kumo-pytorch/conformance/known_gaps/repro-6d4a103649f844e5.json
  • packages/experimental/kumo-pytorch/conformance/known_gaps/repro-7657161068432210.json
  • packages/experimental/kumo-pytorch/conformance/known_gaps/repro-99c19aba95fd9583.json
  • packages/experimental/kumo-pytorch/conformance/known_gaps/repro-ea4df9342ba46532.json
  • packages/experimental/kumo-pytorch/conformance/known_gaps/repro-f18d19cbed41f126.json
  • packages/experimental/kumo-pytorch/conformance/outputs.py
  • packages/experimental/kumo-pytorch/conformance/properties.py
  • packages/experimental/kumo-pytorch/conformance/registry.py
  • packages/experimental/kumo-pytorch/conformance/repro.py
  • packages/experimental/kumo-pytorch/conformance/sequence_cases.py
  • packages/experimental/kumo-pytorch/conformance/spec/guarantees/G-ARTIFACT-001/golden/C-ARTIFACT-001.json
  • packages/experimental/kumo-pytorch/conformance/spec/guarantees/G-ARTIFACT-001/guarantee.md
  • packages/experimental/kumo-pytorch/conformance/spec/guarantees/G-CALC-001/golden/C-CALC-001.json
  • packages/experimental/kumo-pytorch/conformance/spec/guarantees/G-CALC-001/golden/C-CALC-002.json
  • packages/experimental/kumo-pytorch/conformance/spec/guarantees/G-CALC-001/golden/C-CALC-003.json
  • packages/experimental/kumo-pytorch/conformance/spec/guarantees/G-CALC-001/guarantee.md
  • packages/experimental/kumo-pytorch/conformance/spec/guarantees/G-COMPOSITE-001/golden/C-COMPOSITE-001.json
  • packages/experimental/kumo-pytorch/conformance/spec/guarantees/G-COMPOSITE-001/guarantee.md
  • packages/experimental/kumo-pytorch/conformance/spec/guarantees/G-CONTRACT-001/golden/C-CONTRACT-001.json
  • packages/experimental/kumo-pytorch/conformance/spec/guarantees/G-CONTRACT-001/guarantee.md
  • packages/experimental/kumo-pytorch/conformance/spec/guarantees/G-ENCODING-001/golden/C-ENCODING-001.json
  • packages/experimental/kumo-pytorch/conformance/spec/guarantees/G-ENCODING-001/golden/C-ENCODING-002.json
  • packages/experimental/kumo-pytorch/conformance/spec/guarantees/G-ENCODING-001/golden/C-ENCODING-003.json
  • packages/experimental/kumo-pytorch/conformance/spec/guarantees/G-ENCODING-001/guarantee.md
  • packages/experimental/kumo-pytorch/conformance/spec/guarantees/G-ENTITY-001/golden/C-ENTITY-001.json
  • packages/experimental/kumo-pytorch/conformance/spec/guarantees/G-ENTITY-001/guarantee.md
  • packages/experimental/kumo-pytorch/conformance/spec/guarantees/G-FIELDS-001/golden/C-FIELDS-001.json
  • packages/experimental/kumo-pytorch/conformance/spec/guarantees/G-FIELDS-001/golden/C-FIELDS-002.json
  • packages/experimental/kumo-pytorch/conformance/spec/guarantees/G-FIELDS-001/guarantee.md
  • packages/experimental/kumo-pytorch/conformance/spec/guarantees/G-GRAPH-001/golden/C-GRAPH-001.json
  • packages/experimental/kumo-pytorch/conformance/spec/guarantees/G-GRAPH-001/guarantee.md
  • packages/experimental/kumo-pytorch/conformance/spec/guarantees/G-HISTORY-001/golden/C-HISTORY-001.json
  • packages/experimental/kumo-pytorch/conformance/spec/guarantees/G-HISTORY-001/golden/C-HISTORY-002.json
  • packages/experimental/kumo-pytorch/conformance/spec/guarantees/G-HISTORY-001/guarantee.md
  • packages/experimental/kumo-pytorch/conformance/spec/guarantees/G-IDSPACE-001/golden/C-IDSPACE-001.json
  • packages/experimental/kumo-pytorch/conformance/spec/guarantees/G-IDSPACE-001/guarantee.md
  • packages/experimental/kumo-pytorch/conformance/spec/guarantees/G-INFERENCE-001/golden/C-INFERENCE-001.json
  • packages/experimental/kumo-pytorch/conformance/spec/guarantees/G-INFERENCE-001/guarantee.md
  • packages/experimental/kumo-pytorch/conformance/spec/guarantees/G-REUSE-001/golden/C-REUSE-001.json
  • packages/experimental/kumo-pytorch/conformance/spec/guarantees/G-REUSE-001/guarantee.md
  • packages/experimental/kumo-pytorch/conformance/spec/guarantees/G-ROWS-001/golden/C-ROWS-001.json
  • packages/experimental/kumo-pytorch/conformance/spec/guarantees/G-ROWS-001/golden/C-ROWS-002.json
  • packages/experimental/kumo-pytorch/conformance/spec/guarantees/G-ROWS-001/guarantee.md
  • packages/experimental/kumo-pytorch/conformance/spec/guarantees/G-SERVING-001/golden/C-SERVING-001.json
  • packages/experimental/kumo-pytorch/conformance/spec/guarantees/G-SERVING-001/guarantee.md
  • packages/experimental/kumo-pytorch/conformance/spec/guarantees/G-TARGET-001/golden/C-TARGET-001.json
  • packages/experimental/kumo-pytorch/conformance/spec/guarantees/G-TARGET-001/guarantee.md
  • packages/experimental/kumo-pytorch/conformance/spec/guarantees/G-TYPE-001/golden/C-TYPE-001.json
  • packages/experimental/kumo-pytorch/conformance/spec/guarantees/G-TYPE-001/golden/C-TYPE-002.json
  • packages/experimental/kumo-pytorch/conformance/spec/guarantees/G-TYPE-001/guarantee.md
  • packages/experimental/kumo-pytorch/conformance/transfer.py
  • packages/experimental/kumo-pytorch/conformance/variants.py
  • packages/experimental/kumo-pytorch/docs/01-concepts.md
  • packages/experimental/kumo-pytorch/docs/02-contracts.md
  • packages/experimental/kumo-pytorch/docs/03-encodings-and-ids.md
  • packages/experimental/kumo-pytorch/docs/04-engines-and-data.md
  • packages/experimental/kumo-pytorch/docs/05-training-batches.md
  • packages/experimental/kumo-pytorch/docs/06-inference-and-serving.md
  • packages/experimental/kumo-pytorch/docs/07-model-input-shapes.md
  • packages/experimental/kumo-pytorch/docs/08-design-principles.md
  • packages/experimental/kumo-pytorch/docs/README.md
  • packages/experimental/kumo-pytorch/docs/api/README.md
  • packages/experimental/kumo-pytorch/docs/api/artifacts-and-serving.md
  • packages/experimental/kumo-pytorch/docs/api/authoring.md
  • packages/experimental/kumo-pytorch/docs/api/batches.md
  • packages/experimental/kumo-pytorch/docs/api/datasets.md
  • packages/experimental/kumo-pytorch/docs/api/encodings.md
  • packages/experimental/kumo-pytorch/docs/api/engines.md
  • packages/experimental/kumo-pytorch/docs/api/lifecycle.md
  • packages/experimental/kumo-pytorch/docs/api/samples.md
  • packages/experimental/kumo-pytorch/docs/api/schema.md
  • packages/experimental/kumo-pytorch/docs/api/targets.md
  • packages/experimental/kumo-pytorch/docs/installation.md
  • packages/experimental/kumo-pytorch/docs/limitations.md
  • packages/experimental/kumo-pytorch/e2e/README.md
  • packages/experimental/kumo-pytorch/e2e/__init__.py
  • packages/experimental/kumo-pytorch/e2e/baselines/__init__.py
  • packages/experimental/kumo-pytorch/e2e/baselines/hm-m.json
  • packages/experimental/kumo-pytorch/e2e/baselines/hm-s.json
  • packages/experimental/kumo-pytorch/e2e/baselines/kumo_engine_hm.py
  • packages/experimental/kumo-pytorch/e2e/baselines/kumo_engine_hm_plan.json
  • packages/experimental/kumo-pytorch/e2e/datasets/__init__.py
  • packages/experimental/kumo-pytorch/e2e/datasets/hm.py
  • packages/experimental/kumo-pytorch/e2e/flows/__init__.py
  • packages/experimental/kumo-pytorch/e2e/flows/common.py
  • packages/experimental/kumo-pytorch/e2e/flows/hm_gnn.py
  • packages/experimental/kumo-pytorch/e2e/flows/hm_pragma.py
  • packages/experimental/kumo-pytorch/e2e/metrics.py
  • packages/experimental/kumo-pytorch/examples/README.md
  • packages/experimental/kumo-pytorch/examples/churn/README.md
  • packages/experimental/kumo-pytorch/examples/churn/churn_model.py
  • packages/experimental/kumo-pytorch/examples/churn/contract.json
  • packages/experimental/kumo-pytorch/examples/churn/output_schema.json
  • packages/experimental/kumo-pytorch/examples/churn/serving_request.json
  • packages/experimental/kumo-pytorch/examples/churn/walkthrough.ipynb
  • packages/experimental/kumo-pytorch/examples/hm-recommendation/README.md
  • packages/experimental/kumo-pytorch/examples/hm-recommendation/contract.json
  • packages/experimental/kumo-pytorch/examples/hm-recommendation/output_schema.json
  • packages/experimental/kumo-pytorch/examples/hm-recommendation/recommender.py
  • packages/experimental/kumo-pytorch/examples/hm-recommendation/walkthrough.ipynb
  • packages/experimental/kumo-pytorch/examples/pragma-fraud/README.md
  • packages/experimental/kumo-pytorch/examples/pragma-fraud/contract.json
  • packages/experimental/kumo-pytorch/examples/pragma-fraud/id_spaces.json
  • packages/experimental/kumo-pytorch/examples/pragma-fraud/output_schema.json
  • packages/experimental/kumo-pytorch/examples/pragma-fraud/transaction_model.py
  • packages/experimental/kumo-pytorch/examples/pragma-fraud/walkthrough.ipynb
  • packages/experimental/kumo-pytorch/pyproject.toml
  • packages/experimental/kumo-pytorch/src/kumo/pytorch/__about__.py
  • packages/experimental/kumo-pytorch/src/kumo/pytorch/__init__.py
  • packages/experimental/kumo-pytorch/src/kumo/pytorch/anchors.py
  • packages/experimental/kumo-pytorch/src/kumo/pytorch/api.py
  • packages/experimental/kumo-pytorch/src/kumo/pytorch/architectures.py
  • packages/experimental/kumo-pytorch/src/kumo/pytorch/artifact.py
  • packages/experimental/kumo-pytorch/src/kumo/pytorch/assembly.py
  • packages/experimental/kumo-pytorch/src/kumo/pytorch/batches/__init__.py
  • packages/experimental/kumo-pytorch/src/kumo/pytorch/build.py
  • packages/experimental/kumo-pytorch/src/kumo/pytorch/config.py
  • packages/experimental/kumo-pytorch/src/kumo/pytorch/contract/__init__.py
  • packages/experimental/kumo-pytorch/src/kumo/pytorch/contract/_frozen.py
  • packages/experimental/kumo-pytorch/src/kumo/pytorch/contract/batch/__init__.py
  • packages/experimental/kumo-pytorch/src/kumo/pytorch/contract/batch/_common.py
  • packages/experimental/kumo-pytorch/src/kumo/pytorch/contract/batch/encodings.py
  • packages/experimental/kumo-pytorch/src/kumo/pytorch/contract/batch/layouts.py
  • packages/experimental/kumo-pytorch/src/kumo/pytorch/contract/batch/representations.py
  • packages/experimental/kumo-pytorch/src/kumo/pytorch/contract/batch/sources.py
  • packages/experimental/kumo-pytorch/src/kumo/pytorch/contract/batch/spec.py
  • packages/experimental/kumo-pytorch/src/kumo/pytorch/contract/batch/targets.py
  • packages/experimental/kumo-pytorch/src/kumo/pytorch/contract/batch/tokens.py
  • packages/experimental/kumo-pytorch/src/kumo/pytorch/contract/batch/validation.py
  • packages/experimental/kumo-pytorch/src/kumo/pytorch/contract/dtypes.py
  • packages/experimental/kumo-pytorch/src/kumo/pytorch/contract/sample.py
  • packages/experimental/kumo-pytorch/src/kumo/pytorch/contract/schema.py
  • packages/experimental/kumo-pytorch/src/kumo/pytorch/data/__init__.py
  • packages/experimental/kumo-pytorch/src/kumo/pytorch/data/field_batches.py
  • packages/experimental/kumo-pytorch/src/kumo/pytorch/data/masking.py
  • packages/experimental/kumo-pytorch/src/kumo/pytorch/data/model.py
  • packages/experimental/kumo-pytorch/src/kumo/pytorch/data/records.py
  • packages/experimental/kumo-pytorch/src/kumo/pytorch/data/sequences.py
  • packages/experimental/kumo-pytorch/src/kumo/pytorch/data/typed_vectors.py
  • packages/experimental/kumo-pytorch/src/kumo/pytorch/dataset.py
  • packages/experimental/kumo-pytorch/src/kumo/pytorch/datasets/__init__.py
  • packages/experimental/kumo-pytorch/src/kumo/pytorch/datasets/bank.py
  • packages/experimental/kumo-pytorch/src/kumo/pytorch/datasets/metrics.py
  • packages/experimental/kumo-pytorch/src/kumo/pytorch/datasets/retail.py
  • packages/experimental/kumo-pytorch/src/kumo/pytorch/encoding.py
  • packages/experimental/kumo-pytorch/src/kumo/pytorch/engine.py
  • packages/experimental/kumo-pytorch/src/kumo/pytorch/engines/__init__.py
  • packages/experimental/kumo-pytorch/src/kumo/pytorch/engines/diskgraph.py
  • packages/experimental/kumo-pytorch/src/kumo/pytorch/engines/in_memory/__init__.py
  • packages/experimental/kumo-pytorch/src/kumo/pytorch/engines/in_memory/anchors.py
  • packages/experimental/kumo-pytorch/src/kumo/pytorch/engines/in_memory/engine.py
  • packages/experimental/kumo-pytorch/src/kumo/pytorch/engines/in_memory/graph.py
  • packages/experimental/kumo-pytorch/src/kumo/pytorch/engines/in_memory/samples.py
  • packages/experimental/kumo-pytorch/src/kumo/pytorch/engines/in_memory/source.py
  • packages/experimental/kumo-pytorch/src/kumo/pytorch/engines/parquet_anchors.py
  • packages/experimental/kumo-pytorch/src/kumo/pytorch/engines/unsupported.py
  • packages/experimental/kumo-pytorch/src/kumo/pytorch/materialization.py
  • packages/experimental/kumo-pytorch/src/kumo/pytorch/models/__init__.py
  • packages/experimental/kumo-pytorch/src/kumo/pytorch/models/causal.py
  • packages/experimental/kumo-pytorch/src/kumo/pytorch/models/common.py
  • packages/experimental/kumo-pytorch/src/kumo/pytorch/models/fusion.py
  • packages/experimental/kumo-pytorch/src/kumo/pytorch/models/hierarchical.py
  • packages/experimental/kumo-pytorch/src/kumo/pytorch/models/layers.py
  • packages/experimental/kumo-pytorch/src/kumo/pytorch/models/model.py
  • packages/experimental/kumo-pytorch/src/kumo/pytorch/models/patterns.py
  • packages/experimental/kumo-pytorch/src/kumo/pytorch/models/protocols.py
  • packages/experimental/kumo-pytorch/src/kumo/pytorch/models/typed.py
  • packages/experimental/kumo-pytorch/src/kumo/pytorch/objectives.py
  • packages/experimental/kumo-pytorch/src/kumo/pytorch/output.py
  • packages/experimental/kumo-pytorch/src/kumo/pytorch/preparation.py
  • packages/experimental/kumo-pytorch/src/kumo/pytorch/serving.py
  • packages/experimental/kumo-pytorch/src/kumo/pytorch/serving_rows.py
  • packages/experimental/kumo-pytorch/src/kumo/pytorch/spec.py
  • packages/experimental/kumo-pytorch/src/kumo/pytorch/task.py
  • packages/experimental/kumo-pytorch/tests/__init__.py
  • packages/experimental/kumo-pytorch/tests/api_reference.py
  • packages/experimental/kumo-pytorch/tests/conformance/conftest.py
  • packages/experimental/kumo-pytorch/tests/conformance/test_assertions.py
  • packages/experimental/kumo-pytorch/tests/conformance/test_case_validation.py
  • packages/experimental/kumo-pytorch/tests/conformance/test_dtype_matrix.py
  • packages/experimental/kumo-pytorch/tests/conformance/test_expectations.py
  • packages/experimental/kumo-pytorch/tests/conformance/test_fake_ingest.py
  • packages/experimental/kumo-pytorch/tests/conformance/test_field_semantics.py
  • packages/experimental/kumo-pytorch/tests/conformance/test_functional_harness.py
  • packages/experimental/kumo-pytorch/tests/conformance/test_guarantees.py
  • packages/experimental/kumo-pytorch/tests/conformance/test_projections.py
  • packages/experimental/kumo-pytorch/tests/conformance/test_properties.py
  • packages/experimental/kumo-pytorch/tests/conformance/test_property_harness.py
  • packages/experimental/kumo-pytorch/tests/conformance/test_required_execution.py
  • packages/experimental/kumo-pytorch/tests/conformance/test_sampling_harness.py
  • packages/experimental/kumo-pytorch/tests/conftest.py
  • packages/experimental/kumo-pytorch/tests/data/synthetic_banking_subset.json
  • packages/experimental/kumo-pytorch/tests/e2e/__init__.py
  • packages/experimental/kumo-pytorch/tests/e2e/runs.py
  • packages/experimental/kumo-pytorch/tests/e2e/test_hm_dataset.py
  • packages/experimental/kumo-pytorch/tests/e2e/test_lifecycle.py
  • packages/experimental/kumo-pytorch/tests/e2e/test_runs.py
  • packages/experimental/kumo-pytorch/tests/e2e/tiers.py
  • packages/experimental/kumo-pytorch/tests/helpers.py
  • packages/experimental/kumo-pytorch/tests/lifecycle_app.py
  • packages/experimental/kumo-pytorch/tests/limitations_reference.py
  • packages/experimental/kumo-pytorch/tests/reference_models/__init__.py
  • packages/experimental/kumo-pytorch/tests/reference_models/architecture_definitions.py
  • packages/experimental/kumo-pytorch/tests/reference_models/batch_adapters.py
  • packages/experimental/kumo-pytorch/tests/reference_models/batch_definitions.py
  • packages/experimental/kumo-pytorch/tests/reference_models/data_recipes.py
  • packages/experimental/kumo-pytorch/tests/reference_models/data_schema.py
  • packages/experimental/kumo-pytorch/tests/reference_models/fixtures.py
  • packages/experimental/kumo-pytorch/tests/serving_fetch.py
  • packages/experimental/kumo-pytorch/tests/test_anchor_tables.py
  • packages/experimental/kumo-pytorch/tests/test_api_reference.py
  • packages/experimental/kumo-pytorch/tests/test_architectures.py
  • packages/experimental/kumo-pytorch/tests/test_batch_api.py
  • packages/experimental/kumo-pytorch/tests/test_batch_examples.py
  • packages/experimental/kumo-pytorch/tests/test_bound_contract.py
  • packages/experimental/kumo-pytorch/tests/test_build.py
  • packages/experimental/kumo-pytorch/tests/test_candidates.py
  • packages/experimental/kumo-pytorch/tests/test_columnar_token_stream.py
  • packages/experimental/kumo-pytorch/tests/test_contract_serialization.py
  • packages/experimental/kumo-pytorch/tests/test_core_api.py
  • packages/experimental/kumo-pytorch/tests/test_datasets.py
  • packages/experimental/kumo-pytorch/tests/test_diskgraph_backend.py
  • packages/experimental/kumo-pytorch/tests/test_diskgraph_graph_output.py
  • packages/experimental/kumo-pytorch/tests/test_diskgraph_unsupported.py
  • packages/experimental/kumo-pytorch/tests/test_docs_code.py
  • packages/experimental/kumo-pytorch/tests/test_encoding_runtime.py
  • packages/experimental/kumo-pytorch/tests/test_engine_seam.py
  • packages/experimental/kumo-pytorch/tests/test_entity_contract.py
  • packages/experimental/kumo-pytorch/tests/test_entity_identity.py
  • packages/experimental/kumo-pytorch/tests/test_event_output_order.py
  • packages/experimental/kumo-pytorch/tests/test_field_outputs.py
  • packages/experimental/kumo-pytorch/tests/test_fitted_state_persistence.py
  • packages/experimental/kumo-pytorch/tests/test_graph_edge_uniqueness.py
  • packages/experimental/kumo-pytorch/tests/test_graph_self_relation.py
  • packages/experimental/kumo-pytorch/tests/test_graph_time_and_reductions.py
  • packages/experimental/kumo-pytorch/tests/test_in_memory_samples.py
  • packages/experimental/kumo-pytorch/tests/test_inference_lifecycle.py
  • packages/experimental/kumo-pytorch/tests/test_input_design.py
  • packages/experimental/kumo-pytorch/tests/test_masking.py
  • packages/experimental/kumo-pytorch/tests/test_materialization_types.py
  • packages/experimental/kumo-pytorch/tests/test_mode_reduction.py
  • packages/experimental/kumo-pytorch/tests/test_model.py
  • packages/experimental/kumo-pytorch/tests/test_model_column_hotpath.py
  • packages/experimental/kumo-pytorch/tests/test_model_history_limits.py
  • packages/experimental/kumo-pytorch/tests/test_notebooks.py
  • packages/experimental/kumo-pytorch/tests/test_nuformer.py
  • packages/experimental/kumo-pytorch/tests/test_occurrence_projection.py
  • packages/experimental/kumo-pytorch/tests/test_padding_identity_native.py
  • packages/experimental/kumo-pytorch/tests/test_panther.py
  • packages/experimental/kumo-pytorch/tests/test_preview.py
  • packages/experimental/kumo-pytorch/tests/test_public_contract.py
  • packages/experimental/kumo-pytorch/tests/test_reference_recipes.py
  • packages/experimental/kumo-pytorch/tests/test_request_hotpath.py
  • packages/experimental/kumo-pytorch/tests/test_serving.py
  • packages/experimental/kumo-pytorch/tests/test_serving_rows_drift.py
  • packages/experimental/kumo-pytorch/tests/test_target_layouts.py
  • packages/experimental/kumo-pytorch/tests/test_temporal_declarations.py
  • packages/experimental/kumo-pytorch/tests/test_time_boundaries.py
  • packages/experimental/kumo-pytorch/tests/test_time_columns.py
  • packages/experimental/kumo-pytorch/tests/test_time_delta.py
  • packages/experimental/kumo-pytorch/tests/test_token_field_order.py
  • packages/experimental/kumo-pytorch/tests/test_tokenization.py
  • packages/experimental/kumo-pytorch/tests/test_treasure.py
  • packages/experimental/kumo-pytorch/tests/test_type_resolution.py
  • packages/experimental/kumo-pytorch/tests/test_typed_review_regressions.py
  • packages/experimental/kumo-pytorch/tests/test_typed_sample_values.py
  • packages/experimental/kumo-pytorch/tests/test_varlen_metadata.py
  • packages/kumo-engine/scripts/build_wheel.sh
  • precommit-pyrightconfig.json
  • pyproject.toml
  • pyrightconfig.json
  • scripts/check_python_license_metadata.py
  • scripts/gen_third_party.py
  • setup.cfg
  • test/scripts/test_engine_wheel.py
  • test/scripts/test_python_license_metadata.py
  • tests/public_setup/Dockerfile.dockerignore

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@lambyqq
lambyqq force-pushed the kumo-pytorch/experimental-package branch from f8b930c to 3a47485 Compare November 6, 2026 17:18
@copy-pr-bot

copy-pr-bot Bot commented Nov 6, 2026

Copy link
Copy Markdown

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@lambyqq
lambyqq temporarily deployed to gha-kumo-workflow-tests November 6, 2026 17:18 — with GitHub Actions Inactive
@lambyqq
lambyqq force-pushed the kumo-pytorch/experimental-package branch from 3a47485 to 9a170e2 Compare November 6, 2026 17:43
@lambyqq
lambyqq temporarily deployed to gha-kumo-workflow-tests November 6, 2026 17:43 — with GitHub Actions Inactive
@lambyqq
lambyqq force-pushed the kumo-pytorch/experimental-package branch from 9a170e2 to 1088a28 Compare November 6, 2026 18:21
@lambyqq
lambyqq temporarily deployed to gha-kumo-workflow-tests November 6, 2026 18:21 — with GitHub Actions Inactive
@lambyqq
lambyqq marked this pull request as ready for review November 6, 2026 18:36
lambyqq and others added 2 commits November 6, 2026 11:18
The package and its CI workflows.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Workspace member and uv.lock, license-metadata and notice registration,
lint and type-check scoping, the license wheel build, Docker contexts,
and an engine-wheel test showing experimental packages are not bundled.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@lambyqq
lambyqq force-pushed the kumo-pytorch/experimental-package branch from 1088a28 to 79ba160 Compare November 6, 2026 19:19
@lambyqq
lambyqq temporarily deployed to gha-kumo-workflow-tests November 6, 2026 19:19 — with GitHub Actions Inactive
@lambyqq

lambyqq commented Nov 6, 2026

Copy link
Copy Markdown
Contributor Author

/ok to test 79ba160

@lambyqq
lambyqq requested a review from Victsm November 6, 2026 19:29

@Victsm Victsm left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed integration, licensing, wheel exclusion and CI at 79ba160; no blocking issue found in that scope.

Nonblocking follow-up: add root uv.lock and pyproject.toml to the experimental unit/native-test PR path filters. The shared setup consumes both, so dependency-only changes can alter the test environment without running these checks before merge; nightly coverage catches issues later. The heavier E2E workflows can retain their selective triggering.

@lambyqq

lambyqq commented Nov 7, 2026

Copy link
Copy Markdown
Contributor Author

Thanks, agreed. Adding the root uv.lock and pyproject.toml to the path filters of kumo-pytorch-tests and kumo-pytorch-diskgraph will come in a follow-up PR; the end-to-end workflows keep their selective triggers.

@lambyqq
lambyqq merged commit 4716ad5 into main Nov 7, 2026
149 checks passed
@lambyqq
lambyqq deleted the kumo-pytorch/experimental-package branch November 7, 2026 00:58
bberger62 added a commit that referenced this pull request Nov 12, 2026
## Summary

Allow non-entity tables without primary keys in `kumo.pytorch`,
following DiskGraph's existing row identity. For example, `events(owner
FK → users.id, at, amount)` can supply histories, aggregates and graph
neighbors without an artificial event key. Entity/root and candidate
entity declarations still require a PK.

This ports
[rdl-platform#139](kumo-ai/rdl-platform#139)
into the API's new home at `packages/experimental/kumo-pytorch`,
introduced by #244. The API implementation, tests and agreed examples
are retained under the `kumo.pytorch` namespace. The standalone
dependency-pin changes are omitted: this package already uses the
workspace DiskGraph, including merged native support from #184.

## Where support is missing

The current `TableSpec` constructor rejects `primary_key=None` with
`table name and primary key must be non-empty`, before the table reaches
ingestion. Downstream API paths also assume every table has a PK: native
ingestion configuration always declares one, temporal sequences project
it, graph output reads it for identity, and serving requires it for row
uniqueness and fetching.

DiskGraph already stores and traverses rows without PKs. Ingestion
assigns native node IDs; graph sampling and temporal queries use those
IDs to address individual occurrences. External PK lookup is a separate
requirement for choosing entities. This change carries that existing
distinction through the API.

## Implementation and intended behavior

- Accept `TableSpec(..., primary_key=None)` and `build.Table(...,
key=None)`. A shared declaration check rejects PK-less sample/candidate
entities before binding, type inference or source access.
- Omit absent PK metadata and projections in the DiskGraph adapter. Use
returned native node IDs for temporal and graph identity. Constant-only
sequences project their existing clock to satisfy the native sequence
API.
- Use private source-occurrence ordinals in the in-memory test/serving
paths. Keep separate source occurrences distinct, including equal-valued
rows and aliases of the same input mapping. Repeated visits reuse an
occurrence; `distinct=True` removes repeated visits rather than
collapsing equal values.
- Validate key presence/uniqueness and request PK columns in `rows_spec`
only for keyed tables. Update authored documentation and regenerate the
public API reference.

No source key generation, additional identity column or persistent
identity inventory is introduced. Existing keyed ordering, entity
lookup, source cleanup and unsupported-operation checks retain their
behavior. Native source, workspace packaging and dependencies are
unchanged by this PR.

The new `G-KEYLESS-001` guarantee has two hand-calculated examples:

| Case | Input | Required answer |
| --- | --- | --- |
| C-KEYLESS-001 | Identical amount-2 events at time 9, amount 3 at 10,
and future amount 100 at 11. | Cutoff 9: count 2, sum 4. Cutoff 10:
count 3, sum 7. Recent `(9,10]` count 1. Empty history: count/sum 0. |
| C-KEYLESS-002 | Two links revisit the same two identical eligible
facts. | Distinct count 2 / sum 4; repeated count 4 / sum 8. Future
facts excluded. |

Keyless IDs remain opaque and local to an index or prepared serving
dataset. Reordering, repartitioning or serving subsets can change tied
selections and floating reduction rounding. Occurrence multiplicity and
integer reductions remain exact; stable cross-preparation identity
requires a declared PK.

## Testing Done

- **Full CPU suite: 1,926 passed**, 3 GPU skips and 47 opt-in
end-to-end/notebook checks deselected.
- **Complete conformance: 705 passed**, with no skipped or deselected
obligations, including DiskGraph and the in-memory differential checks.
- **Installed wheels: 41 passed** for keyless/entity behavior and the
README quick start, followed by **all 3 example notebooks passing** with
exact committed-file comparisons.
- Fresh independent adversarial review: 26 focused keyless tests, four
case/engine golden checks, and additional alias, NULL-FK,
repeated-visit, multi-file/shard, graph and serving probes passed.
- Source/wheel builds, Ruff 0.17.3 lint/format, generated
API/limitations freshness, whitespace checks and the repository-wide
SPDX check passed.

Validation uses Python 3.12 on CPU, with DiskGraph built from this
branch's in-tree source. The editable package is `kumo.pytorch`; the old
`rdl-pytorch` editable install was removed. Installed-wheel checks use a
separate environment and staged tests/docs/examples without `src/`; both
API and engine imports were verified to come from the installed wheels.

From `packages/experimental/kumo-pytorch`:

```bash
CUDA_VISIBLE_DEVICES='' python -m pytest -q --require-imports
CUDA_VISIBLE_DEVICES='' python -m conformance --engine all
python -m tests.api_reference
python -m tests.limitations_reference
python -m ruff check .
python -m ruff format --check .
```

Both the source distribution and its wheel build successfully. The
installed-wheel gate also exercises the README, keyless/entity tests and
example notebooks. Ruff uses the CI pin, 0.17.3. Native compilation used
the existing Rust 1.98 compiler; CI uses the repository's pinned
toolchain. No GPU or live-service validation is claimed.

Earlier standalone benchmarks measured roughly 4% additional in-memory
test-engine time and 6.3% retained source heap. Those historical
measurements were not repeated for this monorepo port.

## Migration and review

All 26 existing touched files matched the imported base after namespace
conversion; the four new guarantee/test files had no collisions. This is
the same RDL feature moved into the monorepo, with no additional
behavior or altered golden answers. The new package's existing CPU,
DiskGraph, notebooks and installed-wheel workflows cover the changed
paths.

Independent adversarial review found no actionable issues. It executed
all 26 focused keyless cases and four golden case/engine combinations,
plus multi-file/shard, NULL-FK, aliased-row, repeated-visit, graph and
serving probes. It also checked namespace coexistence and verified that
all 67 Python modules in the built wheel match source byte-for-byte.

## Change map

[File-by-file change
map](#267 (comment)).

Reviewed at: e7a75e6

Co-authored-by: Codex <[email protected]>

This branch was previously deployed

1 inactive deployment
gha-kumo-workflow-tests — 79ba1600 Deployed Nov 6, 2026 by lambyqq via import #1686
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants