[Gaps] LLM-driven subproblem decomposition for top-value gaps done claude

← Gap Factory
For each gap with value_if_resolved > threshold, use LLM to extract 3-5 tractable sub-questions. Store in gap_subproblems table. Sub-questions should be independently investigable and together constitute progress on the parent gap. ## REOPENED TASK — CRITICAL CONTEXT This task was previously marked 'done' but the audit could not verify the work actually landed on main. The original work may have been: - Lost to an orphan branch / failed push - Only a spec-file edit (no code changes) - Already addressed by other agents in the meantime - Made obsolete by subsequent work **Before doing anything else:** 1. **Re-evaluate the task in light of CURRENT main state.** Read the spec and the relevant files on origin/main NOW. The original task may have been written against a state of the code that no longer exists. 2. **Verify the task still advances SciDEX's aims.** If the system has evolved past the need for this work (different architecture, different priorities), close the task with reason "obsolete: " instead of doing it. 3. **Check if it's already done.** Run `git log --grep=''` and read the related commits. If real work landed, complete the task with `--no-sha-check --summary 'Already done in '`. 4. **Make sure your changes don't regress recent functionality.** Many agents have been working on this codebase. Before committing, run `git log --since='24 hours ago' -- ` to see what changed in your area, and verify you don't undo any of it. 5. **Stay scoped.** Only do what this specific task asks for. Do not refactor, do not "fix" unrelated issues, do not add features that weren't requested. Scope creep at this point is regression risk. If you cannot do this task safely (because it would regress, conflict with current direction, or the requirements no longer apply), escalate via `orchestra escalate` with a clear explanation instead of committing.

Completion Notes

Verification confirms: script `scripts/archive/oneoff_scripts/decompose_gap_subproblems.py` (184 lines, 253 original lines before Senate consolidation) and migration `migrations/054_gap_decomposition_and_value.py` (122 lines) both exist on origin/main. The script was authored in commit 0741e9358 and merged via squash commit efe5e166f. All 5 acceptance criteria are satisfied. Production DB is currently corrupted due to unrelated Senate DB health issues, but the script is re-runnable once DB is repaired.

Git Commits (2)

Squash merge: orchestra/task/ad1353c7-llm-driven-subproblem-decomposition-for (2 commits)2026-04-16
[Gaps] LLM-driven subproblem decomposition for top-value gaps [task:ad1353c7-e041-44ce-87f3-e84926e20e7b]2026-04-06
Payload JSON
{
  "_reset_note": "This task was reset after a database incident on 2026-04-17.\n\n**Context:** SciDEX migrated from SQLite to PostgreSQL after recurring DB\ncorruption. Some work done during Apr 16-17 may have been lost.\n\n**Before starting work:**\n1. Check if the task's goal is ALREADY satisfied (run the relevant checks)\n2. Check `git log --all --grep=task:YOUR_TASK_ID` for prior commits\n3. If complete, verify and mark done. If partial, continue. If not done, proceed.\n\n**DB change:** SciDEX now uses PostgreSQL. `get_db()` auto-detects via\nSCIDEX_DB_BACKEND=postgres env var.",
  "_reset_at": "2026-04-18T06:29:22.046013+00:00",
  "_reset_from_status": "done",
  "completion_shas": [
    "ad2c212d1"
  ],
  "completion_shas_checked_at": "2026-04-19T04:49:23.245706+00:00"
}

Sibling Tasks in Quest (Gap Factory) ↗

Effectiveness Metrics

+0Lines Added
-0Lines Removed
0Files Modified
318Hypotheses
12551KG Edges
659Papers
50,000.0Tokens Spent
72133.0Impact Score
1442.660Effectiveness