How IOSM Combines Regression Budgets Across Multiple Goals
A multi-goal improvement cycle creates a question that most methodologies leave unanswered: when several changes share one system, whose risk budget applies?
One goal may tolerate a small increase in complexity to gain performance. Another may require simplicity to remain unchanged. The project itself may impose a broader guardrail. Averaging these allowances is attractive—and wrong. It lets a permissive goal spend safety reserved by a stricter one.
IOSM CLI implements a compact alternative. For each metric, the effective cycle budget is the minimum of the global allowance and every hypothesis allowance:
effectiveBudget = globalBudget[metric];
for (const hypothesis of hypotheses) {
effectiveBudget = Math.min(
effectiveBudget,
hypothesis.allowed_negative_delta[metric]
);
}
This is not a benchmark result or a claim of universal optimality. It is a repository-verified composition rule at commit 6cb971c. Its value is architectural: it makes parallel goals compose without silently weakening the strongest constraint.
A budget is permission, not prediction
An expected positive delta says what a hypothesis hopes to improve. An allowed negative delta says what it is authorized to spend elsewhere. These are different objects.
Suppose a cycle has two goals:
| Metric | Global guardrail | Goal A allowance | Goal B allowance | Effective budget |
|---|---|---|---|---|
| performance | 0.03 | 0.02 | 0.01 | 0.01 |
| simplicity | 0.03 | 0.02 | 0.00 | 0.00 |
| modularity | 0.02 | 0.01 | 0.02 | 0.01 |
The cycle does not receive the sum, mean, or largest value. It receives the strictest value per dimension.
That means Goal A cannot argue that its simplicity allowance is 0.02 after Goal B declared zero tolerance. Both goals execute against the same resulting system, so both inherit the strongest promise made about it.
Why minimum composition is the safe default
It prevents permission laundering
Without a composition rule, a broad optimization goal can become a route around a narrow correctness or clarity requirement. The cycle still displays all original guardrails, but execution follows whichever number is convenient. The declarations become decorative.
Minimum composition closes that route. Adding a hypothesis can only preserve or tighten the budget; it cannot expand authority.
It is monotonic
This gives the rule a useful property:
More obligations never create more permission.
If a third goal enters the cycle, the effective budget either stays unchanged or becomes stricter. Removing a goal may relax the cycle, but that is an explicit scope change, not an accidental side effect of arithmetic.
Monotonicity matters for agents. A runtime can re-evaluate the budget after planning changes without interpreting intent or negotiating which goal “matters more.”
It keeps aggregate scores honest
An index can improve while one protected dimension regresses. IOSM separately calculates metric deltas and validates each negative delta against the composed budget. If the observed decline exceeds the allowance, the guardrail reports the metric, actual decline, and budget.
This complements the evidence-confidence gate. Confidence determines whether observations deserve decision authority. Budget composition determines the maximum regression those observations may authorize. Strong evidence cannot legalize a forbidden decline.
Missing measurements are not free space
The implementation returns an unresolved guardrail result when a before or after metric is missing. It does not interpret absence as zero decline.
That detail is essential. Otherwise an agent could “pass” a strict budget by failing to measure the protected dimension. The correct state is not success or failure, but insufficient basis for a gate decision.
This is the same control principle behind treating an expired IOSM waiver as a new decision rather than editing history: missing or stale authority must not be converted into permission.
Conservative does not mean context-free
Minimum composition is safe, but it has boundaries.
First, all goals in the formula are assumed to share one cycle and one resulting system. If two changes operate on genuinely independent scopes, forcing one budget across both can be unnecessarily restrictive. The right response is not to average constraints; it is to split the cycle or model scopes explicitly.
Second, normalized metric deltas must be comparable. A 0.01 decline only means something if the metric definition, baseline, and measurement method are stable.
Third, a legitimate exception still needs governance. IOSM includes decline-coverage and waiver concepts, but a waiver should identify the blocked condition, owner, expiry, and evidence. It should not mutate the base budget invisibly.
Finally, the strictest budget may reveal an infeasible set of goals. That is useful information. The planner should separate, reorder, or reject goals rather than ask execution to reconcile contradictory promises after the diff exists.
A practical pre-execution gate
Before an agent starts a multi-goal cycle, a runtime can produce a budget receipt:
{
"cycle": "cycle-042",
"metric": "simplicity",
"global_allowance": 0.03,
"hypothesis_allowances": {
"hyp-cache": 0.02,
"hyp-api-clarity": 0.00
},
"effective_budget": 0.00,
"binding_constraint": "hyp-api-clarity"
}
The binding constraint is as important as the number. It explains why the budget is strict and which promise would need a new decision before the allowance could change.
This receipt also improves failure reporting. Instead of “quality gate failed,” the runtime can say: simplicity declined by a measured amount, the effective allowance was zero, and hyp-api-clarity supplied the binding constraint.
The deeper methodology rule
Multi-agent and multi-goal systems often focus on merging outputs. The harder problem is merging authority.
Text can be concatenated. Patches can be rebased. Risk permissions cannot be combined casually. If one part of the plan says “this boundary must not move,” another part cannot erase that statement by being more tolerant.
IOSM’s minimum rule is small enough to overlook, but it expresses a durable engineering principle:
Shared execution inherits the strictest applicable promise.
That principle turns guardrails from comments into composable control. It also tells the planner when one cycle is carrying too many incompatible goals—before the system pays for the mistake.