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-83 · memory · seed 2
Memory of this project (the product context the code does not carry):
Doen treats acceptance criteria as its primary progress and verification surface; the dashboard focuses human attention without becoming a task board. Organizational memory and retrieval should be grounded in the current project, traceable to real records, and tested for quality rather than treated as generic advice. Preserve explicit human-judgment and lifecycle boundaries, follow the selected rule over a more elaborate analogy, and keep established MCP contracts stable unless a scoped change is explicitly chosen and verified.

Heuristics:

honor-explicit-stage-visibility: When a lifecycle rule says a surface is rendered only at a particular stage, omit it entirely before that stage; visible-but-disabled is not equivalent. If multiple surfaces share the gate, use one shared predicate.
Traps: Discoverability and implementation convenience do not override an explicit stage boundary.

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

preserve-existing-mcp-contracts: Treat existing MCP input/output contracts as stable. For a distinct workflow, prefer an additive tool when appropriate; if a contract change is explicitly chosen, scope it and verify unaffected behavior across supported transports.
Traps: Do not change an established contract merely to reduce the number of tools, and do not assume compatibility without testing 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 without a newer explicit decision.

follow-selected-rule-over-analogous: When the person explicitly selects a simple eligibility or visibility rule over an analogous feature's more elaborate pattern, implement the selected 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.

protect-explicit-human-judgment: Enforce explicit human-judgment requirements at the decision or write boundary: an Advisor verdict must not auto-approve a criterion designated for human judgment. Automate only where the spec grants discretion and the match is sufficiently confident; otherwise escalate to the human.
Traps: A prompt instruction or UI affordance alone is not a hard gate; place the guard where the verdict is applied.

verify-mechanisms-when-live-data-cannot: Make acceptance criteria testable against available data. When the live corpus cannot yet exhibit a desired outcome, verify the mechanism with realistic fixtures and separately confirm correctness on the live recompute; state what future data is needed for the outcome to emerge.
Traps: Do not claim that tuning can produce distinctions the current input combinations mathematically cannot support, or leave the mechanism untested while waiting for organic data.

Title: Dream-Phase Corpus Health Pass

Intent: The heuristic corpus has a measurable citation-skew problem — a handful of heuristics are retrieved constantly while most never surface — traced in a read-only pilot to embedding-model granularity rather than heuristic wording. This initiative closes that gap through four coordinated changes: upgrading the embedding model from text-embedding-3-small to text-embedding-3-large with a full corpus re-embed and dimension migration; enabling the existing BD-73 reranker to recover the specificity lost by the larger model; introducing a staleness-decay signal so long-unused heuristics surface as review candidates rather than silently aging out; and wiring all of this into an on-demand MCP tool (and matching UI trigger) that runs a corpus-health pass using only Doen's existing extraction and gardener machinery, classifies surfaced heuristics into enforceable / verifiable / advisable buckets, and distinctly surfaces enforceable-shaped ones so a human can choose to promote them into spec constraints or lint checks. The desired outcome is a retrieval layer that recalls a heuristic when a paraphrase of its own principle arrives, a reranker that keeps specificity acceptable, a staleness signal that keeps the corpus alive, and a human-triggerable entry point that ties the three together.
Claude
Intent: Improve how Doen retrieves and reviews project heuristics. Move heuristic embeddings to text-embedding-3-large and re-embed the existing corpus, enable the existing BD-73 reranker to help preserve specificity, and add a staleness signal that makes long-unused heuristics candidates for review. Add an on-demand MCP tool and matching project-dashboard trigger that use Doen’s existing extraction and gardener machinery, classify surfaced heuristics as enforceable, verifiable, or advisable, and make enforceable-shaped candidates visible for human consideration.

Constraints:
- Keep heuristic health work grounded in the selected project and trace surfaced candidates to their real source records.
- Keep every embedding used together dimensionally consistent. The migration and re-embedding must cover the existing `decisions.embedding`, `memory.embedding`, `heuristics.embedding`, and derived `heuristic_labels.centroid` vectors, so retrieval does not compare vectors from incompatible models or dimensions.
- Enable the existing reranker without changing the established MCP input/output contract. Preserve its configured candidate-window bound and its existing fallback to the pre-rerank ordering on failure.
- Treat the enforceable/verifiable/advisable classifications as guidance, not approval. Do not automatically promote heuristics into spec constraints or lint checks, or automatically merge, supersede, or otherwise retire heuristics. A human makes promotion and lifecycle decisions.
- Make staleness candidates and classifications traceable to the underlying heuristic and relevant project records; do not present generated labels as verified facts.
- Keep the dashboard focused on review and attention rather than turning the health pass into a task board.

