feat(prompter): make the intake actually use its task-history digest (#592)

The history-digest pipeline (PR #297) injected past-task data but nothing
told the intake agent what to do with it: prompter.md now carries an
explicit don't-re-propose section (cite duplicates by short id, reference
precedent in notes, let history inform depends_on sequencing), and
list_recent_for_project excludes cancelled tasks so dead work can't pose
as precedent.

Co-authored-by: Renn F <rennf93@users.noreply.github.com>
This commit is contained in:
Renzo F
2026-07-19 17:25:41 +02:00
committed by GitHub
co-authored by Renn F
parent 6e67c71eb8
commit 29335f4732
4 changed files with 51 additions and 2 deletions
@@ -321,6 +321,21 @@ async def test_list_recent_for_project_scoped_to_project(
assert out_of_scope.id not in ids
@pytest.mark.asyncio
async def test_list_recent_for_project_excludes_cancelled(task_setup: dict) -> None:
svc = task_setup["svc"]
db = task_setup["db"]
live = await svc.create(_req(task_setup, title="live"))
cancelled = await svc.create(_req(task_setup, title="cancelled"))
cancelled.status = TaskStatus.CANCELLED
await db.flush()
rows = await svc.list_recent_for_project(task_setup["project_id"])
ids = {t.id for t in rows}
assert live.id in ids
assert cancelled.id not in ids
# ---------------------------------------------------------------------------
# Subtask hierarchy
# ---------------------------------------------------------------------------