Controller
Retry only failed checks. Spot repeated errors. Keep the best result. Stop when the time or token limit is reached.
- Stops repeated failure loops
- Safe fixes without another model
- Focused review when stuck
Run agent output in a safe environment. Check it against clear rules. Fix simple errors automatically, and keep a record of every result.
The loop controls retries. The rubric defines success. The sandbox shows how the result behaves before production.
Retry only failed checks. Spot repeated errors. Keep the best result. Stop when the time or token limit is reached.
Tested rule packs for work that matters — from SQL and invoices to regulated customer letters.
Safe SQL, code, and data environments that test real behavior without putting production systems at risk.
RubricLoop turns laws, schemas, policies, and business limits into checks that run on every output. People still make the final decisions.
Check required notices, deadlines, and decision reasons before a letter reaches a customer. Send only unclear cases for review.
Most sandboxes only tell you that a process ended. RubricLoop tells you whether the result is ready to ship and which check failed.
rubricloop run --sandbox postgres-16Syntax, read-only access, correct results, query cost
View environmentMemory, partitions, risky joins, result shape
View environmentBuild, tests, lint, timeouts, approved packages
View environmentCPU, memory, files, charts, spreadsheet totals
View environmentAcross SQL, invoice extraction, constrained replies, and boundary cases, every pass was checked by Python code. When the loop could not fix an output, it stopped early instead of wasting tokens.
Read the experiment summary+25 points over single shot, at 734 mean tokens per run.
Same overall final-pass rate, substantially less token spend.
Unclear rules were reported, never counted as passed or failed.
from rubricloop import verify
run = verify(
agent=write_query,
rubric="engineering/sql-safe-v1",
sandbox="postgres-16",
budget={"iterations": 3, "tokens": 2400},
)
if run.passed:
deploy(run.output)
else:
review(run.residuals)The open-source core runs inside your stack with your model and your data. Add a tested rule pack or managed sandbox later without changing the workflow.
Local loops, local verifiers, local data.
Use free checks or a tested industry pack.
Safe execution, signed results, full history.
The model says it is done.
A second model reviews the first.
Code checks the result and saves the details.
Built for teams whose agents touch databases, regulated documents, or customer actions.
Start with one workflow and turn its requirements into clear checks.