corvee 0.2.0__tar.gz → 0.4.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (199) hide show
  1. {corvee-0.2.0 → corvee-0.4.0}/.github/codecov.yml +2 -2
  2. {corvee-0.2.0 → corvee-0.4.0}/.github/workflows/cicd.yaml +16 -16
  3. {corvee-0.2.0 → corvee-0.4.0}/.github/workflows/scorecard.yml +4 -4
  4. {corvee-0.2.0 → corvee-0.4.0}/AGENTS.md +17 -12
  5. {corvee-0.2.0 → corvee-0.4.0}/PKG-INFO +10 -8
  6. {corvee-0.2.0 → corvee-0.4.0}/README.md +8 -6
  7. corvee-0.4.0/docs/commands.md +51 -0
  8. {corvee-0.2.0 → corvee-0.4.0}/docs/concurrency.md +3 -2
  9. {corvee-0.2.0 → corvee-0.4.0}/docs/mcp.md +79 -25
  10. {corvee-0.2.0 → corvee-0.4.0}/docs/quickstart.md +51 -31
  11. {corvee-0.2.0 → corvee-0.4.0}/docs/spec.md +416 -181
  12. {corvee-0.2.0 → corvee-0.4.0}/docs/use-cases.md +3 -3
  13. {corvee-0.2.0 → corvee-0.4.0}/pyproject.toml +6 -5
  14. {corvee-0.2.0 → corvee-0.4.0}/src/corvee/cli/commands/brief.py +16 -9
  15. {corvee-0.2.0 → corvee-0.4.0}/src/corvee/cli/commands/doctor.py +7 -6
  16. {corvee-0.2.0 → corvee-0.4.0}/src/corvee/cli/commands/explain.py +28 -20
  17. {corvee-0.2.0 → corvee-0.4.0}/src/corvee/cli/commands/fact/add.py +10 -13
  18. {corvee-0.2.0 → corvee-0.4.0}/src/corvee/cli/commands/fact/delete.py +6 -4
  19. {corvee-0.2.0 → corvee-0.4.0}/src/corvee/cli/commands/fact/list_.py +17 -11
  20. {corvee-0.2.0 → corvee-0.4.0}/src/corvee/cli/commands/fact/retract.py +7 -6
  21. {corvee-0.2.0 → corvee-0.4.0}/src/corvee/cli/commands/fact/revise.py +9 -6
  22. {corvee-0.2.0 → corvee-0.4.0}/src/corvee/cli/commands/fact/search.py +17 -9
  23. {corvee-0.2.0 → corvee-0.4.0}/src/corvee/cli/commands/fact/show.py +7 -6
  24. {corvee-0.2.0 → corvee-0.4.0}/src/corvee/cli/commands/fact/unverify.py +7 -6
  25. {corvee-0.2.0 → corvee-0.4.0}/src/corvee/cli/commands/fact/verify.py +9 -6
  26. {corvee-0.2.0 → corvee-0.4.0}/src/corvee/cli/commands/import_.py +6 -5
  27. {corvee-0.2.0 → corvee-0.4.0}/src/corvee/cli/commands/init.py +6 -4
  28. {corvee-0.2.0 → corvee-0.4.0}/src/corvee/cli/commands/task/add.py +16 -15
  29. {corvee-0.2.0 → corvee-0.4.0}/src/corvee/cli/commands/task/assign.py +11 -8
  30. {corvee-0.2.0 → corvee-0.4.0}/src/corvee/cli/commands/task/claim.py +10 -6
  31. {corvee-0.2.0 → corvee-0.4.0}/src/corvee/cli/commands/task/claims.py +12 -7
  32. {corvee-0.2.0 → corvee-0.4.0}/src/corvee/cli/commands/task/comment.py +6 -5
  33. {corvee-0.2.0 → corvee-0.4.0}/src/corvee/cli/commands/task/label.py +10 -5
  34. {corvee-0.2.0 → corvee-0.4.0}/src/corvee/cli/commands/task/labels.py +7 -5
  35. {corvee-0.2.0 → corvee-0.4.0}/src/corvee/cli/commands/task/link.py +6 -5
  36. {corvee-0.2.0 → corvee-0.4.0}/src/corvee/cli/commands/task/list_.py +21 -14
  37. {corvee-0.2.0 → corvee-0.4.0}/src/corvee/cli/commands/task/mine.py +11 -9
  38. {corvee-0.2.0 → corvee-0.4.0}/src/corvee/cli/commands/task/purge.py +7 -5
  39. {corvee-0.2.0 → corvee-0.4.0}/src/corvee/cli/commands/task/ready.py +15 -10
  40. {corvee-0.2.0 → corvee-0.4.0}/src/corvee/cli/commands/task/search.py +13 -10
  41. {corvee-0.2.0 → corvee-0.4.0}/src/corvee/cli/commands/task/show.py +9 -6
  42. {corvee-0.2.0 → corvee-0.4.0}/src/corvee/cli/commands/task/start.py +7 -5
  43. {corvee-0.2.0 → corvee-0.4.0}/src/corvee/cli/commands/task/tree.py +7 -6
  44. {corvee-0.2.0 → corvee-0.4.0}/src/corvee/cli/commands/task/unassign.py +7 -5
  45. {corvee-0.2.0 → corvee-0.4.0}/src/corvee/cli/commands/task/unclaim.py +7 -5
  46. {corvee-0.2.0 → corvee-0.4.0}/src/corvee/cli/commands/task/unlink.py +6 -5
  47. {corvee-0.2.0 → corvee-0.4.0}/src/corvee/cli/commands/task/update.py +6 -5
  48. {corvee-0.2.0 → corvee-0.4.0}/src/corvee/cli/completion.py +6 -3
  49. {corvee-0.2.0 → corvee-0.4.0}/src/corvee/cli/main.py +1 -1
  50. {corvee-0.2.0 → corvee-0.4.0}/src/corvee/cli/params.py +26 -1
  51. {corvee-0.2.0 → corvee-0.4.0}/src/corvee/cli/scope.py +2 -2
  52. {corvee-0.2.0 → corvee-0.4.0}/src/corvee/constants.py +49 -11
  53. {corvee-0.2.0 → corvee-0.4.0}/src/corvee/db/export_import.py +18 -2
  54. {corvee-0.2.0 → corvee-0.4.0}/src/corvee/db/facts.py +0 -4
  55. {corvee-0.2.0 → corvee-0.4.0}/src/corvee/db/links.py +8 -0
  56. {corvee-0.2.0 → corvee-0.4.0}/src/corvee/db/tasks.py +60 -26
  57. {corvee-0.2.0 → corvee-0.4.0}/src/corvee/errors.py +10 -0
  58. {corvee-0.2.0 → corvee-0.4.0}/src/corvee/mcp/dispatch.py +67 -11
  59. {corvee-0.2.0 → corvee-0.4.0}/src/corvee/mcp/scope.py +5 -20
  60. {corvee-0.2.0 → corvee-0.4.0}/src/corvee/mcp/server.py +13 -5
  61. {corvee-0.2.0 → corvee-0.4.0}/src/corvee/mcp/tools_common.py +63 -8
  62. {corvee-0.2.0 → corvee-0.4.0}/src/corvee/mcp/tools_fact.py +108 -18
  63. {corvee-0.2.0 → corvee-0.4.0}/src/corvee/mcp/tools_read.py +11 -11
  64. corvee-0.4.0/src/corvee/mcp/tools_write.py +669 -0
  65. {corvee-0.2.0 → corvee-0.4.0}/src/corvee/models.py +45 -12
  66. {corvee-0.2.0 → corvee-0.4.0}/src/corvee/output.py +125 -26
  67. {corvee-0.2.0 → corvee-0.4.0}/src/corvee/references.py +9 -5
  68. {corvee-0.2.0 → corvee-0.4.0}/tests/acceptance/test_cli_actor_session_flags.py +10 -6
  69. {corvee-0.2.0 → corvee-0.4.0}/tests/acceptance/test_cli_add_list_show.py +84 -44
  70. {corvee-0.2.0 → corvee-0.4.0}/tests/acceptance/test_cli_brief.py +10 -9
  71. {corvee-0.2.0 → corvee-0.4.0}/tests/acceptance/test_cli_claim_update.py +12 -10
  72. {corvee-0.2.0 → corvee-0.4.0}/tests/acceptance/test_cli_claims.py +2 -2
  73. {corvee-0.2.0 → corvee-0.4.0}/tests/acceptance/test_cli_completion.py +29 -0
  74. corvee-0.4.0/tests/acceptance/test_cli_derived_blocked.py +217 -0
  75. {corvee-0.2.0 → corvee-0.4.0}/tests/acceptance/test_cli_doctor.py +23 -21
  76. {corvee-0.2.0 → corvee-0.4.0}/tests/acceptance/test_cli_duration_validation.py +2 -2
  77. {corvee-0.2.0 → corvee-0.4.0}/tests/acceptance/test_cli_error_handling.py +2 -2
  78. {corvee-0.2.0 → corvee-0.4.0}/tests/acceptance/test_cli_explain_and_epilogs.py +2 -2
  79. {corvee-0.2.0 → corvee-0.4.0}/tests/acceptance/test_cli_export_import.py +14 -14
  80. {corvee-0.2.0 → corvee-0.4.0}/tests/acceptance/test_cli_facts.py +104 -37
  81. {corvee-0.2.0 → corvee-0.4.0}/tests/acceptance/test_cli_global_scope.py +54 -48
  82. {corvee-0.2.0 → corvee-0.4.0}/tests/acceptance/test_cli_init.py +5 -5
  83. {corvee-0.2.0 → corvee-0.4.0}/tests/acceptance/test_cli_labels.py +31 -11
  84. {corvee-0.2.0 → corvee-0.4.0}/tests/acceptance/test_cli_limit_validation.py +1 -1
  85. {corvee-0.2.0 → corvee-0.4.0}/tests/acceptance/test_cli_link.py +6 -6
  86. {corvee-0.2.0 → corvee-0.4.0}/tests/acceptance/test_cli_no_project.py +14 -14
  87. corvee-0.4.0/tests/acceptance/test_cli_output_format.py +144 -0
  88. {corvee-0.2.0 → corvee-0.4.0}/tests/acceptance/test_cli_pagination.py +14 -8
  89. {corvee-0.2.0 → corvee-0.4.0}/tests/acceptance/test_cli_ready_search_mine_comment.py +38 -15
  90. {corvee-0.2.0 → corvee-0.4.0}/tests/acceptance/test_cli_referenced.py +99 -26
  91. {corvee-0.2.0 → corvee-0.4.0}/tests/acceptance/test_cli_task_add_from_file.py +75 -18
  92. {corvee-0.2.0 → corvee-0.4.0}/tests/acceptance/test_cli_task_assign.py +13 -9
  93. {corvee-0.2.0 → corvee-0.4.0}/tests/acceptance/test_cli_task_purge.py +8 -8
  94. {corvee-0.2.0 → corvee-0.4.0}/tests/acceptance/test_cli_task_start.py +6 -6
  95. {corvee-0.2.0 → corvee-0.4.0}/tests/acceptance/test_cli_tree.py +4 -4
  96. {corvee-0.2.0 → corvee-0.4.0}/tests/acceptance/test_config.py +12 -0
  97. {corvee-0.2.0 → corvee-0.4.0}/tests/acceptance/test_db_export_import.py +57 -1
  98. {corvee-0.2.0 → corvee-0.4.0}/tests/acceptance/test_db_links.py +17 -0
  99. {corvee-0.2.0 → corvee-0.4.0}/tests/acceptance/test_db_tasks.py +15 -0
  100. corvee-0.4.0/tests/acceptance/test_mcp_blocked_by.py +32 -0
  101. {corvee-0.2.0 → corvee-0.4.0}/tests/acceptance/test_mcp_create_and_find_tools.py +12 -0
  102. {corvee-0.2.0 → corvee-0.4.0}/tests/acceptance/test_mcp_docs_tool_inventory.py +9 -1
  103. corvee-0.4.0/tests/acceptance/test_mcp_fact_tools.py +289 -0
  104. {corvee-0.2.0 → corvee-0.4.0}/tests/acceptance/test_mcp_read_tools.py +26 -0
  105. {corvee-0.2.0 → corvee-0.4.0}/tests/acceptance/test_mcp_scope.py +1 -33
  106. corvee-0.4.0/tests/acceptance/test_mcp_unknown_arguments.py +62 -0
  107. corvee-0.4.0/tests/acceptance/test_mcp_write_tools.py +699 -0
  108. {corvee-0.2.0 → corvee-0.4.0}/tests/conftest.py +4 -2
  109. {corvee-0.2.0 → corvee-0.4.0}/tests/e2e/test_concurrency.py +3 -3
  110. {corvee-0.2.0 → corvee-0.4.0}/tests/e2e/test_e2e.py +59 -18
  111. {corvee-0.2.0 → corvee-0.4.0}/tests/e2e/test_mcp_protocol.py +11 -0
  112. {corvee-0.2.0 → corvee-0.4.0}/tests/unit/test_constants.py +31 -8
  113. {corvee-0.2.0 → corvee-0.4.0}/tests/unit/test_mcp_dispatch.py +23 -1
  114. {corvee-0.2.0 → corvee-0.4.0}/tests/unit/test_models.py +41 -0
  115. {corvee-0.2.0 → corvee-0.4.0}/tests/unit/test_output.py +164 -24
  116. corvee-0.2.0/.claude/CLAUDE.md +0 -1
  117. corvee-0.2.0/docs/commands.md +0 -44
  118. corvee-0.2.0/src/corvee/mcp/tools_write.py +0 -323
  119. corvee-0.2.0/tests/acceptance/test_mcp_fact_tools.py +0 -94
  120. corvee-0.2.0/tests/acceptance/test_mcp_write_tools.py +0 -244
  121. {corvee-0.2.0 → corvee-0.4.0}/.github/CODEOWNERS +0 -0
  122. {corvee-0.2.0 → corvee-0.4.0}/.github/CODE_OF_CONDUCT.md +0 -0
  123. {corvee-0.2.0 → corvee-0.4.0}/.github/ISSUE_TEMPLATE/bug_report.md +0 -0
  124. {corvee-0.2.0 → corvee-0.4.0}/.github/ISSUE_TEMPLATE/feature_request.md +0 -0
  125. {corvee-0.2.0 → corvee-0.4.0}/.github/ISSUE_TEMPLATE/question.md +0 -0
  126. {corvee-0.2.0 → corvee-0.4.0}/.github/dependabot.yml +0 -0
  127. {corvee-0.2.0 → corvee-0.4.0}/.github/pull_request_template.md +0 -0
  128. {corvee-0.2.0 → corvee-0.4.0}/.github/release.yaml +0 -0
  129. {corvee-0.2.0 → corvee-0.4.0}/.github/self-review.md +0 -0
  130. {corvee-0.2.0 → corvee-0.4.0}/.github/workflows/dependabot_auto_merge.yaml +0 -0
  131. {corvee-0.2.0 → corvee-0.4.0}/.gitignore +0 -0
  132. {corvee-0.2.0 → corvee-0.4.0}/.pre-commit-config.yaml +0 -0
  133. {corvee-0.2.0 → corvee-0.4.0}/.readthedocs.yaml +0 -0
  134. {corvee-0.2.0 → corvee-0.4.0}/CITATION.cff +0 -0
  135. {corvee-0.2.0 → corvee-0.4.0}/CONTRIBUTING.md +0 -0
  136. {corvee-0.2.0 → corvee-0.4.0}/LICENSE +0 -0
  137. {corvee-0.2.0 → corvee-0.4.0}/SECURITY.md +0 -0
  138. {corvee-0.2.0 → corvee-0.4.0}/docs/index.md +0 -0
  139. {corvee-0.2.0 → corvee-0.4.0}/mkdocs.yml +0 -0
  140. {corvee-0.2.0 → corvee-0.4.0}/src/corvee/__init__.py +0 -0
  141. {corvee-0.2.0 → corvee-0.4.0}/src/corvee/__main__.py +0 -0
  142. {corvee-0.2.0 → corvee-0.4.0}/src/corvee/actor.py +0 -0
  143. {corvee-0.2.0 → corvee-0.4.0}/src/corvee/cli/__init__.py +0 -0
  144. {corvee-0.2.0 → corvee-0.4.0}/src/corvee/cli/commands/__init__.py +0 -0
  145. {corvee-0.2.0 → corvee-0.4.0}/src/corvee/cli/commands/completion.py +0 -0
  146. {corvee-0.2.0 → corvee-0.4.0}/src/corvee/cli/commands/export.py +0 -0
  147. {corvee-0.2.0 → corvee-0.4.0}/src/corvee/cli/commands/fact/__init__.py +0 -0
  148. {corvee-0.2.0 → corvee-0.4.0}/src/corvee/cli/commands/mcp/__init__.py +0 -0
  149. {corvee-0.2.0 → corvee-0.4.0}/src/corvee/cli/commands/mcp/serve.py +0 -0
  150. {corvee-0.2.0 → corvee-0.4.0}/src/corvee/cli/commands/task/__init__.py +0 -0
  151. {corvee-0.2.0 → corvee-0.4.0}/src/corvee/cli/context.py +0 -0
  152. {corvee-0.2.0 → corvee-0.4.0}/src/corvee/config.py +0 -0
  153. {corvee-0.2.0 → corvee-0.4.0}/src/corvee/db/__init__.py +0 -0
  154. {corvee-0.2.0 → corvee-0.4.0}/src/corvee/db/connection.py +0 -0
  155. {corvee-0.2.0 → corvee-0.4.0}/src/corvee/db/events.py +0 -0
  156. {corvee-0.2.0 → corvee-0.4.0}/src/corvee/db/labels.py +0 -0
  157. {corvee-0.2.0 → corvee-0.4.0}/src/corvee/db/like.py +0 -0
  158. {corvee-0.2.0 → corvee-0.4.0}/src/corvee/db/schema.py +0 -0
  159. {corvee-0.2.0 → corvee-0.4.0}/src/corvee/db/stats.py +0 -0
  160. {corvee-0.2.0 → corvee-0.4.0}/src/corvee/guards/__init__.py +0 -0
  161. {corvee-0.2.0 → corvee-0.4.0}/src/corvee/guards/ancestry.py +0 -0
  162. {corvee-0.2.0 → corvee-0.4.0}/src/corvee/guards/fields.py +0 -0
  163. {corvee-0.2.0 → corvee-0.4.0}/src/corvee/guards/labels.py +0 -0
  164. {corvee-0.2.0 → corvee-0.4.0}/src/corvee/guards/parent_child.py +0 -0
  165. {corvee-0.2.0 → corvee-0.4.0}/src/corvee/guards/scope.py +0 -0
  166. {corvee-0.2.0 → corvee-0.4.0}/src/corvee/guards/transitions.py +0 -0
  167. {corvee-0.2.0 → corvee-0.4.0}/src/corvee/mcp/__init__.py +0 -0
  168. {corvee-0.2.0 → corvee-0.4.0}/src/corvee/mcp/server_config.py +0 -0
  169. {corvee-0.2.0 → corvee-0.4.0}/src/corvee/mcp/worker.py +0 -0
  170. {corvee-0.2.0 → corvee-0.4.0}/src/corvee/timeutil.py +0 -0
  171. {corvee-0.2.0 → corvee-0.4.0}/tests/acceptance/conftest.py +0 -0
  172. {corvee-0.2.0 → corvee-0.4.0}/tests/acceptance/mcp_helpers.py +0 -0
  173. {corvee-0.2.0/tests/unit → corvee-0.4.0/tests/acceptance}/test_cicd_workflow.py +0 -0
  174. {corvee-0.2.0 → corvee-0.4.0}/tests/acceptance/test_cli_completion_command.py +0 -0
  175. {corvee-0.2.0 → corvee-0.4.0}/tests/acceptance/test_cli_context_overrides.py +0 -0
  176. {corvee-0.2.0 → corvee-0.4.0}/tests/acceptance/test_cli_mcp_serve.py +0 -0
  177. {corvee-0.2.0 → corvee-0.4.0}/tests/acceptance/test_cli_params.py +0 -0
  178. {corvee-0.2.0 → corvee-0.4.0}/tests/acceptance/test_cli_scope.py +0 -0
  179. {corvee-0.2.0 → corvee-0.4.0}/tests/acceptance/test_db_claims_and_update.py +0 -0
  180. {corvee-0.2.0 → corvee-0.4.0}/tests/acceptance/test_db_connection.py +0 -0
  181. {corvee-0.2.0 → corvee-0.4.0}/tests/acceptance/test_db_facts.py +0 -0
  182. {corvee-0.2.0 → corvee-0.4.0}/tests/acceptance/test_db_labels.py +0 -0
  183. {corvee-0.2.0 → corvee-0.4.0}/tests/acceptance/test_db_ready_search_mine_comment.py +0 -0
  184. {corvee-0.2.0 → corvee-0.4.0}/tests/acceptance/test_db_stats.py +0 -0
  185. {corvee-0.2.0 → corvee-0.4.0}/tests/acceptance/test_mcp_concurrency.py +0 -0
  186. {corvee-0.2.0 → corvee-0.4.0}/tests/acceptance/test_mcp_server_config.py +0 -0
  187. {corvee-0.2.0 → corvee-0.4.0}/tests/acceptance/test_mcp_server_startup.py +0 -0
  188. {corvee-0.2.0 → corvee-0.4.0}/tests/acceptance/test_mcp_stdout_purity.py +0 -0
  189. {corvee-0.2.0 → corvee-0.4.0}/tests/acceptance/test_mcp_tool_descriptions.py +0 -0
  190. {corvee-0.2.0 → corvee-0.4.0}/tests/acceptance/test_mcp_version_skew.py +0 -0
  191. {corvee-0.2.0 → corvee-0.4.0}/tests/e2e/test_mcp_serve.py +0 -0
  192. {corvee-0.2.0 → corvee-0.4.0}/tests/unit/test_actor.py +0 -0
  193. {corvee-0.2.0 → corvee-0.4.0}/tests/unit/test_config_toml.py +0 -0
  194. {corvee-0.2.0 → corvee-0.4.0}/tests/unit/test_connection_errors.py +0 -0
  195. {corvee-0.2.0 → corvee-0.4.0}/tests/unit/test_guards.py +0 -0
  196. {corvee-0.2.0 → corvee-0.4.0}/tests/unit/test_mcp_dispatch_version_skew.py +0 -0
  197. {corvee-0.2.0 → corvee-0.4.0}/tests/unit/test_mcp_session_id_resolution.py +0 -0
  198. {corvee-0.2.0 → corvee-0.4.0}/tests/unit/test_mcp_worker.py +0 -0
  199. {corvee-0.2.0 → corvee-0.4.0}/tests/unit/test_timeutil.py +0 -0
