docsweep 0.5.0__tar.gz → 0.6.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 (332) hide show
  1. docsweep-0.6.0/.github/workflows/openwiki-update.yml +26 -0
  2. {docsweep-0.5.0 → docsweep-0.6.0}/.gitignore +11 -2
  3. docsweep-0.6.0/.mcp.json +12 -0
  4. {docsweep-0.5.0 → docsweep-0.6.0}/AGENTS.md +14 -1
  5. {docsweep-0.5.0 → docsweep-0.6.0}/CHANGELOG.md +52 -2
  6. {docsweep-0.5.0 → docsweep-0.6.0}/CLAUDE.md +8 -0
  7. {docsweep-0.5.0 → docsweep-0.6.0}/PKG-INFO +4 -1
  8. {docsweep-0.5.0 → docsweep-0.6.0}/README.en.md +3 -0
  9. {docsweep-0.5.0 → docsweep-0.6.0}/README.md +3 -0
  10. {docsweep-0.5.0 → docsweep-0.6.0}/docs/conventions.md +22 -0
  11. docsweep-0.6.0/docs/zenn/docsweep/2026-06-29_docsweep-okf/344/272/222/346/217/233/345/214/226/index.md +191 -0
  12. {docsweep-0.5.0 → docsweep-0.6.0}/docsweep/__init__.py +1 -1
  13. {docsweep-0.5.0 → docsweep-0.6.0}/docsweep/capture/heuristics.py +2 -0
  14. {docsweep-0.5.0 → docsweep-0.6.0}/docsweep/capture/llm.py +4 -0
  15. {docsweep-0.5.0 → docsweep-0.6.0}/docsweep/capture/service.py +12 -0
  16. {docsweep-0.5.0 → docsweep-0.6.0}/docsweep/cli/commands/excluded.py +20 -0
  17. {docsweep-0.5.0 → docsweep-0.6.0}/docsweep/cli/commands/write.py +5 -1
  18. {docsweep-0.5.0 → docsweep-0.6.0}/docsweep/cli/parser.py +4 -0
  19. {docsweep-0.5.0 → docsweep-0.6.0}/docsweep/closeout.py +108 -12
  20. {docsweep-0.5.0 → docsweep-0.6.0}/docsweep/detect.py +18 -0
  21. {docsweep-0.5.0 → docsweep-0.6.0}/docsweep/engine.py +5 -1
  22. {docsweep-0.5.0 → docsweep-0.6.0}/docsweep/inject/api.py +42 -3
  23. {docsweep-0.5.0 → docsweep-0.6.0}/docsweep/services/frontmatter.py +54 -4
  24. {docsweep-0.5.0 → docsweep-0.6.0}/docsweep/services/status.py +9 -3
  25. {docsweep-0.5.0 → docsweep-0.6.0}/docsweep/templates_gen.py +44 -6
  26. {docsweep-0.5.0 → docsweep-0.6.0}/docsweep/work_queue.py +21 -0
  27. docsweep-0.6.0/openwiki/.claims/architecture/overview.json +102 -0
  28. docsweep-0.6.0/openwiki/.claims/architecture/state-model.json +124 -0
  29. docsweep-0.6.0/openwiki/.claims/integrations/mcp-server.json +110 -0
  30. docsweep-0.6.0/openwiki/.claims/integrations/okf-compatibility.json +110 -0
  31. docsweep-0.6.0/openwiki/.claims/integrations/provenance.json +126 -0
  32. docsweep-0.6.0/openwiki/.claims/integrations/web-ui.json +134 -0
  33. docsweep-0.6.0/openwiki/.claims/operations/adoption-and-templates.json +138 -0
  34. docsweep-0.6.0/openwiki/.claims/quickstart.json +30 -0
  35. docsweep-0.6.0/openwiki/.claims/testing/development-workflow.json +80 -0
  36. docsweep-0.6.0/openwiki/.claims/workflows/cli-reference.json +100 -0
  37. docsweep-0.6.0/openwiki/.claims/workflows/lifecycle-management.json +118 -0
  38. docsweep-0.6.0/openwiki/.last-update.json +8 -0
  39. docsweep-0.6.0/openwiki/.page-manifest.json +82 -0
  40. docsweep-0.6.0/openwiki/architecture/index.md +4 -0
  41. docsweep-0.6.0/openwiki/architecture/overview.md +138 -0
  42. docsweep-0.6.0/openwiki/architecture/state-model.md +166 -0
  43. docsweep-0.6.0/openwiki/index.md +15 -0
  44. docsweep-0.6.0/openwiki/integrations/index.md +6 -0
  45. docsweep-0.6.0/openwiki/integrations/mcp-server.md +138 -0
  46. docsweep-0.6.0/openwiki/integrations/okf-compatibility.md +149 -0
  47. docsweep-0.6.0/openwiki/integrations/provenance.md +146 -0
  48. docsweep-0.6.0/openwiki/integrations/web-ui.md +149 -0
  49. docsweep-0.6.0/openwiki/operations/adoption-and-templates.md +146 -0
  50. docsweep-0.6.0/openwiki/operations/index.md +3 -0
  51. docsweep-0.6.0/openwiki/quickstart.md +86 -0
  52. docsweep-0.6.0/openwiki/testing/development-workflow.md +146 -0
  53. docsweep-0.6.0/openwiki/testing/index.md +3 -0
  54. docsweep-0.6.0/openwiki/workflows/cli-reference.md +195 -0
  55. docsweep-0.6.0/openwiki/workflows/index.md +4 -0
  56. docsweep-0.6.0/openwiki/workflows/lifecycle-management.md +169 -0
  57. {docsweep-0.5.0 → docsweep-0.6.0}/portfolio.md +36 -36
  58. {docsweep-0.5.0 → docsweep-0.6.0}/pyproject.toml +1 -1
  59. {docsweep-0.5.0 → docsweep-0.6.0}/templates/.docsweep.yaml +8 -0
  60. {docsweep-0.5.0 → docsweep-0.6.0}/templates/.githooks/docsweep-check.py +46 -4
  61. {docsweep-0.5.0 → docsweep-0.6.0}/templates/CLAUDE.md +18 -1
  62. {docsweep-0.5.0 → docsweep-0.6.0}/tests/conftest.py +21 -0
  63. {docsweep-0.5.0 → docsweep-0.6.0}/tests/test_closeout.py +180 -0
  64. {docsweep-0.5.0 → docsweep-0.6.0}/tests/test_engine.py +41 -0
  65. {docsweep-0.5.0 → docsweep-0.6.0}/tests/test_extras.py +1 -1
  66. {docsweep-0.5.0 → docsweep-0.6.0}/tests/test_githooks.py +38 -0
  67. docsweep-0.6.0/tests/test_owner_default.py +206 -0
  68. {docsweep-0.5.0 → docsweep-0.6.0}/tests/test_work_queue_agent_flow.py +67 -0
  69. {docsweep-0.5.0 → docsweep-0.6.0}/.docsweep.yaml +0 -0
  70. {docsweep-0.5.0 → docsweep-0.6.0}/.githooks/pre-push +0 -0
  71. {docsweep-0.5.0 → docsweep-0.6.0}/.github/workflows/ci.yml +0 -0
  72. {docsweep-0.5.0 → docsweep-0.6.0}/.github/workflows/dependency-audit.yml +0 -0
  73. {docsweep-0.5.0 → docsweep-0.6.0}/.github/workflows/publish.yml +0 -0
  74. {docsweep-0.5.0 → docsweep-0.6.0}/LICENSE +0 -0
  75. {docsweep-0.5.0 → docsweep-0.6.0}/NOTICES.md +0 -0
  76. {docsweep-0.5.0 → docsweep-0.6.0}/assets/icon-a-broom.svg +0 -0
  77. {docsweep-0.5.0 → docsweep-0.6.0}/assets/icon-b-doc-check.svg +0 -0
  78. {docsweep-0.5.0 → docsweep-0.6.0}/assets/icon-c-sweep-sparkle.svg +0 -0
  79. {docsweep-0.5.0 → docsweep-0.6.0}/assets/icon.svg +0 -0
  80. {docsweep-0.5.0 → docsweep-0.6.0}/assets/icons/apple-touch-icon.png +0 -0
  81. {docsweep-0.5.0 → docsweep-0.6.0}/assets/icons/favicon-16.png +0 -0
  82. {docsweep-0.5.0 → docsweep-0.6.0}/assets/icons/favicon-32.png +0 -0
  83. {docsweep-0.5.0 → docsweep-0.6.0}/assets/icons/favicon-48.png +0 -0
  84. {docsweep-0.5.0 → docsweep-0.6.0}/assets/icons/favicon.ico +0 -0
  85. {docsweep-0.5.0 → docsweep-0.6.0}/assets/icons/favicon.svg +0 -0
  86. {docsweep-0.5.0 → docsweep-0.6.0}/assets/icons/icon-192.png +0 -0
  87. {docsweep-0.5.0 → docsweep-0.6.0}/assets/icons/icon-512.png +0 -0
  88. {docsweep-0.5.0 → docsweep-0.6.0}/assets/proposals/a-broom/apple-touch-icon.png +0 -0
  89. {docsweep-0.5.0 → docsweep-0.6.0}/assets/proposals/a-broom/favicon-16.png +0 -0
  90. {docsweep-0.5.0 → docsweep-0.6.0}/assets/proposals/a-broom/favicon-32.png +0 -0
  91. {docsweep-0.5.0 → docsweep-0.6.0}/assets/proposals/a-broom/favicon-48.png +0 -0
  92. {docsweep-0.5.0 → docsweep-0.6.0}/assets/proposals/a-broom/favicon.ico +0 -0
  93. {docsweep-0.5.0 → docsweep-0.6.0}/assets/proposals/a-broom/favicon.svg +0 -0
  94. {docsweep-0.5.0 → docsweep-0.6.0}/assets/proposals/a-broom/icon-192.png +0 -0
  95. {docsweep-0.5.0 → docsweep-0.6.0}/assets/proposals/a-broom/icon-512.png +0 -0
  96. {docsweep-0.5.0 → docsweep-0.6.0}/assets/proposals/b-doc-check/apple-touch-icon.png +0 -0
  97. {docsweep-0.5.0 → docsweep-0.6.0}/assets/proposals/b-doc-check/favicon-16.png +0 -0
  98. {docsweep-0.5.0 → docsweep-0.6.0}/assets/proposals/b-doc-check/favicon-32.png +0 -0
  99. {docsweep-0.5.0 → docsweep-0.6.0}/assets/proposals/b-doc-check/favicon-48.png +0 -0
  100. {docsweep-0.5.0 → docsweep-0.6.0}/assets/proposals/b-doc-check/favicon.ico +0 -0
  101. {docsweep-0.5.0 → docsweep-0.6.0}/assets/proposals/b-doc-check/favicon.svg +0 -0
  102. {docsweep-0.5.0 → docsweep-0.6.0}/assets/proposals/b-doc-check/icon-192.png +0 -0
  103. {docsweep-0.5.0 → docsweep-0.6.0}/assets/proposals/b-doc-check/icon-512.png +0 -0
  104. {docsweep-0.5.0 → docsweep-0.6.0}/assets/proposals/c-sweep-sparkle/apple-touch-icon.png +0 -0
  105. {docsweep-0.5.0 → docsweep-0.6.0}/assets/proposals/c-sweep-sparkle/favicon-16.png +0 -0
  106. {docsweep-0.5.0 → docsweep-0.6.0}/assets/proposals/c-sweep-sparkle/favicon-32.png +0 -0
  107. {docsweep-0.5.0 → docsweep-0.6.0}/assets/proposals/c-sweep-sparkle/favicon-48.png +0 -0
  108. {docsweep-0.5.0 → docsweep-0.6.0}/assets/proposals/c-sweep-sparkle/favicon.ico +0 -0
  109. {docsweep-0.5.0 → docsweep-0.6.0}/assets/proposals/c-sweep-sparkle/favicon.svg +0 -0
  110. {docsweep-0.5.0 → docsweep-0.6.0}/assets/proposals/c-sweep-sparkle/icon-192.png +0 -0
  111. {docsweep-0.5.0 → docsweep-0.6.0}/assets/proposals/c-sweep-sparkle/icon-512.png +0 -0
  112. {docsweep-0.5.0 → docsweep-0.6.0}/assets/screenshots/webui-archive.png +0 -0
  113. {docsweep-0.5.0 → docsweep-0.6.0}/assets/screenshots/webui-todo.png +0 -0
  114. {docsweep-0.5.0 → docsweep-0.6.0}/docs/D-skill-update-proposal.md +0 -0
  115. {docsweep-0.5.0 → docsweep-0.6.0}/docs/ai-agent-integration.md +0 -0
  116. {docsweep-0.5.0 → docsweep-0.6.0}/docs/guidance-rewrite-proposal.md +0 -0
  117. {docsweep-0.5.0 → docsweep-0.6.0}/docs/mockups/dashboard_v0.1.0.html +0 -0
  118. {docsweep-0.5.0 → docsweep-0.6.0}/docs/mockups/dashboard_v0.1.0.png +0 -0
  119. {docsweep-0.5.0 → docsweep-0.6.0}/docs/mockups/mcp_usage_v0.1.0.html +0 -0
  120. {docsweep-0.5.0 → docsweep-0.6.0}/docs/okf-export-format.md +0 -0
  121. {docsweep-0.5.0 → docsweep-0.6.0}/docs/okf-mapping.md +0 -0
  122. {docsweep-0.5.0 → docsweep-0.6.0}/docs/zenn/docsweep/2026-06-22_slash-commands-p-s-d/20260622-claude-code-slash-commands.md +0 -0
  123. {docsweep-0.5.0 → docsweep-0.6.0}/docsweep/__main__.py +0 -0
  124. {docsweep-0.5.0 → docsweep-0.6.0}/docsweep/activity.py +0 -0
  125. {docsweep-0.5.0 → docsweep-0.6.0}/docsweep/aggregate_index.py +0 -0
  126. {docsweep-0.5.0 → docsweep-0.6.0}/docsweep/archive.py +0 -0
  127. {docsweep-0.5.0 → docsweep-0.6.0}/docsweep/atomic.py +0 -0
  128. {docsweep-0.5.0 → docsweep-0.6.0}/docsweep/auto_triage.py +0 -0
  129. {docsweep-0.5.0 → docsweep-0.6.0}/docsweep/brief/__init__.py +0 -0
  130. {docsweep-0.5.0 → docsweep-0.6.0}/docsweep/brief/score.py +0 -0
  131. {docsweep-0.5.0 → docsweep-0.6.0}/docsweep/brief/service.py +0 -0
  132. {docsweep-0.5.0 → docsweep-0.6.0}/docsweep/bulk_confirm.py +0 -0
  133. {docsweep-0.5.0 → docsweep-0.6.0}/docsweep/capture/__init__.py +0 -0
  134. {docsweep-0.5.0 → docsweep-0.6.0}/docsweep/capture/models.py +0 -0
  135. {docsweep-0.5.0 → docsweep-0.6.0}/docsweep/claim.py +0 -0
  136. {docsweep-0.5.0 → docsweep-0.6.0}/docsweep/cli/__init__.py +0 -0
  137. {docsweep-0.5.0 → docsweep-0.6.0}/docsweep/cli/commands/__init__.py +0 -0
  138. {docsweep-0.5.0 → docsweep-0.6.0}/docsweep/cli/commands/completion.py +0 -0
  139. {docsweep-0.5.0 → docsweep-0.6.0}/docsweep/cli/commands/ics.py +0 -0
  140. {docsweep-0.5.0 → docsweep-0.6.0}/docsweep/cli/commands/index.py +0 -0
  141. {docsweep-0.5.0 → docsweep-0.6.0}/docsweep/cli/commands/init.py +0 -0
  142. {docsweep-0.5.0 → docsweep-0.6.0}/docsweep/cli/commands/inject.py +0 -0
  143. {docsweep-0.5.0 → docsweep-0.6.0}/docsweep/cli/commands/mcp.py +0 -0
  144. {docsweep-0.5.0 → docsweep-0.6.0}/docsweep/cli/commands/memory.py +0 -0
  145. {docsweep-0.5.0 → docsweep-0.6.0}/docsweep/cli/commands/notify.py +0 -0
  146. {docsweep-0.5.0 → docsweep-0.6.0}/docsweep/cli/commands/provenance.py +0 -0
  147. {docsweep-0.5.0 → docsweep-0.6.0}/docsweep/cli/commands/read.py +0 -0
  148. {docsweep-0.5.0 → docsweep-0.6.0}/docsweep/cli/commands/serve.py +0 -0
  149. {docsweep-0.5.0 → docsweep-0.6.0}/docsweep/completion.py +0 -0
  150. {docsweep-0.5.0 → docsweep-0.6.0}/docsweep/config.py +0 -0
  151. {docsweep-0.5.0 → docsweep-0.6.0}/docsweep/context.py +0 -0
  152. {docsweep-0.5.0 → docsweep-0.6.0}/docsweep/cookbook.py +0 -0
  153. {docsweep-0.5.0 → docsweep-0.6.0}/docsweep/cross/__init__.py +0 -0
  154. {docsweep-0.5.0 → docsweep-0.6.0}/docsweep/cross/service.py +0 -0
  155. {docsweep-0.5.0 → docsweep-0.6.0}/docsweep/day.py +0 -0
  156. {docsweep-0.5.0 → docsweep-0.6.0}/docsweep/demo.py +0 -0
  157. {docsweep-0.5.0 → docsweep-0.6.0}/docsweep/doc_links.py +0 -0
  158. {docsweep-0.5.0 → docsweep-0.6.0}/docsweep/doctor.py +0 -0
  159. {docsweep-0.5.0 → docsweep-0.6.0}/docsweep/excluded.py +0 -0
  160. {docsweep-0.5.0 → docsweep-0.6.0}/docsweep/export.py +0 -0
  161. {docsweep-0.5.0 → docsweep-0.6.0}/docsweep/find.py +0 -0
  162. {docsweep-0.5.0 → docsweep-0.6.0}/docsweep/fix_conflict.py +0 -0
  163. {docsweep-0.5.0 → docsweep-0.6.0}/docsweep/graph/__init__.py +0 -0
  164. {docsweep-0.5.0 → docsweep-0.6.0}/docsweep/graph/service.py +0 -0
  165. {docsweep-0.5.0 → docsweep-0.6.0}/docsweep/hints.py +0 -0
  166. {docsweep-0.5.0 → docsweep-0.6.0}/docsweep/history.py +0 -0
  167. {docsweep-0.5.0 → docsweep-0.6.0}/docsweep/ics_export.py +0 -0
  168. {docsweep-0.5.0 → docsweep-0.6.0}/docsweep/index.py +0 -0
  169. {docsweep-0.5.0 → docsweep-0.6.0}/docsweep/init_cmd.py +0 -0
  170. {docsweep-0.5.0 → docsweep-0.6.0}/docsweep/inject/__init__.py +0 -0
  171. {docsweep-0.5.0 → docsweep-0.6.0}/docsweep/inject/agent_claude.py +0 -0
  172. {docsweep-0.5.0 → docsweep-0.6.0}/docsweep/inject/agent_codex.py +0 -0
  173. {docsweep-0.5.0 → docsweep-0.6.0}/docsweep/inject/blocks.py +0 -0
  174. {docsweep-0.5.0 → docsweep-0.6.0}/docsweep/inject/manifest.py +0 -0
  175. {docsweep-0.5.0 → docsweep-0.6.0}/docsweep/intent.py +0 -0
  176. {docsweep-0.5.0 → docsweep-0.6.0}/docsweep/interactive.py +0 -0
  177. {docsweep-0.5.0 → docsweep-0.6.0}/docsweep/linkcheck.py +0 -0
  178. {docsweep-0.5.0 → docsweep-0.6.0}/docsweep/mcp_server.py +0 -0
  179. {docsweep-0.5.0 → docsweep-0.6.0}/docsweep/memory_scan.py +0 -0
  180. {docsweep-0.5.0 → docsweep-0.6.0}/docsweep/migrate.py +0 -0
  181. {docsweep-0.5.0 → docsweep-0.6.0}/docsweep/models.py +0 -0
  182. {docsweep-0.5.0 → docsweep-0.6.0}/docsweep/notify.py +0 -0
  183. {docsweep-0.5.0 → docsweep-0.6.0}/docsweep/okf.py +0 -0
  184. {docsweep-0.5.0 → docsweep-0.6.0}/docsweep/okf_check.py +0 -0
  185. {docsweep-0.5.0 → docsweep-0.6.0}/docsweep/okf_profiles/0.2.json +0 -0
  186. {docsweep-0.5.0 → docsweep-0.6.0}/docsweep/presets.py +0 -0
  187. {docsweep-0.5.0 → docsweep-0.6.0}/docsweep/provenance.py +0 -0
  188. {docsweep-0.5.0 → docsweep-0.6.0}/docsweep/provenance_hint.py +0 -0
  189. {docsweep-0.5.0 → docsweep-0.6.0}/docsweep/record_view.py +0 -0
  190. {docsweep-0.5.0 → docsweep-0.6.0}/docsweep/related.py +0 -0
  191. {docsweep-0.5.0 → docsweep-0.6.0}/docsweep/reports.py +0 -0
  192. {docsweep-0.5.0 → docsweep-0.6.0}/docsweep/resurrect/__init__.py +0 -0
  193. {docsweep-0.5.0 → docsweep-0.6.0}/docsweep/resurrect/embedding.py +0 -0
  194. {docsweep-0.5.0 → docsweep-0.6.0}/docsweep/resurrect/service.py +0 -0
  195. {docsweep-0.5.0 → docsweep-0.6.0}/docsweep/resurrect/similarity.py +0 -0
  196. {docsweep-0.5.0 → docsweep-0.6.0}/docsweep/review.py +0 -0
  197. {docsweep-0.5.0 → docsweep-0.6.0}/docsweep/scan.py +0 -0
  198. {docsweep-0.5.0 → docsweep-0.6.0}/docsweep/secrets_guard.py +0 -0
  199. {docsweep-0.5.0 → docsweep-0.6.0}/docsweep/security/__init__.py +0 -0
  200. {docsweep-0.5.0 → docsweep-0.6.0}/docsweep/security/path.py +0 -0
  201. {docsweep-0.5.0 → docsweep-0.6.0}/docsweep/server/__init__.py +0 -0
  202. {docsweep-0.5.0 → docsweep-0.6.0}/docsweep/server/app.py +0 -0
  203. {docsweep-0.5.0 → docsweep-0.6.0}/docsweep/server/config_write.py +0 -0
  204. {docsweep-0.5.0 → docsweep-0.6.0}/docsweep/server/i18n.py +0 -0
  205. {docsweep-0.5.0 → docsweep-0.6.0}/docsweep/server/routes/__init__.py +0 -0
  206. {docsweep-0.5.0 → docsweep-0.6.0}/docsweep/server/routes/board.py +0 -0
  207. {docsweep-0.5.0 → docsweep-0.6.0}/docsweep/server/routes/brief.py +0 -0
  208. {docsweep-0.5.0 → docsweep-0.6.0}/docsweep/server/routes/capture.py +0 -0
  209. {docsweep-0.5.0 → docsweep-0.6.0}/docsweep/server/routes/cards.py +0 -0
  210. {docsweep-0.5.0 → docsweep-0.6.0}/docsweep/server/routes/cross.py +0 -0
  211. {docsweep-0.5.0 → docsweep-0.6.0}/docsweep/server/routes/graph.py +0 -0
  212. {docsweep-0.5.0 → docsweep-0.6.0}/docsweep/server/routes/resurrect.py +0 -0
  213. {docsweep-0.5.0 → docsweep-0.6.0}/docsweep/server/sanitize.py +0 -0
  214. {docsweep-0.5.0 → docsweep-0.6.0}/docsweep/server/security.py +0 -0
  215. {docsweep-0.5.0 → docsweep-0.6.0}/docsweep/server/static/board.css +0 -0
  216. {docsweep-0.5.0 → docsweep-0.6.0}/docsweep/server/static/brief.js +0 -0
  217. {docsweep-0.5.0 → docsweep-0.6.0}/docsweep/server/static/capture.js +0 -0
  218. {docsweep-0.5.0 → docsweep-0.6.0}/docsweep/server/static/cytoscape.min.js +0 -0
  219. {docsweep-0.5.0 → docsweep-0.6.0}/docsweep/server/static/dnd.js +0 -0
  220. {docsweep-0.5.0 → docsweep-0.6.0}/docsweep/server/static/edit.js +0 -0
  221. {docsweep-0.5.0 → docsweep-0.6.0}/docsweep/server/static/graph.js +0 -0
  222. {docsweep-0.5.0 → docsweep-0.6.0}/docsweep/server/static/htmx.min.js +0 -0
  223. {docsweep-0.5.0 → docsweep-0.6.0}/docsweep/server/static/i18n.js +0 -0
  224. {docsweep-0.5.0 → docsweep-0.6.0}/docsweep/server/static/icons/apple-touch-icon.png +0 -0
  225. {docsweep-0.5.0 → docsweep-0.6.0}/docsweep/server/static/icons/favicon.ico +0 -0
  226. {docsweep-0.5.0 → docsweep-0.6.0}/docsweep/server/static/icons/favicon.svg +0 -0
  227. {docsweep-0.5.0 → docsweep-0.6.0}/docsweep/server/static/icons/icon-192.png +0 -0
  228. {docsweep-0.5.0 → docsweep-0.6.0}/docsweep/server/static/icons/icon-512.png +0 -0
  229. {docsweep-0.5.0 → docsweep-0.6.0}/docsweep/server/static/keymap.js +0 -0
  230. {docsweep-0.5.0 → docsweep-0.6.0}/docsweep/server/static/w4.js +0 -0
  231. {docsweep-0.5.0 → docsweep-0.6.0}/docsweep/server/templates/_board_body.html +0 -0
  232. {docsweep-0.5.0 → docsweep-0.6.0}/docsweep/server/templates/_card.html +0 -0
  233. {docsweep-0.5.0 → docsweep-0.6.0}/docsweep/server/templates/_change_picker.html +0 -0
  234. {docsweep-0.5.0 → docsweep-0.6.0}/docsweep/server/templates/_due_picker.html +0 -0
  235. {docsweep-0.5.0 → docsweep-0.6.0}/docsweep/server/templates/_edit_pane.html +0 -0
  236. {docsweep-0.5.0 → docsweep-0.6.0}/docsweep/server/templates/_label_picker.html +0 -0
  237. {docsweep-0.5.0 → docsweep-0.6.0}/docsweep/server/templates/_preview.html +0 -0
  238. {docsweep-0.5.0 → docsweep-0.6.0}/docsweep/server/templates/_settings.html +0 -0
  239. {docsweep-0.5.0 → docsweep-0.6.0}/docsweep/server/templates/board.html +0 -0
  240. {docsweep-0.5.0 → docsweep-0.6.0}/docsweep/server/templates/brief.html +0 -0
  241. {docsweep-0.5.0 → docsweep-0.6.0}/docsweep/server/templates/capture.html +0 -0
  242. {docsweep-0.5.0 → docsweep-0.6.0}/docsweep/server/templates/cross.html +0 -0
  243. {docsweep-0.5.0 → docsweep-0.6.0}/docsweep/server/templates/graph.html +0 -0
  244. {docsweep-0.5.0 → docsweep-0.6.0}/docsweep/server/templates/resurrect.html +0 -0
  245. {docsweep-0.5.0 → docsweep-0.6.0}/docsweep/services/__init__.py +0 -0
  246. {docsweep-0.5.0 → docsweep-0.6.0}/docsweep/services/archive.py +0 -0
  247. {docsweep-0.5.0 → docsweep-0.6.0}/docsweep/services/content.py +0 -0
  248. {docsweep-0.5.0 → docsweep-0.6.0}/docsweep/services/due.py +0 -0
  249. {docsweep-0.5.0 → docsweep-0.6.0}/docsweep/session_logs.py +0 -0
  250. {docsweep-0.5.0 → docsweep-0.6.0}/docsweep/similar_guard.py +0 -0
  251. {docsweep-0.5.0 → docsweep-0.6.0}/docsweep/stale.py +0 -0
  252. {docsweep-0.5.0 → docsweep-0.6.0}/docsweep/state.py +0 -0
  253. {docsweep-0.5.0 → docsweep-0.6.0}/docsweep/states.py +0 -0
  254. {docsweep-0.5.0 → docsweep-0.6.0}/docsweep/streak.py +0 -0
  255. {docsweep-0.5.0 → docsweep-0.6.0}/docsweep/timeline.py +0 -0
  256. {docsweep-0.5.0 → docsweep-0.6.0}/docsweep-ui.cmd +0 -0
  257. {docsweep-0.5.0 → docsweep-0.6.0}/docsweep-ui.command +0 -0
  258. {docsweep-0.5.0 → docsweep-0.6.0}/docsweep-ui.sh +0 -0
  259. {docsweep-0.5.0 → docsweep-0.6.0}/templates/AGENTS.md +0 -0
  260. {docsweep-0.5.0 → docsweep-0.6.0}/templates/AGENT_GUIDE.md +0 -0
  261. {docsweep-0.5.0 → docsweep-0.6.0}/templates/install-hooks.ps1 +0 -0
  262. {docsweep-0.5.0 → docsweep-0.6.0}/templates/install-hooks.sh +0 -0
  263. {docsweep-0.5.0 → docsweep-0.6.0}/tests/fixtures/dependency-audit/clean.txt +0 -0
  264. {docsweep-0.5.0 → docsweep-0.6.0}/tests/fixtures/dependency-audit/vulnerable.txt +0 -0
  265. {docsweep-0.5.0 → docsweep-0.6.0}/tests/test_activity.py +0 -0
  266. {docsweep-0.5.0 → docsweep-0.6.0}/tests/test_archive_route_contract.py +0 -0
  267. {docsweep-0.5.0 → docsweep-0.6.0}/tests/test_atomic.py +0 -0
  268. {docsweep-0.5.0 → docsweep-0.6.0}/tests/test_audit_2026_07_21_followup.py +0 -0
  269. {docsweep-0.5.0 → docsweep-0.6.0}/tests/test_audit_c1_security_boundaries.py +0 -0
  270. {docsweep-0.5.0 → docsweep-0.6.0}/tests/test_audit_c1_security_write_boundaries.py +0 -0
  271. {docsweep-0.5.0 → docsweep-0.6.0}/tests/test_audit_c2_document_integrity.py +0 -0
  272. {docsweep-0.5.0 → docsweep-0.6.0}/tests/test_audit_c3_windows_cli_export.py +0 -0
  273. {docsweep-0.5.0 → docsweep-0.6.0}/tests/test_audit_c4_dependency_security.py +0 -0
  274. {docsweep-0.5.0 → docsweep-0.6.0}/tests/test_audit_c5_index_correctness.py +0 -0
  275. {docsweep-0.5.0 → docsweep-0.6.0}/tests/test_audit_fixes.py +0 -0
  276. {docsweep-0.5.0 → docsweep-0.6.0}/tests/test_audit_fixes_2026_07_16.py +0 -0
  277. {docsweep-0.5.0 → docsweep-0.6.0}/tests/test_audit_security_regressions.py +0 -0
  278. {docsweep-0.5.0 → docsweep-0.6.0}/tests/test_audit_server.py +0 -0
  279. {docsweep-0.5.0 → docsweep-0.6.0}/tests/test_audit_v0_4_0.py +0 -0
  280. {docsweep-0.5.0 → docsweep-0.6.0}/tests/test_brief.py +0 -0
  281. {docsweep-0.5.0 → docsweep-0.6.0}/tests/test_c2_commands.py +0 -0
  282. {docsweep-0.5.0 → docsweep-0.6.0}/tests/test_c5_features.py +0 -0
  283. {docsweep-0.5.0 → docsweep-0.6.0}/tests/test_capture.py +0 -0
  284. {docsweep-0.5.0 → docsweep-0.6.0}/tests/test_cli_smoke.py +0 -0
  285. {docsweep-0.5.0 → docsweep-0.6.0}/tests/test_config.py +0 -0
  286. {docsweep-0.5.0 → docsweep-0.6.0}/tests/test_config_due.py +0 -0
  287. {docsweep-0.5.0 → docsweep-0.6.0}/tests/test_cross.py +0 -0
  288. {docsweep-0.5.0 → docsweep-0.6.0}/tests/test_db_index.py +0 -0
  289. {docsweep-0.5.0 → docsweep-0.6.0}/tests/test_detect.py +0 -0
  290. {docsweep-0.5.0 → docsweep-0.6.0}/tests/test_docs_mcp_surface.py +0 -0
  291. {docsweep-0.5.0 → docsweep-0.6.0}/tests/test_doctor.py +0 -0
  292. {docsweep-0.5.0 → docsweep-0.6.0}/tests/test_export.py +0 -0
  293. {docsweep-0.5.0 → docsweep-0.6.0}/tests/test_fix_conflict.py +0 -0
  294. {docsweep-0.5.0 → docsweep-0.6.0}/tests/test_fix_conflict_prefer_h1.py +0 -0
  295. {docsweep-0.5.0 → docsweep-0.6.0}/tests/test_index_prune.py +0 -0
  296. {docsweep-0.5.0 → docsweep-0.6.0}/tests/test_index_stats.py +0 -0
  297. {docsweep-0.5.0 → docsweep-0.6.0}/tests/test_index_vacuum.py +0 -0
  298. {docsweep-0.5.0 → docsweep-0.6.0}/tests/test_index_wal.py +0 -0
  299. {docsweep-0.5.0 → docsweep-0.6.0}/tests/test_init_and_undo_cli.py +0 -0
  300. {docsweep-0.5.0 → docsweep-0.6.0}/tests/test_interactive.py +0 -0
  301. {docsweep-0.5.0 → docsweep-0.6.0}/tests/test_invariants.py +0 -0
  302. {docsweep-0.5.0 → docsweep-0.6.0}/tests/test_linkcheck.py +0 -0
  303. {docsweep-0.5.0 → docsweep-0.6.0}/tests/test_mcp_tools.py +0 -0
  304. {docsweep-0.5.0 → docsweep-0.6.0}/tests/test_mcp_write_tools.py +0 -0
  305. {docsweep-0.5.0 → docsweep-0.6.0}/tests/test_new_cli_project_dir_autodetect.py +0 -0
  306. {docsweep-0.5.0 → docsweep-0.6.0}/tests/test_offline_assets.py +0 -0
  307. {docsweep-0.5.0 → docsweep-0.6.0}/tests/test_okf_profile.py +0 -0
  308. {docsweep-0.5.0 → docsweep-0.6.0}/tests/test_parser.py +0 -0
  309. {docsweep-0.5.0 → docsweep-0.6.0}/tests/test_provenance.py +0 -0
  310. {docsweep-0.5.0 → docsweep-0.6.0}/tests/test_resurrect.py +0 -0
  311. {docsweep-0.5.0 → docsweep-0.6.0}/tests/test_server.py +0 -0
  312. {docsweep-0.5.0 → docsweep-0.6.0}/tests/test_server_board.py +0 -0
  313. {docsweep-0.5.0 → docsweep-0.6.0}/tests/test_server_bulk.py +0 -0
  314. {docsweep-0.5.0 → docsweep-0.6.0}/tests/test_server_okf.py +0 -0
  315. {docsweep-0.5.0 → docsweep-0.6.0}/tests/test_server_routes_extras.py +0 -0
  316. {docsweep-0.5.0 → docsweep-0.6.0}/tests/test_server_ux_w4.py +0 -0
  317. {docsweep-0.5.0 → docsweep-0.6.0}/tests/test_services_archive.py +0 -0
  318. {docsweep-0.5.0 → docsweep-0.6.0}/tests/test_services_content.py +0 -0
  319. {docsweep-0.5.0 → docsweep-0.6.0}/tests/test_services_due.py +0 -0
  320. {docsweep-0.5.0 → docsweep-0.6.0}/tests/test_services_frontmatter.py +0 -0
  321. {docsweep-0.5.0 → docsweep-0.6.0}/tests/test_services_status.py +0 -0
  322. {docsweep-0.5.0 → docsweep-0.6.0}/tests/test_session_logs.py +0 -0
  323. {docsweep-0.5.0 → docsweep-0.6.0}/tests/test_state.py +0 -0
  324. {docsweep-0.5.0 → docsweep-0.6.0}/tests/test_templates_gen.py +0 -0
  325. {docsweep-0.5.0 → docsweep-0.6.0}/tests/test_triage_schema.py +0 -0
  326. {docsweep-0.5.0 → docsweep-0.6.0}/tests/test_undo.py +0 -0
  327. {docsweep-0.5.0 → docsweep-0.6.0}/tests/test_ux_final.py +0 -0
  328. {docsweep-0.5.0 → docsweep-0.6.0}/tests/test_ux_remaining.py +0 -0
  329. {docsweep-0.5.0 → docsweep-0.6.0}/tests/test_ux_w2.py +0 -0
  330. {docsweep-0.5.0 → docsweep-0.6.0}/tests/test_ux_w4.py +0 -0
  331. {docsweep-0.5.0 → docsweep-0.6.0}/tests/test_ux_w4_ui.py +0 -0
  332. {docsweep-0.5.0 → docsweep-0.6.0}/tests/test_work_dir_alias.py +0 -0
