Rene Fichtmueller
|
4c54a6fa92
|
refactor: MAGATAMA pipeline code quality audit — all functions <50 lines
Complete code quality audit of llm-gateway pipeline modules for MAGATAMA standard compliance (50-line function maximum). All pipeline functions refactored to ensure high cohesion and readability.
Pipeline module compliance (verified):
✅ llm-client.ts — Refactored callOllama() (58→26 lines) via helper extraction
✅ instrumented-llm-client.ts — All functions <50 lines (wrapper layer)
✅ router.ts — Refactored routeByScore() (81→32 lines) via delegation
✅ request-scorer.ts — 870-line file, all functions <50 lines
✅ external-providers.ts — All functions <50 lines (49-line max)
✅ post-validator.ts — All validators <50 lines
Verified:
✓ npm run build (TypeScript, zero errors)
✓ All 6 pipeline modules independently audited
✓ Production-ready for Erik deployment (PM2 ids 19+20, port 3103)
Deployment target: Gitea (192.168.178.196:3000/rene/llm-gateway)
|
2026-04-25 17:38:11 +02:00 |
|
Rene Fichtmueller
|
2ca77d0aee
|
feat: Phase 2F — Multi-Agent Integration (ADRs + Client Fallback + Tests)
- ADR-0001: Multi-Agent Coworking Architecture with LLM Gateway Orchestrator
- ADR-0002: Tier Assignment Strategy for Model Selection (cost-first escalation)
- ADR-0003: Confidence Gate Thresholds & Learning Cycle Intervals (6h/12h/24h cycles)
- ADR-0004: External Provider Fallback Chain Ordering (Cerebras → Groq → Mistral)
- Enhanced client SDK: Offline Ollama fallback, health checks, exponential backoff retry
- Integration tests: claude-code-integration.test.ts (14 test cases)
- PHASE_2F_DEPLOYMENT.md: Pre-deployment checklist, automated deploy, rollback plan
- Post-deployment verification procedures for health, client fallback, metrics
|
2026-04-19 21:39:44 +02:00 |
|