@ancha-labs/cli 0.4.41 → 0.4.42

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -23,6 +23,23 @@ A version 2 test names a world (`ancha/worlds/<id>.yaml`: the company, its peopl
23
23
  - `ancha test new "<the test in one sentence>" --json` drafts a test for the project's world (`--world <id>` when there are several) into `ancha/tests/<id>.yaml`, with a `.gen.json` record of the prompt. The draft is validated against the world (every ref exists, every check can be evaluated) before it is written. On a world with NetSuite, the drafter reads the records the world starts with, the open items and sample records by id, and checks records (`netsuite.record` on records that exist, with fields their type has, `netsuite.count`, `netsuite.unchanged`) and the agent's final answer (`answer`). Read its checks before you run it: each should pass for an agent that does the job and fail for one that doesn't.
24
24
  - Run it like any test: `ancha run ancha/tests/<id>.yaml`. Both commands use a model: your `OPENROUTER_API_KEY`, or your workspace's credit when you're logged in.
25
25
 
26
+ ## Vary a duplicate-report test
27
+
28
+ `ancha test vary` creates a family of tests from a version 2 QuickBooks duplicate-report test, such as Pellmont's example. Each changes one thing about the books: amounts, extra copies, pagination or names. Ancha recalculates the expected findings from each changed world. Generation is deterministic and uses zero model calls.
29
+
30
+ ```sh
31
+ ancha test vary ancha/tests/pellmont-duplicates.yaml --count 10
32
+ ancha run ancha/tests/pellmont-duplicates-v-*.yaml
33
+ ```
34
+
35
+ When signed in, `ancha run` runs the tests in the cloud, in parallel. Use `--on local` on the run command to run them on this computer. The vary command prints a run command selecting the files it generated.
36
+
37
+ - `--count <n>` requests an exact count, from 1 to 32 (default 10). The Pellmont suite has ten recipes; selecting fewer takes them in their established order.
38
+ - `--kinds amounts,copies,pages,names` selects the kinds (default all four). `--seed <value>` repeats the same choices; its default is `0`.
39
+ - `--dry-run --json` validates and prints the plan without creating files. `--json` returns the parent, suite, seed, requested/written/reused counts, each change and the next command.
40
+ - Files go beside the parent, or to `--out <dir>`. Each YAML test contains its frozen world, rewritten checks and parent provenance. A `<parent-id>-vary-<suite-prefix>.json` manifest records the changes, expected values and file hashes; it stays out of the agent's cloud bundle.
41
+ - Repeating the request reuses identical files. An edited destination is a conflict; choose another output directory to keep both. `--idempotency-key <key>` binds a request to its inputs and options.
42
+
26
43
  ## Tests from your evals
27
44
 
28
45
  `ancha test import <file> --world <id> --json` turns evals, questions with expected answers, into tests on a world in `ancha/tests/` (`--out <dir>` for another folder; `--world` defaults to the only world file). It reads JSON lines, a JSON array, CSV with a header row, or a YAML list: