Operation result reports
Every CLI workflow and Skill-template command attempts to save a UTF-8 Markdown report after success, failure, cancellation or a request for human confirmation. Situation modes are included; help, version queries and Python API calls are excluded.
The report follows --lang and records status, exit code, timing, permitted settings, input paths, available counts, artifacts, sanitized problems and next steps. Existing files are distinguished from new or modified files. Resume guidance requires a work-session hint from the failed invocation. Incorrect answers are evaluation findings, while execution or judging errors are operation issues.
An output at artifacts/evaluation.json gets artifacts/evaluation.json.operation.md; a template directory at lladar-skills/eval gets a sibling lladar-skills/eval.operation.md. Existing reports are preserved with .operation-2.md, .operation-3.md, and so on, even with --force. Unresolved or unwritable output locations fall back to .lladar/operation-reports/STAGE.operation.md in the original working directory.
No extra model call is made, and exit codes remain unchanged. The location is printed with --no-verbose and included in an active --log. Raw prompts, answers, URLs, credentials and arbitrary exception messages are omitted. These reports complement logs and generation/evaluation evidence. If neither location can be written, a warning is shown; forced termination cannot guarantee a report.
Dataset token usage (v0.17.0)
create test-dataset records provider-reported input/output usage across its native Akasha model calls, including inventory, reconciliation, generation, audit, coverage review, repairs and retries. Usage is collected from the existing response through LangChain callbacks; no additional generation or token-count request is made. Repeated prompts, conversation history and tool results count again when the provider reports them as input.
With --verbose (the default), [TOKENS] shows cumulative input, output, total and unreported-call counts after each model response. --no-verbose hides the updates but still saves usage; an active --log includes emitted updates. There is no token-by-token update while a response is pending. Token budgets such as --max-input-tokens are limits, not measured usage.
| Saved field | Meaning |
|---|---|
input_tokens / output_tokens | Cumulative provider-reported input and output tokens. |
total_tokens | Input plus output tokens. |
cached_input_tokens / reasoning_output_tokens | Reported subsets of input/output; do not add them to the total again. Zero may mean that the provider supplied no breakdown. |
reported_calls / unreported_calls / failed_calls | Calls with valid usage, calls without usable usage, and failed calls. Failed calls can overlap either of the first two categories. |
stages | The same counters grouped by workflow stage. |
status | reported: observed calls returned usable usage; partial: some calls or historical work have unknown usage; unavailable: no usable usage was collected. |
historical_usage_unknown | Earlier work in a resumed session predates token tracking. |
The token_usage object is saved in <output>.generation.json and the work-session checkpoint. The operation report includes totals, per-stage counts, limitations and the usage added by this invocation. Resume retains the session total without recounting saved work. A coverage report generated from the sidecar also includes its saved usage.
Missing usage is unknown, not zero. Failed requests, provider-internal retries and work predating tracking may not be reported; custom integrations that do not emit compatible callbacks may provide no usage. These counters cover dataset generation and are not a billing statement or totals for a separately run target Agent, evaluation or report generation.
Language: --lang CODE
Available on every workflow, Skill-template command and help page. New work defaults to en, including generated prose. Use en, zh-TW, ja (aliases jp/Jp), ko, or zh-CN for localized interface text, fixed report headings and offline templates.
Other valid codes, such as fr, are passed to the model; interface text, fixed headings and templates use English with a brief notice. Acceptance does not establish model support. Codes contain letters and optional hyphen-separated alphanumeric subtags.
lladar --lang ja --help
lladar create test-dataset --knowledge knowledge.md --lang zh-TW --output dataset.jsonl
lladar run-agent dataset.jsonl --project ../my-agent --lang zh-TW
lladar eval responses.jsonl --lang zh-TW
lladar report evaluation.json --lang ko
lladar create report-skill --lang zh-CN
Saved questions, target responses, quotes, IDs, schema keys, exact probes and measurements retain their original values. Browser extraction preserves the original answer. Technical diagnostics and third-party traces may retain their original language. Situation free-text generation uses the chosen language. This option does not add a target-language requirement or scoring criterion.
Next-step commands carry the setting. A new stage without it uses en; --resume restores the saved language unless an identical value is supplied. Conflicts are rejected; sessions without language metadata require their original version or new work. Python stage APIs accept lang="ja". Metadata distinguishes lang from ui_lang; templates include language.json with template_lang.
Output paths
All main workflow commands accept an optional --output directory or file path.
Omitting it writes into runs/ under the current directory: a timestamped
test-dataset-YYYYMMDD-HHMMSS.jsonl, situation.json, responses.jsonl,
evaluation.json, or report.md. With --output ./artifacts, the same names
and their sidecars go into ./artifacts/. Existing directories, trailing
separators, and new paths without a suffix are directories; existing files and
new paths with a suffix are filenames. For a new directory containing a dot,
use ./results.v1/. Existing outputs still require --force.
After each successful stage, a work summary lists the absolute output directory,
each generated file and its purpose, and the next command or reading step.
This summary remains visible with --no-verbose and is also saved by --log.
Shared options
lladar --version prints the installed package version. Add --log PATH to any workflow command, or before the command, to save emitted terminal output to a new UTF-8 file while keeping it visible. Logs contain progress, traces, summaries and handled errors without ANSI color codes. --no-verbose suppresses detailed output in both destinations. Parent directories are created automatically; existing log files are preserved even with --force.
lladar create test-dataset --knowledge policy/ --output dataset.jsonl --log logs/create.logCommand map
| Command | Purpose | Main output |
|---|---|---|
lladar create test-dataset | Create questions and expected answers from knowledge. | Dataset JSONL and .generation.json. |
lladar create situation | Compile a knowledge-optional behavior and stopping rule into a reusable configuration. | Situation JSON. |
lladar run-agent | Run one-question datasets or multi-turn situations. | Responses or transcripts JSONL with mode-specific execution sidecars. |
lladar eval | Judge completed responses. | Evaluation JSON. |
lladar report | Render an evaluation as Markdown. | Markdown report. |
plan
Describe what you want to test in natural language. The planner asks for missing information, builds a structured PlanSpec, validates it against the available workflows, and renders the resulting plan and commands. It is a planner, not an executor: it does not call the target Agent, sign in, store credentials, or run later stages.
lladar plan [REQUIREMENT] [OPTIONS]Omit the requirement to start an interactive session, or provide it as the opening message:
lladar plan "Check whether my support Agent follows the refund documents" --debug
lladar plan --output runs/refund-plan --debug --log runs/refund-plan/plan.log| Argument | Default | Use |
|---|---|---|
REQUIREMENT | None | Natural-language testing goal; you can supply more detail during the conversation. |
--output DIRECTORY | runs/plan-YYYYMMDD-HHMMSS | Plan package directory. Existing directories are not overwritten. |
--model MODEL | Model profile | Model for the planning agent only; it does not select models for later stages. |
--env-file PATH | .env | Environment file for the planning model provider. |
--lang CODE | en | Language for the planning conversation, summary, and artifacts. |
--debug | Off | Show live redacted diagnostic events. |
--log PATH | plan.log inside the plan directory | Save structured events to another log path; existing logs are preserved. |
A plan package normally contains plan.md, plan.json, plan-events.jsonl, and plan.log. A ready plan also contains commands.ps1; blocked or failed plans contain diagnostics.json.
ready means local inputs, capability combinations, command arguments, and stage dependencies passed static checks. It does not prove that the target is reachable or that the test will succeed. blocked means required input or capability is missing; failed means planning or artifact handling encountered an error. Read the summary and diagnostics before running the commands from a ready plan.
Dataset generation methods
The selected Skill guides direct QA or optional graph generation. Python may produce or repair candidates; every delivery path faces final validation. The JSONL format is unchanged, and .graph.json is optional.
create test-dataset
Generate a dataset from one or more knowledge files or directories.
lladar create test-dataset (--knowledge PATH | --from-github URL) [OPTIONS]| Argument | Default | Use |
|---|---|---|
--knowledge PATH | Required unless --from-github; repeatable | Knowledge file or directory. Repeat it to combine inputs. |
--from-github URL | Required unless --knowledge | Discover datasets in a public GitHub repository and save a per-question evidence report. |
--skill DIRECTORY | Bundled knowledge-point-qa; GitHub: github-dataset | One local method directory containing SKILL.md. |
--output PATH | . | Directory for a timestamped test-dataset-YYYYMMDD-HHMMSS.jsonl. A path ending in .jsonl names the file directly. |
--count N | 0 | Maximum number of deduplicated records; 0 keeps all candidates. |
--seed SEED | 0 | Seed for deterministic candidate shuffling. |
--model MODEL | gemini:gemini-3.7-flash | Model for dataset generation. |
--env-file PATH | .env | Environment file supplied to the model provider. |
--temperature TEMPERATURE | 0.0 | Sampling temperature for generation. |
--max-input-tokens N | Selected model profile | Override that profile's input-token budget. |
--max-output-tokens N | Selected model profile | Override that profile's output-token budget. |
--auto-window-ratio RATIO | Selected model profile | Override that profile's automatic context-window ratio. |
--force | Off | Permit replacement of an existing output file. |
--verbose / --no-verbose | On | Show or hide progress, the generation trace and cumulative token updates. Usage is saved even when updates are hidden; see token accounting. |
lladar create test-dataset --knowledge policy/ --knowledge faq.md --count 30 --seed 7 --output artifacts/dataset.jsonlcreate situation
Compile an observation, stopping rule, declared variation axes, and fixed judging method into a situation JSON. Knowledge is optional; this is separate from the three-field QA dataset.
lladar create situation (--instructions TEXT | --instructions-file PATH) (--stop-criteria TEXT | --stop-criteria-file PATH) --max-turns N [--output PATH] [OPTIONS]| Argument | Default | Use |
|---|---|---|
--instructions TEXT / --instructions-file PATH | One required | Overall generation, execution and default evaluation instructions; text/file inputs are mutually exclusive. Legacy --observe / --observe-file aliases remain. |
--stop-criteria TEXT / --stop-criteria-file PATH | One required | Semantic stopping rule, given directly or read as UTF-8 from a file; mutually exclusive. |
--max-turns N | Required | Positive maximum number of user/target turns in one scenario. |
--knowledge PATH | None; repeatable | Existing .md or .txt file. LLaDAR saves path and hash and checks it again at run/eval. |
--output PATH | situation.json | Destination situation JSON. Existing output is rejected unless --force. |
--skill DIRECTORY | Bundled create-situation | Local SKILL.md for authoring the one configuration. |
--model MODEL | gemini:gemini-3.7-flash | Model used to compile the situation. |
--env-file PATH | .env | Provider environment file. |
--force | Off | Replace an existing configuration file. |
lladar create situation --instructions "Ask for missing order details without inventing status" --stop-criteria "Stop after a follow-up reply or at the turn limit" --max-turns 3 --output artifacts/situation.jsonThe result stores the observation, stop text, knowledge hashes, generation and run methods, variation axes, and evaluation rubric. See the full multi-turn workflow.
run-agent
Run an Agent through an inspected project or a calibrated question webpage, verify the route, and fill actual_response in a new responses file.
Choosing the target
--project PATH can be enough on its own: LLaDAR learns the public interface and startup procedure from source and documentation. With the necessary runtime configuration available, it can start a required service in an isolated project copy and stop only what it started. Missing startup, authentication, or API contract details require clarification.
Add --service-url URL only to use an already running test service. It supplies the base address, not a startup command or the HTTP method, route, payload, or response format; those still come from project inspection. LLaDAR does not start or stop that existing service. The option is --service-url, not --service-api.
Use --page-url URL instead when you have a normal question webpage without project source: browser sign-in and calibration record the request for replay, then the model extracts response text. It cannot be combined with --project or --service-url. With neither target option, LLaDAR inspects the current directory. See the three-path selection guide.
lladar run-agent DATASET [OPTIONS]
lladar run-agent --situation-config PATH --num-scenarios N [OPTIONS]| Argument | Default | Use |
|---|---|---|
DATASET | Required for QA mode | Input JSONL whose actual_response values are null. Omit with --situation-config. |
--project PATH | . | Target Agent project to inspect and copy into an isolated workspace. |
--page-url URL | None | Normal question page; always uses guided sign-in, calibration, consent and MATCH. Requires terminal stdin/stderr before browser startup. Do not add interaction flags; mutually exclusive with --project. |
--output PATH | responses.jsonl | Main JSONL path. QA mode adds PATH.trials.jsonl and PATH.run.json; situation mode adds PATH.scenarios.jsonl, PATH.turns.jsonl, PATH.calibration.json, and PATH.run.json. |
--skill DIRECTORY | Bundled run-agent-stability | One local SKILL.md method directory for scheduling. |
--situation-config PATH | None | Use a frozen situation JSON instead of DATASET. Cannot combine with --skill. |
--num-scenarios N | None | Required positive count of scenarios when using --situation-config. |
--seed SEED | 0 | Seed for deterministic record selection in QA mode. |
--model MODEL | gemini:gemini-3.8-flash | Project coding model; browser answer extraction defaults to gemini:gemini-3.8-flash (Gemini API only). |
--max-input-tokens N / --max-output-tokens N | Selected model profile | Override positive token budgets for project auto-adapter discovery, generation and repair only; target Agent and browser extraction budgets are unchanged. Default Gemini 3.8 Flash budgets: 1,048,576 input / 65,536 output tokens. |
--env-file PATH | .env | Environment file for both the coding-model provider and target process. Existing environment variables take precedence. |
--target-python PATH | QA: discover PROJECT/.venv; situation: project venv or current interpreter | Python executable used by the target project. |
--timeout SECONDS | 3600 (60 minutes) | Limit in seconds for each adapter, tool subprocess, or browser request. Browser startup/navigation separately allow 300 seconds (5 minutes). Does not raise the separate extraction limits. |
--max-tool-calls N | 100 | Maximum tool calls in one discovery or adapter-repair turn. |
--graphify / --no-graphify | On | Enable or disable optional static code-graph exploration before source exploration. |
--graphify-python PATH | Auto-discover an existing uv tool environment | Python executable that has graphifyy. |
--service-url URL | None | Base URL of an already running test service that the generated project adapter may call. It does not discover an arbitrary API URL. |
--confirm-browser-run | Off | Preapprove only the verification and scheduled dataset requests. Does not approve model transfer or skip terminal calibration and MATCH. |
--allow-response-model-transfer | Off | Approve real response content to --model for this run: at most N+2 calls for N trials, 8,192 output tokens per call, shared 60 minutes. Not website approval or a verification bypass. |
--fresh-browser-profile | Off | Use a temporary signed-out profile instead of reusing this site's local browser session. |
--interactive / --no-interactive | Project mode: on only in a TTY | Allow or disable project-interface prompts. Rejected with --page-url; browser mode always uses its guided terminal workflow. |
--force | Off | Replace an existing responses file and its sidecars. |
--verbose / --no-verbose | On | Show or hide progress and coding-Agent traces. |
lladar run-agent artifacts/dataset.jsonl --project path/to/agent --no-interactive --output artifacts/responses.jsonl
lladar run-agent artifacts/dataset.jsonl --project path/to/agent --service-url http://127.0.0.1:8000 --output artifacts/responses.jsonl
lladar run-agent artifacts/dataset.jsonl --page-url https://example.test/chat --output artifacts/responses.jsonlDirect model extraction is the only browser answer path, default gemini:gemini-3.8-flash. One YES approves both disclosed website requests and real response content transfer before GEMINI_API_KEY/GOOGLE_API_KEY is loaded. The two approval flags retain separate scopes; both skip approval, not MATCH review. MATCH compares the full verification response and extracted text in the color terminal (stderr), with no HTML tab. NO_COLOR or TERM=dumb selects plain text. Redirected review output is refused; terminal scrollback may retain content. Browser capture remains required. Model input is capped at 120 KiB of UTF-8 JSON including framing, without truncation or retries. Valid extraction does not guarantee fidelity or answer correctness. See the run guide.
Situation execution contract
A project supplies lladar_session.py or LLaDAR generates a candidate in a project copy. Two turns in one session plus a fresh-session isolation probe must pass before scored requests. The selected --service-url is passed as LLADAR_SERVICE_URL; the adapter must use the actual public API. --page-url is unsupported with situation mode. The run JSON records the adapter hash, source and any errors. See adapter calibration.
lladar run-agent --situation-config artifacts/situation.json --project example_project/situation_demo --num-scenarios 2 --output artifacts/transcripts.jsonleval
Use an evaluation method to judge completed responses and calculate a summary from the saved judgments.
lladar eval RESPONSES [OPTIONS]| Argument | Default | Use |
|---|---|---|
RESPONSES | Required | QA responses JSONL or situation transcripts JSONL created by run-agent. |
--output PATH | evaluation.json | Evaluation JSON to create. |
--criteria TEXT | None | Evaluation requirements for the built-in method; mutually exclusive with --skill. |
--skill DIRECTORY | None | A complete local evaluation method, including its standards. Replaces default typed/probe scoring too. |
--situation-config PATH | None | Verify original run/config hashes. Use the frozen rubric by default; --criteria or --skill can replace evaluation without changing that config. |
--model MODEL | gemini:gemini-2.5-flash | Model used by the evaluator. |
--env-file PATH | .env | Environment file supplied to the evaluator provider. |
--strict | Off | Stop the command when a per-record evaluator error occurs. Without it, the record is saved as a judge error and evaluation continues. |
--force | Off | Replace an existing evaluation file. |
--max-input-tokens N / --max-output-tokens N | Selected model profile | Positive evaluator token limits for plans and judgments in both modes; saved in evaluation JSON. |
--verbose / --no-verbose | Enabled | Settings, trial progress, waiting heartbeats, outcomes and elapsed time; --log saves the same output. |
lladar eval artifacts/responses.jsonl --strict --output artifacts/evaluation.jsonWith neither option, existing default scoring remains. Evaluation results and reports record the effective settings, criteria text/hash or Skill source/evidence. Correctness tables require a correctness dimension.
lladar eval artifacts/responses.jsonl --criteria "Observe target wording; presence alone is not bias" --output artifacts/wording-evaluation.jsonSituation judgments
Situation evaluations save validity, behavior, cited turn IDs, and deterministic counts. Failed or indeterminate trials are excluded from the observed rate.
lladar eval artifacts/transcripts.jsonl --situation-config artifacts/situation.json --output artifacts/situation-evaluation.jsonreport
Render an evidence-bounded Markdown report from an evaluation output.
lladar report EVALUATION [OPTIONS]| Argument | Default | Use |
|---|---|---|
EVALUATION | Required | Evaluation JSON created by eval. |
--output PATH | report.md | Markdown report to create. |
--skill DIRECTORY | QA: bundled report-evidence-summary; situation: none | One local SKILL.md report-summary method. In situation mode it only adds narrative; saved judgments and counts stay fixed. |
--model MODEL | gemini:gemini-3.7-flash | Model used for a Skill-written summary; situation reports without --skill are rendered without a model call. |
--env-file PATH | .env | Environment file supplied to the report provider. |
--force | Off | Replace an existing report. |
lladar report artifacts/evaluation.json --output artifacts/report.md