Skip to content

docs: align existing docs/ pages with the ASAPv1 wire format#66

Merged
GordonYuanyc merged 1 commit into
mainfrom
docs/asapv1-doc-alignment
Jul 19, 2026
Merged

docs: align existing docs/ pages with the ASAPv1 wire format#66
GordonYuanyc merged 1 commit into
mainfrom
docs/asapv1-doc-alignment

Conversation

@GordonYuanyc

Copy link
Copy Markdown
Collaborator

What

Aligns the pre-existing docs/ pages with the ASAPv1 wire format introduced in #65 — the pages that described the old serialization framing (or had it backwards).

This is intentionally split out of #65 so that PR stays focused on the wire format itself (implementation + the asapv1_wire_format.md spec + golden vectors), and the "touch a bunch of unrelated existing doc pages" churn is reviewed separately.

Changes

  • docs/message_pack_format.md — full rewrite. It was inverted: it called portable/ "the cross-language wire format shared with Go" and native/ "internal, Go never reads it." That is backwards now — the ASAPv1 (native / per-sketch wire.rs) path is what Go mirrors, and portable/ is deprecated. Now describes the shared envelope.rs framing, per-sketch wire.rs, HashProfile-derived metadata, and points to asapv1_wire_format.md as the spec.
  • docs/library_map.md<sketch>.rs + <sketch>/wire.rs split; message_pack_format description (add envelope.rs, mark portable/native deprecated).
  • docs/api/api_countmin.mdserialize_to_bytes only for wire-eligible configs (i64/f64, FastPath/RegularPath, H: HashProfile); default i32 must be converted; kind 0x02 0x00; rows/cols are metadata.
  • docs/api/api_hyperloglog.md — serialize methods bounded on HllWireVariant + HashProfile, produce the ASAPv1 envelope.
  • docs/index.md, docs/project_overview.md, docs/features.md — corrected the "portable variants shared with sketchlib-go" framing; link the spec.

Dependency

Stacked on #65 (base = feat/asapv1-wire-envelope) — these docs describe code that #65 introduces. Merge after #65. (docs/asapv1_wire_format.md itself — the design spec — stays in #65.)

🤖 Generated with Claude Code

…ss-language framing)

Rewrite message_pack_format.md to describe the shared envelope.rs framing,
per-sketch <sketch>/wire.rs serialization, and HashProfile-derived metadata,
and to mark portable/native as deprecated. Point every wire-touching doc at
docs/asapv1_wire_format.md as the single source of truth. Note the
serialize helpers are bounded on wire-eligible configs (HLL: HllWireVariant
+ HashProfile; CMS: CmsWireCounter/CmsWireMode + HashProfile).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@GordonYuanyc
GordonYuanyc force-pushed the docs/asapv1-doc-alignment branch from 1e8de0b to 4d34d46 Compare July 19, 2026 04:27
@GordonYuanyc
GordonYuanyc changed the base branch from feat/asapv1-wire-envelope to main July 19, 2026 04:29
@GordonYuanyc
GordonYuanyc merged commit 386be6b into main Jul 19, 2026
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