@pennyfarthing/core 10.1.0 → 10.2.0
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 +13 -18
- package/package.json +3 -1
- package/packages/core/dist/cli/commands/doctor-file-layout.test.js.map +1 -1
- package/packages/core/dist/cli/commands/doctor-legacy.test.js +24 -0
- package/packages/core/dist/cli/commands/doctor-legacy.test.js.map +1 -1
- package/packages/core/dist/cli/commands/doctor.d.ts.map +1 -1
- package/packages/core/dist/cli/commands/doctor.js +101 -15
- package/packages/core/dist/cli/commands/doctor.js.map +1 -1
- package/packages/core/dist/cli/commands/e2e-fresh-install.test.js +1 -1
- package/packages/core/dist/cli/commands/e2e-fresh-install.test.js.map +1 -1
- package/packages/core/dist/cli/commands/e2e-upgrade.test.js +1 -1
- package/packages/core/dist/cli/commands/e2e-upgrade.test.js.map +1 -1
- package/packages/core/dist/cli/commands/hooks-consolidation.test.js +2 -2
- package/packages/core/dist/cli/commands/hooks-consolidation.test.js.map +1 -1
- package/packages/core/dist/cli/commands/init-consolidation.test.js.map +1 -1
- package/packages/core/dist/cli/commands/uninstall.d.ts.map +1 -1
- package/packages/core/dist/cli/commands/uninstall.js +24 -13
- package/packages/core/dist/cli/commands/uninstall.js.map +1 -1
- package/packages/core/dist/cli/commands/update-consolidation.test.js +0 -10
- package/packages/core/dist/cli/commands/update-consolidation.test.js.map +1 -1
- package/packages/core/dist/cli/commands/update.js.map +1 -1
- package/packages/core/dist/cli/ocean-profiles.test.js.map +1 -1
- package/packages/core/dist/cli/theme-maker.test.js +64 -115
- package/packages/core/dist/cli/theme-maker.test.js.map +1 -1
- package/packages/core/dist/index.d.ts +1 -1
- package/packages/core/dist/index.d.ts.map +1 -1
- package/packages/core/dist/index.js +2 -2
- package/packages/core/dist/index.js.map +1 -1
- package/packages/core/dist/plugins/plugin-discovery.d.ts +116 -0
- package/packages/core/dist/plugins/plugin-discovery.d.ts.map +1 -0
- package/packages/core/dist/plugins/plugin-discovery.js +165 -0
- package/packages/core/dist/plugins/plugin-discovery.js.map +1 -0
- package/packages/core/dist/plugins/plugin-discovery.test.d.ts +22 -0
- package/packages/core/dist/plugins/plugin-discovery.test.d.ts.map +1 -0
- package/packages/core/dist/plugins/plugin-discovery.test.js +498 -0
- package/packages/core/dist/plugins/plugin-discovery.test.js.map +1 -0
- package/packages/core/dist/scripts/generate-spider-report.js.map +1 -1
- package/packages/core/dist/workflow/context-watch.d.ts +80 -0
- package/packages/core/dist/workflow/context-watch.d.ts.map +1 -0
- package/packages/core/dist/workflow/context-watch.js +235 -0
- package/packages/core/dist/workflow/context-watch.js.map +1 -0
- package/packages/core/dist/workflow/context-watch.test.d.ts +1 -0
- package/packages/core/dist/workflow/context-watch.test.d.ts.map +1 -0
- package/packages/core/dist/workflow/context-watch.test.js +746 -0
- package/packages/core/dist/workflow/context-watch.test.js.map +1 -0
- package/packages/core/dist/workflow/file-watch.d.ts +82 -0
- package/packages/core/dist/workflow/file-watch.d.ts.map +1 -0
- package/packages/core/dist/workflow/file-watch.js +198 -0
- package/packages/core/dist/workflow/file-watch.js.map +1 -0
- package/packages/core/dist/workflow/file-watch.test.d.ts +21 -0
- package/packages/core/dist/workflow/file-watch.test.d.ts.map +1 -0
- package/packages/core/dist/workflow/file-watch.test.js +469 -0
- package/packages/core/dist/workflow/file-watch.test.js.map +1 -0
- package/packages/core/dist/workflow/observation-writer.d.ts +79 -0
- package/packages/core/dist/workflow/observation-writer.d.ts.map +1 -0
- package/packages/core/dist/workflow/observation-writer.js +97 -0
- package/packages/core/dist/workflow/observation-writer.js.map +1 -0
- package/packages/core/dist/workflow/observation-writer.test.d.ts +18 -0
- package/packages/core/dist/workflow/observation-writer.test.d.ts.map +1 -0
- package/packages/core/dist/workflow/observation-writer.test.js +424 -0
- package/packages/core/dist/workflow/observation-writer.test.js.map +1 -0
- package/packages/core/dist/workflow/story-workflow-routing.test.js +4 -2
- package/packages/core/dist/workflow/story-workflow-routing.test.js.map +1 -1
- package/packages/core/dist/workflow/tandem-lifecycle.d.ts +117 -0
- package/packages/core/dist/workflow/tandem-lifecycle.d.ts.map +1 -0
- package/packages/core/dist/workflow/tandem-lifecycle.js +186 -0
- package/packages/core/dist/workflow/tandem-lifecycle.js.map +1 -0
- package/packages/core/dist/workflow/tandem-lifecycle.test.d.ts +16 -0
- package/packages/core/dist/workflow/tandem-lifecycle.test.d.ts.map +1 -0
- package/packages/core/dist/workflow/tandem-lifecycle.test.js +531 -0
- package/packages/core/dist/workflow/tandem-lifecycle.test.js.map +1 -0
- package/packages/core/dist/workflow/tool-watch.d.ts +68 -0
- package/packages/core/dist/workflow/tool-watch.d.ts.map +1 -0
- package/packages/core/dist/workflow/tool-watch.js +166 -0
- package/packages/core/dist/workflow/tool-watch.js.map +1 -0
- package/packages/core/dist/workflow/tool-watch.test.d.ts +18 -0
- package/packages/core/dist/workflow/tool-watch.test.d.ts.map +1 -0
- package/packages/core/dist/workflow/tool-watch.test.js +718 -0
- package/packages/core/dist/workflow/tool-watch.test.js.map +1 -0
- package/packages/core/dist/workflow/workflow-migration.test.js +8 -4
- package/packages/core/dist/workflow/workflow-migration.test.js.map +1 -1
- package/packages/core/dist/workflow/workflow-schema.d.ts +7 -0
- package/packages/core/dist/workflow/workflow-schema.d.ts.map +1 -1
- package/packages/core/dist/workflow/workflow-schema.js +44 -0
- package/packages/core/dist/workflow/workflow-schema.js.map +1 -1
- package/packages/core/dist/workflow/workflow-schema.test.d.ts.map +1 -1
- package/packages/core/dist/workflow/workflow-schema.test.js +192 -0
- package/packages/core/dist/workflow/workflow-schema.test.js.map +1 -1
- package/pennyfarthing-dist/agents/handoff.md +18 -3
- package/pennyfarthing-dist/agents/sm-finish.md +1 -1
- package/pennyfarthing-dist/agents/sm-handoff.md +27 -4
- package/pennyfarthing-dist/agents/sm.md +11 -5
- package/pennyfarthing-dist/agents/tandem-backseat.md +119 -0
- package/pennyfarthing-dist/commands/setup.md +4 -0
- package/pennyfarthing-dist/guides/agent-behavior.md +62 -6
- package/pennyfarthing-dist/guides/bikelane.md +3 -2
- package/pennyfarthing-dist/guides/scale-levels.md +4 -6
- package/pennyfarthing-dist/guides/tandem-protocol.md +158 -0
- package/pennyfarthing-dist/personas/themes/discworld.yaml +1 -1
- package/pennyfarthing-dist/personas/themes/fifth-element.yaml +295 -0
- package/pennyfarthing-dist/scripts/README.md +1 -1
- package/pennyfarthing-dist/scripts/hooks/bell-mode-hook.sh +131 -54
- package/pennyfarthing-dist/scripts/hooks/post-merge.sh +20 -10
- package/pennyfarthing-dist/scripts/misc/statusline.sh +50 -8
- package/pennyfarthing-dist/scripts/workflow/README.md +2 -2
- package/pennyfarthing-dist/scripts/workflow/finish-story.sh +10 -189
- package/pennyfarthing-dist/skills/skill-registry.schema.json +8 -0
- package/pennyfarthing-dist/skills/skill-registry.yaml +1 -1
- package/pennyfarthing-dist/skills/sprint/skill.md +25 -2
- package/pennyfarthing-dist/skills/workflow/skill.md +24 -1
- package/pennyfarthing-dist/workflows/architecture/workflow.yaml +65 -0
- package/pennyfarthing-dist/workflows/bdd-tandem.yaml +70 -0
- package/pennyfarthing-dist/workflows/tdd-tandem.yaml +61 -0
- 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__/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__/schema_validation_hook.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/__pycache__/workflow.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/bellmode_hook.py +202 -47
- package/pennyfarthing_scripts/brownfield/__init__.py +6 -6
- package/pennyfarthing_scripts/brownfield/__main__.py +1 -0
- 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 -1
- package/pennyfarthing_scripts/brownfield/discover.py +1 -2
- package/pennyfarthing_scripts/cli.py +11 -6
- package/pennyfarthing_scripts/codemarkers/__init__.py +5 -1
- 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 +177 -2
- package/pennyfarthing_scripts/codemarkers/cli.py +50 -0
- package/pennyfarthing_scripts/codemarkers/formatters.py +0 -1
- package/pennyfarthing_scripts/codemarkers/models.py +15 -0
- package/pennyfarthing_scripts/common/__init__.py +8 -9
- 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/config.py +1 -1
- package/pennyfarthing_scripts/complexity/__init__.py +1 -1
- 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 +1 -1
- package/pennyfarthing_scripts/complexity/cli.py +5 -1
- package/pennyfarthing_scripts/complexity/formatters.py +1 -1
- package/pennyfarthing_scripts/context.py +14 -15
- 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 +3 -4
- package/pennyfarthing_scripts/deadcode/cli.py +2 -2
- package/pennyfarthing_scripts/dependencies/__init__.py +2 -2
- 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 +1 -1
- package/pennyfarthing_scripts/dependencies/cli.py +8 -4
- package/pennyfarthing_scripts/dependencies/formatters.py +1 -1
- package/pennyfarthing_scripts/git/__init__.py +5 -5
- 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__/status_all.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/git/create_branches.py +3 -2
- package/pennyfarthing_scripts/git/status_all.py +1 -1
- package/pennyfarthing_scripts/healthscore/__init__.py +2 -2
- package/pennyfarthing_scripts/healthscore/__main__.py +8 -0
- 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 +451 -21
- package/pennyfarthing_scripts/healthscore/cli.py +5 -1
- package/pennyfarthing_scripts/healthscore/models.py +0 -1
- package/pennyfarthing_scripts/hooks.py +8 -11
- package/pennyfarthing_scripts/hotspots/__init__.py +6 -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 +128 -14
- package/pennyfarthing_scripts/hotspots/cli.py +2 -2
- package/pennyfarthing_scripts/hotspots/models.py +0 -1
- package/pennyfarthing_scripts/jira/__init__.py +15 -17
- 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 +2 -3
- package/pennyfarthing_scripts/jira/claim.py +21 -0
- package/pennyfarthing_scripts/jira/cli.py +2 -2
- package/pennyfarthing_scripts/jira/client.py +4 -4
- package/pennyfarthing_scripts/jira/create.py +45 -1
- package/pennyfarthing_scripts/jira/epic.py +3 -2
- package/pennyfarthing_scripts/jira/reconcile.py +0 -1
- package/pennyfarthing_scripts/jira/story.py +2 -0
- package/pennyfarthing_scripts/jira/sync.py +1 -1
- 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/skill.py +0 -1
- package/pennyfarthing_scripts/migration/step.py +0 -1
- package/pennyfarthing_scripts/migration/validate.py +8 -5
- package/pennyfarthing_scripts/patch_mode.py +2 -2
- package/pennyfarthing_scripts/preflight/__init__.py +1 -1
- 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/finish.py +0 -1
- package/pennyfarthing_scripts/pretooluse_hook.py +6 -7
- 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__/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__/workflow.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/prime/cli.py +5 -1
- package/pennyfarthing_scripts/prime/loader.py +2 -3
- package/pennyfarthing_scripts/prime/persona.py +2 -1
- package/pennyfarthing_scripts/prime/tiers.py +4 -4
- package/pennyfarthing_scripts/schema_validation_hook.py +2 -3
- package/pennyfarthing_scripts/sprint/__init__.py +10 -12
- package/pennyfarthing_scripts/sprint/__main__.py +2 -2
- 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__/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 -1
- package/pennyfarthing_scripts/sprint/archive_epic.py +1 -4
- package/pennyfarthing_scripts/sprint/cli.py +34 -28
- package/pennyfarthing_scripts/sprint/epic_add.py +8 -1
- package/pennyfarthing_scripts/sprint/import_epic.py +42 -18
- package/pennyfarthing_scripts/sprint/loader.py +6 -0
- package/pennyfarthing_scripts/sprint/status.py +1 -2
- package/pennyfarthing_scripts/sprint/story_add.py +2 -2
- package/pennyfarthing_scripts/sprint/story_finish.py +3 -5
- package/pennyfarthing_scripts/sprint/story_update.py +11 -3
- package/pennyfarthing_scripts/sprint/validate_cmd.py +0 -1
- package/pennyfarthing_scripts/sprint/validator.py +120 -6
- package/pennyfarthing_scripts/sprint/work.py +1 -4
- package/pennyfarthing_scripts/sprint/yaml_io.py +10 -2
- package/pennyfarthing_scripts/story/__init__.py +14 -16
- 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/size.py +0 -1
- package/pennyfarthing_scripts/story/template.py +0 -1
- package/pennyfarthing_scripts/swebench.py +1 -2
- 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_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_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_git_utils.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_sprint_package.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_validate_cmd.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_yaml_io.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing_scripts/tests/conftest.py +1 -2
- package/pennyfarthing_scripts/tests/test_brownfield.py +10 -13
- package/pennyfarthing_scripts/tests/test_cli_modules.py +0 -4
- package/pennyfarthing_scripts/tests/test_codemarkers.py +13 -8
- package/pennyfarthing_scripts/tests/test_common.py +9 -4
- package/pennyfarthing_scripts/tests/test_epic_shard_validation.py +699 -0
- package/pennyfarthing_scripts/tests/test_git_utils.py +10 -13
- package/pennyfarthing_scripts/tests/test_healthscore.py +17 -25
- package/pennyfarthing_scripts/tests/test_jira_package.py +0 -3
- package/pennyfarthing_scripts/tests/test_package_structure.py +3 -16
- package/pennyfarthing_scripts/tests/test_patch_mode.py +7 -11
- package/pennyfarthing_scripts/tests/test_prime.py +39 -21
- package/pennyfarthing_scripts/tests/test_sprint_package.py +3 -8
- package/pennyfarthing_scripts/tests/test_sprint_validator.py +53 -5
- package/pennyfarthing_scripts/tests/test_story_add.py +3 -7
- package/pennyfarthing_scripts/tests/test_story_package.py +0 -3
- package/pennyfarthing_scripts/tests/test_story_update.py +5 -10
- package/pennyfarthing_scripts/tests/test_tiers.py +18 -17
- package/pennyfarthing_scripts/tests/test_token_counting.py +19 -13
- package/pennyfarthing_scripts/tests/test_validate_cmd.py +2 -7
- package/pennyfarthing_scripts/tests/test_workflow_check.py +0 -2
- package/pennyfarthing_scripts/tests/test_yaml_io.py +0 -3
- 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 +3 -2
- package/pennyfarthing_scripts/validate/__init__.py +21 -0
- 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/__init__.py +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__/workflow.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/validate/adapters/agent.py +239 -0
- package/pennyfarthing_scripts/validate/adapters/schema.py +30 -0
- package/pennyfarthing_scripts/validate/adapters/skill_command.py +292 -0
- package/pennyfarthing_scripts/validate/adapters/sprint.py +69 -0
- package/pennyfarthing_scripts/validate/adapters/workflow.py +320 -0
- package/pennyfarthing_scripts/validate/cli.py +141 -0
- package/pennyfarthing_scripts/welcome_hook.py +2 -3
- package/pennyfarthing_scripts/workflow.py +3 -3
- package/scripts/README.md +3 -15
- package/pennyfarthing-dist/commands/benchmark-control.md +0 -69
- package/pennyfarthing-dist/commands/benchmark.md +0 -485
- package/pennyfarthing-dist/commands/job-fair.md +0 -102
- package/pennyfarthing-dist/commands/solo.md +0 -447
- package/pennyfarthing-dist/guides/benchmarks.md +0 -62
- package/pennyfarthing-dist/scripts/hooks/__pycache__/question_reflector_check.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/scripts/test/ensure-swebench-data.sh +0 -59
- package/pennyfarthing-dist/scripts/test/ground-truth-judge.py +0 -220
- package/pennyfarthing-dist/scripts/test/swebench-judge.py +0 -374
- package/pennyfarthing-dist/scripts/test/test-cache.sh +0 -165
- package/pennyfarthing-dist/scripts/test/test-setup.sh +0 -337
- package/pennyfarthing-dist/scripts/theme/compute-theme-tiers.sh +0 -13
- package/pennyfarthing-dist/scripts/theme/compute_theme_tiers.py +0 -402
- package/pennyfarthing-dist/scripts/theme/update-theme-tiers.sh +0 -97
- package/pennyfarthing-dist/skills/finalize-run/SKILL.md +0 -261
- package/pennyfarthing-dist/skills/judge/SKILL.md +0 -644
- package/pennyfarthing-dist/skills/persona-benchmark/SKILL.md +0 -187
- package/pennyfarthing-dist/workflows/dev-story/checklist.md +0 -80
- package/pennyfarthing-dist/workflows/dev-story/instructions.xml +0 -410
- package/pennyfarthing-dist/workflows/dev-story/workflow.yaml +0 -50
- package/pennyfarthing-dist/workflows/quick-spec/steps/step-01-understand.md +0 -201
- package/pennyfarthing-dist/workflows/quick-spec/steps/step-02-investigate.md +0 -156
- package/pennyfarthing-dist/workflows/quick-spec/steps/step-03-generate.md +0 -140
- package/pennyfarthing-dist/workflows/quick-spec/steps/step-04-review.md +0 -203
- package/pennyfarthing-dist/workflows/quick-spec/tech-spec-template.md +0 -74
- package/pennyfarthing-dist/workflows/quick-spec/workflow.yaml +0 -27
- package/pennyfarthing_scripts/__pycache__/__init__.cpython-311.pyc +0 -0
- package/pennyfarthing_scripts/__pycache__/jira.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/__pycache__/pretooluse_hook.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/__pycache__/sprint.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/__pycache__/workflow.cpython-311.pyc +0 -0
- package/pennyfarthing_scripts/jira/__pycache__/compat.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/jira/__pycache__/mappings.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/jira/__pycache__/models.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/migration/__pycache__/__main__.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/migration/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/prime/__pycache__/__main__.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/tests/__pycache__/test_workflow_cli.cpython-314-pytest-9.0.2.pyc +0 -0
|
@@ -1,447 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: Run a single agent on a scenario with absolute rubric scoring
|
|
3
|
-
argument-hint: <theme:agent> --scenario <name> [--as <role>] [--runs N] [--no-judge]
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# Solo Benchmark
|
|
7
|
-
|
|
8
|
-
<purpose>
|
|
9
|
-
Run a single agent on a scenario. This is the CANONICAL agent execution path.
|
|
10
|
-
|
|
11
|
-
**Modes:**
|
|
12
|
-
- **Full (default):** Agent runs → `/judge` evaluates → `/finalize-run` saves
|
|
13
|
-
- **No-judge (`--no-judge`):** Agent runs only, returns raw response (for /duel, /relay)
|
|
14
|
-
</purpose>
|
|
15
|
-
|
|
16
|
-
<architecture>
|
|
17
|
-
```
|
|
18
|
-
/solo theme:agent --scenario X
|
|
19
|
-
│
|
|
20
|
-
├──► Execute agent via CLI
|
|
21
|
-
│ └──► Response + tokens
|
|
22
|
-
│
|
|
23
|
-
├──► /judge --mode solo (if not --no-judge)
|
|
24
|
-
│ └──► Score + verdict
|
|
25
|
-
│
|
|
26
|
-
└──► /finalize-run --type solo
|
|
27
|
-
└──► Validate + save
|
|
28
|
-
```
|
|
29
|
-
</architecture>
|
|
30
|
-
|
|
31
|
-
<usage>
|
|
32
|
-
```
|
|
33
|
-
/solo <contestant> --scenario <name>
|
|
34
|
-
/solo <contestant> --scenario <name> --runs 4
|
|
35
|
-
/solo <contestant> --scenario <name> --no-judge
|
|
36
|
-
/solo <contestant> --as <role> --scenario <name>
|
|
37
|
-
```
|
|
38
|
-
|
|
39
|
-
**Arguments:**
|
|
40
|
-
- `contestant` - `theme:agent` format (e.g., `discworld:reviewer`) OR `theme:character` with `--as`
|
|
41
|
-
- `--scenario` - Scenario from `scenarios/` directory
|
|
42
|
-
- `--as <role>` - Override role (use character's persona for different role's task)
|
|
43
|
-
- `--runs N` - Number of runs (default: 1, max: 20)
|
|
44
|
-
- `--no-judge` - Skip judging, return raw response
|
|
45
|
-
|
|
46
|
-
**Cross-Role Testing with `--as`:**
|
|
47
|
-
|
|
48
|
-
The `--as` flag enables running any persona as any role, useful for research:
|
|
49
|
-
|
|
50
|
-
```
|
|
51
|
-
/solo shakespeare:prospero --as dev --scenario django-10554
|
|
52
|
-
```
|
|
53
|
-
|
|
54
|
-
This uses Prospero's persona traits (wise orchestrator, magic metaphors) but gives him a dev task.
|
|
55
|
-
The scenario's role determines what the agent is asked to do; the character determines how they do it.
|
|
56
|
-
</usage>
|
|
57
|
-
|
|
58
|
-
<on-invoke>
|
|
59
|
-
The user invoked this command with: $ARGUMENTS
|
|
60
|
-
|
|
61
|
-
## Step 1: Parse Arguments
|
|
62
|
-
|
|
63
|
-
Extract:
|
|
64
|
-
- `contestant`: `theme:agent` spec (or `theme:character` if using `--as`)
|
|
65
|
-
- `scenario_name`: After `--scenario`
|
|
66
|
-
- `role_override`: After `--as` (optional - for cross-role testing)
|
|
67
|
-
- `runs`: Number (default: 1)
|
|
68
|
-
- `no_judge`: Boolean
|
|
69
|
-
|
|
70
|
-
Validate spec contains `:`, scenario is required, runs is 1-20.
|
|
71
|
-
|
|
72
|
-
**If `--as` is provided:**
|
|
73
|
-
- The second part of the spec is a CHARACTER name, not a role
|
|
74
|
-
- `role_override` becomes the effective role for scenario matching
|
|
75
|
-
- Character persona is extracted by name lookup across all agents in theme
|
|
76
|
-
|
|
77
|
-
## Step 2: Load Scenario
|
|
78
|
-
|
|
79
|
-
```yaml
|
|
80
|
-
Glob tool:
|
|
81
|
-
pattern: "scenarios/**/{scenario_name}.yaml"
|
|
82
|
-
```
|
|
83
|
-
|
|
84
|
-
Extract: `prompt`, `scenario_title`, `code_content` (if present)
|
|
85
|
-
|
|
86
|
-
## Step 3: Load Persona
|
|
87
|
-
|
|
88
|
-
Read: `pennyfarthing-dist/personas/themes/{theme}.yaml`
|
|
89
|
-
|
|
90
|
-
**Standard mode (no `--as`):**
|
|
91
|
-
- Look up `agents.{agent}` section
|
|
92
|
-
- Extract: `character`, `style`, `expertise`, `catchphrases`, `emoji`
|
|
93
|
-
- `effective_role` = agent name from spec
|
|
94
|
-
|
|
95
|
-
**Cross-role mode (with `--as`):**
|
|
96
|
-
- The spec contains `theme:character_name` (e.g., `shakespeare:prospero`)
|
|
97
|
-
- Search ALL agent sections for one where `character` field matches (case-insensitive, partial match OK)
|
|
98
|
-
- Extract persona traits from that agent's config
|
|
99
|
-
- `effective_role` = the `--as` value (NOT the role the character normally fills)
|
|
100
|
-
|
|
101
|
-
```python
|
|
102
|
-
# Pseudocode for cross-role lookup
|
|
103
|
-
if role_override:
|
|
104
|
-
character_query = spec.split(':')[1].lower() # e.g., "prospero"
|
|
105
|
-
for agent_name, agent_config in theme['agents'].items():
|
|
106
|
-
char_name = agent_config.get('character', '').lower()
|
|
107
|
-
if character_query in char_name or char_name.startswith(character_query):
|
|
108
|
-
persona = agent_config
|
|
109
|
-
source_role = agent_name # where character normally lives
|
|
110
|
-
break
|
|
111
|
-
effective_role = role_override # what we're asking them to do
|
|
112
|
-
else:
|
|
113
|
-
agent_name = spec.split(':')[1] # e.g., "dev"
|
|
114
|
-
persona = theme['agents'][agent_name]
|
|
115
|
-
effective_role = agent_name
|
|
116
|
-
source_role = agent_name
|
|
117
|
-
```
|
|
118
|
-
|
|
119
|
-
This enables running Prospero (normally SM) as a dev, or Gus Fring (normally orchestrator) as a reviewer.
|
|
120
|
-
|
|
121
|
-
## Step 3b: Build Agent Prompt
|
|
122
|
-
|
|
123
|
-
Use the Write tool to create the prompt file with this template:
|
|
124
|
-
|
|
125
|
-
```
|
|
126
|
-
You are {character}.
|
|
127
|
-
|
|
128
|
-
**Style:** {style}
|
|
129
|
-
**Expertise:** {expertise}
|
|
130
|
-
**Catchphrases:** {catchphrases}
|
|
131
|
-
|
|
132
|
-
---
|
|
133
|
-
|
|
134
|
-
## Challenge
|
|
135
|
-
|
|
136
|
-
{scenario_prompt}
|
|
137
|
-
|
|
138
|
-
{code_content if present}
|
|
139
|
-
|
|
140
|
-
---
|
|
141
|
-
|
|
142
|
-
Respond fully in character. Under 500 words.
|
|
143
|
-
|
|
144
|
-
**IMPORTANT:** Provide your complete response directly. Do not attempt to use tools, read files, or make function calls.
|
|
145
|
-
```
|
|
146
|
-
|
|
147
|
-
**Cross-role note:** When using `--as`, the scenario prompt comes from the `effective_role` (e.g., dev tasks),
|
|
148
|
-
but the character/style/expertise come from the character's original role config. This tests whether
|
|
149
|
-
personality traits affect task performance independent of role-specific training.
|
|
150
|
-
|
|
151
|
-
The final instruction is critical - without it, the model may output tool-call syntax even with `--tools ""`, resulting in incomplete responses.
|
|
152
|
-
|
|
153
|
-
## Step 4: Execute Agent via CLI
|
|
154
|
-
|
|
155
|
-
**RECOMMENDED: Use the shell script for reliable execution:**
|
|
156
|
-
|
|
157
|
-
```bash
|
|
158
|
-
./scripts/solo-runner.sh {theme}:{agent} {scenario} {output_dir}
|
|
159
|
-
```
|
|
160
|
-
|
|
161
|
-
The shell script handles all escaping, temp files, and JSON parsing correctly.
|
|
162
|
-
Use inline commands only for simple cases or when the script isn't available.
|
|
163
|
-
|
|
164
|
-
---
|
|
165
|
-
|
|
166
|
-
**CRITICAL: The `--tools ""` flag is MANDATORY.**
|
|
167
|
-
|
|
168
|
-
Without `--tools ""`, agents may use tools internally (Read, Write, Bash, etc.), causing:
|
|
169
|
-
1. Multi-turn conversations (num_turns > 1)
|
|
170
|
-
2. The `.result` field only captures the FINAL message (often just a summary)
|
|
171
|
-
3. Full response content is LOST - judges only see truncated output
|
|
172
|
-
4. Scores are INVALID because judges evaluate incomplete data
|
|
173
|
-
|
|
174
|
-
**Evidence:** Miles Vorkosigan benchmark (2026-01-01) scored 76.69 with tools enabled vs Leo McGarry's 91.03 with `--tools ""`. Miles' runs had num_turns: 5-7 and judges only saw summaries, not full story breakdowns.
|
|
175
|
-
|
|
176
|
-
**CRITICAL: Use PIPE syntax, NOT heredocs.**
|
|
177
|
-
|
|
178
|
-
**NEVER USE HEREDOCS** - Heredoc syntax (`<<'EOF'`, `<<EOF`, `<<'PROMPT'`, etc.) FAILS in subagents.
|
|
179
|
-
The permission system treats heredocs differently and they get auto-denied.
|
|
180
|
-
|
|
181
|
-
**ALWAYS USE PIPE SYNTAX** - This works in both main sessions and subagents:
|
|
182
|
-
- `echo "$PROMPT" | claude -p ...` - WORKS
|
|
183
|
-
- `cat file.txt | claude -p ...` - WORKS
|
|
184
|
-
- `printf '%s' "$PROMPT" | claude -p ...` - WORKS
|
|
185
|
-
- `claude -p ... <<'EOF'` - **FAILS IN SUBAGENTS - DO NOT USE**
|
|
186
|
-
|
|
187
|
-
**CRITICAL: Use FILE REDIRECTION, NOT variable capture.**
|
|
188
|
-
|
|
189
|
-
**NEVER CAPTURE OUTPUT IN VARIABLES** - Command substitution with `$(...)` causes zsh parse errors
|
|
190
|
-
when the JSON output contains parentheses or special characters:
|
|
191
|
-
- `OUTPUT=$(cat file.txt | claude -p ...)` - **FAILS with `parse error near ')'`**
|
|
192
|
-
|
|
193
|
-
**ALWAYS REDIRECT TO FILES** - This avoids shell parsing issues:
|
|
194
|
-
- `cat file.txt | claude -p ... > output.json` - WORKS
|
|
195
|
-
- Then read: `jq -r '.result' output.json` - WORKS
|
|
196
|
-
|
|
197
|
-
```bash
|
|
198
|
-
# Step 1: Capture timestamp to file (avoid variable capture issues)
|
|
199
|
-
date -u +%Y-%m-%dT%H:%M:%SZ > /tmp/timestamp_$$.txt
|
|
200
|
-
|
|
201
|
-
# Step 2: Write prompt to file using Write tool (avoids escaping issues)
|
|
202
|
-
# Use the Write tool to create: /tmp/prompt_$$.txt
|
|
203
|
-
|
|
204
|
-
# Step 3: Execute with file redirection (NOT variable capture)
|
|
205
|
-
cat /tmp/prompt_$$.txt | claude -p --output-format json --tools "" > /tmp/output_$$.json
|
|
206
|
-
|
|
207
|
-
# Step 4: Extract results from files
|
|
208
|
-
TIMESTAMP=$(cat /tmp/timestamp_$$.txt)
|
|
209
|
-
RESPONSE=$(jq -r '.result' /tmp/output_$$.json)
|
|
210
|
-
INPUT_TOKENS=$(jq -r '.usage.input_tokens // 0' /tmp/output_$$.json)
|
|
211
|
-
OUTPUT_TOKENS=$(jq -r '.usage.output_tokens // 0' /tmp/output_$$.json)
|
|
212
|
-
|
|
213
|
-
# Step 5: Cleanup
|
|
214
|
-
rm -f /tmp/timestamp_$$.txt /tmp/prompt_$$.txt /tmp/output_$$.json
|
|
215
|
-
```
|
|
216
|
-
|
|
217
|
-
**Why file redirection works:** The shell never tries to parse the JSON output.
|
|
218
|
-
It goes directly to a file, then jq reads it safely.
|
|
219
|
-
|
|
220
|
-
## Step 5: Check Mode
|
|
221
|
-
|
|
222
|
-
**If `--no-judge`:** Return raw response and metadata, STOP.
|
|
223
|
-
|
|
224
|
-
```markdown
|
|
225
|
-
## Solo Agent Response
|
|
226
|
-
|
|
227
|
-
**Contestant:** {spec} ({character})
|
|
228
|
-
**Scenario:** {scenario_name}
|
|
229
|
-
|
|
230
|
-
---
|
|
231
|
-
|
|
232
|
-
{response}
|
|
233
|
-
|
|
234
|
-
---
|
|
235
|
-
|
|
236
|
-
```json
|
|
237
|
-
{
|
|
238
|
-
"spec": "{spec}",
|
|
239
|
-
"character": "{character}",
|
|
240
|
-
"cli_timestamp": "{TIMESTAMP}",
|
|
241
|
-
"response_length": {length},
|
|
242
|
-
"input_tokens": {INPUT_TOKENS},
|
|
243
|
-
"output_tokens": {OUTPUT_TOKENS}
|
|
244
|
-
}
|
|
245
|
-
```
|
|
246
|
-
```
|
|
247
|
-
|
|
248
|
-
**If full mode:** Continue to Step 6.
|
|
249
|
-
|
|
250
|
-
## Step 6: Invoke Judge Skill
|
|
251
|
-
|
|
252
|
-
**Detect SWE-bench scenarios for deterministic evaluation:**
|
|
253
|
-
|
|
254
|
-
Check if the scenario is from SWE-bench by looking at its path or category:
|
|
255
|
-
```python
|
|
256
|
-
is_swebench = (
|
|
257
|
-
'swe-bench' in scenario_path.lower() or
|
|
258
|
-
scenario.get('category') == 'swe-bench' or
|
|
259
|
-
scenario.get('source') == 'swe-bench'
|
|
260
|
-
)
|
|
261
|
-
```
|
|
262
|
-
|
|
263
|
-
**If SWE-bench scenario:**
|
|
264
|
-
|
|
265
|
-
Use deterministic Python-based evaluation instead of LLM-as-judge:
|
|
266
|
-
|
|
267
|
-
```bash
|
|
268
|
-
# Save response to temp file for Python judge
|
|
269
|
-
echo '{"result": "{RESPONSE}"}' > /tmp/solo_response_$$.json
|
|
270
|
-
|
|
271
|
-
# Run SWE-bench judge (deterministic scoring against ground truth)
|
|
272
|
-
python3 .pennyfarthing/scripts/test/swebench-judge.py {scenario_name} /tmp/solo_response_$$.json
|
|
273
|
-
```
|
|
274
|
-
|
|
275
|
-
The Python script returns:
|
|
276
|
-
- `total`: Score out of 100
|
|
277
|
-
- `scores`: Breakdown by category (root_cause, fix_quality, completeness, persona)
|
|
278
|
-
- `details`: Specific findings and matches
|
|
279
|
-
|
|
280
|
-
**If standard scenario (non-SWE-bench):**
|
|
281
|
-
|
|
282
|
-
Use LLM-as-judge:
|
|
283
|
-
```
|
|
284
|
-
/judge --mode solo --data {
|
|
285
|
-
"spec": "{spec}",
|
|
286
|
-
"character": "{character}",
|
|
287
|
-
"challenge": "{prompt}",
|
|
288
|
-
"response": "{RESPONSE}"
|
|
289
|
-
}
|
|
290
|
-
```
|
|
291
|
-
|
|
292
|
-
Capture: `score`, `judge_timestamp`, `judge_response`, `judge_tokens`
|
|
293
|
-
|
|
294
|
-
## Step 7: Invoke Finalize-Run Skill
|
|
295
|
-
|
|
296
|
-
```
|
|
297
|
-
/finalize-run --type solo --data {
|
|
298
|
-
"timestamp": "{ISO8601}",
|
|
299
|
-
"scenario": {"name": "{scenario_name}", "title": "{title}"},
|
|
300
|
-
"agents": [{
|
|
301
|
-
"spec": "{spec}",
|
|
302
|
-
"cli_timestamp": "{TIMESTAMP}",
|
|
303
|
-
"response_text": "{RESPONSE}",
|
|
304
|
-
"input_tokens": {INPUT_TOKENS},
|
|
305
|
-
"output_tokens": {OUTPUT_TOKENS}
|
|
306
|
-
}],
|
|
307
|
-
"judge": {
|
|
308
|
-
"cli_timestamp": "{judge_timestamp}",
|
|
309
|
-
"response_text": "{judge_response}",
|
|
310
|
-
"input_tokens": {judge_input},
|
|
311
|
-
"output_tokens": {judge_output}
|
|
312
|
-
},
|
|
313
|
-
"scores": {"{spec}": {score}},
|
|
314
|
-
"output_path": "internal/results/solo/{timestamp}-{theme}-{agent}.json"
|
|
315
|
-
}
|
|
316
|
-
```
|
|
317
|
-
|
|
318
|
-
## Step 8: Display Results
|
|
319
|
-
|
|
320
|
-
```markdown
|
|
321
|
-
## Solo Evaluation
|
|
322
|
-
|
|
323
|
-
{judge verdict}
|
|
324
|
-
|
|
325
|
-
---
|
|
326
|
-
|
|
327
|
-
## Efficiency
|
|
328
|
-
|
|
329
|
-
| Metric | Value |
|
|
330
|
-
|--------|-------|
|
|
331
|
-
| Agent Tokens | {agent_total} |
|
|
332
|
-
| Judge Tokens | {judge_total} |
|
|
333
|
-
| Score | {score}/100 |
|
|
334
|
-
| Tokens/Point | {tpp} |
|
|
335
|
-
|
|
336
|
-
---
|
|
337
|
-
|
|
338
|
-
✓ Saved to {output_path}
|
|
339
|
-
```
|
|
340
|
-
|
|
341
|
-
## Step 9: Multi-Run Mode (if runs > 1)
|
|
342
|
-
|
|
343
|
-
1. Create output directory (see Step 10 for path logic)
|
|
344
|
-
2. Repeat Steps 4-7 for each run
|
|
345
|
-
3. Save each to `runs/run_{i}.json` and `runs/judge_{i}.json`
|
|
346
|
-
4. Calculate statistics and save summary.yaml (Step 10)
|
|
347
|
-
|
|
348
|
-
## Step 10: Save Summary (ALWAYS - even for n=1)
|
|
349
|
-
|
|
350
|
-
**Output path logic:**
|
|
351
|
-
|
|
352
|
-
```
|
|
353
|
-
if theme == "control":
|
|
354
|
-
base_path = "internal/results/baselines/{scenario}/{effective_role}/"
|
|
355
|
-
elif role_override: # cross-role mode
|
|
356
|
-
# Include character name and effective role for clarity
|
|
357
|
-
base_path = "internal/results/benchmarks/{scenario}/{theme}-{character}-as-{effective_role}/"
|
|
358
|
-
else:
|
|
359
|
-
base_path = "internal/results/benchmarks/{scenario}/{theme}-{effective_role}/"
|
|
360
|
-
```
|
|
361
|
-
|
|
362
|
-
**Cross-role example:** `/solo shakespeare:prospero --as dev --scenario django-10554`
|
|
363
|
-
→ saves to `internal/results/benchmarks/django-10554/shakespeare-prospero-as-dev/`
|
|
364
|
-
|
|
365
|
-
**For ALL runs (including n=1):**
|
|
366
|
-
|
|
367
|
-
1. Create directory structure:
|
|
368
|
-
```bash
|
|
369
|
-
mkdir -p "{base_path}/runs"
|
|
370
|
-
```
|
|
371
|
-
|
|
372
|
-
2. Save run files:
|
|
373
|
-
- `runs/run_{i}.json` - Agent response + tokens
|
|
374
|
-
- `runs/judge_{i}.json` - Judge evaluation
|
|
375
|
-
|
|
376
|
-
3. Calculate statistics:
|
|
377
|
-
```python
|
|
378
|
-
scores = [run.score for run in runs]
|
|
379
|
-
mean = sum(scores) / len(scores)
|
|
380
|
-
std_dev = sqrt(sum((s - mean)^2 for s in scores) / len(scores))
|
|
381
|
-
```
|
|
382
|
-
|
|
383
|
-
4. **ALWAYS save summary.yaml:**
|
|
384
|
-
```yaml
|
|
385
|
-
# {theme}:{character} on {scenario} (as {effective_role})
|
|
386
|
-
# Generated: {ISO8601 timestamp}
|
|
387
|
-
|
|
388
|
-
agent:
|
|
389
|
-
theme: {theme}
|
|
390
|
-
character: {character_name}
|
|
391
|
-
effective_role: {effective_role} # role being performed
|
|
392
|
-
source_role: {source_role} # role where character normally lives
|
|
393
|
-
spec: {theme}:{character} # original spec
|
|
394
|
-
cross_role: {true if role_override else false}
|
|
395
|
-
|
|
396
|
-
scenario:
|
|
397
|
-
name: {scenario_name}
|
|
398
|
-
category: {category}
|
|
399
|
-
difficulty: {difficulty}
|
|
400
|
-
|
|
401
|
-
statistics:
|
|
402
|
-
n: {run_count}
|
|
403
|
-
mean: {mean:.2f}
|
|
404
|
-
std_dev: {std_dev:.2f}
|
|
405
|
-
min: {min_score}
|
|
406
|
-
max: {max_score}
|
|
407
|
-
scores: [{score1}, {score2}, ...]
|
|
408
|
-
|
|
409
|
-
efficiency:
|
|
410
|
-
avg_input_tokens: {avg_in}
|
|
411
|
-
avg_output_tokens: {avg_out}
|
|
412
|
-
tokens_per_point: {tpp:.2f}
|
|
413
|
-
|
|
414
|
-
metadata:
|
|
415
|
-
created_at: {ISO8601 timestamp}
|
|
416
|
-
pennyfarthing_version: {version from package.json} # REQUIRED
|
|
417
|
-
model: sonnet
|
|
418
|
-
|
|
419
|
-
# Include baseline comparison if baseline exists and theme != control
|
|
420
|
-
baseline_comparison:
|
|
421
|
-
control_mean: {baseline_mean}
|
|
422
|
-
control_stddev: {baseline_std}
|
|
423
|
-
delta: {mean - baseline_mean:+.2f}
|
|
424
|
-
|
|
425
|
-
runs:
|
|
426
|
-
- run_1.json
|
|
427
|
-
- run_2.json
|
|
428
|
-
# ...
|
|
429
|
-
```
|
|
430
|
-
|
|
431
|
-
5. Display:
|
|
432
|
-
```
|
|
433
|
-
✓ Saved {n} run(s) to {base_path}
|
|
434
|
-
✓ Summary: {base_path}/summary.yaml
|
|
435
|
-
```
|
|
436
|
-
|
|
437
|
-
</on-invoke>
|
|
438
|
-
|
|
439
|
-
<reference>
|
|
440
|
-
- **Judge Skill:** `.claude/project/skills/judge/SKILL.md`
|
|
441
|
-
- **Finalize-Run Skill:** `.claude/project/skills/finalize-run/SKILL.md`
|
|
442
|
-
- **Themes:** `pennyfarthing-dist/personas/themes/*.yaml`
|
|
443
|
-
- **Scenarios:** `scenarios/**/*.yaml`
|
|
444
|
-
- **Baselines:** `internal/results/baselines/{scenario}/{role}/` (control theme)
|
|
445
|
-
- **Benchmarks:** `internal/results/benchmarks/{scenario}/{theme}-{role}/` (all other themes)
|
|
446
|
-
- **Results README:** `internal/results/README.md`
|
|
447
|
-
</reference>
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
# Benchmarks (JobFair)
|
|
2
|
-
|
|
3
|
-
<info>
|
|
4
|
-
Agent persona evaluation system. Measures which personality traits (OCEAN model) correlate with better performance on specific agent tasks. Codename: **JobFair**.
|
|
5
|
-
</info>
|
|
6
|
-
|
|
7
|
-
## System Overview
|
|
8
|
-
|
|
9
|
-
```
|
|
10
|
-
Scenarios (role-specific prompts with known baselines)
|
|
11
|
-
→ Job-Fair Runner (runs agents through scenarios with themed personas)
|
|
12
|
-
→ Summary Results (theme × role scores)
|
|
13
|
-
→ Job-Fair Aggregator (mean, std_dev, top performers, dimension grouping)
|
|
14
|
-
→ Benchmark Integration (OCEAN trait correlation)
|
|
15
|
-
→ Cyclist API (dashboard, filtering, reports)
|
|
16
|
-
```
|
|
17
|
-
|
|
18
|
-
## Scoring Rubric
|
|
19
|
-
|
|
20
|
-
| Category | Metrics |
|
|
21
|
-
|----------|---------|
|
|
22
|
-
| **Detection** | baseline_found, total_findings, bonus_discoveries, false_positives |
|
|
23
|
-
| **Depth** (1-5) | root_cause_analysis, fix_specificity, impact_assessment, cross_references |
|
|
24
|
-
| **Quality** (1-5) | severity_accuracy, reasoning_quality, contextual_awareness, actionability |
|
|
25
|
-
| **Organization** (1-5) | structure, prioritization, completeness |
|
|
26
|
-
| **Persona** (1-5) | character_consistency, persona_value_add, engagement |
|
|
27
|
-
|
|
28
|
-
**Composite:** `thoroughness` (total/baseline) + `quality` → `overall` (50/50 blend)
|
|
29
|
-
|
|
30
|
-
## Scenarios
|
|
31
|
-
|
|
32
|
-
Located in `scenarios/` by agent role: `dev/`, `tea/`, `code-review/`, `sm/`, `architecture/`, `debugging/`.
|
|
33
|
-
|
|
34
|
-
Each scenario has: name, title, category, difficulty (easy/medium/hard/extreme), prompt. Difficulty calibrated from 10-run control baselines.
|
|
35
|
-
|
|
36
|
-
## Key Files
|
|
37
|
-
|
|
38
|
-
| File | Purpose |
|
|
39
|
-
|------|---------|
|
|
40
|
-
| `packages/cyclist/src/api/benchmark.ts` | REST API: `/api/benchmark/dimensions`, `/aggregate`, `/report` |
|
|
41
|
-
| `packages/core/src/scripts/job-fair-aggregator.ts` | Aggregates results by role, tracks trends |
|
|
42
|
-
| `packages/core/src/scripts/benchmark-integration.ts` | OCEAN × performance correlation |
|
|
43
|
-
| `benchmarks/enhanced-scoring-rubric.md` | Full scoring methodology |
|
|
44
|
-
| `benchmarks/test-cases/` | Benchmark test scenarios |
|
|
45
|
-
| `scenarios/` | Role-specific scenario definitions |
|
|
46
|
-
|
|
47
|
-
## API Endpoints
|
|
48
|
-
|
|
49
|
-
| Endpoint | Purpose |
|
|
50
|
-
|----------|---------|
|
|
51
|
-
| `GET /api/benchmark/dimensions` | List filterable dimensions (tone, era, genre, energy) |
|
|
52
|
-
| `GET /api/benchmark/aggregate` | Aggregated stats with optional dimension filter |
|
|
53
|
-
| `GET /api/benchmark/dimensions/:dim/report` | Differential report for a dimension |
|
|
54
|
-
|
|
55
|
-
## Commands
|
|
56
|
-
|
|
57
|
-
| Command | Purpose |
|
|
58
|
-
|---------|---------|
|
|
59
|
-
| `/benchmark` | Compare agent against stored baseline |
|
|
60
|
-
| `/benchmark-control` | Create control baseline for a scenario |
|
|
61
|
-
| `/solo` | Run single agent on scenario with absolute scoring |
|
|
62
|
-
| `/job-fair` | Discover which characters excel at each role |
|
package/pennyfarthing-dist/scripts/hooks/__pycache__/question_reflector_check.cpython-314.pyc
DELETED
|
Binary file
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env bash
|
|
2
|
-
# ensure-swebench-data.sh - Downloads SWE-bench data if not present
|
|
3
|
-
#
|
|
4
|
-
# Usage: ensure-swebench-data.sh [--force]
|
|
5
|
-
#
|
|
6
|
-
# Downloads SWE-bench Verified dataset from HuggingFace to /tmp/swebench_all.json
|
|
7
|
-
# This is a dependency for:
|
|
8
|
-
# - swebench-judge.py
|
|
9
|
-
# - ground-truth-judge.py
|
|
10
|
-
#
|
|
11
|
-
# Options:
|
|
12
|
-
# --force Re-download even if file exists
|
|
13
|
-
|
|
14
|
-
set -euo pipefail
|
|
15
|
-
|
|
16
|
-
CACHE_PATH="/tmp/swebench_all.json"
|
|
17
|
-
DATASET_URL="https://huggingface.co/datasets/princeton-nlp/SWE-bench_Verified/resolve/main/data/test.jsonl"
|
|
18
|
-
|
|
19
|
-
force=false
|
|
20
|
-
if [[ "${1:-}" == "--force" ]]; then
|
|
21
|
-
force=true
|
|
22
|
-
fi
|
|
23
|
-
|
|
24
|
-
# Check if already present
|
|
25
|
-
if [[ -f "$CACHE_PATH" ]] && [[ "$force" == "false" ]]; then
|
|
26
|
-
echo "SWE-bench data already cached at $CACHE_PATH"
|
|
27
|
-
exit 0
|
|
28
|
-
fi
|
|
29
|
-
|
|
30
|
-
echo "Downloading SWE-bench Verified dataset..."
|
|
31
|
-
|
|
32
|
-
# Download JSONL and convert to JSON array
|
|
33
|
-
if command -v curl &>/dev/null; then
|
|
34
|
-
curl -sL "$DATASET_URL" | python3 -c "
|
|
35
|
-
import json
|
|
36
|
-
import sys
|
|
37
|
-
lines = [json.loads(line) for line in sys.stdin if line.strip()]
|
|
38
|
-
print(json.dumps(lines, indent=2))
|
|
39
|
-
" > "$CACHE_PATH"
|
|
40
|
-
elif command -v wget &>/dev/null; then
|
|
41
|
-
wget -qO- "$DATASET_URL" | python3 -c "
|
|
42
|
-
import json
|
|
43
|
-
import sys
|
|
44
|
-
lines = [json.loads(line) for line in sys.stdin if line.strip()]
|
|
45
|
-
print(json.dumps(lines, indent=2))
|
|
46
|
-
" > "$CACHE_PATH"
|
|
47
|
-
else
|
|
48
|
-
echo "Error: curl or wget required to download SWE-bench data"
|
|
49
|
-
exit 1
|
|
50
|
-
fi
|
|
51
|
-
|
|
52
|
-
# Verify download
|
|
53
|
-
if [[ -f "$CACHE_PATH" ]]; then
|
|
54
|
-
count=$(python3 -c "import json; print(len(json.load(open('$CACHE_PATH'))))")
|
|
55
|
-
echo "Downloaded $count SWE-bench scenarios to $CACHE_PATH"
|
|
56
|
-
else
|
|
57
|
-
echo "Error: Failed to download SWE-bench data"
|
|
58
|
-
exit 1
|
|
59
|
-
fi
|