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-78 · memory · seed 2
Memory of this project (the product context the code does not carry):
Doen is an Advisor-led spec-and-agent collaboration system: acceptance criteria are its primary progress and verification surface, while the dashboard should focus human attention without becoming a task board. Its organizational memory and retrieval should make guidance project-specific and traceable, not generic or fabricated. Preserve explicit human-judgment and lifecycle-visibility boundaries, follow the chosen rule rather than a more elaborate analogue, and keep established MCP contracts stable unless a scoped change is explicitly chosen and verified.

Heuristics:

honor-explicit-stage-visibility: For lifecycle-gated UI, follow the explicit render and visibility semantics literally. A module specified as hidden before its stage stays unrendered; visible-but-disabled is not a substitute. Where the same gate applies across surfaces, use a shared predicate.
Traps: Discoverability and implementation convenience do not override an explicit stage boundary.

prefer-outcome-over-removed-ui-counts: Treat a correction removing a specific exact-count requirement narrowly: do not restore that removed count, but do not infer a general ban on independently specified action counts.
Traps: The removed requirement was exactly two follow-up actions; it does not reject every separately specified interaction count.

preserve-existing-mcp-contracts: Treat existing MCP tool input/output contracts as stable. For a distinct workflow, prefer an additive dedicated tool when that is the chosen design. If a contract change is explicitly required, scope it and verify unaffected behavior across supported transports.
Traps: Do not change an established contract merely to reduce the number of tools; do not assume compatibility without verifying it.

research-findings-are-executor-owned: For research_findings, use pure last-write-wins semantics: a later executor MCP write overwrites a human edit. Document this clearly; the field is the executor's working document, with human annotation expected after investigation concludes.
Traps: Do not add locking or version tracking, or imply that human edits are protected from a later MCP write, without a newer explicit decision.

follow-selected-rule-over-analogous: When the person explicitly chooses a simple eligibility or visibility rule over a more elaborate pattern used by an analogous feature, implement the chosen rule as stated. For the importance recommendation, suppress it only when the project has exactly one initiative.
Traps: Consistency with another feature is not a reason to substitute its condition for the selected rule.

Title: Shaping Edits as Heuristic Feedback

Intent: Today, heuristic quality scores are dominated by extraction-time auto-confirmations (weight 3.0) while actual behavioral signals — human shaping decisions and usage citations — are underweighted. This means 74 of 98 active heuristics share the same score of 0.800, making the quality signal nearly useless for ranking. This initiative closes the heuristic feedback loop by treating what a human does to a heuristic-grounded spec item during shaping as the definitive verdict on that heuristic: keeping the item through start-building confirms it; deleting or substantially rewriting it rejects it. These verdicts are recorded as new citation_feedback_events rows, wired into the quality score accumulation, and surfaced in the heuristic detail modal. Simultaneously, score weights are rebalanced so that shaping-survival and usage citations dominate, and extraction-time auto-confirmation drops to a near-prior nominal weight — producing a meaningfully more dispersed quality distribution across the live corpus.
Claude
Intent: Make human choices made while shaping a spec a traceable signal about the heuristics that informed it. At the transition into building, surviving cited items should count in favor of their heuristics, while deleted or substantially rewritten items should count against them. Rebalance the quality score so this shaping signal and usage citations matter more than extraction-time confirmations, and make the signal understandable in the heuristic detail modal.

Constraints:
- Record feedback at the start-building boundary, not as a verdict on every intermediate edit. Include both the manual transition and any other path that moves an initiative from draft to building, if that is the agreed boundary.
- Keep feedback attributable to the heuristic, initiative, and cited spec item. Do not treat unrelated spec items as evidence for a heuristic.
- Keep shaping feedback distinguishable from the existing `dismissed` feedback in `citation_feedback_events`; a dismissal means the citation does not apply here and is not the same judgment as deleting or rewriting an item.
- Recompute `quality_score` from recorded events. Keep the existing Laplace-smoothed score formula unless a different formula is explicitly chosen; the stated change is to the signal weights.
- Do not change established MCP tool input/output contracts for this initiative.
- Keep human judgment and lifecycle visibility boundaries intact, and do not turn the dashboard into a task board.

