Core Algorithms
Reference pseudocode for the four algorithms that drive FDRP: convergence measurement, gate transitions, expert expansion, and cross-model verification.
CVT Computation
Computes the Convergence Velocity Tensor from a single wave's results. The CVT combines three independent signals into a scalar that measures how close the planning run is to convergence. Each factor is bounded [0, 1], so the composite CVT is also bounded [0, 1].
The multiplicative structure is deliberate: if any one factor is poor (many new domains, low confidence, or high contradictions), the CVT drops regardless of the other two. This prevents a run from appearing converged when only one dimension is stable.
Gate Progression
Evaluates whether a run should transition to the next phase. Transitions are monotonic — the system can only advance forward. The MATURE to CONVERGED transition requires both a high CVT and passing cross-model verification, providing a dual-gate safeguard.
Note the asymmetry at line 11: the MATURE → CONVERGED gate is the only transition with a dual requirement (CVT threshold and cross-model verification). This reflects the principle that higher-stakes decisions require stronger evidence. The warning at line 15 prevents silent failure when the CVT looks good but independent models disagree.
Wave Dispatch (Spiral-Out)
Dispatches the next wave of expert analysis. The spiral-out pattern ensures coverage expands into blind spots — areas that existing experts identified as outside their competence. Each wave's experts nominate domains for the next wave, creating a self-expanding frontier.
The spiral-out pattern is what gives FDRP its coverage guarantee. Unlike fixed expert panels, the set of domains under analysis grows organically based on what each wave discovers. In the antimatter building case study, this pattern expanded coverage from 12 initial domains to 47 across five waves — domains like cryo-vibration coupling and GaN power amplifier thermal management that no initial brief would have anticipated.
Cross-Model Verification
Verifies HIGH and CRITICAL findings using N≥3 independent LLMs. Each model is prompted as a domain-specific expert (not a generic verifier), ensuring the evaluation matches the finding's technical domain. A supermajority vote determines the finding's status.
The expert-framing at line 10 is critical. A finding about cryogenic vibration isolation must be evaluated by a model prompted as a cryogenics specialist, not a generic "please verify this" prompt. This principle (BIND-046 in the FDRP rule system) ensures the verifying model brings domain-appropriate reasoning rather than surface-level pattern matching.
The three-way outcome (VERIFIED / CHALLENGED / UNCERTAIN) prevents false certainty. When models disagree without a clear majority, the finding is queued for human review rather than being silently accepted or rejected. In practice, approximately 8% of findings enter the UNCERTAIN state, and human review has overturned model consensus in 3 of 58 production runs.