Skip to content

Conversation

@nicklasl
Copy link
Member

Summary

  • Remove unused proto messages and fields from resolver protos
  • Delete 7 unused proto files entirely
  • Strip Segment, Flag, Variant, Rule, Client, ClientCredential to only fields actually used by the resolver

Bundle Size Impact

Metric Before After Change
WASM size 452K 438K -14K (-3.1%)
Proto lines 3,644 90 -3,554

The size reduction is modest because:

  • Proto field definitions compile to small accessor code
  • The resolver already only compiled 6 proto files directly
  • Most bundle size comes from the resolver logic, not proto structs

Deleted Files

  • confidence/flags/admin/v1/api.proto
  • confidence/flags/admin/v1/events/events.proto
  • confidence/flags/admin/v1/events/events_internal.proto
  • confidence/iam/v1/api.proto
  • confidence/iam/v1/auth_api.proto
  • confidence/iam/v1/events/events.proto
  • google/type/decimal.proto

Test plan

  • cargo build passes
  • cargo test --lib passes (100 tests)
  • docker build . passes (all providers)

🤖 Generated with Claude Code

Strip proto definitions to only fields used by the resolver.

Co-Authored-By: Claude Opus 4.5 <[email protected]>
@nicklasl nicklasl marked this pull request as ready for review January 29, 2026 12:40
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