@@ -0,0 +1,26 @@
1
+ # OpenWiki の日次更新ワークフローを、意図的に置き石で塞いでいる。
2
+ #
3
+ # openwiki は `init` のときこのパスへ、OPENAI_API_KEY と LANGSMITH_API_KEY を
4
+ # secrets から読んで毎日走る設定を書き込む。生成は「ファイルが無いときだけ」なので、
5
+ # このファイルが存在する限り書き込まれない。消すと次の init で API 版が復活する。
6
+ #
7
+ # 更新は CI ではなく手元でやる。コーディングエージェント(Claude Code 等)の中で
8
+ # 「Update this repository's OpenWiki」と頼めば、既存のサブスクリプションで走り、
9
+ # API キーは要らない。CI にはそのサブスクリプションが無いので、CI で自動化しようと
10
+ # すると必ず API キーの話になる。だからここでは自動化しない。
11
+ #
12
+ # 置き石は `D:\dev\tools\openwiki-prep.ps1` が書く。
13
+
14
+ name: OpenWiki Update (disabled)
15
+
16
+ on:
17
+ workflow_dispatch:
18
+
19
+ jobs:
20
+ disabled:
21
+ runs-on: ubuntu-latest
22
+ steps:
23
+ - name: Explain why this does nothing
24
+ run: |
25
+ echo "OpenWiki の自動更新は意図的に無効です。"
26
+ echo "更新はコーディングエージェントの中で手動実行してください。"
@@ -90,8 +90,17 @@ docs/local/
90
90
  /docs/obsidian/
