Implemented Ad-Hoc Task handling

This commit is contained in:
2026-05-01 21:27:52 +02:00
parent d015dc2e8a
commit 5d50dee3f1
10 changed files with 464 additions and 57 deletions

View File

@@ -0,0 +1,67 @@
---
id: ADHOC-2026-03-29
type: workplan
title: "Ad Hoc Tasks — 2026-03-29"
domain: custodian
repo: the-custodian
status: done
owner: custodian
topic_slug: custodian
created: "2026-03-29"
updated: "2026-03-29"
state_hub_workstream_id: "370c2481-6806-41eb-a917-f8874f03184f"
---
# ADHOC-2026-03-29 — Ad Hoc Tasks
Migrated from the legacy `interactive-the-custodian` pseudo-workstream. These
tasks were completed before the Ad Hoc Tasks file-backed convention existed.
## Three-tier token recording on task done
```task
id: ADHOC-2026-03-29-T01
status: done
priority: medium
state_hub_task_id: "83919aef-7e93-44a2-97f6-d4f57b71acce"
```
Added heuristic fallback (1000/500), workplan proration tier, and exact-count
tier to update_task_status. Token event always created on done.
## Add record_interactive_task MCP tool
```task
id: ADHOC-2026-03-29-T02
status: done
priority: medium
state_hub_task_id: "55eb2176-fa4c-4abb-bd1a-88ab87749b91"
```
New MCP tool that found or created an interactive workstream per repo and
recorded ad-hoc tasks with token consumption in a single call.
## Token note taxonomy and seed record correction
```task
id: ADHOC-2026-03-29-T03
status: done
priority: medium
state_hub_task_id: "ba2543ef-2ae9-4870-8d28-4578c2ef30c4"
```
Introduced measured/userbased/workplan/heuristic note taxonomy. Fixed two
null-note seed records to userbased. Added token_note field to TaskUpdate
schema and note param to both MCP tools.
## Post-WP-0030 fixes and improvements
```task
id: ADHOC-2026-03-29-T04
status: done
priority: medium
state_hub_task_id: "f1512b0a-3f04-4c8b-a26f-ce82cbdd7390"
```
Fixed deep-link prefix handling, FileAttachment to fetch migration, missing
landing pages, and FK link cells with async title help-tips after WP-0030.

View File

@@ -4,7 +4,7 @@ type: workplan
title: "Ad Hoc Tasks and Workplan Archiving"
domain: custodian
repo: the-custodian
status: todo
status: done
owner: custodian
topic_slug: custodian
created: "2026-05-01"
@@ -49,7 +49,7 @@ failure; cleaner token/accounting review for opportunistic work.
```task
id: CUST-WP-0036-T01
status: todo
status: done
priority: high
state_hub_task_id: "b9ca840e-c66f-4bce-ab83-2bec68a4c0c3"
```
@@ -80,7 +80,7 @@ decide whether a discovered item belongs in Ad Hoc Tasks or a normal workplan.
```task
id: CUST-WP-0036-T02
status: todo
status: done
priority: high
state_hub_task_id: "8ab029f6-8cc8-4a7c-9505-1dcd5df16f00"
```
@@ -107,7 +107,7 @@ without a root-level workplan still fails.
```task
id: CUST-WP-0036-T03
status: todo
status: done
priority: medium
state_hub_task_id: "6922752a-6034-479a-921a-ed1ba12c740a"
```
@@ -131,7 +131,7 @@ and a subsequent consistency run remains clean for that workplan.
```task
id: CUST-WP-0036-T04
status: todo
status: done
priority: high
state_hub_task_id: "a5a0f1d9-70eb-4ef4-9081-2dd6a556a89e"
```
@@ -157,7 +157,7 @@ not create a C-07 consistency failure.
```task
id: CUST-WP-0036-T05
status: todo
status: done
priority: medium
state_hub_task_id: "4bc4edec-a97d-45f0-8929-5da0395a21c0"
```
@@ -179,7 +179,7 @@ failure, and the migration preserves enough history for token review.
```task
id: CUST-WP-0036-T06
status: todo
status: done
priority: medium
state_hub_task_id: "ac480949-2ae4-4e6f-9a85-c72b18b96d2f"
```