This guide covers how to run SSI Protocol reference implementations.
This file is non-normative. Compliance requirements are defined in the constitutional documents.
Read the five constitutional documents in order:
- SPEC.md — Understand core invariants
- DECISIONS.md — Learn what constitutes a decision
- AUDIT.md — See how verification works
- FAILURE.md — Understand fail-closed semantics
- COMPLIANCE.md — Review certification requirements
# Clone repository
git clone https://github.com/Jtjr86/ssi-protocol-oss.git
cd ssi-protocol-oss
# Start SSI Gateway
cd reference/gateway
npm install
npm start
# In another terminal, start SSI Kernel
cd reference/kernel
npm install
npm start# Submit decision request
curl -X POST http://localhost:4041/api/decisions \
-H "Content-Type: application/json" \
-d '{
"agent_id": "test-agent-001",
"decision_type": "EXAMPLE_ACTION",
"context": {
"description": "Test decision for SSI evaluation"
}
}'
# Response includes RPX record with hash chain
{
"outcome": "ALLOW",
"record_id": "550e8400-e29b-41d4-a716-446655440000",
"record_hash": "7b3e4f2a...",
"previous_hash": "a2f9c1d5...",
"timestamp": "2025-12-17T14:32:11Z"
}Verification procedures are defined in AUDIT.md. Reference implementation provides verification tooling (check reference/gateway for verification scripts).
- Node.js 18+ (reference implementations)
- PostgreSQL 14+ (Gateway storage, optional)
- 2GB RAM minimum
- Docker (optional, for containerized deployment)
Critical reminders:
- Ensure fail-closed defaults are enforced (see FAILURE.md)
- Ensure RPX records are immutable and hash-chained (see AUDIT.md)
- Treat this guide as operational documentation, not constitutional specification
For production setup:
- Configure high-availability PostgreSQL
- Set up monitoring and alerting
- Implement backup and recovery procedures
- Review FAILURE.md for emergency halt procedures
- Check PostgreSQL connection (if using database storage)
- Verify port 4041 is available
- Review logs for error details
- Validate policy syntax
- Check policy file permissions
- Review fail-closed behavior in FAILURE.md
- DO NOT modify RPX records manually
- Check for database corruption
- Review AUDIT.md for verification procedures
- If tampering suspected, follow incident response in SECURITY.md
This is an implementation guide. Compliance is defined in the constitutional documents.