Repository navigation
Recover interrupted Index metadata during ingest resume - #504
Conversation
|
Note
|
Change mapObserved failure: resume after EdgesMap encounters EOF on an interrupted
|
|
Preserved the validation guard: readable metadata still must match the Encode build ID. Only metadata decode failures are recoverable, and only with valid Encode state and no |
Native Windows CPU training and model loading now default to CPU while preserving explicit accelerators and other platforms. Snapshot checksums and restoration use portable I/O, retain literal local paths, and persist success markers beyond MAX_PATH. The explorer gates Unix raw controls; the gateway retains TCP and rejects unsupported Unix-socket mode clearly. Inference preserves Windows drive, UNC and verbatim input/output paths. Training-table manifests serialize canonical forward-slash part paths on every platform while retaining native filesystem operations. Windows supervisor checks now identify a replaced publication marker by volume/file ID even when its size and timestamp are unchanged. Stack: [latest-main interrupted-index resume prerequisite #504](#504) → **runtime #198** → qualification #401 → publication #402. Base: dm-resume-partial-index. Runtime head e7d625c merges #504, including its decode-only recovery refinement ba00327, and latest main dc9edd4; this PR retains 16 runtime files. Publication is handled separately. [Final shipping-wheel rehearsal 45264859882](https://github.com/NVIDIA/kumo-engine/actions/runs/45264859882), publication bcb7f9c, passed 27 jobs with attachment/Kitmaker as two expected manual-run skips. A single Python 3.11 fixture-download S3 403 cleared on its authorized job retry (attempt 2). All four Python 3.11–3.14 native Windows CPU/Faiss binary/static-link fresh-process reloads passed with automatic CPU selection, zero prediction difference and matching decisions; six negative cases per Python passed. All wheel builds, twelve synthetic platform smokes, Linux GPU qualification and dependency resolution passed. [Full native Windows Rust workspace qualification](https://github.com/NVIDIA/kumo-engine/actions/runs/45264764576/job/138008643638) passed at qualification 316f3eb: 2,190 passed, zero failed and 18 ignored, including pybind and the manifest regressions. The [full 32-case desktop matrix 45259042320](https://github.com/NVIDIA/kumo-engine/actions/runs/45259042320) passed at preceding publication f68476c; the sole later runtime change canonicalizes Windows manifest separators and is covered by the fresh native/full-workspace proof above. Later publication commits only adjust documentation. The manifest correction passed 20 focused Rust cases: the real multipart JSON/native-file unit, all 18 ttgen_e2e cases, and the independent manifest-schema integration. Both preceding Windows workspace runs reached this same manifest contract assertion after all 114 pybind tests passed with the corrected Python DLL environment. Local checks passed: four restoration/allocation cases, 45 constructor/loading cases, three explorer cases, two gateway cases, 63 inference cases including the original Float64 infer→ingest integration, 15 ingest I/O cases and nine supervisor cases, including same-size/same-mtime marker replacement. Changed Python flake8/isort and whitespace checks passed; scoped Rust formatting adds no deviations. The literal POSIX :: regression failed before its fix and passes afterward. Native Windows execution confirmed the inference fix before exposing the invalid colon-name fixture now restricted to Unix. After latest-main integration, the focused 49 Python cases and nine supervisor cases passed again, together with changed-Python flake8/isort and whitespace checks. The Linux-only shared-memory probe no longer raises Windows AttributeError. Generic LoaderKwargs defaults remain CPU-sized with existing CI/synchronous overrides; Engine DiskGraph keeps its separate zero-worker policy. Generic Windows spawn workers, native CUDA and restricted accounts remain unqualified. Nonblocking residuals: AgentSkills CI reproduces three stale published references on clean main c79405b, outside this PR; the independent [reference sync #492](#492) addresses that baseline drift and remains separate for review. A read-only scan also found Unix-only disk-full error classification (28/122); Windows disk-full errors may use the generic ingest error path and need a separate focused follow-up if requested. [File-by-file change map](#198 (comment)).
Qualify each finished native Windows wheel on Python 3.11–3.14 before release attachment, including CPU Faiss retrieval and fresh-process model/snapshot restoration. Stack: runtime #198 → **qualification #401** → publication #402. Publication remains disabled here. The automatic gate now calls the existing desktop reload workflow instead of duplicating fixture download, installation and harness code. Manual dispatch covers all 32 desktop rows; the release call selects four native Windows rows from the same target list. Windows trains and reloads with `accelerator="auto"` while recording actual CPU work and Faiss searches. Windows Rust coverage moves to the PR-time `diskgraph-rust` matrix with `cargo test --locked --workspace`, replacing filtered release-build tests. Harness tests now run in lightweight OSS readiness; timeout termination remains bounded, and scratch deletion runs after confirmed worker exit. Failed termination preserves live-worker storage and the original error. The separate cleanup checker and copied loader-environment triggers were removed. Validation: 42 focused harness/workflow tests passed after the cleanup exception-path fix; the earlier full OSS-readiness selection passed 220 tests, 3 skipped; Python flake8/isort, 36 documentation tests and 322-document reference checks passed. Actionlint/ShellCheck passed for changed workflow blocks; `testing.yml` retains one unchanged baseline SC2086 diagnostic. [Full desktop rehearsal 45259042320](https://github.com/NVIDIA/kumo-engine/actions/runs/45259042320) passed all 32 reload rows against wheel run `45255397978` at `f68476c7fdfcd34a449e7e4361f93d8b6b3daee4`: Linux CPU/CUDA, WSL CPU/CUDA, macOS 15/26 CPU and native Windows CPU across Python 3.11–3.14. The four native Windows artifact summaries independently confirm auto acceleration, actual CPU training/prediction, CPU Faiss searches in both processes, no consumer training and zero prediction difference. Prior-candidate shipping-runtime [rehearsal 45255397978](https://github.com/NVIDIA/kumo-engine/actions/runs/45255397978) passed at `f68476c7f`: 27 jobs succeeded and the two publication jobs were expected manual-run skips. All four native Python 3.11–3.14 artifact summaries confirm the exact Windows wheel SHA-256 `ea6a8082e0e5dfd80a0687721f80069f3e8444ee0a80503cdb6afc06562c3906`, auto acceleration selecting actual CPU work, CPU Faiss searches in both processes and zero prediction difference. Consumer processes perform no training, and all six negative checks pass. Current qualification head `316f3eba6` integrates latest main `dc9` and the interrupted-ingest resume prerequisite [#504](#504), including its metadata/encoding mismatch guard (`ba00327cf`), along with the Windows marker file-identity fix. All 42 focused harness/workflow tests pass after the merge. The Windows manifest path-separator fix (`e7d625c70`, 20 focused Rust tests passed locally) is now included. The [complete Windows Rust workspace](https://github.com/NVIDIA/kumo-engine/actions/runs/45264764576/job/138008643638) passed on this head: 2,190 tests passed, 18 ignored, zero failed, including all 114 PyO3 tests, 18 train-table end-to-end tests and 149 integration tests. The [final Windows wheel rehearsal](https://github.com/NVIDIA/kumo-engine/actions/runs/45264859882) passed at shipping-runtime candidate `bcb7f9caa`, including all four native Python 3.11–3.14 reloads. Their summaries bind Windows wheel SHA-256 `59e60bf302675ecb955c9ee872a4d557ab8a750a3c00a4789028870ea9fa5bbb` and confirm auto selecting actual CPU, CPU Faiss work in both processes, no consumer training, zero prediction difference and all six negative cases. One pre-install Python 3.11 fixture-download 403 cleared on a single retry. Later publication-head changes affect documentation only. Unix path serialization is unchanged, so the completed prior-candidate full-desktop run retains its non-Windows scope. Native CUDA and restricted-account execution remain unqualified. The unrelated clean-main Agent Skills reference drift is fixed separately in [#492](#492); its Agent Skills CI and published-copy check pass. That PR is not merged into this stack. The latest CI-only fix pins PyO3 to the selected interpreter and puts its base DLL directory first on Windows PATH before the complete Rust workspace tests. That CI setup change does not affect shipping runtime. The full-desktop proof uses the prior `f68476c7f` candidate; the final Windows wheel rehearsal includes the subsequent Windows-only manifest fix. [File-by-file change map](#401 (comment)).
Enable native Windows x86-64 CPU wheels in release attachments and Kitmaker submission behind exact-candidate qualification and protected approval gates. Bare `pip install kumo-engine` includes CPU Faiss; runtime #198 defaults native Windows training and loading to CPU. Use WSL2 for NVIDIA GPUs. Stack: runtime #198 → qualification #401 → **publication #402**. Base: `dm-windows-native-qualification`. Both engine and GloVe callers use the protected Portal environment token without forwarding a repository secret. Installation guidance records VC++ runtime and long-path prerequisites and separates dependency OS minimums from Server 2022 builds / Server 2025 administrative tests. Current integrated local validation: 133 focused packaging/metadata/workflow/auditor/reload-helper tests, changed Python flake8/isort and publication-scope whitespace checks passed. Earlier publication validation also passed actionlint with ShellCheck and a temporary custom runner-label configuration, the 322-file documentation checker and pinned uv 0.13.7 lock validation; the lock change retained all 357 then-pinned package versions/sources. [Runtime-candidate rehearsal 45264859882](https://github.com/NVIDIA/kumo-engine/actions/runs/45264859882) at `bcb7f9caa` passed all required jobs: four builders/resolvers, twelve CPU smokes, Linux CUDA smoke and four native Windows CPU/Faiss fresh-process reloads. Release attachment and Kitmaker were the expected manual-run skips. The Python 3.11 reload needed one retry after S3 fixture access returned 403 before wheel installation; the retry passed without source or configuration changes. Audited Python 3.11–3.14 artifacts show bare CPU Faiss 1.14.3 installs, auto selecting actual CPU training/prediction, CPU Faiss searches in both static-link processes, no consumer training, zero prediction difference for both tasks, and six expected negative cases per Python. Native consumers ran on Windows Server 2025 custom runners. Windows wheel SHA-256: `59e60bf302675ecb955c9ee872a4d557ab8a750a3c00a4789028870ea9fa5bbb`. Current PR head `79250e08f` contains only documentation changes after runtime candidate `bcb7f9caa`: the public PyPI README keeps user installation information, and the developer guides keep stable workflow instructions without PR-development or rehearsal history. Runtime/package code is unchanged; README text will change future wheel METADATA and is not covered by the existing wheel artifact proof. The 376-file documentation checker and whitespace checks passed. Runtime candidate `bcb7f9caa` includes the native Windows manifest-path fix: train-table part references serialize portable `/` bundle paths. Python's bundle reader rejects native backslashes; the unchanged end-to-end contract exposed this defect in unfiltered Windows Rust CI. The real three-part Parquet regression verifies serialized paths and native file resolution. Twenty focused manifest tests passed locally, and the fresh installed-wheel qualification above passed. The [full shared desktop run 45259042320](https://github.com/NVIDIA/kumo-engine/actions/runs/45259042320) passed all 32 matrix rows (33 jobs) at `f68476c7f`, covering Python 3.11–3.14 across Linux x86-64 CPU/CUDA, Linux ARM64 CPU, WSL CPU/CUDA, macOS 15/26 CPU and native Windows CPU. The path fix preserves Unix serialized bytes, so this remains non-Windows behavior evidence; Windows requires the fresh run above. Shipping candidate `bcb7f9caa` incorporates latest main `dc9edd458` and the independent ingest-resume prerequisite [#504](#504), including its decode-only recovery refinement that preserves readable metadata identity and filesystem read-error checks, ahead of runtime #198 → qualification #401 → publication #402. No PR has been merged into main. The [final #504 hosted Linux full Rust workspace](https://github.com/NVIDIA/kumo-engine/actions/runs/45255121940/job/137975053019) passed, including the metadata identity guard and all nine resume-equivalence tests; 26 resume-related unit tests also passed locally. This candidate also includes the Windows marker identity fix from #198: volume serial number and file index detect replacement even when size and modification time are unchanged. The [unfiltered native Windows Rust workspace](https://github.com/NVIDIA/kumo-engine/actions/runs/45264764576/job/138008643638) passed at qualification head `316f3eba6`, whose Rust source matches `bcb7f9caa`: 2,190 tests passed, 18 ignored, none failed. **Unexercised external status:** User-reported Windows publication precedents in WarpK2 (`win_amd64`), ovrtx publish-pypi, MathDx and AI4M support general Kitmaker Windows capability. [Warp documentation](https://nvidia.github.io/warp/latest/user_guide/installation.html) independently confirms Windows wheel availability, but does not establish the Kitmaker route. Project 6903 configuration and acceptance of `win_amd64` have not been exercised during this work. No private-service request, release creation or package publication was performed. Native CUDA, restricted accounts and long-path policy disabled remain unqualified. [File-by-file change map](#402 (comment)). The remaining Agent Skills failure is an independent main-branch generated-reference baseline issue, addressed separately by [PR #492](#492) (three generated references; 349-test suite passed locally). That PR is not merged by this Windows stack.
Interrupted Index construction or finalization can leave empty or truncated
index_metadata.json. Resume now tolerates metadata decode failure only when valid Encode state exists and_SUCCESSis absent. Readable metadata still must match the Encode build ID; filesystem read errors remain strict. Corrupt metadata is rejected when_SUCCESSexists or Encode state is absent.Validation: all nine resume-equivalence integration tests cover four deterministic interrupted-write states; 26 focused resume-related unit tests include metadata ID mismatch, matching ID, read errors and corruption rejection. Both the original EOF and the lost mismatch rejection reproduced before their fixes. The refined-candidate hosted Linux full Rust workspace passed, including the identity guard and all nine resume-equivalence tests. All workflows at refined head
ba00327cfare complete without failures.This independent main-branch resume regression is a prerequisite for #198 → #401 → #402. Incorporating it into that stack does not merge any PR.
File-by-file change map.