agr-ad-01-TARG already added target_artifact_id, target_artifact_type,
and the methodology_challenge debate_type, plus persona templates
(methodologist, statistician, replicator). Notebooks are by far the
richest debatable artifact (they bundle data, code, and claims) but very few
have triggered debates yet. Build a selector + scheduler that picks the top
N notebooks per week — by quality_score, citation count, or unresolved
discussion comments — and queues methodology_challenge debate sessions
against them via the existing /api/artifact/{type}/{id}/debate flow.
python3 -m scidex.agora.notebook_debate_scheduler --top-n 10--dry-run, queues debates via the same pathscidex.agora.scidex_orchestrator.queue_debate(...) already used.
comment_type='objection' and[methodologist, statistician, replicator], num_rounds=4.
artifact_links row oflink_type='supports' or link_type='contradicts' is created from_update_artifact_debate_outcome in scidex_orchestrator.py).
deploy/).
--top-n 3; 3 debatedebate_sessions with target_artifact_type='notebook'debate_type='methodology_challenge'.scidex/agora/notebook_debate_scheduler.py.notebooks, artifact_comments, debate_sessionsquest_engine.agr-ad-01-TARG — debate targeting infrastructure.q-dsc-comments-on-notebooks — feeds objection signals.Implementation complete.
Files created/modified:
scidex/agora/notebook_debate_scheduler.py — new module: SQL selector,queue_debate for each candidate, capped at 10/run.
scidex/agora/scidex_orchestrator.py — added queue_debate() module_update_artifact_debate_outcome() to INSERT into artifact_links.
agent.py — extended _get_artifact_personas to include notebook in themethodology_challenge branch; added [DEBATE_TYPE] override parsing.
quest_engine.py — Monday-only condition queues an Orchestra task when<10 notebook debates in last 7 days.
deploy/scidex-notebook-debate.{service,timer} — systemd unit files forsudo cp deploy/scidex-notebook-debate.* /etc/systemd/system/ && sudo systemctl enable --now scidex-notebook-debate.timerSmoke test verified: python3 -m scidex.agora.notebook_debate_scheduler --top-n 3
→ 3 debate_sessions rows with target_artifact_type='notebook',
debate_type='methodology_challenge', personas=['methodologist','statistician','replicator']