larc-loops 0.1.1

Agentic loop convergence traits for the Light Architects platform — ConvergenceResult, BlastScore, ConvergenceGate, NPassVerifier, QueueDrain, InterestDecay, IntervalWatch
Documentation
  • Coverage
  • 93.75%
    15 out of 16 items documented1 out of 12 items with examples
  • Size
  • Source code size: 10.94 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 361.01 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 2s Average build duration of successful builds.
  • all releases: 2s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • TheLightArchitects/larc-crates
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • theLightArchitect

larc-loops

Agentic loop convergence traits — strategy-agnostic interfaces for deciding when to halt, continue, or escalate an agentic execution loop.

Provides [ConvergenceResult] and six convergence strategy traits. Implement whichever fits your loop topology; compose multiple traits for hybrid strategies.

Traits

Trait Topology
[BlastScore] Compound risk/score threshold
[ConvergenceGate] Gate-by-gate with phase-back
[NPassVerifier] N independent verification rounds
[QueueDrain] Bounded queue exhaustion
[InterestDecay] Simulated annealing cooling
[IntervalWatch] Interval polling with deadline

Quick start

use larc_loops::{ConvergenceResult, BlastScore};

struct ScoreCheck;
impl BlastScore for ScoreCheck {
    fn check(&self, score: f64, threshold: f64) -> ConvergenceResult {
        if score <= threshold {
            ConvergenceResult::Converged
        } else {
            ConvergenceResult::Blocked {
                reason: format!("blast score {score:.2} > {threshold:.2}"),
            }
        }
    }
}