Calling an AI workflow “liquid” or “annealed” is empty metaphor unless it produces falsifiable diagnostics. In zozo123/ariflow-swfactory (22f0109 and edb1fa0), review convergence and swarm search posture emit dimensionless order parameters mirrored across Python (swfactory.phase_control) and Rust (swf_domain::phase_control).
Every phase assessment emits {"authority": "search-only"}. Crystal means “verify exact bytes now” — never permission to skip a human gate or self-merge.
Interactive Liquid Annealing & Phase Simulator
Adjust blockers, major defects, diff breadth, risky files, lane completion, and test status below. This runs the exact formulas implemented in src/swfactory/liquid_annealing.py:
1. The dimensionless annealing equations
defect_energy = 8*blockers + 3*majors + 0.75*minors + 0.10*nits + (8 if !tests_green)
surface_penalty = min(1, 0.65 * min(changed_files/20, 1) + 0.35 * min(risky_files/6, 1))
temperature T = min(1, defect_energy / (defect_energy + 5) + 0.25 * surface_penalty)
beta = min(20, 1 / max(T, 0.05))
order_parameter = max(0, 1 - T)
driving_force = max(0.05, min(1, (tests_green + lane_coverage + 1/(1 + defect_energy)) / 3))
barrier = (surface_penalty + 0.05)^3 / driving_force^2
crossing_prob = exp(-barrier / max(T, 0.05))
2. Six phases & hysteresis
| Phase | Observable meaning | Control Mode | Failure if misread |
|---|---|---|---|
gas | High candidate dispersion or incomplete specialist lanes | diverge / measure | Converging too early and losing independent hypotheses |
liquid | Mobile exploration with useful specialist structure | anneal | Over-constraining search before structure settles |
critical | Blockers, red tests, high disagreement or supercritical branching (R >= 1) | measure | Spawning unmeasured workers instead of auditing verifiers |
glass | Same material-defect signature repeats; stalled mobility | perturb | Mistaking stasis for finished stability |
jammed | Budget/cleanup/queue debt dominates progress | drain | Pushing more work onto a saturated factory |
crystal | Tests green, all specialist lanes complete, zero blockers/majors | verify | Confusing clean heuristics with formal proof or merge permission |
To stop noisy snapshots from oscillating across transitions, phase_control.py encodes asymmetric hysteresis bands: transitions directly into crystal or jammed happen without artificial delay, while leaving glass, jammed, or crystal requires stronger order/debt reversal.