docsweep 0.8.0__tar.gz → 0.9.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 (406) hide show
  1. {docsweep-0.8.0 → docsweep-0.9.0}/.github/workflows/publish.yml +8 -1
  2. {docsweep-0.8.0 → docsweep-0.9.0}/.omitnix/index.json +119 -3
  3. {docsweep-0.8.0 → docsweep-0.9.0}/CHANGELOG.md +34 -0
  4. {docsweep-0.8.0 → docsweep-0.9.0}/PKG-INFO +4 -1
  5. {docsweep-0.8.0 → docsweep-0.9.0}/README.md +3 -0
  6. {docsweep-0.8.0 → docsweep-0.9.0}/docs/conventions.md +5 -0
  7. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/__init__.py +1 -1
  8. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/brief/score.py +6 -1
  9. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/cli/commands/provenance.py +4 -0
  10. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/cli/commands/write.py +1 -0
  11. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/cli/parser.py +4 -0
  12. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/closeout.py +59 -4
  13. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/engine.py +92 -4
  14. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/i18n/locales/en/help.json +1 -0
  15. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/i18n/locales/en/messages.json +2 -0
  16. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/i18n/locales/ja/help.json +1 -0
  17. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/i18n/locales/ja/messages.json +2 -0
  18. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/i18n/locales/ja/terms.json +1 -1
  19. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/provenance.py +69 -0
  20. {docsweep-0.8.0 → docsweep-0.9.0}/pyproject.toml +1 -1
  21. docsweep-0.9.0/scripts/release_notes.py +47 -0
  22. {docsweep-0.8.0 → docsweep-0.9.0}/tests/test_apply_cli.py +37 -0
  23. {docsweep-0.8.0 → docsweep-0.9.0}/tests/test_brief.py +20 -0
  24. docsweep-0.9.0/tests/test_closeout_diagnostics.py +107 -0
  25. {docsweep-0.8.0 → docsweep-0.9.0}/tests/test_provenance.py +98 -0
  26. docsweep-0.9.0/tests/test_release_notes_script.py +79 -0
  27. docsweep-0.9.0/tests/test_sweep_selected_paths.py +163 -0
  28. {docsweep-0.8.0 → docsweep-0.9.0}/.docsweep.yaml +0 -0
  29. {docsweep-0.8.0 → docsweep-0.9.0}/.githooks/pre-commit +0 -0
  30. {docsweep-0.8.0 → docsweep-0.9.0}/.githooks/pre-push +0 -0
  31. {docsweep-0.8.0 → docsweep-0.9.0}/.github/workflows/ci.yml +0 -0
  32. {docsweep-0.8.0 → docsweep-0.9.0}/.github/workflows/dependency-audit.yml +0 -0
  33. {docsweep-0.8.0 → docsweep-0.9.0}/.github/workflows/gitleaks.yml +0 -0
  34. {docsweep-0.8.0 → docsweep-0.9.0}/.github/workflows/openwiki-update.yml +0 -0
  35. {docsweep-0.8.0 → docsweep-0.9.0}/.github/workflows/structural.yml +0 -0
  36. {docsweep-0.8.0 → docsweep-0.9.0}/.gitignore +0 -0
  37. {docsweep-0.8.0 → docsweep-0.9.0}/.mcp.json +0 -0
  38. {docsweep-0.8.0 → docsweep-0.9.0}/AGENTS.md +0 -0
  39. {docsweep-0.8.0 → docsweep-0.9.0}/CLAUDE.md +0 -0
  40. {docsweep-0.8.0 → docsweep-0.9.0}/LICENSE +0 -0
  41. {docsweep-0.8.0 → docsweep-0.9.0}/NOTICES.md +0 -0
  42. {docsweep-0.8.0 → docsweep-0.9.0}/README.en.md +0 -0
  43. {docsweep-0.8.0 → docsweep-0.9.0}/assets/icon-a-broom.svg +0 -0
  44. {docsweep-0.8.0 → docsweep-0.9.0}/assets/icon-b-doc-check.svg +0 -0
  45. {docsweep-0.8.0 → docsweep-0.9.0}/assets/icon-c-sweep-sparkle.svg +0 -0
  46. {docsweep-0.8.0 → docsweep-0.9.0}/assets/icon.svg +0 -0
  47. {docsweep-0.8.0 → docsweep-0.9.0}/assets/icons/apple-touch-icon.png +0 -0
  48. {docsweep-0.8.0 → docsweep-0.9.0}/assets/icons/favicon-16.png +0 -0
  49. {docsweep-0.8.0 → docsweep-0.9.0}/assets/icons/favicon-32.png +0 -0
  50. {docsweep-0.8.0 → docsweep-0.9.0}/assets/icons/favicon-48.png +0 -0
  51. {docsweep-0.8.0 → docsweep-0.9.0}/assets/icons/favicon.ico +0 -0
  52. {docsweep-0.8.0 → docsweep-0.9.0}/assets/icons/favicon.svg +0 -0
  53. {docsweep-0.8.0 → docsweep-0.9.0}/assets/icons/icon-192.png +0 -0
  54. {docsweep-0.8.0 → docsweep-0.9.0}/assets/icons/icon-512.png +0 -0
  55. {docsweep-0.8.0 → docsweep-0.9.0}/assets/proposals/a-broom/apple-touch-icon.png +0 -0
  56. {docsweep-0.8.0 → docsweep-0.9.0}/assets/proposals/a-broom/favicon-16.png +0 -0
  57. {docsweep-0.8.0 → docsweep-0.9.0}/assets/proposals/a-broom/favicon-32.png +0 -0
  58. {docsweep-0.8.0 → docsweep-0.9.0}/assets/proposals/a-broom/favicon-48.png +0 -0
  59. {docsweep-0.8.0 → docsweep-0.9.0}/assets/proposals/a-broom/favicon.ico +0 -0
  60. {docsweep-0.8.0 → docsweep-0.9.0}/assets/proposals/a-broom/favicon.svg +0 -0
  61. {docsweep-0.8.0 → docsweep-0.9.0}/assets/proposals/a-broom/icon-192.png +0 -0
  62. {docsweep-0.8.0 → docsweep-0.9.0}/assets/proposals/a-broom/icon-512.png +0 -0
  63. {docsweep-0.8.0 → docsweep-0.9.0}/assets/proposals/b-doc-check/apple-touch-icon.png +0 -0
  64. {docsweep-0.8.0 → docsweep-0.9.0}/assets/proposals/b-doc-check/favicon-16.png +0 -0
  65. {docsweep-0.8.0 → docsweep-0.9.0}/assets/proposals/b-doc-check/favicon-32.png +0 -0
  66. {docsweep-0.8.0 → docsweep-0.9.0}/assets/proposals/b-doc-check/favicon-48.png +0 -0
  67. {docsweep-0.8.0 → docsweep-0.9.0}/assets/proposals/b-doc-check/favicon.ico +0 -0
  68. {docsweep-0.8.0 → docsweep-0.9.0}/assets/proposals/b-doc-check/favicon.svg +0 -0
  69. {docsweep-0.8.0 → docsweep-0.9.0}/assets/proposals/b-doc-check/icon-192.png +0 -0
  70. {docsweep-0.8.0 → docsweep-0.9.0}/assets/proposals/b-doc-check/icon-512.png +0 -0
  71. {docsweep-0.8.0 → docsweep-0.9.0}/assets/proposals/c-sweep-sparkle/apple-touch-icon.png +0 -0
  72. {docsweep-0.8.0 → docsweep-0.9.0}/assets/proposals/c-sweep-sparkle/favicon-16.png +0 -0
  73. {docsweep-0.8.0 → docsweep-0.9.0}/assets/proposals/c-sweep-sparkle/favicon-32.png +0 -0
  74. {docsweep-0.8.0 → docsweep-0.9.0}/assets/proposals/c-sweep-sparkle/favicon-48.png +0 -0
  75. {docsweep-0.8.0 → docsweep-0.9.0}/assets/proposals/c-sweep-sparkle/favicon.ico +0 -0
  76. {docsweep-0.8.0 → docsweep-0.9.0}/assets/proposals/c-sweep-sparkle/favicon.svg +0 -0
  77. {docsweep-0.8.0 → docsweep-0.9.0}/assets/proposals/c-sweep-sparkle/icon-192.png +0 -0
  78. {docsweep-0.8.0 → docsweep-0.9.0}/assets/proposals/c-sweep-sparkle/icon-512.png +0 -0
  79. {docsweep-0.8.0 → docsweep-0.9.0}/assets/screenshots/webui-archive.png +0 -0
  80. {docsweep-0.8.0 → docsweep-0.9.0}/assets/screenshots/webui-todo.png +0 -0
  81. {docsweep-0.8.0 → docsweep-0.9.0}/docs/D-skill-update-proposal.md +0 -0
  82. {docsweep-0.8.0 → docsweep-0.9.0}/docs/ai-agent-integration.md +0 -0
  83. {docsweep-0.8.0 → docsweep-0.9.0}/docs/bot/doxguard-ci-20261018/FACTS.md +0 -0
  84. {docsweep-0.8.0 → docsweep-0.9.0}/docs/bot/doxguard-ci-20261018/PROGRESS.md +0 -0
  85. {docsweep-0.8.0 → docsweep-0.9.0}/docs/bot/doxguard-ci-20261018/README.md +0 -0
  86. {docsweep-0.8.0 → docsweep-0.9.0}/docs/bot/doxguard-ci-20261018/REVIEW.md +0 -0
  87. {docsweep-0.8.0 → docsweep-0.9.0}/docs/guidance-rewrite-proposal.md +0 -0
  88. {docsweep-0.8.0 → docsweep-0.9.0}/docs/mockups/dashboard_v0.1.0.html +0 -0
  89. {docsweep-0.8.0 → docsweep-0.9.0}/docs/mockups/dashboard_v0.1.0.png +0 -0
  90. {docsweep-0.8.0 → docsweep-0.9.0}/docs/mockups/mcp_usage_v0.1.0.html +0 -0
  91. {docsweep-0.8.0 → docsweep-0.9.0}/docs/okf-export-format.md +0 -0
  92. {docsweep-0.8.0 → docsweep-0.9.0}/docs/okf-mapping.md +0 -0
  93. {docsweep-0.8.0 → docsweep-0.9.0}/docs/release-tracking-migration.md +0 -0
  94. {docsweep-0.8.0 → docsweep-0.9.0}/docs/zenn/docsweep/2026-06-22_slash-commands-p-s-d/20260622-claude-code-slash-commands.md +0 -0
  95. {docsweep-0.8.0 → docsweep-0.9.0}/docs/zenn/docsweep/2026-06-29_docsweep-okf/344/272/222/346/217/233/345/214/226/index.md" +0 -0
  96. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/__main__.py +0 -0
  97. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/activity.py +0 -0
  98. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/aggregate_index.py +0 -0
  99. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/archive.py +0 -0
  100. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/archive_guard.py +0 -0
  101. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/atomic.py +0 -0
  102. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/auto_triage.py +0 -0
  103. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/brief/__init__.py +0 -0
  104. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/brief/service.py +0 -0
  105. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/bulk_confirm.py +0 -0
  106. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/capture/__init__.py +0 -0
  107. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/capture/heuristics.py +0 -0
  108. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/capture/llm.py +0 -0
  109. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/capture/models.py +0 -0
  110. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/capture/service.py +0 -0
  111. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/claim.py +0 -0
  112. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/cli/__init__.py +0 -0
  113. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/cli/commands/__init__.py +0 -0
  114. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/cli/commands/completion.py +0 -0
  115. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/cli/commands/excluded.py +0 -0
  116. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/cli/commands/ics.py +0 -0
  117. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/cli/commands/index.py +0 -0
  118. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/cli/commands/init.py +0 -0
  119. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/cli/commands/inject.py +0 -0
  120. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/cli/commands/mcp.py +0 -0
  121. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/cli/commands/memory.py +0 -0
  122. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/cli/commands/move.py +0 -0
  123. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/cli/commands/notify.py +0 -0
  124. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/cli/commands/read.py +0 -0
  125. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/cli/commands/release.py +0 -0
  126. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/cli/commands/serve.py +0 -0
  127. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/cli/commands/workspace.py +0 -0
  128. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/cli/interactive.py +0 -0
  129. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/completion.py +0 -0
  130. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/config.py +0 -0
  131. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/context.py +0 -0
  132. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/cookbook.py +0 -0
  133. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/cross/__init__.py +0 -0
  134. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/cross/service.py +0 -0
  135. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/day.py +0 -0
  136. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/demo.py +0 -0
  137. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/detect.py +0 -0
  138. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/doc_links.py +0 -0
  139. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/doc_vocab.py +0 -0
  140. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/doctor.py +0 -0
  141. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/excluded.py +0 -0
  142. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/export.py +0 -0
  143. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/find.py +0 -0
  144. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/fix_conflict.py +0 -0
  145. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/graph/__init__.py +0 -0
  146. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/graph/service.py +0 -0
  147. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/hints.py +0 -0
  148. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/history.py +0 -0
  149. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/i18n/__init__.py +0 -0
  150. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/i18n/locales/en/argparse.json +0 -0
  151. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/i18n/locales/en/demo.json +0 -0
  152. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/i18n/locales/en/inject.json +0 -0
  153. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/i18n/locales/en/mcp.json +0 -0
  154. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/i18n/locales/en/terms.json +0 -0
  155. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/i18n/locales/en/ui.json +0 -0
  156. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/i18n/locales/ja/argparse.json +0 -0
  157. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/i18n/locales/ja/demo.json +0 -0
  158. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/i18n/locales/ja/inject.json +0 -0
  159. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/i18n/locales/ja/mcp.json +0 -0
  160. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/i18n/locales/ja/ui.json +0 -0
  161. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/ics_export.py +0 -0
  162. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/index.py +0 -0
  163. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/init_cmd.py +0 -0
  164. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/inject/__init__.py +0 -0
  165. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/inject/agent_claude.py +0 -0
  166. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/inject/agent_codex.py +0 -0
  167. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/inject/api.py +0 -0
  168. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/inject/blocks.py +0 -0
  169. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/inject/manifest.py +0 -0
  170. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/intent.py +0 -0
  171. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/interactive.py +0 -0
  172. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/linkcheck.py +0 -0
  173. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/mcp_server.py +0 -0
  174. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/memory_scan.py +0 -0
  175. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/migrate.py +0 -0
  176. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/models.py +0 -0
  177. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/move_refs.py +0 -0
  178. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/notify.py +0 -0
  179. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/okf.py +0 -0
  180. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/okf_check.py +0 -0
  181. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/okf_profiles/0.2.json +0 -0
  182. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/presets.py +0 -0
  183. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/provenance_hint.py +0 -0
  184. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/record_view.py +0 -0
  185. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/related.py +0 -0
  186. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/release.py +0 -0
  187. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/reports.py +0 -0
  188. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/resurrect/__init__.py +0 -0
  189. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/resurrect/embedding.py +0 -0
  190. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/resurrect/service.py +0 -0
  191. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/resurrect/similarity.py +0 -0
  192. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/review.py +0 -0
  193. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/scan.py +0 -0
  194. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/secrets_guard.py +0 -0
  195. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/security/__init__.py +0 -0
  196. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/security/path.py +0 -0
  197. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/server/__init__.py +0 -0
  198. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/server/app.py +0 -0
  199. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/server/config_write.py +0 -0
  200. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/server/i18n.py +0 -0
  201. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/server/routes/__init__.py +0 -0
  202. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/server/routes/board.py +0 -0
  203. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/server/routes/brief.py +0 -0
  204. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/server/routes/capture.py +0 -0
  205. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/server/routes/cards.py +0 -0
  206. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/server/routes/cross.py +0 -0
  207. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/server/routes/graph.py +0 -0
  208. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/server/routes/resurrect.py +0 -0
  209. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/server/sanitize.py +0 -0
  210. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/server/security.py +0 -0
  211. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/server/static/board.css +0 -0
  212. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/server/static/brief.js +0 -0
  213. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/server/static/capture.js +0 -0
  214. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/server/static/cytoscape.min.js +0 -0
  215. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/server/static/dnd.js +0 -0
  216. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/server/static/edit.js +0 -0
  217. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/server/static/graph.js +0 -0
  218. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/server/static/htmx.min.js +0 -0
  219. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/server/static/i18n.js +0 -0
  220. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/server/static/icons/apple-touch-icon.png +0 -0
  221. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/server/static/icons/favicon.ico +0 -0
  222. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/server/static/icons/favicon.svg +0 -0
  223. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/server/static/icons/icon-192.png +0 -0
  224. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/server/static/icons/icon-512.png +0 -0
  225. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/server/static/keymap.js +0 -0
  226. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/server/static/w4.js +0 -0
  227. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/server/templates/_board_body.html +0 -0
  228. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/server/templates/_card.html +0 -0
  229. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/server/templates/_change_picker.html +0 -0
  230. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/server/templates/_due_picker.html +0 -0
  231. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/server/templates/_edit_pane.html +0 -0
  232. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/server/templates/_label_picker.html +0 -0
  233. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/server/templates/_preview.html +0 -0
  234. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/server/templates/_settings.html +0 -0
  235. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/server/templates/board.html +0 -0
  236. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/server/templates/brief.html +0 -0
  237. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/server/templates/capture.html +0 -0
  238. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/server/templates/cross.html +0 -0
  239. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/server/templates/graph.html +0 -0
  240. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/server/templates/resurrect.html +0 -0
  241. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/services/__init__.py +0 -0
  242. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/services/archive.py +0 -0
  243. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/services/content.py +0 -0
  244. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/services/due.py +0 -0
  245. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/services/frontmatter.py +0 -0
  246. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/services/status.py +0 -0
  247. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/session_logs.py +0 -0
  248. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/similar_guard.py +0 -0
  249. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/stale.py +0 -0
  250. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/state.py +0 -0
  251. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/states.py +0 -0
  252. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/streak.py +0 -0
  253. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/templates_gen.py +0 -0
  254. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/timeline.py +0 -0
  255. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/work_queue.py +0 -0
  256. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep/workspace_migration.py +0 -0
  257. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep-ui.cmd +0 -0
  258. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep-ui.command +0 -0
  259. {docsweep-0.8.0 → docsweep-0.9.0}/docsweep-ui.sh +0 -0
  260. {docsweep-0.8.0 → docsweep-0.9.0}/doxguard.ci.json +0 -0
  261. {docsweep-0.8.0 → docsweep-0.9.0}/openwiki/.claims/architecture/overview.json +0 -0
  262. {docsweep-0.8.0 → docsweep-0.9.0}/openwiki/.claims/architecture/state-model.json +0 -0
  263. {docsweep-0.8.0 → docsweep-0.9.0}/openwiki/.claims/integrations/mcp-server.json +0 -0
  264. {docsweep-0.8.0 → docsweep-0.9.0}/openwiki/.claims/integrations/okf-compatibility.json +0 -0
  265. {docsweep-0.8.0 → docsweep-0.9.0}/openwiki/.claims/integrations/provenance.json +0 -0
  266. {docsweep-0.8.0 → docsweep-0.9.0}/openwiki/.claims/integrations/web-ui.json +0 -0
  267. {docsweep-0.8.0 → docsweep-0.9.0}/openwiki/.claims/operations/adoption-and-templates.json +0 -0
  268. {docsweep-0.8.0 → docsweep-0.9.0}/openwiki/.claims/quickstart.json +0 -0
  269. {docsweep-0.8.0 → docsweep-0.9.0}/openwiki/.claims/testing/development-workflow.json +0 -0
  270. {docsweep-0.8.0 → docsweep-0.9.0}/openwiki/.claims/workflows/cli-reference.json +0 -0
  271. {docsweep-0.8.0 → docsweep-0.9.0}/openwiki/.claims/workflows/lifecycle-management.json +0 -0
  272. {docsweep-0.8.0 → docsweep-0.9.0}/openwiki/.last-update.json +0 -0
  273. {docsweep-0.8.0 → docsweep-0.9.0}/openwiki/.page-manifest.json +0 -0
  274. {docsweep-0.8.0 → docsweep-0.9.0}/openwiki/architecture/index.md +0 -0
  275. {docsweep-0.8.0 → docsweep-0.9.0}/openwiki/architecture/overview.md +0 -0
  276. {docsweep-0.8.0 → docsweep-0.9.0}/openwiki/architecture/state-model.md +0 -0
  277. {docsweep-0.8.0 → docsweep-0.9.0}/openwiki/index.md +0 -0
  278. {docsweep-0.8.0 → docsweep-0.9.0}/openwiki/integrations/index.md +0 -0
  279. {docsweep-0.8.0 → docsweep-0.9.0}/openwiki/integrations/mcp-server.md +0 -0
  280. {docsweep-0.8.0 → docsweep-0.9.0}/openwiki/integrations/okf-compatibility.md +0 -0
  281. {docsweep-0.8.0 → docsweep-0.9.0}/openwiki/integrations/provenance.md +0 -0
  282. {docsweep-0.8.0 → docsweep-0.9.0}/openwiki/integrations/web-ui.md +0 -0
  283. {docsweep-0.8.0 → docsweep-0.9.0}/openwiki/operations/adoption-and-templates.md +0 -0
  284. {docsweep-0.8.0 → docsweep-0.9.0}/openwiki/operations/index.md +0 -0
  285. {docsweep-0.8.0 → docsweep-0.9.0}/openwiki/quickstart.md +0 -0
  286. {docsweep-0.8.0 → docsweep-0.9.0}/openwiki/testing/development-workflow.md +0 -0
  287. {docsweep-0.8.0 → docsweep-0.9.0}/openwiki/testing/index.md +0 -0
  288. {docsweep-0.8.0 → docsweep-0.9.0}/openwiki/workflows/cli-reference.md +0 -0
  289. {docsweep-0.8.0 → docsweep-0.9.0}/openwiki/workflows/index.md +0 -0
  290. {docsweep-0.8.0 → docsweep-0.9.0}/openwiki/workflows/lifecycle-management.md +0 -0
  291. {docsweep-0.8.0 → docsweep-0.9.0}/portfolio/overview-2026-09-28.jpg +0 -0
  292. {docsweep-0.8.0 → docsweep-0.9.0}/portfolio.md +0 -0
  293. {docsweep-0.8.0 → docsweep-0.9.0}/scripts/install-hooks.ps1 +0 -0
  294. {docsweep-0.8.0 → docsweep-0.9.0}/scripts/install-hooks.sh +0 -0
  295. {docsweep-0.8.0 → docsweep-0.9.0}/scripts/structural-ci.md +0 -0
  296. {docsweep-0.8.0 → docsweep-0.9.0}/scripts/structural-ci.mjs +0 -0
  297. {docsweep-0.8.0 → docsweep-0.9.0}/scripts/structural-ci.test.mjs +0 -0
  298. {docsweep-0.8.0 → docsweep-0.9.0}/scripts/structural-controls.mjs +0 -0
  299. {docsweep-0.8.0 → docsweep-0.9.0}/scripts/structural-hook.test.mjs +0 -0
  300. {docsweep-0.8.0 → docsweep-0.9.0}/templates/.docsweep.yaml +0 -0
  301. {docsweep-0.8.0 → docsweep-0.9.0}/templates/.githooks/docsweep-check.i18n.json +0 -0
  302. {docsweep-0.8.0 → docsweep-0.9.0}/templates/.githooks/docsweep-check.py +0 -0
  303. {docsweep-0.8.0 → docsweep-0.9.0}/templates/AGENTS.md +0 -0
  304. {docsweep-0.8.0 → docsweep-0.9.0}/templates/AGENT_GUIDE.md +0 -0
  305. {docsweep-0.8.0 → docsweep-0.9.0}/templates/CLAUDE.md +0 -0
  306. {docsweep-0.8.0 → docsweep-0.9.0}/templates/install-hooks.ps1 +0 -0
  307. {docsweep-0.8.0 → docsweep-0.9.0}/templates/install-hooks.sh +0 -0
  308. {docsweep-0.8.0 → docsweep-0.9.0}/tests/conftest.py +0 -0
  309. {docsweep-0.8.0 → docsweep-0.9.0}/tests/fixtures/dependency-audit/clean.txt +0 -0
  310. {docsweep-0.8.0 → docsweep-0.9.0}/tests/fixtures/dependency-audit/vulnerable.txt +0 -0
  311. {docsweep-0.8.0 → docsweep-0.9.0}/tests/test_activity.py +0 -0
  312. {docsweep-0.8.0 → docsweep-0.9.0}/tests/test_archive_linked_queue.py +0 -0
  313. {docsweep-0.8.0 → docsweep-0.9.0}/tests/test_archive_ref_forms.py +0 -0
  314. {docsweep-0.8.0 → docsweep-0.9.0}/tests/test_archive_repo_refs.py +0 -0
  315. {docsweep-0.8.0 → docsweep-0.9.0}/tests/test_archive_route_contract.py +0 -0
  316. {docsweep-0.8.0 → docsweep-0.9.0}/tests/test_atomic.py +0 -0
  317. {docsweep-0.8.0 → docsweep-0.9.0}/tests/test_audit_2026_07_21_followup.py +0 -0
  318. {docsweep-0.8.0 → docsweep-0.9.0}/tests/test_audit_c1_security_boundaries.py +0 -0
  319. {docsweep-0.8.0 → docsweep-0.9.0}/tests/test_audit_c1_security_write_boundaries.py +0 -0
  320. {docsweep-0.8.0 → docsweep-0.9.0}/tests/test_audit_c2_document_integrity.py +0 -0
  321. {docsweep-0.8.0 → docsweep-0.9.0}/tests/test_audit_c3_windows_cli_export.py +0 -0
  322. {docsweep-0.8.0 → docsweep-0.9.0}/tests/test_audit_c4_dependency_security.py +0 -0
  323. {docsweep-0.8.0 → docsweep-0.9.0}/tests/test_audit_c5_index_correctness.py +0 -0
  324. {docsweep-0.8.0 → docsweep-0.9.0}/tests/test_audit_fixes.py +0 -0
  325. {docsweep-0.8.0 → docsweep-0.9.0}/tests/test_audit_fixes_2026_07_16.py +0 -0
  326. {docsweep-0.8.0 → docsweep-0.9.0}/tests/test_audit_security_regressions.py +0 -0
  327. {docsweep-0.8.0 → docsweep-0.9.0}/tests/test_audit_server.py +0 -0
  328. {docsweep-0.8.0 → docsweep-0.9.0}/tests/test_audit_v0_4_0.py +0 -0
  329. {docsweep-0.8.0 → docsweep-0.9.0}/tests/test_c2_commands.py +0 -0
  330. {docsweep-0.8.0 → docsweep-0.9.0}/tests/test_c5_features.py +0 -0
  331. {docsweep-0.8.0 → docsweep-0.9.0}/tests/test_capture.py +0 -0
  332. {docsweep-0.8.0 → docsweep-0.9.0}/tests/test_cli_interactive.py +0 -0
  333. {docsweep-0.8.0 → docsweep-0.9.0}/tests/test_cli_smoke.py +0 -0
  334. {docsweep-0.8.0 → docsweep-0.9.0}/tests/test_closeout.py +0 -0
  335. {docsweep-0.8.0 → docsweep-0.9.0}/tests/test_closeout_hyphen_children.py +0 -0
  336. {docsweep-0.8.0 → docsweep-0.9.0}/tests/test_config.py +0 -0
  337. {docsweep-0.8.0 → docsweep-0.9.0}/tests/test_config_due.py +0 -0
  338. {docsweep-0.8.0 → docsweep-0.9.0}/tests/test_cross.py +0 -0
  339. {docsweep-0.8.0 → docsweep-0.9.0}/tests/test_db_index.py +0 -0
  340. {docsweep-0.8.0 → docsweep-0.9.0}/tests/test_detect.py +0 -0
  341. {docsweep-0.8.0 → docsweep-0.9.0}/tests/test_docs_mcp_surface.py +0 -0
  342. {docsweep-0.8.0 → docsweep-0.9.0}/tests/test_doctor.py +0 -0
  343. {docsweep-0.8.0 → docsweep-0.9.0}/tests/test_engine.py +0 -0
  344. {docsweep-0.8.0 → docsweep-0.9.0}/tests/test_export.py +0 -0
  345. {docsweep-0.8.0 → docsweep-0.9.0}/tests/test_extras.py +0 -0
  346. {docsweep-0.8.0 → docsweep-0.9.0}/tests/test_fix_conflict.py +0 -0
  347. {docsweep-0.8.0 → docsweep-0.9.0}/tests/test_fix_conflict_prefer_h1.py +0 -0
  348. {docsweep-0.8.0 → docsweep-0.9.0}/tests/test_githooks.py +0 -0
  349. {docsweep-0.8.0 → docsweep-0.9.0}/tests/test_i18n.py +0 -0
  350. {docsweep-0.8.0 → docsweep-0.9.0}/tests/test_i18n_cli.py +0 -0
  351. {docsweep-0.8.0 → docsweep-0.9.0}/tests/test_i18n_coverage.py +0 -0
  352. {docsweep-0.8.0 → docsweep-0.9.0}/tests/test_i18n_docs.py +0 -0
  353. {docsweep-0.8.0 → docsweep-0.9.0}/tests/test_i18n_engine.py +0 -0
  354. {docsweep-0.8.0 → docsweep-0.9.0}/tests/test_i18n_help.py +0 -0
  355. {docsweep-0.8.0 → docsweep-0.9.0}/tests/test_i18n_interactive.py +0 -0
  356. {docsweep-0.8.0 → docsweep-0.9.0}/tests/test_i18n_labels.py +0 -0
  357. {docsweep-0.8.0 → docsweep-0.9.0}/tests/test_i18n_mcp.py +0 -0
  358. {docsweep-0.8.0 → docsweep-0.9.0}/tests/test_i18n_tools.py +0 -0
  359. {docsweep-0.8.0 → docsweep-0.9.0}/tests/test_i18n_web.py +0 -0
  360. {docsweep-0.8.0 → docsweep-0.9.0}/tests/test_index_prune.py +0 -0
  361. {docsweep-0.8.0 → docsweep-0.9.0}/tests/test_index_stats.py +0 -0
  362. {docsweep-0.8.0 → docsweep-0.9.0}/tests/test_index_vacuum.py +0 -0
  363. {docsweep-0.8.0 → docsweep-0.9.0}/tests/test_index_wal.py +0 -0
  364. {docsweep-0.8.0 → docsweep-0.9.0}/tests/test_init_and_undo_cli.py +0 -0
  365. {docsweep-0.8.0 → docsweep-0.9.0}/tests/test_interactive.py +0 -0
  366. {docsweep-0.8.0 → docsweep-0.9.0}/tests/test_invariants.py +0 -0
  367. {docsweep-0.8.0 → docsweep-0.9.0}/tests/test_linkcheck.py +0 -0
  368. {docsweep-0.8.0 → docsweep-0.9.0}/tests/test_mcp_tools.py +0 -0
  369. {docsweep-0.8.0 → docsweep-0.9.0}/tests/test_mcp_write_tools.py +0 -0
  370. {docsweep-0.8.0 → docsweep-0.9.0}/tests/test_move_cli.py +0 -0
  371. {docsweep-0.8.0 → docsweep-0.9.0}/tests/test_move_links.py +0 -0
  372. {docsweep-0.8.0 → docsweep-0.9.0}/tests/test_move_refs.py +0 -0
  373. {docsweep-0.8.0 → docsweep-0.9.0}/tests/test_new_cli_project_dir_autodetect.py +0 -0
  374. {docsweep-0.8.0 → docsweep-0.9.0}/tests/test_offline_assets.py +0 -0
  375. {docsweep-0.8.0 → docsweep-0.9.0}/tests/test_okf_profile.py +0 -0
  376. {docsweep-0.8.0 → docsweep-0.9.0}/tests/test_owner_default.py +0 -0
  377. {docsweep-0.8.0 → docsweep-0.9.0}/tests/test_parser.py +0 -0
  378. {docsweep-0.8.0 → docsweep-0.9.0}/tests/test_provenance_move.py +0 -0
  379. {docsweep-0.8.0 → docsweep-0.9.0}/tests/test_release_tracking.py +0 -0
  380. {docsweep-0.8.0 → docsweep-0.9.0}/tests/test_resurrect.py +0 -0
  381. {docsweep-0.8.0 → docsweep-0.9.0}/tests/test_review.py +0 -0
  382. {docsweep-0.8.0 → docsweep-0.9.0}/tests/test_root_is_queue_refuse.py +0 -0
  383. {docsweep-0.8.0 → docsweep-0.9.0}/tests/test_server.py +0 -0
  384. {docsweep-0.8.0 → docsweep-0.9.0}/tests/test_server_board.py +0 -0
  385. {docsweep-0.8.0 → docsweep-0.9.0}/tests/test_server_bulk.py +0 -0
  386. {docsweep-0.8.0 → docsweep-0.9.0}/tests/test_server_okf.py +0 -0
  387. {docsweep-0.8.0 → docsweep-0.9.0}/tests/test_server_routes_extras.py +0 -0
  388. {docsweep-0.8.0 → docsweep-0.9.0}/tests/test_server_ux_w4.py +0 -0
  389. {docsweep-0.8.0 → docsweep-0.9.0}/tests/test_services_archive.py +0 -0
  390. {docsweep-0.8.0 → docsweep-0.9.0}/tests/test_services_content.py +0 -0
  391. {docsweep-0.8.0 → docsweep-0.9.0}/tests/test_services_due.py +0 -0
  392. {docsweep-0.8.0 → docsweep-0.9.0}/tests/test_services_frontmatter.py +0 -0
  393. {docsweep-0.8.0 → docsweep-0.9.0}/tests/test_services_status.py +0 -0
  394. {docsweep-0.8.0 → docsweep-0.9.0}/tests/test_session_logs.py +0 -0
  395. {docsweep-0.8.0 → docsweep-0.9.0}/tests/test_state.py +0 -0
  396. {docsweep-0.8.0 → docsweep-0.9.0}/tests/test_templates_gen.py +0 -0
  397. {docsweep-0.8.0 → docsweep-0.9.0}/tests/test_triage_schema.py +0 -0
  398. {docsweep-0.8.0 → docsweep-0.9.0}/tests/test_undo.py +0 -0
  399. {docsweep-0.8.0 → docsweep-0.9.0}/tests/test_undo_batches.py +0 -0
  400. {docsweep-0.8.0 → docsweep-0.9.0}/tests/test_ux_final.py +0 -0
  401. {docsweep-0.8.0 → docsweep-0.9.0}/tests/test_ux_remaining.py +0 -0
  402. {docsweep-0.8.0 → docsweep-0.9.0}/tests/test_ux_w2.py +0 -0
  403. {docsweep-0.8.0 → docsweep-0.9.0}/tests/test_ux_w4.py +0 -0
  404. {docsweep-0.8.0 → docsweep-0.9.0}/tests/test_ux_w4_ui.py +0 -0
  405. {docsweep-0.8.0 → docsweep-0.9.0}/tests/test_work_dir_alias.py +0 -0
  406. {docsweep-0.8.0 → docsweep-0.9.0}/tests/test_work_queue_agent_flow.py +0 -0
