Skip to content

abi(packr root): mirror Limits::default bump from packr-abi#25

Merged
colinrozzi merged 1 commit into
mainfrom
bump-packr-root-limits
Jun 4, 2026
Merged

abi(packr root): mirror Limits::default bump from packr-abi#25
colinrozzi merged 1 commit into
mainfrom
bump-packr-root-limits

Conversation

@colinrozzi

Copy link
Copy Markdown
Owner

Summary

PR #23 bumped `Limits::default` in `crates/pack-abi/src/lib.rs`, but the packr root crate (`src/abi/mod.rs`) has its own duplicate `Limits` struct — and was missed. Downstream `theater::pack_bridge::decode_value` routes through `packr::decode → packr::abi::Limits::default`, so it kept seeing the pre-#23 limits and continued rejecting ~1.3MB chain-event payloads with "Sequence too large at node 2" (confirmed in prod deploy after #23 published).

Mirror the same bump here so they stay in lockstep:

Limit Before After
`max_buffer_size` 16 MB 256 MB
`max_node_count` 1 M 10 M
`max_payload_size` 8 MB 128 MB
`max_sequence_len` 1 M 128 M

Follow-up

Long-term, the two `Limits` structs should be consolidated — having packr re-export `packr_abi::Limits` would prevent this exact class of drift. Out of scope here; this is the operational unblock.

🤖 Generated with Claude Code

PR #23 bumped Limits::default in crates/pack-abi/src/lib.rs but the
packr root crate (src/abi/mod.rs) has its own duplicate Limits struct
and was missed. The downstream theater::pack_bridge::decode_value goes
through packr::decode → packr::abi::Limits::default, so it kept seeing
the pre-#23 limits and continued to reject ~1.3MB chain-event payloads
with "Sequence too large at node 2".

Mirror the same bump here so they stay in lockstep:

- max_buffer_size:    16 MB → 256 MB
- max_node_count:      1 M  →  10 M
- max_payload_size:    8 MB → 128 MB
- max_sequence_len:    1 M  → 128 M

Follow-up: the two Limits structs should be consolidated — having packr
re-export packr_abi::Limits would prevent this exact class of drift.
Out of scope here.
@colinrozzi colinrozzi enabled auto-merge (squash) June 4, 2026 03:24
@colinrozzi colinrozzi merged commit 017f88f into main Jun 4, 2026
2 checks passed
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