# klieo-spec

Generic decompose / critique / refine traits and a quality loop runner.

Part of the [klieo](https://crates.io/crates/klieo) Rust agent framework.

## Features

- `Decomposer<I, O>`, `Critic<T>`, and `Refiner<T>` traits for iterative quality loops
- `QualityLoop`: bounded-iteration runner with convergence check and telemetry
- Domain-agnostic — plug any decomposer, critic, and refiner

## Usage

```toml
[dependencies]
klieo-spec = "0.38"
```

```rust
use klieo_spec::QualityLoop;

let result = QualityLoop::new(decomposer, critic, refiner)
    .max_iterations(5)
    .run(input)
    .await?;
```

## Status

`0.38.x` — pre-1.0; patch releases are backward-compatible.
See [`docs/SEMVER.md`](https://github.com/mohrimic/klieo/blob/main/docs/SEMVER.md).

## License

MIT — see [`LICENSE`](https://github.com/mohrimic/klieo/blob/main/LICENSE).
