Repository navigation
impl(028): redaction property test, overhead benchmark and verification - #165
Conversation
AI review (findings)Reviewing the six changed paths for bugs, security problems, and inconsistencies.
The
Two
The
The canary alphabet (letters g–z) cannot appear in hex span-IDs or numeric values, eliminating false positives from those. Checking only the first 8 characters of each canary for Drop/Digest assertions carries a small birthday-collision risk (~1 %) across 200 iterations but the test is deterministic (seed
The lifecycle transition {"head": "b1ad15f105464086b94101609c460d8e2de5bb88", "verdict": "findings", "findings": [{"path": "integrations/rustev-otel/examples/overhead.rs", "line": 366, "summary": "exported_bytes_per_decision divides by load.warmup + load.decisions (total) instead of load.decisions, so the reported metric is ~9% lower than its name implies; the benchmark table in the spec's increment-7 record reproduces these understated values."}]}Subject: be6f412...b1ad15f, diff digest 7614e799d64438505d5e73661fae49ff05a97124c4009698ae69809cdefde6cf, 1 call(s). An AI comment is not an approval. |
be6f412 to
76bad2a
Compare
b1ad15f to
2f9c4e6
Compare
AI review (no-findings)Reviewing the six changed files: a Makefile update, a new benchmark example, an extended test collector, a smoke test for the benchmark, a redaction property test, and the spec completion update. Makefile — adding collector/mod.rs — The refactor introduces a overhead.rs — CPU-time measurement is set after worker 0's task is spawned but before it is awaited, so early CPU cycles may be missed; this is a minor measurement inaccuracy in a benchmark that is explicitly described as "measured, not asserted" (principle XI). The overhead_smoke.rs — redaction_property.rs — Canaries are spec.md — No concrete bugs, security vulnerabilities, or governance violations found. {"head": "2f9c4e69c66d58f5bd05345922a114e986ea82bb", "verdict": "no-findings", "findings": []}Subject: 76bad2a...2f9c4e6, diff digest ac1b3398ddcab9815cfd04584d7986666086fe1d7b66360f3add7d04effe5ba2, 1 call(s). An AI comment is not an approval. |
AI review (no-findings)I reviewed the six changed files against the governance context and repo state. Makefile —
No concrete defects found. {"head": "2f9c4e69c66d58f5bd05345922a114e986ea82bb", "verdict": "no-findings", "findings": []}Subject: 76bad2a...2f9c4e6, diff digest ac1b3398ddcab9815cfd04584d7986666086fe1d7b66360f3add7d04effe5ba2, 1 call(s). An AI comment is not an approval. |
Spec 028, split from the single PR #151 (its AI review timed out at 15 minutes three times) into #151, #158 and #159 (merging in that order), then #160 (increment 5), #164 (increment 6) and #165 (increment 7). Each part is one signed commit and builds on its own; later parts are stacked on the branch below and rebased onto `main` after each merge. - Increment 5, `rustev trace tail` (3.11, amends spec 006): `--file`, `--trace-id`, `--redaction`, `--follow`, `--timeout-ms`, `--text`, with `rustev-contract` alone and no new CLI dependency; the reader's policy applies on top of the line's, and keys outside the catalogue are counted, never echoed. End-to-end tests through the binary over the goldens. Review responses (from the earlier #160 round on 6bf3bcd): `node` recursed with no cycle or depth bound; a span reached twice or deeper than 64 levels is now `invalid_input` naming the line, tested in `a_cyclic_or_too_deep_span_tree_is_invalid_input_not_a_crash`. Local verification on this head: `make gate`, `spec-spine couple` and `bash scripts/check-authored-content.sh` pass. CI runs code, verify and boundaries. Review response (round on 01146e8): the resource's withheld and uncatalogued attributes were counted into locals and dropped; the resource object now carries its own `withheld_by_reader` and `not_in_catalogue`, tested in `a_key_outside_the_catalogue_is_withheld_with_a_notice`.
ad34aa9 to
f256e34
Compare
Spec 028, split from the single PR #151 (its AI review timed out at 15 minutes three times) into #151, #158 and #159 (merging in that order), then #160 (increment 5), #164 (increment 6) and #165 (increment 7). Each part is one signed commit and builds on its own; later parts are stacked on the branch below and rebased onto `main` after each merge. - Increment 6, OTLP (3.2.3, 3.9.1 to 3.9.3): `opentelemetry`, `opentelemetry_sdk` and `opentelemetry-otlp` 0.33 with `default-features = false`, used only by `rustev-otel` behind `otlp-grpc` and `otlp-http`; no `reqwest`, no `internal-logs`, default features empty. `endpoint` refuses, before anything is built or dialed, an origin not exactly in the list, an empty list, user information, wildcards, plaintext to anything but a loopback IP literal, and an `OTEL_*` endpoint variable naming an origin outside the list. Redirects are never followed. Loopback fake collectors on h2 and hyper. Owner decisions: - TLS paths (gRPC with the host's `ca_pem`, HTTP with given roots or the Web PKI roots) are compiled and type-checked but not exercised by a test: the workspace has no certificate generator. The tests run plaintext to loopback only. The spec record says so. Local verification on this head: `make gate`, `spec-spine couple` and `bash scripts/check-authored-content.sh` pass. CI runs code, verify and boundaries. Review response (round on be6f412): an unbracketed IPv6 literal (`http://::1:4318`) parsed, its last colon read as the port separator; a colon left in the host outside brackets is now `Malformed` ("an IPv6 literal outside brackets"), tested in `endpoint::tests::refusals`. Bracketed literals (`http://[::1]:4317`) are unchanged. Review responses (round on 230e1eb): - Duplicate header names: both builders validated every entry but HTTP collected them into a map (and gRPC's `HeaderMap::insert` overwrote), so one value was silently dropped. A name given twice, compared case-insensitively, is now `OtlpError::DuplicateHeader` before anything is built; tested in `header_values_never_appear_in_errors_or_debug`. - Log severity: `export_logs` set `Severity::Warn` regardless of the record. It now maps the record's own `severity_number` (1 to 24) to the OpenTelemetry severity, leaving an out-of-range number unspecified; unit-tested in `otlp::tests`. The sink writes only `WARN`/13 today, so exported bytes are unchanged. Review response (round on 0b09035): the finding read "3.12" in the workspace `Cargo.toml` comment as a typo. It is not: spec 028 3.12 is "Dependency boundary", the amendment of spec 001 3.5 that forbids every `opentelemetry*` package outside `integrations/` (the rule `make boundaries` enforces). The comment now names both cited sections by title so the citation is checkable from the diff.
2f9c4e6 to
2b09c44
Compare
Spec 028 increment 7 (3.14, Acceptance): the redaction property test, the overhead benchmark and its smoke test, and the verify block; 028 joins VERIFIED_SPECS and its implementation is complete.
2b09c44 to
e1e9bbb
Compare
AI review (no-findings)Reviewing the six changed files for concrete defects. Makefile — adds
No concrete defects found. {"head": "e1e9bbb1eb8e3877275ddaceeb99d2573b7258c0", "verdict": "no-findings", "findings": []}Subject: ed1d191...e1e9bbb, diff digest 154555af5510de361b791ee307f1d529a12e74eff5217be6bb1cef665ca91387, 1 call(s). An AI comment is not an approval. |
Adds the six public document schemas from specs 019, 026 and 028 to spec 027's emitter under owner decision R-46. Contract tests validate the documents, including trace JSONL goldens, against their emitted schemas. Both bindings receive regenerated TypeScript declarations. Diff size: 170 additions and 15 deletions are authored. The other 5,443 additions and 2,761 deletions are generated schemas, TypeScript declarations and spec-spine shards. The two TypeScript files account for most of the diff. Validation: pinned spec-spine 0.31.0 refresh, make gate and coupling pass. Hosted code and binding checks pass; declared acceptance is still running. Local workspace validation is running. Pushed before local code completion at the owner's request. Rebased onto merged #165. Both AI review groups report no findings on 04dd831. Auto-merge is enabled pending the final required acceptance check. R-46 records the owner ruling of 2026-10-21; the spec records now explicitly distinguish its implementation date, 2026-10-22.
Spec 028, split from the single PR #151 (its AI review timed out at 15 minutes three times) into #151, #158 and #159 (merging in that order), then #160 (increment 5), #164 (increment 6) and #165 (increment 7). Each part is one signed commit and builds on its own; later parts are stacked on the branch below and rebased onto
mainafter each merge.dropfield in any exported byte, raw or cut, and no raw canary of adigestfield), the overhead benchmarkexamples/overhead.rswith its 100-decision smoke test, and theverify:cliblock.Benchmark (
cargo run -p rustev-otel --release --all-features --example overhead), 10 000 decisions per configuration alternating the two reference plans after 1 000 warm-up, concurrency 4 underbackpressure(64 pending). CPU and RSS are the whole process, which also hosts the fake collector. No threshold is asserted (3.14.3).deliverp50 / p99 msLoss is zero everywhere: no decision failure, no runtime sink failure, timeout or drop, no telemetry lost and none in flight at the end.
Local verification on this head:
make gate,spec-spine coupleandbash scripts/check-authored-content.shpass. CI runs code, verify and boundaries.Review response (round on b1ad15f): the finding read
exported_bytes_per_decisionas dividing warm-up-inclusive bytes by the wrong count. It does not:bytes_startis read before the warm-up, so the bytes cover all 11 000 decisions and dividing by 11 000 is right. The real inconsistency was the CPU figure:cpu_startis also read before the warm-up, but CPU time was divided by the 10 000 measured decisions. Both now divide by every decision run (a comment inoverhead.rssays so). The CPU column above is the earlier run's CPU time divided by 11 000 instead of 10 000 (each value times 10/11), not a new run; bytes, latency and RSS are unchanged.