Files
confidence-engine/docs/v0.6-atomicity-experiment.md
T

3.7 KiB

v0.6 Atomicity Experiment

Hypothesis

After deterministic unknown selection, the engine should assess whether the selected unknown is already atomic or is still too composite to ask directly.

If the unknown is atomic, the engine should proceed exactly as before.

If the unknown is composite, the engine should not ask that parent unknown directly. Instead, it should decompose it into a small set of explicit child unknowns representing broad, independent candidate dimensions that a non-expert could understand.

Constraints

  • No graph redesign
  • No persistence
  • No UI redesign
  • No selection-weight tuning
  • No Ollama calls in unit tests

Deterministic rule introduced

Atomicity assessment is not a new investigation strategy.

It runs in the graph update path at this seam:

unknown selection -> atomicity assessment -> optional decomposition -> deterministic reselection -> question formulation

The implementation uses deterministic text and graph-shape checks:

  • focused unknowns like denominator / threshold / definition / baseline / evidence remain atomic
  • broad relationship-explanation unknowns and broad “possible causes / what changed / explanation for why X but Y” unknowns become composite

Decomposition behavior

When a selected unknown is composite:

  1. The parent unknown remains unresolved.
  2. Between 2 and 5 child unknowns are created or reused deterministically.
  3. Children become explicit graph nodes.
  4. Children link back to the parent with existing depends_on edges.
  5. Children inherit the same “why it matters” discipline in their descriptions.
  6. Deterministic selection reruns across the updated graph.

For the current relationship-explanation experiment, the broad child dimensions are:

  • Timing or measurement basis
  • Change affecting signal A more than signal B
  • Change affecting signal B more than signal A
  • Mix or segment shift
  • One-off event during the period

These are intentionally non-jargon and broad enough to generalise across scenarios like:

  • Revenue up / Cash down
  • Customer satisfaction up / Complaints up
  • Delivery time down / Cancellations up
  • Traffic up / Sales flat
  • Production up / Defects up

Diagnostics added

The orchestrator now reports:

  • atomicityAssessment
  • decompositionPerformed
  • childUnknownCount
  • childNodeIds
  • atomicityReason

This sits alongside the existing explicit-emergent-unknown diagnostics.

Observed outcome

The experiment was useful.

Before this change, the engine could select a broad explanation unknown and ask it directly.

After this change:

  • the broad explanation parent remains explicit in the graph
  • the engine decomposes it into child unknowns first
  • the next asked question is backed by a more focused child unknown
  • repeated updates reuse the same decomposition children deterministically

In the revenue-versus-cash case, the selected next question becomes:

What evidence would clarify timing or measurement basis?

rather than asking the full broad explanation node directly.

Interpretation

This supports the idea that recursive decomposition is a fundamental part of graph-backed questioning, not just a prompt refinement.

The main remaining limitation is that the new child set can still produce ties among equally broad dimensions. In the current implementation, that is acceptable because the graph now makes the ambiguity explicit rather than hiding it in a single broad parent question.

Validation run

Covered by:

  • tests/graph/atomicity-assessment.test.js
  • tests/graph/apply-proposal.test.js
  • tests/graph/orchestrator.test.js
  • tests/graph/question-formulator.test.js
  • tests/ui/scenario-form.test.jsx

And then by the broader requested validation pass with lint and build.