Skip to content

Garry's Opinionated OpenClaw/Hermes Agent Brain

TypeScript

docs(eval): P5 dev verdict at 21befeb5b — LME-S and N4 guardrails pass; decision.json and verdict.json from eval:decide

garrytan36087a46c662
diff --git a/docs/eval/decisions/p5-dev-2026-10-04/decision.json b/docs/eval/decisions/p5-dev-2026-10-04/decision.json
index 7c845adbe6..27c5957bd3 100644
--- a/docs/eval/decisions/p5-dev-2026-10-04/decision.json
+++ b/docs/eval/decisions/p5-dev-2026-10-04/decision.json
@@ -6,34 +6,18 @@
"verdict_type": "quality",
"stage": "dev",
"candidate": {
- "gbrain": "/workspace/gbrain@b32fdb9d19898044a95ed400e832377fc3d038ed",
- "config": {}
+ "gbrain": "/workspace/gbrain@21befeb5b7274b23e872261aa924ee46f63a0d20",
+ "config": {
+ "line_grammar.enabled": "true",
+ "wanted_pages.enabled": "true",
+ "put_page.similar_pages": "true"
+ }
},
"baseline": {
"gbrain": "/workspace/gbrain@6622a119e40ea09a7719233046aca24741863ed2",
"config": {}
},
"sources": [
- {
- "id": "type-accuracy",
- "kind": "category",
- "category": "type-accuracy",
- "script": "eval/runner/type-accuracy.ts",
- "args": [],
- "paid": false,
- "comparisons": [
- {
- "id": "type-match",
- "metric": "anyTypeMatch",
- "gate": "noninferiority",
- "direction": "higher",
- "tolerance": 0.01,
- "cluster_by": "probe_id"
- }
- ],
- "rows_path": "data.rows",
- "id_field": "probe_id"
- },
{
"id": "n4-entity-resolution",
"kind": "category",
@@ -46,16 +30,39 @@
"paid": false,
"comparisons": [
{
- "id": "n4-recall",
- "metric": "recall",
+ "id": "n4-correct",
+ "metric": "resolver_correct",
"gate": "noninferiority",
"direction": "higher",
"tolerance": 0.01,
"cluster_by": "family"
+ },
+ {
+ "id": "n4-no-new-wrong-merge",
+ "metric": "resolver_wrong",
+ "gate": "exact",
+ "assertion": {
+ "kind": "no_item_regression",
+ "direction": "lower"
+ },
+ "cluster_by": "family"
}
],
"rows_path": "data.rows",
- "id_field": "id"
+ "id_field": "id",
+ "min_clusters": 5,
+ "derive": [
+ {
+ "field": "resolver_correct",
+ "from": "resolver.outcome",
+ "equals": "correct"
+ },
+ {
+ "field": "resolver_wrong",
+ "from": "resolver.outcome",
+ "equals": "wrong"
+ }
+ ]
},
{
"id": "lme-s-dev",
@@ -107,6 +114,6 @@
"seed": 42,
"draws": 10000,
"budget_usd": 24,
- "created_at": "2026-10-04T19:18:26.123Z",
- "notes": "Human-typable fact/link line grammar, wanted pages, duplicate nudge: typed-edge accuracy and entity resolution; LME-S as a guardrail."
-}
+ "created_at": "2026-10-04T20:34:16.055Z",
+ "notes": "Human-typable fact/link line grammar, wanted pages, duplicate nudge: entity resolution and LME-S as guardrails. Typed-edge accuracy (type-accuracy.ts) cannot measure an overlay build yet; add a grammar category for the primary."
+}
\ No newline at end of file
diff --git a/docs/eval/decisions/p5-dev-2026-10-04/dev-results.md b/docs/eval/decisions/p5-dev-2026-10-04/dev-results.md
index cff97b7041..e69b569e5a 100644
--- a/docs/eval/decisions/p5-dev-2026-10-04/dev-results.md
+++ b/docs/eval/decisions/p5-dev-2026-10-04/dev-results.md
@@ -1,8 +1,9 @@
# P5 dev results (development data; not eligible to set a default)
-Baseline gbrain master 6622a119e; candidate branch `capy/p5-line-grammar-wanted-pages`. H1, H2, H4 and H5a are dev
-diagnostics run from scripts against the two builds (the kit has no runners for them yet); the LME-S guardrail runs
-through `eval:decide`.
+Baseline gbrain master 6622a119e; candidate branch `capy/p5-line-grammar-wanted-pages`, pinned at 21befeb5b in
+`decision.json`. H1, H2, H4 and H5a are dev diagnostics run from scripts against the two builds (the kit has no runners
+for them yet); the LME-S guardrail and the N4 resolver comparison run through `eval:decide` (gbrain-evals
+`p0-heldout-harness` 847ef5c), with the kit's output in `verdict.json`.
## H1 — link typing on world-v1 (240 pages, 280 gold edges)
@@ -59,17 +60,29 @@ The full world-v1 corpus has 109 linked person/company pages that do not exist;
Lexically detectable families: 79/81 = 0.975. Nicknames without a declared alias, handles and first names are the
semantic gap (deferred). Seeds 2 and 3 give overall solvable recall@3 0.789 and 0.764, with no hints on no-referent names.
-## LME-S guardrail
+## LME-S guardrail and N4 resolver (`eval:decide`, verdict PASS)
-Running through `eval:decide dev`; the verdict is appended here when both arms finish.
+| Source | Comparison | Baseline | Candidate | Δ (95% CI) | n |
+|---|---|---|---|---|---|
+| lme-s-dev | recall_all@5, noninferiority (tolerance 0.01) | 0.9277 | 0.9277 | 0.0000 [0.0000, 0.0000] | 470 questions |
+| lme-s-dev | nDCG@10, exploratory | 0.9429 | 0.9429 | 0.0000 [0.0000, 0.0000] | 470 |
+| n4-entity-resolution | resolver correct, noninferiority (tolerance 0.01) | 0.6176 | 0.6176 | 0.0000 [0.0000, 0.0000] | 136 items, 10 families |
+| n4-entity-resolution | no new wrong merge, exact | pass | pass | | 136 |
+
+Retrieval on LongMemEval-S is identical item for item: chat-session pages carry no relation lines, link targets or
+near-duplicate names, so P5 changes nothing they index. The exploratory latency column (168 ms baseline, 61 ms candidate)
+is a run-order artifact, not a P5 effect: the baseline shards ran first, alongside the N4 runners and a cold embedding
+cache. Resolver outcomes on N4 are unchanged because the similar-page hint is advisory and never merges. Both N4 arms
+still miss the runner's absolute bars (b3_f1 0.771 < 0.9, unresolved rate 0.294 > 0.1) identically; that is the
+resolver's state on master, outside P5. The LME-S arms cost $4.53 in embeddings.
## Harness gaps (requirements on the eval harness)
-1. `eval/runner/type-accuracy.ts` ignores `--gbrain` and `--output`: under `eval:decide` both arms measure the pinned
- dependency and no receipt lands in the run directory. It needs overlay import (`importGbrain`) and a receipt at
- `--output` with `data.rows`.
-2. `eval/runner/n4-entity-resolution.ts` exits 1 when its own absolute bars fail (both arms fail identically today),
- which the kit records as an arm failure; a dev comparison needs the receipt rows regardless of the absolute verdict.
+1. `eval/runner/type-accuracy.ts` ignores `--gbrain` and `--output`, so the kit now refuses it as a source; H1 needs
+ overlay import (`importGbrain`) and a receipt at `--output` with `data.rows` before it can run under `eval:decide`.
+2. Category runners take only `search.*` pins, so `candidate.config` (the P5 flags) does not reach
+ `n4-entity-resolution`; it measures the candidate's defaults, which have every P5 flag on. A flags-off arm on the
+ candidate build needs config pins for category runners.
3. H2: a world-v1 relation-line variant generator with held-out seeds and template families not used in dev.
4. H3: the junk-audit runner (corpus loaders for LongMemEval-S haystacks and LoCoMo transcripts as markdown, a public
notes vault, two-judge labeling with adjudication).
diff --git a/docs/eval/decisions/p5-dev-2026-10-04/preregistration.md b/docs/eval/decisions/p5-dev-2026-10-04/preregistration.md
index 32ad6fbc63..c0b80f130f 100644
--- a/docs/eval/decisions/p5-dev-2026-10-04/preregistration.md
+++ b/docs/eval/decisions/p5-dev-2026-10-04/preregistration.md
@@ -54,6 +54,8 @@ mean±SD, paired bootstrap 95% CI. Bar: B − A >= +3 points with CI lower bound
`line_grammar.enabled` needs H1, H2, H3 and H6. H6 runs only if H1–H3 pass.
Guardrail: LongMemEval-S retrieval (`lme-s-dev` in `decision.json`), noninferior.
+Guardrail: N4 resolver outcomes (`n4-entity-resolution` in `decision.json`): correct resolutions noninferior
+(tolerance 0.01) and no item that resolved correctly on the baseline merges wrongly on the candidate.
## Budget
diff --git a/docs/eval/decisions/p5-dev-2026-10-04/verdict.json b/docs/eval/decisions/p5-dev-2026-10-04/verdict.json
new file mode 100644
index 0000000000..aadbd2d3c8
--- /dev/null
+++ b/docs/eval/decisions/p5-dev-2026-10-04/verdict.json
@@ -0,0 +1,245 @@
+{
+ "decision_id": "p5-dev-2026-10-04",
+ "plan": "P5",
+ "stage": "dev",
+ "eligible_for_default": false,
+ "eligibility_note": "Dev verdicts come from development data and never set a default. A held-out verdict comes from the custodian after a committed preregistration.",
+ "verdict_type": "quality",
+ "overall": "pass",
+ "decided_at": "2026-10-04T21:21:01.761Z",
+ "sources": [
+ {
+ "source": "n4-entity-resolution",
+ "verdict": "pass",
+ "arms": {
+ "baseline": "0.60.48.0",
+ "candidate": "0.60.48.0"
+ },
+ "family": {
+ "family_id": "p5-dev-2026-10-04:n4-entity-resolution",
+ "verdict": "pass",
+ "reasons": [],
+ "alpha": 0.05,
+ "holm_family": [
+ "n4-correct"
+ ],
+ "comparisons": [
+ {
+ "id": "n4-correct",
+ "metric": "resolver_correct",
+ "gate": "noninferiority",
+ "status": "pass",
+ "reasons": [
+ "McNemar treats items as independent; the clustered sign-flip p-value is the primary test here"
+ ],
+ "n_pairs": 136,
+ "n_clusters": 10,
+ "n_excluded": 8,
+ "stats": {
+ "n_pairs": 136,
+ "n_clusters": 10,
+ "mean_a": 0.6176470588235294,
+ "mean_b": 0.6176470588235294,
+ "delta": 0,
+ "se_cluster": 0,
+ "se_iid": 0,
+ "design_effect": null,
+ "effective_n": null,
+ "ci95": [
+ 0,
+ 0
+ ],
+ "p_two_sided": 1,
+ "p_greater": 1,
+ "p_less": 1,
+ "p_method": "degenerate"
+ },
+ "mcnemar": {
+ "losses": 0,
+ "wins": 0,
+ "both_pass": 84,
+ "both_fail": 52,
+ "discordant": 0,
+ "p_two_sided": 1
+ },
+ "power": {
+ "alpha": 0.05,
+ "power": 0.8,
+ "mde": null,
+ "min_one_sided_discordant": 6,
+ "note": "no paired variation was observed, so the detectable effect cannot be estimated from this data; an exact McNemar test needs at least 6 wins with zero losses to reach 0.05"
+ },
+ "direction": "higher",
+ "p_holm": 0,
+ "tolerance": 0.01,
+ "p_noninferiority": 0
+ },
+ {
+ "id": "n4-no-new-wrong-merge",
+ "metric": "resolver_wrong",
+ "gate": "exact",
+ "status": "pass",
+ "reasons": [],
+ "n_pairs": 136,
+ "n_excluded": 8
+ }
+ ]
+ }
+ },
+ {
+ "source": "lme-s-dev",
+ "verdict": "pass",
+ "arms": {
+ "baseline": {
+ "package": "gbrain",
+ "declared_pin": "github:garrytan/gbrain#739e5cc89ca43b9b9351f0f203c7b12a7c0c571c",
+ "declared_sha": "739e5cc89ca43b9b9351f0f203c7b12a7c0c571c",
+ "version": "0.60.48.0",
+ "package_sha256": "fab1c3142270c58c8357f2298bb3f7bf9b59a1062f5954684e95bd1d1cc11c01",
+ "loaded_git_head": "6622a119e40ea09a7719233046aca24741863ed2"
+ },
+ "candidate": {
+ "package": "gbrain",
+ "declared_pin": "github:garrytan/gbrain#739e5cc89ca43b9b9351f0f203c7b12a7c0c571c",
+ "declared_sha": "739e5cc89ca43b9b9351f0f203c7b12a7c0c571c",
+ "version": "0.60.48.0",
+ "package_sha256": "dc928b2f8037a2f91fdb81c53ebd3cf04d49d772c400c64f865685733f89b871",
+ "loaded_git_head": "21befeb5b7274b23e872261aa924ee46f63a0d20"
+ }
+ },
+ "family": {
+ "family_id": "p5-dev-2026-10-04:lme-s-dev",
+ "verdict": "pass",
+ "reasons": [],
+ "alpha": 0.05,
+ "holm_family": [
+ "recall-all-5"
+ ],
+ "comparisons": [
+ {
+ "id": "recall-all-5",
+ "metric": "recall_all_at_5",
+ "gate": "noninferiority",
+ "status": "pass",
+ "reasons": [],
+ "n_pairs": 470,
+ "n_clusters": 470,
+ "n_excluded": 30,
+ "stats": {
+ "n_pairs": 470,
+ "n_clusters": 470,
+ "mean_a": 0.9276595744680851,
+ "mean_b": 0.9276595744680851,
+ "delta": 0,
+ "se_cluster": 0,
+ "se_iid": 0,
+ "design_effect": null,
+ "effective_n": null,
+ "ci95": [
+ 0,
+ 0
+ ],
+ "p_two_sided": 1,
+ "p_greater": 1,
+ "p_less": 1,
+ "p_method": "degenerate"
+ },
+ "mcnemar": {
+ "losses": 0,
+ "wins": 0,
+ "both_pass": 436,
+ "both_fail": 34,
+ "discordant": 0,
+ "p_two_sided": 1
+ },
+ "power": {
+ "alpha": 0.05,
+ "power": 0.8,
+ "mde": null,
+ "min_one_sided_discordant": 6,
+ "note": "no paired variation was observed, so the detectable effect cannot be estimated from this data; an exact McNemar test needs at least 6 wins with zero losses to reach 0.05"
+ },
+ "direction": "higher",
+ "p_holm": 0,
+ "tolerance": 0.01,
+ "p_noninferiority": 0
+ },
+ {
+ "id": "ndcg-10",
+ "metric": "ndcg_at_10",
+ "gate": "exploratory",
+ "status": "report_only",
+ "reasons": [],
+ "n_pairs": 470,
+ "n_clusters": 470,
+ "n_excluded": 30,
+ "stats": {
+ "n_pairs": 470,
+ "n_clusters": 470,
+ "mean_a": 0.9429414225547724,
+ "mean_b": 0.9429414225547724,
+ "delta": 0,
+ "se_cluster": 0,
+ "se_iid": 0,
+ "design_effect": null,
+ "effective_n": null,
+ "ci95": [
+ 0,
+ 0
+ ],
+ "p_two_sided": 1,
+ "p_greater": 1,
+ "p_less": 1,
+ "p_method": "degenerate"
+ },
+ "power": {
+ "alpha": 0.05,
+ "power": 0.8,
+ "mde": null,
+ "min_one_sided_discordant": null,
+ "note": "no paired variation was observed, so the detectable effect cannot be estimated from this data"
+ },
+ "direction": "higher"
+ },
+ {
+ "id": "latency",
+ "metric": "latency_ms",
+ "gate": "exploratory",
+ "status": "report_only",
+ "reasons": [],
+ "n_pairs": 470,
+ "n_clusters": 470,
+ "n_excluded": 30,
+ "stats": {
+ "n_pairs": 470,
+ "n_clusters": 470,
+ "mean_a": 168.39638297872347,
+ "mean_b": 60.65531914893618,
+ "delta": -107.74106382978722,
+ "se_cluster": 7.4406033018910875,
+ "se_iid": 7.4406033018910875,
+ "design_effect": 1,
+ "effective_n": 470,
+ "ci95": [
+ -123.35680851063823,
+ -93.61531914893625
+ ],
+ "p_two_sided": 0.00009999000099990002,
+ "p_greater": 1,
+ "p_less": 0.00009999000099990002,
+ "p_method": "monte-carlo-sign-flip"
+ },
+ "power": {
+ "alpha": 0.05,
+ "power": 0.8,
+ "mde": 20.845484229880867,
+ "min_one_sided_discordant": null,
+ "note": "with 470 pairs in 470 clusters, a two-sided 0.05 test has 80% power for an absolute change of about 20.8455; the observed delta is at least that size"
+ },
+ "direction": "lower"
+ }
+ ]
+ }
+ }
+ ]
+}