feat: add remote control plane and whitelist reads
Build web service image / build (push) Successful in 1m53s

This commit is contained in:
2026-09-12 09:46:05 +08:00
parent c86ba9c4d7
commit 13c31fc902
53 changed files with 9878 additions and 43 deletions
@@ -21,6 +21,25 @@ public sealed class EventHubTests
Assert.True(await subscription.Channel.Reader.WaitToReadAsync());
}
[Fact]
public void ReplayNeverCrossesPrincipalBoundary()
{
var hub = new EventHub();
hub.Publish("alice", new AgentEvent("alice-1", "account-a", "chat-a", "message", "summary", DateTimeOffset.UtcNow));
hub.Publish("bob", new AgentEvent("bob-1", "account-b", "chat-b", "message", "summary", DateTimeOffset.UtcNow));
var alice = hub.Subscribe("alice", "alice-1");
var bob = hub.Subscribe("bob", "bob-1");
Assert.Empty(alice.Replay);
Assert.Empty(bob.Replay);
Assert.False(alice.Gap);
Assert.False(bob.Gap);
var aliceAfterBob = hub.Subscribe("alice", "bob-1");
Assert.Empty(aliceAfterBob.Replay);
Assert.True(aliceAfterBob.Gap);
}
[Fact]
public void SlowConsumerGetsAnExplicitGapInsteadOfSilentDrop()
{