agent/pkg
Snider 1e12b062dd refactor: decompose spawnAgent monolith — agentic 67.8%, 546 tests
Extract 7 functions from 150-line spawnAgent goroutine:
- detectFinalStatus: BLOCKED.md + exit code → status/question
- trackFailureRate: fast-failure detection + backoff
- startIssueTracking/stopIssueTracking: Forge stopwatch
- broadcastStart/broadcastComplete: IPC + audit events
- onAgentComplete: orchestrates all post-completion steps
- agentOutputFile: log path helper

spawnAgent is now: build command → start process → broadcast → monitor.
All extracted functions are independently testable.

Coverage: agentic 66.4% → 67.8% (+1.4pp)

Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-25 01:11:04 +00:00
..
agentic refactor: decompose spawnAgent monolith — agentic 67.8%, 546 tests 2026-03-25 01:11:04 +00:00
brain fix: imports forge.lthn.ai/core/mcp → dappco.re/go/mcp 2026-03-24 21:40:04 +00:00
lib fix: extract default workspace template for go.work 2026-03-22 15:45:32 +00:00
messages feat(messages): define IPC message types for inter-service communication 2026-03-24 14:44:23 +00:00
monitor test(monitor): add logic_test.go — 26 tests for uncovered functions 2026-03-24 23:12:32 +00:00
setup test: 413 new tests — agentic 54.3%, setup 75.8%, all packages passing 2026-03-25 00:44:17 +00:00