Skip to content

Ship kumo.fm in the kumo-engine release wheel - #490

Draft
am-porter wants to merge 3 commits into
codex/fm-loader-migrationfrom
codex/fm-release-packaging
Draft

am-porter wants to merge 3 commits into
codex/fm-loader-migrationfrom
codex/fm-release-packaging

Conversation

@am-porter

@am-porter am-porter commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Ship experimental snapshot-backed kumo.fm and its runtime dependencies in the default engine release: pip install kumo-engine. No FM extra is required.

  • Bundle FM and its PyTorch prerequisite, stamp FM from root VERSION, and build its arrays encoder against CPython's 3.11 stable ABI.
  • Make FM a required engine dependency so wheel merging includes its dependencies, including PyArrow 24, by default. SDM inference remains a separate optional install; DuckDB is excluded.
  • Require all FM candidate-wheel tests on Python 3.11 and 3.14 outside the checkout, installing the wheel without extras.
  • Validate FM's native payload alongside DiskGraph, including ELF architecture and Windows DLL checks.

Stack: directly on #391 at ec7de0417, whose base includes #413's PyTorch packaging. Benchmark draft #509 remains a non-blocking sibling.

Change map

Per-file change map

Testing Done

Default-install revision, Python 3.12:

  • python -m pytest --confcutdir=test/scripts -q -o addopts= test/scripts/test_engine_wheel.py test/scripts/test_engine_pr_workflow.py test/scripts/test_platform_wheel.py test/scripts/test_shared_version.py: 143 passed. The FM regression uses the actual engine dependency declaration and verifies default merged-wheel requirements and native ABI handling.
  • Regenerated uv.lock with uv 0.13.7; uv lock --check --offline passed. The lock diff only moves FM from the extra into default dependencies. PyTorch metadata was retrieved from the publisher's S3 origin because the usual CDN endpoints failed locally.
  • Repository documentation and whitespace checks passed. Ruff passed with pre-existing PLW1510 findings excluded.

Earlier validation of the unchanged FM runtime passed all 15 FM tests with DuckDB disabled. Full merged release builds and actual Windows/macOS/Python 3.14 FM execution remain for CI; no inference or performance claim.

CI repair

CI repair: the public native image now installs FM and PyTorch source packages alongside the engine and checks their offline imports. Its Docker context regression covers FM's build/native sources and PyTorch's source. Regenerated stale published skill references with publish_nvskills.py. All 349 agent-skill tests and 14 public-runner tests (48 subtests, including real Docker context checks) pass. Documentation, generated-copy freshness and whitespace checks pass. A full local native-image build stopped at this host's PyTorch TLS certificate error before the changed source-install step. The hosted public-test rerun passed all five native groups plus all source groups; the Agent Skills rerun also passed.

Remaining external gate: the requested NVSkills validation rejected base ref codex/fm-loader-migration; the service currently allows only main for this repository. Its owner must allow this stacked base in config/onboarded-repositories.json before /nvskills-ci can run. No validation requirement was bypassed.

No package publication or deployment was performed.

@copy-pr-bot

copy-pr-bot Bot commented Nov 23, 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.

@am-porter
am-porter had a problem deploying to gha-kumo-workflow-tests November 23, 2026 18:42 — with GitHub Actions Failure
@coderabbitai

coderabbitai Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Note

.coderabbit.yaml has unrecognized properties

CodeRabbit is using all valid settings from your configuration. Unrecognized properties (listed below) have been ignored and may indicate typos or deprecated fields that can be removed.

Parsing warnings: 1

Validation error: Unrecognized key: "tone_instructions" at "reviews"
Configuration instructions

  • Please see the configuration documentation for more information.
  • You can also validate your configuration using the online YAML validator.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json
