Commit Graph
4 Commits
Author SHA1 Message Date
rockandpoimen 78650cd46f [Phase 2.2] Synthesis activities (5 activities) (#13)
CI / CI (push) Successful in 4m48s
## Changes
- `activity/synthesis.go` — 5 synthesis pipeline activities
- `activity/synthesis_test.go` — 10 unit tests

## Activities
1. **ChunkAndEmbedActivity** — deterministic chunk ID + memory service ingest
2. **ExtractEntitiesActivity** — wiki-link, proper noun, technical term extraction
3. **ExtractFactsActivity** — 6 verb patterns with entity-boosted confidence
4. **DetectContradictionsActivity** — query + pre-filter + severity classification
5. **PersistSynthesisActivity** — save entities + facts to memory service

## Validation
- 10 unit tests pass
- `go build ./...` clean
- Full suite: 35 packages pass, 0 failures

---------

Co-authored-by: poimen <[email protected]>
Reviewed-on: #13
2026-09-09 00:51:45 +00:00
rockandpoimen 76d8c518f0 (feat) Temporal SDK client, worker mgmt, k8s deployments (#10)
CI / CI (push) Successful in 4m11s
## Changes
- `internal/temporal/client.go` — Robust Temporal client with retry (exp backoff), TLS, health check
- `internal/temporal/worker.go` — Worker creation, activity/workflow registration, lifecycle
- `internal/temporal/context.go` — Timeout helpers
- `k8s/worker-deployment.yaml` — 2-10 replica HPA, liveness/readiness probes, security context, pod anti-affinity
- `k8s/workflow-runner-deployment.yaml` — Singleton runner with probes
- `k8s/kustomization.yaml` — Updated resource list

Co-authored-by: poimen <[email protected]>
2026-09-09 00:03:00 +00:00
Test 7ed0642819 security: remove hardcoded cluster.local URLs from source code
Build & Push Workflows Image / build-push (push) Failing after 9s
ci / test (push) Successful in 1m32s
- activity/memory.go: read MEMORY_SERVICE_URL from env, default localhost
- pkg/db/db.go: remove cluster.local from DSN comment
- Fix memory_test.go env var name to match
2026-09-06 06:01:21 -07:00
Test 9c9e9450bc refactor: rename action→activity, statemachine→workflow, remove HTTP API layer
- action/ → activity/ (Temporal activities)
- statemachine/ → workflow/ (Temporal workflows)
- Removed internal/api/ and cmd/server/ (api-gw handles HTTP, Temporal is the API)
- Created pkg/types/types.go as single source of truth for all shared types
- Extracted CallRoleLLM helper (DRY: implementer/planner/judge shared pattern)
- Fixed circular import: workflow_graph_query uses string activity names
- Fixed logger.logf → logger.Info/Warn (method didn't exist)
- Fixed routing types: added Branches, Activity, BackoffSeconds, TaskActivity
- Fixed db.Canvas.Name, db.Client→DB, GetWorkflow→FetchWorkflow
- Removed unused imports
- All tests pass, build clean, vet clean
2026-09-05 23:59:13 -07:00