[Forge] Scientific prompt templates for 5 image types done image_generation:5 reasoning:6

← Visual Artifacts
Craft and test prompt templates for: pathway_infographic (from KG edges), hypothesis_visual (summary card), protocol_illustration (step-by-step), debate_card (debate summary), entity_portrait (biological entity). Each template takes structured data and produces a detailed image generation prompt. Test with representative examples. ## 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

Verified origin/main state (SHA 1893db0eb): - scidex/forge/image_generator.py contains all 5 image type implementations (lines 251-428): pathway_infographic, hypothesis_visual, protocol_illustration, debate_card, entity_portrait - tests/test_image_generator_prompts.py exists on main (356 lines) with 8 tests passing for all 5 template types - Prior commits a59d9f2ad and d2e89ff8b with same task ID exist but are NOT on main (they're on orphan branches) - All acceptance criteria satisfied

Git Commits (1)

[Forge] Scientific prompt templates for 5 image types [task:4f5b385f-66b5-4cf3-b4cf-d772e2736769]2026-04-17
Spec File

[Forge] Scientific prompt templates for 5 image types

ID: 4f5b385f-66b Priority: 75 Type: one_shot Status: open

Goal

Craft and test prompt templates for: pathway_infographic (from KG edges), hypothesis_visual (summary card), protocol_illustration (step-by-step), debate_card (debate summary), entity_portrait (biological entity). Each template takes structured data and produces a detailed image generation prompt. Test with representative examples.

Acceptance Criteria

☑ Concrete deliverables created
☑ Work log updated with timestamped entry

Work Log

  • 2026-04-17T10:45:00Z — Verified scidex/forge/image_generator.py on origin/main already contains all 5 image type implementations (pathway_infographic, hypothesis_visual, protocol_illustration, debate_card, entity_portrait). Created tests/test_image_generator_prompts.py with representative examples testing all 5 prompt templates. All 8 tests pass.

Payload JSON
{
  "requirements": {
    "reasoning": 6,
    "image_generation": 5
  },
  "_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"
}

Sibling Tasks in Quest (Visual Artifacts) ↗