Skip to content

Restore authenticated HMA page deltas through SparkCache CUDA placement - #32

Closed
FujitsuPolycom wants to merge 4 commits into
mainfrom
codex/qualified-sparkcache-runtime
Closed

Restore authenticated HMA page deltas through SparkCache CUDA placement#32
FujitsuPolycom wants to merge 4 commits into
mainfrom
codex/qualified-sparkcache-runtime

Conversation

@FujitsuPolycom

@FujitsuPolycom FujitsuPolycom commented Aug 30, 2026

Copy link
Copy Markdown
Owner

Resulting behavior

Status: implemented and qualified for the recorded GLM-5.3 TP4/DCP1 source deployment.

Authenticated hybrid-memory-allocator page deltas reconstruct a complete encoded page snapshot and send the verified bytes through SparkCache CUDA placement. A reusable prefix may end inside a larger allocator page: SparkCache retains earlier byte-identical pages and stores the boundary-intersecting page and all later pages as immutable replacements.

Page-delta descriptors are read and verified with a bounded eight-worker pool while preserving manifest order. Canonical SparkCache CUDA configuration names are used throughout deployment profiles and runtime messages. Legacy configuration names and Python imports remain compatibility interfaces.

If identity, compatibility, descriptor integrity, reconstructed-page integrity, or placement cannot be verified, SparkCache rejects the stored state and vLLM recomputes the request.

Compatibility

Cache identity values, digest salts, 256-token logical geometry, on-disk schemas, and the placement C ABI are unchanged. Cache namespace impact: none. Existing compatible entries remain readable.

Validation

  • GPU-free SparkCache suite: 748 passed, 7 skipped
  • Deployment suite: 108 passed, 1 skipped
  • Ruff: passed
  • GLM-shaped 7,168-token base extended to 12,032 tokens and restored full-attention and recurrent state byte-for-byte
  • An earlier GLM-5.3 source artifact restored a committed 131,072-token context correctly under 1, 2, 8, and 16 concurrent requests; the exact consolidated source has retained C1 evidence, while its C2/C8/C16 qualification remains outstanding
  • A 262,144-token restore remained correct but exposed the need for larger physical delta objects; that storage-layout work is intentionally excluded from this PR

This PR consolidates the implemented behavior previously presented in draft PRs #25, #26, #29, and #30. Those drafts remain open until this consolidation is reviewed.

Use the direct-file native restore function only for immutable flat snapshot objects and route reconstructed page-delta bytes to the in-memory C++/CUDA page-placement function. The two interfaces have distinct verified signatures: direct restore accepts manifest lookup and cache-root inputs; page placement accepts authenticated encoded pages and a decoded page plan. A rejected page-delta restore continues to recompute rather than serving unverified state. SparkCache wire values, digest salts, chunk geometry, and cache namespace are unchanged; deployment source receipts are rebound to the resulting source tree. Validation: 739 SparkCache tests passed with 7 skipped; 108 deployment tests passed with 1 skipped; Ruff and diff checks passed.
Expose SparkCache CUDA restore and CUDA placement names in connector configuration, environment variables, deployment profiles, CLI options, logs, and documentation. Preserve legacy native-restore keys and Python symbols as compatibility aliases; conflicting canonical and legacy values reject startup and legacy-only input warns once per process. Cache identity, digest salts, chunk geometry, and stored bytes are unchanged. Validation: 746 SparkCache tests passed with 7 skipped; 108 deployment tests passed with 1 skipped; Ruff passed.
Page-semantic extensions accept authenticated chunk boundaries that fall inside a larger HMA page. The delta reuses only byte-identical page prefixes, so a changed boundary-intersecting page and every following page are immutable replacement data.

This preserves the longest verified publication base instead of falling back to a full snapshot. Restore continues to authenticate the embedded base graph and reconstructed result before placement; invalid geometry or bytes remain a cache miss and recomputation.

Canonical SparkCache CUDA restore and placement configuration remains the only generated configuration vocabulary. Deployable SparkCache source SHA-256: bc7cae86732c869ee8b2205d48ac5be6f580ee8b77a3e4ffd4c69dcd4f1bfae5.

Cache namespace impact: none. CacheIdentity values, digest salts, chunk geometry, and page-delta wire schemas are unchanged.

Validation: python -m pytest sparkcache -q (747 passed, 7 skipped); python -m pytest deploy -q (108 passed, 1 skipped); python -m ruff check .; source-attestation tests (2 passed).
@FujitsuPolycom

Copy link
Copy Markdown
Owner Author

The resulting behavior and evidence are consolidated in retained draft stack #39#42#44. Independent heat and SSD research remains in #36. Closing this superseded draft and deleting only its remote head branch.

@FujitsuPolycom
FujitsuPolycom deleted the codex/qualified-sparkcache-runtime branch August 31, 2026 02:09
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.

1 participant