@@ -11,12 +11,12 @@ coverage:
11
11
  status:
12
12
  project:
13
13
  default:
14
- informational: true
14
+ informational: false
15
15
  target: auto
16
16
  threshold: 2%
17
17
  patch:
18
18
  default:
19
- informational: true
19
+ informational: false
20
20
 
21
21
  comment:
22
22
  layout: "reach, diff, flags, files"
@@ -20,7 +20,7 @@ jobs:
20
20
  - uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
21
21
  with:
22
22
  python-version: "3.11"
23
- - uses: astral-sh/setup-uv@bec219d24cd3e171d82865faccec33120bb574f4 # v10.1.0
23
+ - uses: astral-sh/setup-uv@1c37ad07a6a961277cf70c0d37d6f313000f5884 # v10.3.0
24
24
  - name: Install project
25
25
  run: uv pip install --system -e .
26
26
  - uses: pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd # v3.0.1
@@ -33,7 +33,7 @@ jobs:
33
33
  security-events: write
34
34
  steps:
35
35
  - name: Harden Runner
36
- uses: step-security/harden-runner@e14015d583714f6e62063499dc959a02595150a1 # v2.21.1
36
+ uses: step-security/harden-runner@ccd8616d44fd3846e67624a50d5aad6d37bf2d25 # v2.22.1
37
37
  with:
