dev #11

Merged
Snider merged 10 commits from dev into main 2026-03-24 10:34:38 +00:00

10 commits

Author SHA1 Message Date
ef8ab58d2e Merge pull request '[agent/codex:gpt-5.3-codex-spark] Fix ALL findings from issue #6. Read CLAUDE.md. MCP transpor...' (#10) from agent/full-audit-per-issue--6--read-claude-md into dev 2026-03-23 14:33:54 +00:00
Virgil
d3c7210433 fix(mcp): harden transport auth and workspace prep path validation
Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-23 14:33:35 +00:00
Snider
2992f872f0 revert(agentic): remove pipeline chaining from dispatch
MCP SDK doesn't support nested struct slices in schema generation.
Pipeline orchestration will be handled at a higher level.

Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-22 07:56:28 +00:00
Snider
1d46159340 feat(agentic): pipeline chaining — review→fix→verify in one dispatch
DispatchInput now accepts Pipeline []PipelineStep for follow-up steps.
On agent completion, the next step auto-dispatches with {{.Findings}}
replaced by the previous agent's output. Enables:

  dispatch(review) → auto(fix with findings) → auto(verify)

WorkspaceStatus stores NextSteps for the completion handler.

Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-22 07:46:44 +00:00
Snider
517afe627f revert(agentic): remove hardcoded copyReference — use embedded templates
Reference files are now embedded in core-agent's workspace template
(pkg/lib/workspace/default/.core/reference/). No hardcoded paths needed.

Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-22 07:00:03 +00:00
Snider
2bbc8063cf feat(agentic): auto-copy AX spec + Core source into agent workspaces
prepWorkspace now copies RFC-025-AGENT-EXPERIENCE.md and all Core .go
files into .core/reference/ in every dispatched workspace. Agents can
read the AX conventions and Core API without network access.

Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-22 06:47:04 +00:00
Snider
4329bd7f27 fix(agentic): write status before spawn to prevent concurrency race
writeStatus("running") was after cmd.Start(), so rapid sequential
dispatches all saw 0 running. Now writes status immediately after
the concurrency check passes, before spawning. Updates with PID
after start. Reverts to "failed" if spawn fails.

Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-22 02:32:17 +00:00
Snider
72ba11b481 fix(agentic): config path is ~/Code/.core/agents.yaml only
All .core/ config lives at codePath/.core/ — not in individual repos.

Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-22 02:28:05 +00:00
Snider
94cc1b9ed5 fix(agentic): scan nested workspace dirs for concurrency + status
listWorkspaceDirs() now recurses one level into subdirectories
(e.g. workspace/core/go-io-123/) so countRunningByAgent and
agentic_status find workspaces regardless of directory structure.

Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-22 02:11:59 +00:00
Snider
90bb784e79 fix(agentic): workspace root is ~/Code/.core/ not ~/Code/host-uk/core/.core/
The hardcoded host-uk/core path doesn't exist on the homelab,
causing countRunningByAgent to always return 0 (no concurrency limiting)
and agentic_status to miss workspaces.

Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-22 01:57:12 +00:00