Which IOSM Workflow Should You Run Next?
IOSM becomes useful when the workflow matches the uncertainty. A full improvement cycle is wrong for every task in the same way that a checkpoint is wrong for every failure: each mechanism controls a different risk.
I have published several practical IOSM CLI workflows. The missing piece was a map between them. This is that map: start from the failure you cannot afford, then choose the smallest workflow that produces the evidence you need.
Start with the failure, not the feature
| Your dominant risk | Start here | Artifact that matters |
|---|---|---|
| You cannot prove the change improved anything | Baseline IOSM cycle | Comparable before/after measurements |
| A risky edit may damage a known-good tree | Filesystem checkpoint | Restorable snapshot tied to session state |
| Two approaches look plausible | Session branches | Separate evidence histories and one explicit decision |
| Bad methodology artifacts can enter the repository | CI validation | Machine-checked configuration, hypotheses, and reports |
| An external tool receives too much authority | Least-privilege MCP integration | Project-scoped tool policy and denial trace |
| Several agents may collide during one refactor | Controlled parallel refactor | Ownership boundaries, task dependencies, gates, and recovery state |
This table is deliberately asymmetrical. These workflows are not maturity levels. You do not “graduate” from checkpoints to parallel agents. You compose mechanisms only when their risks coexist.
Route 1: no trustworthy baseline
If the team cannot state what “better” means before editing, begin with the first IOSM cycle. IOSM CLI defines a fixed sequence from planning and hypotheses through Improve, Optimize, Shrink, Modularize, scoring, learning, and decision. The sequence matters less than its evidence boundary: estimates and model judgments must not silently become measurements.
The correct first move is usually narrow:
iosm init --no-agent-verify
iosm cycle plan "Reduce auth complexity" "Preserve current behavior"
iosm cycle status
iosm cycle report
The exact commands are only the shell. The real product is a rerunnable baseline, a falsifiable hypothesis, and a report that can say “unresolved.” If before and after do not identify the same subject, metric semantics, population, window, unit, aggregation, and delivery boundary, there is no valid delta.
Route 2: known-good state, risky mutation
If the baseline exists but the next edit can break the working tree, use a checkpoint before the refactor. IOSM CLI integrates filesystem snapshot and restore into command execution, but a snapshot is not a database transaction and not a substitute for Git.
A checkpoint answers one narrow question: can I restore the local execution state I am about to mutate? It does not prove that external side effects were reversed. If the task can publish, charge, send, or mutate a remote system, add reconciliation or compensation outside the checkpoint boundary.
Route 3: uncertainty between approaches
When two designs are plausible, do not mix both investigations into one long conversation. Use session branches to compare approaches. Fork from the same known state, give each branch one hypothesis, and preserve its evidence separately.
The merge target is not the transcript. It is the decision: selected approach, rejected alternative, measured evidence, unresolved risks, and next gate. This keeps exploration cheap without allowing competing assumptions to leak into execution.
Route 4: valid locally, invalid in the repository
A developer can run a convincing cycle with malformed or incomplete artifacts. That is where IOSM artifact validation in CI belongs.
CI should first check boring properties: schemas, required files, referential integrity, allowed states, and whether a report actually points to its hypotheses and measurements. Semantic review comes later. A model may help interpret evidence, but it should not be able to repair missing evidence by declaring confidence.
Use this route when the failure is organizational: the process works on one workstation but the repository cannot enforce what completion means.
Route 5: external capability with an unclear trust boundary
If the task needs an MCP server, begin with the least-privilege IOSM CLI integration, not with a global allow rule. Scope the server to the project, expose only required tools, and keep trust separate from approval.
Trust says the package or server identity is acceptable. Approval says a specific action may execute in this context. IOSM CLI's policy path is useful because denials are evidence too: test the forbidden tool, the wrong scope, and the unapproved write path before promoting authority.
Route 6: one bounded change, several workers
Parallelism is the last route on purpose. Use the safe parallel-refactor workflow only after scope, file ownership, dependencies, checkpoints, and gates are explicit.
More workers do not remove uncertainty. They multiply interfaces. Begin below the runtime's concurrency limit, inspect overlapping file touches, and retry one failed task rather than replaying the whole orchestration. If ownership cannot be partitioned cleanly, sequential execution is usually the more honest design.
Compose only adjacent controls
A practical composition looks like this:
- baseline the subsystem;
- checkpoint the known-good tree;
- branch only if alternatives remain unresolved;
- run the chosen change;
- validate artifacts in CI;
- add MCP authority or parallel workers only when the task requires them;
- close with a report whose claims match its evidence.
The stopping rule matters. Do not add a workflow because IOSM CLI exposes it. Add it when you can name the failure it contains and the artifact that proves containment.
That is the operating model I want from an engineering runtime: not maximum ceremony and not maximum autonomy, but the smallest explicit control surface that matches the current risk.