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 · memory · seed 1
Memory of this project (the product context the code does not carry): Acceptance criteria are Doen’s primary progress and verification surface; the dashboard answers what needs attention without becoming a task board. Keep lifecycle, human-judgment, and MCP-contract boundaries explicit and enforce them at the relevant shared write or verdict boundary. Use measurable checks proportionate to the decision: deterministic default-suite gates for repeatable checks, and opt-in live-model evaluations when they are paid or nondeterministic. 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 criteria specify incompatible counts, flag and reconcile the conflict rather than silently carrying both or guessing which controls. Traps: A removed count is not a global ban; contradictory criteria should be surfaced while drafting or shaping, not left to implementation guesswork. 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 an explicit human-judgment requirement unconditionally at the shared verdict-application or write boundary; model confidence must not override it. Automate other judgments only where the spec grants discretion and the match clears the chosen confidence threshold; otherwise escalate to the human. Traps: A prompt instruction or UI affordance alone is not a hard gate. Put the guard where the verdict is applied so all call paths are covered. 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 paid or nondeterministic live-model evaluations opt-in, and amend criteria that assume nonexistent CI infrastructure. Traps: Do not claim tuning can create distinctions unsupported by current inputs, or treat a nondeterministic live evaluation as 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 fixed-choice classification may need only its required fixture evaluation, while subtle semantic judgment may warrant a reproducible bench. If comparison regresses against the acceptance bar, iterate and remeasure; 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: 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 dream pass keep its daily schedule across service restarts, and make its consolidation decisions queryable rather than inferred from proposal status. The current scheduler in `backend/app/services/dream_scheduler.py` sleeps in memory before each sweep, while `backend/app/services/admission.py` applies or holds Jev verdicts without a durable record of the verdict details. The result should show whether work ran, what it processed, and whether consolidation growth was limited by missing proposals, a held verdict, or an operational failure. Constraints: - Use Postgres as the durable source for schedule progress and sweep/verdict history; an in-memory sleep must not be the only record of when the next sweep is due. Do not repurpose `projects.last_gardener_run_at` for scheduler state. - Preserve the existing `run_dream_phase` MCP input/output contract. Record observability internally rather than changing that contract or adding an MCP tool for a distinct workflow. - Keep the current consolidation and lifecycle boundaries: Jev may apply `near_duplicate` and `generalization` proposals only under the existing `MERGE_AUTOCONFIRM_CONFIDENCE` rule; uncertain cases remain pending for a person. `retire` proposals remain human-gated, regardless of confidence. - Do not change what qualifies a heuristic for the citable tier, the accepted BD-101 tradeoff, or the separate admission behavior. Do not lower thresholds or broaden automation merely to force growth. - Persist outcomes for verdicts regardless of whether the dream pass was invoked by the scheduler, a learn completion, or the existing MCP tool, so a consolidation decision cannot bypass the durable record. Discretion: - Choose the migration and Postgres record structure, keeping sweep-level and per-project outcomes queryable and linking verdict records to the existing `heuristic_merge_proposals` rows where applicable. - Choose how to represent the verdict choice, confidence, threshold in effect, application or hold outcome, and failures so a query can distinguish no proposal, a held verdict, a successful application, and an operational error. - Choose the scheduler’s clock/check mechanism and use UTC timestamps. Make due checks testable without real-time sleeps; preserve `DREAM_PHASE_INTERVAL_SECONDS` and its zero-disables behavior. - Add a concise example query and update the relevant descriptions in `docs/heuristic-flywheel.md` and `agents.md` to reflect durable scheduling and verdict records. Keep any MCP description accurate without changing its wire contract. - Use deterministic fake-provider and database tests for repeatable checks. Keep paid or nondeterministic live-model evaluations opt-in; no threshold calibration is required unless behavior or thresholds are changed. Acceptance criteria: - With a persisted prior sweep time and a controlled clock, tests show that a restart before the configured interval does not reset the schedule, and that an overdue sweep runs without waiting a fresh full interval. The zero interval still disables scheduling. - Database-backed tests run a sweep over multiple projects and verify that its durable record distinguishes each project’s outcome, including partial errors, and supports a query summarizing projects visited, proposals generated by kind, verdict outcomes, and errors. - With injected Jev answers, tests verify that the persisted verdict details match the actual choice and confidence, and that the record distinguishes a confident application from a hold, provider failure, or failed write. The proposal’s resulting status agrees with the recorded application outcome. - Tests verify that proposals below the configured threshold remain pending and that a `retire` proposal is never auto-confirmed. Existing corpus, citable-tier, and human-retirement behavior remains intact. - Tests verify durable verdict recording for scheduled, post-learn, and MCP-triggered runs, while the existing MCP request and response contract remains unchanged. - The default backend test suite passes without live model calls. Documentation describes the implemented behavior and does not claim the scheduler’s timing or verdict outcomes are still only in memory or inferable. Open questions: - If there is no prior sweep record, should the first scheduled sweep run immediately after startup, or wait one full `DREAM_PHASE_INTERVAL_SECONDS` interval? - Can production run multiple backend replicas at once? If so, should they coordinate through Postgres so only one replica performs a given due sweep and avoids duplicate model calls? - Should a sweep that completes with per-project errors count as the completed attempt for the next interval, or should partial failures trigger an earlier retry?
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: False, leaned: neither. The draft addresses durable scheduling and verdict records, but does not raise whether step 4 should evaluate all pending proposals or only proposals created in the current pass. Its general persistence and observability requirements do not cover this change to the verdict step’s input set.
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: False, leaned: neither. The draft is about durable scheduling and verdict records; it never takes up whether step 4's input set should be widened to all pending judgeable proposals. Its constraints explicitly preserve the pass's internal behavior, but the specific question of widening step 4 is not raised as a constraint, discretion item, acceptance criterion, or open question.