feat(frackture): introduce micro-tier tiny payload path and dual-layout serialization - #25
Draft
cto-new[bot] wants to merge 1 commit into
Draft
feat(frackture): introduce micro-tier tiny payload path and dual-layout serialization#25cto-new[bot] wants to merge 1 commit into
cto-new[bot] wants to merge 1 commit into
Conversation
…ialization Introduce a dedicated micro payload path for inputs under 100 bytes that yields smaller serialized payloads by skipping the full entropy channel (or downsampling to 8 features) and applying heavier symbolic weighting. Extend FrackturePayload to carry a micro layout flag and support two binary layouts in to_bytes/from_bytes and serialize_frackture_payload, while preserving to_legacy_dict compatibility. Update encoding/decoding, reconstruction weighting (micro: 80/20; tiny: 70/30) and preprocessing to auto-select micro for very small inputs. Add regression tests, new tiny-focused cases, and a benchmark guard enforcing payload_size_range.avg < 200. This introduces a breaking change in header layout; legacy dict-based usage remains supported, but binary header must be interpreted accordingly.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Introduce a micro-tier payload path for ultra-tiny inputs (<100B) and a dual-layout
serialization format that preserves compatibility with legacy dict payloads.
Details
(1-byte header, 24–32B symbolic, 16–24B entropy) for tiny inputs.
to_bytes/from_bytes and serialize_frackture_payload, while keeping to_legacy_dict
compatibility.
weighting (70/30).
unchanged.
cases.
Impact and migration notes
two binary payload layouts. Backwards-compatible dict payloads are preserved, but
binary consumers must adapt to the new header interpretation.