38
38
  # Audit only: no secrets, read-only code scanning -- low blast radius.
39
39
  egress-policy: audit
@@ -46,16 +46,16 @@ jobs:
46
46
  uses: actions/dependency-review-action@a1d282b36b6f3519aa1f3fc636f609c47dddb294 # v5.0.0
47
47
 
48
48
  - name: Initialize CodeQL
49
- uses: github/codeql-action/init@b96794f015dfd88f77b49b1c93e0fa7110f94c63 # v3.29.5
49
+ uses: github/codeql-action/init@24c54180a607b1449ed407dd24f251e4e9147c8d # v3.29.5
50
50
  with:
51
51
  languages: python
52
52
  queries: security-extended,security-and-quality
53
53
 
54
54
  - name: Autobuild
55
- uses: github/codeql-action/autobuild@b96794f015dfd88f77b49b1c93e0fa7110f94c63 # v3.29.5
55
+ uses: github/codeql-action/autobuild@24c54180a607b1449ed407dd24f251e4e9147c8d # v3.29.5
56
56
 
57
57
  - name: Perform CodeQL Analysis
58
- uses: github/codeql-action/analyze@b96794f015dfd88f77b49b1c93e0fa7110f94c63 # v3.29.5
58
+ uses: github/codeql-action/analyze@24c54180a607b1449ed407dd24f251e4e9147c8d # v3.29.5
59
59
  with:
