[Forge] Implement agent role definitions — researcher, debater, market-maker, auditor, gap-finder done coding:8 safety:9

← Agent Ecosystem
## 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

Auto-completed by supervisor after successful deploy to main

Git Commits (4)

Squash merge: orchestra/task/37ddff34-implement-agent-role-definitions-researc (1 commits)2026-04-20
Squash merge: orchestra/task/37ddff34-implement-agent-role-definitions-researc (1 commits)2026-04-20
Squash merge: orchestra/task/37ddff34-implement-agent-role-definitions-researc (1 commits)2026-04-20
Squash merge: orchestra/task/37ddff34-implement-agent-role-definitions-researc (1 commits)2026-04-20
Spec File

[Forge] Implement agent role definitions — researcher, debater, market-maker, auditor, gap-finder

Quest: Agent Ecosystem Priority: P2 Status: open

Goal

Implement agent role definitions — researcher, debater, market-maker, auditor, gap-finder

Context

This task is part of the Agent Ecosystem quest (Forge layer). It contributes to the broader goal of building out SciDEX's forge capabilities.

Acceptance Criteria

☐ Implementation complete and tested
☐ All affected pages load (200 status)
☐ Work visible on the website frontend
☐ No broken links introduced
☐ Code follows existing patterns

Approach

  • Read relevant source files to understand current state
  • Plan implementation based on existing architecture
  • Implement changes
  • Test affected pages with curl
  • Commit with descriptive message and push
  • Work Log

    _No entries yet._

    Verification — 2026-04-20T22:20:00Z

    Result: PARTIAL Verified by: minimax:61 via task 37ddff341f27

    Tests run

    TargetCommandExpectedActualPass?
    AGENT_TYPES listpython3 -c "from scidex.senate.agent_registry import AGENT_TYPES; print(AGENT_TYPES)"Contains researcher, debater, market_maker, auditor, gap_finderresearcher ✓, debater ✓, market_maker ✗ (MISSING), auditor ✓, gap_finder ✓
    normalize_agent_type("market-maker")python3 -c "from scidex.senate.agent_registry import normalize_agent_type; print(normalize_agent_type('market-maker'))""market_maker"ValueError: Invalid agent_type 'market-maker'
    normalize_agent_type("market_maker")same"market_maker"ValueError: Invalid agent_type 'market_maker'

    Root cause

    The market_maker role was absent from AGENT_TYPES in scidex/senate/agent_registry.py. The task title explicitly names "market-maker" as one of five required role definitions, but it was missing from the enum. Four other roles (researcher, debater, auditor, gap_finder) were already present.

    Fix applied

    Added market_maker to AGENT_TYPES list (alphabetically sorted, placed between knowledge_generator and predictor). No other changes were made to preserve existing functionality.

    Post-fix verification

    AGENT_TYPES count: 15 (was 14)
    normalize_agent_type("market_maker") -> "market_maker" ✓
    normalize_agent_type("market-maker") -> "market_maker" ✓
    normalize_agent_type("researcher")   -> "researcher" ✓
    normalize_agent_type("debater")     -> "debater" ✓
    normalize_agent_type("auditor")      -> "auditor" ✓
    normalize_agent_type("gap_finder")   -> "gap_finder" ✓

    Attribution

    • b54c71b45 — [Agora] Add type, model, stats_json to agent_personas (added diverse persona registry)
    • 307380867 — [Senate] Auto-create agent markets on registration (agent type system)
    • 6456e0c50 — [Senate] Add agent discovery API and role compatibility
    • e370d96c8 — [Forge] Implement agent registry with health, performance, and task tracking

    Notes

    The market_maker role already exists in scidex/exchange/market_participants.py as a participant_id (line 1414) and in scripts/market_maker.py as the LMSR implementation. Adding it to AGENT_TYPES brings the agent registry into alignment with the existing Exchange layer implementation.

    Payload JSON
    {
      "requirements": {
        "coding": 8,
        "safety": 9
      }
    }

    Sibling Tasks in Quest (Agent Ecosystem) ↗