How to Set Capacity Limits for an IOSM Cycle
A long improvement backlog is not an improvement cycle.
This distinction matters more when an AI agent can turn ten requests into a large diff before a human has finished reading the plan. The execution may be fast, but the unit of reasoning has already collapsed. Which hypothesis caused the result? Which change crossed a boundary? Which regression budget belongs to which goal?
IOSM has an explicit answer: a cycle needs capacity limits before it needs more execution power.
The IOSM v1.0 specification defines three admission dimensions: maximum goals, maximum scope items, and maximum expected change surface. I think of them as an engineering admission controller. They decide whether a proposed cycle is small enough to remain measurable, attributable, and reversible.
The three limits protect different things
A cycle can look small in one dimension and still be unsafe in another.
| Limit | Question | What it protects |
|---|---|---|
| Goal count | How many outcomes are we trying to improve? | Causal attribution |
| Scope size | How many declared modules, services, contracts, or domains are in play? | Review boundaries |
| Expected change surface | How many components must move together? | Coordination and rollback risk |
Goal count is not task count. Ten mechanical edits can support one goal. Conversely, one sentence—“simplify authentication and improve latency”—may conceal two hypotheses with different evidence and failure modes.
Scope size is the declared territory of the cycle. It prevents a local refactor from quietly becoming a platform migration. Whole-system effects may still be observed, but the change must distinguish the intended scope from collateral observation.
Expected change surface is the most useful early warning. A goal may name one service while requiring coordinated changes to a client, schema, deployment policy, and monitoring rule. The label is local; the blast radius is not.
Capacity is evaluated before execution
The admission rule is deliberately simple:
admit =
goals <= max_goals
AND scope_items <= max_scope_items
AND expected_change_surface <= max_expected_change_surface
If the proposal does not fit, the correct response is not to raise every limit. Reduce the cycle plan, recalculate the scope, capture a new baseline, and rebuild the hypothesis set.
That sequence is important. A baseline belongs to a scope. If scope changes after measurement, the comparison is no longer clean. The same applies to guardrails: they only make sense when the system under observation and the intended change are explicit.
This is why capacity belongs before the first IOSM phase. Improve, Optimize, Shrink, and Modularize are not buckets for unrelated work. They are ordered lenses applied to a bounded engineering hypothesis.
Use an admission record, not a planning impression
A useful capacity record can be compact:
cycle_capacity:
limits:
max_goals: 2
max_scope_items: 4
max_expected_change_surface: 3
observed:
goal_count: 2
scope_items:
- auth-service
- session-store
- auth-api-v2
expected_change_surface:
- auth-service
- web-client
- deployment-config
decision: admit
The artifact forces three conversations before code changes:
- Are the goals independently falsifiable?
- Is every touched boundary represented in scope or change-surface estimation?
- Can the cycle be rolled back and explained as one coherent unit?
This is not project-management ceremony. It is provenance for the final cycle report.
Split by evidence, not by file count
When a cycle is over capacity, teams often split it by repository folder. That is convenient but not always correct. The better split follows the evidence path.
Suppose a proposal includes:
- remove duplicated token validation;
- reduce authentication latency;
- replace the public session schema;
- separate refresh-token ownership.
A folder-based split may still mix all four outcomes. An evidence-based split is clearer:
Cycle A — validation consistency
- goal: remove contradictory validation paths;
- evidence: invariant results and duplication map;
- rollback trigger: any accepted token becomes invalid, or vice versa.
Cycle B — latency path
- goal: reduce measured authentication latency;
- evidence: a fixed benchmark and observation window;
- guardrails: logic and contract behavior do not regress.
Cycle C — boundary redesign
- goal: change schema and ownership boundaries;
- evidence: contract tests and change-surface report;
- approval: explicit because a public contract changes.
The split is not smaller because it contains fewer files. It is smaller because each result has a legible hypothesis, evidence set, and rollback condition. This extends the argument in Before You Refactor, State the Hypothesis: capacity is the mechanism that prevents several valid hypotheses from becoming one invalid experiment.
Multi-goal cycles need interaction analysis
Passing each goal separately through a capacity check is not enough. Two acceptable hypotheses can interfere when combined.
One change may reduce API surface while another needs a temporary compatibility endpoint. One optimization may introduce a cache while a modularization goal moves ownership of the cached data. Each proposal is plausible alone; together they alter the expected change surface and may compete for the same regression budget.
The cycle therefore needs a small interaction matrix:
| Pair | Shared boundary | Budget conflict | Scope expansion | Decision |
|---|---|---|---|---|
| H1 × H2 | auth API | none | web client | keep, update scope |
| H1 × H3 | session schema | logic budget | migration job | split cycles |
This is not a prediction that catches every emergent effect. It is a deterministic checkpoint against known coupling. Unknown risk remains; unrecorded known coupling should not.
The same discipline appears in How IOSM Combines Regression Budgets Across Multiple Goals. Capacity asks whether the work fits; budget composition asks whether the allowed damage still fits. Both checks must happen before execution.
Capacity should not become a productivity quota
These limits are policy inputs, not universal constants. A critical service may admit one goal and one public boundary. An exploratory internal tool may admit more scope while still refusing stabilization claims. The right values depend on criticality, evidence quality, team topology, and reversibility.
There are also boundary conditions:
- A low goal count does not make a vague goal measurable.
- A low scope count does not reveal hidden consumers automatically.
- Expected change surface is an estimate and must be revised when discovery exposes new coupling.
- Raising limits can be valid, but doing it to rescue an already overfilled cycle defeats the control.
I would treat repeated capacity failures as architecture evidence. If a one-module change always requires six coordinated components, the problem may not be planning. It may be coupling. That observation belongs in the decision log and can become a later Modularize hypothesis.
The practical rule
Before asking an agent—or a team—to execute an IOSM cycle, require a machine-readable admission receipt:
$ iosm cycle admit plan.yaml
GOALS 2 / 2 PASS
SCOPE ITEMS 3 / 4 PASS
CHANGE SURFACE 5 / 3 FAIL
DECISION SPLIT CYCLE
The command is illustrative; the admission semantics come from the IOSM specification, not from a benchmark or a claim that every runtime exposes this exact interface.
This small artifact changes the question from “Can we do all of this?” to “Can we still explain what happened if we do?”
That is the real capacity of an engineering cycle: not how much change it can generate, but how much change it can still prove.
For the wider execution model, see IOSM CLI: AI Engineering Runtime and the recent guide to comparable IOSM baselines.
Sources and limits
This analysis is grounded in the public IOSM v1.0 specification and the IOSM CLI repository. It explains a specified planning mechanism and proposes a practical admission-record shape. It does not claim measured productivity gains, production adoption, or empirical superiority. Capacity estimates remain system-specific and require human review when public contracts, waivers, threshold relaxation, or destructive changes are involved.