Garry's Opinionated OpenClaw/Hermes Agent Brain
TypeScript
P4 eval: growth-trigger dev result, core testability on LongMemEval-S, sealed design in the preregistration
garrytanc258948598d3
diff --git a/docs/eval/CORE_MEMORY_PREREGISTRATION.md b/docs/eval/CORE_MEMORY_PREREGISTRATION.mdindex f9e7dcdf00..fcbc6fd42f 100644--- a/docs/eval/CORE_MEMORY_PREREGISTRATION.md+++ b/docs/eval/CORE_MEMORY_PREREGISTRATION.md@@ -113,6 +113,48 @@ more than LongMemEval-S holds. The sealed slice size, source and budget aredecided by the custodian and the user from these numbers and recorded herebefore any sealed cell runs.+## Sealed design (written 2026-10-05, before any sealed cell)++Budget: the eval cap is $2,500 (raised from $1,400 on 2026-10-05 with Garry's+approval, relayed by the custodian), dev spend included; about $205 is spent on+development runs.++**Pressure gate (decides `memory.pressure.enabled`).**+- Gate model: claude-sonnet-5-5. Arms A′ and B; B is this PR's build with the+ growth-aware trigger, merged with the A′ build.+- n = 200 questions, window 32k, judge 10x. With the development SD of 0.69,+ 200 questions detect an effect of +13.6 points at 80% power with the 95% CI+ excluding zero; the development effect was +50.0 [+20.0, +75.0].+- Source: named by the custodian before the run (proposed: 200 LongMemEval-S+ questions drawn by the custodian's seed from the 480 that never ran through+ this harness; the 20 development questions are excluded).+- Pass bar: B − A′ ≥ +3.0 points with the CI lower bound above 0 and no+ question category below −2.0 points. Cost: the development run cost +72% per+ question, so the original "cost ≤ +25%" criterion is replaced, pending the+ user's confirmation, by "cost per correct answer no higher than A′'s"+ (development: $3.83 for B against $6.68 for A′).+- Estimated cost: about $920.++**Report-only slice (decides nothing).** claude-opus-5-5, gpt-6.1-sol and+claude-fable-5-1, arms A′ and B, on the first 25 of the 200 sealed questions.+Estimated cost: about $860. Reported after the gate model, with ceilings+called out.++**Core gate (decides `memory.core.enabled`).** LongMemEval-S cannot exercise+core (see Power). The gate moves to BEAM-100k `preference_following` and+`instruction_following` questions on the 14 sealed conversations (56+questions, clustered by conversation): every arm gets the same question-blind+page of standing preferences and instructions, written by a fixed model from+the whole conversation without seeing any question; only arm C marks it core,+so C − A′ measures always-loaded delivery against retrieval of the same page.+Pass bar: C − A′ ≥ 0 and neither category below −2.0 points. This arm runs+only after the harness supports BEAM (one stream per conversation, all its+questions asked at the end, BEAM rubric judge) and a development check on the+6 development conversations (about $30) shows the arms run as intended.+Estimated sealed cost: about $80.++E2 (live delivery, $4 cap) and E3 (latency) run as specified below.+## Procedure1. Iterate only on the dev split (this thread). Dev results never move a bar.diff --git a/docs/eval/decisions/p4-stream-dev-pilot/README.md b/docs/eval/decisions/p4-stream-dev-pilot/README.mdindex d432489e35..072779ef2d 100644--- a/docs/eval/decisions/p4-stream-dev-pilot/README.md+++ b/docs/eval/decisions/p4-stream-dev-pilot/README.md@@ -13,6 +13,7 @@ work. They never set a default.| A′ | `5c82936a2` (gbrain#6025 head: MCP instructions reordered under the 2,048-char cap) | defaults || B | `73bd681cb` (this PR merged with gbrain#6025) | `memory.core.enabled=false`, `memory.pressure.enabled=true`, `memory.pressure.context_window=32000` || C | `73bd681cb` | `memory.core.enabled=true`, `memory.pressure.enabled=false`; profile page marked core |+| B (growth trigger) | `cd613d775` (same, plus the growth-aware notice trigger) | as B |## Results: claude-sonnet-5-5, 20 questions (seed 42, first 20), judge 10x@@ -21,16 +22,32 @@ work. They never set a default.| A′ | 25.0% | 1.67 | 9.2 | 0% | 100% | 0.1 | 0% || B | 21.0% | 2.10 | 10.7 | 95% | 69% | 9.2 | 11% || C | 20.0% | 1.72 | 9.6 | 0% | 100% | 0.2 | 6% |+| B (growth trigger) | 75.0% | 2.87 | 13.3 | 100% | 28% | 27.4 | 56% |Paired differences against A′ (question-level bootstrap):- B − A′: −4.0 points, 95% CI [−20.0, +12.0], per-question SD 0.398, 20% of questions discordant.- C − A′: −5.0 points, 95% CI [−25.0, +15.0], per-question SD 0.510, 25% discordant.-Neither difference is distinguishable from zero at n = 20. The pressure notice+- B (growth trigger) − A′: +50.0 points, 95% CI [+20.0, +75.0], per-question SD 0.688, 70% of questions discordant; cost per question +72%.++The first two differences are not distinguishable from zero at n = 20. The pressure noticefires in 95% of conversations but reaches only 31% of compaction segments: awhole LongMemEval session (often several thousand tokens) arrives in one turn,-so fill often jumps from under 80% straight past the compaction point.+so fill often jumps from under 80% straight past the compaction point. The+growth-aware trigger (warn when two more turns of the size just seen would+reach the automatic compaction point) reaches 72% of segments; the agent saves+three times as many facts, a fact from a gold evidence session in 56% of+questions, and answers 15 of 20 correctly against A′'s 5.++## Core on LongMemEval-S++The profile page comes from the first session only. In 11 of 500 LongMemEval-S+questions the earliest session is among the gold evidence sessions, and in 1+it is the only one, so C − A′ cannot move on this benchmark. Always-loaded+core needs a workload where a standing fact or preference stated once must be+honored much later: BEAM's `preference_following` and `instruction_following`+questions (40 each per size) test exactly that.## Cost per cell (one question, one arm, arm A′)@@ -52,4 +69,4 @@ $40,000; on claude-sonnet-5-5 alone about $5,200. The $1,400 cap buys about28 questions across three arms and four models, where the 95% CI half-width isabout ±15 points.-Spend for this pilot, the cost probes and the smoke runs: about $129 (plus $14.95 for the LME-S retrieval guardrail in `p4-dev-2026-10-04`).+Spend for this pilot, the growth-trigger arm, the cost probes and the smoke runs: about $190 (plus $14.95 for the LME-S retrieval guardrail in `p4-dev-2026-10-04`).