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 · memory · seed 0
Memory of this project (the product context the code does not carry):
Acceptance criteria are Doen’s primary progress and verification surface; the dashboard focuses attention without becoming a task board. Enforce explicit human-judgment and lifecycle boundaries in the decision or write path, and preserve MCP contracts unless a scoped change is explicitly chosen and verified. Prefer measurable checks and evaluations proportionate to the decision, using deterministic mechanism tests when live data or paid model calls are unsuitable. Honor explicitly chosen tradeoffs and bounded automation; delegation does not imply permission to automate retirement.

Heuristics:

honor-explicit-stage-visibility: Implement the person’s selected visibility or eligibility rule as stated, rather than substituting an analogous feature’s pattern. If a surface is gated to a lifecycle stage, omit it before that stage and use one shared predicate where multiple surfaces share the gate.
Traps: Discoverability or consistency with another feature does not override the selected boundary.

prefer-outcome-over-removed-ui-counts: If the person removes an exact interaction-count criterion, do not restore it without new direction or infer a blanket ban on separately specified affordances. If remaining criteria specify incompatible counts, surface the conflict instead of silently carrying both.
Traps: A removed count is not a global ban, but contradictory criteria should not silently coexist.

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 tool count, 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.

protect-explicit-human-judgment: Enforce explicit human-judgment requirements at the verdict 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.

delegate-bounded-corpus-judgment: When the person explicitly removes a mandatory human queue for heuristic-corpus admission or consolidation, implement the chosen Jev judgment above its confidence threshold and leave borderline cases queued. Keep retirement human-gated unless explicitly changed.
Traps: Delegation for admission, merge, or generalisation is not blanket permission to automate retirement.

make-acceptance-criteria-measurable: State critical acceptance conditions as observable checks. When live data cannot exhibit a desired outcome, test the mechanism with realistic fixtures and separately confirm correctness on the live recompute. For a repeatable merge gate, use a deterministic default-suite check; keep live-model evals opt-in when they are paid or nondeterministic, and amend criteria that assume nonexistent CI infrastructure.
Traps: Do not claim tuning can create distinctions unsupported by current inputs, or call a nondeterministic live eval a reliable merge gate.

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: Successful data conversion does not establish acceptable retrieval performance or index coverage.

benchmark-classifier-replacements: Before replacing a behavior-changing classifier or provider, compare it with the incumbent on the same frozen, representative cases and candidate inputs. Scale the evaluation to the decision: a simple classification may need only its required fixture eval, while a subtle semantic judgment may warrant a reproducible bench. If the comparison regresses against the acceptance bar, iterate and remeasure before shipping; describe agreement with an incumbent as a proxy, not ground-truth accuracy.
Traps: Do not compare different cases or candidate sets, skip remeasurement after rubric changes, or require a heavier bench by analogy alone.

retain-accepted-drift-status-tradeoff: Keep the DriftReportStatus collapse without a separate trace for reports resolved by creating an initiative. The resulting narrow undercount in the recurring-drift signal was explicitly accepted to avoid schema complexity.
Traps: Do not reintroduce metadata solely to restore this signal unless a newer explicit decision changes the tradeoff.

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: BD-97 introduced a RAW/CONSOLIDATED boundary so only vetted heuristics become citable guidance. Standalone admission made that boundary ineffective: a rule judged sound in isolation could enter the citable tier without being consolidated. Close that route so a confirmed merge or generalisation is the only way into the citable tier, while keeping retirement a human-owned decision.