91
91
 
92
92
  # docsweep 実行時の生成物(スキャン結果・履歴)
93
- INDEX.md
94
- INDEX.json
93
+ #
94
+ # 先頭の `/` はリポジトリ直下だけに限定するためで、これが無いと**あらゆる深さの
95
+ # `index.md` が黙って落ちる**。Windows と macOS は既定で core.ignorecase=true なので
96
+ # `INDEX.md` が `index.md` に一致し、スラッシュを含まないパターンは任意の階層へ届く。
97
+ # 2026-09-09、OpenWiki が生成した `openwiki/**/index.md` 6 本がこれで脱落しているのを
98
+ # 発見した(17 本のうち 11 本だけがコミットされ、ページを繋ぐ目次だけが全部消えていた)。
99
+ #
100
+ # 実体は `aggregate_index.py` がスキャンルート直下の `.docsweep/` へ書くので、
101
+ # 下の `.docsweep/` だけで既に覆えている。この 2 行は旧レイアウトの名残り。
102
+ /INDEX.md
103
+ /INDEX.json
95
104
  .docsweep/
96
105
 
97
106
  # テスト用 fixture / golden は上の無視パターンより優先して追跡する。
@@ -0,0 +1,12 @@
1
+ {
2
+ "mcpServers": {
3
+ "openwiki": {
4
+ "command": "openwiki",
5
+ "args": [
6
+ "mcp",
7
+ "--host",
8
+ "claude"
9
+ ]
10
+ }
11
+ }
12
+ }
@@ -24,4 +24,17 @@ If any project guidance conflicts, follow `CLAUDE.md`.
24
24
 
