How kosasih/autonomous-swarm-negotiation-engine works
ASNE is an autonomous B2B negotiation engine. Its sampled REST workflow accepts a deal request, creates an ethics engine and deal environment, runs a negotiating swarm, and returns the deal outcome and ethics report. The documented HyperOrchestrator adds causal and counterparty reasoning, privacy proofs, constitutional review, contract generation, blockchain settlement, and post-session improvement. Other README capabilities—market intelligence, natural-language negotiation, quantum optimization, integrations, and digital-twin context—are represented, but their wiring is not established by the sampled excerpts.
Main entry points: __init__.py HyperOrchestrator · server.py REST API · swarm.py Negotiator swarm · engine.py Ethics engine
Components 24
API and orchestration
- REST API
asne/api/server.py - HyperOrchestrator
asne/orchestrator/__init__.py
Negotiation runtime
- Deal environment
asne/environment/deal_env.py - Negotiator swarm
asne/agents/swarm.py - Agent strategies
asne/agents
Intelligence and context
- Causal reasoning
asne/intelligence/causal.py - Theory of mind
asne/intelligence/theory_of_mind.py - Counterfactual reasoning
asne/intelligence/counterfactual.py - Self improvement
asne/intelligence/self_improve.py - Market intelligence
asne/market/__init__.py - LLM negotiation
asne/llm/__init__.py - Quantum optimizer
asne/quantum/optimizer.py - Digital twin
asne/twin/interface.py - API connectors
asne/api_hub/connector.py
Safety and privacy
- Ethics engine
asne/ethics/engine.py - Transparency log
asne/ethics/transparency.py - Constitutional AI
asne/safety/__init__.py - Red-team module
asne/safety/__init__.py - Privacy proofs
asne/zkp/__init__.py
Deal completion
- Contract generator
asne/blockchain/smart_contract.py - Blockchain settlement
asne/blockchain/settlement.py
Other components
- API client
- Blockchain network
- LLM provider
Connections 20
- API client → REST API: submits deal
- REST API → Ethics engine: creates ethics
- REST API → Deal environment: creates deal
- REST API → Negotiator swarm: runs negotiation
- Negotiator swarm → Deal environment: negotiates in
- Negotiator swarm → Ethics engine: uses ethics
- Ethics engine → Transparency log: logs proposals
- REST API → API client: returns outcome
- HyperOrchestrator → Negotiator swarm: runs negotiation
- HyperOrchestrator → Causal reasoning: requests intervention
- HyperOrchestrator → Theory of mind: updates beliefs
- HyperOrchestrator → Counterfactual reasoning: uses reasoning
- HyperOrchestrator → Privacy proofs: proves sufficiency
- HyperOrchestrator → Constitutional AI: checks agreement
- HyperOrchestrator → Contract generator: generates contract
- HyperOrchestrator → Blockchain settlement: settles deal
- HyperOrchestrator → Self improvement: records outcome
- Contract generator → HyperOrchestrator: returns source
- Blockchain settlement → Blockchain network: settles on-chain
- LLM negotiation → LLM provider: requests language