swarm-orchestrator 11.2.0 → 13.1.3
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/CHANGELOG.md +160 -0
- package/README.md +187 -364
- package/dist/agent-run.js +143 -0
- package/dist/agent-run.js.map +1 -0
- package/dist/cli-options.js +244 -0
- package/dist/cli-options.js.map +1 -0
- package/dist/cli.js +859 -0
- package/dist/cli.js.map +1 -0
- package/dist/config/settings.js +82 -0
- package/dist/config/settings.js.map +1 -0
- package/dist/config/swarm-toml.js +187 -0
- package/dist/config/swarm-toml.js.map +1 -0
- package/dist/core/clock.js +2 -0
- package/dist/core/clock.js.map +1 -0
- package/dist/core/loop-events.js +2 -0
- package/dist/core/loop-events.js.map +1 -0
- package/dist/core/loop.js +118 -0
- package/dist/core/loop.js.map +1 -0
- package/dist/core/model-client.js +23 -0
- package/dist/core/model-client.js.map +1 -0
- package/dist/core/random-source.js +2 -0
- package/dist/core/random-source.js.map +1 -0
- package/dist/core/termination.js +20 -0
- package/dist/core/termination.js.map +1 -0
- package/dist/core/tool-invoker.js +2 -0
- package/dist/core/tool-invoker.js.map +1 -0
- package/dist/evidence/blob-store.js +52 -0
- package/dist/evidence/blob-store.js.map +1 -0
- package/dist/evidence/bundle-manifest.js +45 -0
- package/dist/evidence/bundle-manifest.js.map +1 -0
- package/dist/evidence/bundle.js +127 -0
- package/dist/evidence/bundle.js.map +1 -0
- package/dist/evidence/canonical-json.js +97 -0
- package/dist/evidence/canonical-json.js.map +1 -0
- package/dist/evidence/claim.js +123 -0
- package/dist/evidence/claim.js.map +1 -0
- package/dist/evidence/combined-bundle.js +40 -0
- package/dist/evidence/combined-bundle.js.map +1 -0
- package/dist/evidence/dag.js +118 -0
- package/dist/evidence/dag.js.map +1 -0
- package/dist/evidence/latin-lookalikes.js +74 -0
- package/dist/evidence/latin-lookalikes.js.map +1 -0
- package/dist/evidence/ledger-record.js +80 -0
- package/dist/evidence/ledger-record.js.map +1 -0
- package/dist/evidence/ledger.js +138 -0
- package/dist/evidence/ledger.js.map +1 -0
- package/dist/evidence/model-call-recording.js +80 -0
- package/dist/evidence/model-call-recording.js.map +1 -0
- package/dist/evidence/predicate.js +244 -0
- package/dist/evidence/predicate.js.map +1 -0
- package/dist/evidence/record-index.js +21 -0
- package/dist/evidence/record-index.js.map +1 -0
- package/dist/evidence/record-kind.js +31 -0
- package/dist/evidence/record-kind.js.map +1 -0
- package/dist/evidence/replay.js +100 -0
- package/dist/evidence/replay.js.map +1 -0
- package/dist/evidence/review-page.js +192 -0
- package/dist/evidence/review-page.js.map +1 -0
- package/dist/evidence/scrub.js +533 -0
- package/dist/evidence/scrub.js.map +1 -0
- package/dist/evidence/session.js +100 -0
- package/dist/evidence/session.js.map +1 -0
- package/dist/evidence/signing.js +176 -0
- package/dist/evidence/signing.js.map +1 -0
- package/dist/evidence/verifier/verify.d.mts +22 -0
- package/dist/evidence/verifier/verify.mjs +583 -0
- package/dist/gates/auto-resolve.js +276 -0
- package/dist/gates/auto-resolve.js.map +1 -0
- package/dist/gates/base-control.js +149 -0
- package/dist/gates/base-control.js.map +1 -0
- package/dist/gates/comment-spans.js +107 -0
- package/dist/gates/comment-spans.js.map +1 -0
- package/dist/gates/coverage-artifact.js +55 -0
- package/dist/gates/coverage-artifact.js.map +1 -0
- package/dist/gates/default-gates.js +241 -0
- package/dist/gates/default-gates.js.map +1 -0
- package/dist/gates/engine.js +64 -0
- package/dist/gates/engine.js.map +1 -0
- package/dist/gates/escalation.js +44 -0
- package/dist/gates/escalation.js.map +1 -0
- package/dist/gates/file-set-tool.js +63 -0
- package/dist/gates/file-set-tool.js.map +1 -0
- package/dist/gates/file-set.js +183 -0
- package/dist/gates/file-set.js.map +1 -0
- package/dist/gates/gate-definition.js +15 -0
- package/dist/gates/gate-definition.js.map +1 -0
- package/dist/gates/gate-runner.js +180 -0
- package/dist/gates/gate-runner.js.map +1 -0
- package/dist/gates/git-workspace.js +173 -0
- package/dist/gates/git-workspace.js.map +1 -0
- package/dist/gates/inspection-gates.js +270 -0
- package/dist/gates/inspection-gates.js.map +1 -0
- package/dist/gates/measure-snapshot.js +204 -0
- package/dist/gates/measure-snapshot.js.map +1 -0
- package/dist/gates/measures.js +224 -0
- package/dist/gates/measures.js.map +1 -0
- package/dist/gates/node-command-runner.js +60 -0
- package/dist/gates/node-command-runner.js.map +1 -0
- package/dist/gates/node-test-command.js +222 -0
- package/dist/gates/node-test-command.js.map +1 -0
- package/dist/gates/parsers.js +409 -0
- package/dist/gates/parsers.js.map +1 -0
- package/dist/gates/project-type.js +63 -0
- package/dist/gates/project-type.js.map +1 -0
- package/dist/gates/ratchet-summary.js +18 -0
- package/dist/gates/ratchet-summary.js.map +1 -0
- package/dist/gates/ratchet.js +202 -0
- package/dist/gates/ratchet.js.map +1 -0
- package/dist/gates/respecification.js +153 -0
- package/dist/gates/respecification.js.map +1 -0
- package/dist/gates/unified-diff.js +209 -0
- package/dist/gates/unified-diff.js.map +1 -0
- package/dist/gates/workspace-changes.js +5 -0
- package/dist/gates/workspace-changes.js.map +1 -0
- package/dist/providers/ai-sdk-model-client.js +86 -0
- package/dist/providers/ai-sdk-model-client.js.map +1 -0
- package/dist/providers/endpoint-resolution.js +81 -0
- package/dist/providers/endpoint-resolution.js.map +1 -0
- package/dist/providers/fixture-provider.js +70 -0
- package/dist/providers/fixture-provider.js.map +1 -0
- package/dist/providers/local-discovery.js +38 -0
- package/dist/providers/local-discovery.js.map +1 -0
- package/dist/providers/message-conversion.js +40 -0
- package/dist/providers/message-conversion.js.map +1 -0
- package/dist/providers/model-spec.js +33 -0
- package/dist/providers/model-spec.js.map +1 -0
- package/dist/providers/registry.js +75 -0
- package/dist/providers/registry.js.map +1 -0
- package/dist/providers/served-models.js +59 -0
- package/dist/providers/served-models.js.map +1 -0
- package/dist/select/backend-canary.js +119 -0
- package/dist/select/backend-canary.js.map +1 -0
- package/dist/select/backend-command.js +15 -0
- package/dist/select/backend-command.js.map +1 -0
- package/dist/select/bundled-pricing.js +12 -0
- package/dist/select/bundled-pricing.js.map +1 -0
- package/dist/select/bundled-shortlist.js +13 -0
- package/dist/select/bundled-shortlist.js.map +1 -0
- package/dist/select/calibrate.js +128 -0
- package/dist/select/calibrate.js.map +1 -0
- package/dist/select/calibration-case.js +66 -0
- package/dist/select/calibration-case.js.map +1 -0
- package/dist/select/calibration-cases.v1.json +257 -0
- package/dist/select/calibration-measures.js +89 -0
- package/dist/select/calibration-measures.js.map +1 -0
- package/dist/select/calibration-report.js +278 -0
- package/dist/select/calibration-report.js.map +1 -0
- package/dist/select/calibration-run.js +168 -0
- package/dist/select/calibration-run.js.map +1 -0
- package/dist/select/calibration-summary.js +64 -0
- package/dist/select/calibration-summary.js.map +1 -0
- package/dist/select/coding-models.v1.json +478 -0
- package/dist/select/dimensions.js +111 -0
- package/dist/select/dimensions.js.map +1 -0
- package/dist/select/golden-set.js +89 -0
- package/dist/select/golden-set.js.map +1 -0
- package/dist/select/hardware-probe.js +107 -0
- package/dist/select/hardware-probe.js.map +1 -0
- package/dist/select/memory-probe.js +33 -0
- package/dist/select/memory-probe.js.map +1 -0
- package/dist/select/model-preflight.js +85 -0
- package/dist/select/model-preflight.js.map +1 -0
- package/dist/select/model-pricing.v1.json +17 -0
- package/dist/select/pick-store.js +39 -0
- package/dist/select/pick-store.js.map +1 -0
- package/dist/select/pricing-source.js +38 -0
- package/dist/select/pricing-source.js.map +1 -0
- package/dist/select/pricing.js +66 -0
- package/dist/select/pricing.js.map +1 -0
- package/dist/select/published-source.js +11 -0
- package/dist/select/published-source.js.map +1 -0
- package/dist/select/recommendation.js +270 -0
- package/dist/select/recommendation.js.map +1 -0
- package/dist/select/reward.js +73 -0
- package/dist/select/reward.js.map +1 -0
- package/dist/select/routing-log.js +94 -0
- package/dist/select/routing-log.js.map +1 -0
- package/dist/select/routing-record.js +23 -0
- package/dist/select/routing-record.js.map +1 -0
- package/dist/select/routing-report.js +95 -0
- package/dist/select/routing-report.js.map +1 -0
- package/dist/select/select-report.js +81 -0
- package/dist/select/select-report.js.map +1 -0
- package/dist/select/shortlist-source.js +102 -0
- package/dist/select/shortlist-source.js.map +1 -0
- package/dist/select/shortlist.js +132 -0
- package/dist/select/shortlist.js.map +1 -0
- package/dist/select/system-probe.js +32 -0
- package/dist/select/system-probe.js.map +1 -0
- package/dist/select/task-class.js +40 -0
- package/dist/select/task-class.js.map +1 -0
- package/dist/select/task-cost.js +55 -0
- package/dist/select/task-cost.js.map +1 -0
- package/dist/select/ucb.js +87 -0
- package/dist/select/ucb.js.map +1 -0
- package/dist/tools/chokepoint-record.js +56 -0
- package/dist/tools/chokepoint-record.js.map +1 -0
- package/dist/tools/chokepoint.js +183 -0
- package/dist/tools/chokepoint.js.map +1 -0
- package/dist/tools/claim-tool.js +59 -0
- package/dist/tools/claim-tool.js.map +1 -0
- package/dist/tools/derivation.js +87 -0
- package/dist/tools/derivation.js.map +1 -0
- package/dist/tools/file-tools.js +112 -0
- package/dist/tools/file-tools.js.map +1 -0
- package/dist/tools/regex-safety.js +663 -0
- package/dist/tools/regex-safety.js.map +1 -0
- package/dist/tools/sandbox.js +108 -0
- package/dist/tools/sandbox.js.map +1 -0
- package/dist/tools/search-tool.js +121 -0
- package/dist/tools/search-tool.js.map +1 -0
- package/dist/tools/shell-tool.js +66 -0
- package/dist/tools/shell-tool.js.map +1 -0
- package/dist/tools/tool-argument-decoding.js +118 -0
- package/dist/tools/tool-argument-decoding.js.map +1 -0
- package/dist/tools/tool-definition.js +15 -0
- package/dist/tools/tool-definition.js.map +1 -0
- package/dist/tools/workspace-path.js +18 -0
- package/dist/tools/workspace-path.js.map +1 -0
- package/dist/tools/workspace-tools.js +15 -0
- package/dist/tools/workspace-tools.js.map +1 -0
- package/dist/tui/confirmation-queue.js +49 -0
- package/dist/tui/confirmation-queue.js.map +1 -0
- package/dist/tui/elapsed.js +18 -0
- package/dist/tui/elapsed.js.map +1 -0
- package/dist/tui/evidence-panel.js +53 -0
- package/dist/tui/evidence-panel.js.map +1 -0
- package/dist/tui/key-bindings.js +111 -0
- package/dist/tui/key-bindings.js.map +1 -0
- package/dist/tui/key-dispatcher.js +115 -0
- package/dist/tui/key-dispatcher.js.map +1 -0
- package/dist/tui/layout.js +100 -0
- package/dist/tui/layout.js.map +1 -0
- package/dist/tui/open-path.js +76 -0
- package/dist/tui/open-path.js.map +1 -0
- package/dist/tui/plain-lines.js +32 -0
- package/dist/tui/plain-lines.js.map +1 -0
- package/dist/tui/screen-model.js +271 -0
- package/dist/tui/screen-model.js.map +1 -0
- package/dist/tui/screen.js +113 -0
- package/dist/tui/screen.js.map +1 -0
- package/dist/tui/session-interface.js +193 -0
- package/dist/tui/session-interface.js.map +1 -0
- package/dist/tui/session-store.js +22 -0
- package/dist/tui/session-store.js.map +1 -0
- package/dist/tui/session-view.js +157 -0
- package/dist/tui/session-view.js.map +1 -0
- package/dist/tui/terminal-text.js +97 -0
- package/dist/tui/terminal-text.js.map +1 -0
- package/dist/tui/theme.js +94 -0
- package/dist/tui/theme.js.map +1 -0
- package/dist/tui/verify-bundle.js +47 -0
- package/dist/tui/verify-bundle.js.map +1 -0
- package/dist/tui/view-state.js +89 -0
- package/dist/tui/view-state.js.map +1 -0
- package/dist/workers/merge-queue.js +249 -0
- package/dist/workers/merge-queue.js.map +1 -0
- package/dist/workers/parallel-report.js +49 -0
- package/dist/workers/parallel-report.js.map +1 -0
- package/dist/workers/parallel-run.js +178 -0
- package/dist/workers/parallel-run.js.map +1 -0
- package/dist/workers/worktree.js +112 -0
- package/dist/workers/worktree.js.map +1 -0
- package/docs/build-guide.md +175 -0
- package/docs/claims.md +50 -0
- package/docs/security-coverage.md +552 -0
- package/package.json +67 -133
- package/config/personas/architect.yaml +0 -26
- package/config/personas/dependency-auditor.yaml +0 -57
- package/config/personas/documentation-writer.yaml +0 -57
- package/config/personas/implementer.yaml +0 -55
- package/config/personas/migration-specialist.yaml +0 -59
- package/config/personas/security-reviewer.yaml +0 -57
- package/config/personas/test-author.yaml +0 -56
- package/config/personas/verifier.yaml +0 -62
- package/dist/src/audit/aibom/cyclonedx-ml.js +0 -174
- package/dist/src/audit/aibom/index.js +0 -11
- package/dist/src/audit/aibom/ledger-reader.js +0 -40
- package/dist/src/audit/aibom/spdx-ai-profile.js +0 -166
- package/dist/src/audit/cheat-detector/assertion-strip.js +0 -60
- package/dist/src/audit/cheat-detector/audit-config.js +0 -342
- package/dist/src/audit/cheat-detector/comment-only-fix.js +0 -54
- package/dist/src/audit/cheat-detector/confirm-findings.js +0 -96
- package/dist/src/audit/cheat-detector/coverage-erosion.js +0 -67
- package/dist/src/audit/cheat-detector/dead-branch-insertion.js +0 -45
- package/dist/src/audit/cheat-detector/detector-sets.js +0 -86
- package/dist/src/audit/cheat-detector/detector-types.js +0 -2
- package/dist/src/audit/cheat-detector/diff-chunker.js +0 -103
- package/dist/src/audit/cheat-detector/diff-walker.js +0 -236
- package/dist/src/audit/cheat-detector/error-swallow.js +0 -263
- package/dist/src/audit/cheat-detector/exception-rethrow-lost-context.js +0 -38
- package/dist/src/audit/cheat-detector/fake-refactor.js +0 -218
- package/dist/src/audit/cheat-detector/import-resolver.js +0 -313
- package/dist/src/audit/cheat-detector/index.js +0 -174
- package/dist/src/audit/cheat-detector/internal-roots.js +0 -192
- package/dist/src/audit/cheat-detector/judge-primary.js +0 -68
- package/dist/src/audit/cheat-detector/judge-prompts/index.js +0 -25
- package/dist/src/audit/cheat-detector/judge-prompts/types.js +0 -10
- package/dist/src/audit/cheat-detector/judge-prompts/v1-conservative.js +0 -66
- package/dist/src/audit/cheat-detector/judge-prompts/v2-balanced.js +0 -40
- package/dist/src/audit/cheat-detector/llm-judge/anthropic-judge.js +0 -245
- package/dist/src/audit/cheat-detector/llm-judge/cache.js +0 -92
- package/dist/src/audit/cheat-detector/llm-judge/index.js +0 -172
- package/dist/src/audit/cheat-detector/llm-judge/local-judge.js +0 -67
- package/dist/src/audit/cheat-detector/llm-judge/types.js +0 -12
- package/dist/src/audit/cheat-detector/manifests/cargo-toml.js +0 -63
- package/dist/src/audit/cheat-detector/manifests/composer-json.js +0 -82
- package/dist/src/audit/cheat-detector/manifests/csproj.js +0 -93
- package/dist/src/audit/cheat-detector/manifests/find-manifests.js +0 -128
- package/dist/src/audit/cheat-detector/manifests/gemfile.js +0 -79
- package/dist/src/audit/cheat-detector/manifests/go-mod.js +0 -73
- package/dist/src/audit/cheat-detector/manifests/gradle.js +0 -97
- package/dist/src/audit/cheat-detector/manifests/index.js +0 -43
- package/dist/src/audit/cheat-detector/manifests/package-json.js +0 -83
- package/dist/src/audit/cheat-detector/manifests/pom-xml.js +0 -78
- package/dist/src/audit/cheat-detector/manifests/pyproject-toml.js +0 -78
- package/dist/src/audit/cheat-detector/manifests/requirements-txt.js +0 -56
- package/dist/src/audit/cheat-detector/manifests/types.js +0 -15
- package/dist/src/audit/cheat-detector/matcher-grader.js +0 -267
- package/dist/src/audit/cheat-detector/mock-of-hallucination.js +0 -276
- package/dist/src/audit/cheat-detector/no-op-fix-helpers.js +0 -157
- package/dist/src/audit/cheat-detector/no-op-fix.js +0 -268
- package/dist/src/audit/cheat-detector/pr-intent.js +0 -85
- package/dist/src/audit/cheat-detector/registries/cache.js +0 -41
- package/dist/src/audit/cheat-detector/registries/github-actions-scan.js +0 -52
- package/dist/src/audit/cheat-detector/registries/index.js +0 -32
- package/dist/src/audit/cheat-detector/registries/offline-allowlist.js +0 -174
- package/dist/src/audit/cheat-detector/registries/types.js +0 -13
- package/dist/src/audit/cheat-detector/subject-paths.js +0 -92
- package/dist/src/audit/cheat-detector/test-import-closure.js +0 -141
- package/dist/src/audit/cheat-detector/test-relaxation.js +0 -194
- package/dist/src/audit/cheat-detector/type-suppression.js +0 -100
- package/dist/src/audit/cheat-detector/verify-findings.js +0 -294
- package/dist/src/audit/execution-grounded/corroborate.js +0 -144
- package/dist/src/audit/execution-grounded/coverage-delta.js +0 -288
- package/dist/src/audit/execution-grounded/docker-runner.js +0 -104
- package/dist/src/audit/execution-grounded/eg-cache.js +0 -106
- package/dist/src/audit/execution-grounded/exec-env.js +0 -282
- package/dist/src/audit/execution-grounded/index.js +0 -440
- package/dist/src/audit/execution-grounded/issue-repro.js +0 -337
- package/dist/src/audit/execution-grounded/monorepo.js +0 -83
- package/dist/src/audit/execution-grounded/mutation-check.js +0 -332
- package/dist/src/audit/execution-grounded/sandbox.js +0 -459
- package/dist/src/audit/gate/block-eligibility.js +0 -66
- package/dist/src/audit/gate/block-trigger-ledger.js +0 -39
- package/dist/src/audit/gate/block-trigger-types.js +0 -16
- package/dist/src/audit/gate/block-triggers.js +0 -223
- package/dist/src/audit/gate/calibrate-triggers.js +0 -41
- package/dist/src/audit/gate/gate-decision.js +0 -43
- package/dist/src/audit/gate/revert-proof.js +0 -70
- package/dist/src/audit/gate/wilson.js +0 -30
- package/dist/src/audit/oracle/category-map.js +0 -24
- package/dist/src/audit/oracle/evade/evaders.js +0 -90
- package/dist/src/audit/oracle/inject/assertion-strip.js +0 -32
- package/dist/src/audit/oracle/inject/cheat-mock-mutation.js +0 -37
- package/dist/src/audit/oracle/inject/comment-only-fix.js +0 -33
- package/dist/src/audit/oracle/inject/coverage-erosion.js +0 -35
- package/dist/src/audit/oracle/inject/dead-branch-insertion.js +0 -31
- package/dist/src/audit/oracle/inject/diff-carrier.js +0 -165
- package/dist/src/audit/oracle/inject/error-swallow.js +0 -32
- package/dist/src/audit/oracle/inject/exception-rethrow-lost-context.js +0 -35
- package/dist/src/audit/oracle/inject/fake-refactor.js +0 -32
- package/dist/src/audit/oracle/inject/goal-not-fixed.js +0 -37
- package/dist/src/audit/oracle/inject/index.js +0 -42
- package/dist/src/audit/oracle/inject/injection-runner.js +0 -118
- package/dist/src/audit/oracle/inject/injector-types.js +0 -24
- package/dist/src/audit/oracle/inject/mock-of-hallucination.js +0 -43
- package/dist/src/audit/oracle/inject/no-op-fix.js +0 -47
- package/dist/src/audit/oracle/inject/site.js +0 -10
- package/dist/src/audit/oracle/inject/test-relaxation.js +0 -29
- package/dist/src/audit/oracle/inject/type-suppression.js +0 -33
- package/dist/src/audit/pr-source/index.js +0 -132
- package/dist/src/audit/report-comment/block-trigger-section.js +0 -80
- package/dist/src/audit/report-comment/detector-precision.js +0 -154
- package/dist/src/audit/report-comment/index.js +0 -209
- package/dist/src/audit/shadow-output.js +0 -105
- package/dist/src/audit/shadow.js +0 -103
- package/dist/src/audit/types.js +0 -23
- package/dist/src/cli/flags.js +0 -156
- package/dist/src/cli/v8/argv-schema.js +0 -127
- package/dist/src/cli/v8/audit-handler.js +0 -662
- package/dist/src/cli/v8/compile-handler.js +0 -272
- package/dist/src/cli/v8/doctor-handler.js +0 -849
- package/dist/src/cli/v8/grammar-resolve.js +0 -88
- package/dist/src/cli/v8/index.js +0 -70
- package/dist/src/cli/v8/init-handler.js +0 -177
- package/dist/src/cli/v8/ledger-verify-handler.js +0 -142
- package/dist/src/cli/v8/local-provider-flags.js +0 -275
- package/dist/src/cli/v8/local-provider-types.js +0 -10
- package/dist/src/cli/v8/pr-fetch.js +0 -192
- package/dist/src/cli/v8/pr-manifest-fetch.js +0 -231
- package/dist/src/cli/v8/resume-handler.js +0 -541
- package/dist/src/cli/v8/run-handler.js +0 -573
- package/dist/src/cli/v8/run-wrapper.js +0 -253
- package/dist/src/cli/v8/stats-handler.js +0 -270
- package/dist/src/cli.js +0 -102
- package/dist/src/config/provider-config.js +0 -202
- package/dist/src/contract/approval.js +0 -193
- package/dist/src/contract/auto-discover.js +0 -77
- package/dist/src/contract/canonicalize.js +0 -187
- package/dist/src/contract/compiler.js +0 -304
- package/dist/src/contract/extractor/anthropic-extractor.js +0 -266
- package/dist/src/contract/extractor/contract-schema.js +0 -126
- package/dist/src/contract/extractor/deterministic-extractor.js +0 -57
- package/dist/src/contract/extractor/factory.js +0 -105
- package/dist/src/contract/extractor/local-extractor.js +0 -133
- package/dist/src/contract/extractor/scan-pipeline.js +0 -190
- package/dist/src/contract/extractor/stub-extractor.js +0 -89
- package/dist/src/contract/extractor/types.js +0 -2
- package/dist/src/contract/index.js +0 -51
- package/dist/src/contract/schema/loader.js +0 -87
- package/dist/src/contract/schema/v1.json +0 -198
- package/dist/src/contract/serializer.js +0 -139
- package/dist/src/contract/tagger.js +0 -122
- package/dist/src/contract/types.js +0 -22
- package/dist/src/contract/validator.js +0 -235
- package/dist/src/env-loader.js +0 -104
- package/dist/src/errors.js +0 -27
- package/dist/src/falsification/adapters/adapter-profile.js +0 -5
- package/dist/src/falsification/adapters/candidate-runners.js +0 -143
- package/dist/src/falsification/adapters/cli-falsifier.js +0 -171
- package/dist/src/falsification/adapters/fenced-json.js +0 -107
- package/dist/src/falsification/adapters/index.js +0 -30
- package/dist/src/falsification/adapters/profiles/claude-code.js +0 -202
- package/dist/src/falsification/adapters/profiles/codex/prompts/property-must-hold.md +0 -44
- package/dist/src/falsification/adapters/profiles/codex.js +0 -206
- package/dist/src/falsification/adapters/profiles/copilot/prompts/function-must-have-signature.md +0 -58
- package/dist/src/falsification/adapters/profiles/copilot/prompts/import-graph-must-satisfy.md +0 -49
- package/dist/src/falsification/adapters/profiles/copilot/prompts/no-cycles.md +0 -6
- package/dist/src/falsification/adapters/profiles/copilot/prompts/no-upward-imports.md +0 -4
- package/dist/src/falsification/adapters/profiles/copilot.js +0 -184
- package/dist/src/falsification/adapters/registry.js +0 -90
- package/dist/src/falsification/adapters/spawn-cli.js +0 -88
- package/dist/src/falsification/adapters/transient-retry.js +0 -93
- package/dist/src/falsification/adapters/types.js +0 -5
- package/dist/src/falsification/dispatcher.js +0 -70
- package/dist/src/falsification/inspection/heuristic-classifier.js +0 -361
- package/dist/src/falsification/scheduler.js +0 -217
- package/dist/src/index.js +0 -22
- package/dist/src/inference/local/backend.js +0 -30
- package/dist/src/inference/local/backends/llama-cpp.js +0 -181
- package/dist/src/inference/local/backends/ollama.js +0 -186
- package/dist/src/inference/local/backends/openai-compatible.js +0 -187
- package/dist/src/inference/local/backends/vllm.js +0 -175
- package/dist/src/inference/local/concurrency-gate.js +0 -68
- package/dist/src/inference/local/factory.js +0 -89
- package/dist/src/inference/local/grammars/unified-diff.gbnf +0 -26
- package/dist/src/ledger/index.js +0 -26
- package/dist/src/ledger/jsonl-ledger.js +0 -23
- package/dist/src/ledger/ledger.js +0 -212
- package/dist/src/ledger/memoization.js +0 -180
- package/dist/src/ledger/resume.js +0 -139
- package/dist/src/ledger/types.js +0 -6
- package/dist/src/logger.js +0 -96
- package/dist/src/persona/index.js +0 -31
- package/dist/src/persona/persona-registry.js +0 -187
- package/dist/src/persona/predicates.js +0 -54
- package/dist/src/persona/types.js +0 -6
- package/dist/src/persona/verifier-persona.js +0 -137
- package/dist/src/population/apply-verify.js +0 -142
- package/dist/src/population/deterministic-dispatch.js +0 -87
- package/dist/src/population/diff-applier.js +0 -90
- package/dist/src/population/diff-snapshot.js +0 -164
- package/dist/src/population/falsifier-dispatch.js +0 -115
- package/dist/src/population/file-context.js +0 -87
- package/dist/src/population/index.js +0 -27
- package/dist/src/population/manager.js +0 -364
- package/dist/src/population/persona-message.js +0 -185
- package/dist/src/population/pipeline-config.js +0 -73
- package/dist/src/population/post-merge-handler.js +0 -112
- package/dist/src/population/provider-attribution.js +0 -16
- package/dist/src/population/rollback.js +0 -177
- package/dist/src/population/single-mode-executor.js +0 -224
- package/dist/src/population/snapshot-cleanup.js +0 -299
- package/dist/src/population/state.js +0 -48
- package/dist/src/population/test-framework-misuse.js +0 -104
- package/dist/src/population/tournament-driver.js +0 -104
- package/dist/src/population/tournament.js +0 -427
- package/dist/src/population/unified-diff.js +0 -298
- package/dist/src/population/whole-file-apply.js +0 -181
- package/dist/src/session/anthropic-session.js +0 -198
- package/dist/src/session/auto-discover.js +0 -88
- package/dist/src/session/deterministic-session.js +0 -331
- package/dist/src/session/factory.js +0 -123
- package/dist/src/session/index.js +0 -28
- package/dist/src/session/local-session.js +0 -221
- package/dist/src/session/stub-session.js +0 -160
- package/dist/src/session/token-estimator.js +0 -23
- package/dist/src/session/types.js +0 -44
- package/dist/src/shared-predicates/index.js +0 -17
- package/dist/src/shared-predicates/predicate-runner.js +0 -61
- package/dist/src/shared-types/index.js +0 -17
- package/dist/src/shared-types/obligation-types.js +0 -25
- package/dist/src/shared-wasm/index.js +0 -17
- package/dist/src/shared-wasm/strategy-constants.js +0 -156
- package/dist/src/types.js +0 -5
- package/dist/src/verification/ast-imports.js +0 -199
- package/dist/src/verification/ast-signature.js +0 -406
- package/dist/src/verification/index.js +0 -14
- package/dist/src/verification/live-cost-tracker.js +0 -78
- package/dist/src/verification/post-merge.js +0 -53
- package/dist/src/verification/pre-generation.js +0 -71
- package/dist/src/verification/predicate-runner.js +0 -22
- package/dist/src/verification/run-verifier.js +0 -612
- package/dist/src/verification/streaming-verifier.js +0 -162
- package/dist/src/wasm/index.js +0 -29
- package/dist/src/wasm/registry.js +0 -30
- package/dist/src/wasm/strategies/format-prettier.js +0 -119
- package/dist/src/wasm/strategies/import-sort.js +0 -185
- package/dist/src/wasm/strategies/scaffold-template.js +0 -98
- package/dist/src/wasm/types.js +0 -11
- package/dist/src/wasm/wasm-runtime.js +0 -260
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## 13.1.3
|
|
4
|
+
|
|
5
|
+
The first 13.x on the npm registry. No behaviour changed: this is 13.1.1 with a manifest the
|
|
6
|
+
registry accepts and install instructions that are true.
|
|
7
|
+
|
|
8
|
+
### Fixed
|
|
9
|
+
|
|
10
|
+
- **The manifest named no repository, so a signed publish was refused.** `npm publish
|
|
11
|
+
--provenance` signs a statement naming the repository the tarball was built from, and the
|
|
12
|
+
registry checks it against `repository.url` before it accepts the write. That field was
|
|
13
|
+
absent, so the statement said one thing and the manifest said `""`, and the registry answered
|
|
14
|
+
`E422` after the provenance had already been written to the transparency log. Nothing in the
|
|
15
|
+
source tree can show this, so a test now asserts the field.
|
|
16
|
+
- **The package told its own readers it was not published.** The install section named a git ref
|
|
17
|
+
and said the registry served 12.0.0, because that is what was true while the credential was
|
|
18
|
+
missing. Those words ship inside the tarball, so publishing 13.1.1 as it stood would have put
|
|
19
|
+
a package on the registry whose first section denies being there. `npm install -g
|
|
20
|
+
swarm-orchestrator` is the first line again.
|
|
21
|
+
|
|
22
|
+
### Added
|
|
23
|
+
|
|
24
|
+
- A description, keywords, a homepage and a bug-tracker link, which is what the registry page
|
|
25
|
+
renders around the readme and what a search on the registry matches against.
|
|
26
|
+
- Three flags the readme never listed, `--base`, `--max-steps` and `--local-endpoint`, and a
|
|
27
|
+
pointer to `swarm --help` for the calibration flags it still does not list.
|
|
28
|
+
|
|
29
|
+
`13.1.2` was tagged and refused by the registry for the manifest reason above. The tag is left
|
|
30
|
+
where it is rather than moved, because it names a real tree and the refusal is part of the
|
|
31
|
+
record.
|
|
32
|
+
|
|
33
|
+
## 13.1.1
|
|
34
|
+
|
|
35
|
+
A packaging fix. Nothing about how the tool runs changed.
|
|
36
|
+
|
|
37
|
+
### Fixed
|
|
38
|
+
|
|
39
|
+
- **Installing from a git ref produced a package with no binary.** `dist/` is not committed and
|
|
40
|
+
is built by a script, and npm runs `prepare` for a git install but never `prepublishOnly`.
|
|
41
|
+
Only the latter was declared, so `npm install github:moonrunnerkc/swarm-orchestrator#v13.1.0`
|
|
42
|
+
resolved, reported no error, and left a directory with no `dist/` and no `swarm`. This is the
|
|
43
|
+
install path that matters while the registry publish is blocked, and it was the one that did
|
|
44
|
+
not work.
|
|
45
|
+
|
|
46
|
+
## 13.1.0
|
|
47
|
+
|
|
48
|
+
A run you can watch and drive, and an end-of-run panel that shows you what it produced.
|
|
49
|
+
Everything below is additive: no flag, command or output changed meaning, and the plain-line
|
|
50
|
+
stream a pipe or a CI job reads is byte-for-byte what it was.
|
|
51
|
+
|
|
52
|
+
### Added
|
|
53
|
+
|
|
54
|
+
- **An interactive terminal interface.** On a TTY, a run draws a single screen: the task and
|
|
55
|
+
the model in a header, the plan, the action stream, the gate strip, and a status line.
|
|
56
|
+
Scroll it, expand a row to the whole tool input and output and the ledger record it came
|
|
57
|
+
from, filter it, freeze the render without touching the run, and press `?` for the keymap.
|
|
58
|
+
Two exits that are not the same thing: `q` leaves the view and lets the run finish, `ctrl+c`
|
|
59
|
+
cancels the run.
|
|
60
|
+
- **An end-of-run evidence panel.** What the run produced, named by what each artifact is for,
|
|
61
|
+
with the record count and how many claims the harness verified against how many it refused.
|
|
62
|
+
One keystroke opens the review page, another the bundle directory. It says the bundle
|
|
63
|
+
verified only if the bundle's own verifier ran in that session and exited 0, and it names the
|
|
64
|
+
exit code; otherwise it says "not verified in this run" and prints the command.
|
|
65
|
+
- **`swarm review <bundle directory>`**, which shows that same panel for any bundle already on
|
|
66
|
+
disk, running the same verifier. Nothing is re-run.
|
|
67
|
+
- **`swarm --help`**, which used to report that `--help` needs a value.
|
|
68
|
+
- **Screen flags**: `--no-tui` for plain lines even on a terminal, `--color` and `--no-color`,
|
|
69
|
+
`--open-evidence` and `--no-open-evidence`. Opening is opt-in and never happens off a
|
|
70
|
+
terminal.
|
|
71
|
+
- **Three `swarm.toml` tables**: `[interface]` (`tui`, `color`, `open_evidence`), `[theme]`
|
|
72
|
+
(a colour per slot), and `[keys]` (a key per action). Flags win over the file, as everything
|
|
73
|
+
else does. An unknown key, colour or action is a typed error naming what was wrong and what
|
|
74
|
+
would have been accepted.
|
|
75
|
+
- **Sampling settings on the wire for a calibration run**: temperature and top-p pinned and
|
|
76
|
+
recorded in every model-call record, with a seed per repeat. An ordinary task run sends
|
|
77
|
+
nothing and is unchanged.
|
|
78
|
+
|
|
79
|
+
### Fixed
|
|
80
|
+
|
|
81
|
+
- **Two consumers of one stdin.** The CLI built a readline interface on `process.stdin` while
|
|
82
|
+
Ink held the same stdin in raw mode. A confirmation firing mid-run raced them, which is the
|
|
83
|
+
least acceptable place to drop a keystroke. Confirmation is now a component inside the
|
|
84
|
+
running screen, answered by the same key dispatcher.
|
|
85
|
+
- **The curated model shortlist and pricing table answered 404.** Both URLs named the branch
|
|
86
|
+
`main`, which is the v12 lineage and carries neither file, so `swarm select` fell back to the
|
|
87
|
+
bundled snapshot on every machine.
|
|
88
|
+
- **A missing verifier read as a refused bundle.** Node exits 1 on a module it cannot find,
|
|
89
|
+
which at the exit code is the same as a verifier that ran and said no. One is the absence of
|
|
90
|
+
a verdict.
|
|
91
|
+
- **Local models reported no tokens, and so cost nothing.** An OpenAI-compatible server streams
|
|
92
|
+
a usage chunk only when the request carries `stream_options.include_usage`, and the local
|
|
93
|
+
provider was not built to send it. Every local run recorded `outputTokens: 0`, so throughput
|
|
94
|
+
was unmeasurable and every run priced at `$0.0000`, which the routing reward is built from.
|
|
95
|
+
The router had been learning that local models are free.
|
|
96
|
+
- **One keychain message for three different failures.** A key that could not be read, an entry
|
|
97
|
+
holding something that is not a key, and a keychain that would not accept a new one now say
|
|
98
|
+
which happened and what to do about it. The middle one names the service and the account, and
|
|
99
|
+
says the entry can be deleted.
|
|
100
|
+
|
|
101
|
+
## 13.0.0
|
|
102
|
+
|
|
103
|
+
Same package name, different product. If you installed `swarm-orchestrator` before this
|
|
104
|
+
release, read this before upgrading: v13 is not a newer v12, and nothing in v12's interface
|
|
105
|
+
survives.
|
|
106
|
+
|
|
107
|
+
### What v12 was, and what v13 is
|
|
108
|
+
|
|
109
|
+
v12 was a PR auditor. It ran as a GitHub Action, read pull requests opened by AI coding
|
|
110
|
+
agents, looked for cheat patterns (test relaxation, mock-of-hallucination, assertion strip,
|
|
111
|
+
no-op fix), posted findings as a comment, and gated merges.
|
|
112
|
+
|
|
113
|
+
v13 is a coding agent. It does the work rather than auditing somebody else's, and every
|
|
114
|
+
claim it makes about that work resolves to machine-captured evidence in a tamper-evident
|
|
115
|
+
ledger. The two share a name and nothing else: no shared history, no shared interface, no
|
|
116
|
+
migration path from one to the other, because there is nothing to migrate.
|
|
117
|
+
|
|
118
|
+
### Breaking
|
|
119
|
+
|
|
120
|
+
- **The `swarm-audit` and `swarm-orchestrator` binaries are gone.** One binary now, `swarm`.
|
|
121
|
+
- **The GitHub Action is retired.** v13 ships no `action.yml`. There is no v13 equivalent of
|
|
122
|
+
the merge gate, and none is planned.
|
|
123
|
+
- **Node 24 or newer.** v12 asked for 20. The floor is not stylistic: the coverage cycle
|
|
124
|
+
spawns the test runner with `--test-isolation=process`, which Node 22 rejects as a bad
|
|
125
|
+
option, so on anything older that arm measures nothing.
|
|
126
|
+
- **The histories share no merge base.** v13 is a separate lineage. `git log` will not show
|
|
127
|
+
you v12's commits from here.
|
|
128
|
+
|
|
129
|
+
### If you are using v12
|
|
130
|
+
|
|
131
|
+
Stay on it. It is tagged `v12-final` and that tag is not going away.
|
|
132
|
+
|
|
133
|
+
npm install swarm-orchestrator@12.0.0
|
|
134
|
+
|
|
135
|
+
That is the newest v12 the registry carries. The `v12-final` tag is at 12.1.1, which was
|
|
136
|
+
tagged but never published, so `@12.1.1` does not resolve; install from the tag if you need
|
|
137
|
+
exactly that tree.
|
|
138
|
+
|
|
139
|
+
For the Action, pin the tag rather than a branch, since the default branch is moving to the
|
|
140
|
+
v13 lineage:
|
|
141
|
+
|
|
142
|
+
uses: moonrunnerkc/swarm-orchestrator@v12-final
|
|
143
|
+
|
|
144
|
+
### What v13 does
|
|
145
|
+
|
|
146
|
+
One task, start to finish, in a git workspace: plan, edit through a chokepoint that records
|
|
147
|
+
every tool call, run the gates, auto-resolve failures under a numeric ratchet, and export a
|
|
148
|
+
signed evidence bundle a stranger can verify without installing anything.
|
|
149
|
+
|
|
150
|
+
The parts worth knowing before you try it:
|
|
151
|
+
|
|
152
|
+
- Gate results, claim verdicts and bundle status are computed by the harness. Model prose
|
|
153
|
+
renders as unverified narrative and cannot render green.
|
|
154
|
+
- The ledger is append-only and hash-chained, signed with a key from the OS keychain.
|
|
155
|
+
- The bundle carries its own verifier. `node verify.mjs <bundle>` needs Node and nothing
|
|
156
|
+
else.
|
|
157
|
+
- Local model selection is measured on your hardware rather than guessed from model cards.
|
|
158
|
+
|
|
159
|
+
`README.md` links each of those to a committed artifact of it happening. `docs/claims.md`
|
|
160
|
+
maps every claim to its evidence, and lists what this tree cannot back.
|