60
60
  category: "/language:python"
61
61
 
@@ -69,7 +69,7 @@ jobs:
69
69
  - uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
70
70
  with:
71
71
  python-version: "3.11"
72
- - uses: astral-sh/setup-uv@bec219d24cd3e171d82865faccec33120bb574f4 # v10.1.0
72
+ - uses: astral-sh/setup-uv@1c37ad07a6a961277cf70c0d37d6f313000f5884 # v10.3.0
73
73
  - name: Check git status
74
74
  run: |
75
75
  if [[ -z "$(git status --porcelain)" ]]; then
@@ -83,7 +83,7 @@ jobs:
83
83
  run: uv tool install hatch
84
84
  - name: Build
85
85
  run: hatch build
86
- - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
86
+ - uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
87
87
  with:
88
88
  name: dist
89
89
  path: dist/
@@ -101,14 +101,14 @@ jobs:
101
101
  PYTHON: ${{ matrix.python-version }}
102
102
  steps:
103
103
  - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
104
- - uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
104
+ - uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
105
105
  with:
106
106
  name: dist
107
107
  path: dist/
108
108
  - uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
109
109
  with:
110
110
  python-version: ${{ matrix.python-version }}
111
- - uses: astral-sh/setup-uv@bec219d24cd3e171d82865faccec33120bb574f4 # v10.1.0
111
+ - uses: astral-sh/setup-uv@1c37ad07a6a961277cf70c0d37d6f313000f5884 # v10.3.0
112
112
  - name: Install the built wheel and test dependencies (Linux or macOS)
113
113
  if: runner.os != 'Windows'
114
114
  run: |
@@ -123,7 +123,7 @@ jobs:
123
123
  run: pytest -n auto -x --cov=corvee --cov-report=xml --junitxml=junit.xml -o junit_family=legacy
124
124
  - name: Upload coverage to Codecov
125
125
  if: ${{ !cancelled() && github.actor == 'btschwertfeger' }}
126
- uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v7.0.0
126
+ uses: codecov/codecov-action@303a32d7a59b442fa8d48b6a1cc6825c09c847a5 # v7.1.1
127
127
  with:
128
128
  token: ${{ secrets.CODECOV_TOKEN }}
129
129
  files: coverage.xml
@@ -134,7 +134,7 @@ jobs:
134
134
  name: codecov-umbrella
135
135
  - name: Upload test results to Codecov
136
136
  if: ${{ !cancelled() && github.actor == 'btschwertfeger' }}
137
- uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v7.0.0
137
+ uses: codecov/codecov-action@303a32d7a59b442fa8d48b6a1cc6825c09c847a5 # v7.1.1
138
138
  with:
139
139
  token: ${{ secrets.CODECOV_TOKEN }}
140
140
  files: junit.xml
