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-91 · 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 records, and tested against explicit quality baselines. 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 gates a surface to a particular stage, omit it entirely before that stage; visible-but-disabled is not equivalent. Use one shared predicate when multiple surfaces share the gate.
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: A removed count for one observation interaction does not settle independently specified counts or affordances.

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, or 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, test 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 tuning can produce distinctions the current inputs cannot support, or leave the mechanism untested while waiting for organic data.

preserve-indexed-retrieval-paths: When a production data migration changes embedding dimensions or storage types, account for retrieval indexes as part of the migration. Do not leave a production retrieval path unindexed merely because the corpus is currently small.
Traps: A migration's data-conversion success does not establish that its retrieval performance and index coverage are acceptable.

Title: Migrate _classify_intent Dedup Call to Jev Provider

Intent: The `_classify_intent` function in `backend/app/services/learn.py` currently uses a general-purpose `StructuredLLM` call with a free-text-then-parse JSON schema (`DEDUP_SCHEMA` + `heuristic-dedup.txt`) to classify a newly-drafted heuristic rule as `"new"`, `"confirms:<id>"`, or `"supersedes:<id>"` against up to 12 similar active heuristics. This is a closed-set classification — exactly the problem category the Jev provider (built in BD-90) solves with its typed Choice primitive. The goal is to replace only the standalone dedup LLM call inside `_classify_intent` (the fallback path in `draft_heuristics`) with a Jev Choice call, preserving the existing `INTENT_CLASSIFICATION_ERROR` sentinel behavior on failure, and validate the swap against the flywheel bench using `heuristic_proposals.jsonl` as the gold-label source — leaving the BD-48 baseline-synthesis combined draft+classify call entirely untouched.

Two decisions were resolved by the human before work begins: (1) confidence handling — this is a wire-level swap only; a well-formed Jev classification is accepted exactly as a well-formed LLM classification is today, regardless of confidence (no new held/review state for low-confidence-but-successful calls; confidence may still be logged for future tuning). (2) rollout — once the bench comparison shows the Jev path is not worse than the prior LLM path, `_classify_intent`'s LLM call is replaced outright, matching BD-90's precedent — no feature flag, no dual-path toggle.
Claude
Intent: Replace only the standalone deduplication call in the fallback path of `draft_heuristics` with Jev’s typed Choice provider. The classifier will choose among `new`, `confirms:<id>`, and `supersedes:<id>` for the proposed rule and its similar active candidates. Before switching production to Jev outright, compare it with the prior LLM path using labels in `backend/tests/bench/corpus/heuristic_proposals.jsonl`.

Constraints:
- Leave the BD-48 baseline-synthesis combined draft-and-classify path in `backend/app/services/learn.py` untouched; this change applies only to the separate fallback deduplication call.
- Keep candidate retrieval and its existing project, active-heuristic, and up-to-12-candidate behavior unchanged.
- A valid Jev choice is accepted regardless of confidence. Do not add a confidence threshold, low-confidence review state, or other new lifecycle state; confidence may be logged.
- Preserve the existing distinction between classification failures and unrecognised results: a Jev call failure must log and return `INTENT_CLASSIFICATION_ERROR`, so the existing error-hold path remains in effect; an unrecognised classification continues to fall back to `new` with a log.
- Do not add a production feature flag or dual-path toggle. Once the agreed bench comparison passes, replace the production call outright.
- Do not change external APIs, MCP contracts, or the behavior of `confirm_heuristics`.

Discretion:
- Choose how to construct the Jev Choice question and its options from the proposed rule and candidate IDs, while ensuring its selected option maps unambiguously to the existing intent strings.
- Choose the internal injection and test-double approach for Jev, following the patterns in `backend/app/providers/jev.py` and `backend/tests/fakes.py`.
- Choose the bench harness implementation and how confidence is logged, provided the comparison uses the same labeled cases for both paths and does not put a dual path into production.

Acceptance criteria:
- Tests show that Jev receives the proposed rule and retrieved candidates, and that each offered selection (`new`, `confirms:<id>`, `supersedes:<id>`) maps to the corresponding stored proposal intent.
- Tests show that a successful, valid choice is accepted even at low confidence, and that no Jev call is needed when there are no candidates.
- A Jev call failure returns `INTENT_CLASSIFICATION_ERROR`; through `draft_heuristics`, the proposal follows the existing error-hold behavior rather than being stored as `new`, and the failure is logged.
- A malformed or unrecognised choice follows the existing logged `new` fallback behavior.
- The bench compares Jev and the prior LLM path against labeled records from `backend/tests/bench/corpus/heuristic_proposals.jsonl`, using exact intent including target ID, and demonstrates that Jev meets the agreed non-regression bar.
- Relevant existing extraction tests, including coverage in `backend/tests/test_bd31.py` and `backend/tests/test_bd79.py`, pass; the BD-48 path remains unchanged.

Open questions:
- What exactly counts as “not worse” for the bench gate? I propose comparing exact-intent accuracy—including the selected heuristic ID—on the same records with non-null labels, and requiring Jev’s accuracy to be at least the prior LLM path’s. Should that be the acceptance bar, or should the comparison use a different metric or class-specific guard?
Claude
- A controlled bench comparison (same 186 historical gold cases, same reconstructed candidate sets — only the classifier swapped) shows Jev's dedup classification is meaningfully worse than the old StructuredLLM path: 55.91% family-level accuracy (new/confirms/supersedes) vs 67.74% for the old path — about 12 points worse, roughly 22 more misclassifications out of 186. This fails the confirmed acceptance bar ('Jev path not worse than prior path'). Likely cause: heuristic-dedup-jev.txt's rubric inherits the old prompt's 'prefer confirms over new when the core insight is the same' bias, and since candidates are always the top-12 NEAREST neighbors by embedding (always superficially similar even for genuinely novel rules), Jev may be over-triggering confirms/supersedes on rules that are actually new. How do you want to proceed? → raised: True, leaned: neither. The draft explicitly raises the bench acceptance bar and asks whether Jev must be no worse than the prior LLM path. It does not specify what to do if Jev fails that bar, so it neither recommends nor commits to iterating on the rubric and re-measuring.
Claude
- A controlled bench comparison (same 186 historical gold cases, same reconstructed candidate sets — only the classifier swapped) shows Jev's dedup classification is meaningfully worse than the old StructuredLLM path: 55.91% family-level accuracy (new/confirms/supersedes) vs 67.74% for the old path — about 12 points worse, roughly 22 more misclassifications out of 186. This fails the confirmed acceptance bar ('Jev path not worse than prior path'). Likely cause: heuristic-dedup-jev.txt's rubric inherits the old prompt's 'prefer confirms over new when the core insight is the same' bias, and since candidates are always the top-12 NEAREST neighbors by embedding (always superficially similar even for genuinely novel rules), Jev may be over-triggering confirms/supersedes on rules that are actually new. How do you want to proceed? → raised: True, leaned: neither. The draft's open question explicitly asks what the bench gate should be and whether Jev's accuracy must meet the prior path's, so the question of what to do when the comparison fails was in scope. But the draft commits to replacing the production call outright once the bench passes and does not address the failure case; it neither endorses iterating on the rubric nor the other options, leaving it open.
Every decision is recorded with what was ruled out and why. That record is the evidence.