Skip to content

impl(028): boundary telemetry rule and the contract's redaction policy and trace line - #151

Merged
bartekus merged 1 commit into
mainfrom
impl/028-opentelemetry-evidence-sink
Oct 22, 2026
Merged

bartekus merged 1 commit into
mainfrom
impl/028-opentelemetry-evidence-sink

Conversation

@bartekus

@bartekus bartekus commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

Part 1 of 4 of spec 028, split from the single PR #151 because its AI review timed out at 15 minutes three times. Merge in order: #151 (increments 1 and 2), #158 (increment 3), #159 (increment 4), #160 (increments 5 to 7). Each part is one signed commit; later parts are stacked on the branch below and are rebased onto main after each merge.

  • Increment 1, tools/rustev-boundaries (3.12): the telemetry exporter family (every opentelemetry* package and tracing-opentelemetry). A crate outside integrations/ that declares one as a normal or build dependency (optional included) or reaches one through its resolved normal and build graph is TelemetryOutsideIntegrations, naming the path. Rule 3.4.1 for the pure crates is unchanged. The pinned facts of 3.2.1 were re-confirmed on 2026-10-21; the v1.41.1 pin stands.
  • Increment 2, rustev-contract (3.3, 3.4, 3.10.1): redaction (field classes and defaults, the lineage rule, the rustev.redaction/1 document and RedactionPolicyId, validation naming the entry for every refusal of 3.4.2, the effective action, the keyed HMAC-SHA256 digest through hmac 0.12, DigestKey that is never serialized and whose Debug shows only the key_id, and Redactor); trace_fields (the closed catalogue and the pinned schema URL); trace (the rustev.trace/1 line under the new TRACE_V1 limits). Tests include RFC 4231 vectors and independently computed Rustev vectors. No existing document, schema string, limit, canonical byte or identity changes.

Owner decisions:

  • 028 takes an extends edge on tools/rustev-release/: its new contract source files and crates/rustev-cli/src/trace.rs join the reviewed archive lists, and rustev-otel is listed as excluded in release-set.json (as 027 and 033 took).
  • JSON Schemas for rustev.redaction/1 and rustev.trace/1: the owner decided on 2026-10-21 that they join spec 027's emitter. That is out of scope here (it regenerates the committed binding declarations under integrations/rustev-wasm/ and integrations/rustev-node/) and lands in a follow-up PR after the 028 series merges, recorded as R-46.

Local verification on this head: make gate and spec-spine couple pass; bash scripts/check-authored-content.sh passes. The combined tree of all four parts is identical to the squashed #151 head 5c44374, whose CI run passed every job except the timed-out AI review (code, verify, boundaries, bindings, release-checks).

Review responses (round on 14b8c82):

  • TraceLine::check now refuses a schema_version other than SPAN_SCHEMA_VERSION (1), on read and on write; tested in bad_lines_are_refused.
  • DigestKey key bytes: overwritten on drop (fill(0) then std::hint::black_box). This is best effort by design: spec 028 3.1.1 gives rustev-contract exactly one new dependency, hmac (quoted: "with one new dependency, hmac (3.4.5), beside its existing sha2"), so zeroize would need a spec amendment, and the crate has #![forbid(unsafe_code)], so no volatile write. The per-call HMAC state derived from the key is not covered. The implementation record says so.

@bartekus
bartekus force-pushed the impl/028-opentelemetry-evidence-sink branch 3 times, most recently from 47c55f9 to 5c44374 Compare October 21, 2026 23:24
@bartekus
bartekus force-pushed the impl/028-opentelemetry-evidence-sink branch from 5c44374 to f917f44 Compare October 22, 2026 00:31
@bartekus bartekus changed the title impl(028): OpenTelemetry evidence sink impl(028): boundary telemetry rule and the contract's redaction policy and trace line Oct 22, 2026
@bartekus
bartekus force-pushed the impl/028-opentelemetry-evidence-sink branch from f917f44 to f19af48 Compare October 22, 2026 00:34
@github-actions

Copy link
Copy Markdown

AI review (no-findings)

Reviewing the diff: three new rustev-contract modules (redaction, trace, trace_fields), a new hmac dependency, the telemetry-exporter boundary rule in rustev-boundaries, and the implementation record update to spec 028.

crates/rustev-contract/src/redaction.rs

  • Field-class taxonomy, is_deny, and default_action are internally consistent. UserSupplied, ThirdParty, AttributedClaim, GeneratedText, and FreeTextDetail are deny-only; the others may be granted class-wide. Tests confirm both sides.
  • Action::stricter's ordering key (level, u32::MAX - bytes) correctly makes smaller truncation bounds more withholding. ✓
  • needs_key conservatively returns true whenever any class action or any field override is Digest, even if a field override supersedes the class action. Slightly over-strict but safe. ✓
  • hmac_sha256 calls new_from_slice(...).expect(...). HMAC-SHA256 accepts any key length; the InvalidLength path is genuinely unreachable. ✓
  • DigestKey::Debug uses finish_non_exhaustive() so key bytes never appear; the test verifies neither decimal ("66") nor hex ("42") of 0x42 is visible. ✓
  • LINEAGE_CLASSES (8 entries) covers exactly the classes lineage_class() can return. reader_action folds the strictest over all 8 — conservative and correct. ✓
  • The hex() helper uses char::from_digit with radix 16; for nibbles 0–15 this is always Some, so unwrap_or('0') is dead code but harmless. Lowercase output matches the spec. ✓

crates/rustev-contract/src/trace.rs

  • is_hex checks lowercase only and rejects all-zero IDs. The check() function enforces resource-present ↔ name == DECISION, the withheld attribute must be a StrArray with Mark::Allow, end ≥ start, and no non-finite numbers. ✓
  • is_well_formed correctly rejects empty non-string arrays and non-finite doubles (round-trip ambiguity noted in comments). ✓
  • The TraceLine::check() docstring lists its invariants and does not include "non-root must have parent_span_id"; the struct comment says parent_span_id is "null for a root without a host parent." No requirement to check non-root spans is stated in the code or spec text supplied here, so I cannot call the absence a defect.

