Increase Agora coverage by adding substantive debate sessions for analyses that currently have none. Debate coverage is a core quality mechanism: claims should be challenged, contextualized, and synthesized before they feed the Exchange or Atlas.
debate_sessions rows linked by analysis_idtranscript_json or a substantive consensus/dissent summarydebate_sessions, prioritizing active gaps and recent analyses.quest-engine-ci - Generates this task when queue depth is low and debate coverage gaps exist.d6cc6f1b-2f55-4309-a924-93f46a5fcf32.AGENTS.md, CLAUDE.md, this spec, alignment-feedback-loops.md, and landscape-gap-framework.md.origin/main; recent debate-backfill commits exist, including 0971a8820 adding scripts/run_pending_debates.py.scidex.core.database.get_db(): 37 analyses currently have no linked debate_sessions row, so the task is still necessary.scripts/run_pending_debates.py runner for a bounded batch of 10, then verify the before/after missing count and that each new session has non-empty transcript_json/round content.79510400-0b40-4260-b9dc-9ba116206137) `json code blocks, which the existing hypothesis extraction missed for analyses where direct json.loads failed._PgRow dict-like unpacking bug in session retrieval (row[1] works, unpacking session_id, t, sc = row failed because row iterates over column names, not values).scripts/audit_20_analysis_hypotheses.py over 20 analyses with debate sessions but no hypotheses.timeout 1800 python3 scripts/run_pending_debates.py --limit 10 --min-success 10; six sessions were committed before the shell timeout interrupted the seventh in-progress debate.timeout 1800 python3 scripts/run_pending_debates.py --limit 4 --min-success 4; four additional sessions committed successfully.2026-04-21 14:07 America/Los_Angeles, each with transcript_json length 4, four debate_rounds rows, and minimum round content length >= 8,798 characters.SDA-2026-04-07-gap-pubmed-20260406-041428-53b81741, SDA-2026-04-07-gap-pubmed-20260406-062202-c8c5a9a1, SDA-2026-04-07-gap-pubmed-20260406-062141-611cf046, SDA-2026-04-07-gap-debate-20260406-062039-7ef9980b, SDA-2026-04-07-gap-debate-20260406-062033-839c3e2a, SDA-2026-04-07-gap-pubmed-20260406-041445-7e1dc0b2, SDA-2026-04-07-gap-pubmed-20260406-041434-d7920f3b, SDA-2026-04-07-gap-pubmed-20260406-041423-2d1db50c, SDA-2026-04-07-gap-pubmed-20260406-062118-2cdbb0dd, SDA-2026-04-07-gap-pubmed-20260406-062150-a6cc7467.66f1207e-2ab0-45b3-95d7-a9a608b7e996debate_sessions rows, including new 2026-04-27/28 analyses, so prior coverage work had not reduced the current gap to the recommended <= 12 remaining target.scripts/run_pending_debates.py four-persona LLM runner for 11 analyses with the current task id. It inserted 0 rows because MiniMax timed out repeatedly, GLM was quota-exhausted, Claude CLI hit the monthly usage limit, and Codex CLI could not start inside the read-only harness session.source_paper_title metadata so no thin placeholder debates are created. The shared pending-debate writer was also updated for the current hypotheses.version / last_mutated_at NOT NULL schema and to accept --task-id.python3 scripts/reconstruct_pending_debates_from_metadata.py --limit 11 --task-id 66f1207e-2ab0-45b3-95d7-a9a608b7e996.dfb32151-9c40-452d-8063-0c57bae5c3d6, 457c5bc3-21d8-42a3-bb99-b0fc6f3f9554, a7f528aa-20c4-409d-a8c3-e2662850e63d, 8ec36980-febb-4093-a5a1-387ea5768480, bf5094c7-8ae0-4331-9871-d6f3078387c5, 0ed3c364-07fd-4620-8e90-8bd33c14e370, f7f8019f-08f6-428b-adff-85e8ea202b60, b7f886d9-da3f-4e0d-a8a8-9c262e268796, db9a224d-3ebb-429c-8f02-b703d71ca211, 687fb884-6d31-47c3-a83f-074bad980db6, 52661eaf-79f8-4647-8f48-3389f5af4d59.66f1207e-2ab0-45b3-95d7-a9a608b7e99651acd3b60 already met the recommended target of <= 12 remaining analyses without sessions, but the task is iterative and live PostgreSQL still showed 11 analyses without sessions.source_paper_title-backed analyses. The remaining set contained 10 records with enough local context for substantive debates (methodology challenges, causal benchmark, causal inference analysis, and AD master-plan preregistrations) plus one thin SDA-TEST-PREREG-003 test record that should not receive a placeholder debate.scripts/reconstruct_pending_debates_from_analysis_context.py, reusing the existing persist_result writer while adding strict eligibility for methodology_challenge, causal_benchmark, causal_inference, and ad_preregistration records.python3 scripts/reconstruct_pending_debates_from_analysis_context.py --limit 10 --task-id 66f1207e-2ab0-45b3-95d7-a9a608b7e996.debate_rounds rows, 3 synthesizer hypotheses, and minimum round content length >= 1,136 characters. Remaining analyses without sessions dropped from 11 to 1; the only remaining record is thin test fixture SDA-TEST-PREREG-003, deliberately skipped to avoid placeholder debate content.SDA-2026-04-28-gap-methodol-20260427-035148-7b3b3df4, SDA-causal-benchmark-20260428-035713, SDA-2026-04-28-microglial-priming-causal-nd, AD-MASTER-PLAN-LRP1-20260428030757, AD-MASTER-PLAN-GFAP-20260428030756, AD-MASTER-PLAN-BDNF-20260428030755, AD-MASTER-PLAN-APOE-20260428030754, AD-MASTER-PLAN-TREM2-20260428030753, SDA-2026-04-27-gap-methodol-20260427-035148-7b3b3df4, SDA-2026-04-27-gap-methodol-20260427-035148-9ab1842d.66f1207e-2ab0-45b3-95d7-a9a608b7e996task_66f1207e); all 21 have non-empty transcript_json (average length 10,899 characters).SDA-TEST-PREREG-003 (thin test fixture, no substantive content).{
"requirements": {
"analysis": 7,
"reasoning": 6
},
"max_iterations": 15
}