25
25
  ## AI 作業共通ルール
26
26
 
27
- - ビルド・コミット禁止、secrets-scan 責務、plan/bugfix/pending md の作成ルール等の AI 作業共通ルールは、各利用者のグローバル AI 設定に従う(作者環境の例: `~/.claude/CLAUDE.md` および `~/.claude/guides/`)
27
+ - ビルド・コミット禁止、secrets-scan 責務、plan/bugfix/pending md の作成ルール等の AI 作業共通ルールは、各利用者のグローバル AI 設定に従う(作者環境の例: `~/.claude/CLAUDE.md` および `~/.claude/guides/`)
28
+
29
+ <!-- OPENWIKI:START -->
30
+
31
+ ## OpenWiki
32
+
33
+ This repository has a generated `openwiki/` evidence index. It is optional just-in-time context, not required startup reading.
34
+
35
+ - Treat source code and tests as authoritative. A brief's unknowns and review items are verification gaps, not automatic requirements.
36
+ - Prefer the narrowest quiet validation that proves the changed behavior. Preserve complete failure output.
37
+
38
+ The scheduled OpenWiki GitHub Actions workflow refreshes the repository wiki. Do not hand-edit generated OpenWiki pages unless explicitly asked; prefer updating source code/docs and letting OpenWiki regenerate.
39
+
40
+ <!-- OPENWIKI:END -->
@@ -3,9 +3,59 @@
3
3
  本ファイルは [Keep a Changelog](https://keepachangelog.com/ja/1.1.0/) の考え方を緩く参照しています。
4
4
  バージョニングは [SemVer](https://semver.org/lang/ja/) に従います。
5
5
 
6
- ## [Unreleased]
6
+ ## [0.6.0] - 2026-09-11
7
7
 
8
- (次の版の変更をここへ書く)
8
+ ### Changed
9
+
10
+ - **`docsweep new` が `owner` を空ではなく実効値で埋めるようにした。** 解決順は
11
+ `~/.docsweep/config.yaml` の `user.name` → `git config user.name` で、どちらも無ければ
12
+ 従来どおり空で出す。**OS ログイン名と `"unknown"` へは落とさない**(端末アカウント名は
13
+ 人の名前ではなく、owner に入ると表記ゆれの種になる。claim 用の `current_owner` は
14
+ 従来の解決順のまま)。`inject --global` が生成する導線にも解決済みの値を埋め込むので、
15
+ AI が手書きする経路でも同じ値になる(`GUIDANCE_VERSION` を 12 へ)。
16
+ 空で出していた頃は、値を決めるのが人か AI の判断になり、リポジトリ単位で別表記へ
17
+ 分岐していた(同一人物に対して GitHub login / 短縮形 / 日本語氏名 / OS ログイン名の
18
+ 4 表記が並存し、近くのファイルを写して伝播していた実測がある)。
19
+
20
+ ### Added
21
+
22
+ - **`docsweep config user.name --from-github`。** `gh api user --jq .login` で GitHub の
23
+ ログインアカウント名を 1 回だけ解決し、`~/.docsweep/config.yaml` へ凍結する。
24
+ GitHub アカウントはリポジトリ単位で上書きできる `git config user.name` より識別子として
25
+ 安定しているが、**md 生成のたびに `gh` は呼ばない**(未導入・未ログイン・オフラインで
26
+ 生成結果が変わらないようにするため)。取得に失敗したときは何も書かずに終了する。
27
+ - **owner の既定値をプロジェクトの `.docsweep.yaml` の `user.name` で上書きできるようにした。**
28
+ 設定の合成自体は以前からあり(グローバル → プロジェクトの順)、owner の解決だけが
29
+ グローバルを直接読んでいたのを合成結果に合わせた。複数人の登録簿を持つリポジトリでは
30
+ owner を各人の安定 key に揃えたいことがあり、グローバル 1 個の値を全リポジトリへ
31
+ 押し付けると、そこだけ生成のたびにずれ続ける。`capture` 経由の下書きにも同じ owner を
32
+ 載せるので、**md の生まれ方(`new` / `capture`)で owner が変わらない。**
33
+ - **`doctor` が `.docsweep/` の Git ignore 漏れを検出するようになった。** `.docsweep/state.json`
34
+ は実行時ファイルだが、採用側の `.gitignore` にその記述が無いことがある(実地調査した 8 リポ中
35
+ 3 リポが該当)。ignore 漏れは WARN、追跡済み(tracked)は ERROR として報告する。`.docsweep/`
36
+ が無いリポには何も言わない。**既存利用者は次回の `doctor` 実行で新しい WARN が増えることがある。**
37
+ `templates/.docsweep.yaml` と `templates/CLAUDE.md` にも該当の記述を追記した。
38
+
39
+ ### Fixed
40
+
41
+ - **`closeout-check` が「失敗が無い」という記述そのものを失敗の言及として扱い、plan を
42
+ 閉じられなくしていた。** `エラーが無い` `エラーは出ておらず` のように助詞が `は` 以外の
43
+ 否定形が救済されず、`not_ready` の blocker になっていた。検証結果を正直に書くほど
44
+ closeout できない状態だった。
45
+ - **`closeout-check` が仕様説明の語や引用中の TODO を未完了として誤検出していた。**
46
+ `エラー文面での改修` のような名詞としての失敗語や、バッククォート内の `` `<TODO>` ``
47
+ を blocker として扱っていた。確信の持てない検出は blocker ではなく人の確認
48
+ (manual check)へ落とすようにした。**検出そのものは 1 つも減っていない。** verdict は
49
+ `not_ready` ではなく `manual_review_required` になる。あわせて archive へ移送済みの
50
+ 親 plan を basename で解決し、`parent_moved` の警告を出すようにした。
51
+ - **`promote --dry-run` が本実行では移送できない文書まで移送できると予告していた。**
52
+ 種別と状態の検証が本実行側にしか無く、下見が実態と食い違っていた(実測で予告 9 件に
53
+ 対し実移送 7 件。`pending` 種別は `done` へ遷移できないのが原因)。失敗があるときの
54
+ 要約行が「対象なし」と表示される不具合もあわせて直した。
55
+ - **pre-commit hook が archive 移送後の `related` ファイル名参照を「存在しない」と誤って
56
+ 落としていた。** `related` の正本はファイル名だが、hook に basename 探索が無かった。
57
+ 規約どおり書くと移送のたびに落ちる食い違いがあった。あわせて `templates/CLAUDE.md` と
58
+ `docs/conventions.md` へ参照表記の正本を明記した。
9
59
 
10
60
  ## [0.5.0] - 2026-09-04
11
61
 
@@ -126,3 +126,11 @@ git config core.hooksPath .githooks
126
126
  (作者環境ではグローバル AI 設定の `release` skill を起動し、Python パッケージなので
127
127
  `pypi-publish` のタグ前チェックリストも通す)。release md にはそのリリース固有の引数・事情だけを書き、
128
128
  **共通の前提チェックを md へ写経しない**(写経すると正本が 2 つになり、片方だけ古くなる)。
129
+
130
+ <!-- OPENWIKI:START -->
131
+
132
+ ## OpenWiki
133
+
134
+ See [AGENTS.md](AGENTS.md) for OpenWiki agent instructions.
135
+
136
+ <!-- OPENWIKI:END -->
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: docsweep
3
- Version: 0.5.0
3
+ Version: 0.6.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
@@ -73,6 +73,9 @@ AI コーディングツール(Claude Code / Codex 等)が生成する `plan
73
73
  H1 ステータスラベル(`[完了]` / `[計画]` / `[廃止]` 等)を機械的に読み取り、完了を各プロジェクトの
74
74
  `archive/` へ自動移送し、陳腐化を「要判断」フラグで可視化し、複数プロジェクトを横断 INDEX で一望できます。
75
75
 
76
+ **何が嬉しいのか・どう使うのかを画面付きで見る**:
77
+ [docsweep の使い方](https://ishizakahiroshi.com/articles/docsweep/usage.html)
78
+
76
79
  ## OKF(Open Knowledge Format)v0.2 対応
77
80
 
78
81
  docsweep は [OKF v0.2 の公式仕様](https://github.com/GoogleCloudPlatform/knowledge-catalog/blob/main/okf/SPEC.md)
@@ -11,6 +11,9 @@ labels such as `[完了]` / `[計画]` / `[廃止]` are supported out of the box
11
11
  completed docs into each project's `archive/`, surfaces stale ones with a "needs decision" flag,
12
12
  and gives you a cross-project INDEX at a glance.
13
13
 
14
+ **See what it buys you, with screenshots**:
15
+ [How to use docsweep](https://ishizakahiroshi.com/articles/docsweep/usage.html) (Japanese only)
16
+
14
17
  ## OKF (Open Knowledge Format) v0.2 support
15
18
 
16
19
  docsweep follows the [official OKF v0.2 specification](https://github.com/GoogleCloudPlatform/knowledge-catalog/blob/main/okf/SPEC.md)
@@ -8,6 +8,9 @@ AI コーディングツール(Claude Code / Codex 等)が生成する `plan
8
8
  H1 ステータスラベル(`[完了]` / `[計画]` / `[廃止]` 等)を機械的に読み取り、完了を各プロジェクトの
9
9
  `archive/` へ自動移送し、陳腐化を「要判断」フラグで可視化し、複数プロジェクトを横断 INDEX で一望できます。
10
10
 
11
+ **何が嬉しいのか・どう使うのかを画面付きで見る**:
12
+ [docsweep の使い方](https://ishizakahiroshi.com/articles/docsweep/usage.html)
13
+
11
14
  ## OKF(Open Knowledge Format)v0.2 対応
12
15
 
13
16
  docsweep は [OKF v0.2 の公式仕様](https://github.com/GoogleCloudPlatform/knowledge-catalog/blob/main/okf/SPEC.md)
@@ -343,6 +343,28 @@ python -m docsweep closeout-check \
343
343
  `<parent-stem>_c<N>_<short>.md` に一致し、child の `related` が親を指す場合だけ inferred child です。
344
344
  親の `related` だけでは child と確定しません。
345
345
 
346
+ ### 参照の書き方(`related` と `docsweep_parent`)
347
+
348
+ **`related` にはファイル名だけを書きます。パスを書きません。**
349
+
350
+ 理由は docsweep の仕事そのものにあります。docsweep は完了した md を `archive/` へ
351
+ 移送するツールなので、**参照先はいずれ必ず動きます**。パスで書いた参照は、その移送の
352
+ たびに切れます。`archive/v0.5.x/plan_x.md` のように移送後のパスへ直しても、
353
+ 次の移送でまた切れます。ファイル名で書けば、どこへ移っても同じ名前で見つかります。
354
+
355
+ 同名の md が複数あるときだけ、曖昧さを解くためにパスを併記してください。
356
+
357
+ **他プロジェクトの md は `related` に書きません。** docsweep の参照解決はプロジェクト
358
+ 境界の内側で完結します。境界を越える参照は `related` では表現できないので、
359
+ 本文へ書いてください。
360
+
361
+ `docsweep_parent` だけは repo-relative path が正本です。親子は「関連」ではなく
362
+ 構造なので、曖昧さを許さない形にしています。参照先が `archive/` へ移送された場合、
363
+ `closeout-check` は同じファイル名の md が走査対象にちょうど 1 件だけあれば
364
+ それを採用し、`parent_moved` の警告を出します。解決はしますが黙って直しはしないので、
365
+ 警告が出たら参照を更新してください。2 件以上見つかったときは推測せず
366
+ `ambiguous_parent` で止まります。
367
+
346
368
  ---
347
369
 
348
370
  ## 配置先
@@ -0,0 +1,191 @@
1
+ ---
2
+ title: "docsweep を OKF(Open Knowledge Format)互換にした話"
3
+ emoji: "🧹"
4
+ type: "tech"
5
+ topics: ["docsweep", "okf", "ai", "claude", "codex"]
6
+ published: false
7
+ ---
8
+
9
+ > **[取りやめ] 2026-09-11・この下書きは公開しない。**
10
+ >
11
+ > 内容が現行の docsweep と食い違っているため。中心主題である frontmatter の形が
12
+ > 変わっており、本文の例は `status: planned` のように **docsweep の状態値を OKF の
13
+ > `status` 欄に入れる旧形式**のまま。現行は OKF ライフサイクルの `status: draft` と
14
+ > docsweep 作業状態の `docsweep_state: planned` に分かれている。
15
+ > 直すには例と説明をほぼ全面的に書き直すことになり、それは別記事を書くのと同じ。
16
+ >
17
+ > `docsweep export --okf` と pre-commit hook は現在も存在する(2026-09-11 確認)。
18
+ > 機能が消えたのではなく、**記事の説明が追いつかなくなった**という状態。
19
+ >
20
+ > 消さずに残すのは、当時どう考えていたかの記録として意味があるため。
21
+ > 再開するなら新しい下書きから起こす。この md は更新しない。
22
+
23
+ ## TL;DR
24
+
25
+ - AI コーディングツール(Claude Code / Codex 等)が生成する `plan_*.md` / `bugfix_*.md` /
26
+ `pending_*.md` の蓄積・陳腐化を片付ける拙作 OSS [docsweep](https://github.com/ishizakahiroshi/docsweep)
27
+ に、Google Cloud が 2026-06 に提案した [**OKF(Open Knowledge Format)**](https://zenn.dev/knowledgesense/articles/14a874a9f423bb)
28
+ の考え方を取り込みました。
29
+ - md 冒頭の YAML frontmatter で `type` / `status` / `tags` / `owner` / `review_status` /
30
+ `related` / `last_reviewed` を機械可読化。**H1 ステータスラベル運用は廃止せず併用**で
31
+ 後方互換 100%。
32
+ - 「docsweep を抜けても md が腐らない」を実演する `docsweep export --okf`(OKF 互換 zip
33
+ エクスポート)と、frontmatter 不整合をコミット時に止める pre-commit hook も同梱しました。
34
+
35
+ ## なぜ OKF を取り込んだか
36
+
37
+ docsweep は元々、H1 タイトル先頭の `[完了]` / `[計画]` / `[廃止]` というステータスラベルを
38
+ 正規表現で読み取って archive 自動移送する設計でした。これは「md を開いた瞬間に状態が見える」
39
+ という人間向けの強みがある一方、**docsweep を入れていない別ツール(別の AI、別のチーム)から
40
+ 見ると独自フォーマット**でした。
41
+
42
+ OKF は同じ問題意識を持つベンダー非依存フォーマットで、`type` / `status` / `related` を
43
+ frontmatter で機械可読化する考え方が中心です。これを取り込めば:
44
+
45
+ 1. docsweep を抜けても md が OKF として読み続けられる(ロックインしない)
46
+ 2. `tags` / `owner` / `review_status` / `last_reviewed` が増えるので triage の絞り込みや
47
+ **陳腐化の前倒し検知**(今は `[完了]` 後の archive しかできない=事後)ができる
48
+ 3. AI ツール側が OKF を理解している前提なら、docsweep 専用プロンプトを噛まさなくても
49
+ 状況が伝わる
50
+
51
+ ただし OKF の「ルール最小」思想に **完全準拠はしませんでした**。理由は 2 つ:
52
+
53
+ - docsweep は archive 自動化のために `type` 集合(plan / bugfix / pending)と
54
+ `status` 語彙を固定したい。OKF より少しだけ強い規約を持つことを選んだ
55
+ - H1 ステータスラベル運用を廃止しない。md を開いた瞬間に状態が見える価値は捨てない。
56
+ frontmatter は併用(frontmatter があればそちらを優先、無ければ H1 へフォールバック)
57
+
58
+ ## 採用後の使い心地
59
+
60
+ ### 新規 md は frontmatter 付きで生まれてくる
61
+
62
+ ```bash
63
+ $ python -m docsweep new plan auth-refactor
64
+ ```
65
+
66
+ ```markdown
67
+ ---
68
+ type: plan
69
+ status: planned
70
+ tags: []
71
+ owner:
72
+ review_status: draft
73
+ related: []
74
+ last_reviewed: 2026-06-29
75
+ due: 2026-07-06
76
+ ---
77
+
78
+ # [計画] auth-refactor
79
+ ```
80
+
81
+ ### 既存 md は触らなくても動く(後方互換 100%)
82
+
83
+ frontmatter なしで運用してきた既存 plan は何もしなくても動き続けます。
84
+ 状態モデルの正本は
85
+ [`docsweep/states.py`](https://github.com/ishizakahiroshi/docsweep/blob/main/docsweep/states.py)
86
+ で、H1 ステータスラベルの読み取りはそのまま残してあります。
87
+ 一括で OKF 互換に揃えたい場合だけ:
88
+
89
+ ```bash
90
+ python -m docsweep migrate-frontmatter --dry-run # 差分を確認
91
+ python -m docsweep migrate-frontmatter --apply # H1 ラベル温存で挿入
92
+ python -m docsweep fix-related --apply # 片側 related を双方向化
93
+ ```
94
+
95
+ ### 陳腐化の前倒し検知
96
+
97
+ `review_status` + `last_reviewed` で「[完了] になる前」の陳腐化を拾えます:
98
+
99
+ ```bash
100
+ $ python -m docsweep stale
101
+ stale: 3 件
102
+ [draft] +20d (>14) many-ai-cli/docs/local/plan_x.md
103
+ [review] +9d (>7) docsweep/docs/local/plan_y.md last_reviewed=2026-06-15
104
+ [published] +95d (>90) ...
105
+ ```
106
+
107
+ しきい値は `.docsweep.yaml` で上書き可能です(`draft` 14 日 / `review` 7 日 /
108
+ `published` 90 日が既定)。
109
+
110
+ ### tag / owner 軸での絞り込み
111
+
112
+ ```bash
113
+ python -m docsweep triage --tag auth --show owner
114
+ python -m docsweep find --owner me --status 実行中
115
+ ```
116
+
117
+ ### related の逆参照と AI 連携
118
+
119
+ ```bash
120
+ python -m docsweep show plan_auth-refactor.md
121
+ # 対象: ...
122
+ # related (forward): 2 件
123
+ # -> [計画] plan plan_oauth-migration.md
124
+ # -> [対応中] bugfix bugfix_token-expiry_2026-06-15.md
125
+ # 逆参照 (backref): 1 件
126
+ # <- [完了] plan plan_session-store.md
127
+ ```
128
+
129
+ ```bash
130
+ python -m docsweep context plan_auth-refactor.md --clipboard
131
+ # → 本文 + 親 plan の概要 + related の bugfix/pending の要約をクリップボードへ
132
+ # → AI チャットにペーストすればコンテキスト 1 hop で渡る
133
+ ```
134
+
135
+ ## `docsweep export --okf`
136
+
137
+ 「docsweep を抜けても md が腐らない」を実演するためのコマンドです:
138
+
139
+ ```bash
140
+ python -m docsweep export --okf
141
+ # OKF export: 42 files -> ~/docsweep-okf-2026-06-29.zip
142
+ ```
143
+
144
+ zip の中身:
145
+
146
+ ```
147
+ docsweep-okf-2026-06-29.zip
148
+ ├─ okf-manifest.json # OKF 互換語彙との対応表
149
+ ├─ many-ai-cli/docs/local/plan_xxx.md
150
+ ├─ docsweep/docs/local/bugfix_yyy_2026-06-29.md
151
+ └─ ...
152
+ ```
153
+
154
+ `okf-manifest.json` には docsweep 内部 state key と OKF status 値の対応表
155
+ (`planned → draft` / `in-progress → active` / `watching → active` / `done → done` /
156
+ `discarded → discarded` / `pending → deferred`)が入るので、別ツールがこれを読めば
157
+ 意味が通る形で再構成できます。
158
+
159
+ 詳細は [docs/okf-mapping.md](https://github.com/ishizakahiroshi/docsweep/blob/main/docs/okf-mapping.md) と
160
+ [docs/okf-export-format.md](https://github.com/ishizakahiroshi/docsweep/blob/main/docs/okf-export-format.md)
161
+ を参照。
162
+
163
+ ## frontmatter 不整合は pre-commit で止める
164
+
165
+ 採用者が opt-in で配置できる pre-commit hook も同梱しました:
166
+
167
+ ```bash
168
+ bash templates/install-hooks.sh # POSIX
169
+ pwsh templates/install-hooks.ps1 # Windows
170
+ ```
171
+
172
+ hook は以下を検知してコミットを止めます:
173
+
174
+ - `type:` が plan / bugfix / pending 以外
175
+ - `status:` が許容値域外
176
+ - `review_status:` が draft / review / published 以外
177
+ - `related:` で参照される .md が存在しない
178
+
179
+ docsweep 本体がインストールされていない環境でも動くスタンドアロン Python 実装にしてあるので、
180
+ 「採用してるけど docsweep は別マシン」みたいなチーム構成でも機能します。
181
+
182
+ ## まとめ
183
+
184
+ - docsweep は **OKF 互換のサブセット**(OKF として読み込み可能だが docsweep として
185
+ 読むには追加制約あり)になりました
186
+ - 既存ユーザーは何もしなくても動き続けます(後方互換 100%)
187
+ - `pip install docsweep` または `pip install 'docsweep[all]'` でどうぞ
188
+ - リポ: <https://github.com/ishizakahiroshi/docsweep>
189
+
190
+ OKF を提案した Google Cloud と、考え方を整理した Knowledge Sense の
191
+ [紹介記事](https://zenn.dev/knowledgesense/articles/14a874a9f423bb) に感謝。
@@ -1,3 +1,3 @@
1
1
  """docsweep — AI 作業ドキュメント(plan/bugfix/pending)の横断スキャン・判定・archive 移送ツール。"""
2
2
 
3
- __version__ = "0.5.0"
3
+ __version__ = "0.6.0"
@@ -55,6 +55,7 @@ def extract_drafts_heuristic(
55
55
  max_drafts: int = 5,
56
56
  offset_days: dict[str, int] | None = None,
57
57
  template_sections: Mapping[str, tuple[TemplateSection, ...]] | None = None,
58
+ owner: str | None = None,
58
59
  ) -> list[Draft]:
59
60
  """LLM 不要のヒューリスティック抽出。"""
60
61
  drafts: list[Draft] = []
@@ -72,6 +73,7 @@ def extract_drafts_heuristic(
72
73
  project=project,
73
74
  offset_days=offset_days,
74
75
  template_sections=template_sections,
76
+ owner=owner,
75
77
  ))
76
78
  if len(drafts) >= max_drafts:
77
79
  break
@@ -25,6 +25,7 @@ class LLMRequest:
25
25
  max_drafts: int = 5
26
26
  offset_days: dict[str, int] | None = None
27
27
  template_sections: Mapping[str, tuple[TemplateSection, ...]] | None = None
28
+ owner: str | None = None
28
29
 
29
30
 
30
31
  class LLMClient(Protocol):
@@ -66,6 +67,7 @@ class MockLLM:
66
67
  project=request.project_hint,
67
68
  offset_days=request.offset_days,
68
69
  template_sections=request.template_sections,
70
+ owner=request.owner,
69
71
  ))
70
72
  if len(drafts) >= request.max_drafts:
71
73
  break
@@ -111,6 +113,7 @@ def _make_draft(
111
113
  project: str | None,
112
114
  offset_days: dict[str, int] | None = None,
113
115
  template_sections: Mapping[str, tuple[TemplateSection, ...]] | None = None,
116
+ owner: str | None = None,
114
117
  ) -> Draft:
115
118
  from .models import Draft as _Draft
116
119
 
@@ -128,6 +131,7 @@ def _make_draft(
128
131
  front = okf_frontmatter(
129
132
  kind,
130
133
  offset_days=DEFAULT_DUE_OFFSET_DAYS if offset_days is None else offset_days,
134
+ owner=owner,
131
135
  )
132
136
  body = front + _render_body_seed(
133
137
  kind, title, body_seed, template_sections=template_sections
@@ -116,6 +116,7 @@ def extract_drafts(
116
116
  conversation=text, project_hint=project, max_drafts=max_drafts,
117
117
  offset_days=effective_config.due_default_offset_days,
118
118
  template_sections=effective_config.template_sections,
119
+ owner=_capture_owner(effective_config),
119
120
  )
120
121
  return client.extract(request)
121
122
 
@@ -125,9 +126,20 @@ def extract_drafts(
125
126
  max_drafts=max_drafts,
126
127
  offset_days=effective_config.due_default_offset_days,
127
128
  template_sections=effective_config.template_sections,
129
+ owner=_capture_owner(effective_config),
128
130
  )
129
131
 
130
132
 
133
+ def _capture_owner(effective_config: Config) -> str:
134
+ """capture 経由でも ``docsweep new`` と同じ owner を載せる。
135
+
136
+ md の生まれ方で owner が変わると、同じプロジェクトの中で表記が割れる。
137
+ """
138
+ from ..services.frontmatter import default_doc_owner
139
+
140
+ return default_doc_owner(config=effective_config)
141
+
142
+
131
143
  def save_drafts(
132
144
  drafts: list[Draft],
133
145
  *,
@@ -108,6 +108,26 @@ def cmd_config(args: argparse.Namespace) -> int:
108
108
  if not key:
109
109
  print(f"使い方: docsweep config <key> [<value>] / --list / --get KEY / --unset KEY (許可キー: {sorted(SETTABLE_KEYS)})")
110
110
  return 2
111
+ if getattr(args, "from_github", False):
112
+ # GitHub アカウントは 1 つしかなく、リポジトリ単位で上書きできる git config user.name より
113
+ # 識別子として安定している。ただし解決はここ 1 回だけで、生成のたびに gh は叩かない。
114
+ if key != "user.name":
115
+ print("--from-github は user.name にだけ使えます", file=sys.stderr)
116
+ return 2
117
+ if value is not None:
118
+ print("--from-github と値の同時指定はできません", file=sys.stderr)
119
+ return 2
120
+ from ...services.frontmatter import github_login
121
+
122
+ login = github_login()
123
+ if not login:
124
+ print(
125
+ "gh からアカウント名を取得できませんでした(gh 未導入 / 未ログイン / オフライン)。"
126
+ "`gh auth status` を確認するか、値を直接指定してください。",
127
+ file=sys.stderr,
128
+ )
129
+ return 1
130
+ value = login
111
131
  if value is None:
112
132
  try:
113
133
  v = get_user_setting(key)
@@ -220,7 +220,11 @@ def cmd_promote(args: argparse.Namespace) -> int:
220
220
  print(json.dumps(payload, ensure_ascii=False, indent=2))
221
221
  else:
222
222
  if not moved:
223
- if due_expired_only:
223
+ # 失敗が 1 件でもあるときに「対象なし」と言ってはいけない。対象はあったが
224
+ # 全部落ちた状態と、そもそも対象が無い状態は、利用者にとって意味が違う。
225
+ if moved.failed:
226
+ print(f"昇格できたファイルなし(対象 {len(moved.failed)} 件がすべて失敗。詳細は下記)")
227
+ elif due_expired_only:
224
228
  print(f"昇格対象なし({args.state} の due 到来ファイルが無い)")
225
229
  else:
226
230
  print(f"昇格対象なし({args.state} のファイルが無い)")
@@ -490,6 +490,10 @@ def build_parser() -> argparse.ArgumentParser:
490
490
  p_config.add_argument("--get", dest="get_key", metavar="KEY", help="指定キーを取得")
491
491
  p_config.add_argument("--unset", dest="unset_key", metavar="KEY", help="指定キーを削除")
492
492
  p_config.add_argument("--list", dest="list_all", action="store_true", help="全キーを表示")
493
+ p_config.add_argument(
494
+ "--from-github", dest="from_github", action="store_true",
495
+ help="値を gh CLI のログインアカウント(gh api user --jq .login)から取って設定する(user.name 専用)",
496
+ )
493
497
  p_config.add_argument("--json", action="store_true")
494
498
 
495
499
  p_activity = sub.add_parser(