crates/rustev-contract/src/trace_fields.rs

  • CATALOGUE is sorted by name; the test the_catalogue_is_sorted_and_unique enforces this. lookup does a linear scan — O(n) over ~100 entries, acceptable for a contract library. ✓
  • Template entries (EXTRA_PREFIX, PARAM_PREFIX) are positioned correctly in the sorted order; exact-name and template matches are distinguished by the template flag. ✓
  • fixed_fields_are_the_four_of_3_4_4 asserts the four fixed fields in catalogue order; catalogue order matches alphabetical order of their names. ✓

tools/rustev-boundaries/src/lib.rs

  • is_telemetry matches by prefix "opentelemetry" and exact name "tracing-opentelemetry". ✓
  • The check fires for declared optional deps (absent from resolved graph) and for transitive graph paths. BTreeSet deduplicates if both the declaration and graph traversal produce the same path. ✓
  • Tests cover normal, build, optional, and dev dependency kinds; transitive paths; pure crates reaching telemetry; and the allowed case inside integrations/. ✓

specs/028-opentelemetry-evidence-sink/spec.md

  • The implementation record is editorial and does not claim acceptance items prematurely. The three new source files are added to the archive-policy.json reviewed list, consistent with the extends edge on tools/rustev-release/. ✓
  • The claim that the new documents are not added to spec 027's JSON Schema emission is supported by the absence of changes in the binding declaration files. ✓

No concrete defects found.

{"head": "f19af484ae7eff5d172f4448b3a6ab4780bea122", "verdict": "no-findings", "findings": []}

Subject: 0cc3b1e...f19af48, diff digest 4993a828718eac9d08cbe96ada56f45f23ea24798cadf326aba662f48847a1ab, 1 call(s). An AI comment is not an approval.

@bartekus
bartekus enabled auto-merge (squash) October 22, 2026 00:44
@bartekus
bartekus force-pushed the impl/028-opentelemetry-evidence-sink branch from f19af48 to c5be6c5 Compare October 22, 2026 00:48
@bartekus
bartekus disabled auto-merge October 22, 2026 00:48
@github-actions

Copy link
Copy Markdown

AI review (no-findings)

I'll review this PR, which delivers two increments of spec 028: the telemetry boundary rule in tools/rustev-boundaries (increment 1) and the pure contract parts (redaction, trace, trace_fields) in rustev-contract (increment 2).

redaction.rs — logic and security

The HMAC-SHA256 implementation (hmac_sha256) is constructed through the RustCrypto crate (Hmac<Sha256>::new_from_slice), not hand-rolled. The domain-separated message layout DIGEST_DOMAIN 0x00 <class> 0x00 <value> prevents cross-class correlation. RFC 4231 vectors (cases 1–4, 6–7) are included and match the RFC byte-for-byte. DigestKey deliberately omits Serialize/Deserialize and its Debug impl only exposes key_id.

needs_key() correctly ORs the class-level check (FieldClass::ALL) with the per-field override check, so a field override of Digest on an otherwise-Drop class is caught. Redactor::new refuses a None key whenever any effective action is Digest. The is_deny guard blocks class-wide allow/truncate for the five sensitive classes while still permitting digest/drop. All of this is verified by a comprehensive test suite.

