Skip to content

Replace partial terminal HMA pages in page deltas - #28

Closed
FujitsuPolycom wants to merge 1 commit into
codex/page-delta-native-placementfrom
codex/glm-page-delta-boundary
Closed

Replace partial terminal HMA pages in page deltas#28
FujitsuPolycom wants to merge 1 commit into
codex/page-delta-native-placementfrom
codex/glm-page-delta-boundary

Conversation

@FujitsuPolycom

Copy link
Copy Markdown
Owner

Resulting behavior

Page-semantic HMA extensions accept an authenticated cache boundary that falls inside a larger group page. The codec compares complete opaque pages and carries a changed boundary-intersecting page, plus every following page, as immutable replacement data. Earlier byte-identical pages remain shared with the verified base snapshot.

The connector therefore retains the longest all-rank publication base instead of discarding a valid 7,168-token base when a 2,304-token recurrent page crosses that boundary.

Correctness

Restore authenticates the embedded base manifest, delta objects, layout, block counts, semantic token boundaries, and reconstructed result digest before placement. Invalid metadata or bytes still produce a cache miss and recomputation.

The GPU-free regression exercises SparkContextCacheConnector with the real ManifestStore: it stores and restores a 7,168-token GLM-shaped base, publishes a 12,032-token page delta, verifies that the encoded page payload remains smaller than a full snapshot, and restores full-attention and recurrent state byte-for-byte.

Compatibility

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

This draft is stacked on #25 at commit 5d571018de5b63a9a90e5c11e6d6e86bbff4a957.

Validation

  • python -m pytest sparkcache -q — 740 passed, 7 skipped
  • python -m pytest deploy -q — 108 passed, 1 skipped
  • python -m ruff check . — 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.

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

Validation: python -m pytest sparkcache -q (740 passed, 7 skipped); python -m pytest deploy -q (108 passed, 1 skipped); python -m ruff check .
@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/glm-page-delta-boundary 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