Constraints:
- Determine citable eligibility with one shared recursive-CTE predicate. A heuristic qualifies only when it, or a heuristic in its `replaces` lineage, is the survivor of a confirmed `heuristic_merge_proposals` row whose `kind` is a consolidation (`near_duplicate` or `generalization`). A standalone admission marker such as `admitted_at` is not sufficient.
- Use the shared eligibility rule at the consumption-retrieval filter, the `record_heuristic_citation` write boundary, and the `raise_retire_proposal` gate. Preserve project scoping and active-versus-retired checks. Raw heuristics may remain available to the extraction baseline, but must not become citable guidance.
- Do not let a Jev verdict or a direct standalone-admit path make a heuristic citable. Preserve the existing consolidation judgment policy: sufficiently confident merge/generalisation proposals may be auto-confirmed, while borderline proposals remain pending. `retire` proposals must never be auto-confirmed.
- Keep `HeuristicOrigin` limited to origins supported by the surviving model: `extracted`, `merged`, and `generalized`. A confirmed `retire` row must not establish eligibility or change a heuristic’s origin.
- Preserve existing MCP input/output contracts. In particular, keep the current `run_dream_phase` response shape; if it includes `admitted` and `held`, keep those keys with empty lists rather than reporting standalone admissions.
- Keep the change scoped to this eligibility boundary. Do not redesign retrieval ranking or alter unrelated corpus behavior.

Discretion:
- Choose the internal SQL structure and naming for the shared predicate, provided the recursive lineage and all three decision points use the same rule.
- Choose where to place deterministic database-backed tests, following existing backend test conventions.
- Decide whether obsolete standalone-admission bookkeeping is removed or retained as inert historical/compatibility data. It must not affect citable eligibility or be writable as a way to grant it.

Acceptance criteria:
- Deterministic fixture tests show that an active standalone heuristic—including one with a legacy `admitted_at` value but no qualifying consolidation—does not appear in consolidated-only `get_context` results and produces no `heuristic_citations` row when passed to `record_heuristic_citation`.
- Fixture tests show that a survivor of a confirmed `near_duplicate` or `generalization` proposal is eligible for consolidated retrieval and citation, and that a successor reached through `replaces` retains eligibility.
- Tests show that pending or dismissed consolidation proposals do not grant eligibility, and that a confirmed `retire` proposal does not grant eligibility or change the derived origin. The retirement gate uses the same eligibility rule as retrieval and citation.
- Tests show that dismissing a citable rule can raise a pending retire proposal, while dismissing a standalone-only rule cannot. A high-confidence Jev response still cannot confirm a `retire` proposal without the human confirmation path.
- A dream-phase test confirms there is no standalone admission judgment or write. Its existing response shape remains unchanged, with `admitted` and `held` empty if those keys are present; the existing MCP contract tests pass unmodified.
- `HeuristicOrigin` and the corresponding frontend type in `web/lib/types.ts` no longer expose `admitted`; a standalone-only legacy heuristic is reported as `extracted`, while confirmed merge/generalisation origins remain correctly represented.
- `docs/heuristic-flywheel.md` and relevant operating or MCP documentation describe consolidation as the sole citable-entry route and retirement as human-gated; they do not describe standalone admission as an active path.
- The full default backend test suite passes. Use deterministic fixtures and test doubles rather than paid or nondeterministic Jev calls. If a live corpus is available, a read-only reconciliation confirms every active citable heuristic has a confirmed non-retire consolidation in its lineage.

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: neither. The draft requires deterministic tests for the reversed eligibility and retirement-gate behavior, but it does not address preserving existing test assertions or how to record an exception for test_bd97. It therefore leaves this specific criterion-accounting question open.
- 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 specifies implementation requirements, tests, and documentation, but does not raise how to handle a before-and-after deployment metric when deployment is out of scope.
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: False, leaned: neither. The draft's acceptance criteria require the full default backend test suite to pass and mention MCP contract tests passing unmodified, but they never take up the specific question of how to record a criterion when test_bd97's assertions must be inverted. That question only arose later, so the draft did not raise it.
- 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's acceptance criteria and open questions never address how to handle a metric-snapshot criterion whose post-deployment measurement cannot yet be taken; the question of pre-deploy snapshot vs. local comparison vs. failure is not raised, so it neither commits to nor recommends the chosen option.
Every decision is recorded with what was ruled out and why. That record is the evidence.