@fabricorg/experiments 1.0.3 → 1.1.0

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.
package/README.md CHANGED
@@ -58,9 +58,31 @@ fx report homepage-cta
58
58
  fx kill homepage-cta --reason "Web Vitals regression"
59
59
  ```
60
60
 
61
+ ## Local evaluation gate
62
+
63
+ ```bash
64
+ fx eval run ./eval.config.mts --trials 3 --result ./eval-result.json
65
+ ```
66
+
67
+ The config's default export supplies a JSONL dataset path, evaluators, a
68
+ `ModelClient`, and gate rules. Precomputed outputs in `metadata.output` with
69
+ pure code evaluators require no network call. Use `--gates` to override the
70
+ rules or `--baseline` and `--tolerance` to compare against prior evidence.
71
+ Use `--trials` to override the config's trial count, which defaults to `1`.
72
+ Rows that repeat an `exampleId` are rejected before any evaluation runs.
73
+ An `evaluatorNames(example)` selection may be omitted to use all evaluators;
74
+ an empty list fails with `empty-evaluator-selection` and the item ID, and
75
+ unknown names produce `unknown-evaluator` reasons.
76
+ The result includes evaluator versions, per-trial scores, item mean intervals,
77
+ trial disagreement, unevaluable cases, and gate reasons. An empty dataset fails. See the
78
+ [CLI reference](https://experiments.fabric.pro/docs/reference/cli#local-evaluation-gate)
79
+ for config and evidence details.
80
+
61
81
  ## Commands
62
82
 
63
83
  ```text
84
+ fx eval run <config-module> Run a local evaluation gate on a JSONL dataset.
85
+ Config options include concurrency and timeoutMs.
64
86
  fx validate <dir> Lint experiment YAML files in <dir>.
65
87
  fx plan <dir> Show diff between YAML and live control plane.
66
88
  fx apply <dir> Apply YAML to the control plane.