wade-cli 1.2.14__tar.gz → 1.2.15__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 (447) hide show
  1. {wade_cli-1.2.14 → wade_cli-1.2.15}/AGENTS.md +6 -0
  2. {wade_cli-1.2.14 → wade_cli-1.2.15}/CHANGELOG.md +6 -0
  3. {wade_cli-1.2.14 → wade_cli-1.2.15}/KNOWLEDGE.ratings.jsonl +16 -0
  4. {wade_cli-1.2.14 → wade_cli-1.2.15}/PKG-INFO +3 -1
  5. {wade_cli-1.2.14 → wade_cli-1.2.15}/README.md +2 -0
  6. {wade_cli-1.2.14 → wade_cli-1.2.15}/docs/dev/architecture.md +12 -1
  7. {wade_cli-1.2.14 → wade_cli-1.2.15}/pyproject.toml +1 -1
  8. {wade_cli-1.2.14 → wade_cli-1.2.15}/src/wade/__init__.py +1 -1
  9. {wade_cli-1.2.14 → wade_cli-1.2.15}/src/wade/git/branch.py +132 -17
  10. {wade_cli-1.2.14 → wade_cli-1.2.15}/src/wade/git/repo.py +3 -2
  11. {wade_cli-1.2.14 → wade_cli-1.2.15}/src/wade/services/implementation_service/draft_pr.py +4 -4
  12. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/e2e/test_implement_work_done_contract.py +40 -0
  13. wade_cli-1.2.15/tests/integration/test_scaffold_retarget.py +366 -0
  14. wade_cli-1.2.15/tests/unit/test_git/test_reset_collision_identity.py +68 -0
  15. {wade_cli-1.2.14 → wade_cli-1.2.15}/uv.lock +1 -1
  16. {wade_cli-1.2.14 → wade_cli-1.2.15}/.gitattributes +0 -0
  17. {wade_cli-1.2.14 → wade_cli-1.2.15}/.github/workflows/auto-version.yml +0 -0
  18. {wade_cli-1.2.14 → wade_cli-1.2.15}/.github/workflows/ci.yml +0 -0
  19. {wade_cli-1.2.14 → wade_cli-1.2.15}/.github/workflows/pr-title-lint.yml +0 -0
  20. {wade_cli-1.2.14 → wade_cli-1.2.15}/.github/workflows/publish.yml +0 -0
  21. {wade_cli-1.2.14 → wade_cli-1.2.15}/.github/workflows/release.yml +0 -0
  22. {wade_cli-1.2.14 → wade_cli-1.2.15}/.gitignore +0 -0
  23. {wade_cli-1.2.14 → wade_cli-1.2.15}/.pre-commit-config.yaml +0 -0
  24. {wade_cli-1.2.14 → wade_cli-1.2.15}/.wade.yml +0 -0
  25. {wade_cli-1.2.14 → wade_cli-1.2.15}/CONTRIBUTING.md +0 -0
  26. {wade_cli-1.2.14 → wade_cli-1.2.15}/KNOWLEDGE.md +0 -0
  27. {wade_cli-1.2.14 → wade_cli-1.2.15}/assets/wade.png +0 -0
  28. {wade_cli-1.2.14 → wade_cli-1.2.15}/docker-compose.e2e.yml +0 -0
  29. {wade_cli-1.2.14 → wade_cli-1.2.15}/docs/dev/crossby-native-planning-checkpoint.md +0 -0
  30. {wade_cli-1.2.14 → wade_cli-1.2.15}/docs/dev/documentation-policies.md +0 -0
  31. {wade_cli-1.2.14 → wade_cli-1.2.15}/docs/dev/extending.md +0 -0
  32. {wade_cli-1.2.14 → wade_cli-1.2.15}/docs/dev/native-cli-plan-verification.md +0 -0
  33. {wade_cli-1.2.14 → wade_cli-1.2.15}/docs/dev/skills-system.md +0 -0
  34. {wade_cli-1.2.14 → wade_cli-1.2.15}/docs/dev/testing.md +0 -0
  35. {wade_cli-1.2.14 → wade_cli-1.2.15}/docs/dev/workflows-and-skills.md +0 -0
  36. {wade_cli-1.2.14 → wade_cli-1.2.15}/install.sh +0 -0
  37. {wade_cli-1.2.14 → wade_cli-1.2.15}/scripts/auto_version.py +0 -0
  38. {wade_cli-1.2.14 → wade_cli-1.2.15}/scripts/changelog.py +0 -0
  39. {wade_cli-1.2.14 → wade_cli-1.2.15}/scripts/check-all.sh +0 -0
  40. {wade_cli-1.2.14 → wade_cli-1.2.15}/scripts/check.sh +0 -0
  41. {wade_cli-1.2.14 → wade_cli-1.2.15}/scripts/fmt.sh +0 -0
  42. {wade_cli-1.2.14 → wade_cli-1.2.15}/scripts/hooks/pre-push +0 -0
  43. {wade_cli-1.2.14 → wade_cli-1.2.15}/scripts/install-hooks.sh +0 -0
  44. {wade_cli-1.2.14 → wade_cli-1.2.15}/scripts/probe_native_plan_handoff.py +0 -0
  45. {wade_cli-1.2.14 → wade_cli-1.2.15}/scripts/release.sh +0 -0
  46. {wade_cli-1.2.14 → wade_cli-1.2.15}/scripts/setup-worktree.sh +0 -0
  47. {wade_cli-1.2.14 → wade_cli-1.2.15}/scripts/test-concurrency.sh +0 -0
  48. {wade_cli-1.2.14 → wade_cli-1.2.15}/scripts/test-e2e-docker.sh +0 -0
  49. {wade_cli-1.2.14 → wade_cli-1.2.15}/scripts/test-e2e.sh +0 -0
  50. {wade_cli-1.2.14 → wade_cli-1.2.15}/scripts/test-live-ai-taskr.sh +0 -0
  51. {wade_cli-1.2.14 → wade_cli-1.2.15}/scripts/test-live-ai.sh +0 -0
  52. {wade_cli-1.2.14 → wade_cli-1.2.15}/scripts/test-live-gh.sh +0 -0
  53. {wade_cli-1.2.14 → wade_cli-1.2.15}/scripts/test.sh +0 -0
  54. {wade_cli-1.2.14 → wade_cli-1.2.15}/src/wade/__main__.py +0 -0
  55. {wade_cli-1.2.14 → wade_cli-1.2.15}/src/wade/cli/__init__.py +0 -0
  56. {wade_cli-1.2.14 → wade_cli-1.2.15}/src/wade/cli/admin.py +0 -0
  57. {wade_cli-1.2.14 → wade_cli-1.2.15}/src/wade/cli/autocomplete.py +0 -0
  58. {wade_cli-1.2.14 → wade_cli-1.2.15}/src/wade/cli/deps_session.py +0 -0
  59. {wade_cli-1.2.14 → wade_cli-1.2.15}/src/wade/cli/hook.py +0 -0
  60. {wade_cli-1.2.14 → wade_cli-1.2.15}/src/wade/cli/implementation_session.py +0 -0
  61. {wade_cli-1.2.14 → wade_cli-1.2.15}/src/wade/cli/knowledge.py +0 -0
  62. {wade_cli-1.2.14 → wade_cli-1.2.15}/src/wade/cli/main.py +0 -0
  63. {wade_cli-1.2.14 → wade_cli-1.2.15}/src/wade/cli/plan_session.py +0 -0
  64. {wade_cli-1.2.14 → wade_cli-1.2.15}/src/wade/cli/review.py +0 -0
  65. {wade_cli-1.2.14 → wade_cli-1.2.15}/src/wade/cli/review_pr_comments_session.py +0 -0
  66. {wade_cli-1.2.14 → wade_cli-1.2.15}/src/wade/cli/session.py +0 -0
  67. {wade_cli-1.2.14 → wade_cli-1.2.15}/src/wade/cli/session_shared.py +0 -0
  68. {wade_cli-1.2.14 → wade_cli-1.2.15}/src/wade/cli/skills.py +0 -0
  69. {wade_cli-1.2.14 → wade_cli-1.2.15}/src/wade/cli/task.py +0 -0
  70. {wade_cli-1.2.14 → wade_cli-1.2.15}/src/wade/cli/worktree.py +0 -0
  71. {wade_cli-1.2.14 → wade_cli-1.2.15}/src/wade/config/__init__.py +0 -0
  72. {wade_cli-1.2.14 → wade_cli-1.2.15}/src/wade/config/loader.py +0 -0
  73. {wade_cli-1.2.14 → wade_cli-1.2.15}/src/wade/config/migrations.py +0 -0
  74. {wade_cli-1.2.14 → wade_cli-1.2.15}/src/wade/config/schema.py +0 -0
  75. {wade_cli-1.2.14 → wade_cli-1.2.15}/src/wade/git/__init__.py +0 -0
  76. {wade_cli-1.2.14 → wade_cli-1.2.15}/src/wade/git/hooks.py +0 -0
  77. {wade_cli-1.2.14 → wade_cli-1.2.15}/src/wade/git/pr.py +0 -0
  78. {wade_cli-1.2.14 → wade_cli-1.2.15}/src/wade/git/stash.py +0 -0
  79. {wade_cli-1.2.14 → wade_cli-1.2.15}/src/wade/git/sync.py +0 -0
  80. {wade_cli-1.2.14 → wade_cli-1.2.15}/src/wade/git/worktree.py +0 -0
  81. {wade_cli-1.2.14 → wade_cli-1.2.15}/src/wade/hooks/__init__.py +0 -0
  82. {wade_cli-1.2.14 → wade_cli-1.2.15}/src/wade/hooks/cli.py +0 -0
  83. {wade_cli-1.2.14 → wade_cli-1.2.15}/src/wade/hooks/policies.py +0 -0
  84. {wade_cli-1.2.14 → wade_cli-1.2.15}/src/wade/logging/__init__.py +0 -0
  85. {wade_cli-1.2.14 → wade_cli-1.2.15}/src/wade/logging/context.py +0 -0
  86. {wade_cli-1.2.14 → wade_cli-1.2.15}/src/wade/logging/setup.py +0 -0
  87. {wade_cli-1.2.14 → wade_cli-1.2.15}/src/wade/models/__init__.py +0 -0
  88. {wade_cli-1.2.14 → wade_cli-1.2.15}/src/wade/models/batch.py +0 -0
  89. {wade_cli-1.2.14 → wade_cli-1.2.15}/src/wade/models/config.py +0 -0
  90. {wade_cli-1.2.14 → wade_cli-1.2.15}/src/wade/models/delegation.py +0 -0
  91. {wade_cli-1.2.14 → wade_cli-1.2.15}/src/wade/models/deps.py +0 -0
  92. {wade_cli-1.2.14 → wade_cli-1.2.15}/src/wade/models/events.py +0 -0
  93. {wade_cli-1.2.14 → wade_cli-1.2.15}/src/wade/models/hooks.py +0 -0
  94. {wade_cli-1.2.14 → wade_cli-1.2.15}/src/wade/models/interactive_plan.py +0 -0
  95. {wade_cli-1.2.14 → wade_cli-1.2.15}/src/wade/models/permission.py +0 -0
  96. {wade_cli-1.2.14 → wade_cli-1.2.15}/src/wade/models/plan_bundle.py +0 -0
  97. {wade_cli-1.2.14 → wade_cli-1.2.15}/src/wade/models/readiness.py +0 -0
  98. {wade_cli-1.2.14 → wade_cli-1.2.15}/src/wade/models/review.py +0 -0
  99. {wade_cli-1.2.14 → wade_cli-1.2.15}/src/wade/models/review_cycle.py +0 -0
  100. {wade_cli-1.2.14 → wade_cli-1.2.15}/src/wade/models/session.py +0 -0
  101. {wade_cli-1.2.14 → wade_cli-1.2.15}/src/wade/models/session_manifest.py +0 -0
  102. {wade_cli-1.2.14 → wade_cli-1.2.15}/src/wade/models/skill.py +0 -0
  103. {wade_cli-1.2.14 → wade_cli-1.2.15}/src/wade/models/task.py +0 -0
  104. {wade_cli-1.2.14 → wade_cli-1.2.15}/src/wade/models/workflow.py +0 -0
  105. {wade_cli-1.2.14 → wade_cli-1.2.15}/src/wade/models/worktree.py +0 -0
  106. {wade_cli-1.2.14 → wade_cli-1.2.15}/src/wade/providers/__init__.py +0 -0
  107. {wade_cli-1.2.14 → wade_cli-1.2.15}/src/wade/providers/_pr_delegate.py +0 -0
  108. {wade_cli-1.2.14 → wade_cli-1.2.15}/src/wade/providers/base.py +0 -0
  109. {wade_cli-1.2.14 → wade_cli-1.2.15}/src/wade/providers/clickup.py +0 -0
  110. {wade_cli-1.2.14 → wade_cli-1.2.15}/src/wade/providers/github.py +0 -0
  111. {wade_cli-1.2.14 → wade_cli-1.2.15}/src/wade/providers/markdown.py +0 -0
  112. {wade_cli-1.2.14 → wade_cli-1.2.15}/src/wade/providers/registry.py +0 -0
  113. {wade_cli-1.2.14 → wade_cli-1.2.15}/src/wade/services/__init__.py +0 -0
  114. {wade_cli-1.2.14 → wade_cli-1.2.15}/src/wade/services/ai_resolution.py +0 -0
  115. {wade_cli-1.2.14 → wade_cli-1.2.15}/src/wade/services/batch_review_service.py +0 -0
  116. {wade_cli-1.2.14 → wade_cli-1.2.15}/src/wade/services/bot_trigger.py +0 -0
  117. {wade_cli-1.2.14 → wade_cli-1.2.15}/src/wade/services/check_service.py +0 -0
  118. {wade_cli-1.2.14 → wade_cli-1.2.15}/src/wade/services/delegation_service.py +0 -0
  119. {wade_cli-1.2.14 → wade_cli-1.2.15}/src/wade/services/deps_service.py +0 -0
  120. {wade_cli-1.2.14 → wade_cli-1.2.15}/src/wade/services/documentation_receipt_service.py +0 -0
  121. {wade_cli-1.2.14 → wade_cli-1.2.15}/src/wade/services/implementation_service/__init__.py +0 -0
  122. {wade_cli-1.2.14 → wade_cli-1.2.15}/src/wade/services/implementation_service/_shared.py +0 -0
  123. {wade_cli-1.2.14 → wade_cli-1.2.15}/src/wade/services/implementation_service/batch.py +0 -0
  124. {wade_cli-1.2.14 → wade_cli-1.2.15}/src/wade/services/implementation_service/bootstrap.py +0 -0
  125. {wade_cli-1.2.14 → wade_cli-1.2.15}/src/wade/services/implementation_service/cleanup.py +0 -0
  126. {wade_cli-1.2.14 → wade_cli-1.2.15}/src/wade/services/implementation_service/core.py +0 -0
  127. {wade_cli-1.2.14 → wade_cli-1.2.15}/src/wade/services/implementation_service/done.py +0 -0
  128. {wade_cli-1.2.14 → wade_cli-1.2.15}/src/wade/services/implementation_service/lifecycle.py +0 -0
  129. {wade_cli-1.2.14 → wade_cli-1.2.15}/src/wade/services/implementation_service/sync.py +0 -0
  130. {wade_cli-1.2.14 → wade_cli-1.2.15}/src/wade/services/implementation_service/usage_tracking.py +0 -0
  131. {wade_cli-1.2.14 → wade_cli-1.2.15}/src/wade/services/init_service/__init__.py +0 -0
  132. {wade_cli-1.2.14 → wade_cli-1.2.15}/src/wade/services/init_service/auth.py +0 -0
  133. {wade_cli-1.2.14 → wade_cli-1.2.15}/src/wade/services/init_service/commands.py +0 -0
  134. {wade_cli-1.2.14 → wade_cli-1.2.15}/src/wade/services/init_service/config_io.py +0 -0
  135. {wade_cli-1.2.14 → wade_cli-1.2.15}/src/wade/services/init_service/manifest.py +0 -0
  136. {wade_cli-1.2.14 → wade_cli-1.2.15}/src/wade/services/init_service/migrations.py +0 -0
  137. {wade_cli-1.2.14 → wade_cli-1.2.15}/src/wade/services/init_service/prompts_ai.py +0 -0
  138. {wade_cli-1.2.14 → wade_cli-1.2.15}/src/wade/services/init_service/prompts_setup.py +0 -0
  139. {wade_cli-1.2.14 → wade_cli-1.2.15}/src/wade/services/init_service/shell.py +0 -0
  140. {wade_cli-1.2.14 → wade_cli-1.2.15}/src/wade/services/interactive_plan_service.py +0 -0
  141. {wade_cli-1.2.14 → wade_cli-1.2.15}/src/wade/services/knowledge_recovery.py +0 -0
  142. {wade_cli-1.2.14 → wade_cli-1.2.15}/src/wade/services/knowledge_search.py +0 -0
  143. {wade_cli-1.2.14 → wade_cli-1.2.15}/src/wade/services/knowledge_service.py +0 -0
  144. {wade_cli-1.2.14 → wade_cli-1.2.15}/src/wade/services/native_plan_service.py +0 -0
  145. {wade_cli-1.2.14 → wade_cli-1.2.15}/src/wade/services/plan_service.py +0 -0
  146. {wade_cli-1.2.14 → wade_cli-1.2.15}/src/wade/services/prompt_delivery.py +0 -0
  147. {wade_cli-1.2.14 → wade_cli-1.2.15}/src/wade/services/review_cycle_service.py +0 -0
  148. {wade_cli-1.2.14 → wade_cli-1.2.15}/src/wade/services/review_delegation_service.py +0 -0
  149. {wade_cli-1.2.14 → wade_cli-1.2.15}/src/wade/services/review_record_service.py +0 -0
  150. {wade_cli-1.2.14 → wade_cli-1.2.15}/src/wade/services/review_service.py +0 -0
  151. {wade_cli-1.2.14 → wade_cli-1.2.15}/src/wade/services/review_settle.py +0 -0
  152. {wade_cli-1.2.14 → wade_cli-1.2.15}/src/wade/services/session_composition_service.py +0 -0
  153. {wade_cli-1.2.14 → wade_cli-1.2.15}/src/wade/services/skill_diagnostics_service.py +0 -0
  154. {wade_cli-1.2.14 → wade_cli-1.2.15}/src/wade/services/skill_invocation_service.py +0 -0
  155. {wade_cli-1.2.14 → wade_cli-1.2.15}/src/wade/services/smart_start.py +0 -0
  156. {wade_cli-1.2.14 → wade_cli-1.2.15}/src/wade/services/task_service.py +0 -0
  157. {wade_cli-1.2.14 → wade_cli-1.2.15}/src/wade/skills/__init__.py +0 -0
  158. {wade_cli-1.2.14 → wade_cli-1.2.15}/src/wade/skills/catalog.py +0 -0
  159. {wade_cli-1.2.14 → wade_cli-1.2.15}/src/wade/skills/discovery.py +0 -0
  160. {wade_cli-1.2.14 → wade_cli-1.2.15}/src/wade/skills/doc_targets.py +0 -0
  161. {wade_cli-1.2.14 → wade_cli-1.2.15}/src/wade/skills/installer.py +0 -0
  162. {wade_cli-1.2.14 → wade_cli-1.2.15}/src/wade/skills/materializer.py +0 -0
  163. {wade_cli-1.2.14 → wade_cli-1.2.15}/src/wade/skills/pointer.py +0 -0
  164. {wade_cli-1.2.14 → wade_cli-1.2.15}/src/wade/skills/resolver.py +0 -0
  165. {wade_cli-1.2.14 → wade_cli-1.2.15}/src/wade/skills/validation.py +0 -0
  166. {wade_cli-1.2.14 → wade_cli-1.2.15}/src/wade/ui/__init__.py +0 -0
  167. {wade_cli-1.2.14 → wade_cli-1.2.15}/src/wade/ui/console.py +0 -0
  168. {wade_cli-1.2.14 → wade_cli-1.2.15}/src/wade/ui/prompts.py +0 -0
  169. {wade_cli-1.2.14 → wade_cli-1.2.15}/src/wade/utils/__init__.py +0 -0
  170. {wade_cli-1.2.14 → wade_cli-1.2.15}/src/wade/utils/body_markers.py +0 -0
  171. {wade_cli-1.2.14 → wade_cli-1.2.15}/src/wade/utils/clipboard.py +0 -0
  172. {wade_cli-1.2.14 → wade_cli-1.2.15}/src/wade/utils/conventional.py +0 -0
  173. {wade_cli-1.2.14 → wade_cli-1.2.15}/src/wade/utils/filelock.py +0 -0
  174. {wade_cli-1.2.14 → wade_cli-1.2.15}/src/wade/utils/gitref.py +0 -0
  175. {wade_cli-1.2.14 → wade_cli-1.2.15}/src/wade/utils/http.py +0 -0
  176. {wade_cli-1.2.14 → wade_cli-1.2.15}/src/wade/utils/install.py +0 -0
  177. {wade_cli-1.2.14 → wade_cli-1.2.15}/src/wade/utils/knowledge_file.py +0 -0
  178. {wade_cli-1.2.14 → wade_cli-1.2.15}/src/wade/utils/markdown.py +0 -0
  179. {wade_cli-1.2.14 → wade_cli-1.2.15}/src/wade/utils/markers.py +0 -0
  180. {wade_cli-1.2.14 → wade_cli-1.2.15}/src/wade/utils/paths.py +0 -0
  181. {wade_cli-1.2.14 → wade_cli-1.2.15}/src/wade/utils/plan_validation.py +0 -0
  182. {wade_cli-1.2.14 → wade_cli-1.2.15}/src/wade/utils/process.py +0 -0
  183. {wade_cli-1.2.14 → wade_cli-1.2.15}/src/wade/utils/runtime_env.py +0 -0
  184. {wade_cli-1.2.14 → wade_cli-1.2.15}/src/wade/utils/safe_state.py +0 -0
  185. {wade_cli-1.2.14 → wade_cli-1.2.15}/src/wade/utils/slug.py +0 -0
  186. {wade_cli-1.2.14 → wade_cli-1.2.15}/src/wade/utils/stale_base.py +0 -0
  187. {wade_cli-1.2.14 → wade_cli-1.2.15}/src/wade/utils/templates.py +0 -0
  188. {wade_cli-1.2.14 → wade_cli-1.2.15}/src/wade/utils/terminal.py +0 -0
  189. {wade_cli-1.2.14 → wade_cli-1.2.15}/src/wade/utils/token_usage_markdown.py +0 -0
  190. {wade_cli-1.2.14 → wade_cli-1.2.15}/src/wade/utils/update_check.py +0 -0
  191. {wade_cli-1.2.14 → wade_cli-1.2.15}/templates/agents-pointer.md +0 -0
  192. {wade_cli-1.2.14 → wade_cli-1.2.15}/templates/hooks/commit-msg +0 -0
  193. {wade_cli-1.2.14 → wade_cli-1.2.15}/templates/hooks/pre-commit +0 -0
  194. {wade_cli-1.2.14 → wade_cli-1.2.15}/templates/hooks/pre-push +0 -0
  195. {wade_cli-1.2.14 → wade_cli-1.2.15}/templates/prompts/deps-analysis.md +0 -0
  196. {wade_cli-1.2.14 → wade_cli-1.2.15}/templates/prompts/implement-context.md +0 -0
  197. {wade_cli-1.2.14 → wade_cli-1.2.15}/templates/prompts/plan-session.md +0 -0
  198. {wade_cli-1.2.14 → wade_cli-1.2.15}/templates/prompts/review-batch.md +0 -0
  199. {wade_cli-1.2.14 → wade_cli-1.2.15}/templates/prompts/review-code.md +0 -0
  200. {wade_cli-1.2.14 → wade_cli-1.2.15}/templates/prompts/review-finding-admission.md +0 -0
  201. {wade_cli-1.2.14 → wade_cli-1.2.15}/templates/prompts/review-plan.md +0 -0
  202. {wade_cli-1.2.14 → wade_cli-1.2.15}/templates/prompts/review-pr-comments.md +0 -0
  203. {wade_cli-1.2.14 → wade_cli-1.2.15}/templates/prompts/review-result-batch.md +0 -0
  204. {wade_cli-1.2.14 → wade_cli-1.2.15}/templates/prompts/review-result-code.md +0 -0
  205. {wade_cli-1.2.14 → wade_cli-1.2.15}/templates/prompts/review-result-deps.md +0 -0
  206. {wade_cli-1.2.14 → wade_cli-1.2.15}/templates/prompts/review-result-full-branch.md +0 -0
  207. {wade_cli-1.2.14 → wade_cli-1.2.15}/templates/prompts/review-result-implementation.md +0 -0
  208. {wade_cli-1.2.14 → wade_cli-1.2.15}/templates/prompts/review-result-plan.md +0 -0
  209. {wade_cli-1.2.14 → wade_cli-1.2.15}/templates/prompts/review-result-pr-comments.md +0 -0
  210. {wade_cli-1.2.14 → wade_cli-1.2.15}/templates/prompts/session-start-implement.md +0 -0
  211. {wade_cli-1.2.14 → wade_cli-1.2.15}/templates/prompts/session-start-plan.md +0 -0
  212. {wade_cli-1.2.14 → wade_cli-1.2.15}/templates/prompts/session-start-review.md +0 -0
  213. {wade_cli-1.2.14 → wade_cli-1.2.15}/templates/setup-worktree.sh.example +0 -0
  214. {wade_cli-1.2.14 → wade_cli-1.2.15}/templates/skills/batch-review/SKILL.md +0 -0
  215. {wade_cli-1.2.14 → wade_cli-1.2.15}/templates/skills/code-review/SKILL.md +0 -0
  216. {wade_cli-1.2.14 → wade_cli-1.2.15}/templates/skills/dependency-analysis/SKILL.md +0 -0
  217. {wade_cli-1.2.14 → wade_cli-1.2.15}/templates/skills/feedback-fix-review/SKILL.md +0 -0
  218. {wade_cli-1.2.14 → wade_cli-1.2.15}/templates/skills/implementation/SKILL.md +0 -0
  219. {wade_cli-1.2.14 → wade_cli-1.2.15}/templates/skills/knowledge/SKILL.md +0 -0
  220. {wade_cli-1.2.14 → wade_cli-1.2.15}/templates/skills/plan-review/SKILL.md +0 -0
  221. {wade_cli-1.2.14 → wade_cli-1.2.15}/templates/skills/planning/SKILL.md +0 -0
  222. {wade_cli-1.2.14 → wade_cli-1.2.15}/templates/skills/review-comments/SKILL.md +0 -0
  223. {wade_cli-1.2.14 → wade_cli-1.2.15}/templates/skills/task/SKILL.md +0 -0
  224. {wade_cli-1.2.14 → wade_cli-1.2.15}/templates/skills/task/examples.md +0 -0
  225. {wade_cli-1.2.14 → wade_cli-1.2.15}/templates/skills/task/plan-format.md +0 -0
  226. {wade_cli-1.2.14 → wade_cli-1.2.15}/templates/skills/task/reference/session-summary-format.md +0 -0
  227. {wade_cli-1.2.14 → wade_cli-1.2.15}/templates/statusline-command.sh +0 -0
  228. {wade_cli-1.2.14 → wade_cli-1.2.15}/templates/workflows/_partials/completion.md +0 -0
  229. {wade_cli-1.2.14 → wade_cli-1.2.15}/templates/workflows/_partials/documentation-step.md +0 -0
  230. {wade_cli-1.2.14 → wade_cli-1.2.15}/templates/workflows/_partials/interaction-policy.md +0 -0
  231. {wade_cli-1.2.14 → wade_cli-1.2.15}/templates/workflows/_partials/knowledge-step.md +0 -0
  232. {wade_cli-1.2.14 → wade_cli-1.2.15}/templates/workflows/_partials/review-budget.md +0 -0
  233. {wade_cli-1.2.14 → wade_cli-1.2.15}/templates/workflows/implementation.md +0 -0
  234. {wade_cli-1.2.14 → wade_cli-1.2.15}/templates/workflows/plan.md +0 -0
  235. {wade_cli-1.2.14 → wade_cli-1.2.15}/templates/workflows/reference/documentation.md +0 -0
  236. {wade_cli-1.2.14 → wade_cli-1.2.15}/templates/workflows/reference/new-plan.md +0 -0
  237. {wade_cli-1.2.14 → wade_cli-1.2.15}/templates/workflows/reference/plan-output-contract.md +0 -0
  238. {wade_cli-1.2.14 → wade_cli-1.2.15}/templates/workflows/reference/pr-summary-format.md +0 -0
  239. {wade_cli-1.2.14 → wade_cli-1.2.15}/templates/workflows/reference/recovery.md +0 -0
  240. {wade_cli-1.2.14 → wade_cli-1.2.15}/templates/workflows/reference/session-summary-format.md +0 -0
  241. {wade_cli-1.2.14 → wade_cli-1.2.15}/templates/workflows/reference/tracking-issues.md +0 -0
  242. {wade_cli-1.2.14 → wade_cli-1.2.15}/templates/workflows/review-pr-comments.md +0 -0
  243. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/__init__.py +0 -0
  244. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/concurrency/__init__.py +0 -0
  245. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/concurrency/test_batch_multi_pr.py +0 -0
  246. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/concurrency/test_knowledge_merge.py +0 -0
  247. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/concurrency/test_lock_retry.py +0 -0
  248. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/concurrency/test_stash_race.py +0 -0
  249. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/conftest.py +0 -0
  250. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/e2e/__init__.py +0 -0
  251. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/e2e/_support.py +0 -0
  252. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/e2e/conftest.py +0 -0
  253. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/e2e/mock_gh_script.py +0 -0
  254. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/e2e/test_admin_contract.py +0 -0
  255. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/e2e/test_check_contract.py +0 -0
  256. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/e2e/test_knowledge_contract.py +0 -0
  257. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/e2e/test_mock_gh_contract.py +0 -0
  258. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/e2e/test_plan_contract.py +0 -0
  259. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/e2e/test_review_contract.py +0 -0
  260. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/e2e/test_smart_start_contract.py +0 -0
  261. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/e2e/test_task_contract.py +0 -0
  262. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/e2e/test_work_sync_list_contract.py +0 -0
  263. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/fixtures/live/taskr_header_hi_body.md +0 -0
  264. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/fixtures/live/taskr_header_howdy_body.md +0 -0
  265. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/fixtures/transcripts/claude_session.txt +0 -0
  266. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/fixtures/transcripts/codex_session.txt +0 -0
  267. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/fixtures/transcripts/copilot_session.txt +0 -0
  268. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/fixtures/transcripts/generic_session.txt +0 -0
  269. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/integration/__init__.py +0 -0
  270. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/integration/test_auto_version.py +0 -0
  271. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/integration/test_autostash.py +0 -0
  272. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/integration/test_check.py +0 -0
  273. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/integration/test_dynamic_skill_sessions.py +0 -0
  274. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/integration/test_git.py +0 -0
  275. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/integration/test_implementation_lifecycle.py +0 -0
  276. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/integration/test_init.py +0 -0
  277. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/integration/test_knowledge.py +0 -0
  278. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/integration/test_markdown_provider.py +0 -0
  279. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/integration/test_skill_context_budget.py +0 -0
  280. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/integration/test_skill_install.py +0 -0
  281. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/live/__init__.py +0 -0
  282. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/live/test_wade_live_ai.py +0 -0
  283. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/live/test_wade_live_ai_taskr.py +0 -0
  284. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/live/test_wade_live_gh.py +0 -0
  285. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/test_cli_basics.py +0 -0
  286. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/__init__.py +0 -0
  287. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/conftest.py +0 -0
  288. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/test_cli/__init__.py +0 -0
  289. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/test_cli/test_autocomplete.py +0 -0
  290. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/test_cli/test_done_doc_pass_advisory.py +0 -0
  291. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/test_cli/test_done_review_hint.py +0 -0
  292. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/test_cli/test_knowledge_cli.py +0 -0
  293. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/test_cli/test_review_cli.py +0 -0
  294. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/test_cli/test_session_subapps.py +0 -0
  295. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/test_cli/test_shell_init.py +0 -0
  296. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/test_cli/test_skills_session_cli.py +0 -0
  297. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/test_cli/test_task_cli.py +0 -0
  298. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/test_cli/test_work_ai_flags.py +0 -0
  299. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/test_cli/test_work_cli.py +0 -0
  300. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/test_config/__init__.py +0 -0
  301. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/test_config/test_bot_review_config.py +0 -0
  302. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/test_config/test_dynamic_skill_config.py +0 -0
  303. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/test_config/test_loader.py +0 -0
  304. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/test_config/test_merge_strategy_migration.py +0 -0
  305. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/test_config/test_migrations.py +0 -0
  306. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/test_config/test_migrations_atomic.py +0 -0
  307. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/test_console.py +0 -0
  308. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/test_effort.py +0 -0
  309. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/test_git/__init__.py +0 -0
  310. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/test_git/test_all_patches_present.py +0 -0
  311. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/test_git/test_branch_list.py +0 -0
  312. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/test_git/test_branch_slugify.py +0 -0
  313. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/test_git/test_detached_worktree.py +0 -0
  314. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/test_git/test_is_merged_into.py +0 -0
  315. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/test_git/test_main_checkout_root.py +0 -0
  316. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/test_git/test_merge_count.py +0 -0
  317. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/test_git/test_pr_base.py +0 -0
  318. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/test_git/test_pr_lookup.py +0 -0
  319. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/test_git/test_pr_retry.py +0 -0
  320. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/test_git/test_pr_title.py +0 -0
  321. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/test_git/test_repo.py +0 -0
  322. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/test_git/test_reset_branch.py +0 -0
  323. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/test_git/test_scaffold_commit.py +0 -0
  324. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/test_git/test_stash_drop.py +0 -0
  325. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/test_git/test_sync_conflicted_files.py +0 -0
  326. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/test_git/test_tip_commit_is_empty.py +0 -0
  327. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/test_git/test_worktree_remove.py +0 -0
  328. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/test_hooks/__init__.py +0 -0
  329. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/test_hooks/test_hook_cli.py +0 -0
  330. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/test_hooks/test_policies.py +0 -0
  331. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/test_hooks/test_post_tool_use.py +0 -0
  332. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/test_hooks/test_session_start.py +0 -0
  333. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/test_models/__init__.py +0 -0
  334. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/test_models/test_batch.py +0 -0
  335. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/test_models/test_config_models.py +0 -0
  336. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/test_models/test_delegation.py +0 -0
  337. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/test_models/test_deps_models.py +0 -0
  338. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/test_models/test_deps_partition.py +0 -0
  339. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/test_models/test_review.py +0 -0
  340. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/test_models/test_review_expectation.py +0 -0
  341. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/test_models/test_task_models.py +0 -0
  342. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/test_models/test_workflow_models.py +0 -0
  343. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/test_permission_mode.py +0 -0
  344. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/test_providers/__init__.py +0 -0
  345. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/test_providers/test_clickup.py +0 -0
  346. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/test_providers/test_github.py +0 -0
  347. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/test_providers/test_github_pr.py +0 -0
  348. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/test_providers/test_markdown.py +0 -0
  349. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/test_scripts/__init__.py +0 -0
  350. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/test_scripts/test_auto_version.py +0 -0
  351. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/test_scripts/test_changelog.py +0 -0
  352. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/test_scripts/test_probe_native_plan_handoff.py +0 -0
  353. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/test_services/__init__.py +0 -0
  354. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/test_services/test_ai_resolution.py +0 -0
  355. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/test_services/test_batch_build_cmd.py +0 -0
  356. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/test_services/test_batch_pr_index.py +0 -0
  357. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/test_services/test_batch_review_service.py +0 -0
  358. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/test_services/test_bootstrap_allowlist.py +0 -0
  359. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/test_services/test_bootstrap_guard_matcher.py +0 -0
  360. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/test_services/test_bootstrap_hook_timeout.py +0 -0
  361. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/test_services/test_bootstrap_post_tool_use.py +0 -0
  362. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/test_services/test_bootstrap_pre_push.py +0 -0
  363. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/test_services/test_bootstrap_session_start.py +0 -0
  364. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/test_services/test_bot_trigger.py +0 -0
  365. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/test_services/test_catchup.py +0 -0
  366. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/test_services/test_catchup_reconcile.py +0 -0
  367. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/test_services/test_check.py +0 -0
  368. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/test_services/test_cleanup_loss_guard.py +0 -0
  369. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/test_services/test_codex_worktree_launch_context.py +0 -0
  370. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/test_services/test_delegation_service.py +0 -0
  371. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/test_services/test_deps_service.py +0 -0
  372. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/test_services/test_documentation_receipt.py +0 -0
  373. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/test_services/test_done_gates.py +0 -0
  374. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/test_services/test_done_idempotent.py +0 -0
  375. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/test_services/test_done_plan_flag.py +0 -0
  376. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/test_services/test_done_pr_body_read.py +0 -0
  377. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/test_services/test_done_pr_title_sync.py +0 -0
  378. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/test_services/test_draft_pr_base_fetch.py +0 -0
  379. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/test_services/test_draft_pr_retarget.py +0 -0
  380. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/test_services/test_implementation_done_sync.py +0 -0
  381. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/test_services/test_implementation_launch_context.py +0 -0
  382. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/test_services/test_implementation_service.py +0 -0
  383. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/test_services/test_implementation_service_resume.py +0 -0
  384. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/test_services/test_init.py +0 -0
  385. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/test_services/test_init_shell_integration.py +0 -0
  386. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/test_services/test_interactive_plan_service.py +0 -0
  387. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/test_services/test_knowledge_recovery.py +0 -0
  388. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/test_services/test_knowledge_search.py +0 -0
  389. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/test_services/test_knowledge_service.py +0 -0
  390. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/test_services/test_managed_git_hooks.py +0 -0
  391. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/test_services/test_native_plan_service.py +0 -0
  392. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/test_services/test_no_direct_git.py +0 -0
  393. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/test_services/test_plan_service.py +0 -0
  394. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/test_services/test_plan_startup_events.py +0 -0
  395. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/test_services/test_poll_for_reviews.py +0 -0
  396. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/test_services/test_post_implementation_lifecycle.py +0 -0
  397. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/test_services/test_pr_lookup_guards.py +0 -0
  398. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/test_services/test_pr_summary_path.py +0 -0
  399. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/test_services/test_pre_push_backstop.py +0 -0
  400. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/test_services/test_preserve_session_data.py +0 -0
  401. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/test_services/test_prompt_delivery.py +0 -0
  402. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/test_services/test_push_recovery.py +0 -0
  403. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/test_services/test_resolve_task_branch.py +0 -0
  404. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/test_services/test_resume_autonomy.py +0 -0
  405. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/test_services/test_review_cycle_service.py +0 -0
  406. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/test_services/test_review_delegation_service.py +0 -0
  407. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/test_services/test_review_receipts.py +0 -0
  408. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/test_services/test_review_records.py +0 -0
  409. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/test_services/test_review_service.py +0 -0
  410. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/test_services/test_review_status_block.py +0 -0
  411. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/test_services/test_skill_diagnostics_service.py +0 -0
  412. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/test_services/test_skill_invocation_service.py +0 -0
  413. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/test_services/test_smart_start.py +0 -0
  414. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/test_services/test_smart_start_resume.py +0 -0
  415. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/test_services/test_stale_base_surface.py +0 -0
  416. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/test_services/test_sync_base_branch.py +0 -0
  417. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/test_services/test_task_service.py +0 -0
  418. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/test_services/test_tracked_managed_files.py +0 -0
  419. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/test_services/test_worktree_gitignore.py +0 -0
  420. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/test_skills/test_crossby_contract.py +0 -0
  421. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/test_skills/test_doc_targets.py +0 -0
  422. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/test_skills/test_dynamic_skills.py +0 -0
  423. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/test_skills/test_generic_builtin_boundaries.py +0 -0
  424. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/test_skills/test_knowledge_attributes.py +0 -0
  425. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/test_skills/test_managed_gitignore.py +0 -0
  426. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/test_skills/test_pointer.py +0 -0
  427. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/test_skills/test_review_budget_partial.py +0 -0
  428. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/test_utils/__init__.py +0 -0
  429. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/test_utils/test_body_markers.py +0 -0
  430. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/test_utils/test_conventional.py +0 -0
  431. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/test_utils/test_filelock.py +0 -0
  432. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/test_utils/test_gitref.py +0 -0
  433. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/test_utils/test_http.py +0 -0
  434. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/test_utils/test_install.py +0 -0
  435. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/test_utils/test_markdown.py +0 -0
  436. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/test_utils/test_markers.py +0 -0
  437. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/test_utils/test_plan_validation.py +0 -0
  438. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/test_utils/test_process.py +0 -0
  439. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/test_utils/test_prompts.py +0 -0
  440. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/test_utils/test_runtime_env.py +0 -0
  441. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/test_utils/test_safe_state.py +0 -0
  442. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/test_utils/test_slug.py +0 -0
  443. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/test_utils/test_stale_base.py +0 -0
  444. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/test_utils/test_terminal.py +0 -0
  445. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/test_utils/test_terminal_launch.py +0 -0
  446. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/test_utils/test_update_check.py +0 -0
  447. {wade_cli-1.2.14 → wade_cli-1.2.15}/tests/unit/test_yolo.py +0 -0
