Test
a0e64224a7
feat: RoutingWorkflow + LLM Router + Memory Activity
...
ci / test (push) Successful in 2m12s
- Add RoutingWorkflow: generic state machine executor for WorkflowSpec
- Add LLM Router: natural language → WorkflowSpec generation
- Add RetrieveMemoryActivity: query poimen-memory for context
- Add activities: AnalyzeCode, SecurityScan, GenerateReport, Notify, etc.
- Add agent-prompts/router: LLM prompt documentation
- Extend starter with --route flag for routing workflows
- Remove orchestrator job (trigger via API/message instead)
- Clean up: move docs to Desktop, add .gitignore for *.md
2026-09-02 19:21:53 -07:00
Test
6a87833c7f
feat: implement proper orchestrator workflow with reconciliation loop
...
ci / test (push) Failing after 1m2s
Rewrite OrchestratorWorkflow as true reconciliation loop:
- PlanningActivity decides what tasks to dispatch
- Fan-out TaskUnit workflows for parallel execution
- Each TaskUnit runs Implementer → Test → Judge → Commit
- Judge reviews code quality, retries on failure with lessons
- Fan-in waits for all TaskUnits
- Board update and squash merge on success
- continue-as-new for long-running workflows
- Proper error handling and signal support
Key changes:
- statemachine/orchestrator.go: Reconciliation loop (Plan → Dispatch → Review → Repeat)
- statemachine/taskunit.go: Task execution with retry loop & judge review
- statemachine/types.go: Updated TaskUnitInput/Output for new workflow
- cmd/worker/main.go: Register RunIntegrationTestActivity
- action/integration.go: Renamed from integration_test.go (fix Go build issue)
Models:
- Planner: reasoning (OpenAI-compatible from local LLM API)
- Judge: reasoning (reviews diff + tests, gates success)
- Implementer: ornith:35b (executes tasks)
Verification: go build ./cmd/worker ./cmd/starter ✓
2026-08-26 15:00:42 -07:00
Test
b0313ae818
feat(T3.2): implement workflow templates system
...
- Add WorkflowTemplate for YAML-based workflow definition
- Implement WorkflowTemplateManager for template lifecycle
- Save/load templates from disk (YAML format)
- Validate templates (name, planner, dependencies)
- Export templates to JSON
- Task configuration with dependency tracking
- Orchestrator configuration per template
- Template metadata (author, version, description)
- Default variables and tags support
- Template usage tracking and statistics
- Batch load templates from directory
- 26 workflow template tests, all passing
Features:
- WorkflowTemplate structure with metadata
- OrchestratorConfig per template (URLs, timeouts, retries)
- TaskConfig with dependencies and priority
- Save to YAML (human-readable)
- Load from YAML (auto-cached)
- Validate dependencies (no cycles, all tasks exist)
- Export to JSON for external systems
- Usage tracking (exec count, last used time)
- Directory loading for multi-template setups
Template Structure:
- Metadata: name, version, author, description
- Timestamps: created_at, updated_at
- Orchestrator config: planner/judge/implementer URLs
- Task list with dependencies
- Default variables
- Tags for organization
Validation:
- Template name required
- Planner URL required
- At least one task required
- All dependencies must reference existing tasks
- No circular dependencies
Operations:
- SaveTemplate() - persist to YAML
- LoadTemplate() - load from file
- GetTemplate() - retrieve cached
- ListTemplates() - enumerate all
- DeleteTemplate() - remove from disk
- ValidateTemplate() - check validity
- ExportTemplateJSON() - external format
- RecordUsage() - track usage stats
- LoadTemplateDirectory() - batch load
Test Coverage:
- 26 workflow template tests
- Save/load cycle verified
- Validation logic tested
- Dependency checking tested
- JSON export tested
- Usage tracking tested
- Directory loading tested
- Timestamp management tested
- Defaults and tags support tested
- Error handling comprehensive
Performance:
- Fast YAML parsing (single file)
- Cached templates in memory
- O(1) lookup by name
- Minimal disk I/O
Format Example:
---
name: golang-project
version: 1.0.0
author: platform-team
orchestrator:
planner_url: http://planner:8000
judge_url: http://judge:8000
timeout_seconds: 300
tasks:
- id: T0.1
title: Analyze Requirements
type: feature
priority: high
- id: T0.2
title: Implement
type: feature
depends_on: [T0.1]
Next: T3.3 (Task dependency graph)
2026-08-23 17:31:37 -07:00
Test
59a1eeed85
feat(T1.2): implement structured logging and Prometheus metrics
...
- Add internal/logging package with zap-based structured JSON logging
- Support development (colored) and production (JSON) modes via ENVIRONMENT env var
- Add logging helpers: Info(), Error(), Warn(), Debug(), Fatal()
- Add field helpers: String(), Int(), Int64(), Err()
- Add internal/metrics package with 16 comprehensive Prometheus metrics
- Track workflows: starts, completions, duration by type/status
- Track activities: starts, completions, duration, retries by type
- Track LLM calls: total calls and latency by model
- Track git operations: total and duration by operation type
- Track judge decisions: decisions by type
- Track Temporal errors: connection errors by type
- Track cache efficiency: hits and misses by cache type
- Track tasks in progress: gauge metric by task type
- Metrics exported on /metrics endpoint (Prometheus text format)
- Integrate structured logging in cmd/worker and cmd/starter
- Replace all log.Printf/log.Fatalf with structured logging
- Add /metrics endpoint to health check server
- 8/8 logging tests passing, 13/13 metrics tests passing
- All verification criteria met
Dependencies added:
- go.uber.org/zap v1.28.0 (structured logging)
- github.com/prometheus/client_golang v1.24.1 (metrics export)
Closes T1.2
2026-08-23 16:33:49 -07:00
Story Crater Bot
ac382af545
fix(deploy): use golang:latest to satisfy Go 1.25.4 requirement
...
ci / test (push) Successful in 44s
Dependencies require go >= 1.25.4. Alpine golang:1.22-alpine doesn't have it.
Use golang:latest which should have Go 1.25+ available. Re-enable orchestrator job.
2026-08-22 06:02:55 -07:00
Story Crater Bot
f062f087c1
fix(build): require go 1.22 instead of non-existent go 1.25.4
...
ci / test (push) Successful in 45s
golang:1.23-alpine doesn't exist yet. Revert to golang:1.22-alpine
and update go.mod to require go 1.22, which matches the available image.
2026-08-22 06:02:03 -07:00
Story Crater Bot
93226d69fa
fix(build): update Go version requirement to 1.23
...
ci / test (push) Successful in 45s
go.mod required go >= 1.25.4 but golang:1.25-alpine doesn't exist yet.
Downgrade to go 1.23 which is available in Alpine images and sufficient
for the codebase. Update both deployment and job images to golang:1.23-alpine.
2026-08-22 05:59:33 -07:00
Test
5b8d3df01e
(workflow) add simple harness workflow for manual testing
2026-08-21 18:07:12 -07:00
Test
769e56d33d
Add new file
2026-08-21 15:58:46 -07:00