wade-cli 1.2.15__tar.gz → 1.2.16__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.
- {wade_cli-1.2.15 → wade_cli-1.2.16}/CHANGELOG.md +6 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/KNOWLEDGE.md +6 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/KNOWLEDGE.ratings.jsonl +1 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/PKG-INFO +11 -1
- {wade_cli-1.2.15 → wade_cli-1.2.16}/README.md +10 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/docs/dev/architecture.md +14 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/pyproject.toml +1 -1
- {wade_cli-1.2.15 → wade_cli-1.2.16}/src/wade/__init__.py +1 -1
- {wade_cli-1.2.15 → wade_cli-1.2.16}/src/wade/services/implementation_service/lifecycle.py +78 -52
- wade_cli-1.2.16/tests/concurrency/test_stash_race.py +201 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/test_services/test_implementation_service.py +197 -65
- {wade_cli-1.2.15 → wade_cli-1.2.16}/uv.lock +1 -1
- wade_cli-1.2.15/tests/concurrency/test_stash_race.py +0 -90
- {wade_cli-1.2.15 → wade_cli-1.2.16}/.gitattributes +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/.github/workflows/auto-version.yml +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/.github/workflows/ci.yml +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/.github/workflows/pr-title-lint.yml +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/.github/workflows/publish.yml +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/.github/workflows/release.yml +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/.gitignore +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/.pre-commit-config.yaml +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/.wade.yml +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/AGENTS.md +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/CONTRIBUTING.md +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/assets/wade.png +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/docker-compose.e2e.yml +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/docs/dev/crossby-native-planning-checkpoint.md +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/docs/dev/documentation-policies.md +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/docs/dev/extending.md +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/docs/dev/native-cli-plan-verification.md +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/docs/dev/skills-system.md +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/docs/dev/testing.md +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/docs/dev/workflows-and-skills.md +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/install.sh +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/scripts/auto_version.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/scripts/changelog.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/scripts/check-all.sh +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/scripts/check.sh +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/scripts/fmt.sh +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/scripts/hooks/pre-push +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/scripts/install-hooks.sh +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/scripts/probe_native_plan_handoff.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/scripts/release.sh +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/scripts/setup-worktree.sh +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/scripts/test-concurrency.sh +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/scripts/test-e2e-docker.sh +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/scripts/test-e2e.sh +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/scripts/test-live-ai-taskr.sh +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/scripts/test-live-ai.sh +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/scripts/test-live-gh.sh +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/scripts/test.sh +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/src/wade/__main__.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/src/wade/cli/__init__.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/src/wade/cli/admin.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/src/wade/cli/autocomplete.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/src/wade/cli/deps_session.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/src/wade/cli/hook.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/src/wade/cli/implementation_session.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/src/wade/cli/knowledge.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/src/wade/cli/main.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/src/wade/cli/plan_session.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/src/wade/cli/review.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/src/wade/cli/review_pr_comments_session.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/src/wade/cli/session.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/src/wade/cli/session_shared.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/src/wade/cli/skills.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/src/wade/cli/task.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/src/wade/cli/worktree.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/src/wade/config/__init__.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/src/wade/config/loader.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/src/wade/config/migrations.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/src/wade/config/schema.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/src/wade/git/__init__.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/src/wade/git/branch.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/src/wade/git/hooks.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/src/wade/git/pr.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/src/wade/git/repo.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/src/wade/git/stash.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/src/wade/git/sync.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/src/wade/git/worktree.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/src/wade/hooks/__init__.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/src/wade/hooks/cli.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/src/wade/hooks/policies.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/src/wade/logging/__init__.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/src/wade/logging/context.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/src/wade/logging/setup.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/src/wade/models/__init__.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/src/wade/models/batch.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/src/wade/models/config.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/src/wade/models/delegation.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/src/wade/models/deps.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/src/wade/models/events.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/src/wade/models/hooks.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/src/wade/models/interactive_plan.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/src/wade/models/permission.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/src/wade/models/plan_bundle.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/src/wade/models/readiness.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/src/wade/models/review.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/src/wade/models/review_cycle.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/src/wade/models/session.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/src/wade/models/session_manifest.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/src/wade/models/skill.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/src/wade/models/task.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/src/wade/models/workflow.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/src/wade/models/worktree.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/src/wade/providers/__init__.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/src/wade/providers/_pr_delegate.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/src/wade/providers/base.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/src/wade/providers/clickup.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/src/wade/providers/github.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/src/wade/providers/markdown.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/src/wade/providers/registry.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/src/wade/services/__init__.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/src/wade/services/ai_resolution.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/src/wade/services/batch_review_service.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/src/wade/services/bot_trigger.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/src/wade/services/check_service.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/src/wade/services/delegation_service.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/src/wade/services/deps_service.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/src/wade/services/documentation_receipt_service.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/src/wade/services/implementation_service/__init__.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/src/wade/services/implementation_service/_shared.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/src/wade/services/implementation_service/batch.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/src/wade/services/implementation_service/bootstrap.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/src/wade/services/implementation_service/cleanup.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/src/wade/services/implementation_service/core.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/src/wade/services/implementation_service/done.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/src/wade/services/implementation_service/draft_pr.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/src/wade/services/implementation_service/sync.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/src/wade/services/implementation_service/usage_tracking.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/src/wade/services/init_service/__init__.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/src/wade/services/init_service/auth.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/src/wade/services/init_service/commands.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/src/wade/services/init_service/config_io.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/src/wade/services/init_service/manifest.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/src/wade/services/init_service/migrations.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/src/wade/services/init_service/prompts_ai.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/src/wade/services/init_service/prompts_setup.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/src/wade/services/init_service/shell.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/src/wade/services/interactive_plan_service.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/src/wade/services/knowledge_recovery.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/src/wade/services/knowledge_search.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/src/wade/services/knowledge_service.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/src/wade/services/native_plan_service.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/src/wade/services/plan_service.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/src/wade/services/prompt_delivery.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/src/wade/services/review_cycle_service.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/src/wade/services/review_delegation_service.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/src/wade/services/review_record_service.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/src/wade/services/review_service.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/src/wade/services/review_settle.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/src/wade/services/session_composition_service.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/src/wade/services/skill_diagnostics_service.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/src/wade/services/skill_invocation_service.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/src/wade/services/smart_start.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/src/wade/services/task_service.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/src/wade/skills/__init__.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/src/wade/skills/catalog.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/src/wade/skills/discovery.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/src/wade/skills/doc_targets.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/src/wade/skills/installer.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/src/wade/skills/materializer.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/src/wade/skills/pointer.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/src/wade/skills/resolver.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/src/wade/skills/validation.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/src/wade/ui/__init__.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/src/wade/ui/console.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/src/wade/ui/prompts.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/src/wade/utils/__init__.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/src/wade/utils/body_markers.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/src/wade/utils/clipboard.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/src/wade/utils/conventional.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/src/wade/utils/filelock.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/src/wade/utils/gitref.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/src/wade/utils/http.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/src/wade/utils/install.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/src/wade/utils/knowledge_file.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/src/wade/utils/markdown.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/src/wade/utils/markers.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/src/wade/utils/paths.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/src/wade/utils/plan_validation.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/src/wade/utils/process.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/src/wade/utils/runtime_env.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/src/wade/utils/safe_state.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/src/wade/utils/slug.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/src/wade/utils/stale_base.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/src/wade/utils/templates.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/src/wade/utils/terminal.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/src/wade/utils/token_usage_markdown.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/src/wade/utils/update_check.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/templates/agents-pointer.md +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/templates/hooks/commit-msg +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/templates/hooks/pre-commit +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/templates/hooks/pre-push +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/templates/prompts/deps-analysis.md +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/templates/prompts/implement-context.md +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/templates/prompts/plan-session.md +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/templates/prompts/review-batch.md +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/templates/prompts/review-code.md +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/templates/prompts/review-finding-admission.md +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/templates/prompts/review-plan.md +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/templates/prompts/review-pr-comments.md +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/templates/prompts/review-result-batch.md +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/templates/prompts/review-result-code.md +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/templates/prompts/review-result-deps.md +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/templates/prompts/review-result-full-branch.md +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/templates/prompts/review-result-implementation.md +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/templates/prompts/review-result-plan.md +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/templates/prompts/review-result-pr-comments.md +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/templates/prompts/session-start-implement.md +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/templates/prompts/session-start-plan.md +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/templates/prompts/session-start-review.md +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/templates/setup-worktree.sh.example +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/templates/skills/batch-review/SKILL.md +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/templates/skills/code-review/SKILL.md +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/templates/skills/dependency-analysis/SKILL.md +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/templates/skills/feedback-fix-review/SKILL.md +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/templates/skills/implementation/SKILL.md +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/templates/skills/knowledge/SKILL.md +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/templates/skills/plan-review/SKILL.md +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/templates/skills/planning/SKILL.md +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/templates/skills/review-comments/SKILL.md +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/templates/skills/task/SKILL.md +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/templates/skills/task/examples.md +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/templates/skills/task/plan-format.md +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/templates/skills/task/reference/session-summary-format.md +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/templates/statusline-command.sh +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/templates/workflows/_partials/completion.md +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/templates/workflows/_partials/documentation-step.md +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/templates/workflows/_partials/interaction-policy.md +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/templates/workflows/_partials/knowledge-step.md +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/templates/workflows/_partials/review-budget.md +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/templates/workflows/implementation.md +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/templates/workflows/plan.md +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/templates/workflows/reference/documentation.md +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/templates/workflows/reference/new-plan.md +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/templates/workflows/reference/plan-output-contract.md +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/templates/workflows/reference/pr-summary-format.md +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/templates/workflows/reference/recovery.md +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/templates/workflows/reference/session-summary-format.md +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/templates/workflows/reference/tracking-issues.md +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/templates/workflows/review-pr-comments.md +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/__init__.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/concurrency/__init__.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/concurrency/test_batch_multi_pr.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/concurrency/test_knowledge_merge.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/concurrency/test_lock_retry.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/conftest.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/e2e/__init__.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/e2e/_support.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/e2e/conftest.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/e2e/mock_gh_script.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/e2e/test_admin_contract.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/e2e/test_check_contract.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/e2e/test_implement_work_done_contract.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/e2e/test_knowledge_contract.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/e2e/test_mock_gh_contract.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/e2e/test_plan_contract.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/e2e/test_review_contract.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/e2e/test_smart_start_contract.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/e2e/test_task_contract.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/e2e/test_work_sync_list_contract.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/fixtures/live/taskr_header_hi_body.md +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/fixtures/live/taskr_header_howdy_body.md +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/fixtures/transcripts/claude_session.txt +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/fixtures/transcripts/codex_session.txt +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/fixtures/transcripts/copilot_session.txt +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/fixtures/transcripts/generic_session.txt +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/integration/__init__.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/integration/test_auto_version.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/integration/test_autostash.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/integration/test_check.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/integration/test_dynamic_skill_sessions.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/integration/test_git.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/integration/test_implementation_lifecycle.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/integration/test_init.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/integration/test_knowledge.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/integration/test_markdown_provider.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/integration/test_scaffold_retarget.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/integration/test_skill_context_budget.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/integration/test_skill_install.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/live/__init__.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/live/test_wade_live_ai.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/live/test_wade_live_ai_taskr.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/live/test_wade_live_gh.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/test_cli_basics.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/__init__.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/conftest.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/test_cli/__init__.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/test_cli/test_autocomplete.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/test_cli/test_done_doc_pass_advisory.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/test_cli/test_done_review_hint.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/test_cli/test_knowledge_cli.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/test_cli/test_review_cli.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/test_cli/test_session_subapps.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/test_cli/test_shell_init.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/test_cli/test_skills_session_cli.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/test_cli/test_task_cli.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/test_cli/test_work_ai_flags.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/test_cli/test_work_cli.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/test_config/__init__.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/test_config/test_bot_review_config.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/test_config/test_dynamic_skill_config.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/test_config/test_loader.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/test_config/test_merge_strategy_migration.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/test_config/test_migrations.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/test_config/test_migrations_atomic.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/test_console.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/test_effort.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/test_git/__init__.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/test_git/test_all_patches_present.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/test_git/test_branch_list.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/test_git/test_branch_slugify.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/test_git/test_detached_worktree.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/test_git/test_is_merged_into.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/test_git/test_main_checkout_root.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/test_git/test_merge_count.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/test_git/test_pr_base.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/test_git/test_pr_lookup.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/test_git/test_pr_retry.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/test_git/test_pr_title.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/test_git/test_repo.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/test_git/test_reset_branch.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/test_git/test_reset_collision_identity.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/test_git/test_scaffold_commit.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/test_git/test_stash_drop.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/test_git/test_sync_conflicted_files.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/test_git/test_tip_commit_is_empty.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/test_git/test_worktree_remove.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/test_hooks/__init__.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/test_hooks/test_hook_cli.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/test_hooks/test_policies.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/test_hooks/test_post_tool_use.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/test_hooks/test_session_start.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/test_models/__init__.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/test_models/test_batch.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/test_models/test_config_models.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/test_models/test_delegation.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/test_models/test_deps_models.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/test_models/test_deps_partition.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/test_models/test_review.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/test_models/test_review_expectation.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/test_models/test_task_models.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/test_models/test_workflow_models.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/test_permission_mode.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/test_providers/__init__.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/test_providers/test_clickup.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/test_providers/test_github.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/test_providers/test_github_pr.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/test_providers/test_markdown.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/test_scripts/__init__.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/test_scripts/test_auto_version.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/test_scripts/test_changelog.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/test_scripts/test_probe_native_plan_handoff.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/test_services/__init__.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/test_services/test_ai_resolution.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/test_services/test_batch_build_cmd.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/test_services/test_batch_pr_index.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/test_services/test_batch_review_service.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/test_services/test_bootstrap_allowlist.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/test_services/test_bootstrap_guard_matcher.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/test_services/test_bootstrap_hook_timeout.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/test_services/test_bootstrap_post_tool_use.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/test_services/test_bootstrap_pre_push.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/test_services/test_bootstrap_session_start.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/test_services/test_bot_trigger.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/test_services/test_catchup.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/test_services/test_catchup_reconcile.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/test_services/test_check.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/test_services/test_cleanup_loss_guard.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/test_services/test_codex_worktree_launch_context.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/test_services/test_delegation_service.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/test_services/test_deps_service.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/test_services/test_documentation_receipt.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/test_services/test_done_gates.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/test_services/test_done_idempotent.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/test_services/test_done_plan_flag.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/test_services/test_done_pr_body_read.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/test_services/test_done_pr_title_sync.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/test_services/test_draft_pr_base_fetch.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/test_services/test_draft_pr_retarget.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/test_services/test_implementation_done_sync.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/test_services/test_implementation_launch_context.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/test_services/test_implementation_service_resume.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/test_services/test_init.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/test_services/test_init_shell_integration.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/test_services/test_interactive_plan_service.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/test_services/test_knowledge_recovery.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/test_services/test_knowledge_search.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/test_services/test_knowledge_service.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/test_services/test_managed_git_hooks.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/test_services/test_native_plan_service.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/test_services/test_no_direct_git.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/test_services/test_plan_service.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/test_services/test_plan_startup_events.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/test_services/test_poll_for_reviews.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/test_services/test_post_implementation_lifecycle.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/test_services/test_pr_lookup_guards.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/test_services/test_pr_summary_path.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/test_services/test_pre_push_backstop.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/test_services/test_preserve_session_data.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/test_services/test_prompt_delivery.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/test_services/test_push_recovery.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/test_services/test_resolve_task_branch.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/test_services/test_resume_autonomy.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/test_services/test_review_cycle_service.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/test_services/test_review_delegation_service.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/test_services/test_review_receipts.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/test_services/test_review_records.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/test_services/test_review_service.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/test_services/test_review_status_block.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/test_services/test_skill_diagnostics_service.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/test_services/test_skill_invocation_service.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/test_services/test_smart_start.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/test_services/test_smart_start_resume.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/test_services/test_stale_base_surface.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/test_services/test_sync_base_branch.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/test_services/test_task_service.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/test_services/test_tracked_managed_files.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/test_services/test_worktree_gitignore.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/test_skills/test_crossby_contract.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/test_skills/test_doc_targets.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/test_skills/test_dynamic_skills.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/test_skills/test_generic_builtin_boundaries.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/test_skills/test_knowledge_attributes.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/test_skills/test_managed_gitignore.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/test_skills/test_pointer.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/test_skills/test_review_budget_partial.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/test_utils/__init__.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/test_utils/test_body_markers.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/test_utils/test_conventional.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/test_utils/test_filelock.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/test_utils/test_gitref.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/test_utils/test_http.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/test_utils/test_install.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/test_utils/test_markdown.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/test_utils/test_markers.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/test_utils/test_plan_validation.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/test_utils/test_process.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/test_utils/test_prompts.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/test_utils/test_runtime_env.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/test_utils/test_safe_state.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/test_utils/test_slug.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/test_utils/test_stale_base.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/test_utils/test_terminal.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/test_utils/test_terminal_launch.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/test_utils/test_update_check.py +0 -0
- {wade_cli-1.2.15 → wade_cli-1.2.16}/tests/unit/test_yolo.py +0 -0
|
@@ -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.16] — 2026-10-14
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
- restore post-merge stashes by identity across worktrees (#528) (d141f0b)
|
|
12
|
+
|
|
7
13
|
## [v1.2.15] — 2026-10-14
|
|
8
14
|
|
|
9
15
|
### Bug Fixes
|
|
@@ -791,3 +791,9 @@ For issue #480, delegation_service.delegate() remains the one dispatcher for dep
|
|
|
791
791
|
For issue #480 sandbox tests, the autouse conftest fixture clears both SANDBOX_SIGNAL_ENV_VARS and real Codex identity markers in CODEX_IDENTITY_ENV_VARS. Tests that need another enclosing runtime still set or clear competing identity markers deliberately; do not claim the fixture never clears identity markers.
|
|
792
792
|
|
|
793
793
|
---
|
|
794
|
+
|
|
795
|
+
## cce7d3161157 | 2026-10-14 | implementation | tags: git, stash, concurrency | Issue #493
|
|
796
|
+
|
|
797
|
+
`drop_stash_by_sha` verifies a positional stash ref before deleting it in a separate Git command; a competing push after verification can still shift that ref. Callers that must never delete another worktree's entry need to retain the owned stash after applying its captured SHA rather than assume verification makes deletion atomic. Inspect SHA/ref/message pairs and verify the chosen entry before manual cleanup.
|
|
798
|
+
|
|
799
|
+
---
|
|
@@ -192,6 +192,7 @@
|
|
|
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": "67a2e5a1810e4cc194a0c2f45ec5ea55", "id": "13459084", "ts": "2026-10-14T15:01:56.538334+00:00"}
|
|
195
196
|
{"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
197
|
{"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
198
|
{"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"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: wade-cli
|
|
3
|
-
Version: 1.2.
|
|
3
|
+
Version: 1.2.16
|
|
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
|
|
@@ -668,6 +668,16 @@ review outcome — reviewed at `<sha>`, reviewer changed, skipped via
|
|
|
668
668
|
binding's pass cap. A skipped, stale-reviewer, or never-run review is therefore
|
|
669
669
|
visible to reviewers rather than hidden in worktree state.
|
|
670
670
|
|
|
671
|
+
After a PR merge, WADE updates the main checkout and restores any tracked local
|
|
672
|
+
changes using the exact stash SHA it captured, even if another worktree pushes
|
|
673
|
+
its own stash meanwhile. WADE preserves any remaining owned stash entry after
|
|
674
|
+
restoration because removing a positional stash entry can race with another push. Inspect the
|
|
675
|
+
reported checkout with `git stash list --format='%H %gd %gs'` and verify the
|
|
676
|
+
selected entry matches the reported SHA before manually dropping its ref. If
|
|
677
|
+
restoration conflicts or its object is unavailable, follow the printed recovery
|
|
678
|
+
instructions; resolve conflicts before retrying the reported `stash apply <sha>`
|
|
679
|
+
command. Local recovery warnings do not mean the remote PR merge failed.
|
|
680
|
+
|
|
671
681
|
## Task Providers
|
|
672
682
|
|
|
673
683
|
WADE can pull tasks from three backends — pick one when you run `wade init`:
|
|
@@ -632,6 +632,16 @@ review outcome — reviewed at `<sha>`, reviewer changed, skipped via
|
|
|
632
632
|
binding's pass cap. A skipped, stale-reviewer, or never-run review is therefore
|
|
633
633
|
visible to reviewers rather than hidden in worktree state.
|
|
634
634
|
|
|
635
|
+
After a PR merge, WADE updates the main checkout and restores any tracked local
|
|
636
|
+
changes using the exact stash SHA it captured, even if another worktree pushes
|
|
637
|
+
its own stash meanwhile. WADE preserves any remaining owned stash entry after
|
|
638
|
+
restoration because removing a positional stash entry can race with another push. Inspect the
|
|
639
|
+
reported checkout with `git stash list --format='%H %gd %gs'` and verify the
|
|
640
|
+
selected entry matches the reported SHA before manually dropping its ref. If
|
|
641
|
+
restoration conflicts or its object is unavailable, follow the printed recovery
|
|
642
|
+
instructions; resolve conflicts before retrying the reported `stash apply <sha>`
|
|
643
|
+
command. Local recovery warnings do not mean the remote PR merge failed.
|
|
644
|
+
|
|
635
645
|
## Task Providers
|
|
636
646
|
|
|
637
647
|
WADE can pull tasks from three backends — pick one when you run `wade init`:
|
|
@@ -1517,6 +1517,20 @@ including under YOLO. Successful vote flushing and cleanup remain required.
|
|
|
1517
1517
|
|
|
1518
1518
|
`wade implementation-session done` handles PR creation / update. The post-work lifecycle prompt handles the merge decision.
|
|
1519
1519
|
|
|
1520
|
+
After a successful remote merge, `lifecycle._pull_main_after_merge()` routes its
|
|
1521
|
+
bounded pull-recovery loop to the main checkout. It stashes tracked changes
|
|
1522
|
+
once with `git.stash.create_named_stash`, using the main checkout's actual
|
|
1523
|
+
branch, and carries the returned SHA/message through success and rollback.
|
|
1524
|
+
Restoration applies that exact SHA once; it never pops the shared stack or
|
|
1525
|
+
falls back to another entry. Successful apply preserves any remaining owned
|
|
1526
|
+
entry for manual cleanup: the shared `drop_stash_by_sha` helper verifies a positional ref
|
|
1527
|
+
before a separate drop, leaving a concurrent-push window this caller avoids by
|
|
1528
|
+
not deleting. Conflicts, unavailable identities, and stash-creation failures
|
|
1529
|
+
report recovery while preserving any remaining entries. Untracked move-aside
|
|
1530
|
+
and rollback ordering stay intact; local rollback is best effort rather than
|
|
1531
|
+
crash-safe or an exact no-op when restoration fails. Local warnings do not
|
|
1532
|
+
change the already-successful remote merge result.
|
|
1533
|
+
|
|
1520
1534
|
## Determinism via Services
|
|
1521
1535
|
|
|
1522
1536
|
All deterministic operations — git commands, state transitions, file manipulation, API calls — **must live in service/utility code**, never in AI agent reasoning. Agents are non-deterministic; code is deterministic. The boundary is:
|
|
@@ -16,9 +16,11 @@ from pathlib import Path
|
|
|
16
16
|
|
|
17
17
|
import structlog
|
|
18
18
|
from pydantic import BaseModel
|
|
19
|
+
from rich.markup import escape
|
|
19
20
|
|
|
20
21
|
from wade.git import pr as git_pr
|
|
21
22
|
from wade.git import repo as git_repo
|
|
23
|
+
from wade.git import stash as git_stash
|
|
22
24
|
from wade.git import worktree as git_worktree
|
|
23
25
|
from wade.git.repo import GitError
|
|
24
26
|
from wade.models.config import ProjectConfig
|
|
@@ -226,50 +228,63 @@ def _cleanup_empty_backup_dirs(main_root: Path) -> None:
|
|
|
226
228
|
backup_root.rmdir()
|
|
227
229
|
|
|
228
230
|
|
|
229
|
-
def
|
|
230
|
-
"""
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
231
|
+
def _restore_stash_or_warn(main_root: Path, stash_sha: str, stash_message: str) -> None:
|
|
232
|
+
"""Apply exactly the owned stash once; preserve any remaining entry for cleanup."""
|
|
233
|
+
location = escape(str(main_root))
|
|
234
|
+
identity = escape(f"{stash_sha} ({stash_message})")
|
|
235
|
+
command = f"git -C {shlex.quote(str(main_root))}"
|
|
236
|
+
try:
|
|
237
|
+
result = git_stash.apply_stash_by_sha(stash_sha, main_root)
|
|
238
|
+
diagnostic = result.stderr.strip() or result.stdout.strip()
|
|
239
|
+
restored = result.returncode == 0
|
|
240
|
+
except GitError as exc:
|
|
241
|
+
diagnostic = str(exc)
|
|
242
|
+
restored = False
|
|
243
|
+
if restored:
|
|
244
|
+
# drop_stash_by_sha verifies a positional ref before a separate drop.
|
|
245
|
+
# Another worktree can push between them, so never delete here.
|
|
246
|
+
console.warn(
|
|
247
|
+
f"Restored local changes in {location}; any remaining entry for stash {identity} "
|
|
248
|
+
"is retained (automatic cleanup skipped)."
|
|
249
|
+
)
|
|
250
|
+
console.hint(
|
|
251
|
+
escape(
|
|
252
|
+
f"Inspect {command} stash list --format='%H %gd %gs'; verify the "
|
|
253
|
+
"selected entry matches this SHA before manually dropping its ref."
|
|
254
|
+
)
|
|
255
|
+
)
|
|
256
|
+
return
|
|
257
|
+
console.warn(f"Could not restore stash {identity} in {location}: {escape(diagnostic)}")
|
|
258
|
+
console.hint(
|
|
259
|
+
escape(
|
|
260
|
+
f"Inspect conflicts with {command} status and resolve them before retrying "
|
|
261
|
+
f"{command} stash apply {stash_sha}. Inspect "
|
|
262
|
+
f"{command} stash list --format='%H %gd %gs' for any retained entry; "
|
|
263
|
+
"if its object is unavailable, recover it before applying. No stash was dropped."
|
|
264
|
+
)
|
|
265
|
+
)
|
|
235
266
|
|
|
236
267
|
|
|
237
268
|
def _pull_main_after_merge(repo_root: Path) -> None:
|
|
238
|
-
"""
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
after a successful pull brings the file back *tracked*, ``git stash pop``
|
|
258
|
-
would collide ("already exists, no checkout") on the common, expected wade
|
|
259
|
-
happy path (a previously-untracked managed file becoming tracked), turning
|
|
260
|
-
today's clean success into a noisy stash-conflict on essentially every
|
|
261
|
-
merge that introduces a managed file. Move-aside keeps the happy path
|
|
262
|
-
clean; the rollback below is what makes it atomic. Do not "fix" this back.
|
|
263
|
-
- **Local changes** to tracked files (e.g. ``wade init`` touching
|
|
264
|
-
``.gitignore``) → ``git stash`` (at most once), retry the pull, pop later.
|
|
265
|
-
|
|
266
|
-
On any terminal failure (cap reached, unknown error, or no movable file left
|
|
267
|
-
to make progress), the moved files are restored to their original paths and
|
|
268
|
-
any stash is popped **before** warning, so the tree returns to entry state.
|
|
269
|
-
|
|
270
|
-
Pulling main only makes sense in the *main checkout*: a ``git pull`` run from
|
|
271
|
-
a linked worktree (on a feature branch) would target the wrong branch, so we
|
|
272
|
-
resolve the main checkout root first.
|
|
269
|
+
"""Best-effort fast-forward of the main checkout after a completed PR merge.
|
|
270
|
+
|
|
271
|
+
A bounded loop resolves untracked collisions by moving files into
|
|
272
|
+
``.wade/pull-backups`` and tracked-change obstructions by creating one named
|
|
273
|
+
stash. Untracked files are deliberately not stashed: a successful pull may
|
|
274
|
+
introduce them as tracked files, making untracked stash restoration collide.
|
|
275
|
+
|
|
276
|
+
Carry the owned stash SHA through every retry and apply that exact object
|
|
277
|
+
once, on either success or rollback. Linked worktrees share a stash stack,
|
|
278
|
+
so never pop its top entry or hold a positional ref. Successful application
|
|
279
|
+
retains the owned entry for manual cleanup because positional deletion is
|
|
280
|
+
not atomic with identity verification. Apply failures retain any available
|
|
281
|
+
entry and report recovery instead of touching another worktree's stash.
|
|
282
|
+
|
|
283
|
+
On terminal pull failure, restore moved files before applying the owned
|
|
284
|
+
stash and printing the pull warning. Rollback is best effort, not an exact
|
|
285
|
+
no-op when restoration fails, and not crash-safe. On pull success, keep the
|
|
286
|
+
untracked backups and report them. All operations route to the main
|
|
287
|
+
checkout; local recovery warnings do not undo the completed remote merge.
|
|
273
288
|
"""
|
|
274
289
|
main_root = git_repo.main_checkout_root(repo_root)
|
|
275
290
|
|
|
@@ -278,7 +293,7 @@ def _pull_main_after_merge(repo_root: Path) -> None:
|
|
|
278
293
|
return
|
|
279
294
|
|
|
280
295
|
moved: list[tuple[Path, Path]] = []
|
|
281
|
-
|
|
296
|
+
stash_identity: tuple[str, str] | None = None
|
|
282
297
|
|
|
283
298
|
for _ in range(MAX_RESOLVE_ATTEMPTS):
|
|
284
299
|
stderr = result.stderr
|
|
@@ -293,13 +308,24 @@ def _pull_main_after_merge(repo_root: Path) -> None:
|
|
|
293
308
|
break
|
|
294
309
|
moved.extend(newly_moved)
|
|
295
310
|
elif _LOCAL_CHANGES_MARKER in stderr:
|
|
296
|
-
if
|
|
311
|
+
if stash_identity is not None:
|
|
297
312
|
# Already stashed once; a second local-changes error means the
|
|
298
313
|
# stash did not clear the obstruction, so re-stashing would loop.
|
|
299
314
|
break
|
|
300
|
-
|
|
315
|
+
try:
|
|
316
|
+
main_branch = git_repo.get_current_branch(main_root)
|
|
317
|
+
stash_identity = git_stash.create_named_stash("post-merge", main_branch, main_root)
|
|
318
|
+
except GitError as exc:
|
|
319
|
+
# Creation may have succeeded before identity lookup failed.
|
|
320
|
+
# Preserve any possible entry; never guess a SHA or pop it.
|
|
321
|
+
console.warn(escape(f"Could not create post-merge stash in {main_root}: {exc}"))
|
|
322
|
+
console.hint(
|
|
323
|
+
escape(
|
|
324
|
+
f"Inspect git -C {shlex.quote(str(main_root))} stash list "
|
|
325
|
+
"--format='%H %gs' before recovering any possible stash by SHA."
|
|
326
|
+
)
|
|
327
|
+
)
|
|
301
328
|
break
|
|
302
|
-
stashed = True
|
|
303
329
|
else:
|
|
304
330
|
# Unknown error class — nothing actionable to resolve.
|
|
305
331
|
break
|
|
@@ -307,21 +333,21 @@ def _pull_main_after_merge(repo_root: Path) -> None:
|
|
|
307
333
|
result = git_repo.pull_ff_only(main_root)
|
|
308
334
|
if result.returncode == 0:
|
|
309
335
|
# Success → finalize: keep moved files in the backup dir (with the
|
|
310
|
-
# existing notice) and
|
|
336
|
+
# existing notice) and apply only the stash identity we captured.
|
|
311
337
|
if moved:
|
|
312
338
|
console.warn("Backed up untracked files that collided with the merge:")
|
|
313
339
|
for _original, backup in moved:
|
|
314
340
|
console.detail(str(backup))
|
|
315
|
-
if
|
|
316
|
-
|
|
341
|
+
if stash_identity is not None:
|
|
342
|
+
_restore_stash_or_warn(main_root, *stash_identity)
|
|
317
343
|
return
|
|
318
344
|
|
|
319
|
-
# Terminal failure →
|
|
320
|
-
#
|
|
345
|
+
# Terminal failure → best-effort rollback before warning. Restore moved
|
|
346
|
+
# files first, apply the owned stash, and best-effort clear
|
|
321
347
|
# the now-empty backup dirs so nothing is stranded in .wade/pull-backups.
|
|
322
348
|
_restore_backed_up(moved)
|
|
323
|
-
if
|
|
324
|
-
|
|
349
|
+
if stash_identity is not None:
|
|
350
|
+
_restore_stash_or_warn(main_root, *stash_identity)
|
|
325
351
|
if moved:
|
|
326
352
|
_cleanup_empty_backup_dirs(main_root)
|
|
327
353
|
_warn_pull_sync_failed()
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
"""Concurrency lane — A1: shared stash-stack race (#357).
|
|
2
|
+
|
|
3
|
+
Two sibling worktrees share ONE stash stack ($GIT_COMMON_DIR). A stash pushed
|
|
4
|
+
in worktree B shifts the positions of worktree A's stash. wade must restore its
|
|
5
|
+
own stash by content-addressed COMMIT SHA, never by a held positional ref, so
|
|
6
|
+
the position shift can't restore someone else's work. Forced interleaving via
|
|
7
|
+
real git — no threads.
|
|
8
|
+
"""
|
|
9
|
+
|
|
10
|
+
from __future__ import annotations
|
|
11
|
+
|
|
12
|
+
import subprocess
|
|
13
|
+
from pathlib import Path
|
|
14
|
+
|
|
15
|
+
import pytest
|
|
16
|
+
|
|
17
|
+
from wade.git.stash import (
|
|
18
|
+
apply_stash_by_sha,
|
|
19
|
+
create_named_stash,
|
|
20
|
+
drop_stash_by_sha,
|
|
21
|
+
)
|
|
22
|
+
|
|
23
|
+
pytestmark = pytest.mark.concurrency
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
def _git(cwd: Path, *args: str) -> str:
|
|
27
|
+
return subprocess.run(
|
|
28
|
+
["git", *args], cwd=cwd, check=True, capture_output=True, text=True
|
|
29
|
+
).stdout
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
def _repo_with_two_worktrees(tmp_path: Path) -> tuple[Path, Path, Path]:
|
|
33
|
+
repo = tmp_path / "repo"
|
|
34
|
+
repo.mkdir()
|
|
35
|
+
_git(repo, "init", "-b", "main")
|
|
36
|
+
_git(repo, "config", "user.email", "t@t.com")
|
|
37
|
+
_git(repo, "config", "user.name", "t")
|
|
38
|
+
(repo / "file.txt").write_text("base\n")
|
|
39
|
+
_git(repo, "add", "-A")
|
|
40
|
+
_git(repo, "commit", "-m", "init")
|
|
41
|
+
wt_a = tmp_path / "wt_a"
|
|
42
|
+
wt_b = tmp_path / "wt_b"
|
|
43
|
+
_git(repo, "worktree", "add", "-b", "feat-a", str(wt_a))
|
|
44
|
+
_git(repo, "worktree", "add", "-b", "feat-b", str(wt_b))
|
|
45
|
+
return repo, wt_a, wt_b
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
def test_stash_restored_by_sha_survives_competing_stash(tmp_path: Path) -> None:
|
|
49
|
+
_repo, wt_a, wt_b = _repo_with_two_worktrees(tmp_path)
|
|
50
|
+
|
|
51
|
+
# Worktree A stashes its own tracked change.
|
|
52
|
+
(wt_a / "file.txt").write_text("A-change\n")
|
|
53
|
+
sha_a, _msg_a = create_named_stash("catchup", "feat-a", wt_a)
|
|
54
|
+
assert len(sha_a) == 40
|
|
55
|
+
# After stashing, A's working file is back to base.
|
|
56
|
+
assert (wt_a / "file.txt").read_text() == "base\n"
|
|
57
|
+
|
|
58
|
+
# Worktree B stashes a DIFFERENT change — same shared stack. This shifts A's
|
|
59
|
+
# stash from position stash@{0} to stash@{1}; a held positional ref would now
|
|
60
|
+
# point at B's work.
|
|
61
|
+
(wt_b / "file.txt").write_text("B-change\n")
|
|
62
|
+
sha_b, _msg_b = create_named_stash("catchup", "feat-b", wt_b)
|
|
63
|
+
assert sha_b != sha_a
|
|
64
|
+
|
|
65
|
+
# A restores by its SHA → must get A's content, never B's.
|
|
66
|
+
result = apply_stash_by_sha(sha_a, wt_a)
|
|
67
|
+
assert result.returncode == 0
|
|
68
|
+
assert (wt_a / "file.txt").read_text() == "A-change\n"
|
|
69
|
+
|
|
70
|
+
# And the drop resolves the current position of A's stash, not a stale one.
|
|
71
|
+
assert drop_stash_by_sha(sha_a, wt_a) is True
|
|
72
|
+
# B's stash is untouched and still restorable.
|
|
73
|
+
assert apply_stash_by_sha(sha_b, wt_b).returncode == 0
|
|
74
|
+
assert (wt_b / "file.txt").read_text() == "B-change\n"
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
def test_unresolvable_stash_is_reported_not_applied(tmp_path: Path) -> None:
|
|
78
|
+
_repo, wt_a, _wt_b = _repo_with_two_worktrees(tmp_path)
|
|
79
|
+
(wt_a / "file.txt").write_text("A-change\n")
|
|
80
|
+
_sha_a, _msg = create_named_stash("catchup", "feat-a", wt_a)
|
|
81
|
+
|
|
82
|
+
# A SHA that does not resolve to any object must fail loudly (non-zero),
|
|
83
|
+
# never silently apply the wrong changes. (The all-zeros SHA is special-
|
|
84
|
+
# cased by git, so use a valid-format but non-existent hash.)
|
|
85
|
+
bogus = "dead" * 10
|
|
86
|
+
result = apply_stash_by_sha(bogus, wt_a)
|
|
87
|
+
assert result.returncode != 0
|
|
88
|
+
assert drop_stash_by_sha(bogus, wt_a) is False
|
|
89
|
+
# The working file is unchanged by the failed apply/drop.
|
|
90
|
+
assert (wt_a / "file.txt").read_text() == "base\n"
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
@pytest.mark.parametrize("pull_succeeds", [True, False])
|
|
94
|
+
def test_post_merge_restores_its_stash_after_sibling_push(
|
|
95
|
+
tmp_path: Path,
|
|
96
|
+
monkeypatch: pytest.MonkeyPatch,
|
|
97
|
+
capsys: pytest.CaptureFixture[str],
|
|
98
|
+
pull_succeeds: bool,
|
|
99
|
+
) -> None:
|
|
100
|
+
from wade.services.implementation_service import lifecycle
|
|
101
|
+
|
|
102
|
+
repo, wt_a, wt_b = _repo_with_two_worktrees(tmp_path)
|
|
103
|
+
(repo / "file.txt").write_text("MAIN USER WORK\n")
|
|
104
|
+
owned: list[str] = []
|
|
105
|
+
sibling: list[str] = []
|
|
106
|
+
calls: list[Path] = []
|
|
107
|
+
|
|
108
|
+
def pull(cwd: Path) -> subprocess.CompletedProcess[str]:
|
|
109
|
+
calls.append(cwd)
|
|
110
|
+
assert cwd == repo
|
|
111
|
+
if len(calls) == 1:
|
|
112
|
+
return subprocess.CompletedProcess([], 1, "", lifecycle._LOCAL_CHANGES_MARKER)
|
|
113
|
+
owned.append(_git(repo, "stash", "list", "--format=%H").splitlines()[0])
|
|
114
|
+
(wt_b / "file.txt").write_text("SIBLING USER WORK\n")
|
|
115
|
+
sibling.append(create_named_stash("sibling", "feat-b", wt_b)[0])
|
|
116
|
+
return subprocess.CompletedProcess([], 0 if pull_succeeds else 1, "", "pull unavailable")
|
|
117
|
+
|
|
118
|
+
monkeypatch.setattr(lifecycle.git_repo, "pull_ff_only", pull)
|
|
119
|
+
# Enter through a linked worktree: all mutations must still target main.
|
|
120
|
+
lifecycle._pull_main_after_merge(wt_a)
|
|
121
|
+
|
|
122
|
+
assert (repo / "file.txt").read_text() == "MAIN USER WORK\n"
|
|
123
|
+
stack = _git(repo, "stash", "list", "--format=%H").splitlines()
|
|
124
|
+
assert sibling[0] in stack
|
|
125
|
+
assert owned[0] in stack # Conservative cleanup never drops another entry.
|
|
126
|
+
assert apply_stash_by_sha(sibling[0], wt_b).returncode == 0
|
|
127
|
+
assert (wt_b / "file.txt").read_text() == "SIBLING USER WORK\n"
|
|
128
|
+
output = capsys.readouterr()
|
|
129
|
+
assert "retained" in output.err.lower()
|
|
130
|
+
assert owned[0] in output.err
|
|
131
|
+
assert len(calls) == 2
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
@pytest.mark.parametrize("failure", ["conflict", "missing-object", "removed-entry"])
|
|
135
|
+
def test_post_merge_restore_failures_never_fall_back_to_sibling(
|
|
136
|
+
tmp_path: Path,
|
|
137
|
+
monkeypatch: pytest.MonkeyPatch,
|
|
138
|
+
capsys: pytest.CaptureFixture[str],
|
|
139
|
+
failure: str,
|
|
140
|
+
) -> None:
|
|
141
|
+
from wade.services.implementation_service import lifecycle
|
|
142
|
+
|
|
143
|
+
repo, wt_a, wt_b = _repo_with_two_worktrees(tmp_path)
|
|
144
|
+
(repo / "file.txt").write_text("MAIN USER WORK\n")
|
|
145
|
+
owned: list[str] = []
|
|
146
|
+
sibling: list[str] = []
|
|
147
|
+
pulls = 0
|
|
148
|
+
|
|
149
|
+
def pull(cwd: Path) -> subprocess.CompletedProcess[str]:
|
|
150
|
+
nonlocal pulls
|
|
151
|
+
pulls += 1
|
|
152
|
+
assert cwd == repo
|
|
153
|
+
if pulls == 1:
|
|
154
|
+
return subprocess.CompletedProcess([], 1, "", lifecycle._LOCAL_CHANGES_MARKER)
|
|
155
|
+
owned.append(_git(repo, "stash", "list", "--format=%H").splitlines()[0])
|
|
156
|
+
(wt_b / "file.txt").write_text("SIBLING USER WORK\n")
|
|
157
|
+
sibling.append(create_named_stash("sibling", "feat-b", wt_b)[0])
|
|
158
|
+
if failure == "conflict":
|
|
159
|
+
(repo / "file.txt").write_text("PULLED MAIN CHANGE\n")
|
|
160
|
+
_git(repo, "add", "file.txt")
|
|
161
|
+
_git(repo, "commit", "-m", "simulate pulled content")
|
|
162
|
+
else:
|
|
163
|
+
# Removing the reflog entry alone still leaves the object resolvable.
|
|
164
|
+
_git(repo, "stash", "drop", "stash@{1}")
|
|
165
|
+
if failure == "missing-object":
|
|
166
|
+
_git(repo, "prune", "--expire=now")
|
|
167
|
+
probe = subprocess.run(
|
|
168
|
+
["git", "cat-file", "-e", owned[0]], cwd=repo, capture_output=True
|
|
169
|
+
)
|
|
170
|
+
assert probe.returncode != 0
|
|
171
|
+
return subprocess.CompletedProcess([], 0, "", "")
|
|
172
|
+
|
|
173
|
+
monkeypatch.setattr(lifecycle.git_repo, "pull_ff_only", pull)
|
|
174
|
+
lifecycle._pull_main_after_merge(wt_a)
|
|
175
|
+
|
|
176
|
+
content = (repo / "file.txt").read_text()
|
|
177
|
+
assert "SIBLING USER WORK" not in content
|
|
178
|
+
stack = _git(repo, "stash", "list", "--format=%H").splitlines()
|
|
179
|
+
assert sibling[0] in stack
|
|
180
|
+
if failure == "conflict":
|
|
181
|
+
assert "MAIN USER WORK" in content and "PULLED MAIN CHANGE" in content
|
|
182
|
+
assert _git(repo, "ls-files", "-u")
|
|
183
|
+
assert owned[0] in stack
|
|
184
|
+
elif failure == "missing-object":
|
|
185
|
+
assert content == "base\n"
|
|
186
|
+
assert owned[0] not in stack
|
|
187
|
+
else:
|
|
188
|
+
assert content == "MAIN USER WORK\n"
|
|
189
|
+
assert owned[0] not in stack
|
|
190
|
+
assert apply_stash_by_sha(sibling[0], wt_b).returncode == 0
|
|
191
|
+
assert (wt_b / "file.txt").read_text() == "SIBLING USER WORK\n"
|
|
192
|
+
output = capsys.readouterr()
|
|
193
|
+
assert owned[0] in output.err
|
|
194
|
+
assert str(repo) in output.out + output.err
|
|
195
|
+
if failure != "removed-entry":
|
|
196
|
+
assert "git -C" in output.out
|
|
197
|
+
assert f"stash apply {owned[0]}" in " ".join(output.out.split())
|
|
198
|
+
if failure == "removed-entry":
|
|
199
|
+
assert "any remaining entry" in " ".join(output.err.split())
|
|
200
|
+
assert "stash drop " + owned[0] not in output.out + output.err
|
|
201
|
+
assert pulls == 2
|