Skip to content

feat: enable apply-event deduplication by default - #539

Open
vahidlazio wants to merge 3 commits into
mainfrom
vahidt/enable-apply-dedup-by-default
Open

feat: enable apply-event deduplication by default#539
vahidlazio wants to merge 3 commits into
mainfrom
vahidt/enable-apply-dedup-by-default

Conversation

@vahidlazio

Copy link
Copy Markdown
Collaborator

Summary

  • Apply-event dedup is now on by default across all WASM-based providers (JS, Java, Go, Python)
  • Previously experimental and opt-in, dedup reduces redundant assignment logs by collapsing repeated identical assignments within a short TTL window
  • Users can still explicitly disable it per-provider
  • Go breaking change: EnableApplyDedup renamed to DisableApplyDedup (Go-idiomatic for default-on booleans, consistent with DisableExposureCollection)

Provider changes

Provider Change
JS Default enableApplyDedup from false to true
Java Builder default enableApplyDedup from false to true; constructor chain defaults updated
Go ProviderConfig.EnableApplyDedupDisableApplyDedup (inverted semantics); benchmark flag updated
Python Default enable_apply_dedup from False to True across provider, local_resolver, and wasm_resolver

Test plan

  • JS tests pass (existing tests explicitly set the value, unaffected by default change)
  • Java tests pass (builder default updated, constructor chains updated)
  • Go tests pass (flag_logs_test.go already uses WithEnableApplyDedup() explicitly)
  • Python tests pass
  • Benchmark still works with new --disable-dedup flag

🤖 Generated with Claude Code

vahidlazio and others added 3 commits August 26, 2026 12:27
Apply-event dedup reduces redundant assignment logs by collapsing repeated
identical assignments within a short TTL window. Previously opt-in and
experimental, this is now on by default for JS, Java, Go, and Python
providers. Users can still disable it explicitly.

Go: EnableApplyDedup renamed to DisableApplyDedup (Go-idiomatic for
default-on booleans, consistent with DisableExposureCollection).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Use *bool so nil (not set) defaults to enabled, while explicitly
passing false disables it.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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