Automatically identify artifacts that would benefit from debate and trigger artifact-review
debates. Targets include: artifacts with low quality scores, conflicting evidence,
high usage but no debate history, and newly-extracted experiments with methodology concerns.
find_debate_candidates() function returns ranked list of artifacts needing debateagr-ad-05-PROF — Quality profile signals inform trigger decisionsWhat was done:
scidex/agora/debate_trigger.py (new file, 455 lines):find_debate_candidates(limit=20) — ranked list of DebateTrigger objects[AUTO_TRIGGER] tagtrigger_artifact_debate() — creates gap with TARGET_ARTIFACT + AUTO_TRIGGER tags_get_debate_count() — counts debates via artifact_debates + debate_sessionsscidex/agora/scidex_orchestrator.py (orchestrator integration):[TARGET_ARTIFACT type=X id=Y] from gap description at start of run_debatetarget_artifact_type/target_artifact_id on debate_sessions INSERT_update_artifact_debate_outcome() — records in artifact_debates, updates support/contradiction counts, creates artifacts_history entry for quality dropsapi.py — added GET /api/debate/candidates endpoint returning ranked DebateTrigger listStatus: Committed and pushed to orchestra/task/agr-ad-0-auto-trigger-debates-for-low-quality-or (commit 1855f6871)
Note on data: Rule 2 (evidence_balance < -0.3) returns 0 candidates (no artifacts have 3+ debate entries with negative balance yet). Rule 4 (conflicting replication) returns 0 (no conflicting experiments currently). Rule 1 returns 0 (no artifacts have quality_score < 0.4 AND usage signals). Active candidates: high_usage_no_debate (top-10% usage, 0 debates) for 20 wiki pages.
What was verified:
python3 -m py_compile scidex/agora/debate_trigger.py and scidex_orchestrator.py — both OKfind_debate_candidates(limit=5) returns 5 candidates (high_usage_no_debate rule, wiki pages with top-10% usage and 0 debates)@app.get("/api/debate/candidates") with correct docstring[TARGET_ARTIFACT type=X id=Y] and _update_artifact_debate_outcome() after debate completesCommit: 1855f6871 (auto-trigger debates for low-quality or conflicting artifacts)
{
"requirements": {
"analysis": 5
}
}