Skip to content

Route reconstructed pages to C++ CUDA placement - #25

Closed
FujitsuPolycom wants to merge 1 commit into
mainfrom
codex/page-delta-native-placement
Closed

Route reconstructed pages to C++ CUDA placement#25
FujitsuPolycom wants to merge 1 commit into
mainfrom
codex/page-delta-native-placement

Conversation

@FujitsuPolycom

Copy link
Copy Markdown
Owner

Resulting behavior

Flat opaque-page snapshots use SparkCache's direct-file C++/CUDA restore function. Authenticated page-delta graphs reconstruct their complete encoded page snapshot and pass those bytes to the separate in-memory C++/CUDA page-placement function.

The connector no longer sends an �ncoded_pages argument to the direct-file function, whose contract requires manifest lookup and cache-root inputs. Page-delta verification failures still reject the restore and recompute the request.

Compatibility

SparkCache wire values, digest salts, 256-token geometry, stored object schemas, and cache identity are unchanged. DeepSeek-V4 and GLM-5.2 source receipts are rebound because connector source and regression coverage changed.

Validation

  • Live TP4 reproduction: selected 11,520-token sparkcache-page-delta-manifest/v1 root rejected with �xecute_native_hybrid_restore() got an unexpected keyword argument 'encoded_pages' and safely recomputed
  • GPU-free dispatch regression failed before the fix and passes after it
  • 739 SparkCache tests passed, 7 skipped
  • 108 deployment tests passed, 1 skipped
  • Ruff and diff checks passed

Status: implemented; live page-delta C++/CUDA restore qualification remains pending the rebuilt-image replay.

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.
@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/page-delta-native-placement 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