devlyn-cli 3.2.1 → 3.3.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/AGENTS.md +2 -2
- package/CLAUDE.md +2 -2
- package/README.md +12 -102
- package/bin/devlyn.js +13 -225
- package/bin/instruction-templates.json +6 -0
- package/config/skills/_shared/adapters/grok.md +1 -2
- package/config/skills/_shared/archive_run.py +15 -3
- package/config/skills/_shared/judge-role-evidence.py +21 -1
- package/config/skills/_shared/runtime-principles.md +1 -1
- package/config/skills/_shared/spec-verify-check.py +0 -653
- package/config/skills/_shared/state-phase-write.py +351 -25
- package/config/skills/_shared/task-complete.py +635 -143
- package/config/skills/_shared/terminal-claim-check.py +229 -4
- package/config/skills/_shared/verify-merge-findings.py +93 -2
- package/config/skills/devlyn:ideate/SKILL.md +3 -4
- package/config/skills/devlyn:ideate/references/elicitation.md +2 -35
- package/config/skills/devlyn:ideate/references/from-spec-mode.md +3 -18
- package/config/skills/devlyn:ideate/references/project-mode.md +1 -16
- package/config/skills/devlyn:ideate/references/spec-template.md +0 -2
- package/config/skills/devlyn:queue/SKILL.md +6 -4
- package/config/skills/devlyn:resolve/SKILL.md +16 -25
- package/config/skills/devlyn:resolve/references/free-form-mode.md +0 -14
- package/config/skills/devlyn:resolve/references/outer-loop.md +1 -1
- package/config/skills/devlyn:resolve/references/phases/build-gate.md +1 -1
- package/config/skills/devlyn:resolve/references/phases/cleanup.md +3 -3
- package/config/skills/devlyn:resolve/references/phases/implement.md +1 -1
- package/config/skills/devlyn:resolve/references/phases/probe-derive.md +1 -16
- package/config/skills/devlyn:resolve/references/phases/verify.md +4 -9
- package/config/skills/devlyn:resolve/references/state-schema.md +9 -7
- package/config/skills/devlyn:resolve/references/task-completion.md +46 -37
- package/{config/skills → optional-skills}/code-health-standards/SKILL.md +4 -13
- package/{config/skills → optional-skills}/code-review-standards/SKILL.md +4 -12
- package/{config/skills → optional-skills}/root-cause-analysis/SKILL.md +4 -12
- package/{config/skills → optional-skills}/ui-implementation-standards/SKILL.md +4 -14
- package/package.json +1 -57
- package/benchmark/auto-resolve/BENCHMARK-DESIGN.md +0 -289
- package/benchmark/auto-resolve/BENCHMARK-RESULTS.md +0 -341
- package/benchmark/auto-resolve/README.md +0 -696
- package/benchmark/auto-resolve/RUBRIC.md +0 -177
- package/benchmark/auto-resolve/fixtures/F1-cli-trivial-flag/NOTES.md +0 -34
- package/benchmark/auto-resolve/fixtures/F1-cli-trivial-flag/expected.json +0 -68
- package/benchmark/auto-resolve/fixtures/F1-cli-trivial-flag/metadata.json +0 -10
- package/benchmark/auto-resolve/fixtures/F1-cli-trivial-flag/setup.sh +0 -4
- package/benchmark/auto-resolve/fixtures/F1-cli-trivial-flag/spec.md +0 -44
- package/benchmark/auto-resolve/fixtures/F1-cli-trivial-flag/task.ko.txt +0 -8
- package/benchmark/auto-resolve/fixtures/F1-cli-trivial-flag/task.txt +0 -8
- package/benchmark/auto-resolve/fixtures/F10-persist-write-collision/NOTES.md +0 -68
- package/benchmark/auto-resolve/fixtures/F10-persist-write-collision/expected.json +0 -60
- package/benchmark/auto-resolve/fixtures/F10-persist-write-collision/metadata.json +0 -10
- package/benchmark/auto-resolve/fixtures/F10-persist-write-collision/setup.sh +0 -17
- package/benchmark/auto-resolve/fixtures/F10-persist-write-collision/spec.md +0 -51
- package/benchmark/auto-resolve/fixtures/F10-persist-write-collision/task.txt +0 -9
- package/benchmark/auto-resolve/fixtures/F10-persist-write-collision/verifiers/invalid.js +0 -29
- package/benchmark/auto-resolve/fixtures/F10-persist-write-collision/verifiers/parallel.js +0 -50
- package/benchmark/auto-resolve/fixtures/F11-batch-import-all-or-nothing/NOTES.md +0 -75
- package/benchmark/auto-resolve/fixtures/F11-batch-import-all-or-nothing/expected.json +0 -52
- package/benchmark/auto-resolve/fixtures/F11-batch-import-all-or-nothing/metadata.json +0 -10
- package/benchmark/auto-resolve/fixtures/F11-batch-import-all-or-nothing/setup.sh +0 -171
- package/benchmark/auto-resolve/fixtures/F11-batch-import-all-or-nothing/spec.md +0 -50
- package/benchmark/auto-resolve/fixtures/F11-batch-import-all-or-nothing/task.txt +0 -9
- package/benchmark/auto-resolve/fixtures/F12-webhook-raw-body-signature/NOTES.md +0 -89
- package/benchmark/auto-resolve/fixtures/F12-webhook-raw-body-signature/expected.json +0 -74
- package/benchmark/auto-resolve/fixtures/F12-webhook-raw-body-signature/metadata.json +0 -10
- package/benchmark/auto-resolve/fixtures/F12-webhook-raw-body-signature/setup.sh +0 -251
- package/benchmark/auto-resolve/fixtures/F12-webhook-raw-body-signature/spec.md +0 -57
- package/benchmark/auto-resolve/fixtures/F12-webhook-raw-body-signature/task.txt +0 -13
- package/benchmark/auto-resolve/fixtures/F12-webhook-raw-body-signature/verifiers/replay-malformed-body.js +0 -64
- package/benchmark/auto-resolve/fixtures/F15-frozen-diff-race-review/NOTES.md +0 -104
- package/benchmark/auto-resolve/fixtures/F15-frozen-diff-race-review/expected.json +0 -46
- package/benchmark/auto-resolve/fixtures/F15-frozen-diff-race-review/metadata.json +0 -10
- package/benchmark/auto-resolve/fixtures/F15-frozen-diff-race-review/setup.sh +0 -336
- package/benchmark/auto-resolve/fixtures/F15-frozen-diff-race-review/spec.md +0 -51
- package/benchmark/auto-resolve/fixtures/F15-frozen-diff-race-review/task.txt +0 -9
- package/benchmark/auto-resolve/fixtures/F16-cli-quote-tax-rules/NOTES.md +0 -38
- package/benchmark/auto-resolve/fixtures/F16-cli-quote-tax-rules/expected.json +0 -64
- package/benchmark/auto-resolve/fixtures/F16-cli-quote-tax-rules/metadata.json +0 -10
- package/benchmark/auto-resolve/fixtures/F16-cli-quote-tax-rules/setup.sh +0 -32
- package/benchmark/auto-resolve/fixtures/F16-cli-quote-tax-rules/spec.md +0 -63
- package/benchmark/auto-resolve/fixtures/F16-cli-quote-tax-rules/task.txt +0 -7
- package/benchmark/auto-resolve/fixtures/F16-cli-quote-tax-rules/verifiers/exact-success.js +0 -54
- package/benchmark/auto-resolve/fixtures/F16-cli-quote-tax-rules/verifiers/no-hardcoded-pricing.js +0 -47
- package/benchmark/auto-resolve/fixtures/F16-cli-quote-tax-rules/verifiers/stock-error.js +0 -45
- package/benchmark/auto-resolve/fixtures/F2-cli-medium-subcommand/NOTES.md +0 -57
- package/benchmark/auto-resolve/fixtures/F2-cli-medium-subcommand/expected-pair-plan-registry.json +0 -170
- package/benchmark/auto-resolve/fixtures/F2-cli-medium-subcommand/expected.json +0 -84
- package/benchmark/auto-resolve/fixtures/F2-cli-medium-subcommand/metadata.json +0 -21
- package/benchmark/auto-resolve/fixtures/F2-cli-medium-subcommand/pair-plan.sample-fail.json +0 -214
- package/benchmark/auto-resolve/fixtures/F2-cli-medium-subcommand/pair-plan.sample-pass.json +0 -223
- package/benchmark/auto-resolve/fixtures/F2-cli-medium-subcommand/setup.sh +0 -5
- package/benchmark/auto-resolve/fixtures/F2-cli-medium-subcommand/spec.md +0 -55
- package/benchmark/auto-resolve/fixtures/F2-cli-medium-subcommand/task.txt +0 -14
- package/benchmark/auto-resolve/fixtures/F21-cli-scheduler-priority/NOTES.md +0 -39
- package/benchmark/auto-resolve/fixtures/F21-cli-scheduler-priority/expected.json +0 -62
- package/benchmark/auto-resolve/fixtures/F21-cli-scheduler-priority/metadata.json +0 -10
- package/benchmark/auto-resolve/fixtures/F21-cli-scheduler-priority/setup.sh +0 -2
- package/benchmark/auto-resolve/fixtures/F21-cli-scheduler-priority/spec.md +0 -67
- package/benchmark/auto-resolve/fixtures/F21-cli-scheduler-priority/task.txt +0 -7
- package/benchmark/auto-resolve/fixtures/F21-cli-scheduler-priority/verifiers/error-order.js +0 -55
- package/benchmark/auto-resolve/fixtures/F21-cli-scheduler-priority/verifiers/priority-blocked.js +0 -48
- package/benchmark/auto-resolve/fixtures/F22-cli-ledger-close/NOTES.md +0 -35
- package/benchmark/auto-resolve/fixtures/F22-cli-ledger-close/expected.json +0 -56
- package/benchmark/auto-resolve/fixtures/F22-cli-ledger-close/metadata.json +0 -10
- package/benchmark/auto-resolve/fixtures/F22-cli-ledger-close/setup.sh +0 -2
- package/benchmark/auto-resolve/fixtures/F22-cli-ledger-close/spec.md +0 -64
- package/benchmark/auto-resolve/fixtures/F22-cli-ledger-close/task.txt +0 -7
- package/benchmark/auto-resolve/fixtures/F22-cli-ledger-close/verifiers/conflicting-duplicate.js +0 -34
- package/benchmark/auto-resolve/fixtures/F22-cli-ledger-close/verifiers/idempotent-close.js +0 -41
- package/benchmark/auto-resolve/fixtures/F23-cli-fulfillment-wave/NOTES.md +0 -39
- package/benchmark/auto-resolve/fixtures/F23-cli-fulfillment-wave/expected.json +0 -56
- package/benchmark/auto-resolve/fixtures/F23-cli-fulfillment-wave/metadata.json +0 -10
- package/benchmark/auto-resolve/fixtures/F23-cli-fulfillment-wave/setup.sh +0 -2
- package/benchmark/auto-resolve/fixtures/F23-cli-fulfillment-wave/spec.md +0 -76
- package/benchmark/auto-resolve/fixtures/F23-cli-fulfillment-wave/task.txt +0 -7
- package/benchmark/auto-resolve/fixtures/F23-cli-fulfillment-wave/verifiers/priority-rollback.js +0 -64
- package/benchmark/auto-resolve/fixtures/F23-cli-fulfillment-wave/verifiers/single-warehouse-fefo.js +0 -66
- package/benchmark/auto-resolve/fixtures/F25-cli-cart-promotion-rules/NOTES.md +0 -40
- package/benchmark/auto-resolve/fixtures/F25-cli-cart-promotion-rules/expected.json +0 -66
- package/benchmark/auto-resolve/fixtures/F25-cli-cart-promotion-rules/metadata.json +0 -10
- package/benchmark/auto-resolve/fixtures/F25-cli-cart-promotion-rules/setup.sh +0 -36
- package/benchmark/auto-resolve/fixtures/F25-cli-cart-promotion-rules/spec.md +0 -71
- package/benchmark/auto-resolve/fixtures/F25-cli-cart-promotion-rules/task.txt +0 -7
- package/benchmark/auto-resolve/fixtures/F25-cli-cart-promotion-rules/verifiers/catalog-source.js +0 -57
- package/benchmark/auto-resolve/fixtures/F25-cli-cart-promotion-rules/verifiers/exact-success.js +0 -63
- package/benchmark/auto-resolve/fixtures/F25-cli-cart-promotion-rules/verifiers/stock-error.js +0 -34
- package/benchmark/auto-resolve/fixtures/F26-cli-payout-ledger-rules/NOTES.md +0 -31
- package/benchmark/auto-resolve/fixtures/F26-cli-payout-ledger-rules/expected.json +0 -68
- package/benchmark/auto-resolve/fixtures/F26-cli-payout-ledger-rules/metadata.json +0 -10
- package/benchmark/auto-resolve/fixtures/F26-cli-payout-ledger-rules/setup.sh +0 -17
- package/benchmark/auto-resolve/fixtures/F26-cli-payout-ledger-rules/spec.md +0 -68
- package/benchmark/auto-resolve/fixtures/F26-cli-payout-ledger-rules/task.txt +0 -7
- package/benchmark/auto-resolve/fixtures/F26-cli-payout-ledger-rules/verifiers/conflicting-duplicate.js +0 -29
- package/benchmark/auto-resolve/fixtures/F26-cli-payout-ledger-rules/verifiers/exact-payout.js +0 -58
- package/benchmark/auto-resolve/fixtures/F26-cli-payout-ledger-rules/verifiers/rules-source.js +0 -56
- package/benchmark/auto-resolve/fixtures/F3-backend-contract-risk/NOTES.md +0 -35
- package/benchmark/auto-resolve/fixtures/F3-backend-contract-risk/expected-pair-plan-registry.json +0 -162
- package/benchmark/auto-resolve/fixtures/F3-backend-contract-risk/expected.json +0 -67
- package/benchmark/auto-resolve/fixtures/F3-backend-contract-risk/metadata.json +0 -19
- package/benchmark/auto-resolve/fixtures/F3-backend-contract-risk/setup.sh +0 -4
- package/benchmark/auto-resolve/fixtures/F3-backend-contract-risk/spec.md +0 -55
- package/benchmark/auto-resolve/fixtures/F3-backend-contract-risk/task.txt +0 -9
- package/benchmark/auto-resolve/fixtures/F31-cli-seat-rebalance/NOTES.md +0 -34
- package/benchmark/auto-resolve/fixtures/F31-cli-seat-rebalance/expected.json +0 -57
- package/benchmark/auto-resolve/fixtures/F31-cli-seat-rebalance/metadata.json +0 -10
- package/benchmark/auto-resolve/fixtures/F31-cli-seat-rebalance/setup.sh +0 -2
- package/benchmark/auto-resolve/fixtures/F31-cli-seat-rebalance/spec.md +0 -67
- package/benchmark/auto-resolve/fixtures/F31-cli-seat-rebalance/task.txt +0 -7
- package/benchmark/auto-resolve/fixtures/F31-cli-seat-rebalance/verifiers/duplicate-event-error.js +0 -35
- package/benchmark/auto-resolve/fixtures/F31-cli-seat-rebalance/verifiers/priority-transfer-rollback.js +0 -53
- package/benchmark/auto-resolve/fixtures/F32-cli-subscription-renewal/NOTES.md +0 -38
- package/benchmark/auto-resolve/fixtures/F32-cli-subscription-renewal/expected.json +0 -57
- package/benchmark/auto-resolve/fixtures/F32-cli-subscription-renewal/metadata.json +0 -10
- package/benchmark/auto-resolve/fixtures/F32-cli-subscription-renewal/setup.sh +0 -2
- package/benchmark/auto-resolve/fixtures/F32-cli-subscription-renewal/spec.md +0 -70
- package/benchmark/auto-resolve/fixtures/F32-cli-subscription-renewal/task.txt +0 -3
- package/benchmark/auto-resolve/fixtures/F32-cli-subscription-renewal/verifiers/duplicate-renewal-error.js +0 -42
- package/benchmark/auto-resolve/fixtures/F32-cli-subscription-renewal/verifiers/priority-credit-rollback.js +0 -70
- package/benchmark/auto-resolve/fixtures/F4-web-browser-design/NOTES.md +0 -47
- package/benchmark/auto-resolve/fixtures/F4-web-browser-design/expected.json +0 -57
- package/benchmark/auto-resolve/fixtures/F4-web-browser-design/metadata.json +0 -10
- package/benchmark/auto-resolve/fixtures/F4-web-browser-design/setup.sh +0 -6
- package/benchmark/auto-resolve/fixtures/F4-web-browser-design/spec.md +0 -48
- package/benchmark/auto-resolve/fixtures/F4-web-browser-design/task.txt +0 -9
- package/benchmark/auto-resolve/fixtures/F5-fix-loop-red-green/NOTES.md +0 -45
- package/benchmark/auto-resolve/fixtures/F5-fix-loop-red-green/expected.json +0 -65
- package/benchmark/auto-resolve/fixtures/F5-fix-loop-red-green/metadata.json +0 -10
- package/benchmark/auto-resolve/fixtures/F5-fix-loop-red-green/setup.sh +0 -55
- package/benchmark/auto-resolve/fixtures/F5-fix-loop-red-green/spec.md +0 -48
- package/benchmark/auto-resolve/fixtures/F5-fix-loop-red-green/task.txt +0 -7
- package/benchmark/auto-resolve/fixtures/F6-dep-audit-native-module/NOTES.md +0 -43
- package/benchmark/auto-resolve/fixtures/F6-dep-audit-native-module/expected.json +0 -77
- package/benchmark/auto-resolve/fixtures/F6-dep-audit-native-module/metadata.json +0 -10
- package/benchmark/auto-resolve/fixtures/F6-dep-audit-native-module/setup.sh +0 -4
- package/benchmark/auto-resolve/fixtures/F6-dep-audit-native-module/spec.md +0 -48
- package/benchmark/auto-resolve/fixtures/F6-dep-audit-native-module/task.txt +0 -10
- package/benchmark/auto-resolve/fixtures/F7-out-of-scope-trap/NOTES.md +0 -57
- package/benchmark/auto-resolve/fixtures/F7-out-of-scope-trap/expected.json +0 -76
- package/benchmark/auto-resolve/fixtures/F7-out-of-scope-trap/metadata.json +0 -10
- package/benchmark/auto-resolve/fixtures/F7-out-of-scope-trap/setup.sh +0 -36
- package/benchmark/auto-resolve/fixtures/F7-out-of-scope-trap/spec.md +0 -45
- package/benchmark/auto-resolve/fixtures/F7-out-of-scope-trap/task.txt +0 -7
- package/benchmark/auto-resolve/fixtures/F8-known-limit-ambiguous/NOTES.md +0 -53
- package/benchmark/auto-resolve/fixtures/F8-known-limit-ambiguous/expected.json +0 -63
- package/benchmark/auto-resolve/fixtures/F8-known-limit-ambiguous/metadata.json +0 -10
- package/benchmark/auto-resolve/fixtures/F8-known-limit-ambiguous/setup.sh +0 -4
- package/benchmark/auto-resolve/fixtures/F8-known-limit-ambiguous/spec.md +0 -48
- package/benchmark/auto-resolve/fixtures/F8-known-limit-ambiguous/task.txt +0 -1
- package/benchmark/auto-resolve/fixtures/F9-e2e-ideate-to-resolve/NOTES.md +0 -105
- package/benchmark/auto-resolve/fixtures/F9-e2e-ideate-to-resolve/expected.json +0 -74
- package/benchmark/auto-resolve/fixtures/F9-e2e-ideate-to-resolve/metadata.json +0 -10
- package/benchmark/auto-resolve/fixtures/F9-e2e-ideate-to-resolve/setup.sh +0 -28
- package/benchmark/auto-resolve/fixtures/F9-e2e-ideate-to-resolve/spec.md +0 -59
- package/benchmark/auto-resolve/fixtures/F9-e2e-ideate-to-resolve/task.txt +0 -5
- package/benchmark/auto-resolve/fixtures/SCHEMA.md +0 -188
- package/benchmark/auto-resolve/fixtures/retired/F27-cli-subscription-proration/NOTES.md +0 -37
- package/benchmark/auto-resolve/fixtures/retired/F27-cli-subscription-proration/RETIRED.md +0 -13
- package/benchmark/auto-resolve/fixtures/retired/F27-cli-subscription-proration/expected.json +0 -56
- package/benchmark/auto-resolve/fixtures/retired/F27-cli-subscription-proration/metadata.json +0 -10
- package/benchmark/auto-resolve/fixtures/retired/F27-cli-subscription-proration/setup.sh +0 -18
- package/benchmark/auto-resolve/fixtures/retired/F27-cli-subscription-proration/spec.md +0 -69
- package/benchmark/auto-resolve/fixtures/retired/F27-cli-subscription-proration/task.txt +0 -7
- package/benchmark/auto-resolve/fixtures/retired/F27-cli-subscription-proration/verifiers/exact-proration.js +0 -48
- package/benchmark/auto-resolve/fixtures/retired/F27-cli-subscription-proration/verifiers/rules-source-and-conflict.js +0 -79
- package/benchmark/auto-resolve/fixtures/retired/F28-cli-return-authorization/NOTES.md +0 -54
- package/benchmark/auto-resolve/fixtures/retired/F28-cli-return-authorization/RETIRED.md +0 -7
- package/benchmark/auto-resolve/fixtures/retired/F28-cli-return-authorization/expected.json +0 -67
- package/benchmark/auto-resolve/fixtures/retired/F28-cli-return-authorization/metadata.json +0 -10
- package/benchmark/auto-resolve/fixtures/retired/F28-cli-return-authorization/setup.sh +0 -2
- package/benchmark/auto-resolve/fixtures/retired/F28-cli-return-authorization/spec.md +0 -67
- package/benchmark/auto-resolve/fixtures/retired/F28-cli-return-authorization/task.txt +0 -5
- package/benchmark/auto-resolve/fixtures/retired/F28-cli-return-authorization/verifiers/policy-precedence.js +0 -72
- package/benchmark/auto-resolve/fixtures/retired/F28-cli-return-authorization/verifiers/validation-and-immutability.js +0 -43
- package/benchmark/auto-resolve/fixtures/retired/F28-cli-return-authorization/verifiers/validation-boundary.js +0 -116
- package/benchmark/auto-resolve/fixtures/retired/F30-cli-credit-hold-settlement/NOTES.md +0 -35
- package/benchmark/auto-resolve/fixtures/retired/F30-cli-credit-hold-settlement/RETIRED.md +0 -12
- package/benchmark/auto-resolve/fixtures/retired/F30-cli-credit-hold-settlement/expected.json +0 -58
- package/benchmark/auto-resolve/fixtures/retired/F30-cli-credit-hold-settlement/metadata.json +0 -10
- package/benchmark/auto-resolve/fixtures/retired/F30-cli-credit-hold-settlement/setup.sh +0 -2
- package/benchmark/auto-resolve/fixtures/retired/F30-cli-credit-hold-settlement/spec.md +0 -73
- package/benchmark/auto-resolve/fixtures/retired/F30-cli-credit-hold-settlement/task.txt +0 -17
- package/benchmark/auto-resolve/fixtures/retired/F30-cli-credit-hold-settlement/verifiers/mixed-idempotent-settlement.js +0 -53
- package/benchmark/auto-resolve/fixtures/retired/F30-cli-credit-hold-settlement/verifiers/rejection-boundaries.js +0 -74
- package/benchmark/auto-resolve/fixtures/retired/F34-cli-settle-inflight/NOTES.md +0 -28
- package/benchmark/auto-resolve/fixtures/retired/F34-cli-settle-inflight/RETIRED.md +0 -15
- package/benchmark/auto-resolve/fixtures/retired/F34-cli-settle-inflight/expected.json +0 -57
- package/benchmark/auto-resolve/fixtures/retired/F34-cli-settle-inflight/metadata.json +0 -10
- package/benchmark/auto-resolve/fixtures/retired/F34-cli-settle-inflight/setup.sh +0 -50
- package/benchmark/auto-resolve/fixtures/retired/F34-cli-settle-inflight/spec.md +0 -59
- package/benchmark/auto-resolve/fixtures/retired/F34-cli-settle-inflight/task.txt +0 -9
- package/benchmark/auto-resolve/fixtures/retired/F34-cli-settle-inflight/verifiers/ordered-settlement.js +0 -88
- package/benchmark/auto-resolve/fixtures/retired/F34-cli-settle-inflight/verifiers/reject-invalid.js +0 -45
- package/benchmark/auto-resolve/fixtures/retired/F35-cli-apply-journal/NOTES.md +0 -30
- package/benchmark/auto-resolve/fixtures/retired/F35-cli-apply-journal/RETIRED.md +0 -16
- package/benchmark/auto-resolve/fixtures/retired/F35-cli-apply-journal/expected.json +0 -64
- package/benchmark/auto-resolve/fixtures/retired/F35-cli-apply-journal/metadata.json +0 -10
- package/benchmark/auto-resolve/fixtures/retired/F35-cli-apply-journal/setup.sh +0 -21
- package/benchmark/auto-resolve/fixtures/retired/F35-cli-apply-journal/spec.md +0 -58
- package/benchmark/auto-resolve/fixtures/retired/F35-cli-apply-journal/task.txt +0 -9
- package/benchmark/auto-resolve/fixtures/retired/F35-cli-apply-journal/verifiers/dup-op.js +0 -54
- package/benchmark/auto-resolve/fixtures/retired/F35-cli-apply-journal/verifiers/priority-apply.js +0 -82
- package/benchmark/auto-resolve/fixtures/retired/F35-cli-apply-journal/verifiers/rollback.js +0 -77
- package/benchmark/auto-resolve/fixtures/retired/F36-cli-session-admission/NOTES.md +0 -99
- package/benchmark/auto-resolve/fixtures/retired/F36-cli-session-admission/RETIRED.md +0 -18
- package/benchmark/auto-resolve/fixtures/retired/F36-cli-session-admission/expected.json +0 -64
- package/benchmark/auto-resolve/fixtures/retired/F36-cli-session-admission/metadata.json +0 -10
- package/benchmark/auto-resolve/fixtures/retired/F36-cli-session-admission/setup.sh +0 -4
- package/benchmark/auto-resolve/fixtures/retired/F36-cli-session-admission/spec.md +0 -61
- package/benchmark/auto-resolve/fixtures/retired/F36-cli-session-admission/task.txt +0 -9
- package/benchmark/auto-resolve/fixtures/retired/F36-cli-session-admission/verifiers/correctness-small.js +0 -135
- package/benchmark/auto-resolve/fixtures/retired/F36-cli-session-admission/verifiers/scale.js +0 -100
- package/benchmark/auto-resolve/fixtures/retired/F36-cli-session-admission/verifiers/validation.js +0 -75
- package/benchmark/auto-resolve/fixtures/retired/F37-cli-rule-lookup/NOTES.md +0 -93
- package/benchmark/auto-resolve/fixtures/retired/F37-cli-rule-lookup/RETIRED.md +0 -16
- package/benchmark/auto-resolve/fixtures/retired/F37-cli-rule-lookup/expected.json +0 -65
- package/benchmark/auto-resolve/fixtures/retired/F37-cli-rule-lookup/metadata.json +0 -10
- package/benchmark/auto-resolve/fixtures/retired/F37-cli-rule-lookup/setup.sh +0 -18
- package/benchmark/auto-resolve/fixtures/retired/F37-cli-rule-lookup/spec.md +0 -66
- package/benchmark/auto-resolve/fixtures/retired/F37-cli-rule-lookup/task.txt +0 -9
- package/benchmark/auto-resolve/fixtures/retired/F37-cli-rule-lookup/verifiers/correctness-small.js +0 -84
- package/benchmark/auto-resolve/fixtures/retired/F37-cli-rule-lookup/verifiers/scale.js +0 -184
- package/benchmark/auto-resolve/fixtures/retired/F37-cli-rule-lookup/verifiers/validation.js +0 -74
- package/benchmark/auto-resolve/fixtures/retired/F9-e2e-ideate-to-preflight/NOTES.md +0 -60
- package/benchmark/auto-resolve/fixtures/retired/F9-e2e-ideate-to-preflight/RETIRED.md +0 -29
- package/benchmark/auto-resolve/fixtures/retired/F9-e2e-ideate-to-preflight/expected.json +0 -73
- package/benchmark/auto-resolve/fixtures/retired/F9-e2e-ideate-to-preflight/metadata.json +0 -10
- package/benchmark/auto-resolve/fixtures/retired/F9-e2e-ideate-to-preflight/setup.sh +0 -28
- package/benchmark/auto-resolve/fixtures/retired/F9-e2e-ideate-to-preflight/spec.md +0 -58
- package/benchmark/auto-resolve/fixtures/retired/F9-e2e-ideate-to-preflight/task.txt +0 -5
- package/benchmark/auto-resolve/fixtures/test-repo/README.md +0 -12
- package/benchmark/auto-resolve/fixtures/test-repo/bin/cli.js +0 -63
- package/benchmark/auto-resolve/fixtures/test-repo/package-lock.json +0 -823
- package/benchmark/auto-resolve/fixtures/test-repo/package.json +0 -22
- package/benchmark/auto-resolve/fixtures/test-repo/playwright.config.js +0 -17
- package/benchmark/auto-resolve/fixtures/test-repo/server/index.js +0 -37
- package/benchmark/auto-resolve/fixtures/test-repo/tests/cli.test.js +0 -25
- package/benchmark/auto-resolve/fixtures/test-repo/tests/server.test.js +0 -58
- package/benchmark/auto-resolve/fixtures/test-repo/web/index.html +0 -37
- package/benchmark/auto-resolve/results/20260507-f10-f11-tier1-full-pipeline/headroom-gate.json +0 -25
- package/benchmark/auto-resolve/results/20260507-f10-f11-tier1-full-pipeline/headroom-gate.md +0 -10
- package/benchmark/auto-resolve/results/20260508-f22-exact-error-headroom/headroom-gate.json +0 -18
- package/benchmark/auto-resolve/results/20260508-f22-exact-error-headroom/headroom-gate.md +0 -9
- package/benchmark/auto-resolve/results/20260508-f26-headroom/headroom-gate.json +0 -18
- package/benchmark/auto-resolve/results/20260508-f26-headroom/headroom-gate.md +0 -9
- package/benchmark/auto-resolve/results/20260510-f16-f23-f25-combined-proof/F16-cli-quote-tax-rules/l2_risk_probes/result.json +0 -28
- package/benchmark/auto-resolve/results/20260510-f16-f23-f25-combined-proof/F23-cli-fulfillment-wave/l2_risk_probes/result.json +0 -28
- package/benchmark/auto-resolve/results/20260510-f16-f23-f25-combined-proof/F25-cli-cart-promotion-rules/l2_risk_probes/result.json +0 -30
- package/benchmark/auto-resolve/results/20260510-f16-f23-f25-combined-proof/full-pipeline-pair-gate.json +0 -82
- package/benchmark/auto-resolve/results/20260510-f16-f23-f25-combined-proof/full-pipeline-pair-gate.md +0 -18
- package/benchmark/auto-resolve/results/20260510-f16-f23-f25-combined-proof/headroom-gate.json +0 -46
- package/benchmark/auto-resolve/results/20260510-f16-f23-f25-combined-proof/headroom-gate.md +0 -17
- package/benchmark/auto-resolve/results/20260511-f12-webhook-headroom/headroom-gate.json +0 -28
- package/benchmark/auto-resolve/results/20260511-f12-webhook-headroom/headroom-gate.md +0 -15
- package/benchmark/auto-resolve/results/20260511-f15-concurrency-headroom/headroom-gate.json +0 -28
- package/benchmark/auto-resolve/results/20260511-f15-concurrency-headroom/headroom-gate.md +0 -15
- package/benchmark/auto-resolve/results/20260511-f21-current-riskprobes-v1/F21-cli-scheduler-priority/l2_risk_probes/result.json +0 -32
- package/benchmark/auto-resolve/results/20260511-f21-current-riskprobes-v1/full-pipeline-pair-gate.json +0 -44
- package/benchmark/auto-resolve/results/20260511-f21-current-riskprobes-v1/full-pipeline-pair-gate.md +0 -16
- package/benchmark/auto-resolve/results/20260511-f21-current-riskprobes-v1/headroom-gate.json +0 -18
- package/benchmark/auto-resolve/results/20260511-f21-current-riskprobes-v1/headroom-gate.md +0 -9
- package/benchmark/auto-resolve/results/20260511-f3-http-error-headroom/headroom-gate.json +0 -28
- package/benchmark/auto-resolve/results/20260511-f3-http-error-headroom/headroom-gate.md +0 -15
- package/benchmark/auto-resolve/results/20260512-f2-medium-headroom/headroom-gate.json +0 -28
- package/benchmark/auto-resolve/results/20260512-f2-medium-headroom/headroom-gate.md +0 -15
- package/benchmark/auto-resolve/results/20260512-f31-seat-rebalance-headroom/headroom-gate.json +0 -28
- package/benchmark/auto-resolve/results/20260512-f31-seat-rebalance-headroom/headroom-gate.md +0 -15
- package/benchmark/auto-resolve/results/20260512-f32-subscription-renewal-headroom/headroom-gate.json +0 -28
- package/benchmark/auto-resolve/results/20260512-f32-subscription-renewal-headroom/headroom-gate.md +0 -15
- package/benchmark/auto-resolve/results/20260512-f4-web-headroom/headroom-gate.json +0 -28
- package/benchmark/auto-resolve/results/20260512-f4-web-headroom/headroom-gate.md +0 -15
- package/benchmark/auto-resolve/results/20260512-f5-fixloop-headroom/headroom-gate.json +0 -28
- package/benchmark/auto-resolve/results/20260512-f5-fixloop-headroom/headroom-gate.md +0 -15
- package/benchmark/auto-resolve/results/20260512-f6-checksum-headroom/headroom-gate.json +0 -28
- package/benchmark/auto-resolve/results/20260512-f6-checksum-headroom/headroom-gate.md +0 -15
- package/benchmark/auto-resolve/results/20260512-f7-scope-headroom/headroom-gate.json +0 -28
- package/benchmark/auto-resolve/results/20260512-f7-scope-headroom/headroom-gate.md +0 -15
- package/benchmark/auto-resolve/results/20260512-f9-e2e-headroom/headroom-gate.json +0 -28
- package/benchmark/auto-resolve/results/20260512-f9-e2e-headroom/headroom-gate.md +0 -15
- package/benchmark/auto-resolve/run-real-benchmark.md +0 -303
- package/benchmark/auto-resolve/scripts/audit-headroom-rejections.py +0 -441
- package/benchmark/auto-resolve/scripts/audit-pair-evidence.py +0 -1256
- package/benchmark/auto-resolve/scripts/build-pair-eligible-manifest.py +0 -306
- package/benchmark/auto-resolve/scripts/check-f9-artifacts.py +0 -268
- package/benchmark/auto-resolve/scripts/collect-swebench-predictions.py +0 -108
- package/benchmark/auto-resolve/scripts/compile-report.py +0 -493
- package/benchmark/auto-resolve/scripts/fetch-swebench-instances.py +0 -129
- package/benchmark/auto-resolve/scripts/frozen-verify-gate.py +0 -434
- package/benchmark/auto-resolve/scripts/full-pipeline-pair-gate.py +0 -612
- package/benchmark/auto-resolve/scripts/headroom-gate.py +0 -378
- package/benchmark/auto-resolve/scripts/iter-0033c-compare.py +0 -683
- package/benchmark/auto-resolve/scripts/iter-0033c-l1-summary.py +0 -97
- package/benchmark/auto-resolve/scripts/judge-opus-pass.sh +0 -542
- package/benchmark/auto-resolve/scripts/judge.sh +0 -565
- package/benchmark/auto-resolve/scripts/oracle-scope-tier-a.py +0 -256
- package/benchmark/auto-resolve/scripts/oracle-scope-tier-b.py +0 -287
- package/benchmark/auto-resolve/scripts/oracle-test-fidelity.py +0 -328
- package/benchmark/auto-resolve/scripts/pair-candidate-frontier.py +0 -469
- package/benchmark/auto-resolve/scripts/pair-plan-idgen.py +0 -401
- package/benchmark/auto-resolve/scripts/pair-plan-lint.py +0 -475
- package/benchmark/auto-resolve/scripts/pair-rejected-fixtures.sh +0 -103
- package/benchmark/auto-resolve/scripts/pair_evidence_contract.py +0 -270
- package/benchmark/auto-resolve/scripts/prepare-swebench-frozen-case.py +0 -273
- package/benchmark/auto-resolve/scripts/prepare-swebench-frozen-corpus.py +0 -148
- package/benchmark/auto-resolve/scripts/prepare-swebench-solver-worktree.py +0 -210
- package/benchmark/auto-resolve/scripts/recent-benchmark-summary.py +0 -232
- package/benchmark/auto-resolve/scripts/run-fixture.sh +0 -1024
- package/benchmark/auto-resolve/scripts/run-frozen-verify-pair.sh +0 -683
- package/benchmark/auto-resolve/scripts/run-full-pipeline-pair-candidate.sh +0 -458
- package/benchmark/auto-resolve/scripts/run-headroom-candidate.sh +0 -336
- package/benchmark/auto-resolve/scripts/run-iter-0033c.sh +0 -208
- package/benchmark/auto-resolve/scripts/run-suite.sh +0 -251
- package/benchmark/auto-resolve/scripts/run-swebench-frozen-corpus.sh +0 -310
- package/benchmark/auto-resolve/scripts/run-swebench-solver-batch.sh +0 -257
- package/benchmark/auto-resolve/scripts/ship-gate.py +0 -391
- package/benchmark/auto-resolve/scripts/solo-ceiling-avoidance.py +0 -53
- package/benchmark/auto-resolve/scripts/solo-headroom-hypothesis.py +0 -77
- package/benchmark/auto-resolve/scripts/swebench-frozen-matrix.py +0 -478
- package/benchmark/auto-resolve/scripts/test-audit-headroom-rejections.sh +0 -288
- package/benchmark/auto-resolve/scripts/test-audit-pair-evidence.sh +0 -1672
- package/benchmark/auto-resolve/scripts/test-benchmark-arg-parsing.sh +0 -1015
- package/benchmark/auto-resolve/scripts/test-build-pair-eligible-manifest.sh +0 -491
- package/benchmark/auto-resolve/scripts/test-check-f9-artifacts.sh +0 -91
- package/benchmark/auto-resolve/scripts/test-frozen-verify-gate.sh +0 -517
- package/benchmark/auto-resolve/scripts/test-full-pipeline-pair-gate.sh +0 -610
- package/benchmark/auto-resolve/scripts/test-headroom-gate.sh +0 -401
- package/benchmark/auto-resolve/scripts/test-iter-0033c-compare.sh +0 -525
- package/benchmark/auto-resolve/scripts/test-iter-0033c-l1-summary.sh +0 -254
- package/benchmark/auto-resolve/scripts/test-lint-fixtures.sh +0 -580
- package/benchmark/auto-resolve/scripts/test-pair-candidate-frontier.sh +0 -591
- package/benchmark/auto-resolve/scripts/test-run-full-pipeline-pair-candidate.sh +0 -497
- package/benchmark/auto-resolve/scripts/test-run-headroom-candidate.sh +0 -401
- package/benchmark/auto-resolve/scripts/test-run-swebench-solver-batch.sh +0 -111
- package/benchmark/auto-resolve/scripts/test-ship-gate.sh +0 -1189
- package/benchmark/auto-resolve/scripts/test-swebench-frozen-case.sh +0 -1221
- package/benchmark/auto-resolve/shadow-fixtures/S1-cli-lang-flag/NOTES.md +0 -28
- package/benchmark/auto-resolve/shadow-fixtures/S1-cli-lang-flag/expected.json +0 -63
- package/benchmark/auto-resolve/shadow-fixtures/S1-cli-lang-flag/metadata.json +0 -10
- package/benchmark/auto-resolve/shadow-fixtures/S1-cli-lang-flag/setup.sh +0 -3
- package/benchmark/auto-resolve/shadow-fixtures/S1-cli-lang-flag/spec.md +0 -47
- package/benchmark/auto-resolve/shadow-fixtures/S1-cli-lang-flag/task.txt +0 -1
- package/benchmark/auto-resolve/shadow-fixtures/S2-cli-inventory-reservation/NOTES.md +0 -34
- package/benchmark/auto-resolve/shadow-fixtures/S2-cli-inventory-reservation/expected.json +0 -53
- package/benchmark/auto-resolve/shadow-fixtures/S2-cli-inventory-reservation/metadata.json +0 -10
- package/benchmark/auto-resolve/shadow-fixtures/S2-cli-inventory-reservation/setup.sh +0 -3
- package/benchmark/auto-resolve/shadow-fixtures/S2-cli-inventory-reservation/spec.md +0 -50
- package/benchmark/auto-resolve/shadow-fixtures/S2-cli-inventory-reservation/task.txt +0 -1
- package/benchmark/auto-resolve/shadow-fixtures/S2-cli-inventory-reservation/verifiers/duplicate-order-error.js +0 -27
- package/benchmark/auto-resolve/shadow-fixtures/S2-cli-inventory-reservation/verifiers/priority-stock-reservation.js +0 -44
- package/benchmark/auto-resolve/shadow-fixtures/S3-cli-ticket-assignment/NOTES.md +0 -34
- package/benchmark/auto-resolve/shadow-fixtures/S3-cli-ticket-assignment/expected.json +0 -55
- package/benchmark/auto-resolve/shadow-fixtures/S3-cli-ticket-assignment/metadata.json +0 -10
- package/benchmark/auto-resolve/shadow-fixtures/S3-cli-ticket-assignment/setup.sh +0 -3
- package/benchmark/auto-resolve/shadow-fixtures/S3-cli-ticket-assignment/spec.md +0 -52
- package/benchmark/auto-resolve/shadow-fixtures/S3-cli-ticket-assignment/task.txt +0 -1
- package/benchmark/auto-resolve/shadow-fixtures/S3-cli-ticket-assignment/verifiers/duplicate-ticket-error.js +0 -29
- package/benchmark/auto-resolve/shadow-fixtures/S3-cli-ticket-assignment/verifiers/priority-agent-assignment.js +0 -48
- package/benchmark/auto-resolve/shadow-fixtures/S4-cli-return-routing/NOTES.md +0 -34
- package/benchmark/auto-resolve/shadow-fixtures/S4-cli-return-routing/expected.json +0 -55
- package/benchmark/auto-resolve/shadow-fixtures/S4-cli-return-routing/metadata.json +0 -10
- package/benchmark/auto-resolve/shadow-fixtures/S4-cli-return-routing/setup.sh +0 -3
- package/benchmark/auto-resolve/shadow-fixtures/S4-cli-return-routing/spec.md +0 -55
- package/benchmark/auto-resolve/shadow-fixtures/S4-cli-return-routing/task.txt +0 -1
- package/benchmark/auto-resolve/shadow-fixtures/S4-cli-return-routing/verifiers/duplicate-return-error.js +0 -43
- package/benchmark/auto-resolve/shadow-fixtures/S4-cli-return-routing/verifiers/priority-return-routing.js +0 -70
- package/benchmark/auto-resolve/shadow-fixtures/S5-cli-credit-grant-ledger/NOTES.md +0 -37
- package/benchmark/auto-resolve/shadow-fixtures/S5-cli-credit-grant-ledger/expected.json +0 -54
- package/benchmark/auto-resolve/shadow-fixtures/S5-cli-credit-grant-ledger/metadata.json +0 -10
- package/benchmark/auto-resolve/shadow-fixtures/S5-cli-credit-grant-ledger/setup.sh +0 -3
- package/benchmark/auto-resolve/shadow-fixtures/S5-cli-credit-grant-ledger/spec.md +0 -59
- package/benchmark/auto-resolve/shadow-fixtures/S5-cli-credit-grant-ledger/task.txt +0 -1
- package/benchmark/auto-resolve/shadow-fixtures/S5-cli-credit-grant-ledger/verifiers/credit-ledger-priority.js +0 -98
- package/benchmark/auto-resolve/shadow-fixtures/S5-cli-credit-grant-ledger/verifiers/duplicate-charge-error.js +0 -38
- package/benchmark/auto-resolve/shadow-fixtures/S6-cli-refund-window-ledger/NOTES.md +0 -36
- package/benchmark/auto-resolve/shadow-fixtures/S6-cli-refund-window-ledger/expected.json +0 -56
- package/benchmark/auto-resolve/shadow-fixtures/S6-cli-refund-window-ledger/metadata.json +0 -10
- package/benchmark/auto-resolve/shadow-fixtures/S6-cli-refund-window-ledger/setup.sh +0 -3
- package/benchmark/auto-resolve/shadow-fixtures/S6-cli-refund-window-ledger/spec.md +0 -59
- package/benchmark/auto-resolve/shadow-fixtures/S6-cli-refund-window-ledger/task.txt +0 -1
- package/benchmark/auto-resolve/shadow-fixtures/S6-cli-refund-window-ledger/verifiers/duplicate-refund-error.js +0 -41
- package/benchmark/auto-resolve/shadow-fixtures/S6-cli-refund-window-ledger/verifiers/priority-refund-ledger.js +0 -65
- package/config/skills/_shared/pair-plan-schema.md +0 -298
- package/scripts/lint-fixtures.sh +0 -352
- package/scripts/lint-shadow-fixtures.sh +0 -58
- package/scripts/lint-skills.sh +0 -4265
- package/scripts/test-owner-phases.py +0 -238
|
@@ -1,210 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env python3
|
|
2
|
-
"""Prepare a SWE-bench instance worktree for producing a candidate patch."""
|
|
3
|
-
|
|
4
|
-
from __future__ import annotations
|
|
5
|
-
|
|
6
|
-
import argparse
|
|
7
|
-
import json
|
|
8
|
-
import re
|
|
9
|
-
import shutil
|
|
10
|
-
import subprocess
|
|
11
|
-
from pathlib import Path
|
|
12
|
-
from typing import Any
|
|
13
|
-
|
|
14
|
-
from pair_evidence_contract import reject_json_constant
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
SAFE_ID = re.compile(r"^[A-Za-z0-9_.-]+$")
|
|
18
|
-
SAFE_REPO = re.compile(r"^[A-Za-z0-9_.-]+/[A-Za-z0-9_.-]+$")
|
|
19
|
-
SAFE_COMMIT = re.compile(r"^[0-9a-fA-F]{7,40}$")
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
def run(cmd: list[str], cwd: Path | None = None) -> None:
|
|
23
|
-
subprocess.run(cmd, cwd=cwd, check=True)
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
def read_instances(path: Path) -> list[dict[str, Any]]:
|
|
27
|
-
rows: list[dict[str, Any]] = []
|
|
28
|
-
with path.open(encoding="utf8") as f:
|
|
29
|
-
for line_no, line in enumerate(f, start=1):
|
|
30
|
-
if not line.strip():
|
|
31
|
-
continue
|
|
32
|
-
value = json.loads(line, parse_constant=reject_json_constant)
|
|
33
|
-
if not isinstance(value, dict):
|
|
34
|
-
raise ValueError(f"{path}:{line_no}: expected JSON object")
|
|
35
|
-
rows.append(value)
|
|
36
|
-
return rows
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
def require_text(instance: dict[str, Any], key: str) -> str:
|
|
40
|
-
value = instance.get(key)
|
|
41
|
-
if not isinstance(value, str) or not value.strip():
|
|
42
|
-
raise ValueError(f"SWE-bench instance missing non-empty {key!r}")
|
|
43
|
-
return value.strip()
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
def require_safe_repo(instance: dict[str, Any]) -> str:
|
|
47
|
-
repo = require_text(instance, "repo")
|
|
48
|
-
if not SAFE_REPO.match(repo):
|
|
49
|
-
raise ValueError(f"unsafe SWE-bench repo: {repo!r}")
|
|
50
|
-
return repo
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
def require_safe_base_commit(instance: dict[str, Any]) -> str:
|
|
54
|
-
base_commit = require_text(instance, "base_commit")
|
|
55
|
-
if not SAFE_COMMIT.match(base_commit):
|
|
56
|
-
raise ValueError(f"unsafe SWE-bench base_commit: {base_commit!r}")
|
|
57
|
-
return base_commit
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
def pick_instance(path: Path, instance_id: str) -> dict[str, Any]:
|
|
61
|
-
matches = [row for row in read_instances(path) if row.get("instance_id") == instance_id]
|
|
62
|
-
if len(matches) != 1:
|
|
63
|
-
raise ValueError(f"expected exactly one {instance_id!r} row in {path}, found {len(matches)}")
|
|
64
|
-
return matches[0]
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
def repo_cache_name(repo: str, base_commit: str) -> str:
|
|
68
|
-
return f"{repo.replace('/', '__')}-{base_commit[:12]}"
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
def prepare_repo(instance: dict[str, Any], repos_root: Path) -> Path:
|
|
72
|
-
repo = require_safe_repo(instance)
|
|
73
|
-
base_commit = require_safe_base_commit(instance)
|
|
74
|
-
repos_root.mkdir(parents=True, exist_ok=True)
|
|
75
|
-
dest = repos_root / repo_cache_name(repo, base_commit)
|
|
76
|
-
|
|
77
|
-
if not dest.exists():
|
|
78
|
-
run(["git", "clone", "--quiet", f"https://github.com/{repo}.git", str(dest)])
|
|
79
|
-
|
|
80
|
-
run(["git", "fetch", "--quiet", "--all", "--tags"], cwd=dest)
|
|
81
|
-
run(["git", "checkout", "--quiet", base_commit], cwd=dest)
|
|
82
|
-
run(["git", "reset", "--hard", "--quiet"], cwd=dest)
|
|
83
|
-
run(["git", "clean", "-ffdqx"], cwd=dest)
|
|
84
|
-
return dest
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
def copy_worktree(repo_path: Path, worktree: Path) -> None:
|
|
88
|
-
if worktree.exists():
|
|
89
|
-
shutil.rmtree(worktree)
|
|
90
|
-
run(["git", "clone", "--quiet", "--no-hardlinks", str(repo_path), str(worktree)])
|
|
91
|
-
run(["git", "checkout", "--quiet", "HEAD"], cwd=worktree)
|
|
92
|
-
run(["git", "reset", "--hard", "--quiet"], cwd=worktree)
|
|
93
|
-
run(["git", "clean", "-ffdqx"], cwd=worktree)
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
def write_spec(instance: dict[str, Any], worktree: Path) -> Path:
|
|
97
|
-
instance_id = require_text(instance, "instance_id")
|
|
98
|
-
repo = require_safe_repo(instance)
|
|
99
|
-
base_commit = require_safe_base_commit(instance)
|
|
100
|
-
problem = require_text(instance, "problem_statement")
|
|
101
|
-
spec_path = worktree / "docs" / "roadmap" / "phase-1" / f"{instance_id}.md"
|
|
102
|
-
spec_path.parent.mkdir(parents=True, exist_ok=True)
|
|
103
|
-
spec_path.write_text(
|
|
104
|
-
f"""---
|
|
105
|
-
id: "{instance_id}"
|
|
106
|
-
title: "SWE-bench {instance_id}"
|
|
107
|
-
status: planned
|
|
108
|
-
complexity: high
|
|
109
|
-
depends-on: []
|
|
110
|
-
---
|
|
111
|
-
|
|
112
|
-
# SWE-bench {instance_id}
|
|
113
|
-
|
|
114
|
-
Repository: `{repo}`
|
|
115
|
-
Base commit: `{base_commit}`
|
|
116
|
-
|
|
117
|
-
## Requirements
|
|
118
|
-
|
|
119
|
-
- [ ] Resolve the issue described in the problem statement.
|
|
120
|
-
- [ ] Preserve existing behavior outside the issue's scope.
|
|
121
|
-
- [ ] Keep the implementation consistent with the repository's local style and
|
|
122
|
-
dependency policy.
|
|
123
|
-
- [ ] Add focused regression coverage when practical.
|
|
124
|
-
|
|
125
|
-
## Problem Statement
|
|
126
|
-
|
|
127
|
-
{problem}
|
|
128
|
-
|
|
129
|
-
## Constraints
|
|
130
|
-
|
|
131
|
-
- Do not inspect or rely on the SWE-bench gold `patch` or `test_patch` fields.
|
|
132
|
-
- Do not add broad rewrites, unrelated formatting churn, or new dependencies
|
|
133
|
-
unless the visible problem statement strictly requires them.
|
|
134
|
-
|
|
135
|
-
## Verification
|
|
136
|
-
|
|
137
|
-
- Run the most focused practical verification for the changed behavior.
|
|
138
|
-
""",
|
|
139
|
-
encoding="utf8",
|
|
140
|
-
)
|
|
141
|
-
return spec_path
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
def copy_devlyn_context(worktree: Path) -> None:
|
|
145
|
-
skills_src = Path("config/skills")
|
|
146
|
-
if skills_src.exists():
|
|
147
|
-
skills_dst = worktree / ".claude" / "skills"
|
|
148
|
-
if skills_dst.exists():
|
|
149
|
-
shutil.rmtree(skills_dst)
|
|
150
|
-
shutil.copytree(skills_src, skills_dst)
|
|
151
|
-
claude_src = Path("CLAUDE.md")
|
|
152
|
-
if claude_src.exists():
|
|
153
|
-
shutil.copy2(claude_src, worktree / "CLAUDE.md")
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
def main() -> int:
|
|
157
|
-
parser = argparse.ArgumentParser()
|
|
158
|
-
parser.add_argument("--instances-jsonl", required=True, type=Path)
|
|
159
|
-
parser.add_argument("--instance-id", required=True)
|
|
160
|
-
parser.add_argument(
|
|
161
|
-
"--repos-root",
|
|
162
|
-
default=Path("benchmark/auto-resolve/external/swebench/repos-solver"),
|
|
163
|
-
type=Path,
|
|
164
|
-
)
|
|
165
|
-
parser.add_argument(
|
|
166
|
-
"--worktrees-root",
|
|
167
|
-
default=Path("benchmark/auto-resolve/external/swebench/worktrees"),
|
|
168
|
-
type=Path,
|
|
169
|
-
)
|
|
170
|
-
parser.add_argument("--copy-devlyn-context", action="store_true")
|
|
171
|
-
args = parser.parse_args()
|
|
172
|
-
|
|
173
|
-
instance = pick_instance(args.instances_jsonl, args.instance_id)
|
|
174
|
-
instance_id = require_text(instance, "instance_id")
|
|
175
|
-
if not SAFE_ID.match(instance_id):
|
|
176
|
-
raise ValueError(f"unsafe instance_id for path/spec use: {instance_id!r}")
|
|
177
|
-
|
|
178
|
-
repo_path = prepare_repo(instance, args.repos_root)
|
|
179
|
-
worktree = args.worktrees_root / instance_id
|
|
180
|
-
args.worktrees_root.mkdir(parents=True, exist_ok=True)
|
|
181
|
-
copy_worktree(repo_path, worktree)
|
|
182
|
-
spec_path = write_spec(instance, worktree)
|
|
183
|
-
if args.copy_devlyn_context:
|
|
184
|
-
copy_devlyn_context(worktree)
|
|
185
|
-
|
|
186
|
-
prompt = (
|
|
187
|
-
f"You are solving SWE-bench instance {instance_id} in this checked-out repository at "
|
|
188
|
-
"the base commit. Do not inspect any gold SWE-bench patch or test_patch. Read the "
|
|
189
|
-
f"local code and the spec at {spec_path.relative_to(worktree)}. Make the smallest "
|
|
190
|
-
"correct source/test change for the visible issue. Run a focused verification "
|
|
191
|
-
"command. At the end, report changed files, verification command, and verdict."
|
|
192
|
-
)
|
|
193
|
-
(worktree / "solve-prompt.txt").write_text(prompt + "\n", encoding="utf8")
|
|
194
|
-
print(
|
|
195
|
-
json.dumps(
|
|
196
|
-
{
|
|
197
|
-
"instance_id": instance_id,
|
|
198
|
-
"repo_dir": str(repo_path),
|
|
199
|
-
"worktree": str(worktree),
|
|
200
|
-
"spec_path": str(spec_path),
|
|
201
|
-
"prompt_file": str(worktree / "solve-prompt.txt"),
|
|
202
|
-
},
|
|
203
|
-
indent=2,
|
|
204
|
-
)
|
|
205
|
-
)
|
|
206
|
-
return 0
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
if __name__ == "__main__":
|
|
210
|
-
raise SystemExit(main())
|
|
@@ -1,232 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env python3
|
|
2
|
-
"""Print a compact, wrap-safe benchmark snapshot from local artifacts."""
|
|
3
|
-
from __future__ import annotations
|
|
4
|
-
|
|
5
|
-
import argparse
|
|
6
|
-
import importlib.util
|
|
7
|
-
import json
|
|
8
|
-
import pathlib
|
|
9
|
-
import sys
|
|
10
|
-
import textwrap
|
|
11
|
-
from typing import Any
|
|
12
|
-
|
|
13
|
-
SCRIPT_DIR = pathlib.Path(__file__).resolve().parent
|
|
14
|
-
FRONTIER_PATH = SCRIPT_DIR / "pair-candidate-frontier.py"
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
def load_frontier_module() -> Any:
|
|
18
|
-
spec = importlib.util.spec_from_file_location("pair_candidate_frontier", FRONTIER_PATH)
|
|
19
|
-
if spec is None or spec.loader is None:
|
|
20
|
-
raise RuntimeError(f"cannot load frontier module: {FRONTIER_PATH}")
|
|
21
|
-
module = importlib.util.module_from_spec(spec)
|
|
22
|
-
spec.loader.exec_module(module)
|
|
23
|
-
return module
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
FRONTIER = load_frontier_module()
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
def best_rows(report: dict[str, Any]) -> list[dict[str, Any]]:
|
|
30
|
-
rows: list[dict[str, Any]] = []
|
|
31
|
-
for row in report.get("rows", []):
|
|
32
|
-
if row.get("status") != "pair_evidence_passed":
|
|
33
|
-
continue
|
|
34
|
-
best = FRONTIER.best_pair_evidence(row.get("passing_pair_evidence", []))
|
|
35
|
-
if best is None:
|
|
36
|
-
continue
|
|
37
|
-
rows.append({"fixture": row["fixture"], **best})
|
|
38
|
-
return rows
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
def display_fixture(fixture: str) -> str:
|
|
42
|
-
short, _, rest = fixture.partition("-")
|
|
43
|
-
return f"{short} {rest.replace('-', ' ')}" if rest else fixture
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
def fmt_margin(value: Any) -> str:
|
|
47
|
-
return f"{value:+d}" if isinstance(value, int) and not isinstance(value, bool) else "n/a"
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
def fmt_decimal_margin(value: Any) -> str:
|
|
51
|
-
return f"{value:+.2f}" if isinstance(value, (int, float)) and not isinstance(value, bool) else "n/a"
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
def fmt_wall(value: Any) -> str:
|
|
55
|
-
return f"{value:.2f}x" if isinstance(value, (int, float)) and not isinstance(value, bool) else "n/a"
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
def fmt_score(value: Any) -> str:
|
|
59
|
-
return str(value) if isinstance(value, int) and not isinstance(value, bool) else "n/a"
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
def wrap_item(prefix: str, text: str, *, width: int) -> list[str]:
|
|
63
|
-
return textwrap.wrap(
|
|
64
|
-
text,
|
|
65
|
-
width=width,
|
|
66
|
-
initial_indent=prefix,
|
|
67
|
-
subsequent_indent=" " * len(prefix),
|
|
68
|
-
break_long_words=False,
|
|
69
|
-
break_on_hyphens=False,
|
|
70
|
-
) or [prefix.rstrip()]
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
def render_text(report: dict[str, Any], *, width: int) -> str:
|
|
74
|
-
rows = best_rows(report)
|
|
75
|
-
lines = [
|
|
76
|
-
"Recent Benchmark Snapshot",
|
|
77
|
-
"=========================",
|
|
78
|
-
"",
|
|
79
|
-
"Status",
|
|
80
|
-
f" Verdict: {report.get('verdict', 'n/a')}",
|
|
81
|
-
f" Active fixtures: {report.get('fixtures_total', 'n/a')}",
|
|
82
|
-
f" Rejected controls: {report.get('rejected_total', 'n/a')}",
|
|
83
|
-
f" Pair evidence rows: {report.get('pair_evidence_total', 'n/a')}",
|
|
84
|
-
f" Unmeasured candidates: {report.get('unmeasured_candidate_total', 'n/a')}",
|
|
85
|
-
"",
|
|
86
|
-
"Pair Lift",
|
|
87
|
-
f" Average margin: {fmt_decimal_margin(report.get('pair_margin_avg'))}",
|
|
88
|
-
f" Minimum margin: {fmt_margin(report.get('pair_margin_min'))}",
|
|
89
|
-
f" Average wall ratio: {fmt_wall(report.get('pair_solo_wall_ratio_avg'))}",
|
|
90
|
-
f" Maximum wall ratio: {fmt_wall(report.get('pair_solo_wall_ratio_max'))}",
|
|
91
|
-
f" Gate: margin >= {fmt_margin(report.get('min_pair_margin'))}; wall <= {fmt_wall(report.get('max_pair_solo_wall_ratio'))}",
|
|
92
|
-
"",
|
|
93
|
-
"Pair Evidence",
|
|
94
|
-
]
|
|
95
|
-
if not rows:
|
|
96
|
-
lines.append(" No passing pair evidence rows found.")
|
|
97
|
-
return "\n".join(lines) + "\n"
|
|
98
|
-
|
|
99
|
-
for item in rows:
|
|
100
|
-
lines.append(f" {display_fixture(item['fixture'])}")
|
|
101
|
-
lines.append(
|
|
102
|
-
" scores: bare {bare} | solo_claude {solo} | pair {pair}".format(
|
|
103
|
-
bare=fmt_score(item.get("bare_score")),
|
|
104
|
-
solo=fmt_score(item.get("solo_score")),
|
|
105
|
-
pair=fmt_score(item.get("pair_score")),
|
|
106
|
-
)
|
|
107
|
-
)
|
|
108
|
-
lines.append(
|
|
109
|
-
" lift: {margin} | wall {wall} | arm {arm}".format(
|
|
110
|
-
margin=fmt_margin(item.get("pair_margin")),
|
|
111
|
-
wall=fmt_wall(item.get("pair_solo_wall_ratio")),
|
|
112
|
-
arm=item.get("pair_arm") or "n/a",
|
|
113
|
-
)
|
|
114
|
-
)
|
|
115
|
-
lines.extend(wrap_item(" run: ", str(item.get("run_id") or "n/a"), width=width))
|
|
116
|
-
triggers = ", ".join(item.get("pair_trigger_reasons") or [])
|
|
117
|
-
lines.extend(wrap_item(" triggers: ", triggers or "n/a", width=width))
|
|
118
|
-
return "\n".join(lines) + "\n"
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
def render_markdown(report: dict[str, Any], *, width: int) -> str:
|
|
122
|
-
rows = best_rows(report)
|
|
123
|
-
lines = [
|
|
124
|
-
"# Recent Benchmark Snapshot",
|
|
125
|
-
"",
|
|
126
|
-
"## Status",
|
|
127
|
-
"",
|
|
128
|
-
f"- Verdict: **{report.get('verdict', 'n/a')}**",
|
|
129
|
-
f"- Active fixtures: {report.get('fixtures_total', 'n/a')}",
|
|
130
|
-
f"- Rejected controls: {report.get('rejected_total', 'n/a')}",
|
|
131
|
-
f"- Pair evidence rows: {report.get('pair_evidence_total', 'n/a')}",
|
|
132
|
-
f"- Unmeasured candidates: {report.get('unmeasured_candidate_total', 'n/a')}",
|
|
133
|
-
"",
|
|
134
|
-
"## Pair Lift",
|
|
135
|
-
"",
|
|
136
|
-
f"- Average margin: **{fmt_decimal_margin(report.get('pair_margin_avg'))}**",
|
|
137
|
-
f"- Minimum margin: **{fmt_margin(report.get('pair_margin_min'))}**",
|
|
138
|
-
f"- Average wall ratio: {fmt_wall(report.get('pair_solo_wall_ratio_avg'))}",
|
|
139
|
-
f"- Maximum wall ratio: {fmt_wall(report.get('pair_solo_wall_ratio_max'))}",
|
|
140
|
-
f"- Gate: margin >= {fmt_margin(report.get('min_pair_margin'))}; wall <= {fmt_wall(report.get('max_pair_solo_wall_ratio'))}",
|
|
141
|
-
"",
|
|
142
|
-
"## Pair Evidence",
|
|
143
|
-
"",
|
|
144
|
-
]
|
|
145
|
-
if not rows:
|
|
146
|
-
lines.append("No passing pair evidence rows found.")
|
|
147
|
-
return "\n".join(lines) + "\n"
|
|
148
|
-
|
|
149
|
-
for item in rows:
|
|
150
|
-
lines.extend(
|
|
151
|
-
[
|
|
152
|
-
f"### {display_fixture(item['fixture'])}",
|
|
153
|
-
"",
|
|
154
|
-
f"- Scores: bare {fmt_score(item.get('bare_score'))}, solo_claude {fmt_score(item.get('solo_score'))}, pair {fmt_score(item.get('pair_score'))}.",
|
|
155
|
-
f"- Lift: {fmt_margin(item.get('pair_margin'))}; wall {fmt_wall(item.get('pair_solo_wall_ratio'))}; arm `{item.get('pair_arm') or 'n/a'}`.",
|
|
156
|
-
f"- Run: `{item.get('run_id') or 'n/a'}`.",
|
|
157
|
-
]
|
|
158
|
-
)
|
|
159
|
-
triggers = ", ".join(item.get("pair_trigger_reasons") or [])
|
|
160
|
-
wrapped = wrap_item("- Triggers: ", triggers or "n/a", width=width)
|
|
161
|
-
lines.extend(wrapped)
|
|
162
|
-
lines.append("")
|
|
163
|
-
return "\n".join(lines).rstrip() + "\n"
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
def main() -> int:
|
|
167
|
-
parser = argparse.ArgumentParser()
|
|
168
|
-
parser.add_argument(
|
|
169
|
-
"--fixtures-root",
|
|
170
|
-
type=pathlib.Path,
|
|
171
|
-
default=pathlib.Path("benchmark/auto-resolve/fixtures"),
|
|
172
|
-
)
|
|
173
|
-
parser.add_argument(
|
|
174
|
-
"--registry",
|
|
175
|
-
type=pathlib.Path,
|
|
176
|
-
default=SCRIPT_DIR / "pair-rejected-fixtures.sh",
|
|
177
|
-
)
|
|
178
|
-
parser.add_argument(
|
|
179
|
-
"--results-root",
|
|
180
|
-
type=pathlib.Path,
|
|
181
|
-
default=pathlib.Path("benchmark/auto-resolve/results"),
|
|
182
|
-
)
|
|
183
|
-
parser.add_argument("--out-json", type=pathlib.Path)
|
|
184
|
-
parser.add_argument("--out-md", type=pathlib.Path)
|
|
185
|
-
parser.add_argument(
|
|
186
|
-
"--max-width",
|
|
187
|
-
type=int,
|
|
188
|
-
default=92,
|
|
189
|
-
help="target maximum line width for text and markdown output",
|
|
190
|
-
)
|
|
191
|
-
parser.add_argument(
|
|
192
|
-
"--min-pair-margin",
|
|
193
|
-
type=int,
|
|
194
|
-
default=5,
|
|
195
|
-
help="minimum pair-over-solo margin required to count passing pair evidence",
|
|
196
|
-
)
|
|
197
|
-
parser.add_argument(
|
|
198
|
-
"--max-pair-solo-wall-ratio",
|
|
199
|
-
type=float,
|
|
200
|
-
default=3.0,
|
|
201
|
-
help="maximum pair/solo wall-time ratio allowed to count passing pair evidence",
|
|
202
|
-
)
|
|
203
|
-
args = parser.parse_args()
|
|
204
|
-
if args.max_width < 60:
|
|
205
|
-
print("error: --max-width must be >= 60", file=sys.stderr)
|
|
206
|
-
return 2
|
|
207
|
-
|
|
208
|
-
try:
|
|
209
|
-
report = FRONTIER.build_report(
|
|
210
|
-
fixtures_root=args.fixtures_root,
|
|
211
|
-
registry=args.registry,
|
|
212
|
-
results_root=args.results_root,
|
|
213
|
-
min_pair_margin=args.min_pair_margin,
|
|
214
|
-
max_pair_solo_wall_ratio=args.max_pair_solo_wall_ratio,
|
|
215
|
-
)
|
|
216
|
-
except ValueError as exc:
|
|
217
|
-
print(f"error: {exc}", file=sys.stderr)
|
|
218
|
-
return 2
|
|
219
|
-
|
|
220
|
-
if args.out_json:
|
|
221
|
-
args.out_json.parent.mkdir(parents=True, exist_ok=True)
|
|
222
|
-
args.out_json.write_text(json.dumps(report, indent=2) + "\n", encoding="utf8")
|
|
223
|
-
if args.out_md:
|
|
224
|
-
args.out_md.parent.mkdir(parents=True, exist_ok=True)
|
|
225
|
-
args.out_md.write_text(render_markdown(report, width=args.max_width), encoding="utf8")
|
|
226
|
-
|
|
227
|
-
print(render_text(report, width=args.max_width), end="")
|
|
228
|
-
return 0
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
if __name__ == "__main__":
|
|
232
|
-
sys.exit(main())
|