10. Verification, packaging, and release¶
The development schema corpus installs rfc3339-validator explicitly so date-time annotations are
checked rather than silently skipped by an unprovisioned FormatChecker. It is a development extra;
base installed-wheel and disabled-import isolation remain independently verified.
Development-only JSON Schema validation uses the locked jsonschema dependency and an offline
registry of committed capacity schemas. The initial shared adversarial corpus reproduces and closes
raw-v5 histogram/bucket unknown-field admission; its existing wire field sets are unchanged while
Consumer Integration contract78 records strengthened runtime enforcement. The broader reconciliation
is tracked in the evidence inventory. The validator is
not imported by the base package and does not add a base installation dependency.
Consumer Integration contract79 records bounded runtime metric-series admission, metric numeric/name validation, explicit Resource Identity and HTTP transport policy, corrected paired comparison-v3 semantics and source-bound required-slice evidence, and execution timing/lifecycle corrections. It does not change dependency ranges, Collector processing, or optional device qualification status.
The AST architecture gate records containing-module dependencies and resolves
from-import names against the inventoried project modules, including aliases,
packages, and relative import levels. Symbol-only imports do not create invented
submodule edges. Dynamic imports and runtime symbol lookup are outside this static
gate; inspected code is never executed.
The optional static-import inventory declares FastAPI/gRPC/OpenTelemetry/SQLAlchemy ownership in
telemetry.otel and rejects static ML/resource/export/test integration dependencies throughout the
base package. Those optional integrations load only through explicit runtime seams. The pure
telemetry.performance.core layer cannot import outward performance namespaces, including through
relative from-imports resolved against the project inventory. Alias/import-from fixtures exercise every
declared optional root; comments and string literals are not dependency evidence. Dynamic imports
remain outside this AST gate and require the separate disabled/lazy-import behavioral contracts.
Concurrent RecordingTelemetry context evidence uses five-second barriers and one shared five-second
join deadline, aborts peer barriers on failure, and surfaces the original participant failure after
joining owned workers. Injected failures before/after the ready barrier verify that test cleanup returns;
daemon test threads also prevent a broken test participant from holding the process open indefinitely.
Capacity resource contracts inspect issued loopback mappings and CPU/memory/PID bounds, then inject
errors/interrupts after partial Collector acquisition to observe sink closure, both cleanup commands,
residual-resource inspection, capture deletion and preservation of the primary failure. Static asset
checks remain separate; runtime correctness does not depend on source-string spelling.
Serving qualification validates finite nonnegative millisecond samples and requires
p99_ms >= p95_ms before deriving overhead. Equal percentiles, including zero, are
valid raw samples; downstream ratios still enforce their own denominator rules.
The benchmark counting sink reserves quota for distinct new identities within each
request. Preflight and insertion share the state lock; duplicates still increment
total and duplicate delivery counts without consuming extra unique-identity quota.
The repository verifies three boundaries separately: backend-neutral Python behavior, translation through the public OpenTelemetry SDK, and delivery through the pinned Collector image.
Local command surface¶
The current Makefile defines:
| Target | Command contract |
|---|---|
setup |
Alias for the locked development and adapter installation |
install |
Locked sync with dev and opentelemetry extras |
doctor |
Required-tool, lock, interpreter, dependency, and optional-Docker diagnostics |
lint |
Ruff checks |
type-check |
Strict mypy checks |
docs-check |
Relative documentation links, verification test-module references, and agent command-surface validation |
architecture-check |
Platform/consumer boundary, optional adapter placement, and import-cycle validation |
test |
Runs static, unit, and contract targets |
test-focused |
One pytest path or node ID supplied as TEST |
test-static |
Lint, types, docs, architecture, and Collector static checks |
test-unit |
tests/unit |
test-integration |
tests/contract and tests/delivery |
test-docker |
Native Collector composition validation and local three-signal verification, with output retained under .build/collector |
test-e2e |
Alias for test-docker |
smoke |
Build, install, and verify the base wheel outside the source tree |
verify |
Complete local static, test, package-smoke, and Docker contract |
perf-smoke |
Low-rate local three-signal performance harness wiring and evidence check |
perf-capacity |
Opt-in stateless open-loop saturation search and cold-start confirmation |
local-grafana-up |
Start the pinned local Collector and Grafana LGTM topology |
local-grafana-down |
Stop the local topology while preserving its named data volume |
local-grafana-logs |
Follow logs for both local topology services |
build |
Builds wheel and sdist without source overrides into .build |
build-docker |
Pulls the three pinned Collector, telemetrygen, and Grafana LGTM images |
lock |
Refreshes uv.lock |
format |
Runs Ruff formatting |
Python test layers¶
| Test area | What it proves |
|---|---|
tests/unit/test_core.py |
Closed schema, privacy/cardinality normalization, limits, outcomes, context timing, recording adapter, lifecycle facade, no-op side effects, and consumer independence |
tests/unit/test_config_hardening.py |
Runtime type checks, endpoint matrix, TLS/mTLS combinations, secret behavior, logging ownership, signal combinations, and base import without optional dependencies |
tests/unit/test_runtime_hardening.py |
Fail-open boundaries, finite diagnostics, one shared deadline, worker bounds, reversible FastAPI, and partial-startup unwind |
tests/unit/test_collector_profiles.py |
Persistent and tail preflight success, required inputs, ranges, and cross-capacity constraints |
tests/unit/test_performance_analysis.py |
Performance evidence identity, reconciliation, classification, confidence, and comparison contracts |
tests/unit/test_performance_evaluation.py |
Public algorithm-evaluation seam, custom Measurements, deterministic repetitions, privacy, comparison, Assessment Rules, ranking mechanics, and report exchange |
tests/unit/test_performance_persistence_bounds.py |
Bounded checkpoint, report, and history reads under file growth; parsing the exact history bytes whose digest was verified |
tests/unit/test_performance_assessment_status.py |
Backward-compatible Assessment pass flag, closed decision/reason precedence, assessment-v1 evidence round trips, unavailable versus inconclusive evidence, defined-unavailable scorer semantics, and partial-candidate safety |
tests/unit/test_performance_paired.py |
Explicit private-index paired execution, candidate-specific failure conservation, seeded interleaving, identity preflight, and report privacy |
tests/unit/test_performance_adapters.py |
Dependency-free sync/async execution-adapter capability, lifecycle, cancellation, context, and plain-callable compatibility contracts |
tests/contract/test_performance_isolation.py |
Spawned trusted-factory execution, bounded JSON-only report IPC, parent validation, classified failure frames, and recovery after child failure |
tests/contract/test_performance_resources.py |
Stale-peak reset, distinct allocated/reserved scopes, exclusive device ownership, and unavailable sampler failures |
tests/contract/test_performance_llm_telemetry.py |
Consumer-schema GenAI aggregate mapping, rejected token attributes, payload exclusion, chunk/token distinction, and disabled no-op behavior |
tests/unit/test_performance_identity.py, tests/contract/test_performance_environment.py |
Closed execution identity and collection, unknown-field handling, quality hardware warnings, and strict timing compatibility controls |
tests/unit/test_performance_provenance.py |
Explicit Git/lock/distribution provenance, unavailable classifications, import isolation, bounded Git timeout, and serialized privacy contracts |
tests/delivery/test_performance_provenance.py |
Installed-wheel report-v2 provenance seam uses supplied evidence without source collection |
tests/delivery/test_performance_cli.py |
Safe subprocess CLI exits, trusted-factory isolation, declarative rules, immutable history list/show/local-export/prune workflows, preview-before-target retention, and no optional MLflow import for base history actions |
tests/unit/test_performance_randomness.py |
Domain-separated evaluation seed derivation, seeded-adapter reproducibility, local-RNG isolation, global-RNG preservation, legacy ordering, privacy, and boolean-seed rejection |
tests/unit/test_performance_resampling.py |
Shared-index paired resampling, whole-group selection, explicit estimands, typed uncertainty provenance, deterministic seeds, legacy trial-variability labeling, finite-score rejection, and bounded preflight contracts |
tests/unit/test_performance_difference.py |
Aggregate-preserving shared-resample difference intervals, objective orientation, ratio-denominator handling, closed comparison-document round trips, and report/payload isolation |
tests/unit/test_performance_compatibility.py |
Ordered safe schema/dataset/protocol/Measurement/provenance/execution diagnostics, strict identity safety, candidate-revision allowance, and quality-versus-timing execution severity |
tests/unit/test_performance_statistical_rules.py |
Consumer-owned confidence-aware improvement and non-inferiority gates, inclusive interval boundaries, point-gate separation, linked assessment diagnostics, unit/scope validation, and unavailable-evidence safety |
tests/unit/test_performance_sink.py |
Exact bounded OTLP request/item/duplicate counting and fault-mode bounds |
tests/unit/test_performance_runner.py |
Open-loop scheduling, 5% capacity refinement, workload bounds, and cleanup structure |
tests/unit/test_performance_execution.py |
Real spawn-process deadlines, descendant cleanup, caller interrupts and bounded status-channel ownership |
tests/contract/test_performance_serving_delivery.py |
Public bounded serving-sweep client injection, local saturation retention, and clean synthetic-server shutdown |
tests/contract/test_opentelemetry.py |
In-memory SDK trace/metric/log mapping, correlation, redaction behavior, bounds, outcomes, and operation context timing |
tests/contract/test_runtime_review.py |
Concurrent metric-series admission and collection, FastAPI histograms, numeric wire safety, exemplars, metric identifiers and explicit resource isolation |
tests/contract/test_http_transport_isolation.py |
Explicit headers/TLS for all signals, concurrent credential isolation and real local TLS/mTLS handshakes |
tests/contract/test_performance_review_analysis.py |
Signed relative semantics and legacy migration, exact family binding, early resampling admission, capped readers and corpus/order-independent slice inference |
tests/unit/test_collector_capture_readiness.py |
Staged capture completion, partial/malformed records, privacy rejection, fixed byte bounds and immutable final observations |
tests/contract/test_framework_contracts.py |
FastAPI status, exclusion, malformed context, concurrency, privacy, and reversible ownership; SQLAlchemy content exclusion/listener cleanup |
tests/delivery/test_verification_workflow.py |
Required CI jobs, Python matrix, installed artifacts, Collector gates, action pins, and cache scope |
tests/delivery/test_delivery_artifacts.py |
Agent entry points, repository docs/architecture validators, operational artifacts, and evidence examples |
tests/delivery/test_container_artifacts.py |
Pinned, non-root repository validation container and safe build context |
tests/delivery/test_local_grafana_artifacts.py |
Immutable image, loopback ingress, base-processing, and bounded signal-isolation contracts |
Contract and delivery test directories are import packages so same-named modules in separate test layers retain distinct identities during whole-suite collection.
The in-memory SDK tests use public provider/exporter behavior and avoid a network. The framework tests use a real FastAPI test client and an in-memory SQLite engine while exporting spans in memory.
Installed-package verifier¶
verify_installed_package.py runs outside the source tree in
Python isolated mode. It has two modes:
| Mode | Required result |
|---|---|
base |
OpenTelemetry is absent and cannot be imported |
adapter |
OpenTelemetry is present |
Both modes verify that telemetry resolves from the installed distribution rather than src/telemetry,
construct a disabled runtime, successfully flush it, shut it down twice, preserve existing root handlers,
and leave all opentelemetry modules absent from sys.modules. The script writes a JSON report containing
distribution/version, mode, module path, Python version, availability checks, and side-effect results.
The dependency-free base wheel also exports opt-in performance provenance collection and can attach a caller-supplied, typed provenance record to report-v2. It consults local Git and installed metadata only when a caller explicitly invokes collection with repository and lock inputs; the installed-package verifier exercises report-v2 attachment with synthetic supplied evidence while sources are absent, without triggering collection.
Collector validation¶
validate_collector_profiles.py has three modes:
--static-onlychecks repository invariants without Docker;--preflight persistent|tailvalidates the actual deployment environment without Docker; and- default or repeated
--profilevalidates merged configurations by runningotelcol validatein the pinned Collector image with synthetic environment values.
Default mode validates all 18 named compositions in Chapter 8.
Local Collector integration¶
Three-signal capture readiness uses incremental JSONL reads capped at 10 MiB per signal. Only complete records contribute to one immutable summary of counts, Resource Identity values, approved correlation and transport markers. Waiting and final verification use that same summary; nonempty files alone cannot establish delivery. Missing or partial records remain pending until the monotonic deadline, while malformed completed records, privacy violations, replacement/truncation, and byte-limit overflow fail immediately. Polls consume only new bytes and wait at most 250 ms. Normal phases derive their expected counts from the emitted workload; intentional fault phases retain the existing minimum of eight spans, four metrics and four logs.
The three Collector CI verification steps explicitly enable pipeline failure propagation. A failing
validator/verifier or tee exits nonzero while evidence digesting and upload retain their always-run
conditions. Delivery contracts execute the committed zsh step bodies against controlled producers and
real log destinations; these tests establish local shell behavior, not hosted CI qualification.
verify_collector_local.py creates temporary Docker networks,
containers, directories, and synthetic data. Cleanup runs in finally blocks. It performs these scenarios:
| Scenario | Executable assertion |
|---|---|
| Local three-signal ingress | gRPC and HTTP/protobuf traces, metrics, and logs reach JSONL capture with all six required resource identities |
| Safety | An authorization canary never reaches capture; a Product identifier is removed from metric dimensions but remains available for trace/log correlation |
| Transport coverage | Both gRPC and HTTP log bodies appear; capture has at least 8 spans, 4 metrics, and 4 logs for the default synthetic count |
| Failed fan-out | Unreachable Honeycomb branches do not stop local branches |
| Persistent saturation | A one-entry failing persistent queue reports “sending queue is full” while local branches still progress |
| Persistent restart | File-backed queued data exists during outage, survives source Collector restart, and drains to a newly available local OTLP sink |
| Stateless sampling | A fixed 1,000-trace corpus at 20% retains 150–250 unique trace IDs, with identical IDs in two fan-out captures |
| Tail sampling | Error and slow traces are retained as complete traces, baseline success and incomplete traces are dropped at 0%, and a late span follows the retained decision |
| Tail-tier isolation | Metrics and logs bypass the sampler and continue after the sampler container stops |
| Gateway security | A temporary trusted TLS endpoint rejects missing bearer auth, accepts correct auth, and does not export the bearer token |
The persistent test permits duplicates, matching the at-least-once contract. Verification uses only local or deliberately unreachable endpoints and synthetic credentials.
CI graph¶
flowchart TD
P[Trusted push, same-repository pull request, or manual dispatch] --> Q[Quality and tests / Python 3.14]
Q --> B[Package contracts / Python 3.14]
B --> M[Installed package / Python 3.12, 3.13, 3.14 / serial]
M --> U[Dependency compatibility / Python 3.12 and 3.14 / serial]
U --> C[Collector integration / Docker Desktop]
| Job | Timeout | Main behavior |
|---|---|---|
| Quality and tests | 25 min | Locked source/test-dependency install, harness diagnosis, Ruff, strict mypy, all repository tests, and branch coverage |
| Package contracts | 30 min | Build exactly one wheel and sdist, record portable SHA3-512 digests, and verify clean base and contract-test adapter installations outside the source tree |
| Installed package | 90 min each | Serial Python 3.12–3.14 cells run the installed-candidate unit/contract suite with its declared test extras and independently install/import every optional integration |
| Dependency compatibility | 45 min each | Serial Python 3.12/3.14 cells cross both SQLAlchemy edges and both OTLP transports in fresh environments |
| Collector integration | 45 min | Require Docker Desktop, run static checks, validate every native composition, run bounded local integration, and retain result digests |
Every job selects [self-hosted, macOS, ARM64]. The dependency chain and max-parallel: 1 matrices
prevent one Mac mini from accumulating a large queue of competing matrix cells. Concurrency cancels a
superseded run for the same Git ref. Fork-authored pull requests are deliberately skipped because a
persistent self-hosted runner is not an isolation boundary for untrusted code.
Workflow permissions are contents: read. Checkout cleans the persistent workspace and does not persist
credentials. Third-party actions are pinned to full commit IDs. The local composite setup action validates
the standard macOS and ARM64 runner labels, selects a provisioned ARM64 interpreter from
/Users/runner/hostedtoolcache, and installs exactly uv==0.10.4. GitHub Actions dependency caching is
disabled because the self-hosted runner retains uv's local cache; evidence directories are explicitly
recreated and are never cached.
Run steps use zsh, matching the Mac mini's configured interactive shell. The runner must use Actions
Runner 2.327.1 or later, run as a logged-in LaunchAgent user that can reach
Docker Desktop, and expose the standard self-hosted, macOS, and ARM64 labels. Python 3.12, 3.13, and
3.14 must be provisioned in the macOS self-hosted tool-cache layout, with
AGENT_TOOLSDIRECTORY=/Users/runner/hostedtoolcache configured for the runner service. The setup action
adds conventional Homebrew and Docker Desktop command directories to PATH.
Collector commands use step-native timeouts rather than the GNU-only timeout executable, and repository
evidence uses the portable sha3sum.py helper rather than platform-specific
OpenSSL syntax.
JUnit, coverage, SHA3-512 package digests, package-install reports, Collector output/checksums, and compatibility
metadata have upload steps requesting 14-day retention for artifacts actually produced and uploaded.
Upgrade cells additionally retain normalized candidate, Python,
SQLAlchemy, OpenTelemetry, Collector, transport, configuration-fingerprint, business-result, and
listener-cleanup evidence. The verification workflow contains no publishing, signing, deployment,
backend secrets, or package-write permission. The separate
documentation workflow can deploy Cloudflare Pages on
non-pull-request runs on main, using configured Cloudflare secrets. That capability grants no agent
authority to publish and does not establish that a deployment succeeded.
Local output directories are working evidence, not durable archives: build, smoke, performance and documentation targets can clear or recreate their output directories. Consumers must copy evidence they need to retain to an explicitly owned archive before rerunning those targets. Local checks do not establish hosted artifact upload or retention.
Coverage databases (.coverage and parallel-run variants), root XML reports and htmlcov/ are
generated machine-local state excluded from source control. Regenerate them from the current checkout;
they can contain local source paths and are not release provenance. The verification workflow retains
the generated coverage XML alongside its test/job evidence under the artifact policy above. A review
archive should explicitly record candidate identity, command, environment and result rather than
shipping a stale database in source. Neither tests nor package installation depend on such a database.
Package and compatibility contract¶
The package uses setuptools, discovers packages under src, includes py.typed, and has no mandatory
runtime dependencies. The base wheel includes the dependency-free telemetry.performance evaluation,
paired-resampling/difference, randomness-plan, and execution-adapter contracts; they import no ML framework, provider, or optional package. The
installed-package verifier executes a minimal custom Measurement without importing OpenTelemetry. The
opentelemetry extra constrains OpenTelemetry API/SDK/exporters to the tested
1.44 minor, FastAPI instrumentation to 0.65b0, FastAPI to the supported >=0.116,<1 range,
and SQLAlchemy to the 2.0 minor. SQLAlchemy's lower bound is 2.0.0 on Python 3.12 and 2.0.44
on Python 3.13–3.14; the older release cannot import on those interpreters. The FastAPI package is
required because the adapter imports its instrumentor when the optional adapter loads. Development
dependencies also contain FastAPI, HTTP client, Ruff, mypy, pytest, and coverage tooling.
The wheel does not package the Collector YAML; Collector configuration is a separate repository artifact.
Optional integration extras remain outside the base wheel: performance-pytorch,
performance-sklearn, performance-resources, performance-nvml, performance-mlflow,
performance-pytest, and performance-datasketches each lock an installable package range without
importing it from the base package.
They are installation infrastructure only; no adapter, external provider, or device is qualified by this
declaration. CUDA is an explicit unsupported compatibility cell until a real-device job retains
environment-specific evidence. A PyTorch lock resolution may include platform-marked NVIDIA transitive
packages; their presence is not CUDA qualification. The optional-integration CI matrix exercises the declared extras against
the core Python 3.12–3.14 range using installed candidate wheels; it never treats a synthetic device as
CUDA evidence.
The PyTorch contract suite includes a real CPU installation-only adapter invocation when PyTorch is
provisioned. An absent installation is a skip, never a successful device result. This replaces the
unconditional real-device placeholder and does not qualify CUDA events, accelerators or device timing;
those remain unsupported until separate provisioned-device evidence exists.
compatibility.toml keeps independent identifiers for platform distribution, Consumer Integration
contract, Python range, OpenTelemetry lines, the reviewed GenAI semantic-convention snapshot, Collector
distribution/version/image digest, Collector
configuration contract, local Grafana distribution/version/image digest, qualified SQLAlchemy
lower/locked-upper edges, repository digest algorithm, and first consumer/version. Repository-owned
evidence manifests use schema version 2 and lowercase SHA3-512 hex digests. OCI image references
retain their registry-issued SHA-256 identifiers.
Qualification evidence retains distinct Python-matrix, upgrade-matrix, Collector, and raw-sample
artifacts. qualify_platform.py requires at least five paired disabled/enabled samples with fixed
resources, warmup, and randomized first-mode order. The upgrade compatibility verifier owns an ephemeral
local HTTP/protobuf or gRPC fault endpoint, returns a permanent rejection and records request/response
counts without retaining payloads. Upgrade report schema 2 qualifies outage only when at least one
rejected export and no successful export were observed. A successful receiver produces failed outage
qualification; no acquired export produces incomplete evidence and collector_unavailable: null.
SQL query result and listener cleanup remain separate checks. Runtime/export deadlines and local server
shutdown are bounded; this is controlled local fault evidence, not native Collector or hosted delivery
qualification. The qualification evaluator recomputes worst observed serving latency,
throughput and error regressions; background duration, CPU and RSS regressions; outage p95 regression;
and 30-minute monotonic resource growth before applying the fixed platform budgets.
Performance evidence writes performance-evidence/raw-v5 and
performance-evidence/summary-v5; retained raw-v1/v2/v3/v4 remain readable but cannot qualify current
capacity. Raw v5 separates wheel/source/lock attestation from actual execution. The supplied wheel
is explicitly attested-not-executed: Collector trials do not execute candidate SDK code. Only the
Collector appears in immutable image identity. Generator and sink are identified as local Python
with actual source SHA3-512, interpreter version and installed grpcio/protobuf/opentelemetry-proto
versions. An unused telemetrygen image or local script masquerading as an image cannot substitute
for these records. Raw and summary validators enforce the closed execution fields and Python/version
consistency; execution also participates in comparison identity. Artifact identity establishes no
warmup or environment stability. Capacity search sets its reference only from a passing initial
low-load point with at least 10,000 latency items; later high-load or failed points cannot replace it.
All observed search points remain retained. Raw v5 has a closed latency plan designating the low-load
rate and either reference-establishment or capacity role. Establishment at that rate requires
10,000 latency items, eligible controls and all non-relative-latency gates; its baseline is null.
Capacity trials retain a distinct passing source report and checksum, independently validated for
classification, p99 and execution/candidate compatibility. Chained sources, same-run/startup sources,
incompatible identities and unbound caller scalars cannot establish the reference. Missing references
make otherwise eligible trials inconclusive. The runner has no same-point or constant-one fallback.
Summary v5 preserves run-bound reference evidence and validates it beneath selected capacity.
Its closed interval assumptions state independent representative trial sampling for percentile
bootstrap medians, independent residuals for approximate trend intervals and a bucketed p99 point
reference without ratio coverage guarantees. Nominal 95% coverage is neither simultaneous nor adjusted
for adaptive capacity search. Closed capacity-experiment/v1 records distinguish observed values
from unavailable acquisition for warmup/environment stability, generator CPU/throttling and sink
CPU/RSS/headroom. Missing acquisition makes current trials inconclusive; corresponding health
fields must project null. The native parent reconstructs unavailable records for these controls
because its backend does not acquire them. Measured generator CPU seconds and elapsed seconds are
retained separately without implying normalized CPU headroom. Acquired sink headroom requires
CPU and RSS observations consistent with declared or applied memory limits. Summary v5 retains
run-bound experiment records and independently rejects unknown controls beneath selected capacity.
Raw v5 preserves closed capacity-constraints/v1 records for declared/applied wall, disk,
generator CPU/memory and sink CPU/memory limits, including enforcement status and source. The
independent validator rejects missing/unknown controls, nonfinite/bool/unsupported limits, applied
limits above declarations, incompatible sources and invented applied values for unavailable controls.
Any unavailable control makes classification inconclusive with constraints_unavailable; complete
telemetry measurements cannot override missing resource controls. Independently retained full-queue
observations make v4 classification inconclusive with constraints_breached, even with claimed quotas.
Summary v5 retains run-bound
constraint evidence and includes controls in comparison identity, so unlike enforcement cannot pool.
The summary comparison reader checks run/curve coverage and rejects unavailable controls beneath a
selected capacity even if the summary checksum has been recomputed.
The current host-process runner explicitly reports generator/sink quotas and hard disk quota as
unavailable, even when live polling detects no breach. Its parent upgrades only POSIX wall enforcement
after verified worker completion and external cleanup. It reconstructs controls from the backend
actually launched, so child quota claims cannot attest limits the parent never set, checks the owned
run ID, rewrites and verifies the retained checksum,
then checks the declared deadline. Consequently current local host-process reports cannot select
constrained capacity. Synthetic cgroup/filesystem quota records test analysis only; they do not
implement native quota control or qualify the current runner.
Before grouping or bootstrap, capacity analysis rejects duplicate run IDs, reused Collector instance
digests and any mismatch in full within-summary candidate identity (wheel, source, dirty state and lock).
Separate candidate summaries may still compare different wheels/sources under the same comparison
environment; candidate pooling and between-candidate comparability are distinct policies.
Raw v5 preserves the v2/v3 binding of each run to Docker-inspected startup metadata:
SHA3-512 of its container ID, startup time within the run interval, and zero observed startup restarts.
Summary v5 retains that evidence and explicitly states that distinct container starts do not prove
experimental independence. Resource isolation, scheduling and environmental control remain experimental
assumptions; UUID uniqueness alone is insufficient.
Raw v5 also preserves baseline/final metric acquisitions and per-sample metric/Docker acquisitions.
Interrupted/failed attempts also retain checksummed performance-evidence/raw-aborted-v1 documents.
This separate raw format always reports inconclusive and explicitly unavailable measurements/cleanup
verification; it supplies neither invented startup identity nor zero observation counts. The reader
validates its closed fields and checksum; capacity summaries reject aborted attempts. Retention failure
adds a fixed diagnostic note and preserves the primary exception. This evidence does not establish
that a disk quota or generator/sink CPU/memory quota was controlled. On supported POSIX main-thread
execution, a spawned process-group owner enforces the trial execution deadline including startup,
with 25 seconds reserved for bounded root/group and external Docker cleanup. Parent and child share
UUID-derived names before acquisition; a killed child cannot prevent parent removal attempts. The
parent loads retained evidence after verified normal completion; the control channel carries one-byte
statuses only. SIGINT/SIGTERM preserve interrupt/abort outcomes and restore caller signal handlers.
Cleanup errors produce fixed diagnostics or notes, never valid capacity evidence.
Traffic argument validation precedes allocation/acquisition: finite positive rates, at most 300 seconds
per emission phase, at most 500,000 scheduled items, and integer concurrency 1–64. Resource declarations
have finite supported bounds (CPU at most 64, wall at most 3600 seconds, integer memory/disk MiB at most
65,536; Collector memory at least 64 MiB). Collector flags use declared CPU/memory; the memory limiter
uses integer 80% limit/20% spike values and reports their difference as the soft threshold. Requested
phase durations must fit the wall value minus cleanup reserve. CLI trial counts are 1–50.
The parent checks logical bytes for the entire output directory and the 2 GiB filesystem free-space
floor before acquisition, between control polls (at most 100 ms waiting), and after worker completion.
Traversal is bounded to 4096 entries and rejects links or unavailable observations. These checks are
polling detection, not a hard filesystem quota; transient overshoots between polls are not excluded.
Collector metric sampling latches observed full queues in a fixed empty marker during warmup,
measurement and drain; the parent guard aborts even a stalled sender when the marker appears. Final
metrics also reject a full queue. Queue detection follows the bounded metric scrape cadence, not
every enqueue. A detected resource breach retains raw inconclusive resource-limit-exceeded evidence.
Docker BlockIO is I/O traffic rather than storage occupancy. Generator/sink CPU/memory quotas remain
unavailable for the host Python processes and are explicitly represented as nonqualifying in raw v5
and summary v5.
Numeric zero is measured only when acquired; missing metrics or failed parsing never manufacture zero.
Required coverage includes refusal, sent, enqueue/send failures, queue size/positive capacity and
Docker CPU/RSS/disk/network observations. Parse/unavailable/stale status, missing families, observed
counter decreases or sampling gaps exceeding 4.5 seconds make the trial inconclusive. Docker samples
become stale after three seconds. Incomplete derived health measurements use null. The raw validator
recomputes coverage and sample projection and rejects a contradictory complete claim before classification.
Stateless and bounded local-file capacity runs are opt-in and local-only;
local-file cells retain byte-only capture metadata and use the counting sink for exact
item reconciliation. Capacity generation requires performance-workload/v2, with explicit per-signal
attribute counts and minimum serialized signal-item bytes, plus bounded items/request. Nominal and
balanced workloads declare ten attributes and 512-byte item targets; the Safety Floor workload declares
64 attributes/16,384-byte targets for spans/logs and 16 attributes/3,072-byte targets for metric points.
Resource attributes are counted separately. Homogeneous full batches contain 128 items; final partial
batches preserve every intended item, and balanced arrivals are interleaved before per-signal batching.
Each item retains its own intended arrival; latency includes batch formation, while generator lateness
measures dispatch after the last intended item in the batch. Failed requests account for all their items.
Checksummed observations retain payload-free generator-wire-shape/v1 metadata: exact measured
serialized-item/request byte distributions and conserved counts/totals. The builder checks the declared
shape and arithmetic before retention; absent current wire-shape evidence cannot claim complete measurements.
Targets exclude shared envelopes/transport framing; protobuf encoding widths can vary and bounded padding
may slightly exceed a minimum target. Workload v2 IDs/hashes prevent comparison with incompatible v1
one-item evidence; legacy workload files remain readable but are rejected before traffic generation.
These offline/injected contracts do not qualify native Collector capacity or hosted throughput.
The public-runtime microbenchmark retains ten repeated 15-second raw
repetitions by default, including public-call, flush, and shutdown timing, without changing the
paired-overhead budgets owned by qualification schema 2.
Emission elapsed, flush, shutdown and total measured lifecycle durations are separate nanosecond
fields; construction is excluded. Mode/signal selectors are required by the CLI; duration is finite,
positive and at most 300 seconds, repetitions are integers 1–100, and total requested emission time is
at most 3600 seconds, checked before runtime creation. The sampled call population is the first up
to 10,000 emissions per repetition, with omitted counts; it cannot support whole-run latency inference.
Its benchmark-only in-memory recorder keeps
one completed operation and one observation in fixed deque windows; ordinary RecordingTelemetry
still retains all captures for contract tests. In-memory public-call cost includes schema validation,
context, locking, record allocation and eviction, rather than delivery or growing-history retention.
All modes emit the same selected public signal workload; disabled remains the no-op baseline and OTLP
modes include SDK translation/queueing. Reports disclose those adapter scopes and the separate first
10,000 public-call timing sample limit.
The local runtime harness validates OTLP endpoint locality before the runtime factory: literal
IPv4 loopback or IPv6 ::1, with exact localhost normalized to 127.0.0.1 without DNS.
Credentials, ambiguous hosts, query/fragment and remote addresses reject with fixed diagnostics;
production configuration retains remote endpoint support. The endpoint must be a direct local
Collector rather than a redirecting proxy.
Retained-object contracts characterize capture storage, without
claiming full-duration RSS, OOM resilience or actual throughput qualification. Ordinary CI validates
deterministic analysis, schema, sink, workload, and runner contracts. Absolute capacity is not a
heterogeneous-runner gate,
and qualification schema 2 does not consume performance results.
Generic Consumer Evaluation Reports use performance-evaluation/report-v1 by default and
performance-evaluation/report-v2 when a Consumer explicitly supplies DatasetIdentity; report-v2 may
also retain an explicitly supplied, versioned provenance record and explicitly declared, normalized
slice summaries. Slice summaries contain only safe labels/revisions, aggregate counts, scores, and
uncertainty descriptors; private membership and case content never leave process memory. Neither
carries Collector artifact/environment identity and neither can substitute for Capacity Evaluation
evidence. Readers retain report-v1 compatibility and reject unknown report-v2 extensions or nested
provenance versions.
The base wheel also exposes dependency-free ExecutionIdentity, closed Measurement execution comparison
profiles, and opt-in collect_execution_identity() collection. Collection uses only the standard
library unless a Consumer explicitly passes a framework reader; missing accelerator evidence is
classified as unavailable and Consumer-controlled execution settings are unsupported rather than
guessed. Synthetic controlled-reader fixtures prove normalization, validation, and import isolation, but
do not qualify any hardware, provider, or hosted environment.
Paired candidate evaluation additionally exposes non-serializable PairedMeasurementEvidence to its
in-process statistical consumer. Only complete CaseMeasurement evidence supplies aligned numeric scores
and its original aggregation; incomplete or unsupported evidence carries only counts. Installed or
persisted aggregate Evaluation Reports cannot supply paired uncertainty.
The opt-in hot-path investigation retains synthetic local raw repeats for schema lookup/cached instrument locking, real DataSketches update serialization and quota-check cost, and private paired-output/overlapping-slice retention. Each family repeat uses a fresh process with a parent-owned timeout; repeat spread and observed RSS are disclosed without claiming an idle host, hard memory quota or production capacity. Binary sketches and candidate outputs are not retained. Deterministic clock and weak-reference contracts preserve the existing throughput scopes: single trial-loop wall time and paired candidate successful-call duration are different denominators. These local measurements neither qualify delivery nor authorize changing Consumer Measurement semantics or relaxing any Safety Floor bound.
There is no automated release or registry publication. A consumable release additionally depends on the first consumer passing against the candidate wheel and pinned Collector tuple, which is an external cross-repository gate rather than an implemented job here.
Counting-sink latency bounds¶
The local counting sink retains the first 10,000 valid scheduled-to-receive latency
samples across delivery attempts, including duplicates. Attempt, item, and duplicate
counts remain exact. Snapshots declare delivery_attempts_first_samples, the exact
observation count, and the omitted count; omission makes qualification measurements
incomplete. Reset clears samples and counts. Snapshot copying is bounded by this
sample budget and the HTTP endpoint enforces a 512 KiB serialized output ceiling.
These local observations do not establish hosted or production qualification.