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-101 · stateless · seed 0
Title: Close Standalone Admission as Citability Path

Intent: The two-tier heuristic corpus introduced in BD-97 was meant to ensure retrieval and citation only draw from vetted material. In practice the standalone admission door — Jev auto-admitting any rule judged sound in isolation — passed 96% of rules, making the tier boundary meaningless while every flywheel metric continued to look healthy. This change makes a confirmed consolidation (merge or generalisation, kind ≠ retire) the sole route into the citable tier, removing standalone admission as a membership criterion. The implementation is already in place: a shared recursive-CTE predicate, an updated origin enum, a repaired retirement gate, updated tests, and updated docs. This spec governs and verifies that work.
Claude
Intent: Make confirmed consolidation—not a standalone judgment that a rule sounds good—the only way a heuristic enters the citable tier. This restores the boundary between raw extraction material and guidance available to retrieval and citation, so the tier cannot be made meaningless by widespread Jev admissions.

Constraints:
- An active heuristic is eligible as consolidated guidance only when it is the survivor of a confirmed `near_duplicate` or `generalization` proposal. A standalone admission decision must not grant tier membership.
- A `retire` proposal is not a consolidation and must not grant, erase, or override a heuristic’s consolidation origin. Retirement remains a separate, human-gated path; retired heuristics must not be retrievable or citable as active guidance.
- Use one shared recursive-CTE predicate for consolidated-tier checks wherever membership controls retrieval, citations, or the retirement gate. It must follow the `replaces` lineage so a correction to a consolidated rule does not lose that status.
- Keep raw heuristics available to the extraction baseline, but do not expose them as guidance or accept citations for them.
- The `HeuristicOrigin` values must describe extraction or confirmed consolidation; standalone admission must not appear as an origin.
- Keep this change focused on tier membership and its retirement guard. Do not otherwise change retrieval ranking, citation behavior, or the broader heuristic flywheel.

Discretion:
- Choose the exact SQL structure and aliases for the shared recursive-CTE predicate, provided its lineage and proposal-kind rules are clear and the shared call sites use it consistently.
- Organize or extend tests in the existing test modules, including `backend/tests/test_bd97.py` and retirement-related coverage in `backend/tests/test_bd68.py`.
- Make corresponding wording changes in `docs/heuristic-flywheel.md`, `docs/data-model.md`, and `docs/design-principles.md` so they describe the implemented rule rather than the former standalone-admission path.

Acceptance criteria:
- A raw singleton remains outside the consolidated tier even if a standalone admission judgment would previously have admitted it; it is not returned by consolidated-only retrieval and a citation attempt writes no citation.
- A rule that survives a confirmed `near_duplicate` or `generalization` proposal is in the consolidated tier and can be retrieved and cited, subject to the existing project and active-rule checks.
- Tier membership is preserved through the `replaces` chain, while pending or dismissed consolidation proposals do not grant membership.
- A retire proposal does not establish or replace consolidation origin. The retirement gate accepts only an active consolidated heuristic, and a confirmed retirement removes it from active retrieval and citation.
- `HeuristicOrigin` no longer represents standalone admission, and tests cover the permitted origins and the retirement case.
- The shared predicate is used consistently by the retrieval, citation, and retirement checks; regression tests verify those paths agree.
- The flywheel and data-model documentation state that confirmed merge/generalisation is the sole route into the citable tier and no longer describe standalone admission as a membership route.

Open questions:
- (none)
Claude
- Acceptance criterion item_7a7a27639990 requires that test_bd64, test_bd68, test_bd76, test_bd77 and test_bd97 all pass "without modification to their assertions — only fixture setup via consolidate_heuristic replaces admitted_at shortcuts", and its verify detail says any change to assertion logic must be flagged as out of scope. That holds for four of the five files: bd64, bd68, bd76 and bd77 needed only fixture rewiring. It cannot hold for test_bd97, because that file IS the BD-97 tier contract — its assertions state that a confidently admitted rule is in the tier and is citable, which is precisely the proposition BD-101 reverses. Three of its assertions were necessarily inverted (an admitted rule is now neither in the tier nor citable; the retirement gate now requires consolidation rather than admission). How should the criterion be recorded? → raised: True, leaned: chosen. The draft explicitly covers extending tests in `test_bd97.py` and changes its tier contract from standalone admission to confirmed consolidation. It therefore raises whether BD-97 assertions should change, and its direction supports treating those inversions as an in-scope exception.
- Acceptance criterion item_527cc1f1d2ed requires a metric snapshot of build-doen's citable-rule count and 30-day citation count "immediately before and immediately after deployment". The before-snapshot exists and is measured: on a full restore of the production database, 5 citable of 164 active, 45 citations in the last 30 days, and 142 rules that were citable under BD-97 and no longer are. The after-snapshot cannot exist yet — the change is committed on branch bd-101-consolidation-only-tier and nothing is deployed; production still runs the old predicate. Deploying is not in this spec's scope and is not a call I should make unilaterally. How should this criterion be handled? → raised: False, leaned: neither. The draft addresses heuristic tier membership, retrieval, citations, and retirement, but does not raise the later question of measuring pre- and post-deployment metrics or how to handle a post-deployment snapshot that cannot yet exist.
Claude
- Acceptance criterion item_7a7a27639990 requires that test_bd64, test_bd68, test_bd76, test_bd77 and test_bd97 all pass "without modification to their assertions — only fixture setup via consolidate_heuristic replaces admitted_at shortcuts", and its verify detail says any change to assertion logic must be flagged as out of scope. That holds for four of the five files: bd64, bd68, bd76 and bd77 needed only fixture rewiring. It cannot hold for test_bd97, because that file IS the BD-97 tier contract — its assertions state that a confidently admitted rule is in the tier and is citable, which is precisely the proposition BD-101 reverses. Three of its assertions were necessarily inverted (an admitted rule is now neither in the tier nor citable; the retirement gate now requires consolidation rather than admission). How should the criterion be recorded? → raised: True, leaned: other. The draft's acceptance criteria require tests covering permitted origins and the retirement case, and its discretion allows extending tests in existing modules including test_bd97.py, but it never addresses the question of how to record the 'no modification to assertions' criterion or whether test_bd97's assertion inversions are an in-scope exception. It touches the same area (test_bd97 coverage) without raising the specific question, and it does not commit to the chosen option.
- Acceptance criterion item_527cc1f1d2ed requires a metric snapshot of build-doen's citable-rule count and 30-day citation count "immediately before and immediately after deployment". The before-snapshot exists and is measured: on a full restore of the production database, 5 citable of 164 active, 45 citations in the last 30 days, and 142 rules that were citable under BD-97 and no longer are. The after-snapshot cannot exist yet — the change is committed on branch bd-101-consolidation-only-tier and nothing is deployed; production still runs the old predicate. Deploying is not in this spec's scope and is not a call I should make unilaterally. How should this criterion be handled? → raised: False, leaned: neither. The draft is about making confirmed consolidation the only route into the citable tier; it never addresses how to handle a metric-snapshot acceptance criterion that requires a post-deployment measurement, nor the choice between pre-deploy snapshot, local before/after comparison, or failing the criterion. The question is not raised, so it cannot lean.
Every decision is recorded with what was ruled out and why. That record is the evidence.