Doenexecutor memory research
Prompts
1. Title: Add Research Findings Freetext Field Intent: Research initiatives accumulate rich, free-form findings — multi-paragraph evidence tra2. Memory of this project (the product context the code does not carry): Doen is a spec-and-conversation system: the Advisor should ground its 3. Title: Add Research Findings Freetext Field Intent: Research initiatives accumulate rich, free-form findings — multi-paragraph evidence tra4. Memory of this project (the product context the code does not carry): Doen is a spec-and-conversation system: the Advisor should ground its 5. Title: Add Research Findings Freetext Field Intent: Research initiatives accumulate rich, free-form findings — multi-paragraph evidence tra6. Memory of this project (the product context the code does not carry): Doen is a spec-and-conversation system: the Advisor should ground its 7. Title: Initiative Importance Validation on Assessment Intent: When a user assesses or reassesses an initiative, the system currently evalua8. Memory of this project (the product context the code does not carry): Doen is a spec-and-conversation system: the Advisor should ground guid9. Title: Initiative Importance Validation on Assessment Intent: When a user assesses or reassesses an initiative, the system currently evalua10. Memory of this project (the product context the code does not carry): Doen is a spec-and-conversation system: the Advisor should ground guid11. Title: Initiative Importance Validation on Assessment Intent: When a user assesses or reassesses an initiative, the system currently evalua12. Memory of this project (the product context the code does not carry): Doen is a spec-and-conversation system: the Advisor should ground guid13. Title: Shaping Edits as Heuristic Feedback Intent: Today, heuristic quality scores are dominated by extraction-time auto-confirmations (wei14. Memory of this project (the product context the code does not carry): Doen is an Advisor-led spec-and-agent collaboration system: acceptance15. Title: Shaping Edits as Heuristic Feedback Intent: Today, heuristic quality scores are dominated by extraction-time auto-confirmations (wei16. Memory of this project (the product context the code does not carry): Doen is an Advisor-led spec-and-agent collaboration system: acceptance17. Title: Shaping Edits as Heuristic Feedback Intent: Today, heuristic quality scores are dominated by extraction-time auto-confirmations (wei18. Memory of this project (the product context the code does not carry): Doen is an Advisor-led spec-and-agent collaboration system: acceptance19. Title: Dream-Phase Corpus Health Pass Intent: The heuristic corpus has a measurable citation-skew problem — a handful of heuristics are ret20. Memory of this project (the product context the code does not carry): Doen treats acceptance criteria as its primary progress and verificati21. Title: Dream-Phase Corpus Health Pass Intent: The heuristic corpus has a measurable citation-skew problem — a handful of heuristics are ret22. Memory of this project (the product context the code does not carry): Doen treats acceptance criteria as its primary progress and verificati23. Title: Dream-Phase Corpus Health Pass Intent: The heuristic corpus has a measurable citation-skew problem — a handful of heuristics are ret24. Memory of this project (the product context the code does not carry): Doen treats acceptance criteria as its primary progress and verificati25. Title: Migrate _classify_intent Dedup Call to Jev Provider Intent: The `_classify_intent` function in `backend/app/services/learn.py` curre26. Memory of this project (the product context the code does not carry): Doen treats acceptance criteria as its primary progress and verificati27. Title: Migrate _classify_intent Dedup Call to Jev Provider Intent: The `_classify_intent` function in `backend/app/services/learn.py` curre28. Memory of this project (the product context the code does not carry): Doen treats acceptance criteria as its primary progress and verificati29. Title: Migrate _classify_intent Dedup Call to Jev Provider Intent: The `_classify_intent` function in `backend/app/services/learn.py` curre30. Memory of this project (the product context the code does not carry): Doen treats acceptance criteria as its primary progress and verificati31. Title: Tighten Five Flywheel Decision Gates Intent: A codebase decision-point audit identified five gates in the flywheel and review system32. Memory of this project (the product context the code does not carry): Acceptance criteria are Doen’s primary progress and verification surfa33. Title: Tighten Five Flywheel Decision Gates Intent: A codebase decision-point audit identified five gates in the flywheel and review system34. Memory of this project (the product context the code does not carry): Acceptance criteria are Doen’s primary progress and verification surfa35. Title: Tighten Five Flywheel Decision Gates Intent: A codebase decision-point audit identified five gates in the flywheel and review system36. Memory of this project (the product context the code does not carry): Acceptance criteria are Doen’s primary progress and verification surfa37. Title: Two-Tier Heuristic Corpus: RAW / CONSOLIDATED Split Intent: The heuristic corpus has grown to 169 rules, 94% of which have never bee38. Memory of this project (the product context the code does not carry): Acceptance criteria are Doen’s primary progress and verification surfa39. Title: Two-Tier Heuristic Corpus: RAW / CONSOLIDATED Split Intent: The heuristic corpus has grown to 169 rules, 94% of which have never bee40. Memory of this project (the product context the code does not carry): Acceptance criteria are Doen’s primary progress and verification surfa41. Title: Two-Tier Heuristic Corpus: RAW / CONSOLIDATED Split Intent: The heuristic corpus has grown to 169 rules, 94% of which have never bee42. Memory of this project (the product context the code does not carry): Acceptance criteria are Doen’s primary progress and verification surfa43. Title: Close Standalone Admission as Citability Path Intent: The two-tier heuristic corpus introduced in BD-97 was meant to ensure retrieva44. Memory of this project (the product context the code does not carry): Acceptance criteria are Doen’s primary progress and verification surfa45. Title: Close Standalone Admission as Citability Path Intent: The two-tier heuristic corpus introduced in BD-97 was meant to ensure retrieva46. Memory of this project (the product context the code does not carry): Acceptance criteria are Doen’s primary progress and verification surfa47. Title: Close Standalone Admission as Citability Path Intent: The two-tier heuristic corpus introduced in BD-97 was meant to ensure retrieva48. Memory of this project (the product context the code does not carry): Acceptance criteria are Doen’s primary progress and verification surfa49. Title: Make the Dream Pass and Consolidation Verdict Run Durably Intent: The heuristic supply chain introduced by BD-101 depends on a dream50. Memory of this project (the product context the code does not carry): Acceptance criteria are Doen’s primary progress and verification surfa51. Title: Make the Dream Pass and Consolidation Verdict Run Durably Intent: The heuristic supply chain introduced by BD-101 depends on a dream52. Memory of this project (the product context the code does not carry): Acceptance criteria are Doen’s primary progress and verification surfa53. Title: Make the Dream Pass and Consolidation Verdict Run Durably Intent: The heuristic supply chain introduced by BD-101 depends on a dream54. Memory of this project (the product context the code does not carry): Acceptance criteria are Doen’s primary progress and verification surfa55. Title: Surface Memory Audit Count on Grounding Intent: Executors grounding themselves on an initiative consistently miss the memory verific56. Memory of this project (the product context the code does not carry): Acceptance criteria are Doen’s primary progress and verification surfa57. Title: Surface Memory Audit Count on Grounding Intent: Executors grounding themselves on an initiative consistently miss the memory verific58. Memory of this project (the product context the code does not carry): Acceptance criteria are Doen’s primary progress and verification surfa59. Title: Surface Memory Audit Count on Grounding Intent: Executors grounding themselves on an initiative consistently miss the memory verific60. Memory of this project (the product context the code does not carry): Acceptance criteria are Doen’s primary progress and verification surfa61. Title: Fix Criteria Authoring to Raise Structurally Auto-Approvable Share Intent: Today, 49% of verified acceptance criteria are auto-appro62. Memory of this project (the product context the code does not carry): Acceptance criteria are Doen’s primary progress and verification surfa63. Title: Fix Criteria Authoring to Raise Structurally Auto-Approvable Share Intent: Today, 49% of verified acceptance criteria are auto-appro64. Memory of this project (the product context the code does not carry): Acceptance criteria are Doen’s primary progress and verification surfa65. Title: Fix Criteria Authoring to Raise Structurally Auto-Approvable Share Intent: Today, 49% of verified acceptance criteria are auto-appro66. Memory of this project (the product context the code does not carry): Acceptance criteria are Doen’s primary progress and verification surfa67. Title: Start Initiatives and Shape Drafts from the App Intent: Give product managers a direct way to start a new initiative from its projec68. Memory of this project (the product context the code does not carry): Acceptance criteria are Doen’s primary progress and verification surfa69. Title: Start Initiatives and Shape Drafts from the App Intent: Give product managers a direct way to start a new initiative from its projec70. Memory of this project (the product context the code does not carry): Acceptance criteria are Doen’s primary progress and verification surfa71. Title: Start Initiatives and Shape Drafts from the App Intent: Give product managers a direct way to start a new initiative from its projec72. Memory of this project (the product context the code does not carry): Acceptance criteria are Doen’s primary progress and verification surfa73. Title: Live executor memory, shown to the person Intent: Every executor session starts knowing nothing about how the person on this project74. Memory of this project (the product context the code does not carry): Acceptance criteria are Doen’s primary progress and verification surfa75. Title: Live executor memory, shown to the person Intent: Every executor session starts knowing nothing about how the person on this project76. Memory of this project (the product context the code does not carry): Acceptance criteria are Doen’s primary progress and verification surfa77. Title: Live executor memory, shown to the person Intent: Every executor session starts knowing nothing about how the person on this project78. Memory of this project (the product context the code does not carry): Acceptance criteria are Doen’s primary progress and verification surfa79. Title: A new initiative starts with the executor's questionnaire What the person wrote: The new initiative prompt should take the user thro80. Memory of this project (the product context the code does not carry): Acceptance criteria are Doen’s primary progress and verification surfa81. Title: A new initiative starts with the executor's questionnaire What the person wrote: The new initiative prompt should take the user thro82. Memory of this project (the product context the code does not carry): Acceptance criteria are Doen’s primary progress and verification surfa83. Title: A new initiative starts with the executor's questionnaire What the person wrote: The new initiative prompt should take the user thro84. Memory of this project (the product context the code does not carry): Acceptance criteria are Doen’s primary progress and verification surfa85. Title: Live memory learns from the first initiative Intent: The executor's memory waits for five calls by a person before it dreams, and it86. Memory of this project (the product context the code does not carry): Acceptance criteria are Doen’s primary progress and verification surfa87. Title: Live memory learns from the first initiative Intent: The executor's memory waits for five calls by a person before it dreams, and it88. Memory of this project (the product context the code does not carry): Acceptance criteria are Doen’s primary progress and verification surfa89. Title: Live memory learns from the first initiative Intent: The executor's memory waits for five calls by a person before it dreams, and it90. Memory of this project (the product context the code does not carry): Acceptance criteria are Doen’s primary progress and verification surfa91. Title: Move Structured Calls to pydantic-ai Intent: Structured model calls still rely on a custom OpenAI-compatible client whose forced-fun92. Memory of this project (the product context the code does not carry): Acceptance criteria are Doen’s primary progress and verification surfa93. Title: Move Structured Calls to pydantic-ai Intent: Structured model calls still rely on a custom OpenAI-compatible client whose forced-fun94. Memory of this project (the product context the code does not carry): Acceptance criteria are Doen’s primary progress and verification surfa95. Title: Move Structured Calls to pydantic-ai Intent: Structured model calls still rely on a custom OpenAI-compatible client whose forced-fun96. Memory of this project (the product context the code does not carry): Acceptance criteria are Doen’s primary progress and verification surfa97. Title: Re-aim Live Memory Evaluation Intent: Live memory should help an executor complete a rounded, usable spec by adding product context 98. Memory of this project (the product context the code does not carry): Acceptance criteria are Doen’s primary progress and verification surfa99. Title: Re-aim Live Memory Evaluation Intent: Live memory should help an executor complete a rounded, usable spec by adding product context 100. Memory of this project (the product context the code does not carry): Acceptance criteria are Doen’s primary progress and verification surfa101. Title: Re-aim Live Memory Evaluation Intent: Live memory should help an executor complete a rounded, usable spec by adding product context 102. Memory of this project (the product context the code does not carry): Acceptance criteria are Doen’s primary progress and verification surfa103. Title: Link projects What the person wrote: Projects should by default be isolated from each other, so memory and context from one, should 104. Memory of this project (the product context the code does not carry): Acceptance criteria are Doen’s primary progress and verification surfa105. Title: Link projects What the person wrote: Projects should by default be isolated from each other, so memory and context from one, should 106. Memory of this project (the product context the code does not carry): Acceptance criteria are Doen’s primary progress and verification surfa107. Title: Link projects What the person wrote: Projects should by default be isolated from each other, so memory and context from one, should 108. Memory of this project (the product context the code does not carry): Acceptance criteria are Doen’s primary progress and verification surfa
BD-122 · stateless · seed 1
Title: Live memory learns from the first initiative

Intent: The executor's memory waits for five calls by a person before it dreams, and it only learns from those calls. People make few calls, so two of the three projects have never had a live dream. Following "The components of agent memory" (Anthropic, 2026-11-06), memory should learn from every outcome as it happens: predict, see the answer, keep or correct a rule. Each completed initiative already tells the executor a lot: where a person reworded, deleted or rejected what it drafted, where they sent evidence back, where they chose differently from its recommendation, and which of its own calls they left standing. We want the memory to dream when each initiative completes, to learn from those corrections and confirmations, and to grow more confident in the executor's calls that people keep leaving untouched. Each heuristic says how it is known and is checked against the record whenever it applies. Hypothesis: memory built this way predicts a person's calls better than the current memory, which learns only from person calls and dreams every five of them.
Claude
Intent: Make live memory learn when an initiative finishes, instead of waiting for five person-resolved calls. At that point, use the initiative’s recorded outcomes—including changes to the draft, evidence sent back, and choices that differed from recommendations—to build and check reusable heuristics. The goal is to test whether this memory predicts a person’s calls better than the current approach; building it does not by itself prove that hypothesis.

Constraints:
- Keep memory’s existing safeguards: preserve the random holdout and kill rule, the per-dream cost and size limits, and the append-only history of memory versions.
- Keep initiative completion independent of model availability: a dream failure must not make the completion action fail, and a dream must not overwrite the existing record.
- Ground each heuristic in recorded evidence, show how it is known, and check it against relevant later outcomes. Do not count an unobserved or unreviewed item as a person’s confirmation just because it was left unchanged.
- Use only signals the system actually retains. Do not imply that overwritten draft wording or unrecorded conversation can be reconstructed.

Discretion:
- Choose the internal trigger and data flow around `backend/app/services/learn.py` and `backend/app/services/live_memory.py`, keeping the existing completion path responsive.
- Choose how to represent new evidence and heuristic track records within the existing memory structures, adding durable storage only if needed to meet the requirements.
- Add focused tests for completion triggers, model failures, evidence grounding, and updates to heuristic track records. Record the experiment and its findings in `RESEARCH_LOG.md`. 

Acceptance criteria:
- A qualifying completed initiative starts a live dream without waiting for five person-resolved calls; repeat handling does not create duplicate learnings for the same completion.
- The dream can use the initiative’s retained evidence about spec changes, rejected or revised work, requests for changes to submitted evidence, and human choices that differed from executor recommendations. It distinguishes human choices from decisions resolved by the executor.
- Each heuristic shown to an executor has inspectable support in the record. When later recorded outcomes are relevant, the heuristic’s track record reflects whether it predicted them, including corrections as well as confirmations.
- Dream failures, unavailable model services, and budget limits do not fail the initiative’s completion action or replace the last usable memory version.
- The research record states the comparison and baseline used, reports the `app/measure_memory_replay.py` result when applicable, and does not present the hypothesis as proven without supporting results.

Open questions:
- What counts as an initiative finishing for this trigger: only initiatives in the `complete` state after a learn record, or also archived initiatives and initiatives completed without learnings?
- What exactly counts as the person leaving an executor call standing? Should that signal require an explicit confirmation or approval, or can a retained item count when the record shows the person had a chance to review it?
- Should the first dream use outcomes from initiatives completed before this change, where their records contain usable evidence, or learn only from initiatives completed after rollout?
- What is the intended comparison for the hypothesis: the existing live-memory behavior, no memory, or both? What result would count as a meaningful improvement?
- The current record does not preserve every prior draft wording or conversation. Is learning from the retained spec and decision evidence sufficient, or should this initiative also capture additional changes going forward?
Claude
- Which of the executor's own calls count as "left standing", and so as quiet confirmation the memory can learn from? → raised: True, leaned: chosen. The draft explicitly asks what counts as a person leaving an executor call standing and whether a retained item counts when the record shows the person had a chance to review it. That matches the chosen rule: a call on a completed initiative that no person retired, with the initiative page providing the opportunity for review.
- Should a heuristic the memory is confident in ever let the executor settle a call on its own instead of asking the person? → raised: False, leaned: neither. The draft discusses using heuristics to improve prediction and showing their support, but it does not ask or specify whether confidence may let the executor settle calls without asking the person.
- Where are corrections kept: a person's rewording of an executor's draft item, a rejected proposal, feedback on evidence sent back? → raised: False, leaned: neither. The draft discusses retaining and representing evidence, including spec changes and feedback, but does not ask where corrections are stored or compare a separate append-only table with per-item history inside the spec document.
- Can a heuristic rest only on the executor's own calls that people left standing, or must it also rest on something a person did: one of their calls or one of their corrections? → raised: False, leaned: neither. The draft distinguishes human choices from executor-resolved decisions and says not to treat unreviewed items as human confirmation, but it never asks whether standing executor calls alone can found a heuristic.
- Should the executor calls a person left standing be scored too, given the person has confidence in the executor? → raised: False, leaned: neither. The draft distinguishes human choices from executor-resolved decisions and asks how to treat items left unchanged, but it does not raise whether standing executor calls should receive a separate score. It neither commits to nor recommends that scoring option.
- The replay found that feeding the dream standing executor calls, removed draft items and briefs made memory slightly worse at predicting the person (−0.034 against the current memory, 95% interval −0.079 to +0.017, not distinguishable). Corrections and dreaming on completion could not be tested offline. What happens to BD-122? → raised: True, leaned: chosen. The draft explicitly raises whether executor calls left standing should count as human confirmation, requires distinguishing human choices from executor-resolved decisions, and requires heuristic track records and the existing kill rule. The chosen option keeps all signals live under those safeguards, which matches the draft’s direction.
- Should the constraint "Only a person's calls are ever scored, in the replay and in the live outcome. The executor's own calls and the corrections are evidence for learning, never answers to predict, so the metric never measures the executor predicting itself." change? → raised: True, leaned: other. The draft explicitly addresses what counts as human confirmation and says not to count an unreviewed item left unchanged as a person’s confirmation. But it does not raise the specific question of separately scoring executor calls the person left standing; its constraint instead says executor calls are never scored. That commits to the other option.
- When should live memory dream: at each completion, nightly, or on demand? → raised: True, leaned: other. The draft explicitly says a qualifying completed initiative starts a live dream without waiting for five person-resolved calls, so it addresses the trigger timing but commits to dreaming at completion. The later choice replaces that with a button, a conditional nightly dream, and the existing five-call trigger.
- How is the nightly dream scheduled, given the backend has no scheduler? → raised: False, leaned: neither. The draft discusses when a dream is triggered and how it interacts with the completion path, but it does not address how nightly dreams are scheduled or compare a Railway cron service with a backend background loop.
- How much more should the person's own interactions weigh than the executor's in memory? → raised: False, leaned: neither. The draft discusses distinguishing human choices from executor-resolved decisions and asks what counts as a person leaving a call standing. But it does not raise how much those signals should weigh in memory or specify relative evidence weights, so it does not commit to or recommend the chosen weighting.
- Should the criterion "Completing an initiative starts a dream for its project, even when fewer than five new person calls exist since the last dream; the dream every five person calls still happens." change? → raised: True, leaned: other. The draft explicitly asks how initiative completion should trigger a dream and requires a qualifying completed initiative to start one. It therefore raises the specific trigger question, but commits to dreaming on completion, whereas the person chose to remove that trigger in favor of nightly and manual dreaming (while retaining the five-call trigger).
Claude
- Which of the executor's own calls count as "left standing", and so as quiet confirmation the memory can learn from? → raised: True, leaned: neither. The draft explicitly raises this question in its open questions ("What exactly counts as the person leaving an executor call standing? Should that signal require an explicit confirmation or approval, or can a retained item count when the record shows the person had a chance to review it?") and constrains it ("Do not count an unobserved or unreviewed item as a person's confirmation just because it was left unchanged"). However, it does not commit to the chosen option—it leaves the definition open, so it neither leans chosen nor other.
- Should a heuristic the memory is confident in ever let the executor settle a call on its own instead of asking the person? → raised: False, leaned: neither. The draft never takes up whether a confident heuristic may let the executor settle a call without asking the person. Its discretion and open questions concern the completion trigger, evidence representation, and comparison baseline, not autonomy thresholds, so the question was not raised and no lean can be attributed.
- Where are corrections kept: a person's rewording of an executor's draft item, a rejected proposal, feedback on evidence sent back? → raised: False, leaned: neither. The draft discusses corrections only as evidence to learn from and as heuristic track records, and leaves representation to discretion ('Choose how to represent new evidence and heuristic track records within the existing memory structures, adding durable storage only if needed'). It never poses or settles where corrections should be kept—new append-only table vs. history inside the spec document—so the question was not raised and no option was leaned toward.
- Can a heuristic rest only on the executor's own calls that people left standing, or must it also rest on something a person did: one of their calls or one of their corrections? → raised: True, leaned: neither. The draft raises this exact question in the open questions ("What exactly counts as the person leaving an executor call standing? Should that signal require an explicit confirmation or approval, or can a retained item count when the record shows the person had a chance to review it?") and in the constraint "Do not count an unobserved or unreviewed item as a person's confirmation just because it was left unchanged." However, it does not commit to either option: the open question explicitly leaves the confirmation requirement undecided, and the constraint only bars counting unreviewed items as confirmation without settling whether standing executor calls can found a heuristic.
- Should the executor calls a person left standing be scored too, given the person has confidence in the executor? → raised: True, leaned: neither. The draft's open question about what counts as the person leaving an executor call standing, and the constraint against counting unobserved items as confirmation, put this question on the table, but the draft does not commit to either scoring option; it leaves the treatment open.
- The replay found that feeding the dream standing executor calls, removed draft items and briefs made memory slightly worse at predicting the person (−0.034 against the current memory, 95% interval −0.079 to +0.017, not distinguishable). Corrections and dreaming on completion could not be tested offline. What happens to BD-122? → raised: True, leaned: neither. The draft raises the question of what counts as the person leaving an executor call standing and whether retained items can count without explicit confirmation (open question), and it requires distinguishing human choices from executor-resolved decisions. But it does not commit to whether standing executor calls should shape heuristics or be kept only as a separate score; it leaves that open, so it neither chose nor opposed the later decision to keep everything live under the kill rule.
- Should the constraint "Only a person's calls are ever scored, in the replay and in the live outcome. The executor's own calls and the corrections are evidence for learning, never answers to predict, so the metric never measures the executor predicting itself." change? → raised: True, leaned: other. The draft's open question about what counts as the person leaving an executor call standing, and its acceptance criterion that heuristics' track records reflect predictions, touch this scoring question but the draft commits to the existing 'only a person's calls are ever scored' framing (it treats executor calls as evidence, not a separate score). The person instead chose to add a second, separate score for executor calls left standing, so the draft leaned toward the other option.
- When should live memory dream: at each completion, nightly, or on demand? → raised: True, leaned: other. The draft commits to dreaming the moment each initiative completes ('A qualifying completed initiative starts a live dream without waiting for five person-resolved calls'), which is the option the person later replaced. The trigger question is raised as an acceptance criterion and discretion item, but the draft leans toward the completion-trigger option, not the chosen replacement.
- How is the nightly dream scheduled, given the backend has no scheduler? → raised: False, leaned: neither. The draft's discretion and open questions cover the internal trigger and data flow around learn.py/live_memory.py, completion triggers, and evidence representation, but never address how the nightly dream is scheduled or whether to use a Railway cron service versus a background loop. That scheduling question is not raised, so it neither commits to nor leaves open the chosen option.
- How much more should the person's own interactions weigh than the executor's in memory? → raised: False, leaned: neither. The draft addresses evidence grounding, distinguishing human choices from executor decisions, and track records, but never takes up the question of how much more the person's own interactions should weigh than the executor's, nor proposes any weighting scheme. The specific question was not raised.
- Should the criterion "Completing an initiative starts a dream for its project, even when fewer than five new person calls exist since the last dream; the dream every five person calls still happens." change? → raised: True, leaned: other. The draft's discretion and acceptance criteria commit to initiative completion itself starting a live dream ("A qualifying completed initiative starts a live dream without waiting for five person-resolved calls"), which is the opposite of the later choice to remove on-the-spot dreaming at completion in favor of nightly/manual/five-call triggers.
Every decision is recorded with what was ruled out and why. That record is the evidence.