How ayushi-begin/agora works
Agora is a browser-based demo of an agent hiring and payment protocol, with an interactive operations interface. Its principal workflow is mission dispatch: the orchestrator queries agent reputation, selects a specialist, initiates an x402 payment guarded by spending controls, creates a validation artifact, and records an outcome. The implementation is a client-side simulation: the README describes on-chain capabilities, while the sampled protocol code uses in-memory state and simulated receipts. The graph follows documented stages and excerpted calls; unsampled UI wiring and external chain interactions are not inferred.
Main entry points: app.js UI coordinator · orchestrator.js Mission orchestrator · protocol-erc8004.js ERC-8004 registry · data.js Demo protocol state
Components 12
Demo interface
- Browser interface
index.html - UI coordinator
js/app.js - Topology visualizer
js/visualizer.js - Audio feedback
js/audio.js - Interface styles
css/components.css
Mission workflow
- Mission orchestrator
js/orchestrator.js - Work validation
js/orchestrator.js
Trust and payment
- ERC-8004 registry
js/protocol-erc8004.js - x402 payment rail
js/protocol-x402.js - Security guardrails
js/security-guardrails.js
State and controls
- Demo protocol state
js/data.js
Other components
- Operator
Connections 19
- Operator → Browser interface: uses
README.md - Browser interface → UI coordinator: loads interface
README.md - UI coordinator → Topology visualizer: initializes
js/app.js - UI coordinator → Mission orchestrator: dispatches mission
js/app.js - UI coordinator → ERC-8004 registry: reads passport
js/app.js - UI coordinator → Security guardrails: updates caps
js/app.js - UI coordinator → Audio feedback: plays feedback
js/app.js - UI coordinator → Interface styles: uses styling
- Mission orchestrator → ERC-8004 registry: queries candidates
js/orchestrator.js - Mission orchestrator → x402 payment rail: executes handshake
js/orchestrator.js - Mission orchestrator → Work validation: creates proof
js/orchestrator.js - Mission orchestrator → ERC-8004 registry: records outcome
README.md - x402 payment rail → Security guardrails: checks payment
js/protocol-x402.js - Mission orchestrator → Audio feedback: plays step cues
js/orchestrator.js - Mission orchestrator → Demo protocol state: reads and updates
- ERC-8004 registry → Demo protocol state: reads and updates
- x402 payment rail → Demo protocol state: records payment
js/protocol-x402.js - Security guardrails → Demo protocol state: records security events
js/security-guardrails.js - Topology visualizer → Operator: shows task cycle
js/visualizer.js