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,434 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env python3
|
|
2
|
-
"""Gate frozen VERIFY solo-vs-pair evidence.
|
|
3
|
-
|
|
4
|
-
This gate is intentionally narrower than headroom-gate.py. It does not claim
|
|
5
|
-
full-pipeline pair superiority. It verifies the leak-free thing we can measure:
|
|
6
|
-
given a fixed external diff, gated pair VERIFY fires and contributes a stricter
|
|
7
|
-
verdict-binding result. That can be either stricter than the separate solo arm
|
|
8
|
-
or stricter than the pair run's own primary judge, which avoids stochastic
|
|
9
|
-
solo-vs-pair confounding. Passing evidence must come from distinct fixture ids
|
|
10
|
-
with runner input metadata present.
|
|
11
|
-
"""
|
|
12
|
-
|
|
13
|
-
from __future__ import annotations
|
|
14
|
-
|
|
15
|
-
import argparse
|
|
16
|
-
import json
|
|
17
|
-
import math
|
|
18
|
-
import re
|
|
19
|
-
from pathlib import Path
|
|
20
|
-
from typing import Any
|
|
21
|
-
|
|
22
|
-
from pair_evidence_contract import (
|
|
23
|
-
all_known_pair_trigger_reasons,
|
|
24
|
-
has_canonical_pair_trigger_reason,
|
|
25
|
-
has_known_pair_trigger_reason,
|
|
26
|
-
path_has_actionable_solo_headroom_hypothesis,
|
|
27
|
-
reject_json_constant,
|
|
28
|
-
)
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
VERDICT_RANK = {
|
|
32
|
-
"PASS": 0,
|
|
33
|
-
"PASS_WITH_ISSUES": 1,
|
|
34
|
-
"NEEDS_WORK": 2,
|
|
35
|
-
"BLOCKED": 3,
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
def load_compare(results_root: Path, run_id: str) -> dict[str, Any]:
|
|
40
|
-
compare_path = results_root / run_id / "compare.json"
|
|
41
|
-
if not compare_path.exists():
|
|
42
|
-
raise FileNotFoundError(f"missing compare.json for {run_id}: {compare_path}")
|
|
43
|
-
try:
|
|
44
|
-
data = json.loads(
|
|
45
|
-
compare_path.read_text(encoding="utf8"),
|
|
46
|
-
parse_constant=reject_json_constant,
|
|
47
|
-
)
|
|
48
|
-
except (json.JSONDecodeError, ValueError) as exc:
|
|
49
|
-
raise ValueError(f"malformed compare.json for {run_id}: invalid JSON") from exc
|
|
50
|
-
if not isinstance(data, dict):
|
|
51
|
-
raise ValueError(f"malformed compare.json for {run_id}: expected object")
|
|
52
|
-
return data
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
def object_field(payload: dict[str, Any], key: str) -> dict[str, Any]:
|
|
56
|
-
value = payload.get(key)
|
|
57
|
-
return value if isinstance(value, dict) else {}
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
def verdict_field(payload: dict[str, Any], key: str) -> str | None:
|
|
61
|
-
value = payload.get(key)
|
|
62
|
-
return value if isinstance(value, str) else None
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
def number_field(payload: dict[str, Any], key: str) -> int | float | None:
|
|
66
|
-
value = payload.get(key)
|
|
67
|
-
if isinstance(value, bool):
|
|
68
|
-
return None
|
|
69
|
-
if not isinstance(value, (int, float)) or not math.isfinite(value):
|
|
70
|
-
return None
|
|
71
|
-
return value
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
def rank(verdict: str | None) -> int:
|
|
75
|
-
return VERDICT_RANK.get(verdict or "", -1)
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
def elapsed_ratio(pair_elapsed: Any, solo_elapsed: Any) -> float | None:
|
|
79
|
-
if not isinstance(pair_elapsed, (int, float)) or not isinstance(solo_elapsed, (int, float)):
|
|
80
|
-
return None
|
|
81
|
-
if pair_elapsed <= 0 or solo_elapsed <= 0:
|
|
82
|
-
return None
|
|
83
|
-
return pair_elapsed / solo_elapsed
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
def pair_trigger_failures(pair: dict[str, Any]) -> list[str]:
|
|
87
|
-
trigger = pair.get("pair_trigger")
|
|
88
|
-
if not isinstance(trigger, dict):
|
|
89
|
-
return ["pair_trigger missing or malformed"]
|
|
90
|
-
eligible = trigger.get("eligible")
|
|
91
|
-
reasons = trigger.get("reasons")
|
|
92
|
-
skipped_reason = trigger.get("skipped_reason")
|
|
93
|
-
if not isinstance(eligible, bool):
|
|
94
|
-
return ["pair_trigger.eligible malformed"]
|
|
95
|
-
if not isinstance(reasons, list) or not all(isinstance(reason, str) for reason in reasons):
|
|
96
|
-
return ["pair_trigger.reasons malformed"]
|
|
97
|
-
if skipped_reason is not None and not isinstance(skipped_reason, str):
|
|
98
|
-
return ["pair_trigger.skipped_reason malformed"]
|
|
99
|
-
if eligible is not True:
|
|
100
|
-
return ["pair_trigger not eligible"]
|
|
101
|
-
if not reasons:
|
|
102
|
-
return ["pair_trigger eligible with empty reasons"]
|
|
103
|
-
if not has_known_pair_trigger_reason(reasons):
|
|
104
|
-
return ["pair_trigger reasons missing known trigger reason"]
|
|
105
|
-
if not all_known_pair_trigger_reasons(reasons):
|
|
106
|
-
return ["pair_trigger reasons contain unknown trigger reason"]
|
|
107
|
-
if not has_canonical_pair_trigger_reason(reasons):
|
|
108
|
-
return ["pair_trigger reasons missing canonical trigger reason"]
|
|
109
|
-
if skipped_reason is not None:
|
|
110
|
-
return ["pair_trigger eligible with skipped_reason"]
|
|
111
|
-
return []
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
def pair_trigger_reasons(pair: dict[str, Any]) -> list[str]:
|
|
115
|
-
trigger = pair.get("pair_trigger")
|
|
116
|
-
if not isinstance(trigger, dict):
|
|
117
|
-
return []
|
|
118
|
-
reasons = trigger.get("reasons")
|
|
119
|
-
if not isinstance(reasons, list) or not all(isinstance(reason, str) for reason in reasons):
|
|
120
|
-
return []
|
|
121
|
-
return reasons
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
def infer_fixture_id(results_root: Path, run_id: str) -> str | None:
|
|
125
|
-
run_root = results_root / run_id
|
|
126
|
-
for arm in ("pair", "solo"):
|
|
127
|
-
input_path = run_root / arm / "input.md"
|
|
128
|
-
if not input_path.exists():
|
|
129
|
-
continue
|
|
130
|
-
match = re.search(r"docs/roadmap/phase-1/([^`\s]+)\.md", input_path.read_text())
|
|
131
|
-
if match:
|
|
132
|
-
return match.group(1)
|
|
133
|
-
return None
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
def transcript_failure_reason(results_root: Path, run_id: str, arm: str) -> str | None:
|
|
137
|
-
transcript_path = results_root / run_id / arm / "transcript.txt"
|
|
138
|
-
if not transcript_path.is_file():
|
|
139
|
-
return None
|
|
140
|
-
transcript = transcript_path.read_text(encoding="utf8", errors="replace")
|
|
141
|
-
if "You've hit your limit" in transcript:
|
|
142
|
-
return "provider_limit"
|
|
143
|
-
return None
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
def evaluate_run(
|
|
147
|
-
results_root: Path,
|
|
148
|
-
fixtures_root: Path,
|
|
149
|
-
run_id: str,
|
|
150
|
-
max_pair_solo_wall_ratio: float | None,
|
|
151
|
-
require_hypothesis_trigger: bool,
|
|
152
|
-
) -> dict[str, Any]:
|
|
153
|
-
try:
|
|
154
|
-
compare = load_compare(results_root, run_id)
|
|
155
|
-
except (FileNotFoundError, ValueError) as exc:
|
|
156
|
-
fixture_id = infer_fixture_id(results_root, run_id)
|
|
157
|
-
return {
|
|
158
|
-
"run_id": run_id,
|
|
159
|
-
"fixture_id": fixture_id,
|
|
160
|
-
"status": "FAIL",
|
|
161
|
-
"failures": [str(exc)],
|
|
162
|
-
"solo_verdict": None,
|
|
163
|
-
"pair_verdict": None,
|
|
164
|
-
"pair_mode": False,
|
|
165
|
-
"pair_trigger_missed": False,
|
|
166
|
-
"pair_verdict_lift": False,
|
|
167
|
-
"pair_internal_verdict_lift": False,
|
|
168
|
-
"pair_primary_verdict": None,
|
|
169
|
-
"pair_judge_verdict": None,
|
|
170
|
-
"solo_elapsed_seconds": None,
|
|
171
|
-
"pair_elapsed_seconds": None,
|
|
172
|
-
"pair_solo_wall_ratio": None,
|
|
173
|
-
"pair_severity_counts": {},
|
|
174
|
-
}
|
|
175
|
-
solo = object_field(compare, "solo")
|
|
176
|
-
pair = object_field(compare, "pair")
|
|
177
|
-
comparison = object_field(compare, "comparison")
|
|
178
|
-
solo_failure_reason = solo.get("invoke_failure_reason") or transcript_failure_reason(
|
|
179
|
-
results_root, run_id, "solo"
|
|
180
|
-
)
|
|
181
|
-
pair_failure_reason = pair.get("invoke_failure_reason") or transcript_failure_reason(
|
|
182
|
-
results_root, run_id, "pair"
|
|
183
|
-
)
|
|
184
|
-
|
|
185
|
-
failures: list[str] = []
|
|
186
|
-
if solo.get("timed_out"):
|
|
187
|
-
failures.append("solo timed out")
|
|
188
|
-
if pair.get("timed_out"):
|
|
189
|
-
failures.append("pair timed out")
|
|
190
|
-
if solo.get("invoke_failure"):
|
|
191
|
-
reason = solo.get("invoke_failure_reason")
|
|
192
|
-
failures.append(f"solo invoke failure ({reason})" if reason else "solo invoke failure")
|
|
193
|
-
if pair.get("invoke_failure"):
|
|
194
|
-
reason = pair.get("invoke_failure_reason")
|
|
195
|
-
failures.append(f"pair invoke failure ({reason})" if reason else "pair invoke failure")
|
|
196
|
-
if solo.get("environment_contamination"):
|
|
197
|
-
failures.append("solo environment contamination")
|
|
198
|
-
if pair.get("environment_contamination"):
|
|
199
|
-
failures.append("pair environment contamination")
|
|
200
|
-
if solo.get("disqualifier"):
|
|
201
|
-
failures.append("solo disqualifier")
|
|
202
|
-
if pair.get("disqualifier"):
|
|
203
|
-
failures.append("pair disqualifier")
|
|
204
|
-
if solo_failure_reason == "provider_limit":
|
|
205
|
-
failures.append("solo provider limit")
|
|
206
|
-
if pair_failure_reason == "provider_limit":
|
|
207
|
-
failures.append("pair provider limit")
|
|
208
|
-
if solo.get("invoke_exit") != 0:
|
|
209
|
-
failures.append(f"solo invoke_exit={solo.get('invoke_exit')}")
|
|
210
|
-
if pair.get("invoke_exit") != 0:
|
|
211
|
-
failures.append(f"pair invoke_exit={pair.get('invoke_exit')}")
|
|
212
|
-
pair_mode = pair.get("pair_mode") is True
|
|
213
|
-
if not pair_mode:
|
|
214
|
-
failures.append("pair_mode false")
|
|
215
|
-
failures.extend(pair_trigger_failures(pair))
|
|
216
|
-
trigger_reasons = pair_trigger_reasons(pair)
|
|
217
|
-
pair_trigger_missed = comparison.get("pair_trigger_missed") is True
|
|
218
|
-
if pair_trigger_missed:
|
|
219
|
-
failures.append("pair trigger missed")
|
|
220
|
-
external_lift = comparison.get("pair_verdict_lift") is True
|
|
221
|
-
internal_lift = comparison.get("pair_internal_verdict_lift") is True
|
|
222
|
-
if not (external_lift or internal_lift):
|
|
223
|
-
failures.append("pair verdict lift false")
|
|
224
|
-
|
|
225
|
-
solo_verdict = (
|
|
226
|
-
verdict_field(comparison, "solo_verdict")
|
|
227
|
-
or verdict_field(solo, "verify_verdict")
|
|
228
|
-
or verdict_field(solo, "terminal_verdict")
|
|
229
|
-
)
|
|
230
|
-
pair_verdict = (
|
|
231
|
-
verdict_field(comparison, "pair_verdict")
|
|
232
|
-
or verdict_field(pair, "verify_verdict")
|
|
233
|
-
or verdict_field(pair, "terminal_verdict")
|
|
234
|
-
)
|
|
235
|
-
pair_primary_verdict = verdict_field(comparison, "pair_primary_verdict")
|
|
236
|
-
pair_judge_verdict = verdict_field(comparison, "pair_judge_verdict")
|
|
237
|
-
if solo_verdict is None:
|
|
238
|
-
failures.append("solo verdict missing or malformed")
|
|
239
|
-
if pair_verdict is None:
|
|
240
|
-
failures.append("pair verdict missing or malformed")
|
|
241
|
-
if internal_lift and pair_primary_verdict is None:
|
|
242
|
-
failures.append("pair primary verdict missing or malformed")
|
|
243
|
-
if internal_lift and pair_judge_verdict is None:
|
|
244
|
-
failures.append("pair judge verdict missing or malformed")
|
|
245
|
-
if external_lift and rank(pair_verdict) <= rank(solo_verdict):
|
|
246
|
-
failures.append(f"pair verdict {pair_verdict} not stricter than solo {solo_verdict}")
|
|
247
|
-
if internal_lift and rank(pair_judge_verdict) <= rank(pair_primary_verdict):
|
|
248
|
-
failures.append(
|
|
249
|
-
f"pair_judge verdict {pair_judge_verdict} not stricter than primary {pair_primary_verdict}"
|
|
250
|
-
)
|
|
251
|
-
if rank(pair_verdict) < VERDICT_RANK["NEEDS_WORK"]:
|
|
252
|
-
failures.append(f"pair verdict {pair_verdict} is not verdict-binding")
|
|
253
|
-
pair_elapsed = number_field(pair, "elapsed_seconds")
|
|
254
|
-
solo_elapsed = number_field(solo, "elapsed_seconds")
|
|
255
|
-
wall_ratio = elapsed_ratio(pair_elapsed, solo_elapsed)
|
|
256
|
-
if max_pair_solo_wall_ratio is not None:
|
|
257
|
-
if wall_ratio is None:
|
|
258
|
-
failures.append("pair/solo wall ratio missing")
|
|
259
|
-
elif wall_ratio > max_pair_solo_wall_ratio:
|
|
260
|
-
failures.append(
|
|
261
|
-
f"pair/solo wall ratio {wall_ratio:.2f} exceeds {max_pair_solo_wall_ratio:.2f}"
|
|
262
|
-
)
|
|
263
|
-
fixture_id = infer_fixture_id(results_root, run_id)
|
|
264
|
-
if not fixture_id:
|
|
265
|
-
failures.append("fixture_id missing")
|
|
266
|
-
elif not (fixtures_root / fixture_id).is_dir():
|
|
267
|
-
failures.append(f"fixture_id not found: {fixture_id}")
|
|
268
|
-
elif (
|
|
269
|
-
require_hypothesis_trigger
|
|
270
|
-
and path_has_actionable_solo_headroom_hypothesis(fixtures_root / fixture_id / "spec.md")
|
|
271
|
-
and "spec.solo_headroom_hypothesis" not in trigger_reasons
|
|
272
|
-
):
|
|
273
|
-
failures.append("pair_trigger missing spec.solo_headroom_hypothesis")
|
|
274
|
-
|
|
275
|
-
return {
|
|
276
|
-
"run_id": run_id,
|
|
277
|
-
"fixture_id": fixture_id,
|
|
278
|
-
"status": "PASS" if not failures else "FAIL",
|
|
279
|
-
"failures": failures,
|
|
280
|
-
"solo_verdict": solo_verdict,
|
|
281
|
-
"pair_verdict": pair_verdict,
|
|
282
|
-
"pair_mode": pair_mode,
|
|
283
|
-
"pair_trigger_reasons": trigger_reasons,
|
|
284
|
-
"pair_trigger_has_canonical_reason": has_canonical_pair_trigger_reason(trigger_reasons),
|
|
285
|
-
"pair_trigger_missed": pair_trigger_missed,
|
|
286
|
-
"pair_verdict_lift": external_lift,
|
|
287
|
-
"pair_internal_verdict_lift": internal_lift,
|
|
288
|
-
"pair_primary_verdict": pair_primary_verdict,
|
|
289
|
-
"pair_judge_verdict": pair_judge_verdict,
|
|
290
|
-
"solo_elapsed_seconds": solo_elapsed,
|
|
291
|
-
"pair_elapsed_seconds": pair_elapsed,
|
|
292
|
-
"pair_solo_wall_ratio": wall_ratio,
|
|
293
|
-
"solo_failure_reason": solo_failure_reason,
|
|
294
|
-
"pair_failure_reason": pair_failure_reason,
|
|
295
|
-
"pair_severity_counts": object_field(pair, "severity_counts"),
|
|
296
|
-
}
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
def format_ratio(value: Any) -> str:
|
|
300
|
-
if isinstance(value, (int, float)):
|
|
301
|
-
return f"{value:.2f}x"
|
|
302
|
-
return "n/a"
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
def format_trigger_reasons(value: Any) -> str:
|
|
306
|
-
if not isinstance(value, list) or not all(isinstance(item, str) for item in value):
|
|
307
|
-
return ""
|
|
308
|
-
return ",".join(value)
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
def write_markdown(path: Path, report: dict[str, Any]) -> None:
|
|
312
|
-
lines = [
|
|
313
|
-
f"# Frozen VERIFY Gate — {report['run_ids_label']}",
|
|
314
|
-
"",
|
|
315
|
-
f"Verdict: **{report['verdict']}**",
|
|
316
|
-
"",
|
|
317
|
-
"Rule: every supplied run must be clean, each run must cover a distinct fixture, "
|
|
318
|
-
"gated pair VERIFY must fire, and pair must contribute a stricter "
|
|
319
|
-
"verdict-binding result than either the separate solo arm or the pair "
|
|
320
|
-
"run's own primary judge.",
|
|
321
|
-
"",
|
|
322
|
-
f"Minimum passing runs: {report['min_runs']}",
|
|
323
|
-
f"Max pair/solo wall ratio: {format_ratio(report.get('max_pair_solo_wall_ratio'))}",
|
|
324
|
-
f"Average pair/solo wall ratio: {format_ratio(report.get('avg_pair_solo_wall_ratio'))}",
|
|
325
|
-
"",
|
|
326
|
-
"| Run | Fixture | Solo VERIFY | Pair VERIFY | Pair mode | Triggers | Wall ratio | External lift | Internal lift | Status | Reason |",
|
|
327
|
-
"|---|---|---|---|---|---|---|---|---|---|---|",
|
|
328
|
-
]
|
|
329
|
-
for row in report["rows"]:
|
|
330
|
-
reason = "; ".join(row["failures"]) if row["failures"] else "ok"
|
|
331
|
-
lines.append(
|
|
332
|
-
f"| {row['run_id']} | {row.get('fixture_id') or 'unknown'} | "
|
|
333
|
-
f"{row['solo_verdict']} | {row['pair_verdict']} | "
|
|
334
|
-
f"{str(row['pair_mode']).lower()} | "
|
|
335
|
-
f"{format_trigger_reasons(row.get('pair_trigger_reasons'))} | "
|
|
336
|
-
f"{format_ratio(row.get('pair_solo_wall_ratio'))} | "
|
|
337
|
-
f"{str(row['pair_verdict_lift']).lower()} | "
|
|
338
|
-
f"{str(row['pair_internal_verdict_lift']).lower()} | "
|
|
339
|
-
f"{row['status']} | {reason} |"
|
|
340
|
-
)
|
|
341
|
-
lines.append("")
|
|
342
|
-
path.write_text("\n".join(lines), encoding="utf8")
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
def positive_int(value: str) -> int:
|
|
346
|
-
parsed = int(value)
|
|
347
|
-
if parsed <= 0:
|
|
348
|
-
raise argparse.ArgumentTypeError("value must be > 0")
|
|
349
|
-
return parsed
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
def positive_float(value: str) -> float:
|
|
353
|
-
parsed = float(value)
|
|
354
|
-
if parsed <= 0:
|
|
355
|
-
raise argparse.ArgumentTypeError("value must be > 0")
|
|
356
|
-
return parsed
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
def main() -> int:
|
|
360
|
-
parser = argparse.ArgumentParser()
|
|
361
|
-
parser.add_argument("--results-root", default="benchmark/auto-resolve/results")
|
|
362
|
-
parser.add_argument("--fixtures-root", default="benchmark/auto-resolve/fixtures")
|
|
363
|
-
parser.add_argument("--run-id", action="append", required=True)
|
|
364
|
-
parser.add_argument("--min-runs", type=positive_int, default=2)
|
|
365
|
-
parser.add_argument(
|
|
366
|
-
"--max-pair-solo-wall-ratio",
|
|
367
|
-
type=positive_float,
|
|
368
|
-
help="Optional efficiency cap. When set, every run must include elapsed_seconds and pair/solo wall ratio must not exceed this value.",
|
|
369
|
-
)
|
|
370
|
-
parser.add_argument(
|
|
371
|
-
"--require-hypothesis-trigger",
|
|
372
|
-
action="store_true",
|
|
373
|
-
help="require fixtures with actionable solo-headroom hypotheses to expose spec.solo_headroom_hypothesis in pair_trigger.reasons",
|
|
374
|
-
)
|
|
375
|
-
parser.add_argument("--out-json")
|
|
376
|
-
parser.add_argument("--out-md")
|
|
377
|
-
args = parser.parse_args()
|
|
378
|
-
|
|
379
|
-
results_root = Path(args.results_root)
|
|
380
|
-
fixtures_root = Path(args.fixtures_root)
|
|
381
|
-
rows = [
|
|
382
|
-
evaluate_run(
|
|
383
|
-
results_root,
|
|
384
|
-
fixtures_root,
|
|
385
|
-
run_id,
|
|
386
|
-
args.max_pair_solo_wall_ratio,
|
|
387
|
-
args.require_hypothesis_trigger,
|
|
388
|
-
)
|
|
389
|
-
for run_id in args.run_id
|
|
390
|
-
]
|
|
391
|
-
fixture_counts: dict[str, int] = {}
|
|
392
|
-
for row in rows:
|
|
393
|
-
fixture_id = row.get("fixture_id")
|
|
394
|
-
if fixture_id:
|
|
395
|
-
fixture_counts[fixture_id] = fixture_counts.get(fixture_id, 0) + 1
|
|
396
|
-
for row in rows:
|
|
397
|
-
fixture_id = row.get("fixture_id")
|
|
398
|
-
if fixture_id and fixture_counts.get(fixture_id, 0) > 1:
|
|
399
|
-
row["failures"].append(f"duplicate fixture_id={fixture_id}")
|
|
400
|
-
row["status"] = "FAIL"
|
|
401
|
-
passing = [row for row in rows if row["status"] == "PASS"]
|
|
402
|
-
verdict = "PASS" if len(passing) >= args.min_runs and len(passing) == len(rows) else "FAIL"
|
|
403
|
-
ratios = [
|
|
404
|
-
row["pair_solo_wall_ratio"]
|
|
405
|
-
for row in rows
|
|
406
|
-
if isinstance(row.get("pair_solo_wall_ratio"), (int, float))
|
|
407
|
-
and not isinstance(row.get("pair_solo_wall_ratio"), bool)
|
|
408
|
-
and math.isfinite(row["pair_solo_wall_ratio"])
|
|
409
|
-
and row["pair_solo_wall_ratio"] > 0
|
|
410
|
-
]
|
|
411
|
-
|
|
412
|
-
report = {
|
|
413
|
-
"run_ids_label": ", ".join(args.run_id),
|
|
414
|
-
"rule": "clean frozen diff; distinct fixture per run; gated pair VERIFY fires; pair contributes a stricter verdict-binding result; optional pair/solo wall-ratio cap",
|
|
415
|
-
"min_runs": args.min_runs,
|
|
416
|
-
"max_pair_solo_wall_ratio": args.max_pair_solo_wall_ratio,
|
|
417
|
-
"avg_pair_solo_wall_ratio": (sum(ratios) / len(ratios)) if ratios else None,
|
|
418
|
-
"verdict": verdict,
|
|
419
|
-
"runs_total": len(rows),
|
|
420
|
-
"runs_passed": len(passing),
|
|
421
|
-
"rows": rows,
|
|
422
|
-
}
|
|
423
|
-
|
|
424
|
-
if args.out_json:
|
|
425
|
-
Path(args.out_json).write_text(json.dumps(report, indent=2) + "\n", encoding="utf8")
|
|
426
|
-
if args.out_md:
|
|
427
|
-
write_markdown(Path(args.out_md), report)
|
|
428
|
-
|
|
429
|
-
print(json.dumps(report, indent=2))
|
|
430
|
-
return 0 if verdict == "PASS" else 1
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
if __name__ == "__main__":
|
|
434
|
-
raise SystemExit(main())
|