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-83 · memory · seed 0
Memory of this project (the product context the code does not carry): Doen treats acceptance criteria as its primary progress and verification surface; the dashboard focuses human attention without becoming a task board. Organizational memory and retrieval should be grounded in the current project, traceable to real records, and tested for quality rather than treated as generic advice. Preserve explicit human-judgment and lifecycle boundaries, follow the selected rule over a more elaborate analogy, and keep established MCP contracts stable unless a scoped change is explicitly chosen and verified. Heuristics: honor-explicit-stage-visibility: When a lifecycle rule says a surface is rendered only at a particular stage, omit it entirely before that stage; visible-but-disabled is not equivalent. If multiple surfaces share the gate, use one shared predicate. Traps: Discoverability and implementation convenience do not override an explicit stage boundary. prefer-outcome-over-removed-ui-counts: Treat removal of an exact-count requirement narrowly: do not restore that specific requirement, but do not infer a general ban on separately specified interaction counts. Traps: The removed requirement concerned exactly two follow-up actions; it does not settle every independently specified interaction count. preserve-existing-mcp-contracts: Treat existing MCP input/output contracts as stable. For a distinct workflow, prefer an additive tool when appropriate; if a contract change is explicitly chosen, scope it and verify unaffected behavior across supported transports. Traps: Do not change an established contract merely to reduce the number of tools, and do not assume compatibility without testing it. research-findings-are-executor-owned: For research_findings, use pure last-write-wins semantics: a later executor MCP write overwrites a human edit. Document this clearly; the field is the executor's working document, with human annotation expected after investigation concludes. Traps: Do not add locking or version tracking without a newer explicit decision. follow-selected-rule-over-analogous: When the person explicitly selects a simple eligibility or visibility rule over an analogous feature's more elaborate pattern, implement the selected rule as stated. For the importance recommendation, suppress it only when the project has exactly one initiative. Traps: Consistency with another feature is not a reason to substitute its condition for the selected rule. protect-explicit-human-judgment: Enforce explicit human-judgment requirements at the decision or write boundary: an Advisor verdict must not auto-approve a criterion designated for human judgment. Automate only where the spec grants discretion and the match is sufficiently confident; otherwise escalate to the human. Traps: A prompt instruction or UI affordance alone is not a hard gate; place the guard where the verdict is applied. verify-mechanisms-when-live-data-cannot: Make acceptance criteria testable against available data. When the live corpus cannot yet exhibit a desired outcome, verify the mechanism with realistic fixtures and separately confirm correctness on the live recompute; state what future data is needed for the outcome to emerge. Traps: Do not claim that tuning can produce distinctions the current input combinations mathematically cannot support, or leave the mechanism untested while waiting for organic data. Title: Dream-Phase Corpus Health Pass Intent: The heuristic corpus has a measurable citation-skew problem — a handful of heuristics are retrieved constantly while most never surface — traced in a read-only pilot to embedding-model granularity rather than heuristic wording. This initiative closes that gap through four coordinated changes: upgrading the embedding model from text-embedding-3-small to text-embedding-3-large with a full corpus re-embed and dimension migration; enabling the existing BD-73 reranker to recover the specificity lost by the larger model; introducing a staleness-decay signal so long-unused heuristics surface as review candidates rather than silently aging out; and wiring all of this into an on-demand MCP tool (and matching UI trigger) that runs a corpus-health pass using only Doen's existing extraction and gardener machinery, classifies surfaced heuristics into enforceable / verifiable / advisable buckets, and distinctly surfaces enforceable-shaped ones so a human can choose to promote them into spec constraints or lint checks. The desired outcome is a retrieval layer that recalls a heuristic when a paraphrase of its own principle arrives, a reranker that keeps specificity acceptable, a staleness signal that keeps the corpus alive, and a human-triggerable entry point that ties the three together.
Claude
Intent: Improve retrieval and care of Doen’s project heuristics: help relevant rules surface for paraphrased queries, keep their specificity through reranking, and make long-unused rules visible for review. Add an on-demand MCP tool and matching dashboard trigger for a traceable corpus-health pass. Enforceable-shaped results should be clearly highlighted for human consideration, not automatically made into rules. Constraints: - Keep existing MCP tools and their input/output contracts stable. Add a distinct tool for this workflow rather than changing an existing tool such as get_context. - Ground the pass in the current project’s heuristic records and their source initiatives. Every surfaced result must be traceable to real records; do not return generic advice. - Keep review and lifecycle decisions with the human. A health pass must not automatically retire heuristics or promote them into spec constraints or lint checks. - Keep vector dimensions consistent wherever the shared retrieval path compares embeddings. The code stores vectors in decisions.embedding, memory.embedding, heuristics.embedding, and heuristic_labels.centroid. - Use the existing BD-73 reranker as a reordering step, not a way to add or remove candidates. Preserve its fallback to the original order if reranking fails. - Keep the dashboard focused on human attention rather than turning the health pass into a task board. Discretion: - I plan to place the dashboard trigger beside the existing project heuristic control and hide it entirely until the project has a completed initiative, following that control’s existing visibility gate. - I can choose the report layout and implementation details, provided it shows the source records and distinguishes the enforceable-shaped results from the other categories. - I can use the existing heuristic citation and retrieval-event records to derive staleness information, rather than adding stored state, unless the agreed staleness policy requires otherwise. - I can reuse the configured reranker and its existing candidate-window behavior, while retaining an explicit configuration override and fail-open behavior. Acceptance criteria: - A migration and re-embedding procedure leave every vector in the agreed scope compatible with the new embedding dimension. Retrieval and embedding newly created records work after the migration, with no mixed-dimension query failures. - Retrieval evaluation includes realistic paraphrase fixtures and reports retrieval quality. It also runs against the live citation-derived evaluation set after recomputation; the report distinguishes fixture results from live results. - Reranking is active in the agreed runtime, improves or preserves specificity on the agreed evaluation, and leaves the original candidate set intact if the reranker returns malformed data or fails. - Tests show that the staleness mechanism surfaces old or unused active heuristics for review, including cases where there are no prior retrieval events. It does not silently retire or alter those heuristics. - The new MCP tool and dashboard trigger run the same project-scoped pass. The report puts results into enforceable, verifiable, and advisable buckets, highlights enforceable-shaped results, and links each result to its heuristic and source initiative. - The dashboard trigger is absent before the completed-initiative visibility gate. Existing MCP tools retain their contracts and unaffected behavior across supported transports. Open questions: - Does “full corpus re-embed” mean all records used by shared retrieval, including decisions.embedding, memory.embedding, and derived heuristic_labels.centroid as well as heuristics.embedding? The current retrieval path compares these vectors together, so re-embedding only heuristics would need a separate retrieval path or would leave incompatible dimensions. - What exactly should the on-demand pass process: only the project’s current active heuristics, or should it also rerun extraction over completed initiatives and run the merge gardener? If extraction or gardening runs, which resulting changes should be persisted automatically versus left as human-gated proposals? - How should staleness be measured and used? For example, should “unused” mean not recently surfaced in heuristic_retrieval_events, not recently cited in heuristic_citations, or both; what age or decay rule should apply; and should the signal affect get_context ranking or only health-review ordering? - What rubric should distinguish enforceable, verifiable, and advisable, and should the pass only surface promotion candidates or implement a human-confirmed path to add them to a particular initiative’s constraints or to lint checks? The current code does not show a project-level constraint or lint destination. - What measurable retrieval and specificity targets should determine success on the fixture set and the live evaluation? The initiative names the desired outcomes but does not set thresholds. - Should the reranker be enabled by default for every installation or only in the target deployment? HEURISTIC_RERANKER_ENABLED currently defaults off, and reranking requires a configured LLM.
Claude
- The 1536→3072 dimension migration forced dropping the HNSW indexes on decisions/memory/heuristics.embedding — pgvector's plain `vector` type caps indexed columns at 2000 dims, and 3072 exceeds that. The migration as built leaves these columns unindexed (full cosine scan on every get_context call). At the current corpus scale (~150-200 rows per table) this is fast, but it's a real architectural change from the indexed status quo, and it wasn't something the spec's discretion explicitly covered (it covered the resize *mechanism*, not whether an index exists afterward). Before I run this migration against the live production Railway DB, how should the index gap be handled? → raised: False, leaned: neither. The draft covers embedding-dimension compatibility and migration, but not whether the resized vector columns retain indexes or how to handle the index gap. Since this specific question was not raised, it did not commit to or recommend the chosen halfvec + HNSW option.
Claude
- The 1536→3072 dimension migration forced dropping the HNSW indexes on decisions/memory/heuristics.embedding — pgvector's plain `vector` type caps indexed columns at 2000 dims, and 3072 exceeds that. The migration as built leaves these columns unindexed (full cosine scan on every get_context call). At the current corpus scale (~150-200 rows per table) this is fast, but it's a real architectural change from the indexed status quo, and it wasn't something the spec's discretion explicitly covered (it covered the resize *mechanism*, not whether an index exists afterward). Before I run this migration against the live production Railway DB, how should the index gap be handled? → raised: True, leaned: other. The draft's migration acceptance criterion explicitly requires the migration to keep the shared retrieval path compatible, and the open question asks about the scope of 'full corpus re-embed' and the shared vector path — but the draft's discretion and the migration criterion treat the migration as a mechanism, leaving the index status quo unaddressed. The draft's framing (re-embed the existing columns, keep the existing index/retrieval) does not commit to the index being dropped; the chosen option (halfvec + HNSW to preserve indexing) is a different, more conservative choice than the draft's implicit 'plain vector(3072) re-embed' approach, which the acceptance criteria would have been satisfied by leaving the index gap.