[P0] CRITICAL: Agentic Flow is Non-Functional - Orchestrator v3_llm Missing Entity Tools and Proper Prompts #93
Labels
No labels
agentic-osint
audit
blocked:commit-ready-failed
blocked:gate-fetch
blocked:gate-fetch
blocked:gate-lint
blocked:gate-plan
blocked:gate-research
blocked:needs-decision
blocked:needs-human
blocked:no-changes
blocked:preflight
blocked:verify-failed
bug
chore
deferred
enhancement
feature-request
in-progress
lint-baseline
lint-cleanup
needs-decompose
needs-triage
performance
quickfix
security/medium
triage-approved
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Mark/osint-hub#93
Loading…
Add table
Add a link
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?
🔴 CRITICAL: Agentic Flow is Completely Broken
Summary
The "active" orchestrator (
orchestrator_v3_llm.py) is missing all entity creation tools and has fundamentally weak prompts. The LLM can only call modules but cannot create structured entities (organizations, people, findings, relationships). This makes the entire agentic flow non-functional.Root Cause Analysis
Problem 1: Missing Tools
The v3_llm orchestrator ONLY provides the
run_moduletool:But the ORIGINAL orchestrator.py provided ALL tools:
Missing tools:
create_or_update_org- Create organizationscreate_or_update_person- Create personscreate_lead- Create investigation leadscreate_finding- Create evidence-backed findingscreate_relationship_edge- Create entity relationshipscreate_evidence_snippet- Create citeable evidence snippetsget_evidence_artifact_chunk- Retrieve evidence for analysisProblem 2: Weak System Prompts
The v3_llm prompt (lines 455-473) is missing the detailed workflow guidance from the original orchestrator.py.
Problem 3: No Anti-Hallucination Safeguards
The v3_llm has no guidance on:
Impact
Required Fix
Step 1: Add All Tools Back
In
orchestrator_v3_llm.py, change tools list to include entity and evidence tools.Step 2: Restore Strong System Prompts
Restore the detailed prompts from
orchestrator.py(lines 537-623).Step 3: Wire Up Entity Tool Execution
The v3_llm orchestrator needs handlers for all entity tools.
Step 4: Use entity_module_map
The
entity_module_map.pyhas 1000+ lines of entity-to-module mappings that should inform module selection.Files to Modify
backend/app/services/investigations/orchestrator_v3_llm.py- Core fixbackend/app/services/investigations/entity_tools.py- Already exists, needs to be calledbackend/app/services/investigations/entity_module_map.py- Should be utilizedTest Plan
After fix: