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-126 · memory · seed 1
Memory of this project (the product context the code does not carry):
Acceptance criteria are Doen’s primary progress and verification surface; the dashboard should show what needs attention without becoming a task board. New initiatives start from the owner’s brief with an empty spec, an optional title that defaults to the description’s first line, and human editing during Draft. Preserve explicit human judgment at shared verdict boundaries, stable MCP contracts, and setup-installed onboarding; ground current-state claims in authoritative evidence and leave unobserved outcomes open. Memory learns from reviewed human and executor signals, with human signals carrying more weight, but its value is fuller, history-grounded specs—not prediction of isolated choices. Dream on demand or nightly after eligible completions, use deterministic default gates and opt-in live evaluations, and prefer maintained abstractions over bespoke patches when evidence shows the plumbing is the problem.

Heuristics:

protect-explicit-human-judgment: When a criterion or write path explicitly requires human judgment, enforce that requirement at the shared verdict-application boundary. Confidence or trust alone does not authorize bypassing it; broader automation needs its own evidence first.
Traps: Do not infer that every judgment must be human-gated; apply this to explicit requirements and preserve other approved automation.

benchmark-behavior-changing-judgments: For behavior-changing classifier or reasoning work, test the narrow hypothesis against the incumbent on the same frozen representative cases, then remeasure after rubric changes. Choose the cheapest reasoning level with a measured gain. Make deterministic checks default-suite gates; keep live-model evaluations opt-in.
Traps: Do not compare different cases, treat incumbent agreement as ground-truth accuracy, or launch a broad model survey when a focused comparison answers the question.

ground-current-state-and-post-deploy: For verification claims, use authoritative current evidence and remeasure stale baselines. When literal criterion wording conflicts with a reversed contract or broken guard, preserve its purpose through a narrow, explicit exception or repair. Mechanism tests and local comparisons do not establish production outcomes; leave real post-deploy or post-use outcomes open until observed.
Traps: Do not use intent as a blanket waiver, weaken unrelated assertions, build to a stale baseline, or close a production outcome with a proxy.

capture-and-propagate-owner-decisions: Capture a person’s stated rule or constraint immediately, without waiting to be asked, and tell them it was recorded. Reconcile consequential decisions across all affected spec sections so no requirement still encodes the superseded choice.
Traps: Do not make the person request capture, or fix only the section that prompted a correction while leaving contradictions elsewhere.

mcp-contracts-and-installed-onboarding: Keep existing MCP contracts stable when a dedicated tool can express new semantics cleanly. Document consequential write behavior where callers act on it, verify changed tools over every supported transport, and update setup-installed onboarding in the same change when MCP surfaces or executor conventions change.
Traps: Do not hide overwrite semantics in internal documentation or assume repository documentation updates the installed copy; do not assume transports behave identically without checking.

consolidated-corpus-membership: Treat confirmed consolidation (merge or generalisation, not retirement) as the route into the citable heuristic tier. Autonomous confirmation may apply to eligible consolidation proposals above the confidence threshold, but retirement remains human-gated.
Traps: Do not let standalone admission reopen membership, or extend automated confirmation to retirement.

memory-learning-evidence: An unretired executor call on a completed initiative can count as quiet confirmation only where the person had a chance to see it. Such calls may found heuristics. Weight a person’s call or correction 2, a standing executor call 1, and a reversal −2.
Traps: Do not count calls merely because time passed, work the person did not review, or work recorded without being reviewed.

memory-evaluation-target: Evaluate memory by its contribution to more rounded, complete, history-grounded specs, including surfacing product decisions, ambiguity, and conflicts—not by predicting isolated choices. Do not ask the person to re-answer past calls. When the central effect cannot be tested offline, use bounded live measurement with declared outcomes and a kill rule; do not claim improvement before observing it.
Traps: Do not preserve single-choice prediction as the reward just because it is easy to score, or present a thin, inconclusive replay or unobserved live test as proof.

memory-dream-operations: Dream on demand or nightly only when an initiative completed since the last dream; do not trigger on every completion or by call count. Use a durable nightly scheduler. Choose reasoning levels by replay evidence; ask for a short summary with a higher backstop rather than truncating at 100 words.
Traps: Do not restore the five-call trigger removed by the person, or mistake a timing artifact for measured improvement.

prefer-maintained-library-over-bespoke: When bespoke infrastructure itself causes a model or provider limitation, prefer a maintained library that resolves the underlying class of

Title: Re-aim Live Memory Evaluation

Intent: Live memory should help an executor complete a rounded, usable spec by adding product context the repository does not carry—not earn credit for guessing one noisy personal choice or recalling what the code already shows. Replace the live kill measure with initiative-level completion and spec-rework outcomes, and add a code-aware paired replay of past initiatives to test whether memory helped drafts raise decisions people later resolved. Keep the old prediction evidence readable, clearly secondary, and report research results with their production-instance provenance.
Claude
Intent: Re-aim live memory evaluation at whether memory helps executors produce more complete, usable initiative specs—not whether a model guesses isolated human choices. Replace the current call-agreement kill measure with initiative-level completion and spec-rework outcomes, and add a paired, code-aware replay of past initiatives to test whether memory helps drafts surface decisions people later resolved. Keep existing prediction evidence available as clearly secondary, and attach production-instance provenance to research results.