LINEAGE_CLASSES covers exactly the 8 classes the lineage rule can produce (the 6 ProvenanceClass mappings plus Enum and PlanMetadata). The fold in reader_action over all 8 with Action::stricter is conservative (never shows more than the actual class's action), which is correct per 3.11.3.

trace.rs — line invariants

is_hex correctly rejects all-zero IDs. check() enforces: non-zero lowercase hex IDs, span name in span::ALL, end ≥ start, resource present iff name == span::DECISION, no non-finite numbers or empty non-string arrays, and WITHHELD present as a StrArray with Mark::Allow. to_line additionally enforces the 64 KiB limit after serialisation.

trace_fields.rs — catalogue

The the_catalogue_is_sorted_and_unique test enforces the ordering invariant relied on elsewhere. Template matching via is_segment correctly rejects bare prefixes (rustev.outcome.param.), multi-segment instances (rustev.outcome.param.a.b), and wildcard keys (rustev.exchange.extra.*). The four fixed fields exactly match the spec's 3.4.4 list.

tools/rustev-boundaries — telemetry rule

The prefix match name.starts_with("opentelemetry") plus exact match for "tracing-opentelemetry" covers the family. Both the declaration-level check (optional deps included) and the transitive resolved-graph check are present. The scope guard !in_integrations correctly exempts integrations/rustev-otel. Test coverage is thorough: normal, build, optional, transitive, dev-only, and sink-under-integrations cases.

archive-policy.json

The three new source files (redaction.rs, trace.rs, trace_fields.rs) are added to the reviewed archive list. The max_archive_bytes/max_unpacked_bytes bounds are not raised; the release tooling would catch a violation mechanically if the new files push the crate past the limits.

No concrete bugs, security defects, or inconsistencies found.

{"head": "c5be6c59b5e9dfbc0278933efbf334decf600124", "verdict": "no-findings", "findings": []}

Subject: 3a238a1...c5be6c5, diff digest 4993a828718eac9d08cbe96ada56f45f23ea24798cadf326aba662f48847a1ab, 1 call(s). An AI comment is not an approval.

@bartekus
bartekus enabled auto-merge (squash) October 22, 2026 01:17
@bartekus
bartekus disabled auto-merge October 22, 2026 01:17
@bartekus
bartekus force-pushed the impl/028-opentelemetry-evidence-sink branch from c5be6c5 to 14b8c82 Compare October 22, 2026 01:17
@github-actions

Copy link
Copy Markdown

AI review (findings)

Reviewing the three new modules (redaction, trace, trace_fields) and the boundary-check additions.

Security / correctness analysis:

DigestKey key material not zeroized. DigestKey.key is a plain Vec<u8>. There is no Drop implementation that zeros the key bytes when the struct is dropped. This means HMAC key material may linger in heap memory until it is overwritten by an allocator. The Debug protection is correctly implemented, but the absence of any zeroize-on-drop step is a cryptographic hygiene gap. The spec says the key "is never serialized" and "Debug shows only the key_id" but does not rule out in-memory leakage; this is a concrete, supportable concern given that the crate deliberately imports a crypto library for this purpose.

TraceLine::check does not validate schema_version. trace_fields::SPAN_SCHEMA_VERSION is defined as 1 and documented as the required value for the rustev.otel/1 span format. TraceLine::check() validates name against span::ALL, hex ids, end ≥ start, resource presence, value finiteness, and the withheld attribute — but never checks self.schema_version == SPAN_SCHEMA_VERSION. A line with schema_version: 0 or schema_version: 99 passes every invariant check and round-trips cleanly. The constant exists to express this invariant but is unused in validation.

RFC 4231 test vector counts and content were verified against the spec; all six cases are correct. The HMAC-SHA256 construction via the hmac crate is standard. The hex helper always receives nibbles in 0..=15, so the unwrap_or('0') fallback is dead code but harmless.

Boundary-check double-reporting. For a direct (non-optional) telemetry dependency outside integrations/, both the declaration loop and the forbidden_path graph walk generate a TelemetryOutsideIntegrations violation. Both produce path: [krate, dep], so BTreeSet::insert deduplicates them — no double report in practice. For optional declarations (graph walk skips them), only the declaration loop fires; for transitive paths, only the graph walk fires. The logic is correct.

needs_key over-approximation. If a class action is Digest but every field of that class has a fields override to a non-digest action, needs_key still returns true. This is conservative (may require a key when none is strictly needed) but not a security defect.

The CATALOGUE ordering, lookup template matching, truncate_str UTF-8 boundary walk, lineage_class/LINEAGE_CLASSES consistency, reader_action strictest-class fold, and digest_value element-by-element array digesting all look correct.

{"head": "14b8c82a9ebee83a4b01dd13292bfae663bcdf0a", "verdict": "findings", "findings": [{"path": "crates/rustev-contract/src/redaction.rs", "line": 462, "summary": "DigestKey stores HMAC key bytes in a plain Vec<u8> with no zeroize-on-drop, so key material may persist in heap memory after the key is dropped."}, {"path": "crates/rustev-contract/src/trace.rs", "line": 192, "summary": "TraceLine::check does not validate schema_version == SPAN_SCHEMA_VERSION (1), so a line with any version number passes all invariant checks despite the constant being defined for exactly this purpose."}]}

Subject: fd19273...14b8c82, diff digest ac57663c82c8c26f045a00bd99b76bf4da420252c71edd0f6a8451150c4c5f43, 1 call(s). An AI comment is not an approval.

@bartekus
bartekus had a problem deploying to statecraft-review-exception October 22, 2026 01:24 — with GitHub Actions Error
@bartekus
bartekus force-pushed the impl/028-opentelemetry-evidence-sink branch from 14b8c82 to b3bd1dc Compare October 22, 2026 01:27
@github-actions

Copy link
Copy Markdown

AI review (no-findings)

Reviewing the PR diff for bugs, security problems, and inconsistencies across the three new modules (redaction, trace, trace_fields), the boundary check additions, the spec update, and the archive policy.

RFC 4231 vectors (redaction.rs, module tests): All six test vectors are the correct 64-hex-character HMAC-SHA256 outputs. TC5 (truncated output) is correctly omitted. The raw hmac_sha256 is called directly with sub-32-byte keys (RFC requires these), bypassing the DigestKey length guard — acceptable because the function is pub(crate) and the test is only verifying HMAC correctness.

hex helper: char::from_digit(n, 16) with n ∈ 0..=15 never returns None, so unwrap_or('0') is dead code, but the output is always correct lowercase hex. Not a defect.

DigestKey::drop: fill(0) followed by black_box(&mut self.key) is the standard safe-Rust best-effort approach. The comment explicitly acknowledges the per-call HMAC state is not covered and that no zeroize dependency is added per spec 028 3.1.1.

lineage_class and LINEAGE_CLASSES: The eight classes (Enum, PlanMetadata, AttributedClaim, ThirdParty, UserSupplied, ModelDerived, AuthenticatedAppField, SystemOfRecord) exactly match the lineage rule's possible outputs. Id, ContentDigest, etc. are correctly absent.

TraceLine::check resource invariant: Checked only after the span-name guard, so self.name is guaranteed to be one of the four valid span names before the resource.is_some() != (name == DECISION) test. Correct.

TraceLine::check withheld invariant: Enforces that fixed::WITHHELD is present and is a StrArray marked Allow. The comment about empty arrays deserialising as StrArray is accurate for #[serde(untagged)] variant ordering.

is_well_formed empty-array semantics: Rejecting non-empty arrays of non-string element types but not StrArray is consistent with the round-trip note — an empty IntArray serialises identically to StrArray([]).

Catalogue sort order: Verified the alphabetical positions of template entries (rustev.exchange.extra., rustev.outcome.param.) and fixed fields (rustev.otel.schema_version before rustev.redaction.*) against their neighbours. The the_catalogue_is_sorted_and_unique test would catch any inversion at compile time.

Boundary check: Direct-declaration check (catches optional unresolved deps) and graph-traversal check are both applied for packages outside integrations/. The in_integrations predicate correctly excludes integrations/rustev-otel. The test suite covers all required cases from spec 028 3.12.2.

Archive policy: Exactly the three new files (src/redaction.rs, src/trace.rs, src/trace_fields.rs) are added to the rustev-contract entry. The extends edge on tools/rustev-release/ in spec 028 is consistent with the edit to archive-policy.json.

Committed digest vectors: Cannot independently verify the "computed independently with Python" vectors without running code, but the message layout (DIGEST_DOMAIN \x00 class.name \x00 value_bytes) is consistent with the spec and with the DigestKey::digest implementation.

No concrete defect found.

{"head": "b3bd1dc17334136aad1aae7738d5020b99ab09e8", "verdict": "no-findings", "findings": []}

Subject: fd19273...b3bd1dc, diff digest 76f43a56a90fc828e8a17186daa3d1032bc87ff3ab1eab005f47e79ca21bb79d, 1 call(s). An AI comment is not an approval.

@bartekus
bartekus enabled auto-merge (squash) October 22, 2026 01:36
bartekus added a commit that referenced this pull request Oct 22, 2026
…47 (#154)

## Summary

Release closeout, first change: specs 045 and 046 against CI evidence,
and the owner's 2026-10-21 rulings on 019, 020, 026 and 027, recorded as
R-47.

- **Spec 046: `implementation: complete`.**
`tools/rustev-conformance/js/wasm-check.mjs` gates the optimized module
at 2,621,440 bytes raw and 786,432 gzip and writes both budgets into the
measurement document. CI run 39684537149 on #153's head `093f834` passed
every job, including `bindings / wasm` and the seven native platforms;
its measurement document records 2,251,563 bytes raw and 772,853 gzip.
The push run on `main` at `00a4b7c` (39688068295) passed the same jobs.
(Run 39671862047 is on #153's earlier head `ccb0c13`; it passed too, but
it is not the merged head.)
- **Spec 027: `implementation: complete`** under R-47, with its two
findings recorded as known limitations: a host backend's `AbortSignal`
answer is always `not_observed`; output failing the bounded parse
follows 3.6.5, not section 5's row. Its Verification section now
declares `verify:cli` (conformance runner, surface tests, boundaries)
and 027 joins `make verify`; the completion record cites the same CI
runs.
- **Spec 020: `implementation: complete`** under R-47: the two "not
verifiable as written" items are not applicable as built (HTTP/1.1 only
binding; no Jev refinement enabled). 020 joins `make verify`.
- **Specs 019 and 026:** dated notes that the owner accepted the
defaults and engineering choices in their records (R-47).
- **Spec 045: stays `pending`, with its acceptance check recorded.** Met
on main: `rustev-surface` alone in layer 4, `rustev-cli` in layer 5;
`tests/manifests.rs` refuses each manifest-policy case of section 5; the
surface has its archive allowlist. Not met: "upload order following the
layers" read with 3.2.5 (by name within a layer).
`rustev-pkg-support-routing` and `rustev-pkg-lodging` (layer 3) upload
after `rustev-cli` because their tests use it, and layer 3 is not
uploaded by name. Spec 021's record leaves that reconciliation to the
owner.

- **`AGENTS.md`:** the CI paragraph now lists all four declared extra
jobs of `ci.extra_required_jobs` (`bindings` and `release-checks` were
added by #153 but not recorded there; review round 1).

## Review findings answered

- Round 3 (`4fe4af3`), "027 complete while section 5 is contradicted
with no amendment": deliberate, not a defect. The owner ruled on
2026-10-21 (R-47) to complete 027 with both departures recorded as known
limitations instead of amending section 5 or 3.6.5. This head states
that choice in R-47 and in 027's record, which names the record as the
authoritative statement of the departure and leaves a fix or an
amendment to a later spec.
- Round 4 (`b4607a5`), "046 complete without a cited owner decision":
completion is a delivery record, not an owner act. 046 was ratified as
A-43; marking `implementation: complete` once its acceptance holds needs
no decision row, as with spec 047 (ratified A-44, completed with no row
of its own). 046's record now maps both acceptance items to their
evidence and says so.
- Round 6 (`6b94208`), R-47 after R-49: fixed; R-47 is now between R-45
and R-49.

## Decision numbering

R-47 is this lane's reserved number (numbers were reserved per lane, not
in merge order). It sits in numeric order between R-45 and R-49 in the
2026-10-21 table, whose heading drops "spec 010" since it now holds
rulings beyond spec 010 (review round 6). R-46 (spec 028, #151) and R-48
(spec 029's lane) are reserved by open work, so the gaps are expected
and no number is reused.

## Owner decision still open (not decided here)

- Spec 045 / 031 3.1 upload order: an ordering amendment, or published
manifests without those development dependencies.

## Checks

- `make gate`: passed. `bash scripts/check-authored-content.sh`: clean.
`spec-spine couple`: OK.
- `make verify` for 020 and 027: not run locally (shared target busy
with the release candidate); the CI `verify` job runs it.
- `make release-candidate` at `00a4b7c`: running locally; its result
will be recorded here.
@bartekus
bartekus disabled auto-merge October 22, 2026 01:56
…y and trace line

Spec 028 increments 1 and 2: the telemetry exporter family in the boundary check; the redaction policy, keyed digest, trace field catalogue and rustev.trace/1 line in rustev-contract.
@bartekus
bartekus force-pushed the impl/028-opentelemetry-evidence-sink branch from b3bd1dc to b1f7f51 Compare October 22, 2026 01:56
@github-actions

Copy link
Copy Markdown

AI review (no-findings)

Reviewing the PR, which adds the pure contract parts for spec 028 (increment 2): the redaction policy, field catalogue, keyed digest and trace line document.

RFC 4231 vectors (redaction.rs, inline test): All six vectors (cases 1–4, 6, 7) match the RFC. The 64-hex-character (32-byte) outputs are confirmed correct. Case 5 is rightly skipped—it tests a truncated HMAC output not produced by the raw hmac crate interface.

HMAC domain separation (redaction.rs ~L490): Message layout is "rustev.digest/1" || 0x00 || class.name() || 0x00 || value_bytes. Class names contain no null bytes, so the null-byte separators unambiguously delimit each field. A string value containing a null character cannot extend into the separator position. The scheme is sound.

LINEAGE_CLASSES (redaction.rs ~L297): Contains exactly the eight classes lineage_class can assign ({Enum, PlanMetadata, AttributedClaim, ThirdParty, UserSupplied, ModelDerived, AuthenticatedAppField, SystemOfRecord}), consistent with the spec's requirement that the reader applies the most withholding action among every class the lineage rule can produce.

needs_key / Redactor::new completeness: needs_key checks all class actions via FieldClass::ALL and all field-override actions. Fixed fields are always Allow, so they can never create a missed Digest. The None => Applied::Dropped arm in apply is unreachable after a valid Redactor is constructed.

is_hex in trace.rs (~L185): Correctly requires exact length, lowercase hex characters, and at least one non-'0' byte (enforcing non-zero span/trace IDs per the OTel spec).

Key zeroing (Drop for DigestKey, redaction.rs ~L510): Uses fill(0) plus black_box as best-effort in safe code without an additional dependency. The acknowledged limitation (per-call HMAC state, clone copies) is correctly documented.

Catalogue sort invariant: Spot-checking the entries around both template prefixes (rustev.exchange.extra., rustev.outcome.param.) and all four fixed fields confirms they appear in lexicographic order. The inline test the_catalogue_is_sorted_and_unique enforces this mechanically.

TraceLine::check (trace.rs ~L220): All invariants appear consistent: schema version, non-zero hex IDs, span name from the closed set, end >= start, resource iff DECISION span, is_well_formed for every value, and withheld present as StrArray marked Allow.

Boundary check (tools/rustev-boundaries): The two-pass approach (declared-dep check including optional deps, then graph check via forbidden_path) correctly covers the rule from spec 028 §3.12.2. Since out is a deduplicated set, double-reporting the same crate+path for a direct dependency is harmless.

Archive policy: The three new source files (src/redaction.rs, src/trace.rs, src/trace_fields.rs) are correctly added to the rustev-contract entry; the extends edge on tools/rustev-release/ in the spec is consistent with this addition.

No concrete defects found.

{"head": "b1f7f5157ea87ed3da769be5a9321b347dc87ecc", "verdict": "no-findings", "findings": []}

Subject: 70a6424...b1f7f51, diff digest 76f43a56a90fc828e8a17186daa3d1032bc87ff3ab1eab005f47e79ca21bb79d, 1 call(s). An AI comment is not an approval.

@bartekus
bartekus enabled auto-merge (squash) October 22, 2026 02:34
@bartekus
bartekus merged commit cf6665c into main Oct 22, 2026
49 of 52 checks passed
@bartekus
bartekus deleted the impl/028-opentelemetry-evidence-sink branch October 22, 2026 02:39
bartekus added a commit that referenced this pull request Oct 22, 2026
Part 2 of 4 of spec 028, split from the single PR #151 because its AI
review timed out at 15 minutes three times. Merge in order: #151
(increments 1 and 2), #158 (increment 3), #159 (increment 4), #160
(increments 5 to 7). Each part is one signed commit; later parts are
stacked on the branch below and are rebased onto `main` after each
merge.

- Increment 3, `integrations/rustev-otel` (3.5, 3.10.2): the projection
of a delivered `rustev.run/1` record to a span tree, every value through
`Redactor`; the append-only `0600` JSONL exporter bounded by
`max_bytes`; goldens for both reference plans and the scripted remote
exchange, under the default and an all-allow policy, reproduced byte for
byte. `publish = false`, listed as excluded in `release-set.json`.

Owner decisions:
- Readings chosen where the spec left room, each recorded in the spec's
implementation record: the projection knows only the `rustev.run/1`,
`rustev.evidence/1` and `rustev.judgment/1` versions and anything later
is `projection_unknown`; outcome parameter kinds are preserved (decimals
as exact strings, composites as canonical JSON); a reader without a
`fields` override applies the most withholding action a lineage-rule
field could take; conservation is per signal in items while
`rustev.telemetry.lost{reason}` counts decisions under exactly one
reason; metric dimensions only for `allow` fields; `logs: on` with the
JSONL exporter is refused; `schema` accepts `1` alone; the configuration
ranges; the trace-id ratio in integer form; `trace tail` completeness
(root plus policy span) and polling in 200 ms steps with no clock; an
`OTEL_*` endpoint variable outside the list refuses construction.

Local verification on this head: `make gate` and `spec-spine couple`
pass; `bash scripts/check-authored-content.sh` passes. The combined tree
of all four parts is identical to the squashed #151 head 5c44374, whose
CI run passed every job except the timed-out AI review (code, verify,
boundaries, bindings, release-checks).
bartekus added a commit that referenced this pull request Oct 22, 2026
Spec 029 increment 2: per-case measures (3.2). Library only; no CLI, no
repeat set yet, no live run, provider call or spend. `implementation`
stays `in-progress`.

- `rustev-eval/src/eval_cases.rs` (new): `rustev.eval-cases/1`
  (`REPLAY_V1`, record canonical): the run report's record digest, the
  declared top-k parameter, and per case in manifest order its id, run
  record digest, detail outcome key, top-k list and measures (`count`,
  `mean`, `sample`, or `unknown` with its reason). `form_of` maps spec
004's reported metric names to their per-case form; `reconcile` refuses
  measures that are not bound to the report, do not list the detail's
cases and outcomes in order, name an unreported or total metric, fail to
  reproduce a case-decomposable metric bit for bit, or do not sum to the
  detail's counts (3.2.6).
- `rustev-eval/src/report.rs`: `evaluate_with_cases(inputs, top_k)` runs
the unchanged evaluation and records each case's term from the report's
own functions, then reconciles. `evaluate` is unchanged; its report and
  detail are byte-identical with or without the measures.
- `rustev-eval/src/metrics.rs`: `reliability_bin` (now used by
`reliability`), `log_loss_term` and `brier_term`, with no change to any
  reported value.
- `rustev-eval/src/repeat_stats.rs`: `Contribution::Unknown`, which
makes
every statistic over it unknown and every resample drawing it undefined.
- Tests: `tests/reports.rs` (byte identity, reconciliation, round trip,
  candidate without latency, eleven refusal cases, lodging top-k),
  `tests/metrics.rs`, `tests/bootstrap.rs`.
- `tools/rustev-release/archive-policy.json`: `src/eval_cases.rs` joins
the
  reviewed archive list (spec 029's existing `extends` edge).
- Spec 029: re-planned increments (repeat sets become increment 3), the
  increment 2 record and engineering choices.

**Owner decision needed (D-029-1, recorded in spec 029's implementation
record): Brier per-case measures.** 3.2.3 lists `brier` as a mean and
3.2.6 requires bit-for-bit reconciliation, but spec 004 adds every class
term to one running sum, so per-case sums differ in the last bit on
ordinary inputs (`tests/metrics.rs` has a three-case counterexample),
and
spec 029 may not change how spec 004 computes a metric. Until decided,
`brier` has no per-case measure and its interval is unknown, never
approximated. Options: keep it so; reconcile Brier within a tolerance;
or
amend spec 004 to sum per case first (changes existing Brier bits).

Local verification (macOS arm64): `make gate` passes with spec-spine
0.31.0; `cargo clippy -p rustev-eval --all-targets -- -D warnings` and
`cargo test -p rustev-eval` pass.

Review round 1 (1 finding, fixed): `metric_cases` took its case count
from the first run and indexed the others blindly. It now returns a
result and refuses (`mixed-runs`) runs that do not list the same case
ids
in the same order, whichever comes first; `tests/reports.rs` covers a
shorter run in either position and a reordered one.

Review round 2: no findings. Round 2 CI (`code`): spec 027's
`every_call_site_is_in_the_corpus` refused a second `math::ln` call site
in `metrics.rs` (`log_loss_term` beside `mean_log_loss`).
`mean_log_loss`
now adds `log_loss_term`'s `-ln(p)`, so there is one call site again;
`sum + -ln(p)` is `sum - ln(p)` bit for bit (IEEE 754 defines
subtraction
as addition of the negation), and every existing eval test and the
corpus
test pass locally.

Review round 3: no findings. Rebased onto `main` after #154 (no
conflict).

Review round 4 (1 finding, clarified): the "another report" refusal case
built its digest by parsing the dataset id as a content digest. That
succeeds (both are `sha256:` digests, and the test passed), but it read
as
a likely panic; it now uses an explicit all-zero digest, and the helper
trait is gone.

Review round 5: no findings. Rebased onto `main` after #151 (no
conflict).
Review round 6: no findings. Rebased onto `main` after #158 (no
conflict).
bartekus added a commit that referenced this pull request Oct 22, 2026
…g candidate

The rustev-node negative tests and the conformance driver waited for an
engine-side condition for at most 100,000 event-loop turns, which a
loaded CI runner exhausted (#151's bindings / wasm, the late-resolution
test). Both waits are now bounded by 120 s of wall time, still yielding
with setImmediate; no assertion changes.

Spec 021: make release-candidate passed in full at 419b664 (archives
byte-identical, archive policy, unpacked tests on 1.98.1 and 1.88, audit,
SBOMs, release manifest 8b4e92e8...). Spec 045: its second acceptance
item is met; only the upload order remains for the owner.
bartekus added a commit that referenced this pull request Oct 22, 2026
Part 3 of 4 of spec 028, split from the single PR #151 because its AI
review timed out at 15 minutes three times. Merge in order: #151
(increments 1 and 2), #158 (increment 3), #159 (increment 4), #160
(increments 5 to 7). Each part is one signed commit; later parts are
stacked on the branch below and are rebased onto `main` after each
merge.

- Increment 4, the sink (3.6 to 3.9.4): `OtelSink` and `TeeSink`;
synchronous projection and redaction, metrics never sampled, sampling,
whole-tree queueing, `otel:accepted:` / `otel:exported:` /
`otel:sampled_out:` receipts; a worker exporting each batch as its own
task under the timeout so failures, hangs and panics are counted;
conservation per signal; W3C trace context, plan registration and the
exchange join buffer. Tested through the runtime under every spec 003
sink policy, including the equivalence of 3.8.6.

Owner decisions:
- SDK workarounds: metrics go through an SDK meter provider with a
periodic reader (interval one year) driven by `flush_metrics`, because
`ResourceMetrics` can only be filled by an SDK reader and the manual
reader's `collect` needs `experimental_metrics_custom_reader`, which
3.2.3 does not enable; the SDK's final export on drop is skipped so
metrics leave only through `flush_metrics`, where they are counted. Log
records are exported with `LogBatch::new`, which the SDK documents as
public but not meant for direct use, so an SDK upgrade may need to
revisit it.

Local verification on this head: `make gate` and `spec-spine couple`
pass; `bash scripts/check-authored-content.sh` passes. The combined tree
of all four parts is identical to the squashed #151 head 5c44374, whose
CI run passed every job except the timed-out AI review (code, verify,
boundaries, bindings, release-checks).

Review responses (round on 43ceaa9):
- `logs_of` no longer indexes `p.lines[0]` or `p.lines[a.line]`: it
returns no records without a root line and skips an attempt whose line
is out of range.
- `AttrSet::with` now checks the dimension class (enum, plan metadata,
model identity) at run time in every build instead of a `debug_assert!`;
a unit test grants `allow` to every grantable class and shows only the
enum field becomes an attribute.

Size: about 3,100 added lines, over the 2,000-line guideline, all
authored: `src/sink.rs` is one 1,256-line module (the sink, its queue
and its export worker) and `tests/sink.rs` its 990 lines of tests;
`context.rs`, `config.rs` and `metrics.rs` make up the rest. The only
cut available would still leave a part of about 2,300 lines, and the AI
review of this content has finished within its time limit on every run,
so it stays one PR (coordinator decision).

Head 856d1d6 failed `cargo fmt` (the new metrics unit test); fixed by
formatting only, no content change.
bartekus added a commit that referenced this pull request Oct 22, 2026
…g candidate

The rustev-node negative tests and the conformance driver waited for an
engine-side condition for at most 100,000 event-loop turns, which a
loaded CI runner exhausted (#151's bindings / wasm, the late-resolution
test). Both waits are now bounded by 120 s of wall time, still yielding
with setImmediate; no assertion changes.

Spec 021: make release-candidate passed in full at 419b664 (archives
byte-identical, archive policy, unpacked tests on 1.98.1 and 1.88, audit,
SBOMs, release manifest 8b4e92e8...). Spec 045: its second acceptance
item is met; only the upload order remains for the owner.
bartekus added a commit that referenced this pull request Oct 22, 2026
Spec 010, increment 2: the `rustev-aicortex` adapter, a non-released
integration. Follows #156 (spec 021 3.4, R-49, merged), which makes the
`rustev-aicortex` binding record's item 1 pass; rebased onto `main`
after it. Nothing here authorizes a release, publication, live service
call, spend or real-user data.

## Changes

- `integrations/rustev-aicortex/`: `AicortexContext`, a bounded read of
one claim-history page per bound subject under an explicit transaction
bound, mapped through a declared projection of 1 to 64 field bindings
into attributed snapshot entries (values, conflicts, refusals and
missing fields named; no partial history read as complete), and
`stage_observation`, an observation proposal with its Rustev lineage
staged into the host's `TxnBuilder` and never committed. Aicortex is
pinned at the record's revision
`6415b765e5267188b4ecf302a93869352e28cccc`, with Rahi `=0.6.0`, which
that revision pins. Tests: unit tests of the projection, kind mapping,
identities and refusals, and integration tests against a single-voter
Rahi 0.6.0 store with Aicortex's schema on loopback. The code is the
adapter kept on `wip/010-rustev-aicortex-adapter` (`c776546`),
unchanged.
- `specs/010-integrations/spec.md`: the `rustev-aicortex` record's item
1 passes under R-49 (its Git dependency is outside the release closure;
every release member still resolves from crates.io only), so the record
passes every row; `planned: true` is removed from its `establishes`
entry; the Verification block runs its tests, clippy and build and the
authorization-type grep; the implementation record describes increment
2.
- `tools/rustev-release/release-set.json`: `rustev-aicortex` is excluded
from the release family. `docs/backlog.md` RUSTEV-015 state.
- `tools/rustev-release/tests/manifests.rs`: #156's
`a_git_source_only_an_excluded_package_reaches_is_not_judged` asserted
exactly one violation when the resolve graph is absent, which held only
while no workspace package had a Git source. With `rustev-aicortex` its
real Aicortex packages are judged too (`code` failed on `b988788`), so
that case now asserts the added package is among the violations and
every violation is a source violation.
- `Cargo.lock`: regenerated by Cargo for the Aicortex revision and Rahi
0.6.0's graph (Rahi 0.7.1's entries stay; Cargo now names the two Rahi
versions explicitly in dependency lists).