@@ -114,6 +114,12 @@ CLI modules are thin dispatch — they parse flags via Typer, then call service
114
114
  - **Synchronous Only**: No asyncio. Process-level parallelism via multiple terminals.
115
115
  - **Pydantic Everywhere**: All data structures are Pydantic `BaseModel` subclasses, not dicts.
116
116
 
117
+ Scaffold retargets use a guarded git-layer hard reset: tracked edits and
118
+ untracked/ignored paths obstructing the pinned destination tree must refuse
119
+ before mutation. Noncolliding session output remains allowed. The guard also
120
+ applies to rollback; an obstructed rollback preserves data and reports manual
121
+ recovery, rather than claiming branch/PR consistency was restored.
122
+
117
123
  ## Design Principles
118
124
 
119
125
  ### Determinism via Services
@@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
4
4
 
5
5
  The format is based on [Conventional Commits](https://conventionalcommits.org/).
6
6
 
7
+ ## [v1.2.15] — 2026-10-14
8
+
9
+ ### Bug Fixes
10
+
11
+ - preserve untracked files when retargeting scaffold branches (#526) (8c51aee)
12
+
7
13
  ## [v1.2.14] — 2026-10-14
8
14
 
9
15
  ### Bug Fixes
@@ -192,6 +192,22 @@
192
192
  {"dir": "stale", "event_id": "86da7ec333234953869f880b857ce682", "id": "6cd9b543", "ts": "2026-09-15T15:24:19.088735+00:00"}
193
193
  {"dir": "up", "event_id": "5bf57cae39ae477f9295c18a3ac6d6c9", "id": "7c6526983755", "ts": "2026-09-16T22:22:59.183519+00:00"}
194
194
  {"dir": "up", "event_id": "6cccca145ffa471abd9ee11f3c2d259b", "id": "2bc8b5ab31d3", "ts": "2026-09-24T18:50:40.963016+00:00"}
195
+ {"dir": "up", "event_id": "e448d2ad-c2c7-5893-8024-3629031fae8d", "handoff_id": "79c68452-fc4e-4ef1-ac9a-1d664b4af3ad", "id": "851bb6ec", "ts": "2026-10-14T14:36:49.064147+00:00"}
196
+ {"dir": "up", "event_id": "18189d48-7acd-5df6-9462-c2369fb63050", "handoff_id": "79c68452-fc4e-4ef1-ac9a-1d664b4af3ad", "id": "4d419ec6629c", "ts": "2026-10-14T14:36:49.087316+00:00"}
197
+ {"dir": "stale", "event_id": "7c01d033-920b-52b5-a8b5-21aa95555c14", "handoff_id": "10da6311-38f1-4e5e-9298-4c36697b14d1", "id": "5d2c207a05e7", "ts": "2026-10-14T14:44:11.649935+00:00"}
198
+ {"dir": "up", "event_id": "414f2c62-62b0-5abf-a37b-63b1b318a0e3", "handoff_id": "10da6311-38f1-4e5e-9298-4c36697b14d1", "id": "7c6526983755", "ts": "2026-10-14T14:44:11.676327+00:00"}
199
+ {"dir": "stale", "event_id": "29d4c704-d33d-51dc-8547-c4c82f8aa5f6", "handoff_id": "10da6311-38f1-4e5e-9298-4c36697b14d1", "id": "e3197457516b", "ts": "2026-10-14T14:44:11.701802+00:00"}
200
+ {"dir": "up", "event_id": "a6dd2e53-46df-5552-b3da-a8f975dbfb87", "handoff_id": "10da6311-38f1-4e5e-9298-4c36697b14d1", "id": "59d157b2d6fb", "ts": "2026-10-14T14:44:11.726587+00:00"}
201
+ {"dir": "up", "event_id": "7342699b-5f40-5d2c-a3b2-2455cd93e88d", "handoff_id": "10da6311-38f1-4e5e-9298-4c36697b14d1", "id": "90d404af3f3c", "ts": "2026-10-14T14:44:11.753078+00:00"}
202
+ {"dir": "up", "event_id": "e62cf65c-922b-5e7b-b3c1-80394ff20cce", "handoff_id": "10da6311-38f1-4e5e-9298-4c36697b14d1", "id": "2bc8b5ab31d3", "ts": "2026-10-14T14:44:11.779052+00:00"}
203
+ {"dir": "up", "event_id": "8b01a42f-11fb-5050-bc76-5cc39633dbc0", "handoff_id": "10da6311-38f1-4e5e-9298-4c36697b14d1", "id": "0be3e1a62282", "ts": "2026-10-14T14:44:11.803153+00:00"}
204
+ {"dir": "stale", "event_id": "16909c2484254f4cb8a4968bc6b81f0f", "id": "5d2c207a05e7", "ts": "2026-10-14T14:56:15.412823+00:00"}
205
+ {"dir": "up", "event_id": "48186f86824242a8912941977e13e798", "id": "7c6526983755", "ts": "2026-10-14T14:56:15.653563+00:00"}
206
+ {"dir": "stale", "event_id": "7dec60cd4b6642a2853f241d80d01aae", "id": "e3197457516b", "ts": "2026-10-14T14:56:15.891260+00:00"}
207
+ {"dir": "up", "event_id": "98c08f8b7a0b4beabe6b1a0edcc888e0", "id": "59d157b2d6fb", "ts": "2026-10-14T14:56:16.122477+00:00"}
208
+ {"dir": "up", "event_id": "8888ada20be941ef96096e111f2a30e3", "id": "90d404af3f3c", "ts": "2026-10-14T14:56:16.360881+00:00"}
209
+ {"dir": "up", "event_id": "c457fd5c67b14e4ebede1a2ef246f188", "id": "2bc8b5ab31d3", "ts": "2026-10-14T14:56:16.615813+00:00"}
210
+ {"dir": "up", "event_id": "8c248c11e9904aea815f06b5e5b8bbeb", "id": "0be3e1a62282", "ts": "2026-10-14T14:56:16.893694+00:00"}
195
211
  {"dir": "up", "event_id": "a0a414dbdfc44ee88b8c77d05e61ff26", "id": "4d419ec6629c", "ts": "2026-10-14T14:38:56.313716+00:00"}
196
212
  {"dir": "up", "event_id": "f156766ddcf8451891f4d20ef9f6a9d4", "id": "851bb6ec", "ts": "2026-10-14T14:54:52.737233+00:00"}
197
213
  {"dir": "up", "event_id": "5c97dee9-80d8-5d18-9a6a-637139e7bbc3", "handoff_id": "4fbe04a3-c1f7-4635-8820-8e1e90f04a17", "id": "cb42b47b0a78", "ts": "2026-10-14T14:44:55.828705+00:00"}
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: wade-cli
3
- Version: 1.2.14
3
+ Version: 1.2.15
4
4
  Summary: WADE — Workflow for AI-Driven Engineering
5
5
  Project-URL: Homepage, https://github.com/ivanviragine/wade
6
6
  Project-URL: Repository, https://github.com/ivanviragine/wade
@@ -387,6 +387,8 @@ wade implement 42 --base develop # branch from, target, and merge into develop
387
387
 
388
388
  `--base` overrides the plan-declared base and retargets the existing draft PR to match. A malformed base value is rejected up front — whether declared in the plan (fails `wade plan-session done`) or passed as `--base` (fails fast when you run `wade implement`); a well-formed base branch that does not exist fails draft-PR creation with an actionable message. Changing the base of a PR whose work is already in flight — whether by re-running planning or by `wade implement --base` — is not applied silently: it requires explicit confirmation, because the branch's existing history cannot be moved onto the new base without discarding it.
389
389
 
390
+ A scaffold branch checked out in a worktree can be moved onto a different base only when its tracked files are clean and no untracked or ignored paths obstruct the destination tree. Colliding files, symlinks, and directories cause refusal before the branch or PR base changes; noncolliding generated session files remain allowed. Preserve or move the reported paths outside the affected worktree before retrying. Ignored files receive the same protection as ordinary untracked work. Retarget and rollback explicitly leave submodule worktrees unchanged, including when `submodule.recurse` is enabled; update submodules separately when needed.
391
+
390
392
  ## Reviews & bot triggers
391
393
 
392
394
  WADE splits review into an **AI review pass** you or the agent can invoke, and
@@ -351,6 +351,8 @@ wade implement 42 --base develop # branch from, target, and merge into develop
351
351
 
352
352
  `--base` overrides the plan-declared base and retargets the existing draft PR to match. A malformed base value is rejected up front — whether declared in the plan (fails `wade plan-session done`) or passed as `--base` (fails fast when you run `wade implement`); a well-formed base branch that does not exist fails draft-PR creation with an actionable message. Changing the base of a PR whose work is already in flight — whether by re-running planning or by `wade implement --base` — is not applied silently: it requires explicit confirmation, because the branch's existing history cannot be moved onto the new base without discarding it.
353
353
 
354
+ A scaffold branch checked out in a worktree can be moved onto a different base only when its tracked files are clean and no untracked or ignored paths obstruct the destination tree. Colliding files, symlinks, and directories cause refusal before the branch or PR base changes; noncolliding generated session files remain allowed. Preserve or move the reported paths outside the affected worktree before retrying. Ignored files receive the same protection as ordinary untracked work. Retarget and rollback explicitly leave submodule worktrees unchanged, including when `submodule.recurse` is enabled; update submodules separately when needed.
355
+
354
356
  ## Reviews & bot triggers
355
357
 
356
358
  WADE splits review into an **AI review pass** you or the agent can invoke, and
@@ -1542,7 +1542,18 @@ When wade installs skills into a target project (per session, via worktree boots
1542
1542
  **`wade implement`:**
1543
1543
  - `--detach` — Launch AI in a new terminal tab/window (non-blocking). Uses `build_launch_command()` + `launch_in_new_terminal()`.
1544
1544
  - `--cd` — Create worktree, print its path to stdout, and exit without launching AI. Deterministic setup still runs first (for example worktree bootstrap and draft-PR bootstrap when needed). Used internally by `wade cd`.
1545
- - `--base <branch>` — Base branch to branch from, target, and merge into. Precedence at implement time: explicit `--base` (or the chain-derived base threaded by `--chain`) > the existing draft PR's base (read from the PR lookup's `baseRefName`, recorded at plan time from a plan file's optional `## Base Branch` section) > `config.project.main_branch` (or `detect_main_branch`). An explicit `--base` is validated for well-formedness up front (`is_valid_git_ref`, symmetric with the plan-declared path checked at plan-done) so a malformed value fails fast instead of surfacing later as a murkier "does not exist"; a chain-derived base is a generated branch name and always passes. Reading the base off the already-verified lookup (rather than a second `get_pr_base_branch` query, whose `None` conflates "no base" with "gh failed") avoids a silent fallback to `main`. The resolved base is persisted to `.wade/base_branch` before startup catchup so `sync`/`done` merge into it — and cleared when the effective base resolves back to `main` (e.g. `--base main` retargeting a reused worktree's PR), so a stale pin never keeps targeting the old base. `sync`/`done` treat the stored base as **authoritative**: they no longer gate on a local/`origin/<base>` existence check (which a single-branch / narrow-refspec clone can fail even for a valid base), and instead let the fetch/merge path surface an unresolvable base as an error rather than silently falling back to `main`. An explicit `--base` that differs from the draft PR's base retargets the PR via `update_pr_base`; a failed retarget aborts rather than leaving a stale base. Editing the PR base does **not** rewrite the head branch's ancestry, so a **scaffold-only** branch (only its scaffold commit beyond the old base) is first re-rooted on the new base and force-pushed (`reroot_scaffold_branch_for_retarget`, shared by the plan and implement retarget paths) — otherwise the old base's commits would leak into the new base's diff and merge into it. When the scaffold branch is **not** checked out it is moved with `git branch -f`; when it **is** checked out (the `wade implement --cd` case) it is re-rooted *in place* with a hard reset inside its worktree (`reset_worktree_hard`), since `git branch -f` refuses a checked-out branch. The reroot **aborts** rather than retarget onto a stale branch when it can't be done loss-free: an unresolvable old base (can't prove the branch is scaffold-only — a reset might discard commits), a checked-out worktree with uncommitted **tracked** changes (`has_tracked_changes`) or one whose path can't be resolved, or an unresolvable new base. A branch carrying **real work** (`_branch_has_real_work`: more than the scaffold commit past its base — measured against the local head or `origin/<branch>` when the head lives only on the remote) cannot be rewritten without discarding it, so `start()` guards that case — confirm in a TTY, else abort — instead of silently flipping the base and polluting the PR, mirroring the plan flow's `_base_retarget_is_safe`. `--chain` remains hidden and threads the previous task's branch as the next task's base (treated exactly like an explicit `--base`).
1545
+ - `--base <branch>` — Base branch to branch from, target, and merge into. Precedence at implement time: explicit `--base` (or the chain-derived base threaded by `--chain`) > the existing draft PR's base (read from the PR lookup's `baseRefName`, recorded at plan time from a plan file's optional `## Base Branch` section) > `config.project.main_branch` (or `detect_main_branch`). An explicit `--base` is validated for well-formedness up front (`is_valid_git_ref`, symmetric with the plan-declared path checked at plan-done) so a malformed value fails fast instead of surfacing later as a murkier "does not exist"; a chain-derived base is a generated branch name and always passes. Reading the base off the already-verified lookup (rather than a second `get_pr_base_branch` query, whose `None` conflates "no base" with "gh failed") avoids a silent fallback to `main`. The resolved base is persisted to `.wade/base_branch` before startup catchup so `sync`/`done` merge into it — and cleared when the effective base resolves back to `main` (e.g. `--base main` retargeting a reused worktree's PR), so a stale pin never keeps targeting the old base. `sync`/`done` treat the stored base as **authoritative**: they no longer gate on a local/`origin/<base>` existence check (which a single-branch / narrow-refspec clone can fail even for a valid base), and instead let the fetch/merge path surface an unresolvable base as an error rather than silently falling back to `main`. An explicit `--base` that differs from the draft PR's base retargets the PR via `update_pr_base`; a failed retarget aborts rather than leaving a stale base. Editing the PR base does **not** rewrite the head branch's ancestry, so a **scaffold-only** branch (only its scaffold commit beyond the old base) is first re-rooted on the new base and force-pushed (`reroot_scaffold_branch_for_retarget`, shared by the plan and implement retarget paths) — otherwise the old base's commits would leak into the new base's diff and merge into it. When the scaffold branch is **not** checked out it is moved with `git branch -f`; when it **is** checked out (the `wade implement --cd` case) it is re-rooted *in place* with a hard reset inside its worktree (`reset_worktree_hard`), since `git branch -f` refuses a checked-out branch. The reroot **aborts** rather than retarget onto a stale branch when it can't be done loss-free: an unresolvable old base (can't prove the branch is scaffold-only — a reset might discard commits), a checked-out worktree with uncommitted **tracked** changes (`has_tracked_changes`), untracked or ignored filesystem paths obstructing the destination tree, or one whose path can't be resolved, or an unresolvable new base. A branch carrying **real work** (`_branch_has_real_work`: more than the scaffold commit past its base — measured against the local head or `origin/<branch>` when the head lives only on the remote) cannot be rewritten without discarding it, so `start()` guards that case — confirm in a TTY, else abort — instead of silently flipping the base and polluting the PR, mirroring the plan flow's `_base_retarget_is_safe`. `--chain` remains hidden and threads the previous task's branch as the next task's base (treated exactly like an explicit `--base`).
1546
+
1547
+ Scaffold hard resets pin the destination commit and inspect its complete tree against
1548
+ the index and filesystem before mutation. The git-layer guard includes ignored
1549
+ files, empty/nested directories, symlinks without following them, and filesystem
1550
+ case aliases; inspection errors refuse. Tree-entry modes distinguish gitlinks:
1551
+ resets explicitly pass `--no-recurse-submodules` to leave submodule directories
1552
+ and their contents alone even when `submodule.recurse=true`.
1553
+ The same guard applies to scaffold
1554
+ rollback after a failed PR-base edit. An obstructed rollback preserves the new
1555
+ user data and reports the existing branch/PR divergence for manual recovery.
1556
+ This preflight does not provide isolation from concurrent filesystem writers.
1546
1557
 
