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-97 · memory · seed 2
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, and preserve MCP contracts unless a scoped change is explicitly chosen and verified. Prefer measurable criteria, realistic mechanism tests when live data is insufficient, and classifier comparisons proportionate to the decision being made. Heuristics: honor-explicit-stage-visibility: When a lifecycle rule gates a surface to a particular stage, omit it entirely before that stage; visible-but-disabled is not equivalent. Use one shared predicate when multiple surfaces share the gate. Traps: Discoverability and implementation convenience do not override an explicit stage boundary. prefer-outcome-over-removed-ui-counts: If the person removes an exact interaction-count criterion, do not restore that requirement without new direction or infer a blanket ban on separately specified affordances. If remaining criteria specify incompatible counts, surface the conflict instead of 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 the number of tools, 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. 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. make-acceptance-criteria-measurable: State critical acceptance conditions as observable checks, including required fields and expected values where relevant. When live data cannot exhibit a desired outcome, test the mechanism with realistic fixtures and separately confirm correctness on the live recompute; state what future data is needed. Traps: Do not claim tuning can create distinctions unsupported by current inputs, leave important details implicit, or leave the mechanism untested while waiting for organic data. 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, using an evaluation proportionate to the decision. A required fixture eval may suffice for a simple classification; do not require a separate, heavier offline bench by analogy alone. If the comparison regresses against the acceptance bar, iterate and remeasure before shipping. Traps: Do not excuse a measured regression as a prompt issue without measuring the revision, compare different cases or candidate sets, or assume every migration needs the same benchmark scale. 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: Two-Tier Heuristic Corpus: RAW / CONSOLIDATED Split Intent: The heuristic corpus has grown to 169 rules, 94% of which have never been cited, 78% of which carry an uninformative quality score, and 16 of which are invisible to retrieval because their embeddings are NULL. The retrieval path compounds the problem: a tight ranked cut over a large noisy corpus means the 10 rules that actually matter compete on equal footing with 159 that do not. The goal is to invert where precision lives: keep the extraction pipeline writing freely into a RAW tier (write-side only), promote a small human-vetted CONSOLIDATED tier through two explicit doors (LLM-generalised cluster or verbatim singleton promotion), make CONSOLIDATED the only tier that can be retrieved as guidance or cited, and then relax retrieval over that small tier for high recall. The change must land in strict order — repair first, then vetting tooling, then consumption switch, then retrieval relaxation — with the generalisation eval promoted to a CI gate before the retrieval step ships.
Claude
Intent: Separate extracted heuristics into a RAW working tier and a smaller CONSOLIDATED guidance tier. RAW rules remain available for human review and promotion work, but only human-vetted CONSOLIDATED rules may guide retrieval or receive new citations. Keep two promotion paths: a generalised rule from a cluster, or an unchanged singleton rule promoted verbatim. Constraints: - Implement and land the work in this order: repair the existing corpus; add vetting and promotion tooling; switch consumption to CONSOLIDATED only; then relax retrieval over that tier. Do not ship a later stage before its predecessors. - A generalised rule or singleton becomes CONSOLIDATED only after an explicit human decision. A pending proposal or promotion attempt must not change which rules are active guidance. - Singleton promotion preserves the rule text verbatim. Generalisation remains subject to the existing human confirmation gate; the executor or an LLM must not self-approve it. - Enforce the tier boundary in every retrieval and citation path, including where citations are written—not only in prompts or UI. Keep heuristics project-scoped; a thin project corpus must not cause RAW or other-project heuristics to appear as guidance. - Keep the existing MCP input/output contracts, including the `get_context`/`ContextHit` shape, unchanged unless a separately scoped contract change is approved and verified. - Preserve existing heuristic, proposal, and citation records during repair. Historical citations may remain for audit, but new citations must refer only to CONSOLIDATED rules. - Make the generalisation evaluation a required CI gate before the retrieval-relaxation stage ships. It must not silently pass by skipping when its required model access or fixtures are unavailable. Discretion: - How RAW and CONSOLIDATED are represented in storage, provided each rule has an unambiguous tier and every read/write boundary can enforce it. - How to map existing rules into tiers using the data already present, including `origin` and the confirmed `heuristic_merge_proposals` records. - The layout of the vetting interface and whether it reuses the existing merge-proposal UI and API patterns. - Internal implementation and test-fixture design, provided the staged order and observable tier boundaries are maintained. Acceptance criteria: - A repair verification reports zero NULL embeddings among active rules eligible for use or promotion, and confirms that existing rule IDs, text, and historical citation records were not lost. - Every active rule has exactly one tier after the migration or repair. Tests cover existing extracted, merged, and generalized rules and assert the chosen mapping. - Tests show that a pending generalisation or singleton promotion leaves the source rules and guidance tier unchanged. Confirming a singleton promotes the exact original rule text; dismissing either kind of proposal leaves it unpromoted. - After the consumption switch, fixture-based tests show that `get_context` returns CONSOLIDATED heuristics and never RAW heuristics, while retaining project scoping and the existing external response shape. Tests also show that citation writes reject RAW IDs and accept eligible CONSOLIDATED IDs. - The retrieval-relaxation change is evaluated on the same fixed representative cases before and after the change, reporting recall@K and nDCG@K. The relaxation must not regress the agreed retrieval bar; mechanism tests use realistic fixtures where the live corpus cannot demonstrate the intended distinction. - Before retrieval relaxation ships, CI runs `backend/tests/evals/test_generalization_eval.py` as a required check. It must produce at least one generalisation, report zero over-generalisations, and have no too-narrow results. - Tests and review evidence confirm that the four implementation stages landed in the specified order, with the generalisation CI gate passing before the retrieval-relaxation stage. Open questions: - What measurable retrieval target defines “high recall” for the relaxed CONSOLIDATED tier (for example, which K values and minimum recall@K)? Should nDCG have a minimum bar too? - What should “repair” cover beyond filling missing embeddings and assigning existing rules to tiers? Should the uninformative `quality_score` values be recalculated or otherwise addressed in this initiative? - Should RAW rules be written automatically by extraction, bypassing the current Learn-stage heuristic confirmation flow, or should that existing review flow remain before a rule is written to RAW? - For singleton promotion, should the human action immediately promote the rule, or create a pending item that requires a second confirmation? Should that action be available through the project UI only, or also through a new MCP tool? - Can the required generalisation eval run in CI with access to its live LLM and judge calls, or should the CI gate use a deterministic fixture-based evaluation instead? - Does “land in strict order” mean separate releases or pull requests for each stage, or is an ordered series of commits within one change sufficient?
Claude
- The human promotion queue is too much maintenance and mental overhead. With it removed, how does a rule that no cluster reaches ever become citable guidance? → raised: True, leaned: other. The draft explicitly requires human approval before either a generalized or singleton rule becomes CONSOLIDATED, and leaves open whether singleton promotion needs a second confirmation. It does not raise automatic Jev admission of unclustered rules; its stated human-vetting requirement points away from the chosen automated path. - Should Jev confirm the dream pass's own merge and generalisation proposals instead of the human? → raised: True, leaned: other. The draft explicitly requires human confirmation for generalisation and an explicit human decision for both generalised and singleton promotion. The later choice gives Jev authority to confirm qualifying merge and generalisation proposals, so the draft commits to the other option. - Acceptance criterion item_1608847eb98d requires test_generalization_eval.py to be "a required CI check" whose failure "blocks the merge", but this repo has no CI pipeline at all (no .github/workflows, no CI service config; evals are opt-in via pyproject's addopts = "--ignore=tests/evals"). The eval also needs a live LLM, so it costs money and is non-deterministic. How should the phase-4 shipping gate be satisfied? → raised: True, leaned: other. The draft explicitly requires the live generalisation eval to run as a required CI gate before retrieval relaxation ships, and asks whether CI can access live model calls or should use fixtures. The later decision instead makes a deterministic bench check the default gate, keeps the live eval opt-in, and amends the criterion.
Claude
- The human promotion queue is too much maintenance and mental overhead. With it removed, how does a rule that no cluster reaches ever become citable guidance? → raised: True, leaned: other. The draft directly addresses how unclustered/singleton rules reach CONSOLIDATED guidance: it requires an explicit human decision for promotion, keeps the human confirmation gate, and asks as an open question whether singleton promotion should be immediate or require a second confirmation. It commits to human vetting, not automatic LLM/Jev admission, so it leans toward a different option than the chosen one. - Should Jev confirm the dream pass's own merge and generalisation proposals instead of the human? → raised: True, leaned: other. The draft directly addresses who may approve generalisation/singleton promotions: it requires an explicit human decision, states the executor or an LLM must not self-approve, and keeps the existing human confirmation gate. That is the same question the later decision answers, and the draft commits to the opposite option (human gate retained, no agent confirmation), so it raised the question but leaned 'other'. - Acceptance criterion item_1608847eb98d requires test_generalization_eval.py to be "a required CI check" whose failure "blocks the merge", but this repo has no CI pipeline at all (no .github/workflows, no CI service config; evals are opt-in via pyproject's addopts = "--ignore=tests/evals"). The eval also needs a live LLM, so it costs money and is non-deterministic. How should the phase-4 shipping gate be satisfied? → raised: True, leaned: other. The draft's acceptance criterion requires CI to run test_generalization_eval.py as a required check, and an open question asks whether CI can run the live LLM eval or should use a deterministic fixture-based evaluation. The person chose C (deterministic bench gate plus opt-in live eval), while the draft commits to the live eval as the required CI gate, so it raised the question but leaned toward a different option.