Batch team messages across Tank Royale - #276
Draft
flemming-n-larsen wants to merge 11 commits into
Draft
flemming-n-larsen wants to merge 11 commits into
flemming-n-larsen wants to merge 11 commits into
Conversation
Adds TeamMessageBatch APIs (Java, .NET, Python, TypeScript), batch protocol version 1, and server-side count and byte limits for team messages (CH-047). Review fixes: - .NET EventQueue sorts stably so same-turn team messages keep their arrival order (TR-API-EVT-010). - All four event queues drop team messages older than MAX_EVENT_AGE when a newer event is added, bounding undispatched messages (TR-API-EVT-011). - Server checks team-message receivers against the game-start roster, so messaging a teammate that disconnected no longer closes the sender (PRO-009). - Python TeamMessageBatch accepts one-shot iterables such as generators. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Objective
Add ordered batches of logical team-message payloads to the existing Tank Royale team-message packet and event, using Java as the semantic reference for the Java, .NET, Python, and TypeScript Bot APIs. This is a plan-less change. If merged, it would bind the batching and message-size/count behavior recorded in CAP-006.
Candidate contract
teamMessagesarray per turn.These are draft trial limits. The stress acceptance gate has not passed, so they are not accepted or published policy.
Verification evidence
clue validatepasses../gradlew clean buildcurrently fails at:runner:testbecauseTestPurposeArchitectureTestflags two existing tests inbooter/.../ProcessLauncherTest.ktand one Kotest spec inserver/.../TeamMessageRawClientTest.ktas missing recognized purpose tags. It did not report the new 64-entry tests. .NET (299) and TypeScript (322) tests passed in that build.State
Draft. The 128-entry 30 TPS zero-loss, zero-skip gate failed, and the 64-entry result is limited to a fast local host with single-digit-millisecond minimum margin. Keep the candidate unpublished pending a run on representative slower hardware or an agreed calibrated CPU limit. No release or integration-branch push is requested.