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 1
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 Doen’s heuristic retrieval and keep its corpus useful as it ages. The work upgrades embeddings and re-embeds the relevant records, turns on the existing BD-73 reranker to recover specificity, and adds a staleness signal that helps surface heuristics for review. It also adds an on-demand, project-grounded corpus-health pass through an MCP tool and a matching dashboard trigger. The pass uses Doen’s existing extraction and gardener machinery, groups surfaced heuristics as enforceable, verifiable, or advisable, and makes enforceable-shaped items distinct so a human can decide whether to promote them into spec constraints or lint checks.

Constraints:
- Keep the health pass grounded in the current project and trace each surfaced heuristic or finding to real heuristic and initiative records. Do not return generic advice or unsupported claims.
- Keep existing MCP contracts stable. Add a separate tool for this workflow rather than changing the behavior or inputs and outputs of existing tools such as `get_context`; verify existing behavior over both supported MCP transports.
- Coordinate the embedding model and dimension change across the vectors used by retrieval: `decisions.embedding`, `memory.embedding`, `heuristics.embedding`, and the derived `heuristic_labels.centroid`. Re-embed existing records and rebuild derived vectors so retrieval never compares vectors from incompatible spaces.
- The reranker may reorder retrieved candidates, but must not add or remove candidates. Preserve its bounded candidate window and its existing fallback to the original order if reranking fails.
- Staleness may identify heuristics for review, but must not silently delete, retire, merge, supersede, or promote them. Keep existing human approval boundaries, including the gardener’s human-gated merge proposals.
- The health pass must not automatically write promoted items into a spec or create lint enforcement. A human makes that decision.
- Keep the dashboard focused on human attention; the new trigger and results must not turn it into a task board.

Discretion:
- Choose the migration and re-embedding mechanics, including batching, retry behavior, and how to rebuild derived embeddings safely.
- Choose the additive MCP tool’s parameter and result shape, and how it reports partial failures, while preserving traceability and the existing MCP contracts.
- Choose the dashboard placement and presentation for the trigger, progress, and returned findings.
- Choose implementation details for the health pass and its use of existing extraction and gardener machinery, once the source records and category meanings are settled.
- Build realistic, project-like evaluation fixtures and decide how to organize the retrieval and staleness tests.

Acceptance criteria:
- After the migration and backfill, queries work across the re-embedded decision, memory, and heuristic vectors, and the derived heuristic label centroids use the same embedding space. Verify this against the live recompute as well as migration tests.
- A fixed evaluation set of principle paraphrases is replayed with the old and new embeddings. The results report whether the new model recalls the intended, source-backed heuristics; any target for acceptable improvement is agreed before implementation.
- Reranker tests include realistic, similar-but-distinct heuristics and check that specificity is preserved where expected. Tests also confirm the reranker cannot change the candidate set and that a failure leaves the pre-rerank ordering intact.
- Staleness tests use fixtures with different retrieval and usage histories to verify the agreed staleness behavior. The live recompute reports which real heuristics the signal would surface, without automatically changing their lifecycle state.
- The new MCP tool and dashboard trigger run the health pass for the intended project, return traceable findings in the three agreed categories, and distinguish enforceable-shaped items. Tests confirm they do not write to specs or apply lint checks without a human decision.
- Regression tests confirm that existing MCP tools, including `get_context`, retain their contracts and behavior over both supported transports.
- If the live corpus cannot demonstrate the desired recall or specificity outcome, report the tested mechanism separately and state what additional project data would be needed to demonstrate that outcome.

Open questions:
- Which records should the on-demand pass examine: the active heuristic corpus, completed initiatives’ source records through extraction, gardener results, or some defined combination? Should it create new extraction or merge proposals, or only review existing results?
- What do “enforceable,” “verifiable,” and “advisable” mean for this product? Should uncertain classifications be shown as uncertain or held for human review rather than assigned a bucket?
- Does this initiative only surface enforceable-shaped items for a human to act on elsewhere, or should it also build an explicit flow for promoting one into a spec constraint or lint check?
- What counts as “unused” for staleness: time since retrieval, time since citation, retrieved-but-not-used behavior, or a combination? Should the signal only surface review candidates, or also affect retrieval ordering? What review threshold or time window should it use?
- What recall and specificity measures, evaluation set, and minimum acceptable improvement should determine whether the embedding and reranker changes succeeded?
- The existing merge and label similarity settings were chosen for the small model. Should they be recalibrated for the new embedding model, and what behavior should remain unchanged?
- Should the new embedding model and dimensions become the default for every deployment, including self-hosted configurations, or is the rollout limited to a particular deployment?
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 explicitly requires coordinating the embedding dimension change across retrieval vectors and ensuring retrieval uses compatible spaces, but it does not raise whether those vectors remain indexed or how to handle the index loss above pgvector’s dimension limit. The later choice to use halfvec + HNSW is therefore not an option the draft recommends or rejects.
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's discretion covers the migration and re-embedding mechanics (batching, retry, rebuilding derived embeddings) and the constraint requires coordinating the embedding model/dimension change across vectors, but it never raises the question of whether the resulting 3072-dim columns remain HNSW-indexed or lose their index. The index gap is a distinct architectural question the spec did not put before the builder, so it was not raised and therefore leaned neither.
Every decision is recorded with what was ruled out and why. That record is the evidence.