R35
What to build¶
Serialized OTLP traffic matches declared batch, attribute and payload shape.
Source and evidence¶
Repository scientific/architectural review, snapshot 86c8517, item R35.
Classification: confirmed defect; medium severity.
the reviewed implementation builds a fixed one-item request with three signal attributes; payload_bytes, attributes and batch_size from the workload are not generation inputs. The offline protobuf probe compared nominal-v1's declarations (512 bytes, ten attributes, batch size 128) with a generated trace request (421 bytes, three span attributes, one span). The precise byte count depends on encoded timestamp widths, but the structural mismatch is deterministic. Including the six resource fields still gives nine attributes, not the documented ten fixed span attributes. Reports hash and record the nominal workload while exercising a different request shape. Capacity and request overhead depend on batching and payload structure, so this prevents the claimed workload from being reproduced. Drive generation from the declared shape, or version the workload to describe the actual one-item traffic and retain measured byte distributions.
.venv/bin/python -m docs.reviews.workload_shape_probe exited 0 without network
traffic. Initial Ruff inspection found import ordering; the intentional fixture
path initialization was documented, and the subsequent Ruff check passed. All
five workload files and both JSON schema files were fully read. The matrix file
declares advanced profiles and soaks that the current runner does not implement;
the operator guide correctly identifies advanced capacity as follow-on work.
The raw JSON schema constrains structure, but time-series objects remain open and
there are no array/count ceilings. Summary curve entries require field names
without field types or closed properties. These are documentation schemas rather
than the executable validator, which adds arithmetic/classification checks and
has its own differences (for example, raw validation tolerates extra top-level
fields and does not require a checksum before writing). Neither schema alone is
proof of provenance, workload fidelity, independence or acquisition completeness.
Acceptance criteria¶
- [ ] Nominal declarations drive actual items/request and per-signal attribute counts rather than fixed one-item requests.
- [ ] Measured serialized-byte distributions are retained; unavoidable encoding-width variability is explicitly described.
- [ ] Representative/safety-bound and mixed shapes reconcile scheduled items, requests and bytes for both transports.
- [ ] Changed shape semantics version the workload identity and prevent comparison with incompatible old evidence.
- [ ] Preserve Consumer-owned meaning, payload-free evidence, disabled optional-import isolation, safe diagnostics and the non-relaxable Safety Floor.
- [ ] Run the narrowest observable contract, then applicable committed Make gates. Record every command and outcome; update specifications/compatibility evidence for changed public or wire contracts. Run native Collector verification for changed Collector assets and build for packaging changes.
Design guidance¶
Make validated workload shape an input to generation or version the declaration to the actual supported shape. Keep resource identities distinct from signal attributes and derive unit conversion/accounting from actual requests.
Keep prefactoring narrow and verifiable in this slice. Reuse established owners and structural interfaces; introduce a pattern only when it clarifies a real responsibility or variation point. Do not add consumer vocabulary or private payloads to platform code or evidence. Mocked/local results must not claim hosted, production, accelerator or release qualification.
Blocked by¶
None (can start immediately). Shared-area coordination is useful, but no other review fix is a genuine prerequisite for this slice.
Verification scope¶
Convert the described counterexample or investigation oracle into an observable test at the lowest suitable public boundary. Prefer bounded operation-count or deterministic interleaving evidence to flaky timing assertions; timing guarantees need a declared tolerance and independently owned cleanup. This ticket authorizes remediation/research, not publication or deployment.