@@ -154,7 +154,7 @@ jobs:
154
154
  - uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
155
155
  with:
156
156
  python-version: "3.11"
157
- - uses: astral-sh/setup-uv@bec219d24cd3e171d82865faccec33120bb574f4 # v10.1.0
157
+ - uses: astral-sh/setup-uv@1c37ad07a6a961277cf70c0d37d6f313000f5884 # v10.3.0
158
158
  - name: Install hatch
159
159
  run: uv tool install hatch
160
160
  - name: Build documentation
@@ -198,7 +198,7 @@ jobs:
198
198
  url: https://test.pypi.org/p/corvee
199
199
  steps:
200
200
  - name: Harden Runner
201
- uses: step-security/harden-runner@e14015d583714f6e62063499dc959a02595150a1 # v2.21.1
201
+ uses: step-security/harden-runner@ccd8616d44fd3846e67624a50d5aad6d37bf2d25 # v2.22.1
202
202
  with:
203
203
  disable-sudo: true
204
204
  egress-policy: block
@@ -215,7 +215,7 @@ jobs:
215
215
  uploads.github.com:443
216
216
 
217
217
  - name: Download the distributions
218
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
218
+ uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
219
219
  with:
220
220
  name: dist
221
221
  path: dist/
@@ -243,7 +243,7 @@ jobs:
243
243
  url: https://pypi.org/p/corvee
244
244
  steps:
245
245
  - name: Harden Runner
246
- uses: step-security/harden-runner@e14015d583714f6e62063499dc959a02595150a1 # v2.21.1
246
+ uses: step-security/harden-runner@ccd8616d44fd3846e67624a50d5aad6d37bf2d25 # v2.22.1
247
247
  with:
248
248
  disable-sudo: true
249
249
  egress-policy: block
@@ -260,7 +260,7 @@ jobs:
260
260
  upload.pypi.org
261
261
 
262
262
  - name: Download the distributions
263
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
263
+ uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
264
264
  with:
265
265
  name: dist
266
266
  path: dist/
@@ -34,7 +34,7 @@ jobs:
34
34
 
35
35
  steps:
36
36
  - name: Harden Runner
37
- uses: step-security/harden-runner@05e31511f85b41b11d1cf0ef85d0992719546e2c # v2.21.0
37
+ uses: step-security/harden-runner@ccd8616d44fd3846e67624a50d5aad6d37bf2d25 # v2.22.1
38
38
  with:
39
39
  # Audit only: no secrets, read-only permissions — low blast radius.
40
40
  egress-policy: audit
@@ -45,7 +45,7 @@ jobs:
45
45
  persist-credentials: false
46
46
 
47
47
  - name: "Run analysis"
48
- uses: ossf/scorecard-action@2d1146689b8cda280b9bc96326124645441f03bc # v2.4.4
48
+ uses: ossf/scorecard-action@fa7117db83c52d787ae5a89f350999701505d78e # v2.5.0
49
49
  with:
50
50
  results_file: results.sarif
51
51
  results_format: sarif
@@ -67,7 +67,7 @@ jobs:
67
67
  # Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF
68
68
  # format to the repository Actions tab.
69
69
  - name: "Upload artifact"
70
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
70
+ uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
71
71
  with:
72
72
  name: SARIF file
73
73
  path: results.sarif
@@ -75,6 +75,6 @@ jobs:
75
75
 
76
76
  # Upload the results to GitHub's code scanning dashboard.
77
77
  - name: "Upload to code-scanning"
78
- uses: github/codeql-action/upload-sarif@cdf488f595d80d6e07e03d4674febd5ab45fa938 # v3.29.5
78
+ uses: github/codeql-action/upload-sarif@24c54180a607b1449ed407dd24f251e4e9147c8d # v3.29.5
79
79
  with:
80
80
  sarif_file: results.sarif
@@ -26,7 +26,8 @@ files.
26
26
 
27
27
  ```bash
28
28
  hatch run test # pytest, parallel via pytest-xdist
29
- hatch run check # every prek hook + test.
29
+ hatch run cov # pytest with coverage, fails under 90%
30
+ hatch run check # every prek hook + cov.
30
31
  # Run this before considering a change done
31
32
  hatch run lint # ruff check, via prek
32
33
  hatch run format # black, via prek
@@ -41,6 +42,15 @@ what each one actually runs. `hatch run check` (or `prek run --all-files`
41
42
  directly) is the mandatory quality gate before a change is considered
42
43
  finished.
43
44
 
45
+ `test:test` is a local convenience for checking one interpreter from the
46
+ matrix. CI's `test` job does not run it, and installs the wheel `build`
47
+ produced (the same artifact `upload-pypi`/`upload-test-pypi` later publish)
48
+ plus its own hardcoded `pytest`/`pytest-cov`/`pytest-xdist`, exercising the
49
+ actual packaged wheel on every OS/interpreter combination instead of the
50
+ editable source install a `hatch` env creates. A dependency added to
51
+ `[tool.hatch.envs.default.dependencies]` for testing must be added to
52
+ `cicd.yaml`'s install step by hand to reach CI.
53
+
44
54
  ## Principles
45
55
 
46
56
  KISS, YAGNI, DRY. A change should be minimal and focused on what was asked.
@@ -125,17 +135,12 @@ JSON-on-stderr shape and the process exit code.
125
135
  examples (enforced by a test).
126
136
  - Full type hints throughout. `ty` has zero tolerance for untyped public
127
137
  signatures or unjustified `Any`.
128
- - Never use `typing.cast()`. It tells the type checker to trust an
129
- annotation and does nothing at runtime, so an assumption that turns out
130
- wrong propagates a bad value silently instead of failing loudly. Where a
131
- value's real type is narrower than what the checker can infer on its own
132
- (a DB column value narrowed to a `Literal`, a `click.Choice(...)`-checked
133
- option), write a small function that checks the value against its known
134
- set of valid members and raises if it is not one of them, then returns it
135
- -- see `constants.py`'s `narrow_*` functions for the pattern, and
136
- `mcp/dispatch.py::run_tool`'s docstring for the one place a genuine
137
- external-library expressiveness gap (not a value narrowing) still needs a
138
- single, well-documented `# ty: ignore[...]` instead.
138
+ - Never use `typing.cast()` -- it trusts an annotation without verifying it
139
+ at runtime, so a wrong assumption propagates silently. Narrow values
140
+ instead using `constants.py`'s `narrow_*` pattern (check known members,
141
+ raise otherwise). The one exception is a genuine external-library
142
+ expressiveness gap, documented with `# ty: ignore[...]` in
143
+ `mcp/dispatch.py::run_tool`'s docstring.
139
144
  - Tests are classified by directory, not per-test decorators: `tests/unit`
