@pennyfarthing/core 11.3.3 → 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/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/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/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_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 -802
- 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,1091 +0,0 @@
|
|
|
1
|
-
"""Tests for tiered context injection system.
|
|
2
|
-
|
|
3
|
-
Tests the --tier argument and tier-specific component loading for the prime command.
|
|
4
|
-
|
|
5
|
-
Story: MSSCI-12797 - Python Prime Tier Support
|
|
6
|
-
Acceptance Criteria:
|
|
7
|
-
- AC1: --tier argument with choices FULL, REFRESH, HANDOFF, MINIMAL
|
|
8
|
-
- AC2: Tier-specific component loading per specification
|
|
9
|
-
- AC3: Compressed persona format (~100 tokens vs ~300 full)
|
|
10
|
-
- AC4: Default behavior unchanged (FULL when --tier not specified)
|
|
11
|
-
- AC5: Unit tests for all tier loading paths with >90% coverage
|
|
12
|
-
- AC6: Token reduction verified: REFRESH ~600, HANDOFF ~700, MINIMAL ~200
|
|
13
|
-
"""
|
|
14
|
-
|
|
15
|
-
from pathlib import Path
|
|
16
|
-
from unittest.mock import patch
|
|
17
|
-
|
|
18
|
-
import pytest
|
|
19
|
-
import yaml
|
|
20
|
-
|
|
21
|
-
# =============================================================================
|
|
22
|
-
# AC1: --tier CLI Argument Tests
|
|
23
|
-
# =============================================================================
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
class TestTierCLIArgument:
|
|
27
|
-
"""Tests for --tier CLI argument (AC1)."""
|
|
28
|
-
|
|
29
|
-
def test_tier_argument_accepts_full(self, tmp_path: Path) -> None:
|
|
30
|
-
"""Test --tier FULL is accepted."""
|
|
31
|
-
from pennyfarthing_scripts.prime.cli import main
|
|
32
|
-
|
|
33
|
-
pf_dir = tmp_path / ".pennyfarthing"
|
|
34
|
-
pf_dir.mkdir()
|
|
35
|
-
agents_dir = pf_dir / "agents"
|
|
36
|
-
agents_dir.mkdir()
|
|
37
|
-
(agents_dir / "dev.md").write_text("# Dev Agent")
|
|
38
|
-
|
|
39
|
-
with patch("pennyfarthing_scripts.prime.cli.get_project_root", return_value=tmp_path):
|
|
40
|
-
result = main(["--agent", "dev", "--tier", "FULL", "--no-workflow", "--no-register"])
|
|
41
|
-
|
|
42
|
-
assert result == 0
|
|
43
|
-
|
|
44
|
-
def test_tier_argument_accepts_refresh(self, tmp_path: Path) -> None:
|
|
45
|
-
"""Test --tier REFRESH is accepted."""
|
|
46
|
-
from pennyfarthing_scripts.prime.cli import main
|
|
47
|
-
|
|
48
|
-
pf_dir = tmp_path / ".pennyfarthing"
|
|
49
|
-
pf_dir.mkdir()
|
|
50
|
-
agents_dir = pf_dir / "agents"
|
|
51
|
-
agents_dir.mkdir()
|
|
52
|
-
(agents_dir / "dev.md").write_text("# Dev Agent")
|
|
53
|
-
|
|
54
|
-
with patch("pennyfarthing_scripts.prime.cli.get_project_root", return_value=tmp_path):
|
|
55
|
-
result = main(["--agent", "dev", "--tier", "REFRESH", "--no-workflow", "--no-register"])
|
|
56
|
-
|
|
57
|
-
assert result == 0
|
|
58
|
-
|
|
59
|
-
def test_tier_argument_accepts_handoff(self, tmp_path: Path) -> None:
|
|
60
|
-
"""Test --tier HANDOFF is accepted."""
|
|
61
|
-
from pennyfarthing_scripts.prime.cli import main
|
|
62
|
-
|
|
63
|
-
pf_dir = tmp_path / ".pennyfarthing"
|
|
64
|
-
pf_dir.mkdir()
|
|
65
|
-
agents_dir = pf_dir / "agents"
|
|
66
|
-
agents_dir.mkdir()
|
|
67
|
-
(agents_dir / "dev.md").write_text("# Dev Agent")
|
|
68
|
-
|
|
69
|
-
with patch("pennyfarthing_scripts.prime.cli.get_project_root", return_value=tmp_path):
|
|
70
|
-
result = main(["--agent", "dev", "--tier", "HANDOFF", "--no-workflow", "--no-register"])
|
|
71
|
-
|
|
72
|
-
assert result == 0
|
|
73
|
-
|
|
74
|
-
def test_tier_argument_accepts_minimal(self, tmp_path: Path) -> None:
|
|
75
|
-
"""Test --tier MINIMAL is accepted."""
|
|
76
|
-
from pennyfarthing_scripts.prime.cli import main
|
|
77
|
-
|
|
78
|
-
pf_dir = tmp_path / ".pennyfarthing"
|
|
79
|
-
pf_dir.mkdir()
|
|
80
|
-
agents_dir = pf_dir / "agents"
|
|
81
|
-
agents_dir.mkdir()
|
|
82
|
-
(agents_dir / "dev.md").write_text("# Dev Agent")
|
|
83
|
-
|
|
84
|
-
with patch("pennyfarthing_scripts.prime.cli.get_project_root", return_value=tmp_path):
|
|
85
|
-
result = main(["--agent", "dev", "--tier", "MINIMAL", "--no-workflow", "--no-register"])
|
|
86
|
-
|
|
87
|
-
assert result == 0
|
|
88
|
-
|
|
89
|
-
def test_tier_argument_rejects_invalid_value(self, tmp_path: Path) -> None:
|
|
90
|
-
"""Test --tier rejects invalid values."""
|
|
91
|
-
from pennyfarthing_scripts.prime.cli import main
|
|
92
|
-
|
|
93
|
-
with pytest.raises(SystemExit) as exc_info:
|
|
94
|
-
main(["--tier", "INVALID"])
|
|
95
|
-
|
|
96
|
-
# argparse exits with 2 for invalid arguments
|
|
97
|
-
assert exc_info.value.code == 2
|
|
98
|
-
|
|
99
|
-
def test_tier_argument_case_insensitive(self, tmp_path: Path) -> None:
|
|
100
|
-
"""Test --tier accepts lowercase values."""
|
|
101
|
-
from pennyfarthing_scripts.prime.cli import main
|
|
102
|
-
|
|
103
|
-
pf_dir = tmp_path / ".pennyfarthing"
|
|
104
|
-
pf_dir.mkdir()
|
|
105
|
-
agents_dir = pf_dir / "agents"
|
|
106
|
-
agents_dir.mkdir()
|
|
107
|
-
(agents_dir / "dev.md").write_text("# Dev Agent")
|
|
108
|
-
|
|
109
|
-
with patch("pennyfarthing_scripts.prime.cli.get_project_root", return_value=tmp_path):
|
|
110
|
-
# Should accept lowercase
|
|
111
|
-
result = main(["--agent", "dev", "--tier", "full", "--no-workflow", "--no-register"])
|
|
112
|
-
|
|
113
|
-
assert result == 0
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
# =============================================================================
|
|
117
|
-
# AC2: Tier-Specific Component Loading Tests
|
|
118
|
-
# =============================================================================
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
class TestTierComponentLoading:
|
|
122
|
-
"""Tests for tier-specific component loading (AC2)."""
|
|
123
|
-
|
|
124
|
-
def test_full_tier_loads_all_components(self, tmp_path: Path, capsys) -> None:
|
|
125
|
-
"""Test FULL tier loads all 10 components."""
|
|
126
|
-
from pennyfarthing_scripts.prime.cli import prime
|
|
127
|
-
|
|
128
|
-
# Setup complete project structure
|
|
129
|
-
self._setup_full_project(tmp_path)
|
|
130
|
-
|
|
131
|
-
with patch("pennyfarthing_scripts.prime.cli.get_project_root", return_value=tmp_path):
|
|
132
|
-
with patch("pennyfarthing_scripts.prime.loader.get_project_root", return_value=tmp_path):
|
|
133
|
-
result = prime(
|
|
134
|
-
agent_name="dev",
|
|
135
|
-
tier="FULL",
|
|
136
|
-
no_workflow=True,
|
|
137
|
-
no_register=True,
|
|
138
|
-
project_root=tmp_path,
|
|
139
|
-
)
|
|
140
|
-
|
|
141
|
-
assert result == 0
|
|
142
|
-
captured = capsys.readouterr()
|
|
143
|
-
|
|
144
|
-
# FULL should include all components
|
|
145
|
-
assert "# Dev Agent" in captured.out # agent-definition
|
|
146
|
-
assert "# Agent Behavior Guide" in captured.out # behavior-guide
|
|
147
|
-
assert "patterns.md" in captured.out # sidecars
|
|
148
|
-
|
|
149
|
-
def test_refresh_tier_loads_dynamic_only(self, tmp_path: Path, capsys) -> None:
|
|
150
|
-
"""Test REFRESH tier loads only dynamic state (~600 tokens)."""
|
|
151
|
-
from pennyfarthing_scripts.prime.cli import prime
|
|
152
|
-
|
|
153
|
-
# Setup
|
|
154
|
-
self._setup_full_project(tmp_path)
|
|
155
|
-
|
|
156
|
-
with patch("pennyfarthing_scripts.prime.cli.get_project_root", return_value=tmp_path):
|
|
157
|
-
with patch("pennyfarthing_scripts.prime.loader.get_project_root", return_value=tmp_path):
|
|
158
|
-
result = prime(
|
|
159
|
-
agent_name="dev",
|
|
160
|
-
tier="REFRESH",
|
|
161
|
-
no_register=True,
|
|
162
|
-
project_root=tmp_path,
|
|
163
|
-
)
|
|
164
|
-
|
|
165
|
-
assert result == 0
|
|
166
|
-
captured = capsys.readouterr()
|
|
167
|
-
|
|
168
|
-
# REFRESH should include:
|
|
169
|
-
# - workflow-state
|
|
170
|
-
# - sprint-context
|
|
171
|
-
# - session-header
|
|
172
|
-
# - Note about full context in history
|
|
173
|
-
assert "Sprint" in captured.out # sprint-context
|
|
174
|
-
assert "Full context already in conversation history" in captured.out
|
|
175
|
-
|
|
176
|
-
# REFRESH should NOT include:
|
|
177
|
-
# - agent-definition
|
|
178
|
-
# - behavior-guide
|
|
179
|
-
# - sidecars
|
|
180
|
-
assert "# Dev Agent" not in captured.out
|
|
181
|
-
assert "# Agent Behavior Guide" not in captured.out
|
|
182
|
-
|
|
183
|
-
def test_handoff_tier_loads_agent_essentials(self, tmp_path: Path, capsys) -> None:
|
|
184
|
-
"""Test HANDOFF tier loads agent definition + compressed persona (~700 tokens)."""
|
|
185
|
-
from pennyfarthing_scripts.prime.cli import prime
|
|
186
|
-
|
|
187
|
-
# Setup
|
|
188
|
-
self._setup_full_project(tmp_path)
|
|
189
|
-
|
|
190
|
-
with patch("pennyfarthing_scripts.prime.cli.get_project_root", return_value=tmp_path):
|
|
191
|
-
with patch("pennyfarthing_scripts.prime.loader.get_project_root", return_value=tmp_path):
|
|
192
|
-
result = prime(
|
|
193
|
-
agent_name="dev",
|
|
194
|
-
tier="HANDOFF",
|
|
195
|
-
no_register=True,
|
|
196
|
-
project_root=tmp_path,
|
|
197
|
-
)
|
|
198
|
-
|
|
199
|
-
assert result == 0
|
|
200
|
-
captured = capsys.readouterr()
|
|
201
|
-
|
|
202
|
-
# HANDOFF should include:
|
|
203
|
-
# - workflow-state
|
|
204
|
-
# - agent-definition
|
|
205
|
-
# - persona-compressed
|
|
206
|
-
# - Note about behavior guides in history
|
|
207
|
-
assert "# Dev Agent" in captured.out
|
|
208
|
-
assert "Behavior guides in conversation history" in captured.out
|
|
209
|
-
|
|
210
|
-
# HANDOFF should use compressed persona, not full
|
|
211
|
-
# Compressed format: <persona agent="dev" character="...">
|
|
212
|
-
assert "<persona" in captured.out or "persona-compressed" in captured.out
|
|
213
|
-
|
|
214
|
-
# HANDOFF should NOT include:
|
|
215
|
-
# - behavior-guide
|
|
216
|
-
# - sidecars
|
|
217
|
-
# - domain-docs
|
|
218
|
-
assert "# Agent Behavior Guide" not in captured.out
|
|
219
|
-
|
|
220
|
-
def test_minimal_tier_loads_workflow_only(self, tmp_path: Path, capsys) -> None:
|
|
221
|
-
"""Test MINIMAL tier loads only workflow state (~200 tokens)."""
|
|
222
|
-
from pennyfarthing_scripts.prime.cli import prime
|
|
223
|
-
|
|
224
|
-
# Setup
|
|
225
|
-
self._setup_full_project(tmp_path)
|
|
226
|
-
|
|
227
|
-
with patch("pennyfarthing_scripts.prime.cli.get_project_root", return_value=tmp_path):
|
|
228
|
-
with patch("pennyfarthing_scripts.prime.loader.get_project_root", return_value=tmp_path):
|
|
229
|
-
result = prime(
|
|
230
|
-
agent_name="dev",
|
|
231
|
-
tier="MINIMAL",
|
|
232
|
-
no_register=True,
|
|
233
|
-
project_root=tmp_path,
|
|
234
|
-
)
|
|
235
|
-
|
|
236
|
-
assert result == 0
|
|
237
|
-
captured = capsys.readouterr()
|
|
238
|
-
|
|
239
|
-
# MINIMAL should include:
|
|
240
|
-
# - workflow-state
|
|
241
|
-
# - Minimal context note
|
|
242
|
-
assert "Minimal context" in captured.out or "conversation history" in captured.out
|
|
243
|
-
|
|
244
|
-
# MINIMAL should NOT include:
|
|
245
|
-
# - agent-definition
|
|
246
|
-
# - persona
|
|
247
|
-
# - behavior-guide
|
|
248
|
-
# - sprint-context
|
|
249
|
-
# - sidecars
|
|
250
|
-
assert "# Dev Agent" not in captured.out
|
|
251
|
-
assert "# Agent Behavior Guide" not in captured.out
|
|
252
|
-
assert "patterns.md" not in captured.out
|
|
253
|
-
|
|
254
|
-
def _setup_full_project(self, tmp_path: Path) -> None:
|
|
255
|
-
"""Set up a complete project structure for testing."""
|
|
256
|
-
# .pennyfarthing directory
|
|
257
|
-
pf_dir = tmp_path / ".pennyfarthing"
|
|
258
|
-
pf_dir.mkdir()
|
|
259
|
-
|
|
260
|
-
# Agent definition
|
|
261
|
-
agents_dir = pf_dir / "agents"
|
|
262
|
-
agents_dir.mkdir()
|
|
263
|
-
(agents_dir / "dev.md").write_text("# Dev Agent\n\nDeveloper agent definition.")
|
|
264
|
-
|
|
265
|
-
# Behavior guide
|
|
266
|
-
guides_dir = pf_dir / "guides"
|
|
267
|
-
guides_dir.mkdir()
|
|
268
|
-
(guides_dir / "agent-behavior.md").write_text("# Agent Behavior Guide\n\nShared protocols.")
|
|
269
|
-
|
|
270
|
-
# Sidecars
|
|
271
|
-
sidecar_dir = pf_dir / "sidecars" / "dev"
|
|
272
|
-
sidecar_dir.mkdir(parents=True)
|
|
273
|
-
(sidecar_dir / "patterns.md").write_text("# Patterns\n\nDev patterns.")
|
|
274
|
-
|
|
275
|
-
# Theme config
|
|
276
|
-
(pf_dir / "config.local.yaml").write_text(yaml.dump({"theme": "test-theme"}))
|
|
277
|
-
|
|
278
|
-
# Theme file
|
|
279
|
-
themes_dir = pf_dir / "personas" / "themes"
|
|
280
|
-
themes_dir.mkdir(parents=True)
|
|
281
|
-
(themes_dir / "test-theme.yaml").write_text(yaml.dump({
|
|
282
|
-
"theme": {"name": "Test Theme", "user_title": "Developer"},
|
|
283
|
-
"agents": {
|
|
284
|
-
"dev": {
|
|
285
|
-
"character": "Test Developer",
|
|
286
|
-
"style": "Practical and efficient",
|
|
287
|
-
"role": "Implementation specialist",
|
|
288
|
-
"quote": "Ship it!",
|
|
289
|
-
}
|
|
290
|
-
}
|
|
291
|
-
}))
|
|
292
|
-
|
|
293
|
-
# Sprint
|
|
294
|
-
sprint_dir = tmp_path / "sprint"
|
|
295
|
-
sprint_dir.mkdir()
|
|
296
|
-
(sprint_dir / "current-sprint.yaml").write_text(yaml.dump({
|
|
297
|
-
"sprint": {"number": 12, "goal": "Test sprint"},
|
|
298
|
-
"epics": []
|
|
299
|
-
}))
|
|
300
|
-
|
|
301
|
-
# Session
|
|
302
|
-
session_dir = tmp_path / ".session"
|
|
303
|
-
session_dir.mkdir()
|
|
304
|
-
(session_dir / "test-session.md").write_text("# Test Session\n\n- **Phase:** green")
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
# =============================================================================
|
|
308
|
-
# AC3: Compressed Persona Format Tests
|
|
309
|
-
# =============================================================================
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
class TestCompressedPersonaFormat:
|
|
313
|
-
"""Tests for compressed persona format (AC3)."""
|
|
314
|
-
|
|
315
|
-
def test_compressed_persona_has_xml_structure(self, tmp_path: Path) -> None:
|
|
316
|
-
"""Test compressed persona uses XML format."""
|
|
317
|
-
# Import will fail until function is implemented
|
|
318
|
-
from pennyfarthing_scripts.prime.models import Persona
|
|
319
|
-
from pennyfarthing_scripts.prime.persona import format_persona_compressed
|
|
320
|
-
|
|
321
|
-
persona = Persona(
|
|
322
|
-
character="Rosie the Riveter",
|
|
323
|
-
style="Can-do wartime spirit, practical, determined",
|
|
324
|
-
role="Implementation specialist",
|
|
325
|
-
quote="We Can Do It!",
|
|
326
|
-
)
|
|
327
|
-
|
|
328
|
-
result = format_persona_compressed(persona, "test-theme", "dev")
|
|
329
|
-
|
|
330
|
-
assert '<persona agent="dev"' in result
|
|
331
|
-
assert 'character="Rosie the Riveter"' in result
|
|
332
|
-
assert "</persona>" in result
|
|
333
|
-
|
|
334
|
-
def test_compressed_persona_includes_voice(self, tmp_path: Path) -> None:
|
|
335
|
-
"""Test compressed persona includes voice element."""
|
|
336
|
-
from pennyfarthing_scripts.prime.models import Persona
|
|
337
|
-
from pennyfarthing_scripts.prime.persona import format_persona_compressed
|
|
338
|
-
|
|
339
|
-
persona = Persona(
|
|
340
|
-
character="Rosie the Riveter",
|
|
341
|
-
style="Can-do wartime spirit, practical, determined",
|
|
342
|
-
role="Implementation specialist",
|
|
343
|
-
)
|
|
344
|
-
|
|
345
|
-
result = format_persona_compressed(persona, "test-theme", "dev")
|
|
346
|
-
|
|
347
|
-
assert "<voice>" in result
|
|
348
|
-
assert "Can-do" in result
|
|
349
|
-
|
|
350
|
-
def test_compressed_persona_includes_style(self, tmp_path: Path) -> None:
|
|
351
|
-
"""Test compressed persona includes style element."""
|
|
352
|
-
from pennyfarthing_scripts.prime.models import Persona
|
|
353
|
-
from pennyfarthing_scripts.prime.persona import format_persona_compressed
|
|
354
|
-
|
|
355
|
-
persona = Persona(
|
|
356
|
-
character="Rosie the Riveter",
|
|
357
|
-
style="Direct, encouraging, efficiency-focused",
|
|
358
|
-
role="Implementation specialist",
|
|
359
|
-
)
|
|
360
|
-
|
|
361
|
-
result = format_persona_compressed(persona, "test-theme", "dev")
|
|
362
|
-
|
|
363
|
-
assert "<style>" in result
|
|
364
|
-
|
|
365
|
-
def test_compressed_persona_includes_catchphrase_if_present(self, tmp_path: Path) -> None:
|
|
366
|
-
"""Test compressed persona includes catchphrase from quote."""
|
|
367
|
-
from pennyfarthing_scripts.prime.models import Persona
|
|
368
|
-
from pennyfarthing_scripts.prime.persona import format_persona_compressed
|
|
369
|
-
|
|
370
|
-
persona = Persona(
|
|
371
|
-
character="Rosie the Riveter",
|
|
372
|
-
style="Practical",
|
|
373
|
-
role="Dev",
|
|
374
|
-
quote="We Can Do It!",
|
|
375
|
-
)
|
|
376
|
-
|
|
377
|
-
result = format_persona_compressed(persona, "test-theme", "dev")
|
|
378
|
-
|
|
379
|
-
assert "<catchphrase>" in result
|
|
380
|
-
assert "We Can Do It!" in result
|
|
381
|
-
|
|
382
|
-
def test_compressed_persona_token_count(self, tmp_path: Path) -> None:
|
|
383
|
-
"""Test compressed persona is approximately 100 tokens (~400 chars)."""
|
|
384
|
-
from pennyfarthing_scripts.prime.models import Persona
|
|
385
|
-
from pennyfarthing_scripts.prime.persona import format_persona_compressed
|
|
386
|
-
|
|
387
|
-
persona = Persona(
|
|
388
|
-
character="Rosie the Riveter",
|
|
389
|
-
style="Can-do wartime spirit, practical, determined",
|
|
390
|
-
role="Implementation specialist",
|
|
391
|
-
quote="We Can Do It!",
|
|
392
|
-
)
|
|
393
|
-
|
|
394
|
-
result = format_persona_compressed(persona, "test-theme", "dev")
|
|
395
|
-
|
|
396
|
-
# Rough token estimate: ~4 chars per token
|
|
397
|
-
# 100 tokens ≈ 400 chars
|
|
398
|
-
# Allow some variance (50-600 chars for ~100 tokens)
|
|
399
|
-
assert len(result) < 600, f"Compressed persona too long: {len(result)} chars"
|
|
400
|
-
assert len(result) > 50, f"Compressed persona too short: {len(result)} chars"
|
|
401
|
-
|
|
402
|
-
def test_full_persona_token_count(self, tmp_path: Path) -> None:
|
|
403
|
-
"""Test full persona is approximately 300 tokens (~1200 chars)."""
|
|
404
|
-
from pennyfarthing_scripts.prime.models import CrewMember, Persona
|
|
405
|
-
from pennyfarthing_scripts.prime.persona import format_persona_output
|
|
406
|
-
|
|
407
|
-
persona = Persona(
|
|
408
|
-
character="Rosie the Riveter",
|
|
409
|
-
style="Can-do wartime spirit, practical, determined",
|
|
410
|
-
role="Implementation specialist",
|
|
411
|
-
quote="We Can Do It!",
|
|
412
|
-
trait="Never gives up",
|
|
413
|
-
motto="Victory through effort",
|
|
414
|
-
)
|
|
415
|
-
crew = [
|
|
416
|
-
CrewMember(role="sm", character="Commander"),
|
|
417
|
-
CrewMember(role="dev", character="Rosie"),
|
|
418
|
-
]
|
|
419
|
-
|
|
420
|
-
result = format_persona_output(persona, "test-theme", "dev", crew, "Worker")
|
|
421
|
-
|
|
422
|
-
# Full persona should be larger than compressed
|
|
423
|
-
# ~300 tokens ≈ 1200 chars
|
|
424
|
-
assert len(result) > 400, f"Full persona too short: {len(result)} chars"
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
# =============================================================================
|
|
428
|
-
# AC4: Default Behavior (Backward Compatibility) Tests
|
|
429
|
-
# =============================================================================
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
class TestDefaultBehavior:
|
|
433
|
-
"""Tests for default behavior / backward compatibility (AC4)."""
|
|
434
|
-
|
|
435
|
-
def test_no_tier_argument_defaults_to_full(self, tmp_path: Path, capsys) -> None:
|
|
436
|
-
"""Test that omitting --tier defaults to FULL behavior."""
|
|
437
|
-
from pennyfarthing_scripts.prime.cli import prime
|
|
438
|
-
|
|
439
|
-
# Setup
|
|
440
|
-
pf_dir = tmp_path / ".pennyfarthing"
|
|
441
|
-
pf_dir.mkdir()
|
|
442
|
-
agents_dir = pf_dir / "agents"
|
|
443
|
-
agents_dir.mkdir()
|
|
444
|
-
(agents_dir / "dev.md").write_text("# Dev Agent\n\nFull content here.")
|
|
445
|
-
|
|
446
|
-
guides_dir = pf_dir / "guides"
|
|
447
|
-
guides_dir.mkdir()
|
|
448
|
-
(guides_dir / "agent-behavior.md").write_text("# Behavior Guide")
|
|
449
|
-
|
|
450
|
-
sidecar_dir = pf_dir / "sidecars" / "dev"
|
|
451
|
-
sidecar_dir.mkdir(parents=True)
|
|
452
|
-
(sidecar_dir / "patterns.md").write_text("# Patterns")
|
|
453
|
-
|
|
454
|
-
with patch("pennyfarthing_scripts.prime.cli.get_project_root", return_value=tmp_path):
|
|
455
|
-
with patch("pennyfarthing_scripts.prime.loader.get_project_root", return_value=tmp_path):
|
|
456
|
-
# No --tier argument
|
|
457
|
-
result = prime(
|
|
458
|
-
agent_name="dev",
|
|
459
|
-
no_workflow=True,
|
|
460
|
-
no_register=True,
|
|
461
|
-
project_root=tmp_path,
|
|
462
|
-
)
|
|
463
|
-
|
|
464
|
-
assert result == 0
|
|
465
|
-
captured = capsys.readouterr()
|
|
466
|
-
|
|
467
|
-
# Should behave like FULL tier - include all components
|
|
468
|
-
assert "# Dev Agent" in captured.out
|
|
469
|
-
assert "# Behavior Guide" in captured.out
|
|
470
|
-
assert "patterns.md" in captured.out
|
|
471
|
-
|
|
472
|
-
def test_explicit_full_tier_matches_default(self, tmp_path: Path, capsys) -> None:
|
|
473
|
-
"""Test that --tier FULL produces same output as default."""
|
|
474
|
-
from pennyfarthing_scripts.prime.cli import prime
|
|
475
|
-
|
|
476
|
-
# Setup
|
|
477
|
-
pf_dir = tmp_path / ".pennyfarthing"
|
|
478
|
-
pf_dir.mkdir()
|
|
479
|
-
agents_dir = pf_dir / "agents"
|
|
480
|
-
agents_dir.mkdir()
|
|
481
|
-
(agents_dir / "dev.md").write_text("# Dev Agent")
|
|
482
|
-
|
|
483
|
-
with patch("pennyfarthing_scripts.prime.cli.get_project_root", return_value=tmp_path):
|
|
484
|
-
with patch("pennyfarthing_scripts.prime.loader.get_project_root", return_value=tmp_path):
|
|
485
|
-
# Run without tier
|
|
486
|
-
result1 = prime(
|
|
487
|
-
agent_name="dev",
|
|
488
|
-
no_workflow=True,
|
|
489
|
-
no_register=True,
|
|
490
|
-
no_persona=True,
|
|
491
|
-
project_root=tmp_path,
|
|
492
|
-
)
|
|
493
|
-
output1 = capsys.readouterr().out
|
|
494
|
-
|
|
495
|
-
# Run with explicit FULL
|
|
496
|
-
result2 = prime(
|
|
497
|
-
agent_name="dev",
|
|
498
|
-
tier="FULL",
|
|
499
|
-
no_workflow=True,
|
|
500
|
-
no_register=True,
|
|
501
|
-
no_persona=True,
|
|
502
|
-
project_root=tmp_path,
|
|
503
|
-
)
|
|
504
|
-
output2 = capsys.readouterr().out
|
|
505
|
-
|
|
506
|
-
assert result1 == result2 == 0
|
|
507
|
-
assert output1 == output2
|
|
508
|
-
|
|
509
|
-
def test_existing_flags_still_work_with_tier(self, tmp_path: Path, capsys) -> None:
|
|
510
|
-
"""Test existing flags (--quiet, --json, etc.) work with --tier."""
|
|
511
|
-
import json
|
|
512
|
-
|
|
513
|
-
from pennyfarthing_scripts.prime.cli import prime
|
|
514
|
-
|
|
515
|
-
# Setup
|
|
516
|
-
pf_dir = tmp_path / ".pennyfarthing"
|
|
517
|
-
pf_dir.mkdir()
|
|
518
|
-
agents_dir = pf_dir / "agents"
|
|
519
|
-
agents_dir.mkdir()
|
|
520
|
-
(agents_dir / "dev.md").write_text("# Dev Agent")
|
|
521
|
-
|
|
522
|
-
with patch("pennyfarthing_scripts.prime.cli.get_project_root", return_value=tmp_path):
|
|
523
|
-
result = prime(
|
|
524
|
-
agent_name="dev",
|
|
525
|
-
tier="REFRESH",
|
|
526
|
-
json_output=True,
|
|
527
|
-
no_workflow=True,
|
|
528
|
-
no_register=True,
|
|
529
|
-
no_persona=True,
|
|
530
|
-
project_root=tmp_path,
|
|
531
|
-
)
|
|
532
|
-
|
|
533
|
-
assert result == 0
|
|
534
|
-
captured = capsys.readouterr()
|
|
535
|
-
|
|
536
|
-
# Should be valid JSON
|
|
537
|
-
data = json.loads(captured.out)
|
|
538
|
-
assert "tier" in data or "agent_name" in data
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
# =============================================================================
|
|
542
|
-
# AC5: Coverage Tests (All Tier Loading Paths)
|
|
543
|
-
# =============================================================================
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
class TestTierLoadingPaths:
|
|
547
|
-
"""Tests for all tier loading paths (AC5)."""
|
|
548
|
-
|
|
549
|
-
def test_full_tier_with_all_options(self, tmp_path: Path) -> None:
|
|
550
|
-
"""Test FULL tier with all context sources available."""
|
|
551
|
-
from pennyfarthing_scripts.prime.tiers import ContextTier, load_tier_components
|
|
552
|
-
|
|
553
|
-
# Setup complete project
|
|
554
|
-
self._setup_complete_project(tmp_path)
|
|
555
|
-
|
|
556
|
-
components = load_tier_components(
|
|
557
|
-
tier=ContextTier.FULL,
|
|
558
|
-
agent_name="dev",
|
|
559
|
-
project_root=tmp_path,
|
|
560
|
-
)
|
|
561
|
-
|
|
562
|
-
# Should return all component types
|
|
563
|
-
assert "workflow_state" in components
|
|
564
|
-
assert "agent_definition" in components
|
|
565
|
-
assert "persona" in components
|
|
566
|
-
assert "behavior_guide" in components
|
|
567
|
-
assert "sprint_context" in components
|
|
568
|
-
assert "sidecars" in components
|
|
569
|
-
|
|
570
|
-
def test_full_tier_with_missing_optional(self, tmp_path: Path) -> None:
|
|
571
|
-
"""Test FULL tier gracefully handles missing optional components."""
|
|
572
|
-
from pennyfarthing_scripts.prime.tiers import ContextTier, load_tier_components
|
|
573
|
-
|
|
574
|
-
# Minimal setup - only agent definition
|
|
575
|
-
pf_dir = tmp_path / ".pennyfarthing"
|
|
576
|
-
pf_dir.mkdir()
|
|
577
|
-
agents_dir = pf_dir / "agents"
|
|
578
|
-
agents_dir.mkdir()
|
|
579
|
-
(agents_dir / "dev.md").write_text("# Dev Agent")
|
|
580
|
-
|
|
581
|
-
components = load_tier_components(
|
|
582
|
-
tier=ContextTier.FULL,
|
|
583
|
-
agent_name="dev",
|
|
584
|
-
project_root=tmp_path,
|
|
585
|
-
)
|
|
586
|
-
|
|
587
|
-
# Should have agent definition, gracefully handle missing others
|
|
588
|
-
assert components.get("agent_definition") is not None
|
|
589
|
-
# Missing components should be None or empty, not raise exceptions
|
|
590
|
-
|
|
591
|
-
def test_refresh_tier_components(self, tmp_path: Path) -> None:
|
|
592
|
-
"""Test REFRESH tier returns correct component set."""
|
|
593
|
-
from pennyfarthing_scripts.prime.tiers import ContextTier, load_tier_components
|
|
594
|
-
|
|
595
|
-
self._setup_complete_project(tmp_path)
|
|
596
|
-
|
|
597
|
-
components = load_tier_components(
|
|
598
|
-
tier=ContextTier.REFRESH,
|
|
599
|
-
agent_name="dev",
|
|
600
|
-
project_root=tmp_path,
|
|
601
|
-
)
|
|
602
|
-
|
|
603
|
-
# REFRESH should include
|
|
604
|
-
assert "workflow_state" in components
|
|
605
|
-
assert "sprint_context" in components
|
|
606
|
-
assert "session_header" in components
|
|
607
|
-
|
|
608
|
-
# REFRESH should NOT include
|
|
609
|
-
assert "agent_definition" not in components or components.get("agent_definition") is None
|
|
610
|
-
assert "behavior_guide" not in components or components.get("behavior_guide") is None
|
|
611
|
-
assert "sidecars" not in components or components.get("sidecars") is None
|
|
612
|
-
|
|
613
|
-
def test_handoff_tier_components(self, tmp_path: Path) -> None:
|
|
614
|
-
"""Test HANDOFF tier returns correct component set."""
|
|
615
|
-
from pennyfarthing_scripts.prime.tiers import ContextTier, load_tier_components
|
|
616
|
-
|
|
617
|
-
self._setup_complete_project(tmp_path)
|
|
618
|
-
|
|
619
|
-
components = load_tier_components(
|
|
620
|
-
tier=ContextTier.HANDOFF,
|
|
621
|
-
agent_name="dev",
|
|
622
|
-
project_root=tmp_path,
|
|
623
|
-
)
|
|
624
|
-
|
|
625
|
-
# HANDOFF should include
|
|
626
|
-
assert "workflow_state" in components
|
|
627
|
-
assert "agent_definition" in components
|
|
628
|
-
assert "persona_compressed" in components
|
|
629
|
-
|
|
630
|
-
# HANDOFF should NOT include
|
|
631
|
-
assert "behavior_guide" not in components or components.get("behavior_guide") is None
|
|
632
|
-
assert "sidecars" not in components or components.get("sidecars") is None
|
|
633
|
-
|
|
634
|
-
def test_minimal_tier_components(self, tmp_path: Path) -> None:
|
|
635
|
-
"""Test MINIMAL tier returns minimal component set."""
|
|
636
|
-
from pennyfarthing_scripts.prime.tiers import ContextTier, load_tier_components
|
|
637
|
-
|
|
638
|
-
self._setup_complete_project(tmp_path)
|
|
639
|
-
|
|
640
|
-
components = load_tier_components(
|
|
641
|
-
tier=ContextTier.MINIMAL,
|
|
642
|
-
agent_name="dev",
|
|
643
|
-
project_root=tmp_path,
|
|
644
|
-
)
|
|
645
|
-
|
|
646
|
-
# MINIMAL should include only workflow state
|
|
647
|
-
assert "workflow_state" in components
|
|
648
|
-
|
|
649
|
-
# MINIMAL should NOT include anything else
|
|
650
|
-
assert "agent_definition" not in components or components.get("agent_definition") is None
|
|
651
|
-
assert "persona" not in components or components.get("persona") is None
|
|
652
|
-
assert "behavior_guide" not in components or components.get("behavior_guide") is None
|
|
653
|
-
assert "sidecars" not in components or components.get("sidecars") is None
|
|
654
|
-
|
|
655
|
-
def test_tier_enum_values(self) -> None:
|
|
656
|
-
"""Test ContextTier enum has all required values."""
|
|
657
|
-
from pennyfarthing_scripts.prime.tiers import ContextTier
|
|
658
|
-
|
|
659
|
-
assert hasattr(ContextTier, "FULL")
|
|
660
|
-
assert hasattr(ContextTier, "REFRESH")
|
|
661
|
-
assert hasattr(ContextTier, "HANDOFF")
|
|
662
|
-
assert hasattr(ContextTier, "MINIMAL")
|
|
663
|
-
|
|
664
|
-
def test_tier_from_string(self) -> None:
|
|
665
|
-
"""Test converting string to ContextTier."""
|
|
666
|
-
from pennyfarthing_scripts.prime.tiers import ContextTier, tier_from_string
|
|
667
|
-
|
|
668
|
-
assert tier_from_string("FULL") == ContextTier.FULL
|
|
669
|
-
assert tier_from_string("REFRESH") == ContextTier.REFRESH
|
|
670
|
-
assert tier_from_string("HANDOFF") == ContextTier.HANDOFF
|
|
671
|
-
assert tier_from_string("MINIMAL") == ContextTier.MINIMAL
|
|
672
|
-
|
|
673
|
-
# Case insensitive
|
|
674
|
-
assert tier_from_string("full") == ContextTier.FULL
|
|
675
|
-
assert tier_from_string("Refresh") == ContextTier.REFRESH
|
|
676
|
-
|
|
677
|
-
def _setup_complete_project(self, tmp_path: Path) -> None:
|
|
678
|
-
"""Set up a complete project for component testing."""
|
|
679
|
-
pf_dir = tmp_path / ".pennyfarthing"
|
|
680
|
-
pf_dir.mkdir()
|
|
681
|
-
|
|
682
|
-
# Agent
|
|
683
|
-
agents_dir = pf_dir / "agents"
|
|
684
|
-
agents_dir.mkdir()
|
|
685
|
-
(agents_dir / "dev.md").write_text("# Dev Agent")
|
|
686
|
-
|
|
687
|
-
# Guides
|
|
688
|
-
guides_dir = pf_dir / "guides"
|
|
689
|
-
guides_dir.mkdir()
|
|
690
|
-
(guides_dir / "agent-behavior.md").write_text("# Behavior")
|
|
691
|
-
|
|
692
|
-
# Sidecars
|
|
693
|
-
sidecar_dir = pf_dir / "sidecars" / "dev"
|
|
694
|
-
sidecar_dir.mkdir(parents=True)
|
|
695
|
-
(sidecar_dir / "patterns.md").write_text("# Patterns")
|
|
696
|
-
|
|
697
|
-
# Theme
|
|
698
|
-
(pf_dir / "config.local.yaml").write_text(yaml.dump({"theme": "test"}))
|
|
699
|
-
themes_dir = pf_dir / "personas" / "themes"
|
|
700
|
-
themes_dir.mkdir(parents=True)
|
|
701
|
-
(themes_dir / "test.yaml").write_text(yaml.dump({
|
|
702
|
-
"agents": {"dev": {"character": "Dev", "style": "s", "role": "r"}}
|
|
703
|
-
}))
|
|
704
|
-
|
|
705
|
-
# Sprint
|
|
706
|
-
sprint_dir = tmp_path / "sprint"
|
|
707
|
-
sprint_dir.mkdir()
|
|
708
|
-
(sprint_dir / "current-sprint.yaml").write_text(yaml.dump({
|
|
709
|
-
"sprint": {"number": 12, "goal": "Test"},
|
|
710
|
-
"epics": []
|
|
711
|
-
}))
|
|
712
|
-
|
|
713
|
-
# Session
|
|
714
|
-
session_dir = tmp_path / ".session"
|
|
715
|
-
session_dir.mkdir()
|
|
716
|
-
(session_dir / "test-session.md").write_text("# Session\n\n- **Phase:** green")
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
# =============================================================================
|
|
720
|
-
# AC6: Token Reduction Verification Tests
|
|
721
|
-
# =============================================================================
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
class TestTokenReduction:
|
|
725
|
-
"""Tests for token reduction verification (AC6)."""
|
|
726
|
-
|
|
727
|
-
def test_refresh_tier_under_800_tokens(self, tmp_path: Path, capsys) -> None:
|
|
728
|
-
"""Test REFRESH tier output is under 800 tokens (~3200 chars)."""
|
|
729
|
-
from pennyfarthing_scripts.prime.cli import prime
|
|
730
|
-
|
|
731
|
-
# Setup with realistic content
|
|
732
|
-
self._setup_realistic_project(tmp_path)
|
|
733
|
-
|
|
734
|
-
with patch("pennyfarthing_scripts.prime.cli.get_project_root", return_value=tmp_path):
|
|
735
|
-
with patch("pennyfarthing_scripts.prime.loader.get_project_root", return_value=tmp_path):
|
|
736
|
-
result = prime(
|
|
737
|
-
agent_name="dev",
|
|
738
|
-
tier="REFRESH",
|
|
739
|
-
no_register=True,
|
|
740
|
-
project_root=tmp_path,
|
|
741
|
-
)
|
|
742
|
-
|
|
743
|
-
assert result == 0
|
|
744
|
-
captured = capsys.readouterr()
|
|
745
|
-
|
|
746
|
-
# ~600 tokens ≈ 2400 chars, allow up to 800 tokens ≈ 3200 chars
|
|
747
|
-
assert len(captured.out) < 3200, f"REFRESH tier too large: {len(captured.out)} chars (~{len(captured.out)//4} tokens)"
|
|
748
|
-
|
|
749
|
-
def test_handoff_tier_under_900_tokens(self, tmp_path: Path, capsys) -> None:
|
|
750
|
-
"""Test HANDOFF tier output is under 900 tokens (~3600 chars)."""
|
|
751
|
-
from pennyfarthing_scripts.prime.cli import prime
|
|
752
|
-
|
|
753
|
-
# Setup with realistic content
|
|
754
|
-
self._setup_realistic_project(tmp_path)
|
|
755
|
-
|
|
756
|
-
with patch("pennyfarthing_scripts.prime.cli.get_project_root", return_value=tmp_path):
|
|
757
|
-
with patch("pennyfarthing_scripts.prime.loader.get_project_root", return_value=tmp_path):
|
|
758
|
-
result = prime(
|
|
759
|
-
agent_name="dev",
|
|
760
|
-
tier="HANDOFF",
|
|
761
|
-
no_register=True,
|
|
762
|
-
project_root=tmp_path,
|
|
763
|
-
)
|
|
764
|
-
|
|
765
|
-
assert result == 0
|
|
766
|
-
captured = capsys.readouterr()
|
|
767
|
-
|
|
768
|
-
# ~700 tokens ≈ 2800 chars, allow up to 900 tokens ≈ 3600 chars
|
|
769
|
-
assert len(captured.out) < 3600, f"HANDOFF tier too large: {len(captured.out)} chars (~{len(captured.out)//4} tokens)"
|
|
770
|
-
|
|
771
|
-
def test_minimal_tier_under_300_tokens(self, tmp_path: Path, capsys) -> None:
|
|
772
|
-
"""Test MINIMAL tier output is under 300 tokens (~1200 chars)."""
|
|
773
|
-
from pennyfarthing_scripts.prime.cli import prime
|
|
774
|
-
|
|
775
|
-
# Setup with realistic content
|
|
776
|
-
self._setup_realistic_project(tmp_path)
|
|
777
|
-
|
|
778
|
-
with patch("pennyfarthing_scripts.prime.cli.get_project_root", return_value=tmp_path):
|
|
779
|
-
with patch("pennyfarthing_scripts.prime.loader.get_project_root", return_value=tmp_path):
|
|
780
|
-
result = prime(
|
|
781
|
-
agent_name="dev",
|
|
782
|
-
tier="MINIMAL",
|
|
783
|
-
no_register=True,
|
|
784
|
-
project_root=tmp_path,
|
|
785
|
-
)
|
|
786
|
-
|
|
787
|
-
assert result == 0
|
|
788
|
-
captured = capsys.readouterr()
|
|
789
|
-
|
|
790
|
-
# ~200 tokens ≈ 800 chars, allow up to 300 tokens ≈ 1200 chars
|
|
791
|
-
assert len(captured.out) < 1200, f"MINIMAL tier too large: {len(captured.out)} chars (~{len(captured.out)//4} tokens)"
|
|
792
|
-
|
|
793
|
-
def test_full_tier_approximately_4000_tokens(self, tmp_path: Path, capsys) -> None:
|
|
794
|
-
"""Test FULL tier output is approximately 4000 tokens (~16000 chars)."""
|
|
795
|
-
from pennyfarthing_scripts.prime.cli import prime
|
|
796
|
-
|
|
797
|
-
# Setup with realistic content
|
|
798
|
-
self._setup_realistic_project(tmp_path)
|
|
799
|
-
|
|
800
|
-
with patch("pennyfarthing_scripts.prime.cli.get_project_root", return_value=tmp_path):
|
|
801
|
-
with patch("pennyfarthing_scripts.prime.loader.get_project_root", return_value=tmp_path):
|
|
802
|
-
result = prime(
|
|
803
|
-
agent_name="dev",
|
|
804
|
-
tier="FULL",
|
|
805
|
-
no_register=True,
|
|
806
|
-
project_root=tmp_path,
|
|
807
|
-
)
|
|
808
|
-
|
|
809
|
-
assert result == 0
|
|
810
|
-
captured = capsys.readouterr()
|
|
811
|
-
|
|
812
|
-
# FULL should be significantly larger than other tiers
|
|
813
|
-
# At minimum, should be larger than HANDOFF limit
|
|
814
|
-
assert len(captured.out) > 3600, f"FULL tier too small: {len(captured.out)} chars"
|
|
815
|
-
|
|
816
|
-
def test_tier_reduction_ratio(self, tmp_path: Path, capsys) -> None:
|
|
817
|
-
"""Test that reduced tiers are significantly smaller than FULL."""
|
|
818
|
-
from pennyfarthing_scripts.prime.cli import prime
|
|
819
|
-
|
|
820
|
-
self._setup_realistic_project(tmp_path)
|
|
821
|
-
|
|
822
|
-
sizes = {}
|
|
823
|
-
for tier in ["FULL", "REFRESH", "HANDOFF", "MINIMAL"]:
|
|
824
|
-
with patch("pennyfarthing_scripts.prime.cli.get_project_root", return_value=tmp_path):
|
|
825
|
-
with patch("pennyfarthing_scripts.prime.loader.get_project_root", return_value=tmp_path):
|
|
826
|
-
prime(
|
|
827
|
-
agent_name="dev",
|
|
828
|
-
tier=tier,
|
|
829
|
-
no_register=True,
|
|
830
|
-
project_root=tmp_path,
|
|
831
|
-
)
|
|
832
|
-
sizes[tier] = len(capsys.readouterr().out)
|
|
833
|
-
|
|
834
|
-
# REFRESH should be <20% of FULL
|
|
835
|
-
assert sizes["REFRESH"] < sizes["FULL"] * 0.20, \
|
|
836
|
-
f"REFRESH not reduced enough: {sizes['REFRESH']}/{sizes['FULL']} = {sizes['REFRESH']/sizes['FULL']:.1%}"
|
|
837
|
-
|
|
838
|
-
# HANDOFF should be <25% of FULL
|
|
839
|
-
assert sizes["HANDOFF"] < sizes["FULL"] * 0.25, \
|
|
840
|
-
f"HANDOFF not reduced enough: {sizes['HANDOFF']}/{sizes['FULL']} = {sizes['HANDOFF']/sizes['FULL']:.1%}"
|
|
841
|
-
|
|
842
|
-
# MINIMAL should be <10% of FULL
|
|
843
|
-
assert sizes["MINIMAL"] < sizes["FULL"] * 0.10, \
|
|
844
|
-
f"MINIMAL not reduced enough: {sizes['MINIMAL']}/{sizes['FULL']} = {sizes['MINIMAL']/sizes['FULL']:.1%}"
|
|
845
|
-
|
|
846
|
-
def _setup_realistic_project(self, tmp_path: Path) -> None:
|
|
847
|
-
"""Set up a realistic project with typical content sizes."""
|
|
848
|
-
pf_dir = tmp_path / ".pennyfarthing"
|
|
849
|
-
pf_dir.mkdir()
|
|
850
|
-
|
|
851
|
-
# Agent definition (~400 tokens = ~1600 chars)
|
|
852
|
-
agents_dir = pf_dir / "agents"
|
|
853
|
-
agents_dir.mkdir()
|
|
854
|
-
(agents_dir / "dev.md").write_text("""# Developer Agent
|
|
855
|
-
|
|
856
|
-
<role>
|
|
857
|
-
Feature implementation, bug fixes, code quality
|
|
858
|
-
</role>
|
|
859
|
-
|
|
860
|
-
<critical>
|
|
861
|
-
- Write tests before implementation
|
|
862
|
-
- Follow existing patterns
|
|
863
|
-
- Keep changes focused
|
|
864
|
-
</critical>
|
|
865
|
-
|
|
866
|
-
<workflow>
|
|
867
|
-
1. Read story context from session
|
|
868
|
-
2. Implement to make tests pass
|
|
869
|
-
3. Refactor if needed
|
|
870
|
-
4. Hand off to reviewer
|
|
871
|
-
</workflow>
|
|
872
|
-
|
|
873
|
-
<skills>
|
|
874
|
-
- `/testing` - Run tests
|
|
875
|
-
- `/dev-patterns` - Common patterns
|
|
876
|
-
</skills>
|
|
877
|
-
""" + ("Additional context. " * 50))
|
|
878
|
-
|
|
879
|
-
# Behavior guide (~800 tokens = ~3200 chars)
|
|
880
|
-
guides_dir = pf_dir / "guides"
|
|
881
|
-
guides_dir.mkdir()
|
|
882
|
-
(guides_dir / "agent-behavior.md").write_text("""# Agent Behavior Guide
|
|
883
|
-
|
|
884
|
-
<critical>
|
|
885
|
-
Session file is source of truth.
|
|
886
|
-
Never run tests directly.
|
|
887
|
-
Always emit handoff marker.
|
|
888
|
-
</critical>
|
|
889
|
-
|
|
890
|
-
## Workflow Reference
|
|
891
|
-
|
|
892
|
-
Standard: SM → TEA → Dev → Reviewer → SM
|
|
893
|
-
|
|
894
|
-
## Skills
|
|
895
|
-
|
|
896
|
-
- `/sprint` - Sprint management
|
|
897
|
-
- `/testing` - Test commands
|
|
898
|
-
- `/jira` - Jira operations
|
|
899
|
-
|
|
900
|
-
## Efficiency
|
|
901
|
-
|
|
902
|
-
- Parallelize independent operations
|
|
903
|
-
- Use subagents for specialized tasks
|
|
904
|
-
- Batch bash commands with &&
|
|
905
|
-
""" + ("Detailed behavior guidance. " * 80))
|
|
906
|
-
|
|
907
|
-
# Sidecars (~1200 tokens = ~4800 chars)
|
|
908
|
-
sidecar_dir = pf_dir / "sidecars" / "dev"
|
|
909
|
-
sidecar_dir.mkdir(parents=True)
|
|
910
|
-
(sidecar_dir / "patterns.md").write_text("""# Dev Patterns
|
|
911
|
-
|
|
912
|
-
## Common Patterns
|
|
913
|
-
|
|
914
|
-
### Error Handling
|
|
915
|
-
```typescript
|
|
916
|
-
try {
|
|
917
|
-
await operation();
|
|
918
|
-
} catch (error) {
|
|
919
|
-
logger.error('Operation failed', { error });
|
|
920
|
-
throw new OperationError(error);
|
|
921
|
-
}
|
|
922
|
-
```
|
|
923
|
-
|
|
924
|
-
### Testing
|
|
925
|
-
```typescript
|
|
926
|
-
describe('Component', () => {
|
|
927
|
-
it('should handle edge case', () => {
|
|
928
|
-
expect(fn(null)).toBeUndefined();
|
|
929
|
-
});
|
|
930
|
-
});
|
|
931
|
-
```
|
|
932
|
-
""" + ("Pattern documentation. " * 100))
|
|
933
|
-
|
|
934
|
-
(sidecar_dir / "gotchas.md").write_text("""# Dev Gotchas
|
|
935
|
-
|
|
936
|
-
1. Always read before write
|
|
937
|
-
2. Check symlinks before git add
|
|
938
|
-
3. Run tests before handoff
|
|
939
|
-
""" + ("Gotcha details. " * 50))
|
|
940
|
-
|
|
941
|
-
# Theme (~300 tokens = ~1200 chars for full persona)
|
|
942
|
-
(pf_dir / "config.local.yaml").write_text(yaml.dump({"theme": "test-theme"}))
|
|
943
|
-
themes_dir = pf_dir / "personas" / "themes"
|
|
944
|
-
themes_dir.mkdir(parents=True)
|
|
945
|
-
(themes_dir / "test-theme.yaml").write_text(yaml.dump({
|
|
946
|
-
"theme": {"name": "Test Theme", "user_title": "Developer"},
|
|
947
|
-
"agents": {
|
|
948
|
-
"dev": {
|
|
949
|
-
"character": "Rosie the Riveter",
|
|
950
|
-
"style": "Can-do wartime spirit, practical, determined, efficient, never gives up",
|
|
951
|
-
"role": "The implementation specialist who gets things done",
|
|
952
|
-
"quote": "We Can Do It!",
|
|
953
|
-
"trait": "Unwavering determination",
|
|
954
|
-
"motto": "Victory through effort and teamwork",
|
|
955
|
-
},
|
|
956
|
-
"sm": {"character": "Commander", "style": "s", "role": "r"},
|
|
957
|
-
}
|
|
958
|
-
}))
|
|
959
|
-
|
|
960
|
-
# Sprint (~150 tokens)
|
|
961
|
-
sprint_dir = tmp_path / "sprint"
|
|
962
|
-
sprint_dir.mkdir()
|
|
963
|
-
(sprint_dir / "current-sprint.yaml").write_text(yaml.dump({
|
|
964
|
-
"sprint": {"number": 12, "goal": "Complete tier implementation"},
|
|
965
|
-
"epics": [{"id": "epic-1", "stories": [{"id": "1-1", "status": "in_progress"}]}]
|
|
966
|
-
}))
|
|
967
|
-
|
|
968
|
-
# Session (~200 tokens)
|
|
969
|
-
session_dir = tmp_path / ".session"
|
|
970
|
-
session_dir.mkdir()
|
|
971
|
-
(session_dir / "test-session.md").write_text("""# MSSCI-12797: Python Prime Tier Support
|
|
972
|
-
|
|
973
|
-
## Story Context
|
|
974
|
-
- **ID:** MSSCI-12797
|
|
975
|
-
- **Workflow:** tdd
|
|
976
|
-
|
|
977
|
-
## Workflow Phase
|
|
978
|
-
- **Phase:** green
|
|
979
|
-
- **Phase Owner:** dev
|
|
980
|
-
""")
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
# =============================================================================
|
|
984
|
-
# Integration Tests
|
|
985
|
-
# =============================================================================
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
class TestTierIntegration:
|
|
989
|
-
"""Integration tests for tier system."""
|
|
990
|
-
|
|
991
|
-
def test_json_output_includes_tier(self, tmp_path: Path, capsys) -> None:
|
|
992
|
-
"""Test JSON output includes current tier."""
|
|
993
|
-
import json
|
|
994
|
-
|
|
995
|
-
from pennyfarthing_scripts.prime.cli import prime
|
|
996
|
-
|
|
997
|
-
pf_dir = tmp_path / ".pennyfarthing"
|
|
998
|
-
pf_dir.mkdir()
|
|
999
|
-
agents_dir = pf_dir / "agents"
|
|
1000
|
-
agents_dir.mkdir()
|
|
1001
|
-
(agents_dir / "dev.md").write_text("# Dev Agent")
|
|
1002
|
-
|
|
1003
|
-
with patch("pennyfarthing_scripts.prime.cli.get_project_root", return_value=tmp_path):
|
|
1004
|
-
result = prime(
|
|
1005
|
-
agent_name="dev",
|
|
1006
|
-
tier="REFRESH",
|
|
1007
|
-
json_output=True,
|
|
1008
|
-
no_workflow=True,
|
|
1009
|
-
no_register=True,
|
|
1010
|
-
no_persona=True,
|
|
1011
|
-
project_root=tmp_path,
|
|
1012
|
-
)
|
|
1013
|
-
|
|
1014
|
-
assert result == 0
|
|
1015
|
-
captured = capsys.readouterr()
|
|
1016
|
-
data = json.loads(captured.out)
|
|
1017
|
-
|
|
1018
|
-
assert data.get("tier") == "REFRESH"
|
|
1019
|
-
|
|
1020
|
-
def test_tier_with_workflow_detection(self, tmp_path: Path, capsys) -> None:
|
|
1021
|
-
"""Test tier works correctly with workflow detection enabled."""
|
|
1022
|
-
from pennyfarthing_scripts.prime.cli import prime
|
|
1023
|
-
|
|
1024
|
-
pf_dir = tmp_path / ".pennyfarthing"
|
|
1025
|
-
pf_dir.mkdir()
|
|
1026
|
-
agents_dir = pf_dir / "agents"
|
|
1027
|
-
agents_dir.mkdir()
|
|
1028
|
-
(agents_dir / "dev.md").write_text("# Dev Agent")
|
|
1029
|
-
|
|
1030
|
-
sprint_dir = tmp_path / "sprint"
|
|
1031
|
-
sprint_dir.mkdir()
|
|
1032
|
-
(sprint_dir / "current-sprint.yaml").write_text(yaml.dump({
|
|
1033
|
-
"sprint": {"number": 12},
|
|
1034
|
-
"epics": []
|
|
1035
|
-
}))
|
|
1036
|
-
|
|
1037
|
-
with patch("pennyfarthing_scripts.prime.cli.get_project_root", return_value=tmp_path):
|
|
1038
|
-
with patch("pennyfarthing_scripts.prime.loader.get_project_root", return_value=tmp_path):
|
|
1039
|
-
result = prime(
|
|
1040
|
-
agent_name="dev",
|
|
1041
|
-
tier="MINIMAL",
|
|
1042
|
-
no_register=True,
|
|
1043
|
-
project_root=tmp_path,
|
|
1044
|
-
)
|
|
1045
|
-
|
|
1046
|
-
assert result == 0
|
|
1047
|
-
captured = capsys.readouterr()
|
|
1048
|
-
|
|
1049
|
-
# Should include workflow state even in MINIMAL
|
|
1050
|
-
assert "Workflow State" in captured.out or "state:" in captured.out
|
|
1051
|
-
|
|
1052
|
-
def test_tier_with_redirect_detection(self, tmp_path: Path, capsys) -> None:
|
|
1053
|
-
"""Test tier works correctly with redirect detection."""
|
|
1054
|
-
from pennyfarthing_scripts.prime.cli import prime
|
|
1055
|
-
|
|
1056
|
-
pf_dir = tmp_path / ".pennyfarthing"
|
|
1057
|
-
pf_dir.mkdir()
|
|
1058
|
-
agents_dir = pf_dir / "agents"
|
|
1059
|
-
agents_dir.mkdir()
|
|
1060
|
-
(agents_dir / "tea.md").write_text("# TEA Agent")
|
|
1061
|
-
|
|
1062
|
-
# Workflow pointing to dev phase
|
|
1063
|
-
workflows_dir = tmp_path / "pennyfarthing-dist" / "workflows"
|
|
1064
|
-
workflows_dir.mkdir(parents=True)
|
|
1065
|
-
(workflows_dir / "tdd.yaml").write_text(yaml.dump({
|
|
1066
|
-
"workflow": {
|
|
1067
|
-
"phases": [{"name": "green", "agent": "dev"}]
|
|
1068
|
-
}
|
|
1069
|
-
}))
|
|
1070
|
-
|
|
1071
|
-
session_dir = tmp_path / ".session"
|
|
1072
|
-
session_dir.mkdir()
|
|
1073
|
-
(session_dir / "test-session.md").write_text("""# Test
|
|
1074
|
-
- **Workflow:** tdd
|
|
1075
|
-
- **Current Phase:** green
|
|
1076
|
-
""")
|
|
1077
|
-
|
|
1078
|
-
with patch("pennyfarthing_scripts.prime.cli.get_project_root", return_value=tmp_path):
|
|
1079
|
-
result = prime(
|
|
1080
|
-
agent_name="tea",
|
|
1081
|
-
tier="HANDOFF",
|
|
1082
|
-
no_register=True,
|
|
1083
|
-
no_persona=True,
|
|
1084
|
-
project_root=tmp_path,
|
|
1085
|
-
)
|
|
1086
|
-
|
|
1087
|
-
assert result == 0
|
|
1088
|
-
captured = capsys.readouterr()
|
|
1089
|
-
|
|
1090
|
-
# Should still detect redirect even in reduced tier
|
|
1091
|
-
assert "REDIRECT" in captured.out or "dev" in captured.out
|