M6.1 PI Agent core #51
Labels
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: archeious/marchwarden#51
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Phase 6 — PI Orchestrator, milestone 1.
Goal
The Principal Investigator agent: a coordinator that dispatches multiple researchers in parallel, processes their results, and produces a unified answer. This is what V1's CLI shim is a placeholder for.
Scope
orchestrator/pi.pyclass PrincipalInvestigatorwith:async investigate(question, depth, constraints) -> InvestigationResultasyncio.gather— fans out the question to all relevant researchersdiscovery_eventssuggesting another researcher, the PI dispatches a follow-up callraw_excerptfields across researchers' citations; surfaces disagreementsBUDGET_EXHAUSTED→ re-dispatch with larger budget;SOURCE_NOT_FOUND→ try a different researcher;SCOPE_EXCEEDED→ escalate to userInvestigationResultextendingResearchResultwith per-researcher attributionTests
related_researchdiscovery_event pointing at the other; assert the PI dispatches the follow-uplocatorbut differentraw_excerpt→ PI surfaces itOut of scope