@pennyfarthing/core 11.3.2 → 11.3.4
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.
- package/README.md +1 -1
- package/package.json +3 -2
- package/packages/core/dist/cli/commands/doctor.d.ts +1 -9
- package/packages/core/dist/cli/commands/doctor.d.ts.map +1 -1
- package/packages/core/dist/cli/commands/doctor.js +51 -107
- package/packages/core/dist/cli/commands/doctor.js.map +1 -1
- package/packages/core/dist/cli/commands/stale-artifacts-cleanup.test.d.ts +17 -0
- package/packages/core/dist/cli/commands/stale-artifacts-cleanup.test.d.ts.map +1 -0
- package/packages/core/dist/cli/commands/stale-artifacts-cleanup.test.js +470 -0
- package/packages/core/dist/cli/commands/stale-artifacts-cleanup.test.js.map +1 -0
- package/packages/core/dist/cli/commands/update.d.ts.map +1 -1
- package/packages/core/dist/cli/commands/update.js +26 -1
- package/packages/core/dist/cli/commands/update.js.map +1 -1
- package/packages/core/dist/cli/cyclist-migration.test.d.ts +16 -0
- package/packages/core/dist/cli/cyclist-migration.test.d.ts.map +1 -0
- package/packages/core/dist/cli/cyclist-migration.test.js +229 -0
- package/packages/core/dist/cli/cyclist-migration.test.js.map +1 -0
- package/packages/core/dist/cli/utils/python.d.ts +0 -1
- package/packages/core/dist/cli/utils/python.d.ts.map +1 -1
- package/packages/core/dist/cli/utils/python.js +1 -11
- package/packages/core/dist/cli/utils/python.js.map +1 -1
- package/packages/core/dist/cli/utils/stale-artifacts.d.ts +59 -0
- package/packages/core/dist/cli/utils/stale-artifacts.d.ts.map +1 -0
- package/packages/core/dist/cli/utils/stale-artifacts.js +163 -0
- package/packages/core/dist/cli/utils/stale-artifacts.js.map +1 -0
- package/packages/core/dist/scripts/benchmark-integration.d.ts +182 -0
- package/packages/core/dist/scripts/benchmark-integration.d.ts.map +1 -0
- package/packages/core/dist/scripts/benchmark-integration.js +691 -0
- package/packages/core/dist/scripts/benchmark-integration.js.map +1 -0
- package/packages/core/dist/scripts/job-fair-aggregator.d.ts +150 -0
- package/packages/core/dist/scripts/job-fair-aggregator.d.ts.map +1 -0
- package/packages/core/dist/scripts/job-fair-aggregator.js +547 -0
- package/packages/core/dist/scripts/job-fair-aggregator.js.map +1 -0
- package/packages/core/dist/scripts/theme-detail.test.d.ts.map +1 -0
- package/packages/core/dist/scripts/theme-detail.test.js.map +1 -0
- package/packages/core/dist/server/paths.d.ts.map +1 -1
- package/packages/core/dist/server/paths.js +0 -6
- package/packages/core/dist/server/paths.js.map +1 -1
- package/pennyfarthing-dist/agents/sm-finish.md +2 -2
- package/pennyfarthing-dist/agents/testing-runner.md +1 -1
- package/pennyfarthing-dist/commands/pf-prime.md +1 -1
- package/pennyfarthing-dist/commands/pf-setup.md +4 -2
- package/pennyfarthing-dist/guides/agent-behavior.md +1 -1
- package/pennyfarthing-dist/guides/bikerack.md +1 -1
- package/pennyfarthing-dist/guides/brownfield-tools.md +7 -7
- package/pennyfarthing-dist/guides/gates.md +3 -3
- package/pennyfarthing-dist/guides/handoff-cli.md +6 -6
- package/pennyfarthing-dist/guides/prime.md +6 -6
- package/pennyfarthing-dist/guides/scale-levels.md +1 -1
- package/pennyfarthing-dist/personas/themes/discworld.yaml +16 -24
- package/pennyfarthing-dist/personas/themes/firefly.yaml +4 -4
- package/pennyfarthing-dist/pf/CLAUDE.md +213 -0
- package/pennyfarthing-dist/pf/README.md +66 -0
- package/pennyfarthing-dist/pf/__pycache__/__init__.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/__pycache__/bellmode_hook.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/__pycache__/cli.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/__pycache__/config.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/__pycache__/context.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/__pycache__/context.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/__pycache__/hooks.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/__pycache__/jira.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/__pycache__/jira_bidirectional_sync.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/__pycache__/jira_epic_creation.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/__pycache__/jira_sync.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/__pycache__/jira_sync_story.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/__pycache__/output.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/__pycache__/patch_mode.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/__pycache__/pretooluse_hook.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/__pycache__/schema_validation_hook.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/__pycache__/session_start_hook.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/__pycache__/sprint.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/__pycache__/workflow.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/__pycache__/workflow.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/bc/__pycache__/__init__.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/bc/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/bc/__pycache__/cli.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/bc/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/bc/__pycache__/focus.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/bc/__pycache__/focus.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/bc/__pycache__/split.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/bc/cli.py +242 -0
- package/pennyfarthing-dist/pf/bc/focus.py +334 -0
- package/pennyfarthing-dist/pf/bc/split.py +52 -0
- package/pennyfarthing-dist/pf/bellmode_hook.py +22 -0
- package/pennyfarthing-dist/pf/bikerack/__init__.py +44 -0
- package/pennyfarthing-dist/pf/bikerack/__main__.py +5 -0
- package/pennyfarthing-dist/pf/bikerack/__pycache__/__init__.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/bikerack/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/bikerack/__pycache__/__main__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/bikerack/__pycache__/audit_log_panel.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/bikerack/__pycache__/background_panel.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/bikerack/__pycache__/base_panel.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/bikerack/__pycache__/changed_panel.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/bikerack/__pycache__/cli.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/bikerack/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/bikerack/__pycache__/context_meter_footer.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/bikerack/__pycache__/debug_panel.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/bikerack/__pycache__/diffs_panel.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/bikerack/__pycache__/events.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/bikerack/__pycache__/git_panel.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/bikerack/__pycache__/launcher.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/bikerack/__pycache__/launcher.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/bikerack/__pycache__/portrait_resolver.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/bikerack/__pycache__/progress_panel.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/bikerack/__pycache__/sprint_panel.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/bikerack/__pycache__/story_detail_data.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/bikerack/__pycache__/story_detail_screen.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/bikerack/__pycache__/tui.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/bikerack/__pycache__/ws_client.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/bikerack/audit_log_panel.py +161 -0
- package/pennyfarthing-dist/pf/bikerack/background_panel.py +162 -0
- package/pennyfarthing-dist/pf/bikerack/changed_panel.py +201 -0
- package/pennyfarthing-dist/pf/bikerack/cli.py +145 -0
- package/pennyfarthing-dist/pf/bikerack/context_meter_footer.py +138 -0
- package/pennyfarthing-dist/pf/bikerack/debug_panel.py +248 -0
- package/pennyfarthing-dist/pf/bikerack/diffs_panel.py +409 -0
- package/pennyfarthing-dist/pf/bikerack/git_panel.py +139 -0
- package/pennyfarthing-dist/pf/bikerack/launcher.py +240 -0
- package/pennyfarthing-dist/pf/bikerack/portrait_resolver.py +139 -0
- package/pennyfarthing-dist/pf/bikerack/progress_panel.py +314 -0
- package/pennyfarthing-dist/pf/bikerack/sprint_panel.py +435 -0
- package/pennyfarthing-dist/pf/bikerack/story_detail_data.py +247 -0
- package/pennyfarthing-dist/pf/bikerack/story_detail_screen.py +177 -0
- package/pennyfarthing-dist/pf/bikerack/tui.py +935 -0
- package/pennyfarthing-dist/pf/bmad/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/bmad/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/bmad/cli.py +197 -0
- package/pennyfarthing-dist/pf/bmad/importer.py +200 -0
- package/pennyfarthing-dist/pf/bmad/sync.py +464 -0
- package/pennyfarthing-dist/pf/bmad/test_parser.py +253 -0
- package/pennyfarthing-dist/pf/bmad/test_sync.py +223 -0
- package/pennyfarthing-dist/pf/brownfield/__init__.py +35 -0
- package/pennyfarthing-dist/pf/brownfield/__main__.py +8 -0
- package/pennyfarthing-dist/pf/brownfield/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/brownfield/__pycache__/__main__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/brownfield/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/brownfield/__pycache__/discover.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/brownfield/cli.py +130 -0
- package/pennyfarthing-dist/pf/cli.py +354 -0
- package/pennyfarthing-dist/pf/codemarkers/__init__.py +23 -0
- package/pennyfarthing-dist/pf/codemarkers/__main__.py +6 -0
- package/pennyfarthing-dist/pf/codemarkers/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/codemarkers/__pycache__/__main__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/codemarkers/__pycache__/analyze.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/codemarkers/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/codemarkers/__pycache__/formatters.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/codemarkers/__pycache__/models.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/codemarkers/analyze.py +501 -0
- package/pennyfarthing-dist/pf/codemarkers/cli.py +179 -0
- package/pennyfarthing-dist/pf/codemarkers/formatters.py +88 -0
- package/pennyfarthing-dist/pf/common/__init__.py +48 -0
- package/pennyfarthing-dist/pf/common/__pycache__/__init__.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/common/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/common/__pycache__/config.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/common/__pycache__/config.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/common/__pycache__/output.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/common/__pycache__/output.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/common/__pycache__/pr_config.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/common/__pycache__/themes.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/common/pr_config.py +38 -0
- package/pennyfarthing-dist/pf/common/themes.py +253 -0
- package/pennyfarthing-dist/pf/complexity/__init__.py +15 -0
- package/pennyfarthing-dist/pf/complexity/__main__.py +6 -0
- package/pennyfarthing-dist/pf/complexity/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/complexity/__pycache__/__main__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/complexity/__pycache__/analyze.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/complexity/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/complexity/__pycache__/formatters.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/complexity/__pycache__/models.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/complexity/analyze.py +207 -0
- package/pennyfarthing-dist/pf/complexity/cli.py +82 -0
- package/pennyfarthing-dist/pf/complexity/formatters.py +64 -0
- package/pennyfarthing-dist/pf/config.py +21 -0
- package/pennyfarthing-dist/pf/consultation/__pycache__/__init__.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/consultation/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/consultation/__pycache__/cli.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/consultation/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/consultation/__pycache__/dialogue_manager.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/consultation/cli.py +149 -0
- package/pennyfarthing-dist/pf/deadcode/__main__.py +6 -0
- package/pennyfarthing-dist/pf/deadcode/__pycache__/__init__.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/deadcode/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/deadcode/__pycache__/__main__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/deadcode/__pycache__/analyze.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/deadcode/__pycache__/cli.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/deadcode/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/deadcode/__pycache__/formatters.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/deadcode/__pycache__/models.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/deadcode/analyze.py +322 -0
- package/pennyfarthing-dist/pf/deadcode/cli.py +163 -0
- package/pennyfarthing-dist/pf/deadcode/formatters.py +106 -0
- package/pennyfarthing-dist/pf/dependencies/__init__.py +20 -0
- package/pennyfarthing-dist/pf/dependencies/__main__.py +5 -0
- package/pennyfarthing-dist/pf/dependencies/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/dependencies/__pycache__/__main__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/dependencies/__pycache__/analyze.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/dependencies/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/dependencies/__pycache__/formatters.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/dependencies/__pycache__/models.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/dependencies/analyze.py +155 -0
- package/pennyfarthing-dist/pf/dependencies/cli.py +76 -0
- package/pennyfarthing-dist/pf/dependencies/formatters.py +63 -0
- package/pennyfarthing-dist/pf/epic/__pycache__/__init__.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/epic/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/epic/__pycache__/cli.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/epic/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/gate/cli.py +56 -0
- package/pennyfarthing-dist/pf/git/__init__.py +40 -0
- package/pennyfarthing-dist/pf/git/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/git/__pycache__/create_branches.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/git/__pycache__/status_all.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/git/create_branches.py +439 -0
- package/pennyfarthing-dist/pf/git/hooks_installer.py +151 -0
- package/pennyfarthing-dist/pf/git/repos.py +196 -0
- package/pennyfarthing-dist/pf/git/status_all.py +326 -0
- package/pennyfarthing-dist/pf/git/worktree.py +302 -0
- package/pennyfarthing-dist/pf/git_group/__pycache__/__init__.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/git_group/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/git_group/__pycache__/cli.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/git_group/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/git_group/cli.py +203 -0
- package/pennyfarthing-dist/pf/handoff/__pycache__/__init__.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/handoff/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/handoff/__pycache__/cli.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/handoff/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/handoff/__pycache__/complete_phase.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/handoff/__pycache__/gate_file.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/handoff/__pycache__/gate_runner.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/handoff/__pycache__/marker.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/handoff/__pycache__/phase_check.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/handoff/__pycache__/resolve_gate.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/handoff/cli.py +152 -0
- package/pennyfarthing-dist/pf/handoff/marker.py +109 -0
- package/pennyfarthing-dist/pf/handoff/phase_check.py +96 -0
- package/pennyfarthing-dist/pf/healthscore/__init__.py +21 -0
- package/pennyfarthing-dist/pf/healthscore/__main__.py +14 -0
- package/pennyfarthing-dist/pf/healthscore/__pycache__/__init__.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/healthscore/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/healthscore/__pycache__/__main__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/healthscore/__pycache__/analyze.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/healthscore/__pycache__/analyze.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/healthscore/__pycache__/cli.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/healthscore/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/healthscore/__pycache__/formatters.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/healthscore/__pycache__/models.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/healthscore/__pycache__/models.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/healthscore/analyze.py +606 -0
- package/pennyfarthing-dist/pf/healthscore/cli.py +80 -0
- package/pennyfarthing-dist/pf/healthscore/formatters.py +46 -0
- package/pennyfarthing-dist/pf/hooks/__pycache__/__init__.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/hooks/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/hooks/__pycache__/bell_mode.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/hooks/__pycache__/bell_mode.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/hooks/__pycache__/cli.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/hooks/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/hooks/__pycache__/context_breaker.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/hooks/__pycache__/context_breaker.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/hooks/__pycache__/context_warning.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/hooks/__pycache__/context_warning.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/hooks/__pycache__/cyclist_pretooluse.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/hooks/__pycache__/cyclist_pretooluse.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/hooks/__pycache__/pre_edit_check.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/hooks/__pycache__/pre_edit_check.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/hooks/__pycache__/reflector_check.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/hooks/__pycache__/reflector_check.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/hooks/__pycache__/schema_validation.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/hooks/__pycache__/schema_validation.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/hooks/__pycache__/session_start.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/hooks/__pycache__/session_start.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/hooks/__pycache__/session_stop.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/hooks/__pycache__/sprint_yaml_validation.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/hooks/__pycache__/sprint_yaml_validation.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/hooks/__pycache__/statusline.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/hooks/__pycache__/statusline.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/hooks/bell_mode.py +214 -0
- package/pennyfarthing-dist/pf/hooks/cli.py +96 -0
- package/pennyfarthing-dist/pf/hooks/context_breaker.py +104 -0
- package/pennyfarthing-dist/pf/hooks/context_warning.py +66 -0
- package/pennyfarthing-dist/pf/hooks/cyclist_pretooluse.py +129 -0
- package/pennyfarthing-dist/pf/hooks/schema_validation.py +202 -0
- package/pennyfarthing-dist/pf/hooks/session_start.py +294 -0
- package/pennyfarthing-dist/pf/hooks/sprint_yaml_validation.py +97 -0
- package/pennyfarthing-dist/pf/hooks/statusline.py +429 -0
- package/pennyfarthing-dist/pf/hooks.py +32 -0
- package/pennyfarthing-dist/pf/hotspots/__init__.py +31 -0
- package/pennyfarthing-dist/pf/hotspots/__main__.py +6 -0
- package/pennyfarthing-dist/pf/hotspots/__pycache__/__init__.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/hotspots/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/hotspots/__pycache__/__main__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/hotspots/__pycache__/analyze.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/hotspots/__pycache__/analyze.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/hotspots/__pycache__/cli.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/hotspots/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/hotspots/__pycache__/formatters.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/hotspots/__pycache__/models.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/hotspots/__pycache__/models.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/hotspots/analyze.py +613 -0
- package/pennyfarthing-dist/pf/hotspots/cli.py +154 -0
- package/pennyfarthing-dist/pf/hotspots/formatters.py +109 -0
- package/pennyfarthing-dist/pf/jira/__init__.py +97 -0
- package/pennyfarthing-dist/pf/jira/__main__.py +10 -0
- package/pennyfarthing-dist/pf/jira/__pycache__/__init__.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/jira/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/jira/__pycache__/__main__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/jira/__pycache__/bidirectional.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/jira/__pycache__/bidirectional.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/jira/__pycache__/claim.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/jira/__pycache__/claim.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/jira/__pycache__/cli.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/jira/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/jira/__pycache__/client.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/jira/__pycache__/client.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/jira/__pycache__/compat.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/jira/__pycache__/create.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/jira/__pycache__/create.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/jira/__pycache__/epic.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/jira/__pycache__/epic.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/jira/__pycache__/mappings.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/jira/__pycache__/models.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/jira/__pycache__/operations.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/jira/__pycache__/operations.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/jira/__pycache__/reconcile.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/jira/__pycache__/reconcile.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/jira/__pycache__/story.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/jira/__pycache__/story.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/jira/__pycache__/sync.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/jira/__pycache__/sync.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/jira/bidirectional.py +587 -0
- package/pennyfarthing-dist/pf/jira/claim.py +232 -0
- package/pennyfarthing-dist/pf/jira/cli.py +362 -0
- package/pennyfarthing-dist/pf/jira/client.py +802 -0
- package/pennyfarthing-dist/pf/jira/create.py +311 -0
- package/pennyfarthing-dist/pf/jira/epic.py +177 -0
- package/pennyfarthing-dist/pf/jira/operations.py +124 -0
- package/pennyfarthing-dist/pf/jira/reconcile.py +276 -0
- package/pennyfarthing-dist/pf/jira/story.py +221 -0
- package/pennyfarthing-dist/pf/jira/sync.py +350 -0
- package/pennyfarthing-dist/pf/jira_bidirectional_sync.py +37 -0
- package/pennyfarthing-dist/pf/jira_epic_creation.py +30 -0
- package/pennyfarthing-dist/pf/jira_sync.py +36 -0
- package/pennyfarthing-dist/pf/jira_sync_story.py +30 -0
- package/pennyfarthing-dist/pf/launch/__pycache__/__init__.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/launch/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/launch/__pycache__/cli.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/launch/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/launch/cli.py +231 -0
- package/pennyfarthing-dist/pf/migration/__init__.py +39 -0
- package/pennyfarthing-dist/pf/migration/__main__.py +10 -0
- package/pennyfarthing-dist/pf/migration/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/migration/__pycache__/__main__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/migration/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/migration/__pycache__/session.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/migration/__pycache__/skill.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/migration/__pycache__/step.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/migration/__pycache__/validate.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/migration/cli.py +304 -0
- package/pennyfarthing-dist/pf/migration/validate.py +285 -0
- package/pennyfarthing-dist/pf/output.py +37 -0
- package/pennyfarthing-dist/pf/patch_mode.py +449 -0
- package/pennyfarthing-dist/pf/preflight/__init__.py +17 -0
- package/pennyfarthing-dist/pf/preflight/__main__.py +10 -0
- package/pennyfarthing-dist/pf/preflight/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/preflight/__pycache__/__main__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/preflight/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/preflight/__pycache__/finish.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/preflight/cli.py +141 -0
- package/pennyfarthing-dist/pf/pretooluse_hook.py +10 -0
- package/pennyfarthing-dist/pf/prime/__init__.py +127 -0
- package/pennyfarthing-dist/pf/prime/__main__.py +8 -0
- package/pennyfarthing-dist/pf/prime/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/prime/__pycache__/__main__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/prime/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/prime/__pycache__/loader.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/prime/__pycache__/models.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/prime/__pycache__/persona.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/prime/__pycache__/session.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/prime/__pycache__/tiers.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/prime/__pycache__/version_sentinel.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/prime/__pycache__/workflow.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/prime/cli.py +662 -0
- package/pennyfarthing-dist/pf/prime/heatmap.py +643 -0
- package/pennyfarthing-dist/pf/prime/loader.py +308 -0
- package/pennyfarthing-dist/pf/prime/persona.py +311 -0
- package/pennyfarthing-dist/pf/prime/session.py +183 -0
- package/pennyfarthing-dist/pf/prime/tiers.py +214 -0
- package/pennyfarthing-dist/pf/prime/workflow.py +317 -0
- package/pennyfarthing-dist/pf/schema_validation_hook.py +10 -0
- package/pennyfarthing-dist/pf/session/__pycache__/__init__.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/session/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/session/__pycache__/cli.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/session/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/session/cli.py +87 -0
- package/pennyfarthing-dist/pf/session_start_hook.py +10 -0
- package/pennyfarthing-dist/pf/settings/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/settings/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/settings/__pycache__/settings.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/settings/cli.py +55 -0
- package/pennyfarthing-dist/pf/settings/settings.py +98 -0
- package/pennyfarthing-dist/pf/sprint/__init__.py +64 -0
- package/pennyfarthing-dist/pf/sprint/__main__.py +10 -0
- package/pennyfarthing-dist/pf/sprint/__pycache__/__init__.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/sprint/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/sprint/__pycache__/__main__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/sprint/__pycache__/archive.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/sprint/__pycache__/archive.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/sprint/__pycache__/archive_epic.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/sprint/__pycache__/cli.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/sprint/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/sprint/__pycache__/epic_add.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/sprint/__pycache__/epic_add.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/sprint/__pycache__/epic_update.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/sprint/__pycache__/epic_update.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/sprint/__pycache__/import_epic.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/sprint/__pycache__/loader.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/sprint/__pycache__/loader.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/sprint/__pycache__/status.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/sprint/__pycache__/status.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/sprint/__pycache__/story_add.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/sprint/__pycache__/story_add.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/sprint/__pycache__/story_finish.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/sprint/__pycache__/story_update.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/sprint/__pycache__/story_update.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/sprint/__pycache__/validate_cmd.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/sprint/__pycache__/validate_cmd.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/sprint/__pycache__/validator.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/sprint/__pycache__/validator.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/sprint/__pycache__/work.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/sprint/__pycache__/work.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/sprint/__pycache__/yaml_io.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/sprint/__pycache__/yaml_io.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/sprint/archive.py +164 -0
- package/pennyfarthing-dist/pf/sprint/archive_epic.py +625 -0
- package/pennyfarthing-dist/pf/sprint/cli.py +2021 -0
- package/pennyfarthing-dist/pf/sprint/epic_add.py +186 -0
- package/pennyfarthing-dist/pf/sprint/epic_update.py +148 -0
- package/pennyfarthing-dist/pf/sprint/import_epic.py +455 -0
- package/pennyfarthing-dist/pf/sprint/loader.py +441 -0
- package/pennyfarthing-dist/pf/sprint/status.py +121 -0
- package/pennyfarthing-dist/pf/sprint/story_add.py +372 -0
- package/pennyfarthing-dist/pf/sprint/story_finish.py +227 -0
- package/pennyfarthing-dist/pf/sprint/story_update.py +222 -0
- package/pennyfarthing-dist/pf/sprint/validate_cmd.py +307 -0
- package/pennyfarthing-dist/pf/sprint/validator.py +694 -0
- package/pennyfarthing-dist/pf/sprint/work.py +229 -0
- package/pennyfarthing-dist/pf/story/__init__.py +65 -0
- package/pennyfarthing-dist/pf/story/__main__.py +10 -0
- package/pennyfarthing-dist/pf/story/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/story/__pycache__/__main__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/story/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/story/__pycache__/create.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/story/__pycache__/size.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/story/__pycache__/template.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/story/cli.py +105 -0
- package/pennyfarthing-dist/pf/story/create.py +167 -0
- package/pennyfarthing-dist/pf/tests/__init__.py +1 -0
- package/pennyfarthing-dist/pf/tests/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/tests/__pycache__/conftest.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/pf/tests/__pycache__/test_108_1_gate_migration.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/pf/tests/__pycache__/test_archive_epic.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/pf/tests/__pycache__/test_bc.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/pf/tests/__pycache__/test_bikerack.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/pf/tests/__pycache__/test_brownfield.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/pf/tests/__pycache__/test_cli_modules.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/pf/tests/__pycache__/test_cli_normalization.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/pf/tests/__pycache__/test_codemarkers.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/pf/tests/__pycache__/test_common.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/pf/tests/__pycache__/test_confidence_sm_evaluation.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/pf/tests/__pycache__/test_confidence_sm_gate.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/pf/tests/__pycache__/test_dialogue_manager.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/pf/tests/__pycache__/test_epic_shard_validation.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/pf/tests/__pycache__/test_git_utils.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/pf/tests/__pycache__/test_handoff_cli.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/pf/tests/__pycache__/test_handoff_e2e.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/pf/tests/__pycache__/test_healthscore.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/pf/tests/__pycache__/test_jira_package.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/pf/tests/__pycache__/test_package_structure.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/pf/tests/__pycache__/test_patch_mode.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/pf/tests/__pycache__/test_prime.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/pf/tests/__pycache__/test_sprint_package.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/pf/tests/__pycache__/test_sprint_panel.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/pf/tests/__pycache__/test_sprint_validator.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/pf/tests/__pycache__/test_story_add.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/pf/tests/__pycache__/test_story_package.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/pf/tests/__pycache__/test_story_update.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/pf/tests/__pycache__/test_tiers.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/pf/tests/__pycache__/test_token_counting.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/pf/tests/__pycache__/test_topology_loader.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/pf/tests/__pycache__/test_tui_focus.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/pf/tests/__pycache__/test_tui_panel_persistence.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/pf/tests/__pycache__/test_validate_cmd.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/pf/tests/__pycache__/test_version_sentinel.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/pf/tests/__pycache__/test_workflow_check.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/pf/tests/__pycache__/test_workflow_cli.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/pf/tests/__pycache__/test_yaml_io.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/pf/tests/conftest.py +105 -0
- package/pennyfarthing-dist/pf/tests/test_108_1_gate_migration.py +540 -0
- package/pennyfarthing-dist/pf/tests/test_108_2_remove_handoff_fallback.py +339 -0
- package/pennyfarthing-dist/pf/tests/test_archive_epic.py +185 -0
- package/pennyfarthing-dist/pf/tests/test_bc.py +490 -0
- package/pennyfarthing-dist/pf/tests/test_bikerack.py +785 -0
- package/pennyfarthing-dist/pf/tests/test_brownfield.py +839 -0
- package/pennyfarthing-dist/pf/tests/test_cli_modules.py +241 -0
- package/pennyfarthing-dist/pf/tests/test_cli_normalization.py +295 -0
- package/pennyfarthing-dist/pf/tests/test_codemarkers.py +687 -0
- package/pennyfarthing-dist/pf/tests/test_common.py +185 -0
- package/pennyfarthing-dist/pf/tests/test_confidence_sm_evaluation.py +253 -0
- package/pennyfarthing-dist/pf/tests/test_confidence_sm_gate.py +316 -0
- package/pennyfarthing-dist/pf/tests/test_dialogue_manager.py +810 -0
- package/pennyfarthing-dist/pf/tests/test_epic_shard_validation.py +699 -0
- package/pennyfarthing-dist/pf/tests/test_gate_file_resolution.py +341 -0
- package/pennyfarthing-dist/pf/tests/test_gate_runner.py +620 -0
- package/pennyfarthing-dist/pf/tests/test_git_utils.py +863 -0
- package/pennyfarthing-dist/pf/tests/test_handoff_cli.py +934 -0
- package/pennyfarthing-dist/pf/tests/test_handoff_e2e.py +454 -0
- package/pennyfarthing-dist/pf/tests/test_healthscore.py +516 -0
- package/pennyfarthing-dist/pf/tests/test_jira_package.py +331 -0
- package/pennyfarthing-dist/pf/tests/test_package_structure.py +359 -0
- package/pennyfarthing-dist/pf/tests/test_patch_mode.py +826 -0
- package/pennyfarthing-dist/pf/tests/test_prime.py +1068 -0
- package/pennyfarthing-dist/pf/tests/test_resolve_gate_file_field.py +460 -0
- package/pennyfarthing-dist/pf/tests/test_sprint_package.py +397 -0
- package/pennyfarthing-dist/pf/tests/test_sprint_panel.py +610 -0
- package/pennyfarthing-dist/pf/tests/test_sprint_validator.py +779 -0
- package/pennyfarthing-dist/pf/tests/test_story_add.py +917 -0
- package/pennyfarthing-dist/pf/tests/test_story_package.py +153 -0
- package/pennyfarthing-dist/pf/tests/test_story_update.py +764 -0
- package/pennyfarthing-dist/pf/tests/test_tiers.py +1091 -0
- package/pennyfarthing-dist/pf/tests/test_token_counting.py +565 -0
- package/pennyfarthing-dist/pf/tests/test_topology_loader.py +620 -0
- package/pennyfarthing-dist/pf/tests/test_tui_focus.py +411 -0
- package/pennyfarthing-dist/pf/tests/test_tui_panel_persistence.py +411 -0
- package/pennyfarthing-dist/pf/tests/test_validate_cmd.py +495 -0
- package/pennyfarthing-dist/pf/tests/test_version_sentinel.py +122 -0
- package/pennyfarthing-dist/pf/tests/test_workflow_check.py +338 -0
- package/pennyfarthing-dist/pf/tests/test_workflow_list_team.py +143 -0
- package/pennyfarthing-dist/pf/tests/test_yaml_io.py +812 -0
- package/pennyfarthing-dist/pf/theme/__main__.py +6 -0
- package/pennyfarthing-dist/pf/theme/__pycache__/__init__.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/theme/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/theme/__pycache__/cli.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/theme/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/theme/cli.py +310 -0
- package/pennyfarthing-dist/pf/validate/__pycache__/__init__.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/validate/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/validate/__pycache__/cli.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/validate/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/validate/adapters/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/validate/adapters/__pycache__/agent.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/validate/adapters/__pycache__/schema.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/validate/adapters/__pycache__/skill_command.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/validate/adapters/__pycache__/sprint.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/validate/adapters/__pycache__/tandem_awareness.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/validate/adapters/__pycache__/workflow.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/validate/adapters/agent.py +239 -0
- package/pennyfarthing-dist/pf/validate/adapters/schema.py +30 -0
- package/pennyfarthing-dist/pf/validate/adapters/skill_command.py +491 -0
- package/pennyfarthing-dist/pf/validate/adapters/sprint.py +69 -0
- package/pennyfarthing-dist/pf/validate/adapters/tandem_awareness.py +254 -0
- package/pennyfarthing-dist/pf/validate/adapters/team_mode.py +323 -0
- package/pennyfarthing-dist/pf/validate/adapters/workflow.py +403 -0
- package/pennyfarthing-dist/pf/validate/cli.py +164 -0
- package/pennyfarthing-dist/pf/welcome_hook.py +10 -0
- package/pennyfarthing-dist/pf/workflow/__init__.py +40 -0
- package/pennyfarthing-dist/pf/workflow/__pycache__/__init__.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/workflow/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/workflow/__pycache__/cli.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/workflow/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/workflow/__pycache__/helpers.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/workflow/__pycache__/scale.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/workflow/__pycache__/scale.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/workflow/__pycache__/state.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/workflow/__pycache__/state.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/workflow/cli.py +1101 -0
- package/pennyfarthing-dist/pf/workflow/helpers.py +241 -0
- package/pennyfarthing-dist/pyproject.toml +18 -0
- package/pennyfarthing-dist/scripts/core/agent-session.sh +3 -3
- package/pennyfarthing-dist/scripts/core/check-context.sh +8 -8
- package/pennyfarthing-dist/scripts/hooks/__pycache__/question_reflector_check.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/scripts/hooks/pre-commit.sh +3 -3
- package/pennyfarthing-dist/scripts/jira/README.md +1 -1
- package/pennyfarthing-dist/scripts/jira/create-jira-epic.sh +1 -1
- package/pennyfarthing-dist/scripts/jira/create-jira-story.sh +1 -1
- package/pennyfarthing-dist/scripts/jira/jira-claim-story.sh +1 -1
- package/pennyfarthing-dist/scripts/jira/jira-reconcile.sh +1 -1
- package/pennyfarthing-dist/scripts/jira/jira-sync-story.sh +1 -1
- package/pennyfarthing-dist/scripts/jira/sync-epic-jira.sh +1 -1
- package/pennyfarthing-dist/scripts/lib/common.sh +3 -3
- package/pennyfarthing-dist/scripts/lib/run-pf.sh +11 -13
- package/pennyfarthing-dist/scripts/sprint/README.md +1 -1
- package/pennyfarthing-dist/scripts/story/create-story.sh +1 -1
- package/pennyfarthing-dist/scripts/story/size-story.sh +1 -1
- package/pennyfarthing-dist/scripts/story/story-template.sh +1 -1
- package/pennyfarthing-dist/scripts/theme/list-themes.sh +3 -3
- package/pennyfarthing-dist/templates/pyproject.toml +3 -3
- package/pennyfarthing-dist/workflows/project-setup/steps/step-08-theme-packs.md +1 -1
- package/pennyfarthing-dist/workflows/project-setup/steps/step-09-jira.md +92 -0
- package/pennyfarthing-dist/workflows/project-setup/steps/step-10-cyclist.md +245 -0
- package/pennyfarthing-dist/workflows/project-setup/steps/step-11-complete.md +205 -0
- package/packages/core/dist/cli/utils/settings-pf-wrapper.test.d.ts +0 -16
- package/packages/core/dist/cli/utils/settings-pf-wrapper.test.d.ts.map +0 -1
- package/packages/core/dist/cli/utils/settings-pf-wrapper.test.js +0 -377
- package/packages/core/dist/cli/utils/settings-pf-wrapper.test.js.map +0 -1
- package/packages/core/dist/workflow/team-lifecycle.d.ts +0 -169
- package/packages/core/dist/workflow/team-lifecycle.d.ts.map +0 -1
- package/packages/core/dist/workflow/team-lifecycle.js +0 -217
- package/packages/core/dist/workflow/team-lifecycle.js.map +0 -1
- package/packages/core/dist/workflow/team-lifecycle.test.d.ts +0 -20
- package/packages/core/dist/workflow/team-lifecycle.test.d.ts.map +0 -1
- package/packages/core/dist/workflow/team-lifecycle.test.js +0 -966
- package/packages/core/dist/workflow/team-lifecycle.test.js.map +0 -1
- package/packages/core/dist/workflow/workflow-graph-validation.d.ts +0 -65
- package/packages/core/dist/workflow/workflow-graph-validation.d.ts.map +0 -1
- package/packages/core/dist/workflow/workflow-graph-validation.js +0 -190
- package/packages/core/dist/workflow/workflow-graph-validation.js.map +0 -1
- package/packages/core/dist/workflow/workflow-graph-validation.test.d.ts +0 -18
- package/packages/core/dist/workflow/workflow-graph-validation.test.d.ts.map +0 -1
- package/packages/core/dist/workflow/workflow-graph-validation.test.js +0 -706
- package/packages/core/dist/workflow/workflow-graph-validation.test.js.map +0 -1
- package/pennyfarthing-dist/workflows/project-setup/steps/step-09-cyclist.md +0 -245
- package/pennyfarthing-dist/workflows/project-setup/steps/step-10-complete.md +0 -204
- package/pennyfarthing_scripts/CLAUDE.md +0 -213
- package/pennyfarthing_scripts/README.md +0 -66
- package/pennyfarthing_scripts/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/__pycache__/bellmode_hook.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/__pycache__/config.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/__pycache__/context.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/__pycache__/hooks.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/__pycache__/jira_bidirectional_sync.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/__pycache__/jira_epic_creation.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/__pycache__/jira_sync.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/__pycache__/jira_sync_story.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/__pycache__/output.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/__pycache__/patch_mode.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/__pycache__/pretooluse_hook.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/__pycache__/schema_validation_hook.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/__pycache__/session_start_hook.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/__pycache__/workflow.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/bc/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/bc/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/bc/__pycache__/focus.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/bc/__pycache__/split.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/bc/cli.py +0 -242
- package/pennyfarthing_scripts/bc/focus.py +0 -334
- package/pennyfarthing_scripts/bc/split.py +0 -52
- package/pennyfarthing_scripts/bellmode_hook.py +0 -22
- package/pennyfarthing_scripts/bikerack/__init__.py +0 -44
- package/pennyfarthing_scripts/bikerack/__main__.py +0 -5
- package/pennyfarthing_scripts/bikerack/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/bikerack/__pycache__/__main__.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/bikerack/__pycache__/audit_log_panel.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/bikerack/__pycache__/background_panel.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/bikerack/__pycache__/base_panel.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/bikerack/__pycache__/changed_panel.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/bikerack/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/bikerack/__pycache__/context_meter_footer.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/bikerack/__pycache__/debug_panel.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/bikerack/__pycache__/diffs_panel.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/bikerack/__pycache__/events.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/bikerack/__pycache__/git_panel.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/bikerack/__pycache__/launcher.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/bikerack/__pycache__/portrait.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/bikerack/__pycache__/portrait_resolver.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/bikerack/__pycache__/progress_panel.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/bikerack/__pycache__/sprint_panel.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/bikerack/__pycache__/story_detail_data.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/bikerack/__pycache__/story_detail_screen.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/bikerack/__pycache__/tui.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/bikerack/__pycache__/ws_client.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/bikerack/audit_log_panel.py +0 -161
- package/pennyfarthing_scripts/bikerack/background_panel.py +0 -162
- package/pennyfarthing_scripts/bikerack/changed_panel.py +0 -201
- package/pennyfarthing_scripts/bikerack/cli.py +0 -145
- package/pennyfarthing_scripts/bikerack/context_meter_footer.py +0 -138
- package/pennyfarthing_scripts/bikerack/debug_panel.py +0 -248
- package/pennyfarthing_scripts/bikerack/diffs_panel.py +0 -409
- package/pennyfarthing_scripts/bikerack/git_panel.py +0 -139
- package/pennyfarthing_scripts/bikerack/launcher.py +0 -240
- package/pennyfarthing_scripts/bikerack/portrait_resolver.py +0 -139
- package/pennyfarthing_scripts/bikerack/progress_panel.py +0 -314
- package/pennyfarthing_scripts/bikerack/sprint_panel.py +0 -435
- package/pennyfarthing_scripts/bikerack/story_detail_data.py +0 -247
- package/pennyfarthing_scripts/bikerack/story_detail_screen.py +0 -177
- package/pennyfarthing_scripts/bikerack/tui.py +0 -935
- package/pennyfarthing_scripts/bmad/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/bmad/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/bmad/__pycache__/parser.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/bmad/__pycache__/sync.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/bmad/__pycache__/test_parser.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing_scripts/bmad/__pycache__/test_sync.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing_scripts/bmad/cli.py +0 -197
- package/pennyfarthing_scripts/bmad/importer.py +0 -200
- package/pennyfarthing_scripts/bmad/sync.py +0 -464
- package/pennyfarthing_scripts/bmad/test_parser.py +0 -253
- package/pennyfarthing_scripts/bmad/test_sync.py +0 -223
- package/pennyfarthing_scripts/brownfield/__init__.py +0 -35
- package/pennyfarthing_scripts/brownfield/__main__.py +0 -8
- package/pennyfarthing_scripts/brownfield/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/brownfield/__pycache__/__main__.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/brownfield/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/brownfield/__pycache__/discover.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/brownfield/cli.py +0 -130
- package/pennyfarthing_scripts/cli.py +0 -354
- package/pennyfarthing_scripts/codemarkers/__init__.py +0 -23
- package/pennyfarthing_scripts/codemarkers/__main__.py +0 -6
- package/pennyfarthing_scripts/codemarkers/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/codemarkers/__pycache__/__main__.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/codemarkers/__pycache__/analyze.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/codemarkers/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/codemarkers/__pycache__/formatters.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/codemarkers/__pycache__/models.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/codemarkers/analyze.py +0 -501
- package/pennyfarthing_scripts/codemarkers/cli.py +0 -179
- package/pennyfarthing_scripts/codemarkers/formatters.py +0 -88
- package/pennyfarthing_scripts/common/__init__.py +0 -48
- package/pennyfarthing_scripts/common/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/common/__pycache__/config.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/common/__pycache__/output.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/common/__pycache__/themes.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/common/pr_config.py +0 -38
- package/pennyfarthing_scripts/common/themes.py +0 -253
- package/pennyfarthing_scripts/complexity/__init__.py +0 -15
- package/pennyfarthing_scripts/complexity/__main__.py +0 -6
- package/pennyfarthing_scripts/complexity/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/complexity/__pycache__/__main__.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/complexity/__pycache__/analyze.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/complexity/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/complexity/__pycache__/formatters.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/complexity/__pycache__/models.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/complexity/analyze.py +0 -207
- package/pennyfarthing_scripts/complexity/cli.py +0 -82
- package/pennyfarthing_scripts/complexity/formatters.py +0 -64
- package/pennyfarthing_scripts/config.py +0 -21
- package/pennyfarthing_scripts/consultation/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/consultation/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/consultation/cli.py +0 -149
- package/pennyfarthing_scripts/deadcode/__main__.py +0 -6
- package/pennyfarthing_scripts/deadcode/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/deadcode/__pycache__/__main__.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/deadcode/__pycache__/analyze.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/deadcode/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/deadcode/__pycache__/formatters.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/deadcode/__pycache__/models.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/deadcode/analyze.py +0 -322
- package/pennyfarthing_scripts/deadcode/cli.py +0 -163
- package/pennyfarthing_scripts/deadcode/formatters.py +0 -106
- package/pennyfarthing_scripts/dependencies/__init__.py +0 -20
- package/pennyfarthing_scripts/dependencies/__main__.py +0 -5
- package/pennyfarthing_scripts/dependencies/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/dependencies/__pycache__/__main__.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/dependencies/__pycache__/analyze.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/dependencies/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/dependencies/__pycache__/formatters.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/dependencies/__pycache__/models.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/dependencies/analyze.py +0 -155
- package/pennyfarthing_scripts/dependencies/cli.py +0 -76
- package/pennyfarthing_scripts/dependencies/formatters.py +0 -63
- package/pennyfarthing_scripts/epic/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/epic/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/gate/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/gate/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/gate/__pycache__/validate.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/gate/cli.py +0 -56
- package/pennyfarthing_scripts/git/__init__.py +0 -40
- package/pennyfarthing_scripts/git/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/git/__pycache__/create_branches.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/git/__pycache__/hooks_installer.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/git/__pycache__/repos.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/git/__pycache__/status_all.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/git/__pycache__/worktree.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/git/create_branches.py +0 -439
- package/pennyfarthing_scripts/git/hooks_installer.py +0 -151
- package/pennyfarthing_scripts/git/repos.py +0 -196
- package/pennyfarthing_scripts/git/status_all.py +0 -326
- package/pennyfarthing_scripts/git/worktree.py +0 -302
- package/pennyfarthing_scripts/git_group/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/git_group/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/git_group/cli.py +0 -203
- package/pennyfarthing_scripts/handoff/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/handoff/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/handoff/__pycache__/complete_phase.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/handoff/__pycache__/gate_file.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/handoff/__pycache__/gate_runner.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/handoff/__pycache__/marker.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/handoff/__pycache__/phase_check.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/handoff/__pycache__/resolve_gate.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/handoff/cli.py +0 -152
- package/pennyfarthing_scripts/handoff/marker.py +0 -109
- package/pennyfarthing_scripts/handoff/phase_check.py +0 -96
- package/pennyfarthing_scripts/healthscore/__init__.py +0 -21
- package/pennyfarthing_scripts/healthscore/__main__.py +0 -14
- package/pennyfarthing_scripts/healthscore/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/healthscore/__pycache__/__main__.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/healthscore/__pycache__/analyze.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/healthscore/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/healthscore/__pycache__/formatters.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/healthscore/__pycache__/models.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/healthscore/analyze.py +0 -606
- package/pennyfarthing_scripts/healthscore/cli.py +0 -80
- package/pennyfarthing_scripts/healthscore/formatters.py +0 -46
- package/pennyfarthing_scripts/hooks/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/hooks/__pycache__/bell_mode.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/hooks/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/hooks/__pycache__/context_breaker.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/hooks/__pycache__/context_warning.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/hooks/__pycache__/cyclist_pretooluse.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/hooks/__pycache__/pre_edit_check.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/hooks/__pycache__/reflector_check.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/hooks/__pycache__/schema_validation.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/hooks/__pycache__/session_start.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/hooks/__pycache__/session_stop.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/hooks/__pycache__/sprint_yaml_validation.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/hooks/__pycache__/statusline.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/hooks/bell_mode.py +0 -214
- package/pennyfarthing_scripts/hooks/cli.py +0 -96
- package/pennyfarthing_scripts/hooks/context_breaker.py +0 -104
- package/pennyfarthing_scripts/hooks/context_warning.py +0 -66
- package/pennyfarthing_scripts/hooks/cyclist_pretooluse.py +0 -129
- package/pennyfarthing_scripts/hooks/schema_validation.py +0 -202
- package/pennyfarthing_scripts/hooks/session_start.py +0 -294
- package/pennyfarthing_scripts/hooks/sprint_yaml_validation.py +0 -97
- package/pennyfarthing_scripts/hooks/statusline.py +0 -429
- package/pennyfarthing_scripts/hooks.py +0 -32
- package/pennyfarthing_scripts/hotspots/__init__.py +0 -31
- package/pennyfarthing_scripts/hotspots/__main__.py +0 -6
- package/pennyfarthing_scripts/hotspots/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/hotspots/__pycache__/__main__.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/hotspots/__pycache__/analyze.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/hotspots/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/hotspots/__pycache__/formatters.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/hotspots/__pycache__/models.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/hotspots/analyze.py +0 -613
- package/pennyfarthing_scripts/hotspots/cli.py +0 -154
- package/pennyfarthing_scripts/hotspots/formatters.py +0 -109
- package/pennyfarthing_scripts/jira/__init__.py +0 -97
- package/pennyfarthing_scripts/jira/__main__.py +0 -10
- package/pennyfarthing_scripts/jira/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/jira/__pycache__/__main__.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/jira/__pycache__/bidirectional.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/jira/__pycache__/claim.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/jira/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/jira/__pycache__/client.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/jira/__pycache__/create.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/jira/__pycache__/epic.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/jira/__pycache__/operations.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/jira/__pycache__/reconcile.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/jira/__pycache__/story.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/jira/__pycache__/sync.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/jira/bidirectional.py +0 -587
- package/pennyfarthing_scripts/jira/claim.py +0 -232
- package/pennyfarthing_scripts/jira/cli.py +0 -362
- package/pennyfarthing_scripts/jira/client.py +0 -790
- package/pennyfarthing_scripts/jira/create.py +0 -311
- package/pennyfarthing_scripts/jira/epic.py +0 -177
- package/pennyfarthing_scripts/jira/operations.py +0 -124
- package/pennyfarthing_scripts/jira/reconcile.py +0 -276
- package/pennyfarthing_scripts/jira/story.py +0 -221
- package/pennyfarthing_scripts/jira/sync.py +0 -350
- package/pennyfarthing_scripts/jira_bidirectional_sync.py +0 -37
- package/pennyfarthing_scripts/jira_epic_creation.py +0 -30
- package/pennyfarthing_scripts/jira_sync.py +0 -36
- package/pennyfarthing_scripts/jira_sync_story.py +0 -30
- package/pennyfarthing_scripts/launch/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/launch/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/launch/cli.py +0 -231
- package/pennyfarthing_scripts/migration/__init__.py +0 -39
- package/pennyfarthing_scripts/migration/__main__.py +0 -10
- package/pennyfarthing_scripts/migration/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/migration/__pycache__/session.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/migration/__pycache__/skill.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/migration/__pycache__/step.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/migration/__pycache__/validate.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/migration/cli.py +0 -304
- package/pennyfarthing_scripts/migration/validate.py +0 -285
- package/pennyfarthing_scripts/output.py +0 -37
- package/pennyfarthing_scripts/patch_mode.py +0 -449
- package/pennyfarthing_scripts/preflight/__init__.py +0 -17
- package/pennyfarthing_scripts/preflight/__main__.py +0 -10
- package/pennyfarthing_scripts/preflight/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/preflight/__pycache__/__main__.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/preflight/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/preflight/__pycache__/finish.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/preflight/cli.py +0 -141
- package/pennyfarthing_scripts/pretooluse_hook.py +0 -10
- package/pennyfarthing_scripts/prime/__init__.py +0 -127
- package/pennyfarthing_scripts/prime/__main__.py +0 -8
- package/pennyfarthing_scripts/prime/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/prime/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/prime/__pycache__/heatmap.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/prime/__pycache__/loader.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/prime/__pycache__/models.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/prime/__pycache__/persona.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/prime/__pycache__/session.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/prime/__pycache__/tiers.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/prime/__pycache__/version_sentinel.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/prime/__pycache__/workflow.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/prime/cli.py +0 -662
- package/pennyfarthing_scripts/prime/heatmap.py +0 -643
- package/pennyfarthing_scripts/prime/loader.py +0 -308
- package/pennyfarthing_scripts/prime/persona.py +0 -311
- package/pennyfarthing_scripts/prime/session.py +0 -183
- package/pennyfarthing_scripts/prime/tiers.py +0 -214
- package/pennyfarthing_scripts/prime/workflow.py +0 -317
- package/pennyfarthing_scripts/schema_validation_hook.py +0 -10
- package/pennyfarthing_scripts/session/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/session/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/session/cli.py +0 -87
- package/pennyfarthing_scripts/session_start_hook.py +0 -10
- package/pennyfarthing_scripts/settings/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/settings/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/settings/__pycache__/settings.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/settings/cli.py +0 -55
- package/pennyfarthing_scripts/settings/settings.py +0 -98
- package/pennyfarthing_scripts/sprint/__init__.py +0 -64
- package/pennyfarthing_scripts/sprint/__main__.py +0 -10
- package/pennyfarthing_scripts/sprint/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/sprint/__pycache__/__main__.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/sprint/__pycache__/archive.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/sprint/__pycache__/archive_epic.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/sprint/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/sprint/__pycache__/epic_add.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/sprint/__pycache__/epic_update.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/sprint/__pycache__/import_epic.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/sprint/__pycache__/loader.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/sprint/__pycache__/status.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/sprint/__pycache__/story_add.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/sprint/__pycache__/story_finish.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/sprint/__pycache__/story_update.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/sprint/__pycache__/validate_cmd.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/sprint/__pycache__/validator.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/sprint/__pycache__/work.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/sprint/__pycache__/yaml_io.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/sprint/archive.py +0 -164
- package/pennyfarthing_scripts/sprint/archive_epic.py +0 -625
- package/pennyfarthing_scripts/sprint/cli.py +0 -2021
- package/pennyfarthing_scripts/sprint/epic_add.py +0 -186
- package/pennyfarthing_scripts/sprint/epic_update.py +0 -148
- package/pennyfarthing_scripts/sprint/import_epic.py +0 -455
- package/pennyfarthing_scripts/sprint/loader.py +0 -441
- package/pennyfarthing_scripts/sprint/status.py +0 -121
- package/pennyfarthing_scripts/sprint/story_add.py +0 -372
- package/pennyfarthing_scripts/sprint/story_finish.py +0 -227
- package/pennyfarthing_scripts/sprint/story_update.py +0 -222
- package/pennyfarthing_scripts/sprint/validate_cmd.py +0 -307
- package/pennyfarthing_scripts/sprint/validator.py +0 -694
- package/pennyfarthing_scripts/sprint/work.py +0 -229
- package/pennyfarthing_scripts/story/__init__.py +0 -65
- package/pennyfarthing_scripts/story/__main__.py +0 -10
- package/pennyfarthing_scripts/story/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/story/__pycache__/__main__.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/story/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/story/__pycache__/create.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/story/__pycache__/size.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/story/__pycache__/template.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/story/cli.py +0 -105
- package/pennyfarthing_scripts/story/create.py +0 -167
- package/pennyfarthing_scripts/tests/__init__.py +0 -1
- package/pennyfarthing_scripts/tests/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/tests/__pycache__/conftest.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing_scripts/tests/__pycache__/test_108_2_remove_handoff_fallback.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing_scripts/tests/__pycache__/test_archive_epic.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing_scripts/tests/__pycache__/test_bc.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing_scripts/tests/__pycache__/test_bikerack.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing_scripts/tests/__pycache__/test_brownfield.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing_scripts/tests/__pycache__/test_cli_modules.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing_scripts/tests/__pycache__/test_cli_normalization.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing_scripts/tests/__pycache__/test_codemarkers.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing_scripts/tests/__pycache__/test_common.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing_scripts/tests/__pycache__/test_confidence_sm_evaluation.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing_scripts/tests/__pycache__/test_confidence_sm_gate.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing_scripts/tests/__pycache__/test_epic_shard_validation.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing_scripts/tests/__pycache__/test_gate_file_resolution.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing_scripts/tests/__pycache__/test_gate_runner.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing_scripts/tests/__pycache__/test_git_utils.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing_scripts/tests/__pycache__/test_handoff_cli.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing_scripts/tests/__pycache__/test_handoff_e2e.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing_scripts/tests/__pycache__/test_healthscore.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing_scripts/tests/__pycache__/test_jira_package.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing_scripts/tests/__pycache__/test_package_structure.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing_scripts/tests/__pycache__/test_patch_mode.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing_scripts/tests/__pycache__/test_prime.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing_scripts/tests/__pycache__/test_resolve_gate_file_field.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing_scripts/tests/__pycache__/test_sprint_package.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing_scripts/tests/__pycache__/test_sprint_panel.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing_scripts/tests/__pycache__/test_sprint_validator.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing_scripts/tests/__pycache__/test_story_add.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing_scripts/tests/__pycache__/test_story_package.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing_scripts/tests/__pycache__/test_story_update.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing_scripts/tests/__pycache__/test_tiers.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing_scripts/tests/__pycache__/test_token_counting.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing_scripts/tests/__pycache__/test_topology_loader.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing_scripts/tests/__pycache__/test_tui_focus.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing_scripts/tests/__pycache__/test_tui_panel_persistence.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing_scripts/tests/__pycache__/test_validate_cmd.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing_scripts/tests/__pycache__/test_version_sentinel.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing_scripts/tests/__pycache__/test_workflow_check.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing_scripts/tests/__pycache__/test_workflow_list_team.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing_scripts/tests/__pycache__/test_workflow_list_team.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/tests/__pycache__/test_yaml_io.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing_scripts/tests/conftest.py +0 -105
- package/pennyfarthing_scripts/tests/test_108_1_gate_migration.py +0 -540
- package/pennyfarthing_scripts/tests/test_108_2_remove_handoff_fallback.py +0 -339
- package/pennyfarthing_scripts/tests/test_archive_epic.py +0 -185
- package/pennyfarthing_scripts/tests/test_bc.py +0 -490
- package/pennyfarthing_scripts/tests/test_bikerack.py +0 -785
- package/pennyfarthing_scripts/tests/test_brownfield.py +0 -839
- package/pennyfarthing_scripts/tests/test_cli_modules.py +0 -241
- package/pennyfarthing_scripts/tests/test_cli_normalization.py +0 -295
- package/pennyfarthing_scripts/tests/test_codemarkers.py +0 -687
- package/pennyfarthing_scripts/tests/test_common.py +0 -185
- package/pennyfarthing_scripts/tests/test_confidence_sm_evaluation.py +0 -253
- package/pennyfarthing_scripts/tests/test_confidence_sm_gate.py +0 -316
- package/pennyfarthing_scripts/tests/test_dialogue_manager.py +0 -810
- package/pennyfarthing_scripts/tests/test_epic_shard_validation.py +0 -699
- package/pennyfarthing_scripts/tests/test_gate_file_resolution.py +0 -341
- package/pennyfarthing_scripts/tests/test_gate_runner.py +0 -620
- package/pennyfarthing_scripts/tests/test_git_utils.py +0 -863
- package/pennyfarthing_scripts/tests/test_handoff_cli.py +0 -934
- package/pennyfarthing_scripts/tests/test_handoff_e2e.py +0 -454
- package/pennyfarthing_scripts/tests/test_healthscore.py +0 -516
- package/pennyfarthing_scripts/tests/test_jira_package.py +0 -331
- package/pennyfarthing_scripts/tests/test_package_structure.py +0 -359
- package/pennyfarthing_scripts/tests/test_patch_mode.py +0 -826
- package/pennyfarthing_scripts/tests/test_prime.py +0 -1068
- package/pennyfarthing_scripts/tests/test_resolve_gate_file_field.py +0 -462
- package/pennyfarthing_scripts/tests/test_sprint_package.py +0 -397
- package/pennyfarthing_scripts/tests/test_sprint_panel.py +0 -610
- package/pennyfarthing_scripts/tests/test_sprint_validator.py +0 -779
- package/pennyfarthing_scripts/tests/test_story_add.py +0 -917
- package/pennyfarthing_scripts/tests/test_story_package.py +0 -153
- package/pennyfarthing_scripts/tests/test_story_update.py +0 -764
- package/pennyfarthing_scripts/tests/test_tiers.py +0 -1091
- package/pennyfarthing_scripts/tests/test_token_counting.py +0 -565
- package/pennyfarthing_scripts/tests/test_topology_loader.py +0 -620
- package/pennyfarthing_scripts/tests/test_tui_focus.py +0 -411
- package/pennyfarthing_scripts/tests/test_tui_panel_persistence.py +0 -411
- package/pennyfarthing_scripts/tests/test_validate_cmd.py +0 -495
- package/pennyfarthing_scripts/tests/test_version_sentinel.py +0 -122
- package/pennyfarthing_scripts/tests/test_workflow_check.py +0 -338
- package/pennyfarthing_scripts/tests/test_workflow_list_team.py +0 -143
- package/pennyfarthing_scripts/tests/test_yaml_io.py +0 -812
- package/pennyfarthing_scripts/theme/__main__.py +0 -6
- package/pennyfarthing_scripts/theme/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/theme/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/theme/cli.py +0 -310
- package/pennyfarthing_scripts/validate/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/validate/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/validate/adapters/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/validate/adapters/__pycache__/agent.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/validate/adapters/__pycache__/schema.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/validate/adapters/__pycache__/skill_command.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/validate/adapters/__pycache__/sprint.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/validate/adapters/__pycache__/tandem_awareness.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/validate/adapters/__pycache__/team_mode.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/validate/adapters/__pycache__/workflow.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/validate/adapters/agent.py +0 -239
- package/pennyfarthing_scripts/validate/adapters/schema.py +0 -30
- package/pennyfarthing_scripts/validate/adapters/skill_command.py +0 -491
- package/pennyfarthing_scripts/validate/adapters/sprint.py +0 -69
- package/pennyfarthing_scripts/validate/adapters/tandem_awareness.py +0 -254
- package/pennyfarthing_scripts/validate/adapters/team_mode.py +0 -323
- package/pennyfarthing_scripts/validate/adapters/workflow.py +0 -403
- package/pennyfarthing_scripts/validate/cli.py +0 -164
- package/pennyfarthing_scripts/welcome_hook.py +0 -10
- package/pennyfarthing_scripts/workflow/__init__.py +0 -40
- package/pennyfarthing_scripts/workflow/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/workflow/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/workflow/__pycache__/helpers.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/workflow/__pycache__/scale.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/workflow/__pycache__/state.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/workflow/__pycache__/team_lifecycle.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/workflow/cli.py +0 -1101
- package/pennyfarthing_scripts/workflow/helpers.py +0 -241
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/__init__.py +0 -0
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/bc/__init__.py +0 -0
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/bikerack/base_panel.py +0 -0
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/bikerack/events.py +0 -0
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/bikerack/ws_client.py +0 -0
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/bmad/__init__.py +0 -0
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/bmad/parser.py +0 -0
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/brownfield/discover.py +0 -0
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/codemarkers/models.py +0 -0
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/common/config.py +0 -0
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/common/output.py +0 -0
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/complexity/models.py +0 -0
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/consultation/__init__.py +0 -0
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/consultation/dialogue_manager.py +0 -0
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/context.py +0 -0
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/deadcode/__init__.py +0 -0
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/deadcode/models.py +0 -0
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/dependencies/models.py +0 -0
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/epic/__init__.py +0 -0
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/epic/cli.py +0 -0
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/gate/__init__.py +0 -0
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/gate/validate.py +0 -0
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/git_group/__init__.py +0 -0
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/handoff/__init__.py +0 -0
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/handoff/complete_phase.py +0 -0
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/handoff/gate_file.py +0 -0
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/handoff/gate_runner.py +0 -0
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/handoff/resolve_gate.py +0 -0
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/healthscore/models.py +0 -0
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/hooks/__init__.py +0 -0
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/hooks/cyclist-pretooluse-hook.sh +0 -0
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/hooks/pre_edit_check.py +0 -0
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/hooks/reflector_check.py +0 -0
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/hooks/session_stop.py +0 -0
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/hotspots/models.py +0 -0
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/launch/__init__.py +0 -0
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/migration/session.py +0 -0
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/migration/skill.py +0 -0
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/migration/step.py +0 -0
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/preflight/finish.py +0 -0
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/prime/models.py +0 -0
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/prime/version_sentinel.py +0 -0
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/session/__init__.py +0 -0
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/settings/__init__.py +0 -0
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/sprint/yaml_io.py +0 -0
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/story/size.py +0 -0
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/story/template.py +0 -0
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/swebench.py +0 -0
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/theme/__init__.py +0 -0
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/validate/__init__.py +0 -0
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/validate/adapters/__init__.py +0 -0
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/workflow/scale.py +0 -0
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/workflow/state.py +0 -0
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/workflow/team_lifecycle.py +0 -0
|
@@ -1,934 +0,0 @@
|
|
|
1
|
-
"""Tests for pf handoff — Script-First Handoff (Story 105-1).
|
|
2
|
-
|
|
3
|
-
Epic: 105 (Script-First Handoff)
|
|
4
|
-
Story: 105-1 — Create handoff CLI with resolve-gate and complete-phase
|
|
5
|
-
|
|
6
|
-
Tests the two subcommands:
|
|
7
|
-
- resolve-gate: reads workflow YAML, resolves gate, returns RESOLVE_RESULT
|
|
8
|
-
- complete-phase: atomically updates session file with phase transition
|
|
9
|
-
|
|
10
|
-
Acceptance Criteria:
|
|
11
|
-
- [AC1] resolve-gate reads workflow YAML, finds current phase gate,
|
|
12
|
-
checks assessment, returns structured RESOLVE_RESULT
|
|
13
|
-
- [AC2] complete-phase atomically updates session file (temp+mv) with
|
|
14
|
-
phase transition, timestamps, and history tables
|
|
15
|
-
- [AC3] Python module in pennyfarthing_scripts.handoff
|
|
16
|
-
- [AC4] stdout is the only communication channel — no side-channel files
|
|
17
|
-
- [AC5] Exit codes: 0 = ready/skip, 1 = blocked
|
|
18
|
-
- [AC6] YAML parsing via PyYAML
|
|
19
|
-
- [AC7] Session parsing via Python string/regex
|
|
20
|
-
"""
|
|
21
|
-
|
|
22
|
-
from __future__ import annotations
|
|
23
|
-
|
|
24
|
-
import re
|
|
25
|
-
import textwrap
|
|
26
|
-
from pathlib import Path
|
|
27
|
-
from unittest.mock import patch
|
|
28
|
-
|
|
29
|
-
import pytest
|
|
30
|
-
import yaml
|
|
31
|
-
from click.testing import CliRunner
|
|
32
|
-
|
|
33
|
-
from pennyfarthing_scripts.cli import cli
|
|
34
|
-
from pennyfarthing_scripts.handoff.complete_phase import complete_phase
|
|
35
|
-
from pennyfarthing_scripts.handoff.resolve_gate import resolve_gate
|
|
36
|
-
|
|
37
|
-
# ---------------------------------------------------------------------------
|
|
38
|
-
# Fixtures: Workflow YAML data
|
|
39
|
-
# ---------------------------------------------------------------------------
|
|
40
|
-
|
|
41
|
-
TDD_WORKFLOW = {
|
|
42
|
-
"workflow": {
|
|
43
|
-
"name": "tdd",
|
|
44
|
-
"phases": [
|
|
45
|
-
{"name": "setup", "agent": "sm"},
|
|
46
|
-
{"name": "red", "agent": "tea", "gate": {"type": "tests_fail"}},
|
|
47
|
-
{"name": "green", "agent": "dev", "gate": {"type": "tests_pass"}},
|
|
48
|
-
{"name": "review", "agent": "reviewer", "gate": {"type": "approval"}},
|
|
49
|
-
{"name": "finish", "agent": "sm"},
|
|
50
|
-
],
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
TRIVIAL_WORKFLOW = {
|
|
55
|
-
"workflow": {
|
|
56
|
-
"name": "trivial",
|
|
57
|
-
"phases": [
|
|
58
|
-
{"name": "setup", "agent": "sm"},
|
|
59
|
-
{"name": "implement", "agent": "dev", "gate": {"type": "tests_pass"}},
|
|
60
|
-
{"name": "review", "agent": "reviewer", "gate": {"type": "approval"}},
|
|
61
|
-
{"name": "finish", "agent": "sm"},
|
|
62
|
-
],
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
PATCH_WORKFLOW = {
|
|
67
|
-
"workflow": {
|
|
68
|
-
"name": "patch",
|
|
69
|
-
"phases": [
|
|
70
|
-
{"name": "fix", "agent": "dev", "gate": {"type": "manual"}},
|
|
71
|
-
],
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
BDD_WORKFLOW = {
|
|
76
|
-
"workflow": {
|
|
77
|
-
"name": "bdd",
|
|
78
|
-
"phases": [
|
|
79
|
-
{"name": "setup", "agent": "sm"},
|
|
80
|
-
{"name": "design", "agent": "ux-designer", "gate": {"type": "design_review"}},
|
|
81
|
-
{"name": "red", "agent": "tea", "gate": {"type": "tests_fail"}},
|
|
82
|
-
{"name": "green", "agent": "dev", "gate": {"type": "tests_pass"}},
|
|
83
|
-
{"name": "review", "agent": "reviewer", "gate": {"type": "approval"}},
|
|
84
|
-
{"name": "finish", "agent": "sm"},
|
|
85
|
-
],
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
# ---------------------------------------------------------------------------
|
|
91
|
-
# Fixtures: Session file content
|
|
92
|
-
# ---------------------------------------------------------------------------
|
|
93
|
-
|
|
94
|
-
SESSION_WITH_ASSESSMENT = textwrap.dedent("""\
|
|
95
|
-
# Story 105-1: Create handoff-cli with resolve-gate and complete-phase
|
|
96
|
-
|
|
97
|
-
**Story ID:** 105-1
|
|
98
|
-
**Workflow:** tdd
|
|
99
|
-
**Phase:** green
|
|
100
|
-
**Phase Started:** 2026-02-15T07:53:07Z
|
|
101
|
-
|
|
102
|
-
## TEA Assessment
|
|
103
|
-
|
|
104
|
-
**Tests Written:** 5 tests
|
|
105
|
-
**Status:** RED confirmed
|
|
106
|
-
|
|
107
|
-
## Workflow Tracking
|
|
108
|
-
|
|
109
|
-
**Phase:** green
|
|
110
|
-
**Phase Started:** 2026-02-15T07:53:07Z
|
|
111
|
-
|
|
112
|
-
### Phase History
|
|
113
|
-
| Phase | Started | Ended | Duration |
|
|
114
|
-
|-------|---------|-------|----------|
|
|
115
|
-
| setup | 2026-02-15T07:50:00Z | 2026-02-15T07:52:00Z | 2m |
|
|
116
|
-
| red | 2026-02-15T07:52:00Z | 2026-02-15T07:53:07Z | 1m |
|
|
117
|
-
| green | 2026-02-15T07:53:07Z | - | - |
|
|
118
|
-
|
|
119
|
-
### Handoff History
|
|
120
|
-
| From | To | Gate | Status | Timestamp |
|
|
121
|
-
|------|-----|------|--------|-----------|
|
|
122
|
-
| setup (sm) | red (tea) | - | PASSED | 2026-02-15T07:52:00Z |
|
|
123
|
-
| red (tea) | green (dev) | tests_fail | PASSED | 2026-02-15T07:53:07Z |
|
|
124
|
-
""")
|
|
125
|
-
|
|
126
|
-
SESSION_WITHOUT_ASSESSMENT = textwrap.dedent("""\
|
|
127
|
-
# Story 105-1: Create handoff-cli with resolve-gate and complete-phase
|
|
128
|
-
|
|
129
|
-
**Story ID:** 105-1
|
|
130
|
-
**Workflow:** tdd
|
|
131
|
-
**Phase:** green
|
|
132
|
-
**Phase Started:** 2026-02-15T07:53:07Z
|
|
133
|
-
|
|
134
|
-
## Workflow Tracking
|
|
135
|
-
|
|
136
|
-
**Phase:** green
|
|
137
|
-
**Phase Started:** 2026-02-15T07:53:07Z
|
|
138
|
-
|
|
139
|
-
### Phase History
|
|
140
|
-
| Phase | Started | Ended | Duration |
|
|
141
|
-
|-------|---------|-------|----------|
|
|
142
|
-
| green | 2026-02-15T07:53:07Z | - | - |
|
|
143
|
-
|
|
144
|
-
### Handoff History
|
|
145
|
-
| From | To | Gate | Status | Timestamp |
|
|
146
|
-
|------|-----|------|--------|-----------|
|
|
147
|
-
""")
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
# ---------------------------------------------------------------------------
|
|
151
|
-
# Fixtures: Project structure
|
|
152
|
-
# ---------------------------------------------------------------------------
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
@pytest.fixture
|
|
156
|
-
def project(tmp_path: Path) -> Path:
|
|
157
|
-
"""Create a minimal project structure with workflow YAMLs."""
|
|
158
|
-
workflows_dir = tmp_path / ".pennyfarthing" / "workflows"
|
|
159
|
-
workflows_dir.mkdir(parents=True)
|
|
160
|
-
|
|
161
|
-
for name, data in [
|
|
162
|
-
("tdd", TDD_WORKFLOW),
|
|
163
|
-
("trivial", TRIVIAL_WORKFLOW),
|
|
164
|
-
("patch", PATCH_WORKFLOW),
|
|
165
|
-
("bdd", BDD_WORKFLOW),
|
|
166
|
-
]:
|
|
167
|
-
(workflows_dir / f"{name}.yaml").write_text(
|
|
168
|
-
yaml.dump(data, default_flow_style=False)
|
|
169
|
-
)
|
|
170
|
-
|
|
171
|
-
(tmp_path / ".session").mkdir()
|
|
172
|
-
return tmp_path
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
@pytest.fixture
|
|
176
|
-
def session_with_assessment(project: Path) -> Path:
|
|
177
|
-
"""Create a session file that has an assessment section."""
|
|
178
|
-
session_file = project / ".session" / "105-1-session.md"
|
|
179
|
-
session_file.write_text(SESSION_WITH_ASSESSMENT)
|
|
180
|
-
return session_file
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
@pytest.fixture
|
|
184
|
-
def session_without_assessment(project: Path) -> Path:
|
|
185
|
-
"""Create a session file without an assessment section."""
|
|
186
|
-
session_file = project / ".session" / "105-1-session.md"
|
|
187
|
-
session_file.write_text(SESSION_WITHOUT_ASSESSMENT)
|
|
188
|
-
return session_file
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
@pytest.fixture
|
|
192
|
-
def runner() -> CliRunner:
|
|
193
|
-
"""Create a CLI test runner."""
|
|
194
|
-
return CliRunner()
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
# ===========================================================================
|
|
198
|
-
# AC1: resolve-gate returns structured RESOLVE_RESULT
|
|
199
|
-
# ===========================================================================
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
class TestResolveGateReady:
|
|
203
|
-
"""AC1 + AC5: resolve-gate returns 'ready' with correct fields."""
|
|
204
|
-
|
|
205
|
-
def test_tdd_green_phase_returns_ready(
|
|
206
|
-
self, project: Path, session_with_assessment: Path
|
|
207
|
-
) -> None:
|
|
208
|
-
"""AC1: TDD green phase (gate=tests_pass) → status: ready."""
|
|
209
|
-
result = resolve_gate("105-1", "tdd", "green", project_root=project)
|
|
210
|
-
assert result["status"] == "ready"
|
|
211
|
-
|
|
212
|
-
def test_tdd_green_gate_type_is_tests_pass(
|
|
213
|
-
self, project: Path, session_with_assessment: Path
|
|
214
|
-
) -> None:
|
|
215
|
-
"""AC1: TDD green phase gate type should be tests_pass."""
|
|
216
|
-
result = resolve_gate("105-1", "tdd", "green", project_root=project)
|
|
217
|
-
assert result["gate_type"] == "tests_pass"
|
|
218
|
-
|
|
219
|
-
def test_tdd_green_next_agent_is_reviewer(
|
|
220
|
-
self, project: Path, session_with_assessment: Path
|
|
221
|
-
) -> None:
|
|
222
|
-
"""AC1: After TDD green, next agent should be reviewer."""
|
|
223
|
-
result = resolve_gate("105-1", "tdd", "green", project_root=project)
|
|
224
|
-
assert result["next_agent"] == "reviewer"
|
|
225
|
-
|
|
226
|
-
def test_tdd_green_next_phase_is_review(
|
|
227
|
-
self, project: Path, session_with_assessment: Path
|
|
228
|
-
) -> None:
|
|
229
|
-
"""AC1: After TDD green, next phase should be review."""
|
|
230
|
-
result = resolve_gate("105-1", "tdd", "green", project_root=project)
|
|
231
|
-
assert result["next_phase"] == "review"
|
|
232
|
-
|
|
233
|
-
def test_tdd_red_phase_returns_ready(
|
|
234
|
-
self, project: Path, session_with_assessment: Path
|
|
235
|
-
) -> None:
|
|
236
|
-
"""AC1: TDD red phase (gate=tests_fail) → status: ready."""
|
|
237
|
-
# Rewrite session to be in red phase with assessment
|
|
238
|
-
session_file = project / ".session" / "105-1-session.md"
|
|
239
|
-
content = session_file.read_text().replace(
|
|
240
|
-
"**Phase:** green", "**Phase:** red"
|
|
241
|
-
)
|
|
242
|
-
session_file.write_text(content)
|
|
243
|
-
result = resolve_gate("105-1", "tdd", "red", project_root=project)
|
|
244
|
-
assert result["status"] == "ready"
|
|
245
|
-
assert result["gate_type"] == "tests_fail"
|
|
246
|
-
assert result["next_agent"] == "dev"
|
|
247
|
-
assert result["next_phase"] == "green"
|
|
248
|
-
|
|
249
|
-
def test_trivial_implement_returns_ready(
|
|
250
|
-
self, project: Path, session_with_assessment: Path
|
|
251
|
-
) -> None:
|
|
252
|
-
"""AC1: Trivial implement (gate=tests_pass) → status: ready."""
|
|
253
|
-
result = resolve_gate("105-1", "trivial", "implement", project_root=project)
|
|
254
|
-
assert result["status"] == "ready"
|
|
255
|
-
assert result["gate_type"] == "tests_pass"
|
|
256
|
-
assert result["next_agent"] == "reviewer"
|
|
257
|
-
|
|
258
|
-
def test_bdd_design_returns_ready(
|
|
259
|
-
self, project: Path, session_with_assessment: Path
|
|
260
|
-
) -> None:
|
|
261
|
-
"""AC1: BDD design phase (gate=design_review) → ready."""
|
|
262
|
-
result = resolve_gate("105-1", "bdd", "design", project_root=project)
|
|
263
|
-
assert result["status"] == "ready"
|
|
264
|
-
assert result["gate_type"] == "design_review"
|
|
265
|
-
assert result["next_agent"] == "tea"
|
|
266
|
-
assert result["next_phase"] == "red"
|
|
267
|
-
|
|
268
|
-
def test_assessment_found_is_true(
|
|
269
|
-
self, project: Path, session_with_assessment: Path
|
|
270
|
-
) -> None:
|
|
271
|
-
"""AC1: assessment_found should be True when assessment exists."""
|
|
272
|
-
result = resolve_gate("105-1", "tdd", "green", project_root=project)
|
|
273
|
-
assert result["assessment_found"] is True
|
|
274
|
-
|
|
275
|
-
def test_exit_code_zero_when_ready(
|
|
276
|
-
self, project: Path, session_with_assessment: Path, runner: CliRunner
|
|
277
|
-
) -> None:
|
|
278
|
-
"""AC5: Exit code 0 when gate resolves to ready."""
|
|
279
|
-
with patch(
|
|
280
|
-
"pennyfarthing_scripts.handoff.resolve_gate.resolve_gate",
|
|
281
|
-
return_value={
|
|
282
|
-
"status": "ready",
|
|
283
|
-
"gate_type": "tests_pass",
|
|
284
|
-
"gate_file": None,
|
|
285
|
-
"next_agent": "reviewer",
|
|
286
|
-
"next_phase": "review",
|
|
287
|
-
"assessment_found": True,
|
|
288
|
-
"error": None,
|
|
289
|
-
},
|
|
290
|
-
):
|
|
291
|
-
result = runner.invoke(
|
|
292
|
-
cli, ["handoff", "resolve-gate", "105-1", "tdd", "green"]
|
|
293
|
-
)
|
|
294
|
-
assert result.exit_code == 0
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
class TestResolveGateBlocked:
|
|
298
|
-
"""AC1 + AC5: resolve-gate no longer blocks on missing assessment.
|
|
299
|
-
|
|
300
|
-
Assessment guard moved to complete_phase to prevent race conditions
|
|
301
|
-
where agents call resolve-gate before writing their assessment.
|
|
302
|
-
"""
|
|
303
|
-
|
|
304
|
-
def test_missing_assessment_resolve_gate_still_ready(
|
|
305
|
-
self, project: Path, session_without_assessment: Path
|
|
306
|
-
) -> None:
|
|
307
|
-
"""resolve-gate returns ready regardless of assessment (guard moved to complete-phase)."""
|
|
308
|
-
result = resolve_gate("105-1", "tdd", "green", project_root=project)
|
|
309
|
-
assert result["status"] == "ready"
|
|
310
|
-
|
|
311
|
-
def test_missing_assessment_complete_phase_blocks(
|
|
312
|
-
self, project: Path, session_without_assessment: Path
|
|
313
|
-
) -> None:
|
|
314
|
-
"""complete-phase blocks when no assessment found in session file."""
|
|
315
|
-
result = complete_phase("105-1", "tdd", "green", "review", "tests_pass", project)
|
|
316
|
-
assert result["status"] == "error"
|
|
317
|
-
assert "assessment" in result["error"].lower()
|
|
318
|
-
|
|
319
|
-
def test_blocked_exit_code_one(self, runner: CliRunner) -> None:
|
|
320
|
-
"""AC5: Exit code 1 when gate resolves to blocked."""
|
|
321
|
-
with patch(
|
|
322
|
-
"pennyfarthing_scripts.handoff.resolve_gate.resolve_gate",
|
|
323
|
-
return_value={
|
|
324
|
-
"status": "blocked",
|
|
325
|
-
"gate_type": "tests_pass",
|
|
326
|
-
"gate_file": None,
|
|
327
|
-
"next_agent": "reviewer",
|
|
328
|
-
"next_phase": "review",
|
|
329
|
-
"assessment_found": False,
|
|
330
|
-
"error": None,
|
|
331
|
-
},
|
|
332
|
-
):
|
|
333
|
-
result = runner.invoke(
|
|
334
|
-
cli, ["handoff", "resolve-gate", "105-1", "tdd", "green"]
|
|
335
|
-
)
|
|
336
|
-
assert result.exit_code == 1
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
class TestResolveGateSkip:
|
|
340
|
-
"""AC1: resolve-gate returns 'skip' for manual gates."""
|
|
341
|
-
|
|
342
|
-
def test_manual_gate_returns_skip(
|
|
343
|
-
self, project: Path, session_with_assessment: Path
|
|
344
|
-
) -> None:
|
|
345
|
-
"""AC1: Patch fix phase (gate=manual) → status: skip."""
|
|
346
|
-
result = resolve_gate("105-1", "patch", "fix", project_root=project)
|
|
347
|
-
assert result["status"] == "skip"
|
|
348
|
-
|
|
349
|
-
def test_manual_gate_type_is_manual(
|
|
350
|
-
self, project: Path, session_with_assessment: Path
|
|
351
|
-
) -> None:
|
|
352
|
-
"""AC1: Skip result should have gate_type: manual."""
|
|
353
|
-
result = resolve_gate("105-1", "patch", "fix", project_root=project)
|
|
354
|
-
assert result["gate_type"] == "manual"
|
|
355
|
-
|
|
356
|
-
def test_skip_exit_code_zero(self, runner: CliRunner) -> None:
|
|
357
|
-
"""AC5: Exit code 0 for skip status."""
|
|
358
|
-
with patch(
|
|
359
|
-
"pennyfarthing_scripts.handoff.resolve_gate.resolve_gate",
|
|
360
|
-
return_value={
|
|
361
|
-
"status": "skip",
|
|
362
|
-
"gate_type": "manual",
|
|
363
|
-
"gate_file": None,
|
|
364
|
-
"next_agent": None,
|
|
365
|
-
"next_phase": None,
|
|
366
|
-
"assessment_found": True,
|
|
367
|
-
"error": None,
|
|
368
|
-
},
|
|
369
|
-
):
|
|
370
|
-
result = runner.invoke(
|
|
371
|
-
cli, ["handoff", "resolve-gate", "105-1", "patch", "fix"]
|
|
372
|
-
)
|
|
373
|
-
assert result.exit_code == 0
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
class TestResolveGateErrors:
|
|
377
|
-
"""AC1: resolve-gate returns error for invalid inputs."""
|
|
378
|
-
|
|
379
|
-
def test_invalid_workflow_returns_error(self, project: Path) -> None:
|
|
380
|
-
"""AC1: Unknown workflow → error result."""
|
|
381
|
-
result = resolve_gate("105-1", "nonexistent", "green", project_root=project)
|
|
382
|
-
assert result["status"] == "error" or result.get("error") is not None
|
|
383
|
-
|
|
384
|
-
def test_invalid_phase_returns_error(
|
|
385
|
-
self, project: Path, session_with_assessment: Path
|
|
386
|
-
) -> None:
|
|
387
|
-
"""AC1: Unknown phase → error result."""
|
|
388
|
-
result = resolve_gate("105-1", "tdd", "nonexistent", project_root=project)
|
|
389
|
-
assert result["status"] == "error" or result.get("error") is not None
|
|
390
|
-
|
|
391
|
-
def test_missing_session_file_resolve_gate_ready(self, project: Path) -> None:
|
|
392
|
-
"""resolve-gate returns ready even without session file (guard moved to complete-phase)."""
|
|
393
|
-
result = resolve_gate("105-1", "tdd", "green", project_root=project)
|
|
394
|
-
assert result["status"] == "ready"
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
class TestResolveGateOutputContract:
|
|
398
|
-
"""AC1: RESOLVE_RESULT must contain all specified fields."""
|
|
399
|
-
|
|
400
|
-
REQUIRED_FIELDS = [
|
|
401
|
-
"status",
|
|
402
|
-
"gate_type",
|
|
403
|
-
"gate_file",
|
|
404
|
-
"next_agent",
|
|
405
|
-
"next_phase",
|
|
406
|
-
"assessment_found",
|
|
407
|
-
"error",
|
|
408
|
-
]
|
|
409
|
-
|
|
410
|
-
def test_ready_result_has_all_fields(
|
|
411
|
-
self, project: Path, session_with_assessment: Path
|
|
412
|
-
) -> None:
|
|
413
|
-
"""AC1: Ready result must contain all RESOLVE_RESULT fields."""
|
|
414
|
-
result = resolve_gate("105-1", "tdd", "green", project_root=project)
|
|
415
|
-
for field in self.REQUIRED_FIELDS:
|
|
416
|
-
assert field in result, f"Missing field: {field}"
|
|
417
|
-
|
|
418
|
-
def test_blocked_result_has_all_fields(
|
|
419
|
-
self, project: Path, session_without_assessment: Path
|
|
420
|
-
) -> None:
|
|
421
|
-
"""AC1: Blocked result must contain all RESOLVE_RESULT fields."""
|
|
422
|
-
result = resolve_gate("105-1", "tdd", "green", project_root=project)
|
|
423
|
-
for field in self.REQUIRED_FIELDS:
|
|
424
|
-
assert field in result, f"Missing field: {field}"
|
|
425
|
-
|
|
426
|
-
def test_skip_result_has_all_fields(
|
|
427
|
-
self, project: Path, session_with_assessment: Path
|
|
428
|
-
) -> None:
|
|
429
|
-
"""AC1: Skip result must contain all RESOLVE_RESULT fields."""
|
|
430
|
-
result = resolve_gate("105-1", "patch", "fix", project_root=project)
|
|
431
|
-
for field in self.REQUIRED_FIELDS:
|
|
432
|
-
assert field in result, f"Missing field: {field}"
|
|
433
|
-
|
|
434
|
-
def test_gate_file_is_null_for_mvp(
|
|
435
|
-
self, project: Path, session_with_assessment: Path
|
|
436
|
-
) -> None:
|
|
437
|
-
"""AC1: gate_file should be None for MVP (populated in epic 106)."""
|
|
438
|
-
result = resolve_gate("105-1", "tdd", "green", project_root=project)
|
|
439
|
-
assert result["gate_file"] is None
|
|
440
|
-
|
|
441
|
-
def test_error_is_null_on_success(
|
|
442
|
-
self, project: Path, session_with_assessment: Path
|
|
443
|
-
) -> None:
|
|
444
|
-
"""AC1: error should be None when resolve succeeds."""
|
|
445
|
-
result = resolve_gate("105-1", "tdd", "green", project_root=project)
|
|
446
|
-
assert result["error"] is None
|
|
447
|
-
|
|
448
|
-
def test_status_is_valid_value(
|
|
449
|
-
self, project: Path, session_with_assessment: Path
|
|
450
|
-
) -> None:
|
|
451
|
-
"""AC1: status must be one of: ready, blocked, skip."""
|
|
452
|
-
result = resolve_gate("105-1", "tdd", "green", project_root=project)
|
|
453
|
-
assert result["status"] in ("ready", "blocked", "skip")
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
class TestResolveGateCLIOutput:
|
|
457
|
-
"""AC4 + AC6: CLI outputs valid YAML to stdout."""
|
|
458
|
-
|
|
459
|
-
def test_cli_output_is_valid_yaml(self, runner: CliRunner) -> None:
|
|
460
|
-
"""AC6: CLI output should be parseable YAML."""
|
|
461
|
-
with patch(
|
|
462
|
-
"pennyfarthing_scripts.handoff.resolve_gate.resolve_gate",
|
|
463
|
-
return_value={
|
|
464
|
-
"status": "ready",
|
|
465
|
-
"gate_type": "tests_pass",
|
|
466
|
-
"gate_file": None,
|
|
467
|
-
"next_agent": "reviewer",
|
|
468
|
-
"next_phase": "review",
|
|
469
|
-
"assessment_found": True,
|
|
470
|
-
"error": None,
|
|
471
|
-
},
|
|
472
|
-
):
|
|
473
|
-
result = runner.invoke(
|
|
474
|
-
cli, ["handoff", "resolve-gate", "105-1", "tdd", "green"]
|
|
475
|
-
)
|
|
476
|
-
parsed = yaml.safe_load(result.output)
|
|
477
|
-
assert "RESOLVE_RESULT" in parsed
|
|
478
|
-
|
|
479
|
-
def test_cli_output_wraps_in_resolve_result_key(self, runner: CliRunner) -> None:
|
|
480
|
-
"""AC4: Output should be wrapped in RESOLVE_RESULT key."""
|
|
481
|
-
with patch(
|
|
482
|
-
"pennyfarthing_scripts.handoff.resolve_gate.resolve_gate",
|
|
483
|
-
return_value={
|
|
484
|
-
"status": "ready",
|
|
485
|
-
"gate_type": "tests_pass",
|
|
486
|
-
"gate_file": None,
|
|
487
|
-
"next_agent": "reviewer",
|
|
488
|
-
"next_phase": "review",
|
|
489
|
-
"assessment_found": True,
|
|
490
|
-
"error": None,
|
|
491
|
-
},
|
|
492
|
-
):
|
|
493
|
-
result = runner.invoke(
|
|
494
|
-
cli, ["handoff", "resolve-gate", "105-1", "tdd", "green"]
|
|
495
|
-
)
|
|
496
|
-
parsed = yaml.safe_load(result.output)
|
|
497
|
-
assert parsed["RESOLVE_RESULT"]["status"] == "ready"
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
# ===========================================================================
|
|
501
|
-
# AC2: complete-phase atomically updates session file
|
|
502
|
-
# ===========================================================================
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
class TestCompletePhaseUpdatesSession:
|
|
506
|
-
"""AC2: complete-phase updates session with phase transition."""
|
|
507
|
-
|
|
508
|
-
def test_updates_phase_line(
|
|
509
|
-
self, project: Path, session_with_assessment: Path
|
|
510
|
-
) -> None:
|
|
511
|
-
"""AC2: **Phase:** line should change to the new phase."""
|
|
512
|
-
complete_phase(
|
|
513
|
-
"105-1", "tdd", "green", "review", "tests_pass", project_root=project
|
|
514
|
-
)
|
|
515
|
-
content = session_with_assessment.read_text()
|
|
516
|
-
# The Phase line in the Workflow Tracking section should be "review"
|
|
517
|
-
assert "**Phase:** review" in content
|
|
518
|
-
|
|
519
|
-
def test_phase_line_no_longer_has_old_value(
|
|
520
|
-
self, project: Path, session_with_assessment: Path
|
|
521
|
-
) -> None:
|
|
522
|
-
"""AC2: Old phase value should not appear in **Phase:** line."""
|
|
523
|
-
complete_phase(
|
|
524
|
-
"105-1", "tdd", "green", "review", "tests_pass", project_root=project
|
|
525
|
-
)
|
|
526
|
-
content = session_with_assessment.read_text()
|
|
527
|
-
# Should not have the old phase value on a Phase line
|
|
528
|
-
phase_lines = [
|
|
529
|
-
line for line in content.splitlines() if line.startswith("**Phase:**")
|
|
530
|
-
]
|
|
531
|
-
for line in phase_lines:
|
|
532
|
-
assert "green" not in line
|
|
533
|
-
|
|
534
|
-
def test_updates_phase_started_timestamp(
|
|
535
|
-
self, project: Path, session_with_assessment: Path
|
|
536
|
-
) -> None:
|
|
537
|
-
"""AC2: **Phase Started:** should have a new ISO timestamp."""
|
|
538
|
-
complete_phase(
|
|
539
|
-
"105-1", "tdd", "green", "review", "tests_pass", project_root=project
|
|
540
|
-
)
|
|
541
|
-
content = session_with_assessment.read_text()
|
|
542
|
-
# Find Phase Started lines — at least one should NOT be the old timestamp
|
|
543
|
-
started_lines = [
|
|
544
|
-
line
|
|
545
|
-
for line in content.splitlines()
|
|
546
|
-
if line.startswith("**Phase Started:**")
|
|
547
|
-
]
|
|
548
|
-
assert len(started_lines) > 0
|
|
549
|
-
# At least one should have a different timestamp than the original
|
|
550
|
-
assert any("2026-02-15T07:53:07Z" not in line for line in started_lines)
|
|
551
|
-
|
|
552
|
-
def test_fills_ended_in_phase_history(
|
|
553
|
-
self, project: Path, session_with_assessment: Path
|
|
554
|
-
) -> None:
|
|
555
|
-
"""AC2: Current phase row in Phase History should get Ended timestamp."""
|
|
556
|
-
complete_phase(
|
|
557
|
-
"105-1", "tdd", "green", "review", "tests_pass", project_root=project
|
|
558
|
-
)
|
|
559
|
-
content = session_with_assessment.read_text()
|
|
560
|
-
# The green phase row should now have an Ended value (not just "- |")
|
|
561
|
-
# Find the row that starts with "| green"
|
|
562
|
-
green_rows = [
|
|
563
|
-
line
|
|
564
|
-
for line in content.splitlines()
|
|
565
|
-
if line.strip().startswith("| green")
|
|
566
|
-
]
|
|
567
|
-
assert len(green_rows) > 0
|
|
568
|
-
# The Ended column (3rd) should not be "-"
|
|
569
|
-
green_row = green_rows[0]
|
|
570
|
-
cols = [c.strip() for c in green_row.split("|") if c.strip()]
|
|
571
|
-
assert len(cols) >= 4, f"Expected 4+ columns, got: {cols}"
|
|
572
|
-
ended = cols[2] # Phase | Started | Ended | Duration
|
|
573
|
-
assert ended != "-", f"Ended should be filled, got: {ended}"
|
|
574
|
-
|
|
575
|
-
def test_fills_duration_in_phase_history(
|
|
576
|
-
self, project: Path, session_with_assessment: Path
|
|
577
|
-
) -> None:
|
|
578
|
-
"""AC2: Current phase row should get Duration calculated."""
|
|
579
|
-
complete_phase(
|
|
580
|
-
"105-1", "tdd", "green", "review", "tests_pass", project_root=project
|
|
581
|
-
)
|
|
582
|
-
content = session_with_assessment.read_text()
|
|
583
|
-
green_rows = [
|
|
584
|
-
line
|
|
585
|
-
for line in content.splitlines()
|
|
586
|
-
if line.strip().startswith("| green")
|
|
587
|
-
]
|
|
588
|
-
assert len(green_rows) > 0
|
|
589
|
-
green_row = green_rows[0]
|
|
590
|
-
cols = [c.strip() for c in green_row.split("|") if c.strip()]
|
|
591
|
-
duration = cols[3] # Phase | Started | Ended | Duration
|
|
592
|
-
assert duration != "-", f"Duration should be filled, got: {duration}"
|
|
593
|
-
|
|
594
|
-
def test_adds_new_phase_row(
|
|
595
|
-
self, project: Path, session_with_assessment: Path
|
|
596
|
-
) -> None:
|
|
597
|
-
"""AC2: A new row for the next phase should appear in Phase History."""
|
|
598
|
-
complete_phase(
|
|
599
|
-
"105-1", "tdd", "green", "review", "tests_pass", project_root=project
|
|
600
|
-
)
|
|
601
|
-
content = session_with_assessment.read_text()
|
|
602
|
-
review_rows = [
|
|
603
|
-
line
|
|
604
|
-
for line in content.splitlines()
|
|
605
|
-
if line.strip().startswith("| review")
|
|
606
|
-
]
|
|
607
|
-
assert len(review_rows) > 0, "New 'review' phase row not found in Phase History"
|
|
608
|
-
|
|
609
|
-
def test_adds_handoff_history_row(
|
|
610
|
-
self, project: Path, session_with_assessment: Path
|
|
611
|
-
) -> None:
|
|
612
|
-
"""AC2: A new row should be added to Handoff History table."""
|
|
613
|
-
complete_phase(
|
|
614
|
-
"105-1", "tdd", "green", "review", "tests_pass", project_root=project
|
|
615
|
-
)
|
|
616
|
-
content = session_with_assessment.read_text()
|
|
617
|
-
# Should have a row mentioning green → review with tests_pass
|
|
618
|
-
handoff_rows = [
|
|
619
|
-
line
|
|
620
|
-
for line in content.splitlines()
|
|
621
|
-
if "green" in line and "review" in line and "tests_pass" in line
|
|
622
|
-
]
|
|
623
|
-
assert len(handoff_rows) > 0, "Handoff History row for green→review not found"
|
|
624
|
-
|
|
625
|
-
def test_handoff_history_includes_passed_status(
|
|
626
|
-
self, project: Path, session_with_assessment: Path
|
|
627
|
-
) -> None:
|
|
628
|
-
"""AC2: Handoff History row should include PASSED status."""
|
|
629
|
-
complete_phase(
|
|
630
|
-
"105-1", "tdd", "green", "review", "tests_pass", project_root=project
|
|
631
|
-
)
|
|
632
|
-
content = session_with_assessment.read_text()
|
|
633
|
-
# Find the new handoff row (should be the last one with "review")
|
|
634
|
-
lines = content.splitlines()
|
|
635
|
-
handoff_section = False
|
|
636
|
-
handoff_rows = []
|
|
637
|
-
for line in lines:
|
|
638
|
-
if "### Handoff History" in line:
|
|
639
|
-
handoff_section = True
|
|
640
|
-
continue
|
|
641
|
-
if handoff_section and line.strip().startswith("|") and "---" not in line:
|
|
642
|
-
if "From" not in line: # Skip header
|
|
643
|
-
handoff_rows.append(line)
|
|
644
|
-
# Last row should have PASSED
|
|
645
|
-
assert len(handoff_rows) > 0
|
|
646
|
-
last_row = handoff_rows[-1]
|
|
647
|
-
assert "PASSED" in last_row
|
|
648
|
-
|
|
649
|
-
def test_handoff_history_includes_timestamp(
|
|
650
|
-
self, project: Path, session_with_assessment: Path
|
|
651
|
-
) -> None:
|
|
652
|
-
"""AC2: Handoff History row should include an ISO timestamp."""
|
|
653
|
-
complete_phase(
|
|
654
|
-
"105-1", "tdd", "green", "review", "tests_pass", project_root=project
|
|
655
|
-
)
|
|
656
|
-
content = session_with_assessment.read_text()
|
|
657
|
-
lines = content.splitlines()
|
|
658
|
-
handoff_section = False
|
|
659
|
-
handoff_rows = []
|
|
660
|
-
for line in lines:
|
|
661
|
-
if "### Handoff History" in line:
|
|
662
|
-
handoff_section = True
|
|
663
|
-
continue
|
|
664
|
-
if handoff_section and line.strip().startswith("|") and "---" not in line:
|
|
665
|
-
if "From" not in line:
|
|
666
|
-
handoff_rows.append(line)
|
|
667
|
-
assert len(handoff_rows) > 0
|
|
668
|
-
last_row = handoff_rows[-1]
|
|
669
|
-
# Should contain ISO timestamp pattern
|
|
670
|
-
assert re.search(r"\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}", last_row)
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
class TestCompletePhaseAtomicity:
|
|
674
|
-
"""AC2: Session update must be atomic (temp + mv)."""
|
|
675
|
-
|
|
676
|
-
def test_session_file_exists_after_update(
|
|
677
|
-
self, project: Path, session_with_assessment: Path
|
|
678
|
-
) -> None:
|
|
679
|
-
"""AC2: Session file should still exist after update."""
|
|
680
|
-
complete_phase(
|
|
681
|
-
"105-1", "tdd", "green", "review", "tests_pass", project_root=project
|
|
682
|
-
)
|
|
683
|
-
assert session_with_assessment.exists()
|
|
684
|
-
|
|
685
|
-
def test_no_temp_files_left_behind(
|
|
686
|
-
self, project: Path, session_with_assessment: Path
|
|
687
|
-
) -> None:
|
|
688
|
-
"""AC2: No .tmp or temporary files should remain in .session/."""
|
|
689
|
-
complete_phase(
|
|
690
|
-
"105-1", "tdd", "green", "review", "tests_pass", project_root=project
|
|
691
|
-
)
|
|
692
|
-
session_dir = project / ".session"
|
|
693
|
-
temp_files = list(session_dir.glob("*.tmp")) + list(session_dir.glob("*.bak"))
|
|
694
|
-
assert len(temp_files) == 0, f"Temp files left behind: {temp_files}"
|
|
695
|
-
|
|
696
|
-
def test_session_content_is_valid_after_update(
|
|
697
|
-
self, project: Path, session_with_assessment: Path
|
|
698
|
-
) -> None:
|
|
699
|
-
"""AC2: Session file should still be valid markdown after update."""
|
|
700
|
-
complete_phase(
|
|
701
|
-
"105-1", "tdd", "green", "review", "tests_pass", project_root=project
|
|
702
|
-
)
|
|
703
|
-
content = session_with_assessment.read_text()
|
|
704
|
-
# Should still have required sections
|
|
705
|
-
assert "# Story 105-1" in content
|
|
706
|
-
assert "## Workflow Tracking" in content
|
|
707
|
-
assert "### Phase History" in content
|
|
708
|
-
assert "### Handoff History" in content
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
class TestCompletePhaseOutputContract:
|
|
712
|
-
"""AC2: COMPLETE_RESULT must contain all specified fields."""
|
|
713
|
-
|
|
714
|
-
def test_returns_success_status(
|
|
715
|
-
self, project: Path, session_with_assessment: Path
|
|
716
|
-
) -> None:
|
|
717
|
-
"""AC2: Successful update should return status: success."""
|
|
718
|
-
result = complete_phase(
|
|
719
|
-
"105-1", "tdd", "green", "review", "tests_pass", project_root=project
|
|
720
|
-
)
|
|
721
|
-
assert result["status"] == "success"
|
|
722
|
-
|
|
723
|
-
def test_returns_session_file_path(
|
|
724
|
-
self, project: Path, session_with_assessment: Path
|
|
725
|
-
) -> None:
|
|
726
|
-
"""AC2: Result should include the session file path."""
|
|
727
|
-
result = complete_phase(
|
|
728
|
-
"105-1", "tdd", "green", "review", "tests_pass", project_root=project
|
|
729
|
-
)
|
|
730
|
-
assert "session_file" in result
|
|
731
|
-
assert "105-1-session.md" in result["session_file"]
|
|
732
|
-
|
|
733
|
-
def test_returns_null_error_on_success(
|
|
734
|
-
self, project: Path, session_with_assessment: Path
|
|
735
|
-
) -> None:
|
|
736
|
-
"""AC2: error should be None on success."""
|
|
737
|
-
result = complete_phase(
|
|
738
|
-
"105-1", "tdd", "green", "review", "tests_pass", project_root=project
|
|
739
|
-
)
|
|
740
|
-
assert result["error"] is None
|
|
741
|
-
|
|
742
|
-
def test_cli_output_is_valid_yaml(self, runner: CliRunner) -> None:
|
|
743
|
-
"""AC6: CLI output should be parseable YAML."""
|
|
744
|
-
with patch(
|
|
745
|
-
"pennyfarthing_scripts.handoff.complete_phase.complete_phase",
|
|
746
|
-
return_value={
|
|
747
|
-
"status": "success",
|
|
748
|
-
"session_file": ".session/105-1-session.md",
|
|
749
|
-
"error": None,
|
|
750
|
-
},
|
|
751
|
-
):
|
|
752
|
-
result = runner.invoke(
|
|
753
|
-
cli,
|
|
754
|
-
[
|
|
755
|
-
"handoff",
|
|
756
|
-
"complete-phase",
|
|
757
|
-
"105-1",
|
|
758
|
-
"tdd",
|
|
759
|
-
"green",
|
|
760
|
-
"review",
|
|
761
|
-
"tests_pass",
|
|
762
|
-
],
|
|
763
|
-
)
|
|
764
|
-
assert result.exit_code == 0
|
|
765
|
-
parsed = yaml.safe_load(result.output)
|
|
766
|
-
assert "COMPLETE_RESULT" in parsed
|
|
767
|
-
|
|
768
|
-
def test_cli_exit_code_zero_on_success(self, runner: CliRunner) -> None:
|
|
769
|
-
"""AC5: Exit code 0 on successful phase completion."""
|
|
770
|
-
with patch(
|
|
771
|
-
"pennyfarthing_scripts.handoff.complete_phase.complete_phase",
|
|
772
|
-
return_value={
|
|
773
|
-
"status": "success",
|
|
774
|
-
"session_file": ".session/105-1-session.md",
|
|
775
|
-
"error": None,
|
|
776
|
-
},
|
|
777
|
-
):
|
|
778
|
-
result = runner.invoke(
|
|
779
|
-
cli,
|
|
780
|
-
[
|
|
781
|
-
"handoff",
|
|
782
|
-
"complete-phase",
|
|
783
|
-
"105-1",
|
|
784
|
-
"tdd",
|
|
785
|
-
"green",
|
|
786
|
-
"review",
|
|
787
|
-
"tests_pass",
|
|
788
|
-
],
|
|
789
|
-
)
|
|
790
|
-
assert result.exit_code == 0
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
class TestCompletePhaseErrors:
|
|
794
|
-
"""AC2: Error handling for complete-phase."""
|
|
795
|
-
|
|
796
|
-
def test_missing_session_file_returns_error(self, project: Path) -> None:
|
|
797
|
-
"""AC2: No session file → error result."""
|
|
798
|
-
result = complete_phase(
|
|
799
|
-
"105-1", "tdd", "green", "review", "tests_pass", project_root=project
|
|
800
|
-
)
|
|
801
|
-
assert result["status"] == "error"
|
|
802
|
-
assert result["error"] is not None
|
|
803
|
-
|
|
804
|
-
def test_error_exit_code_one(self, runner: CliRunner) -> None:
|
|
805
|
-
"""AC5: Exit code 1 on error."""
|
|
806
|
-
with patch(
|
|
807
|
-
"pennyfarthing_scripts.handoff.complete_phase.complete_phase",
|
|
808
|
-
return_value={
|
|
809
|
-
"status": "error",
|
|
810
|
-
"session_file": None,
|
|
811
|
-
"error": "Session file not found",
|
|
812
|
-
},
|
|
813
|
-
):
|
|
814
|
-
result = runner.invoke(
|
|
815
|
-
cli,
|
|
816
|
-
[
|
|
817
|
-
"handoff",
|
|
818
|
-
"complete-phase",
|
|
819
|
-
"105-1",
|
|
820
|
-
"tdd",
|
|
821
|
-
"green",
|
|
822
|
-
"review",
|
|
823
|
-
"tests_pass",
|
|
824
|
-
],
|
|
825
|
-
)
|
|
826
|
-
assert result.exit_code == 1
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
# ===========================================================================
|
|
830
|
-
# AC4: stdout is the only communication channel
|
|
831
|
-
# ===========================================================================
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
class TestStdoutOnlyCommunication:
|
|
835
|
-
"""AC4: No side-channel files created during execution."""
|
|
836
|
-
|
|
837
|
-
def test_resolve_gate_no_side_files(
|
|
838
|
-
self, project: Path, session_with_assessment: Path
|
|
839
|
-
) -> None:
|
|
840
|
-
"""AC4: resolve-gate should not create any files."""
|
|
841
|
-
files_before = set(project.rglob("*"))
|
|
842
|
-
resolve_gate("105-1", "tdd", "green", project_root=project)
|
|
843
|
-
files_after = set(project.rglob("*"))
|
|
844
|
-
new_files = files_after - files_before
|
|
845
|
-
assert len(new_files) == 0, f"Unexpected files created: {new_files}"
|
|
846
|
-
|
|
847
|
-
def test_complete_phase_only_modifies_session(
|
|
848
|
-
self, project: Path, session_with_assessment: Path
|
|
849
|
-
) -> None:
|
|
850
|
-
"""AC4: complete-phase should only modify the session file."""
|
|
851
|
-
# Record all files and their mtimes
|
|
852
|
-
files_before = {
|
|
853
|
-
p: p.stat().st_mtime for p in project.rglob("*") if p.is_file()
|
|
854
|
-
}
|
|
855
|
-
complete_phase(
|
|
856
|
-
"105-1", "tdd", "green", "review", "tests_pass", project_root=project
|
|
857
|
-
)
|
|
858
|
-
files_after = {
|
|
859
|
-
p: p.stat().st_mtime for p in project.rglob("*") if p.is_file()
|
|
860
|
-
}
|
|
861
|
-
# Only the session file should be modified
|
|
862
|
-
changed = {
|
|
863
|
-
p
|
|
864
|
-
for p, mtime in files_after.items()
|
|
865
|
-
if files_before.get(p) != mtime
|
|
866
|
-
}
|
|
867
|
-
new = set(files_after) - set(files_before)
|
|
868
|
-
all_changes = changed | new
|
|
869
|
-
allowed = {session_with_assessment}
|
|
870
|
-
unexpected = all_changes - allowed
|
|
871
|
-
assert len(unexpected) == 0, f"Unexpected file changes: {unexpected}"
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
# ===========================================================================
|
|
875
|
-
# AC3: CLI command group exists and is invokable
|
|
876
|
-
# ===========================================================================
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
class TestHandoffCommandExists:
|
|
880
|
-
"""AC3: pf handoff command group with subcommands."""
|
|
881
|
-
|
|
882
|
-
def test_handoff_help(self, runner: CliRunner) -> None:
|
|
883
|
-
"""AC3: pf handoff --help should work."""
|
|
884
|
-
result = runner.invoke(cli, ["handoff", "--help"])
|
|
885
|
-
assert result.exit_code == 0
|
|
886
|
-
assert "resolve-gate" in result.output
|
|
887
|
-
assert "complete-phase" in result.output
|
|
888
|
-
|
|
889
|
-
def test_resolve_gate_help(self, runner: CliRunner) -> None:
|
|
890
|
-
"""AC3: pf handoff resolve-gate --help should work."""
|
|
891
|
-
result = runner.invoke(cli, ["handoff", "resolve-gate", "--help"])
|
|
892
|
-
assert result.exit_code == 0
|
|
893
|
-
assert "STORY_ID" in result.output
|
|
894
|
-
|
|
895
|
-
def test_complete_phase_help(self, runner: CliRunner) -> None:
|
|
896
|
-
"""AC3: pf handoff complete-phase --help should work."""
|
|
897
|
-
result = runner.invoke(cli, ["handoff", "complete-phase", "--help"])
|
|
898
|
-
assert result.exit_code == 0
|
|
899
|
-
assert "STORY_ID" in result.output
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
# ===========================================================================
|
|
903
|
-
# Cross-workflow: resolve-gate works with multiple workflow types
|
|
904
|
-
# ===========================================================================
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
class TestResolveGateMultipleWorkflows:
|
|
908
|
-
"""Verify resolve-gate handles the gate types across all workflows."""
|
|
909
|
-
|
|
910
|
-
def test_tdd_review_gate_is_approval(
|
|
911
|
-
self, project: Path, session_with_assessment: Path
|
|
912
|
-
) -> None:
|
|
913
|
-
"""TDD review phase gate should be 'approval'."""
|
|
914
|
-
result = resolve_gate("105-1", "tdd", "review", project_root=project)
|
|
915
|
-
assert result["gate_type"] == "approval"
|
|
916
|
-
assert result["next_agent"] == "sm"
|
|
917
|
-
assert result["next_phase"] == "finish"
|
|
918
|
-
|
|
919
|
-
def test_trivial_review_gate_is_approval(
|
|
920
|
-
self, project: Path, session_with_assessment: Path
|
|
921
|
-
) -> None:
|
|
922
|
-
"""Trivial review phase gate should be 'approval'."""
|
|
923
|
-
result = resolve_gate("105-1", "trivial", "review", project_root=project)
|
|
924
|
-
assert result["gate_type"] == "approval"
|
|
925
|
-
assert result["next_agent"] == "sm"
|
|
926
|
-
assert result["next_phase"] == "finish"
|
|
927
|
-
|
|
928
|
-
def test_last_phase_has_no_next(
|
|
929
|
-
self, project: Path, session_with_assessment: Path
|
|
930
|
-
) -> None:
|
|
931
|
-
"""Finish phase (last) should indicate no next phase/agent."""
|
|
932
|
-
result = resolve_gate("105-1", "tdd", "finish", project_root=project)
|
|
933
|
-
# Last phase has no gate and no next — should handle gracefully
|
|
934
|
-
assert result["next_phase"] is None or result.get("error") is not None
|