$ fssg build --deterministic --validate |

Stop Conditions for IOSM Hypotheses

IOSM

A falsifiable engineering hypothesis must also tell us when to stop spending on it.

IOSM already gives a change hypothesis serious structure: an owner, expected metric deltas, guardrails, a validation method, an observation window, and rollback triggers. That is far better than “let us refactor this and see.” But one decision is still easy to leave implicit: what should happen when the evidence is neither a clean success nor a dangerous regression?

That middle state is where improvement cycles become expensive. The target has not been reached. Nothing is broken badly enough to trigger rollback. Another iteration still feels defensible. Then another. The work survives because no one defined the condition under which continuing would stop being rational.

I treat that as a missing control artifact: the hypothesis stop contract.

Four outcomes, not one pass/fail bit

A quality gate answers whether a phase satisfies its declared constraints. A stop contract answers whether the hypothesis still deserves more execution budget. Those are related decisions, but they are not identical.

I use four terminal decisions:

Decision Meaning Required action
ACCEPT Target and guardrails are satisfied with adequate evidence Close the hypothesis and record the result
CONTINUE The target remains plausible and the next iteration has a bounded information gain Admit one more iteration
REVISE The premise, measurement, or intervention is wrong, but the goal remains valid Close this hypothesis and issue a new version
TERMINATE Further work is unjustified, unsafe, or outside the cycle budget Stop execution and preserve the negative result

REVISE matters. Editing the original hypothesis after seeing results destroys the distinction between what was predicted and what was learned. A revised claim should get a new identity and link back to the failed or inconclusive one.

This is the same reason I insist that an IOSM baseline must be comparable. If the reference changes silently, the delta loses meaning. If the hypothesis changes silently, the experiment loses meaning.

The stop contract is declared before execution

A useful stop contract does not try to predict every outcome. It names the boundaries that can be evaluated without retrospective negotiation.

stop_contract:
  accept_when:
    target_delta_met: true
    guardrails_pass: true
    min_decision_confidence: 0.82
  continue_when:
    max_additional_iterations: 1
    required_new_evidence: "production observation for a complete traffic cycle"
    unresolved_question: "is the p95 change stable across peak load?"
  revise_when:
    - "baseline instrumentation changed"
    - "the proposed mechanism does not affect the target path"
  terminate_when:
    - "guardrail breach has no approved remediation"
    - "remaining iteration cannot distinguish the leading explanations"
    - "cycle capacity is exhausted"

These values are illustrative, not universal IOSM defaults. The current IOSM v1.0 specification defines a cycle stopping policy, phase iteration limits, stabilization conditions, and Hypothesis Card rollback triggers. Its canonical Hypothesis Card schema requires a validation window and at least one rollback trigger. It does not currently define this four-outcome stop-contract object. I am proposing it as an implementation pattern built on top of those existing semantics, not describing a released schema field.

That limitation is important. A blog post should not quietly turn a design proposal into a product claim.

Continuation needs an information receipt

“Try once more” is not a reason. A continuation decision should state what the next iteration can teach that the previous one could not.

I would require a small continuation receipt:

{
  "hypothesis_id": "hyp-cache-path-004",
  "iteration": 2,
  "unresolved_question": "Does the improvement survive peak load?",
  "next_evidence": "peak-window latency distribution",
  "decision_changed_if": {
    "accept": "target delta holds and confidence reaches threshold",
    "terminate": "effect disappears or logic guardrail fails"
  },
  "budget_remaining": 1
}

The key field is decision_changed_if. If no plausible result from the next run can change the decision, the iteration has no decision value. It may produce more data, but more data is not automatically more evidence.

This also prevents missing measurements from being converted into momentum. As I argued in Why a Missing IOSM Metric Must Block the Score, unknown is a control state. The correct response may be to collect a specific missing measurement. It is not to keep changing the system while hoping clarity appears later.

Rollback and termination protect different boundaries

A rollback trigger says: this observed state is unacceptable; restore a safer state. A termination condition says: this hypothesis no longer justifies more work.

A hypothesis can terminate without rollback. Imagine a change that produces no meaningful improvement, causes no regression, and leaves the system valid. Reverting it may still be wise if it adds surface area, but the methodological result is already clear: the proposed causal mechanism was not supported within the declared window.

The reverse is also possible. A rollback can occur while the hypothesis remains worth revising. The intervention may have violated a guardrail because the scope was too broad, while a narrower mechanism remains testable. Rollback protects the system; revision protects the integrity of the learning process.

Conflating these decisions creates two bad behaviors: harmless but useless changes linger because rollback was never triggered, and promising goals are abandoned because one unsafe intervention failed.

Stop conditions belong beside capacity

IOSM v1.0 requires cycle-capacity validation before phase execution and limits iterations per phase. Those controls bound the container. A stop contract governs one hypothesis inside that container.

This gives the runtime a deterministic admission rule:

continue_allowed =
  phase_gate_allows_remediation
  AND hypothesis.stop_contract.continue_when is satisfied
  AND new_evidence is named
  AND cycle_capacity remains
  AND no termination condition is true

Without the hypothesis-level test, a cycle can remain under its numeric capacity while still wasting that capacity on a dead premise. With it, capacity becomes a decision budget rather than merely a count limit. This complements the IOSM cycle capacity model and the hypothesis interaction matrix: one controls total admitted work, one controls conflicts among hypotheses, and one controls whether an individual hypothesis earns another iteration.

A negative result must remain addressable

Termination should produce an artifact, not silence. I would record:

  • the original statement and version;
  • the evidence actually collected;
  • which stop condition fired;
  • whether the code was retained or reverted;
  • the strongest remaining alternative explanation;
  • the condition under which the hypothesis may be reopened.

That record prevents the same idea from returning three months later with a new name and no new evidence. It also gives learning closure somewhere concrete to route the result: a decision log entry, an anti-pattern, a revised measurement method, or a narrower future hypothesis.

IOSM is valuable because it makes improvement work auditable. But auditability is not only about proving why we continued. Mature engineering also proves why we stopped.

Sources

For the complementary part of this workflow, see How to Amend an IOSM Hypothesis Without Rewriting History.

FACET AI CLI Terminal
facet@ai:~$