@@ -75,11 +75,18 @@ jobs:
75
75
  name: dist
76
76
  path: dist/
77
77
 
78
- - name: Create GitHub Release with auto-generated notes
78
+ # 本文は CHANGELOG.md のその版の節。PR を通さず push した版でも中身が入る
79
+ # (--generate-notes は PR の一覧だけで、PR が無いと比較リンクしか残らない)。
80
+ # PR の一覧と比較リンクは、その後ろに自動で足される。
81
+ - name: Extract release notes from CHANGELOG.md
82
+ run: python3 scripts/release_notes.py "${GITHUB_REF_NAME}" > release-notes.md
83
+
84
+ - name: Create GitHub Release with CHANGELOG notes
79
85
  env:
80
86
  GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
81
87
  run: |
82
88
  gh release create "${GITHUB_REF_NAME}" \
83
89
  dist/*.whl dist/*.tar.gz \
84
90
  --title "${GITHUB_REF_NAME}" \
91
+ --notes-file release-notes.md \
85
92
  --generate-notes
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "schema_version": 1,
3
3
  "generated": {
4
- "commit": "45395290874ee2ef351c60a00927578913a9fe70",
4
+ "commit": "aaee62561aa3a4306a8329ae76d66710a3e61b56",
5
5
  "dirty": true,
6
6
  "tool": "omitnix 0.1.4",
7
7
  "partial": false,
@@ -138,8 +138,8 @@
138
138
  "discovery_note": ""
139
139
  },
140
140
  "coverage": {
141
- "discovered": 400,
142
- "analyzed": 255,
141
+ "discovered": 404,
142
+ "analyzed": 259,
143
143
  "unresolved": 6,
144
144
  "unknown": 3,
145
145
  "unclaimed": 136,
@@ -5730,6 +5730,35 @@
5730
5730
  },
5731
5731
  "unresolved": []
5732
5732
  },
5733
+ {
5734
+ "path": "scripts/release_notes.py",
5735
+ "adapter": "python",
5736
+ "status": "analyzed",
5737
+ "fields": {
5738
+ "summary": {
5739
+ "state": "value",
5740
+ "value": "CHANGELOG.md から、指定した版の節を GitHub Release の本文として取り出す。"
5741
+ },
5742
+ "authentication": {
5743
+ "state": "not_configured"
5744
+ },
5745
+ "authorization": {
5746
+ "state": "not_configured"
5747
+ },
5748
+ "reads": {
5749
+ "state": "none_observed",
5750
+ "value": []
5751
+ },
5752
+ "writes": {
5753
+ "state": "none_observed",
5754
+ "value": []
5755
+ },
5756
+ "screen_to_api": {
5757
+ "state": "out_of_scope"
5758
+ }
5759
+ },
5760
+ "unresolved": []
5761
+ },
5733
5762
  {
5734
5763
  "path": "scripts/structural-ci.md",
5735
5764
  "adapter": null,
@@ -6789,6 +6818,35 @@
6789
6818
  },
6790
6819
  "unresolved": []
6791
6820
  },
6821
+ {
6822
+ "path": "tests/test_closeout_diagnostics.py",
6823
+ "adapter": "python",
6824
+ "status": "analyzed",
6825
+ "fields": {
6826
+ "summary": {
6827
+ "state": "value",
6828
+ "value": "Normal diagnostics, expected negative controls, and real failures stay distinct."
6829
+ },
6830
+ "authentication": {
6831
+ "state": "not_configured"
6832
+ },
6833
+ "authorization": {
6834
+ "state": "not_configured"
6835
+ },
6836
+ "reads": {
6837
+ "state": "none_observed",
6838
+ "value": []
6839
+ },
6840
+ "writes": {
6841
+ "state": "none_observed",
6842
+ "value": []
6843
+ },
6844
+ "screen_to_api": {
6845
+ "state": "out_of_scope"
6846
+ }
6847
+ },
6848
+ "unresolved": []
6849
+ },
6792
6850
  {
6793
6851
  "path": "tests/test_closeout_hyphen_children.py",
6794
6852
  "adapter": "python",
@@ -8107,6 +8165,35 @@
8107
8165
  },
8108
8166
  "unresolved": []
8109
8167
  },
8168
+ {
8169
+ "path": "tests/test_release_notes_script.py",
8170
+ "adapter": "python",
8171
+ "status": "analyzed",
8172
+ "fields": {
8173
+ "summary": {
8174
+ "state": "value",
8175
+ "value": "scripts/release_notes.py(publish.yml が GitHub Release の本文を CHANGELOG から取り出す)。"
8176
+ },
8177
+ "authentication": {
8178
+ "state": "not_configured"
8179
+ },
8180
+ "authorization": {
8181
+ "state": "not_configured"
8182
+ },
8183
+ "reads": {
8184
+ "state": "none_observed",
8185
+ "value": []
8186
+ },
8187
+ "writes": {
8188
+ "state": "none_observed",
8189
+ "value": []
8190
+ },
8191
+ "screen_to_api": {
8192
+ "state": "out_of_scope"
8193
+ }
8194
+ },
8195
+ "unresolved": []
8196
+ },
8110
8197
  {
8111
8198
  "path": "tests/test_release_tracking.py",
8112
8199
  "adapter": "python",
@@ -8600,6 +8687,35 @@
8600
8687
  },
8601
8688
  "unresolved": []
8602
8689
  },
8690
+ {
8691
+ "path": "tests/test_sweep_selected_paths.py",
8692
+ "adapter": "python",
8693
+ "status": "analyzed",
8694
+ "fields": {
8695
+ "summary": {
8696
+ "state": "value",
8697
+ "value": "Explicit sweep selection preserves the complete repo/family reference guards."
8698
+ },
8699
+ "authentication": {
8700
+ "state": "not_configured"
8701
+ },
8702
+ "authorization": {
8703
+ "state": "not_configured"
8704
+ },
8705
+ "reads": {
8706
+ "state": "none_observed",
8707
+ "value": []
8708
+ },
8709
+ "writes": {
8710
+ "state": "none_observed",
8711
+ "value": []
8712
+ },
8713
+ "screen_to_api": {
8714
+ "state": "out_of_scope"
8715
+ }
8716
+ },
8717
+ "unresolved": []
8718
+ },
8603
8719
  {
8604
8720
  "path": "tests/test_templates_gen.py",
8605
8721
  "adapter": "python",
@@ -3,6 +3,40 @@
3
3
  本ファイルは [Keep a Changelog](https://keepachangelog.com/ja/1.1.0/) の考え方を緩く参照しています。
4
4
  バージョニングは [SemVer](https://semver.org/lang/ja/) に従います。
5
5
 
6
+ ## [Unreleased]
7
+
8
+ ## [0.9.0] - 2026-11-15
9
+
10
+ ### Added
11
+
12
+ - `sweep --path <文書>`(複数指定可)で、移送の候補を明示した文書だけに絞れるようにした。これまでは
13
+ `--root` / `--project` で範囲を絞るしかなく、選んだ文書以外が一緒に移る余地があった。親子・参照・
14
+ 未コミット変更の保護は、絞り込んでも外れない。作業 queue の別名(junction / symlink)経由の指定は
15
+ 正規の経路として受け付け、任意のファイルの symlink や、同じ文書の二重指定は拒否する。
16
+ - `provenance start` が、対象の C の「変更予定ファイル」にすでに未コミットの変更があるとき、
17
+ 実装の後に開始を記録している可能性を知らせる警告(`started_after_implementation`)を返すようにした。
18
+ 止めはしない。文字出力では標準エラー、`--json` では `warnings` に出る。コミット済みの変更は検出しない。
19
+
20
+ ### Changed
21
+
22
+ - GitHub Release の本文を、`CHANGELOG.md` のその版の節から作るようにした(`scripts/release_notes.py`。
23
+ PR の一覧と比較リンクはその後ろに続く)。これまでは PR の一覧だけから作っていたため、PR を通さずに出した
24
+ v0.8.0 の本文は比較リンクの 1 行だけで、v0.7.0 にも CHANGELOG の内容が入っていなかった。
25
+
26
+ ### Fixed
27
+
28
+ - `apply` の `--dry-run` が、文書の種別に許されない状態への変更を、本実行と同じ確かめをせずに通していた
29
+ (例: pending の文書への `relabel --to done`、[廃止] の pending への `resume`)。本実行は終了コード 2 で
30
+ 拒否するのに、dry-run は `"status": "done"` を返して 0 で終わっていた。dry-run でも本実行と同じ確かめを通し、
31
+ 同じメッセージと終了コード 2 で止める。一括の `promote` の dry-run は、2026-09-11 に同じ形で直していた。
32
+ - `closeout-check` が、検証節の PHP の `php -l file.php → No syntax errors detected in file.php` を、
33
+ 「errors」という語だけで失敗と読んでいた。コマンドと正常診断が 1 行で揃い、検証節にあるときだけ成功として
34
+ 扱う。診断の引用や期待した負例の説明は成功にも失敗にもせず、人の確認(`claimed`)に残す。同じ行に別の失敗や
35
+ 非ゼロ終了があれば、正常診断で隠さず失敗のまま出す。
36
+ - `brief` の「今日の 1 個」のスコアで、`related` の本数の加点に上限が無かった。`related` を多く書いた古い文書が、
37
+ 期日や状態より強く効いて選ばれ続けていた(実例: 17 本で 136 点となり、合計 235.5 点の 58% を占めた)。
38
+ 加点に数える本数を 3 本まで(最大 24 点)にした(`DEP_CHAIN_CAP`)。
39
+
6
40
  ## [0.8.0] - 2026-10-28
7
41
 
8
42
  ### Added
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: docsweep
3
- Version: 0.8.0
3
+ Version: 0.9.0
4
4
  Summary: Sweep, triage and archive AI coding agents' plan/bugfix/pending Markdown across projects.
5
5
  Project-URL: Homepage, https://github.com/ishizakahiroshi/docsweep
6
6
  Project-URL: Repository, https://github.com/ishizakahiroshi/docsweep
@@ -321,6 +321,9 @@ python -m docsweep scan --all --json # 全件を機械可読 JSON で
321
321
  python -m docsweep sweep --dry-run
322
322
  python -m docsweep sweep
323
323
 
324
+ # 明示した文書だけを候補にする(複数指定可)。親子・参照・dirty の保護範囲は絞らない
325
+ python -m docsweep sweep --path docs/local/plan_x.md --path docs/local/plan_y.md --dry-run
326
+
324
327
  # 作業 queue の中で文書を移す。その文書を指す docsweep_parent・パス形式の related・本文の相対リンク・
325
328
  # 本文中の repo 相対パス(完全一致)も書き換える(--no-body で本文は触らない)。archive への移送も相対リンクを直す
326
329
  python -m docsweep mv docs/local/plan_x.md --to docs/local/app-a --dry-run
@@ -256,6 +256,9 @@ python -m docsweep scan --all --json # 全件を機械可読 JSON で
256
256
  python -m docsweep sweep --dry-run
257
257
  python -m docsweep sweep
258
258
 
259
+ # 明示した文書だけを候補にする(複数指定可)。親子・参照・dirty の保護範囲は絞らない
260
+ python -m docsweep sweep --path docs/local/plan_x.md --path docs/local/plan_y.md --dry-run
261
+
259
262
  # 作業 queue の中で文書を移す。その文書を指す docsweep_parent・パス形式の related・本文の相対リンク・
260
263
  # 本文中の repo 相対パス(完全一致)も書き換える(--no-body で本文は触らない)。archive への移送も相対リンクを直す
261
264
  python -m docsweep mv docs/local/plan_x.md --to docs/local/app-a --dry-run
@@ -424,6 +424,11 @@ AI は生成後、追加された節の TODO を埋めてから実装へ進み
424
424
  受入条件には「何をもって受け入れたか」を書き、
425
425
  実施できなかった確認があるときは受入証跡の範囲をそこで明示します。
426
426
 
427
+ 検証結果の分類では、`php -l file.php → No syntax errors detected in file.php` のように
428
+ 検証節にコマンドと正常診断が行全体で揃った場合だけ、その結果を成功として扱います。
429
+ 診断の引用や期待した負例の説明は人による確認を残し、正の失敗件数・非ゼロ終了・
430
+ 別の失敗や未実施の記述を正常診断で覆い隠しません。分類結果は製品受入や状態変更の承認を代替しません。
431
+
427
432
  なぜ宣言制かというと、判断を実装時へ先送りした plan は低コストモデルへ渡すと破綻する一方、
428
433
  1 ファイル修正の plan まで 8 項目を強いると書く気が失せるためです。
429
434
  新規作成は `python -m docsweep new plan <topic> --delegate` で節ごと生成できます。
@@ -1,3 +1,3 @@
1
1
  """docsweep — AI 作業ドキュメント(plan/bugfix/pending)の横断スキャン・判定・archive 移送ツール。"""
2
2
 
3
- __version__ = "0.8.0"
3
+ __version__ = "0.9.0"
@@ -25,6 +25,11 @@ W_REVIEW_STATUS = 5.0 # review_status 別の追加点(review > draft > pu
25
25
  W_TOUCHED_DECAY = 0.3 # 直近触ったものを下げる(同じファイルに張り付かない誘導)
26
26
  W_DEP_CHAIN = 8.0 # related の本数(プロジェクト中枢ファイルを浮かせる)
27
27
 
28
+ # related の加点に数える本数の上限。上限が無いと、related を多く書いた古い文書が
29
+ # 期日・状態より強く効き、今日の 1 個を独占する(実例: related 17 本で 136 点となり、
30
+ # 合計 235.5 点の 58% を占めた)。3 本 = 最大 24 点で、中枢の文書を浮かせる意図は残す。
31
+ DEP_CHAIN_CAP = 3
32
+
28
33
  # stale 寄与の上限日数(無制限だと古い凍結ファイルが top_pick を独占してしまう)。
29
34
  # 30 日 = 最大 45 点。urgency boost (= NEEDS_DECISION 40 点) と同等のオーダーになる。
30
35
  STALE_DAY_CAP = 30
@@ -113,7 +118,7 @@ def score_record(rec: FileRecord, *, today: date | None = None) -> ScoreBreakdow
113
118
  review_status = _REVIEW_STATUS_WEIGHT.get(rec.review_status or "", 0.0) * W_REVIEW_STATUS
114
119
  # 触ったばかりのファイルは下げる(同じものに張り付かない誘導)
115
120
  touched_decay = max(0.0, 14.0 - float(rec.age_days or 0)) * W_TOUCHED_DECAY
116
- dep_chain = float(len(rec.related or [])) * W_DEP_CHAIN
121
+ dep_chain = float(min(len(rec.related or []), DEP_CHAIN_CAP)) * W_DEP_CHAIN
117
122
 
118
123
  total = state_base + urgency + stale + review_status - touched_decay + dep_chain
119
124
  return ScoreBreakdown(
@@ -91,6 +91,10 @@ def _emit(result: dict, *, as_json: bool) -> int:
91
91
  execution = result.get("execution_id")
92
92
  suffix = f" execution={execution}" if execution else ""
93
93
  print(f"provenance {result.get('status')}:{suffix}")
94
+ for item in result.get("warnings", []):
95
+ # start の警告は {"code", "message", ...} の辞書。check の警告(文字列)とは別。
96
+ text = item.get("message", "") if isinstance(item, dict) else str(item)
97
+ print(t("cli_provenance.check_warning", message=text), file=sys.stderr)
94
98
  return 0 if result.get("valid", True) else 1
95
99
 
96
100
 
@@ -401,6 +401,7 @@ def cmd_sweep(args: argparse.Namespace) -> int:
401
401
  moved = auto_sweep(
402
402
  cfg, project=project, dry_run=args.dry_run,
403
403
  ref_scope=getattr(args, "ref_scope", None),
404
+ paths=getattr(args, "target_paths", None),
404
405
  )
405
406
  if not args.dry_run and cfg.roots:
406
407
  from ...aggregate_index import write_index
@@ -124,6 +124,10 @@ def build_parser() -> argparse.ArgumentParser:
124
124
  p_sweep = sub.add_parser("sweep", help=t("help.sweep._command"))
125
125
  _add_scope_args(p_sweep)
126
126
  p_sweep.add_argument("--project", help=t("help.sweep.project"))
127
+ p_sweep.add_argument(
128
+ "--path", action="append", dest="target_paths", metavar="PATH",
129
+ help=t("help.sweep.path"),
130
+ )
127
131
  p_sweep.add_argument("--dry-run", action="store_true", help=t("help.sweep.dry_run"))
128
132
  p_sweep.add_argument("--json", action="store_true")
129
133
  _add_ref_scope_arg(p_sweep)
@@ -69,6 +69,23 @@ _TODO_RE = re.compile(_words("closeout.words.todo", r"<\s*TODO[^>]*>"), re.IGNOR
69
69
  # 英語は前後をハイフン・語構成文字で挟まれた出現を除く(断片の側に書いてある)。
70
70
  _FAILURE = _words("closeout.words.failure")
71
71
  _FAILED_RE = re.compile(_FAILURE, re.IGNORECASE)
72
+ # PHP's successful lint output contains the failure word "errors". Match the
73
+ # diagnostic only, so another failure on the same line remains visible.
74
+ _NO_SYNTAX_ERRORS_RE = re.compile(
75
+ r"(?<![\w-])No syntax errors(?: detected)?(?![\w-])", re.IGNORECASE,
76
+ )
77
+ _PHP_LINT_RE = re.compile(r"\bphp\s+-l(?=\s|`|$)", re.IGNORECASE)
78
+ _PHP_LINT_RESULT_RE = re.compile(
79
+ r"^\s*(?:[-*+]\s*)?(?:\[[ xX]\]\s*)?`?php\s+-l\s+"
80
+ r"(?:\"[^\"\r\n]+\"|'[^'\r\n]+'|[^\s`;]+?)`?\s*(?:→|->|:)\s*"
81
+ r"`?No syntax errors(?: detected(?: in [^\s`;]+)?)?`?\s*$",
82
+ re.IGNORECASE,
83
+ )
84
+ _LINT_COMMAND_FAILURE_RE = re.compile(
85
+ r"\b(?:exit(?:\s+(?:status|code))?|return\s+code)\s*[:=]?\s*[1-9]\d*\b"
86
+ r"|\bCould not open input file\b",
87
+ re.IGNORECASE,
88
+ )
72
89
  # 失敗語に件数が結び付いた形。``0 failed`` / ``failed: 0`` / ``失敗 3 件`` を数値ごと拾う。
73
90
  # ここで 0 と正の数を分けるのが分類の要で、``failed`` の出現有無だけでは決めない。
74
91
  # 件数と失敗語の間・後ろに置ける語(``件`` ``の`` ``数``)は言語ごとの断片。
@@ -526,10 +543,14 @@ def _classify_verification(section: str, line: str) -> str:
526
543
  2. 正の失敗件数(``1 failed`` / ``errors: 2``)
527
544
  3. 件数ゼロの失敗 summary(``0 failed`` / ``エラーなし``)— 検証 section の
528
545
  機械結果としてだけ ``passed`` へ昇格する
529
- 4. 件数の無い失敗語(``failed`` / ``エラー`` 単独)
546
+ 4. 件数の無い失敗語 — 失敗の主張か自動検査の結果なら ``failed``、
547
+ 診断・仕様の散文は ``claimed`` とし、人の確認を残す
530
548
  5. 明示的な成功
531
549
  6. それ以外は ``claimed``
532
550
 
551
+ PHP の ``No syntax errors`` は失敗語から除く。ただし同じ行の別の失敗は
552
+ 先に検出する。検証節に lint コマンドもある場合だけ ``passed`` にする。
553
+
533
554
  ``未検出`` / ``空集合`` / ``0件`` / ``vulnerability 0`` のような曖昧な散文は
534
555
  どれにも当たらず ``claimed`` に落ちる。自動 pass へ昇格させない境界は動かさない。
535
556
  """
@@ -540,15 +561,39 @@ def _classify_verification(section: str, line: str) -> str:
540
561
  if any(c > 0 for c in counts):
541
562
  return "failed"
542
563
 
564
+ if _NO_SYNTAX_ERRORS_RE.search(line):
565
+ remaining = _NO_SYNTAX_ERRORS_RE.sub("", line)
566
+ if _LINT_COMMAND_FAILURE_RE.search(remaining):
567
+ return "failed"
568
+ if not _FAILED_RE.search(remaining) and not _is_asserted_failure(remaining):
569
+ # A bare quotation is not machine proof; require the lint command
570
+ # and the verification section to identify this successful result.
571
+ if _section_kind(section) == "verification" and _PHP_LINT_RESULT_RE.fullmatch(line):
572
+ return "passed"
573
+ return "claimed"
574
+
543
575
  zero_failure = bool(counts) or bool(_ZERO_FAILURE_RE.search(line))
544
576
  if zero_failure:
577
+ # A successful tool's zero count must not hide a different tool's
578
+ # failure on the same line (e.g. "pytest 0 failed; mypy failure").
579
+ remaining = _ZERO_FAILURE_RE.sub("", _FAILURE_COUNT_RE.sub("", line))
580
+ if _LINT_COMMAND_FAILURE_RE.search(remaining):
581
+ return "failed"
582
+ if _FAILED_RE.search(remaining):
583
+ if _is_asserted_failure(remaining) or _AUTO_RE.search(remaining):
584
+ return "failed"
585
+ return "claimed"
545
586
  # ゼロ失敗 summary は「機械が出した検証結果」のときだけ成功と見なす。
546
587
  if _section_kind(section) == "verification" and _AUTO_RE.search(line):
547
588
  return "passed"
548
589
  return "claimed" if not _SUCCESS_RE.search(line) else "passed"
549
590
 
550
591
  if _FAILED_RE.search(line):
551
- return "failed"
592
+ # Diagnostics and expected negative controls are not assertions that
593
+ # the verification failed. Keep them for human review, never auto-pass.
594
+ if _is_asserted_failure(line) or _AUTO_RE.search(line):
595
+ return "failed"
596
+ return "claimed"
552
597
  if _SUCCESS_RE.search(line):
553
598
  return "passed"
554
599
  return "claimed"
@@ -558,7 +603,7 @@ def _verification_entry(path: Path, section: str, line: str) -> dict[str, str]:
558
603
  status = _classify_verification(section, line)
559
604
  if _MANUAL_RE.search(line):
560
605
  kind = "manual"
561
- elif _AUTO_RE.search(line):
606
+ elif _AUTO_RE.search(line) or _PHP_LINT_RE.search(line):
562
607
  kind = "automatic"
563
608
  else:
564
609
  kind = "unspecified"
@@ -706,7 +751,17 @@ def _inspect_document(
706
751
  if kind == "verification":
707
752
  entry = _verification_entry(doc.path, title, line)
708
753
  evidence.append(entry)
709
- if entry["status"] == "failed" and not _is_asserted_failure(line):
754
+ if (
755
+ entry["status"] in {"failed", "claimed"}
756
+ and (
757
+ _FAILED_RE.search(_NO_SYNTAX_ERRORS_RE.sub("", line))
758
+ or (
759
+ entry["status"] == "claimed"
760
+ and _NO_SYNTAX_ERRORS_RE.search(line)
761
+ )
762
+ )
763
+ and not _is_asserted_failure(line)
764
+ ):
710
765
  # 失敗語を含むだけで、失敗したとは言っていない文
711
766
  # (仕様説明の名詞としての「エラー」等)。人の確認へ落とす。
712
767
  manual.append(_manual_check(
@@ -34,7 +34,7 @@ from .release import (
34
34
  release_archive_root,
35
35
  release_tag_exists,
36
36
  )
37
- from .scan import ScannedDoc, _build_doc, detect_project_root, scan
37
+ from .scan import ScannedDoc, _build_doc, detect_project_root, scan, work_dir_aliases
38
38
  from .services.status import (
39
39
  UpdateStatusResult,
40
40
  log_state_rewrite,
@@ -427,9 +427,37 @@ def _project_dir_for(doc: ScannedDoc, config: Config) -> tuple[Path, Path]:
427
427
  return (project_dir, project_dir)
428
428
 
429
429
 
430
+ def _configured_sweep_spelling(requested: Path, doc: ScannedDoc, config: Config) -> bool:
431
+ """Accept only exact lexical variants of the resolved document in owned roots/queues."""
432
+ physical = Path(doc.record.path).resolve()
433
+ owner = Path(doc.record.project_root).resolve()
434
+ owners = {owner}
435
+ variants: set[str] = set()
436
+ for root in config.roots:
437
+ root = Path(root)
438
+ resolved_root = root.resolve()
439
+ if physical.is_relative_to(resolved_root):
440
+ variants.add(os.path.normcase(os.path.abspath(root / physical.relative_to(resolved_root))))
441
+ if owner.is_relative_to(resolved_root):
442
+ owners.add(root / owner.relative_to(resolved_root))
443
+ owners.update(
444
+ project_root for project_root in work_dir_aliases(root, config).values()
445
+ if project_root.resolve() == owner
446
+ )
447
+ for project_root in owners:
448
+ queue = resolve_work_dir(project_root, project_work_settings(project_root, config)[0])
449
+ real_queue = queue.resolve()
450
+ if physical.is_relative_to(real_queue):
451
+ # Construct from the physical suffix, never accept arbitrary links merely
452
+ # because their lexical names are somewhere below the queue prefix.
453
+ variants.add(os.path.normcase(os.path.abspath(queue / physical.relative_to(real_queue))))
454
+ return os.path.normcase(os.path.abspath(requested)) in variants
455
+
456
+
430
457
  def auto_sweep(
431
458
  config: Config, *, project: str | None = None, dry_run: bool = False,
432
459
  ref_scope: str | None = None,
460
+ paths: list[str | Path] | None = None,
433
461
  ) -> MoveBatchResult:
434
462
  """--auto: auto_move 対象を各プロジェクトの archive/ へ移送。watching は触らない。
435
463
 
@@ -439,6 +467,8 @@ def auto_sweep(
439
467
 
440
468
  ``ref_scope`` は参照を直す範囲(``queue`` / ``repo``。省くと ``archive_refs.scope``)。
441
469
  ``repo`` の project では、移す前に止める仕組みを通し、移した後に検証する。
470
+ ``paths`` があれば候補だけを絞る。走査・参照探索・親子判定の範囲は変えない。
471
+ 指定のいずれかが不正なら、移送前にバッチ全体を止める。None / [] は従来の全候補。
442
472
  """
443
473
  result = run_scan(config)
444
474
  moved: list[MoveLogEntry] = []
@@ -447,12 +477,46 @@ def auto_sweep(
447
477
  ]
448
478
  routes = _archive_routes(result, config, project=project)
449
479
  ref_moves: list[tuple[move_refs.Move, str, Path, str]] = []
450
- # 1 回の sweep を 1 バッチとして記録し、``docsweep undo`` で参照の書き換えごと戻せるようにする
451
- # (Web の archive・``mv`` と同じ)。dry-run は移動ログを書かないので ID も作らない。
452
- batch_id = None if dry_run else new_batch_id()
453
480
  candidates = [
454
481
  doc for doc in result.auto_movable() if not project or doc.record.project == project
455
482
  ]
483
+ if paths is not None and not isinstance(paths, (list, tuple)):
484
+ failed.append({"path": None, "error": t(
485
+ "engine.sweep_target_invalid", path=str(paths), reason="invalid_path_list",
486
+ )})
487
+ return MoveBatchResult([], failed=failed, routes=routes)
488
+ if paths:
489
+ # The scanner records resolved paths. Reject alternate link spellings instead
490
+ # of letting aliases select an unexpected document or select one twice.
491
+ available = {os.path.normcase(str(Path(d.record.path).resolve())): d for d in candidates}
492
+ selected: set[str] = set()
493
+ for value in paths:
494
+ reason = None
495
+ try:
496
+ if not isinstance(value, (str, Path)) or not str(value).strip():
497
+ raise ValueError
498
+ requested = Path(value)
499
+ absolute = os.path.normcase(os.path.abspath(requested))
500
+ key = os.path.normcase(str(requested.resolve(strict=True)))
501
+ if key in selected:
502
+ reason = "duplicate_path"
503
+ elif key not in available:
504
+ reason = "not_scanned_auto_movable_in_project"
505
+ elif absolute != key and not _configured_sweep_spelling(requested, available[key], config):
506
+ reason = "alias_path"
507
+ else:
508
+ selected.add(key)
509
+ except (OSError, ValueError, RuntimeError):
510
+ reason = "invalid_or_missing_path"
511
+ if reason:
512
+ failed.append({"path": str(value), "error": t(
513
+ "engine.sweep_target_invalid", path=str(value), reason=reason,
514
+ )})
515
+ if failed:
516
+ return MoveBatchResult([], failed=failed, routes=routes)
517
+ candidates = [d for key, d in available.items() if key in selected]
518
+ # Keep one normal undo batch and the same complete repo/family guards.
519
+ batch_id = None if dry_run else new_batch_id()
456
520
  held_paths, held, plans = _guard_candidates(
457
521
  candidates, config, ref_scope=ref_scope, family=True, failed=failed
458
522
  )
@@ -806,6 +870,25 @@ def _update_doc_state(
806
870
  ) from exc
807
871
 
808
872
 
873
+ def _check_doc_state(
874
+ doc: ScannedDoc, target_key: str, *, allow_type_override: bool = False
875
+ ) -> None:
876
+ """Run the type/state check of :func:`_update_doc_state` without writing.
877
+
878
+ ``apply_action`` calls this in dry-run too, so the preview refuses what the real
879
+ run refuses, with the same message (2026-10-29: ``relabel --to done --dry-run``
880
+ on a pending file reported success and the real run exited 2).
881
+ """
882
+ if allow_type_override:
883
+ return
884
+ try:
885
+ validate_state_transition(doc.record.type, target_key)
886
+ except ValueError as exc:
887
+ raise ValueError(
888
+ t("engine.state_update_failed", path=doc.record.path, error=exc)
889
+ ) from exc
890
+
891
+
809
892
  def apply_action(
810
893
  doc: ScannedDoc,
811
894
  action: str,
@@ -884,6 +967,8 @@ def apply_action(
884
967
  _snapshot(plans, [doc], config, held_paths)
885
968
  target_key = "discarded" if action == Action.DISCARD.value else "done"
886
969
  st = sm.by_key(target_key)
970
+ if st:
971
+ _check_doc_state(doc, target_key, allow_type_override=allow_type_override)
887
972
  status_change: UpdateStatusResult | None = None
888
973
  if st and not dry_run:
889
974
  # ラベルを書き換えられない(H1 が無い/読めない)まま移送すると、配置と
@@ -924,6 +1009,8 @@ def apply_action(
924
1009
  # 2026-06-23 改修: active/対応中 を in-progress に統合。種別による振り分けは不要に。
925
1010
  target_key = "in-progress"
926
1011
  st = sm.by_key(target_key)
1012
+ if st:
1013
+ _check_doc_state(doc, target_key, allow_type_override=allow_type_override)
927
1014
  if st and not dry_run:
928
1015
  _update_doc_state(
929
1016
  doc, target_key, config, allow_type_override=allow_type_override
@@ -942,6 +1029,7 @@ def apply_action(
942
1029
  raise ValueError(t("engine.unknown_state_label", label=to))
943
1030
  if watching_days is not None and st.key != "watching":
944
1031
  raise ValueError(t("engine.watching_days_requires_watching"))
1032
+ _check_doc_state(doc, st.key, allow_type_override=allow_type_override)
945
1033
  if not dry_run:
946
1034
  relabeled = _update_doc_state(
947
1035
  doc,
@@ -41,6 +41,7 @@
41
41
  "help.apply.watching_days": "Only with relabel --to watching: set this graduation due date to today + N days",
42
42
  "help.sweep._command": "Same as --auto: move done/discarded documents to archive",
43
43
  "help.sweep.project": "Limit to a project (same as promote)",
44
+ "help.sweep.path": "Select an exact document path (repeatable); keep full reference and family guards",
44
45
  "help.sweep.dry_run": "Only print what would be moved",
45
46
  "help.mv._command": "Move documents within the work queue and rewrite references from other documents",
46
47
  "help.mv._description": "Move documents within the work queue. References to the moved documents (docsweep_parent, path-style related entries, and exact repo-relative paths in the body) are rewritten to the new path. Files tracked by git and files inside archive are excluded. Use docsweep undo to revert.",
@@ -1,4 +1,5 @@
1
1
  {
2
+ "engine.sweep_target_invalid": "Sweep selection rejected before moving any document: {path} ({reason})",
2
3
  "work_queue.private_tracked": "The private work queue contains files tracked by Git",
3
4
  "work_queue.private_not_ignored": "The private work queue is not ignored by Git",
4
5
  "work_queue.privacy_downgraded": "{error} (reported as a warning because work_dir / work_policy is not set; set work_policy explicitly in .docsweep.yaml to enforce it)",
@@ -247,6 +248,7 @@
247
248
  "provenance.document_missing": "Target Markdown not found: {path}",
248
249
  "provenance.invalid_role": "role must be one of implementation/review/verification: {role}",
249
250
  "provenance.context_required": "Specify at least one context",
251
+ "provenance.started_after_implementation": "{count} planned file(s) already have uncommitted changes before start (provenance start may be running after implementation): {files}",
250
252
  "provenance.not_applicable_exclusive": "not-applicable cannot be combined with other contexts",
251
253
  "provenance.invalid_context": "Invalid context ID: {contexts}",
252
254
  "provenance.invalid_result": "result must be one of completed/partial/failed/cancelled: {result}",
@@ -41,6 +41,7 @@
41
41
  "help.apply.watching_days": "relabel --to watching のときだけ、今回の卒業期限を今日 + N 日にする",
42
42
  "help.sweep._command": "--auto 相当: done/discarded を archive へ自動移送",
43
43
  "help.sweep.project": "対象プロジェクトを絞る(promote と対称)",
44
+ "help.sweep.path": "文書の正確なパスを選ぶ(複数指定可)。参照・親子の保護範囲は変えない",
44
45
  "help.sweep.dry_run": "移送内容を出力するだけ",
45
46
  "help.mv._command": "作業 queue の中で文書を移し、他の文書からの参照も書き換える",
46
47
  "help.mv._description": "作業 queue の中で文書を移す。移した文書を指す docsweep_parent・パス形式の related・本文中の repo 相対パス(完全一致)を新しいパスへ書き換える。git で追跡されているファイルと archive の中は対象外。docsweep undo で戻せる。",
@@ -1,4 +1,5 @@
1
1
  {
2
+ "engine.sweep_target_invalid": "文書を移す前にsweep対象指定を拒否しました: {path} ({reason})",
2
3
  "work_queue.private_tracked": "private work queue に tracked ファイルが含まれています",
3
4
  "work_queue.private_not_ignored": "private work queue が Git ignore されていません",
4
5
  "work_queue.privacy_downgraded": "{error}(work_dir / work_policy が未設定のため警告に留めています。強制するには .docsweep.yaml で work_policy を明示してください)",
@@ -247,6 +248,7 @@
247
248
  "provenance.document_missing": "対象MDがありません: {path}",
248
249
  "provenance.invalid_role": "role は implementation/review/verification のいずれかです: {role}",
249
250
  "provenance.context_required": "context を1件以上指定してください",
251
+ "provenance.started_after_implementation": "変更予定のファイルに、開始前から未コミットの変更が {count} 件あります(実装の後に provenance start を打った可能性): {files}",
250
252
  "provenance.not_applicable_exclusive": "not-applicable は他のcontextと併用できません",
251
253
  "provenance.invalid_context": "不正なcontext IDです: {contexts}",
252
254
  "provenance.invalid_result": "result は completed/partial/failed/cancelled のいずれかです: {result}",
@@ -172,7 +172,7 @@
172
172
  "\\s*(?:件)?\\s*(?:の)?\\s*"
173
173
  ],
174
174
  "closeout.words.failure_to_count": [
175
- "\\s*(?:数)?\\s*[:=]?\\s*"
175
+ "\\s*(?:[がは]|数)?\\s*[:=]?\\s*"
176
176
  ],
177
177
  "closeout.words.count_suffix": [
178
178
  "\\s*(?:件)?"