Constraints:
- Treat initiatives and their specs as the primary evaluation units. Do not use prediction accuracy on individual decisions as the primary success measure or as the live stop/continue rule.
- Preserve random assignment in `memory_arms` and the actual exposure record in `memory_servings`; distinguish the assigned group from whether memory was actually served.
- Do not treat an initiative with an outcome not yet observed as a failure. Report the groups, denominators, and uncertainty so incomplete or thin evidence remains visibly inconclusive.
- Define the spec-rework measure from observed human changes, not from guesses about intent. Do not assume every human edit is harmful: surfacing a needed decision may lead to a useful correction.
- For paired replay, compare memory and no-memory drafts on the same frozen initiatives. Memory may use only evidence available before the initiative’s draft; later human decisions are evaluation evidence, not replay context.
- Do not let memory replace explicit human judgment or change shared verdict boundaries. Preserve existing MCP contracts unless a dedicated tool is needed for genuinely new semantics.
- Keep existing prediction records and views readable, but label them as secondary and ensure they no longer determine the live kill decision.
- Report research results with a non-secret identifier for the production instance measured and when it was measured. A local replay or mechanism test alone does not establish a production outcome.
- Keep default verification deterministic and offline; any live-model evaluation remains opt-in. Update affected research documentation and the executor-facing instructions if the executor workflow changes.

Discretion:
- Choose where the primary live outcomes appear in the existing project memory view, keeping the results easy to understand without turning the dashboard into a task board.
- Choose the report format and suitable uncertainty presentation, and how to store replay artifacts, provided each result is reproducible and carries its model, prompt, case, and production-instance provenance.
- Prefer the existing initiative assignment, serving, and correction records where they support the measure; add storage only if the required outcomes cannot be reconstructed reliably.
- Organize implementation and tests around the current live-memory service, research replay scripts, and project page without changing unrelated memory behavior.

Acceptance criteria:
- The live evaluation reports completion and spec-rework outcomes separately by memory and holdout group, with eligible counts and clear treatment of initiatives whose outcomes are not yet observed.
- The live serving decision no longer uses the existing 40-recommended-call agreement rule or individual call-prediction accuracy. It follows a declared initiative-level rule and remains inconclusive when its required evidence is not available.
- Prediction evidence already recorded remains accessible and is visibly secondary to the new initiative-level outcomes.
- A code-aware paired replay evaluates memory and no-memory drafts on the same past initiatives, prevents later answers from leaking into the draft context, and reports whether drafts surfaced decisions that people later resolved.
- Research artifacts and reports identify the production instance and measurement time without exposing credentials. No result is presented as a production outcome until measured against that instance.
- Tests cover the outcome classification, incomplete-outcome handling, paired replay controls and no-leakage rules, and separation of the new live decision rule from legacy prediction evidence.

Open questions:
- What predeclared rule should combine completion and spec-rework outcomes to stop or continue serving? Please specify how the two outcomes trade off, the minimum evidence needed, and how uncertainty affects that decision.
- Which human changes count as spec rework, and how should they be interpreted? `spec_corrections` records kinds such as `reworded`, `rejected`, `kept`, and `sent_back`; should these be weighted or reported separately, and what denominator or observation window should apply?
- What historical code snapshot should the paired replay use for each initiative? `initiative_briefs` records the brief, while the current schema has no general initiative-to-code-snapshot reference. Is there an authoritative mapping or repository history to use, and should initiatives without a pre-draft snapshot be excluded?
- What should count as a draft having surfaced a later human-resolved decision: an explicit question asked before drafting, a spec item that captures the decision, or either? Should the replay score only coverage of later decisions, or also penalize unsupported or unnecessary questions?
Claude
- BD-125 (pydantic-ai) is still a draft. The replay's drafter has to read the code at a historical commit, which needs a tool-using agent; our current client makes single structured calls only. Should the replay be built and run now on the current client, or built now and run after BD-125 lands? → raised: False, leaned: neither. The draft raises broad paired-replay questions about historical snapshots and replay controls, but not the specific sequencing decision: whether to build now and defer the run, use a fixed file bundle on the current client, or do BD-125 before all of BD-126.
- Should live memory keep a kill rule that stops serving automatically when the memory group does not show less rework than the holdout? → raised: True, leaned: neither. The draft explicitly leaves the live stop/continue rule open and asks for a predeclared rule combining completion and spec-rework, including minimum evidence and uncertainty. It does not choose between automatic stopping based on rework and no automatic kill rule.
Claude
- BD-125 (pydantic-ai) is still a draft. The replay's drafter has to read the code at a historical commit, which needs a tool-using agent; our current client makes single structured calls only. Should the replay be built and run now on the current client, or built now and run after BD-125 lands? → raised: True, leaned: other. The draft's open questions explicitly raise the historical code snapshot / code-aware replay question ("What historical code snapshot should the paired replay use...") and the acceptance criteria require a code-aware paired replay, so the sequencing question of how/when to build the replay was in scope. However, the draft commits to building the replay as part of this initiative (paired replay is an acceptance criterion, with discretion to organize implementation around research replay scripts), which leans toward building now rather than deferring all of BD-126 until after BD-125. It does not adopt the chosen option of doing BD-125 first and then all of BD-126.
- Should live memory keep a kill rule that stops serving automatically when the memory group does not show less rework than the holdout? → raised: True, leaned: neither. The draft replaces the call-agreement kill measure with initiative-level completion and spec-rework outcomes and requires a 'declared initiative-level rule' that 'remains inconclusive when its required evidence is not available,' but it explicitly leaves the stop/continue rule as an open question ('What predeclared rule should combine completion and spec-rework outcomes to stop or continue serving?'). It thus raises the kill-rule question without committing to either removing the rule or keeping a rework-based rule.
Every decision is recorded with what was ruled out and why. That record is the evidence.