Every entry: the intent, the reasoning and numbers behind it, and its references. Newest first within each phase.
Phases
[Current Phase] Executor Memory Research (2026-11-26 →) · 44 entries[Previous Phase] Product Development, Precedent, and Groundedness (BD-107 → 2026-11-26) · 21 entries[Previous Phase] Shifting to Oversight (BD-12 to BD-105) · 66 entries[Scaling Phase] Enterprise Readiness & Governance (BD-5 to BD-11) · 5 entries[Foundation Phase] The Governed Agent (Initial Release to BD-4) · 3 entriesCore Principles · 0 entries
[Current Phase] Executor Memory Research (2026-11-26 →)
How an executor captures heuristics, meaning abstract and reusable predictions about how a
The parser fix and the live experiment: read the outcome on each side of its deploy (BD-144, 2026-12-02)
- **Intent:** The `_rebuild` fix (2236e1d9, 2026-12-01: every reference in an evidence entry counts) changes how live memory is built. So the live comparison of rework, memory group against holdout (BD-126, the project's Memory tab), will mix memories built two ways. This entry dates the break so that comparison is not read across it unawares. - **Research thinking:** On 2026-12-02 the fix is in `ehtb/doen` but not in production: production deploys from `doen-dev/doen` `main` (`.railway/railway.ts`), still at ffa45b2 (2026-12-01 00:35), before any BD-144 work. Until that mirror is fast-forwarded, every live dream is built by the old parser, which the stability study found empties about one dream in six and drops heuristics at random. From the deploy on, none should come out empty. Two consequences for reading the live outcome. Initiatives completed before the deploy were served memory built the old way. And the fix alone may change rework, since memory-group executors stop being served an empty memory now and then. Neither is a reason to hold the deploy; it is a reason to compare initiatives by when they ran. **Deployed 2026-12-02:** `doen-dev/doen` fast-forwarded to this commit's tree that day (a person's call), so live dreams from 2026-12-02 on are built by the fixed parser. - **Key references:** 2236e1d9 (`_rebuild` in `app/services/live_memory.py`); the entry "The dream's churn is a parsing bug in `_rebuild`" below; BD-118, BD-126.
A note written for other features does not carry the reasons there (BD-144, 2026-12-01)
- **Intent:** The result of the run declared below. - **Research thinking:** `notes-r1`, tickets 1–10, both arms, no failure. Fresh dreams at ticket 10's cutoff, 10 per run: recall after `_rebuild` 0.54 against main-r1's 0.55, difference −0.01, 95% bootstrap interval −0.07 to +0.06. By the declared rule the sentence is reverted. The notes read no more general: 32 on 36 calls, many saying only that the owner took the recommendation. So neither the dream's prompt nor the executor's note moves what memory holds; both levers that say what memory is for are spent. What is left changes how memory is built (the dream sees each feature's calls side by side, or the judge scores a rule against several preferences), a design call for the person. Rework on tickets 6–10 (4.2 memory, 3.6 holdout) decides nothing. - **Key references:** `backend/research/simulated-owner/README.md` (Follow-ups); `runs/notes-r1/`.
Does a note written for other features carry the person's reasons there? Declared before the run (BD-144, 2026-12-01)
- **Intent:** The dream does not generalise across features, and telling it what carries across
them moved nothing (below). Its input may be the limit: in main-r1 the executors wrote a note
on 65 of the owner's 75 calls, and all seven touching outside services are bound to their
feature ("keep processing within Potje rather than forwarding images to another service"). A
fresh dream reads every one of them and still never states the rule. The person's call: test
the note on the first 10 tickets only, then evaluate before going further.
- **Research thinking:** _Hypothesis._ An executor told what its note is for (later sessions
mostly draft features this one never touched) writes the part of the person's reason that
holds beyond the feature, and a dream built from such notes recovers more of the owner's
preferences. _Source:_ the note analysis above; "The components of agent memory" (memory pays
only for what the next task does not already show).
_Declared now, before any result exists:_
- *Change.* One sentence in `resolve_decision`'s description of `note` (`mcp_server.py`, and
`docs/spec-contract.md`), saying what the note is for, not how to write it. Nothing else.
- *Run.* `notes-r1`: tickets 1–10, both arms, draft-only, one replicate, every model luna, the
eval instance on :8001. Everything else as main-r1.
- *Measure.* Recall of the ten preferences by fresh dreams at the cutoff of ticket 10's stored
dream, 10 samples on `notes-r1` and 10 on main-r1, judged as before
(`sim_owner_dream_stability`). Fresh, so every note up to the cutoff is read and the chain's
churn is out.
- *Rule.* The note helps if the 95% bootstrap interval of the mean recall difference (`notes-r1`
minus main-r1) lies above zero. Otherwise the sentence is reverted.
- *Reported, deciding nothing.* Recall per preference; the notes beside main-r1's on the same
tickets; rework on tickets 6–10 against main-r1 and main-r2 (five tickets cannot decide it).
Preference 8 alone decides no call before ticket 19, so these 10 tickets test generalising
in general, not preference 8.
- *Stop.* After ticket 10. The person evaluates before anything more runs.
- **Key references:** `backend/research/simulated-owner/README.md` (Follow-ups); BD-118, BD-126,
BD-144; the entry below.The dream's churn is a parsing bug in `_rebuild`, not the model; and what the null result could have seen (BD-144, 2026-12-01)
- **Intent:** Two Monte Carlo follow-ups to the result below, both a person's call. (1) What the
declared rule could have detected, so "no detectable difference" can be read. (2) Whether the
churn (recall swinging 0.1 to 0.7 between dreams) is the model sampling differently or the chain
rebuilding, by holding a dream's input fixed and sampling it many times.
- **Research thinking:** _(1) Power, no model calls (`app/sim_owner_power.py`)._ The per-ticket
difference splits into 1.37 between tickets and 2.15 between replicates of the same ticket;
holdout rework is 3.69 per ticket. Simulating the declared rule with that noise:
| true reduction per ticket | 0.5 | 1.0 | 1.5 | 2.0 |
|---|---|---|---|---|
| 21 tickets × 2 replicates (as run) | 0.28 | 0.65 | 0.94 | 0.99 |
| 21 × 4 | 0.31 | 0.75 | 0.98 | 1.00 |
| 21 × 8 | 0.33 | 0.84 | 0.99 | 1.00 |
| 42 × 2 | 0.38 | 0.90 | 0.99 | 1.00 |
So the main run rules out a large effect (40% less rework or more), not a modest one: a true
reduction of a quarter would have been missed a third of the time. Since the interval
resamples tickets, a longer backlog buys more power than more replicates of the same tickets
at the same cost.
_(2) Dream stability (`app/sim_owner_dream_stability.py`, eval instance, read-only)._ At three
of replicate 1's memory dreams (tickets 13, 16 and 17: a high point, one served empty, a low
point), the dream was rerun 15 times on exactly the input the stored dream read (chained), and
15 times on the same record with no previous version (fresh). Each sample was judged as the
model wrote it (raw) and as `_rebuild` kept it. The stored dreams judged five times each vary
by 0.04 to 0.08: that is the judge's own noise.
| | raw: recall ± SD | after `_rebuild` | empty after `_rebuild` |
|---|---|---|---|
| chained (13 / 16 / 17) | 0.58±0.09 / 0.49±0.06 / 0.45±0.08 | 0.41±0.27 / 0.33±0.22 / 0.31±0.24 | 11 of 45 |
| fresh | 0.53±0.09 / 0.59±0.08 / 0.59±0.07 | 0.48±0.15 / 0.58±0.08 / 0.49±0.22 | 3 of 45 |
The model is stable: on a fixed input its raw recall varies little more than the judge's own
noise, and it never writes an empty dream. `_rebuild` adds the variance and every empty memory.
The cause is a parser, not a rule. Support is counted only when an evidence entry is exactly one
reference (`D3` or `[D3]`), and the model, at random from one sample to the next, writes
several in one entry ("[D4], [D11], and [D24] support ...") or a sentence with references in
it. Those parse to nothing, so the heuristic has no support and is dropped, and a dream written
that way throughout is dropped whole. This is also the likeliest cause of the 2026-11-30
finding (3 of 10 heuristics served) and of BD-140's empty rebuilt memories, not yet checked
there.
_A candidate fix, tested offline on the same 90 outputs (`--rescore`)._ Pull every reference
out of each evidence string, then run the unchanged `_rebuild`. Rebuilding without the change
reproduces all 90 stored rebuilds exactly, so the comparison is clean. With it: no empty dream
(0 of 90, from 14), recall SD 0.07 to 0.11 (from up to 0.27), mean recall chained 0.51 (from
0.35) and fresh 0.55 (from 0.52).
_Applied (the person's call, 2026-12-01), after an Opus dream was tried instead._ On main-r1's
record at tickets 4, 9, 13, 17 and 26, 14 Opus dreams recalled no more than luna's (0.4 to 0.7
for both, within the judge's noise) and none came out empty, against 13 of 78 luna rebuilds:
Opus writes one reference per evidence entry. So the model is not what empties dreams, and an
Opus dream would not raise what memory holds. Both models miss the same three preferences: two
that seldom decide an owner's answer, and one (no new outside services) that decided as many as
any, so its loss is the dream's or the judge's (it turned out the dream's: it keeps that
preference inside one feature's rule at a time). A sentence in the dream prompt saying what
carries across features is worth more was tried on luna and moved nothing (recall 0.51 to
0.52, the preference never stated in 30 dreams either way), so it was reverted. `_rebuild` now counts every reference
in each evidence entry (`D`, `I`, `C`, `E` or `X`), as the rescore did. Details and the table:
the simulated-owner README, "Follow-ups".
_Read after the result (exploratory)._ At tickets 16 and 17 even the raw chained dream recalls
less than the fresh one (0.49 and 0.45 against 0.59), and it promotes a one-off call to a rule in
44 of 45 samples against 31 of 45 fresh. Reading a degraded previous version seems to anchor the
next one. Three cutoffs in one replicate cannot settle that. None of this changes the main run's
verdict; whether serving a memory that is no longer emptied reduces rework is a new run.
- **Key references:** `backend/research/simulated-owner/runs/main-r1/dream-stability.json` (every
sample, raw and rebuilt, each judged, and the reparsed rebuilds); `app/sim_owner_power.py`,
`app/sim_owner_dream_stability.py`; `_rebuild` in `app/services/live_memory.py`; the 2026-11-30
entry below; BD-140.A synthetic owner's rework does not fall with memory, and the dream churns (BD-144, 2026-12-01)
- **Intent:** The result of the run declared in the entry below, with the person's changes made
after the pilot and before the main run: draft-only tickets, two replicates, owner and
executors on luna.
- **Research thinking:** _Run 2026-12-01 on the local eval instance (127.0.0.1:8001, database
`doen_eval`; never production)._ 26 tickets in a memory and a holdout project, twice; 104 of
104 tickets scored, no transcript touching the owner's materials, about $3.30 of OpenRouter
credit.
By the declared rule, **no detectable difference**: per ticket 6–26, rework holdout minus
memory, averaged over the replicates, mean −0.357, 95% interval [−1.238, +0.476] over 21
tickets. Memory's project had slightly more rework, not less.
_Read after the result (exploratory)._ Neither decisions (−0.21) nor spec edits (−0.14)
favour memory, and dropping the two tickets where an executor hit its turn limit changes
nothing (−0.41, [−1.29, +0.43]). Memory did not teach the executor what the owner leaves to
it either: 44% of the questions in the memory project were ones no preference bore on, 42% in
the holdout. The secondary measure explains more than the primary. The dream does not
accumulate. Recall of the ten hidden preferences swings between 0.1 and 0.7 from one dream to
the next. About half of what is served matches a real preference. Five dreams came out with no
heuristics at all; four of them came before a ticket, which was then served nothing. All three one-off calls were
promoted to rules at some point. The changed preference was picked up from ticket 14 on, so
the dream does notice new evidence; it does not keep old evidence. The setting is narrow (one
synthetic owner, luna everywhere, a luna owner whose draft reviews agree with themselves only
half the time), so this does not show that memory cannot help. It shows that this dream, on
this model, rebuilds instead of building up. That points at the dream's rebuild, where the
2026-11-30 entry already found `_rebuild` dropping most of what a dream wrote, not at
retrieval or serving.
- **Key references:** `backend/research/simulated-owner/README.md` ("Results"), `runs/main-r1`,
`runs/main-r2` (events, results, reports, recovery, compressed transcripts);
`app/sim_owner.py`, `app/sim_owner_report.py`, `app/sim_owner_recovery.py`; BD-118, BD-126,
BD-140.Does memory reduce rework for a simulated owner? Declared before the run (BD-144, 2026-12-01)
- **Intent:** Every memory measure so far reads real history: 28 finished initiatives, and no
known answer for how the person would have decided. That is why a blind judge could be fooled
by length (BD-140). This experiment supplies the known answer: a simulated owner decides by a
written set of preferences no executor sees, so every call an executor makes and every
heuristic a dream writes can be checked against the truth. It runs end to end with no person
in the loop, on a separate local instance.
- **Research thinking:** The design takes two points from "The components of agent memory":
CL-Bench works because the agent is told the correct answer after each question, and Pokémon
shows that memory pays only for what the environment does not already show. So the owner's
preferences are invisible in the code and in every brief, and each recurs three to five
times in a different form (ticket 15, exact amounts, tests the same rounding rule as ticket 1
without mentioning cents). Three properties test what a dream must do beyond recall: an
exception (a group's currency is the one allowed choice), a changed mind (from ticket 14 an
expense may be edited within 24 hours by whoever entered it), and three one-off calls that
must not become rules ("skip tests this time").
_Declared now, before any result exists_ (full text in `backend/research/simulated-owner/`):
- *Arms.* Two projects on one eval instance, the same 26 tickets in the same order: one where
every initiative is served memory, one where none is. Precedent and dreaming run in both,
so the comparison is BD-118's: the served heuristics, beyond what precedent gives.
- *Measure.* Rework per ticket, unchanged from BD-126: the decisions the owner resolved plus
the spec items the owner added or reworded. Overturned executor calls and the heuristics'
recovery of the preferences are reported apart and never change the verdict.
- *Rule (the person's call).* Tickets 1–5 are burn-in. Memory reduces rework if the 95%
bootstrap interval of the per-ticket difference (holdout minus memory) over tickets 6–26,
pooled over replicates, lies above zero; below zero means it increases rework; otherwise no
detectable difference.
- *Pilot.* Tickets 1–4 in both projects. The owner must return the same judgement at least 9
times in 10 on repeated inputs, every failed model call is listed and never scored, and the
cost per ticket sets the number of replicates. Models, replicates and how each initiative's
group is forced are fixed after the pilot, before the main run.
- *Later, not here.* A second owner whose preferences conflict, on the same backlog, separates
learning the person from learning the codebase. It runs after this one finishes (the
person's call).
- **Key references:** `backend/research/simulated-owner/` (`rulebook.md`, `backlog.json`,
`README.md`); BD-118, BD-126, BD-140; "The components of agent memory" (Anthropic, 2026-11-06),
CL-Bench and Pokémon sections.Would a flagship model dream better? One rebuild, read, not measured (2026-11-30)
- **Intent:** A person asked whether a stronger model (Opus 5.5) would write a better dream than
the drafting model it shares today (`SHAPING_MODEL`, `openai/gpt-6-luna`, through
`get_live_memory_llm()`), and asked to compare the two on what is served now.
- **Research thinking:** Against production (the instance the MCP server points at), read-only,
build-doen's memory was rebuilt once per model from the record as it stood: the same prompt,
schema, effort `high` and `_rebuild`, no prediction step and nothing written. The current model
was rebuilt as well, as a control, so the record's growth since the last dream is not credited
to the model. Output was capped at 32k tokens for both, since OpenRouter refused Opus at the
default cap on the account's remaining credit.
| | served (29 Nov) | luna, today | Opus 5.5, today |
|---|---|---|---|
| heuristics kept | 3 of 10 written | 7 of 7 | 9 of 10 |
| citations | 7 | 54 | 74 |
| tokens in / out | 48.7k / 5.9k | 54.8k / 7.0k | 88.7k / 9.0k |
| cost | $0.009 | $0.010 | $0.537 |
Two findings outweigh the model question. The served version keeps only 3 of the 10 heuristics
its dream wrote: `_rebuild` dropped 7 for lack of support while the changes list still says
"kept", so executors are served a fraction of what was dreamt (cause not yet checked). And the
600-word budget truncates instead of shaping: Opus wrote 678 words, so its ninth heuristic stops
mid-sentence with no traps and its tenth is dropped. Read by eye, Opus is more concrete and
catches calls luna missed (the conversation is the workspace, an explicit delete is taken
literally), but writes in names that will go stale ("judge with luna and Jev") and spends a
heuristic on the memory system's own mechanics. A reading is not the metric: nothing changes
on this run. Before any model change, both are scored with `app/replay_draft_coverage.py`
(BD-126). Opus costs about 50x per dream; at today's size that is still within
`EXECUTOR_MEMORY_DREAM_MAX_USD`.
- **Key references:** `backend/research/live-replays/2026-11-30-dream-model-opus.json` (prompt,
the served version, both runs raw and as built); BD-118, BD-126; `app/replay_live_dreams.py`
(`--dream-model`), the harness that scores rebuilt chains by prediction.A research initiative reads as research (2026-11-30)
- **Intent:** A research initiative's page read exactly like an engineering one: "Building",
"Acceptance criteria", "Evidence", "Start building", with the findings folded away at the foot
of the page. BD-15 had meant otherwise (investigating, success criteria, findings), and the
words were lost on the way to the page. A person noticed and asked for the distinction back
(their calls: the stages are Draft → Investigating → Reflecting → Complete, criteria are
"success criteria", and the thing stays an "initiative").
- **Research thinking:** Only the words change, never the lifecycle. The states stay
`draft / building / learning / complete`, derived as before, because the MCP tools, the
attention queue and the memory experiment all read them; splitting them by type would buy
nothing but a second state machine. The page translates them per type, as it already does every
other enum: `WORDS` in `web/shared/labels.js` (stages, Scope for constraints, success criteria,
findings for evidence, Reflection for the retrospective), and `_WORDS` in
`services/next_step.py` for the next-step titles every list shows ("Start investigating",
"Judge the findings on 2 success criteria", "Write the reflection"). The findings, which are
what research produces, now have their own group right after the success criteria they answer.
This is not a memory experiment and moves no metric; it is recorded because it restores an
earlier decision.
- **Key references:** BD-15, BD-34; `docs/design-principles.md` ("Initiative types").A blind judge cannot tell first drafts with memory from those without, and mostly rewards length (BD-140, 2026-11-30)
- **Intent:** The result of the replay declared in the entry below, run as declared. - **Research thinking:** _Run 2026-11-30, against production (read-only), 28 cases, one draft per arm (luna, no reasoning), memories rebuilt at `high`, judged by luna and Jev in both orders._ Every case was drafted and judged; no call failed for good (the provider refused some drafting prompts as a policy flag, and retries got through). | judge | memory's draft better | other better | neither | score per case [95%] | sign p | verdict changed with order | |---|---|---|---|---|---|---| | luna (deciding) | 9 | 6 | 13 | +0.107 [−0.179, +0.393] | 0.61 | 13 | | Jev | 11 | 7 | 10 | +0.143 [−0.143, +0.429] | 0.48 | 10 | Jev's probability for memory's draft minus the other's: +0.063 [−0.104, +0.231]. By the declared rule, memory does not make first drafts more complete: luna's interval spans zero, and so does Jev's. The two judges agree on 14 of 28. _What the judges measured (read after the declared result; exploratory)._ Two things explain more of the verdicts than memory does. (1) Position: every verdict that changed with the order kept the same slot (luna "draft 1" twice in 6 and "draft 2" twice in 7; Jev "draft 1" twice in 8 of its 10). (2) Length: wherever a judge decided and the drafts differed in length, it picked the longer one, luna 12 of 12 and Jev 14 of 15, although the prompt says length alone does not count. Memory's draft had more items in 16 cases and fewer in 6, so the small lean toward memory is what length alone would produce. The lean sits in the early cases, whose memory came from 1 to 6 calls (luna 5 to 2, Jev 8 to 4); on the eleven cases from BD-117 on, with memory from 16 to 66 calls, it is level (luna 4 to 4, Jev 3 to 3). Three rebuilt memories came out with an index and no heuristics (BD-28, BD-117, BD-125). _What this says, and does not._ It does not show that memory fails to help a first draft. It shows that a judge asked "which leaves less to settle" cannot see a difference here, and that when it chooses it mostly chooses the longer draft or the first or second slot. A preference judge is a weak instrument for this question: the grounded measure (did the draft raise the decisions the team later made, BD-126's replay) found no difference either, and the BD-139 pre-check found the one visible effect of memory in a draft's wording, not its size. Whether to measure next with a length-matched comparison, with the grounded measure on more tickets, or to wait for live first drafts from BD-139 is the team's call. - **Key references:** `backend/research/replay-runs/2026-11-30-first-draft-judge.json` (every draft, both verdicts per judge and their reasons); `app/replay_first_draft.py`; the declaration below; BD-139.
Does memory make first drafts more complete? Declared before the run (BD-140, 2026-11-30)
- **Intent:** BD-139 lets the memory group's first draft read the live memory. This replay asks
the question of history: for every finished initiative with a description, write its first
draft twice through BD-139's drafting step (the shaping prompt, schema and parsing, and the
message with BD-139's memory section), once with the memory as it stood when the initiative
began and once without, and let a judge say which leaves less for the team to settle later.
Only first drafts; never later reshaping. Judges: luna, and Jev; no others (the team's calls).
No calibration against the team's own ratings (the team's call: trust the judges).
- **Declared now, before any result exists:**
- *Cases.* build-doen's completed, unarchived initiatives with a stored description or brief:
28 on production today (BD-22 to BD-139). No other project has a finished initiative.
- *Memory.* Rebuilt with today's dream code (`replay_live_dreams.dream_at`, reasoning at `high`)
as of each initiative's creation, from the record up to then, chained in creation order;
nothing the initiative or anything later contributed. Every case has at least one call by the
team before it.
- *Everything else identical.* Both drafts read the same description and the same past-decision
context. That context is today's retrieval restricted to initiatives created before the case,
so neither arm sees the initiative's own record or anything later. One draft per arm; the
drafter is luna without reasoning, as production shapes. Production is only read: the replay
never calls `create_from_description`, which would create an initiative and write cost rows.
- *Judging question.* Given the description and two first drafts, which leaves less for the
team to settle later: fewer open questions, fewer things a person would have to decide or
rewrite before building? Length alone does not make a draft better. The judge never sees the
memory or which draft had it.
- *Order.* Each pair is judged with memory's draft first and again second, in random order of
asking. A verdict that flips with the order is equal.
- *Deciding statistic.* Per initiative, luna's final verdict scores +1 (memory's draft), -1 (the
other) or 0 (equal). The result is the mean over initiatives with a paired 95% bootstrap
interval (10,000 resamples, seed 0) and an exact sign test on the non-equal ones. Memory makes
first drafts more complete only if luna's interval lies above zero. Jev is reported beside it:
the same score from its choices, and the mean over both orders of its probability for
memory's draft minus the other's, with the same interval. Where luna and Jev disagree, it is
reported, not resolved.
- *What would not count.* A difference within the interval; a gain shown only by Jev; any
reading of an interim cut.
- **Key references:** BD-139; BD-140's spec and decisions; `app/replay_draft_coverage.py` (the
memory rebuild it reuses).Memory shapes the first draft (BD-139, 2026-11-30)
- **Intent:** Memory's value should show in the ticket itself: with the team's way of deciding in
hand, a first draft should come out more detailed and leave less open. It could not, because
the server wrote the first draft (`create_from_description`) from the description alone and the
memory reached the executor only afterwards. Now `create_spec` draws the initiative's group
before drafting; for the memory group the drafter also reads the live memory block, rendered
exactly as the executor receives it, and the holdout is drafted as before, with the same
description and the same past-decision context, so live memory is the only difference. What
the drafter read is a serving of kind `draft`, and the first draft's item counts and the
review's ratings are kept as written (`memory_arms.first_draft`, migration 0076). A person's
brief now also assigns the group at creation.
- **Hypothesis, declared before any comparison is read:** first drafts written with memory leave
less unclear and need less rework than drafts written without it.
- *Measures.* (1) The share of a first draft's constraints and criteria the existing review
rates flagged or uncertain, among those it rated. Discretion is left out: it is latitude by
design, and in a six-draft check of BD-139's own description the review rated every
discretion item uncertain with or without memory. (2) The first draft's constraint and
criterion counts, shown beside (1) and never read as better on their own. (3) The existing
rework outcome per completed initiative (BD-126).
- *Baseline.* The holdout: initiatives drafted without memory over the same period, assigned at
random at even odds.
- *What it cannot show yet.* Nothing: no initiative has been drafted this way. The first reading
goes in a later entry. A pre-check on BD-139's own description (three drafts each way, the
same eight past-decision hits, scored offline) found the same counts and the same ratings in
both arms, with one difference in content: two of three memory drafts warned that a
classifier signal is not ground truth, which the memory says in so many words. Neither arm
raised the four points a person later added by hand. BD-140 will judge first drafts pairwise,
blind, after this ships.
- **Key references:** `services/live_memory.py` (`memory_for_draft`, `record_draft`,
`first_draft_comparison`, `assign_at_creation`); `services/shaping.py` (`memory` on
`shape_spec` and `create_from_description`); `mcp_server.create_spec`;
`migrations/0076_first_draft.sql`; the Memory tab's First drafts table; BD-126; BD-140.The experiment page tells the whole story, and the live experiment's first numbers (2026-11-30)
- **Intent:** `/research` still ended at "dreamt memory with search predicts what gets built about 20 points better", the 2026-11-27 conclusion. Everything since (paired intervals, the BD-122 signals, the live prediction replay, the switch to rework, both draft-coverage runs) lived only in this log, and the page labelled draft-coverage runs "Escalations". The page is rewritten after "The components of agent memory", with the team's calls on how: Doen presented as an experiment in keeping a product's memory while agents build it, not as research; it opens with a question; plain language about a product team and its tickets, never "a person"; a figure per finding rather than long text; no dates, models or single-project details in the article or its tables. Eleven figures, among them an interval plot of each memory against none, the four-step story of a memory that looked wiser by copying in the answer, and each ticket's draft coverage with and without memory (`by_case`, computed in `services/research.py`). The page renders fully on the server: the paired comparisons of the two older escalation runs are now stored in their run files (`compare`, from `measure_memory_replay.compare`), because computing the bootstrap on request took 2.5 seconds, past the 2-second render limit. - **Research thinking:** The first live rework numbers, read from production (the instance the MCP server points at, `GET /projects/build-doen/live-memory`) on 2026-11-30: 7 completed initiatives in the experiment. The memory group has 2 (BD-136, 10 decisions and 1 item reworked; BD-137, 5), mean rework 8.0. The holdout has 5 (BD-120, BD-122, BD-125, BD-126, BD-133), mean 4.2. Two against five says nothing about memory. It does show a problem with the measure: rework follows the size of the work. BD-136 touched every route and needed ten of the person's calls. A plain difference in means will need many initiatives per group, or a measure that allows for how much each initiative asked of the person. No metric changed; this entry records a reading. The person then asked whether memory is tracked per spec item; it is not, and memory never reaches the first draft. That became BD-139 (memory shapes the first draft) and BD-140 (a blind luna and Jev judge compares first drafts with and without memory, after BD-139 ships). - **Key references:** `web/pages/research/`; `services/research.py` (`_coverage_by_case`, `_gaps`); BD-126; BD-118; BD-139; BD-140.
An archived project can be deleted for good (BD-138, 2026-11-30)
- **Intent:** Let a person remove a project entirely, after archiving it. Until now projects were
only ever soft-archived, so abandoned and test projects stayed in the database for good.
- **Research thinking:** Four calls from the person, recorded on BD-138. Deleting takes everything
of the project, cost log included, from Postgres and Redis. A person confirms in a dialog that
shows what goes and only enables Delete once they type the project's name. Projects that draw on
it are named there and lose the link; they are not a reason to refuse. Only a signed-in person
deletes, over HTTP; no MCP tool can. The schema already cascaded from `projects` and
`initiatives` everywhere except `initiatives.project_id` (RESTRICT), so the delete is two
statements in one locked transaction, and no migration was needed. Redis holds no per-project
key. This narrows "nothing is deleted" to items, decisions, initiatives and active projects. It
changes no memory measurement: it does not touch what is captured or served, it only removes a
whole record a person chose to remove.
- **Key references:** `SpecStore.delete_project` (`backend/app/store/projects.py`),
`DELETE /projects/{id}` and `GET /projects/{id}/deletion`, the delete tests in
`backend/tests/test_projects.py`, `docs/design-principles.md` ("Project as first-class container").A spec keeps changing while it is built, and records how (BD-137, 2026-11-30)
- **Intent:** Let people and executors iterate on an idea during building and learning without
the spec blocking them, while the spec records each change and adapts to it. Before, after draft
a person could only confirm or reject proposals, an executor could not propose removing anything
or changing the intent, and the way out was reverting the whole initiative to draft. On BD-136 an
executor ended with "either click Move back to draft, or remove those items yourself", and a
change the person had just agreed to in the conversation still waited for them to confirm it on
the page. In draft, a reshape that left an item out erased it, even one a person wrote.
- **Research thinking:** Five calls from the person, recorded on BD-137. Nothing is ever deleted.
Executors change the spec directly, as people do, because they understand the context at least
as well; when in doubt they ask first. The intent is a summary of the feature and may change
with it, and the title follows. An executor brings a stale spec in line itself and never hands
that work back. What an executor writes takes effect at once, in draft too: as the person's when
they agreed to it in the conversation (`agreed_decision_id`, the decision holding their answer),
as the executor's own otherwise (`ai_confirmed_by_executor`). The one gate kept, also the
person's call: the reviewer never auto-approves evidence on a criterion the executor confirmed on
its own, since the executor could have worded it to fit what it built.
In place of the proposal gate there is a record. Every change after draft goes to `spec_changes`
(migration 0075) with before, after, author and reason, shown on the initiative page as Changes,
each with Undo. Retired items carry `retired_by` and `retired_reason`. A person edits, rewords and
retires items and rewrites the title and intent on the page in building and learning too, and
retiring the last open criterion moves building on to learning.
This touches the rework metric (BD-126), so the change has to keep it honest. Live memory reads a
retired executor item as a person's correction and a replacement as a person's rework. Both now
exclude what the executor did on its own (`retired_by = 'executor'`, a replacement of provenance
`ai_confirmed_by_executor`); `test_corrections.py` covers it. Expect the measured rework per
initiative to shift for a reason unrelated to memory: a person's agreement in the conversation now
shows as a decision rather than as a confirmation click, and people no longer have to reword
items to get a change through. Compare groups only within initiatives on one side of this date.
The background rating of executor proposals ("The reviewer rates what executors write again",
same day) is removed: nothing an executor writes waits to be confirmed, so there is nothing for
the rating to make confirmable. No replay was run: this changes what a person must do, not what
memory predicts.
- **Key references:** `backend/app/services/spec_changes.py`, `backend/app/store/spec_changes.py`,
`backend/migrations/0075_spec_changes.sql`, `backend/app/services/review.py` (the executor's own
criteria), `backend/tests/test_authoring.py`, `docs/design-principles.md` ("A spec keeps
changing while it is built").Only a token holder writes (BD-136, 2026-11-30)
- **Intent:** Doen stays a closed, trusted system with one credential, `DOEN_API_TOKEN`. Until now
it was all or nothing on the backend (and production does not appear to set it), and the web had
no login at all: anyone who reached the site could change everything. Now, with the token set,
every write and every MCP call needs it. Anyone may still read. On the web a person signs in once
at `/sign-in`, and the token is kept in an HttpOnly cookie that the web server turns into the
Authorization header. Without the cookie the pages show no write actions. This is not a memory
experiment: it changes nothing an executor is told, and nothing the rework metric reads.
- **Research thinking:** The brief asked for WorkOS AuthKit behind an identity-provider adapter,
with users, three global roles and per-project permissions. Shaping it surfaced that executors
could not hold a short-lived user JWT, and that existing projects would need owners. Once the
person saw how the token works today, they reduced the design to what the trust model needs:
everyone trusted holds the token. A per-project public flag was drafted, built, and then taken
out on the person's correction: the initiative is only about who may write. The calls recorded
for the WorkOS design and for the flag describe dropped plans.
The boundary is one middleware, so a new route is covered by default. `tests/test_auth.py` walks
every route registered in the OpenAPI document. It checks that more than 30 write routes refuse a
missing or wrong token. It also reads every GET route anonymously over a Postgres connection that
refuses writes, with the embedder and all outbound HTTP failing: no write and no model call
happened. Two GETs did either: memory corrections started a background review (a model call and
a write), and past calls on a spec item embed the item. The first now starts the review only for
a token holder, and the second needs the token.
- **Key references:** `backend/app/auth.py`, `backend/tests/test_auth.py`, `web/session.mjs`,
`web/shared/session.js`, `DEPLOYMENT.md` ("Connecting Claude Code via HTTP MCP").Projects share nothing unless a person links them (BD-133, 2026-11-30)
- **Intent:** Retrieval no longer fills a thin project's slots from every other project. A person switches on, in a project's setup tab, the projects it may draw on (`project_links`). A link is one way and direct. It covers `get_context`, drafting and the reviewer's grounding, and past calls on a spec item. The project's own hits come first and linked projects fill only what is left, by the same cosine ranking, each hit naming its project. Live executor memory never reads links. This reverses spec 0010's global fallback. - **Research thinking:** _Measured on production (Railway, the instance the MCP server points at), read-only, before and after the change._ Production holds seven projects. Three have a record: build-doen (86 embedded decisions and 103 memory entries on completed initiatives), voye (52 and 28) and resume-builder (37 and 19). edo-me and freelance-pack have memory but no decisions. _The product's `get_context` on today's corpus._ For every resolved decision (183), the product's own `SpecStore.get_context` was run for its question (its stored embedding, limit 8). On the old code: 1,464 slots, 0 from another project. On the new code with no links: 1,464 slots, 0 from another project. Every project with decisions now fills all 8 slots itself, so today the fallback never fires and removing it changes nothing an executor sees. _When the fallback did fire (leakage-free replay)._ The same 183 questions were replayed against the corpus as it stood when each was decided: rows resolved or written before it, from other initiatives. The fallback filled 70 of 1,458 slots (4.8%), in 14 queries, all while voye (5 queries, 28 slots) or resume-builder (9 queries, 42 slots) was young. build-doen never used it. 22 of those 70 slots scored ≥ 0.48 (the precedent script's "plausibly on topic" line), and in 12 queries the best foreign hit outscored the best own one. So the fallback did sometimes bring something close, and it did so only at a project's start, which is when a person can now link a project on purpose. _Precedent (`app/measure_precedent.py`)._ Across the whole corpus (what an unscoped search could reach): hit rate 0.824 (150 of 182). Scoped per project, as the product now searches: build-doen 0.878 (79/90), voye 0.412 (21/51), resume-builder 0.897 (35/39), together 0.75 (135/180). The gap is mostly voye, whose closest prior call is often in another project. Similarity says a comparable question was asked, not that its answer applies across products. Whether voye should link build-doen is a person's call, now a switch. _The replay and measurement scripts keep searching one project (or the whole corpus with no `--project`)._ They do not read links, so a measurement does not depend on what someone switched on that day. - **Key references:** `backend/migrations/0074_project_links.sql`, `app/store/links.py`, `app/store/retrieval.py`, `app/store/decisions.py` (`get_precedent`), `tests/test_project_links.py`. The measurement scripts are throwaway (session scratchpad); their numbers are above.
The reviewer rates what executors write again (2026-11-30)
- **Intent:** After `reshape_spec` and `propose_spec_change`, the reviewer rates the new proposed items in the background (`shaping.rate_unrated`), so the initiative page's one-click "Confirm these N" for items that look settled works again. - **Research thinking:** A person noticed the page never offered it any more. On production the rating (`shaping_classification` in `llm_cost_log`) last ran on 2026-10-10. Only the app's own shaping rated items, and since specs moved to executors writing over MCP (a pre-draft brief is drafted with `reshape_spec`), nothing did: every proposed item stayed unrated, so none counted as settled. The batch confirm is still a person's act. Rating never confirms on its own unless `SPEC_ITEM_AUTO_CONFIRM_ENABLED` is set, which production does not set. Only unrated proposed items trigger a run, and the merge leaves alone anything a person changed while it ran. - **Key references:** `services/shaping.py` (`rate_unrated`), `mcp_server.py`, `tests/test_classification.py` (`test_items_an_executor_reshapes_get_rated`).
A person can rewrite a draft's title and intent (2026-11-30)
- **Intent:** The initiative page has an Edit intent button, in the same place as the project
page's Edit intention, while the spec is a draft. It opens a large dialog with the title and
the intent and saves both through `PATCH /specs/{id}/draft/meta`. This refines BD-117, which let
a person shape a draft's items but never its intent or title.
- **Research thinking:** Asked directly, the person chose draft only over editing at any time or
keeping the rule. A person could reword every item but not the sentence they are read against.
Outside draft the intent is frozen, as `update_meta` already enforced for executors: a
different intent there is a new initiative. The same day the person asked for the title in
the same dialog, so it follows the intent's rule. Not captured as a `spec_corrections` row:
`section` is limited to the three item groups, and the brief already keeps the person's own
framing beside the executor's intent. Widening capture waits for evidence that the dream would
use it (the rule against building memory machinery ahead of the evidence).
- **Key references:** `services/authoring.py` (`person_edit_meta`), `routers/specs.py`,
`tests/test_authoring.py` (`test_a_person_rewrites_the_title_and_intent_only_in_draft`),
`test_no_spec_writes_over_http`.Memory rebuilt at each initiative's start does not raise more of the person's decisions (2026-11-30)
- **Intent:** Answer from history what the live experiment would take weeks of new work to answer: would memory, as it stood when an initiative started, have made the executor's draft raise more of the decisions the person later had to make? The first draft-coverage replay (below) could score only 3 initiatives, because live memory exists only since 2026-11-27. `replay_draft_coverage.py --memory rebuilt` now dreams a memory with today's dream code at the moment each initiative was created, from the record as it stood then, chained in creation order. Every completed initiative with a person's decision and a commit can then take part. - **Research thinking:** _Run 2026-11-30, against production (read-only), 3 seeds, luna drafting at `high`, dreams at `high`, $3.02 for drafting (dreams not metered)._ 18 initiatives, 42 decisions. BD-34 was the earliest with a call before it. BD-133 completed overnight and joined on resume. | judge | coverage, no memory | with memory | gap per initiative [95%] | better / worse | |---|---|---|---|---| | luna | 0.483 | 0.518 | +0.035 [−0.075, +0.141] | 5 / 1 | | DeepSeek | 0.586 | 0.581 | −0.005 [−0.120, +0.097] | 6 / 4 | Not distinguishable under either judge. Leaning the person's way is flat too (luna 0.186 → 0.199, DeepSeek 0.180 → 0.172). On 12 of 18 initiatives the luna judge scores the two arms the same. Most of those have one decision, which every draft either raises or misses. Where memory moved anything it was on the initiatives with the most decisions. BD-117 (5) went 0.33 → 0.47 under luna and 0.27 → 0.33 under DeepSeek. BD-122 (11) went 0.61 → 0.73 under luna and stayed level under DeepSeek. BD-133 (5, with a brief) went 0.53 → 0.80 under luna and 0.73 → 0.80 under DeepSeek. BD-102 went the other way (2 of 3 drafts raised its one decision without memory, none with it). A seven-initiative interim read 0.56 → 0.67 and disappeared as the rest came in: early cuts of this replay are noise. Three limits keep this from being a null result on memory itself. (1) 16 of 18 start from the intent as it stands today, not a brief (`leaky`). The intent may already state what was decided, which lifts both arms and narrows any gap. The two with a brief (BD-120, BD-133) gap +0.13 under luna, too few to read. (2) The judges agree less than in the first run: raw 79% on *raised* (kappa 0.57, against 0.81) and 69% on *leaned* (kappa 0.46). (3) The rebuilt chain carries no track records, so it is today's dream code without the scoring the live loop feeds back. What it does say: on this history, a memory of the person's calls does not make a code-reading drafter anticipate their decisions measurably better. The signal, if there is one, sits in the few initiatives with many decisions. More of those, with a brief, would test it. Operational: the run stopped twice on the local key's $3 daily limit and once on a judge answer cut off at its output limit. The replay now saves progress after every dream and draft and resumes from it, and retries a judge call up to three times. - **Key references:** `backend/research/replay-runs/2026-11-30-draft-coverage-rebuilt.json` and its thread; `app/replay_draft_coverage.py` (`rebuild_memories`, `--memory rebuilt`); `app/replay_live_dreams.py` (`dream_at`); BD-126.
An initiative joins the experiment when it is created, not only when it is read (2026-11-29)
- **Intent:** `create_spec` now assigns the initiative's group and serves the live memory block, as `get_spec` does. Before, the group was assigned only on an executor's first `get_spec`. - **Research thinking:** The project page's "Does it help" table showed no memory group at all: four completed initiatives in holdout (14 decisions and 2 spec items reworked, 4 per initiative) and none with memory. On the production instance (the one the MCP server points at), only four initiatives had ever been assigned a group (BD-120, BD-122, BD-125, BD-126), all holdout. Four holdouts out of four happens one time in sixteen. That is unlikely but not alarming. The assignment code checked out: one unseeded `random.random() < 0.5` on first read, the first row stands, nothing else writes `memory_arms`, and the only seeded generators belong to the replay scripts. Their seeds are private `random.Random(seed)` instances. The real gap was elsewhere. BD-127 to BD-130 completed after BD-118 shipped and were never assigned, because an executor that creates an initiative gets the draft back from `create_spec` and has no reason to call `get_spec`. Those initiatives fell out of both groups, so the experiment lost about half its initiatives, and memory never reached the session that built them. Serving at creation closes that gap. It does not yet reach the draft itself: `create_spec` still drafts server-side from the prompt alone, so memory can shape the executor's building and later reshaping but not the first draft. This changes who enters the experiment, not what is served. - **Key references:** `backend/app/mcp_server.py` (`_executor_memory`, `create_spec`); `backend/app/services/live_memory.py` (`memory_for_executor`); BD-118, BD-126.
The memory tab shows only live memory (2026-11-29)
- **Intent:** The project and initiative pages stop showing replay memories. The project's Memory
tab no longer opens with the newest replay dream ("How the executor thinks you decide") and its
earlier dreams; decisions no longer carry a "Memory check" line saying how often replay memory
predicted them. The tab now has two parts: what executors are told (the live block, with Dream
now) and whether it helps (the rework outcome, memory group against holdout, as a small table,
with the secondary signals on one line and completed initiatives folded below).
- **Research thinking:** This reverses part of the entry below that put the executor's memory where
people work. That entry showed replay memory as if it were the executor's belief, but no executor
was ever served a replay dream. Since BD-118, a separate live memory is what executors actually
receive, so the page had two memories side by side and only one of them was real. Keeping the
replay one beside it invites the error this phase is trying to avoid: judging memory by how
convincing it looks rather than by what it changes. The replay results did not go away. They stay
on `/research` (share of calls each memory predicted, per run, with every run and thread), which
is where research belongs. The rule is in `agents.md`: the project and initiative pages show only
live memory. `GET /projects/{id}/executor-memory` and `GET /initiatives/{id}/memory-predictions`
remain, and no page reads them now. This changes no metric; it changes which memory a person is
shown as the executor's.
- **Key references:** `web/pages/[projectId]/page.js`, `web/pages/[projectId]/[initiativeId]/page.js`;
`web/pages/research/`; BD-118, BD-126.Executors get every heuristic inline, not just their names (2026-11-29)
- **Intent:** The memory group received the index (about 85 words, the dream is asked to keep it short) and a list of heuristic names to open with `get_memory_heuristic`. A person's call: serve the index and every heuristic's rule and traps inline, so nothing that memory holds about how they decide waits behind a tool call. The project page shows the same block beside the project's intention, its first lines with a Read more. - **Research thinking:** The short top layer came from the paper's point that whatever loads into every session must stay small, because longer instruction files lower adherence. Doen's block is not loaded into every session: it arrives with `get_spec` for one initiative, and the heuristics are capped at 600 words, so the block stays a few hundred words. Whether executors ever opened a heuristic is unknown: no executor has been served memory yet (all assigned initiatives are in the holdout). This changes what the memory group will receive from its first serving; there is nothing earlier to compare against. `replay_draft_coverage.py` now gives its drafter the same form; the 2026-11-29 run used the index and names. - **Key references:** `render_block` in `services/live_memory.py`; BD-118.
The kill rule is removed (2026-11-29)
- **Intent:** A person's call, the same evening the rework rule below was declared: remove the kill rule. Nothing stops serving automatically now; `EXECUTOR_MEMORY_SERVE` is the only switch. The rework outcome (per completed initiative, the decisions a person resolved and the spec items they added or rewrote after assignment, memory group against holdout) stays measured and shown on the project page, and BD-118's agreement tally stays beside it as a secondary signal. - **Research thinking:** The rule was never evaluated: 4 initiatives assigned in four days, all to the holdout, against 10 completed per group needed. A pre-registered stop protects against serving something harmful while nobody looks; here every served word is shown to the person, who reads the outcome and can turn serving off. What the person gives up is an automatic, untunable stop: any decision to stop is now theirs, on the numbers the page shows. The constants `OUTCOME_MIN_PER_ARM` and `OUTCOME_MARGIN` declared below are gone with it; the declaration stays in this log as the record of what was planned. - **Key references:** BD-126 (the rework outcome); BD-118 (the experiment).
Memory is judged by the rework it saves, not the calls it predicts (BD-126, 2026-11-29)
- **Intent:** Live memory was scored on whether it predicted a person's single choice, and its kill rule on whether executors with memory recommended what the person chose. A person's call, 2026-11-29: that is the wrong reward. One choice is noisy (context limits, misreadings, ambiguous questions), and a baseline that sees nothing credits memory for what the repository already tells an executor like Claude Code. What memory is for is the product context the code does not carry, so that the spec comes out more complete and the person has less to settle and fix. Re-asking the person past calls to measure the noise was rejected. - **The new outcome and kill rule, declared before either is first evaluated.** Per completed initiative in the experiment, *rework* is the decisions a person resolved on it plus the spec items a person added or rewrote on it, both counted only after the initiative was assigned to a group (an executor's first `get_spec`, the only way memory reaches it). An item counts once, whichever way it shows: provenance `human`, a replacement of an executor's item, or a `spec_corrections` row. Fewer is better. The rule, in `services/live_memory.py`: `OUTCOME_MIN_PER_ARM` = 10 and `OUTCOME_MARGIN` = 0.0. Once each group has 10 completed initiatives, serving stops unless the memory group's mean rework over its first 10 (in order of completion, so the verdict is fixed once they are in) is lower than the holdout's. Why these values: like BD-118's, this is a stop for a null result, not proof of an effect; 10 a group is what build-doen can complete in a few weeks at its current pace; and requiring only "lower" keeps the rule from demanding an effect size nobody has evidence for. They are constants, never settings, and are not tuned after the first evaluation. BD-118's rule (recommendation matched the choice, first 40 calls) is retired: its data and verdict stay readable on the page, and it no longer stops serving. As of today 2 initiatives are in the experiment, both holdout. - **The prompts now say what memory is for.** The dream and prediction prompts say memory gives executors the product context the code does not carry, so they draft specs the person will not have to complete; they still say nothing about how to write it. This changes what the memory group receives from the next dream on. - **A replay to match: did the draft see the decisions coming?** `app/replay_draft_coverage.py` drafts each eligible past initiative twice, from how it started, with a drafter (luna at `high`, through pydantic-ai, with read-only tools over the code) that can list, read and search the repository as it stood at the parent of the initiative's first `BD-N` commit: once with the live memory as it stood before the initiative, once without. A judge decides for each decision a person later made whether the draft *raised* it (took up that specific question as a constraint, discretion item, criterion or open question, however worded or leaning; touching the same general area does not count) and which way it *leaned*. Two judges from different vendors (luna and `deepseek/deepseek-v4.1-flash`, no reasoning, temperature 0) score every pair. _Run 2026-11-29, against production (read-only), 3 seeds, $0.24._ Commits tagged with an initiative's id go back to BD-1 on other branches, so the limit is not the code but the memory: live memory exists only since 2026-11-27, so 3 initiatives qualify (BD-120, with a brief; BD-122 and BD-125, without one, flagged as possibly leaky), with 14 decisions between them. 78 others have commits but no decision a person resolved, and 15 had decisions before any live memory. | judge | coverage, no memory | with memory | gap per initiative [95%] | direction, no memory | with memory | |---|---|---|---|---|---| | luna | 0.338 | 0.399 | +0.061 [0.000, +0.182] | 0.227 | 0.146 | | DeepSeek | 0.369 | 0.389 | +0.020 [0.000, +0.061] | 0.187 | 0.187 | Not distinguishable. Only BD-122 differs: with memory the drafts raised 9, 6 and 8 of its 11 decisions, without it 7, 5 and 5 (luna judge); BD-120's one decision was raised by no draft, and BD-125's two were raised once by every draft. Leaning the person's way did not improve (luna has it slightly worse with memory). The judges agree on *raised* 90.5% of the time (kappa 0.81) and on *leaned* 67.9% (kappa 0.43), so the main score is measured reliably and the secondary one much less so. Three initiatives cannot say whether memory helps; the run shows the instrument works and the judge holds. It grows with every initiative completed from here, and a memory rebuilt by today's dream at earlier cutoffs (as `replay_live_dreams.py` does) would let the 15 earlier initiatives with decisions take part. - **Key references:** BD-126; BD-118 (the experiment and the rule it replaces); the 2026-11-29 replay below, where memory never beat no memory at predicting choices; `backend/research/replay-runs/2026-11-29-draft-coverage.json` and its thread.
Model calls go through pydantic-ai, in native schema output (BD-125, 2026-11-29)
- **Intent:** Our own client (`OpenAICompatibleLLM`) got structured output by declaring one fake function and forcing the model to call it. That trick turned luna's reasoning off in every live memory call until this morning, and Claude models (Opus 5.5) refuse a forced tool choice, so a dream could not even be tried on Opus. Every structured call now goes through pydantic-ai (`PydanticAILLM`, a person's call), using the model's native JSON-schema output (`NativeOutput`); a model whose profile has no native mode gets the schema in the prompt (`PromptedOutput`). The tool-call output mode is never used. Jev is unchanged. - **Research thinking:** Plumbing, not a memory experiment, so no replay was run; what had to hold was that nothing the experiment measures changes. Production keeps `gpt-6-luna` and every prompt. Shaping and review never reasoned under the old client (the forced call turned it off), so they now send effort `none` explicitly; live memory keeps `high`; the research scripts keep their old no-reasoning default so earlier runs stay comparable. Checked live on 2026-11-29, against the local database so no dream reached production from undeployed code: a dream on luna at `high` reasoned 2,413 tokens and logged $0.0064 (provider now `openrouter`); four predictions reasoned 130 to 602 tokens each, each with its cost row; shaping's configuration reasoned 0 tokens as before; Opus 5.5 answered in native schema mode with no tool and no tool choice ($0.002). The offline guard now covers `httpx2` too, which pydantic-ai's OpenAI-compatible providers use. This unblocks trying the dream on another model, and the agent BD-126's replay needs to read code at an old commit. - **Key references:** BD-125; BD-124 (where the forced call was found to disable reasoning); `backend/app/providers/llm.py`; `tests/test_llm.py`.
The memory's index is asked to be short, not cut at 100 words (2026-11-29)
- **Intent:** The dream was told "at most 100 words" for the index, and the code cut it at 100 words, mid-sentence: the first reasoning dream's index ended "…triggers tied to finished". Executors got less still, since the block fitted the index and the heuristic key list into the same 100 words. Now the prompt asks for a short index in a few complete sentences, with no number (a person's call). The code keeps a backstop at 250 words (`INDEX_MAX_WORDS`) that cuts back to the last complete sentence, and the block serves the whole index with the key list after it. - **Research thinking:** A hard word count in the prompt and the same count enforced by a blunt cut produced text a reader could see was broken, and it changed what executors read without anyone deciding it. The served block will be somewhat longer. That changes what the memory group receives, as the reasoning switch did; the kill rule is untouched. No replay was run: this is about legibility, not prediction, and the replay feeds the whole memory text to the predictor anyway. - **Key references:** the reasoning-dream version of build-doen's memory, 2026-11-29.
Memory dreams nightly or on demand, not every few calls (2026-11-29)
- **Intent:** Live memory dreamt in three cases: each night where an initiative completed, on a person's "Dream now", and after every five resolved calls. The last one is gone (a person's call). Answering a call now only stores the executor's note; retiring a heuristic still dreams. - **Research thinking:** A dream reads the whole record every time, so the five-call trigger never gave memory anything a nightly or on-demand dream would not; it only decided when. Its cost showed in the replay: the version that missed "should a confident heuristic let the executor settle a call itself?" was replaced two seconds after the person answered it, so the page's newest memory looked wiser for having just read the answer. With dreams tied to completions and to the person, each version is scored on a stretch of work rather than on whatever five calls fell between two dreams. Every trigger now waits for a running dream and then dreams, instead of skipping when one is busy; that wait existed already for completions and retirements. `EXECUTOR_MEMORY_DREAM_EVERY` is removed. The replay harness's own five-call cadence (`measure_memory_replay.DREAM_EVERY`) is a different thing and is unchanged. - **Key references:** BD-122 (the nightly dream and "Dream now"); the replay entry below.
Replaying the live prediction step, and live memory reasons at high (2026-11-29)
- **Intent:** The project page said live memory "predicted 7 of 10 of your calls since it was dreamt; without memory, 8 of 10". The person asked whether a classification model like Jev would do this prediction better, and asked for a replay so the prompt and the model can be judged separately. `app/replay_live_predictions.py` re-asks every live prediction (the same call, the same memory version, the same shuffled options) of any model and prompt. With `--later` it also scores every call resolved after a version was dreamt, which is still leakage-free. Jev answers each call as one Choice question with the memory as its `state`, so it is also scored on the probability it put on the person's answer. Only `gpt-6-luna` (the deployed `SHAPING_MODEL`) and Jev were compared; the person ruled out testing Claude models. - **Research thinking:** Measured against the Railway production database, which the MCP server points at, on build-doen. There are only 10 live predictions, all on build-doen, made by two memory versions. No heuristic was ever retired, so each stored version is exactly what the live step saw. Each condition was run 5 times. _The live instrument is noisy._ Asked the same question again, the live configuration repeats its recorded pick only 78–80% of the time. A single run of 10 calls cannot tell 7 from 8. _On the 10 live calls, memory makes luna worse._ Memory 0.62, no memory 0.86; per-call gap −0.24 [−0.48, −0.02]. Memory also makes the model less consistent (it repeats its own pick 0.82 of the time against 0.96). On 6 of the 7 calls where the arms differ, memory pulls the model away from an answer it gets by reading the question. Most often the heuristic `automate-routine-judgment-but-protect` pushes toward automating. On "should a confident heuristic let the executor settle a call itself?" memory was right 0 of 5 times, no memory 5 of 5. _Widened to 13 calls in 24 version-call pairs, with options reshuffled per run._ The call is the bootstrap unit, since one call is predicted by up to three versions. A version replaced before any call was resolved after it is skipped: `drm_fb7c25a9fc21` was overtaken a minute later by a near-duplicate and never predicted anything live. A first run that kept it (37 pairs) put luna's gap at −0.13; counting those calls twice inflated it. | predictor, prompt | memory | no memory | gap [95%] | better / worse | |---|---|---|---|---| | luna, live | 0.658 | 0.683 | −0.06 [−0.22, +0.05] | 2 / 3 | | luna, question-first | 0.692 | 0.717 | −0.08 [−0.27, +0.09] | 2 / 4 | | Jev, live | 0.550 | 0.683 | −0.16 [−0.35, −0.01] | 1 / 4 | | Jev, question-first | 0.625 | 0.675 | −0.10 [−0.28, +0.04] | 1 / 4 | Jev puts 0.49 probability on the person's answer with memory and 0.50 without (log loss 0.935 against 0.760). Jev is more consistent and shows no first-option bias, but it is less accurate than luna with memory and hurt more by it. So the answer to "would Jev predict better" is no. Its one real gain is the probability score, which carries more signal per call than right or wrong. That makes it a better scale, not a better predictor. _A prompt variant does not rescue the memory._ `research/prompts/live-memory-predict-question-first.txt` tells the model to read the question on its own first and to treat heuristics as tendencies that change an answer only when one speaks to this exact kind of situation. It raises both arms a little, but with memory the predictor is still no better than without on any configuration. It did not move the metric, so it is not adopted; the live prompt is unchanged. _What this does not settle._ 13 calls is small. The decisive outcome is still whether executors with memory match the person more often (the kill rule), and it has no calls in the memory group yet. The prediction step is a proxy for that outcome. But the proxy now points one way: the memory, read by either model under either prompt, never helps prediction, and on the 10 live calls it hurts. The suspect is what the dream writes, not the predictor or its prompt. Most of the pairs come from older versions; the current one (`drm_c3157085e3ca`) has been scored on 3 calls and already corrects the worst miss, so it needs calls resolved after 2026-11-29 07:47 before it can be judged. _Is the newer memory better, and why?_ All four stored versions were dreamt by the BD-118 code (none carries BD-122's support fields), so they differ only in how many calls they read. `app/replay_live_dreams.py` rebuilds the chain at the same three cutoffs with today's dream, from the record as it stood at each cutoff, in 3 independent chains: once with BD-122's signals (build-doen has 8 standing executor calls, 1 brief, no corrections) and once with the person's calls only. Every version is scored 5 times on each call resolved after it. | memories | memory | no memory | gap [95%] | |---|---|---|---| | stored (BD-118) | 0.658 | 0.700 | −0.08 [−0.26, +0.03] | | rebuilt, today's dream | 0.667 | 0.703 | −0.08 [−0.26, +0.04] | | rebuilt, calls only | 0.656 | 0.700 | −0.07 [−0.21, +0.05] | On the 3 calls every version predicted, the three stored versions score exactly 10 of 15 each, equal to no memory (31 of 45). The newest memory is not better; it only looks wiser because the dream ran two seconds after the person answered the question the older version got wrong, and it wrote that answer down as a trap. Today's dream at the last cutoff scores 35 of 45 on those calls against 28 of 45 for calls only, but on 3 calls that is noise. Neither today's dream nor its new signals change the result: no memory, however built, beats no memory yet. One calls-only chain produced an empty version, which the live dream would have refused to save. _Every live call has run without reasoning._ OpenRouter lists `medium` as luna's default effort, but `OpenAICompatibleLLM` forces the one function by name, and in that mode luna returns 0 reasoning tokens at any effort. With `tool_choice: "required"` it still has to call the single tool, and it reasons first. The client now takes an optional `reasoning_effort` that does that; unset, requests are unchanged. The prediction step and the dream have so far both run with no reasoning. Compared per call with the no-reasoning baseline on the same calls (5 runs each; Jev dropped, the person's call): | effort, prompt | with memory | without memory | gap [95%] | |---|---|---|---| | none (live), live prompt | 0.650 | 0.675 | −0.06 [−0.21, +0.04] | | low, live prompt | 0.642 | 0.683 | −0.08 [−0.23, +0.04] | | medium, live prompt | 0.675 | 0.700 | −0.05 [−0.20, +0.06] | | high, live prompt | 0.725 | 0.708 | −0.02 [−0.23, +0.14] | | xhigh, live prompt | 0.708 | 0.700 | −0.04 [−0.24, +0.13] | | none, question-first | 0.683 | 0.733 | −0.09 [−0.27, +0.05] | | high, question-first | 0.700 | 0.708 | −0.05 [−0.22, +0.09] | `high` with the live prompt is the only clear gain over no reasoning: +0.07 with memory [+0.01, +0.15] and +0.03 without [+0.01, +0.07], better on 4 calls and worse on none (sign p 0.125). It helps prediction in general and helps the memory arm a little more, so the gap closes to about zero, but memory still does not beat no memory. `xhigh` (a separate run) buys nothing over `high`: against it, −0.02 with memory, worse on 2 calls and better on none. Reasoning gives the question-first prompt nothing, and `low` hurts it. _A dream that reasons._ The memory was written without reasoning too. So the chain was rebuilt again, 3 chains of today's dream at `high` and 3 without reasoning as the control, with every prediction (the chain's own and the scoring) at `high`: | memories, prediction at high | memory | no memory | gap [95%] | |---|---|---|---| | stored (BD-118, no reasoning) | 0.733 | 0.708 | −0.02 [−0.23, +0.17] | | rebuilt, dream without reasoning | 0.708 | 0.708 | −0.03 [−0.22, +0.15] | | rebuilt, dream at `high` | 0.744 | 0.719 | −0.01 [−0.22, +0.16] | Per call, the reasoning dream's memories beat the plain dream's by +0.03 [−0.03, +0.10] (better on 5, worse on 3) and the stored ones by +0.02 [−0.07, +0.11]. All are within noise. With prediction at `high`, memory now helps on the 8 calls after the 2026-11-28 dream (stored 0.83 against 0.63; the reasoning dream 0.77 against 0.67) and still hurts on the earlier ones, so over all 13 calls it comes out level. That is the first window where memory is ahead. _Where this leaves the step._ Reasoning at `high` for prediction is the one measured gain, and it turns memory from a loss into a wash. A reasoning dream may add a little more, but 13 calls cannot show it. _Switched on (a person's call, 2026-11-29)._ The dream and its predictions now reason at `high` in production (`EXECUTOR_MEMORY_REASONING_EFFORT`, through `get_live_memory_llm`; `none` restores the old call). Shaping and every other model call are unchanged. This changes the memory the executors in the memory group receive, mid-experiment: dreams from here on write what the kill rule then scores. The kill rule itself is untouched, and versions dreamt after the deploy are the ones written with reasoning. The prediction score on the project page mixes predictions made before and after this change. - **Key references:** `backend/research/live-replays/2026-11-29-live-predict-luna.json`, `backend/research/live-replays/2026-11-29-live-predict-prompt-variant.json`, `backend/research/live-replays/2026-11-29-live-dreams-rebuilt.json`, `backend/research/live-replays/2026-11-29-live-predict-reasoning.json`, `backend/research/live-replays/2026-11-29-live-predict-reasoning-xhigh.json`, `backend/research/live-replays/2026-11-29-live-dreams-rebuilt-high.json`; `app/replay_live_dreams.py`; `app/replay_live_predictions.py`; BD-118 (live memory and its kill rule).
The executor's instructions come from the server, not an installed file (2026-11-29)
- **Intent:** `setup_project` wrote an `agents.md` into a person's project with the operating loop, the rules and a hand-kept table of every tool. It went stale the moment the surface changed, and the person had to re-run setup to catch up. The loop and rules now travel as the MCP server's `instructions` (`prompts/executor-instructions.txt`), which the client places in the executor's context on every connect; tools describe themselves through `tools/list`. `setup_project` is removed (19 tools), and the project page's "Connect an executor" card now shows the `claude mcp add` command, since connecting is the whole setup. - **Research thinking:** A person's call (2026-11-29): no fallback for MCP clients that ignore server instructions, and no migration for projects that already have the old `agents.md`. The tool table duplicated docstrings the client already receives, and it was the reason `tests/mcp_surface.json` existed; both are gone. Clients truncate long instructions (Claude Code cuts other servers' visibly), so the text is held under 2000 characters (1677 today) by test. The rules themselves are unchanged in substance, including recording volunteered calls, so this is plumbing, not a memory experiment: the replay has nothing to score. What it changes is that every executor now reads the current rules rather than whatever copy was installed. - **Key references:** BD-9 (the original onboarding); the MCP `initialize` result's `instructions` field.
A call the person volunteers is recorded unasked (2026-11-28)
- **Intent:** Executors record a person's call only when they escalated a question first. A rule the person gave unprompted, mid-work, became a decision only if the person also asked for it: during BD-120 the person set "the onboarding travels with the surface" and then had to ask for it to be stored. The instructions (onboarding `agents.md`, this repo's `agents.md`, the `resolve_decision` description, the operating loop in `docs/spec-contract.md`) now tell the executor to store a volunteered rule, constraint or correction at once with `resolve_decision`, and tell the person. - **Research thinking:** This is the first gap, capture before retrieval, at its cheapest point. Unprompted calls are arguably the most informative about how a person decides, since nobody framed the question for them, and they were the ones most likely to be lost. It adds no machinery: `resolve_decision` already stores a decision with no escalation behind it. The replay cannot score this change before it happens. The measure is whether replay cases grow with human-resolved decisions that have no escalation behind them (`decision_id` not from `escalate_and_resolve`), and whether those cases are harder for the stateless arm than the escalated ones. If, over the next few initiatives, none appear, or they read as noise, revert. - **Follow-up, same day: a trigger at handoff.** An instruction alone still waits for the executor to remember. `submit_evidence` and `record_work` now return `unrecorded_calls_check`: the initiative's recorded calls and a prompt to propose any other call the person made. The executor proposes and the person agrees before anything is stored, because only the executor saw the conversation. Same measure and revert rule as above. - **Key references:** BD-120 (where the gap showed); BD-121 (the test-suite guard for the onboarding rule itself).
Live memory learns from the first initiative (BD-122, 2026-11-29)
- **Intent:** Live memory (BD-118) dreams only after five calls by a person and learns only from
those calls. People make few, so two of three projects never had a live dream: in the ten weeks
to 2026-11-28 people resolved 49 calls, 10 of them in the last six weeks. "The components of
agent memory" learns from every outcome as it comes (predict, see the answer, keep or correct a
rule). BD-122 dreams when an initiative completes as well, and widens what a dream reads to
everything a person's work tells the executor: where they reworded, rejected or removed what it
drafted, kept what it proposed to remove, sent evidence back, chose against its recommendation
or framed the work in their own brief; and which of its own calls they left standing on a
completed initiative, or reversed. Rewordings, rejections and sent-back feedback were thrown
away until now (BD-109 found the same), so they are kept in a new append-only table.
- **Hypothesis:** memory that also learns from corrections and standing executor calls predicts
a person's calls better than the current memory, which learns from person calls only.
- **Metric and baseline, stated before serving:** the decision replay
(`app/measure_memory_replay.py`) on the production instance, 53 decisions people made. The
current memory's nearest arm is `promoted` (an index, notes opened on demand, a dream every five
calls, plus search). Its baseline in the 2026-11-27 run: +0.069 over stateless, 95% interval
−0.013 to +0.164, not distinguishable. The new arm is `promoted` whose dreams also read the
standing executor calls, removed draft items and briefs of initiatives completed before each
question. It is compared with `promoted` directly, per decision, with the paired interval. The
stored corrections start empty, so the replay can test only the signals that already existed;
the rest is measured live. Live, per heuristic: its track record on later person calls. The
experiment-wide backstop is BD-118's kill rule, unchanged. Only a person's calls are ever scored.
- **Choices made by the person (2026-11-28/29):** a call counts as standing only on an initiative
that reached complete and that no person retired; confidence never changes when an executor
escalates; corrections live outside the spec; and, against the recommendation, a heuristic may
rest on standing executor calls alone, because silence on a reviewed, completed initiative is
agreement and requiring an explicit signal would keep memory empty where the person rarely
intervenes. A reversal by a person counts against a heuristic. Later the same day the person
asked for executor calls left standing to be scored too, out of confidence in the executor. They
get a second score of their own, shown apart: the score above, the heuristics' track records and
the kill rule still read only the person's calls, since scoring the executor on its own calls
with a memory built from them would measure it predicting itself. Each standing call is
predicted once, only if it became standing after the memory predicting it was dreamt.
- **Result (replay, 2026-11-29):** on production, `gpt-6-luna`, three seeds, 59 decisions people
made (build-doen 28, resume-builder 31). The signals available to the past were few: build-doen
16 (8 standing executor calls, 7 removed draft items, 1 brief), resume-builder 1 standing call,
no reversals; stored corrections start empty. `promoted` beat stateless: +0.079, 95% interval
+0.011 to +0.153, better on 12 decisions and worse on 5. `signals` could not be told from
stateless (+0.045, −0.028 to +0.124, 9 better and 8 worse) and came out below `promoted`:
−0.034, 95% interval −0.079 to +0.017, better on 5 decisions and worse on 12 (sign p 0.14), not
distinguishable. So the replay does not support the hypothesis: the existing signals did not help
`promoted` predict the person, and the trend is against them. What the replay cannot test is the
larger part of the change: corrections were never kept before, so rewordings, rejections, kept
items and sent-back feedback reach a dream only from now on, and the completion dream only acts
live. Read with BD-116 ("retrieving the decisions beat any note distilled from them"), the likely
reading is that more material in the dream dilutes it unless the material is about the person's
own choices. By the project's rule a change that does not move the metric is reverted; whether
to keep it live as an experiment on the new signals, under the existing kill rule, is the
person's call. Run: `backend/research/replay-runs/2026-11-29-bd122-signals.json`.
_Decision (the person, 2026-11-29, against the recommendation to narrow the dream to the
person's calls and corrections):_ keep it all live as an experiment. The replay gap is not
distinguishable from zero, rests on 16 past signals, and could not see corrections at all. Live,
three measures decide it: each heuristic's track record on the person's calls, the separate
score on standing executor calls, and BD-118's kill rule, unchanged. This is an explicit
exception to "a change that does not move the metric is reverted"; the next live read of the
person-call score against the replay baseline above decides whether it stays.
_When and how much (the person, 2026-11-29)._ Their goals: memory built from day 1, learned from
executor and person alike with more weight on the person, and executor signals collected because
they trust the executor. So: memory no longer dreams the moment an initiative completes; it dreams
each night for every project where an initiative completed since the last dream (a Railway cron
service, `app/nightly_dream.py`), when a person presses "Dream now", and after every five calls.
Support is weighted 2 per call or correction of the person's, 1 per executor call left standing,
−2 per reversal; confidence follows the weight, and the dream is told the person's own acts are
the strongest evidence. "From day 1" holds for collecting; memory itself starts at the first
night after a completion, the first "Dream now", or five calls, whichever comes first.
- **Key references:** "The components of agent memory" (Anthropic, 2026-11-06); BD-118 (live
memory); BD-109 (rejections and verdict history were not stored); BD-116 (retrieving decisions
beat distilled notes; dreaming helps when the record disproves a note).The replay says how sure it is, and promptfoo is gone (2026-11-28)
- **Intent:** Read the research metric against its own noise. With about 50 decisions, one arm's
accuracy has a standard error near 7 points, yet the replay reported only means and paired
counts, so "a change that does not move the metric is reverted" rested on reading noise by eye.
Every run now ends with `compare`: each arm's gap to stateless per decision, a paired 95%
bootstrap interval over decisions and an exact sign test. The decision is the unit, not the
seed, because seeds replay the same questions. An arm is `ahead` only when its interval
excludes zero. `--compare RUN.json` reports a saved run the same way, offline.
- **Research thinking:** _What it says about the record._ Re-reading the saved runs changes one
conclusion. The 2026-11-26 decision run (54 cases), read until now as "search beats stateless",
separates **no** arm from stateless: search +0.068, 95% interval −0.006 to +0.148, better on 10
decisions and worse on 6 (sign p 0.45). The 2026-11-27 run that scores only a person's calls
(53 cases) is the first decision run where search is ahead: +0.094, interval +0.025 to +0.170,
13 better and 3 worse (sign p 0.02). On the independent subset it is barely ahead (+0.007 lower
bound, sign p 0.06). Every other arm, every flat or dreamt memory among them, cannot be told
from stateless on decisions. The build-doen run that adds initiatives (130 cases) separates
more: promoted +0.171 (+0.095 to +0.246), wiki +0.159, search +0.128, structured and dream
+0.067; on its independent decisions only search stays ahead. So the claim the record supports
is narrow: retrieval of earlier calls helps predict a person, and a written memory has not yet
shown it helps on decisions beyond what retrieval does.
_Still open._ The smallest gap that counts as a result is not declared. The interval only says
whether a gap is real, not whether it is worth its cost; that threshold is a person's call and
should be set before the next run, not after.
_Promptfoo removed._ `eval/` held 11 cases in five suites. Two suites pointed at prompt files
renamed months ago (`classification.txt`, `verification-synthesis.txt`) and loaded nothing; both
duplicated pytest gold-set evals. The other three had one case each, and every suite appended a
"STRICT RULES" block, so none tested the prompt production sends. The README told people to run
`eval/compile_prompts.py`, which does not exist. A person decided to delete it rather than repair
it: shaping, research shaping and the learn draft are now plainly unevaluated instead of looking
covered. The orphaned `proposal_verification_gold.jsonl` (its eval went with the Advisor) went
too, and the docs that described both were corrected.
- **Key references:** `app/measure_memory_replay.py` (`compare`, `--compare`),
`tests/test_measure_memory_replay.py`, `backend/research/replay-runs/`, `README.md` ("Prompt
evaluation").The replay scores only a person's calls (2026-11-27)
- **Intent:** The metric predicts how a person decides, but its decision query took every resolved decision, including the calls an executor settled itself: within discretion, or kept by `record_work` (`resolver_type` "agent"). The replay now scores only decisions a person made (`resolver_type` human, or unset on older rows), the same rule live memory and the initiative page already used. - **Research thinking:** _How much it mattered._ On production (Railway, which the MCP server points at), the 2026-11-26 runs scored 8 executor calls among 54 decisions (15%), all in resume-builder. By today the same query returned 141 cases, 88 of them executor calls (62%): every voye decision (52) comes from recorded work, and build-doen's recorded work added 19. The next run would have mostly measured the executor predicting itself. _What it changed._ Re-run on production with the filter: `gpt-6-luna`, every arm, 3 seeds, the cached labels. 53 cases (build-doen 22, resume-builder 31). The set changed twice since 11-26: the 8 executor calls left, and 7 build-doen decisions resolved since then came in. Mean accuracy over the 3 seeds, all cases (11-26 baseline in brackets): stateless 0.585 (0.617), search 0.679 (0.685), promoted 0.654 (0.673), structured 0.654 (0.642), wiki 0.648 (0.654), memory 0.629 (0.617), dream 0.623 (0.617), transfer 0.604 (0.642). Paired against stateless over the 3 seeds: search +22/−7, promoted +21/−10, wiki +18/−8, structured +18/−7, memory +18/−11, dream +17/−11. _Reading it._ The executor calls were easier for every arm: on those 8 cases in the 11-26 run, stateless scored 0.67 against 0.61 on the rest, and search 0.75 against 0.67. They inflated every arm by about the same amount, so the ranking did not move. On the 46 cases both runs share, every arm moved by 1 to 2 points, which is run-to-run noise. The 7 new build-doen cases are where memory pulled ahead (search, memory, structured and wiki 0.81, stateless 0.52), but 7 cases are too few to claim anything. The conclusion of the 11-26 runs stands: retrieval (search, and promoted's search half) beats stateless, and a flat memory alone barely does. The fix matters for what comes next, not for what was concluded. _Recorded work, separately._ This came out of asking what `record_work` is worth. It is unmeasured (its 2026-10-12 entry says so), it holds no human reasoning, and only `get_context` still reads it. A person decided (2026-11-27) to add no commit check to it: the server has no repository to check against, and wrong learnings are left to the memory audit, which already covers recorded work's memory rows. - **Key references:** `app/measure_memory_replay.py` (`_DECISIONS`), `tests/test_measure_memory_replay.py::test_only_a_persons_calls_are_scored`, `backend/research/replay-runs/2026-11-27-human-only.json`, `store/live_memory.py` (the same rule).
People can verify a criterion themselves again (2026-11-27)
- **Intent:** BD-113 made evidence executor-only, so a criterion no executor can evidence had no way to close: a walkthrough of a page, or a judgment only the person can make. BD-118 had four of them. A person can now verify a confirmed criterion from the initiative page by writing what they checked. That text becomes the evidence, marked "Checked by a person", and the criterion is approved in the same call. This is a person's call that partly reverses BD-113. - **Research thinking:** BD-113 narrowed writing to one path so there was one thing to measure. This exception does not touch what the memory research reads: decisions and notes. It changes only who can close a criterion, and the approval is recorded as the person's (`approved_by = human`), never the executor's. Invariant 9 stands, because an executor still cannot approve its own work. Evidence and approval are one call, so a criterion never sits half-done as "evidence submitted" when a person meant to approve it. - **Key references:** `routers/specs.py::verify_criterion_yourself`, `tests/test_specs.py::test_a_person_can_verify_a_criterion_themselves`, agents.md invariant 10.
Live executor memory, served and measured in one loop (BD-118, built 2026-11-27)
- **Intent:** Run executor memory live instead of only in replay, and show the person everything
executors are told. An executor writes a note when it stores a person's answer. A server-side
dream turns the notes and the decision record into at most 10 heuristics (600 words), each with
its rule, supporting decisions, traps and track record. A block of about 100 words is served
next to precedent. This reverses, for this initiative only, the rule against building memory
machinery ahead of the evidence. It was a person's call, recorded as a decision on BD-118.
- **Hypothesis:** Executors that receive a dreamt, capped memory built from in-the-moment notes
will match the person's choices more often than executors that receive none.
- **Sources:** Three findings from "The components of agent memory" shape the design. (1) A note
that closes the loop states the rule and how it is known to be true, and is confirmed or
corrected once the answer is graded (Opus 5 and Sonnet 5 on CL-Bench). Doen's loop has the same
shape: the executor recommends, the person decides, and the outcome grades the note. (2) Telling
Opus 5 to "record only failures" cut its gain from memory by 0.23 (Fig. 5). So the note field
and the prompts say what memory is for, not how to write it. (3) Search plus a wiki reached 61%,
against 53% for search alone and 48% for the wiki alone (Fig. 10), and a representation that
grows unchecked abstracts nothing (Fig. 12). So the memory sits next to precedent, never
replacing it, and stays capped. Two findings from this log also apply. BD-109: the replicating
arms forgot the base rate, so the memory keeps outcome counts. BD-116: dreaming over a vague
file produced another vague file. Executor notes are the untested remedy, since only the
executor saw the conversation in which the person decided.
- **Metric and baseline:** There are two outcomes, both declared before serving. First, before
each dream, the current memory predicts every call resolved since the previous dream. It is
scored against the person's choice, beside a prediction of the same call made without memory.
Second, how often the executor's recommendation matches the person's choice, compared between
initiatives that receive memory and initiatives that do not. Assignment is random, once per
initiative, at even odds. Kill rule: after 40 resolved calls that carry a recommendation, if the
memory group does not match more often than the holdout, serving stops. Capture and dreaming
continue. The replay baseline is unchanged: promoted and wiki scored about 20 points above no
memory on "built or dropped" and still below always answering "built" (0.785).
- **Research thinking:** The flywheel's fatal flaw was not that it served memory. It could not
tell whether its memory was right: citations were written by the thing being evaluated. Here
every heuristic carries a track record scored against later choices, and there is a holdout.
One risk is that a recommendation shaped by memory nudges the person, so later replays over
these decisions would partly measure memory agreeing with itself. The holdout is what keeps the
second outcome honest. Prediction is still scored with the recommendation withheld. A second
risk is that the corpus stays too small. At about 40 calls only a large effect will show, and
the kill rule is a stop for a null result, not proof of no effect. Expected cost: one dream per
few resolutions, each reading the full record, so it grows with the square of the history. Each
dream has a cost ceiling.
_As built._ The note is an optional `note` on `resolve_decision`, stored in `decision_notes` with
whether the recommendation matched. A dream starts in the background when a stored answer brings
the project to five person calls since the last dream. A Postgres advisory lock keeps it to one
at a time per project. Each dream first scores the current memory on the new calls (options
shuffled per call, the same way for the memory and the no-memory session), then counts track
records from those predictions, then rebuilds. The model cites record entries as `[D3]` or `[I2]`,
never by id, and code enforces what the prompt only states: caps, evidence that exists in the
record, a retired heuristic staying out without newer evidence, and no ids in the text. The
group is assigned at random on the first `get_spec`, and every read writes a `memory_servings`
row with the exact text. The kill rule is a constant in `services/live_memory.py`, not a setting,
so it cannot be tuned after the fact. It is evaluated on the first 40 qualifying calls, so the
verdict is fixed once they are in.
_Two things the tests caught._ (1) The call ceiling (60 per dream) could be used up entirely by
predictions on a backlog, leaving no call for the rebuild: 41 new calls make 82 prediction calls.
Predictions now keep one call in reserve. Calls past the ceiling are recorded as failed and never
scored. (2) Which memory version was served before a call was decided by comparing Postgres'
clock (the serving) with Python's (the decision payload's timestamp), which flickered. Both now
come from Postgres.
_What review caught._ A dream stamped its version at insert time, so calls resolved while it ran
were never scored and their notes never read. It now reads the record up to one snapshot and
stamps the version with it. Live dreams leaked into the replay panel, which reads `note.body`
and would have shown empty notes. Retiring a heuristic left the free-text index served, though
it may say the same thing in other words. The index is now withheld until the next dream, which
retiring starts. A key a dream legitimately brought back could not be retired twice. And a
holdout executor could learn its group from `get_memory_heuristic`'s error message; it now
gets the same answer as for an unknown key.
_What it cannot tell yet._ Nothing has been served. The MCP server points at production
(`backend-production-9175.up.railway.app`), and the code is not deployed there, so there are no
live numbers. Prediction scoring starts with the second dream: the first builds from history
with nothing to score. An initiative in the memory group that is read before the first dream
counts toward the agreement outcome without having received anything. That is intention to
treat, and it biases toward no effect.
- **Result:** Pending. Built and tested offline (8 tests in `tests/test_live_memory.py`), not yet
deployed. The first live numbers go here, from the instance the MCP server points at.
- **Key references:** BD-118 spec and its rule-change decision; "The components of agent memory"
(Figs. 3, 5, 10, 12, 13); `app/measure_memory_replay.py` (`Promoted`, `MAX_NOTES`,
`NOTE_WORDS`); `backend/app/services/live_memory.py`, `backend/migrations/0072_live_executor_memory.sql`,
`prompts/live-memory-{predict,dream}.txt`; `docs/design-principles.md` ("Refined 2026-11-27").People start initiatives with a brief, and shape drafts (BD-117, 2026-11-27)
- **Intent:** A product manager can start an initiative from the project page and fix a draft
themselves. Starting one stores the person's brief (description, Build or Research, an optional
title,
optional lines of constraints, agent latitude and criteria) beside an empty spec. The initiative
is `pre_draft` until an executor drafts the spec from the brief over MCP. While a spec is a
draft, the person can add, reword and delete items on the initiative page. This is a person's
call that reverses part of the morning's executor-only rule (decision recorded on BD-117).
- **Research thinking:** The question was where a person's writing can enter without blurring
attribution, since the replay reads who decided what. Two placements keep it clean. The brief is
never spec content: the executor's draft stays its own work product, and the brief is a new,
unchanged record of how the person framed the work. Comparing brief and draft is a possible
measure of how well an executor reads a person, before any call is made: which of their lines
survive, and which get sharpened or dropped. It is not measured yet. Draft edits are marked
`human` and confirmed, and executor wording is always `ai_proposed`. A bug that let
`reshape_spec` record executor wording as `human` in draft was fixed just before this (commit
`008b427d`). Items written before that fix may be misattributed, and the replay does not read
item provenance today. No replay metric moves: decisions are captured as before. What to watch:
human-resolved decisions per new initiative (as in the entry below), and how many initiatives
start from a brief versus `create_spec`. A finding along the way: the guard test
`test_no_spec_writes_over_http` had been vacuous. FastAPI now nests included routers, so walking
`app.routes` saw one route and the check could not fail. It now reads the OpenAPI document,
asserts it lists more than 30 routes, and checks that no write on an existing initiative takes an
intent or a title.
- **Key references:** `backend/migrations/0071_initiative_briefs.sql`, `POST
/projects/{id}/initiatives`, `/specs/{id}/draft/items` (`authoring.person_*`), `derive_state`'s
`awaiting_draft`, `prompts/executor-draft-brief.txt`, `docs/design-principles.md` ("Reversed in
part the same day"), `agents.md` invariant 10.The page stops writing evidence and decisions; one type system (2026-11-27)
- **Intent:** The initiative page is where a person judges, not where work is written. Submitting
evidence and recording a decision move entirely to the executor over MCP, the way spec content
already did. On the page a person confirms or rejects proposals, retires items, judges
evidence, and rejects a decision from precedent. Alongside: one stylesheet in place of four
stacked override layers, one sans family (mono only for ids, banner labels and figures), five
type sizes, and every group of the document (spec groups, decisions, what was learned) as one
folding section. A section opens by default when something in it waits on the person or when
the initiative's stage is about it.
- **Research thinking:** This narrows a capture path, and capture is the first open gap. The "Record
a decision" dialog let a person log a call with its rejected options directly. That route now
goes through the executor (`escalate_and_resolve` → `resolve_decision`), which records the call
only when the executor asks the question. The trade-off: a call a person makes outside a
conversation with the executor no longer has a place on the page. `POST /initiatives/{id}/decisions`
stays in the API. No replay metric moves, since `measure_memory_replay.py` reads resolved decisions
and none were deleted. `raised_by = 'human'` only ever came from that endpoint, so it now falls to
zero by construction and says nothing. Instead, watch the number of human-resolved decisions per
new initiative. If it falls, the capture gap has widened and the page needs a way back in.
"Edit" on items and decisions was asked for and deliberately not built: it would be an HTTP
write path for spec content (invariant 10), and decisions are append-only (invariant 3).
- **Key references:** `web/pages/[projectId]/[initiativeId]/view.js` and `page.js`,
`web/shared/markdown.js` (inline bold/italic/code in executor-written item text),
`web/pages/style.css`, `agents.md` frontier gap 1 and invariant 10.Reframe the interface as a research instrument (2026-11-27)
- **Intent:** Replace the warm paper, decorative motif and heavy editorial styling with a white, calm research interface: clean hierarchy, thin rules, restrained blue for interactive states, and little ornament. The reference is Voye's [efficiency-per-token research page](https://www.voye.dev/research/efficiency-per-token). - **Research thinking:** Hypothesis — a quiet white canvas and stronger typographic hierarchy make Doen's evidence and decision records easier to scan than the prior paper-and-ink treatment. Baseline: the existing home, project, initiative and logs pages; qualitative visual check against the supplied reference. Design check: one visual language across all four page types, no large decorative background, and no browser errors after the CSS and shell changes. Result: the large SVG/grain background is gone; pages use white, neutral text, thin rules and a restrained blue action color. `make check` passes all 5 pages and the production build succeeds. The memory replay metric is unchanged because capture, retrieval and application behavior did not change. - **Usability pass (same day):** orientation and flow, not new behavior. Breadcrumbs on every page; a sticky "on this page" bar with counts on the spec; project initiatives searchable by title or id, with closed work folded until opened or searched; the project intention read as text until edited; Ctrl or ⌘ + Enter sends in the conversation; log figures shown as people read them. It also fixed defects the earlier narrow-width screenshots hid: the project count rendered as `[object Object]`, the spec's project crumb and log link were empty (the id lives on the initiative record, not the spec), and the in-page `#` links had no target. The tests drive a real browser at 1280 and 390 px against the live instance; they are not part of the offline suite. - **Key references:** `web/pages/style.css`, `web/shared/shell-view.js`, the linked Voye research page. Validate the design with people using the interface; visual polish alone does not establish improved research comprehension.
The web becomes a rendering shell over the API (2026-11-27)
- **Intent:** Rebuild the web UI on `@ehtb/agent-ui`, a framework whose pages are a JSON spec with named actions, so the presentation layer is something an executor can read, check and maintain. Keep every product call in the FastAPI backend: the new web process renders pages and forwards `/api/*`; it stores no data, holds no sessions and makes no decisions of its own. - **Research thinking:** The replay metric asks whether an executor decides better with memory, and nothing in this change touches what is captured or retrieved. The risk it removes is a different one: a hand-written Next.js app is a second, unmeasured place where product behavior can drift from the spec (labels, defaults, client-side state). Moving the rail's conversation and verdicts into browser storage keeps the backend stateless about messages, as before; criteria, decisions and memory still live only in Postgres. The move is therefore an experiment about maintainability, not memory: hypothesis — page code that is plain data and named actions is smaller and less prone to unverified identifiers than a typed component tree. Baseline: the Next.js tree removed in this change. No memory machinery was added, and the replay harness is unchanged. - **Key references:** `web/server.mjs` (render and proxy), `web/server-fetch.mjs` (the one data seam), `web/build.config.mjs` (budgets and render timeout), `web/pages/` (the pages), `web/shared/` (shell, builders, storage and poll plugins).
One author: the Advisor and chat removed, specs written only over MCP (2026-11-27)
- **Intent:** Make the executor the only author of specs. Every initiative and every change to a
spec now comes over MCP (`create_spec`, `reshape_spec`, `propose_spec_change`,
`submit_research_findings`). The app keeps the person's judgments: confirming, rejecting,
keeping or retiring what an executor proposed, verdicts on evidence, recorded decisions, the
retrospective, archive and the state escape hatches. A human decision of the project owner.
- **Research thinking:**
_Why, for this phase._ The research measures what an executor learns about how a person decides.
With a second author in the app (the Advisor, which drafted, reworded and added items in a chat),
a spec was a mix of the executor's work and chat turns the backend could not read, because chats
were browser-local. The person's calls stay fully captured: they are the confirmations,
rejections, verdicts and decisions the replay measures. Only the second author goes.
_What was removed._ The initiative and project Advisor (services, 18 prompts, 3 promptfoo suites,
the per-turn LLM factory and its model setting), the routes that wrote spec content outside MCP
(create an initiative, create from a description, put a spec, add or edit an item, title and
intent, shape, reassess, retry a draft, set the type, set the findings) and the UI for all of it:
the conversation rails, the new-initiative dialog, inline add and edit, the title and intent
dialog, findings editing, reassess and retry. Reassess went with its service and store query,
since only the UI reached it. The drafting, classification and authoring services stay: MCP
calls them.
_How the suite keeps its coverage._ Tests still arrange specs over HTTP, through a router mounted
on the test client's app only (`tests/setup_routes.py`) that calls the same store and authoring
functions MCP reaches. `test_no_spec_writes_over_http` checks that the production app exposes
none of those routes and nothing with "advisor" in its path. 398 tests pass; one fails only where
a local `.env` turns the auto-confirm gate on, which that test reloads from.
_Cost of the change._ A person can no longer fix a typo in a spec themselves: they ask the
executor. That is the intended trade: one write path to measure and trust, and the person's
effort goes into judging, which is where the replay found their signal.
- **Key references:** `docs/design-principles.md` ("Specs are written by executors, and judged by
people"; the Advisor under "Deliberately rejected"), `docs/spec-contract.md` (governing
principle), `agents.md` invariant 10, `backend/tests/setup_routes.py`.Memory and dreaming in the app, and the record as a report (2026-11-27)
- **Intent:** Make the way this research thinks about memory visible where people work, not only
in a log: the executor's memory shown as what it is (a prediction of how a person decides, dreamt
from the record, with how often it was right), and every run, prompt and working thread kept and
readable. Also, the project's model moves to `openai/gpt-6-luna`, the model every replay used.
- **Research thinking:**
_What the app shows follows what replicated._ Two runs agreed on one thing: a memory that dreaming
keeps as a short index with notes (or linked pages), paired with search, predicts people's calls
about 20 points better than no memory. So the project page's Memory tab now opens with "How the
executor thinks you decide": the newest such memory, its index in full and its notes, then every
earlier dream with its date, source and accuracy against no memory. The index leads because the
article's injected layer is the one every session reads; the notes sit below because they are
opened on demand. When several arms share a dream time, the promoted memory leads; the flat file,
which did not replicate, is history, not the current belief.
_Memory as a prediction you can check._ Each decision on an initiative page now says how often
the executor's memory predicted it across replays, beside a session with no memory, and the
decisions tab does the same for whether the initiative would be built. This is the article's
framing ("memory is a prediction about what the future will need") turned into something a
person can audit call by call. It also shows the base-rate failure from the previous entry in
place: on initiatives that were built, the memory often predicted "dropped".
_Storage._ Two append-only tables (migration 0070): `memory_dreams` (every dreamt state, never
overwritten) and `memory_predictions` (per run, arm, seed and call). Postgres stays the only
source of truth; the replay files are the input, loaded by `app/import_replay_run.py`, and the
harness now records every dream pass (`dream_history`), so later runs show the stages a memory
went through, not only its final state. Runs before this entry have final states only.
_The record as a report._ `/research` is laid out like a research article (after voye.dev's
research pages): summary, a bar figure of the newest run against no memory and the floor, method
with every arm and the exact prompts, limitations, runs, the log (one phase per page, since the
whole log exceeds a page's state budget), the working threads turn by turn, and the data table.
The threads are exported from the Claude Code transcript with every prompt, response and tool
call; credentials, keys and email addresses are redacted, and model reasoning is left out.
- **Key references:** `backend/migrations/0070_executor_memory.sql`, `backend/app/import_replay_run.py`,
`backend/app/routers/research.py`, `backend/research/`, `web/pages/research/`, the project and
initiative pages; "The components of agent memory" (Figs. 1, 13).Build-doen's own history as a second benchmark: what gets built (2026-11-27)
- **Intent:** Get past the 54-question ceiling with data from the live build-doen project. Three sources were checked and rejected: the 1,916 AI-proposed spec items a person confirmed (no rejection was ever stored, so there is nothing to tell a yes from), criterion verdicts (no history of requested changes survives), and learn-record approvals (174 of 175 were automatic). Two sources were used. All 24 escalations, with the 9 answered in free text mapped to an option by a judge (8 mapped, 1 matched none). And every resolved initiative as "built or dropped?": 107 questions, 83 built and 24 archived first. The question shows only the title and what the initiative set out to do. The outcome (what it delivered, or the archive reason) is feedback after the prediction. Everything is replayed in resolution order, so memory learns from both kinds at once. - **Research thinking:** _Results_ (`openai/gpt-6-luna`, seeds 0 to 2, 130 questions, production database, read-only): | arm | escalations (23), mean | built or dropped (107), mean | right / wrong against stateless (built or dropped) | p | |---|---|---|---|---| | floor | chance 0.48 | always "built" **0.785** | | | | stateless | 0.580 | 0.405 | | | | search | 0.594 | 0.498 | 71 / 41 | 0.006 | | memory | 0.623 | 0.446 | 68 / 55 | 0.28 | | structured | 0.638 | 0.477 | 76 / 53 | 0.052 | | dream | 0.594 | 0.529 | 70 / 30 | 0.0001 | | promoted | 0.609 | 0.642 | 108 / 32 | < 0.0001 | | wiki | 0.580 | **0.651** | 115 / 36 | < 0.0001 | _The first significant memory effect, and it belongs to the maintained arms (run 1; see the replicate below, which narrows it)._ On what gets built, the arms that dreaming maintains (`dream`, `promoted`, `wiki`) beat stateless with p at or below 0.0001 on three seeds. The arms written only in-session (`memory`, `structured`) do not. This is the article's claim in Doen's data: in-the-moment notes are not enough, and an offline pass over the record is what turns many outcomes into something a later session can use. The two-tier and wiki arms, which also keep search, gain the most (+24 points). _And it still loses to a constant._ Every arm stays below always answering "built" (0.785). Without memory the model predicts "dropped" for most proposals (0.405), and no memory corrects that fully. The notes hold reasons for what was dropped, which are vivid. They do not hold the base rate, which is dull and decisive: four in five proposals here get built. That is a gap the article does not discuss, and it is testable: memory that keeps counts beside its rules. _On escalations nothing separates_ (23 questions; the best paired split is 13 / 9). A second run of seed 0 with the same settings put search at 0.74 where this run had 0.61. The model is not deterministic at temperature 0, and on 23 items one run swings by 10 points or more. The escalation numbers here are noise. The 54-question result from the day before is the better estimate, and it was not significant either. _What the structured memory learned is the abstract kind._ Its final file opens with "Prioritize work by its fit to the live product frontier and ability to close an end-to-end user gap; boundedness or apparent scope alone does not predict whether work ships", with supporting cases, a named contradiction (a crisp structural fix that was still dropped) and a trap. The free-form file, by contrast, restates the project's own docs. _A replicate, same settings, changes one conclusion._ Built or dropped, run 2 (run 1 in brackets): stateless 0.434 (0.405); search 0.561, p = 0.0001 (0.498); memory 0.351, p = 0.012 *worse* than stateless (0.446); structured 0.499, p = 0.06 (0.477); dream 0.499, p = 0.07 (0.529, p = 0.0001); promoted 0.631, p < 1e-6 (0.642); wiki 0.616, p < 1e-5 (0.651). On escalations, search reached p = 0.013 in run 2 and p = 1 in run 1. What replicates: `promoted` and `wiki` (about +20 points, both runs), and `search`. What does not: `dream` on its own. So the robust finding is narrower than "dreaming helps". The two arms that pair a dreamt, structured memory with search replicate; a dreamt flat file does not. Free in-session memory can actively hurt (run 2). Any arm-level claim from one run on this data should be treated as unconfirmed. _Next:_ (1) a counts hypothesis: the memory keeps a tally of outcomes beside its rules, and the test is whether the maintained arms then pass the 0.785 floor; (2) repeat the run once more to measure run-to-run variance properly; (3) only then consider building the promoted index with search into the product, because it is the layer that replicated. - **Key references:** `backend/app/measure_memory_replay.py` (`--source all`); "The components of agent memory" (Figs. 6, 9, 13).
The article's memory layers, as arms of one replay (2026-11-26)
- **Intent:** Test each layer in "The components of agent memory" against the replay baseline before any of it enters the product: transcript search, notes that carry how they are known, dreaming, a promoted index, and a wiki. Step 1 was to tell remembered facts apart from heuristics, without which no other result could be read. - **Research thinking:** _The setup._ `app/measure_memory_replay.py` now runs every arm over the same 54 decisions with the same shuffled options (`openai/gpt-6-luna`, temperature 0, seeds 0 to 2, production database, read-only). The arms are: `search` (the 5 most similar earlier decisions); `memory` (one free file of 400 words); `structured` (notes as rule, evidence, traps); `dream` (`memory`, plus a pass every 5 decisions that checks the file against the full decision record); `promoted` (a 100-word injected index, notes opened on demand, plus search); `wiki` (at most 12 linked pages built by dreaming, opened by title with one hop of links, plus search); `transfer` (the other project's `memory` file, frozen). | arm | seed 0 | seed 1 | seed 2 | mean | right where stateless wrong / reverse | sign test p | |---|---|---|---|---|---|---| | stateless | 0.611 | 0.630 | 0.611 | 0.617 | | | | search | 0.704 | 0.685 | 0.667 | **0.685** | 21 / 10 | 0.071 | | promoted | 0.667 | 0.630 | 0.722 | 0.673 | 20 / 11 | 0.15 | | wiki | 0.704 | 0.611 | 0.648 | 0.654 | 17 / 11 | 0.35 | | transfer | 0.648 | 0.556 | 0.722 | 0.642 | 15 / 11 | 0.56 | | structured | 0.611 | 0.630 | 0.685 | 0.642 | 15 / 11 | 0.56 | | memory | 0.630 | 0.574 | 0.648 | 0.617 | 12 / 12 | 1.0 | | dream | 0.611 | 0.630 | 0.611 | 0.617 | 18 / 18 | 1.0 | Floors: chance 0.335, always-first 0.33 to 0.44. _Step 1 found almost nothing to split._ The judge labelled 2 of 54 decisions as settled by an earlier one. Either these escalations really are new questions each time, or the judge is lenient; a person should read a sample before the label is trusted. As it stands, the independent-subset numbers track the full ones within 2 points, so the split does not change any conclusion below. _The earlier memory gain was noise._ The first baseline put free memory 6 points above stateless. On the same seeds with a fresh run it is level (12 against 12). Any single-arm result on 54 items that is not replicated should be read as noise; this one was. _Search is the only arm that is consistently ahead_, on every seed, at about 7 points (p = 0.071). This matches the article (search alone 53%, wiki alone 48%, both 61%) in its first half: retrieving the original decisions beats a note distilled from them. The arms that combine search with a maintained memory (`promoted`, `wiki`) did not beat search alone. With 54 decisions the record is small enough that search already sees most of what matters. The article's own caveat applies: wikis help when an answer needs several documents, and here they do not. _Dreaming did not help._ The Mt. Moon result depended on a note that was concretely wrong and a transcript that disproved it. Here the in-session file is rarely wrong in that way; it is vague. Checking a vague file against the record produced another vague file. _Structured notes read like heuristics, which free notes did not._ The final resume-builder `structured` file opens with "Design around user capability and workflow, not implementation convenience" and "Keep AI user-driven and model-led: models, not regexes or conditional rules", and each comes with its evidence, a contradiction it found, and a trap. That is the abstract form this phase is after. It scored 2.5 points over stateless, and `transfer` (facts that cannot carry over) scored the same, which is consistent with a small abstract signal, but neither is distinguishable from noise at this size. _The binding constraint is now the number of decisions, not the design._ A 7-point effect needs roughly 150 or more paired items to reach p < 0.05 at the discordance rate seen here. More seeds do not help: they reshuffle the same 54 questions. _Next, in order:_ (1) grow the corpus: every escalation and every human product call recorded with its rejected options, and an external decision set as a second benchmark; (2) a person reads 10 of the dependency labels; (3) re-run `structured` and `transfer` once the corpus is larger, since they are where the heuristic signal would show; (4) only search has earned a product change so far, and it already exists (`get_precedent`). - **Key references:** `backend/app/measure_memory_replay.py`; "The components of agent memory" (Figs. 6, 10, 12, 13); the baseline entry below.
Reopening heuristics as research, and building the measurement first (2026-11-26)
- **Intent:** Return Doen to a research footing. The question the old flywheel asked (can a system
learn reusable rules from its own work?) was a good one; how it was built, without an outcome
metric, made the answer unknowable. This entry reverses the 2026-10-02 audience shift: the
product-engineer framing is superseded by research into executor memory. A hard revert to
`994be149` (BD-59, before the flywheel) was considered and rejected. It would have dropped 33
migrations the live database already runs, and the capture and correction work that this phase
builds on, without restoring anything the research needs.
- **Research thinking:**
_Why this source._ The paper describes the flywheel's failures as general properties of agent
memory. An uncapped store that abstracts nothing (Borges' map, Fig. 12; 413 files versus 9 in the
Pokémon run) matches 228 rules with 5 usable. "Tell Claude what memory is for, not how" (fixed
recording rules cut Opus 5's gain, Fig. 5) matches BD-79's guardrail-shaped extraction. Rules
that carry how they are known (Opus 5 closing the loop on CL-Bench) match the flywheel's
citation counts, which stood in for verification. And the paper measures memory as task success
with and without it, which the flywheel never did.
_The measurement, before any machinery._ `app/measure_memory_replay.py` adapts the CL-Bench
database task to Doen's own ground truth. Resolved decisions are replayed per project in
resolution order. An executor predicts which option the person chose, is shown the choice and
the rationale, and rewrites a single memory file capped at 400 words. It is scored against a
uniform-guess floor, an always-first floor (options are shuffled per seed) and a stateless model.
The executor's own recommendation is withheld: it is present on 3 of 54 rows, and showing it
would measure deference. The prompt says only what the memory is for.
_The corpus, on the live instance (Railway production, which the MCP server points at)._ 64
resolved, unretired decisions; 54 whose choice is one of the offered options verbatim: 39 in
resume-builder (7 to 13 October, 3.2 options on average), 15 in build-doen (May to September,
2.9 options). Chance is 0.335. Option order is uninformative after shuffling: always-first
scored 0.333, 0.370 and 0.444 over seeds 0 to 2. With 54 items one run's standard error is about
7 points, so only a large effect or a consistent paired difference will register. Resume-builder
is the only project with a run of decisions long enough for memory to matter.
_The baseline (`openai/gpt-6-luna`, temperature 0, 3 seeds, 400-word cap, 2026-11-26)._ Both
the local and the production `LLM_API_KEY` were dead at first (OpenRouter 401), which had also
taken production's LLM features down; the production key was re-enabled before this run. The
harness had failed silently (54 errors per run), so it now stops as soon as every call fails.
| seed | first | stateless | memory | memory-only right | stateless-only right |
|---|---|---|---|---|---|
| 0 | 0.333 | 0.556 | 0.648 | 6 | 1 |
| 1 | 0.370 | 0.556 | 0.648 | 7 | 2 |
| 2 | 0.444 | 0.648 | 0.648 | 5 | 5 |
Stateless already beats chance by about 25 points: much of a person's choice can be read off the
question. Memory adds about 6 points on average (0.648 against 0.587). Pooled over seeds the
paired split is 18 against 8, and a two-sided sign test gives p = 0.076. That is suggestive, not
established; the seeds are not independent samples of people, and seed 2 shows no gain at all.
The gain does not grow in the second half of each project, which a learning loop should produce.
_What the memory actually holds is the more important finding._ The final resume-builder file
is a dense fact sheet of the project's settled design ("`resumes.content` is one free-form
Markdown document", "keep `profile_id NOT NULL`", status-code rules), not heuristics about how
the person decides. With no instruction about what kind of note to write, the model wrote down
decisions, not reasons. So the six points may come from remembering earlier answers that later
questions depend on, rather than from anything abstract. That is useful memory, but it is not
the thing this phase is about, and the harness cannot yet tell the two apart.
_Hypotheses queued, in order, none to be built before the baseline:_ (0) separate fact recall from
heuristics: score held-out questions whose answer is not implied by an earlier decision, or
transfer one project's memory to the other; (1) a capped memory beats stateless on
resume-builder's later questions (baseline above: weak yes); (2) asking each note to carry how it is known
(the Opus 5 pattern) beats free-form notes; (3) a dreaming pass that checks the memory against the
decisions it came from beats in-session writing alone.
- **Key references:** "The components of agent memory", Anthropic Engineering, 2026-11-06 (CL-Bench
1.0, Figs. 3, 5, 12, 13); `backend/app/measure_memory_replay.py`; `docs/design-principles.md`
("Research thesis"); the 2026-10-02 entries below, whose measurements still stand.