[Phase 2.5] Register synthesis workflow + activities in worker #14

Open
opened 2026-09-09 01:03:42 +00:00 by poimen · 0 comments
Member

Goal

Wire SynthesisWorkflow and all 5 SynthesisActivities into cmd/worker/main.go so they execute on the poimen-taskqueue.

Tasks

  1. Create SynthesisActivities instance with memory.Client in worker main
  2. Register workflow.SynthesisWorkflow
  3. Register all 5 activity methods from SynthesisActivities struct
  4. Add workflow.LLMTestWorkflow registration (already exists, verify)

Acceptance Test

# Start local Temporal
docker run -d --name temporal -p 7233:7233 temporalio/auto-setup:1.20.0

# Start worker (should not crash, should log registered workflows)
TEMPORAL_HOSTPORT=localhost:7233 MEMORY_SERVICE_URL=http://localhost:8080 go run cmd/worker/main.go

# Verify in logs:
# - "registered workflow: SynthesisWorkflow"
# - "registered activity: ChunkAndEmbedActivity"
# - Worker polling on poimen-taskqueue

# Trigger test workflow via starter
go run cmd/starter/main.go --workflow SynthesisWorkflow --input {"project":"test","source":"test://1","text":"Kubernetes uses port 8080","kind":"L1"}

Effort

~50 LOC, 2 hours

## Goal Wire `SynthesisWorkflow` and all 5 `SynthesisActivities` into `cmd/worker/main.go` so they execute on the `poimen-taskqueue`. ## Tasks 1. Create `SynthesisActivities` instance with `memory.Client` in worker main 2. Register `workflow.SynthesisWorkflow` 3. Register all 5 activity methods from `SynthesisActivities` struct 4. Add `workflow.LLMTestWorkflow` registration (already exists, verify) ## Acceptance Test ```bash # Start local Temporal docker run -d --name temporal -p 7233:7233 temporalio/auto-setup:1.20.0 # Start worker (should not crash, should log registered workflows) TEMPORAL_HOSTPORT=localhost:7233 MEMORY_SERVICE_URL=http://localhost:8080 go run cmd/worker/main.go # Verify in logs: # - "registered workflow: SynthesisWorkflow" # - "registered activity: ChunkAndEmbedActivity" # - Worker polling on poimen-taskqueue # Trigger test workflow via starter go run cmd/starter/main.go --workflow SynthesisWorkflow --input {"project":"test","source":"test://1","text":"Kubernetes uses port 8080","kind":"L1"} ``` ## Effort ~50 LOC, 2 hours
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: riotpiao-poimen/poimen-workflows#14