Pre-merge checks: Passed 2 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Change Map Design Review Warning The change map (comment 7110547542, marker <!-- kumo-pr-change-map -->, author am-porter) matches the diff for most rows. It fails the design review because it omits material default-install behavio… Corrections to the change map and implementation: 1. Decide the PyArrow constraint and state the reason. If the native encoder needs exactly PyArrow 24 at runtime, say so in the map and the release docs. Then state the Python 3.14 `kumo-eng…
Passed Passed checks: 2 passed

Check name Status Explanation
Pr Size Passed The PR size check fails only when the changed-file count exceeds 40. This PR changes 31 files. Evidence: - The PR description says the PR stacks directly on #391 at commit ec7de04. The base branch i…
Public Resource Access Passed The PR's own changes are the commits after ec7de04 (ae14502, 4aeea17, e65655a), as the PR description describes the stack. The configured base branch codex/fm-loader-migration is not in this checkout,…
Full details: Pr Size

Explanation

The PR size check fails only when the changed-file count exceeds 40. This PR changes 31 files. Evidence: - The PR description says the PR stacks directly on #391 at commit ec7de04. The base branch is codex/fm-loader-migration, which is not present in this checkout. - The checkout is detached at e65655a, the latest commit in the PR. Commit ec7de04 is an ancestor of HEAD. - The PR-only commits are ae14502, 4aeea17 and e65655a. Diffing ec7de04..HEAD gives 31 files changed (289 insertions, 63 deletions). Counting unique paths with renames split also gives 31. Caveat: Diffing against local main gives 302 files. That count includes the earlier stacked work from #391 and #413 and does not describe this PR. The provider file count was not available to confirm the base-branch diff. The 31-file count depends on ec7de04 being the current head of codex/fm-loader-migration, which the PR description states.

Full details: Public Resource Access

Explanation

The PR's own changes are the commits after ec7de04 (ae14502, 4aeea17, e65655a), as the PR description describes the stack. The configured base branch codex/fm-loader-migration is not in this checkout, so I used ec7de04..HEAD as the PR range. Earlier commits on main..HEAD, including the README and doc PyTorch and kumo-pytorch links, are outside this range and were not counted. Added lines in that range that contain external references: - .github/workflows/kumo-engine-pr.yml (FM job, added block around line 368): --default-index https://pypi.org/simple. An anonymous request to https://pypi.org/simple/pytest/ returned HTTP 200. Public. - .github/workflows/kumo-engine-pr.yml (added FM and wheel-check jobs): uses: references to actions/checkout, actions/setup-python, astral-sh/setup-uv and actions/download-artifact, pinned to commit SHAs. Anonymous requests to these github.com repositories returned HTTP 200. Public. Other added lines are repository-local: [tool.uv.sources] kumo-fm = { workspace = true }, Dockerfile paths inside the repository, and test fixtures such as s3://bucket and example.com strings, which are excluded as fixtures or examples. No added git+ URL, private index, S3 location, or private registry appears in the PR range. The only git+ reference (structured-data-models) is in a file added before ec7de04, so it is outside the PR range. The PR description links (CI runs and NVSkills validation) are not repository text changed by the diff and are not required to build or use the changed code. They are not assessed. Every added external reference required for build or CI resolves anonymously, so no inaccessible reference is confirmed.

Full details: Change Map Design Review

Explanation

The change map (comment 7110547542, marker &lt;!-- kumo-pr-change-map --&gt;, author am-porter) matches the diff for most rows. It fails the design review because it omits material default-install behavior and gives no necessity for one native change. Proven or strongly supported findings: 1. Omitted exact PyArrow pin with a Python 3.14 snowflake conflict. packages/experimental/kumo-fm/pyproject.toml pins pyarrow==24.0.0. packages/kumo-engine/setup.py now requires kumo-fm, so the pin enters the base install. Before this PR, base dependencies allowed pyarrow&gt;=15,&lt;25 through kumo-core. PyPI metadata shows snowflake-connector-python 4.7.1 and 4.8.1 declare pyarrow&lt;24 for Python 3.14 under the pandas extra. Version 4.7.0 does not. snowflake-ml-python 2.10.0 requires snowflake-connector-python[pandas]&lt;5. The engine snowflake extra reaches it through kumo-snowflake[sdk]. On Python 3.14, the base pyarrow==24.0.0 and the snowflake extra therefore cannot both resolve with connector 4.7.1 or later. A resolver would fall back to 4.7.0 or earlier. The root pyproject.toml says those versions lack the GHSA-5cc2-282f-jjq2 fix. The root override applies only to the workspace lock, not to published metadata. I did not run a resolver. The map says only "including PyArrow 24" and gives no reason for the exact pin. 2. Omitted new base third-party dependency. kumo-pytorch requirements now flatten into the base install through kumo-fm. These include tokenizers&gt;=0.22,&lt;1, which no other bundled base package declares. The map row says only "Flatten FM and PyTorch runtime dependencies". 3. Unproven necessity and omitted behavior change in the Windows native path. packages/experimental/kumo-fm/src/kumo/fm/_native_json.cpp changes Writer::temporal only under #ifdef _WIN32. The row "Handle pre-1970 and later dates portably" names no observed failure and no release requirement. The map also omits that Windows previously threw "Arrow timestamp outside platform calendar range" for out-of-range values, and now converts them. Linux uses the unchanged gmtime_r path, so Linux tests do not exercise this branch. The map does not state that this branch lacks local verification. Minor findings: 4. Skill-file refresh rows (task_journeys.md import and API example changes, among others) are unrelated to FM. Their rationale does not name the failing CI job. docs/development/review.md asks that unrelated improvements stay separate. 5. tests/public_setup/Dockerfile.dockerignore changes kumo-pytorch from pyproject.toml only to **. That tree is 5.3 MB and includes conformance JSON and examples. The map's "source and build files" understates this. Verified accurate: build_wheel.sh component loop, setup.py install_requires, merger expansion in merge_wheels.py, the new fm CI job (no extras, Python 3.11 and 3.14, DuckDB absence assertion), stamp_version.py, the kumo-fm setup.py limited-API options, uv.lock, and the Dockerfile. Uncertain design questions: whether the exact pyarrow==24.0.0 pin is needed for the native ABI. The map does not say.

Resolution

Corrections to the change map and implementation: 1. Decide the PyArrow constraint and state the reason. If the native encoder needs exactly PyArrow 24 at runtime, say so in the map and the release docs. Then state the Python 3.14 kumo-engine[snowflake] conflict and its resolver outcome. Also check whether snowflake-connector-python 4.7.0 (no GHSA fix) would be selected. If the exact pin is not required, relax kumo-fm to the range the other components use. Add a Python 3.14 install-resolution check for kumo-engine[snowflake]. 2. Name tokenizers and the other flattened kumo-pytorch runtime requirements as new default-install dependencies in the map row and in docs/development/releasing-kumo-engine.md. 3. For the Windows _native_json.cpp change, name the observed Windows failure or the release requirement that needs it. State the behavior change from throwing to converting. State that the Windows branch lacks local verification and depends on CI. If no such requirement exists, move this change to a separate PR. 4. Name the failing CI job for the skill refresh rows, or split the unrelated content changes into a separate PR. 5. Describe the Dockerfile.dockerignore change as a full-tree include of kumo-pytorch. Narrow it to build inputs if the examples and conformance data are not needed in the image. Keep these as optional refinements, separate from the required fixes: the pathlib refactor in test/scripts/test_engine_wheel.py is not needed for FM.

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

@am-porter

am-porter commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor Author

Change map

Remaining external gate: the requested NVSkills validation rejected base ref codex/fm-loader-migration; the service currently allows only main for this repository. Its owner must allow this stacked base in config/onboarded-repositories.json before /nvskills-ci can run. No validation requirement was bypassed.

CI repair: the public native image now installs FM and PyTorch source packages alongside the engine and checks their offline imports. Its Docker context regression covers FM's build/native sources and PyTorch's source. Regenerated stale published skill references with publish_nvskills.py. All 349 agent-skill tests and 14 public-runner tests (48 subtests, including real Docker context checks) pass. Documentation, generated-copy freshness and whitespace checks pass. A full local native-image build stopped at this host's PyTorch TLS certificate error before the changed source-install step. The hosted public-test rerun passed all five native groups plus all source groups; the Agent Skills rerun also passed.

Requirement: pip install kumo-engine must provide snapshot-backed FM loading without an extra. Previously FM code was bundled but its third-party dependencies were gated by [fm]. The engine now requires FM directly; the existing wheel merger follows FM's PyTorch dependency and includes both components' runtime requirements in the default install. SDM inference stays optional and DuckDB stays excluded.

The explicit component list, root-stamped FM version, CPython 3.11 stable ABI and native-payload verification remain. Required FM CI installs the merged wheel without extras and runs the complete FM suite on Python 3.11/3.14 outside the checkout. The base's PyTorch extra and required CI job are retained.

Validation for this revision: 143 packaging/platform/version/workflow tests passed on Python 3.12. The regression reads the real engine dependency declaration and checks default dependency flattening and ABI rejection. Regenerated the workspace lock with uv 0.13.7 and passed uv lock --check --offline; its diff only changes FM dependency placement. Publisher S3 metadata was used after CDN failures. Documentation and whitespace checks passed; Ruff passed with existing PLW1510 findings excluded. Earlier validation of unchanged FM runtime passed 15 FM cases without DuckDB. Full merged release builds and Windows/macOS/Python 3.14 runtime checks remain for CI. Stop at the updated draft PR; no package publication, deployment, inference or performance claim.

File Function / scope What changed Why
uv.lock Default FM dependency / version metadata Regenerate the packaging workspace lock with uv 0.13.7 Keep locked CI consistent with default FM installation and the stamped version
.github/workflows/kumo-engine-pr.yml fm / required jobs Test all FM cases from the merged candidate without extras on Python 3.11/3.14, without DuckDB Keep release validation independent of the deferred benchmark
README.md Installation Describe FM as part of the base package Use plain pip install kumo-engine
docs/development/engine-pr-ci.md FM candidate wheel Describe full FM wheel tests without DuckDB Document the release dependency boundary
docs/development/releasing-kumo-engine.md Bundling / versioning Describe explicit PyTorch/FM inclusion and stable ABI; exclude frozen benchmarks Keep release instructions aligned
packages/experimental/kumo-fm/README.md Installation Document the candidate engine install and stable ABI Avoid duplicate standalone namespace owners
packages/experimental/kumo-fm/examples/local_sdm/README.md Setup Use the candidate engine wheel Keep Arrow/Parquet examples aligned with packaging
packages/experimental/kumo-fm/pyproject.toml project / setuptools.dynamic Read the stamped FM version Follow root VERSION
packages/experimental/kumo-fm/setup.py Extension / bdist_wheel Use Python 3.11 limited API and platform compiler options Keep cp311-abi3 compatibility
packages/experimental/kumo-fm/src/kumo/fm/__about__.py version Add the stamped version module Read build metadata without runtime imports
packages/experimental/kumo-fm/src/kumo/fm/__init__.py Exports Expose version Make the FM release version inspectable
packages/experimental/kumo-fm/src/kumo/fm/_native_json.cpp Writer.temporal Support Windows date conversion through Gregorian eras Handle pre-1970 and later dates portably
packages/experimental/kumo-fm/tests/test_batch.py Scalar encoder case Cover nulls, Unicode, negative epochs and sliced tables Test the stable-ABI encoder's wire behavior
packages/kumo-engine/README.md Installation Describe FM as part of the base package Expose the default install entry point
packages/kumo-engine/pyproject.toml uv.sources Resolve FM from the workspace without an FM extra FM is required by the base engine package
packages/kumo-engine/setup.py install_requires Require kumo-fm in the base package Flatten FM and PyTorch runtime dependencies into the default merged wheel
packages/kumo-engine/scripts/build_wheel.sh Component loop Build FM and its PyTorch prerequisite explicitly Other experimental packages remain excluded; retain #413's PyTorch entry
packages/kumo-engine/scripts/verify_installed_wheel.py MODULES Audit FM, its encoder and PyTorch origins Reject missing or checkout imports
packages/kumo-engine/scripts/verify_platform_wheel.py verify_wheel Require and validate the FM native encoder Check ELF architecture and Windows DLL closure
scripts/stamp_version.py SITES Stamp FM from VERSION Keep release versions synchronized
test/scripts/test_engine_pr_workflow.py Aggregate policy tests Reject failed, skipped or absent FM results Require actual candidate validation
test/scripts/test_engine_wheel.py Build / merge cases Check explicit components, default FM dependency flattening and ABI rejection; use pathlib fixtures Validate the new component without service filesystem dependencies
test/scripts/test_platform_wheel.py Native payload cases Cover missing FM encoder, wrong ELF and versioned Python DLLs Prevent invalid platform artifacts
test/scripts/test_shared_version.py Version consumers Include FM in stamping checks Detect version drift
tests/public_setup/Dockerfile Full native image Install FM and PyTorch from source and check offline imports Satisfy the engine's default FM dependency in no-deps CI installs
tests/public_setup/Dockerfile.dockerignore Build context Include FM and PyTorch source and build files Build their packages inside the native test image
test/scripts/public_tests/test_runner.py Docker context regression Verify FM build/native source and PyTorch source reach Docker Prevent metadata-only contexts from breaking native setup
skills/kumo-custom-populations/references/populations.md Generated reference Refresh from agent-skills source Fix the stale published-copy CI failure
skills/kumoai-reference/references/kumo_finetuning_sdk.md Generated API reference Refresh exported API names Match the maintained skill source
skills/kumoai-reference/references/task_journeys.md Generated task examples Refresh the public generation-plan example Match the maintained skill source
skills/kumo-data-science/SKILL.md Generated build marker Regenerate the package build stamp Record the regenerated skills' source revision

@am-porter
am-porter force-pushed the codex/fm-release-packaging branch from 518cb3e to b3f490b Compare November 23, 2026 22:20
@am-porter
am-porter force-pushed the codex/fm-loader-migration branch from ddc7c1a to 19e513f Compare November 23, 2026 22:20
@am-porter
am-porter had a problem deploying to gha-kumo-workflow-tests November 23, 2026 22:20 — with GitHub Actions Error
@am-porter
am-porter had a problem deploying to gha-kumo-workflow-tests November 23, 2026 22:20 — with GitHub Actions Failure
@am-porter
am-porter force-pushed the codex/fm-release-packaging branch from b3f490b to 8a7a431 Compare November 24, 2026 01:09
@am-porter
am-porter had a problem deploying to gha-kumo-workflow-tests November 24, 2026 01:09 — with GitHub Actions Failure
@am-porter
am-porter force-pushed the codex/fm-release-packaging branch from 8a7a431 to 88a3c64 Compare November 24, 2026 01:13
@am-porter
am-porter had a problem deploying to gha-kumo-workflow-tests November 24, 2026 01:13 — with GitHub Actions Failure
@am-porter
am-porter force-pushed the codex/fm-release-packaging branch from 88a3c64 to 7aa95bd Compare November 24, 2026 01:58
@am-porter
am-porter had a problem deploying to gha-kumo-workflow-tests November 24, 2026 01:58 — with GitHub Actions Failure
@am-porter
am-porter force-pushed the codex/fm-loader-migration branch from 54f1bbd to 960cc4c Compare November 24, 2026 17:06
@am-porter
am-porter force-pushed the codex/fm-release-packaging branch from 7aa95bd to e89bcc4 Compare November 24, 2026 17:06
@am-porter
am-porter had a problem deploying to gha-kumo-workflow-tests November 24, 2026 17:06 — with GitHub Actions Error
@am-porter
am-porter had a problem deploying to gha-kumo-workflow-tests November 24, 2026 17:06 — with GitHub Actions Failure
@am-porter
am-porter force-pushed the codex/fm-release-packaging branch from e89bcc4 to ae14502 Compare November 24, 2026 17:33
@am-porter
am-porter temporarily deployed to gha-kumo-workflow-tests November 24, 2026 17:33 — with GitHub Actions Inactive
@am-porter

Copy link
Copy Markdown
Contributor Author

working on this now to drop the brackets and put in core release

@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.

The updated packaging follows #413 and now preserves both extras/jobs, the regenerated lock, and the FM license-wheel build. The remaining current-head flake8 failure is concrete: test/scripts/test_engine_wheel.py:853:26 E128 (run 45449857663). Please fix that indentation.

Keep this draft behind #391’s correctness fixes and rebase the resulting stack before the final installed-wheel qualification. The other red test job is generated skill-copy drift, shared with #448/#364; it is separate from the FM packaging behavior and is not a GCP credential failure.

@am-porter
am-porter temporarily deployed to gha-kumo-workflow-tests November 24, 2026 21:47 — with GitHub Actions Inactive
@am-porter
am-porter temporarily deployed to gha-kumo-workflow-tests November 24, 2026 21:53 — with GitHub Actions Inactive
@am-porter

Copy link
Copy Markdown
Contributor Author

/nvskills-ci

This branch was previously deployed

1 inactive deployment
gha-kumo-workflow-tests — e65655ab Deployed Nov 24, 2026 by am-porter via import #3220
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