Lumina J5 Bootstrap - OASIS Runtime + Governance Gates
A sophisticated AI governance system built for the OASIS ecosystem, implementing Johnny-5 AI bootstrap with comprehensive governance, truth anchoring, and compliance mechanisms.
π Features
Core Governance
Values-Based Decision Making: OASIS values framework integration
Compliance Checking: Automated policy compliance validation
Quorum Management: Configurable quorum requirements
Herz Coherence Monitoring: Real-time coherence tracking
Timelock Mechanisms: Time-delayed execution for sensitive operations
Truth Anchoring
Blockchain Integration: Truth chain anchoring for immutable records
Policy Decision Anchoring: Permanent record of governance decisions
Transaction Anchoring: Immutable transaction history
Service Architecture
Microservices: Modular service handlers
Event-Driven: NATS-based event system
Queue Management: Redis-based job queuing
State Management: PostgreSQL for persistent state
Audit Logging: S3-compatible audit trail
Security & Identity
DID-Based Identity: Decentralized identifier integration
KMS/Vault Integration: Secure key management
Permission System: Fine-grained access control
Attestation Framework: Cryptographic attestations
ποΈ Architecture
π οΈ Quick Start
Prerequisites
Docker & Docker Compose
Go 1.21+ (for local development)
Make (optional, for convenience commands)
Using Docker Compose (Recommended)
Clone and Setup
Start the Stack
Verify Services
Access Services
Lumina J5 API: http://localhost:8080
Grafana: http://localhost:3000 (admin/admin123)
Prometheus: http://localhost:9090
MinIO: http://localhost:9001 (minioadmin/minioadmin123)
Vault: http://localhost:8200 (root token: root)
Local Development
Install Dependencies
Start Dependencies
Run the Application
π Configuration
Environment Variables
RUNTIME_ENV
Runtime environment
prod
SERVICE_DOMAIN
Service domain
lumina.local
KMS_KEY_ID
KMS key identifier
Required
VAULT_PATH_SECRETS
Vault secrets path
secret/data/j5
NATS_URL
NATS connection URL
nats://nats:4222
REDIS_URL
Redis connection URL
redis:6379
PG_CONN
PostgreSQL connection string
Required
S3_AUDIT_BUCKET
S3 audit bucket name
lumina-audit
OTLP_ENDPOINT
OpenTelemetry endpoint
http://otel:4317
Governance Configuration
π API Endpoints
Health & Status
GET /healthz- Liveness probeGET /readyz- Readiness probe
Governance
POST /api/v1/attestations- Create attestationGET /api/v1/attestations- List attestationsPOST /api/v1/policy-decisions- Create policy decisionGET /api/v1/policy-decisions- List policy decisions
Transactions
POST /api/v1/transactions- Propose transactionGET /api/v1/transactions- List transactionsPOST /api/v1/transactions/:id/approve- Approve transactionPOST /api/v1/transactions/:id/execute- Execute transaction
Herz Coherence
GET /api/v1/herz-coherence- Get coherence metricsPOST /api/v1/herz-coherence- Update coherence metrics
Services
POST /api/v1/services/:name/handle- Handle service request
π§ Service Handlers
Values Check Handler
Validates actions against OASIS values framework:
Love, Wisdom, Truth, Justice, Freedom
Unity, Harmony, Creativity, Compassion, Integrity
Compliance Check Handler
Validates compliance with governance policies:
Quorum requirements
Timelock mechanisms
Authority validation
Herz coherence thresholds
Execute Handler
Executes approved transactions:
Treasury moves
Token minting
Policy creation
Event publishing
Anchor Handler
Performs truth anchoring:
Policy decision anchoring
Transaction anchoring
Blockchain integration
π Monitoring & Observability
Metrics
Governance decision metrics
Transaction execution metrics
Herz coherence trends
Service performance metrics
Logging
Structured JSON logging
Audit trail in S3/MinIO
Event correlation IDs
Security event logging
Tracing
OpenTelemetry integration
Distributed tracing
Performance monitoring
Error tracking
π Security
Identity Management
DID-based identity system
Cryptographic attestations
Multi-signature support
Key rotation capabilities
Access Control
Role-based permissions
Policy-based authorization
Audit logging
Compliance monitoring
Data Protection
Encryption at rest
Encryption in transit
Secure key management
Data integrity verification
π Deployment
Production Deployment
Configure Secrets
Deploy Infrastructure
Configure Monitoring
Scaling Considerations
Horizontal Scaling: Stateless service design
Database Scaling: Read replicas for queries
Cache Scaling: Redis cluster for high availability
Message Scaling: NATS clustering for throughput
π€ Contributing
Fork the repository
Create a feature branch
Make your changes
Add tests
Submit a pull request
Development Guidelines
Follow Go best practices
Write comprehensive tests
Document API changes
Update configuration examples
Maintain backward compatibility
π License
This project is licensed under the MIT License - see the LICENSE file for details.
π Support
Documentation: Wiki
Issues: GitHub Issues
Discussions: GitHub Discussions
Discord: OASIS Community
π Acknowledgments
OASIS Foundation for the governance framework
The Go community for excellent tooling
OpenTelemetry for observability standards
The open-source community for inspiration
Built with β€οΈ for the OASIS ecosystem
Last updated