Skip to content

T2119: Investigate taskcore daemon POST endpoints#63

Open
krandder wants to merge 6 commits into
mainfrom
task/T2119
Open

T2119: Investigate taskcore daemon POST endpoints#63
krandder wants to merge 6 commits into
mainfrom
task/T2119

Conversation

@krandder

Copy link
Copy Markdown
Contributor

Task 2119

Investigate taskcore daemon POST endpoints

Branch: task/T2119main

krandder and others added 6 commits March 11, 2026 12:29
- verifyCompletion() rejects done if task has metadata.repo but stateRef
  is missing or zeroed (returns 422 missing_state_ref)
- Rejects done if task has completionRule='and' but not all children are
  terminal=done (returns 422 children_not_done)
- Added isZeroedStateRef() helper
- Tests: stateRef missing, stateRef zeroed, children not all done, and
  happy path with valid stateRef

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Makes verifyCompletion tests independent of insertion order.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Investigated all 10 POST endpoints in middle/http.ts and created
a reference doc covering routes, body schemas, status transitions,
decomposition flow, and key behaviors (fencing, cost enforcement,
completion checks, notifications).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant