Draft coverage replay, production (Railway, the instance the MCP server points at)
BD-126: each past initiative drafted from how it started, with and without the live memory, by a drafter that can read the code at that point; every draft judged against the decisions the person made later.
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-102 · stateless · seed 2
Title: Make the Dream Pass and Consolidation Verdict Run Durably Intent: The heuristic supply chain introduced by BD-101 depends on a dream pass that has run on exactly one day in production history, feeding an auto-confirm gate that has never executed. The result is a citable tier frozen at 5 of 164 active rules with 3 near-duplicate proposals stalled for two weeks. Two root causes need fixing together: the scheduler discards its next-run time on every restart (sleep-first, in-memory), so a service that deploys more than once a day never reaches the end of its first sleep; and the merge-verdict step leaves no durable record, making "did consolidation run and what did it decide" an inference rather than a query. The desired outcome is a pipeline that runs without human initiation, survives restarts by tracking last-swept-at in Postgres, records each sweep's outcome in enough detail to answer throughput questions with a query, and lets the citable tier grow on its own — or makes it observable and explicit that the threshold, not the scheduler, is what limits growth.
Claude
Intent: Make the scheduled dream pass keep its place across service restarts, so frequent deployments do not keep postponing the next sweep. Persist what each pass did—including whether the consolidation verdict applied, held, or failed—so consolidation throughput and the reason rules remain outside the citable tier can be answered from Postgres rather than inferred. The goal is for confirmed consolidations to grow the citable tier without human initiation, while making a confidence threshold or provider failure visible when it prevents growth. Constraints: - Use Postgres as the source of truth for the scheduler’s last-swept time. On restart, calculate whether a sweep is due from that persisted time; do not begin a fresh full interval sleep on every startup. Preserve `DREAM_PHASE_INTERVAL_SECONDS=0` as an explicit way to disable the scheduler. - Keep the existing dream-pass behavior and safety gates: sweep non-archived projects, isolate failures so one project does not stop the others, and never auto-confirm `retire` proposals. Do not lower or otherwise change `MERGE_AUTOCONFIRM_CONFIDENCE` or the verdict rubric to force growth. - Preserve the BD-101 tier rule: only confirmed, non-retire rows in `heuristic_merge_proposals` make a rule citable. `heuristics.admitted_at` must not be treated as citable-tier membership. - Persist enough run and verdict detail to distinguish proposals created, proposals Jev chose to apply or hold, confidence-gate outcomes, successful applications, and errors. Record the configured verdict threshold used, so a query can distinguish a threshold-limited tier from a scheduler or provider failure. - Keep the existing learn-triggered and on-demand dream-pass entry points working. Ensure a due scheduled sweep cannot run concurrently on multiple service instances against the same database. Discretion: - Choose the Postgres record structure and migration approach, provided run outcomes and individual consolidation verdicts are queryable and existing heuristic and proposal records are preserved. - Choose how the scheduler serializes competing service instances, provided it uses Postgres-backed coordination and does not create duplicate overlapping sweeps. - Use the existing result data from `backend/app/services/dream_phase.py` and `backend/app/services/dream_scheduler.py` where possible; extend capture where needed to record the verdict choice, confidence, threshold, and application result. - For a database with no prior sweep time, the recommended default is to run promptly in the background rather than wait a full interval. The owner should confirm this choice below. Acceptance criteria: - Automated tests show that a restart uses the persisted sweep time: a recent sweep waits only the remaining interval, and an overdue sweep runs promptly rather than sleeping a full new interval. A database with no prior sweep follows the owner-approved first-run policy. - A scheduled sweep records a durable outcome for each project it attempts, including partial failures. A failure in one project does not prevent later projects from being attempted or recorded. - A query over persisted records can report, by project and time period, sweep outcomes and counts of proposals created by kind, proposals confirmed, proposals left pending, confidence-gate holds, and verdict or application errors. The recorded threshold and confidence make threshold-limited growth distinguishable from failures. - A consolidation-verdict run leaves a durable, queryable record of its decision and outcome, including when the proposal remains pending or applying it fails. Tests cover both a confident apply and a hold; only a successfully confirmed consolidation changes citable-tier membership. - The existing citable-tier filter and citation guard still rely on the confirmed-consolidation rule, not `admitted_at`. The existing learn-triggered and on-demand paths continue to work, and the backend test suite passes. Open questions: - There are already pending near-duplicate proposals described as stalled. Should the first scheduled run also send existing pending `near_duplicate` and `generalization` proposals through the auto-confirm verdict, or should the gate continue to judge only proposals created during that same pass? In the current code, `run_dream_phase` passes only newly created proposals to `auto_confirm_proposals`; the gardener skips clusters already covered by pending proposals. - For a deployment with no persisted sweep time yet, should the scheduler run immediately in the background, or wait one full `DREAM_PHASE_INTERVAL_SECONDS`? Immediate is recommended so a new deployment does not need a human trigger or another interval to start the pipeline. - Should durable run history include every `run_dream_phase` invocation—including learn-triggered and on-demand runs—or only scheduled sweeps? Recording all invocations is recommended so a query can account for every consolidation-verdict attempt.
Claude
- Root cause of the zero-lifetime merge_verdict calls is structural, not scheduling. dream_phase.py step 4 calls auto_confirm_proposals(store, created, ...) where `created` is only the proposals this pass just made. Meanwhile gardener.py deliberately never re-proposes a cluster that overlaps an existing pending proposal. So once a proposal is pending, no later pass ever creates it again, `created` comes back empty, and the verdict step never sees it. A proposal that misses its verdict once is stranded forever — that is why the 3 near_duplicate proposals from 2026-09-14 are stuck and why merge_verdict has never been called in fifteen months. Fixing the scheduler alone will not change this: the pass could run hourly and those proposals would still never be judged. But constraint item_7942dded8fc1 says the pass 'keeps its five steps in order and its never-raises contract. This initiative changes when it is invoked and what it records, not what it does internally.' Widening step 4's input set arguably changes what it does internally. How should this be handled? → raised: True, leaned: neither. The draft explicitly asks whether existing pending proposals should be judged or only proposals created during the same pass. It leaves that choice open, so it does not commit to the later choice to evaluate all pending judgeable proposals.
Claude
- Root cause of the zero-lifetime merge_verdict calls is structural, not scheduling. dream_phase.py step 4 calls auto_confirm_proposals(store, created, ...) where `created` is only the proposals this pass just made. Meanwhile gardener.py deliberately never re-proposes a cluster that overlaps an existing pending proposal. So once a proposal is pending, no later pass ever creates it again, `created` comes back empty, and the verdict step never sees it. A proposal that misses its verdict once is stranded forever — that is why the 3 near_duplicate proposals from 2026-09-14 are stuck and why merge_verdict has never been called in fifteen months. Fixing the scheduler alone will not change this: the pass could run hourly and those proposals would still never be judged. But constraint item_7942dded8fc1 says the pass 'keeps its five steps in order and its never-raises contract. This initiative changes when it is invoked and what it records, not what it does internally.' Widening step 4's input set arguably changes what it does internally. How should this be handled? → raised: True, leaned: other. The draft's open question explicitly asks whether the first scheduled run should send existing pending near_duplicate/generalization proposals through the auto-confirm verdict or keep the gate judging only proposals created in the same pass, noting the current code passes only newly created proposals. So the question is raised, but the draft leans toward preserving current behavior (gate only same-pass proposals) rather than the chosen option of widening step 4 to all pending judgeable proposals.