Skip to content

Garry's Opinionated OpenClaw/Hermes Agent Brain

TypeScript

docs(eval): speaker attribution dev decision and verdict (assistant-said QA from saved facts 23% -> 60%, user-said unchanged)

garrytand1c355deedff
diff --git a/docs/eval/decisions/p2-attribution-dev/README.md b/docs/eval/decisions/p2-attribution-dev/README.md
new file mode 100644
index 0000000000..0d152cc258
--- /dev/null
+++ b/docs/eval/decisions/p2-attribution-dev/README.md
@@ -0,0 +1,21 @@
+# Speaker attribution: dev verdict
+
+This compares `facts.attribution` on (candidate) and off (baseline) on the same build, 5d5375d43, which carries the
+extractor's speaker rule. The storage work that followed (`facts.attributed_to`, migration v204) also adds an
+`attributed_to` field to the extractor schema; that change was not part of this run. Both arms ran on the
+LongMemEval-S development questions through the decision kit's memory-qa facts lane. gbrain's conversation-facts
+extractor runs on the dated conversation pages, and a fixed reader answers from the saved facts of the top five
+retrieved sessions. This is a `dev` verdict, so it cannot set a default.
+
+| Questions | Off | On | Δ (95% CI) |
+|---|---|---|---|
+| single-session-assistant (30) | 23.3% | 60.0% | +36.7 pts (+20.0 to +53.3), superiority pass |
+| single-session-user (19, guard) | 73.7% | 73.7% | 0 (no question changed), non-inferiority pass |
+
+On the baseline, the extractor keeps the user's side of each conversation and drops what the assistant said (see
+`../p2-attribution-gate-dev/`). With the speaker rule on, assistant answers and recommendations are saved as their
+own facts ("Assistant recommended …"), so questions about them become answerable from memory.
+
+One question per arm lost its facts: an extractor `malformed_output` error stopped that conversation's extraction.
+These rows score 0 and stay in the comparison. The fact-count comparison is left out because those rows have no
+count. Dev spend was about $62.
diff --git a/docs/eval/decisions/p2-attribution-dev/decision.json b/docs/eval/decisions/p2-attribution-dev/decision.json
new file mode 100644
index 0000000000..b34c47ad79
--- /dev/null
+++ b/docs/eval/decisions/p2-attribution-dev/decision.json
@@ -0,0 +1,108 @@
+{
+ "schema_version": 1,
+ "decision_id": "p2-attribution-dev",
+ "plan": "P2",
+ "title": "P2 speaker attribution prompt (facts.attribution) dev comparison",
+ "verdict_type": "quality",
+ "stage": "dev",
+ "candidate": {
+ "gbrain": "/workspace/gbrain@5d5375d438da490ad4d865fa93e3218a57e6bbdd",
+ "config": {
+ "facts.attribution": "true"
+ }
+ },
+ "baseline": {
+ "gbrain": "/workspace/gbrain@5d5375d438da490ad4d865fa93e3218a57e6bbdd",
+ "config": {}
+ },
+ "sources": [
+ {
+ "id": "lme-s-dev-assistant-facts",
+ "kind": "memory-qa",
+ "benchmark": "lme-s",
+ "split": "dev",
+ "embed": "real",
+ "limit": 30,
+ "categories": [
+ "single-session-assistant"
+ ],
+ "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,
+ "facts": "conversation",
+ "qa": {
+ "mode": "reader",
+ "runs": 1,
+ "sessions": 5,
+ "context": "facts"
+ },
+ "comparisons": [
+ {
+ "id": "assistant-qa-from-facts",
+ "metric": "qa_score",
+ "gate": "superiority",
+ "direction": "higher",
+ "min_effect": 0,
+ "cluster_by": "conversation",
+ "description": "assistant-said questions answered from saved facts"
+ }
+ ],
+ "estimate_usd": 36
+ },
+ {
+ "id": "lme-s-dev-user-facts",
+ "kind": "memory-qa",
+ "benchmark": "lme-s",
+ "split": "dev",
+ "embed": "real",
+ "limit": 20,
+ "categories": [
+ "single-session-user"
+ ],
+ "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,
+ "facts": "conversation",
+ "qa": {
+ "mode": "reader",
+ "runs": 1,
+ "sessions": 5,
+ "context": "facts"
+ },
+ "comparisons": [
+ {
+ "id": "user-qa-from-facts",
+ "metric": "qa_score",
+ "gate": "noninferiority",
+ "direction": "higher",
+ "tolerance": 0.02,
+ "cluster_by": "conversation",
+ "description": "guard: user-said questions do not drop by more than two points"
+ }
+ ],
+ "estimate_usd": 24
+ }
+ ],
+ "alpha": 0.05,
+ "seed": 42,
+ "draws": 10000,
+ "budget_usd": 60,
+ "created_at": "2026-10-04T23:09:08.960Z",
+ "notes": "Speaker attribution in the conversation-facts extractor. Both arms are the same build; the candidate turns facts.attribution on. Both run the facts lane (production conversation-facts extractor on dated conversation pages) and answer from the saved facts of the top five retrieved sessions. Gate result before this run (baseline extractor, 30 single-session-assistant questions): answers from saved facts 26.7% vs from pages 100%, a 73-pt deficit, so attribution storage is in scope. facts_count is not compared: one question per arm lost its facts to an extractor malformed_output error, so its count is missing; the QA rows of those questions score 0 and are kept."
+}
diff --git a/docs/eval/decisions/p2-attribution-dev/verdict.json b/docs/eval/decisions/p2-attribution-dev/verdict.json
new file mode 100644
index 0000000000..65cec402f0
--- /dev/null
+++ b/docs/eval/decisions/p2-attribution-dev/verdict.json
@@ -0,0 +1,174 @@
+{
+ "decision_id": "p2-attribution-dev",
+ "plan": "P2",
+ "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-05T02:38:54.705Z",
+ "sources": [
+ {
+ "source": "lme-s-dev-assistant-facts",
+ "verdict": "pass",
+ "arms": {
+ "baseline": {
+ "package": "gbrain",
+ "declared_pin": "github:garrytan/gbrain#739e5cc89ca43b9b9351f0f203c7b12a7c0c571c",
+ "declared_sha": "739e5cc89ca43b9b9351f0f203c7b12a7c0c571c",
+ "version": "0.60.48.0",
+ "package_sha256": "7adf6c1f0d9df80f9bd2f5f6c75a32a83d330b9b8377ca86f11590a322dcc2c1",
+ "loaded_git_head": "5d5375d438da490ad4d865fa93e3218a57e6bbdd"
+ },
+ "candidate": {
+ "package": "gbrain",
+ "declared_pin": "github:garrytan/gbrain#739e5cc89ca43b9b9351f0f203c7b12a7c0c571c",
+ "declared_sha": "739e5cc89ca43b9b9351f0f203c7b12a7c0c571c",
+ "version": "0.60.48.0",
+ "package_sha256": "7adf6c1f0d9df80f9bd2f5f6c75a32a83d330b9b8377ca86f11590a322dcc2c1",
+ "loaded_git_head": "5d5375d438da490ad4d865fa93e3218a57e6bbdd"
+ }
+ },
+ "family": {
+ "family_id": "p2-attribution-dev:lme-s-dev-assistant-facts",
+ "verdict": "pass",
+ "reasons": [],
+ "alpha": 0.05,
+ "holm_family": [
+ "assistant-qa-from-facts"
+ ],
+ "comparisons": [
+ {
+ "id": "assistant-qa-from-facts",
+ "metric": "qa_score",
+ "gate": "superiority",
+ "status": "pass",
+ "reasons": [],
+ "n_pairs": 30,
+ "n_clusters": 30,
+ "n_excluded": 0,
+ "stats": {
+ "n_pairs": 30,
+ "n_clusters": 30,
+ "mean_a": 0.23333333333333334,
+ "mean_b": 0.6,
+ "delta": 0.36666666666666664,
+ "se_cluster": 0.08948554539839962,
+ "se_iid": 0.08948554539839962,
+ "design_effect": 1,
+ "effective_n": 30,
+ "ci95": [
+ 0.2,
+ 0.5333333333333333
+ ],
+ "p_two_sided": 0.000999900009999,
+ "p_greater": 0.0005999400059994001,
+ "p_less": 1,
+ "p_method": "monte-carlo-sign-flip"
+ },
+ "mcnemar": {
+ "losses": 0,
+ "wins": 11,
+ "both_pass": 7,
+ "both_fail": 12,
+ "discordant": 11,
+ "p_two_sided": 0.0009765625
+ },
+ "power": {
+ "alpha": 0.05,
+ "power": 0.8,
+ "mde": 0.25070138128860187,
+ "min_one_sided_discordant": 6,
+ "note": "with 30 pairs in 30 clusters, a two-sided 0.05 test has 80% power for an absolute change of about 0.2507; the observed delta is at least that size; an exact McNemar test needs at least 6 wins with zero losses to reach 0.05"
+ },
+ "direction": "higher",
+ "p_holm": 0.00009999000099990002,
+ "min_effect": 0,
+ "p_superiority": 0.00009999000099990002
+ }
+ ]
+ }
+ },
+ {
+ "source": "lme-s-dev-user-facts",
+ "verdict": "pass",
+ "arms": {
+ "baseline": {
+ "package": "gbrain",
+ "declared_pin": "github:garrytan/gbrain#739e5cc89ca43b9b9351f0f203c7b12a7c0c571c",
+ "declared_sha": "739e5cc89ca43b9b9351f0f203c7b12a7c0c571c",
+ "version": "0.60.48.0",
+ "package_sha256": "7adf6c1f0d9df80f9bd2f5f6c75a32a83d330b9b8377ca86f11590a322dcc2c1",
+ "loaded_git_head": "5d5375d438da490ad4d865fa93e3218a57e6bbdd"
+ },
+ "candidate": {
+ "package": "gbrain",
+ "declared_pin": "github:garrytan/gbrain#739e5cc89ca43b9b9351f0f203c7b12a7c0c571c",
+ "declared_sha": "739e5cc89ca43b9b9351f0f203c7b12a7c0c571c",
+ "version": "0.60.48.0",
+ "package_sha256": "7adf6c1f0d9df80f9bd2f5f6c75a32a83d330b9b8377ca86f11590a322dcc2c1",
+ "loaded_git_head": "5d5375d438da490ad4d865fa93e3218a57e6bbdd"
+ }
+ },
+ "family": {
+ "family_id": "p2-attribution-dev:lme-s-dev-user-facts",
+ "verdict": "pass",
+ "reasons": [],
+ "alpha": 0.05,
+ "holm_family": [
+ "user-qa-from-facts"
+ ],
+ "comparisons": [
+ {
+ "id": "user-qa-from-facts",
+ "metric": "qa_score",
+ "gate": "noninferiority",
+ "status": "pass",
+ "reasons": [],
+ "n_pairs": 19,
+ "n_clusters": 19,
+ "n_excluded": 1,
+ "stats": {
+ "n_pairs": 19,
+ "n_clusters": 19,
+ "mean_a": 0.7368421052631579,
+ "mean_b": 0.7368421052631579,
+ "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": 14,
+ "both_fail": 5,
+ "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.02,
+ "p_noninferiority": 0
+ }
+ ]
+ }
+ }
+ ]
+}