Why a Missing IOSM Metric Must Block the Score
A dashboard can produce a number even when the system has not produced knowledge.
That is one of the most dangerous properties of aggregate engineering scores. A missing measurement is quietly converted to zero, copied from the previous run, or removed from the denominator. The formula still returns a clean decimal. The decimal looks comparable. A phase gate passes. But the score is now describing the fallback policy, not the system.
IOSM takes a stricter position: if a required metric is unknown, the aggregate IOSM-Index is unknown. This is not a formatting choice. It is an execution boundary.
The completeness gate comes before aggregation
IOSM tracks six metric families: semantic quality, logic, performance, simplicity, modularity, and flow. Its reference runtime represents an unavailable measurement as null. Before calculating the weighted index, it checks that all six values are numeric. If any value is absent, calculateIosmIndex() returns null rather than a partial score.
The mechanism is small:
measure each required dimension
↓
complete numeric record?
no ──┴── yes
unknown weighted index
This ordering matters. Aggregation compresses information. Once an unknown has been replaced with a plausible number, the final index cannot reveal whether the system improved or whether the measurement pipeline failed.
The IOSM specification defines the methodology around measurable quality gates, normalized metrics, evidence confidence, and cross-metric guardrails. The reference metric implementation makes the completeness rule executable.
Three tempting fallbacks, three different lies
Suppose an Optimize phase reports:
| Metric | Value |
|---|---|
| semantic | 0.82 |
| logic | 0.91 |
| performance | 0.88 |
| simplicity | unknown |
| modularity | 0.79 |
| flow | 0.84 |
There are three common ways to force a score from this record.
Treat unknown as zero. This pretends the system demonstrated catastrophic simplicity. It punishes missing telemetry as if it were measured product behavior.
Renormalize the remaining weights. This silently changes the scoring model for one run. The resulting index is not comparable with a complete baseline because “one IOSM point” now has different semantics.
Carry the previous simplicity value forward. This converts stale evidence into current evidence. It may be useful as a display estimate, but it cannot authorize progression unless freshness is part of the contract.
These policies are not interchangeable. Each answers a different question. None answers the question the complete index claims to answer: what is the current weighted health of the system across all required dimensions?
Unknown is a control state
One useful proposed pattern—not part of the current repository runtime—is to model metric availability as a small state machine rather than a nullable UI field:
UNMEASURED → MEASURED → VALIDATED
↑ │
└── STALE ←─┘
│
INVALID
Only VALIDATED values should enter a gate-authorizing aggregate. MEASURED may still be awaiting schema checks or evidence validation. STALE can support diagnosis but should not impersonate the current run. INVALID means the collector returned data that cannot satisfy the metric contract.
This distinction connects directly to the earlier IOSM idea that baselines must be comparable. Comparability is not only about using the same benchmark. It also requires the same required dimensions, normalization rules, weights, and evidence boundaries.
It also complements evidence-confidence gates. Metric value and confidence are separate axes. A value can be high while its evidence is weak; a value can also be entirely unavailable. A weighted health score must not collapse those states into one decimal.
Gate the collector, not only the code change
When a metric is missing, the immediate instinct is to inspect the feature under test. Often the correct target is the measurement pipeline.
A useful phase report should identify:
{
"metric": "simplicity",
"status": "unmeasured",
"required": true,
"reason": "onboarding-time sample absent",
"collector": "simplicity-v2",
"action": "restore evidence before phase close"
}
That artifact changes the operator’s decision. The phase is not labeled failed because simplicity regressed. It is blocked because the system cannot establish whether the simplicity guardrail holds.
This is the same discipline behind an explicit waiver register: exceptional progression must be visible, scoped, owned, and reviewable. A waiver may acknowledge unavailable evidence under a defined risk decision. It must not manufacture a metric value.
The index is a receipt, not an opinion
A composite score is useful because it compresses a complex state into something operators can compare. Compression is legitimate only after the input contract is satisfied.
The practical rule is strict:
- declare the required metric set for the cycle;
- preserve unavailable values as unknown;
- validate measurement schema and evidence freshness;
- calculate the index only from a complete record;
- block phase closure when a required input is missing;
- record any exception as a separate waiver, never as synthetic data.
This article explains a repository-defined mechanism; it does not claim that the policy has been independently benchmarked or that it guarantees production outcomes. The boundary is narrower and more useful: it prevents an incomplete measurement record from becoming a false authorization artifact.
Engineering methodology fails when uncertainty is hidden in arithmetic. A missing metric is not a bad score. It is the absence of a score—and the runtime should be strong enough to say so.