Discrepancy-Driven Correction¶
Core Idea¶
A goal-directed loop that holds a target, observes the current state, computes the signed gap, selects a corrective action keyed to that gap, applies it, and re-observes — repeating until the gap falls below threshold. The gap is the load-bearing object: nothing fires without it.
How would you explain it like I'm…
Close the Gap
Close The Gap Loop
Gap-Driven Correction Loop
Broad Use¶
- Control theory: setpoint versus plant output; the error signal drives the controller's actuation.
- Biology: homeostatic regulation of temperature, glucose, or blood pressure toward a setpoint.
- Software: the edit–compile–test cycle, where the gap is the bug symptom and the action is a code change.
- Medicine: differential diagnosis, where the gap is the unexplained finding and the action is hypothesis revision.
- Science: anomaly investigation, where the gap is the residual between model and data.
- Project management: variance analysis, where the gap drives scope, resource, or schedule corrections.
Clarity¶
It separates action without a target from genuine correction, one-shot validation from iterated correction, and exposes target drift — closing the gap by moving the target rather than the observation.
Manages Complexity¶
It reduces a sprawl of "iterative work" practices to one checklist: target, observation, gap, action, threshold, cycle time — with loop gain and cycle-time matching as portable levers.
Abstract Reasoning¶
Match action gain to gap magnitude, match cycle time to how fast the gap evolves, audit the comparator, and set the termination criterion deliberately rather than by fatigue.
Knowledge Transfer¶
- Engineering ↔ medicine: a debugger and a clinician working a fever of unknown origin run the same loop and fail the same ways — gap miscomputed, action too aggressive, target drifted.
- Control ↔ coaching: matching action gain to gap magnitude is one insight in PID tuning and in a coach's correction cadence.
- Control ↔ neuroscience: predictive processing casts perception itself as prediction-error minimisation, the same loop run continuously.
Example¶
A PI controller stabilising a reactor compares temperature to a 350 K setpoint and opens a coolant valve in proportion to the signed error; too much gain and the loop oscillates, too slow a sample and it cannot converge.
Relationships to Other Primes¶
Parents (1) — more general patterns this builds on
- Discrepancy-Driven Correction is a kind of Feedback — The file: 'feedback's goal-directed specialisation — feedback structured around an explicit target and a signed gap that the action is keyed to.' A strict subspecies of feedback (which has no target).
Children (2) — more specific cases that build on this
- Calibration is a kind of, typical Discrepancy-Driven Correction — calibration's own one_liner IS this loop ('aligning output to a trusted reference by measuring deviation, adjusting to reduce it, monitoring for drift') — a target/observe/gap/correct cycle. A named instance of discrepancy_driven_correction. Tentative reparent.
- Homeostasis is a kind of, typical Discrepancy-Driven Correction — The file: 'homeostasis is one biological OUTCOME of a stabilising correction loop... this prime is the general loop mechanism.' discrepancy_driven_correction is the broad loop of which homeostasis (constant-setpoint biological case) is a special instance. Tentative reparent — add as an additional parent of homeostasis.
Path to root: Discrepancy-Driven Correction → Feedback
Not to Be Confused With¶
- Discrepancy-Driven Correction is not Feedback because correction adds a maintained target and a gap-keyed action, whereas feedback names the bare fact that an output is routed back to influence an input.
- Discrepancy-Driven Correction is not Homeostasis because correction is the general loop mechanism that can chase a moving target or revise a hypothesis, whereas homeostasis is one biological outcome of a stabilising loop.
- Discrepancy-Driven Correction is not Refinement because correction is gap-keyed and terminates on a threshold, whereas refinement is open-ended improvement toward "better" with no signed gap.