Chronicle Wire test backlog, cross-module regression coverage, and ops/docs scaffold — with tuned JaCoCo gates #1236
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.



This change introduces a Wire-focused test backlog (
TESTS_TODO.md), lands a first wave of high-value tests that de-risk cross-module behaviours (Queue/Network/Bytes), and adds an ops/docs scaffold (requirements, ICD, system architecture, decision log, runbooks). It also aligns the build with realistic JaCoCo thresholds (line 0.72, branch 0.66) and keepsverifyas the driving goal under CI profiles.Why
What changed (highlights)
New planning & thresholds
TESTS_TODO.md: curated Wire Test Backlog (W-T1…W-T18 + Bytes batches B-T1…B-T6) with context, proposed tests, and owners.sonarprofile gates set to line0.72/ branch0.66.Tests added / extended (selected)
Document lifecycle & rollback
DocumentContextLifecycleTest.rollbackKeepsDocumentAvailableForNextReadWire type auto-detection
ReadAnyWireDetectionTest(encodes + detects Text/Binary)Method writer/reader semantics
MethodWriterBytesTest:reusedBytesRemainStableAcrossDispatchesproducerMutationDuringCallbackDoesNotCorruptPayloadMethodWriterHistoryTest: verifiesMessageHistoryinterception is emitted first in TextWire documentsElastic buffers & capacity
ElasticByteBufferTest.directElasticBufferResizesWhenCapacityIsExceededElasticBytesCapacityTest(heap/direct; cursor invariants preserved through growth)QueryWire edge cases
QueryWireTest: percent-encoded tokens, NUL bytes & dangling keys, and TextWire round-trip via formatted outputReference counting across owners/threads
BytesReferenceCountingTest(heap/direct; leak warning path exercised)Historical regression guard
WireTextBugTest.textWireOnDirectBytesSurvivesBufferMutation(immutability/isolation on direct buffers)Documentation & operations
New docs:
functional-requirements.adoc,data-requirements.adocinterface-control.adoc(ICD)system-architecture.adocoperational-requirements.adoc,ops-scenarios.adocrunbooks/wire-runtime-health.adocbackground/openhft-knowledge-pack.adocdecision-log.adocDocs index wired to the new pages.
Backwards compatibility