$ fssg build --deterministic --validate |

How to Turn a Feature Request into an IOSM Execution Plan

IOSM

A feature request should not become an execution prompt in one jump. The missing step is a decision artifact: what the request touches, how large the change could become, which implementation shape is justified, and what must remain outside the first attempt.

IOSM CLI now has a concrete path for that transition. The /singular command analyzes a request against the current repository and engineering contract, produces exactly three implementation options, stores the result under .iosm/singular/, and can hand the selected option to the gated Swarm runtime.

I see this as a small but important separation of concerns. Planning should reduce uncertainty before orchestration multiplies activity.

The boundary: request, decision, execution

A sentence such as “add organization accounts” contains almost no executable structure. It does not say whether the change includes invitations, roles, billing ownership, data migration, audit history, or only a new account container. Sending that sentence directly to several agents makes parallelism the first design decision.

That order is backwards.

The useful sequence is:

feature request
    ↓
repository + contract scan
    ↓
three explicit implementation options
    ↓
human selection
    ↓
gated execution

This is narrower than a full IOSM improvement cycle. A cycle starts from a bounded engineering hypothesis and carries evidence through Improve, Optimize, Shrink, and Modularize. /singular works earlier: it turns an under-specified request into a choice that can become a cycle, a Swarm run, or a deliberate deferral.

Step 1: make the engineering contract useful

/singular can run without a populated contract, but the result is stronger when /contract already records the goal, constraints, quality gates, definition of done, non-goals, and risks.

Start IOSM CLI in the target repository:

cd my-project
iosm
/contract

The contract is saved as .iosm/contract.json. It is not a longer prompt. It is the stable boundary against which the proposed change can be judged.

For an organization-account feature, the useful fields might say:

{
  "goal": "Add organization-scoped accounts",
  "constraints": [
    "Preserve existing personal accounts",
    "No billing migration in this change"
  ],
  "quality_gates": [
    "Existing authentication tests pass",
    "Tenant isolation tests pass"
  ],
  "definition_of_done": [
    "A user can create and switch organizations",
    "Cross-organization reads are denied"
  ],
  "non_goals": [
    "Invitation workflow",
    "Role editor UI"
  ],
  "risks": [
    "Queries missing organization scope"
  ]
}

The point is not to predict the whole implementation. It is to stop optional scope from arriving disguised as a requirement.

Step 2: run the feasibility analysis

Inside interactive mode:

/singular Add organization-scoped accounts without changing billing

The command performs a bounded repository scan. It excludes generated or operational directories such as .git, node_modules, dist, build, .next, coverage output, and .iosm. It scores text files related to the request, counts source and test files, and combines those signals with the engineering contract.

The initial scan is deliberately heuristic. Matching filenames or request terms cannot prove architectural impact. IOSM CLI uses it as a baseline for the analysis, not as an oracle. A request can touch a concept hidden behind an unexpected name, and a large repository can exceed the scan limits. That uncertainty should remain visible.

The result records:

  • files scanned and candidate files matched;
  • baseline complexity and blast radius;
  • contract signals used;
  • a recommendation: implement now, implement incrementally, or defer;
  • exactly three options with plans, trade-offs, and suggested files.

The three-option constraint matters. An unconstrained agent can produce a cloud of plausible plans that postpone the decision. Here the choice is forced into three different operating shapes:

Option Intended use Typical boundary
Incremental MVP Deliver a useful slice with controlled risk One or two target areas, regression coverage, explicit non-goals
Comprehensive implementation Treat the feature as a strategic milestone Wider architecture, persistence, edge cases, staged rollout
Defer implementation Refuse premature coding Design, risk map, readiness criteria, missing prerequisites

“Defer” is a real engineering output. If a high-complexity request lands in a repository with no tests, the current implementation can recommend building the safety net first. IOSM does not need to manufacture code to prove that work happened.

Step 3: inspect the durable artifact

Each run receives an ID and is stored under:

.iosm/singular/<run-id>/
├── analysis.json
└── meta.json

analysis.json contains the request, repository counts, matched files, complexity, blast radius, recommendation, contract signals, impact analysis when available, and all three options. meta.json keeps a compact index of the run.

This persistence changes the review conversation. Instead of asking “which prompt did we use?”, I can ask:

  • Which repository state did the analysis target?
  • Which option was selected?
  • Which files and risks were expected before execution?
  • Did the final change stay inside that boundary?

The artifact is not proof that an option is correct. It is evidence of the decision that authorized the next step. That distinction is central to the IOSM CLI runtime model: an agent proposal and an execution authorization are different objects.

Before selecting an option, inspect at least four things:

  1. Matched files. Are the real ownership boundaries represented, or did lexical matching miss them?
  2. Non-goals. Does the option quietly reintroduce excluded scope?
  3. Tests. Are the proposed gates capable of detecting the named risk?
  4. Rollback shape. Can this option be reversed without requiring a second redesign?

If the answer is unclear, refine the contract or request and run /singular again. Do not edit the old analysis to make history look cleaner. A second run is cheaper than an ambiguous authorization.

Step 4: hand one option to Swarm

After choosing an option, IOSM CLI can create a Swarm run from the saved analysis:

/swarm from-singular <run-id> --option 1 --max-parallel 3 --budget-usd 8

This is not a shortcut around planning. It is the point where planning becomes an execution input.

The handoff preserves the selected option rather than asking the orchestrator to reinterpret the original feature sentence. The Swarm runtime then applies its own execution model—scopes, touched files, locks, gates, and completion—described in the safe parallel refactor guide.

Two limits are worth keeping explicit.

First, --max-parallel is a ceiling, not a target. If the selected option has one tightly coupled change surface, one worker may be the correct plan. Parallel agents should follow independent work, not create it.

Second, the budget limits expenditure, not blast radius. File scopes, locks, tests, permissions, and gates still carry the safety contract. A cheap unsafe run is still unsafe.

A practical review loop

For a real request, I use this sequence:

1. /contract
2. /singular <feature request>
3. inspect analysis.json
4. reject or choose one option
5. /swarm from-singular <run-id> --option <1|2|3>
6. watch gates and conflicts
7. compare the result with the selected boundary

The important review happens twice: before execution, when the option is selected, and after execution, when the actual diff is compared with the authorized scope.

If the run discovers that the chosen option was wrong, that is not permission to drift silently. Stop, preserve the evidence, and create a new decision artifact. The original analysis remains useful precisely because it records what was believed before implementation changed the facts.

Planning should narrow authority

The value of /singular is not that it generates plans. Models have generated plans for years. Its value is that it gives the plan an identity, binds it to repository and contract signals, restricts the choice to distinct operating shapes, and creates an explicit handoff into execution.

That is the move I want from AI engineering tools: not more fluent intent, but a shorter and more inspectable path from intent to authorized work.

Sources

FACET AI CLI Terminal
facet@ai:~$