Skip to content

Phase D: Conversations + Social Posts#66

Merged
DeveshParagiri merged 9 commits intomainfrom
phase-d-conversations
Feb 16, 2026
Merged

Phase D: Conversations + Social Posts#66
DeveshParagiri merged 9 commits intomainfrom
phase-d-conversations

Conversation

@DeveshParagiri
Copy link
Copy Markdown
Collaborator

Summary

  • Add agent-to-agent and agent-NPC multi-turn conversations during simulation
  • Add social posts feature for public discourse beyond direct network
  • Add --fidelity flag controlling conversation depth (low/medium/high)

Conversations

  • Agents can choose talk_to action during reasoning to initiate conversations
  • Multi-turn LLM-driven dialogues (2-3 turns based on fidelity)
  • Conversation outcomes override provisional reasoning state
  • Support for partner NPCs and household dependents
  • Conflict resolution when multiple agents want same target
  • Relationship weights for conversation priority

Social Posts

  • social_posts table captures public statements from sharing agents
  • Social feed shows recent posts from beyond direct network ("What People Are Saying Online")
  • Agents perceive broader public discourse, not just their immediate neighbors
  • Exported to social_posts.json in results

Files Changed

Area Files
Models scenario.py, simulation.py
CLI simulate.py (--fidelity flag)
Storage study_db.py (conversations + social_posts tables)
Simulation conversation.py (new), engine.py, reasoning.py, aggregation.py
Tests test_conversations.py (new), test_engine.py
Docs capabilities.md

Test Plan

  • 802 tests pass
  • Lint passes (ruff check)
  • Social posts DB methods verified
  • Prompt rendering verified
  • Conversation flow verified

🤖 Generated with Claude Code

- Add conversation system for agent-agent and agent-NPC exchanges
- Add --fidelity flag: low (no convs), medium (2 turns), high (3 turns)
- Add talk_to action type to reasoning schema
- Add relationship_weights to ScenarioSpec for conversation priority
- Add conversations table to study DB with helper methods
- Integrate conversation phase into engine timestep loop
- Add available_contacts to reasoning prompts
- Export conversation stats and conversations.json in results
- Add social_feed field to ReasoningContext
- Build feed from recent posts beyond agent's direct network
- Render 'What People Are Saying Online' section in prompts
@DeveshParagiri DeveshParagiri merged commit 4502c81 into main Feb 16, 2026
4 of 5 checks passed
@DeveshParagiri DeveshParagiri deleted the phase-d-conversations branch February 16, 2026 03:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant