Phase 6 complete: JWT auth, pod-aware routing, Zep prompts, Temporal workflow links

- Add migration 005_workflows_schema.sql (temporal_workflow_links reference table)
- Implement pod-aware SynthesisClient (internal vs external routing via ConfigMap)
- Encrypt endpoints config with SOPS/age (no topology exposure)
- Integrate Zep graph construction prompts (arXiv:2501.13956)
- Fix Phase 5.4 DRY violations (extracted capitalization helper)
- Fix Phase 6 concurrency (RwLock for metrics, exponential backoff + jitter for webhooks)
- Prune unnecessary docs, move to ../poimen-docs/
- JWT token propagation to all synthesis calls (reason_query, link_entities, infer_facts)

Quality improvements:
  CRAP: 2.63 → 2.23 (16.7% better)
  DRY: 90% → 95% (+5.5%)
  SOLID: 4.50 → 4.76 (+5.8%)

Compilation:  Pass
Tests: 378+ (all passing)
This commit is contained in:
2026-09-05 00:31:28 -07:00
parent b07b6fc046
commit 41c203ffed
110 changed files with 22681 additions and 11914 deletions
Generated
+4
View File
@@ -2067,6 +2067,7 @@ dependencies = [
"time",
"tokio",
"tracing",
"uuid",
]
[[package]]
@@ -2074,6 +2075,7 @@ name = "mem-ingest"
version = "0.1.0"
dependencies = [
"anyhow",
"async-trait",
"chrono",
"futures",
"mem-chunk",
@@ -2113,6 +2115,7 @@ name = "mem-store"
version = "0.1.0"
dependencies = [
"anyhow",
"async-trait",
"futures",
"mem-core",
"mem-ingest",
@@ -2122,6 +2125,7 @@ dependencies = [
"sha2 0.10.9",
"sqlx",
"thiserror 1.0.69",
"time",
"tokio",
"tracing",
"uuid",