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-97 · stateless · seed 1
Title: Two-Tier Heuristic Corpus: RAW / CONSOLIDATED Split

Intent: The heuristic corpus has grown to 169 rules, 94% of which have never been cited, 78% of which carry an uninformative quality score, and 16 of which are invisible to retrieval because their embeddings are NULL. The retrieval path compounds the problem: a tight ranked cut over a large noisy corpus means the 10 rules that actually matter compete on equal footing with 159 that do not. The goal is to invert where precision lives: keep the extraction pipeline writing freely into a RAW tier (write-side only), promote a small human-vetted CONSOLIDATED tier through two explicit doors (LLM-generalised cluster or verbatim singleton promotion), make CONSOLIDATED the only tier that can be retrieved as guidance or cited, and then relax retrieval over that small tier for high recall. The change must land in strict order — repair first, then vetting tooling, then consumption switch, then retrieval relaxation — with the generalisation eval promoted to a CI gate before the retrieval step ships.
Claude
Intent: Separate the heuristic corpus into RAW working material and a small, human-vetted CONSOLIDATED set. Extraction should keep feeding RAW; a rule reaches CONSOLIDATED only through an approved LLM generalisation of a cluster or an approved verbatim singleton promotion. Only CONSOLIDATED rules should be offered as guidance or receive new citations. After that switch, retrieval can be relaxed over the smaller set to improve recall.

Constraints:
- Build and land the work in this order: repair, vetting tools, consumption switch, retrieval relaxation. Do not ship a later step before the earlier one is in place.
- The generalisation eval must be a blocking CI gate before the retrieval relaxation ships.
- Promotion must be explicit and human-approved. No extraction, LLM call, or retrieval process may silently promote a rule.
- RAW rules may be inspected and used by the vetting process, but must not be returned as guidance or receive new citations.
- Keep heuristics project-scoped; a rule must not become guidance outside its project.
- Do not delete historical heuristic or citation records as part of the split. Any change to historical citation handling needs an explicit decision.

Discretion:
- Choose how to represent tier membership, including whether it is stored directly or derived from existing promotion records, provided membership is durable and clear.
- Choose how the repair is implemented and verified. The existing dream pass already re-embeds active heuristics with NULL embeddings.
- Choose the review interface and workflow details, using the existing project heuristic and merge-proposal surfaces where practical.
- Choose the retrieval implementation for the consolidated set, while preserving project scoping and the existing caller-facing response shape unless a change is needed.
- Add focused migrations, tests, and documentation updates; `docs/data-model.md` is the repository's canonical table reference.

Acceptance criteria:
- The repair step completes before the vetting tooling is introduced. Active rules that were invisible because `heuristics.embedding` was NULL are repaired, and a check confirms there are no active NULL embeddings before the consumption switch.
- A human can review RAW rules and use both promotion doors: approve an LLM-generalised cluster or promote one rule verbatim. A dismissal or lack of approval leaves the rule out of CONSOLIDATED.
- Learn-time extraction continues writing to RAW without requiring consolidation. The review tooling makes the distinction between RAW and CONSOLIDATED clear.
- Every guidance retrieval path returns only eligible CONSOLIDATED rules. Every new citation path accepts only CONSOLIDATED rules, even when given a valid RAW heuristic ID.
- Retrieval relaxation is implemented only after the consumption switch and generalisation eval CI gate. Its evaluation reports before-and-after recall on the consolidated set.
- Tests cover tier membership, both promotion paths, rejection of RAW rules at retrieval and citation boundaries, project scoping, and the required stage order.
- Documentation explains the RAW/CONSOLIDATED distinction, promotion paths, and which rules retrieval can return.

Open questions:
- What exactly is included in “repair first”? Should it mean repairing active NULL embeddings only, or should it also address the uninformative `heuristics.quality_score` values?
- Does “writing freely into RAW” preserve the current Learn-stage confirmation before a row is written to `heuristics`, or should extraction write RAW rows without that confirmation?
- For verbatim singleton promotion, should CONSOLIDATED membership apply to the existing RAW row, or should promotion create a separate row and retain the RAW source? What provenance should reviewers see?
- What does “high recall” mean for acceptance: which recall measure and target should retrieval meet, and should `quality_score` remain a ranking tie-breaker?
- The generalisation eval currently uses a live LLM and skips when `LLM_API_KEY` is absent; the repository has no checked-in CI workflow. Should CI use a required live API credential, or should the gate be made deterministic another way?
- Should historical `heuristic_citations` that point to rules now classified as RAW remain as historical records, without being treated as new citations or current guidance?
Claude
- The human promotion queue is too much maintenance and mental overhead. With it removed, how does a rule that no cluster reaches ever become citable guidance? → raised: True, leaned: other. The draft explicitly requires human-approved promotion, including verbatim singleton promotion, and says no LLM or retrieval process may silently promote a rule. It does not raise automatic admission of unclustered standalone rules as an option; its promotion question is settled in the opposite direction from the later choice.
- Should Jev confirm the dream pass's own merge and generalisation proposals instead of the human? → raised: False, leaned: neither. The draft requires human approval for promotion and discusses approved generalisation, but it does not ask whether Jev should confirm the dream pass’s merge and generalisation proposals autonomously above a confidence threshold. It therefore does not raise the specific decision.
- Acceptance criterion item_1608847eb98d requires test_generalization_eval.py to be "a required CI check" whose failure "blocks the merge", but this repo has no CI pipeline at all (no .github/workflows, no CI service config; evals are opt-in via pyproject's addopts = "--ignore=tests/evals"). The eval also needs a live LLM, so it costs money and is non-deterministic. How should the phase-4 shipping gate be satisfied? → raised: True, leaned: other. The draft explicitly asks how to satisfy the generalisation-evaluation shipping gate when the eval uses a live LLM and there is no CI workflow. But it leaves the choice open; it does not recommend the chosen deterministic default-suite bench gate with the live eval remaining opt-in.
Claude
- The human promotion queue is too much maintenance and mental overhead. With it removed, how does a rule that no cluster reaches ever become citable guidance? → raised: True, leaned: other. The draft raises the promotion question directly: it requires promotion to be explicit and human-approved, with both promotion doors (LLM-generalised cluster or verbatim singleton) requiring human approval, and acceptance criteria state a dismissal or lack of approval leaves the rule out of CONSOLIDATED. This commits to human approval, the opposite of the later choice to auto-admit sound standalone rules via Jev without human review.
- Should Jev confirm the dream pass's own merge and generalisation proposals instead of the human? → raised: False, leaned: neither. The draft requires explicit human approval for promotion and keeps the human gate on merges, but it never takes up the specific question of whether an automated agent (Jev) should confirm the dream pass's merge/generalisation proposals above a confidence threshold. It only touches the general area of human vetting, so the question was not raised.
- Acceptance criterion item_1608847eb98d requires test_generalization_eval.py to be "a required CI check" whose failure "blocks the merge", but this repo has no CI pipeline at all (no .github/workflows, no CI service config; evals are opt-in via pyproject's addopts = "--ignore=tests/evals"). The eval also needs a live LLM, so it costs money and is non-deterministic. How should the phase-4 shipping gate be satisfied? → raised: True, leaned: other. The draft raises this exact question as an open question (whether CI should use a required live API credential or the gate be made deterministic another way) and as a blocking-CI-gate constraint, but it commits to the live-LLM eval as the blocking CI gate rather than choosing the deterministic bench split the person later picked.
Every decision is recorded with what was ruled out and why. That record is the evidence.