Skip to content

Garry's Opinionated OpenClaw/Hermes Agent Brain

TypeScript

docs(eval): P3 E3 on all 500 LongMemEval-S questions, E4 dev probe, preregistration aligned with P0's frozen splits and runners

garrytan23d2597e215c
diff --git a/docs/eval/decisions/p3-e3-lmes-full-dev/decision.json b/docs/eval/decisions/p3-e3-lmes-full-dev/decision.json
new file mode 100644
index 0000000000..68aae784e0
--- /dev/null
+++ b/docs/eval/decisions/p3-e3-lmes-full-dev/decision.json
@@ -0,0 +1,69 @@
+{
+ "schema_version": 1,
+ "decision_id": "p3-e3-lmes-full-dev",
+ "plan": "P3",
+ "title": "P3 E3 (dev = all 500 LongMemEval-S questions): feedback on with no ratings leaves retrieval unchanged",
+ "verdict_type": "quality",
+ "stage": "dev",
+ "candidate": {
+ "gbrain": "/workspace/gbrain@70ad30e4e9d384df66acad1e9aff7d49eec35c43",
+ "config": {}
+ },
+ "baseline": {
+ "gbrain": "/workspace/gbrain@6622a119e40ea09a7719233046aca24741863ed2",
+ "config": {}
+ },
+ "sources": [
+ {
+ "id": "lme-s-dev",
+ "kind": "memory-qa",
+ "benchmark": "lme-s",
+ "split": "dev",
+ "embed": "real",
+ "limit": null,
+ "search_pins": {
+ "search.mode": "balanced",
+ "search.reranker.enabled": "false",
+ "search.autocut": "false"
+ },
+ "top_k": 10,
+ "id_field": "id",
+ "exclude_when": [
+ "abstention=true"
+ ],
+ "min_clusters": 10,
+ "comparisons": [
+ {
+ "id": "recall-all-5",
+ "metric": "recall_all_at_5",
+ "gate": "noninferiority",
+ "direction": "higher",
+ "tolerance": 0.01,
+ "cluster_by": "conversation",
+ "description": "guardrail: strict recall does not drop by more than one point"
+ },
+ {
+ "id": "ndcg-10",
+ "metric": "ndcg_at_10",
+ "gate": "exploratory",
+ "direction": "higher",
+ "cluster_by": "conversation"
+ },
+ {
+ "id": "latency",
+ "metric": "latency_ms",
+ "gate": "exploratory",
+ "direction": "lower",
+ "cluster_by": "conversation"
+ }
+ ],
+ "estimate_usd": 16
+ }
+ ],
+ "alpha": 0.05,
+ "seed": 42,
+ "draws": 10000,
+ "budget_usd": 16,
+ "created_at": "2026-10-04T20:36:09.409Z",
+ "notes": "Use-attributed feedback weights: the sequential replay-with-feedback mode lands in milestone M2; until then these are guardrails only. E3 run on all 500 LME-S questions (P0 split: all dev). Measured run: the second pass, with every embedding already in the content-addressed cache (first pass cost $6.15 and showed the same identical lists; its latency included cold provider calls on one arm)."
+}
diff --git a/docs/eval/decisions/p3-e3-lmes-full-dev/verdict.json b/docs/eval/decisions/p3-e3-lmes-full-dev/verdict.json
new file mode 100644
index 0000000000..484186185f
--- /dev/null
+++ b/docs/eval/decisions/p3-e3-lmes-full-dev/verdict.json
@@ -0,0 +1,167 @@
+{
+ "decision_id": "p3-e3-lmes-full-dev",
+ "plan": "P3",
+ "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:27:56.165Z",
+ "sources": [
+ {
+ "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": "0f04fc186eb7ce43a538321e50b002d927ab4703dbf899e3c65693633333765e",
+ "loaded_git_head": "70ad30e4e9d384df66acad1e9aff7d49eec35c43"
+ }
+ },
+ "family": {
+ "family_id": "p3-e3-lmes-full-dev: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.9427706157231729,
+ "mean_b": 0.9427706157231729,
+ "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": 49.02212765957451,
+ "mean_b": 49.58063829787231,
+ "delta": 0.5585106382978721,
+ "se_cluster": 0.4144314122297639,
+ "se_iid": 0.4144314122297639,
+ "design_effect": 1,
+ "effective_n": 470,
+ "ci95": [
+ -0.26914893617021324,
+ 1.3478723404255322
+ ],
+ "p_two_sided": 0.1800819918008199,
+ "p_greater": 0.09199080091990801,
+ "p_less": 0.9083091690830917,
+ "p_method": "monte-carlo-sign-flip"
+ },
+ "power": {
+ "alpha": 0.05,
+ "power": 0.8,
+ "mde": 1.1610649187287172,
+ "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 1.1611; the observed delta is below that size, so a null result here is not evidence of no effect"
+ },
+ "direction": "lower"
+ }
+ ]
+ }
+ }
+ ]
+}
diff --git a/docs/eval/decisions/p3-retrieval-feedback/PREREGISTRATION.md b/docs/eval/decisions/p3-retrieval-feedback/PREREGISTRATION.md
index f8d381dff1..c808313321 100644
--- a/docs/eval/decisions/p3-retrieval-feedback/PREREGISTRATION.md
+++ b/docs/eval/decisions/p3-retrieval-feedback/PREREGISTRATION.md
@@ -26,12 +26,12 @@ guardrail note below).
| Corpus | Split | Unit |
|---|---|---|
| LoCoMo | P0 split `eval/decisions/splits/locomo.json` (gbrain-evals): 3 dev conversations, 7 sealed | conversation = one brain |
-| LongMemEval-S | P0 split `eval/decisions/splits/lme-s.json` | question (own haystack) |
-| world-v1 relational (template + paraphrase) | proposed: [`world-v1-relational-split.json`](world-v1-relational-split.json), 73 dev / 72 sealed base questions, P0 method (`sha256(salt, NUL, id)` order, salt `gbrain-evals-heldout-split-v1`, first half dev); template and paraphrase forms of one question share a half | one shared brain |
+| LongMemEval-S | P0 split `eval/decisions/splits/lme-s.json`: all 500 questions are dev (no sealed portion) | question (own haystack) |
+| world-v1 relational (template + paraphrase) | P0 split `eval/decisions/splits/world-v1-relational.json`: 73 dev / 72 sealed base questions; template and paraphrase forms of one question share a half | one shared brain |
| NamedThingBench core + relational | as committed | query |
-The world-v1 split is a proposal: P0 has no world-v1 split yet. Only its dev half was read. The custodian adopts it
-or replaces it before any sealed world-v1 cell; a replacement must still exclude every dev base question listed in it.
+P0's frozen world-v1 relational split has the same dev half as the split these dev runs used, so no sealed world-v1
+question has been read.
## Experiments and pass bars
@@ -50,8 +50,9 @@ frozen and online arms; full density and a 25% subsampled sparse arm. Sealed: `t
repetitions ± SD (P0 judge) plus judge-free Recall@5 of the gather. Reported: implicit events per 100 answers.
The `think` model is the frozen build's default.
-**E3. No-regression guards.** LongMemEval-S sealed: retrieval lists identical between baseline and feedback arms
-(no ratings exist, so the stage must be a no-op). NamedThingBench core + relational with weights trained on world-v1
+**E3. No-regression guards.** LongMemEval-S: retrieval lists identical between baseline and feedback arms (no
+ratings exist, so the stage must be a no-op). LongMemEval-S has no sealed portion (P0 split), so this part is decided
+on the full 500-question dev run, decision `p3-e3-lmes-full-dev`. NamedThingBench core + relational with weights trained on world-v1
dev: 0 hit@1 losses. p50/p95 read latency deltas.
**E4. Triplet scoring.** E4a (wider relational fetch only) and E4b (wider fetch + triplet scoring) against baseline on
@@ -70,16 +71,23 @@ Default decisions (the per-corpus E1 reading and the fixed λ were approved on 2
- If E1 fails on both corpora: the feedback subsystem leaves the pull request.
- **Triplet scoring ON** iff E4b sealed NDCG@10 +2.0 points or more with CI excluding 0 and 0 hit@1 losses on the
plain relational sets; E4a ships alone if it alone passes the same bar. Otherwise `search.triplet_scoring` stays off.
+ The wider fetch only runs with triplet scoring on, so E4a is not a separate arm in this build. Dev evidence below
+ shows no effect on the world-v1 relational dev half and a 48% fire rate, below the 80% precondition, and the
+ constrained-relational set does not exist; unless that set is built, no sealed E4 run is requested and
+ `search.triplet_scoring` stays off.
- Declared single-value relations (plan E5) are not part of this pull request.
Budget caps: E1 $16, E2 $180, E3 $20, E4 $12 (plan total cap $260, which also covered the dropped E5).
## Harness requirements
-The P0 decision kit (milestone M1) runs independent-question memory-qa sources and category runners as-is. These runs
-additionally need, from milestone M2 or the custodian: the sequential replay mode with a per-question rating callback
-(frozen and online orders, `feedback.learn=false` scoring, per-arm database copies); `think` replay with judge 10x for
-E2; arm config applied to category runners (E4 sets `search.triplet_scoring`); the relational-arm fire rate.
+- E1: `eval/runner/feedback-replay-locomo.ts` and `eval/runner/feedback-replay-world.ts` (gbrain-evals
+ `p0-heldout-harness`), custodian mode `--split sealed --decision-id <id> --purpose <text>` with the access log.
+- E2: not available yet. The memory-qa `think` lane calls `runThink` directly, so no answer is recorded and no
+ citation signal accrues; E2 needs `think` through the `think` operation (trusted local context) in a seeded
+ stream, scored with `feedback.learn=false`, judge 10x.
+- E3: the P0 kit (`eval:decide`), LongMemEval-S as above; NamedThingBench through its committed script.
+- E4: per-arm search pins (`GBRAIN_EVAL_SEARCH_PINS`) cover `search.triplet_scoring`; see the E4 note above.
## Dev evidence
@@ -105,6 +113,16 @@ shows 0, so the swaps came from cache warm-up, not from the feature.
| world-v1 relational dev (74) | 0.1 | +1.71 [0.5, 3.3] | +2.48 [0.7, 4.6] | +0.42 | −0.80 |
| world-v1 relational dev (74) | 0.2 | +2.20 [0.6, 3.9] | +4.70 [2.7, 7.3] | +1.46 | −1.33 |
+**E3 LongMemEval-S, all 500 dev questions** (P0 kit, decision
+[`p3-e3-lmes-full-dev`](../p3-e3-lmes-full-dev/), baseline `master` 6622a119 against build `70ad30e4e`, feedback on, no
+ratings): identical retrieval lists on all 500 questions (strict Recall@5 0.9277 on both arms), mean read latency
++0.6 ms [−0.3, 1.3], p95 74.8 ms against 73.3 ms. Cost $6.15. This settles the LongMemEval-S part of E3.
+
+**E4-shaped triplet probe on the world-v1 relational dev half** (146 template + paraphrase questions, one shared
+index, build `70ad30e4e`, cost $0.02): with `search.triplet_scoring` on at penalties 1, 3 and 6, ΔNDCG@10 is −0.05
+points [−0.23, 0.06] at every penalty, hit@3 is unchanged (0.692) and there are 0 hit@1 losses or wins. The
+relational arm fires on 48% of these questions. Summary: [`dev/triplet-world-v1-dev.json`](dev/triplet-world-v1-dev.json).
+
Reading: on a shared entity brain, where the same people and company pages answer many different questions,
learned usefulness transfers and beats exposure frequency. On conversation sessions, where a session that answers one
question is usually wrong for the next, a page-level weight does not transfer and costs ranking quality, more so at
diff --git a/docs/eval/decisions/p3-retrieval-feedback/dev/triplet-world-v1-dev.json b/docs/eval/decisions/p3-retrieval-feedback/dev/triplet-world-v1-dev.json
new file mode 100644
index 0000000000..2b50841e75
--- /dev/null
+++ b/docs/eval/decisions/p3-retrieval-feedback/dev/triplet-world-v1-dev.json
@@ -0,0 +1,86 @@
+{
+ "benchmark": "world-v1 relational dev half (template + paraphrase)",
+ "gbrain": "70ad30e4e9d384df66acad1e9aff7d49eec35c43",
+ "penalties": [
+ 1,
+ 3,
+ 6
+ ],
+ "cost": {
+ "usd": 0.022041
+ },
+ "arms": {
+ "off": {
+ "n": 146,
+ "fire_rate": 0.4795,
+ "ndcg_at_10": 0.6022,
+ "hit_at_3": 0.6918,
+ "recall_all_at_5": 0.6507,
+ "delta_ndcg": 0,
+ "ci95": [
+ 0,
+ 0
+ ],
+ "hit_at_1_losses": 0,
+ "hit_at_1_wins": 0,
+ "by_form_delta_ndcg": {
+ "template": 0,
+ "paraphrase": 0
+ }
+ },
+ "on@1": {
+ "n": 146,
+ "fire_rate": 0.4795,
+ "ndcg_at_10": 0.6017,
+ "hit_at_3": 0.6918,
+ "recall_all_at_5": 0.6507,
+ "delta_ndcg": -0.0005,
+ "ci95": [
+ -0.0023,
+ 0.0006
+ ],
+ "hit_at_1_losses": 0,
+ "hit_at_1_wins": 0,
+ "by_form_delta_ndcg": {
+ "template": 0,
+ "paraphrase": -0.0009
+ }
+ },
+ "on@3": {
+ "n": 146,
+ "fire_rate": 0.4795,
+ "ndcg_at_10": 0.6017,
+ "hit_at_3": 0.6918,
+ "recall_all_at_5": 0.6507,
+ "delta_ndcg": -0.0005,
+ "ci95": [
+ -0.0023,
+ 0.0006
+ ],
+ "hit_at_1_losses": 0,
+ "hit_at_1_wins": 0,
+ "by_form_delta_ndcg": {
+ "template": 0,
+ "paraphrase": -0.0009
+ }
+ },
+ "on@6": {
+ "n": 146,
+ "fire_rate": 0.4795,
+ "ndcg_at_10": 0.6017,
+ "hit_at_3": 0.6918,
+ "recall_all_at_5": 0.6507,
+ "delta_ndcg": -0.0005,
+ "ci95": [
+ -0.0023,
+ 0.0006
+ ],
+ "hit_at_1_losses": 0,
+ "hit_at_1_wins": 0,
+ "by_form_delta_ndcg": {
+ "template": 0,
+ "paraphrase": -0.0009
+ }
+ }
+ }
+}
diff --git a/docs/eval/decisions/p3-retrieval-feedback/world-v1-relational-split.json b/docs/eval/decisions/p3-retrieval-feedback/world-v1-relational-split.json
deleted file mode 100644
index 85d2f6c29b..0000000000
--- a/docs/eval/decisions/p3-retrieval-feedback/world-v1-relational-split.json
+++ /dev/null
@@ -1,158 +0,0 @@
-{
- "schema_version": 1,
- "benchmark": "world-v1-relational",
- "salt": "gbrain-evals-heldout-split-v1",
- "method": "whole conversations ordered by sha256(salt, NUL, conversation id) ascending; first ceil(n * dev_fraction) are dev",
- "dev_fraction": 0.5,
- "dev": [
- "q-0004",
- "q-0005",
- "q-0007",
- "q-0010",
- "q-0012",
- "q-0014",
- "q-0016",
- "q-0017",
- "q-0018",
- "q-0019",
- "q-0022",
- "q-0024",
- "q-0027",
- "q-0028",
- "q-0032",
- "q-0033",
- "q-0038",
- "q-0040",
- "q-0042",
- "q-0043",
- "q-0044",
- "q-0048",
- "q-0051",
- "q-0054",
- "q-0060",
- "q-0061",
- "q-0063",
- "q-0067",
- "q-0068",
- "q-0070",
- "q-0074",
- "q-0075",
- "q-0078",
- "q-0080",
- "q-0082",
- "q-0084",
- "q-0086",
- "q-0087",
- "q-0090",
- "q-0093",
- "q-0094",
- "q-0095",
- "q-0097",
- "q-0098",
- "q-0099",
- "q-0100",
- "q-0101",
- "q-0103",
- "q-0105",
- "q-0106",
- "q-0108",
- "q-0112",
- "q-0115",
- "q-0118",
- "q-0121",
- "q-0122",
- "q-0123",
- "q-0124",
- "q-0125",
- "q-0126",
- "q-0130",
- "q-0131",
- "q-0132",
- "q-0133",
- "q-0134",
- "q-0135",
- "q-0136",
- "q-0138",
- "q-0139",
- "q-0141",
- "q-0142",
- "q-0144",
- "q-0145"
- ],
- "sealed": [
- "q-0001",
- "q-0002",
- "q-0003",
- "q-0006",
- "q-0008",
- "q-0009",
- "q-0011",
- "q-0013",
- "q-0015",
- "q-0020",
- "q-0021",
- "q-0023",
- "q-0025",
- "q-0026",
- "q-0029",
- "q-0030",
- "q-0031",
- "q-0034",
- "q-0035",
- "q-0036",
- "q-0037",
- "q-0039",
- "q-0041",
- "q-0045",
- "q-0046",
- "q-0047",
- "q-0049",
- "q-0050",
- "q-0052",
- "q-0053",
- "q-0055",
- "q-0056",
- "q-0057",
- "q-0058",
- "q-0059",
- "q-0062",
- "q-0064",
- "q-0065",
- "q-0066",
- "q-0069",
- "q-0071",
- "q-0072",
- "q-0073",
- "q-0076",
- "q-0077",
- "q-0079",
- "q-0081",
- "q-0083",
- "q-0085",
- "q-0088",
- "q-0089",
- "q-0091",
- "q-0092",
- "q-0096",
- "q-0102",
- "q-0104",
- "q-0107",
- "q-0109",
- "q-0110",
- "q-0111",
- "q-0113",
- "q-0114",
- "q-0116",
- "q-0117",
- "q-0119",
- "q-0120",
- "q-0127",
- "q-0128",
- "q-0129",
- "q-0137",
- "q-0140",
- "q-0143"
- ],
- "created_at": "2026-10-04",
- "note": "P3 E1 proposal"
-}