@jinn-network/client 0.1.8 → 0.1.9-canary.144d87d2
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 +6 -0
- package/dist/adapters/mech/adapter.d.ts +21 -1
- package/dist/adapters/mech/adapter.js +77 -10
- package/dist/adapters/mech/adapter.js.map +1 -1
- package/dist/adapters/mech/contracts.js +62 -28
- package/dist/adapters/mech/contracts.js.map +1 -1
- package/dist/adapters/mech/safe-revert.d.ts +4 -0
- package/dist/adapters/mech/safe-revert.js +5 -1
- package/dist/adapters/mech/safe-revert.js.map +1 -1
- package/dist/adapters/mech/safe.js +5 -1
- package/dist/adapters/mech/safe.js.map +1 -1
- package/dist/adapters/mech/verdict-code.js +1 -1
- package/dist/adapters/mech/verdict-code.js.map +1 -1
- package/dist/api/bootstrap-endpoint.d.ts +1 -0
- package/dist/api/bootstrap-endpoint.js +1 -0
- package/dist/api/bootstrap-endpoint.js.map +1 -1
- package/dist/api/discovery-endpoint.d.ts +1 -0
- package/dist/api/discovery-endpoint.js +24 -0
- package/dist/api/discovery-endpoint.js.map +1 -1
- package/dist/api/fleet-build.d.ts +1 -7
- package/dist/api/fleet-build.js +0 -7
- package/dist/api/fleet-build.js.map +1 -1
- package/dist/api/gather-status.d.ts +8 -2
- package/dist/api/gather-status.js +29 -117
- package/dist/api/gather-status.js.map +1 -1
- package/dist/api/loop-completion-build.d.ts +79 -0
- package/dist/api/loop-completion-build.js +155 -0
- package/dist/api/loop-completion-build.js.map +1 -0
- package/dist/api/operator-artifacts-endpoint.js +1 -1
- package/dist/api/operator-artifacts-endpoint.js.map +1 -1
- package/dist/api/peers.js +2 -0
- package/dist/api/peers.js.map +1 -1
- package/dist/api/setup-endpoints.d.ts +32 -0
- package/dist/api/setup-endpoints.js +94 -24
- package/dist/api/setup-endpoints.js.map +1 -1
- package/dist/api/solvernets-endpoints.js +4 -1
- package/dist/api/solvernets-endpoints.js.map +1 -1
- package/dist/api/status-build.d.ts +43 -33
- package/dist/api/status-build.js +3 -26
- package/dist/api/status-build.js.map +1 -1
- package/dist/api/status-rollup-build.d.ts +0 -4
- package/dist/api/status-rollup-build.js +0 -4
- package/dist/api/status-rollup-build.js.map +1 -1
- package/dist/api/stop-hook.d.ts +1 -1
- package/dist/api/stop-hook.js +1 -1
- package/dist/api/stop-hook.js.map +1 -1
- package/dist/build-info.json +4 -4
- package/dist/build-meta.json +1 -1
- package/dist/cli/commands/codedigest-revert-check.js +6 -2
- package/dist/cli/commands/codedigest-revert-check.js.map +1 -1
- package/dist/cli/commands/doctor.d.ts +3 -0
- package/dist/cli/commands/doctor.js +37 -2
- package/dist/cli/commands/doctor.js.map +1 -1
- package/dist/cli/commands/eval.d.ts +87 -0
- package/dist/cli/commands/eval.js +481 -0
- package/dist/cli/commands/eval.js.map +1 -0
- package/dist/cli/commands/rewards.d.ts +2 -0
- package/dist/cli/commands/rewards.js +30 -3
- package/dist/cli/commands/rewards.js.map +1 -1
- package/dist/cli/commands/solver-nets.js +68 -0
- package/dist/cli/commands/solver-nets.js.map +1 -1
- package/dist/cli/commands/status.js +0 -1
- package/dist/cli/commands/status.js.map +1 -1
- package/dist/cli/index.js +2 -0
- package/dist/cli/index.js.map +1 -1
- package/dist/config.d.ts +102 -15
- package/dist/config.js +166 -19
- package/dist/config.js.map +1 -1
- package/dist/daemon/ai-units-gate.d.ts +6 -6
- package/dist/daemon/ai-units-gate.js +11 -10
- package/dist/daemon/ai-units-gate.js.map +1 -1
- package/dist/daemon/balance-topup-loop.js +3 -0
- package/dist/daemon/balance-topup-loop.js.map +1 -1
- package/dist/daemon/checkpoint-loop.js +2 -2
- package/dist/daemon/creator.d.ts +1 -0
- package/dist/daemon/creator.js +26 -14
- package/dist/daemon/creator.js.map +1 -1
- package/dist/daemon/daemon.d.ts +15 -0
- package/dist/daemon/daemon.js +78 -22
- package/dist/daemon/daemon.js.map +1 -1
- package/dist/daemon/eviction-loop.d.ts +7 -0
- package/dist/daemon/eviction-loop.js +19 -3
- package/dist/daemon/eviction-loop.js.map +1 -1
- package/dist/daemon/jinn-claim-loop.js +3 -0
- package/dist/daemon/jinn-claim-loop.js.map +1 -1
- package/dist/daemon/join-applier.d.ts +35 -0
- package/dist/daemon/join-applier.js +49 -0
- package/dist/daemon/join-applier.js.map +1 -0
- package/dist/daemon/loop-heartbeat.d.ts +34 -0
- package/dist/daemon/loop-heartbeat.js +39 -0
- package/dist/daemon/loop-heartbeat.js.map +1 -0
- package/dist/daemon/reward-claim-loop.js +4 -1
- package/dist/daemon/reward-claim-loop.js.map +1 -1
- package/dist/daemon/watchdog-loop.d.ts +84 -0
- package/dist/daemon/watchdog-loop.js +91 -0
- package/dist/daemon/watchdog-loop.js.map +1 -0
- package/dist/dashboard/assets/index-8tAiMbUV.css +1 -0
- package/dist/dashboard/assets/index-D6a-DfaM.js +171 -0
- package/dist/dashboard/index.html +2 -2
- package/dist/discovery/http.d.ts +17 -0
- package/dist/discovery/http.js +295 -25
- package/dist/discovery/http.js.map +1 -1
- package/dist/discovery/onchain.js +155 -1
- package/dist/discovery/onchain.js.map +1 -1
- package/dist/discovery/types.d.ts +106 -0
- package/dist/discovery/types.js +40 -0
- package/dist/discovery/types.js.map +1 -1
- package/dist/discovery/with-fallback.js +14 -0
- package/dist/discovery/with-fallback.js.map +1 -1
- package/dist/earning/bootstrap.d.ts +25 -0
- package/dist/earning/bootstrap.js +79 -28
- package/dist/earning/bootstrap.js.map +1 -1
- package/dist/earning/faucet.d.ts +1 -1
- package/dist/earning/faucet.js +2 -2
- package/dist/earning/faucet.js.map +1 -1
- package/dist/earning/safe-adapter.js +11 -0
- package/dist/earning/safe-adapter.js.map +1 -1
- package/dist/earning/stolas-claim.js +5 -5
- package/dist/earning/types.d.ts +1 -1
- package/dist/earning/types.js +1 -1
- package/dist/earning/types.js.map +1 -1
- package/dist/eval/eval-harness-run.d.ts +63 -0
- package/dist/eval/eval-harness-run.js +123 -0
- package/dist/eval/eval-harness-run.js.map +1 -0
- package/dist/eval/orchestrator.d.ts +224 -0
- package/dist/eval/orchestrator.js +250 -0
- package/dist/eval/orchestrator.js.map +1 -0
- package/dist/eval/paired.d.ts +68 -0
- package/dist/eval/paired.js +93 -0
- package/dist/eval/paired.js.map +1 -0
- package/dist/eval/resolve-slate-tasks.d.ts +35 -0
- package/dist/eval/resolve-slate-tasks.js +56 -0
- package/dist/eval/resolve-slate-tasks.js.map +1 -0
- package/dist/eval/screen-discovery.d.ts +22 -0
- package/dist/eval/screen-discovery.js +71 -0
- package/dist/eval/screen-discovery.js.map +1 -0
- package/dist/eval/screen-progress.d.ts +41 -0
- package/dist/eval/screen-progress.js +60 -0
- package/dist/eval/screen-progress.js.map +1 -0
- package/dist/eval/screen-runner.d.ts +30 -0
- package/dist/eval/screen-runner.js +289 -0
- package/dist/eval/screen-runner.js.map +1 -0
- package/dist/eval/screen.d.ts +107 -0
- package/dist/eval/screen.js +159 -0
- package/dist/eval/screen.js.map +1 -0
- package/dist/eval/slope.d.ts +29 -0
- package/dist/eval/slope.js +46 -0
- package/dist/eval/slope.js.map +1 -0
- package/dist/eval/train-sequence.d.ts +35 -0
- package/dist/eval/train-sequence.js +59 -0
- package/dist/eval/train-sequence.js.map +1 -0
- package/dist/eval/wilson.d.ts +45 -0
- package/dist/eval/wilson.js +48 -0
- package/dist/eval/wilson.js.map +1 -0
- package/dist/events/types.d.ts +1 -1
- package/dist/events/types.js +1 -1
- package/dist/events/types.js.map +1 -1
- package/dist/harnesses/engine/canonical-json.js +5 -3
- package/dist/harnesses/engine/canonical-json.js.map +1 -1
- package/dist/harnesses/engine/engine.d.ts +24 -0
- package/dist/harnesses/engine/engine.js +72 -9
- package/dist/harnesses/engine/engine.js.map +1 -1
- package/dist/harnesses/engine/packaging.js +1 -1
- package/dist/harnesses/engine/packaging.js.map +1 -1
- package/dist/harnesses/engine/persistence.d.ts +17 -0
- package/dist/harnesses/engine/persistence.js +28 -0
- package/dist/harnesses/engine/persistence.js.map +1 -1
- package/dist/harnesses/impls/claude-mcp-hyperliquid/mcp-tools.d.ts +1 -1
- package/dist/harnesses/impls/claude-mcp-hyperliquid/mcp-tools.js +1 -1
- package/dist/harnesses/impls/claude-mcp-hyperliquid/mcp-tools.js.map +1 -1
- package/dist/harnesses/impls/hermes-agent/adapter.d.ts +2 -0
- package/dist/harnesses/impls/hermes-agent/adapter.js +8 -5
- package/dist/harnesses/impls/hermes-agent/adapter.js.map +1 -1
- package/dist/harnesses/impls/hermes-agent/bootstrap.d.ts +1 -0
- package/dist/harnesses/impls/hermes-agent/bootstrap.js +6 -1
- package/dist/harnesses/impls/hermes-agent/bootstrap.js.map +1 -1
- package/dist/harnesses/impls/hermes-agent/harness.d.ts +17 -3
- package/dist/harnesses/impls/hermes-agent/harness.js +68 -5
- package/dist/harnesses/impls/hermes-agent/harness.js.map +1 -1
- package/dist/harnesses/impls/index.d.ts +2 -0
- package/dist/harnesses/impls/index.js +9 -0
- package/dist/harnesses/impls/index.js.map +1 -1
- package/dist/harnesses/impls/jinn-repo-evaluator/eval-runner.d.ts +34 -0
- package/dist/harnesses/impls/jinn-repo-evaluator/eval-runner.js +111 -0
- package/dist/harnesses/impls/jinn-repo-evaluator/eval-runner.js.map +1 -0
- package/dist/harnesses/impls/jinn-repo-evaluator/evaluator.d.ts +24 -0
- package/dist/harnesses/impls/jinn-repo-evaluator/evaluator.js +19 -0
- package/dist/harnesses/impls/jinn-repo-evaluator/evaluator.js.map +1 -0
- package/dist/harnesses/impls/jinn-repo-evaluator/harness.d.ts +64 -0
- package/dist/harnesses/impls/jinn-repo-evaluator/harness.js +125 -0
- package/dist/harnesses/impls/jinn-repo-evaluator/harness.js.map +1 -0
- package/dist/harnesses/impls/jinn-repo-evaluator/repro.d.ts +32 -0
- package/dist/harnesses/impls/jinn-repo-evaluator/repro.js +73 -0
- package/dist/harnesses/impls/jinn-repo-evaluator/repro.js.map +1 -0
- package/dist/harnesses/impls/learner/adapters/claude-code.js +5 -0
- package/dist/harnesses/impls/learner/adapters/claude-code.js.map +1 -1
- package/dist/harnesses/impls/learner/harness.d.ts +17 -1
- package/dist/harnesses/impls/learner/harness.js +51 -1
- package/dist/harnesses/impls/learner/harness.js.map +1 -1
- package/dist/harnesses/impls/learner/harvest.d.ts +2 -0
- package/dist/harnesses/impls/learner/harvest.js +51 -1
- package/dist/harnesses/impls/learner/harvest.js.map +1 -1
- package/dist/harnesses/impls/learner/plugin-path.js +1 -0
- package/dist/harnesses/impls/learner/plugin-path.js.map +1 -1
- package/dist/harnesses/impls/swe-rebench-v2-evaluator/harness.js +3 -1
- package/dist/harnesses/impls/swe-rebench-v2-evaluator/harness.js.map +1 -1
- package/dist/harnesses/impls/swe-rebench-v2-evaluator/index.d.ts +2 -2
- package/dist/harnesses/impls/swe-rebench-v2-evaluator/index.js +3 -1
- package/dist/harnesses/impls/swe-rebench-v2-evaluator/index.js.map +1 -1
- package/dist/harnesses/readiness-registry.d.ts +10 -0
- package/dist/harnesses/readiness-registry.js +13 -0
- package/dist/harnesses/readiness-registry.js.map +1 -1
- package/dist/harnesses/types.d.ts +14 -0
- package/dist/learner/revert-decision.d.ts +16 -1
- package/dist/learner/revert-decision.js +38 -18
- package/dist/learner/revert-decision.js.map +1 -1
- package/dist/learner/revert-stats.d.ts +14 -0
- package/dist/learner/revert-stats.js +42 -0
- package/dist/learner/revert-stats.js.map +1 -1
- package/dist/local-provider-url.d.ts +3 -0
- package/dist/local-provider-url.js +28 -0
- package/dist/local-provider-url.js.map +1 -0
- package/dist/main.js +94 -25
- package/dist/main.js.map +1 -1
- package/dist/mcp/operator-server.js +1 -1
- package/dist/mcp/operator-server.js.map +1 -1
- package/dist/mcp/server.js +1 -1
- package/dist/mcp/server.js.map +1 -1
- package/dist/plugins/learner/.claude-plugin/plugin.json +1 -1
- package/dist/plugins/learner/.codex-plugin/plugin.json +1 -1
- package/dist/plugins/learner/hooks/session-start +30 -1
- package/dist/plugins/learner/skills/learn/consolidator-prompt.md +4 -0
- package/dist/preflight/deployment-readiness.d.ts +147 -0
- package/dist/preflight/deployment-readiness.js +366 -0
- package/dist/preflight/deployment-readiness.js.map +1 -0
- package/dist/preflight/pidfile-liveness.d.ts +7 -1
- package/dist/preflight/pidfile-liveness.js +14 -0
- package/dist/preflight/pidfile-liveness.js.map +1 -1
- package/dist/rpc/transport.d.ts +43 -5
- package/dist/rpc/transport.js +131 -30
- package/dist/rpc/transport.js.map +1 -1
- package/dist/scripts/swe-rebench-v2-seed-pool.json +2 -1
- package/dist/solver-nets/registry.d.ts +19 -0
- package/dist/solver-nets/registry.js +95 -66
- package/dist/solver-nets/registry.js.map +1 -1
- package/dist/solver-types/_jinn-repo-pool.d.ts +27 -0
- package/dist/solver-types/_jinn-repo-pool.js +27 -0
- package/dist/solver-types/_jinn-repo-pool.js.map +1 -0
- package/dist/solver-types/_swe-rebench-v2-held-out-slate.d.ts +76 -0
- package/dist/solver-types/_swe-rebench-v2-held-out-slate.js +156 -0
- package/dist/solver-types/_swe-rebench-v2-held-out-slate.js.map +1 -0
- package/dist/solver-types/_swe-rebench-v2-pool-recovery.d.ts +81 -0
- package/dist/solver-types/_swe-rebench-v2-pool-recovery.js +116 -0
- package/dist/solver-types/_swe-rebench-v2-pool-recovery.js.map +1 -0
- package/dist/solver-types/_swe-rebench-v2-state.d.ts +9 -0
- package/dist/solver-types/_swe-rebench-v2-state.js +14 -0
- package/dist/solver-types/_swe-rebench-v2-state.js.map +1 -1
- package/dist/solver-types/_swe-rebench-v2-validated-pool.d.ts +30 -0
- package/dist/solver-types/_swe-rebench-v2-validated-pool.js +40 -0
- package/dist/solver-types/_swe-rebench-v2-validated-pool.js.map +1 -1
- package/dist/solver-types/index.js +2 -0
- package/dist/solver-types/index.js.map +1 -1
- package/dist/solver-types/jinn-repo-admit.d.ts +17 -0
- package/dist/solver-types/jinn-repo-admit.js +16 -0
- package/dist/solver-types/jinn-repo-admit.js.map +1 -0
- package/dist/solver-types/jinn-repo-auto.d.ts +60 -0
- package/dist/solver-types/jinn-repo-auto.js +163 -0
- package/dist/solver-types/jinn-repo-auto.js.map +1 -0
- package/dist/solver-types/jinn-repo-definition.d.ts +15 -0
- package/dist/solver-types/jinn-repo-definition.js +34 -0
- package/dist/solver-types/jinn-repo-definition.js.map +1 -0
- package/dist/solver-types/jinn-repo-extract.d.ts +16 -0
- package/dist/solver-types/jinn-repo-extract.js +32 -0
- package/dist/solver-types/jinn-repo-extract.js.map +1 -0
- package/dist/solver-types/jinn-repo.d.ts +21 -0
- package/dist/solver-types/jinn-repo.js +23 -0
- package/dist/solver-types/jinn-repo.js.map +1 -0
- package/dist/solver-types/learner-loop-test.js +1 -1
- package/dist/solver-types/learner-loop-test.js.map +1 -1
- package/dist/solver-types/slates/held-out-slate.swe-rebench-v2.v1.json +20 -0
- package/dist/solver-types/slates/held-out-slate.swe-rebench-v2.v2.json +19 -0
- package/dist/solver-types/slates/held-out-slate.swe-rebench-v2.v2.screening-report.json +628 -0
- package/dist/solver-types/solver-type.d.ts +8 -0
- package/dist/solver-types/swe-rebench-v2.d.ts +2 -0
- package/dist/solver-types/swe-rebench-v2.js +115 -10
- package/dist/solver-types/swe-rebench-v2.js.map +1 -1
- package/dist/solvernets/launched-record-dispatcher.d.ts +5 -0
- package/dist/solvernets/launched-record-dispatcher.js +8 -1
- package/dist/solvernets/launched-record-dispatcher.js.map +1 -1
- package/dist/solvernets/registry-client-erc8004.js +29 -37
- package/dist/solvernets/registry-client-erc8004.js.map +1 -1
- package/dist/solvernets/registry-client.d.ts +6 -0
- package/dist/solvernets/store.d.ts +1 -1
- package/dist/solvernets/store.js +8 -3
- package/dist/solvernets/store.js.map +1 -1
- package/dist/spend/ai-units-config.d.ts +10 -0
- package/dist/spend/ai-units-config.js +7 -1
- package/dist/spend/ai-units-config.js.map +1 -1
- package/dist/spend/ai-units.d.ts +51 -0
- package/dist/spend/ai-units.js +73 -0
- package/dist/spend/ai-units.js.map +1 -1
- package/dist/spend/record.js +12 -5
- package/dist/spend/record.js.map +1 -1
- package/dist/store/store.d.ts +91 -5
- package/dist/store/store.js +170 -7
- package/dist/store/store.js.map +1 -1
- package/dist/trajectory/harness-bundle-schema.d.ts +1 -1
- package/dist/trajectory/harness-bundle-schema.js +1 -1
- package/dist/trajectory/harness-bundle-schema.js.map +1 -1
- package/dist/trajectory/schema.d.ts +1 -1
- package/dist/trajectory/schema.js +1 -1
- package/dist/trajectory/schema.js.map +1 -1
- package/dist/trajectory/transcript-parsers/types.d.ts +1 -1
- package/dist/trajectory/transcript-parsers/types.js +1 -1
- package/dist/trajectory/transcript-parsers/types.js.map +1 -1
- package/dist/types/envelope.d.ts +1 -1
- package/dist/types/envelope.js +1 -1
- package/dist/types/envelope.js.map +1 -1
- package/dist/types/payloads/index.d.ts +1 -1
- package/dist/types/payloads/index.js +7 -1
- package/dist/types/payloads/index.js.map +1 -1
- package/dist/types/payloads/portfolio-v0.d.ts +1 -1
- package/dist/types/payloads/portfolio-v0.js +1 -1
- package/dist/types/payloads/portfolio-v0.js.map +1 -1
- package/dist/types/payloads/prediction-apy-v0.d.ts +1 -1
- package/dist/types/payloads/prediction-apy-v0.js +1 -1
- package/dist/types/payloads/prediction-apy-v0.js.map +1 -1
- package/dist/types/payloads/prediction-v0.d.ts +1 -1
- package/dist/types/payloads/prediction-v0.js +1 -1
- package/dist/types/payloads/prediction-v0.js.map +1 -1
- package/dist/types/portfolio.d.ts +1 -1
- package/dist/types/portfolio.js +1 -1
- package/dist/types/portfolio.js.map +1 -1
- package/dist/types/prediction-apy.d.ts +1 -1
- package/dist/types/prediction-apy.js +1 -1
- package/dist/types/prediction-apy.js.map +1 -1
- package/dist/types/prediction.d.ts +1 -1
- package/dist/types/prediction.js +1 -1
- package/dist/types/prediction.js.map +1 -1
- package/dist/types/session-provenance.d.ts +1 -1
- package/dist/types/session-provenance.js +1 -1
- package/dist/types/session-provenance.js.map +1 -1
- package/dist/types/task-document.d.ts +1 -1
- package/dist/types/task-document.js +1 -1
- package/dist/types/task-document.js.map +1 -1
- package/dist/types/task.d.ts +1 -1
- package/dist/types/task.js +1 -1
- package/dist/types/task.js.map +1 -1
- package/dist/types/window.d.ts +1 -1
- package/dist/types/window.js +1 -1
- package/dist/types/window.js.map +1 -1
- package/dist/vendor/@jinn-network/sdk/dist/checkpoint.d.ts +1 -1
- package/dist/vendor/@jinn-network/sdk/dist/checkpoint.js +1 -1
- package/dist/vendor/@jinn-network/sdk/dist/contracts.d.ts +3 -2
- package/dist/vendor/@jinn-network/sdk/dist/contracts.js +49 -0
- package/dist/vendor/@jinn-network/sdk/dist/jinn-repo.d.ts +44 -0
- package/dist/vendor/@jinn-network/sdk/dist/jinn-repo.js +25 -0
- package/dist/vendor/@jinn-network/sdk/dist/json-schema.d.ts +1 -1
- package/dist/vendor/@jinn-network/sdk/dist/json-schema.js +1 -1
- package/dist/vendor/@jinn-network/sdk/dist/payloads/jinn-repo.d.ts +38 -0
- package/dist/vendor/@jinn-network/sdk/dist/payloads/jinn-repo.js +22 -0
- package/dist/vendor/@jinn-network/sdk/dist/payloads/prediction-v1.d.ts +1 -1
- package/dist/vendor/@jinn-network/sdk/dist/payloads/prediction-v1.js +1 -1
- package/dist/vendor/@jinn-network/sdk/dist/payloads/session-derived.d.ts +1 -1
- package/dist/vendor/@jinn-network/sdk/dist/payloads/session-derived.js +1 -1
- package/dist/vendor/@jinn-network/sdk/dist/payloads/swe-rebench-v2.d.ts +109 -2
- package/dist/vendor/@jinn-network/sdk/dist/payloads/swe-rebench-v2.js +26 -2
- package/dist/vendor/@jinn-network/sdk/dist/prediction-v1.d.ts +1 -1
- package/dist/vendor/@jinn-network/sdk/dist/prediction-v1.js +1 -1
- package/dist/vendor/@jinn-network/sdk/dist/solvernets/jinn-repo.d.ts +4 -0
- package/dist/vendor/@jinn-network/sdk/dist/solvernets/jinn-repo.js +2 -0
- package/dist/vendor/@jinn-network/sdk/dist/solvernets/manifest-schema.d.ts +1 -1
- package/dist/vendor/@jinn-network/sdk/dist/solvernets/manifest-schema.js +1 -1
- package/dist/vendor/@jinn-network/sdk/dist/solvernets/swe-rebench-v2-held-out-slate.d.ts +65 -0
- package/dist/vendor/@jinn-network/sdk/dist/solvernets/swe-rebench-v2-held-out-slate.js +123 -0
- package/dist/vendor/@jinn-network/sdk/dist/solvernets/swe-rebench-v2.d.ts +2 -2
- package/dist/vendor/@jinn-network/sdk/dist/solvernets/swe-rebench-v2.js +1 -1
- package/dist/vendor/@jinn-network/sdk/dist/swe-rebench-v2.d.ts +1 -1
- package/dist/vendor/@jinn-network/sdk/dist/swe-rebench-v2.js +1 -1
- package/dist/vendor/@jinn-network/sdk/package.json +9 -1
- package/docker-compose.yml +3 -2
- package/package.json +23 -20
- package/plugins/jinn-repo-runtime/.claude-plugin/plugin.json +5 -0
- package/plugins/jinn-repo-runtime/.codex-plugin/plugin.json +39 -0
- package/plugins/jinn-repo-runtime/README.md +27 -0
- package/plugins/jinn-repo-runtime/hooks/hooks.json +16 -0
- package/plugins/jinn-repo-runtime/hooks/session-start +73 -0
- package/plugins/jinn-repo-runtime/jinn.plugin.json +11 -0
- package/plugins/jinn-repo-runtime/skills/task/SKILL.md +92 -0
- package/plugins/learner/.claude-plugin/plugin.json +1 -1
- package/plugins/learner/.codex-plugin/plugin.json +1 -1
- package/plugins/learner/hooks/session-start +30 -1
- package/plugins/learner/skills/learn/consolidator-prompt.md +4 -0
- package/plugins/swe-rebench-v2-runtime/hooks/hooks.json +16 -0
- package/plugins/swe-rebench-v2-runtime/hooks/session-start +74 -0
- package/dist/dashboard/assets/index-CzKxvMcU.css +0 -32
- package/dist/dashboard/assets/index-yVemxHot.js +0 -351
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"safe-adapter.js","sourceRoot":"","sources":["../../src/earning/safe-adapter.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAGH,OAAO,EACL,UAAU,EACV,MAAM,EACN,kBAAkB,EAClB,kBAAkB,EAClB,kBAAkB,EAClB,UAAU,EACV,IAAI,EACJ,KAAK,EACL,WAAW,GAIZ,MAAM,M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AC,YAAY,EAAE,CAAC;gBACnD,OAAO,CAAC,KAAK,CACX,gEAAgE,SAAS,EAAE,CAC5E,CAAC;YACJ,CAAC;YACD,MAAM,GAAG,CAAC;QACZ,CAAC;IACH,CAAC,EACD;QACE,OAAO,EAAE,CAAC,EAAE,OAAO,EAAE,OAAO,EAAE,EAAE,EAAE;YAChC,OAAO,CAAC,KAAK,CAAC,4CAA4C,OAAO,KAAK,OAAO,EAAE,CAAC,CAAC;QACnF,CAAC;KACF,CACF,CAAC,CAAC;IAEH,OAAO,EAAE,IAAI,EAAE,CAAC;AAClB,CAAC"}
|
|
@@ -96,7 +96,7 @@ export async function tickStolasDistributorClaims(publicClient, masterWallet, op
|
|
|
96
96
|
const receipt = await waitForReceipt(publicClient, txHash);
|
|
97
97
|
if (receipt.status !== 'success') {
|
|
98
98
|
result.failedPermanent += 1;
|
|
99
|
-
console.
|
|
99
|
+
console.debug(`[reward-claim] claim tx failed for service ${serviceId} (hash=${txHash})`);
|
|
100
100
|
continue;
|
|
101
101
|
}
|
|
102
102
|
result.submitted += 1;
|
|
@@ -117,7 +117,7 @@ export async function tickStolasDistributorClaims(publicClient, masterWallet, op
|
|
|
117
117
|
else {
|
|
118
118
|
result.failedPermanent += 1;
|
|
119
119
|
}
|
|
120
|
-
console.
|
|
120
|
+
console.debug(`[reward-claim] Skipped service ${serviceId}:`, err instanceof Error ? err.message : err);
|
|
121
121
|
}
|
|
122
122
|
}
|
|
123
123
|
if (options.strict) {
|
|
@@ -165,7 +165,7 @@ export async function tickSelfBondStakingClaims(publicClient, options) {
|
|
|
165
165
|
result.attempted += 1;
|
|
166
166
|
if (!safeAddress || !agentPrivateKey || !rpcUrl) {
|
|
167
167
|
result.skippedMissingConfig += 1;
|
|
168
|
-
console.
|
|
168
|
+
console.debug(`[reward-claim] Self-bond: service ${serviceId} skipped — missing safeAddress, agentPrivateKey, or rpcUrl on claim target.`);
|
|
169
169
|
continue;
|
|
170
170
|
}
|
|
171
171
|
try {
|
|
@@ -200,7 +200,7 @@ export async function tickSelfBondStakingClaims(publicClient, options) {
|
|
|
200
200
|
const receipt = await waitForReceipt(publicClient, txHash);
|
|
201
201
|
if (receipt.status !== 'success') {
|
|
202
202
|
result.failedPermanent += 1;
|
|
203
|
-
console.
|
|
203
|
+
console.debug(`[reward-claim] Self-bond claim tx failed for service ${serviceId} (hash=${txHash})`);
|
|
204
204
|
continue;
|
|
205
205
|
}
|
|
206
206
|
result.submitted += 1;
|
|
@@ -219,7 +219,7 @@ export async function tickSelfBondStakingClaims(publicClient, options) {
|
|
|
219
219
|
else {
|
|
220
220
|
result.failedPermanent += 1;
|
|
221
221
|
}
|
|
222
|
-
console.
|
|
222
|
+
console.debug(`[reward-claim] Self-bond: skipped service ${serviceId}:`, err instanceof Error ? err.message : err);
|
|
223
223
|
}
|
|
224
224
|
}
|
|
225
225
|
if (options.strict) {
|
package/dist/earning/types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
1
|
+
import { z } from 'zod/v3';
|
|
2
2
|
export declare const StakingModeSchema: z.ZodEnum<["standard", "self-bond"]>;
|
|
3
3
|
export type StakingMode = z.infer<typeof StakingModeSchema>;
|
|
4
4
|
export declare const FleetStageSchema: z.ZodEnum<["none", "stage1", "stage1_and_2"]>;
|
package/dist/earning/types.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
1
|
+
import { z } from 'zod/v3';
|
|
2
2
|
// ── Staking mode ─────────────────────────────────────────────────────────────
|
|
3
3
|
export const StakingModeSchema = z.enum(['standard', 'self-bond']);
|
|
4
4
|
// ── Fleet bootstrap stage marker (nghf) ─────────────────────────────────────
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/earning/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../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,CAAC;IAClE,uBAAuB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC;IACvE,WAAW,EAAE,gBAAgB,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,MAAM,CAAC;CACzD,CAAC,CAAC;AAIH,gFAAgF;AAEhF,MAAM,UAAU,uBAAuB,CAAC,QAAiC,MAAM;IAC7E,OAAO;QACL,cAAc,EAAE,IAAI;QACpB,KAAK;QACL,YAAY,EAAE,UAAU;QACxB,QAAQ,EAAE,EAAE;QACZ,UAAU,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;QACpC,cAAc,EAAE,IAAI;QACpB,kBAAkB,EAAE,IAAI;QACxB,uBAAuB,EAAE,IAAI;QAC7B,WAAW,EAAE,MAAM;KACpB,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,yBAAyB,CAAC,KAAa,EAAE,YAAoB;IAC3E,OAAO;QACL,KAAK;QACL,aAAa,EAAE,YAAY;QAC3B,YAAY,EAAE,IAAI;QAClB,UAAU,EAAE,IAAI;QAChB,YAAY,EAAE,IAAI;QAClB,eAAe,EAAE,IAAI;QACrB,IAAI,EAAE,gBAAgB;QACtB,KAAK,EAAE,IAAI;QACX,QAAQ,EAAE,IAAI;QACd,SAAS,EAAE,IAAI;QACf,yBAAyB,EAAE,IAAI;QAC/B,mBAAmB,EAAE,IAAI;QACzB,mBAAmB,EAAE,KAAK;QAC1B,mBAAmB,EAAE,IAAI;QACzB,mBAAmB,EAAE,IAAI;KAC1B,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Daemon-faithful harness run for `jinn eval` (issue #818) and the #822 e2e.
|
|
3
|
+
*
|
|
4
|
+
* Live testing proved the eval's earlier hand-rolled harness invocation did NOT
|
|
5
|
+
* reproduce the daemon's agent runtime: it ran the agent with NO SolverNet
|
|
6
|
+
* runtime plugins, so the claude-code adapter passed no `--plugin-dir`, the
|
|
7
|
+
* bundled MCP server never loaded, and the agent had no `submit_typed_payload`
|
|
8
|
+
* tool — producing no gradeable patch and rendering every task unscorable. The
|
|
9
|
+
* daemon scores the same tasks because it builds the full HarnessContext with
|
|
10
|
+
* `solverPluginRoots` from the SolverNet's runtime plugins (engine.ts §runImpl).
|
|
11
|
+
*
|
|
12
|
+
* This module is the single source of truth for that daemon-equivalent context.
|
|
13
|
+
* It rebuilds the engine's HarnessContext MINUS persistence/on-chain wiring and
|
|
14
|
+
* runs the harness through the SAME freeze-fence the daemon uses. The CLI uses
|
|
15
|
+
* it now; the #822 e2e delegates to it next.
|
|
16
|
+
*/
|
|
17
|
+
import type { Harness, RuntimePlugin } from '../harnesses/types.js';
|
|
18
|
+
import type { Task } from '../types/task.js';
|
|
19
|
+
import { type JoinedSolverNetConfig, type SolverNetTaskRole } from '../solver-nets/registry.js';
|
|
20
|
+
/**
|
|
21
|
+
* Resolve the SolverNet runtime plugins for `solverType`, exactly as the daemon
|
|
22
|
+
* does (`loadSolverNets(...).forSolverType(...)`). These plugins carry the
|
|
23
|
+
* bundled MCP server that provides `submit_typed_payload`; without them the
|
|
24
|
+
* agent cannot emit a gradeable patch.
|
|
25
|
+
*
|
|
26
|
+
* Fails LOUD with an operator-actionable message when there is no joined
|
|
27
|
+
* SolverNet for the solverType, or the matched net has no runtime plugins —
|
|
28
|
+
* mirroring the evaluator's `jinn harnesses enable` precondition.
|
|
29
|
+
*/
|
|
30
|
+
export declare function resolveRuntimePluginsForSolverType(solverType: string, joinedSolverNets: Record<string, JoinedSolverNetConfig> | undefined, role?: SolverNetTaskRole): Promise<RuntimePlugin[]>;
|
|
31
|
+
/**
|
|
32
|
+
* Run a harness once for eval, building the FULL daemon-equivalent
|
|
33
|
+
* HarnessContext (plugins + solverPluginRoots) but with no persistence /
|
|
34
|
+
* on-chain wiring. Mirrors `HarnessEngine`'s `runImpl` context assembly
|
|
35
|
+
* (engine.ts §runImpl) and routes through the same freeze-fence.
|
|
36
|
+
*
|
|
37
|
+
* Owns the ephemeral working-dir lifecycle: the returned result references only
|
|
38
|
+
* the patch string + codeDigest (nothing under workingDir), so the dir is safe
|
|
39
|
+
* to reclaim in `finally` — preventing leaked repo clones across a full slate.
|
|
40
|
+
*/
|
|
41
|
+
export declare function runHarnessForEval(args: {
|
|
42
|
+
harness: Harness;
|
|
43
|
+
task: Task;
|
|
44
|
+
solverType: string;
|
|
45
|
+
runtimePlugins: RuntimePlugin[];
|
|
46
|
+
implStateDir: string;
|
|
47
|
+
mode: 'frozen' | 'train';
|
|
48
|
+
solverNetName?: string;
|
|
49
|
+
model?: string;
|
|
50
|
+
}): Promise<{
|
|
51
|
+
violation?: {
|
|
52
|
+
taskId: string;
|
|
53
|
+
};
|
|
54
|
+
envelope?: {
|
|
55
|
+
executor: {
|
|
56
|
+
mode: 'train' | 'frozen';
|
|
57
|
+
codeDigest: string;
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
solution?: {
|
|
61
|
+
patch: string;
|
|
62
|
+
};
|
|
63
|
+
}>;
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Daemon-faithful harness run for `jinn eval` (issue #818) and the #822 e2e.
|
|
3
|
+
*
|
|
4
|
+
* Live testing proved the eval's earlier hand-rolled harness invocation did NOT
|
|
5
|
+
* reproduce the daemon's agent runtime: it ran the agent with NO SolverNet
|
|
6
|
+
* runtime plugins, so the claude-code adapter passed no `--plugin-dir`, the
|
|
7
|
+
* bundled MCP server never loaded, and the agent had no `submit_typed_payload`
|
|
8
|
+
* tool — producing no gradeable patch and rendering every task unscorable. The
|
|
9
|
+
* daemon scores the same tasks because it builds the full HarnessContext with
|
|
10
|
+
* `solverPluginRoots` from the SolverNet's runtime plugins (engine.ts §runImpl).
|
|
11
|
+
*
|
|
12
|
+
* This module is the single source of truth for that daemon-equivalent context.
|
|
13
|
+
* It rebuilds the engine's HarnessContext MINUS persistence/on-chain wiring and
|
|
14
|
+
* runs the harness through the SAME freeze-fence the daemon uses. The CLI uses
|
|
15
|
+
* it now; the #822 e2e delegates to it next.
|
|
16
|
+
*/
|
|
17
|
+
import { mkdtempSync, rmSync } from 'node:fs';
|
|
18
|
+
import { tmpdir } from 'node:os';
|
|
19
|
+
import { join } from 'node:path';
|
|
20
|
+
import { provisionWorkingDir } from '../harnesses/engine/packaging.js';
|
|
21
|
+
import { runHarnessWithFreezeFence } from '../daemon/freeze-fence.js';
|
|
22
|
+
import { TrajectoryCollector } from '../trajectory/index.js';
|
|
23
|
+
import { loadSolverNets, } from '../solver-nets/registry.js';
|
|
24
|
+
/** Wall-clock budget for a single eval harness run (1h) when the task carries no window. */
|
|
25
|
+
const EVAL_RUN_BUDGET_MS = 3_600_000;
|
|
26
|
+
/**
|
|
27
|
+
* Resolve the SolverNet runtime plugins for `solverType`, exactly as the daemon
|
|
28
|
+
* does (`loadSolverNets(...).forSolverType(...)`). These plugins carry the
|
|
29
|
+
* bundled MCP server that provides `submit_typed_payload`; without them the
|
|
30
|
+
* agent cannot emit a gradeable patch.
|
|
31
|
+
*
|
|
32
|
+
* Fails LOUD with an operator-actionable message when there is no joined
|
|
33
|
+
* SolverNet for the solverType, or the matched net has no runtime plugins —
|
|
34
|
+
* mirroring the evaluator's `jinn harnesses enable` precondition.
|
|
35
|
+
*/
|
|
36
|
+
export async function resolveRuntimePluginsForSolverType(solverType, joinedSolverNets, role = 'restoration') {
|
|
37
|
+
const registry = await loadSolverNets({ joinedSolverNets });
|
|
38
|
+
const net = registry.forSolverType(solverType, role);
|
|
39
|
+
if (!net) {
|
|
40
|
+
throw new Error(`no SolverNet for solverType ${solverType} (role ${role}): the eval runs the agent with the ` +
|
|
41
|
+
`SAME runtime plugins the daemon would, but this operator has not joined a SolverNet for it. ` +
|
|
42
|
+
`Join the SolverNet and install its plugins (e.g. set joinedSolverNets[<manifestCid>] in your ` +
|
|
43
|
+
`config and run \`jinn harnesses enable\`), then re-run eval.`);
|
|
44
|
+
}
|
|
45
|
+
if (net.runtimePlugins.length === 0) {
|
|
46
|
+
throw new Error(`SolverNet ${net.name} for solverType ${solverType} has no runtime plugins: the agent would run ` +
|
|
47
|
+
`without the bundled MCP server (no submit_typed_payload) and produce no gradeable patch. ` +
|
|
48
|
+
`Install the SolverNet's plugins (\`jinn harnesses enable\`) before running eval.`);
|
|
49
|
+
}
|
|
50
|
+
return net.runtimePlugins;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Run a harness once for eval, building the FULL daemon-equivalent
|
|
54
|
+
* HarnessContext (plugins + solverPluginRoots) but with no persistence /
|
|
55
|
+
* on-chain wiring. Mirrors `HarnessEngine`'s `runImpl` context assembly
|
|
56
|
+
* (engine.ts §runImpl) and routes through the same freeze-fence.
|
|
57
|
+
*
|
|
58
|
+
* Owns the ephemeral working-dir lifecycle: the returned result references only
|
|
59
|
+
* the patch string + codeDigest (nothing under workingDir), so the dir is safe
|
|
60
|
+
* to reclaim in `finally` — preventing leaked repo clones across a full slate.
|
|
61
|
+
*/
|
|
62
|
+
export async function runHarnessForEval(args) {
|
|
63
|
+
const { harness, task, solverType, runtimePlugins, implStateDir, mode } = args;
|
|
64
|
+
const defaultEndTs = Date.now() + EVAL_RUN_BUDGET_MS;
|
|
65
|
+
const windowEndTs = task.window?.endTs ?? defaultEndTs;
|
|
66
|
+
// Fresh ephemeral scratch dir — SEPARATE from implStateDir so the harness's
|
|
67
|
+
// repo clone + diff harvest never trips the freeze-fence (which hashes
|
|
68
|
+
// implStateDir only). Provisioned the same way the engine does.
|
|
69
|
+
const workingDir = mkdtempSync(join(tmpdir(), 'jinn-eval-work-'));
|
|
70
|
+
const abort = new AbortController();
|
|
71
|
+
const msUntilEndTs = () => Math.max(0, windowEndTs - Date.now());
|
|
72
|
+
const endTimer = setTimeout(() => abort.abort(), msUntilEndTs());
|
|
73
|
+
// Don't keep the event loop alive on this timer (it's cleared in finally).
|
|
74
|
+
endTimer.unref?.();
|
|
75
|
+
try {
|
|
76
|
+
provisionWorkingDir(workingDir, task);
|
|
77
|
+
// Full daemon-equivalent HarnessContext — mirrors engine.ts §runImpl MINUS
|
|
78
|
+
// persistence/on-chain. The load-bearing fields are runtimePlugins +
|
|
79
|
+
// solverPluginRoots: they carry the bundled MCP server (submit_typed_payload).
|
|
80
|
+
const ctx = {
|
|
81
|
+
task,
|
|
82
|
+
requestId: task.id ?? `eval-${solverType}`,
|
|
83
|
+
taskCid: '',
|
|
84
|
+
solverNet: {
|
|
85
|
+
name: args.solverNetName ?? solverType,
|
|
86
|
+
solverType,
|
|
87
|
+
...(args.model ? { model: args.model } : {}),
|
|
88
|
+
},
|
|
89
|
+
runtimePlugins,
|
|
90
|
+
solverPluginRoots: runtimePlugins.map((plugin) => plugin.root),
|
|
91
|
+
implStateDir,
|
|
92
|
+
workingDir,
|
|
93
|
+
log: () => {
|
|
94
|
+
/* eval run: quiet harness logs */
|
|
95
|
+
},
|
|
96
|
+
abort: abort.signal,
|
|
97
|
+
msUntilEndTs,
|
|
98
|
+
trajectory: new TrajectoryCollector({ taskCid: '', runId: `eval-${task.id ?? solverType}` }),
|
|
99
|
+
mode,
|
|
100
|
+
};
|
|
101
|
+
const fence = await runHarnessWithFreezeFence(harness, ctx);
|
|
102
|
+
if (!fence.ok) {
|
|
103
|
+
return { violation: { taskId: task.id ?? `eval-${solverType}` } };
|
|
104
|
+
}
|
|
105
|
+
const patch = fence.output.solutionPayload?.patch;
|
|
106
|
+
if (typeof patch !== 'string') {
|
|
107
|
+
throw new Error(`eval harness produced no swe-rebench-v2 patch for task ${task.id ?? solverType} ` +
|
|
108
|
+
`(solutionPayload.patch missing) — the agent ran but emitted no gradeable diff`);
|
|
109
|
+
}
|
|
110
|
+
return {
|
|
111
|
+
envelope: { executor: { mode, codeDigest: `sha256:${fence.codeDigest}` } },
|
|
112
|
+
solution: { patch },
|
|
113
|
+
};
|
|
114
|
+
}
|
|
115
|
+
finally {
|
|
116
|
+
clearTimeout(endTimer);
|
|
117
|
+
// Always reclaim the per-task scratch dir — swe-rebench-v2 clones a real
|
|
118
|
+
// upstream repo here; leaking it across a full slate piles onto the
|
|
119
|
+
// disk-pressure this stack already guards (JINN_EVAL_DISK_FLOOR_GB).
|
|
120
|
+
rmSync(workingDir, { recursive: true, force: true });
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
//# sourceMappingURL=eval-harness-run.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eval-harness-run.js","sourceRoot":"","sources":["../../src/eval/eval-harness-run.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AAC9C,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AACjC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAGjC,OAAO,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AACvE,OAAO,EAAE,yBAAyB,EAAE,MAAM,2BAA2B,CAAC;AACtE,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,EACL,cAAc,GAGf,MAAM,4BAA4B,CAAC;AAEpC,4FAA4F;AAC5F,MAAM,kBAAkB,GAAG,SAAS,CAAC;AAErC;;;;;;;;;GASG;AACH,MAAM,CAAC,KAAK,UAAU,kCAAkC,CACtD,UAAkB,EAClB,gBAAmE,EACnE,OAA0B,aAAa;IAEvC,MAAM,QAAQ,GAAG,MAAM,cAAc,CAAC,EAAE,gBAAgB,EAAE,CAAC,CAAC;IAC5D,MAAM,GAAG,GAAG,QAAQ,CAAC,aAAa,CAAC,UAAU,EAAE,IAAI,CAAC,CAAC;IACrD,IAAI,CAAC,GAAG,EAAE,CAAC;QACT,MAAM,IAAI,KAAK,CACb,+BAA+B,UAAU,UAAU,IAAI,sCAAsC;YAC3F,8FAA8F;YAC9F,+FAA+F;YAC/F,8DAA8D,CACjE,CA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E,UAAU,KAAK,CAAC,UAAU,EAAE,EAAE,EAAE;YAC1E,QAAQ,EAAE,EAAE,KAAK,EAAE;SACpB,CAAC;IACJ,CAAC;YAAS,CAAC;QACT,YAAY,CAAC,QAAQ,CAAC,CAAC;QACvB,yEAAyE;QACzE,oEAAoE;QACpE,qEAAqE;QACrE,MAAM,CAAC,UAAU,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;IACvD,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,224 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `jinn eval` held-out checkpoint orchestrator (issue #818).
|
|
3
|
+
*
|
|
4
|
+
* Runs a held-out slate against a checkpoint in FROZEN mode, persists per-task
|
|
5
|
+
* pass/fail, and emits a Wilson-CI resolved-rate comparison vs the parent
|
|
6
|
+
* checkpoint. Every external boundary is constructor-injected — this is the
|
|
7
|
+
* thin slice #819 drives a deterministic slate against with NO Docker/IPFS.
|
|
8
|
+
*
|
|
9
|
+
* Acceptance criteria:
|
|
10
|
+
* AC#1 — run the slate frozen, write per-task pass/fail.
|
|
11
|
+
* AC#2 — emit a resolved-rate comparison vs the parent with a CI.
|
|
12
|
+
* AC#3 — the freeze-fence holds: a `runHarnessOnce` `{ violation }` throws
|
|
13
|
+
* LOUD and the instance is NOT recorded (no implStateDir mutation
|
|
14
|
+
* slips through; enforcement lives in `runHarnessWithFreezeFence`).
|
|
15
|
+
*
|
|
16
|
+
* Per log/decisions/2026-05-28-rl-eval-measurement.md §4: v1-simple. Only large
|
|
17
|
+
* deltas are trustworthy (disjoint Wilson intervals). No seed control, no
|
|
18
|
+
* multi-run averaging.
|
|
19
|
+
*/
|
|
20
|
+
import type { Harness, HarnessContext } from '../harnesses/types.js';
|
|
21
|
+
import type { HarnessCheckpointManifest } from '../vendor/@jinn-network/sdk/dist/checkpoint.js';
|
|
22
|
+
import type { LoadedHeldOutSlate } from '../solver-types/_swe-rebench-v2-held-out-slate.js';
|
|
23
|
+
import type { ResolvedSlateTask } from './resolve-slate-tasks.js';
|
|
24
|
+
import type { EvalAggregate, EvalResultRecord } from '../store/store.js';
|
|
25
|
+
import { type RateComparison } from './wilson.js';
|
|
26
|
+
import { type PairedComparison, type PairedInput } from './paired.js';
|
|
27
|
+
/** Thrown when `runHarnessOnce` reports a freeze-fence violation (AC#3). */
|
|
28
|
+
export declare class FreezeFenceViolationError extends Error {
|
|
29
|
+
readonly instanceId: string;
|
|
30
|
+
constructor(instanceId: string);
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Thrown when the locally-evaluated impl-state's codeDigest does not match the
|
|
34
|
+
* named checkpoint's manifest (C1). Guards against persisting + comparing
|
|
35
|
+
* results under a checkpoint name while the operator's local impl-state has
|
|
36
|
+
* drifted from that checkpoint.
|
|
37
|
+
*/
|
|
38
|
+
export declare class CheckpointStateMismatchError extends Error {
|
|
39
|
+
readonly checkpointCid: string;
|
|
40
|
+
readonly manifestCodeDigest: string;
|
|
41
|
+
readonly evaluatedCodeDigest: string;
|
|
42
|
+
constructor(checkpointCid: string, manifestCodeDigest: string, evaluatedCodeDigest: string);
|
|
43
|
+
}
|
|
44
|
+
/** Thrown when the parent checkpoint has no aggregate for this slate version (AC#2). */
|
|
45
|
+
export declare class ParentNotEvaluatedError extends Error {
|
|
46
|
+
readonly parentCheckpointCid: string;
|
|
47
|
+
readonly slateVersion: string;
|
|
48
|
+
constructor(parentCheckpointCid: string, slateVersion: string);
|
|
49
|
+
}
|
|
50
|
+
/** A checkpoint whose recorded results carry slate hashes other than the current one. */
|
|
51
|
+
export interface SlateHashDrift {
|
|
52
|
+
checkpointCid: string;
|
|
53
|
+
/** The drifted hashes (each != the current slate hash). */
|
|
54
|
+
hashes: string[];
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Thrown when EITHER compared checkpoint was scored on a DIFFERENT slate
|
|
58
|
+
* *content* under the same version label (DR-2026-05-28 §2 — confounder control).
|
|
59
|
+
* A slate is content-addressed and scores are comparable ONLY within identical
|
|
60
|
+
* content; the store keys aggregates by version, so a content edit that skipped
|
|
61
|
+
* the version bump (or re-derived the declared hash — which the slate loader
|
|
62
|
+
* admits passes), or stale rows surviving `recordEvalResult`'s by-instance
|
|
63
|
+
* upsert, would let the comparison silently compare two checkpoints scored on
|
|
64
|
+
* different task sets. That is confounder #1 (task-selection) — exactly what the
|
|
65
|
+
* held-out exam exists to defeat — so we refuse the comparison loudly instead.
|
|
66
|
+
*/
|
|
67
|
+
export declare class SlateHashMismatchError extends Error {
|
|
68
|
+
readonly slateVersion: string;
|
|
69
|
+
readonly currentSlateHash: string;
|
|
70
|
+
readonly drifted: ReadonlyArray<SlateHashDrift>;
|
|
71
|
+
constructor(slateVersion: string, currentSlateHash: string, drifted: ReadonlyArray<SlateHashDrift>);
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Injected `runHarnessOnce`-shaped boundary. Mirrors the production
|
|
75
|
+
* `runHarnessOnce` (freeze-fence + mode propagation) but also surfaces the
|
|
76
|
+
* harness `solution` so the orchestrator can extract the patch to grade. On a
|
|
77
|
+
* freeze violation it returns `{ violation }` and no solution.
|
|
78
|
+
*/
|
|
79
|
+
export type RunHarnessOnceForEval = (params: {
|
|
80
|
+
harness: Harness;
|
|
81
|
+
implStateDir: string;
|
|
82
|
+
mode: 'train' | 'frozen';
|
|
83
|
+
task?: HarnessContext['task'];
|
|
84
|
+
}) => Promise<{
|
|
85
|
+
envelope?: {
|
|
86
|
+
executor: {
|
|
87
|
+
mode: 'train' | 'frozen';
|
|
88
|
+
codeDigest: string;
|
|
89
|
+
};
|
|
90
|
+
};
|
|
91
|
+
violation?: {
|
|
92
|
+
taskId: string;
|
|
93
|
+
};
|
|
94
|
+
solution?: {
|
|
95
|
+
patch: string;
|
|
96
|
+
};
|
|
97
|
+
}>;
|
|
98
|
+
/**
|
|
99
|
+
* The grade verdict the orchestrator consumes. It reads exactly two fields:
|
|
100
|
+
* `passed_match` (→ per-task pass/fail) and `test_log` (→ recorded excerpt).
|
|
101
|
+
* This is the swe-rebench-v2 verdict surface; the repo-native JinnRepoEvaluator
|
|
102
|
+
* is projected onto it by the adapter in eval.ts. Anything unscorable is
|
|
103
|
+
* signalled by THROWING (the orchestrator's catch records `unscorable`) — never
|
|
104
|
+
* by a verdict flag — so both backends agree on the unscorable contract.
|
|
105
|
+
*/
|
|
106
|
+
export interface EvalGradeVerdict {
|
|
107
|
+
passed_match: boolean;
|
|
108
|
+
test_log: string;
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* Minimal structural evaluator the orchestrator depends on. `SweRebenchV2Evaluator`
|
|
112
|
+
* satisfies it directly (its verdict is a superset of `EvalGradeVerdict`); the
|
|
113
|
+
* jinn-repo path supplies an adapter in eval.ts that wraps `JinnRepoEvaluator`,
|
|
114
|
+
* translating the call and projecting its `{ passed, unscorable, logExcerpt }`
|
|
115
|
+
* result onto this verdict (throwing on unscorable). `task`/`solutionPayload`/`row`
|
|
116
|
+
* are the swe-rebench-v2 grade call; the orchestrator passes them verbatim and
|
|
117
|
+
* the backend adapter interprets them.
|
|
118
|
+
*/
|
|
119
|
+
export interface SolutionEvaluator {
|
|
120
|
+
grade(args: {
|
|
121
|
+
task: {
|
|
122
|
+
instance_id: string;
|
|
123
|
+
};
|
|
124
|
+
solutionPayload: {
|
|
125
|
+
schemaVersion: string;
|
|
126
|
+
patch: string;
|
|
127
|
+
};
|
|
128
|
+
row?: unknown;
|
|
129
|
+
}): Promise<EvalGradeVerdict>;
|
|
130
|
+
}
|
|
131
|
+
export interface EvalOrchestratorDeps {
|
|
132
|
+
harness: Harness;
|
|
133
|
+
fetchImplStateDirToLocal(implStateDirCid: string, targetDir: string): Promise<string>;
|
|
134
|
+
evaluator: SolutionEvaluator;
|
|
135
|
+
runHarnessOnce: RunHarnessOnceForEval;
|
|
136
|
+
store: {
|
|
137
|
+
recordEvalResult(args: EvalResultRecord): void;
|
|
138
|
+
getEvalAggregate(checkpointCid: string, slateVersion: string): EvalAggregate;
|
|
139
|
+
/** Distinct slate_hash values the parent's results were recorded under (drift guard). */
|
|
140
|
+
getEvalSlateHashes(checkpointCid: string, slateVersion: string): string[];
|
|
141
|
+
/**
|
|
142
|
+
* Optional: per-instance results for a (checkpoint, slate version). When
|
|
143
|
+
* present, the orchestrator also emits the paired (matched-design) McNemar
|
|
144
|
+
* verdict (DR-2026-06-02-b §2a) — the same slate is scored before & after, so
|
|
145
|
+
* the matched test is the statistically correct one and is far more powerful
|
|
146
|
+
* than the marginal disjoint-interval test. Reported ALONGSIDE `comparison`,
|
|
147
|
+
* never replacing it (the exam is strengthened, not weakened).
|
|
148
|
+
*/
|
|
149
|
+
getEvalResults?(checkpointCid: string, slateVersion: string): PairedInput[];
|
|
150
|
+
};
|
|
151
|
+
}
|
|
152
|
+
export interface PerTaskResult {
|
|
153
|
+
instance_id: string;
|
|
154
|
+
/** null when unscorable. */
|
|
155
|
+
passed: boolean | null;
|
|
156
|
+
unscorable: boolean;
|
|
157
|
+
}
|
|
158
|
+
/**
|
|
159
|
+
* Provenance of the graded artifact (Legibility). The CLI grades the operator's
|
|
160
|
+
* LOCAL frozen impl-state — verified == the named checkpoint via the C1
|
|
161
|
+
* codeDigest guard (CheckpointStateMismatchError) — NOT a state re-fetched from
|
|
162
|
+
* the checkpoint CID. Surfacing this stops a reader from assuming the tool
|
|
163
|
+
* fetched and graded the published checkpoint's state.
|
|
164
|
+
*/
|
|
165
|
+
export interface EvalProvenance {
|
|
166
|
+
/** Local impl-state directory that was actually run. */
|
|
167
|
+
implStateDir: string;
|
|
168
|
+
/** Real codeDigest of the evaluated impl-state (verified == manifest.codeDigest). */
|
|
169
|
+
codeDigest: string;
|
|
170
|
+
/** Always true on a returned result — a mismatch throws CheckpointStateMismatchError. */
|
|
171
|
+
matchedCheckpoint: true;
|
|
172
|
+
}
|
|
173
|
+
export interface EvalRunResult {
|
|
174
|
+
perTask: PerTaskResult[];
|
|
175
|
+
comparison: RateComparison;
|
|
176
|
+
/**
|
|
177
|
+
* Paired (matched-design) McNemar verdict vs the parent — present only when
|
|
178
|
+
* the store exposes `getEvalResults`. The marginal `comparison` above is
|
|
179
|
+
* conservative; this is the statistically correct test for the same-slate
|
|
180
|
+
* before/after design and is reported alongside it (DR-2026-06-02-b §2a).
|
|
181
|
+
*/
|
|
182
|
+
paired?: PairedComparison;
|
|
183
|
+
/** What was actually graded (local impl-state), not the checkpoint identity. */
|
|
184
|
+
evaluated: EvalProvenance;
|
|
185
|
+
}
|
|
186
|
+
/**
|
|
187
|
+
* One slate instance normalised for the backend-agnostic run/grade loop. The
|
|
188
|
+
* BACKEND (eval.ts) owns construction of both `harnessTask` (the LEAK-CONTROLLED
|
|
189
|
+
* view the solver sees — for jinn-repo this is `solverView(item)`, never the
|
|
190
|
+
* pool item) and `gradeTask`/`row` (what the evaluator needs — for jinn-repo the
|
|
191
|
+
* full pool item incl. gold tests). The swe-rebench-v2 path derives these from
|
|
192
|
+
* `tasksWithRows` via the default mapping below, unchanged.
|
|
193
|
+
*/
|
|
194
|
+
export interface EvalSlateInstance {
|
|
195
|
+
instance_id: string;
|
|
196
|
+
/** Task handed to the solver harness — already leak-controlled by the backend. */
|
|
197
|
+
harnessTask: NonNullable<HarnessContext['task']>;
|
|
198
|
+
/** Backend-specific grade payload; passed verbatim as the evaluator's `task`. */
|
|
199
|
+
gradeTask: {
|
|
200
|
+
instance_id: string;
|
|
201
|
+
};
|
|
202
|
+
/** Solution payload `schemaVersion` the evaluator expects. */
|
|
203
|
+
solutionSchemaVersion: string;
|
|
204
|
+
/** swe-rebench-v2 HF row reused at grade time; absent for repo-native. */
|
|
205
|
+
row?: unknown;
|
|
206
|
+
}
|
|
207
|
+
export declare function runEval(args: {
|
|
208
|
+
checkpointManifest: HarnessCheckpointManifest;
|
|
209
|
+
checkpointCid: string;
|
|
210
|
+
slate: LoadedHeldOutSlate;
|
|
211
|
+
/**
|
|
212
|
+
* swe-rebench-v2 slate tasks (the historical input). When given, each is
|
|
213
|
+
* normalised via the default swe-rebench mapping. Mutually informative with
|
|
214
|
+
* `slateInstances`: a backend that builds its own leak-controlled instances
|
|
215
|
+
* (jinn-repo) passes `slateInstances` directly instead.
|
|
216
|
+
*/
|
|
217
|
+
tasksWithRows?: ResolvedSlateTask[];
|
|
218
|
+
/** Pre-built, backend-normalised instances (jinn-repo path). Overrides `tasksWithRows`. */
|
|
219
|
+
slateInstances?: EvalSlateInstance[];
|
|
220
|
+
parentCheckpointCid: string;
|
|
221
|
+
deps: EvalOrchestratorDeps;
|
|
222
|
+
/** Working dir for the fetched impl-state-dir (defaults to a checkpoint-scoped tmp path). */
|
|
223
|
+
implStateDir?: string;
|
|
224
|
+
}): Promise<EvalRunResult>;
|