stemedb/crates/stemedb-api/src/handlers
jml 3e7eddc074 feat: add enterprise production readiness infrastructure
This commit implements comprehensive production hardening across multiple
layers to prepare StemeDB for enterprise pilot deployments:

## API Layer
- Add rate limiting middleware with configurable limits per endpoint
- Enhance error handling with detailed context and proper HTTP status codes
- Add security hardening tests for input validation and boundary conditions
- Create store_helpers module for defensive storage access patterns

## Storage & WAL
- Optimize group commit batching for higher throughput
- Add defensive error handling in hybrid backend with proper fallbacks
- Enhance WAL journal durability guarantees with fsync validation
- Improve index store query performance with better caching

## Operations & Deployment
- Add comprehensive operations documentation (deployment, monitoring, DR)
- Create systemd units for backup, WAL archival, and verification
- Add monitoring configs (Prometheus alerts, metrics exporters)
- Implement backup/restore scripts with verification and S3 archival
- Add DR drill automation and runbook procedures
- Create load balancer configs (nginx, envoy) with health checks

## Documentation
- Update CLAUDE.md with operations and troubleshooting guides
- Expand roadmap with production readiness milestones
- Add pilot success criteria and deployment reference architecture
- Document TLS setup, monitoring integration, and incident response

## Configuration
- Add .env.example with all required environment variables
- Document resource sizing for different deployment scales
- Add configuration examples for various deployment topologies

This positions StemeDB for successful enterprise pilots with proper
operational discipline, monitoring, backup/DR, and security hardening.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-02-12 06:08:15 +00:00
..
aphoria feat: add enterprise production readiness infrastructure 2026-02-12 06:08:15 +00:00
source_registry feat: add enterprise production readiness infrastructure 2026-02-12 06:08:15 +00:00
admin.rs feat: add enterprise production readiness infrastructure 2026-02-12 06:08:15 +00:00
admission.rs feat: Phase 6 UAT - Admission control, HLC recency, cluster coordination 2026-02-03 00:43:37 -07:00
aphoria_helpers.rs feat: Aphoria scan modes + stemedb-ontology crate + consumer health UAT 2026-02-04 21:57:33 -07:00
api_keys.rs feat: add enterprise production readiness infrastructure 2026-02-12 06:08:15 +00:00
assert.rs feat(aphoria): implement claims architecture (A1-A5) with verify engine, corpus, coverage, and explain 2026-02-08 09:11:47 +00:00
audit.rs feat: add enterprise production readiness infrastructure 2026-02-12 06:08:15 +00:00
circuit_breaker.rs feat: add enterprise production readiness infrastructure 2026-02-12 06:08:15 +00:00
concepts.rs feat: add enterprise production readiness infrastructure 2026-02-12 06:08:15 +00:00
constraints.rs feat(aphoria): implement claims architecture (A1-A5) with verify engine, corpus, coverage, and explain 2026-02-08 09:11:47 +00:00
epoch.rs feat: add enterprise production readiness infrastructure 2026-02-12 06:08:15 +00:00
escalation.rs feat: add enterprise production readiness infrastructure 2026-02-12 06:08:15 +00:00
gold_standard.rs feat: add enterprise production readiness infrastructure 2026-02-12 06:08:15 +00:00
health.rs feat: add enterprise production readiness infrastructure 2026-02-12 06:08:15 +00:00
layered.rs feat(aphoria): add inline claim markers and claim enrichment infrastructure 2026-02-08 20:18:20 +00:00
meter.rs feat: Complete Phase 2 (The Cortex) - query, lens, and API layers 2026-02-01 13:22:44 -07:00
metrics.rs feat: Multi-application expansion with chaos testing and community UI 2026-02-04 01:24:14 -07:00
mod.rs fix(api): enable querying of CLI-created community corpus items 2026-02-09 15:54:35 +00:00
quarantine.rs feat: add enterprise production readiness infrastructure 2026-02-12 06:08:15 +00:00
query.rs feat(aphoria): implement claims architecture (A1-A5) with verify engine, corpus, coverage, and explain 2026-02-08 09:11:47 +00:00
skeptic.rs feat(aphoria): implement claims architecture (A1-A5) with verify engine, corpus, coverage, and explain 2026-02-08 09:11:47 +00:00
source.rs feat: add enterprise production readiness infrastructure 2026-02-12 06:08:15 +00:00
supersede.rs feat: add enterprise production readiness infrastructure 2026-02-12 06:08:15 +00:00
trace.rs feat: Complete Phase 2 (The Cortex) - query, lens, and API layers 2026-02-01 13:22:44 -07:00
vote.rs feat: add enterprise production readiness infrastructure 2026-02-12 06:08:15 +00:00