kin/tests
johnfrum1234 9264415776 Add follow-up task generation on approve
When approving a task, PM agent analyzes pipeline output and creates
follow-up tasks automatically (e.g. security audit → 8 fix tasks).

core/followup.py:
  generate_followups() — collects pipeline output, runs followup agent,
  parses JSON task list, creates tasks with parent_task_id linkage.
  Handles: bare arrays, {tasks:[...]} wrappers, invalid JSON, empty.

agents/prompts/followup.md — PM prompt for analyzing results and
  creating actionable follow-up tasks with priority from severity.

CLI: kin approve <task_id> [--followup] [--decision "text"]
API: POST /api/tasks/{id}/approve {create_followups: true}
  Returns {status, decision, followup_tasks: [...]}

Frontend (TaskDetail approve modal):
  - Checkbox "Create follow-up tasks" (default ON)
  - Loading state during generation
  - Results view: list of created tasks with links to /task/:id

ProjectView: tasks show "from VDOL-001" for follow-ups.

13 new tests (followup), 125 total, all passing.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-15 15:02:58 +02:00
..
__init__.py Add core/models.py — data access functions for all 9 tables 2026-03-15 13:16:12 +02:00
test_api.py Add task detail view, pipeline visualization, approve/reject workflow 2026-03-15 14:32:29 +02:00
test_bootstrap.py Fix bootstrap: deep scan, CLAUDE.md fallback, noise filtering 2026-03-15 13:37:42 +02:00
test_cli.py Add CLI (cli/main.py) — click-based interface for all core operations 2026-03-15 13:20:57 +02:00
test_context_builder.py Fix output truncation bug, add language support for agent responses 2026-03-15 14:39:33 +02:00
test_followup.py Add follow-up task generation on approve 2026-03-15 15:02:58 +02:00
test_models.py Add core/models.py — data access functions for all 9 tables 2026-03-15 13:16:12 +02:00
test_runner.py Fix output truncation bug, add language support for agent responses 2026-03-15 14:39:33 +02:00