Skip to content

Reject PIVCO arrays written with unsupported format features - #12638

Open
joseph-isaacs wants to merge 3 commits into
ji/pivco-external-cratefrom
claude/project-thread-hmjjtq
Open

joseph-isaacs wants to merge 3 commits into
ji/pivco-external-cratefrom
claude/project-thread-hmjjtq

Conversation

@joseph-isaacs

@joseph-isaacs joseph-isaacs commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

Protobuf silently drops fields it does not know, so a reader that ignored pivco format features would misread data written by a newer encoder. PivcoMetadata gains an optional features field (tag 6, defaulting to 0 so existing files stay readable), and the plugin checks it with FormatFeatures::from_bits before reading any buffer, so unsupported features fail cleanly. The pivco pin moves to the head of spiraldb/pivco#7, which adds the wire module; it moves again to the merged develop commit once spiraldb/pivco#6 and #7 land.

Stacked on #12528


Generated by Claude Code

PivcoMetadata gains a `features` field (tag 6) holding pivco's
FormatFeatures bits. Readers check it before touching any buffer, so a
later layout change (new header stride, payload section or flat layout)
fails cleanly on this reader instead of being misdecoded. Protobuf would
otherwise drop an unknown field silently, which is why the field has to
exist and be validated before vortex.pivco ships.

Features are carried through PivcoData so serialize and slice preserve
them. Today they are always zero, which proto3 omits, so the metadata
bytes are unchanged; the golden metadata test pins that.

Also bumps pivco to the commit that adds FormatFeatures and the format
spec, and applies the pinned nightly's import ordering to the touched
files.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UeniBAfUf7he69W7sirNW2
Signed-off-by: Joe Isaacs <joe.isaacs@live.co.uk>
@joseph-isaacs joseph-isaacs added the changelog/feature A new feature label Dec 3, 2026 — with Claude
@joseph-isaacs joseph-isaacs self-assigned this Dec 3, 2026
@vortex-roborev-bot

vortex-roborev-bot Bot commented Dec 3, 2026 •

Copy link
Copy Markdown

roborev: Combined Review (9b42895)

Verdict: No issues found.


Reviewers: codex | Synthesis: codex, 0s | Total: 28s

joseph-isaacs and others added 2 commits December 3, 2026 10:29
Moves the pivco pin from e6ca7ee to b4843ef, the head of spiraldb/pivco#7,
which adds the wire module and the AVX2 raw-bits value rebuild. The
FormatFeatures API is unchanged, so vortex-pivco needs no code change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UeniBAgq1Ra3jRpCq2usbw
Signed-off-by: Joe Isaacs <joe.isaacs@live.co.uk>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UeniBAgq1Ra3jRpCq2usbw
Signed-off-by: Joe Isaacs <joe.isaacs@live.co.uk>
@joseph-isaacs
joseph-isaacs force-pushed the claude/project-thread-hmjjtq branch from da50ba5 to 9b42895 Compare December 3, 2026 10:29

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog/feature A new feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant