Fetching metadata from the HF Docker repository...
-
fix: brand Yaz, Surgio UI/UX auto-load feed + search + blocked_count
Brand:
- Rename 'Yaz Care' / 'YAZ Care Platform' to 'Yaz' / 'Yaz Platform'
across user-facing templates, main.py, manifest
- Technical identifiers (JWT issuer, service names) unchanged
Surgio UI/UX fixes:
- Add search input to toolbar (missing -> filterCases() JS TypeError)
- Replace static cases block with HTMX auto-load (hx-trigger=load)
so case feed populates on page open, not only after filter click
- Fix filterCases() null guard for search element
- Add blocked_count (DELAYED status) to dashboard route context
- Remove duplicate surgio.css load from app_head block
Sprint 44+: 620 files — modules, migrations, templates, tests, ops
-
feat: Sprint 44 — ProductRegistry, Azul/Luiz layer, 13 migrations, doc cleanup
- ProductRegistry: 20-product catalogue, 10 API endpoints, 3 DB tables, 35 tests
- Docker profiles: sandbox/staging/prod + worker + mailhog
- Azul/Luiz surgical intelligence layers, Stay engine, Amraved AI improvements
- Educa cards, Ayrad engine, Notifications service
- 13 new Alembic migrations
- hospi engine removed (superseded by Stay), surgio monolith route removed
- Docs: removed 3 dupes (architecture.md, deployment.md, security.md)
- Docs: added ADRs (8), runbooks (8), DEPLOY.md, modules.md, CONTRIBUTING.md
- STATUS.md: Sprint 44, current metrics (1406 routes, 829 py files)
-
chore: Cycle 14 — remove 33 dead files (5,269 LOC)
Orphaned migrations (6 files, 852 LOC):
- 010_billing_marketplace, 012_credits_system, 020_handles_profiles
- 20260405_cases, core_003_hybrid_architecture, traker_002_decision_engine
- All dead branch roots: down_revision=None, zero chain deps
Stale script READMEs rewritten (10 files, 2,317 LOC saved):
- scripts/{database,dev,generators,governance,operations,ops,setup,
surgery,testing,validation}/README.md → minimal 3-9 line versions
Dead config/data (8 files, 2,100 LOC):
- config/.watchignore, config/environments/*, grafana dashboards
- data/schema_registry/surgio/surgical_study.v1.json
Empty monitoring stubs (9 files, 0 LOC):
- src/monitoring/{Dockerfile,*.yml,*.json,requirements.txt}
Grand total (14 cycles): 414 files, 133,746 LOC eliminated
App verified: 1,334 routes unchanged -
Cycle 11: Remove 68 dead scripts (20,236 LOC)
Dead scripts audit — 104 → 36 tracked files in scripts/:
- 61 scripts with zero references from Makefile, CI, pre-commit, tasks.json, or docs
- 6 stale READMEs from dirs going empty (listed nonexistent placeholder scripts)
- 1 empty __init__.py (surgery/)
By category:
- ops/: 18 scripts (Makefile refs infra/ops/ which doesn't exist)
- validation/: 8 scripts (check_core_immutability + check_tenant_filters kept)
- database/: 7 scripts (check_indexes.py + 2 SQL files kept)
- observability/: 4 scripts
- operations/: 4 scripts (cleanup.py kept via tasks.json)
- generators/: 3 scripts (create_tool + generate_ui kept)
- monitoring/: 2 scripts
- security/: 2 scripts
- ui/: 2 scripts
- pwa/: 2 scripts
- testing/: 2 shell scripts (performance_benchmark kept)
- sprints/: 3 shell scripts
- docs/: 1 shell script
- deployment/: 1 shell script (deploy.sh kept)
- backup/: 1 script
- Root: 2 scripts (init_platform, create_credit_tables)
App verified: 1,334 routes unchanged.
Grand total Sprint 43: 99,…
-
chore: remove bloat and deprecation, organize docs (Sprint 41)
Cleanup:
- Remove src/static/css/_deprecated/ (dead CSS: core.css, performance.css)
- Remove src/apps/amraved/ backward-compat shim (all callers migrated to ai/assistants/amraved/)
- Remove src/apps/surgio/router.py legacy router (1657 LOC, api_router unmounted)
- Remove Role=None deprecated export from core/__init__.py
- Remove redundant config env files (.env.example, development.env, example.env, .env.production.example)
- Clean surgio/__init__.py: remove legacy router import, bump to v3.5.0
Documentation:
- Update docs/INDEX.md: version 7.0.0, correct commandment count (11), add missing architecture docs
- Update docs/DOCKER.md: fix version, correct file paths, remove nonexistent references
No functional changes — app boots with 1094 routes, all tests pass.
-
docs: Complete codebase organization - Sprint 36 major milestone
Major documentation and organization initiative completed:
Documentation Created (18 READMEs, ~2,100 LOC)
- Scripts: 16 READMEs (~1,500 LOC) covering all operational scripts
- Apps: 2 READMEs (auth, shared) completing 100% app coverage
File Organization
- Moved loose scripts to proper subdirectories
- Root scripts/ now clean (only setup.py entry point)
Coverage Metrics
- scripts/ READMEs: 0% → 88% (16 of 18 documented)
- src/apps/ READMEs: 90% → 100% (20/20 apps documented)
- Total: +2,100 LOC comprehensive documentation
Benefits
- Maintainer-friendly: Self-documenting directories
- Reproducible: Copy-paste ready commands
- Security-focused: HIPAA compliance documented
- Performance-aware: SLA targets specified
Impact: Platform now 100% documented at operational level, ready for
external contributors and new team members.
Related: #organization-audit #documentation #sprint-36
-
Sprint 34 Progress: Database Indexing & Documentation Complete
-
refactor: consolidate directory structure
- Move 17 apps from /apps to /src/apps
- Archive duplicate core modules (events, models, repositories, services)
- Consolidate ops scripts to /scripts/ops (11 scripts)
- Create comprehensive consolidation report
- Add implementation summary document
Changes:
- Backup created at archive/pre_consolidation_backup/
- Import analysis identifies 54 files needing review
- All applications successfully migrated
- Platform health check passes
-
Sprint 14 Task 7: Complete production deployment infrastructure
Production Kubernetes Manifests (500+ lines):
- API Deployment: 3-10 replicas with auto-scaling (HPA), rolling updates, health checks
- Ingress: SSL/TLS termination, rate limiting, CORS, nginx configuration
- Database: PostgreSQL StatefulSet with 100GB storage, Redis deployment with persistence
- Config & Secrets: Centralized configuration, encrypted secrets management
- Backup CronJob: Daily automated backups at 2 AM with 30-day retention
Monitoring Infrastructure:
- Prometheus: Metrics collection, 30-day retention, 50GB storage
- Grafana: Dashboard visualization, datasource configuration
- Service monitoring: API, database, Redis exporters
- RBAC: Proper service accounts and cluster roles
CI/CD Pipeline (.github/workflows/ci-cd.yml):
- Automated testing: Unit, integration, security scans
- Code quality: Black, flake8, mypy, bandit
- Docker build: Multi-stage builds with caching
- Deployment: Staging and production with environment protection
- Security: Trivy scanning, dependency c… -
Sprint 14 Task 6: Complete security hardening
Security Infrastructure (src/security/scanner.py - 540 lines):
- SecurityScanner: SQL injection, XSS, auth, encryption, access control, API security checks
- HIPAAComplianceChecker: Administrative, physical, technical safeguards validation
- PasswordValidator: 12+ chars, complexity requirements, common password detection
- TokenManager: JWT generation/verification with expiry and unique IDs
- SecurityHeaders: HSTS, CSP, X-Frame-Options, X-Content-Type-Options
- Input sanitization and PHI hashing utilities
Comprehensive Security Tests (tests/unit/test_security.py - 450 lines, 35+ test methods):
- SQL injection prevention tests
- XSS prevention tests
- Authentication security tests (password policy, MFA, session timeout)
- Encryption tests (at rest, in transit, algorithm strength)
- Access control tests (RBAC, audit logging, default credentials)
- API security tests (rate limiting, CORS, versioning)
- HIPAA compliance validation tests
- Password validation tests (weak/strong passwords, …
-
Sprint 12 Task 4: PostgreSQL Backup & Disaster Recovery
Implemented comprehensive backup automation and recovery procedures
Scripts Created (682 lines total):
1. backup_postgres.py (450 lines)
- Full backups with pg_dump (gzip compression)
- Schema-only backups (lightweight)
- Backup verification with temp database testing
- Restore functionality with single-transaction safety
- Metadata tracking (JSON format)
- Cleanup with 30-day + 12-week retention
- CLI interface (backup|restore|verify|list|cleanup|schema)
2. backup_scheduler.py (232 lines)
- Automated scheduling with python-schedule
- Daily full backups (02:00, 14:00)
- Hourly schema backups (:30 minutes)
- Weekly cleanup (Sunday 03:00)
- Automatic verification (every 5th backup)
- Test mode for rapid testing
- Systemd service integration
Documentation:
3. DISASTER_RECOVERY.md (Complete DR guide)
- Recovery procedures (3 scenarios)
- RTO/RPO targets (15-30 min / 12 hours)
- Manual backup operations
- Monthly recovery drills
- … -
Sprint 12 Task 1: Load Testing Infrastructure (k6)
Added comprehensive k6 load testing framework:
Load Test Scripts (5 scripts):
- health-check.js: Basic health check (30s, 10 VUs)
- api-smoke-test.js: API smoke test (2 min, 20 VUs)
- labo-workflow-load.js: Lab workflow test (10 min, 200/min target)
- stress-test.js: Stress test to find limits (12 min, up to 500 VUs)
- endurance-test.js: Stability test (2 hours, 100 VUs constant)
Features:
- Custom metrics for healthcare workflows
- Realistic user journey simulations
- Performance thresholds aligned with SLOs
- JSON output for reporting and analysis
- Degradation detection for endurance tests
- Connection pool and memory issue tracking
Infrastructure:
- Makefile integration (6 new targets)
- Grafana k6 dashboard with 13 panels
- HTML report generator script
- Comprehensive documentation (README.md)
Performance Targets:
- Health checks: <10ms (p95)
- Authentication: <100ms (p95)
- Lab orders: <200ms (p95)
- Surgical ops: <300ms (p95)
- Analytics: <500ms (p95)
- Overall throughput: 5…
-
Sprint 9 Complete: API Documentation & Testing