agent/tests/cli
Snider 2f9ffd5324 feat(agent/pipeline): implement pipeline/budget + pipeline/training (#536)
Replaces the #535 stubs with full impl per RFC.pipeline.md.

Lands:
* pkg/agentic/pipeline_budget.go (extend) — budget/plan reads pool/rate
  config, counts logged dispatches from .core/db.duckdb (JSONL fallback),
  prints per-pool remaining budget. budget/log appends to
  .core/journal/dispatch.jsonl + mirrors to state store.
* pkg/agentic/pipeline_training.go (extend) — training/capture pulls PR
  meta via MetaReader, captures PR diff via Forge PR-diff endpoint with
  `git show` fallback, records structural CodeRabbit-equivalent finding
  counts from review-thread totals, appends to .core/training/journal.jsonl.
  training/stats aggregates totals + zero-finding counts by repo.
  training/export filters to zero-finding entries → .core/training/export.jsonl
  (clean LEM training data).
* pkg/agentic/training_journal.go (NEW) — shared journal helpers
* AX-10 tests replace stubs (pipeline_budget_test.go +
  pipeline_training_test.go)
* tests/cli/pipeline/Taskfile.yaml — end-to-end smoke covers all 5
  subcommands against isolated temp workspace + local Forge stub

LEM training data pipeline now feedable: merged PRs → training/capture
→ journal.jsonl → training/export (zero-finding filter) → ready for next
LEK iteration.

Sandbox blocked from go test by go.work + private-dep resolution;
gofmt clean. Forge PR diff endpoint shape verified against Gitea API
docs (1.19).

Co-authored-by: Codex <noreply@openai.com>
Closes tasks.lthn.sh/view.php?id=536
2026-04-25 23:57:27 +01:00
..
_lib revert fcb9c189e5 2026-04-23 12:32:57 +01:00
agent feat(ax-10): bring agent to v0.8.0-alpha.1 + CLI test scaffold 2026-04-24 23:48:34 +01:00
brain revert fcb9c189e5 2026-04-23 12:32:57 +01:00
branch feat(agent/pipeline): wire branch cleanup into createPR + cmdComplete success paths (#545) 2026-04-25 23:56:34 +01:00
check revert fcb9c189e5 2026-04-23 12:32:57 +01:00
credits revert fcb9c189e5 2026-04-23 12:32:57 +01:00
dispatch revert fcb9c189e5 2026-04-23 12:32:57 +01:00
env revert fcb9c189e5 2026-04-23 12:32:57 +01:00
extract revert fcb9c189e5 2026-04-23 12:32:57 +01:00
fleet revert fcb9c189e5 2026-04-23 12:32:57 +01:00
issue revert fcb9c189e5 2026-04-23 12:32:57 +01:00
lang revert fcb9c189e5 2026-04-23 12:32:57 +01:00
message revert fcb9c189e5 2026-04-23 12:32:57 +01:00
mirror revert fcb9c189e5 2026-04-23 12:32:57 +01:00
pipeline feat(agent/pipeline): implement pipeline/budget + pipeline/training (#536) 2026-04-25 23:57:27 +01:00
plan revert fcb9c189e5 2026-04-23 12:32:57 +01:00
pr revert fcb9c189e5 2026-04-23 12:32:57 +01:00
prompt revert fcb9c189e5 2026-04-23 12:32:57 +01:00
repo revert fcb9c189e5 2026-04-23 12:32:57 +01:00
restart revert fcb9c189e5 2026-04-23 12:32:57 +01:00
scan revert fcb9c189e5 2026-04-23 12:32:57 +01:00
session revert fcb9c189e5 2026-04-23 12:32:57 +01:00
sprint revert fcb9c189e5 2026-04-23 12:32:57 +01:00
state revert fcb9c189e5 2026-04-23 12:32:57 +01:00
status revert fcb9c189e5 2026-04-23 12:32:57 +01:00
sync feat(agent/sync): WorkspacePushed IPC → go-scm local repo sync (#546) 2026-04-25 23:33:38 +01:00
version revert fcb9c189e5 2026-04-23 12:32:57 +01:00
workspace revert fcb9c189e5 2026-04-23 12:32:57 +01:00
.DS_Store revert fcb9c189e5 2026-04-23 12:32:57 +01:00
Taskfile.yaml revert fcb9c189e5 2026-04-23 12:32:57 +01:00