How to Test IOSM Baseline Comparability
A baseline is not a number. It is a measurement contract.
IOSM defines a baseline as the measured pre-change state, then uses it to calculate deltas, evaluate guardrails, test hypotheses, and decide whether a system is improving. That chain looks rigorous until the measurement method changes between before and after.
The same label can hide a different population, window, environment, unit, aggregation, collector, or delivery boundary. The arithmetic still works. The conclusion does not.
I think an IOSM cycle should therefore admit a delta only after a baseline comparability gate. The gate does not ask whether two values are close. It asks whether they describe the same kind of observation.
Three possible controls
I considered three mechanisms for this problem:
- A tolerance on metric values. Reject an after-value that moves too far. This detects surprises, not semantic drift. A changed collector can produce a plausible value.
- A free-text note in the Cycle Report. Better than silence, but difficult to validate and easy to omit.
- A machine-readable comparability manifest. Bind the dimensions that make two measurements legitimately comparable, then classify any difference before computing a delta.
The third mechanism is the useful one. It turns “we measured the same thing” from an assumption into an artifact.
The comparability manifest
The IOSM v1.0 specification already requires timestamps, scope, cycle scope, delivery boundary, baseline measurements, source systems, raw measurements, observation windows, evidence tiers, and confidence. The proposed manifest does not replace those fields. It joins their identities at the point where a comparison is authorized.
{
"metric": "performance.latency.p95",
"subject": {
"system": "checkout-api",
"cycle_scope_hash": "sha256:…",
"delivery_boundary": "checkout-api-service",
"revision": "git:4f2a…"
},
"measurement": {
"semantic_id": "http.server.request.duration",
"semantic_version": "otel-semconv:1.43.0",
"unit": "s",
"aggregation": "p95",
"population": "production requests excluding health checks",
"window_policy": "rolling-24h",
"attributes": ["service.name", "http.route"],
"collector": "benchmark-harness@sha256:…"
},
"environment": {
"profile": "production",
"region_set": ["eu-central"],
"load_class": "weekday-normal"
},
"comparison_policy": {
"required_equal": [
"semantic_id",
"unit",
"aggregation",
"population",
"window_policy",
"delivery_boundary"
],
"allowed_changes": ["revision"],
"review_if_changed": ["semantic_version", "collector", "region_set", "load_class"]
}
}
The manifest has four jobs.
Subject identity says what was measured. Cycle scope and delivery boundary matter because a local service metric cannot silently become a repository-wide or portfolio metric.
Measurement identity says how the observation acquired meaning. The metric name alone is insufficient. Unit, aggregation, population, attributes, and collection code are part of the definition.
Environment identity records conditions that can alter the result without any code improvement. It need not capture the universe. It must capture the factors the comparison claims to hold stable.
Comparison policy separates expected change from invalidating change. The code revision should normally differ. The unit should not.
A four-state gate
Binary pass/fail is too coarse. I would use four outcomes:
| State | Meaning | IOSM action |
|---|---|---|
COMPARABLE |
Required dimensions match | Compute the delta |
REBASED |
A reviewed semantic change produced a new baseline | Start a new comparison lineage; do not splice old and new deltas |
CONDITIONAL |
A declared environmental difference remains | Compute only with an explicit limitation; block stabilization-grade use |
INCOMPARABLE |
A required dimension differs or provenance is missing | Do not compute an authoritative delta |
This distinction matters. Rebasing is not failure. Sometimes instrumentation improves, a service boundary changes, or a metric convention is upgraded. The mistake is pretending the new series continues the old one without a break.
A rebase receipt should preserve both manifest hashes, the reason, the reviewer, the first valid observation window, and the metrics whose histories were split. Trend charts can then show a discontinuity instead of drawing a false line through it.
Compare semantics before values
OpenTelemetry’s metric guidance provides a useful external boundary: common attributes should be named consistently, semantic ambiguity should be avoided, units should be explicit, and aggregations over attributes should remain meaningful. Those rules are not an IOSM implementation, but they support the same engineering principle: metrics become comparable through stable semantics, not through similar spelling.
Consider flow = 0.78 before and flow = 0.84 after. The improvement is meaningless if the first value used a repository delivery boundary and the second used one high-performing service. IOSM explicitly requires the delivery boundary and forbids cross-system flow comparisons unless boundaries are materially equivalent. A comparability gate makes that rule executable.
The same applies to performance. A p95 from a 24-hour production window and a p95 from a five-minute synthetic run may both be valid evidence. They are not automatically valid operands in one subtraction.
Where the gate belongs
The gate should run twice.
First, during planning, it validates that the baseline manifest is complete and that the intended after-measurement can reproduce its required dimensions. If the team cannot reproduce the measurement contract, the hypothesis should be narrowed before execution.
Second, after collection and before CALCULATE_METRIC_DELTAS, it compares the baseline and after manifests:
baseline manifest
+
after manifest
↓
comparability classifier
├── COMPARABLE → delta → guardrails → hypothesis evaluation
├── CONDITIONAL → limited delta → no stabilization claim
├── REBASED → new lineage → fresh baseline required
└── INCOMPARABLE → unresolved evidence → CONTINUE or FAIL
This gate complements, rather than duplicates, evidence confidence. Confidence asks whether evidence is fresh, reproducible, and trustworthy. Comparability asks whether two trustworthy observations can support one delta. High-confidence evidence can still be incomparable.
It also sharpens regression-budget composition. The strictest budget is useful only after the negative delta is legitimate. A precise policy applied to a semantically invalid subtraction is still invalid.
Finally, the manifest should travel through the phase handoff. Later phases must know not only the baseline values but the contract under which those values remain usable.
What this mechanism does not prove
A comparability manifest does not prove that a metric captures user value. It does not remove confounding variables, guarantee a representative sample, or turn a proxy into an outcome. It cannot make two fundamentally different systems comparable by declaration.
It does something narrower and necessary: it prevents an IOSM cycle from claiming change when the meaning of measurement changed first.
The current IOSM specification and schema contain many ingredients for this control, but the manifest and four-state gate described here are an architectural proposal, not a claim that the reference runtime already implements them. No benchmark or production-readiness claim is made.
The engineering rule
Before asking whether a metric improved, ask whether the comparison survived.
That question changes the artifact chain:
before value + after value ≠ delta
before manifest
≡ after manifest
→ authorized delta
IOSM is strongest when every decision can explain not only what changed, but why the evidence on both sides belongs in the same equation. A baseline should carry that proof with it.
Sources
For the complementary part of this workflow, see How to Migrate IOSM Metric Schemas Safely.