$ fssg build --deterministic --validate |

How to Design Phase Handoffs in an IOSM Cycle

IOSM

A phase gate answers a narrow question: may this cycle proceed?

That is necessary, but it is not enough.

In a long engineering cycle, the next phase also needs to know what the previous phase proved, what it did not prove, which risks remain open, and which properties must not be traded away. A green gate without that transfer is only a permission bit. It is not an engineering handoff.

IOSM already gives us the right skeleton: Improve, Optimize, Shrink, Modularize; explicit hypotheses; phase reports; evidence; guardrails; and a final cycle report. The missing operational distinction is between a gate result and a handoff manifest.

The gate decides whether movement is allowed. The manifest defines what must survive the movement. This extends the stricter accounting already described in IOSM regression budgets and the treatment of exceptions as durable records in the IOSM waiver register.

Three candidate mechanisms—and why handoff wins

I considered three nearby extensions to the IOSM artifact model:

  1. a confidence-decay rule for old measurements;
  2. a baseline-comparability receipt for changed test environments;
  3. a phase-handoff manifest carrying obligations into the next phase.

All three are useful. The third is the strongest next mechanism because it connects every phase without inventing a new score. It also addresses a concrete orchestration failure: a later phase can satisfy its own local metric while silently invalidating evidence or assumptions established earlier.

This is not another article about whether gates should exist. The mechanism is narrower: what crosses a gate besides pass?

A gate is a decision; a handoff is state transfer

Consider the transition from Improve to Optimize.

Improve may remove a race condition and add an invariant test. Optimize may then replace the corrected path with a cache. The performance metric improves, the Optimize gate passes, and yet the cache can weaken the invariant that justified leaving Improve.

Nothing here requires a malicious agent. The failure comes from lossy coordination. The optimization phase received a goal, but not the proof obligations created by the repair phase.

A useful handoff therefore carries five classes of information:

Field Question it answers
accepted_evidence What observations justified closing this phase?
residual_risks What remains unresolved but tolerated?
protected_invariants What may the next phase not weaken?
authorized_changes What is the next phase allowed to optimize or restructure?
reopen_triggers Which observation invalidates the handoff?

The distinction matters. Evidence describes the past. Authority constrains the future.

The phase-handoff manifest

I would represent the boundary as a small, immutable artifact referenced by both adjacent phase reports:

{
  "handoff_id": "improve-to-optimize:cycle-42:r3",
  "from_phase": "improve",
  "to_phase": "optimize",
  "subject_revision": "git:8f32c1a",
  "gate_result": "pass_with_residual_risk",
  "accepted_evidence": [
    {
      "claim": "duplicate refresh is rejected",
      "artifact": "evidence/test-refresh-race.json",
      "digest": "sha256:..."
    }
  ],
  "residual_risks": [
    {
      "id": "R-17",
      "boundary": "multi-region clock skew was not evaluated",
      "owner": "optimize"
    }
  ],
  "protected_invariants": [
    "one refresh token produces at most one accepted rotation"
  ],
  "authorized_changes": [
    "cache lookup strategy",
    "storage round-trip reduction"
  ],
  "reopen_triggers": [
    "subject revision no longer contains invariant test IT-09",
    "evidence digest cannot be resolved",
    "p99 measurement uses a different workload profile"
  ]
}

This object is deliberately not a summary paragraph. It is meant to be checked.

The subject_revision prevents evidence from floating away from the code it supports. Digests make evidence substitution visible. authorized_changes limits scope. reopen_triggers turn phase closure into a conditional engineering decision rather than a permanent label.

Handoff composition across four phases

The hard part is not creating one manifest. It is composing several of them.

Each IOSM phase has a different temptation:

  • Improve can fix correctness while expanding surface area.
  • Optimize can improve resource use while increasing semantic complexity.
  • Shrink can reduce code while deleting observability or safety checks.
  • Modularize can improve boundaries while adding indirection and delivery friction.

A later phase should inherit the obligations of earlier phases unless it explicitly supersedes them with new evidence. This suggests a simple rule:

next obligations = unresolved risks
                 + protected invariants
                 + active reopen triggers
                 - explicitly discharged obligations

The result is not a growing bag of warnings. Every obligation needs a lifecycle: active, discharged, superseded, or violated. A discharge references evidence. A supersession references a replacement obligation and rationale. A violation blocks normal progression.

This creates a chain that a verifier can traverse:

baseline
  -> Improve report
  -> Improve/Optimize handoff
  -> Optimize report
  -> Optimize/Shrink handoff
  -> Shrink report
  -> Shrink/Modularize handoff
  -> final cycle report

The canonical IOSM specification already defines phase reports, evidence, quality gates, and cycle artifacts. The handoff manifest is an inferred operational extension: a way to make the transition itself explicit. It fits naturally beside the artifact history described in IOSM CLI.

Why a checkpoint is not the same thing

A filesystem checkpoint answers: what state can I restore?

A phase handoff answers: what claims and constraints remain valid if I continue?

The two complement each other. IOSM CLI documents checkpoints and deterministic rollback in its execution runtime. Workflow systems such as Microsoft Agent Framework similarly describe checkpoints as saved workflow state for recovery and resumption. Neither concept, by itself, expresses the semantic obligations that a methodology phase transfers to the next phase.

Restoring bytes is not restoring justification.

A checkpoint may return the repository to revision 8f32c1a. The handoff tells us why that revision was allowed to advance, which evidence was accepted, and what a future optimization must preserve.

Verification rules

A handoff mechanism is valuable only if it can reject bad transitions. I would start with six deterministic checks:

  1. from_phase and to_phase must be adjacent in the configured IOSM order.
  2. The subject revision must match the phase report and current transition candidate.
  3. Every accepted evidence reference must resolve and match its digest.
  4. Every residual risk must have an owner or an explicit terminal disposition.
  5. Every inherited invariant must appear in the next phase's guardrail set.
  6. Every triggered reopen condition must block the handoff until it is resolved or superseded.

These checks do not prove that an optimization is good. They prove that the methodology did not lose its own state while moving forward.

That boundary is important. This article proposes an artifact contract; it does not report benchmark results or claim that the mechanism has been independently validated in production. Its value is architectural: it makes a previously implicit transfer inspectable and testable.

The engineering outcome

IOSM should not behave like four isolated checklists. It should behave like one transaction whose obligations evolve across four phases.

A boolean gate can stop a bad phase. A handoff manifest can stop a good phase from being undone by the next one.

That is the concrete shift: phase progression becomes typed state transfer. Evidence is bound to a revision. Residual risk gets an owner. Invariants become inherited constraints. Reopen triggers keep closure honest.

The terminal command may still look simple:

$ iosm cycle advance optimize

But the runtime should be able to answer the question behind it:

What exactly are we carrying forward—and what are we no longer allowed to forget?

That answer is the handoff.

FACET AI CLI Terminal
facet@ai:~$