1547
1558
  **`wade implementation-session done`:**
1548
1559
  - `target` (positional) — Optional issue number, worktree name, or plan file path. When a file path is given, creates the issue first; when a number/name, finds the worktree; when omitted, detects from current branch.
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "wade-cli"
7
- version = "1.2.14"
7
+ version = "1.2.15"
8
8
  description = "WADE — Workflow for AI-Driven Engineering"
9
9
  readme = "README.md"
10
10
  license = "MIT"
@@ -1,3 +1,3 @@
1
1
  """WADE (Workflow for AI-Driven Engineering) — AI-agent-driven git workflow management CLI."""
2
2
 
3
- __version__ = "1.2.14"
3
+ __version__ = "1.2.15"
@@ -2,11 +2,14 @@
2
2
 
3
3
  from __future__ import annotations
4
4
 
5
+ import os
6
+ import stat
7
+ import subprocess
5
8
  from pathlib import Path
6
9
 
7
10
  import structlog
8
11
 
9
- from wade.git.repo import _run_git, _run_git_with_retry
12
+ from wade.git.repo import GitError, _run_git, _run_git_with_retry
10
13
  from wade.utils.slug import slugify
11
14
 
12
15
  log = structlog.get_logger(__name__)
@@ -153,26 +156,138 @@ def reset_branch(
153
156
  _run_git_with_retry("branch", "-f", branch_name, start_point, cwd=repo_root)
154
157
 
155
158
 
156
- def reset_worktree_hard(worktree_path: Path, start_point: str) -> None:
157
- """Force-move the branch checked out in *worktree_path* to *start_point*.
159
+ def _reset_inventory(worktree: Path, *args: str) -> tuple[str, ...]:
160
+ """Read a NUL-delimited Git inventory without newline or quoted-path conversion."""
161
+ try:
162
+ result = subprocess.run(["git", *args], cwd=worktree, capture_output=True, check=True)
163
+ except (OSError, subprocess.CalledProcessError) as exc:
164
+ raise GitError(f"Cannot inspect reset paths in {worktree}: {exc}") from exc
165
+ if result.stdout and not result.stdout.endswith(b"\0"):
166
+ raise GitError(f"Invalid reset path inventory in {worktree}")
167
+ return tuple(os.fsdecode(path) for path in result.stdout.split(b"\0") if path)
158
168
 
159
- ``git branch -f`` refuses to move a checked-out branch, so re-root such a branch by
160
- running ``git reset --hard`` *inside its worktree* instead. This discards uncommitted
161
- changes to **tracked** files in that worktree (untracked files are left in place), so
162
- callers must confirm the worktree carries no tracked changes first (see
163
- :func:`wade.git.repo.has_tracked_changes`). Used to re-root a scaffold-only branch
164
- that is checked out — e.g. after ``wade implement --cd`` — before retargeting its PR,
165
- so the old base's commits don't leak into the new base's diff (#376 review).
166
169
 
167
- Args:
168
- worktree_path: The worktree in which the target branch is checked out.
169
- start_point: Commit, branch, or tag to move the branch (and worktree) onto.
170
+ def _reset_collisions(worktree: Path, destination: str) -> tuple[str, ...]:
171
+ """Find occupied untracked/ignored nodes the complete destination would replace.
170
172
 
171
- Raises:
172
- GitError: If the reset fails.
173
+ Inspect filesystem occupancy rather than Git's ignored/untracked listing, which
174
+ can omit empty directories and collapse nested repositories. Never follow a
175
+ symlink. Resolve actual directory-entry spellings to handle case aliases on
176
+ filesystems that permit them, without conflating distinct hard-linked paths.
173
177
  """
174
- log.info("branch.reset_worktree_hard", worktree=str(worktree_path), start_point=start_point)
175
- _run_git_with_retry("reset", "--hard", start_point, cwd=worktree_path)
178
+ indexed = _reset_inventory(worktree, "ls-files", "-z")
179
+ target = _reset_inventory(worktree, "ls-tree", "-r", "-z", destination)
180
+ # Path equality case-folds on Windows even in case-sensitive directories.
181
+ # Use exact actual spellings for cache and tracked identity on every host.
182
+ directories: dict[str, tuple[Path, ...]] = {}
183
+
184
+ def children(directory: Path) -> tuple[Path, ...]:
185
+ key = os.fspath(directory)
186
+ if key not in directories:
187
+ with os.scandir(directory) as entries:
188
+ directories[key] = tuple(sorted(Path(e.path) for e in entries))
189
+ return directories[key]
190
+
191
+ def entry(directory: Path, name: str) -> Path | None:
192
+ requested = directory / name
193
+ try:
194
+ info = requested.lstat()
195
+ except FileNotFoundError:
196
+ return None
197
+ entries = children(directory)
198
+ exact = next((path for path in entries if path.name == name), None)
199
+ if exact is not None:
200
+ return exact
201
+ # The requested spelling exists, but isn't the actual entry spelling.
202
+ # This can happen with case/Unicode aliases. Multiple inode matches are
203
+ # ambiguous (hard links); refusing is safer than treating user data as tracked.
204
+ aliases = [
205
+ path
206
+ for path in entries
207
+ if (details := path.lstat()).st_ino == info.st_ino and details.st_dev == info.st_dev
208
+ ]
209
+ if len(aliases) != 1:
210
+ raise OSError(f"Cannot resolve filesystem spelling of {requested}")
211
+ return aliases[0]
212
+
213
+ def existing_index_path(name: str) -> Path | None:
214
+ parts = name.split("/")
215
+ node = worktree
216
+ for position, part in enumerate(parts):
217
+ found = entry(node, part)
218
+ if found is None:
219
+ return None
220
+ node = found
221
+ if position < len(parts) - 1 and not stat.S_ISDIR(node.lstat().st_mode):
222
+ return None
223
+ return node
224
+
225
+ collisions: set[str] = set()
226
+ try:
227
+ tracked = {
228
+ os.fspath(path) for name in indexed if (path := existing_index_path(name)) is not None
229
+ }
230
+
231
+ def inspect_replaced_directory(directory: Path) -> None:
232
+ contents = children(directory)
233
+ if not contents:
234
+ collisions.add(directory.relative_to(worktree).as_posix())
235
+ for child in contents:
236
+ if stat.S_ISDIR(child.lstat().st_mode):
237
+ inspect_replaced_directory(child)
238
+ elif os.fspath(child) not in tracked:
239
+ collisions.add(child.relative_to(worktree).as_posix())
240
+
241
+ for record in target:
242
+ header, delimiter, name = record.partition("\t")
243
+ mode = header.split(" ", 1)[0]
244
+ if not delimiter or mode not in {"100644", "100755", "120000", "160000"}:
245
+ raise GitError(f"Invalid reset tree inventory in {worktree}")
246
+ node = worktree
247
+ parts = name.split("/")
248
+ for position, part in enumerate(parts):
249
+ found = entry(node, part)
250
+ if found is None:
251
+ break
252
+ node = found
253
+ if not stat.S_ISDIR(node.lstat().st_mode):
254
+ if os.fspath(node) not in tracked:
255
+ collisions.add(node.relative_to(worktree).as_posix())
256
+ break
257
+ if position == len(parts) - 1 and mode != "160000":
258
+ # A default (non-recursive) reset leaves submodule directories
259
+ # and their contents in place. Gitlinks aren't file replacements.
260
+ inspect_replaced_directory(node)
261
+ except OSError as exc:
262
+ raise GitError(f"Cannot safely inspect reset paths in {worktree}: {exc}") from exc
263
+ return tuple(sorted(collisions))
264
+
265
+
266
+ def reset_worktree_hard(worktree_path: Path, start_point: str) -> None:
267
+ """Reset a checked-out scaffold without overwriting untracked or ignored data.
268
+
269
+ Callers must first guard tracked edits. Pin the destination commit and inspect
270
+ the complete tree immediately before resetting. An obstruction or unknown
271
+ inspection result refuses without mutating the branch/index/worktree. This
272
+ also protects the scaffold rollback caller. Explicitly disable recursive
273
+ submodule resets regardless of user configuration: gitlink contents are not
274
+ part of this preflight. Concurrent filesystem writers after the inspection
275
+ are outside its guarantees.
276
+ """
277
+ destination = _run_git(
278
+ "rev-parse", "--verify", "--end-of-options", f"{start_point}^{{commit}}", cwd=worktree_path
279
+ ).stdout.strip()
280
+ collisions = _reset_collisions(worktree_path, destination)
281
+ if collisions:
282
+ paths = ", ".join(repr(path) for path in collisions)
283
+ raise GitError(
284
+ f"Reset in {worktree_path} would overwrite untracked or ignored paths: {paths}. "
285
+ "Preserve or move these paths outside the affected worktree before retrying."
286
+ )
287
+ log.info("branch.reset_worktree_hard", worktree=str(worktree_path), start_point=destination)
288
+ # Do not retry a destructive operation using a stale preflight. A transient
289
+ # lock failure is safe to retry through the guarded operation itself.
290
+ _run_git("reset", "--hard", "--no-recurse-submodules", destination, cwd=worktree_path)
176
291
 
177
292
 
178
293
  def create_scaffold_commit(
@@ -355,8 +355,9 @@ def has_tracked_changes(path: Path) -> bool:
355
355
 
356
356
  Ignores untracked files (``--untracked-files=no``): a freshly bootstrapped scaffold
357
357
  worktree is full of untracked output (``.wade/``, ``PLAN.md``, installed skills) that
358
- must not count as "dirty". Used to decide whether a checked-out scaffold branch can be
359
- safely hard-reset for a base retarget without discarding real edits (#376 review).
358
+ must not count as "dirty". Used to decide whether a checked-out scaffold branch can
359
+ pass the tracked-edit prerequisite for a base retarget (#376 review).
360
+ The guarded hard reset separately checks untracked/ignored collisions.
360
361
 
361
362
  Args:
362
363
  path: Any directory inside the repo/worktree.
@@ -233,8 +233,8 @@ def reroot_scaffold_branch_for_retarget(
233
233
  into *new_base* once the PR is retargeted (the later startup catchup merge
234
234
  cannot remove them). When the branch is scaffold-only — only its scaffold commit
235
235
  beyond *old_base* — rebuild it rooted on *new_base* and force-push; this is
236
- loss-free whether or not it is checked out (an in-place hard reset handles the
237
- checked-out case).
236
+ guarded whether or not it is checked out (an in-place hard reset refuses
237
+ untracked/ignored collisions in the checked-out case).
238
238
 
239
239
  A real-work branch is left untouched (rewriting in-flight history is
240
240
  destructive); the caller confirms/aborts that retarget separately (the plan flow
@@ -245,8 +245,8 @@ def reroot_scaffold_branch_for_retarget(
245
245
  It **aborts** rather than retarget onto a stale branch when the reroot cannot be done
246
246
  loss-free: an unresolvable *old* base (cannot prove the branch is scaffold-only — a
247
247
  reset might discard real commits), a checked-out worktree carrying uncommitted tracked
248
- changes (a hard reset would discard them) or one whose path can't be resolved, or an
249
- unresolvable *new* base / failed git op.
248
+ changes, untracked/ignored paths obstructing the destination tree, or one whose
249
+ path can't be resolved, or an unresolvable *new* base / failed git op.
250
250
 
251
251
  Returns:
252
252
  ``True`` — safe to proceed with the PR-base edit: the branch was recreated,
@@ -175,6 +175,46 @@ class TestImplementTaskCommand:
175
175
  base_file = expected_worktree / ".wade" / "base_branch"
176
176
  assert base_file.read_text(encoding="utf-8").strip() == "develop"
177
177
 
178
+ def test_implement_cd_retarget_collision_preserves_user_work_and_pr(
179
+ self, e2e_repo: Path, mock_gh_cli: MockGhCli
180
+ ) -> None:
181
+ """A real scaffold reset must refuse before local/remote/PR/base-pin mutation."""
182
+ _seed_mock_issue(
183
+ mock_gh_cli["state_file"],
184
+ issue_number=42,
185
+ title="Add base branch support",
186
+ body="## Tasks\n- do it\n",
187
+ )
188
+ origin = _init_origin_remote(e2e_repo)
189
+ _git(["checkout", "-b", "develop"], cwd=e2e_repo)
190
+ (e2e_repo / "precious.py").write_text("from new base\n")
191
+ _git(["add", "precious.py"], cwd=e2e_repo)
192
+ _git(["commit", "-m", "develop-only path"], cwd=e2e_repo)
193
+ _git(["push", "origin", "develop"], cwd=e2e_repo)
194
+ _git(["checkout", "main"], cwd=e2e_repo)
195
+ branch = "feat/42-add-base-branch-support"
196
+ first = _run(["implement", "42", "--cd"], cwd=e2e_repo)
197
+ assert first.returncode == 0, first.stderr
198
+ worktree = Path(first.stdout.strip())
199
+ precious = worktree / "precious.py"
200
+ precious.write_bytes(b"valuable untracked work\x00\n")
201
+ pin = worktree / ".wade/base_branch"
202
+ pin.write_text("main\n")
203
+ head = _git(["rev-parse", "HEAD"], cwd=worktree).stdout.strip()
204
+ index = _git(["write-tree"], cwd=worktree).stdout.strip()
205
+ remote_head = _git(["rev-parse", f"refs/heads/{branch}"], cwd=origin).stdout.strip()
206
+ pr = _find_mock_pr_number_by_head(mock_gh_cli["state_file"], branch)
207
+ second = _run(["implement", "42", "--base", "develop", "--cd"], cwd=e2e_repo)
208
+ assert second.returncode != 0
209
+ assert precious.read_bytes() == b"valuable untracked work\x00\n"
210
+ assert pin.read_text() == "main\n"
211
+ assert _git(["rev-parse", "HEAD"], cwd=worktree).stdout.strip() == head
212
+ assert _git(["write-tree"], cwd=worktree).stdout.strip() == index
213
+ assert _git(["rev-parse", f"refs/heads/{branch}"], cwd=origin).stdout.strip() == remote_head
214
+ state = json.loads(mock_gh_cli["state_file"].read_text())
215
+ assert state["prs"][pr]["base"] == "main"
216
+ assert _count_gh_calls(mock_gh_cli["log_file"], ["pr", "edit", str(pr), "--base"]) == 0
217
+
178
218
  def test_implement_task_fails_for_unknown_issue_without_pr_side_effects(
179
219
  self,
180
220
  e2e_repo: Path,