feat/phase-1.3-temporal-config
main
internal/config/config.go
internal/config/config_test.go
k8s/secrets.enc.yaml
go test ./...
go build ./...
🔴 BINARY COMMITTED (poimen-worker)
🔴 DRY VIOLATION - Temporal Client
🔴 DRY VIOLATION - knowledge_base.go
🟡 CRAP Assessment
9d6fe12ef6
a32e5c63ee
✅ Binary removed - poimen-worker excluded from repo ✅ Rebased on main - Includes PR #9 (knowledge_base + temporal infra) ✅ .gitignore updated - Prevents future binary commits ✅ Commits cleaned - Only PR-specific changes (config validation)
Commits:
a32e5c6
375bb68
Internal/temporal notes:
Status: Ready for review & merge
config.go: - Environment enum (dev/staging/prod) with auto-detect - MemoryServiceConfig + LLMConfig structs - Validate(): TLS pair check, file existence, prod LLM key requirement - In-cluster default host detection via KUBERNETES_SERVICE_HOST - TaskQueue + WorkerCount from env config_test.go: 11 tests - defaults, env override, TLS mismatch, TLS file not found - prod validation (requires LLM key), env parsing - in-cluster detection, port defaults, int parsing k8s/secrets.enc.yaml: SOPS-encrypted Secret - anthropic-api-key, memory-service-jwt, temporal-postgres-password - Age-encrypted, KSOPS-compatible Build: clean, full test suite passes
cf6f2deb18
No dependencies set.
The note is not visible to the blocked user.
Changes
internal/config/config.go— Env-specific loading (dev/staging/prod), validation, in-cluster detectioninternal/config/config_test.go— 11 tests covering defaults, env override, TLS, prod gatesk8s/secrets.enc.yaml— SOPS-encrypted Secret (anthropic key, memory JWT, temporal postgres pw)Validation
go test ./...)go build ./...cleanCRAP/DRY/SOLID Review
Issues Found:
🔴 BINARY COMMITTED (poimen-worker)
🔴 DRY VIOLATION - Temporal Client
🔴 DRY VIOLATION - knowledge_base.go
🟡 CRAP Assessment
Recommendation
9d6fe12ef6toa32e5c63ee✅ FIXES APPLIED
✅ Binary removed - poimen-worker excluded from repo
✅ Rebased on main - Includes PR #9 (knowledge_base + temporal infra)
✅ .gitignore updated - Prevents future binary commits
✅ Commits cleaned - Only PR-specific changes (config validation)
Commits:
a32e5c6: feat(phase-1.3) config validation, env-specific loading, SOPS375bb68: fix gitignoreInternal/temporal notes:
Status: Ready for review & merge
a32e5c63eetocf6f2deb18