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-102 · stateless · seed 1
Title: Make the Dream Pass and Consolidation Verdict Run Durably

Intent: The heuristic supply chain introduced by BD-101 depends on a dream pass that has run on exactly one day in production history, feeding an auto-confirm gate that has never executed. The result is a citable tier frozen at 5 of 164 active rules with 3 near-duplicate proposals stalled for two weeks. Two root causes need fixing together: the scheduler discards its next-run time on every restart (sleep-first, in-memory), so a service that deploys more than once a day never reaches the end of its first sleep; and the merge-verdict step leaves no durable record, making "did consolidation run and what did it decide" an inference rather than a query. The desired outcome is a pipeline that runs without human initiation, survives restarts by tracking last-swept-at in Postgres, records each sweep's outcome in enough detail to answer throughput questions with a query, and lets the citable tier grow on its own — or makes it observable and explicit that the threshold, not the scheduler, is what limits growth.
Claude
Intent: Make the scheduled dream pass use durable Postgres state so deployments and restarts do not keep postponing its work. Record enough about each scheduled sweep and each consolidation verdict that a query can show what ran, what it produced, what Jev decided, and where rules were held. Keep the existing safety gates intact: the tier may grow automatically when judgments pass those gates, and otherwise the records should make clear whether a threshold or an execution failure is holding it back.

Constraints:
- The scheduler must determine whether work is due from persistent Postgres state, rather than beginning a fresh full-interval sleep after every restart. A due pass must run without requiring a manual request or a learn submission.
- Keep the existing `DREAM_PHASE_INTERVAL_SECONDS` behavior: the default remains one day, and `0` disables the scheduler. Continue to skip archived projects and isolate failures so one project does not stop work for the others.
- Persist sweep outcomes with enough per-project detail to query pass and failure counts, re-embedded rules, proposals by kind, verdicts applied or left pending, admissions or holds, and step errors. Persist each consolidation verdict’s answer and confidence, the applicable threshold, and whether it was applied, left pending, or could not be obtained.
- Do not weaken the existing judgment gates as part of fixing scheduling or observability. In particular, `retire` proposals must remain human-gated, and decisions below `MERGE_AUTOCONFIRM_CONFIDENCE` must remain pending.
- A successful consolidation and its durable verdict record must not be separable: a query must not report a proposal as applied without its verdict record.
- Retain the existing manual dream-phase route and the response shape represented by `DreamPhaseResult`; this initiative should not require a new UI or route to make outcomes queryable.

Discretion:
- Choose the Postgres storage layout and migration approach, using `projects` and its existing `last_gardener_run_at` column only if that fits the new scheduling semantics without changing its meaning.
- Choose how to coordinate scheduled work if more than one app process is running, and how interrupted or partially failed work is retried without creating a tight retry loop.
- Choose the exact query-friendly organization of sweep totals and per-project details, provided the outcomes listed above are available from Postgres.
- Keep the current interval and threshold configuration unless implementation evidence reveals a necessary compatibility change; raise such a change before making it.

Acceptance criteria:
- A test demonstrates that a sweep due according to Postgres state runs promptly after a process restart, rather than waiting a fresh full interval; a sweep that is not due does not run early.
- A test demonstrates that the scheduled pipeline runs without a manual route call or learn submission, covers non-archived projects, and continues after a project or pass step fails.
- After a scheduled pass, Postgres can answer by query which projects were attempted and how many rules were re-embedded, proposals created by kind, proposals applied or left pending, rules admitted or held, and errors occurred.
- After a consolidation judgment, Postgres can answer by query what Jev chose, its confidence, the threshold used, and whether the proposal was applied, left pending, or had no usable verdict. A retire proposal remains pending and does not receive an automatic apply decision.
- The records distinguish an execution failure from a valid hold below the configured gate, so a reviewer can tell whether scheduling or the decision threshold is limiting tier growth.
- Existing manual dream-phase behavior, response serialization, and the safety behavior covered by the current dream-phase and admission tests remain intact.

Open questions:
- Should the per-project sweep history also include dream-phase runs initiated by the manual route or the learn-completion hook, or should that history cover only scheduler-triggered sweeps? I recommend recording verdicts for every invocation either way, and keeping the scheduled-sweep history clearly identifiable.
Claude
- Root cause of the zero-lifetime merge_verdict calls is structural, not scheduling. dream_phase.py step 4 calls auto_confirm_proposals(store, created, ...) where `created` is only the proposals this pass just made. Meanwhile gardener.py deliberately never re-proposes a cluster that overlaps an existing pending proposal. So once a proposal is pending, no later pass ever creates it again, `created` comes back empty, and the verdict step never sees it. A proposal that misses its verdict once is stranded forever — that is why the 3 near_duplicate proposals from 2026-09-14 are stuck and why merge_verdict has never been called in fifteen months. Fixing the scheduler alone will not change this: the pass could run hourly and those proposals would still never be judged. But constraint item_7942dded8fc1 says the pass 'keeps its five steps in order and its never-raises contract. This initiative changes when it is invoked and what it records, not what it does internally.' Widening step 4's input set arguably changes what it does internally. How should this be handled? → raised: False, leaned: neither. The draft addresses scheduling, persistence, and recording consolidation verdicts, but does not raise which proposals step 4 should evaluate. It therefore neither commits to nor recommends widening the verdict step to include previously pending proposals.
Claude
- Root cause of the zero-lifetime merge_verdict calls is structural, not scheduling. dream_phase.py step 4 calls auto_confirm_proposals(store, created, ...) where `created` is only the proposals this pass just made. Meanwhile gardener.py deliberately never re-proposes a cluster that overlaps an existing pending proposal. So once a proposal is pending, no later pass ever creates it again, `created` comes back empty, and the verdict step never sees it. A proposal that misses its verdict once is stranded forever — that is why the 3 near_duplicate proposals from 2026-09-14 are stuck and why merge_verdict has never been called in fifteen months. Fixing the scheduler alone will not change this: the pass could run hourly and those proposals would still never be judged. But constraint item_7942dded8fc1 says the pass 'keeps its five steps in order and its never-raises contract. This initiative changes when it is invoked and what it records, not what it does internally.' Widening step 4's input set arguably changes what it does internally. How should this be handled? → raised: False, leaned: neither. The draft is about durable Postgres scheduling state and observability of sweeps/verdicts; it never raises the question of which proposals step 4's auto_confirm should evaluate (only current-pass vs. all pending). It only touches the same general area via the constraint to keep the pass's five steps and never-raises contract intact, which is not the specific question the person decided.
Every decision is recorded with what was ruled out and why. That record is the evidence.