$ fssg build --deterministic --validate |

How to Detect Conflicting Hypotheses in an IOSM Cycle

IOSM

Two sensible changes can form one invalid engineering cycle.

A team can propose reducing latency by adding a cache and simplifying the same request path by removing stateful branches. Each hypothesis may be clear, measurable, and reversible on its own. Run them together, however, and the result becomes difficult to interpret: did latency improve because of the cache, the simpler path, or an interaction between both? If correctness regresses, which rollback restores the baseline?

This is why IOSM does not treat a list of approved goals as a valid plan. The cycle report has a separate hypothesis_interactions gate. For me, that field captures a practical rule: admission is not composition. Passing each hypothesis card independently does not prove that the set is safe to execute together.

The missing artifact is an interaction matrix

A Hypothesis Card defines one expected change: target deltas, allowed regressions, validation, rollback triggers, and confidence. The interaction matrix evaluates the set.

For every pair of hypotheses, I record four relations:

Relation Question Typical signal
metric overlap Do both changes move or measure the same metric? both claim the same latency delta
change-surface overlap Do they modify the same boundary, module, schema, or dependency? both alter request routing
ordering Must one result exist before the other can be evaluated? instrumentation must land before optimization
attribution Can the final evidence distinguish their effects? one shared before/after measurement cannot separate them

A compact machine-readable form is enough:

hypothesis_interactions:
  pass: false
  conflicts:
    - pair: [hyp-cache-read, hyp-remove-branch]
      type: attribution
      shared_metrics: [performance]
      shared_surface: [checkout-request-path]
      resolution: split_cycles

The current IOSM v1.0 Cycle Report schema requires both pass and conflicts. It intentionally does not prescribe this richer conflict object yet; the canonical schema currently represents conflicts as strings. I use the structured example above as an engineering extension or as input that can be rendered into those strings—not as a claim that the repository already validates every field.

Conflict does not mean contradiction

The obvious case is semantic opposition: one hypothesis introduces batching while another requires immediate processing. But most dangerous interactions are quieter.

Measurement collision. Two changes affect the same metric during the same observation window. Both may help, but neither claim can be evaluated independently.

Guardrail laundering. Hypothesis A permits a small simplicity regression; hypothesis B permits a small modularity regression. Together they may create a change that no owner would approve as one proposal. The cycle must compose allowances conservatively, just as IOSM combines regression budgets.

Rollback coupling. A change is individually reversible only until another change starts depending on it. Two rollback triggers then point at an order-sensitive recovery procedure rather than two independent reversals.

Evidence contamination. One hypothesis changes the collector, benchmark, or observation boundary used to validate the other. A cleaner number may reflect new measurement semantics instead of a better system. That is why baseline comparability belongs in planning, not in the final report.

These are not reasons to avoid multi-goal cycles. They are reasons to make composition a first-class decision.

A deterministic admission test

I would put the interaction gate after individual hypothesis validation and before cycle capacity admission:

validate cards
    ↓
build pairwise interaction matrix
    ↓
resolve conflicts: isolate | order | add evidence | reject
    ↓
check cycle capacity
    ↓
freeze plan and baseline

The order matters. Capacity answers whether the cycle is small enough. Interaction analysis answers whether it is interpretable. A two-goal cycle can fit every size limit and still be methodologically invalid.

The gate can use four outcomes:

  1. independent — execute together; evidence and rollback remain separable;
  2. ordered — execute in one cycle, but freeze an intermediate checkpoint and measurement;
  3. instrumented — execute together only after adding evidence that separates effects;
  4. split — move one hypothesis to another cycle.

Only unresolved interactions make pass: false. The goal is not to reject combinations automatically. It is to force an explicit resolution before code changes erase the clean baseline.

Agents make interaction analysis more important

Parallel agents naturally optimize locally. One agent sees a performance opportunity; another sees duplication; a third sees a boundary worth extracting. Their proposals can all be reasonable and still collide on a shared file, contract, metric, or rollback path.

A central orchestrator should therefore compare proposed Hypothesis Cards before dispatch. This is different from a merge-conflict check. Git can merge two patches that invalidate each other's evidence. It is also different from a phase handoff, which transfers accepted state between IOSM phases. The interaction gate operates earlier: it decides whether multiple intended changes belong to the same experiment at all.

External agent frameworks increasingly formalize routing, handoffs, checkpointing, and approval. Those mechanisms govern who acts next and how execution resumes. IOSM adds a methodology-level question before dispatch: can the combined work still produce an attributable engineering conclusion?

What the matrix cannot prove

The matrix is a planning artifact, not a dependency oracle. It cannot discover every emergent interaction, guarantee that metrics are valid, or prove production safety. Its quality depends on accurate scope declarations and known dependencies. Unknown couplings can still appear during execution.

That limitation suggests a simple runtime rule: when a new shared surface or metric appears, invalidate the interaction decision and return to planning. Do not quietly expand the cycle and preserve a stale pass: true.

I want an IOSM cycle to finish with more than a collection of successful patches. It should produce a conclusion that survives scrutiny. Individual hypothesis cards make changes testable. The interaction matrix makes the experiment interpretable.

Sources

FACET AI CLI Terminal
facet@ai:~$