Garry's Opinionated OpenClaw/Hermes Agent Brain
TypeScript
docs(eval): hub dampening dev result on hub-world seed 1 and the frozen held-out configuration (H=32 vs off, graph-off, boost-removed and boost-capped controls)
garrytan32be1f57e03b
diff --git a/docs/eval/decisions/p2-hub-dampening-dev/README.md b/docs/eval/decisions/p2-hub-dampening-dev/README.mdnew file mode 100644index 0000000000..e2d577914c--- /dev/null+++ b/docs/eval/decisions/p2-hub-dampening-dev/README.md@@ -0,0 +1,81 @@+# Hub dampening: dev result and the frozen held-out configuration++These are the `search.hub_dampening` development arms on hub-world seed 1, the development seed of the preregistered+hub-heavy world. It has 32,652 pages and 77,489 links; inbound degree p50 is 7, p90 is 149 and p99 is 20,008, with four+hubs of 5,000, 10,000, 20,000 and 30,000 inbound links.++The runner is gbrain-evals `eval/runner/hub-world-arms.ts` (branch `capy/p2-hub-world-arms`). It builds one shared index+per gbrain build and runs every read-time arm on it. Each search must report the arm's half degree in its telemetry.+The path is keyword-only, with RELATIONAL_PINS and relational retrieval off.++Families:+- Cat 13 concept probes (the preregistered primary, nDCG@5, 428 probes);+- hub-as-answer probes (20);+- bridge probes (32);+- one-hop relational templates (145).++Bridge probes score 0 in every arm on the keyword path, so they say nothing here.++## Results++Each row is Δ against dampening off, with 95% bootstrap CIs, in nDCG@5 points unless the column says otherwise.++| Arm | Concept (primary) | Hub-as-answer | One-hop recall@5 | One-hop hit@1 |+|---|---|---|---|---|+| H = 32 | +3.0 (+2.3, +3.8) | −78.5 (−89.5, −66.1) | −0.8 (−3.1, +1.5) | −1.4 |+| H = 100 | +2.3 (+1.6, +3.1) | −83.0 (−93.8, −70.4) | −0.1 | +2.1 |+| H = 200 | +1.8 (+1.2, +2.4) | −83.0 | 0.0 | +2.1 |+| H = 600 | +1.4 (+0.9, +1.9) | −83.0 | +0.1 | +3.4 |+| Graph signals off | 0.0 | 0.0 | −4.5 (−7.2, −2.1) | −3.4 |+| Control: backlink boost removed | +6.5 (+5.5, +7.8) | −13.5 (−23.2, −5.0) | −11.0 (−15.3, −6.9) | −10.3 |+| Control: boosts capped at +2% | +6.0 (+4.9, +7.1) | −12.8 (−22.7, −3.8) | −10.5 (−15.0, −6.0) | −7.6 |++Absolute values with dampening off: concept 38.0, hub-as-answer 98.2, one-hop recall@5 74.0.++## What it means against the preregistered gate++The gate passes only if all of these hold:+1. Primary Δ ≥ +1.0 pt with CI > 0.+2. Better than both controls.+3. Hub-as-answer Δ ≥ −0.5 pt.+4. One-hop Δ ≥ −0.5 pt.++Every half degree clears condition 1 and fails conditions 2 and 3. Removing or capping the backlink boost gains about+twice as much concept recall as any dampening setting. Every dampening setting removes most of a hub's boost: for+degrees of 5,000 to 30,000 the weight is below 0.02 even at H = 600. Questions whose answer is the hub page then lose+the page, because the backlink lift is what ranks a hub above its many routine mentions.++Development predicts that hub dampening fails the held-out gate. Under the preregistration, the setting then stays off+and the search-side mechanism is removed. The `hubWeight` helper stays either way, because the multi-hop chain executor+on master (`relational-chain.ts`) imports it.++The controls show something separate: on a hub-heavy brain the backlink boost costs concept recall (+6.5 pts without it)+but carries one-hop and hub-as-answer recall. No change to it is proposed here.++## Frozen held-out configuration++- **Candidate build:** gbrain#6020 at af1225d7b.+- **Arms:**+ - off;+ - H = 32, the dev choice with the highest primary;+ - graph signals off;+ - control "backlink boost removed": branch `p2-e1-rival-remove`, 31a792c94 (af1225d7b plus `BACKLINK_BOOST_COEF = 0`);+ - control "boosts capped at +2%": branch `p2-e1-rival-cap`, 4e2bd760e (af1225d7b plus the backlink and graph-signal factors capped at 1.02).+- **Workloads:** sealed seeds 2 and 3, keyword path and hybrid (`text-embedding-3-large`), reranker off.++Runs:++```bash+bun eval/runner/hub-world-arms.ts --corpus-dir <seed-dir> --gbrain <gbrain>@af1225d7b --arms off,32,graph-off --output <dir>+bun eval/runner/hub-world-arms.ts --corpus-dir <seed-dir> --gbrain <gbrain>@31a792c94 --arms off --output <dir>+bun eval/runner/hub-world-arms.ts --corpus-dir <seed-dir> --gbrain <gbrain>@4e2bd760e --arms off --output <dir>+```++Add `--embed openai --paid --budget-run-id <id>` for the hybrid cells.++Not run on development:+- The hybrid path. The hub-as-answer loss comes from the dampened boost itself, not from retrieval.+- The per-site split (backlink only, graph only), because one knob drives both sites.+- The reranker-on cells.++Dev spend was $0 (keyword path, no model calls).diff --git a/docs/eval/decisions/p2-hub-dampening-dev/deltas-keyword.json b/docs/eval/decisions/p2-hub-dampening-dev/deltas-keyword.jsonnew file mode 100644index 0000000000..e718e7eaac--- /dev/null+++ b/docs/eval/decisions/p2-hub-dampening-dev/deltas-keyword.json@@ -0,0 +1,198 @@+{+ "H32|concept|ndcg_at_5": [+ 0.030392328152430995,+ 0.02289371179287129,+ 0.03833477276188614,+ 428,+ 428+ ],+ "H32|hub-answer|ndcg_at_5": [+ -0.7851920674367705,+ -0.8945220480235945,+ -0.6612606031389376,+ 20,+ 20+ ],+ "H32|one-hop|recall_at_5": [+ -0.008045977011494251,+ -0.03103448275862069,+ 0.014942528735632185,+ 145,+ 145+ ],+ "H32|one-hop|hit_at_1": [+ -0.013793103448275862,+ -0.07586206896551724,+ 0.04827586206896552,+ 145,+ 145+ ],+ "H100|concept|ndcg_at_5": [+ 0.023255083685547698,+ 0.01638612621100904,+ 0.030740730644843204,+ 428,+ 428+ ],+ "H100|hub-answer|ndcg_at_5": [+ -0.8304509107860522,+ -0.9375897038309337,+ -0.7039694773794439,+ 20,+ 20+ ],+ "H100|one-hop|recall_at_5": [+ -0.0011494252873563216,+ -0.010344827586206896,+ 0.006896551724137931,+ 145,+ 145+ ],+ "H100|one-hop|hit_at_1": [+ 0.020689655172413793,+ -0.020689655172413793,+ 0.06896551724137931,+ 145,+ 145+ ],+ "H200|concept|ndcg_at_5": [+ 0.01803274726657735,+ 0.011876187250990385,+ 0.023846529790145597,+ 428,+ 428+ ],+ "H200|hub-answer|ndcg_at_5": [+ -0.8304509107860522,+ -0.9375897038309337,+ -0.701984738689722,+ 20,+ 20+ ],+ "H200|one-hop|recall_at_5": [+ 0.0,+ 0.0,+ 0.0,+ 145,+ 145+ ],+ "H200|one-hop|hit_at_1": [+ 0.020689655172413793,+ -0.020689655172413793,+ 0.06206896551724138,+ 145,+ 145+ ],+ "H600|concept|ndcg_at_5": [+ 0.013823678025016533,+ 0.00877068685683603,+ 0.019264497696312447,+ 428,+ 428+ ],+ "H600|hub-answer|ndcg_at_5": [+ -0.8304509107860522,+ -0.9397808913728761,+ -0.6973959147536162,+ 20,+ 20+ ],+ "H600|one-hop|recall_at_5": [+ 0.0013793103448275863,+ 0.0,+ 0.005517241379310345,+ 145,+ 145+ ],+ "H600|one-hop|hit_at_1": [+ 0.034482758620689655,+ 0.0,+ 0.06896551724137931,+ 145,+ 145+ ],+ "graph-off|concept|ndcg_at_5": [+ -0.00038978892719417464,+ -0.0009505091401508053,+ 7.265240553080652e-05,+ 428,+ 428+ ],+ "graph-off|hub-answer|ndcg_at_5": [+ 0.0,+ 0.0,+ 0.0,+ 20,+ 20+ ],+ "graph-off|one-hop|recall_at_5": [+ -0.04482758620689655,+ -0.07241379310344828,+ -0.020689655172413793,+ 145,+ 145+ ],+ "graph-off|one-hop|hit_at_1": [+ -0.034482758620689655,+ -0.07586206896551724,+ 0.006896551724137931,+ 145,+ 145+ ],+ "remove|concept|ndcg_at_5": [+ 0.06543289791014939,+ 0.05476403492275331,+ 0.07753590962638462,+ 428,+ 428+ ],+ "remove|hub-answer|ndcg_at_5": [+ -0.13501265977490323,+ -0.2319323441926607,+ -0.05,+ 20,+ 20+ ],+ "remove|one-hop|recall_at_5": [+ -0.11,+ -0.15344827586206897,+ -0.06896551724137931,+ 145,+ 145+ ],+ "remove|one-hop|hit_at_1": [+ -0.10344827586206896,+ -0.1793103448275862,+ -0.027586206896551724,+ 145,+ 145+ ],+ "cap|concept|ndcg_at_5": [+ 0.059742332493547955,+ 0.04886103427937449,+ 0.07137911327955415,+ 428,+ 428+ ],+ "cap|hub-answer|ndcg_at_5": [+ -0.12846617209633035,+ -0.22695766374246712,+ -0.03809297535714575,+ 20,+ 20+ ],+ "cap|one-hop|recall_at_5": [+ -0.10482758620689654,+ -0.14965517241379309,+ -0.06,+ 145,+ 145+ ],+ "cap|one-hop|hit_at_1": [+ -0.07586206896551724,+ -0.15172413793103448,+ -0.006896551724137931,+ 145,+ 145+ ]+}\ No newline at end of filediff --git a/docs/eval/decisions/p2-hub-dampening-dev/summary-keyword.json b/docs/eval/decisions/p2-hub-dampening-dev/summary-keyword.jsonnew file mode 100644index 0000000000..595012a5ce--- /dev/null+++ b/docs/eval/decisions/p2-hub-dampening-dev/summary-keyword.json@@ -0,0 +1,408 @@+{+ "main": {+ "product": {+ "package": "gbrain",+ "declared_pin": "github:garrytan/gbrain#739e5cc89ca43b9b9351f0f203c7b12a7c0c571c",+ "declared_sha": "739e5cc89ca43b9b9351f0f203c7b12a7c0c571c",+ "version": "0.60.53.0",+ "package_sha256": "f9ea5abe120986dffa9b8065b823c4c194931c848ea3af170ba72938824be109",+ "loaded_git_head": "0ed580f7d97363a42d0525b5889f45ba2c85af0a"+ },+ "overlay_commit": null,+ "world": {+ "seed": 1,+ "salted": false,+ "pages": 32652,+ "links": 77489,+ "hubs": [+ {+ "slug": "companies/delta-3",+ "target": 5000,+ "realized": 5008+ },+ {+ "slug": "companies/apple-4",+ "target": 10000,+ "realized": 10008+ },+ {+ "slug": "companies/accel-5",+ "target": 20000,+ "realized": 20008+ },+ {+ "slug": "companies/amazon-3",+ "target": 30000,+ "realized": 30008+ }+ ],+ "inbound_quantiles": {+ "p50": 7,+ "p90": 149,+ "p99": 20008,+ "max": 30008+ }+ },+ "config_readback": {+ "32": {+ "search.hub_dampening": "32",+ "search.graph_signals": "true"+ },+ "100": {+ "search.hub_dampening": "100",+ "search.graph_signals": "true"+ },+ "200": {+ "search.hub_dampening": "200",+ "search.graph_signals": "true"+ },+ "600": {+ "search.hub_dampening": "600",+ "search.graph_signals": "true"+ },+ "off": {+ "search.hub_dampening": "off",+ "search.graph_signals": "true"+ },+ "graph-off": {+ "search.hub_dampening": "off",+ "search.graph_signals": "false"+ }+ },+ "summary": {+ "off:concept": {+ "n": 428,+ "ndcg_at_5": 0.3798790127090229,+ "recall_at_5": 0.24685135736537636,+ "hit_at_1": 0.37616822429906543,+ "latency_p95_ms": 332.3799999999999+ },+ "off:hub-answer": {+ "n": 20,+ "ndcg_at_5": 0.9815464876785729,+ "recall_at_5": 1,+ "hit_at_1": 0.95,+ "latency_p95_ms": 75.81000000000004+ },+ "off:bridge": {+ "n": 32,+ "ndcg_at_5": 0,+ "recall_at_5": 0,+ "hit_at_1": 0,+ "latency_p95_ms": 515.98+ },+ "off:one-hop": {+ "n": 145,+ "ndcg_at_5": 0.5764884094453867,+ "recall_at_5": 0.7398850574712644,+ "hit_at_1": 0.3793103448275862,+ "latency_p95_ms": 468.35999999999905+ },+ "32:concept": {+ "n": 428,+ "ndcg_at_5": 0.4102713408614539,+ "recall_at_5": 0.2551290609701827,+ "hit_at_1": 0.4439252336448598,+ "latency_p95_ms": 304.09+ },+ "32:hub-answer": {+ "n": 20,+ "ndcg_at_5": 0.1963544202418024,+ "recall_at_5": 0.4,+ "hit_at_1": 0.05,+ "latency_p95_ms": 46.515+ },+ "32:bridge": {+ "n": 32,+ "ndcg_at_5": 0,+ "recall_at_5": 0,+ "hit_at_1": 0,+ "latency_p95_ms": 492.18+ },+ "32:one-hop": {+ "n": 145,+ "ndcg_at_5": 0.5700469313908735,+ "recall_at_5": 0.7318390804597702,+ "hit_at_1": 0.36551724137931035,+ "latency_p95_ms": 463.3599999999993+ },+ "100:concept": {+ "n": 428,+ "ndcg_at_5": 0.4031340963945704,+ "recall_at_5": 0.2524032042723634,+ "hit_at_1": 0.42990654205607476,+ "latency_p95_ms": 312.395+ },+ "100:hub-answer": {+ "n": 20,+ "ndcg_at_5": 0.15109557689252054,+ "recall_at_5": 0.3,+ "hit_at_1": 0.05,+ "latency_p95_ms": 54.93+ },+ "100:bridge": {+ "n": 32,+ "ndcg_at_5": 0,+ "recall_at_5": 0,+ "hit_at_1": 0,+ "latency_p95_ms": 492.795+ },+ "100:one-hop": {+ "n": 145,+ "ndcg_at_5": 0.5875601388949866,+ "recall_at_5": 0.7387356321839081,+ "hit_at_1": 0.4,+ "latency_p95_ms": 464.97999999999905+ },+ "200:concept": {+ "n": 428,+ "ndcg_at_5": 0.39791175997560013,+ "recall_at_5": 0.25218624833110836,+ "hit_at_1": 0.4158878504672897,+ "latency_p95_ms": 307.8099999999998+ },+ "200:hub-answer": {+ "n": 20,+ "ndcg_at_5": 0.15109557689252054,+ "recall_at_5": 0.3,+ "hit_at_1": 0.05,+ "latency_p95_ms": 46.809999999999995+ },+ "200:bridge": {+ "n": 32,+ "ndcg_at_5": 0,+ "recall_at_5": 0,+ "hit_at_1": 0,+ "latency_p95_ms": 490.81+ },+ "200:one-hop": {+ "n": 145,+ "ndcg_at_5": 0.5888306039315341,+ "recall_at_5": 0.7398850574712644,+ "hit_at_1": 0.4,+ "latency_p95_ms": 461.69999999999914+ },+ "600:concept": {+ "n": 428,+ "ndcg_at_5": 0.39370269073403924,+ "recall_at_5": 0.2504339118825102,+ "hit_at_1": 0.4088785046728972,+ "latency_p95_ms": 300.1649999999999+ },+ "600:hub-answer": {+ "n": 20,+ "ndcg_at_5": 0.15109557689252054,+ "recall_at_5": 0.3,+ "hit_at_1": 0.05,+ "latency_p95_ms": 46.135000000000005+ },+ "600:bridge": {+ "n": 32,+ "ndcg_at_5": 0,+ "recall_at_5": 0,+ "hit_at_1": 0,+ "latency_p95_ms": 487.075+ },+ "600:one-hop": {+ "n": 145,+ "ndcg_at_5": 0.5894841094104519,+ "recall_at_5": 0.7412643678160921,+ "hit_at_1": 0.41379310344827586,+ "latency_p95_ms": 465.31999999999914+ },+ "graph-off:concept": {+ "n": 428,+ "ndcg_at_5": 0.3794892237818287,+ "recall_at_5": 0.24607254116599941,+ "hit_at_1": 0.37616822429906543,+ "latency_p95_ms": 298.3399999999999+ },+ "graph-off:hub-answer": {+ "n": 20,+ "ndcg_at_5": 0.9815464876785729,+ "recall_at_5": 1,+ "hit_at_1": 0.95,+ "latency_p95_ms": 44.785000000000004+ },+ "graph-off:bridge": {+ "n": 32,+ "ndcg_at_5": 0,+ "recall_at_5": 0,+ "hit_at_1": 0,+ "latency_p95_ms": 486.64000000000004+ },+ "graph-off:one-hop": {+ "n": 145,+ "ndcg_at_5": 0.5391643665558398,+ "recall_at_5": 0.6950574712643679,+ "hit_at_1": 0.3448275862068966,+ "latency_p95_ms": 459.53999999999917+ }+ },+ "run_status": "completed"+ },+ "rival-remove": {+ "product": {+ "package": "gbrain",+ "declared_pin": "github:garrytan/gbrain#739e5cc89ca43b9b9351f0f203c7b12a7c0c571c",+ "declared_sha": "739e5cc89ca43b9b9351f0f203c7b12a7c0c571c",+ "version": "0.60.53.0",+ "package_sha256": "a6899e032ec282c1b1fa688b30efb309e4ce0cd526b1358c6124d002f3da56c5",+ "loaded_git_head": "bdf04ed21c27ee77b3bad08df0e8cec9b10149af"+ },+ "overlay_commit": null,+ "world": {+ "seed": 1,+ "salted": false,+ "pages": 32652,+ "links": 77489,+ "hubs": [+ {+ "slug": "companies/delta-3",+ "target": 5000,+ "realized": 5008+ },+ {+ "slug": "companies/apple-4",+ "target": 10000,+ "realized": 10008+ },+ {+ "slug": "companies/accel-5",+ "target": 20000,+ "realized": 20008+ },+ {+ "slug": "companies/amazon-3",+ "target": 30000,+ "realized": 30008+ }+ ],+ "inbound_quantiles": {+ "p50": 7,+ "p90": 149,+ "p99": 20008,+ "max": 30008+ }+ },+ "config_readback": {+ "off": {+ "search.hub_dampening": "off",+ "search.graph_signals": "true"+ }+ },+ "summary": {+ "off:concept": {+ "n": 428,+ "ndcg_at_5": 0.44531191061917225,+ "recall_at_5": 0.27587894971072563,+ "hit_at_1": 0.4976635514018692,+ "latency_p95_ms": 308.7699999999999+ },+ "off:hub-answer": {+ "n": 20,+ "ndcg_at_5": 0.8465338279036697,+ "recall_at_5": 1,+ "hit_at_1": 0.7,+ "latency_p95_ms": 51.795+ },+ "off:bridge": {+ "n": 32,+ "ndcg_at_5": 0,+ "recall_at_5": 0,+ "hit_at_1": 0,+ "latency_p95_ms": 498.46999999999997+ },+ "off:one-hop": {+ "n": 145,+ "ndcg_at_5": 0.48275447899307383,+ "recall_at_5": 0.6298850574712643,+ "hit_at_1": 0.27586206896551724,+ "latency_p95_ms": 472.23999999999904+ }+ },+ "run_status": "completed"+ },+ "rival-cap": {+ "product": {+ "package": "gbrain",+ "declared_pin": "github:garrytan/gbrain#739e5cc89ca43b9b9351f0f203c7b12a7c0c571c",+ "declared_sha": "739e5cc89ca43b9b9351f0f203c7b12a7c0c571c",+ "version": "0.60.53.0",+ "package_sha256": "b28806e00b0f6be28a17a6c2f29432604675b45478bf69b90ad41e678394456f",+ "loaded_git_head": "b1cb1d0ea96296ed8e97305e168fff93a42655b0"+ },+ "overlay_commit": null,+ "world": {+ "seed": 1,+ "salted": false,+ "pages": 32652,+ "links": 77489,+ "hubs": [+ {+ "slug": "companies/delta-3",+ "target": 5000,+ "realized": 5008+ },+ {+ "slug": "companies/apple-4",+ "target": 10000,+ "realized": 10008+ },+ {+ "slug": "companies/accel-5",+ "target": 20000,+ "realized": 20008+ },+ {+ "slug": "companies/amazon-3",+ "target": 30000,+ "realized": 30008+ }+ ],+ "inbound_quantiles": {+ "p50": 7,+ "p90": 149,+ "p99": 20008,+ "max": 30008+ }+ },+ "config_readback": {+ "off": {+ "search.hub_dampening": "off",+ "search.graph_signals": "true"+ }+ },+ "summary": {+ "off:concept": {+ "n": 428,+ "ndcg_at_5": 0.4396213452025708,+ "recall_at_5": 0.26979862038273283,+ "hit_at_1": 0.4953271028037383,+ "latency_p95_ms": 328.155+ },+ "off:hub-answer": {+ "n": 20,+ "ndcg_at_5": 0.8530803155822426,+ "recall_at_5": 1,+ "hit_at_1": 0.7,+ "latency_p95_ms": 98.55500000000002+ },+ "off:bridge": {+ "n": 32,+ "ndcg_at_5": 0,+ "recall_at_5": 0,+ "hit_at_1": 0,+ "latency_p95_ms": 501.78499999999997+ },+ "off:one-hop": {+ "n": 145,+ "ndcg_at_5": 0.4916331932066562,+ "recall_at_5": 0.6350574712643677,+ "hit_at_1": 0.30344827586206896,+ "latency_p95_ms": 466.27999999999923+ }+ },+ "run_status": "completed"+ }+}\ No newline at end of file