Discretion:
- I may choose the migration and implementation details for recording shaping verdicts, using the existing `citation_feedback_events` table if its current columns support the agreed event meanings.
- I may choose how score recomputation is implemented and tested, provided feedback is not silently lost when the start-building transition succeeds.
- I may choose the presentation and wording of the shaping signal in the existing heuristic detail modal once its contents and visibility are agreed.

Acceptance criteria:
- At the agreed start-building boundary, heuristic-grounded spec items produce attributable positive or negative feedback according to the agreed keep, delete, and rewrite rules.
- The feedback is reflected in the affected heuristics' quality scores, including after the applicable historical backfill, and the score calculation has tests for positive, negative, and mixed evidence.
- The rebalanced scoring yields a more useful spread across the live heuristic corpus than the current concentration described in the initiative, without changing the score formula unless explicitly agreed.
- The heuristic detail modal shows the agreed shaping-feedback information alongside the quality score, in a way that makes the evidence behind the signal traceable.
- Existing citation dismissal behavior and MCP contracts continue to work unchanged.

Open questions:
- What counts as a “substantial rewrite”? Should any text change count, should there be a defined comparison rule, or should a person explicitly judge whether the meaning changed? Existing citations link to a spec item ID but do not retain the cited text as a baseline, so detecting rewrites will need an agreed approach.
- At start-building, does “keeping” mean the item is still present, or must it also be confirmed? Should edits or deletions made after reverting an initiative to draft replace an earlier verdict, add another event, or leave the first verdict in place?
- A heuristic can have multiple citations for the same item, including drafting and classification citations. Should one item-level verdict count once per heuristic, or once per citation? What feedback values should distinguish a shaping confirmation from a shaping rejection?
- What exact positive and negative weights should shaping outcomes and usage citations receive, and what weight should extraction-time confirmations receive? The current score uses 3.0 for a cleanly completed confirmation and 0.5 per eligible usage citation; the initiative describes relative priorities but does not specify replacement values or eligibility rules.
- Should historical feedback be backfilled from existing initiatives and their current specs? Existing data can link citations to item IDs, but does not preserve the original item text, so past deletions or substantial rewrites may not be recoverable.
- What should the heuristic detail modal show—such as shaping confirmations and rejections as counts, linked initiatives/items, or both—and when should that information be visible?
Claude
- Acceptance criterion item_91be5a17ec5d requires the live-corpus recompute to yield 'meaningfully more than six distinct score values (e.g. >20)'. The live corpus currently contains exactly 6 distinct raw event-count combinations (78 of 98 heuristics have a single confirmation and zero citations; zero context='drafting' citations exist yet), so no weight rebalance can mathematically produce more than 6 distinct scores today — dispersion can only emerge as new shaping-verdict and citation events accumulate. How should this criterion be verified? → raised: True, leaned: neither. The draft explicitly requires a more useful score spread across the live heuristic corpus, but leaves the verification method open. It does not specify verifying dispersion through a mechanism test or accepting that live-corpus dispersion will emerge as future events accumulate.
Claude
- Acceptance criterion item_91be5a17ec5d requires the live-corpus recompute to yield 'meaningfully more than six distinct score values (e.g. >20)'. The live corpus currently contains exactly 6 distinct raw event-count combinations (78 of 98 heuristics have a single confirmation and zero citations; zero context='drafting' citations exist yet), so no weight rebalance can mathematically produce more than 6 distinct scores today — dispersion can only emerge as new shaping-verdict and citation events accumulate. How should this criterion be verified? → raised: True, leaned: neither. The draft raises the dispersion question directly in its acceptance criteria: 'The rebalanced scoring yields a more useful spread across the live heuristic corpus than the current concentration described in the initiative.' It also leaves the exact weights open in the open questions. But it does not commit to how that spread should be verified — mechanism test vs. literal live-corpus check — so it neither chose nor rejected the later option.
Every decision is recorded with what was ruled out and why. That record is the evidence.