Skip to content

Introduce hint-device#916

Open
JamesPiechota wants to merge 7 commits into
edgefrom
fix/bundler-corruption-20260518
Open

Introduce hint-device#916
JamesPiechota wants to merge 7 commits into
edgefrom
fix/bundler-corruption-20260518

Conversation

@JamesPiechota
Copy link
Copy Markdown
Collaborator

@JamesPiechota JamesPiechota commented May 19, 2026

Fixes bundler corruption that occurs when a user posts a nested dataitem containining bundle=false. This change introduce a hint-device request parameter that allows the structured codec to delegate to the target codec the question of whether to bundle a given message or not.

@JamesPiechota JamesPiechota force-pushed the fix/bundler-corruption-20260518 branch 5 times, most recently from 6194048 to b314aa5 Compare May 20, 2026 20:10
@JamesPiechota JamesPiechota force-pushed the fix/bundler-corruption-20260518 branch 2 times, most recently from fd5a398 to 3201c25 Compare May 20, 2026 20:57
JamesPiechota and others added 2 commits May 20, 2026 16:58
When converting from structured to a target codec, the target codec
is provided as a hint to dev_structured and informs how dev_structured
loads or unloads children as it recurses through dev_structured:from.

This prevents bugs where a message could end up in a load state that
does not match its commitments.

This change also adds similar functionality to verify/id/commit.
Add dev_message_bundle_test_vectors: a battery exercising the
`bundle'/`hint-device' machinery over a three-level signed message
tree. For every 3x3x3 permutation of per-level bundle flags (true /
false / none) it checks verify/3, id/3 and convert/4 -- the per-node
path always verifies, a forced request bundle is harmless, and a
converted tree's load state matches what was requested.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@JamesPiechota JamesPiechota force-pushed the fix/bundler-corruption-20260518 branch from 3201c25 to 47c7c49 Compare May 20, 2026 21:01
@JamesPiechota JamesPiechota changed the title Fix/bundler corruption 20260518 Introduce hint-device May 22, 2026
@JamesPiechota JamesPiechota force-pushed the fix/bundler-corruption-20260518 branch from f419dec to 751e148 Compare May 22, 2026 18:03
@JamesPiechota JamesPiechota marked this pull request as ready for review May 22, 2026 18:03
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.

2 participants