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: A new initiative starts with the executor's questionnaire
What the person wrote: The new initiative prompt should take the user thro2. Memory of this project (the product context the code does not carry):
Honor explicit product intent over stale wording, but preserve the pur3. Title: A new initiative starts with the executor's questionnaire
What the person wrote: The new initiative prompt should take the user thro4. Memory of this project (the product context the code does not carry):
Honor explicit product intent over stale wording, but preserve the pur5. Title: A new initiative starts with the executor's questionnaire
What the person wrote: The new initiative prompt should take the user thro6. Memory of this project (the product context the code does not carry):
Honor explicit product intent over stale wording, but preserve the pur7. Title: Live memory learns from the first initiative
Intent: The executor's memory waits for five calls by a person before it dreams, and it8. Memory of this project (the product context the code does not carry):
Honor explicit product intent over stale wording, but preserve the pur9. Title: Live memory learns from the first initiative
Intent: The executor's memory waits for five calls by a person before it dreams, and it10. Memory of this project (the product context the code does not carry):
Honor explicit product intent over stale wording, but preserve the pur11. Title: Live memory learns from the first initiative
Intent: The executor's memory waits for five calls by a person before it dreams, and it12. Memory of this project (the product context the code does not carry):
Honor explicit product intent over stale wording, but preserve the pur13. Title: Move Structured Calls to pydantic-ai
Intent: Structured model calls still rely on a custom OpenAI-compatible client whose forced-fun14. Memory of this project (the product context the code does not carry):
Honor explicit product intent over stale wording and propagate changes15. Title: Move Structured Calls to pydantic-ai
Intent: Structured model calls still rely on a custom OpenAI-compatible client whose forced-fun16. Memory of this project (the product context the code does not carry):
Honor explicit product intent over stale wording and propagate changes17. Title: Move Structured Calls to pydantic-ai
Intent: Structured model calls still rely on a custom OpenAI-compatible client whose forced-fun18. Memory of this project (the product context the code does not carry):
Honor explicit product intent over stale wording and propagate changes
BD-125 · memory · seed 1
Memory of this project (the product context the code does not carry): Honor explicit product intent over stale wording and propagate changes through affected artifacts, including installed executor guidance. Preserve material guarantees while preferring simple structural fixes. Keep deployment and live-behavior claims open until observed; mechanism tests are not outcomes. Use deterministic default gates and narrow, same-set model comparisons: test the requested candidate against the incumbent, choose the cheapest measured gain, and stop pursuing losers. Learn from visible executor calls on completed work, with human decisions and corrections weighted more. Continue reversible live experiments after thin, inconclusive replay negatives only under controls and kill rules. Prefer deliberate, product-specific triggers tied to finished Heuristics you can open with open_heuristic: intent-over-literal-wording, keep-real-world-measurements-open, prefer-simple-rules-and-low-ceremony, protect-contracts-with-explicit-addition, measure-before-judging-and-iterate, deterministic-gates-for-deterministic, automate-routine-judgment-but-protect, live-experiments-need-controls Title: Move Structured Calls to pydantic-ai Intent: Structured model calls still rely on a custom OpenAI-compatible client whose forced-function output mode can disable reasoning and is rejected by some models. Move the scoped calls to pydantic-ai so they use provider-native structured output, preserve current production models and prompts, and can be configured for other providers without losing reasoning or cost tracking. This initiative covers the listed services and research scripts; Jev remains separate, and any remaining follow-up outside that scope is not included.
Claude
Intent: Move the in-scope structured model calls from the custom OpenAI-compatible client to pydantic-ai, using providers’ native structured-output support instead of a forced function call. Keep the current configured models, prompts, and cost tracking, while making the calls configurable for other agreed providers and able to retain reasoning. Jev remains separate, and this work does not claim deployment or live-behavior outcomes. Constraints: - Preserve existing prompt text and configured model identifiers; do not infer deployed model settings from repository defaults. - In scope, structured calls must use provider-native structured output, not a forced function-call mode that can disable reasoning. Keep reasoning settings available where currently configured. - Keep failures explicit: incomplete, invalid, or unparseable output must not be treated as a successful structured result. - Preserve applicable cost logging in the existing `llm_cost_log` table, including its `project_id`, `provider`, `model`, `purpose`, `prompt_tokens`, `completion_tokens`, `total_tokens`, `latency_ms`, and `cost_usd` columns. Do not require a schema change for this migration. - Do not migrate Jev or change embedding calls as part of this initiative. - Keep paid or live-model checks out of the default deterministic test gate. Local mechanism tests do not establish that deployment or real provider behavior works. Discretion: - Choose the pydantic-ai version, adapter boundaries, and the simplest way to represent the existing structured schemas while keeping caller behavior stable. - Choose how provider, model, credentials, and any base URL are configured, subject to the agreed alternative-provider scope and preserving current configuration. - Update dependency locks, tests, and affected setup documentation or executor guidance where they describe the old structured-call mechanism. - Use fake or mocked providers for routine tests; keep any live-provider smoke checks opt-in and report them separately from deterministic test results. Acceptance criteria: - Every agreed in-scope call uses pydantic-ai with provider-native structured output; the scoped paths no longer depend on the custom forced-function request implementation. - Tests show that prompts and configured model identifiers reach the new adapter unchanged, applicable reasoning settings are passed through, structured results are validated, and failures remain explicit. - For applicable application calls, deterministic tests confirm the existing cost-log fields and purpose attribution are retained; missing provider cost remains representable as null. - The configured alternative-provider path can be exercised without code edits for each agreed provider, with tests verifying the adapter’s configuration and structured-output mechanism. - The repository’s offline backend gate (`make test`) passes without requiring a live model call; any live-provider or deployment result is reported only after it is actually observed. - Setup documentation and installed executor guidance no longer describe the migrated calls as relying on the old forced-function mechanism. Open questions: - The initiative refers to “listed services and research scripts,” but does not enumerate them. Should the scope be all structured call sites I found in `backend/app/services/shaping.py`, `classification.py`, `ambiguity.py`, `correction_review.py`, `learn.py`, `live_memory.py`, and `review.py`, plus `backend/app/measure_memory_replay.py`, `replay_live_dreams.py`, and `replay_live_predictions.py`? In `review.py` and `replay_live_predictions.py`, I would leave Jev paths untouched. Should `backend/tests/evals/test_shaping_classification_eval.py` also change, or remain a historical baseline? - Which alternative providers must be supported? Is configuration through pydantic-ai’s provider/model settings sufficient, or do you require particular providers or continued support for arbitrary OpenAI-compatible endpoints? - The replay scripts describe themselves as read-only and say LLM costs are not logged. Should that remain true after migration, with cost tracking applying to attributable application calls only, or should the scripts begin recording costs? - Should acceptance include an opt-in, controlled smoke test after deployment against the existing provider and an agreed alternative, or should deployment checks be left to a later owner-run verification?
Claude
- How should model calls get structured output, now that the forced-tool-call trick in our own client disabled luna's reasoning and is rejected by Opus 5.5? → raised: True, leaned: chosen. The draft explicitly requires pydantic-ai and provider-native structured output instead of forced-function calls for the in-scope calls, matching the chosen approach. It limits the scope to agreed in-scope calls rather than unambiguously saying every model call. - How should live executor memory be evaluated, given that a person's single choice on a call is noisy (context limits, misreadings, ambiguous questions)? → raised: False, leaned: neither. The draft addresses migrating structured model calls and related provider, testing, and cost-tracking choices. It does not raise how live executor memory should be evaluated or whether it should predict individual choices versus improve the completeness of a spec.
Claude
- How should model calls get structured output, now that the forced-tool-call trick in our own client disabled luna's reasoning and is rejected by Opus 5.5? → raised: True, leaned: chosen. The draft's intent and constraints explicitly commit to moving in-scope structured calls to pydantic-ai with provider-native structured output instead of a forced function call, which is exactly the option the person chose. - How should live executor memory be evaluated, given that a person's single choice on a call is noisy (context limits, misreadings, ambiguous questions)? → raised: False, leaned: neither. The draft concerns migrating structured model calls to pydantic-ai and preserving prompts, cost logging, and tests. It does not address how live executor memory should be evaluated or whether to reward predicting single choices versus contributing to a more complete spec, so the later decision's question was not raised.