## Limitation

The adapter pins Rahi 0.6.0 and `rustev-rahi` pins 0.7.1, so one host
cell cannot link both until Aicortex adopts Rahi 0.7.1 (record item 1).
`rustev-serve` stays unimplemented (its record refuses).

## Review history

Round 1 on `374a86b` (stacked on #156): no findings. Rebased onto `main`
at `3a238a1` after #156 merged (no conflict, derived shards unchanged).
Round 2 on `b988788`: no findings, but the `code` job failed on the
manifest test above; fixed in this head.

Round 3 on `413c222` (1 finding, rejected with evidence): it read
`serde_core` in `uuid`'s dependency list as an unrecognized crate.
`serde_core` is serde's own core crate, which `serde` 1.0.220 and later
depend on; `main` at `3a238a1` already locks it (`Cargo.lock`: `name =
"serde_core"`, `version = "1.0.229"`, crates.io, checksum
`67dca2c9c51e58a4791a4b1ed58308b39c64224d349a935ab5039aa360942a48`), and
`serde` 1.0.229's entry lists it. This PR adds no `serde_core` package
entry; only the `uuid` edge is new, because Aicortex enables `uuid`'s
`serde` feature.
Round 3 rerun on `413c222` (the `code` job had a timing flake in
`rustev-remote-http`'s `runtime_batch`, untouched here; run re-run): no
findings. Rebased onto `main` at `fd19273` (#155, no conflict).
Round 4 on `2a80b7b`: no findings. Rebased onto `main` at `70a6424`
(#154, no conflict).
Round 5 on `199b201`: no findings; held for the coordinator's merge
hold. Rebased onto `main` at `cf6665c` (#151, no conflict; `Cargo.lock`
still resolves with `--locked`).
Round 6 on `0024f6c`: no findings; held for the coordinator's merge
hold. Rebased onto `main` at `70b99ea` (#158): `release-set.json` kept
both the new `rustev-otel` exclusion and this one; the manifest tests
pass locally (18 of 18).
Round 7 on `0550224`: no findings. Rebased onto `main` at `68f40c0`
(#161, no conflict).
Round 8 on `2ccb9f9` (1 finding, the same `serde_core` question as round
3): the `rustev-aicortex` record's item 1 now states the new `uuid ->
serde_core` edge and where `serde_core` comes from, so the evidence is
inside the diff.
Round 9 on `242c75f`: no findings. Rebased onto `main` at `1b0ce68`
(#159, no conflict).
bartekus added a commit that referenced this pull request Oct 22, 2026
…g candidate

The rustev-node negative tests and the conformance driver waited for an
engine-side condition for at most 100,000 event-loop turns, which a
loaded CI runner exhausted (#151's bindings / wasm, the late-resolution
test). Both waits are now bounded by 120 s of wall time, still yielding
with setImmediate; no assertion changes.

Spec 021: make release-candidate passed in full at 419b664 (archives
byte-identical, archive policy, unpacked tests on 1.98.1 and 1.88, audit,
SBOMs, release manifest 8b4e92e8...). Spec 045: its second acceptance
item is met; only the upload order remains for the owner.
bartekus added a commit that referenced this pull request Oct 22, 2026
…g candidate

The rustev-node negative tests and the conformance driver waited for an
engine-side condition for at most 100,000 event-loop turns, which a
loaded CI runner exhausted (#151's bindings / wasm, the late-resolution
test). Both waits are now bounded by 120 s of wall time, still yielding
with setImmediate; no assertion changes.

Spec 021: make release-candidate passed in full at 419b664 (archives
byte-identical, archive policy, unpacked tests on 1.98.1 and 1.88, audit,
SBOMs, release manifest 8b4e92e8...). Spec 045: its second acceptance
item is met; only the upload order remains for the owner.
bartekus added a commit that referenced this pull request Oct 22, 2026
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`.
bartekus added a commit that referenced this pull request Oct 22, 2026
…g candidate

The rustev-node negative tests and the conformance driver waited for an
engine-side condition for at most 100,000 event-loop turns, which a
loaded CI runner exhausted (#151's bindings / wasm, the late-resolution
test). Both waits are now bounded by 120 s of wall time, still yielding
with setImmediate; no assertion changes.

Spec 021: make release-candidate passed in full at 419b664 (archives
byte-identical, archive policy, unpacked tests on 1.98.1 and 1.88, audit,
SBOMs, release manifest 8b4e92e8...). Spec 045: its second acceptance
item is met; only the upload order remains for the owner.
bartekus added a commit that referenced this pull request Oct 22, 2026
…g candidate (#167)

## Summary

Small follow-up in lane C (specs 027, 021, 045).

- **Binding test flake (027).**
`integrations/rustev-node/test/negative.test.mjs` and the conformance
driver (`tools/rustev-conformance/js/run.mjs`) bounded their waits for
an engine-side condition by 100,000 event-loop turns. A loaded CI runner
exhausted them in "a host backend resolving after the deadline is
discarded and counted" (#151's `bindings / wasm`, "waited forever").
Both waits are now bounded by 120 s of wall time, still yielding with
`setImmediate` and never sleeping; no assertion changed.
- **Release candidate evidence (021, 045).** `make release-candidate`
passed in full at `419b664` (a reviewed head of #162), locally on macOS
arm64: eleven archives byte-identical across two clean runs, archive
policy, unpacked tests on 1.98.1 and MSRV 1.88, `cargo deny` clean with
no exception, SBOMs, changelog, and the release manifest (SHA-256
`8b4e92e8dbd42fb91394474bb02fd58a59875c8fe8310f066174d44069b4761a`).
Recorded in 021 as evidence for that commit only; the release candidate
is rerun at the commit the owner names. 045's second acceptance item is
met; it stays `pending` on the upload-order item, which waits for the
owner.

Nothing is signed, tagged or published.

## Checks

- `node --check` on both scripts: OK. `make gate`: passed. `spec-spine
couple`: OK. `check-authored-content.sh`: clean.
- The Node tests run in CI's `bindings` jobs.
bartekus added a commit that referenced this pull request Oct 22, 2026
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.
bartekus added a commit that referenced this pull request Oct 22, 2026
…on (#165)

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 7 (3.14, Acceptance): the redaction property test (200
seeded decisions, canaries in every text and identifier slot, generated
policies; no canary of a `drop` field in any exported byte, raw or cut,
and no raw canary of a `digest` field), the overhead benchmark
`examples/overhead.rs` with its 100-decision smoke test, and the
`verify:cli` block.

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 under `backpressure`
(64 pending). CPU and RSS are the whole process, which also hosts the
fake collector. No threshold is asserted (3.14.3).

| Configuration | Decision p50 / p95 / p99 ms | `deliver` p50 / p99 ms |
CPU ms per decision | Exported bytes per decision | Peak RSS KiB | Loss
|
|---|---|---|---|---|---|---|
| (a) in-memory sink | 0.197 / 0.254 / 0.276 | 0.0001 / 0.0001 | 0.153 |
0 | 12 704 | 0 |
| (b) no-op exporter | 0.180 / 0.234 / 0.250 | 0.603 / 0.846 | 0.722 | 0
| 14 672 | 0 |
| (c) JSONL file | 0.206 / 0.427 / 0.536 | 0.730 / 1.595 | 1.336 | 22
657 | 28 784 | 0 |
| (d) OTLP/gRPC, loopback | 0.187 / 0.249 / 0.266 | 0.633 / 0.885 |
0.874 | 13 566 | 31 008 | 0 |
| (e) OTLP/HTTP, loopback | 0.188 / 0.252 / 0.279 | 0.623 / 0.904 |
0.834 | 13 561 | 32 464 | 0 |

Loss 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 couple` and
`bash scripts/check-authored-content.sh` pass. CI runs code, verify and
boundaries.

Review response (round on b1ad15f): the finding read
`exported_bytes_per_decision` as dividing warm-up-inclusive bytes by the
wrong count. It does not: `bytes_start` is 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_start` is 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 in
`overhead.rs` says 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant