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 1
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 a human’s shaping decisions about heuristic-grounded spec items feed back into heuristic quality: an item kept through the move to building confirms its cited heuristic, while an item deleted or substantially rewritten rejects it. Record those outcomes as citation feedback, use them alongside heuristic usage citations in quality scoring, and make the feedback visible in the heuristic detail modal.

Constraints:
- Only record shaping verdicts for spec items that have an actual heuristic citation linked by `spec_item_id`; do not infer a citation from similar wording.
- Append shaping verdicts to `citation_feedback_events`, linked to the relevant `citation_id`, `heuristic_id`, `initiative_id`, and `spec_item_id`. Keep the existing `dismissed` feedback behavior distinct.
- Recompute `heuristics.quality_score` and its associated counts from the recorded signals. Preserve the existing Laplace score formula unless the owner explicitly chooses otherwise.
- Keep the existing draft-stage visibility boundary for the cited-heuristic UI and detail modal. Do not add a dashboard or task-board surface for these signals.
- Keep existing MCP input/output contracts stable; this initiative does not require an MCP contract change.

Discretion:
- Choose the service and persistence boundaries for recording verdicts, reusing the existing feedback path where appropriate.
- Choose concise, distinguishable feedback labels using the existing `feedback_type` column.
- Decide the modal layout for showing the new feedback, as long as it is traceable to the recorded heuristic citations and does not imply signals that were not recorded.
- Add focused migration and test coverage as needed without changing unrelated citation or lifecycle behavior.

Acceptance criteria:
- A linked heuristic receives a positive shaping verdict when its item is retained through the agreed start-building boundary, and a negative verdict when the item is deleted or meets the agreed rewrite rule.
- Uncited items do not create heuristic feedback. Existing citation dismissal behavior continues to work and remains separately identifiable.
- Each recorded feedback change is reflected in the heuristic quality score and associated counts according to the agreed weights; stored scores can be recomputed from the underlying events.
- The heuristic detail modal shows the new shaping feedback in a way that can be traced to real citation and spec-item records, while remaining within its existing draft-stage visibility boundary.
- Tests cover the positive and negative outcomes, the lifecycle trigger, score recomputation, and preservation of existing dismissal and MCP behavior.

Open questions:
- What exact weights should apply to extraction-time confirmations, shaping survival, usage citations, shaping rejection, and existing dismissals? The current scoring query gives cleanly completed confirmations a weight of 3.0, other confirmations 1.0, and usage citations 0.5. What should those become, and what measure or threshold should define a “meaningfully more dispersed” live-corpus score distribution?
- What qualifies as “substantially rewriting” an item? The existing `edit_item` path treats a text edit as substantive, but the initiative’s wording could mean that small wording corrections should not reject the heuristic.
- Should the verdict be recorded on every transition into building, including the automatic transition when evidence is first submitted from draft, or only on the explicit start-building action? If an initiative returns to draft and is reshaped, should another transition produce a new verdict?
- Should a verdict count once per cited heuristic and spec item, or once for every linked citation row? A single item can have multiple citation rows, which could otherwise give one human decision extra weight.
- Should historical shaping outcomes be backfilled to meet the live-corpus distribution goal? The code stores the current spec and citation links, but I found no spec revision history that reliably records whether an old item was deleted or rewritten before building.
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: chosen. The draft explicitly raises the score-distribution measure and threshold as an open question, and its criteria call for score recomputation. It does not specify how to verify dispersion, so it leaves that question open; the later choice adds a mechanism-based test exceeding 20 scores while checking live recompute correctness.
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's open questions raise the scoring weights and the definition of a 'meaningfully more dispersed' live-corpus score distribution, which is the same question the later decision addresses. But the draft leaves the verification approach and dispersion threshold open rather than committing to verifying the mechanism via a synthetic sweep, so it neither chose nor opposed the option taken.
Every decision is recorded with what was ruled out and why. That record is the evidence.