agent/pkg/agentic
Snider 03e5934607 feat(agent): RFC §15.5 parent workspace stats store
Adds `.core/workspace/db.duckdb` — the permanent record of dispatch
cycles described in RFC §15.5. Stats rows persist BEFORE workspace
directories are deleted so "what happened in the last 50 dispatches"
queries survive cleanup and sync drain.

- `workspace_stats.go` — lazy go-store handle for the parent stats DB,
  build/record/filter/list helpers, report payload projection
- `commit.go` — writes a stats row as part of the completion pipeline so
  every committed dispatch carries forward into the permanent record
- `commands_workspace.go` — `workspace/clean` captures stats before
  deleting, new `workspace/stats` command + `agentic.workspace.stats`
  action answer the spec's "query on the parent" use case

Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-14 13:41:07 +01:00
..
actions.go feat(agent): RFC §15.5 parent workspace stats store 2026-04-14 13:41:07 +01:00
actions_example_test.go feat(agentic): add completion journal commit stage 2026-04-01 22:07:42 +00:00
actions_test.go fix(agent): mcp.Register startup panic + test isolation + CLI test standard 2026-04-08 16:15:14 +01:00
alias_test.go feat(agentic): add AgentPhase RFC alias 2026-04-02 04:33:12 +00:00
auth.go feat(agent): pairing-code login per RFC §9 Fleet Mode 2026-04-14 12:51:17 +01:00
auth_example_test.go refactor(agentic): align api key naming 2026-04-01 21:37:50 +00:00
auth_test.go feat(agent): pairing-code login per RFC §9 Fleet Mode 2026-04-14 12:51:17 +01:00
auto_pr.go feat(agentic): clean up forge branches after publish 2026-04-02 01:59:03 +00:00
auto_pr_example_test.go feat(v0.8.0): full AX migration — ServiceRuntime, Actions, quality gates, transport 2026-03-26 01:27:46 +00:00
auto_pr_test.go fix(agent): mcp.Register startup panic + test isolation + CLI test standard 2026-04-08 16:15:14 +01:00
brain_seed_memory.go refactor: AX compliance sweep — replace banned stdlib imports with core primitives 2026-04-13 09:32:00 +01:00
brain_seed_memory_test.go feat(brain): seed MEMORY.md files only 2026-04-02 03:51:47 +00:00
commands.go refactor(agentic): add namespaced command aliases 2026-04-02 06:47:34 +00:00
commands_commit.go feat(agentic): expose commit command 2026-04-02 02:45:26 +00:00
commands_commit_test.go fix(agent): mcp.Register startup panic + test isolation + CLI test standard 2026-04-08 16:15:14 +01:00
commands_example_test.go fix(ax): rename ambiguous prep helpers 2026-03-31 06:12:53 +00:00
commands_flow_test.go feat(agentic): resolve nested flow references 2026-04-02 02:31:53 +00:00
commands_forge.go feat(agent): unblock factory dispatch, runtime-aware containers, RFC gaps 2026-04-14 11:45:09 +01:00
commands_forge_example_test.go refactor(agentic): improve AX naming and context propagation 2026-04-02 06:10:33 +00:00
commands_forge_test.go refactor(agentic): validate forge command inputs 2026-04-02 06:54:05 +00:00
commands_message.go feat(agentic): add direct workspace messaging 2026-04-01 21:04:39 +00:00
commands_phase.go feat(agentic): add phase cli commands 2026-04-02 06:05:31 +00:00
commands_phase_test.go feat(agentic): add phase cli commands 2026-04-02 06:05:31 +00:00
commands_plan.go feat(agentic): align model contracts with RFC 2026-04-02 08:26:02 +00:00
commands_plan_test.go fix(agent): mcp.Register startup panic + test isolation + CLI test standard 2026-04-08 16:15:14 +01:00
commands_platform.go feat(agent): pairing-code login per RFC §9 Fleet Mode 2026-04-14 12:51:17 +01:00
commands_platform_example_test.go feat(agentic): align model contracts with RFC 2026-04-02 08:26:02 +00:00
commands_platform_test.go feat(agent): pairing-code login per RFC §9 Fleet Mode 2026-04-14 12:51:17 +01:00
commands_resume_test.go feat(agentic): add resume command alias 2026-04-01 20:59:52 +00:00
commands_session.go fix(agentic): add task aliases and session model normalization 2026-04-02 07:59:58 +00:00
commands_session_test.go fix(agent): mcp.Register startup panic + test isolation + CLI test standard 2026-04-08 16:15:14 +01:00
commands_setup.go refactor: AX compliance sweep — replace banned stdlib imports with core primitives 2026-04-13 09:32:00 +01:00
commands_setup_test.go feat(agentic): expose setup action surface 2026-04-02 06:39:02 +00:00
commands_sprint.go feat(agentic): add sprint CLI commands 2026-04-02 03:02:37 +00:00
commands_sprint_test.go feat(agentic): add sprint CLI commands 2026-04-02 03:02:37 +00:00
commands_state.go feat(agentic): add state command surface 2026-04-02 00:42:55 +00:00
commands_state_test.go feat(agentic): add state command surface 2026-04-02 00:42:55 +00:00
commands_task.go fix(agentic): add task aliases and session model normalization 2026-04-02 07:59:58 +00:00
commands_task_test.go fix(agent): mcp.Register startup panic + test isolation + CLI test standard 2026-04-08 16:15:14 +01:00
commands_test.go fix(agent): mcp.Register startup panic + test isolation + CLI test standard 2026-04-08 16:15:14 +01:00
commands_workspace.go feat(agent): RFC §15.5 parent workspace stats store 2026-04-14 13:41:07 +01:00
commands_workspace_example_test.go test(ax): add workspace command example coverage 2026-03-30 18:09:32 +00:00
commands_workspace_test.go feat(agent): RFC §15.5 parent workspace stats store 2026-04-14 13:41:07 +01:00
commit.go feat(agent): RFC §15.5 parent workspace stats store 2026-04-14 13:41:07 +01:00
commit_test.go fix(agent): mcp.Register startup panic + test isolation + CLI test standard 2026-04-08 16:15:14 +01:00
content.go refactor: AX compliance sweep — replace banned stdlib imports with core primitives 2026-04-13 09:32:00 +01:00
content_example_test.go feat(agentic): add content platform compatibility surfaces 2026-03-31 15:27:15 +00:00
content_test.go feat(agentic): add SEO schema generation 2026-04-01 15:34:37 +00:00
deps.go fix(ax): trim remaining prose comments 2026-03-31 05:20:50 +00:00
deps_example_test.go fix(ax): add missing examples and helper coverage 2026-03-29 21:44:22 +00:00
deps_test.go fix(ax): add missing examples and helper coverage 2026-03-29 21:44:22 +00:00
dispatch.go feat(agent): RFC §7 QA capture pipeline 2026-04-14 13:02:14 +01:00
dispatch_example_test.go feat(v0.8.0): full AX migration — ServiceRuntime, Actions, quality gates, transport 2026-03-26 01:27:46 +00:00
dispatch_runtime_test.go feat(agent): unblock factory dispatch, runtime-aware containers, RFC gaps 2026-04-14 11:45:09 +01:00
dispatch_sync.go feat(agentic): add synchronous dispatch surface 2026-04-01 20:34:04 +00:00
dispatch_sync_example_test.go fix(agentic): align workspace mount and repo sync 2026-03-31 14:54:32 +00:00
dispatch_sync_test.go fix(agentic): align workspace mount and repo sync 2026-03-31 14:54:32 +00:00
dispatch_test.go fix(agent): mcp.Register startup panic + test isolation + CLI test standard 2026-04-08 16:15:14 +01:00
epic.go refactor: AX compliance sweep — replace banned stdlib imports with core primitives 2026-04-13 09:32:00 +01:00
epic_example_test.go feat(v0.8.0): full AX migration — ServiceRuntime, Actions, quality gates, transport 2026-03-26 01:27:46 +00:00
epic_test.go feat: AX v0.8.0 upgrade — Core features + quality gates 2026-03-26 06:38:02 +00:00
events.go fix(ax): align remaining comments and names 2026-03-30 23:01:42 +00:00
events_example_test.go feat(v0.8.0): full AX migration — ServiceRuntime, Actions, quality gates, transport 2026-03-26 01:27:46 +00:00
events_test.go fix(agent): mcp.Register startup panic + test isolation + CLI test standard 2026-04-08 16:15:14 +01:00
handlers.go docs(agentic): improve handler usage example 2026-04-02 08:04:51 +00:00
handlers_example_test.go feat(v0.8.0): full AX migration — ServiceRuntime, Actions, quality gates, transport 2026-03-26 01:27:46 +00:00
handlers_test.go fix(agent): mcp.Register startup panic + test isolation + CLI test standard 2026-04-08 16:15:14 +01:00
helpers_test.go fix(agent): mcp.Register startup panic + test isolation + CLI test standard 2026-04-08 16:15:14 +01:00
ingest.go fix(ax): continue workspace naming cleanup 2026-03-30 21:22:54 +00:00
ingest_example_test.go feat(v0.8.0): full AX migration — ServiceRuntime, Actions, quality gates, transport 2026-03-26 01:27:46 +00:00
ingest_test.go fix(ax): streamline agentic and monitor helpers 2026-03-30 20:45:23 +00:00
issue.go refactor: AX compliance sweep — replace banned stdlib imports with core primitives 2026-04-13 09:32:00 +01:00
issue_test.go feat(agentic): add issue list filters 2026-04-01 21:42:09 +00:00
lang.go refactor: AX compliance sweep — replace banned stdlib imports with core primitives 2026-04-13 09:32:00 +01:00
lang_test.go feat(agentic): add language detection tools 2026-04-01 12:33:57 +00:00
logic_test.go feat(agent): unblock factory dispatch, runtime-aware containers, RFC gaps 2026-04-14 11:45:09 +01:00
message.go refactor: AX compliance sweep — replace banned stdlib imports with core primitives 2026-04-13 09:32:00 +01:00
message_test.go fix(agent): mcp.Register startup panic + test isolation + CLI test standard 2026-04-08 16:15:14 +01:00
mirror.go refactor: AX compliance sweep — replace banned stdlib imports with core primitives 2026-04-13 09:32:00 +01:00
mirror_example_test.go feat(v0.8.0): full AX migration — ServiceRuntime, Actions, quality gates, transport 2026-03-26 01:27:46 +00:00
mirror_test.go feat: AX v0.8.0 upgrade — Core features + quality gates 2026-03-26 06:38:02 +00:00
paths.go feat(agent): unblock factory dispatch, runtime-aware containers, RFC gaps 2026-04-14 11:45:09 +01:00
paths_example_test.go fix(ax): unify home-path resolution 2026-03-30 19:54:17 +01:00
paths_test.go fix(agent): mcp.Register startup panic + test isolation + CLI test standard 2026-04-08 16:15:14 +01:00
phase.go refactor: AX compliance sweep — replace banned stdlib imports with core primitives 2026-04-13 09:32:00 +01:00
phase_test.go fix(agent): mcp.Register startup panic + test isolation + CLI test standard 2026-04-08 16:15:14 +01:00
pid.go fix(ax): remove leftover narrative comments 2026-03-31 05:49:11 +00:00
pid_example_test.go fix(ax): remove pid syscall wrappers 2026-03-30 16:01:32 +00:00
pid_test.go fix(ax): remove pid syscall wrappers 2026-03-30 16:01:32 +00:00
plan.go refactor: AX compliance sweep — replace banned stdlib imports with core primitives 2026-04-13 09:32:00 +01:00
plan_compat.go feat(agentic): support completion_criteria phase alias 2026-04-02 03:16:27 +00:00
plan_compat_test.go fix(agent): mcp.Register startup panic + test isolation + CLI test standard 2026-04-08 16:15:14 +01:00
plan_crud_test.go fix(agent): mcp.Register startup panic + test isolation + CLI test standard 2026-04-08 16:15:14 +01:00
plan_dependencies_test.go fix(agent): mcp.Register startup panic + test isolation + CLI test standard 2026-04-08 16:15:14 +01:00
plan_example_test.go feat(v0.8.0): full AX migration — ServiceRuntime, Actions, quality gates, transport 2026-03-26 01:27:46 +00:00
plan_from_issue.go fix(agentic): normalise issue context keys 2026-04-02 09:01:55 +00:00
plan_from_issue_test.go fix(agent): mcp.Register startup panic + test isolation + CLI test standard 2026-04-08 16:15:14 +01:00
plan_logic_test.go feat(agentic): support completion_criteria phase alias 2026-04-02 03:16:27 +00:00
plan_retention.go refactor: AX compliance sweep — replace banned stdlib imports with core primitives 2026-04-13 09:32:00 +01:00
plan_retention_test.go fix(agent): mcp.Register startup panic + test isolation + CLI test standard 2026-04-08 16:15:14 +01:00
plan_test.go fix(mcp): update Subsystem interface to match mcp v0.5.1 Service API 2026-04-07 14:11:19 +01:00
platform.go refactor: AX compliance sweep — replace banned stdlib imports with core primitives 2026-04-13 09:32:00 +01:00
platform_example_test.go feat(agentic): add fleet platform actions and commands 2026-03-31 11:02:11 +00:00
platform_test.go fix(agent): mcp.Register startup panic + test isolation + CLI test standard 2026-04-08 16:15:14 +01:00
platform_tools.go refactor: AX compliance sweep — replace banned stdlib imports with core primitives 2026-04-13 09:32:00 +01:00
pr.go feat(agent): unblock factory dispatch, runtime-aware containers, RFC gaps 2026-04-14 11:45:09 +01:00
pr_example_test.go feat(v0.8.0): full AX migration — ServiceRuntime, Actions, quality gates, transport 2026-03-26 01:27:46 +00:00
pr_test.go feat(agent): unblock factory dispatch, runtime-aware containers, RFC gaps 2026-04-14 11:45:09 +01:00
prep.go feat(agent): RFC §15.5 parent workspace stats store 2026-04-14 13:41:07 +01:00
prep_example_test.go docs(ax): add remaining usage examples 2026-03-30 00:20:03 +00:00
prep_extra_test.go fix(agent): mcp.Register startup panic + test isolation + CLI test standard 2026-04-08 16:15:14 +01:00
prep_test.go feat(agent): pairing-code login per RFC §9 Fleet Mode 2026-04-14 12:51:17 +01:00
process_register.go fix(agentic): keep process actions registered 2026-04-02 06:14:48 +00:00
process_register_example_test.go fix(ax): name handlers and align process coverage 2026-03-29 21:56:45 +00:00
process_register_test.go fix(agentic): keep process actions registered 2026-04-02 06:14:48 +00:00
prompt_version.go refactor: AX compliance sweep — replace banned stdlib imports with core primitives 2026-04-13 09:32:00 +01:00
prompt_version_test.go feat(agentic): expose prompt snapshot over MCP 2026-04-01 21:57:55 +00:00
provider_manager.go refactor: AX compliance sweep — replace banned stdlib imports with core primitives 2026-04-13 09:32:00 +01:00
provider_manager_test.go feat(agentic): add provider retry backoff 2026-04-02 08:36:01 +00:00
qa.go feat(agent): RFC §7 Post-Run Analysis — diff + cluster dispatch findings 2026-04-14 13:19:34 +01:00
qa_test.go feat(agent): RFC §7 Post-Run Analysis — diff + cluster dispatch findings 2026-04-14 13:19:34 +01:00
queue.go feat(agent): unblock factory dispatch, runtime-aware containers, RFC gaps 2026-04-14 11:45:09 +01:00
queue_example_test.go feat(v0.8.0): full AX migration — ServiceRuntime, Actions, quality gates, transport 2026-03-26 01:27:46 +00:00
queue_extra_test.go fix(agent): mcp.Register startup panic + test isolation + CLI test standard 2026-04-08 16:15:14 +01:00
queue_logic_test.go fix(agent): mcp.Register startup panic + test isolation + CLI test standard 2026-04-08 16:15:14 +01:00
queue_test.go feat(agent): unblock factory dispatch, runtime-aware containers, RFC gaps 2026-04-14 11:45:09 +01:00
register.go refactor(agentic): wire service runtime directly 2026-04-02 08:44:48 +00:00
register_example_test.go feat: AX v0.8.0 upgrade — Core features + quality gates 2026-03-26 06:38:02 +00:00
register_test.go fix(ax): replace typed service lookups with Core.Service 2026-03-31 05:43:14 +00:00
remote.go refactor: AX compliance sweep — replace banned stdlib imports with core primitives 2026-04-13 09:32:00 +01:00
remote_client.go fix(agentic): normalise remote host inputs 2026-04-02 09:12:49 +00:00
remote_client_example_test.go feat(v0.8.0): full AX migration — ServiceRuntime, Actions, quality gates, transport 2026-03-26 01:27:46 +00:00
remote_client_test.go fix(agentic): normalise remote host inputs 2026-04-02 09:12:49 +00:00
remote_dispatch_test.go feat: AX v0.8.0 upgrade — Core features + quality gates 2026-03-26 06:38:02 +00:00
remote_example_test.go feat(v0.8.0): full AX migration — ServiceRuntime, Actions, quality gates, transport 2026-03-26 01:27:46 +00:00
remote_status.go refactor: AX compliance sweep — replace banned stdlib imports with core primitives 2026-04-13 09:32:00 +01:00
remote_status_example_test.go feat(v0.8.0): full AX migration — ServiceRuntime, Actions, quality gates, transport 2026-03-26 01:27:46 +00:00
remote_status_test.go feat: AX v0.8.0 upgrade — Core features + quality gates 2026-03-26 06:38:02 +00:00
remote_test.go fix(agentic): normalise remote host inputs 2026-04-02 09:12:49 +00:00
render_plan_test.go feat(v0.8.0): full AX migration — ServiceRuntime, Actions, quality gates, transport 2026-03-26 01:27:46 +00:00
resume.go refactor: AX compliance sweep — replace banned stdlib imports with core primitives 2026-04-13 09:32:00 +01:00
resume_example_test.go feat(v0.8.0): full AX migration — ServiceRuntime, Actions, quality gates, transport 2026-03-26 01:27:46 +00:00
resume_test.go fix(agent): mcp.Register startup panic + test isolation + CLI test standard 2026-04-08 16:15:14 +01:00
review_queue.go refactor: AX compliance sweep — replace banned stdlib imports with core primitives 2026-04-13 09:32:00 +01:00
review_queue_example_test.go feat(v0.8.0): full AX migration — ServiceRuntime, Actions, quality gates, transport 2026-03-26 01:27:46 +00:00
review_queue_extra_test.go fix(agent): mcp.Register startup panic + test isolation + CLI test standard 2026-04-08 16:15:14 +01:00
review_queue_test.go feat(agentic): support both review queue mode 2026-04-01 15:47:48 +00:00
runner.go feat(agentic): delegate runner controls to pkg/runner 2026-04-01 19:03:54 +00:00
runner_example_test.go fix(agentic): delegate runner/shutdown/poke to runner service 2026-03-26 11:19:45 +00:00
runner_test.go feat(agentic): delegate runner controls to pkg/runner 2026-04-01 19:03:54 +00:00
runtime_state.go feat(agent): go-store backing for dispatch state per RFC §15 2026-04-14 12:17:08 +01:00
runtime_state_test.go fix(agent): mcp.Register startup panic + test isolation + CLI test standard 2026-04-08 16:15:14 +01:00
sanitise.go refactor(agentic): replace core path helpers 2026-04-02 08:58:17 +00:00
sanitise_example_test.go feat(v0.8.0): full AX migration — ServiceRuntime, Actions, quality gates, transport 2026-03-26 01:27:46 +00:00
sanitise_test.go feat(v0.8.0): full AX migration — ServiceRuntime, Actions, quality gates, transport 2026-03-26 01:27:46 +00:00
scan.go fix(ax): align remaining comments with AX principles 2026-03-31 04:33:36 +00:00
scan_example_test.go feat(v0.8.0): full AX migration — ServiceRuntime, Actions, quality gates, transport 2026-03-26 01:27:46 +00:00
scan_test.go fix(ax): escape query params and surface scan parse errors 2026-03-30 20:37:23 +00:00
session.go refactor: AX compliance sweep — replace banned stdlib imports with core primitives 2026-04-13 09:32:00 +01:00
session_example_test.go feat(agentic): add session lifecycle surfaces 2026-03-31 12:06:40 +00:00
session_test.go fix(agentic): add task aliases and session model normalization 2026-04-02 07:59:58 +00:00
shutdown.go refactor: AX compliance sweep — replace banned stdlib imports with core primitives 2026-04-13 09:32:00 +01:00
shutdown_example_test.go feat(v0.8.0): full AX migration — ServiceRuntime, Actions, quality gates, transport 2026-03-26 01:27:46 +00:00
shutdown_test.go feat(v0.8.0): full AX migration — ServiceRuntime, Actions, quality gates, transport 2026-03-26 01:27:46 +00:00
sprint.go refactor: AX compliance sweep — replace banned stdlib imports with core primitives 2026-04-13 09:32:00 +01:00
sprint_test.go feat(agentic): widen RFC compatibility inputs 2026-03-31 15:42:44 +00:00
state.go refactor: AX compliance sweep — replace banned stdlib imports with core primitives 2026-04-13 09:32:00 +01:00
state_example_test.go feat(agentic): add session replay and shared state tools 2026-03-31 13:39:24 +00:00
state_test.go feat(agentic): add state delete action 2026-04-01 13:58:16 +00:00
statestore.go feat(agent): workspace state mirror + ghost reap + sync queue via go-store 2026-04-14 12:36:44 +01:00
statestore_test.go feat(agent): workspace state mirror + ghost reap + sync queue via go-store 2026-04-14 12:36:44 +01:00
status.go refactor: AX compliance sweep — replace banned stdlib imports with core primitives 2026-04-13 09:32:00 +01:00
status_example_test.go feat(agentic): add ReadStatus wrapper 2026-04-01 13:20:05 +00:00
status_extra_test.go fix(agent): mcp.Register startup panic + test isolation + CLI test standard 2026-04-08 16:15:14 +01:00
status_logic_test.go fix(ax): remove legacy status readers 2026-03-30 20:20:50 +00:00
status_test.go fix(agent): mcp.Register startup panic + test isolation + CLI test standard 2026-04-08 16:15:14 +01:00
sync.go feat(agent): workspace state mirror + ghost reap + sync queue via go-store 2026-04-14 12:36:44 +01:00
sync_example_test.go feat(agent): sync backoff + ledger + auto-flush loop 2026-04-14 12:06:04 +01:00
sync_test.go feat(agent): sync backoff + ledger + auto-flush loop 2026-04-14 12:06:04 +01:00
task.go refactor: AX compliance sweep — replace banned stdlib imports with core primitives 2026-04-13 09:32:00 +01:00
task_test.go fix(agent): mcp.Register startup panic + test isolation + CLI test standard 2026-04-08 16:15:14 +01:00
template.go refactor: AX compliance sweep — replace banned stdlib imports with core primitives 2026-04-13 09:32:00 +01:00
template_example_test.go feat(agentic): add plan template compatibility tools 2026-03-31 14:39:40 +00:00
template_test.go fix(agentic): snapshot template content in versions 2026-04-01 19:07:48 +00:00
transport.go fix(agentic): close transport response bodies 2026-04-02 07:01:51 +00:00
transport_example_test.go feat: AX v0.8.0 upgrade — Core features + quality gates 2026-03-26 06:38:02 +00:00
transport_test.go fix(ax): preserve transport causes and remove MustCompile 2026-03-30 15:33:01 +00:00
verify.go feat(agentic): clean up forge branches after publish 2026-04-02 01:59:03 +00:00
verify_example_test.go feat(v0.8.0): full AX migration — ServiceRuntime, Actions, quality gates, transport 2026-03-26 01:27:46 +00:00
verify_extra_test.go fix(ax): remove legacy status readers 2026-03-30 20:20:50 +00:00
verify_test.go fix(ax): continue AX naming cleanup 2026-03-30 21:37:15 +00:00
watch.go refactor: AX compliance sweep — replace banned stdlib imports with core primitives 2026-04-13 09:32:00 +01:00
watch_example_test.go feat(v0.8.0): full AX migration — ServiceRuntime, Actions, quality gates, transport 2026-03-26 01:27:46 +00:00
watch_test.go fix(agent): mcp.Register startup panic + test isolation + CLI test standard 2026-04-08 16:15:14 +01:00
workspace_stats.go feat(agent): RFC §15.5 parent workspace stats store 2026-04-14 13:41:07 +01:00
workspace_stats_test.go feat(agent): RFC §15.5 parent workspace stats store 2026-04-14 13:41:07 +01:00