autoany_core
EGRI microkernel — Evaluator-Governed Recursive Improvement runtime.
A trait-based Rust library for building bounded, evaluator-governed optimization loops over executable artifacts.
Quick Start
use *;
use BudgetController;
use Evaluator;
use Executor;
use Ledger;
use EgriLoop;
use Proposer;
use DefaultSelector;
use PromotionPolicy;
// Implement the four core traits for your domain:
// - Executor: run candidates
// - Evaluator: score outcomes
// - Proposer: generate mutations
// - Selector: promote/discard decisions (DefaultSelector provided)
// Then wire them into the loop:
let mut egri = new;
egri.baseline?;
let summary = egri.run?;
Core Traits
| Trait | Role |
|---|---|
Executor |
Run candidate artifacts inside the harness |
Evaluator |
Score execution results, check constraints |
Proposer |
Generate mutations from current state + history |
Selector |
Decide: promote, discard, branch, or escalate |
Included Components
EgriLoop— Full loop orchestrator with lifecycle managementBudgetController— Trial and time limits (fails closed)PromotionController— State management with rollbackLedger— Append-only trial records (in-memory or JSONL)DefaultSelector— KeepIfImproves, Threshold, HumanGate, Pareto policiesProblemSpec— Deserializable problem definition
Core Law
Do not grant an agent more mutation freedom than your evaluator can reliably judge.
License
MIT