Skip to content

test(monitor): live multi-edge coupling over gRPC (differentiated sample_p) - #370

Merged
zzylol merged 1 commit into
mainfrom
test/live-multiedge-coupling
Jun 11, 2026
Merged

zzylol merged 1 commit into
mainfrom
test/live-multiedge-coupling

Conversation

@zzylol

@zzylol zzylol commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

Two edges open real gRPC streams to the MonitorService, report SKEWED rates (e1 hot 100k/win, e2 quiet 1k/win); the coordinator ships back differentiated SlackGrant.sample_p over the wire:

hot(e1,rate=100k) sample_p=0.00398 | quiet(e2,rate=1k) sample_p=0.2857

Hot edge sampled ~72x harder, each at its ε-floor 1/(1+ε²·rate). The gRPC analogue of the coordinator unit test — proving the full compute→grant→wire path for the dynamic sampling coupling, live.

🤖 Generated with Claude Code

…ple_p)

Adds two_edges_get_differentiated_sample_p_over_grpc: two edges open real gRPC
streams to the MonitorService, report SKEWED rates (e1 hot 100k/win, e2 quiet
1k/win), and the coordinator ships back differentiated SlackGrant.sample_p over
the wire — hot 0.00398 vs quiet 0.2857 (each at its ε-floor 1/(1+ε²·rate)), the
coupling rule driving the allocation. The gRPC analogue of the coordinator unit
test, proving the full compute→grant→wire path for the dynamic sampling coupling.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@zzylol
zzylol merged commit 845c56b into main Jun 11, 2026
@zzylol
zzylol deleted the test/live-multiedge-coupling branch June 11, 2026 21:01
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