[Exchange] Generate funding_proposal artifacts from top per-field open questions running

← Continuous Proposal Generation
Extend funding_proposal_generator to consume top open_question artifacts per field and draft NIH-style proposals.

Last Error

cli-get-next: phantom running task — linked run 4276358b-806 already terminal (abandoned); requeued immediately
Spec File

Goal

scidex/agora/funding_proposal_generator.py already exists for ranked
hypotheses. Extend it to consume the new open_question artifact ranking
(per-field Elo from quest b307ad54-a95, q-openq) so that the highest
priority unsolved questions in each neuroscience subfield automatically
materialize as draft NIH-style proposals (R01 / R21 mechanisms), discoverable
on the Exchange as fundable artifacts. Each proposal cites the underlying
open_question as its parent.

Acceptance Criteria

☐ CLI: python3 -m scidex.agora.funding_proposal_generator
--source open_questions --top-n-per-field 3 --mechanism R01 --dry-run.
☐ Without --dry-run, registers funding_proposal artifacts with required
sections (specific_aims, significance, innovation, approach,
preliminary_data, timeline, budget) within the page-length budgets
defined in MECHANISM_PROFILES.
☐ Each proposal links to its source open_question via artifact_links
link_type='derives_from', plus link_type='cites' to the top-3
supporting wiki pages and ≥1 supporting paper.
☐ Mechanism is chosen by question maturity: R21 if the question's
evidence_summary is short and exploratory, R01 otherwise.
☐ Daily-budget gate respected; one proposal per question per quarter
(dedup on (open_question_id, mechanism, quarter)).
☐ Smoke: pick the top open_question in each of 5 fields, generate one
proposal each; verify section word counts within budget.

Approach

  • Add --source open_questions mode to the CLI that queries
  • artifacts WHERE artifact_type='open_question' ordered by
    metadata->>'importance_elo' and grouped by metadata->>'field_tag'.
  • Map open_question text to the funding-proposal prompt; reuse existing
  • MECHANISM_PROFILES and _select_persona.
  • Register links and the spawned-proposal pointer.
  • Update the existing nightly cron to alternate sources (hypothesis vs
  • open_question).

    Dependencies

    • scidex.agora.funding_proposal_generator
    • Open-question artifact corpus (quest b307ad54-a95).

    Work Log

    Sibling Tasks in Quest (Continuous Proposal Generation) ↗