140
145
  (pure functions, no filesystem/db), `tests/acceptance` (through the CLI or
141
146
  db layer against a real `tmp_path` SQLite database), `tests/e2e` (a real
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: corvee
3
- Version: 0.2.0
3
+ Version: 0.4.0
4
4
  Summary: A single-machine, non-git-tracked, persistent, multi-agent-aware CLI task tracker and fact store
5
5
  Project-URL: Homepage, https://github.com/btschwertfeger/Corvee
6
6
  Project-URL: Documentation, https://corvee.readthedocs.io/en/stable/
@@ -11,9 +11,9 @@ License-File: LICENSE
11
11
  Requires-Python: >=3.11
12
12
  Requires-Dist: click~=8.5
13
13
  Provides-Extra: docs
14
- Requires-Dist: mkdocs; extra == 'docs'
15
14
  Requires-Dist: mkdocs-click; extra == 'docs'
16
15
  Requires-Dist: mkdocs-material; extra == 'docs'
16
+ Requires-Dist: mkdocs<2; extra == 'docs'
17
17
  Provides-Extra: mcp
18
18
  Requires-Dist: mcp>=2.2; extra == 'mcp'
19
19
  Description-Content-Type: text/markdown
@@ -33,7 +33,9 @@ for you and your agents!
33
33
  [![GitHub](https://badgen.net/badge/icon/github?icon=github&label)](https://github.com/btschwertfeger/corvee)
34
34
  [![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](LICENSE)
35
35
  [![Python 3.11+](https://img.shields.io/badge/python-3.11%2B-blue.svg)](pyproject.toml)
36
+
36
37
  [![Downloads](https://static.pepy.tech/personalized-badge/corvee?period=total&units=abbreviation&left_color=grey&right_color=orange&left_text=downloads)](https://pepy.tech/project/corvee)
38
+ [![release](https://img.shields.io/pypi/v/corvee)](https://pypi.org/project/corvee/)
37
39
 
38
40
  [![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)
39
41
  [![typing-ty](https://img.shields.io/badge/typing-ty-informational)](https://github.com/astral-sh/ty)
@@ -43,8 +45,8 @@ for you and your agents!
43
45
  [![OpenSSF Best Practices](https://www.bestpractices.dev/projects/14702/badge)](https://www.bestpractices.dev/projects/14702)
44
46
  [![OpenSSF ScoreCard](https://img.shields.io/ossf-scorecard/github.com/btschwertfeger/Corvee?label=openssf%20scorecard&style=flat)](https://securityscorecards.dev/viewer/?uri=github.com/btschwertfeger/Corvee)
45
47
 
46
- [![release](https://img.shields.io/pypi/v/corvee)](https://pypi.org/project/corvee/)
47
- [![Documentation](https://img.shields.io/badge/docs-btschwertfeger.github.io%2FCorvee-blue.svg)](https://corvee.readthedocs.io/en/latest/)
48
+ [![Documentation](https://img.shields.io/badge/docs-corvee.readthedocs.io-blue.svg)](https://corvee.readthedocs.io/en/stable/)
49
+ [![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.22877769.svg)](https://doi.org/10.5281/zenodo.22877769)
48
50
 
49
51
  </div>
50
52
 
@@ -129,16 +131,16 @@ cd your-project
129
131
  corvee init # once per project
130
132
 
131
133
  corvee task add "Fix the flaky auth test" --description "..."
132
- corvee task list --json
134
+ corvee task list -o json
133
135
  corvee task claim TASK-1
134
136
  corvee task update TASK-1 --state done # claim clears automatically
135
137
 
136
138
  corvee fact add "requests is Apache-2.0 licensed" --proof "pip show requests"
137
- corvee fact search "license" --json
139
+ corvee fact search "license" -o json
138
140
  ```
139
141
 
140
- `corvee explain` prints a compact, agent-oriented cheat sheet from inside
141
- any initialized project. See [Quickstart](docs/quickstart.md) for facts,
142
+ `corvee explain` prints a compact, agent-oriented cheat sheet from any
143
+ directory. See [Quickstart](docs/quickstart.md) for facts,
142
144
  global scope, and the full core loop.
143
145
 
144
146
  ## License
@@ -13,7 +13,9 @@ for you and your agents!
13
13
  [![GitHub](https://badgen.net/badge/icon/github?icon=github&label)](https://github.com/btschwertfeger/corvee)
14
14
  [![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](LICENSE)
15
15
  [![Python 3.11+](https://img.shields.io/badge/python-3.11%2B-blue.svg)](pyproject.toml)
16
+
16
17
  [![Downloads](https://static.pepy.tech/personalized-badge/corvee?period=total&units=abbreviation&left_color=grey&right_color=orange&left_text=downloads)](https://pepy.tech/project/corvee)
18
+ [![release](https://img.shields.io/pypi/v/corvee)](https://pypi.org/project/corvee/)
17
19
 
18
20
  [![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)
19
21
  [![typing-ty](https://img.shields.io/badge/typing-ty-informational)](https://github.com/astral-sh/ty)
@@ -23,8 +25,8 @@ for you and your agents!
23
25
  [![OpenSSF Best Practices](https://www.bestpractices.dev/projects/14702/badge)](https://www.bestpractices.dev/projects/14702)
24
26
  [![OpenSSF ScoreCard](https://img.shields.io/ossf-scorecard/github.com/btschwertfeger/Corvee?label=openssf%20scorecard&style=flat)](https://securityscorecards.dev/viewer/?uri=github.com/btschwertfeger/Corvee)
25
27
 
26
- [![release](https://img.shields.io/pypi/v/corvee)](https://pypi.org/project/corvee/)
27
- [![Documentation](https://img.shields.io/badge/docs-btschwertfeger.github.io%2FCorvee-blue.svg)](https://corvee.readthedocs.io/en/latest/)
28
+ [![Documentation](https://img.shields.io/badge/docs-corvee.readthedocs.io-blue.svg)](https://corvee.readthedocs.io/en/stable/)
29
+ [![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.22877769.svg)](https://doi.org/10.5281/zenodo.22877769)
28
30
 
29
31
  </div>
30
32
 
@@ -109,16 +111,16 @@ cd your-project
109
111
  corvee init # once per project
110
112
 
111
113
  corvee task add "Fix the flaky auth test" --description "..."
112
- corvee task list --json
114
+ corvee task list -o json
113
115
  corvee task claim TASK-1
114
116
  corvee task update TASK-1 --state done # claim clears automatically
115
117
 
116
118
  corvee fact add "requests is Apache-2.0 licensed" --proof "pip show requests"
117
- corvee fact search "license" --json
119
+ corvee fact search "license" -o json
118
120
  ```
119
121
 
120
- `corvee explain` prints a compact, agent-oriented cheat sheet from inside
121
- any initialized project. See [Quickstart](docs/quickstart.md) for facts,
122
+ `corvee explain` prints a compact, agent-oriented cheat sheet from any
123
+ directory. See [Quickstart](docs/quickstart.md) for facts,
122
124
  global scope, and the full core loop.
123
125
 
124
126
  ## License
@@ -0,0 +1,51 @@
1
+ # Commands
2
+
3
+ Every command below accepts `-o`/`--output table|wide|json` and, with
4
+ `json`, prints a JSON array of objects on success, except `explain`,
5
+ `completion`, and `mcp serve`, which have no `-o`/`--output` flag, and
6
+ `export`, which always writes JSON without needing one. `wide` only
7
+ applies to the row-listing commands (`task list`/`ready`/`search`/`mine`,
8
+ `fact list`/`search`, `brief`); every other command rejects it. `brief`,
9
+ `doctor`, `init`, and `task tree` print one object rather than an array
10
+ under `-o json`, since each returns a document rather than query results.
11
+ `corvee <command> --help` shows runnable examples for any of them. This
12
+ page covers usage and flags only. Standalone, checked-true (or
13
+ not-yet-checked, or retracted) facts are not linked to tasks by the schema
14
+ (see [Specification](spec.md#46-facts)).
15
+
16
+ ::: mkdocs-click
17
+ :module: corvee.cli.main
18
+ :command: cli
19
+ :prog_name: corvee
20
+ :depth: 1
21
+
22
+ ## Reading an id
23
+
24
+ Tasks are referenced externally as `TASK-<n>` (e.g. `TASK-14`) and facts
25
+ as `FACT-<n>` (e.g. `FACT-7`). Commands accept either the prefixed form or a
26
+ bare integer and normalize internally. A `task` command given a `FACT-<n>`
27
+ value (or a `fact` command given a `TASK-<n>` value) is rejected rather
28
+ than silently misread.
29
+
30
+ A task or fact filed with `--global` gets the `TASK-GLOBAL-<n>` /
31
+ `FACT-GLOBAL-<n>` form instead, its own id space in the shared global
32
+ database (`~/.corvee/corvee.db`) rather than the local project (see
33
+ [Specification §3.3](spec.md#33-local-and-global-scope)). Every command
34
+ that takes an id infers local vs. global from the id itself. Only `add`
35
+ needs the explicit `--global` flag, since there's no existing id to read
36
+ it from.
37
+
38
+ ## Exit codes
39
+
40
+ | Code | Meaning |
41
+ |---|---|
42
+ | 0 | Success |
43
+ | 1 | Unexpected/internal error |
44
+ | 2 | Usage or validation error |
45
+ | 3 | Task or fact not found |
46
+ | 4 | Claim conflict: the task is held by another actor |
47
+ | 5 | Guard violation: open children, a `parent_of` or `blocks` cycle, a self-link, a second parent on a task that has one, a rejected state transition, claiming an already-terminal task, `fact delete` on a non-retracted fact, `task purge` on a non-cancelled or still-linked task, linking across the local/global scope split |
48
+ | 6 | Project/config problem: no or unreadable `.corvee/config.toml`, a database file that cannot be opened or written, a `.corvee/` or database directory that cannot be created, a schema newer than this binary, or a `corvee import` of a dump whose schema_version doesn't match this binary's |
49
+
50
+ For the exact JSON shapes, filter semantics, and every edge case, see the
51
+ [Specification](spec.md). This page is a summary, not the contract.
@@ -17,8 +17,9 @@ stated scope: one machine, a handful of agents and/or humans, not a swarm.
17
17
  does not retry, unlike ordinary lock contention. Taking the lock
18
18
  immediately serializes concurrent writers on that transaction instead.
19
19
  Read-only commands (`task list`, `task show`, `task ready`, `task
20
- search`, `task mine`, `task labels`, `fact list`, `fact search`, `fact
21
- show`, `export`, `doctor`) use a plain `BEGIN`, so they never block a writer.
20
+ search`, `task mine`, `task claims`, `task tree`, `task labels`, `fact
21
+ list`, `fact search`, `fact show`, `export`, `doctor`, `brief`) use a
22
+ plain `BEGIN`, so they never block a writer.
22
23
  - **Claims are a single conditional `UPDATE`** (`claimed_by = ? WHERE
23
24
  claimed_by IS NULL`), checked by rows-affected. SQLite executes this
24
25
  atomically. That conditional update is the entire concurrency-safety
@@ -55,7 +55,12 @@ MCP client. Neither touches stdout, which stays pure JSON-RPC framing.
55
55
 
56
56
  `--actor` works like the CLI's own `--actor` flag or `$CORVEE_ACTOR` (see
57
57
  [Quickstart](quickstart.md#identify-yourself)): a stable identity for
58
- whatever is running this server, read once at startup.
58
+ whatever is running this server, read once at startup. Omit both and
59
+ every write this server makes falls back to `human:$USER`, the same
60
+ default a bare CLI call with neither falls back to. That is
61
+ indistinguishable from work a person at the keyboard did themselves, so
62
+ pass `--actor` explicitly when you register the server with your host,
63
+ below.
59
64
 
60
65
  ```bash
61
66
  corvee mcp serve --actor agent:claude
@@ -84,7 +89,7 @@ the server per conversation already, you get this for free.
84
89
  **Global-only mode** is reached either way: no project found at cwd with
85
90
  `--project-root` omitted, or explicitly by pointing the host at a
86
91
  directory with no `.corvee/config.toml` anywhere above it. It's the MCP
87
- equivalent of `corvee --global task add ...` from such a directory:
92
+ equivalent of `corvee task add --global ...` from such a directory:
88
93
 
89
94
  ```bash
90
95
  corvee mcp serve
@@ -104,7 +109,7 @@ needed, and nothing to re-register when you switch projects.
104
109
  ### Claude Code
105
110
 
106
111
  ```bash
107
- claude mcp add --transport stdio --scope user corvee -- corvee mcp serve
112
+ claude mcp add --transport stdio --scope user corvee -- corvee mcp serve --actor agent:claude
108
113
  ```
109
114
 
110
115
  `--scope user` registers it once for every project rather than just the
@@ -115,7 +120,7 @@ full set of scopes.
115
120
  ### Codex CLI
116
121
 
117
122
  ```bash
118
- codex mcp add corvee -- corvee mcp serve
123
+ codex mcp add corvee -- corvee mcp serve --actor agent:codex
119
124
  ```
120
125
 
121
126
  Or add the equivalent block directly to `~/.codex/config.toml`:
@@ -123,7 +128,7 @@ Or add the equivalent block directly to `~/.codex/config.toml`:
123
128
  ```toml
124
129
  [mcp_servers.corvee]
125
130
  command = "corvee"
126
- args = ["mcp", "serve"]
131
+ args = ["mcp", "serve", "--actor", "agent:codex"]
127
132
  ```
128
133
 
129
134
  Confirm it loaded with `codex mcp list` or `/mcp` inside a Codex session.
@@ -155,7 +160,7 @@ but the entry itself is just the command and its arguments:
155
160
  "mcpServers": {
156
161
  "corvee": {
157
162
  "command": "corvee",
158
- "args": ["mcp", "serve"],
163
+ "args": ["mcp", "serve", "--actor", "agent:claude"],
159
164
  "cwd": "/path/to/your/project"
160
165
  }
161
166
  }
@@ -170,16 +175,26 @@ instead:
170
175
  "mcpServers": {
171
176
  "corvee": {
172
177
  "command": "corvee",
173
- "args": ["mcp", "serve", "--project-root", "/path/to/your/project"]
178
+ "args": [
179
+ "mcp", "serve",
180
+ "--project-root", "/path/to/your/project",
181
+ "--actor", "agent:claude"
182
+ ]
174
183
  }
175
184
  }
176
185
  }
177
186
  ```
178
187
 
188
+ Set `--actor` to whatever is actually running your host. See
189
+ [Identify yourself](quickstart.md#identify-yourself) for the convention.
190
+
179
191
  ## What it exposes
180
192
 
181
- Sixteen tools, narrow and single-purpose rather than one wide `task_update`
182
- (see [Specification §10.4](spec.md#104-trust-and-error-handling) for why).
193
+ Twenty-seven tools, each a fixed, individually named verb with its own
194
+ closed set of named parameters, never a generic mechanism that takes a
195
+ field name and a value as arguments (see [Specification
196
+ §10.4](spec.md#104-trust-and-error-handling) for why that still gives a
197
+ host's permission system something to reason about).
183
198
  Every tool that writes something accepts an optional `session_id`
184
199
  argument — a per-conversation token, distinct from the actor set at
185
200
  startup (see [Specification §10.1](spec.md#101-process-model)) — falling
@@ -187,6 +202,11 @@ back to the server's own default (`--session-id`/`$CORVEE_SESSION_ID`, or
187
202
  a generated id) when a call leaves it out. If you do pass your own,
188
203
  keep it stable across your calls in one conversation.
189
204
 
205
+ Every task result carries `blocked_by`, the ids of the task's open `blocks`
206
+ predecessors. The CLI's `blocked*` table marker has no MCP equivalent, so a
207
+ task with a non-empty `blocked_by` and `state: "open"` is waiting on those
208
+ tasks. See [Specification §4.5](spec.md#45-state-transitions).
209
+
190
210
  | Tool | Writes? | What it does |
191
211
  |---|---|---|
192
212
  | `task_show` | no | Read one task by id |
@@ -200,26 +220,32 @@ keep it stable across your calls in one conversation.
200
220
  | `task_done` | yes | Move to `done` |
201
221
  | `task_cancel` | yes | Move to `cancelled` |
202
222
  | `task_review` | yes | Move to `review`, keeping the current claim |
223
+ | `task_reopen` | yes | Move a `cancelled`/`done` task back to `open` |
203
224
  | `task_block` | yes | Move to `blocked` — requires a comment explaining why |
204
225
  | `fact_show` | no | Read one fact by id |
205
226
  | `fact_search` | no | Search facts (default 20 results) |
206
227
  | `fact_add` | yes | Record a new fact |
207
228
  | `fact_verify` | yes | Mark a fact checked-true, with proof |
208
-
209
- `force` lives only on `task_claim`/`task_unclaim` — not on `task_start`/
210
- `task_done`/`task_cancel`/`task_review`/`task_block`, whose names should
211
- never quietly let a caller steal someone else's claim. Call
212
- `task_claim(force=true)` first if you need to take one over.
229
+ | `fact_revise` | yes | Change a fact's claim text |
230
+ | `fact_retract` | yes | Withdraw a fact, excluded from the default `fact_search` results |
231
+ | `fact_unverify` | yes | Move a verified fact back to unverified, clearing its proof |
232
+ | `task_update` | yes | Mutate one or more tasks (title, description, type, priority, state, `force`, `cascade`) |
233
+ | `task_label` | yes | Attach a label to one or more tasks |
234
+ | `task_unlabel` | yes | Remove a label from one or more tasks |
235
+ | `task_link` | yes | Relate two tasks, including parent/child hierarchy |
236
+ | `task_unlink` | yes | Remove a link between two tasks |
237
+ | `task_assign` | yes | Route one or more tasks to a specific actor |
238
+ | `task_unassign` | yes | Clear the assignment on one or more tasks |
239
+
240
+ `force` lives on `task_claim`, `task_unclaim`, and `task_update`, never
241
+ on `task_start`/`task_done`/`task_cancel`/`task_review`/`task_reopen`/
242
+ `task_block`, whose names should never quietly let a caller steal
243
+ someone else's claim. Call `task_claim(force=true)` first if you need
244
+ to take one over before using one of those.
213
245
 
214
246
  No `purge`, `delete`, `import`, or `export` on this surface — those stay
215
- CLI-only. Nor is there a `task_update`/`task_label`/`task_link`/
216
- `task_assign`, or a `fact_revise`/`fact_retract`/`fact_unverify`: once a
217
- task or fact is filed, this surface can only work it forward (claim,
218
- comment, transition it, verify a fact) or leave it as-is, never correct
219
- a mistake in its title, description, claim, or labels/links. Reach for
220
- the CLI (or a human) for that. See
221
- [Specification §10.3](spec.md#103-tool-list) for full argument shapes
222
- and the reasoning behind each tool.
247
+ CLI-only. See [Specification §10.3](spec.md#103-tool-list) for full
248
+ argument shapes and the reasoning behind each tool.
223
249
 
224
250
  ## Responses
225
251
 
@@ -240,7 +266,8 @@ instance:
240
266
  "assigned_to": null,
241
267
  "created_at": "2026-01-01T00:00:00.000Z",
242
268
  "updated_at": "2026-01-01T00:00:00.000Z",
243
- "scope": "local"
269
+ "scope": "local",
270
+ "blocked_by": []
244
271
  }
245
272
  ```
246
273
 
@@ -257,6 +284,18 @@ matches `limit` cut off (`0` when nothing was cut off):
257
284
  }
258
285
  ```
259
286
 
287
+ `task_update` returns the same `{"result": [...]}` shape, minus
288
+ `omitted`. Every entry is a task the call actually mutated, including
289
+ any `cascade`-cancelled descendants, not a capped search result.
290
+
291
+ ```json
292
+ {
293
+ "result": [
294
+ {"id": "TASK-14", "title": "Fix the flaky auth test", "...": "..."}
295
+ ]
296
+ }
297
+ ```
298
+
260
299
  ## Errors
261
300
 
262
301
  A failed call comes back as an `isError` tool result carrying the same
@@ -275,10 +314,25 @@ status normally covers:
275
314
 
276
315
  `exit_code` maps to the same [exit codes](commands.md#exit-codes) the CLI
277
316
  documents. No raw traceback is ever passed through — an unexpected error
278
- still comes back in this shape, with `exit_code: 1`.
317
+ raised inside a tool's own handler still comes back in this shape, with
318
+ `exit_code: 1`. A value of a JSON type a parameter's schema rejects
319
+ outright (a list or object where a task ref or duration is expected)
320
+ never reaches the handler at all; that argument-validation failure
321
+ surfaces as the MCP SDK's own error shape instead.
322
+
323
+ An argument a tool does not declare, such as a typo (`forc`) or a
324
+ hyphenated `session-id`, never runs the tool. It returns a usage error
325
+ (`unknown_argument`, `exit_code: 2`) naming the unknown keys and the
326
+ tool's valid argument names. `force` on `task_start`, `task_done`,
327
+ `task_cancel`, `task_review`, `task_reopen`, and `task_block` is the one
328
+ exception: it is accepted and ignored.
279
329
 
280
330
  A `claim_conflict` carries one more field, `hint`, phrased for this
281
- surface rather than the CLI's own `--force` flag:
331
+ surface rather than the CLI's own `--force` flag. Every tool but
332
+ `task_unclaim` points at `task_claim(force=true)`, which takes over the
333
+ claim so the call can proceed. `task_unclaim` points at
334
+ `task_unclaim(force=true)`, since stealing a claim would reassign it
335
+ instead of releasing it:
282
336
 
283
337
  ```json
284
338
  {