The idea: make outcomes inspectable
A durable run saves progress so interrupted work can resume. A policy constrains available actions. An evaluation runs repeatable scenarios and compares results against checks or a baseline. These solve different problems and can be combined.
Try persistence with a small task:
mini-a durable=true runid=docs-demo \
goal="Create a short checklist for reviewing a documentation change."
mini-a runstatus=docs-demo
The status should identify the saved run. Use resumerun=docs-demo for an interrupted resumable run; it does not mean every external side effect can be replayed safely.
Evaluate the properties you care about—required sections, grounded answers, allowed tool use—rather than assuming success from a final message. Keep model quality, tool correctness, and cost measurements separate. The evaluation launcher reference identifies job-only inputs; supervised execution explains acceptance contracts.
Durable Runs, Policies, and Evaluation
Evaluation reports now expose skill lifecycle deltas and decision usage; unavailable skill measurements remain null. An explicit Decide outcome judge complements deterministic assertions and reports judge usage separately. Supervised evaluations compare independent artifact results, cold/warm contracts and actual per-role usage. See evaluation guidance.
Four opt-in controls for running Mini-A unattended, in restricted environments, or under test. Defaults leave existing behavior unchanged.
| Capability | Turn it on | What it gives you |
|---|---|---|
| Durable runs | durable=true |
Stable run ID, resumable state, safe checkpoints, and a redacted JSONL trace; resume with resumerun=<runid>, inspect with runstatus=<runid> |
| Capability selection | capabilityselection=true |
A normalized registry of MCP tools, skills, plugins, and workers, exposing only a deterministic, bounded relevant subset (capabilitylimit, default 8) |
| Central policy | policy= / policyfile= |
Traceable allow/deny rules for shell, MCP tools, delegation, wiki writes, filesystem writes, named tools, and allowed HTTP domains |
| Evaluation suites | eval=true evalfile=... |
YAML/JSON scenarios with assertions, cost/token/step/time limits, JSON reports, baselines, and regression detection; also usable as ordinary OpenAF tests |
mini-a goal="Inspect the repository" policy="(shell: deny, delegation: deny)" durable=true
mini-a eval=true evalfile=evals/core.yaml evalbaseline=evals/baseline.json
See Advanced for durable runs, capability selection and policies, and evaluation suites.
Durable Runs and Traces
Use durable=true for work that must survive an interrupted process outside the outer loop. Mini-A assigns (or accepts) a stable runid and writes redacted state plus JSONL events under ~/.openaf-mini-a/runs/<runid>/ (override with runroot).
mini-a goal="Review and update the implementation" durable=true runid=review-20260905
mini-a goal="Review and update the implementation" resumerun=review-20260905
mini-a runstatus=review-20260905
Existing resume=true conversation behavior is unchanged; use resumerun=<runid> for durable-run recovery and runstatus=<runid> to inspect one. State records run status, safe agent and plan snapshots, checkpoints, task records, result metadata, and metrics. The trace records run start/end, planning, validation, replan, orchestration decisions, LLM/tool/shell/wiki activity, and checkpoints with timestamps and run IDs. Durable traces redact secret-like fields, shell commands, tool arguments, and full LLM prompts and responses: they are meant for operational reconstruction, not credential storage.
Capability Selection and Policies
Capability selection
With many MCP servers, skills, plugins, and workers, exposing everything bloats the prompt. capabilityselection=true builds one normalized registry from those sources and registers only a deterministic, bounded subset relevant to the goal. capabilitylimit defaults to 8, and mcpdynamic=true continues to work unchanged.
mini-a goal="Find customer records" usetools=true capabilityselection=true capabilitylimit=4
Centralized policy
policy= (SLON/JSON) or policyfile= (JSON file) defines central restrictions. The policy is allow-by-default for compatibility, but a configured deny is enforced before shell execution, MCP/plugin/proxy tool calls, delegation setup, and every mutating wiki operation.
| Rule | Effect |
|---|---|
shell: deny |
Block shell execution |
delegation: deny |
Block delegation setup |
mcp: deny |
Block MCP tool calls |
wiki: (write: deny) |
Block mutating wiki operations |
filesystem: (write: deny) |
Block filesystem writes |
deniedTools: ["tool_name"] |
Block specific tools |
network: (allowDomains: ["example.com"]) |
Restrict HTTP access to listed domains |
mini-a goal="Inspect the repository" policy="(shell: deny, delegation: deny)"
An approval result reuses the existing shell confirmation surface and is fail-closed for non-interactive tool calls. Decisions are written to the structured trace without secrets or unrestricted arguments. Policies complement, and do not replace, shell sandboxing and hooks.
Evaluation Suites
Mini-A has a lightweight native evaluation runner for scenario suites, assertions, resource limits, and baseline comparison.
mini-a eval=true evalfile=evals/core.yaml
mini-a eval=true evalfile=evals/core.yaml evalout=/tmp/mini-a-eval.json
mini-a eval=true evalfile=evals/core.yaml evalwritebaseline=evals/baseline.json
mini-a eval=true evalfile=evals/core.yaml evalbaseline=evals/baseline.json
evalfile accepts a YAML/JSON file or a directory of them. Each scenario requires a goal and may add:
| Field | Purpose |
|---|---|
args |
Normal Mini-A arguments for that scenario |
setup.context, setup.conversation |
Starting context or a provider conversation (an array, or an envelope with a c array); materialized under a scenario-owned temporary directory and removed afterwards |
setup.repeatHistory, setup.contextObjects |
Generated long-history workloads (count 1–1000, `` placeholder) and source fixtures for History VM Phase 2 |
expected, assertions |
Answer and metric assertions |
limits |
Ceilings for cost, tokens, steps, and time |
regression |
Maximum deltas versus a baseline (for example elapsed_ms, input_tokens) |
llm_judge |
{ enabled: true } for an opt-in isolated judge call |
variants |
Named variants merged over the scenario, with variant_comparisons in the report |
variants make one replay run as, for example, History VM Phase 1, Phase 2 shadow, and Phase 2 active without duplicating the fixture; the comparison base is phase1 or baseline when present. When History VM is active, reports also include metrics.history_vm (ContextObjects considered and selected, L0–L4 selections, rehydrations, budget utilization, and shadow or active projection). Only provider token fields Mini-A actually received are reported, and unknown cost stays unset. The run exits nonzero when a scenario fails or a regression is detected.
Skill evaluation and decision judging
From the Mini-A checkout, run mini-a eval=true evalfile=evals/skills.yaml evalout=/tmp/skills-eval.json with configured providers. Compare paired variants on correctness, tool failures, time/tokens and consultation activity. Keep one report per pair, alternate order and separate incomplete samples. A single pair demonstrates the experiment, not improved quality.
metrics.skills contains run deltas for discoveries, selector attempts, selections, loads, blocks, selection duration and returned characters. Missing snapshots or unexplained counter decreases yield null, not measured zero. Final lifecycle state remains under result.skill_activity and raw metrics. Repeated reads count again; external MCPs and arbitrary file reads are outside these counters. Loaded guidance and compliance_verified=false do not establish instruction adherence.
An additional outcome judge is explicitly opt-in:
llm_judge:
enabled: true
backend: decide
It batches existing answer expectations into boolean questions; at least one is required. Deterministic answer and metric assertions still must pass. Configuration precedence is judge args.modeldec, scenario/shared modeldec, then OAF_DECIDE_MODEL; explicit usedecide=false on run or judge disables it with a failed judge. Omitting backend retains the isolated agent judge. The judge sees goal, answer and answer expectations, excluding variant labels and skill activity. One request is bounded to 32 checks/48 KiB; invalid, unsupported or failed responses fail without retry/fallback. Judge calls, tokens and time are separate under result.judge, with unavailable token usage null.
See supervised evaluation for independent artifact assertions, cold/warm contracts, audits and per-role estimated cost. Skipped preparation alone does not establish monetary savings.
Evals as oJob tests
Include mini-a-eval.yaml to register scenarios as ordinary OpenAF tests, sharing counters, profiling, failure history, and JSON, Markdown, or JUnit reports with your unit tests. It also includes oJobTest.yaml from oJob-common, so install that oPack.
include:
- mini-a-eval.yaml
todo:
- name: MiniA Eval
args:
suite: Answers
evalArgs:
useshell: false
usetools: false
scenarios:
- name: Portugal capital
goal: Reply with only the capital of Portugal.
expected: { contains: Lisbon }
limits: { steps: 3 }
- oJob Test Results
Supply exactly one of scenario, scenarios, or file. Shared Mini-A settings go in evalArgs; scenario args then setup.args override them. Optional job arguments are suite, baseline, output, and key. Scenario failures are recorded and the run continues, whereas missing files, ambiguous inputs, and empty suites throw before any test runs. Place an exit-status job after report jobs so CI fails while still saving reports. These scenarios call the configured model provider and need OAF_MODEL.
Next Steps
- Configuration — Full reference for all parameters and environment variables
- Cheatsheet — Quick reference card for daily use
- Examples — Practical examples and recipes
- Getting Started — Installation and first steps