orizu 0.5.19 → 0.5.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +23 -0
- package/dist/archive-artifacts-cli.d.ts +50 -0
- package/dist/archive-artifacts-cli.d.ts.map +1 -0
- package/dist/artifact-archive.d.ts +48 -0
- package/dist/artifact-archive.d.ts.map +1 -0
- package/dist/artifact-pull.d.ts +22 -0
- package/dist/artifact-pull.d.ts.map +1 -0
- package/dist/banner.d.ts +3 -0
- package/dist/banner.d.ts.map +1 -0
- package/dist/connectors-cli.d.ts +31 -0
- package/dist/connectors-cli.d.ts.map +1 -0
- package/dist/credentials.d.ts +46 -0
- package/dist/credentials.d.ts.map +1 -0
- package/dist/csv.d.ts +49 -0
- package/dist/csv.d.ts.map +1 -0
- package/dist/dataset-download.d.ts +6 -0
- package/dist/dataset-download.d.ts.map +1 -0
- package/dist/dataset-edit-rows.d.ts +10 -0
- package/dist/dataset-edit-rows.d.ts.map +1 -0
- package/dist/dataset-upload-snapshot.d.ts +13 -0
- package/dist/dataset-upload-snapshot.d.ts.map +1 -0
- package/dist/daytona-slice-rehearsal.d.ts +89 -0
- package/dist/daytona-slice-rehearsal.d.ts.map +1 -0
- package/dist/daytona-slice.d.ts +106 -0
- package/dist/daytona-slice.d.ts.map +1 -0
- package/dist/deploy-key-merge-core.d.ts +121 -0
- package/dist/deploy-key-merge-core.d.ts.map +1 -0
- package/dist/diff-comments-cli.d.ts +12 -0
- package/dist/diff-comments-cli.d.ts.map +1 -0
- package/dist/diff-comments-cli.js +21 -2
- package/dist/egress-allowlist-cli.d.ts +23 -0
- package/dist/egress-allowlist-cli.d.ts.map +1 -0
- package/dist/egress-policy.d.ts +108 -0
- package/dist/egress-policy.d.ts.map +1 -0
- package/dist/error-response.d.ts +9 -0
- package/dist/error-response.d.ts.map +1 -0
- package/dist/file-parser.d.ts +5 -0
- package/dist/file-parser.d.ts.map +1 -0
- package/dist/gepa-engine-dispatch.d.ts +9 -0
- package/dist/gepa-engine-dispatch.d.ts.map +1 -0
- package/dist/gepa-engine-dispatch.js +307 -0
- package/dist/gepa-python-command.d.ts +6 -0
- package/dist/gepa-python-command.d.ts.map +1 -0
- package/dist/gepa-python-command.js +26 -0
- package/dist/gepa-python-paths.d.ts +6 -0
- package/dist/gepa-python-paths.d.ts.map +1 -0
- package/dist/gepa-python-paths.js +42 -0
- package/dist/git-credential.d.ts +69 -0
- package/dist/git-credential.d.ts.map +1 -0
- package/dist/git-recovery-environment.d.ts +31 -0
- package/dist/git-recovery-environment.d.ts.map +1 -0
- package/dist/github-setup.d.ts +122 -0
- package/dist/github-setup.d.ts.map +1 -0
- package/dist/global-flags.d.ts +12 -0
- package/dist/global-flags.d.ts.map +1 -0
- package/dist/help.d.ts +46 -0
- package/dist/help.d.ts.map +1 -0
- package/dist/help.js +93 -25
- package/dist/hosted-boot.d.ts +273 -0
- package/dist/hosted-boot.d.ts.map +1 -0
- package/dist/hosted-bootstrap-rehearsal.d.ts +86 -0
- package/dist/hosted-bootstrap-rehearsal.d.ts.map +1 -0
- package/dist/hosted-bootstrap.d.ts +188 -0
- package/dist/hosted-bootstrap.d.ts.map +1 -0
- package/dist/hosted-broker-server.d.ts +50 -0
- package/dist/hosted-broker-server.d.ts.map +1 -0
- package/dist/hosted-git-http-server.d.ts +36 -0
- package/dist/hosted-git-http-server.d.ts.map +1 -0
- package/dist/hosted-harness-claude.d.ts +195 -0
- package/dist/hosted-harness-claude.d.ts.map +1 -0
- package/dist/hosted-harness-opencode.d.ts +227 -0
- package/dist/hosted-harness-opencode.d.ts.map +1 -0
- package/dist/hosted-harness.d.ts +118 -0
- package/dist/hosted-harness.d.ts.map +1 -0
- package/dist/hosted-harvest.d.ts +68 -0
- package/dist/hosted-harvest.d.ts.map +1 -0
- package/dist/hosted-headless.d.ts +72 -0
- package/dist/hosted-headless.d.ts.map +1 -0
- package/dist/hosted-loop-lifecycle.d.ts +206 -0
- package/dist/hosted-loop-lifecycle.d.ts.map +1 -0
- package/dist/hosted-loop.d.ts +170 -0
- package/dist/hosted-loop.d.ts.map +1 -0
- package/dist/hosted-run-event-sink.d.ts +222 -0
- package/dist/hosted-run-event-sink.d.ts.map +1 -0
- package/dist/hosted-runtime-assets.d.ts +186 -0
- package/dist/hosted-runtime-assets.d.ts.map +1 -0
- package/dist/hosted-session-cli.d.ts +258 -0
- package/dist/hosted-session-cli.d.ts.map +1 -0
- package/dist/hosted-skill-staging.d.ts +73 -0
- package/dist/hosted-skill-staging.d.ts.map +1 -0
- package/dist/http.d.ts +8 -0
- package/dist/http.d.ts.map +1 -0
- package/dist/index.d.ts +22 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +119 -129
- package/dist/instruction-set-gepa-launch.d.ts +3 -0
- package/dist/instruction-set-gepa-launch.d.ts.map +1 -0
- package/dist/instruction-set-gepa-launch.js +15 -0
- package/dist/instruction-set-loader.d.ts +6 -0
- package/dist/instruction-set-loader.d.ts.map +1 -0
- package/dist/instruction-set-loader.js +59 -0
- package/dist/instruction-set-manifest.d.ts +14 -0
- package/dist/instruction-set-manifest.d.ts.map +1 -0
- package/dist/instruction-set-manifest.js +162 -0
- package/dist/instruction-sets-cli.d.ts +40 -0
- package/dist/instruction-sets-cli.d.ts.map +1 -0
- package/dist/instruction-sets-cli.js +361 -0
- package/dist/json-response.d.ts +4 -0
- package/dist/json-response.d.ts.map +1 -0
- package/dist/jsonl-stream.d.ts +8 -0
- package/dist/jsonl-stream.d.ts.map +1 -0
- package/dist/kill-switch-cli.d.ts +30 -0
- package/dist/kill-switch-cli.d.ts.map +1 -0
- package/dist/loopback-serve.d.ts +25 -0
- package/dist/loopback-serve.d.ts.map +1 -0
- package/dist/manifests-cli.d.ts +22 -0
- package/dist/manifests-cli.d.ts.map +1 -0
- package/dist/markdown-report-input.d.ts +7 -0
- package/dist/markdown-report-input.d.ts.map +1 -0
- package/dist/markdown-report-input.js +15 -1
- package/dist/merge-job.d.ts +155 -0
- package/dist/merge-job.d.ts.map +1 -0
- package/dist/model-configs-cli.d.ts +19 -0
- package/dist/model-configs-cli.d.ts.map +1 -0
- package/dist/model-configs-cli.js +104 -0
- package/dist/optimization-export-cli.d.ts +19 -0
- package/dist/optimization-export-cli.d.ts.map +1 -0
- package/dist/optimizations-list-cli.d.ts +20 -0
- package/dist/optimizations-list-cli.d.ts.map +1 -0
- package/dist/optimizations-promote-cli.d.ts +8 -0
- package/dist/optimizations-promote-cli.d.ts.map +1 -0
- package/dist/optimizations-promote-cli.js +34 -0
- package/dist/option-validation.d.ts +15 -0
- package/dist/option-validation.d.ts.map +1 -0
- package/dist/preview-runtime.d.ts +63 -0
- package/dist/preview-runtime.d.ts.map +1 -0
- package/dist/prompt-draft-push.d.ts +60 -0
- package/dist/prompt-draft-push.d.ts.map +1 -0
- package/dist/prompt-label-cli.d.ts +11 -0
- package/dist/prompt-label-cli.d.ts.map +1 -0
- package/dist/prompt-label-cli.js +29 -0
- package/dist/prompt-length-wire.d.ts +28 -0
- package/dist/prompt-length-wire.d.ts.map +1 -0
- package/dist/prompt-length-wire.js +2 -2
- package/dist/prompt-report-cli.d.ts +10 -0
- package/dist/prompt-report-cli.d.ts.map +1 -0
- package/dist/prompt-report-cli.js +2 -2
- package/dist/prompt-summary-table.d.ts +15 -0
- package/dist/prompt-summary-table.d.ts.map +1 -0
- package/dist/prompt-summary-table.js +6 -0
- package/dist/registration-tag-warning.d.ts +32 -0
- package/dist/registration-tag-warning.d.ts.map +1 -0
- package/dist/report-comments-cli.d.ts +16 -0
- package/dist/report-comments-cli.d.ts.map +1 -0
- package/dist/report-markdown-blankness.d.ts +2 -0
- package/dist/report-markdown-blankness.d.ts.map +1 -0
- package/dist/report-markdown-blankness.js +6 -0
- package/dist/report-replacement-warning.d.ts +17 -0
- package/dist/report-replacement-warning.d.ts.map +1 -0
- package/dist/report-replacement-warning.js +31 -0
- package/dist/repository-backup-core.d.ts +225 -0
- package/dist/repository-backup-core.d.ts.map +1 -0
- package/dist/repository-recovery-manifest.d.ts +83 -0
- package/dist/repository-recovery-manifest.d.ts.map +1 -0
- package/dist/run-event-digest.d.ts +74 -0
- package/dist/run-event-digest.d.ts.map +1 -0
- package/dist/runner-dir-verify.d.ts +66 -0
- package/dist/runner-dir-verify.d.ts.map +1 -0
- package/dist/runner-instruction-set-contract.d.ts +24 -0
- package/dist/runner-instruction-set-contract.d.ts.map +1 -0
- package/dist/runner-instruction-set-contract.js +50 -0
- package/dist/sandbox-hygiene.d.ts +45 -0
- package/dist/sandbox-hygiene.d.ts.map +1 -0
- package/dist/sandbox-provider.d.ts +193 -0
- package/dist/sandbox-provider.d.ts.map +1 -0
- package/dist/scorer-draft-push.d.ts +50 -0
- package/dist/scorer-draft-push.d.ts.map +1 -0
- package/dist/scorers-cli.d.ts +20 -0
- package/dist/scorers-cli.d.ts.map +1 -0
- package/dist/scorers-cli.js +22 -0
- package/dist/scorers-verify-parity-bridge.d.ts +16 -0
- package/dist/scorers-verify-parity-bridge.d.ts.map +1 -0
- package/dist/scorers-verify-parity-bridge.js +90 -0
- package/dist/scorers-verify-parity.d.ts +81 -0
- package/dist/scorers-verify-parity.d.ts.map +1 -0
- package/dist/scorers-verify-parity.js +502 -0
- package/dist/scores-accept-cli.d.ts +21 -0
- package/dist/scores-accept-cli.d.ts.map +1 -0
- package/dist/secret-redaction.d.ts +47 -0
- package/dist/secret-redaction.d.ts.map +1 -0
- package/dist/session-timeline.d.ts +54 -0
- package/dist/session-timeline.d.ts.map +1 -0
- package/dist/setup-prompt.d.ts +5 -0
- package/dist/setup-prompt.d.ts.map +1 -0
- package/dist/skill-installer.d.ts +68 -0
- package/dist/skill-installer.d.ts.map +1 -0
- package/dist/skilled-proposer-launch.d.ts +7 -0
- package/dist/skilled-proposer-launch.d.ts.map +1 -0
- package/dist/skilled-proposer-launch.js +60 -0
- package/dist/smoke.d.ts +102 -0
- package/dist/smoke.d.ts.map +1 -0
- package/dist/start-intent.d.ts +12 -0
- package/dist/start-intent.d.ts.map +1 -0
- package/dist/task-assignment-manifest.d.ts +15 -0
- package/dist/task-assignment-manifest.d.ts.map +1 -0
- package/dist/task-create-error.d.ts +18 -0
- package/dist/task-create-error.d.ts.map +1 -0
- package/dist/team-connectors-cli.d.ts +29 -0
- package/dist/team-connectors-cli.d.ts.map +1 -0
- package/dist/types.d.ts +39 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/vercel-sandbox-provider.d.ts +156 -0
- package/dist/vercel-sandbox-provider.d.ts.map +1 -0
- package/dist/workbench-cli.d.ts +233 -0
- package/dist/workbench-cli.d.ts.map +1 -0
- package/dist/workspace-sync.d.ts +207 -0
- package/dist/workspace-sync.d.ts.map +1 -0
- package/dist/workspace.d.ts +92 -0
- package/dist/workspace.d.ts.map +1 -0
- package/dist/zip-draft-push.d.ts +55 -0
- package/dist/zip-draft-push.d.ts.map +1 -0
- package/package.json +15 -2
- package/requirements/README.md +138 -0
- package/requirements/skilled-proposer.in +66 -0
- package/requirements/skilled-proposer.lock +265 -0
- package/scripts/build-cli-dist.mjs +30 -0
- package/scripts/ensure-skilled-proposer-venv.mjs +5 -0
- package/scripts/orizu-source-checkout.d.mts +1 -0
- package/scripts/orizu-source-checkout.mjs +10 -0
- package/scripts/refresh-skilled-proposer-lock.mjs +256 -0
- package/scripts/vendor-gepa-python.mjs +187 -4
- package/src/diff-comments-cli.ts +41 -3
- package/src/gepa-engine-dispatch.ts +340 -0
- package/src/gepa-python-command.ts +31 -0
- package/src/gepa-python-paths.ts +56 -0
- package/src/help.ts +95 -25
- package/src/index.ts +131 -166
- package/src/instruction-set-gepa-launch.ts +28 -0
- package/src/instruction-set-loader.ts +37 -0
- package/src/instruction-set-manifest.ts +120 -0
- package/src/instruction-sets-cli.ts +306 -0
- package/src/markdown-report-input.ts +19 -1
- package/src/model-configs-cli.ts +119 -0
- package/src/optimizations-promote-cli.ts +41 -0
- package/src/prompt-label-cli.ts +55 -0
- package/src/prompt-length-wire.ts +1 -1
- package/src/prompt-report-cli.ts +2 -2
- package/src/prompt-summary-table.ts +12 -0
- package/src/report-markdown-blankness.ts +6 -0
- package/src/report-replacement-warning.ts +35 -0
- package/src/runner-instruction-set-contract.ts +64 -0
- package/src/scorers-cli.ts +40 -0
- package/src/scorers-verify-parity-bridge.ts +90 -0
- package/src/scorers-verify-parity.ts +564 -0
- package/src/skilled-proposer-launch.ts +89 -0
- package/src/skilled-proposer-venv-manager.mjs +757 -0
- package/tsconfig.json +2 -0
- package/vendor/gepa-python/LICENSE +7 -0
- package/vendor/gepa-python/manifest.json +107 -0
- package/vendor/gepa-python/src/gepa/__init__.py +22 -0
- package/vendor/gepa-python/src/gepa/adapters/__init__.py +0 -0
- package/vendor/gepa-python/src/gepa/adapters/anymaths_adapter/__init__.py +1 -0
- package/vendor/gepa-python/src/gepa/adapters/anymaths_adapter/anymaths_adapter.py +174 -0
- package/vendor/gepa-python/src/gepa/adapters/confidence_adapter/__init__.py +26 -0
- package/vendor/gepa-python/src/gepa/adapters/confidence_adapter/confidence_adapter.py +618 -0
- package/vendor/gepa-python/src/gepa/adapters/confidence_adapter/scoring.py +206 -0
- package/vendor/gepa-python/src/gepa/adapters/default_adapter/__init__.py +0 -0
- package/vendor/gepa-python/src/gepa/adapters/default_adapter/default_adapter.py +206 -0
- package/vendor/gepa-python/src/gepa/adapters/dspy_adapter/__init__.py +0 -0
- package/vendor/gepa-python/src/gepa/adapters/dspy_adapter/dspy_adapter.py +525 -0
- package/vendor/gepa-python/src/gepa/adapters/dspy_adapter/instruction_proposal.py +500 -0
- package/vendor/gepa-python/src/gepa/adapters/dspy_full_program_adapter/__init__.py +6 -0
- package/vendor/gepa-python/src/gepa/adapters/dspy_full_program_adapter/dspy_program_proposal_signature.py +137 -0
- package/vendor/gepa-python/src/gepa/adapters/dspy_full_program_adapter/full_program_adapter.py +269 -0
- package/vendor/gepa-python/src/gepa/adapters/generic_rag_adapter/__init__.py +56 -0
- package/vendor/gepa-python/src/gepa/adapters/generic_rag_adapter/evaluation_metrics.py +226 -0
- package/vendor/gepa-python/src/gepa/adapters/generic_rag_adapter/generic_rag_adapter.py +496 -0
- package/vendor/gepa-python/src/gepa/adapters/generic_rag_adapter/rag_pipeline.py +238 -0
- package/vendor/gepa-python/src/gepa/adapters/generic_rag_adapter/vector_store_interface.py +212 -0
- package/vendor/gepa-python/src/gepa/adapters/generic_rag_adapter/vector_stores/__init__.py +2 -0
- package/vendor/gepa-python/src/gepa/adapters/generic_rag_adapter/vector_stores/chroma_store.py +196 -0
- package/vendor/gepa-python/src/gepa/adapters/generic_rag_adapter/vector_stores/lancedb_store.py +422 -0
- package/vendor/gepa-python/src/gepa/adapters/generic_rag_adapter/vector_stores/milvus_store.py +409 -0
- package/vendor/gepa-python/src/gepa/adapters/generic_rag_adapter/vector_stores/qdrant_store.py +368 -0
- package/vendor/gepa-python/src/gepa/adapters/generic_rag_adapter/vector_stores/weaviate_store.py +418 -0
- package/vendor/gepa-python/src/gepa/adapters/langchain_adapter/__init__.py +11 -0
- package/vendor/gepa-python/src/gepa/adapters/langchain_adapter/langchain_adapter.py +261 -0
- package/vendor/gepa-python/src/gepa/adapters/mcp_adapter/__init__.py +37 -0
- package/vendor/gepa-python/src/gepa/adapters/mcp_adapter/mcp_adapter.py +693 -0
- package/vendor/gepa-python/src/gepa/adapters/mcp_adapter/mcp_client.py +364 -0
- package/vendor/gepa-python/src/gepa/adapters/optimize_anything_adapter/optimize_anything_adapter.py +879 -0
- package/vendor/gepa-python/src/gepa/adapters/terminal_bench_adapter/__init__.py +0 -0
- package/vendor/gepa-python/src/gepa/adapters/terminal_bench_adapter/terminal_bench_adapter.py +217 -0
- package/vendor/gepa-python/src/gepa/api.py +468 -0
- package/vendor/gepa-python/src/gepa/core/__init__.py +0 -0
- package/vendor/gepa-python/src/gepa/core/adapter.py +227 -0
- package/vendor/gepa-python/src/gepa/core/callbacks.py +551 -0
- package/vendor/gepa-python/src/gepa/core/data_loader.py +74 -0
- package/vendor/gepa-python/src/gepa/core/engine.py +1025 -0
- package/vendor/gepa-python/src/gepa/core/result.py +271 -0
- package/vendor/gepa-python/src/gepa/core/state.py +706 -0
- package/vendor/gepa-python/src/gepa/examples/__init__.py +0 -0
- package/vendor/gepa-python/src/gepa/examples/aime.py +24 -0
- package/vendor/gepa-python/src/gepa/examples/anymaths-bench/eval_default.py +111 -0
- package/vendor/gepa-python/src/gepa/examples/anymaths-bench/train_anymaths.py +177 -0
- package/vendor/gepa-python/src/gepa/examples/mcp_adapter/__init__.py +4 -0
- package/vendor/gepa-python/src/gepa/examples/mcp_adapter/mcp_optimization_example.py +456 -0
- package/vendor/gepa-python/src/gepa/examples/rag_adapter/__init__.py +9 -0
- package/vendor/gepa-python/src/gepa/examples/rag_adapter/rag_optimization.py +824 -0
- package/vendor/gepa-python/src/gepa/examples/terminal-bench/train_terminus.py +161 -0
- package/vendor/gepa-python/src/gepa/gepa_utils.py +117 -0
- package/vendor/gepa-python/src/gepa/gskill/__init__.py +1 -0
- package/vendor/gepa-python/src/gepa/gskill/gskill/__init__.py +0 -0
- package/vendor/gepa-python/src/gepa/gskill/gskill/cost_tracker.py +194 -0
- package/vendor/gepa-python/src/gepa/gskill/gskill/evaluate/__init__.py +0 -0
- package/vendor/gepa-python/src/gepa/gskill/gskill/evaluate/claude_code.py +1117 -0
- package/vendor/gepa-python/src/gepa/gskill/gskill/evaluate/claude_code_skills.py +613 -0
- package/vendor/gepa-python/src/gepa/gskill/gskill/evaluate/mini_swe_agent.py +440 -0
- package/vendor/gepa-python/src/gepa/gskill/gskill/experiment_logger.py +367 -0
- package/vendor/gepa-python/src/gepa/gskill/gskill/swe_fitness_fn.py +209 -0
- package/vendor/gepa-python/src/gepa/gskill/gskill/swe_harness.py +352 -0
- package/vendor/gepa-python/src/gepa/gskill/gskill/train_optimize_anything.py +830 -0
- package/vendor/gepa-python/src/gepa/image.py +104 -0
- package/vendor/gepa-python/src/gepa/lm.py +261 -0
- package/vendor/gepa-python/src/gepa/logging/__init__.py +0 -0
- package/vendor/gepa-python/src/gepa/logging/experiment_tracker.py +457 -0
- package/vendor/gepa-python/src/gepa/logging/logger.py +75 -0
- package/vendor/gepa-python/src/gepa/logging/utils.py +130 -0
- package/vendor/gepa-python/src/gepa/optimize_anything.py +1701 -0
- package/vendor/gepa-python/src/gepa/proposer/__init__.py +0 -0
- package/vendor/gepa-python/src/gepa/proposer/base.py +53 -0
- package/vendor/gepa-python/src/gepa/proposer/merge.py +403 -0
- package/vendor/gepa-python/src/gepa/proposer/reflective_mutation/__init__.py +0 -0
- package/vendor/gepa-python/src/gepa/proposer/reflective_mutation/base.py +64 -0
- package/vendor/gepa-python/src/gepa/proposer/reflective_mutation/reflection_lm.py +178 -0
- package/vendor/gepa-python/src/gepa/proposer/reflective_mutation/reflective_mutation.py +641 -0
- package/vendor/gepa-python/src/gepa/py.typed +0 -0
- package/vendor/gepa-python/src/gepa/strategies/__init__.py +0 -0
- package/vendor/gepa-python/src/gepa/strategies/acceptance.py +66 -0
- package/vendor/gepa-python/src/gepa/strategies/batch_sampler.py +103 -0
- package/vendor/gepa-python/src/gepa/strategies/candidate_selector.py +82 -0
- package/vendor/gepa-python/src/gepa/strategies/component_selector.py +36 -0
- package/vendor/gepa-python/src/gepa/strategies/eval_policy.py +64 -0
- package/vendor/gepa-python/src/gepa/strategies/instruction_proposal.py +153 -0
- package/vendor/gepa-python/src/gepa/strategies/proposal_sampling.py +128 -0
- package/vendor/gepa-python/src/gepa/strategies/proposal_selection.py +84 -0
- package/vendor/gepa-python/src/gepa/utils/__init__.py +63 -0
- package/vendor/gepa-python/src/gepa/utils/code_execution.py +626 -0
- package/vendor/gepa-python/src/gepa/utils/stdio_capture.py +145 -0
- package/vendor/gepa-python/src/gepa/utils/stop_condition.py +230 -0
- package/vendor/gepa-python/src/gepa/visualization.py +359 -0
- package/vendor/orizu-gepa/pyproject.toml +18 -0
- package/vendor/orizu-gepa/src/orizu_gepa_connector/__init__.py +9 -0
- package/vendor/orizu-gepa/src/orizu_gepa_connector/__main__.py +5 -0
- package/vendor/orizu-gepa/src/orizu_gepa_connector/adapter.py +138 -0
- package/vendor/orizu-gepa/src/orizu_gepa_connector/callbacks.py +666 -0
- package/vendor/orizu-gepa/src/orizu_gepa_connector/cli.py +7 -0
- package/vendor/orizu-gepa/src/orizu_gepa_connector/engine.py +269 -0
- package/vendor/orizu-gepa/src/orizu_gepa_connector/instruction_set_loader.py +52 -0
- package/vendor/orizu-gepa/src/orizu_gepa_connector/preflight.py +64 -0
- package/vendor/orizu-gepa/src/orizu_gepa_connector/reflection.py +186 -0
- package/vendor/orizu-gepa/src/orizu_gepa_connector/runtime.py +721 -0
- package/vendor/orizu-gepa/src/orizu_gepa_connector/skilled_proposer_bridge.py +381 -0
- package/vendor/orizu-gepa/src/orizu_gepa_connector/stop_conditions.py +55 -0
- package/vendor/orizu-gepa/src/orizu_gepa_connector/translator.py +203 -0
- package/vendor/orizu-gepa-python/pyproject.toml +1 -1
- package/vendor/orizu-gepa-python/src/orizu_gepa/cli.py +1 -0
- package/vendor/orizu-gepa-python/src/orizu_gepa/client.py +52 -7
- package/vendor/orizu-gepa-python/src/orizu_gepa/local_log.py +52 -0
- package/vendor/orizu-gepa-python/src/orizu_gepa/optimizer.py +10 -5
- package/vendor/orizu-gepa-python/src/orizu_gepa/reflection.py +323 -68
- package/vendor/orizu-gepa-python/src/orizu_gepa/runner.py +207 -13
- package/vendor/skills/orizu-cli/SKILL.md +3 -1
- package/vendor/skills/orizu-cli/references/cli-reference.md +85 -1
- package/vendor/skills/orizu-cli/references/migrate-existing-gepa-setup.md +303 -0
- package/vendor/skills/orizu-cli/references/optimization-reports.md +1 -1
- package/vendor/skills/orizu-cli/references/optimization-with-gepa.md +26 -1
- package/vendor/skills/orizu-cli/references/prompt-control-plane.md +113 -10
|
@@ -0,0 +1,440 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Evaluate Mini SWE Agent on test set with and without skills.
|
|
3
|
+
|
|
4
|
+
This script runs the same agent used in train_optimize_anything.py on a test set
|
|
5
|
+
in two modes: (1) with learned skills, and (2) without skills (baseline).
|
|
6
|
+
Only tasks with non-empty problem statements are evaluated.
|
|
7
|
+
|
|
8
|
+
Usage:
|
|
9
|
+
python -m src.evaluate.mini_swe_agent \
|
|
10
|
+
--config gepa_results/logs/run_blevesearch_20260131_131944_d7b877_final/config.json \
|
|
11
|
+
--workers 16 \
|
|
12
|
+
--limit 100
|
|
13
|
+
"""
|
|
14
|
+
|
|
15
|
+
import argparse
|
|
16
|
+
import json
|
|
17
|
+
import threading
|
|
18
|
+
from concurrent.futures import ThreadPoolExecutor
|
|
19
|
+
from datetime import datetime
|
|
20
|
+
from pathlib import Path
|
|
21
|
+
from typing import Any
|
|
22
|
+
|
|
23
|
+
from dotenv import load_dotenv
|
|
24
|
+
|
|
25
|
+
load_dotenv()
|
|
26
|
+
|
|
27
|
+
# Import from existing modules - no duplication!
|
|
28
|
+
from gskill.swe_harness import SWEHarness
|
|
29
|
+
from gskill.train_optimize_anything import load_and_split_data
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
def evaluate_single_task(
|
|
33
|
+
task: dict[str, Any],
|
|
34
|
+
skills: str,
|
|
35
|
+
model_name: str,
|
|
36
|
+
task_idx: int,
|
|
37
|
+
total_tasks: int,
|
|
38
|
+
output_dir: Path,
|
|
39
|
+
harness_pool: list[SWEHarness],
|
|
40
|
+
harness_available: list[bool],
|
|
41
|
+
harness_lock: threading.Lock,
|
|
42
|
+
condition_label: str = "with_skills",
|
|
43
|
+
) -> dict[str, Any]:
|
|
44
|
+
"""Evaluate a single task and save detailed trace."""
|
|
45
|
+
|
|
46
|
+
# Get a harness from the pool
|
|
47
|
+
with harness_lock:
|
|
48
|
+
harness_idx = None
|
|
49
|
+
for i, available in enumerate(harness_available):
|
|
50
|
+
if available:
|
|
51
|
+
harness_available[i] = False
|
|
52
|
+
harness_idx = i
|
|
53
|
+
break
|
|
54
|
+
|
|
55
|
+
if harness_idx is None:
|
|
56
|
+
raise RuntimeError("No harness available")
|
|
57
|
+
|
|
58
|
+
harness = harness_pool[harness_idx]
|
|
59
|
+
instance_id = task.get("instance_id", "unknown")
|
|
60
|
+
problem_statement = task.get("problem_statement", "")
|
|
61
|
+
|
|
62
|
+
result = {
|
|
63
|
+
"instance_id": instance_id,
|
|
64
|
+
"problem_statement": problem_statement,
|
|
65
|
+
"problem_statement_length": len(problem_statement),
|
|
66
|
+
"has_problem_statement": bool(problem_statement.strip()),
|
|
67
|
+
"patch": "",
|
|
68
|
+
"messages": [], # Structured messages list
|
|
69
|
+
"passed": False,
|
|
70
|
+
"status": "",
|
|
71
|
+
"test_output": "",
|
|
72
|
+
"error": None,
|
|
73
|
+
"steps": 0,
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
result["condition"] = condition_label
|
|
77
|
+
|
|
78
|
+
try:
|
|
79
|
+
print(f"[{condition_label}] [{task_idx + 1}/{total_tasks}] {instance_id[:50]}...", flush=True)
|
|
80
|
+
print(f" Problem statement length: {len(problem_statement)} chars", flush=True)
|
|
81
|
+
|
|
82
|
+
# 1. Setup Docker Container
|
|
83
|
+
harness.setup_task(task_instance=task)
|
|
84
|
+
|
|
85
|
+
# 2. Run Agent
|
|
86
|
+
patch, _, metrics = harness.run_agent(problem_statement, skills, model_name=model_name)
|
|
87
|
+
|
|
88
|
+
result["patch"] = patch
|
|
89
|
+
result["messages"] = metrics.get("messages", []) # Structured messages
|
|
90
|
+
result["steps"] = metrics.get("steps", 0)
|
|
91
|
+
|
|
92
|
+
# 3. Verify with tests
|
|
93
|
+
has_patch = len(patch.strip()) > 0
|
|
94
|
+
|
|
95
|
+
if not has_patch:
|
|
96
|
+
result["passed"] = False
|
|
97
|
+
result["status"] = "no_patch"
|
|
98
|
+
result["test_output"] = "No patch to test."
|
|
99
|
+
else:
|
|
100
|
+
# Test FAIL_TO_PASS
|
|
101
|
+
f2p_passed, f2p_output = harness.verify_with_patch(patch, f2p_only=True)
|
|
102
|
+
result["test_output"] = f"=== FAIL_TO_PASS ===\n{f2p_output}"
|
|
103
|
+
|
|
104
|
+
if not f2p_passed:
|
|
105
|
+
result["passed"] = False
|
|
106
|
+
result["status"] = "f2p_failed"
|
|
107
|
+
else:
|
|
108
|
+
# Test PASS_TO_PASS
|
|
109
|
+
p2p_passed, p2p_output = harness.verify_with_patch(patch, f2p_only=False)
|
|
110
|
+
result["test_output"] += f"\n\n=== FULL SUITE ===\n{p2p_output}"
|
|
111
|
+
|
|
112
|
+
if p2p_passed:
|
|
113
|
+
result["passed"] = True
|
|
114
|
+
result["status"] = "all_passed"
|
|
115
|
+
else:
|
|
116
|
+
result["passed"] = False
|
|
117
|
+
result["status"] = "p2p_failed"
|
|
118
|
+
|
|
119
|
+
status_symbol = "✓" if result["passed"] else "✗"
|
|
120
|
+
print(f" {status_symbol} {result['status']} (steps={result['steps']}, patch={len(patch)} chars)", flush=True)
|
|
121
|
+
|
|
122
|
+
except Exception as e:
|
|
123
|
+
import traceback
|
|
124
|
+
|
|
125
|
+
result["error"] = str(e)
|
|
126
|
+
result["status"] = "error"
|
|
127
|
+
result["messages"] = [{"role": "error", "content": traceback.format_exc()}]
|
|
128
|
+
print(f" ✗ ERROR: {str(e)[:100]}", flush=True)
|
|
129
|
+
|
|
130
|
+
finally:
|
|
131
|
+
try:
|
|
132
|
+
harness.cleanup()
|
|
133
|
+
except Exception:
|
|
134
|
+
pass
|
|
135
|
+
with harness_lock:
|
|
136
|
+
harness_available[harness_idx] = True
|
|
137
|
+
|
|
138
|
+
# Save individual trace under condition-specific subdirectory
|
|
139
|
+
trace_file = output_dir / "traces" / condition_label / f"{instance_id}.json"
|
|
140
|
+
trace_file.parent.mkdir(parents=True, exist_ok=True)
|
|
141
|
+
with open(trace_file, "w") as f:
|
|
142
|
+
json.dump(result, f, indent=2)
|
|
143
|
+
|
|
144
|
+
# Also save human-readable markdown
|
|
145
|
+
md_file = output_dir / "traces" / condition_label / f"{instance_id}.md"
|
|
146
|
+
save_trace_as_markdown(result, md_file)
|
|
147
|
+
|
|
148
|
+
return result
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
def save_trace_as_markdown(result: dict[str, Any], filepath: Path):
|
|
152
|
+
"""Save trace as human-readable markdown using structured messages."""
|
|
153
|
+
md = []
|
|
154
|
+
md.append(f"# Agent Trace: {result['instance_id']}")
|
|
155
|
+
md.append("")
|
|
156
|
+
md.append("## Summary")
|
|
157
|
+
md.append(f"- **Instance ID**: `{result['instance_id']}`")
|
|
158
|
+
md.append(f"- **Problem Statement Length**: {result['problem_statement_length']} chars")
|
|
159
|
+
md.append(f"- **Has Problem Statement**: {'Yes' if result['has_problem_statement'] else '**NO (EMPTY)**'}")
|
|
160
|
+
md.append(f"- **Condition**: `{result.get('condition', 'unknown')}`")
|
|
161
|
+
md.append(f"- **Status**: `{result['status']}`")
|
|
162
|
+
md.append(f"- **Passed**: {'✓ Yes' if result['passed'] else '✗ No'}")
|
|
163
|
+
md.append(f"- **Steps**: {result['steps']}")
|
|
164
|
+
md.append(f"- **Patch Size**: {len(result['patch'])} chars")
|
|
165
|
+
md.append(f"- **Total Messages**: {len(result.get('messages', []))}")
|
|
166
|
+
md.append("")
|
|
167
|
+
|
|
168
|
+
md.append("## Problem Statement")
|
|
169
|
+
md.append("```")
|
|
170
|
+
if result["problem_statement"].strip():
|
|
171
|
+
md.append(result["problem_statement"][:2000])
|
|
172
|
+
if len(result["problem_statement"]) > 2000:
|
|
173
|
+
md.append("... (truncated)")
|
|
174
|
+
else:
|
|
175
|
+
md.append("(EMPTY - no problem statement provided)")
|
|
176
|
+
md.append("```")
|
|
177
|
+
md.append("")
|
|
178
|
+
|
|
179
|
+
md.append("## Agent Conversation")
|
|
180
|
+
md.append("")
|
|
181
|
+
|
|
182
|
+
# Use structured messages if available
|
|
183
|
+
messages = result.get("messages", [])
|
|
184
|
+
if messages:
|
|
185
|
+
for idx, msg in enumerate(messages, 1):
|
|
186
|
+
role = msg.get("role", "unknown").upper()
|
|
187
|
+
content = msg.get("content", "")
|
|
188
|
+
|
|
189
|
+
md.append(f"### Message {idx}: {role}")
|
|
190
|
+
md.append("")
|
|
191
|
+
|
|
192
|
+
# Truncate very long content
|
|
193
|
+
if len(content) > 3000:
|
|
194
|
+
content = content[:1500] + "\n\n... (truncated) ...\n\n" + content[-1000:]
|
|
195
|
+
|
|
196
|
+
md.append(content.strip())
|
|
197
|
+
md.append("")
|
|
198
|
+
md.append("---")
|
|
199
|
+
md.append("")
|
|
200
|
+
else:
|
|
201
|
+
md.append("*(No structured messages available)*")
|
|
202
|
+
md.append("")
|
|
203
|
+
|
|
204
|
+
md.append("## Patch")
|
|
205
|
+
md.append("```diff")
|
|
206
|
+
if result["patch"].strip():
|
|
207
|
+
md.append(result["patch"][:3000])
|
|
208
|
+
if len(result["patch"]) > 3000:
|
|
209
|
+
md.append("... (truncated)")
|
|
210
|
+
else:
|
|
211
|
+
md.append("(no patch generated)")
|
|
212
|
+
md.append("```")
|
|
213
|
+
md.append("")
|
|
214
|
+
|
|
215
|
+
md.append("## Test Output")
|
|
216
|
+
md.append("```")
|
|
217
|
+
md.append(result["test_output"][:2000] if result["test_output"] else "(none)")
|
|
218
|
+
md.append("```")
|
|
219
|
+
|
|
220
|
+
with open(filepath, "w") as f:
|
|
221
|
+
f.write("\n".join(md))
|
|
222
|
+
|
|
223
|
+
|
|
224
|
+
def main():
|
|
225
|
+
parser = argparse.ArgumentParser(description="Evaluate Mini SWE Agent with trace logging")
|
|
226
|
+
parser.add_argument("--config", required=True, help="Path to GEPA run config.json")
|
|
227
|
+
parser.add_argument("--workers", type=int, default=8, help="Number of parallel workers")
|
|
228
|
+
parser.add_argument("--limit", type=int, default=None, help="Limit number of tasks (default: all)")
|
|
229
|
+
parser.add_argument("--model", default=None, help="Override model (default: from config)")
|
|
230
|
+
parser.add_argument("--output-dir", default=None, help="Output directory (default: auto)")
|
|
231
|
+
args = parser.parse_args()
|
|
232
|
+
|
|
233
|
+
# Load config
|
|
234
|
+
config_path = Path(args.config)
|
|
235
|
+
with open(config_path) as f:
|
|
236
|
+
config = json.load(f)
|
|
237
|
+
|
|
238
|
+
repo = config["repo"]
|
|
239
|
+
train_size = config["train_size"]
|
|
240
|
+
val_size = config["val_size"]
|
|
241
|
+
test_size = config["test_size"]
|
|
242
|
+
seed = config["seed"]
|
|
243
|
+
model_name = args.model or config.get("model", "gpt-5-mini")
|
|
244
|
+
|
|
245
|
+
# Load best skills
|
|
246
|
+
skills_path = config_path.parent / "prompts" / "best_skills.txt"
|
|
247
|
+
if skills_path.exists():
|
|
248
|
+
skills = skills_path.read_text()
|
|
249
|
+
print(f"Loaded skills from: {skills_path}")
|
|
250
|
+
print(f"Skills length: {len(skills)} chars")
|
|
251
|
+
else:
|
|
252
|
+
skills = ""
|
|
253
|
+
print("WARNING: No best_skills.txt found, running with empty skills")
|
|
254
|
+
|
|
255
|
+
# Setup output directory
|
|
256
|
+
run_id = config.get("run_id", "unknown")
|
|
257
|
+
timestamp = datetime.now().strftime("%Y%m%d_%H%M%S")
|
|
258
|
+
output_dir = Path(args.output_dir) if args.output_dir else Path(f"gepa_results/mini_swe_eval/{run_id}_{timestamp}")
|
|
259
|
+
output_dir.mkdir(parents=True, exist_ok=True)
|
|
260
|
+
|
|
261
|
+
print(f"\n{'=' * 70}")
|
|
262
|
+
print("Mini SWE Agent Evaluation")
|
|
263
|
+
print(f"{'=' * 70}")
|
|
264
|
+
print(f"Config: {config_path}")
|
|
265
|
+
print(f"Repo: {repo}")
|
|
266
|
+
print(f"Model: {model_name}")
|
|
267
|
+
print(f"Workers: {args.workers}")
|
|
268
|
+
print(f"Output: {output_dir}")
|
|
269
|
+
print(f"{'=' * 70}\n")
|
|
270
|
+
|
|
271
|
+
# Load test data using the same function as training
|
|
272
|
+
_, _, test_data = load_and_split_data(repo, train_size, val_size, test_size, seed)
|
|
273
|
+
|
|
274
|
+
# Filter to only tasks with non-empty problem statements
|
|
275
|
+
all_count = len(test_data)
|
|
276
|
+
test_data = [t for t in test_data if t.get("problem_statement", "").strip()]
|
|
277
|
+
print(f"Loaded {all_count} test tasks, {len(test_data)} have non-empty problem statements")
|
|
278
|
+
print(f"Filtered out {all_count - len(test_data)} tasks with empty problem_statement")
|
|
279
|
+
|
|
280
|
+
if args.limit:
|
|
281
|
+
test_data = test_data[: args.limit]
|
|
282
|
+
|
|
283
|
+
print(f"Evaluating {len(test_data)} tasks")
|
|
284
|
+
print()
|
|
285
|
+
|
|
286
|
+
# Save config
|
|
287
|
+
eval_config = {
|
|
288
|
+
"source_config": str(config_path),
|
|
289
|
+
"repo": repo,
|
|
290
|
+
"model": model_name,
|
|
291
|
+
"workers": args.workers,
|
|
292
|
+
"total_test_tasks": all_count,
|
|
293
|
+
"filtered_test_tasks": len(test_data),
|
|
294
|
+
"skills_length": len(skills),
|
|
295
|
+
"conditions": ["with_skills", "without_skills"],
|
|
296
|
+
"timestamp": timestamp,
|
|
297
|
+
}
|
|
298
|
+
with open(output_dir / "eval_config.json", "w") as f:
|
|
299
|
+
json.dump(eval_config, f, indent=2)
|
|
300
|
+
|
|
301
|
+
# Save skills
|
|
302
|
+
with open(output_dir / "skills.txt", "w") as f:
|
|
303
|
+
f.write(skills)
|
|
304
|
+
|
|
305
|
+
# Define the two evaluation conditions
|
|
306
|
+
conditions = [
|
|
307
|
+
("with_skills", skills),
|
|
308
|
+
("without_skills", ""),
|
|
309
|
+
]
|
|
310
|
+
|
|
311
|
+
all_condition_results = {}
|
|
312
|
+
|
|
313
|
+
for condition_label, condition_skills in conditions:
|
|
314
|
+
print(f"\n{'=' * 70}")
|
|
315
|
+
print(f"CONDITION: {condition_label}")
|
|
316
|
+
print(
|
|
317
|
+
f" Skills: {'yes (' + str(len(condition_skills)) + ' chars)' if condition_skills else 'none (baseline)'}"
|
|
318
|
+
)
|
|
319
|
+
print(f" Tasks: {len(test_data)}")
|
|
320
|
+
print(f"{'=' * 70}\n")
|
|
321
|
+
|
|
322
|
+
# Create harness pool
|
|
323
|
+
harness_pool = [SWEHarness() for _ in range(args.workers)]
|
|
324
|
+
harness_available = [True] * args.workers
|
|
325
|
+
harness_lock = threading.Lock()
|
|
326
|
+
|
|
327
|
+
# Evaluate tasks in parallel
|
|
328
|
+
results = []
|
|
329
|
+
with ThreadPoolExecutor(max_workers=args.workers) as executor:
|
|
330
|
+
futures = []
|
|
331
|
+
for idx, task in enumerate(test_data):
|
|
332
|
+
future = executor.submit(
|
|
333
|
+
evaluate_single_task,
|
|
334
|
+
task,
|
|
335
|
+
condition_skills,
|
|
336
|
+
model_name,
|
|
337
|
+
idx,
|
|
338
|
+
len(test_data),
|
|
339
|
+
output_dir,
|
|
340
|
+
harness_pool,
|
|
341
|
+
harness_available,
|
|
342
|
+
harness_lock,
|
|
343
|
+
condition_label,
|
|
344
|
+
)
|
|
345
|
+
futures.append(future)
|
|
346
|
+
|
|
347
|
+
for future in futures:
|
|
348
|
+
results.append(future.result())
|
|
349
|
+
|
|
350
|
+
all_condition_results[condition_label] = results
|
|
351
|
+
|
|
352
|
+
# Print condition summary
|
|
353
|
+
total = len(results)
|
|
354
|
+
passed = sum(1 for r in results if r["passed"])
|
|
355
|
+
print(f"\n {condition_label}: {passed}/{total} ({100 * passed / total:.1f}%)")
|
|
356
|
+
|
|
357
|
+
# Print comparison summary
|
|
358
|
+
print(f"\n{'=' * 70}")
|
|
359
|
+
print("EVALUATION COMPLETE - COMPARISON")
|
|
360
|
+
print(f"{'=' * 70}")
|
|
361
|
+
|
|
362
|
+
ws_total = len(all_condition_results["with_skills"])
|
|
363
|
+
ws_passed = sum(1 for r in all_condition_results["with_skills"] if r["passed"])
|
|
364
|
+
wo_total = len(all_condition_results["without_skills"])
|
|
365
|
+
wo_passed = sum(1 for r in all_condition_results["without_skills"] if r["passed"])
|
|
366
|
+
|
|
367
|
+
print(f" With skills pass rate: {ws_passed}/{ws_total} ({100 * ws_passed / ws_total:.1f}%)")
|
|
368
|
+
print(f" Without skills pass rate: {wo_passed}/{wo_total} ({100 * wo_passed / wo_total:.1f}%)")
|
|
369
|
+
|
|
370
|
+
# Per-task comparison
|
|
371
|
+
with_skills_results = {r["instance_id"]: r for r in all_condition_results["with_skills"]}
|
|
372
|
+
without_skills_results = {r["instance_id"]: r for r in all_condition_results["without_skills"]}
|
|
373
|
+
|
|
374
|
+
skills_only = 0 # passed with skills but not without
|
|
375
|
+
baseline_only = 0 # passed without skills but not with
|
|
376
|
+
both_passed = 0
|
|
377
|
+
neither_passed = 0
|
|
378
|
+
|
|
379
|
+
for iid in with_skills_results:
|
|
380
|
+
ws = with_skills_results[iid]["passed"]
|
|
381
|
+
wo = without_skills_results[iid]["passed"]
|
|
382
|
+
if ws and wo:
|
|
383
|
+
both_passed += 1
|
|
384
|
+
elif ws and not wo:
|
|
385
|
+
skills_only += 1
|
|
386
|
+
elif not ws and wo:
|
|
387
|
+
baseline_only += 1
|
|
388
|
+
else:
|
|
389
|
+
neither_passed += 1
|
|
390
|
+
|
|
391
|
+
total = len(with_skills_results)
|
|
392
|
+
print()
|
|
393
|
+
print(f" Both passed: {both_passed:4d} ({100 * both_passed / total:.1f}%)")
|
|
394
|
+
print(f" Skills only: {skills_only:4d} ({100 * skills_only / total:.1f}%)")
|
|
395
|
+
print(f" Baseline only: {baseline_only:4d} ({100 * baseline_only / total:.1f}%)")
|
|
396
|
+
print(f" Neither passed: {neither_passed:4d} ({100 * neither_passed / total:.1f}%)")
|
|
397
|
+
print(f"{'=' * 70}")
|
|
398
|
+
|
|
399
|
+
# Save summary
|
|
400
|
+
summary = {
|
|
401
|
+
"total_tasks": total,
|
|
402
|
+
"conditions": {},
|
|
403
|
+
"comparison": {
|
|
404
|
+
"both_passed": both_passed,
|
|
405
|
+
"skills_only": skills_only,
|
|
406
|
+
"baseline_only": baseline_only,
|
|
407
|
+
"neither_passed": neither_passed,
|
|
408
|
+
},
|
|
409
|
+
"per_task": [],
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
for condition_label, results in all_condition_results.items():
|
|
413
|
+
passed = sum(1 for r in results if r["passed"])
|
|
414
|
+
summary["conditions"][condition_label] = {
|
|
415
|
+
"total": len(results),
|
|
416
|
+
"passed": passed,
|
|
417
|
+
"pass_rate": passed / len(results) if results else 0,
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
for iid in with_skills_results:
|
|
421
|
+
summary["per_task"].append(
|
|
422
|
+
{
|
|
423
|
+
"instance_id": iid,
|
|
424
|
+
"with_skills_passed": with_skills_results[iid]["passed"],
|
|
425
|
+
"with_skills_status": with_skills_results[iid]["status"],
|
|
426
|
+
"with_skills_steps": with_skills_results[iid]["steps"],
|
|
427
|
+
"without_skills_passed": without_skills_results[iid]["passed"],
|
|
428
|
+
"without_skills_status": without_skills_results[iid]["status"],
|
|
429
|
+
"without_skills_steps": without_skills_results[iid]["steps"],
|
|
430
|
+
}
|
|
431
|
+
)
|
|
432
|
+
|
|
433
|
+
with open(output_dir / "summary.json", "w") as f:
|
|
434
|
+
json.dump(summary, f, indent=2)
|
|
435
|
+
|
|
436
|
+
print(f"\nResults saved to: {output_dir}")
|
|
437
|
+
|
|
438
|
+
|
|
439
|
+
if __name__ == "__main__":
|
|
440
|
+
main()
|