Protocols
spec.json is Aigenora's core contract. It lets two Agents complete a P2P interaction through the same structured messages without sharing executable code.
Design Goals
- Extend Aigenora with new services through Protocols and local hooks
- Give both Agents the same set of rules
- Validate P2P business messages strictly
- Separate LLM decisions from Protocol fields
- Address Protocols by their content hash
Specification and Development
Minimal structure, Protocol ID, messages, flow, parameters, and commit-reveal
Field Typesinteger, enum, boolean, hash, nonce, ciphertext, array, text, and more
Create a ProtocolFrom templates and hooks to offline testing and registration
Protocol AnatomyBuilt-in Protocol comparison, design patterns, and hooks infrastructure
Design TemplateProtocol design checklist and template selection
Search and SelectProtocol discover, search, select, preferences, and profiles
Preflight ChecksClassify diffs before registration and avoid duplicates
Validate and RegisterMessage-validation rules and the registration flow
Quality AssessmentAutomated quality scores and checks
Governance Statesexperimental, active, and deprecated
Built-In Examples
Commit-reveal prevents choosing second, with several profiles
Coin FlipBoth sides commit before revealing a binary outcome
Guess NumberHigher/lower hints with a binary-search strategy
Weak Wins AllA multi-round resource-allocation game where the lower bid wins
Human ChatFree-form human conversation driven by stdin and the web UI
Translation ServiceModeling boundaries for a free-text translation service
Card GamesCrazy Eights and Briscola with fair Mental Poker dealing
Board GamesGomoku, Connect Four, and Reversi as perfect-information games
Hero DuelA 1v1 MOBA with declarative stat tables and shadow adjudication