$ fssg build --deterministic --validate |

How to Introduce IOSM CLI into an Existing Repository

IOSM

I would not introduce IOSM CLI by asking a mature repository to adopt a new worldview overnight. Existing projects already have an operating system: tests, CI jobs, review rules, ownership boundaries, release habits, and undocumented exceptions. A useful methodology must enter that system without pretending it is empty.

The safe migration is additive. Preserve the controls that already work, map them into IOSM artifacts, run the first cycle in advisory mode, and grant new authority only after the evidence path survives real work.

Start with an inventory, not iosm init

Before creating files, write down what currently decides whether a change is acceptable:

Existing control Question to answer
Test suites Which behavior do they actually protect?
Linters and type checks Which failures block a merge?
CI workflows Which jobs are required, advisory, flaky, or obsolete?
CODEOWNERS and review rules Who can authorize which boundary?
Release checks What must be true before deployment?
Rollback procedure Is it documented, tested, and still executable?
Exceptions Where are accepted risks recorded, and when do they expire?

This inventory is the migration baseline. IOSM should not replace a deterministic test with an agent opinion or turn a known owner into a generated label. The first task is to make current authority visible.

If the repository has no stable acceptance path, fix that first. IOSM can structure uncertainty; it cannot make a broken CI job trustworthy.

Create the workspace without changing delivery

IOSM CLI requires Node.js 20.6 or newer. In the repository root, create the methodology workspace without making agent verification a migration dependency:

npm install -g iosm-cli
iosm --version
iosm init --no-agent-verify

Initialization creates iosm.yaml, IOSM.md, and .iosm/ project state. At this point, do not add a required CI gate and do not start a repository-wide refactor. Review the generated configuration against the inventory.

I would keep the first configuration deliberately conservative:

iosm:
  metadata:
    system_name: existing-service
    criticality_profile: standard
  cycle_capacity:
    max_goals: 1
    max_scope_items: 3
  guardrails:
    max_negative_delta:
      logic: 0.00

One goal limits attribution risk. A zero logic-regression allowance says that an optimization cannot buy its score by breaking already-protected behavior. Other thresholds should remain unset or explicitly provisional until the repository has a reproducible measurement path.

The larger runtime model is described in IOSM CLI: AI Engineering Runtime. During migration, however, the important rule is simpler: generated defaults are proposals, not inherited truth.

Map existing controls before inventing new metrics

The fastest way to make IOSM ceremonial is to add six attractive scores that nobody can reproduce. Start instead with evidence the repository already produces.

A migration map can be small:

controls:
  logic:
    command: npm test
    evidence: junit.xml
    authority: required
  static_correctness:
    command: npm run typecheck
    evidence: typecheck.log
    authority: required
  style:
    command: npm run lint
    evidence: lint.log
    authority: required
  performance:
    status: unknown
    authority: none

The names do not need to match this example. The invariant matters: each claim points to a command, an artifact, and a decision role.

Do not translate “we usually look at this dashboard” into a formal metric unless the query, population, time window, and comparison semantics are stable. Missing evidence stays unknown. A blank performance baseline must not become zero regression. Why a Missing IOSM Metric Must Block the Score explains the aggregation boundary in detail.

Run a shadow cycle

The first IOSM cycle should observe the existing delivery process, not control it.

Choose one bounded maintenance change that the team already understands: remove a duplicate validation branch, tighten one parser boundary, or simplify one adapter while preserving its public behavior. Then plan the cycle:

iosm cycle plan \
  --id migration-shadow-001 \
  "remove duplicate validation while preserving public behavior"

Run the normal tests and review process exactly as before. In parallel, use the IOSM artifacts to record:

  • the baseline commands and subject revision;
  • the hypothesis and protected behavior;
  • evidence produced by each phase;
  • unresolved measurements;
  • the final decision and its source artifacts.

The shadow cycle has no merge authority. Its job is to reveal mismatches between documented control and actual practice. Perhaps the “required” benchmark is not run in pull requests. Perhaps two test jobs cover the same boundary. Perhaps rollback depends on one person’s memory. Those discoveries are the migration result.

For the mechanics of a bounded cycle, use How to Run Your First IOSM CLI Cycle. The distinction here is organizational: the first cycle validates the methodology against the repository, not the repository against the methodology.

Reconcile the two decision paths

After the shadow cycle, compare the existing merge decision with the IOSM report.

There are four useful outcomes:

Existing process IOSM result Migration response
Pass Pass Candidate for deterministic mapping
Pass Block or unresolved Inspect missing evidence or hidden acceptance risk
Fail Pass IOSM omitted an authoritative control
Fail Fail Confirm the failure identity and evidence path

Do not resolve disagreement by choosing the more convenient answer. Trace it.

If IOSM says pass while a required test fails, the cycle model is incomplete. If CI says pass while the cycle remains unresolved because the baseline changed halfway through, the repository may have accepted a change without comparable evidence. Both findings are useful, but neither authorizes automatic enforcement yet.

Preserve failed and conflicting attempts. A green final state should not erase the path that made the migration trustworthy. The IOSM gate-attempt ledger provides the corresponding artifact model.

Promote one deterministic boundary

The first enforced IOSM integration should be boring. Validate artifact structure or one cross-file invariant in CI before giving probabilistic review output blocking authority.

Good first candidates include:

  • every hypothesis references a known cycle goal;
  • every final report references an existing evidence artifact;
  • required metrics cannot be omitted from aggregation;
  • an expired waiver cannot satisfy a gate;
  • the reported subject revision matches the checked-out commit.

This is the same principle behind validating IOSM artifacts in CI: cheap deterministic facts should fail early. An agent may discover a new rule, but once the rule is understood, encode it in a validator with passing and failing fixtures.

Only after repeated shadow cycles agree with the repository’s real acceptance path would I consider promoting an AI review job from advisory to required. Even then, the model output needs a closed result vocabulary, retained evidence, explicit error state, and an independently enforced tool boundary.

Keep an exit path

A migration is incomplete if the repository cannot operate without the new layer.

Before promotion, define:

  1. how to disable the IOSM job without disabling existing tests;
  2. which files are project state and which are local runtime state;
  3. who owns threshold and schema changes;
  4. how old artifacts are migrated or retired;
  5. what observable failure returns the integration to advisory mode.

That last condition matters. Adoption should be reversible when its assumptions stop holding. A tool update, schema drift, unstable provider behavior, or repeated false block is not a reason to explain the gate more confidently. It is a reopen trigger.

The migration contract

I use this sequence:

inventory existing authority
→ initialize IOSM without delivery changes
→ map current evidence
→ run one shadow cycle
→ reconcile disagreements
→ enforce one deterministic invariant
→ expand authority only from observed reliability

This path is intentionally slower than installing a CLI and adding a badge. It is also faster than recovering from a methodology that silently replaced working controls with new abstractions.

IOSM should enter an existing repository as a disciplined observer, then earn authority one boundary at a time. The migration succeeds when the project gains a clearer evidence chain without losing the engineering memory it already had.

Sources

FACET AI CLI Terminal
facet@ai:~$