@toyako/hive 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.agent-hive/audit/audit-1782626932077.json +42 -0
- package/.agent-hive/audit/audit-1782632399175.json +34 -0
- package/.agent-hive/benchmark/runtime-benchmark.json +32 -0
- package/.agent-hive/logs/trace-mqaj7s0x.jsonl +2 -0
- package/.agent-hive/runtime/checkpoint/snapshot-task-1782567056424-vmzojglrb.json +13 -0
- package/.agent-hive/runtime/checkpoint/snapshot-task-1782567218044-r9j58nsum.json +10 -0
- package/.agent-hive/runtime/checkpoint/task-1782561125960-o9kjl8iv4.json +24 -0
- package/.agent-hive/runtime/checkpoint/task-1782561318850-fqy5h4dj0.json +50 -0
- package/.agent-hive/runtime/checkpoint/task-1782561318861-oy9cxrfwx.json +24 -0
- package/.agent-hive/runtime/checkpoint/task-1782561835241-68etmejqz.json +24 -0
- package/.agent-hive/runtime/checkpoint/task-1782567056424-vmzojglrb.json +24 -0
- package/.agent-hive/runtime/checkpoint/task-1782567218044-r9j58nsum.json +24 -0
- package/.agent-hive/runtime/checkpoint/task-1782632389172-yzxn6p6tq.json +25 -0
- package/.agent-hive/sandbox/sandbox-task-1782567056424-vmzojglrb-1782567056431/package.json +8 -0
- package/.agent-hive/sandbox/sandbox-task-1782567056424-vmzojglrb-1782567056431/src/auth.js +19 -0
- package/.agent-hive/sandbox/sandbox-task-1782567056424-vmzojglrb-1782567056431/src/auth.test.js +17 -0
- package/.agent-hive/sandbox/sandbox-task-1782567056424-vmzojglrb-1782567056431/test-grand-review.js +270 -0
- package/.agent-hive/sandbox/sandbox-task-1782567218044-r9j58nsum-1782567218053/auth.js +7 -0
- package/.agent-hive/stability/stability_window_trace_20260703_1713.json +12 -0
- package/.agent-hive/stability/stability_window_trace_20260703_1746.json +12 -0
- package/.agent-hive/stability/stability_window_trace_20260703_195119745.json +12 -0
- package/.agent-hive/stability/stability_window_trace_20260703_195119755.json +12 -0
- package/.agent-hive/stability/stability_window_trace_20260703_195119765.json +12 -0
- package/.agent-hive/stability/stability_window_trace_20260703_195119782.json +12 -0
- package/.agent-hive/stability/stability_window_trace_20260703_195119791.json +12 -0
- package/.agent-hive/stability/stability_window_trace_20260703_195119801.json +12 -0
- package/.agent-hive/stability/stability_window_trace_20260703_195119810.json +12 -0
- package/.agent-hive/stability/stability_window_trace_20260703_195119818.json +12 -0
- package/.agent-hive/stability/stability_window_trace_20260703_195119826.json +12 -0
- package/.agent-hive/stability/stability_window_trace_20260703_195119835.json +12 -0
- package/.agent-hive/stability/stability_window_trace_20260703_195202743.json +12 -0
- package/.agent-hive/stability/stability_window_trace_20260703_195202749.json +12 -0
- package/.agent-hive/stability/stability_window_trace_20260703_195202762.json +12 -0
- package/.agent-hive/stability/stability_window_trace_20260703_195202768.json +12 -0
- package/.agent-hive/stability/stability_window_trace_20260703_195202773.json +12 -0
- package/.agent-hive/stability/stability_window_trace_20260703_195202778.json +12 -0
- package/.agent-hive/stability/stability_window_trace_20260703_195202784.json +12 -0
- package/.agent-hive/stability/stability_window_trace_20260703_195202789.json +12 -0
- package/.agent-hive/stability/stability_window_trace_20260703_195202794.json +12 -0
- package/.agent-hive/stability/stability_window_trace_20260703_195202800.json +12 -0
- package/.agent-hive/stability/stability_window_trace_20260703_195322538.json +12 -0
- package/.agent-hive/stability/stability_window_trace_20260703_195322552.json +12 -0
- package/.agent-hive/stability/stability_window_trace_20260703_195322557.json +12 -0
- package/.agent-hive/stability/stability_window_trace_20260703_195322562.json +12 -0
- package/.agent-hive/stability/stability_window_trace_20260703_195322567.json +12 -0
- package/.agent-hive/stability/stability_window_trace_20260703_195322573.json +12 -0
- package/.agent-hive/stability/stability_window_trace_20260703_195322579.json +12 -0
- package/.agent-hive/stability/stability_window_trace_20260703_195322584.json +12 -0
- package/.agent-hive/stability/stability_window_trace_20260703_195322589.json +12 -0
- package/.agent-hive/stability/stability_window_trace_20260703_195322595.json +12 -0
- package/.agent-hive/stability/stability_window_trace_20260703_213404476.json +12 -0
- package/.agent-hive/stability/stability_window_trace_20260703_213404482.json +12 -0
- package/.agent-hive/stability/stability_window_trace_20260703_213404488.json +12 -0
- package/.agent-hive/stability/stability_window_trace_20260703_213404494.json +12 -0
- package/.agent-hive/stability/stability_window_trace_20260703_213404499.json +12 -0
- package/.agent-hive/stability/stability_window_trace_20260703_213404504.json +12 -0
- package/.agent-hive/stability/stability_window_trace_20260703_213404512.json +12 -0
- package/.agent-hive/stability/stability_window_trace_20260703_213404519.json +12 -0
- package/.agent-hive/stability/stability_window_trace_20260703_213404526.json +12 -0
- package/.agent-hive/stability/stability_window_trace_20260703_213404533.json +12 -0
- package/.agent-hive/traces/task-bench-claude-code-01.json +37 -0
- package/.agent-hive/traces/task-bench-claude-code-02.json +37 -0
- package/.agent-hive/traces/task-bench-claude-code-03.json +37 -0
- package/.agent-hive/traces/task-bench-claude-code-04.json +37 -0
- package/.agent-hive/traces/task-bench-claude-plan-01.json +37 -0
- package/.agent-hive/traces/task-bench-claude-plan-02.json +37 -0
- package/.agent-hive/traces/task-bench-claude-plan-03.json +37 -0
- package/.agent-hive/traces/task-bench-claude-reason-01.json +37 -0
- package/.agent-hive/traces/task-bench-claude-reason-02.json +37 -0
- package/.agent-hive/traces/task-bench-claude-reason-03.json +37 -0
- package/.agent-hive/traces/task-bench-claude-review-01.json +37 -0
- package/.agent-hive/traces/task-bench-claude-review-02.json +37 -0
- package/.agent-hive/traces/task-bench-claude-review-03.json +37 -0
- package/.agent-hive/traces/task-bench-codex-code-01.json +37 -0
- package/.agent-hive/traces/task-bench-codex-code-02.json +37 -0
- package/.agent-hive/traces/task-bench-codex-code-03.json +37 -0
- package/.agent-hive/traces/task-bench-codex-code-04.json +37 -0
- package/.agent-hive/traces/task-bench-codex-plan-01.json +37 -0
- package/.agent-hive/traces/task-bench-codex-plan-02.json +37 -0
- package/.agent-hive/traces/task-bench-codex-plan-03.json +37 -0
- package/.agent-hive/traces/task-bench-codex-reason-01.json +37 -0
- package/.agent-hive/traces/task-bench-codex-reason-02.json +37 -0
- package/.agent-hive/traces/task-bench-codex-reason-03.json +37 -0
- package/.agent-hive/traces/task-bench-codex-review-01.json +37 -0
- package/.agent-hive/traces/task-bench-codex-review-02.json +37 -0
- package/.agent-hive/traces/task-bench-codex-review-03.json +37 -0
- package/.agent-hive/traces/task-bench-hermes-code-01.json +37 -0
- package/.agent-hive/traces/task-bench-hermes-code-02.json +37 -0
- package/.agent-hive/traces/task-bench-hermes-code-03.json +37 -0
- package/.agent-hive/traces/task-bench-hermes-code-04.json +37 -0
- package/.agent-hive/traces/task-bench-hermes-plan-01.json +37 -0
- package/.agent-hive/traces/task-bench-hermes-plan-02.json +37 -0
- package/.agent-hive/traces/task-bench-hermes-plan-03.json +37 -0
- package/.agent-hive/traces/task-bench-hermes-reason-01.json +37 -0
- package/.agent-hive/traces/task-bench-hermes-reason-02.json +37 -0
- package/.agent-hive/traces/task-bench-hermes-reason-03.json +37 -0
- package/.agent-hive/traces/task-bench-hermes-review-01.json +37 -0
- package/.agent-hive/traces/task-bench-hermes-review-02.json +37 -0
- package/.agent-hive/traces/task-bench-hermes-review-03.json +37 -0
- package/.det-hash-manifest.json +9 -0
- package/.github/ISSUE_TEMPLATE/bug_report.md +34 -0
- package/.github/ISSUE_TEMPLATE/feature_request.md +27 -0
- package/.github/ISSUE_TEMPLATE/runtime_compatibility.md +35 -0
- package/.github/workflows/ci.yml +44 -0
- package/.github/workflows/hive-ci.yml +43 -0
- package/CHANGELOG.md +66 -0
- package/CONTRIBUTING.md +61 -0
- package/LICENSE +21 -0
- package/README.es.md +36 -0
- package/README.ja.md +36 -0
- package/README.md +115 -0
- package/README.zh-CN.md +117 -0
- package/RELEASE.md +116 -0
- package/audit-scoreboard.json +55 -0
- package/benchmarks/version.json +20 -0
- package/dist/adapters/ClaudeAdapter.d.ts +14 -0
- package/dist/adapters/ClaudeAdapter.d.ts.map +1 -0
- package/dist/adapters/ClaudeAdapter.js +251 -0
- package/dist/adapters/ClaudeAdapter.js.map +1 -0
- package/dist/adapters/CodexAdapter.d.ts +16 -0
- package/dist/adapters/CodexAdapter.d.ts.map +1 -0
- package/dist/adapters/CodexAdapter.js +140 -0
- package/dist/adapters/CodexAdapter.js.map +1 -0
- package/dist/adapters/HermesAdapter.d.ts +15 -0
- package/dist/adapters/HermesAdapter.d.ts.map +1 -0
- package/dist/adapters/HermesAdapter.js +223 -0
- package/dist/adapters/HermesAdapter.js.map +1 -0
- package/dist/adapters/MockClaudeAdapter.d.ts +29 -0
- package/dist/adapters/MockClaudeAdapter.d.ts.map +1 -0
- package/dist/adapters/MockClaudeAdapter.js +62 -0
- package/dist/adapters/MockClaudeAdapter.js.map +1 -0
- package/dist/adapters/MockCodexAdapter.d.ts +16 -0
- package/dist/adapters/MockCodexAdapter.d.ts.map +1 -0
- package/dist/adapters/MockCodexAdapter.js +34 -0
- package/dist/adapters/MockCodexAdapter.js.map +1 -0
- package/dist/adapters/OpenClawAdapter.d.ts +15 -0
- package/dist/adapters/OpenClawAdapter.d.ts.map +1 -0
- package/dist/adapters/OpenClawAdapter.js +195 -0
- package/dist/adapters/OpenClawAdapter.js.map +1 -0
- package/dist/adapters/registry.d.ts +31 -0
- package/dist/adapters/registry.d.ts.map +1 -0
- package/dist/adapters/registry.js +42 -0
- package/dist/adapters/registry.js.map +1 -0
- package/dist/api/HiveAPI.d.ts +46 -0
- package/dist/api/HiveAPI.d.ts.map +1 -0
- package/dist/api/HiveAPI.js +117 -0
- package/dist/api/HiveAPI.js.map +1 -0
- package/dist/api/MeshAPI.d.ts +46 -0
- package/dist/api/MeshAPI.d.ts.map +1 -0
- package/dist/api/MeshAPI.js +117 -0
- package/dist/api/MeshAPI.js.map +1 -0
- package/dist/benchmark/BenchmarkDataset.d.ts +28 -0
- package/dist/benchmark/BenchmarkDataset.d.ts.map +1 -0
- package/dist/benchmark/BenchmarkDataset.js +102 -0
- package/dist/benchmark/BenchmarkDataset.js.map +1 -0
- package/dist/benchmark/BenchmarkPlan.d.ts +155 -0
- package/dist/benchmark/BenchmarkPlan.d.ts.map +1 -0
- package/dist/benchmark/BenchmarkPlan.js +310 -0
- package/dist/benchmark/BenchmarkPlan.js.map +1 -0
- package/dist/benchmark/BenchmarkReport.d.ts +44 -0
- package/dist/benchmark/BenchmarkReport.d.ts.map +1 -0
- package/dist/benchmark/BenchmarkReport.js +152 -0
- package/dist/benchmark/BenchmarkReport.js.map +1 -0
- package/dist/benchmark/BenchmarkRunner.d.ts +30 -0
- package/dist/benchmark/BenchmarkRunner.d.ts.map +1 -0
- package/dist/benchmark/BenchmarkRunner.js +115 -0
- package/dist/benchmark/BenchmarkRunner.js.map +1 -0
- package/dist/benchmark/BenchmarkSuite.d.ts +21 -0
- package/dist/benchmark/BenchmarkSuite.d.ts.map +1 -0
- package/dist/benchmark/BenchmarkSuite.js +174 -0
- package/dist/benchmark/BenchmarkSuite.js.map +1 -0
- package/dist/benchmark/index.d.ts +13 -0
- package/dist/benchmark/index.d.ts.map +1 -0
- package/dist/benchmark/index.js +26 -0
- package/dist/benchmark/index.js.map +1 -0
- package/dist/broker/AgentRegistry.d.ts +15 -0
- package/dist/broker/AgentRegistry.d.ts.map +1 -0
- package/dist/broker/AgentRegistry.js +103 -0
- package/dist/broker/AgentRegistry.js.map +1 -0
- package/dist/broker/Broker.d.ts +52 -0
- package/dist/broker/Broker.d.ts.map +1 -0
- package/dist/broker/Broker.js +119 -0
- package/dist/broker/Broker.js.map +1 -0
- package/dist/broker/GraphOperations.d.ts +38 -0
- package/dist/broker/GraphOperations.d.ts.map +1 -0
- package/dist/broker/GraphOperations.js +66 -0
- package/dist/broker/GraphOperations.js.map +1 -0
- package/dist/broker/MessageBus.d.ts +22 -0
- package/dist/broker/MessageBus.d.ts.map +1 -0
- package/dist/broker/MessageBus.js +85 -0
- package/dist/broker/MessageBus.js.map +1 -0
- package/dist/broker/MessageRouter.d.ts +51 -0
- package/dist/broker/MessageRouter.d.ts.map +1 -0
- package/dist/broker/MessageRouter.js +145 -0
- package/dist/broker/MessageRouter.js.map +1 -0
- package/dist/broker/TaskProcessor.d.ts +35 -0
- package/dist/broker/TaskProcessor.d.ts.map +1 -0
- package/dist/broker/TaskProcessor.js +476 -0
- package/dist/broker/TaskProcessor.js.map +1 -0
- package/dist/broker/TaskRouter.d.ts +9 -0
- package/dist/broker/TaskRouter.d.ts.map +1 -0
- package/dist/broker/TaskRouter.js +36 -0
- package/dist/broker/TaskRouter.js.map +1 -0
- package/dist/channels/ChannelPlugin.d.ts +28 -0
- package/dist/channels/ChannelPlugin.d.ts.map +1 -0
- package/dist/channels/ChannelPlugin.js +7 -0
- package/dist/channels/ChannelPlugin.js.map +1 -0
- package/dist/ci/CIGate.d.ts +62 -0
- package/dist/ci/CIGate.d.ts.map +1 -0
- package/dist/ci/CIGate.js +146 -0
- package/dist/ci/CIGate.js.map +1 -0
- package/dist/ci/ContractLock.d.ts +41 -0
- package/dist/ci/ContractLock.d.ts.map +1 -0
- package/dist/ci/ContractLock.js +103 -0
- package/dist/ci/ContractLock.js.map +1 -0
- package/dist/cli/hive-cli.d.ts +14 -0
- package/dist/cli/hive-cli.d.ts.map +1 -0
- package/dist/cli/hive-cli.js +82 -0
- package/dist/cli/hive-cli.js.map +1 -0
- package/dist/cli.d.ts +14 -0
- package/dist/cli.d.ts.map +1 -0
- package/dist/cli.js +193 -0
- package/dist/cli.js.map +1 -0
- package/dist/command/CommandAST.d.ts +28 -0
- package/dist/command/CommandAST.d.ts.map +1 -0
- package/dist/command/CommandAST.js +22 -0
- package/dist/command/CommandAST.js.map +1 -0
- package/dist/commands/cli.d.ts +3 -0
- package/dist/commands/cli.d.ts.map +1 -0
- package/dist/commands/cli.js +848 -0
- package/dist/commands/cli.js.map +1 -0
- package/dist/commands/demo.d.ts +2 -0
- package/dist/commands/demo.d.ts.map +1 -0
- package/dist/commands/demo.js +71 -0
- package/dist/commands/demo.js.map +1 -0
- package/dist/commands/experiment-routing.d.ts +2 -0
- package/dist/commands/experiment-routing.d.ts.map +1 -0
- package/dist/commands/experiment-routing.js +347 -0
- package/dist/commands/experiment-routing.js.map +1 -0
- package/dist/commands/run-validation.d.ts +2 -0
- package/dist/commands/run-validation.d.ts.map +1 -0
- package/dist/commands/run-validation.js.map +1 -0
- package/dist/commands/test-benchmark.d.ts +2 -0
- package/dist/commands/test-benchmark.d.ts.map +1 -0
- package/dist/commands/test-benchmark.js +214 -0
- package/dist/commands/test-benchmark.js.map +1 -0
- package/dist/commands/test-conversation.d.ts +2 -0
- package/dist/commands/test-conversation.d.ts.map +1 -0
- package/dist/commands/test-conversation.js +358 -0
- package/dist/commands/test-conversation.js.map +1 -0
- package/dist/commands/test-crash.d.ts +2 -0
- package/dist/commands/test-crash.d.ts.map +1 -0
- package/dist/commands/test-crash.js +65 -0
- package/dist/commands/test-crash.js.map +1 -0
- package/dist/commands/test-cross-platform.d.ts +2 -0
- package/dist/commands/test-cross-platform.d.ts.map +1 -0
- package/dist/commands/test-cross-platform.js +62 -0
- package/dist/commands/test-cross-platform.js.map +1 -0
- package/dist/commands/test-graph.d.ts +2 -0
- package/dist/commands/test-graph.d.ts.map +1 -0
- package/dist/commands/test-graph.js +526 -0
- package/dist/commands/test-graph.js.map +1 -0
- package/dist/commands/test-observability.d.ts +2 -0
- package/dist/commands/test-observability.d.ts.map +1 -0
- package/dist/commands/test-observability.js +162 -0
- package/dist/commands/test-observability.js.map +1 -0
- package/dist/commands/test-orchestration.d.ts +2 -0
- package/dist/commands/test-orchestration.d.ts.map +1 -0
- package/dist/commands/test-orchestration.js +110 -0
- package/dist/commands/test-orchestration.js.map +1 -0
- package/dist/commands/test-real-world.d.ts +2 -0
- package/dist/commands/test-real-world.d.ts.map +1 -0
- package/dist/commands/test-real-world.js +176 -0
- package/dist/commands/test-real-world.js.map +1 -0
- package/dist/commands/test-reviewer.d.ts +2 -0
- package/dist/commands/test-reviewer.d.ts.map +1 -0
- package/dist/commands/test-reviewer.js +125 -0
- package/dist/commands/test-reviewer.js.map +1 -0
- package/dist/commands/test-runtime-intelligence.d.ts +2 -0
- package/dist/commands/test-runtime-intelligence.d.ts.map +1 -0
- package/dist/commands/test-runtime-intelligence.js +224 -0
- package/dist/commands/test-runtime-intelligence.js.map +1 -0
- package/dist/commands/test-stress.d.ts +2 -0
- package/dist/commands/test-stress.d.ts.map +1 -0
- package/dist/commands/test-stress.js +116 -0
- package/dist/commands/test-stress.js.map +1 -0
- package/dist/commands/test-timeout.d.ts +2 -0
- package/dist/commands/test-timeout.d.ts.map +1 -0
- package/dist/commands/test-timeout.js +126 -0
- package/dist/commands/test-timeout.js.map +1 -0
- package/dist/commands/test-v2-integration.d.ts +2 -0
- package/dist/commands/test-v2-integration.d.ts.map +1 -0
- package/dist/commands/test-v2-integration.js +634 -0
- package/dist/commands/test-v2-integration.js.map +1 -0
- package/dist/commands/test-validation.d.ts +2 -0
- package/dist/commands/test-validation.d.ts.map +1 -0
- package/dist/commands/test-validation.js +198 -0
- package/dist/commands/test-validation.js.map +1 -0
- package/dist/compiler/ArchitectureSynthesizer.d.ts +42 -0
- package/dist/compiler/ArchitectureSynthesizer.d.ts.map +1 -0
- package/dist/compiler/ArchitectureSynthesizer.js +90 -0
- package/dist/compiler/ArchitectureSynthesizer.js.map +1 -0
- package/dist/compiler/BlueprintPackager.d.ts +21 -0
- package/dist/compiler/BlueprintPackager.d.ts.map +1 -0
- package/dist/compiler/BlueprintPackager.js +13 -0
- package/dist/compiler/BlueprintPackager.js.map +1 -0
- package/dist/compiler/CommandCompiler.d.ts +23 -0
- package/dist/compiler/CommandCompiler.d.ts.map +1 -0
- package/dist/compiler/CommandCompiler.js +49 -0
- package/dist/compiler/CommandCompiler.js.map +1 -0
- package/dist/compiler/DAGCompiler.d.ts +12 -0
- package/dist/compiler/DAGCompiler.d.ts.map +1 -0
- package/dist/compiler/DAGCompiler.js +20 -0
- package/dist/compiler/DAGCompiler.js.map +1 -0
- package/dist/compiler/DomainModelGenerator.d.ts +38 -0
- package/dist/compiler/DomainModelGenerator.d.ts.map +1 -0
- package/dist/compiler/DomainModelGenerator.js +104 -0
- package/dist/compiler/DomainModelGenerator.js.map +1 -0
- package/dist/compiler/FeasibilityGate.d.ts +27 -0
- package/dist/compiler/FeasibilityGate.d.ts.map +1 -0
- package/dist/compiler/FeasibilityGate.js +62 -0
- package/dist/compiler/FeasibilityGate.js.map +1 -0
- package/dist/compiler/InputNormalizer.d.ts +34 -0
- package/dist/compiler/InputNormalizer.d.ts.map +1 -0
- package/dist/compiler/InputNormalizer.js +72 -0
- package/dist/compiler/InputNormalizer.js.map +1 -0
- package/dist/compiler/IntentParser.d.ts +40 -0
- package/dist/compiler/IntentParser.d.ts.map +1 -0
- package/dist/compiler/IntentParser.js +96 -0
- package/dist/compiler/IntentParser.js.map +1 -0
- package/dist/compiler/ModulePlanner.d.ts +13 -0
- package/dist/compiler/ModulePlanner.d.ts.map +1 -0
- package/dist/compiler/ModulePlanner.js +25 -0
- package/dist/compiler/ModulePlanner.js.map +1 -0
- package/dist/compiler/PromptCompiler.d.ts +19 -0
- package/dist/compiler/PromptCompiler.d.ts.map +1 -0
- package/dist/compiler/PromptCompiler.js +31 -0
- package/dist/compiler/PromptCompiler.js.map +1 -0
- package/dist/compiler/index.d.ts +34 -0
- package/dist/compiler/index.d.ts.map +1 -0
- package/dist/compiler/index.js +66 -0
- package/dist/compiler/index.js.map +1 -0
- package/dist/context/ContextManager.d.ts +24 -0
- package/dist/context/ContextManager.d.ts.map +1 -0
- package/dist/context/ContextManager.js +51 -0
- package/dist/context/ContextManager.js.map +1 -0
- package/dist/control-plane/BudgetController.d.ts +54 -0
- package/dist/control-plane/BudgetController.d.ts.map +1 -0
- package/dist/control-plane/BudgetController.js +98 -0
- package/dist/control-plane/BudgetController.js.map +1 -0
- package/dist/control-plane/ControlPlane.d.ts +82 -0
- package/dist/control-plane/ControlPlane.d.ts.map +1 -0
- package/dist/control-plane/ControlPlane.js +196 -0
- package/dist/control-plane/ControlPlane.js.map +1 -0
- package/dist/control-plane/ConvergenceGuard.d.ts +39 -0
- package/dist/control-plane/ConvergenceGuard.d.ts.map +1 -0
- package/dist/control-plane/ConvergenceGuard.js +72 -0
- package/dist/control-plane/ConvergenceGuard.js.map +1 -0
- package/dist/control-plane/DriftDetector.d.ts +44 -0
- package/dist/control-plane/DriftDetector.d.ts.map +1 -0
- package/dist/control-plane/DriftDetector.js +83 -0
- package/dist/control-plane/DriftDetector.js.map +1 -0
- package/dist/control-plane/MetricStabilityLock.d.ts +38 -0
- package/dist/control-plane/MetricStabilityLock.d.ts.map +1 -0
- package/dist/control-plane/MetricStabilityLock.js +63 -0
- package/dist/control-plane/MetricStabilityLock.js.map +1 -0
- package/dist/control-plane/index.d.ts +17 -0
- package/dist/control-plane/index.d.ts.map +1 -0
- package/dist/control-plane/index.js +25 -0
- package/dist/control-plane/index.js.map +1 -0
- package/dist/convergence/ConvergenceValidator.d.ts +143 -0
- package/dist/convergence/ConvergenceValidator.d.ts.map +1 -0
- package/dist/convergence/ConvergenceValidator.js +264 -0
- package/dist/convergence/ConvergenceValidator.js.map +1 -0
- package/dist/convergence/index.d.ts +12 -0
- package/dist/convergence/index.d.ts.map +1 -0
- package/dist/convergence/index.js +23 -0
- package/dist/convergence/index.js.map +1 -0
- package/dist/conversation/ConversationManager.d.ts +55 -0
- package/dist/conversation/ConversationManager.d.ts.map +1 -0
- package/dist/conversation/ConversationManager.js +176 -0
- package/dist/conversation/ConversationManager.js.map +1 -0
- package/dist/dashboard/EventStore.d.ts +27 -0
- package/dist/dashboard/EventStore.d.ts.map +1 -0
- package/dist/dashboard/EventStore.js +36 -0
- package/dist/dashboard/EventStore.js.map +1 -0
- package/dist/dashboard/FailureIntelligence.d.ts +77 -0
- package/dist/dashboard/FailureIntelligence.d.ts.map +1 -0
- package/dist/dashboard/FailureIntelligence.js +251 -0
- package/dist/dashboard/FailureIntelligence.js.map +1 -0
- package/dist/dashboard/ObservationDashboard.d.ts +85 -0
- package/dist/dashboard/ObservationDashboard.d.ts.map +1 -0
- package/dist/dashboard/ObservationDashboard.js +178 -0
- package/dist/dashboard/ObservationDashboard.js.map +1 -0
- package/dist/dashboard/StabilityCurve.d.ts +23 -0
- package/dist/dashboard/StabilityCurve.d.ts.map +1 -0
- package/dist/dashboard/StabilityCurve.js +53 -0
- package/dist/dashboard/StabilityCurve.js.map +1 -0
- package/dist/engine/ExecutionEngine.d.ts +29 -0
- package/dist/engine/ExecutionEngine.d.ts.map +1 -0
- package/dist/engine/ExecutionEngine.js +139 -0
- package/dist/engine/ExecutionEngine.js.map +1 -0
- package/dist/engine/PlatformAdapter.d.ts +19 -0
- package/dist/engine/PlatformAdapter.d.ts.map +1 -0
- package/dist/engine/PlatformAdapter.js +77 -0
- package/dist/engine/PlatformAdapter.js.map +1 -0
- package/dist/engine/ResultNormalizer.d.ts +21 -0
- package/dist/engine/ResultNormalizer.d.ts.map +1 -0
- package/dist/engine/ResultNormalizer.js +57 -0
- package/dist/engine/ResultNormalizer.js.map +1 -0
- package/dist/engine/StructuredLogger.d.ts +25 -0
- package/dist/engine/StructuredLogger.d.ts.map +1 -0
- package/dist/engine/StructuredLogger.js +81 -0
- package/dist/engine/StructuredLogger.js.map +1 -0
- package/dist/evaluation/BaselineRunner.d.ts +26 -0
- package/dist/evaluation/BaselineRunner.d.ts.map +1 -0
- package/dist/evaluation/BaselineRunner.js +107 -0
- package/dist/evaluation/BaselineRunner.js.map +1 -0
- package/dist/evaluation/DecisionTrace.d.ts +20 -0
- package/dist/evaluation/DecisionTrace.d.ts.map +1 -0
- package/dist/evaluation/DecisionTrace.js +21 -0
- package/dist/evaluation/DecisionTrace.js.map +1 -0
- package/dist/evaluation/EvaluationMetrics.d.ts +34 -0
- package/dist/evaluation/EvaluationMetrics.d.ts.map +1 -0
- package/dist/evaluation/EvaluationMetrics.js +28 -0
- package/dist/evaluation/EvaluationMetrics.js.map +1 -0
- package/dist/evaluation/GroundTruthDataset.d.ts +18 -0
- package/dist/evaluation/GroundTruthDataset.d.ts.map +1 -0
- package/dist/evaluation/GroundTruthDataset.js +69 -0
- package/dist/evaluation/GroundTruthDataset.js.map +1 -0
- package/dist/evaluation/RealWorldBenchmark.d.ts +21 -0
- package/dist/evaluation/RealWorldBenchmark.d.ts.map +1 -0
- package/dist/evaluation/RealWorldBenchmark.js +73 -0
- package/dist/evaluation/RealWorldBenchmark.js.map +1 -0
- package/dist/evaluation/RealWorldRunner.d.ts +55 -0
- package/dist/evaluation/RealWorldRunner.d.ts.map +1 -0
- package/dist/evaluation/RealWorldRunner.js +133 -0
- package/dist/evaluation/RealWorldRunner.js.map +1 -0
- package/dist/evaluation/ValidationRunner.d.ts +42 -0
- package/dist/evaluation/ValidationRunner.d.ts.map +1 -0
- package/dist/evaluation/ValidationRunner.js +123 -0
- package/dist/evaluation/ValidationRunner.js.map +1 -0
- package/dist/events/AgentEvent.d.ts +62 -0
- package/dist/events/AgentEvent.d.ts.map +1 -0
- package/dist/events/AgentEvent.js +6 -0
- package/dist/events/AgentEvent.js.map +1 -0
- package/dist/events/DecisionEvent.d.ts +16 -0
- package/dist/events/DecisionEvent.d.ts.map +1 -0
- package/dist/events/DecisionEvent.js +6 -0
- package/dist/events/DecisionEvent.js.map +1 -0
- package/dist/events/ExecutionEvent.d.ts +48 -0
- package/dist/events/ExecutionEvent.d.ts.map +1 -0
- package/dist/events/ExecutionEvent.js +3 -0
- package/dist/events/ExecutionEvent.js.map +1 -0
- package/dist/events/SystemEvent.d.ts +11 -0
- package/dist/events/SystemEvent.d.ts.map +1 -0
- package/dist/events/SystemEvent.js +6 -0
- package/dist/events/SystemEvent.js.map +1 -0
- package/dist/evolution/EvolutionEngine.d.ts +121 -0
- package/dist/evolution/EvolutionEngine.d.ts.map +1 -0
- package/dist/evolution/EvolutionEngine.js +288 -0
- package/dist/evolution/EvolutionEngine.js.map +1 -0
- package/dist/evolution/index.d.ts +15 -0
- package/dist/evolution/index.d.ts.map +1 -0
- package/dist/evolution/index.js +24 -0
- package/dist/evolution/index.js.map +1 -0
- package/dist/execution-fabric/DistributedExecutionFabric.d.ts +108 -0
- package/dist/execution-fabric/DistributedExecutionFabric.d.ts.map +1 -0
- package/dist/execution-fabric/DistributedExecutionFabric.js +236 -0
- package/dist/execution-fabric/DistributedExecutionFabric.js.map +1 -0
- package/dist/execution-fabric/index.d.ts +10 -0
- package/dist/execution-fabric/index.d.ts.map +1 -0
- package/dist/execution-fabric/index.js +14 -0
- package/dist/execution-fabric/index.js.map +1 -0
- package/dist/execution-graph/DynamicExecutionGraphRuntime.d.ts +94 -0
- package/dist/execution-graph/DynamicExecutionGraphRuntime.d.ts.map +1 -0
- package/dist/execution-graph/DynamicExecutionGraphRuntime.js +243 -0
- package/dist/execution-graph/DynamicExecutionGraphRuntime.js.map +1 -0
- package/dist/execution-graph/ExecutionGraphEngine.d.ts +88 -0
- package/dist/execution-graph/ExecutionGraphEngine.d.ts.map +1 -0
- package/dist/execution-graph/ExecutionGraphEngine.js +222 -0
- package/dist/execution-graph/ExecutionGraphEngine.js.map +1 -0
- package/dist/execution-graph/index.d.ts +9 -0
- package/dist/execution-graph/index.d.ts.map +1 -0
- package/dist/execution-graph/index.js +16 -0
- package/dist/execution-graph/index.js.map +1 -0
- package/dist/execution-runtime/ExecutionRuntime.d.ts +99 -0
- package/dist/execution-runtime/ExecutionRuntime.d.ts.map +1 -0
- package/dist/execution-runtime/ExecutionRuntime.js +216 -0
- package/dist/execution-runtime/ExecutionRuntime.js.map +1 -0
- package/dist/execution-runtime/index.d.ts +10 -0
- package/dist/execution-runtime/index.d.ts.map +1 -0
- package/dist/execution-runtime/index.js +14 -0
- package/dist/execution-runtime/index.js.map +1 -0
- package/dist/git-governance/GitGovernanceRuntime.d.ts +200 -0
- package/dist/git-governance/GitGovernanceRuntime.d.ts.map +1 -0
- package/dist/git-governance/GitGovernanceRuntime.js +418 -0
- package/dist/git-governance/GitGovernanceRuntime.js.map +1 -0
- package/dist/git-governance/index.d.ts +16 -0
- package/dist/git-governance/index.d.ts.map +1 -0
- package/dist/git-governance/index.js +33 -0
- package/dist/git-governance/index.js.map +1 -0
- package/dist/governance/EngineeringGovernanceLayer.d.ts +79 -0
- package/dist/governance/EngineeringGovernanceLayer.d.ts.map +1 -0
- package/dist/governance/EngineeringGovernanceLayer.js +212 -0
- package/dist/governance/EngineeringGovernanceLayer.js.map +1 -0
- package/dist/graph/AgentGraph.d.ts +52 -0
- package/dist/graph/AgentGraph.d.ts.map +1 -0
- package/dist/graph/AgentGraph.js +274 -0
- package/dist/graph/AgentGraph.js.map +1 -0
- package/dist/graph/GraphValidator.d.ts +39 -0
- package/dist/graph/GraphValidator.d.ts.map +1 -0
- package/dist/graph/GraphValidator.js +93 -0
- package/dist/graph/GraphValidator.js.map +1 -0
- package/dist/graph/TopologyTemplates.d.ts +39 -0
- package/dist/graph/TopologyTemplates.d.ts.map +1 -0
- package/dist/graph/TopologyTemplates.js +131 -0
- package/dist/graph/TopologyTemplates.js.map +1 -0
- package/dist/hardening/RuntimeHardening.d.ts +169 -0
- package/dist/hardening/RuntimeHardening.d.ts.map +1 -0
- package/dist/hardening/RuntimeHardening.js +330 -0
- package/dist/hardening/RuntimeHardening.js.map +1 -0
- package/dist/hardening/index.d.ts +7 -0
- package/dist/hardening/index.d.ts.map +1 -0
- package/dist/hardening/index.js +15 -0
- package/dist/hardening/index.js.map +1 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +15 -0
- package/dist/index.js.map +1 -0
- package/dist/kernel/ExecutionState.d.ts +68 -0
- package/dist/kernel/ExecutionState.d.ts.map +1 -0
- package/dist/kernel/ExecutionState.js +124 -0
- package/dist/kernel/ExecutionState.js.map +1 -0
- package/dist/kernel/FailureInterceptor.d.ts +51 -0
- package/dist/kernel/FailureInterceptor.d.ts.map +1 -0
- package/dist/kernel/FailureInterceptor.js +112 -0
- package/dist/kernel/FailureInterceptor.js.map +1 -0
- package/dist/kernel/KernelGate.d.ts +41 -0
- package/dist/kernel/KernelGate.d.ts.map +1 -0
- package/dist/kernel/KernelGate.js +62 -0
- package/dist/kernel/KernelGate.js.map +1 -0
- package/dist/kernel/MultiAgentExecutionKernel.d.ts +103 -0
- package/dist/kernel/MultiAgentExecutionKernel.d.ts.map +1 -0
- package/dist/kernel/MultiAgentExecutionKernel.js +187 -0
- package/dist/kernel/MultiAgentExecutionKernel.js.map +1 -0
- package/dist/kernel/RuntimeKernel.d.ts +160 -0
- package/dist/kernel/RuntimeKernel.d.ts.map +1 -0
- package/dist/kernel/RuntimeKernel.js +422 -0
- package/dist/kernel/RuntimeKernel.js.map +1 -0
- package/dist/kernel/index.d.ts +9 -0
- package/dist/kernel/index.d.ts.map +1 -0
- package/dist/kernel/index.js +20 -0
- package/dist/kernel/index.js.map +1 -0
- package/dist/knowledge/KnowledgeSystem.d.ts +62 -0
- package/dist/knowledge/KnowledgeSystem.d.ts.map +1 -0
- package/dist/knowledge/KnowledgeSystem.js +102 -0
- package/dist/knowledge/KnowledgeSystem.js.map +1 -0
- package/dist/learning/ExecutionEpisodeStore.d.ts +64 -0
- package/dist/learning/ExecutionEpisodeStore.d.ts.map +1 -0
- package/dist/learning/ExecutionEpisodeStore.js +62 -0
- package/dist/learning/ExecutionEpisodeStore.js.map +1 -0
- package/dist/learning/InsightEngine.d.ts +31 -0
- package/dist/learning/InsightEngine.d.ts.map +1 -0
- package/dist/learning/InsightEngine.js +63 -0
- package/dist/learning/InsightEngine.js.map +1 -0
- package/dist/learning/LearningLoopEngine.d.ts +48 -0
- package/dist/learning/LearningLoopEngine.d.ts.map +1 -0
- package/dist/learning/LearningLoopEngine.js +82 -0
- package/dist/learning/LearningLoopEngine.js.map +1 -0
- package/dist/learning/MemoryCompressor.d.ts +31 -0
- package/dist/learning/MemoryCompressor.d.ts.map +1 -0
- package/dist/learning/MemoryCompressor.js +76 -0
- package/dist/learning/MemoryCompressor.js.map +1 -0
- package/dist/learning/PolicyOptimizer.d.ts +26 -0
- package/dist/learning/PolicyOptimizer.d.ts.map +1 -0
- package/dist/learning/PolicyOptimizer.js +91 -0
- package/dist/learning/PolicyOptimizer.js.map +1 -0
- package/dist/learning/PolicyStore.d.ts +47 -0
- package/dist/learning/PolicyStore.d.ts.map +1 -0
- package/dist/learning/PolicyStore.js +79 -0
- package/dist/learning/PolicyStore.js.map +1 -0
- package/dist/loop-layer/EvaluationEngine.d.ts +23 -0
- package/dist/loop-layer/EvaluationEngine.d.ts.map +1 -0
- package/dist/loop-layer/EvaluationEngine.js +42 -0
- package/dist/loop-layer/EvaluationEngine.js.map +1 -0
- package/dist/loop-layer/LoopController.d.ts +33 -0
- package/dist/loop-layer/LoopController.d.ts.map +1 -0
- package/dist/loop-layer/LoopController.js +79 -0
- package/dist/loop-layer/LoopController.js.map +1 -0
- package/dist/loop-layer/ObservationEngine.d.ts +62 -0
- package/dist/loop-layer/ObservationEngine.d.ts.map +1 -0
- package/dist/loop-layer/ObservationEngine.js +126 -0
- package/dist/loop-layer/ObservationEngine.js.map +1 -0
- package/dist/memory/ContextCompressor.d.ts +27 -0
- package/dist/memory/ContextCompressor.d.ts.map +1 -0
- package/dist/memory/ContextCompressor.js +71 -0
- package/dist/memory/ContextCompressor.js.map +1 -0
- package/dist/memory/MemoryManager.d.ts +28 -0
- package/dist/memory/MemoryManager.d.ts.map +1 -0
- package/dist/memory/MemoryManager.js +81 -0
- package/dist/memory/MemoryManager.js.map +1 -0
- package/dist/memory/MemorySearch.d.ts +20 -0
- package/dist/memory/MemorySearch.d.ts.map +1 -0
- package/dist/memory/MemorySearch.js +92 -0
- package/dist/memory/MemorySearch.js.map +1 -0
- package/dist/memory/MemoryStore.d.ts +30 -0
- package/dist/memory/MemoryStore.d.ts.map +1 -0
- package/dist/memory/MemoryStore.js +84 -0
- package/dist/memory/MemoryStore.js.map +1 -0
- package/dist/observability/ConversationTrace.d.ts +25 -0
- package/dist/observability/ConversationTrace.d.ts.map +1 -0
- package/dist/observability/ConversationTrace.js +104 -0
- package/dist/observability/ConversationTrace.js.map +1 -0
- package/dist/observability/DecisionRecorder.d.ts +29 -0
- package/dist/observability/DecisionRecorder.d.ts.map +1 -0
- package/dist/observability/DecisionRecorder.js +113 -0
- package/dist/observability/DecisionRecorder.js.map +1 -0
- package/dist/observability/RuntimeMetrics.d.ts +27 -0
- package/dist/observability/RuntimeMetrics.d.ts.map +1 -0
- package/dist/observability/RuntimeMetrics.js +126 -0
- package/dist/observability/RuntimeMetrics.js.map +1 -0
- package/dist/observability/TaskTimeline.d.ts +26 -0
- package/dist/observability/TaskTimeline.d.ts.map +1 -0
- package/dist/observability/TaskTimeline.js +117 -0
- package/dist/observability/TaskTimeline.js.map +1 -0
- package/dist/observation/SystemScoreCalculator.d.ts +66 -0
- package/dist/observation/SystemScoreCalculator.d.ts.map +1 -0
- package/dist/observation/SystemScoreCalculator.js +158 -0
- package/dist/observation/SystemScoreCalculator.js.map +1 -0
- package/dist/observation/__tests__/SystemScoreCalculator.test.d.ts +2 -0
- package/dist/observation/__tests__/SystemScoreCalculator.test.d.ts.map +1 -0
- package/dist/observation/__tests__/SystemScoreCalculator.test.js +61 -0
- package/dist/observation/__tests__/SystemScoreCalculator.test.js.map +1 -0
- package/dist/orchestration/AgentRouter.d.ts +19 -0
- package/dist/orchestration/AgentRouter.d.ts.map +1 -0
- package/dist/orchestration/AgentRouter.js +53 -0
- package/dist/orchestration/AgentRouter.js.map +1 -0
- package/dist/orchestration/DAGExecutor.d.ts +22 -0
- package/dist/orchestration/DAGExecutor.d.ts.map +1 -0
- package/dist/orchestration/DAGExecutor.js +123 -0
- package/dist/orchestration/DAGExecutor.js.map +1 -0
- package/dist/orchestration/JudgeAgent.d.ts +14 -0
- package/dist/orchestration/JudgeAgent.d.ts.map +1 -0
- package/dist/orchestration/JudgeAgent.js +58 -0
- package/dist/orchestration/JudgeAgent.js.map +1 -0
- package/dist/orchestration/Planner.d.ts +10 -0
- package/dist/orchestration/Planner.d.ts.map +1 -0
- package/dist/orchestration/Planner.js +45 -0
- package/dist/orchestration/Planner.js.map +1 -0
- package/dist/orchestration/ReviewerAgent.d.ts +12 -0
- package/dist/orchestration/ReviewerAgent.d.ts.map +1 -0
- package/dist/orchestration/ReviewerAgent.js +67 -0
- package/dist/orchestration/ReviewerAgent.js.map +1 -0
- package/dist/orchestration/contracts/Agent.d.ts +42 -0
- package/dist/orchestration/contracts/Agent.d.ts.map +1 -0
- package/dist/orchestration/contracts/Agent.js +3 -0
- package/dist/orchestration/contracts/Agent.js.map +1 -0
- package/dist/orchestration/registry/AgentProfile.d.ts +12 -0
- package/dist/orchestration/registry/AgentProfile.d.ts.map +1 -0
- package/dist/orchestration/registry/AgentProfile.js +3 -0
- package/dist/orchestration/registry/AgentProfile.js.map +1 -0
- package/dist/orchestration/registry/AgentRegistry.d.ts +15 -0
- package/dist/orchestration/registry/AgentRegistry.d.ts.map +1 -0
- package/dist/orchestration/registry/AgentRegistry.js +29 -0
- package/dist/orchestration/registry/AgentRegistry.js.map +1 -0
- package/dist/planning/ProjectPlanningLayer.d.ts +68 -0
- package/dist/planning/ProjectPlanningLayer.d.ts.map +1 -0
- package/dist/planning/ProjectPlanningLayer.js +176 -0
- package/dist/planning/ProjectPlanningLayer.js.map +1 -0
- package/dist/platform/PlatformCapabilities.d.ts +12 -0
- package/dist/platform/PlatformCapabilities.d.ts.map +1 -0
- package/dist/platform/PlatformCapabilities.js +66 -0
- package/dist/platform/PlatformCapabilities.js.map +1 -0
- package/dist/platform/auth/AuthService.d.ts +32 -0
- package/dist/platform/auth/AuthService.d.ts.map +1 -0
- package/dist/platform/auth/AuthService.js +43 -0
- package/dist/platform/auth/AuthService.js.map +1 -0
- package/dist/platform/index.d.ts +43 -0
- package/dist/platform/index.d.ts.map +1 -0
- package/dist/platform/index.js +67 -0
- package/dist/platform/index.js.map +1 -0
- package/dist/platform/sdk/index.d.ts +44 -0
- package/dist/platform/sdk/index.d.ts.map +1 -0
- package/dist/platform/sdk/index.js +67 -0
- package/dist/platform/sdk/index.js.map +1 -0
- package/dist/platform/server/ApiServer.d.ts +62 -0
- package/dist/platform/server/ApiServer.d.ts.map +1 -0
- package/dist/platform/server/ApiServer.js +232 -0
- package/dist/platform/server/ApiServer.js.map +1 -0
- package/dist/platform/services/MetricsService.d.ts +58 -0
- package/dist/platform/services/MetricsService.d.ts.map +1 -0
- package/dist/platform/services/MetricsService.js +81 -0
- package/dist/platform/services/MetricsService.js.map +1 -0
- package/dist/platform/validation/PlatformValidation.d.ts +30 -0
- package/dist/platform/validation/PlatformValidation.d.ts.map +1 -0
- package/dist/platform/validation/PlatformValidation.js +91 -0
- package/dist/platform/validation/PlatformValidation.js.map +1 -0
- package/dist/platform/validation/benchmark/BenchmarkFramework.d.ts +33 -0
- package/dist/platform/validation/benchmark/BenchmarkFramework.d.ts.map +1 -0
- package/dist/platform/validation/benchmark/BenchmarkFramework.js +63 -0
- package/dist/platform/validation/benchmark/BenchmarkFramework.js.map +1 -0
- package/dist/platform/validation/chaos/FaultInjector.d.ts +44 -0
- package/dist/platform/validation/chaos/FaultInjector.d.ts.map +1 -0
- package/dist/platform/validation/chaos/FaultInjector.js +57 -0
- package/dist/platform/validation/chaos/FaultInjector.js.map +1 -0
- package/dist/product/AutoTopologySelector.d.ts +30 -0
- package/dist/product/AutoTopologySelector.d.ts.map +1 -0
- package/dist/product/AutoTopologySelector.js +113 -0
- package/dist/product/AutoTopologySelector.js.map +1 -0
- package/dist/product/ProductEngineeringLayer.d.ts +65 -0
- package/dist/product/ProductEngineeringLayer.d.ts.map +1 -0
- package/dist/product/ProductEngineeringLayer.js +168 -0
- package/dist/product/ProductEngineeringLayer.js.map +1 -0
- package/dist/product/ProviderRegistry.d.ts +13 -0
- package/dist/product/ProviderRegistry.d.ts.map +1 -0
- package/dist/product/ProviderRegistry.js +21 -0
- package/dist/product/ProviderRegistry.js.map +1 -0
- package/dist/product/TaskIntentClassifier.d.ts +20 -0
- package/dist/product/TaskIntentClassifier.d.ts.map +1 -0
- package/dist/product/TaskIntentClassifier.js +88 -0
- package/dist/product/TaskIntentClassifier.js.map +1 -0
- package/dist/production/ProductionRuntime.d.ts +50 -0
- package/dist/production/ProductionRuntime.d.ts.map +1 -0
- package/dist/production/ProductionRuntime.js +137 -0
- package/dist/production/ProductionRuntime.js.map +1 -0
- package/dist/production/checkpoint/CheckpointManager.d.ts +59 -0
- package/dist/production/checkpoint/CheckpointManager.d.ts.map +1 -0
- package/dist/production/checkpoint/CheckpointManager.js +84 -0
- package/dist/production/checkpoint/CheckpointManager.js.map +1 -0
- package/dist/production/compensation/CompensationEngine.d.ts +28 -0
- package/dist/production/compensation/CompensationEngine.d.ts.map +1 -0
- package/dist/production/compensation/CompensationEngine.js +52 -0
- package/dist/production/compensation/CompensationEngine.js.map +1 -0
- package/dist/production/events/EventStore.d.ts +54 -0
- package/dist/production/events/EventStore.d.ts.map +1 -0
- package/dist/production/events/EventStore.js +71 -0
- package/dist/production/events/EventStore.js.map +1 -0
- package/dist/production/plugins/PluginRegistry.d.ts +50 -0
- package/dist/production/plugins/PluginRegistry.d.ts.map +1 -0
- package/dist/production/plugins/PluginRegistry.js +63 -0
- package/dist/production/plugins/PluginRegistry.js.map +1 -0
- package/dist/production/scheduler/Scheduler.d.ts +55 -0
- package/dist/production/scheduler/Scheduler.d.ts.map +1 -0
- package/dist/production/scheduler/Scheduler.js +72 -0
- package/dist/production/scheduler/Scheduler.js.map +1 -0
- package/dist/production-observation/ProductionObservation.d.ts +137 -0
- package/dist/production-observation/ProductionObservation.d.ts.map +1 -0
- package/dist/production-observation/ProductionObservation.js +278 -0
- package/dist/production-observation/ProductionObservation.js.map +1 -0
- package/dist/production-observation/index.d.ts +14 -0
- package/dist/production-observation/index.d.ts.map +1 -0
- package/dist/production-observation/index.js +25 -0
- package/dist/production-observation/index.js.map +1 -0
- package/dist/productionization/ProductionizationPlan.d.ts +211 -0
- package/dist/productionization/ProductionizationPlan.d.ts.map +1 -0
- package/dist/productionization/ProductionizationPlan.js +498 -0
- package/dist/productionization/ProductionizationPlan.js.map +1 -0
- package/dist/productionization/index.d.ts +16 -0
- package/dist/productionization/index.d.ts.map +1 -0
- package/dist/productionization/index.js +33 -0
- package/dist/productionization/index.js.map +1 -0
- package/dist/prompts/prompts/reviewer.txt +17 -0
- package/dist/prompts/prompts/revision.txt +10 -0
- package/dist/prompts/reviewer.txt +17 -0
- package/dist/prompts/revision.txt +10 -0
- package/dist/providers/OpenAIProvider.d.ts +22 -0
- package/dist/providers/OpenAIProvider.d.ts.map +1 -0
- package/dist/providers/OpenAIProvider.js +55 -0
- package/dist/providers/OpenAIProvider.js.map +1 -0
- package/dist/providers/ProviderAdapter.d.ts +27 -0
- package/dist/providers/ProviderAdapter.d.ts.map +1 -0
- package/dist/providers/ProviderAdapter.js +7 -0
- package/dist/providers/ProviderAdapter.js.map +1 -0
- package/dist/reasoning/ArchitectureCandidateGenerator.d.ts +31 -0
- package/dist/reasoning/ArchitectureCandidateGenerator.d.ts.map +1 -0
- package/dist/reasoning/ArchitectureCandidateGenerator.js +89 -0
- package/dist/reasoning/ArchitectureCandidateGenerator.js.map +1 -0
- package/dist/reasoning/ArchitectureSpaceGenerator.d.ts +21 -0
- package/dist/reasoning/ArchitectureSpaceGenerator.d.ts.map +1 -0
- package/dist/reasoning/ArchitectureSpaceGenerator.js +55 -0
- package/dist/reasoning/ArchitectureSpaceGenerator.js.map +1 -0
- package/dist/reasoning/ConstraintInferenceEngine.d.ts +45 -0
- package/dist/reasoning/ConstraintInferenceEngine.d.ts.map +1 -0
- package/dist/reasoning/ConstraintInferenceEngine.js +97 -0
- package/dist/reasoning/ConstraintInferenceEngine.js.map +1 -0
- package/dist/reasoning/DecisionEngine.d.ts +28 -0
- package/dist/reasoning/DecisionEngine.d.ts.map +1 -0
- package/dist/reasoning/DecisionEngine.js +66 -0
- package/dist/reasoning/DecisionEngine.js.map +1 -0
- package/dist/reasoning/ExplainabilityLayer.d.ts +29 -0
- package/dist/reasoning/ExplainabilityLayer.d.ts.map +1 -0
- package/dist/reasoning/ExplainabilityLayer.js +51 -0
- package/dist/reasoning/ExplainabilityLayer.js.map +1 -0
- package/dist/reasoning/FailureSimulationEngine.d.ts +27 -0
- package/dist/reasoning/FailureSimulationEngine.d.ts.map +1 -0
- package/dist/reasoning/FailureSimulationEngine.js +80 -0
- package/dist/reasoning/FailureSimulationEngine.js.map +1 -0
- package/dist/reasoning/TradeoffReasoningEngine.d.ts +29 -0
- package/dist/reasoning/TradeoffReasoningEngine.d.ts.map +1 -0
- package/dist/reasoning/TradeoffReasoningEngine.js +92 -0
- package/dist/reasoning/TradeoffReasoningEngine.js.map +1 -0
- package/dist/reasoning/index.d.ts +59 -0
- package/dist/reasoning/index.d.ts.map +1 -0
- package/dist/reasoning/index.js +79 -0
- package/dist/reasoning/index.js.map +1 -0
- package/dist/review/ReviewConsensus.d.ts +55 -0
- package/dist/review/ReviewConsensus.d.ts.map +1 -0
- package/dist/review/ReviewConsensus.js +174 -0
- package/dist/review/ReviewConsensus.js.map +1 -0
- package/dist/runtime/CapabilityDiscovery.d.ts +39 -0
- package/dist/runtime/CapabilityDiscovery.d.ts.map +1 -0
- package/dist/runtime/CapabilityDiscovery.js +157 -0
- package/dist/runtime/CapabilityDiscovery.js.map +1 -0
- package/dist/runtime/EventBus.d.ts +26 -0
- package/dist/runtime/EventBus.d.ts.map +1 -0
- package/dist/runtime/EventBus.js +103 -0
- package/dist/runtime/EventBus.js.map +1 -0
- package/dist/runtime/FailureAnalyzer.d.ts +24 -0
- package/dist/runtime/FailureAnalyzer.d.ts.map +1 -0
- package/dist/runtime/FailureAnalyzer.js +71 -0
- package/dist/runtime/FailureAnalyzer.js.map +1 -0
- package/dist/runtime/ReplayEngine.d.ts +19 -0
- package/dist/runtime/ReplayEngine.d.ts.map +1 -0
- package/dist/runtime/ReplayEngine.js +50 -0
- package/dist/runtime/ReplayEngine.js.map +1 -0
- package/dist/runtime/RuntimeConfig.d.ts +27 -0
- package/dist/runtime/RuntimeConfig.d.ts.map +1 -0
- package/dist/runtime/RuntimeConfig.js +121 -0
- package/dist/runtime/RuntimeConfig.js.map +1 -0
- package/dist/runtime/RuntimeScoreManager.d.ts +49 -0
- package/dist/runtime/RuntimeScoreManager.d.ts.map +1 -0
- package/dist/runtime/RuntimeScoreManager.js +139 -0
- package/dist/runtime/RuntimeScoreManager.js.map +1 -0
- package/dist/runtime/RuntimeSelector.d.ts +32 -0
- package/dist/runtime/RuntimeSelector.d.ts.map +1 -0
- package/dist/runtime/RuntimeSelector.js +86 -0
- package/dist/runtime/RuntimeSelector.js.map +1 -0
- package/dist/runtime/v2/RuntimeCore.d.ts +141 -0
- package/dist/runtime/v2/RuntimeCore.d.ts.map +1 -0
- package/dist/runtime/v2/RuntimeCore.js +373 -0
- package/dist/runtime/v2/RuntimeCore.js.map +1 -0
- package/dist/runtime/v2/audit/AuditTrail.d.ts +155 -0
- package/dist/runtime/v2/audit/AuditTrail.d.ts.map +1 -0
- package/dist/runtime/v2/audit/AuditTrail.js +300 -0
- package/dist/runtime/v2/audit/AuditTrail.js.map +1 -0
- package/dist/runtime/v2/budget/BudgetGuard.d.ts +121 -0
- package/dist/runtime/v2/budget/BudgetGuard.d.ts.map +1 -0
- package/dist/runtime/v2/budget/BudgetGuard.js +248 -0
- package/dist/runtime/v2/budget/BudgetGuard.js.map +1 -0
- package/dist/runtime/v2/capability/CapabilityRegistry.d.ts +116 -0
- package/dist/runtime/v2/capability/CapabilityRegistry.d.ts.map +1 -0
- package/dist/runtime/v2/capability/CapabilityRegistry.js +207 -0
- package/dist/runtime/v2/capability/CapabilityRegistry.js.map +1 -0
- package/dist/runtime/v2/checkpoint/HumanCheckpoint.d.ts +116 -0
- package/dist/runtime/v2/checkpoint/HumanCheckpoint.d.ts.map +1 -0
- package/dist/runtime/v2/checkpoint/HumanCheckpoint.js +265 -0
- package/dist/runtime/v2/checkpoint/HumanCheckpoint.js.map +1 -0
- package/dist/runtime/v2/concurrency/ConcurrencyManager.d.ts +101 -0
- package/dist/runtime/v2/concurrency/ConcurrencyManager.d.ts.map +1 -0
- package/dist/runtime/v2/concurrency/ConcurrencyManager.js +202 -0
- package/dist/runtime/v2/concurrency/ConcurrencyManager.js.map +1 -0
- package/dist/runtime/v2/dashboard/DashboardApi.d.ts +172 -0
- package/dist/runtime/v2/dashboard/DashboardApi.d.ts.map +1 -0
- package/dist/runtime/v2/dashboard/DashboardApi.js +336 -0
- package/dist/runtime/v2/dashboard/DashboardApi.js.map +1 -0
- package/dist/runtime/v2/dashboard/DashboardServer.d.ts +45 -0
- package/dist/runtime/v2/dashboard/DashboardServer.d.ts.map +1 -0
- package/dist/runtime/v2/dashboard/DashboardServer.js +184 -0
- package/dist/runtime/v2/dashboard/DashboardServer.js.map +1 -0
- package/dist/runtime/v2/discovery/DiscoveryEngine.d.ts +168 -0
- package/dist/runtime/v2/discovery/DiscoveryEngine.d.ts.map +1 -0
- package/dist/runtime/v2/discovery/DiscoveryEngine.js +418 -0
- package/dist/runtime/v2/discovery/DiscoveryEngine.js.map +1 -0
- package/dist/runtime/v2/evaluator/EvaluatorPipeline.d.ts +79 -0
- package/dist/runtime/v2/evaluator/EvaluatorPipeline.d.ts.map +1 -0
- package/dist/runtime/v2/evaluator/EvaluatorPipeline.js +261 -0
- package/dist/runtime/v2/evaluator/EvaluatorPipeline.js.map +1 -0
- package/dist/runtime/v2/hydration/HydrationEngine.d.ts +68 -0
- package/dist/runtime/v2/hydration/HydrationEngine.d.ts.map +1 -0
- package/dist/runtime/v2/hydration/HydrationEngine.js +272 -0
- package/dist/runtime/v2/hydration/HydrationEngine.js.map +1 -0
- package/dist/runtime/v2/index.d.ts +33 -0
- package/dist/runtime/v2/index.d.ts.map +1 -0
- package/dist/runtime/v2/index.js +117 -0
- package/dist/runtime/v2/index.js.map +1 -0
- package/dist/runtime/v2/intent/TaskContract.d.ts +97 -0
- package/dist/runtime/v2/intent/TaskContract.d.ts.map +1 -0
- package/dist/runtime/v2/intent/TaskContract.js +85 -0
- package/dist/runtime/v2/intent/TaskContract.js.map +1 -0
- package/dist/runtime/v2/isolation/WorkspaceIsolation.d.ts +109 -0
- package/dist/runtime/v2/isolation/WorkspaceIsolation.d.ts.map +1 -0
- package/dist/runtime/v2/isolation/WorkspaceIsolation.js +294 -0
- package/dist/runtime/v2/isolation/WorkspaceIsolation.js.map +1 -0
- package/dist/runtime/v2/observation/EventBus.d.ts +68 -0
- package/dist/runtime/v2/observation/EventBus.d.ts.map +1 -0
- package/dist/runtime/v2/observation/EventBus.js +116 -0
- package/dist/runtime/v2/observation/EventBus.js.map +1 -0
- package/dist/runtime/v2/persistence/PersistenceEngine.d.ts +113 -0
- package/dist/runtime/v2/persistence/PersistenceEngine.d.ts.map +1 -0
- package/dist/runtime/v2/persistence/PersistenceEngine.js +334 -0
- package/dist/runtime/v2/persistence/PersistenceEngine.js.map +1 -0
- package/dist/runtime/v2/planner/PlannerEngine.d.ts +48 -0
- package/dist/runtime/v2/planner/PlannerEngine.d.ts.map +1 -0
- package/dist/runtime/v2/planner/PlannerEngine.js +90 -0
- package/dist/runtime/v2/planner/PlannerEngine.js.map +1 -0
- package/dist/runtime/v2/policy/PolicyEngine.d.ts +66 -0
- package/dist/runtime/v2/policy/PolicyEngine.d.ts.map +1 -0
- package/dist/runtime/v2/policy/PolicyEngine.js +244 -0
- package/dist/runtime/v2/policy/PolicyEngine.js.map +1 -0
- package/dist/runtime/v2/provider/AnthropicProvider.d.ts +24 -0
- package/dist/runtime/v2/provider/AnthropicProvider.d.ts.map +1 -0
- package/dist/runtime/v2/provider/AnthropicProvider.js +139 -0
- package/dist/runtime/v2/provider/AnthropicProvider.js.map +1 -0
- package/dist/runtime/v2/provider/GoogleProvider.d.ts +24 -0
- package/dist/runtime/v2/provider/GoogleProvider.d.ts.map +1 -0
- package/dist/runtime/v2/provider/GoogleProvider.js +146 -0
- package/dist/runtime/v2/provider/GoogleProvider.js.map +1 -0
- package/dist/runtime/v2/provider/OpenAIProvider.d.ts +31 -0
- package/dist/runtime/v2/provider/OpenAIProvider.d.ts.map +1 -0
- package/dist/runtime/v2/provider/OpenAIProvider.js +189 -0
- package/dist/runtime/v2/provider/OpenAIProvider.js.map +1 -0
- package/dist/runtime/v2/provider/ProviderManager.d.ts +67 -0
- package/dist/runtime/v2/provider/ProviderManager.d.ts.map +1 -0
- package/dist/runtime/v2/provider/ProviderManager.js +118 -0
- package/dist/runtime/v2/provider/ProviderManager.js.map +1 -0
- package/dist/runtime/v2/provider/ProviderRegistry.d.ts +144 -0
- package/dist/runtime/v2/provider/ProviderRegistry.d.ts.map +1 -0
- package/dist/runtime/v2/provider/ProviderRegistry.js +154 -0
- package/dist/runtime/v2/provider/ProviderRegistry.js.map +1 -0
- package/dist/runtime/v2/queue/RuntimeQueue.d.ts +129 -0
- package/dist/runtime/v2/queue/RuntimeQueue.d.ts.map +1 -0
- package/dist/runtime/v2/queue/RuntimeQueue.js +240 -0
- package/dist/runtime/v2/queue/RuntimeQueue.js.map +1 -0
- package/dist/runtime/v2/recovery/RecoveryEngine.d.ts +112 -0
- package/dist/runtime/v2/recovery/RecoveryEngine.d.ts.map +1 -0
- package/dist/runtime/v2/recovery/RecoveryEngine.js +293 -0
- package/dist/runtime/v2/recovery/RecoveryEngine.js.map +1 -0
- package/dist/runtime/v2/scheduler/SchedulerEngine.d.ts +129 -0
- package/dist/runtime/v2/scheduler/SchedulerEngine.d.ts.map +1 -0
- package/dist/runtime/v2/scheduler/SchedulerEngine.js +306 -0
- package/dist/runtime/v2/scheduler/SchedulerEngine.js.map +1 -0
- package/dist/runtime/v2/state-machine/RuntimeStateMachine.d.ts +69 -0
- package/dist/runtime/v2/state-machine/RuntimeStateMachine.d.ts.map +1 -0
- package/dist/runtime/v2/state-machine/RuntimeStateMachine.js +152 -0
- package/dist/runtime/v2/state-machine/RuntimeStateMachine.js.map +1 -0
- package/dist/runtime/v2/workflow/RuntimeWorkflowBridge.d.ts +104 -0
- package/dist/runtime/v2/workflow/RuntimeWorkflowBridge.d.ts.map +1 -0
- package/dist/runtime/v2/workflow/RuntimeWorkflowBridge.js +321 -0
- package/dist/runtime/v2/workflow/RuntimeWorkflowBridge.js.map +1 -0
- package/dist/runtime/v2.1/ControlPlane.d.ts +83 -0
- package/dist/runtime/v2.1/ControlPlane.d.ts.map +1 -0
- package/dist/runtime/v2.1/ControlPlane.js +178 -0
- package/dist/runtime/v2.1/ControlPlane.js.map +1 -0
- package/dist/runtime/v2.1/bridge/ExecutionBridge.d.ts +53 -0
- package/dist/runtime/v2.1/bridge/ExecutionBridge.d.ts.map +1 -0
- package/dist/runtime/v2.1/bridge/ExecutionBridge.js +109 -0
- package/dist/runtime/v2.1/bridge/ExecutionBridge.js.map +1 -0
- package/dist/runtime/v2.1/contract/ShadowContractLayer.d.ts +105 -0
- package/dist/runtime/v2.1/contract/ShadowContractLayer.d.ts.map +1 -0
- package/dist/runtime/v2.1/contract/ShadowContractLayer.js +267 -0
- package/dist/runtime/v2.1/contract/ShadowContractLayer.js.map +1 -0
- package/dist/runtime/v2.1/decision/ShadowDecisionLayer.d.ts +62 -0
- package/dist/runtime/v2.1/decision/ShadowDecisionLayer.d.ts.map +1 -0
- package/dist/runtime/v2.1/decision/ShadowDecisionLayer.js +105 -0
- package/dist/runtime/v2.1/decision/ShadowDecisionLayer.js.map +1 -0
- package/dist/runtime/v2.1/der/ChaosExecutionMode.d.ts +50 -0
- package/dist/runtime/v2.1/der/ChaosExecutionMode.d.ts.map +1 -0
- package/dist/runtime/v2.1/der/ChaosExecutionMode.js +89 -0
- package/dist/runtime/v2.1/der/ChaosExecutionMode.js.map +1 -0
- package/dist/runtime/v2.1/der/DER.d.ts +138 -0
- package/dist/runtime/v2.1/der/DER.d.ts.map +1 -0
- package/dist/runtime/v2.1/der/DER.js +395 -0
- package/dist/runtime/v2.1/der/DER.js.map +1 -0
- package/dist/runtime/v2.1/der/FaultInjectionLayer.d.ts +63 -0
- package/dist/runtime/v2.1/der/FaultInjectionLayer.d.ts.map +1 -0
- package/dist/runtime/v2.1/der/FaultInjectionLayer.js +138 -0
- package/dist/runtime/v2.1/der/FaultInjectionLayer.js.map +1 -0
- package/dist/runtime/v2.1/der/StressMetrics.d.ts +65 -0
- package/dist/runtime/v2.1/der/StressMetrics.d.ts.map +1 -0
- package/dist/runtime/v2.1/der/StressMetrics.js +127 -0
- package/dist/runtime/v2.1/der/StressMetrics.js.map +1 -0
- package/dist/runtime/v2.1/index.d.ts +22 -0
- package/dist/runtime/v2.1/index.d.ts.map +1 -0
- package/dist/runtime/v2.1/index.js +51 -0
- package/dist/runtime/v2.1/index.js.map +1 -0
- package/dist/runtime/v2.1/observability/ShadowObservabilityLayer.d.ts +99 -0
- package/dist/runtime/v2.1/observability/ShadowObservabilityLayer.d.ts.map +1 -0
- package/dist/runtime/v2.1/observability/ShadowObservabilityLayer.js +174 -0
- package/dist/runtime/v2.1/observability/ShadowObservabilityLayer.js.map +1 -0
- package/dist/runtime/v2.1/validation/CutoverGate.d.ts +82 -0
- package/dist/runtime/v2.1/validation/CutoverGate.d.ts.map +1 -0
- package/dist/runtime/v2.1/validation/CutoverGate.js +129 -0
- package/dist/runtime/v2.1/validation/CutoverGate.js.map +1 -0
- package/dist/runtime/v2.1/validation/DivergenceAnalyzer.d.ts +58 -0
- package/dist/runtime/v2.1/validation/DivergenceAnalyzer.d.ts.map +1 -0
- package/dist/runtime/v2.1/validation/DivergenceAnalyzer.js +130 -0
- package/dist/runtime/v2.1/validation/DivergenceAnalyzer.js.map +1 -0
- package/dist/runtime/v2.1/validation/ValidationDashboard.d.ts +45 -0
- package/dist/runtime/v2.1/validation/ValidationDashboard.d.ts.map +1 -0
- package/dist/runtime/v2.1/validation/ValidationDashboard.js +112 -0
- package/dist/runtime/v2.1/validation/ValidationDashboard.js.map +1 -0
- package/dist/runtime/v2.1/validation/ValidationEngine.d.ts +89 -0
- package/dist/runtime/v2.1/validation/ValidationEngine.d.ts.map +1 -0
- package/dist/runtime/v2.1/validation/ValidationEngine.js +194 -0
- package/dist/runtime/v2.1/validation/ValidationEngine.js.map +1 -0
- package/dist/runtime-core/agents/hermes.d.ts +18 -0
- package/dist/runtime-core/agents/hermes.d.ts.map +1 -0
- package/dist/runtime-core/agents/hermes.js +21 -0
- package/dist/runtime-core/agents/hermes.js.map +1 -0
- package/dist/runtime-core/agents/registry.d.ts +27 -0
- package/dist/runtime-core/agents/registry.d.ts.map +1 -0
- package/dist/runtime-core/agents/registry.js +29 -0
- package/dist/runtime-core/agents/registry.js.map +1 -0
- package/dist/runtime-core/agents/worker.d.ts +18 -0
- package/dist/runtime-core/agents/worker.d.ts.map +1 -0
- package/dist/runtime-core/agents/worker.js +21 -0
- package/dist/runtime-core/agents/worker.js.map +1 -0
- package/dist/runtime-core/index.d.ts +24 -0
- package/dist/runtime-core/index.d.ts.map +1 -0
- package/dist/runtime-core/index.js +55 -0
- package/dist/runtime-core/index.js.map +1 -0
- package/dist/runtime-core/orchestrator.d.ts +47 -0
- package/dist/runtime-core/orchestrator.d.ts.map +1 -0
- package/dist/runtime-core/orchestrator.js +87 -0
- package/dist/runtime-core/orchestrator.js.map +1 -0
- package/dist/runtime-core/tools/fs.d.ts +9 -0
- package/dist/runtime-core/tools/fs.d.ts.map +1 -0
- package/dist/runtime-core/tools/fs.js +57 -0
- package/dist/runtime-core/tools/fs.js.map +1 -0
- package/dist/runtime-core/tools/registry.d.ts +23 -0
- package/dist/runtime-core/tools/registry.d.ts.map +1 -0
- package/dist/runtime-core/tools/registry.js +29 -0
- package/dist/runtime-core/tools/registry.js.map +1 -0
- package/dist/runtime-v2/agents/PlannerAgent.d.ts +16 -0
- package/dist/runtime-v2/agents/PlannerAgent.d.ts.map +1 -0
- package/dist/runtime-v2/agents/PlannerAgent.js +34 -0
- package/dist/runtime-v2/agents/PlannerAgent.js.map +1 -0
- package/dist/runtime-v2/context/ContextBus.d.ts +45 -0
- package/dist/runtime-v2/context/ContextBus.d.ts.map +1 -0
- package/dist/runtime-v2/context/ContextBus.js +68 -0
- package/dist/runtime-v2/context/ContextBus.js.map +1 -0
- package/dist/runtime-v2/graph/GraphRuntimeEngine.d.ts +75 -0
- package/dist/runtime-v2/graph/GraphRuntimeEngine.d.ts.map +1 -0
- package/dist/runtime-v2/graph/GraphRuntimeEngine.js +171 -0
- package/dist/runtime-v2/graph/GraphRuntimeEngine.js.map +1 -0
- package/dist/runtime-v2/index.d.ts +24 -0
- package/dist/runtime-v2/index.d.ts.map +1 -0
- package/dist/runtime-v2/index.js +58 -0
- package/dist/runtime-v2/index.js.map +1 -0
- package/dist/runtime.d.ts +10 -0
- package/dist/runtime.d.ts.map +1 -0
- package/dist/runtime.js +13 -0
- package/dist/runtime.js.map +1 -0
- package/dist/safety/CircuitBreaker.d.ts +55 -0
- package/dist/safety/CircuitBreaker.d.ts.map +1 -0
- package/dist/safety/CircuitBreaker.js +138 -0
- package/dist/safety/CircuitBreaker.js.map +1 -0
- package/dist/safety/HopCounter.d.ts +30 -0
- package/dist/safety/HopCounter.d.ts.map +1 -0
- package/dist/safety/HopCounter.js +55 -0
- package/dist/safety/HopCounter.js.map +1 -0
- package/dist/safety/MessageDeduplicator.d.ts +33 -0
- package/dist/safety/MessageDeduplicator.d.ts.map +1 -0
- package/dist/safety/MessageDeduplicator.js +64 -0
- package/dist/safety/MessageDeduplicator.js.map +1 -0
- package/dist/safety/TimeBudget.d.ts +69 -0
- package/dist/safety/TimeBudget.d.ts.map +1 -0
- package/dist/safety/TimeBudget.js +109 -0
- package/dist/safety/TimeBudget.js.map +1 -0
- package/dist/safety/__tests__/CircuitBreaker.test.d.ts +2 -0
- package/dist/safety/__tests__/CircuitBreaker.test.d.ts.map +1 -0
- package/dist/safety/__tests__/CircuitBreaker.test.js +98 -0
- package/dist/safety/__tests__/CircuitBreaker.test.js.map +1 -0
- package/dist/sandbox/ExecutionSandbox.d.ts +16 -0
- package/dist/sandbox/ExecutionSandbox.d.ts.map +1 -0
- package/dist/sandbox/ExecutionSandbox.js +52 -0
- package/dist/sandbox/ExecutionSandbox.js.map +1 -0
- package/dist/security/P0IncidentResponse.d.ts +90 -0
- package/dist/security/P0IncidentResponse.d.ts.map +1 -0
- package/dist/security/P0IncidentResponse.js +161 -0
- package/dist/security/P0IncidentResponse.js.map +1 -0
- package/dist/security/SecurityHardening.d.ts +121 -0
- package/dist/security/SecurityHardening.d.ts.map +1 -0
- package/dist/security/SecurityHardening.js +228 -0
- package/dist/security/SecurityHardening.js.map +1 -0
- package/dist/security/index.d.ts +15 -0
- package/dist/security/index.d.ts.map +1 -0
- package/dist/security/index.js +23 -0
- package/dist/security/index.js.map +1 -0
- package/dist/self-healing/ExecutionTrace.d.ts +80 -0
- package/dist/self-healing/ExecutionTrace.d.ts.map +1 -0
- package/dist/self-healing/ExecutionTrace.js +132 -0
- package/dist/self-healing/ExecutionTrace.js.map +1 -0
- package/dist/self-healing/FailureClassifier.d.ts +40 -0
- package/dist/self-healing/FailureClassifier.d.ts.map +1 -0
- package/dist/self-healing/FailureClassifier.js +176 -0
- package/dist/self-healing/FailureClassifier.js.map +1 -0
- package/dist/self-healing/LoopMemory.d.ts +54 -0
- package/dist/self-healing/LoopMemory.d.ts.map +1 -0
- package/dist/self-healing/LoopMemory.js +79 -0
- package/dist/self-healing/LoopMemory.js.map +1 -0
- package/dist/self-healing/PolicyEngine.d.ts +31 -0
- package/dist/self-healing/PolicyEngine.d.ts.map +1 -0
- package/dist/self-healing/PolicyEngine.js +92 -0
- package/dist/self-healing/PolicyEngine.js.map +1 -0
- package/dist/self-healing/RetryPolicy.d.ts +50 -0
- package/dist/self-healing/RetryPolicy.d.ts.map +1 -0
- package/dist/self-healing/RetryPolicy.js +94 -0
- package/dist/self-healing/RetryPolicy.js.map +1 -0
- package/dist/self-healing/RuntimeEvents.d.ts +50 -0
- package/dist/self-healing/RuntimeEvents.d.ts.map +1 -0
- package/dist/self-healing/RuntimeEvents.js +68 -0
- package/dist/self-healing/RuntimeEvents.js.map +1 -0
- package/dist/self-healing/SelfHealingRuntime.d.ts +41 -0
- package/dist/self-healing/SelfHealingRuntime.d.ts.map +1 -0
- package/dist/self-healing/SelfHealingRuntime.js +245 -0
- package/dist/self-healing/SelfHealingRuntime.js.map +1 -0
- package/dist/stability/StabilityEngine.d.ts +67 -0
- package/dist/stability/StabilityEngine.d.ts.map +1 -0
- package/dist/stability/StabilityEngine.js +214 -0
- package/dist/stability/StabilityEngine.js.map +1 -0
- package/dist/stability/TaskQualityGate.d.ts +41 -0
- package/dist/stability/TaskQualityGate.d.ts.map +1 -0
- package/dist/stability/TaskQualityGate.js +90 -0
- package/dist/stability/TaskQualityGate.js.map +1 -0
- package/dist/stability-loop/StabilityHardeningLoop.d.ts +158 -0
- package/dist/stability-loop/StabilityHardeningLoop.d.ts.map +1 -0
- package/dist/stability-loop/StabilityHardeningLoop.js +331 -0
- package/dist/stability-loop/StabilityHardeningLoop.js.map +1 -0
- package/dist/stability-loop/index.d.ts +18 -0
- package/dist/stability-loop/index.d.ts.map +1 -0
- package/dist/stability-loop/index.js +35 -0
- package/dist/stability-loop/index.js.map +1 -0
- package/dist/trace/CausalEngine.d.ts +56 -0
- package/dist/trace/CausalEngine.d.ts.map +1 -0
- package/dist/trace/CausalEngine.js +131 -0
- package/dist/trace/CausalEngine.js.map +1 -0
- package/dist/trace/ExecutionTraceModel.d.ts +127 -0
- package/dist/trace/ExecutionTraceModel.d.ts.map +1 -0
- package/dist/trace/ExecutionTraceModel.js +136 -0
- package/dist/trace/ExecutionTraceModel.js.map +1 -0
- package/dist/trace/KnowledgeInfluenceTracker.d.ts +54 -0
- package/dist/trace/KnowledgeInfluenceTracker.d.ts.map +1 -0
- package/dist/trace/KnowledgeInfluenceTracker.js +76 -0
- package/dist/trace/KnowledgeInfluenceTracker.js.map +1 -0
- package/dist/trace/flexibility/AdaptiveRuntime.d.ts +30 -0
- package/dist/trace/flexibility/AdaptiveRuntime.d.ts.map +1 -0
- package/dist/trace/flexibility/AdaptiveRuntime.js +42 -0
- package/dist/trace/flexibility/AdaptiveRuntime.js.map +1 -0
- package/dist/trace/flexibility/ExecutionFlexibilityEngine.d.ts +52 -0
- package/dist/trace/flexibility/ExecutionFlexibilityEngine.d.ts.map +1 -0
- package/dist/trace/flexibility/ExecutionFlexibilityEngine.js +57 -0
- package/dist/trace/flexibility/ExecutionFlexibilityEngine.js.map +1 -0
- package/dist/trace/flexibility/FlexibleExecutionGate.d.ts +25 -0
- package/dist/trace/flexibility/FlexibleExecutionGate.d.ts.map +1 -0
- package/dist/trace/flexibility/FlexibleExecutionGate.js +48 -0
- package/dist/trace/flexibility/FlexibleExecutionGate.js.map +1 -0
- package/dist/trace/flexibility/index.d.ts +17 -0
- package/dist/trace/flexibility/index.d.ts.map +1 -0
- package/dist/trace/flexibility/index.js +23 -0
- package/dist/trace/flexibility/index.js.map +1 -0
- package/dist/trace/gate/DeviationDetectionEngine.d.ts +60 -0
- package/dist/trace/gate/DeviationDetectionEngine.d.ts.map +1 -0
- package/dist/trace/gate/DeviationDetectionEngine.js +143 -0
- package/dist/trace/gate/DeviationDetectionEngine.js.map +1 -0
- package/dist/trace/gate/ExecutionTracePlan.d.ts +55 -0
- package/dist/trace/gate/ExecutionTracePlan.d.ts.map +1 -0
- package/dist/trace/gate/ExecutionTracePlan.js +67 -0
- package/dist/trace/gate/ExecutionTracePlan.js.map +1 -0
- package/dist/trace/gate/TraceExecutionGate.d.ts +63 -0
- package/dist/trace/gate/TraceExecutionGate.d.ts.map +1 -0
- package/dist/trace/gate/TraceExecutionGate.js +129 -0
- package/dist/trace/gate/TraceExecutionGate.js.map +1 -0
- package/dist/trace/gate/index.d.ts +15 -0
- package/dist/trace/gate/index.d.ts.map +1 -0
- package/dist/trace/gate/index.js +21 -0
- package/dist/trace/gate/index.js.map +1 -0
- package/dist/trace/index.d.ts +13 -0
- package/dist/trace/index.d.ts.map +1 -0
- package/dist/trace/index.js +19 -0
- package/dist/trace/index.js.map +1 -0
- package/dist/trace/proof/ExecutionProofSystem.d.ts +94 -0
- package/dist/trace/proof/ExecutionProofSystem.d.ts.map +1 -0
- package/dist/trace/proof/ExecutionProofSystem.js +185 -0
- package/dist/trace/proof/ExecutionProofSystem.js.map +1 -0
- package/dist/trace/proof/index.d.ts +11 -0
- package/dist/trace/proof/index.d.ts.map +1 -0
- package/dist/trace/proof/index.js +15 -0
- package/dist/trace/proof/index.js.map +1 -0
- package/dist/types/index.d.ts +194 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/index.js +4 -0
- package/dist/types/index.js.map +1 -0
- package/dist/unified/UnifiedExecutionEngine.d.ts +118 -0
- package/dist/unified/UnifiedExecutionEngine.d.ts.map +1 -0
- package/dist/unified/UnifiedExecutionEngine.js +187 -0
- package/dist/unified/UnifiedExecutionEngine.js.map +1 -0
- package/dist/unified/index.d.ts +17 -0
- package/dist/unified/index.d.ts.map +1 -0
- package/dist/unified/index.js +21 -0
- package/dist/unified/index.js.map +1 -0
- package/dist/utils/OutputNormalizer.d.ts +8 -0
- package/dist/utils/OutputNormalizer.d.ts.map +1 -0
- package/dist/utils/OutputNormalizer.js +48 -0
- package/dist/utils/OutputNormalizer.js.map +1 -0
- package/dist/utils/RevisionHistory.d.ts +9 -0
- package/dist/utils/RevisionHistory.d.ts.map +1 -0
- package/dist/utils/RevisionHistory.js +72 -0
- package/dist/utils/RevisionHistory.js.map +1 -0
- package/dist/utils/TaskQueue.d.ts +12 -0
- package/dist/utils/TaskQueue.d.ts.map +1 -0
- package/dist/utils/TaskQueue.js +107 -0
- package/dist/utils/TaskQueue.js.map +1 -0
- package/dist/utils/logger.d.ts +16 -0
- package/dist/utils/logger.d.ts.map +1 -0
- package/dist/utils/logger.js +66 -0
- package/dist/utils/logger.js.map +1 -0
- package/dist/utils/uuid.d.ts +2 -0
- package/dist/utils/uuid.d.ts.map +1 -0
- package/dist/utils/uuid.js +41 -0
- package/dist/utils/uuid.js.map +1 -0
- package/dist/validate.d.ts +22 -0
- package/dist/validate.d.ts.map +1 -0
- package/dist/validate.js +46 -0
- package/dist/validate.js.map +1 -0
- package/dist/workflow/WorkflowMachine.d.ts +55 -0
- package/dist/workflow/WorkflowMachine.d.ts.map +1 -0
- package/dist/workflow/WorkflowMachine.js +185 -0
- package/dist/workflow/WorkflowMachine.js.map +1 -0
- package/docs/AGENT-HIVE-CAPABILITY-MATRIX-AUDIT.md +281 -0
- package/docs/AGENT-HIVE-EXECUTION-KERNEL-v1-PRODUCT-READY-SPEC.md +346 -0
- package/docs/AGENT-HIVE-EXECUTION-KERNEL-v1.0-FINAL-SYSTEM-SPEC.md +509 -0
- package/docs/AGENT-HIVE-EXECUTION-KERNEL-v1.0-NEW.md +390 -0
- package/docs/AGENT-HIVE-EXECUTION-KERNEL-v1.0.md +369 -0
- package/docs/AGENT-HIVE-EXECUTION-KERNEL-v1.1-FINAL-SPEC.md +380 -0
- package/docs/AGENT-HIVE-EXECUTION-KERNEL-v1.1-RUNTIME-CORE.md +296 -0
- package/docs/AGENT-HIVE-PHASE-10-EXECUTION-KERNEL-SYSTEM.md +399 -0
- package/docs/AGENT-HIVE-PHASE-10-FINAL-FORM-v2-HARD-TRUTH-ENFORCEMENT-SYSTEM.md +350 -0
- package/docs/AGENT-HIVE-PHASE-10-FINAL-HARD-EXECUTION-TRUTH-SYSTEM-INVARIANT-ROOT-CAUSE-AUDIT.md +286 -0
- package/docs/AGENT-HIVE-PHASE-10-HARD-EXECUTION-TRUTH-SYSTEM-INVARIANT-AUDIT.md +283 -0
- package/docs/AGENT-HIVE-PHASE-5-EXECUTION-VALIDATION-REPORT.md +356 -0
- package/docs/AGENT-HIVE-PHASE-5.1-PLANNER-ERROR-AUDIT.md +323 -0
- package/docs/AGENT-HIVE-PHASE-6-TRUTH-AUDIT.md +454 -0
- package/docs/AGENT-HIVE-PHASE-7-PRODUCTION-READINESS-AUDIT.md +210 -0
- package/docs/AGENT-HIVE-PHASE-8-HARD-EXECUTION-TRUTH-ENFORCEMENT-AUDIT.md +310 -0
- package/docs/AGENT-HIVE-PHASE-9-EXECUTION-COLLAPSE-TEST-SYSTEM.md +241 -0
- package/docs/AGENT-HIVE-RELEASE-VALIDATION-REPORT-v2.md +260 -0
- package/docs/AGENT-HIVE-RELEASE-VALIDATION-REPORT.md +282 -0
- package/docs/AGENT-HIVE-RUNTIME-v2.0-ARCHITECTURE-AUDIT.md +500 -0
- package/docs/AGENT-HIVE-RUNTIME-v2.0-ULTIMATE-INVARIANTS-AUDIT.md +170 -0
- package/docs/AGENT-HIVE-v1.4-lite-KERNEL-PATCH-INTEGRATION-REPORT.md +182 -0
- package/docs/ARCHITECTURE-FREEZE-VALIDATION-REPORT.md +157 -0
- package/docs/ARCHITECTURE.md +51 -0
- package/docs/QUICKSTART.md +44 -0
- package/docs/adr/ADR-001-runtime-architecture.md +28 -0
- package/docs/adr/ADR-002-dag-execution.md +11 -0
- package/docs/adr/ADR-003-observation-layer.md +11 -0
- package/docs/adr/ADR-004-policy-engine.md +11 -0
- package/docs/adr/ADR-005-self-healing.md +24 -0
- package/docs/adr/ADR-006-checkpoint.md +24 -0
- package/docs/adr/ADR-007-event-sourcing.md +11 -0
- package/docs/adr/ADR-008-plugin-sdk.md +11 -0
- package/docs/adr/ADR-009-scheduler.md +24 -0
- package/docs/adr/ADR-010-platform-api.md +11 -0
- package/docs/agent-hive-full-audit-report.md +281 -0
- package/docs/agent-hive-observation.md +100 -0
- package/docs/architecture/overview.md +78 -0
- package/docs/architecture-current.md +301 -0
- package/docs/architecture-review-v2.1.7.md +402 -0
- package/docs/audit-report.md +172 -0
- package/docs/branding-final.md +44 -0
- package/docs/branding-review.md +51 -0
- package/docs/continuous-validation.md +59 -0
- package/docs/dashboard-runtime-validation.md +44 -0
- package/docs/dashboard.md +32 -0
- package/docs/experiment-results.json +341 -0
- package/docs/failure-intelligence-report.md +39 -0
- package/docs/hermes-audit-report.md +119 -0
- package/docs/install-validation.md +43 -0
- package/docs/observability-report.md +71 -0
- package/docs/observability.md +187 -0
- package/docs/orchestration-report.md +119 -0
- package/docs/plugins/README.md +64 -0
- package/docs/positioning.md +67 -0
- package/docs/product-entry.md +55 -0
- package/docs/providers.md +56 -0
- package/docs/real-project-validation.md +120 -0
- package/docs/real-workload-stream.md +69 -0
- package/docs/real-world-validation-report.md +76 -0
- package/docs/release-checklist-v1.1.md +25 -0
- package/docs/runtime-benchmark.md +118 -0
- package/docs/self-hosting.md +64 -0
- package/docs/stability.md +49 -0
- package/docs/task-injection-set.md +49 -0
- package/docs/user-feedback-v1.md +59 -0
- package/docs/v2.0-architecture-proposal.md +684 -0
- package/docs/validation-report.md +116 -0
- package/docs/value-analysis.md +110 -0
- package/examples/ai-workflow/index.js +34 -0
- package/examples/demo/index.js +87 -0
- package/examples/demo/package.json +7 -0
- package/jest.config.js +31 -0
- package/package.json +34 -0
- package/runtime.json.example +26 -0
- package/src/adapters/ClaudeAdapter.ts +229 -0
- package/src/adapters/CodexAdapter.ts +108 -0
- package/src/adapters/HermesAdapter.ts +196 -0
- package/src/adapters/MockClaudeAdapter.ts +70 -0
- package/src/adapters/MockCodexAdapter.ts +36 -0
- package/src/adapters/OpenClawAdapter.ts +172 -0
- package/src/adapters/registry.ts +54 -0
- package/src/api/HiveAPI.ts +148 -0
- package/src/benchmark/BenchmarkDataset.ts +80 -0
- package/src/benchmark/BenchmarkPlan.ts +451 -0
- package/src/benchmark/BenchmarkReport.ts +147 -0
- package/src/benchmark/BenchmarkRunner.ts +143 -0
- package/src/benchmark/BenchmarkSuite.ts +193 -0
- package/src/benchmark/index.ts +39 -0
- package/src/broker/AgentRegistry.ts +76 -0
- package/src/broker/Broker.ts +115 -0
- package/src/broker/GraphOperations.ts +73 -0
- package/src/broker/MessageBus.ts +92 -0
- package/src/broker/MessageRouter.ts +159 -0
- package/src/broker/TaskProcessor.ts +520 -0
- package/src/broker/TaskProcessor.ts.backup +472 -0
- package/src/broker/TaskRouter.ts +32 -0
- package/src/channels/ChannelPlugin.ts +34 -0
- package/src/ci/CIGate.ts +150 -0
- package/src/ci/ContractLock.ts +92 -0
- package/src/cli/hive-cli.ts +104 -0
- package/src/cli.ts +218 -0
- package/src/command/CommandAST.ts +40 -0
- package/src/commands/cli.ts +819 -0
- package/src/commands/demo.ts +81 -0
- package/src/commands/experiment-routing.ts +360 -0
- package/src/commands/generate-dashboard.js +235 -0
- package/src/commands/run-daily-validation.js +125 -0
- package/src/commands/run-validation.ts +316 -0
- package/src/commands/test-benchmark.ts +208 -0
- package/src/commands/test-conversation.ts +284 -0
- package/src/commands/test-crash.ts +67 -0
- package/src/commands/test-cross-platform.ts +65 -0
- package/src/commands/test-graph.ts +466 -0
- package/src/commands/test-observability.ts +137 -0
- package/src/commands/test-orchestration.ts +122 -0
- package/src/commands/test-real-world.ts +180 -0
- package/src/commands/test-reviewer.ts +136 -0
- package/src/commands/test-runtime-intelligence.ts +235 -0
- package/src/commands/test-stress.ts +131 -0
- package/src/commands/test-timeout.ts +145 -0
- package/src/commands/test-v2-integration.ts +615 -0
- package/src/commands/test-validation.ts +210 -0
- package/src/compiler/ArchitectureSynthesizer.ts +117 -0
- package/src/compiler/BlueprintPackager.ts +32 -0
- package/src/compiler/CommandCompiler.ts +66 -0
- package/src/compiler/DAGCompiler.ts +25 -0
- package/src/compiler/DomainModelGenerator.ts +132 -0
- package/src/compiler/FeasibilityGate.ts +81 -0
- package/src/compiler/InputNormalizer.ts +88 -0
- package/src/compiler/IntentParser.ts +109 -0
- package/src/compiler/ModulePlanner.ts +32 -0
- package/src/compiler/PromptCompiler.ts +39 -0
- package/src/compiler/index.ts +84 -0
- package/src/context/ContextManager.ts +63 -0
- package/src/control-plane/BudgetController.ts +120 -0
- package/src/control-plane/ControlPlane.ts +254 -0
- package/src/control-plane/ConvergenceGuard.ts +85 -0
- package/src/control-plane/DriftDetector.ts +99 -0
- package/src/control-plane/MetricStabilityLock.ts +75 -0
- package/src/control-plane/index.ts +24 -0
- package/src/convergence/ConvergenceValidator.ts +367 -0
- package/src/convergence/index.ts +35 -0
- package/src/conversation/ConversationManager.ts +158 -0
- package/src/dashboard/EventStore.ts +54 -0
- package/src/dashboard/FailureIntelligence.ts +302 -0
- package/src/dashboard/ObservationDashboard.ts +256 -0
- package/src/dashboard/StabilityCurve.ts +69 -0
- package/src/dashboard/index.html +144 -0
- package/src/engine/ExecutionEngine.ts +132 -0
- package/src/engine/PlatformAdapter.ts +49 -0
- package/src/engine/ResultNormalizer.ts +69 -0
- package/src/engine/StructuredLogger.ts +61 -0
- package/src/evaluation/BaselineRunner.ts +124 -0
- package/src/evaluation/DecisionTrace.ts +33 -0
- package/src/evaluation/EvaluationMetrics.ts +42 -0
- package/src/evaluation/GroundTruthDataset.ts +84 -0
- package/src/evaluation/RealWorldBenchmark.ts +91 -0
- package/src/evaluation/RealWorldRunner.ts +171 -0
- package/src/evaluation/ValidationRunner.ts +156 -0
- package/src/events/AgentEvent.ts +45 -0
- package/src/events/DecisionEvent.ts +16 -0
- package/src/events/ExecutionEvent.ts +38 -0
- package/src/events/SystemEvent.ts +11 -0
- package/src/evolution/EvolutionEngine.ts +388 -0
- package/src/evolution/index.ts +27 -0
- package/src/execution-fabric/DistributedExecutionFabric.ts +304 -0
- package/src/execution-fabric/index.ts +16 -0
- package/src/execution-graph/DynamicExecutionGraphRuntime.ts +319 -0
- package/src/execution-graph/ExecutionGraphEngine.ts +290 -0
- package/src/execution-graph/index.ts +28 -0
- package/src/execution-runtime/ExecutionRuntime.ts +290 -0
- package/src/execution-runtime/index.ts +17 -0
- package/src/governance/EngineeringGovernanceLayer.ts +287 -0
- package/src/graph/AgentGraph.ts +276 -0
- package/src/graph/GraphValidator.ts +107 -0
- package/src/graph/TopologyTemplates.ts +152 -0
- package/src/hardening/RuntimeHardening.ts +381 -0
- package/src/hardening/index.ts +18 -0
- package/src/index.ts +8 -0
- package/src/kernel/ExecutionState.ts +133 -0
- package/src/kernel/FailureInterceptor.ts +136 -0
- package/src/kernel/KernelGate.ts +77 -0
- package/src/kernel/MultiAgentExecutionKernel.ts +274 -0
- package/src/kernel/RuntimeKernel.ts +494 -0
- package/src/kernel/index.ts +32 -0
- package/src/knowledge/KnowledgeSystem.ts +145 -0
- package/src/learning/ExecutionEpisodeStore.ts +95 -0
- package/src/learning/InsightEngine.ts +78 -0
- package/src/learning/LearningLoopEngine.ts +97 -0
- package/src/learning/MemoryCompressor.ts +94 -0
- package/src/learning/PolicyOptimizer.ts +102 -0
- package/src/learning/PolicyStore.ts +94 -0
- package/src/loop-layer/EvaluationEngine.ts +55 -0
- package/src/loop-layer/LoopController.ts +95 -0
- package/src/loop-layer/ObservationEngine.ts +159 -0
- package/src/memory/ContextCompressor.ts +80 -0
- package/src/memory/MemoryManager.ts +52 -0
- package/src/memory/MemorySearch.ts +91 -0
- package/src/memory/MemoryStore.ts +72 -0
- package/src/observability/ConversationTrace.ts +89 -0
- package/src/observability/DecisionRecorder.ts +95 -0
- package/src/observability/RuntimeMetrics.ts +114 -0
- package/src/observability/TaskTimeline.ts +102 -0
- package/src/observation/SystemScoreCalculator.ts +182 -0
- package/src/observation/__tests__/SystemScoreCalculator.test.ts +71 -0
- package/src/orchestration/AgentRouter.ts +69 -0
- package/src/orchestration/DAGExecutor.ts +150 -0
- package/src/orchestration/JudgeAgent.ts +69 -0
- package/src/orchestration/Planner.ts +52 -0
- package/src/orchestration/ReviewerAgent.ts +76 -0
- package/src/orchestration/contracts/Agent.ts +46 -0
- package/src/orchestration/registry/AgentProfile.ts +11 -0
- package/src/orchestration/registry/AgentRegistry.ts +36 -0
- package/src/planning/ProjectPlanningLayer.ts +230 -0
- package/src/platform/PlatformCapabilities.ts +42 -0
- package/src/platform/auth/AuthService.ts +50 -0
- package/src/platform/index.ts +73 -0
- package/src/platform/sdk/index.ts +87 -0
- package/src/platform/server/ApiServer.ts +226 -0
- package/src/platform/services/MetricsService.ts +97 -0
- package/src/platform/validation/PlatformValidation.ts +109 -0
- package/src/platform/validation/benchmark/BenchmarkFramework.ts +83 -0
- package/src/platform/validation/chaos/FaultInjector.ts +85 -0
- package/src/product/AutoTopologySelector.ts +137 -0
- package/src/product/ProductEngineeringLayer.ts +215 -0
- package/src/product/ProviderRegistry.ts +25 -0
- package/src/product/TaskIntentClassifier.ts +105 -0
- package/src/production/ProductionRuntime.ts +161 -0
- package/src/production/checkpoint/CheckpointManager.ts +103 -0
- package/src/production/compensation/CompensationEngine.ts +71 -0
- package/src/production/events/EventStore.ts +100 -0
- package/src/production/plugins/PluginRegistry.ts +84 -0
- package/src/production/scheduler/Scheduler.ts +93 -0
- package/src/production-observation/ProductionObservation.ts +404 -0
- package/src/production-observation/index.ts +41 -0
- package/src/productionization/ProductionizationPlan.ts +591 -0
- package/src/productionization/index.ts +45 -0
- package/src/prompts/reviewer.txt +17 -0
- package/src/prompts/revision.txt +10 -0
- package/src/providers/OpenAIProvider.ts +61 -0
- package/src/providers/ProviderAdapter.ts +32 -0
- package/src/reasoning/ArchitectureCandidateGenerator.ts +103 -0
- package/src/reasoning/ArchitectureSpaceGenerator.ts +73 -0
- package/src/reasoning/ConstraintInferenceEngine.ts +110 -0
- package/src/reasoning/DecisionEngine.ts +102 -0
- package/src/reasoning/ExplainabilityLayer.ts +72 -0
- package/src/reasoning/FailureSimulationEngine.ts +102 -0
- package/src/reasoning/TradeoffReasoningEngine.ts +114 -0
- package/src/reasoning/index.ts +115 -0
- package/src/review/ReviewConsensus.ts +243 -0
- package/src/runtime/CapabilityDiscovery.ts +142 -0
- package/src/runtime/EventBus.ts +84 -0
- package/src/runtime/FailureAnalyzer.ts +87 -0
- package/src/runtime/ReplayEngine.ts +62 -0
- package/src/runtime/RuntimeConfig.ts +101 -0
- package/src/runtime/RuntimeScoreManager.ts +134 -0
- package/src/runtime/RuntimeSelector.ts +118 -0
- package/src/runtime/v2/RuntimeCore.ts +453 -0
- package/src/runtime/v2/audit/AuditTrail.ts +393 -0
- package/src/runtime/v2/budget/BudgetGuard.ts +304 -0
- package/src/runtime/v2/capability/CapabilityRegistry.ts +244 -0
- package/src/runtime/v2/checkpoint/HumanCheckpoint.ts +364 -0
- package/src/runtime/v2/concurrency/ConcurrencyManager.ts +263 -0
- package/src/runtime/v2/dashboard/DashboardApi.ts +534 -0
- package/src/runtime/v2/dashboard/DashboardServer.ts +160 -0
- package/src/runtime/v2/discovery/DiscoveryEngine.ts +488 -0
- package/src/runtime/v2/evaluator/EvaluatorPipeline.ts +300 -0
- package/src/runtime/v2/hydration/HydrationEngine.ts +289 -0
- package/src/runtime/v2/index.ts +211 -0
- package/src/runtime/v2/intent/TaskContract.ts +182 -0
- package/src/runtime/v2/isolation/WorkspaceIsolation.ts +330 -0
- package/src/runtime/v2/observation/EventBus.ts +137 -0
- package/src/runtime/v2/persistence/PersistenceEngine.ts +330 -0
- package/src/runtime/v2/planner/PlannerEngine.ts +134 -0
- package/src/runtime/v2/policy/PolicyEngine.ts +288 -0
- package/src/runtime/v2/provider/AnthropicProvider.ts +133 -0
- package/src/runtime/v2/provider/GoogleProvider.ts +136 -0
- package/src/runtime/v2/provider/OpenAIProvider.ts +184 -0
- package/src/runtime/v2/provider/ProviderManager.ts +150 -0
- package/src/runtime/v2/provider/ProviderRegistry.ts +262 -0
- package/src/runtime/v2/queue/RuntimeQueue.ts +280 -0
- package/src/runtime/v2/recovery/RecoveryEngine.ts +357 -0
- package/src/runtime/v2/scheduler/SchedulerEngine.ts +358 -0
- package/src/runtime/v2/state-machine/RuntimeStateMachine.ts +186 -0
- package/src/runtime/v2/workflow/RuntimeWorkflowBridge.ts +410 -0
- package/src/runtime/v2.1/ControlPlane.ts +249 -0
- package/src/runtime/v2.1/bridge/ExecutionBridge.ts +142 -0
- package/src/runtime/v2.1/contract/ShadowContractLayer.ts +343 -0
- package/src/runtime/v2.1/decision/ShadowDecisionLayer.ts +165 -0
- package/src/runtime/v2.1/der/ChaosExecutionMode.ts +120 -0
- package/src/runtime/v2.1/der/DER.ts +468 -0
- package/src/runtime/v2.1/der/FaultInjectionLayer.ts +181 -0
- package/src/runtime/v2.1/der/StressMetrics.ts +170 -0
- package/src/runtime/v2.1/index.ts +101 -0
- package/src/runtime/v2.1/observability/ShadowObservabilityLayer.ts +226 -0
- package/src/runtime/v2.1/validation/CutoverGate.ts +179 -0
- package/src/runtime/v2.1/validation/DivergenceAnalyzer.ts +165 -0
- package/src/runtime/v2.1/validation/ValidationDashboard.ts +139 -0
- package/src/runtime/v2.1/validation/ValidationEngine.ts +308 -0
- package/src/runtime-core/agents/hermes.ts +20 -0
- package/src/runtime-core/agents/registry.ts +35 -0
- package/src/runtime-core/agents/worker.ts +20 -0
- package/src/runtime-core/index.ts +60 -0
- package/src/runtime-core/orchestrator.ts +123 -0
- package/src/runtime-core/tools/fs.ts +24 -0
- package/src/runtime-core/tools/registry.ts +34 -0
- package/src/runtime-v2/agents/PlannerAgent.ts +34 -0
- package/src/runtime-v2/context/ContextBus.ts +72 -0
- package/src/runtime-v2/graph/GraphRuntimeEngine.ts +217 -0
- package/src/runtime-v2/index.ts +62 -0
- package/src/runtime.ts +10 -0
- package/src/safety/CircuitBreaker.ts +152 -0
- package/src/safety/HopCounter.ts +57 -0
- package/src/safety/MessageDeduplicator.ts +69 -0
- package/src/safety/TimeBudget.ts +129 -0
- package/src/safety/__tests__/CircuitBreaker.test.ts +113 -0
- package/src/sandbox/ExecutionSandbox.ts +65 -0
- package/src/security/P0IncidentResponse.ts +201 -0
- package/src/security/SecurityHardening.ts +272 -0
- package/src/security/index.ts +29 -0
- package/src/self-healing/ExecutionTrace.ts +164 -0
- package/src/self-healing/FailureClassifier.ts +212 -0
- package/src/self-healing/LoopMemory.ts +98 -0
- package/src/self-healing/PolicyEngine.ts +117 -0
- package/src/self-healing/RetryPolicy.ts +120 -0
- package/src/self-healing/RuntimeEvents.ts +93 -0
- package/src/self-healing/SelfHealingRuntime.ts +282 -0
- package/src/stability/StabilityEngine.ts +216 -0
- package/src/stability/TaskQualityGate.ts +119 -0
- package/src/stability-loop/StabilityHardeningLoop.ts +470 -0
- package/src/stability-loop/index.ts +53 -0
- package/src/trace/CausalEngine.ts +160 -0
- package/src/trace/ExecutionTraceModel.ts +242 -0
- package/src/trace/KnowledgeInfluenceTracker.ts +92 -0
- package/src/trace/flexibility/AdaptiveRuntime.ts +41 -0
- package/src/trace/flexibility/ExecutionFlexibilityEngine.ts +97 -0
- package/src/trace/flexibility/FlexibleExecutionGate.ts +51 -0
- package/src/trace/flexibility/index.ts +26 -0
- package/src/trace/gate/DeviationDetectionEngine.ts +182 -0
- package/src/trace/gate/ExecutionTracePlan.ts +108 -0
- package/src/trace/gate/TraceExecutionGate.ts +163 -0
- package/src/trace/gate/index.ts +15 -0
- package/src/trace/index.ts +13 -0
- package/src/trace/proof/ExecutionProofSystem.ts +232 -0
- package/src/trace/proof/index.ts +16 -0
- package/src/types/index.ts +286 -0
- package/src/unified/UnifiedExecutionEngine.ts +281 -0
- package/src/unified/index.ts +24 -0
- package/src/utils/OutputNormalizer.ts +45 -0
- package/src/utils/RevisionHistory.ts +39 -0
- package/src/utils/TaskQueue.ts +80 -0
- package/src/utils/logger.ts +44 -0
- package/src/utils/uuid.ts +5 -0
- package/src/validate.ts +50 -0
- package/src/workflow/WorkflowMachine.ts +229 -0
- package/test-grand-review.js +192 -0
- package/tests/test-system-score.ts +167 -0
- package/toyako-hive-4.0.0-rc.1.tgz +0 -0
- package/tsconfig.json +20 -0
- package/tsconfig.test.json +9 -0
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Deviation Detection Engine — v5.2
|
|
3
|
+
*
|
|
4
|
+
* 计算 deviationScore = f(planned, actual)
|
|
5
|
+
*
|
|
6
|
+
* Types of deviation:
|
|
7
|
+
* - ORDER_DEVIATION
|
|
8
|
+
* - INPUT_DEVIATION
|
|
9
|
+
* - OUTPUT_DEVIATION
|
|
10
|
+
* - LAYER_DEVIATION
|
|
11
|
+
* - SKIPPED_NODE
|
|
12
|
+
* - EXTRA_NODE
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { ExecutionTracePlan, TraceNode } from "./ExecutionTracePlan";
|
|
16
|
+
|
|
17
|
+
// Deviation Report
|
|
18
|
+
export interface DeviationReport {
|
|
19
|
+
hasDeviation: boolean;
|
|
20
|
+
score: number;
|
|
21
|
+
deviations: Deviation[];
|
|
22
|
+
recommendation: "CONTINUE" | "RETRY" | "REPLAN" | "ABORT";
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
// Deviation
|
|
26
|
+
export interface Deviation {
|
|
27
|
+
type: "ORDER_DEVIATION" | "INPUT_DEVIATION" | "OUTPUT_DEVIATION" | "LAYER_DEVIATION" | "SKIPPED_NODE" | "EXTRA_NODE";
|
|
28
|
+
severity: "low" | "medium" | "high" | "critical";
|
|
29
|
+
description: string;
|
|
30
|
+
nodeId?: string;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export class DeviationDetectionEngine {
|
|
34
|
+
private threshold: number;
|
|
35
|
+
|
|
36
|
+
constructor(threshold: number = 0.5) {
|
|
37
|
+
this.threshold = threshold;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* 检测偏差
|
|
42
|
+
*/
|
|
43
|
+
detect(
|
|
44
|
+
plan: ExecutionTracePlan,
|
|
45
|
+
actualExecution: { nodeId: string; input: any; output: any; layer: string }[]
|
|
46
|
+
): DeviationReport {
|
|
47
|
+
const deviations: Deviation[] = [];
|
|
48
|
+
|
|
49
|
+
// 检查顺序偏差
|
|
50
|
+
const orderDeviations = this.checkOrderDeviation(plan, actualExecution);
|
|
51
|
+
deviations.push(...orderDeviations);
|
|
52
|
+
|
|
53
|
+
// 检查跳过的节点
|
|
54
|
+
const skippedNodes = this.checkSkippedNodes(plan, actualExecution);
|
|
55
|
+
deviations.push(...skippedNodes);
|
|
56
|
+
|
|
57
|
+
// 检查多余的节点
|
|
58
|
+
const extraNodes = this.checkExtraNodes(plan, actualExecution);
|
|
59
|
+
deviations.push(...extraNodes);
|
|
60
|
+
|
|
61
|
+
// 计算总分
|
|
62
|
+
const score = this.calculateScore(deviations);
|
|
63
|
+
|
|
64
|
+
// 决定建议
|
|
65
|
+
const recommendation = this.makeRecommendation(score, deviations);
|
|
66
|
+
|
|
67
|
+
return {
|
|
68
|
+
hasDeviation: deviations.length > 0,
|
|
69
|
+
score,
|
|
70
|
+
deviations,
|
|
71
|
+
recommendation
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* 检查顺序偏差
|
|
77
|
+
*/
|
|
78
|
+
private checkOrderDeviation(
|
|
79
|
+
plan: ExecutionTracePlan,
|
|
80
|
+
actual: { nodeId: string }[]
|
|
81
|
+
): Deviation[] {
|
|
82
|
+
const deviations: Deviation[] = [];
|
|
83
|
+
const expectedOrder = plan.expectedNodeOrder;
|
|
84
|
+
|
|
85
|
+
for (let i = 0; i < Math.min(expectedOrder.length, actual.length); i++) {
|
|
86
|
+
if (expectedOrder[i] !== actual[i].nodeId) {
|
|
87
|
+
deviations.push({
|
|
88
|
+
type: "ORDER_DEVIATION",
|
|
89
|
+
severity: "high",
|
|
90
|
+
description: `Position ${i}: expected ${expectedOrder[i]}, got ${actual[i].nodeId}`,
|
|
91
|
+
nodeId: actual[i].nodeId
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
return deviations;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* 检查跳过的节点
|
|
101
|
+
*/
|
|
102
|
+
private checkSkippedNodes(
|
|
103
|
+
plan: ExecutionTracePlan,
|
|
104
|
+
actual: { nodeId: string }[]
|
|
105
|
+
): Deviation[] {
|
|
106
|
+
const deviations: Deviation[] = [];
|
|
107
|
+
const actualIds = new Set(actual.map(a => a.nodeId));
|
|
108
|
+
|
|
109
|
+
for (const expected of plan.expectedNodeOrder) {
|
|
110
|
+
if (!actualIds.has(expected)) {
|
|
111
|
+
if (!plan.constraints.allowedDeviations.includes(expected)) {
|
|
112
|
+
deviations.push({
|
|
113
|
+
type: "SKIPPED_NODE",
|
|
114
|
+
severity: "critical",
|
|
115
|
+
description: `Required node ${expected} was skipped`,
|
|
116
|
+
nodeId: expected
|
|
117
|
+
});
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
return deviations;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* 检查多余的节点
|
|
127
|
+
*/
|
|
128
|
+
private checkExtraNodes(
|
|
129
|
+
plan: ExecutionTracePlan,
|
|
130
|
+
actual: { nodeId: string }[]
|
|
131
|
+
): Deviation[] {
|
|
132
|
+
const deviations: Deviation[] = [];
|
|
133
|
+
const expectedIds = new Set(plan.expectedNodeOrder);
|
|
134
|
+
|
|
135
|
+
for (const node of actual) {
|
|
136
|
+
if (!expectedIds.has(node.nodeId)) {
|
|
137
|
+
deviations.push({
|
|
138
|
+
type: "EXTRA_NODE",
|
|
139
|
+
severity: "medium",
|
|
140
|
+
description: `Unexpected node ${node.nodeId} executed`,
|
|
141
|
+
nodeId: node.nodeId
|
|
142
|
+
});
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
return deviations;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* 计算分数
|
|
151
|
+
*/
|
|
152
|
+
private calculateScore(deviations: Deviation[]): number {
|
|
153
|
+
if (deviations.length === 0) return 0;
|
|
154
|
+
|
|
155
|
+
let score = 0;
|
|
156
|
+
for (const dev of deviations) {
|
|
157
|
+
switch (dev.severity) {
|
|
158
|
+
case "critical": score += 1.0; break;
|
|
159
|
+
case "high": score += 0.7; break;
|
|
160
|
+
case "medium": score += 0.4; break;
|
|
161
|
+
case "low": score += 0.1; break;
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
return Math.min(1.0, score);
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
/**
|
|
169
|
+
* 做出建议
|
|
170
|
+
*/
|
|
171
|
+
private makeRecommendation(
|
|
172
|
+
score: number,
|
|
173
|
+
deviations: Deviation[]
|
|
174
|
+
): DeviationReport["recommendation"] {
|
|
175
|
+
const hasCritical = deviations.some(d => d.severity === "critical");
|
|
176
|
+
|
|
177
|
+
if (hasCritical) return "ABORT";
|
|
178
|
+
if (score > this.threshold) return "REPLAN";
|
|
179
|
+
if (score > 0) return "RETRY";
|
|
180
|
+
return "CONTINUE";
|
|
181
|
+
}
|
|
182
|
+
}
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Execution Trace Plan (ETP) — v5.2
|
|
3
|
+
*
|
|
4
|
+
* Trace is no longer output.
|
|
5
|
+
* Trace is the contract of execution.
|
|
6
|
+
*
|
|
7
|
+
* If execution deviates from trace → system MUST block, retry, or replan.
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
// Trace Node
|
|
11
|
+
export interface TraceNode {
|
|
12
|
+
id: string;
|
|
13
|
+
layer: string;
|
|
14
|
+
expectedInput: any;
|
|
15
|
+
expectedOutputSchema: any;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
// Trace Edge
|
|
19
|
+
export interface TraceEdge {
|
|
20
|
+
from: string;
|
|
21
|
+
to: string;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
// Validation Rule
|
|
25
|
+
export interface ValidationRule {
|
|
26
|
+
type: string;
|
|
27
|
+
condition: string;
|
|
28
|
+
action: "BLOCK" | "RETRY" | "REPLAN";
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
// Execution Trace Plan
|
|
32
|
+
export interface ExecutionTracePlan {
|
|
33
|
+
executionId: string;
|
|
34
|
+
intent: any;
|
|
35
|
+
causalGraph: {
|
|
36
|
+
nodes: TraceNode[];
|
|
37
|
+
edges: TraceEdge[];
|
|
38
|
+
};
|
|
39
|
+
executionStages: string[];
|
|
40
|
+
expectedNodeOrder: string[];
|
|
41
|
+
constraints: {
|
|
42
|
+
mustExecuteInOrder: boolean;
|
|
43
|
+
allowedDeviations: string[];
|
|
44
|
+
forbiddenSkips: string[];
|
|
45
|
+
};
|
|
46
|
+
validationRules: ValidationRule[];
|
|
47
|
+
failureRecoveryPolicy: {
|
|
48
|
+
retryAllowed: boolean;
|
|
49
|
+
maxRetries: number;
|
|
50
|
+
fallbackPlan: string;
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export class ExecutionTracePlanGenerator {
|
|
55
|
+
/**
|
|
56
|
+
* 生成追踪计划
|
|
57
|
+
*/
|
|
58
|
+
generate(intent: any, dag: any): ExecutionTracePlan {
|
|
59
|
+
const executionId = `etp-${Date.now()}`;
|
|
60
|
+
|
|
61
|
+
// 从 DAG 生成追踪节点
|
|
62
|
+
const nodes: TraceNode[] = (dag.nodes || []).map((nodeId: string) => ({
|
|
63
|
+
id: nodeId,
|
|
64
|
+
layer: this.inferLayer(nodeId),
|
|
65
|
+
expectedInput: {},
|
|
66
|
+
expectedOutputSchema: {}
|
|
67
|
+
}));
|
|
68
|
+
|
|
69
|
+
// 从 DAG 生成追踪边
|
|
70
|
+
const edges: TraceEdge[] = (dag.edges || []).map((edge: [string, string]) => ({
|
|
71
|
+
from: edge[0],
|
|
72
|
+
to: edge[1]
|
|
73
|
+
}));
|
|
74
|
+
|
|
75
|
+
return {
|
|
76
|
+
executionId,
|
|
77
|
+
intent,
|
|
78
|
+
causalGraph: { nodes, edges },
|
|
79
|
+
executionStages: ["intent", "product", "architecture", "planning", "runtime", "governance", "observation"],
|
|
80
|
+
expectedNodeOrder: nodes.map(n => n.id),
|
|
81
|
+
constraints: {
|
|
82
|
+
mustExecuteInOrder: true,
|
|
83
|
+
allowedDeviations: [],
|
|
84
|
+
forbiddenSkips: nodes.map(n => n.id)
|
|
85
|
+
},
|
|
86
|
+
validationRules: [
|
|
87
|
+
{ type: "ORDER", condition: "strict", action: "BLOCK" },
|
|
88
|
+
{ type: "INPUT", condition: "match", action: "RETRY" },
|
|
89
|
+
{ type: "OUTPUT", condition: "match", action: "REPLAN" }
|
|
90
|
+
],
|
|
91
|
+
failureRecoveryPolicy: {
|
|
92
|
+
retryAllowed: true,
|
|
93
|
+
maxRetries: 3,
|
|
94
|
+
fallbackPlan: "REPLAN"
|
|
95
|
+
}
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* 推断层
|
|
101
|
+
*/
|
|
102
|
+
private inferLayer(nodeId: string): string {
|
|
103
|
+
if (nodeId.includes("hermes") || nodeId.includes("planner")) return "Planning";
|
|
104
|
+
if (nodeId.includes("worker")) return "Runtime";
|
|
105
|
+
if (nodeId.includes("reviewer")) return "Governance";
|
|
106
|
+
return "Runtime";
|
|
107
|
+
}
|
|
108
|
+
}
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Trace Execution Gate — v5.2
|
|
3
|
+
*
|
|
4
|
+
* Every runtime step MUST pass through Execution Gate.
|
|
5
|
+
*
|
|
6
|
+
* Rules:
|
|
7
|
+
* 1. Step Validation - verify node exists in ETP, is next expected, input matches
|
|
8
|
+
* 2. Order Enforcement - block if deviates, trigger replan/recovery
|
|
9
|
+
* 3. Contract Enforcement - match input/output schema, layer attribution
|
|
10
|
+
*
|
|
11
|
+
* Trace defines reality.
|
|
12
|
+
* Runtime only obeys reality.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { ExecutionTracePlan, TraceNode } from "./ExecutionTracePlan";
|
|
16
|
+
|
|
17
|
+
// Gate Result
|
|
18
|
+
export interface GateResult {
|
|
19
|
+
allowed: boolean;
|
|
20
|
+
reason: string;
|
|
21
|
+
deviationType?: string;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
// Deviation Score
|
|
25
|
+
export interface DeviationScore {
|
|
26
|
+
score: number;
|
|
27
|
+
type: "ORDER_DEVIATION" | "INPUT_DEVIATION" | "OUTPUT_DEVIATION" | "LAYER_DEVIATION" | "SKIPPED_NODE" | "EXTRA_NODE";
|
|
28
|
+
details: string;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export class TraceExecutionGate {
|
|
32
|
+
private plan: ExecutionTracePlan;
|
|
33
|
+
private executedNodes: string[] = [];
|
|
34
|
+
private currentIndex: number = 0;
|
|
35
|
+
|
|
36
|
+
constructor(plan: ExecutionTracePlan) {
|
|
37
|
+
this.plan = plan;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* 验证节点是否可执行
|
|
42
|
+
*/
|
|
43
|
+
validateNode(nodeId: string, input: any): GateResult {
|
|
44
|
+
// Rule 1: Step Validation
|
|
45
|
+
const nodeExists = this.plan.causalGraph.nodes.find(n => n.id === nodeId);
|
|
46
|
+
if (!nodeExists) {
|
|
47
|
+
return {
|
|
48
|
+
allowed: false,
|
|
49
|
+
reason: `Node ${nodeId} not found in Execution Trace Plan`,
|
|
50
|
+
deviationType: "EXTRA_NODE"
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
// Rule 2: Order Enforcement
|
|
55
|
+
if (this.plan.constraints.mustExecuteInOrder) {
|
|
56
|
+
const expectedNode = this.plan.expectedNodeOrder[this.currentIndex];
|
|
57
|
+
if (nodeId !== expectedNode) {
|
|
58
|
+
return {
|
|
59
|
+
allowed: false,
|
|
60
|
+
reason: `Expected node ${expectedNode}, got ${nodeId}`,
|
|
61
|
+
deviationType: "ORDER_DEVIATION"
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
// Rule 3: Contract Enforcement (simplified)
|
|
67
|
+
// In real implementation, validate against expectedInput schema
|
|
68
|
+
|
|
69
|
+
return { allowed: true, reason: "Node validated" };
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* 记录节点执行
|
|
74
|
+
*/
|
|
75
|
+
recordExecution(nodeId: string): void {
|
|
76
|
+
this.executedNodes.push(nodeId);
|
|
77
|
+
this.currentIndex++;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* 计算偏差分数
|
|
82
|
+
*/
|
|
83
|
+
calculateDeviation(actualNodeId: string): DeviationScore {
|
|
84
|
+
const expectedNodeId = this.plan.expectedNodeOrder[this.currentIndex];
|
|
85
|
+
|
|
86
|
+
if (actualNodeId !== expectedNodeId) {
|
|
87
|
+
return {
|
|
88
|
+
score: 1.0,
|
|
89
|
+
type: "ORDER_DEVIATION",
|
|
90
|
+
details: `Expected ${expectedNodeId}, got ${actualNodeId}`
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
return {
|
|
95
|
+
score: 0,
|
|
96
|
+
type: "ORDER_DEVIATION",
|
|
97
|
+
details: "No deviation"
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* 验证追踪完整性
|
|
103
|
+
*/
|
|
104
|
+
verifyIntegrity(): { valid: boolean; issues: string[] } {
|
|
105
|
+
const issues: string[] = [];
|
|
106
|
+
|
|
107
|
+
// 检查缺失节点
|
|
108
|
+
for (const expected of this.plan.expectedNodeOrder) {
|
|
109
|
+
if (!this.executedNodes.includes(expected)) {
|
|
110
|
+
issues.push(`Missing node: ${expected}`);
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
// 检查多余节点
|
|
115
|
+
for (const executed of this.executedNodes) {
|
|
116
|
+
if (!this.plan.expectedNodeOrder.includes(executed)) {
|
|
117
|
+
issues.push(`Extra node: ${executed}`);
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
// 检查环
|
|
122
|
+
const visited = new Set<string>();
|
|
123
|
+
for (const edge of this.plan.causalGraph.edges) {
|
|
124
|
+
if (visited.has(edge.to)) {
|
|
125
|
+
issues.push(`Cycle detected at ${edge.to}`);
|
|
126
|
+
}
|
|
127
|
+
visited.add(edge.to);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
return {
|
|
131
|
+
valid: issues.length === 0,
|
|
132
|
+
issues
|
|
133
|
+
};
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
/**
|
|
137
|
+
* 获取状态
|
|
138
|
+
*/
|
|
139
|
+
getStatus(): {
|
|
140
|
+
totalNodes: number;
|
|
141
|
+
executedNodes: number;
|
|
142
|
+
remainingNodes: number;
|
|
143
|
+
progress: number;
|
|
144
|
+
} {
|
|
145
|
+
const total = this.plan.expectedNodeOrder.length;
|
|
146
|
+
const executed = this.executedNodes.length;
|
|
147
|
+
|
|
148
|
+
return {
|
|
149
|
+
totalNodes: total,
|
|
150
|
+
executedNodes: executed,
|
|
151
|
+
remainingNodes: total - executed,
|
|
152
|
+
progress: total > 0 ? executed / total : 0
|
|
153
|
+
};
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* 重置
|
|
158
|
+
*/
|
|
159
|
+
reset(): void {
|
|
160
|
+
this.executedNodes = [];
|
|
161
|
+
this.currentIndex = 0;
|
|
162
|
+
}
|
|
163
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Trace-Driven Execution Gate System — v5.2
|
|
3
|
+
*
|
|
4
|
+
* Trace is no longer output.
|
|
5
|
+
* Trace is the contract of execution.
|
|
6
|
+
*
|
|
7
|
+
* Trace defines reality.
|
|
8
|
+
* Runtime only obeys reality.
|
|
9
|
+
*
|
|
10
|
+
* If it is not in the trace, it must not happen.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
export { ExecutionTracePlan, ExecutionTracePlanGenerator, TraceNode, TraceEdge } from "./ExecutionTracePlan";
|
|
14
|
+
export { TraceExecutionGate, GateResult, DeviationScore } from "./TraceExecutionGate";
|
|
15
|
+
export { DeviationDetectionEngine, DeviationReport, Deviation } from "./DeviationDetectionEngine";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Execution Trace & Causal Engineering Layer — v5.1
|
|
3
|
+
*
|
|
4
|
+
* No execution without causality.
|
|
5
|
+
* No result without traceability.
|
|
6
|
+
* No layer without accountability.
|
|
7
|
+
*
|
|
8
|
+
* If it is not traceable, it did not happen.
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
export { ExecutionTraceModel, ExecutionTrace, LayerTrace, NodeExecutionTrace, FailureAnalysisTrace } from "./ExecutionTraceModel";
|
|
12
|
+
export { CausalEngine, CausalExplanation } from "./CausalEngine";
|
|
13
|
+
export { KnowledgeInfluenceTracker, KnowledgeInfluence } from "./KnowledgeInfluenceTracker";
|
|
@@ -0,0 +1,232 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Execution Proof System — v5.4
|
|
3
|
+
*
|
|
4
|
+
* System must evolve from Engineering Reality System to Verifiable Execution System.
|
|
5
|
+
*
|
|
6
|
+
* Core Principle:
|
|
7
|
+
* If it cannot be proven, it did not happen.
|
|
8
|
+
*
|
|
9
|
+
* Every execution must produce a Proof Artifact.
|
|
10
|
+
*
|
|
11
|
+
* Trace explains what happened.
|
|
12
|
+
* Flexibility explains why it deviated.
|
|
13
|
+
* Proof guarantees it is correct.
|
|
14
|
+
*
|
|
15
|
+
* Without proof, execution is not real.
|
|
16
|
+
*/
|
|
17
|
+
|
|
18
|
+
import * as crypto from "crypto";
|
|
19
|
+
|
|
20
|
+
// Violation Proof
|
|
21
|
+
export interface ViolationProof {
|
|
22
|
+
type: string;
|
|
23
|
+
layer: string;
|
|
24
|
+
expected: any;
|
|
25
|
+
actual: any;
|
|
26
|
+
rootCause: string;
|
|
27
|
+
irreversibility: boolean;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
// Node Proof
|
|
31
|
+
export interface NodeProof {
|
|
32
|
+
nodeId: string;
|
|
33
|
+
inputHash: string;
|
|
34
|
+
outputHash: string;
|
|
35
|
+
constraintValidation: boolean;
|
|
36
|
+
executionTime: number;
|
|
37
|
+
deviation: number;
|
|
38
|
+
deterministic: boolean;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
// Execution Proof
|
|
42
|
+
export interface ExecutionProof {
|
|
43
|
+
executionId: string;
|
|
44
|
+
|
|
45
|
+
traceHash: string;
|
|
46
|
+
planHash: string;
|
|
47
|
+
runtimeHash: string;
|
|
48
|
+
|
|
49
|
+
inputFingerprint: string;
|
|
50
|
+
|
|
51
|
+
constraintProof: {
|
|
52
|
+
hardConstraintsSatisfied: boolean;
|
|
53
|
+
softConstraintScore: number;
|
|
54
|
+
violations: ViolationProof[];
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
executionReplay: {
|
|
58
|
+
deterministicSeed: string;
|
|
59
|
+
replayable: boolean;
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
nodeProofs: NodeProof[];
|
|
63
|
+
|
|
64
|
+
deviationProof: {
|
|
65
|
+
totalDeviations: number;
|
|
66
|
+
approvedDeviations: number;
|
|
67
|
+
rejectedDeviations: number;
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
causalProof: {
|
|
71
|
+
layerAttribution: Record<string, string>;
|
|
72
|
+
causalityChain: string[];
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
finalVerdict: {
|
|
76
|
+
validExecution: boolean;
|
|
77
|
+
confidence: number;
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export class ExecutionProofSystem {
|
|
82
|
+
/**
|
|
83
|
+
* 生成执行证明
|
|
84
|
+
*/
|
|
85
|
+
generateProof(context: {
|
|
86
|
+
executionId: string;
|
|
87
|
+
input: any;
|
|
88
|
+
trace: any;
|
|
89
|
+
plan: any;
|
|
90
|
+
runtime: any;
|
|
91
|
+
nodeExecutions: any[];
|
|
92
|
+
deviations: any[];
|
|
93
|
+
violations: any[];
|
|
94
|
+
causalityChain: string[];
|
|
95
|
+
}): ExecutionProof {
|
|
96
|
+
// 计算哈希
|
|
97
|
+
const inputFingerprint = this.hash(JSON.stringify(context.input));
|
|
98
|
+
const traceHash = this.hash(JSON.stringify(context.trace));
|
|
99
|
+
const planHash = this.hash(JSON.stringify(context.plan));
|
|
100
|
+
const runtimeHash = this.hash(JSON.stringify(context.runtime));
|
|
101
|
+
|
|
102
|
+
// 生成节点证明
|
|
103
|
+
const nodeProofs: NodeProof[] = context.nodeExecutions.map(ne => ({
|
|
104
|
+
nodeId: ne.nodeId,
|
|
105
|
+
inputHash: this.hash(JSON.stringify(ne.input)),
|
|
106
|
+
outputHash: this.hash(JSON.stringify(ne.output)),
|
|
107
|
+
constraintValidation: ne.status === "completed",
|
|
108
|
+
executionTime: ne.duration,
|
|
109
|
+
deviation: ne.deviation || 0,
|
|
110
|
+
deterministic: true
|
|
111
|
+
}));
|
|
112
|
+
|
|
113
|
+
// 生成违规证明
|
|
114
|
+
const violationProofs: ViolationProof[] = context.violations.map(v => ({
|
|
115
|
+
type: v.type,
|
|
116
|
+
layer: v.layer,
|
|
117
|
+
expected: v.expected,
|
|
118
|
+
actual: v.actual,
|
|
119
|
+
rootCause: v.rootCause || "Unknown",
|
|
120
|
+
irreversibility: v.irreversibility || false
|
|
121
|
+
}));
|
|
122
|
+
|
|
123
|
+
// 计算约束证明
|
|
124
|
+
const hardSatisfied = violationProofs.filter(v => v.type === "HARD").length === 0;
|
|
125
|
+
const softScore = 1.0 - (violationProofs.filter(v => v.type === "SOFT").length * 0.1);
|
|
126
|
+
|
|
127
|
+
// 计算偏差证明
|
|
128
|
+
const totalDevs = context.deviations.length;
|
|
129
|
+
const approvedDevs = context.deviations.filter(d => d.approved).length;
|
|
130
|
+
|
|
131
|
+
// 计算最终判决
|
|
132
|
+
const validExecution = hardSatisfied && nodeProofs.every(n => n.deterministic);
|
|
133
|
+
const confidence = validExecution ? Math.min(1.0, softScore) : 0;
|
|
134
|
+
|
|
135
|
+
return {
|
|
136
|
+
executionId: context.executionId,
|
|
137
|
+
traceHash,
|
|
138
|
+
planHash,
|
|
139
|
+
runtimeHash,
|
|
140
|
+
inputFingerprint,
|
|
141
|
+
constraintProof: {
|
|
142
|
+
hardConstraintsSatisfied: hardSatisfied,
|
|
143
|
+
softConstraintScore: softScore,
|
|
144
|
+
violations: violationProofs
|
|
145
|
+
},
|
|
146
|
+
executionReplay: {
|
|
147
|
+
deterministicSeed: inputFingerprint,
|
|
148
|
+
replayable: validExecution
|
|
149
|
+
},
|
|
150
|
+
nodeProofs,
|
|
151
|
+
deviationProof: {
|
|
152
|
+
totalDeviations: totalDevs,
|
|
153
|
+
approvedDeviations: approvedDevs,
|
|
154
|
+
rejectedDeviations: totalDevs - approvedDevs
|
|
155
|
+
},
|
|
156
|
+
causalProof: {
|
|
157
|
+
layerAttribution: this.buildLayerAttribution(context.nodeExecutions),
|
|
158
|
+
causalityChain: context.causalityChain
|
|
159
|
+
},
|
|
160
|
+
finalVerdict: {
|
|
161
|
+
validExecution,
|
|
162
|
+
confidence
|
|
163
|
+
}
|
|
164
|
+
};
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
/**
|
|
168
|
+
* 验证证明
|
|
169
|
+
*/
|
|
170
|
+
verifyProof(proof: ExecutionProof): { valid: boolean; issues: string[] } {
|
|
171
|
+
const issues: string[] = [];
|
|
172
|
+
|
|
173
|
+
// 验证哈希
|
|
174
|
+
if (!proof.traceHash || !proof.planHash || !proof.runtimeHash) {
|
|
175
|
+
issues.push("Missing required hashes");
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
// 验证约束
|
|
179
|
+
if (!proof.constraintProof.hardConstraintsSatisfied) {
|
|
180
|
+
issues.push("HARD constraints not satisfied");
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
// 验证确定性
|
|
184
|
+
const nonDeterministic = proof.nodeProofs.filter(n => !n.deterministic);
|
|
185
|
+
if (nonDeterministic.length > 0) {
|
|
186
|
+
issues.push(`Non-deterministic nodes: ${nonDeterministic.map(n => n.nodeId).join(", ")}`);
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
// 验证可重放性
|
|
190
|
+
if (!proof.executionReplay.replayable) {
|
|
191
|
+
issues.push("Execution not replayable");
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
return {
|
|
195
|
+
valid: issues.length === 0,
|
|
196
|
+
issues
|
|
197
|
+
};
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
/**
|
|
201
|
+
* 计算信任度
|
|
202
|
+
*/
|
|
203
|
+
calculateTrust(proof: ExecutionProof): number {
|
|
204
|
+
const proofCompleteness = this.calculateProofCompleteness(proof);
|
|
205
|
+
const determinism = proof.nodeProofs.filter(n => n.deterministic).length / Math.max(1, proof.nodeProofs.length);
|
|
206
|
+
const constraintSatisfaction = proof.constraintProof.hardConstraintsSatisfied ? 1.0 : 0;
|
|
207
|
+
|
|
208
|
+
return (proofCompleteness * 0.4) + (determinism * 0.3) + (constraintSatisfaction * 0.3);
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
private hash(content: string): string {
|
|
212
|
+
return crypto.createHash("sha256").update(content).digest("hex");
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
private buildLayerAttribution(nodeExecutions: any[]): Record<string, string> {
|
|
216
|
+
const attribution: Record<string, string> = {};
|
|
217
|
+
for (const ne of nodeExecutions) {
|
|
218
|
+
attribution[ne.nodeId] = ne.layer || "Runtime";
|
|
219
|
+
}
|
|
220
|
+
return attribution;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
private calculateProofCompleteness(proof: ExecutionProof): number {
|
|
224
|
+
let score = 0;
|
|
225
|
+
if (proof.traceHash) score += 0.2;
|
|
226
|
+
if (proof.planHash) score += 0.2;
|
|
227
|
+
if (proof.runtimeHash) score += 0.2;
|
|
228
|
+
if (proof.nodeProofs.length > 0) score += 0.2;
|
|
229
|
+
if (proof.causalProof.causalityChain.length > 0) score += 0.2;
|
|
230
|
+
return score;
|
|
231
|
+
}
|
|
232
|
+
}
|