kin/core
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/db.py — SQLite schema with all 9 tables from DESIGN.md 3.5 2026-03-15 13:12:54 +02:00
context_builder.py Fix output truncation bug, add language support for agent responses 2026-03-15 14:39:33 +02:00
db.py Fix output truncation bug, add language support for agent responses 2026-03-15 14:39:33 +02:00
followup.py Add follow-up task generation on approve 2026-03-15 15:02:58 +02:00
models.py Fix output truncation bug, add language support for agent responses 2026-03-15 14:39:33 +02:00