agent/pkg/agentic
Snider 4eb1111faa refactor: clean up proc.go — ensureProcess bridge, processIsRunning/processKill helpers
- proc.go: ensureProcess() as temporary bridge until go-process gets v0.7.0 update
- processIsRunning/processKill: use go-process ProcessID when available, fall back to PID
- WorkspaceStatus: add ProcessID field for go-process managed lookup
- dispatch.go: simplified spawnAgent goroutine — uses proc.Done() instead of syscall poll
- Removed syscall import from dispatch.go

Next: update go-process to v0.7.0 Core contract, then replace
syscall.Kill calls in queue.go, shutdown.go, status.go, dispatch_sync.go
with processIsRunning/processKill.

Coverage: 78.1%, 802 tests

Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-25 10:10:17 +00:00
..
auto_pr.go refactor: eliminate os/exec from all source files → go-process 2026-03-25 09:51:57 +00:00
auto_pr_test.go test: add Good/Bad/Ugly for status, paths, auto_pr, prep — agentic 74.0% 2026-03-25 08:16:53 +00:00
commands.go refactor: extract commands.go closures into methods — agentic 65.1% 2026-03-25 00:54:07 +00:00
commands_forge.go refactor: extract command closures into named methods — agentic 61.4% 2026-03-25 00:52:00 +00:00
commands_forge_test.go test: batch 1 — add 80 Bad/Ugly tests for paths, plan, status, shutdown, forge cmds 2026-03-25 08:43:35 +00:00
commands_test.go test: batch 4 — fill 36 testable gaps, 802 tests, AX-7 89% 2026-03-25 09:31:38 +00:00
commands_workspace.go refactor: extract command closures into named methods — agentic 61.4% 2026-03-25 00:52:00 +00:00
commands_workspace_test.go test: batch 2 — add 44 Bad/Ugly tests for commands, verify, queue, remote_client 2026-03-25 08:53:28 +00:00
dispatch.go refactor: clean up proc.go — ensureProcess bridge, processIsRunning/processKill helpers 2026-03-25 10:10:17 +00:00
dispatch_sync.go fix(monitor): emit agent.completed per task, verify PIDs for queue.drained 2026-03-24 13:02:41 +00:00
dispatch_test.go test: batch 4 — fill 36 testable gaps, 802 tests, AX-7 89% 2026-03-25 09:31:38 +00:00
epic.go refactor: migrate core/agent to Core primitives — reference implementation 2026-03-22 06:13:41 +00:00
epic_test.go test: batch 3 — add 73 Good/Bad/Ugly tests across 9 files 2026-03-25 09:19:05 +00:00
events.go feat(monitor): agent.started + agent.complete channel notifications 2026-03-22 15:45:32 +00:00
handlers.go feat: complete DI migration — IPC pipeline + Config + Locks 2026-03-24 16:44:19 +00:00
handlers_test.go refactor(test): bulk rename 478 tests to TestFile_Function_{Good,Bad,Ugly} 2026-03-25 08:32:08 +00:00
ingest.go fix(monitor): emit agent.completed per task, verify PIDs for queue.drained 2026-03-24 13:02:41 +00:00
ingest_test.go test: batch 4 — fill 36 testable gaps, 802 tests, AX-7 89% 2026-03-25 09:31:38 +00:00
logic_test.go test: batch 3 — add 73 Good/Bad/Ugly tests across 9 files 2026-03-25 09:19:05 +00:00
mirror.go refactor: eliminate os/exec from all source files → go-process 2026-03-25 09:51:57 +00:00
mirror_test.go refactor(test): bulk rename 478 tests to TestFile_Function_{Good,Bad,Ugly} 2026-03-25 08:32:08 +00:00
paths.go refactor: eliminate os/exec from all source files → go-process 2026-03-25 09:51:57 +00:00
paths_test.go test: batch 3 — add 73 Good/Bad/Ugly tests across 9 files 2026-03-25 09:19:05 +00:00
plan.go feat: devops plugin, CLI commands, Codex dispatch fixes, AX sweep 2026-03-22 15:45:16 +00:00
plan_crud_test.go test: batch 3 — add 73 Good/Bad/Ugly tests across 9 files 2026-03-25 09:19:05 +00:00
plan_logic_test.go refactor(test): bulk rename 478 tests to TestFile_Function_{Good,Bad,Ugly} 2026-03-25 08:32:08 +00:00
plan_test.go refactor(test): bulk rename 478 tests to TestFile_Function_{Good,Bad,Ugly} 2026-03-25 08:32:08 +00:00
pr.go refactor: eliminate os/exec from all source files → go-process 2026-03-25 09:51:57 +00:00
pr_test.go test: batch 3 — add 73 Good/Bad/Ugly tests across 9 files 2026-03-25 09:19:05 +00:00
prep.go refactor: eliminate os/exec from all source files → go-process 2026-03-25 09:51:57 +00:00
prep_extra_test.go test: batch 4 — fill 36 testable gaps, 802 tests, AX-7 89% 2026-03-25 09:31:38 +00:00
prep_test.go test: batch 4 — fill 36 testable gaps, 802 tests, AX-7 89% 2026-03-25 09:31:38 +00:00
proc.go refactor: clean up proc.go — ensureProcess bridge, processIsRunning/processKill helpers 2026-03-25 10:10:17 +00:00
process_register.go feat: move workspace + process commands into services — main.go 98 lines 2026-03-25 00:03:22 +00:00
queue.go feat: complete DI migration — IPC pipeline + Config + Locks 2026-03-24 16:44:19 +00:00
queue_extra_test.go test: batch 4 — fill 36 testable gaps, 802 tests, AX-7 89% 2026-03-25 09:31:38 +00:00
queue_logic_test.go test: batch 4 — fill 36 testable gaps, 802 tests, AX-7 89% 2026-03-25 09:31:38 +00:00
queue_test.go refactor(test): bulk rename 478 tests to TestFile_Function_{Good,Bad,Ugly} 2026-03-25 08:32:08 +00:00
register.go feat: factories return instances — WithService handles registration 2026-03-24 20:36:17 +00:00
register_test.go test: batch 4 — fill 36 testable gaps, 802 tests, AX-7 89% 2026-03-25 09:31:38 +00:00
remote.go refactor(agentic): adopt core.Env() + core.Path() across package 2026-03-22 10:15:15 +00:00
remote_client.go fix: resolve final AX audit findings 2026-03-22 06:42:42 +00:00
remote_client_test.go test: batch 4 — fill 36 testable gaps, 802 tests, AX-7 89% 2026-03-25 09:31:38 +00:00
remote_dispatch_test.go refactor(test): proper naming — resume, remote, remote_status 2026-03-25 08:11:39 +00:00
remote_status.go feat(agent): background runner, slim status, Docker dispatch, stopwatch, CLI fixes 2026-03-23 12:53:33 +00:00
remote_status_test.go refactor(test): proper naming — resume, remote, remote_status 2026-03-25 08:11:39 +00:00
remote_test.go test: batch 4 — fill 36 testable gaps, 802 tests, AX-7 89% 2026-03-25 09:31:38 +00:00
render_plan_test.go refactor(test): bulk rename 478 tests to TestFile_Function_{Good,Bad,Ugly} 2026-03-25 08:32:08 +00:00
resume.go fix(monitor): emit agent.completed per task, verify PIDs for queue.drained 2026-03-24 13:02:41 +00:00
resume_test.go refactor(test): proper naming — resume, remote, remote_status 2026-03-25 08:11:39 +00:00
review_queue.go refactor: eliminate os/exec from all source files → go-process 2026-03-25 09:51:57 +00:00
review_queue_extra_test.go refactor: eliminate os/exec from all source files → go-process 2026-03-25 09:51:57 +00:00
review_queue_test.go refactor(test): bulk rename 478 tests to TestFile_Function_{Good,Bad,Ugly} 2026-03-25 08:32:08 +00:00
runner.go feat(agent): v0.3.0 — dispatch control, run task CLI, quiet notifications, spark pool 2026-03-23 16:08:08 +00:00
sanitise.go feat: devops plugin, CLI commands, Codex dispatch fixes, AX sweep 2026-03-22 15:45:16 +00:00
scan.go refactor(agentic): use go-forge library instead of raw HTTP 2026-03-22 15:45:16 +00:00
scan_test.go test: batch 4 — fill 36 testable gaps, 802 tests, AX-7 89% 2026-03-25 09:31:38 +00:00
shutdown.go fix(monitor): emit agent.completed per task, verify PIDs for queue.drained 2026-03-24 13:02:41 +00:00
status.go refactor: clean up proc.go — ensureProcess bridge, processIsRunning/processKill helpers 2026-03-25 10:10:17 +00:00
status_extra_test.go test: batch 1 — add 80 Bad/Ugly tests for paths, plan, status, shutdown, forge cmds 2026-03-25 08:43:35 +00:00
status_logic_test.go refactor(test): bulk rename 478 tests to TestFile_Function_{Good,Bad,Ugly} 2026-03-25 08:32:08 +00:00
status_test.go test: batch 1 — add 80 Bad/Ugly tests for paths, plan, status, shutdown, forge cmds 2026-03-25 08:43:35 +00:00
verify.go refactor: eliminate os/exec from all source files → go-process 2026-03-25 09:51:57 +00:00
verify_extra_test.go refactor(test): bulk rename 478 tests to TestFile_Function_{Good,Bad,Ugly} 2026-03-25 08:32:08 +00:00
verify_test.go test: batch 2 — add 44 Bad/Ugly tests for commands, verify, queue, remote_client 2026-03-25 08:53:28 +00:00
watch.go fix(monitor): emit agent.completed per task, verify PIDs for queue.drained 2026-03-24 13:02:41 +00:00
watch_test.go test: batch 3 — add 73 Good/Bad/Ugly tests across 9 files 2026-03-25 09:19:05 +00:00