@agora-protocol/room-engine
v0.3.3
Published
ACP Room engine: state machine, turns, rules, agreements, audit trail
Maintainers
Readme
@agora-protocol/room-engine
The protocol engine for the ACP Protocol: state machine, turn manager, rule enforcement, agreements, audit trail.
Install
npm install @agora-protocol/room-engineWhat's inside
RoomController— the single authority forsendMessage/processIncoming/closeon a room. Auto-wires the Phase 21 defences (rate limiter, injection detector, circular-turn detector) and records typed anomalies.MessageProcessor— size → schema → signature → nonce → chain → participant → turn → intent validation pipeline.AuditTrailBuilder— emits the canonical audit trail from a session. Uses a localSessionStateReaderstructural type (no hard dep on@agora-protocol/session).AuditVerifier— verifiesaudit_root, chain integrity, and agreement signatures (including organization-level signatures).AgreementManager+CommitmentManager+EscalationManager— intent-driven agreement detection and lifecycle.RoomFactory— generates canonicalRoomRulesfrom aRoomConfig+ active extensions.
This is the package to read if you want to understand how ACP makes a multi-agent conversation cryptographically auditable.
License
MIT