Discretion:
- Choose the implementation details for the re-embedding job, migration sequencing, progress reporting, and safe recovery from interrupted work.
- Use the existing project dashboard and heuristic-review surfaces for the matching UI trigger and results, keeping the interaction concise.
- Choose how to represent health-pass results and any non-destructive review suggestions, provided the source heuristic and any relevant evidence remain visible.
- Add fixture-based retrieval and reranking tests, and extend existing evaluation tooling where useful, without changing existing MCP tool contracts.

Acceptance criteria:
- The configured embedding model is text-embedding-3-large, and the chosen vector dimension matches its output and every migrated vector column.
- A full re-embedding completes for existing records, including derived label centroids, and the live recompute confirms there are no remaining vectors from the prior embedding space that participate in retrieval.
- Retrieval tests using realistic heuristic fixtures show that paraphrases of a heuristic’s principle can retrieve it. Record before-and-after evaluation results; do not claim a live-corpus improvement unless the live evaluation demonstrates it.
- The enabled reranker improves or preserves the agreed specificity measure on a controlled candidate set, while respecting its candidate window and retaining the original ordering when it fails.
- Staleness tests demonstrate that the configured signal identifies long-unused heuristics as review candidates without deleting or silently retiring them. Verify the mechanism with fixtures even if the live corpus does not yet contain suitable examples.
- The MCP health pass and matching dashboard trigger run the same project-scoped operation and return traceable classifications. They do not modify specs or apply heuristic lifecycle decisions without a human.
- Existing MCP tools retain their inputs and outputs, and the existing retrieval response shape remains unchanged.

Open questions:
- Should text-embedding-3-large use its native 3072 dimensions, or a reduced dimension if the configured embedding endpoint supports it?
- What should “unused” mean for staleness: not retrieved, retrieved but not cited, or both? What time window should make a heuristic stale, and should the signal affect retrieval ranking, the health-pass review list, or both?
- What records should an on-demand health pass inspect: the existing active heuristic corpus, historical completed initiatives for fresh extraction, or both? If extraction or gardening creates proposals, should the pass leave all such proposals pending for human review?
- What do enforceable, verifiable, and advisable mean for this product, and is this initiative only surfacing promotion candidates or also building a human-facing action to promote one into a spec constraint or lint check?
- What minimum retrieval and specificity evaluation results should count as acceptable? The initiative describes the desired direction but does not set numerical thresholds.
Claude
- The 1536→3072 dimension migration forced dropping the HNSW indexes on decisions/memory/heuristics.embedding — pgvector's plain `vector` type caps indexed columns at 2000 dims, and 3072 exceeds that. The migration as built leaves these columns unindexed (full cosine scan on every get_context call). At the current corpus scale (~150-200 rows per table) this is fast, but it's a real architectural change from the indexed status quo, and it wasn't something the spec's discretion explicitly covered (it covered the resize *mechanism*, not whether an index exists afterward). Before I run this migration against the live production Railway DB, how should the index gap be handled? → raised: False, leaned: neither. The draft addresses embedding dimensions and migration sequencing, but never raises whether the 3072-dimensional columns should remain indexed or how to handle losing their HNSW indexes. It leaves implementation details open, but that does not specifically raise the index gap.
Claude
- The 1536→3072 dimension migration forced dropping the HNSW indexes on decisions/memory/heuristics.embedding — pgvector's plain `vector` type caps indexed columns at 2000 dims, and 3072 exceeds that. The migration as built leaves these columns unindexed (full cosine scan on every get_context call). At the current corpus scale (~150-200 rows per table) this is fast, but it's a real architectural change from the indexed status quo, and it wasn't something the spec's discretion explicitly covered (it covered the resize *mechanism*, not whether an index exists afterward). Before I run this migration against the live production Railway DB, how should the index gap be handled? → raised: True, leaned: neither. The draft raises the dimension question (native 3072 vs reduced dimension) and requires dimensional consistency across migrated vector columns, but it never addresses indexing (HNSW/halfvec) or whether the migrated columns remain indexed. The specific question of the index gap is not taken up, so it neither commits to nor rejects the halfvec+HNSW choice.
Every decision is recorded with what was ruled out and why. That record is the evidence.