cognitive-core 0.2.5 → 0.3.1
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/LICENSE +21 -0
- package/README.md +88 -143
- package/dist/agents/mock-provider.d.ts.map +1 -1
- package/dist/agents/mock-provider.js.map +1 -1
- package/dist/agents/types.d.ts.map +1 -1
- package/dist/agents/types.js +5 -4
- package/dist/agents/types.js.map +1 -1
- package/dist/atlas.d.ts +309 -97
- package/dist/atlas.d.ts.map +1 -1
- package/dist/atlas.js +743 -277
- package/dist/atlas.js.map +1 -1
- package/dist/bin/cli-utils.d.ts +25 -2
- package/dist/bin/cli-utils.d.ts.map +1 -1
- package/dist/bin/cli-utils.js +79 -9
- package/dist/bin/cli-utils.js.map +1 -1
- package/dist/bin/cognitive-core.js +32 -0
- package/dist/bin/cognitive-core.js.map +1 -1
- package/dist/bin/commands/dream.d.ts +17 -0
- package/dist/bin/commands/dream.d.ts.map +1 -0
- package/dist/bin/commands/dream.js +168 -0
- package/dist/bin/commands/dream.js.map +1 -0
- package/dist/bin/commands/eval.d.ts +181 -0
- package/dist/bin/commands/eval.d.ts.map +1 -0
- package/dist/bin/commands/eval.js +1582 -0
- package/dist/bin/commands/eval.js.map +1 -0
- package/dist/bin/commands/kb.js +0 -8
- package/dist/bin/commands/kb.js.map +1 -1
- package/dist/bin/commands/learn.js +12 -4
- package/dist/bin/commands/learn.js.map +1 -1
- package/dist/bin/commands/legacy.d.ts.map +1 -1
- package/dist/bin/commands/legacy.js +1 -1
- package/dist/bin/commands/legacy.js.map +1 -1
- package/dist/bin/commands/run.d.ts.map +1 -1
- package/dist/bin/commands/run.js +10 -9
- package/dist/bin/commands/run.js.map +1 -1
- package/dist/bin/commands/sessions.d.ts.map +1 -1
- package/dist/bin/commands/sessions.js.map +1 -1
- package/dist/bin/commands/skills.d.ts.map +1 -1
- package/dist/bin/commands/skills.js +283 -1
- package/dist/bin/commands/skills.js.map +1 -1
- package/dist/embeddings/bm25.d.ts.map +1 -1
- package/dist/embeddings/bm25.js +1 -2
- package/dist/embeddings/bm25.js.map +1 -1
- package/dist/embeddings/index.d.ts +3 -3
- package/dist/embeddings/index.d.ts.map +1 -1
- package/dist/embeddings/index.js +3 -3
- package/dist/embeddings/index.js.map +1 -1
- package/dist/embeddings/inverted-index.js +62 -7
- package/dist/embeddings/inverted-index.js.map +1 -1
- package/dist/embeddings/manager.d.ts.map +1 -1
- package/dist/embeddings/manager.js +6 -5
- package/dist/embeddings/manager.js.map +1 -1
- package/dist/embeddings/provider.d.ts +96 -5
- package/dist/embeddings/provider.d.ts.map +1 -1
- package/dist/embeddings/provider.js +171 -48
- package/dist/embeddings/provider.js.map +1 -1
- package/dist/embeddings/vector-store.d.ts.map +1 -1
- package/dist/embeddings/vector-store.js +3 -1
- package/dist/embeddings/vector-store.js.map +1 -1
- package/dist/eval/ablation-validate.d.ts +12 -0
- package/dist/eval/ablation-validate.d.ts.map +1 -0
- package/dist/eval/ablation-validate.js +78 -0
- package/dist/eval/ablation-validate.js.map +1 -0
- package/dist/eval/ablation.d.ts +94 -0
- package/dist/eval/ablation.d.ts.map +1 -0
- package/dist/eval/ablation.js +161 -0
- package/dist/eval/ablation.js.map +1 -0
- package/dist/eval/ci-smoke.d.ts +11 -0
- package/dist/eval/ci-smoke.d.ts.map +1 -0
- package/dist/eval/ci-smoke.js +49 -0
- package/dist/eval/ci-smoke.js.map +1 -0
- package/dist/eval/diagnostics.d.ts +214 -0
- package/dist/eval/diagnostics.d.ts.map +1 -0
- package/dist/eval/diagnostics.js +107 -0
- package/dist/eval/diagnostics.js.map +1 -0
- package/dist/eval/index.d.ts +27 -0
- package/dist/eval/index.d.ts.map +1 -0
- package/dist/eval/index.js +27 -0
- package/dist/eval/index.js.map +1 -0
- package/dist/eval/live/alfworld.d.ts +248 -0
- package/dist/eval/live/alfworld.d.ts.map +1 -0
- package/dist/eval/live/alfworld.js +637 -0
- package/dist/eval/live/alfworld.js.map +1 -0
- package/dist/eval/live/alfworld_h1.d.ts +16 -0
- package/dist/eval/live/alfworld_h1.d.ts.map +1 -0
- package/dist/eval/live/alfworld_h1.js +75 -0
- package/dist/eval/live/alfworld_h1.js.map +1 -0
- package/dist/eval/live/alfworld_memory.d.ts +38 -0
- package/dist/eval/live/alfworld_memory.d.ts.map +1 -0
- package/dist/eval/live/alfworld_memory.js +184 -0
- package/dist/eval/live/alfworld_memory.js.map +1 -0
- package/dist/eval/live/alfworld_strategy.d.ts +65 -0
- package/dist/eval/live/alfworld_strategy.d.ts.map +1 -0
- package/dist/eval/live/alfworld_strategy.js +89 -0
- package/dist/eval/live/alfworld_strategy.js.map +1 -0
- package/dist/eval/live/azure-openai-llm-provider.d.ts +41 -0
- package/dist/eval/live/azure-openai-llm-provider.d.ts.map +1 -0
- package/dist/eval/live/azure-openai-llm-provider.js +92 -0
- package/dist/eval/live/azure-openai-llm-provider.js.map +1 -0
- package/dist/eval/live/bridges/skillflow_e2b_bridge.d.ts +3 -0
- package/dist/eval/live/bridges/skillflow_e2b_bridge.d.ts.map +1 -0
- package/dist/eval/live/bridges/skillflow_e2b_bridge.js +12 -0
- package/dist/eval/live/bridges/skillflow_e2b_bridge.js.map +1 -0
- package/dist/eval/live/claude-cli-llm-provider.d.ts +53 -0
- package/dist/eval/live/claude-cli-llm-provider.d.ts.map +1 -0
- package/dist/eval/live/claude-cli-llm-provider.js +71 -0
- package/dist/eval/live/claude-cli-llm-provider.js.map +1 -0
- package/dist/eval/live/claude-cli.d.ts +96 -0
- package/dist/eval/live/claude-cli.d.ts.map +1 -0
- package/dist/eval/live/claude-cli.js +314 -0
- package/dist/eval/live/claude-cli.js.map +1 -0
- package/dist/eval/live/claude-delegate.d.ts +41 -0
- package/dist/eval/live/claude-delegate.d.ts.map +1 -0
- package/dist/eval/live/claude-delegate.js +59 -0
- package/dist/eval/live/claude-delegate.js.map +1 -0
- package/dist/eval/live/claude-workspace-backend.d.ts +24 -0
- package/dist/eval/live/claude-workspace-backend.d.ts.map +1 -0
- package/dist/eval/live/claude-workspace-backend.js +76 -0
- package/dist/eval/live/claude-workspace-backend.js.map +1 -0
- package/dist/eval/live/clbench.d.ts +64 -0
- package/dist/eval/live/clbench.d.ts.map +1 -0
- package/dist/eval/live/clbench.js +291 -0
- package/dist/eval/live/clbench.js.map +1 -0
- package/dist/eval/live/cold-reuse.d.ts +21 -0
- package/dist/eval/live/cold-reuse.d.ts.map +1 -0
- package/dist/eval/live/cold-reuse.js +102 -0
- package/dist/eval/live/cold-reuse.js.map +1 -0
- package/dist/eval/live/difficulty-registry.d.ts +68 -0
- package/dist/eval/live/difficulty-registry.d.ts.map +1 -0
- package/dist/eval/live/difficulty-registry.js +169 -0
- package/dist/eval/live/difficulty-registry.js.map +1 -0
- package/dist/eval/live/docker.d.ts +52 -0
- package/dist/eval/live/docker.d.ts.map +1 -0
- package/dist/eval/live/docker.js +164 -0
- package/dist/eval/live/docker.js.map +1 -0
- package/dist/eval/live/env-bridge.d.ts +68 -0
- package/dist/eval/live/env-bridge.d.ts.map +1 -0
- package/dist/eval/live/env-bridge.js +188 -0
- package/dist/eval/live/env-bridge.js.map +1 -0
- package/dist/eval/live/gsm8k.d.ts +44 -0
- package/dist/eval/live/gsm8k.d.ts.map +1 -0
- package/dist/eval/live/gsm8k.js +142 -0
- package/dist/eval/live/gsm8k.js.map +1 -0
- package/dist/eval/live/index.d.ts +38 -0
- package/dist/eval/live/index.d.ts.map +1 -0
- package/dist/eval/live/index.js +38 -0
- package/dist/eval/live/index.js.map +1 -0
- package/dist/eval/live/lifelongagent.d.ts +64 -0
- package/dist/eval/live/lifelongagent.d.ts.map +1 -0
- package/dist/eval/live/lifelongagent.js +216 -0
- package/dist/eval/live/lifelongagent.js.map +1 -0
- package/dist/eval/live/lift-registry.d.ts +128 -0
- package/dist/eval/live/lift-registry.d.ts.map +1 -0
- package/dist/eval/live/lift-registry.js +147 -0
- package/dist/eval/live/lift-registry.js.map +1 -0
- package/dist/eval/live/live-benchmark.d.ts +84 -0
- package/dist/eval/live/live-benchmark.d.ts.map +1 -0
- package/dist/eval/live/live-benchmark.js +2 -0
- package/dist/eval/live/live-benchmark.js.map +1 -0
- package/dist/eval/live/live-runner.d.ts +609 -0
- package/dist/eval/live/live-runner.d.ts.map +1 -0
- package/dist/eval/live/live-runner.js +1409 -0
- package/dist/eval/live/live-runner.js.map +1 -0
- package/dist/eval/live/refine.d.ts +88 -0
- package/dist/eval/live/refine.d.ts.map +1 -0
- package/dist/eval/live/refine.js +135 -0
- package/dist/eval/live/refine.js.map +1 -0
- package/dist/eval/live/registry-store.d.ts +109 -0
- package/dist/eval/live/registry-store.d.ts.map +1 -0
- package/dist/eval/live/registry-store.js +272 -0
- package/dist/eval/live/registry-store.js.map +1 -0
- package/dist/eval/live/run-checkpoint.d.ts +55 -0
- package/dist/eval/live/run-checkpoint.d.ts.map +1 -0
- package/dist/eval/live/run-checkpoint.js +86 -0
- package/dist/eval/live/run-checkpoint.js.map +1 -0
- package/dist/eval/live/run-resume.d.ts +22 -0
- package/dist/eval/live/run-resume.d.ts.map +1 -0
- package/dist/eval/live/run-resume.js +70 -0
- package/dist/eval/live/run-resume.js.map +1 -0
- package/dist/eval/live/skill-injector.d.ts +36 -0
- package/dist/eval/live/skill-injector.d.ts.map +1 -0
- package/dist/eval/live/skill-injector.js +81 -0
- package/dist/eval/live/skill-injector.js.map +1 -0
- package/dist/eval/live/skillflow-embedded-workbook-bundle.d.ts +3 -0
- package/dist/eval/live/skillflow-embedded-workbook-bundle.d.ts.map +1 -0
- package/dist/eval/live/skillflow-embedded-workbook-bundle.js +391 -0
- package/dist/eval/live/skillflow-embedded-workbook-bundle.js.map +1 -0
- package/dist/eval/live/skillflow.d.ts +154 -0
- package/dist/eval/live/skillflow.d.ts.map +1 -0
- package/dist/eval/live/skillflow.js +612 -0
- package/dist/eval/live/skillflow.js.map +1 -0
- package/dist/eval/live/skilllearnbench.d.ts +43 -0
- package/dist/eval/live/skilllearnbench.d.ts.map +1 -0
- package/dist/eval/live/skilllearnbench.js +154 -0
- package/dist/eval/live/skilllearnbench.js.map +1 -0
- package/dist/eval/live/skillopt_v1.d.ts +96 -0
- package/dist/eval/live/skillopt_v1.d.ts.map +1 -0
- package/dist/eval/live/skillopt_v1.js +0 -0
- package/dist/eval/live/skillopt_v1.js.map +1 -0
- package/dist/eval/live/skillopt_v1_causal.d.ts +26 -0
- package/dist/eval/live/skillopt_v1_causal.d.ts.map +1 -0
- package/dist/eval/live/skillopt_v1_causal.js +106 -0
- package/dist/eval/live/skillopt_v1_causal.js.map +1 -0
- package/dist/eval/live/skillopt_v1_memory.d.ts +53 -0
- package/dist/eval/live/skillopt_v1_memory.d.ts.map +1 -0
- package/dist/eval/live/skillopt_v1_memory.js +147 -0
- package/dist/eval/live/skillopt_v1_memory.js.map +1 -0
- package/dist/eval/live/skillopt_v1_rules.d.ts +39 -0
- package/dist/eval/live/skillopt_v1_rules.d.ts.map +1 -0
- package/dist/eval/live/skillopt_v1_rules.js +91 -0
- package/dist/eval/live/skillopt_v1_rules.js.map +1 -0
- package/dist/eval/live/skillsbench.d.ts +138 -0
- package/dist/eval/live/skillsbench.d.ts.map +1 -0
- package/dist/eval/live/skillsbench.js +626 -0
- package/dist/eval/live/skillsbench.js.map +1 -0
- package/dist/eval/live/stopping.d.ts +69 -0
- package/dist/eval/live/stopping.d.ts.map +1 -0
- package/dist/eval/live/stopping.js +213 -0
- package/dist/eval/live/stopping.js.map +1 -0
- package/dist/eval/live/trace.d.ts +20 -0
- package/dist/eval/live/trace.d.ts.map +1 -0
- package/dist/eval/live/trace.js +41 -0
- package/dist/eval/live/trace.js.map +1 -0
- package/dist/eval/mechanism-trace-adapter.d.ts +8 -0
- package/dist/eval/mechanism-trace-adapter.d.ts.map +1 -0
- package/dist/eval/mechanism-trace-adapter.js +118 -0
- package/dist/eval/mechanism-trace-adapter.js.map +1 -0
- package/dist/eval/memory-ab.d.ts +61 -0
- package/dist/eval/memory-ab.d.ts.map +1 -0
- package/dist/eval/memory-ab.js +161 -0
- package/dist/eval/memory-ab.js.map +1 -0
- package/dist/eval/memory-mock.d.ts +54 -0
- package/dist/eval/memory-mock.d.ts.map +1 -0
- package/dist/eval/memory-mock.js +129 -0
- package/dist/eval/memory-mock.js.map +1 -0
- package/dist/eval/memory-qa/index.d.ts +13 -0
- package/dist/eval/memory-qa/index.d.ts.map +1 -0
- package/dist/eval/memory-qa/index.js +13 -0
- package/dist/eval/memory-qa/index.js.map +1 -0
- package/dist/eval/memory-qa/iterative.d.ts +80 -0
- package/dist/eval/memory-qa/iterative.d.ts.map +1 -0
- package/dist/eval/memory-qa/iterative.js +107 -0
- package/dist/eval/memory-qa/iterative.js.map +1 -0
- package/dist/eval/memory-qa/loaders.d.ts +11 -0
- package/dist/eval/memory-qa/loaders.d.ts.map +1 -0
- package/dist/eval/memory-qa/loaders.js +21 -0
- package/dist/eval/memory-qa/loaders.js.map +1 -0
- package/dist/eval/memory-qa/metrics.d.ts +3 -0
- package/dist/eval/memory-qa/metrics.d.ts.map +1 -0
- package/dist/eval/memory-qa/metrics.js +2 -0
- package/dist/eval/memory-qa/metrics.js.map +1 -0
- package/dist/eval/memory-qa/qa.d.ts +186 -0
- package/dist/eval/memory-qa/qa.d.ts.map +1 -0
- package/dist/eval/memory-qa/qa.js +424 -0
- package/dist/eval/memory-qa/qa.js.map +1 -0
- package/dist/eval/memory-qa/retrieval.d.ts +33 -0
- package/dist/eval/memory-qa/retrieval.d.ts.map +1 -0
- package/dist/eval/memory-qa/retrieval.js +44 -0
- package/dist/eval/memory-qa/retrieval.js.map +1 -0
- package/dist/eval/memory-qa/serving.d.ts +60 -0
- package/dist/eval/memory-qa/serving.d.ts.map +1 -0
- package/dist/eval/memory-qa/serving.js +267 -0
- package/dist/eval/memory-qa/serving.js.map +1 -0
- package/dist/eval/memory-qa/types.d.ts +2 -0
- package/dist/eval/memory-qa/types.d.ts.map +1 -0
- package/dist/eval/memory-qa/types.js +2 -0
- package/dist/eval/memory-qa/types.js.map +1 -0
- package/dist/eval/metrics.d.ts +120 -0
- package/dist/eval/metrics.d.ts.map +1 -0
- package/dist/eval/metrics.js +361 -0
- package/dist/eval/metrics.js.map +1 -0
- package/dist/eval/oracle-smoke.d.ts +75 -0
- package/dist/eval/oracle-smoke.d.ts.map +1 -0
- package/dist/eval/oracle-smoke.js +143 -0
- package/dist/eval/oracle-smoke.js.map +1 -0
- package/dist/eval/playbook-calibration-report.d.ts +40 -0
- package/dist/eval/playbook-calibration-report.d.ts.map +1 -0
- package/dist/eval/playbook-calibration-report.js +246 -0
- package/dist/eval/playbook-calibration-report.js.map +1 -0
- package/dist/eval/playbook-candidate-decisions-report.d.ts +36 -0
- package/dist/eval/playbook-candidate-decisions-report.d.ts.map +1 -0
- package/dist/eval/playbook-candidate-decisions-report.js +201 -0
- package/dist/eval/playbook-candidate-decisions-report.js.map +1 -0
- package/dist/eval/playbook-usage-report.d.ts +7 -0
- package/dist/eval/playbook-usage-report.d.ts.map +1 -0
- package/dist/eval/playbook-usage-report.js +222 -0
- package/dist/eval/playbook-usage-report.js.map +1 -0
- package/dist/eval/report.d.ts +28 -0
- package/dist/eval/report.d.ts.map +1 -0
- package/dist/eval/report.js +567 -0
- package/dist/eval/report.js.map +1 -0
- package/dist/eval/retrieval/corpus.d.ts +41 -0
- package/dist/eval/retrieval/corpus.d.ts.map +1 -0
- package/dist/eval/retrieval/corpus.js +158 -0
- package/dist/eval/retrieval/corpus.js.map +1 -0
- package/dist/eval/retrieval/index.d.ts +12 -0
- package/dist/eval/retrieval/index.d.ts.map +1 -0
- package/dist/eval/retrieval/index.js +14 -0
- package/dist/eval/retrieval/index.js.map +1 -0
- package/dist/eval/retrieval/knowledge-corpus.d.ts +91 -0
- package/dist/eval/retrieval/knowledge-corpus.d.ts.map +1 -0
- package/dist/eval/retrieval/knowledge-corpus.js +268 -0
- package/dist/eval/retrieval/knowledge-corpus.js.map +1 -0
- package/dist/eval/retrieval/knowledge-quality.d.ts +91 -0
- package/dist/eval/retrieval/knowledge-quality.d.ts.map +1 -0
- package/dist/eval/retrieval/knowledge-quality.js +247 -0
- package/dist/eval/retrieval/knowledge-quality.js.map +1 -0
- package/dist/eval/retrieval/ladder.d.ts +69 -0
- package/dist/eval/retrieval/ladder.d.ts.map +1 -0
- package/dist/eval/retrieval/ladder.js +80 -0
- package/dist/eval/retrieval/ladder.js.map +1 -0
- package/dist/eval/retrieval/quality.d.ts +39 -0
- package/dist/eval/retrieval/quality.d.ts.map +1 -0
- package/dist/eval/retrieval/quality.js +75 -0
- package/dist/eval/retrieval/quality.js.map +1 -0
- package/dist/eval/rng.d.ts +25 -0
- package/dist/eval/rng.d.ts.map +1 -0
- package/dist/eval/rng.js +43 -0
- package/dist/eval/rng.js.map +1 -0
- package/dist/eval/runner.d.ts +65 -0
- package/dist/eval/runner.d.ts.map +1 -0
- package/dist/eval/runner.js +216 -0
- package/dist/eval/runner.js.map +1 -0
- package/dist/eval/skill-bundle.d.ts +18 -0
- package/dist/eval/skill-bundle.d.ts.map +1 -0
- package/dist/eval/skill-bundle.js +38 -0
- package/dist/eval/skill-bundle.js.map +1 -0
- package/dist/eval/swarmkit-report.d.ts +21 -0
- package/dist/eval/swarmkit-report.d.ts.map +1 -0
- package/dist/eval/swarmkit-report.js +93 -0
- package/dist/eval/swarmkit-report.js.map +1 -0
- package/dist/eval/task-stream.d.ts +22 -0
- package/dist/eval/task-stream.d.ts.map +1 -0
- package/dist/eval/task-stream.js +99 -0
- package/dist/eval/task-stream.js.map +1 -0
- package/dist/eval/types.d.ts +173 -0
- package/dist/eval/types.d.ts.map +1 -0
- package/dist/eval/types.js +11 -0
- package/dist/eval/types.js.map +1 -0
- package/dist/experimental/causal-store.d.ts +97 -0
- package/dist/experimental/causal-store.d.ts.map +1 -0
- package/dist/experimental/causal-store.js +213 -0
- package/dist/experimental/causal-store.js.map +1 -0
- package/dist/experimental/graph-layers/base.d.ts +29 -0
- package/dist/experimental/graph-layers/base.d.ts.map +1 -0
- package/dist/experimental/graph-layers/base.js +143 -0
- package/dist/experimental/graph-layers/base.js.map +1 -0
- package/dist/experimental/graph-layers/causal.d.ts +14 -0
- package/dist/experimental/graph-layers/causal.d.ts.map +1 -0
- package/dist/experimental/graph-layers/causal.js +14 -0
- package/dist/experimental/graph-layers/causal.js.map +1 -0
- package/dist/experimental/graph-layers/entity.d.ts +14 -0
- package/dist/experimental/graph-layers/entity.d.ts.map +1 -0
- package/dist/experimental/graph-layers/entity.js +14 -0
- package/dist/experimental/graph-layers/entity.js.map +1 -0
- package/dist/experimental/graph-layers/index.d.ts +6 -0
- package/dist/experimental/graph-layers/index.d.ts.map +1 -0
- package/dist/experimental/graph-layers/index.js +6 -0
- package/dist/experimental/graph-layers/index.js.map +1 -0
- package/dist/experimental/graph-layers/semantic.d.ts +14 -0
- package/dist/experimental/graph-layers/semantic.d.ts.map +1 -0
- package/dist/experimental/graph-layers/semantic.js +14 -0
- package/dist/experimental/graph-layers/semantic.js.map +1 -0
- package/dist/experimental/graph-layers/temporal.d.ts +14 -0
- package/dist/experimental/graph-layers/temporal.d.ts.map +1 -0
- package/dist/experimental/graph-layers/temporal.js +14 -0
- package/dist/experimental/graph-layers/temporal.js.map +1 -0
- package/dist/experimental/healing-orchestrator.d.ts +182 -0
- package/dist/experimental/healing-orchestrator.d.ts.map +1 -0
- package/dist/experimental/healing-orchestrator.js +250 -0
- package/dist/experimental/healing-orchestrator.js.map +1 -0
- package/dist/experimental/knowledge-graph-types.d.ts +148 -0
- package/dist/experimental/knowledge-graph-types.d.ts.map +1 -0
- package/dist/experimental/knowledge-graph-types.js +40 -0
- package/dist/experimental/knowledge-graph-types.js.map +1 -0
- package/dist/experimental/knowledge-graph.d.ts +41 -0
- package/dist/experimental/knowledge-graph.d.ts.map +1 -0
- package/dist/experimental/knowledge-graph.js +270 -0
- package/dist/experimental/knowledge-graph.js.map +1 -0
- package/dist/experimental/meta-reflection.d.ts +47 -0
- package/dist/experimental/meta-reflection.d.ts.map +1 -0
- package/dist/experimental/meta-reflection.js +143 -0
- package/dist/experimental/meta-reflection.js.map +1 -0
- package/dist/experimental/moe-gate.d.ts +134 -0
- package/dist/experimental/moe-gate.d.ts.map +1 -0
- package/dist/experimental/moe-gate.js +240 -0
- package/dist/experimental/moe-gate.js.map +1 -0
- package/dist/experimental/reasoning-bank.d.ts +130 -0
- package/dist/experimental/reasoning-bank.d.ts.map +1 -0
- package/dist/experimental/reasoning-bank.js +427 -0
- package/dist/experimental/reasoning-bank.js.map +1 -0
- package/dist/experimental/team/team-config.d.ts +127 -0
- package/dist/experimental/team/team-config.d.ts.map +1 -0
- package/dist/experimental/team/team-config.js +48 -0
- package/dist/experimental/team/team-config.js.map +1 -0
- package/dist/experimental/team/team-experience.d.ts +300 -0
- package/dist/experimental/team/team-experience.d.ts.map +1 -0
- package/dist/experimental/team/team-experience.js +355 -0
- package/dist/experimental/team/team-experience.js.map +1 -0
- package/dist/experimental/team/team-ingester.d.ts +152 -0
- package/dist/experimental/team/team-ingester.d.ts.map +1 -0
- package/dist/experimental/team/team-ingester.js +330 -0
- package/dist/experimental/team/team-ingester.js.map +1 -0
- package/dist/experimental/team/team-meta-learner.d.ts +51 -0
- package/dist/experimental/team/team-meta-learner.d.ts.map +1 -0
- package/dist/experimental/team/team-meta-learner.js +404 -0
- package/dist/experimental/team/team-meta-learner.js.map +1 -0
- package/dist/experimental/team/team-meta.d.ts +160 -0
- package/dist/experimental/team/team-meta.d.ts.map +1 -0
- package/dist/experimental/team/team-meta.js +42 -0
- package/dist/experimental/team/team-meta.js.map +1 -0
- package/dist/experimental/team/team-pipeline.d.ts +77 -0
- package/dist/experimental/team/team-pipeline.d.ts.map +1 -0
- package/dist/experimental/team/team-pipeline.js +262 -0
- package/dist/experimental/team/team-pipeline.js.map +1 -0
- package/dist/experimental/team/team-playbook-extraction.d.ts +45 -0
- package/dist/experimental/team/team-playbook-extraction.d.ts.map +1 -0
- package/dist/experimental/team/team-playbook-extraction.js +526 -0
- package/dist/experimental/team/team-playbook-extraction.js.map +1 -0
- package/dist/experimental/team/team-playbook.d.ts +276 -0
- package/dist/experimental/team/team-playbook.d.ts.map +1 -0
- package/dist/experimental/team/team-playbook.js +85 -0
- package/dist/experimental/team/team-playbook.js.map +1 -0
- package/dist/experimental/team/team-router.d.ts +98 -0
- package/dist/experimental/team/team-router.d.ts.map +1 -0
- package/dist/experimental/team/team-router.js +312 -0
- package/dist/experimental/team/team-router.js.map +1 -0
- package/dist/experimental/team/team-skill-library.d.ts +180 -0
- package/dist/experimental/team/team-skill-library.d.ts.map +1 -0
- package/dist/experimental/team/team-skill-library.js +385 -0
- package/dist/experimental/team/team-skill-library.js.map +1 -0
- package/dist/experimental/team/team-trajectory-analysis.d.ts +19 -0
- package/dist/experimental/team/team-trajectory-analysis.d.ts.map +1 -0
- package/dist/experimental/team/team-trajectory-analysis.js +442 -0
- package/dist/experimental/team/team-trajectory-analysis.js.map +1 -0
- package/dist/experimental/team/team-trajectory.d.ts +305 -0
- package/dist/experimental/team/team-trajectory.d.ts.map +1 -0
- package/dist/experimental/team/team-trajectory.js +315 -0
- package/dist/experimental/team/team-trajectory.js.map +1 -0
- package/dist/factory.d.ts +2 -3
- package/dist/factory.d.ts.map +1 -1
- package/dist/factory.js +12 -11
- package/dist/factory.js.map +1 -1
- package/dist/index.d.ts +9 -11
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +26 -32
- package/dist/index.js.map +1 -1
- package/dist/learning/analyzer.d.ts +26 -36
- package/dist/learning/analyzer.d.ts.map +1 -1
- package/dist/learning/analyzer.js +50 -11
- package/dist/learning/analyzer.js.map +1 -1
- package/dist/learning/compound-bootstrap/external-acquisition.d.ts +63 -0
- package/dist/learning/compound-bootstrap/external-acquisition.d.ts.map +1 -0
- package/dist/learning/compound-bootstrap/external-acquisition.js +255 -0
- package/dist/learning/compound-bootstrap/external-acquisition.js.map +1 -0
- package/dist/learning/compound-bootstrap/index.d.ts +3 -0
- package/dist/learning/compound-bootstrap/index.d.ts.map +1 -0
- package/dist/learning/compound-bootstrap/index.js +3 -0
- package/dist/learning/compound-bootstrap/index.js.map +1 -0
- package/dist/learning/compound-bootstrap/workspace-analyzer.d.ts +33 -0
- package/dist/learning/compound-bootstrap/workspace-analyzer.d.ts.map +1 -0
- package/dist/learning/compound-bootstrap/workspace-analyzer.js +379 -0
- package/dist/learning/compound-bootstrap/workspace-analyzer.js.map +1 -0
- package/dist/learning/consolidation-coordinator.d.ts +49 -0
- package/dist/learning/consolidation-coordinator.d.ts.map +1 -0
- package/dist/learning/consolidation-coordinator.js +75 -0
- package/dist/learning/consolidation-coordinator.js.map +1 -0
- package/dist/learning/convention-distiller.d.ts +84 -0
- package/dist/learning/convention-distiller.d.ts.map +1 -0
- package/dist/learning/convention-distiller.js +268 -0
- package/dist/learning/convention-distiller.js.map +1 -0
- package/dist/learning/distiller.d.ts +82 -0
- package/dist/learning/distiller.d.ts.map +1 -0
- package/dist/learning/distiller.js +353 -0
- package/dist/learning/distiller.js.map +1 -0
- package/dist/learning/effectiveness.d.ts +12 -2
- package/dist/learning/effectiveness.d.ts.map +1 -1
- package/dist/learning/effectiveness.js +18 -14
- package/dist/learning/effectiveness.js.map +1 -1
- package/dist/learning/escalation.d.ts +89 -0
- package/dist/learning/escalation.d.ts.map +1 -0
- package/dist/learning/escalation.js +168 -0
- package/dist/learning/escalation.js.map +1 -0
- package/dist/learning/external-exposure.d.ts +57 -0
- package/dist/learning/external-exposure.d.ts.map +1 -0
- package/dist/learning/external-exposure.js +95 -0
- package/dist/learning/external-exposure.js.map +1 -0
- package/dist/learning/gepa-proposer.d.ts +116 -0
- package/dist/learning/gepa-proposer.d.ts.map +1 -0
- package/dist/learning/gepa-proposer.js +258 -0
- package/dist/learning/gepa-proposer.js.map +1 -0
- package/dist/learning/index.d.ts +21 -8
- package/dist/learning/index.d.ts.map +1 -1
- package/dist/learning/index.js +28 -10
- package/dist/learning/index.js.map +1 -1
- package/dist/learning/instant-loop.d.ts +46 -16
- package/dist/learning/instant-loop.d.ts.map +1 -1
- package/dist/learning/instant-loop.js +114 -111
- package/dist/learning/instant-loop.js.map +1 -1
- package/dist/learning/knowledge-extractor.d.ts.map +1 -1
- package/dist/learning/knowledge-extractor.js +1 -2
- package/dist/learning/knowledge-extractor.js.map +1 -1
- package/dist/learning/llm-extractor.d.ts +88 -0
- package/dist/learning/llm-extractor.d.ts.map +1 -0
- package/dist/learning/llm-extractor.js +372 -0
- package/dist/learning/llm-extractor.js.map +1 -0
- package/dist/learning/loop-coordinator.d.ts +61 -0
- package/dist/learning/loop-coordinator.d.ts.map +1 -0
- package/dist/learning/loop-coordinator.js +96 -0
- package/dist/learning/loop-coordinator.js.map +1 -0
- package/dist/learning/maintenance-scheduler.d.ts +15 -4
- package/dist/learning/maintenance-scheduler.d.ts.map +1 -1
- package/dist/learning/maintenance-scheduler.js +19 -16
- package/dist/learning/maintenance-scheduler.js.map +1 -1
- package/dist/learning/mechanism-trace.d.ts +196 -0
- package/dist/learning/mechanism-trace.d.ts.map +1 -0
- package/dist/learning/mechanism-trace.js +81 -0
- package/dist/learning/mechanism-trace.js.map +1 -0
- package/dist/learning/merge-proposer.d.ts +102 -0
- package/dist/learning/merge-proposer.d.ts.map +1 -0
- package/dist/learning/merge-proposer.js +253 -0
- package/dist/learning/merge-proposer.js.map +1 -0
- package/dist/learning/meta-learner.d.ts +9 -7
- package/dist/learning/meta-learner.d.ts.map +1 -1
- package/dist/learning/meta-learner.js +16 -45
- package/dist/learning/meta-learner.js.map +1 -1
- package/dist/learning/mutation-gate.d.ts +218 -0
- package/dist/learning/mutation-gate.d.ts.map +1 -0
- package/dist/learning/mutation-gate.js +390 -0
- package/dist/learning/mutation-gate.js.map +1 -0
- package/dist/learning/oracle-signal.d.ts +67 -0
- package/dist/learning/oracle-signal.d.ts.map +1 -0
- package/dist/learning/oracle-signal.js +94 -0
- package/dist/learning/oracle-signal.js.map +1 -0
- package/dist/learning/pipeline.d.ts +116 -0
- package/dist/learning/pipeline.d.ts.map +1 -0
- package/dist/learning/pipeline.js +288 -0
- package/dist/learning/pipeline.js.map +1 -0
- package/dist/learning/playbook-extractor.d.ts +8 -0
- package/dist/learning/playbook-extractor.d.ts.map +1 -1
- package/dist/learning/playbook-extractor.js +119 -34
- package/dist/learning/playbook-extractor.js.map +1 -1
- package/dist/learning/playbook-optimizer.d.ts +37 -0
- package/dist/learning/playbook-optimizer.d.ts.map +1 -0
- package/dist/learning/playbook-optimizer.js +125 -0
- package/dist/learning/playbook-optimizer.js.map +1 -0
- package/dist/learning/reflective-proposer.d.ts +173 -0
- package/dist/learning/reflective-proposer.d.ts.map +1 -0
- package/dist/learning/reflective-proposer.js +354 -0
- package/dist/learning/reflective-proposer.js.map +1 -0
- package/dist/learning/reflexion-generator.d.ts.map +1 -1
- package/dist/learning/reflexion-generator.js +4 -3
- package/dist/learning/reflexion-generator.js.map +1 -1
- package/dist/learning/replay-executor.d.ts +64 -0
- package/dist/learning/replay-executor.d.ts.map +1 -0
- package/dist/learning/replay-executor.js +92 -0
- package/dist/learning/replay-executor.js.map +1 -0
- package/dist/learning/replay-types.d.ts +150 -0
- package/dist/learning/replay-types.d.ts.map +1 -0
- package/dist/learning/replay-types.js +207 -0
- package/dist/learning/replay-types.js.map +1 -0
- package/dist/learning/replay.d.ts +166 -0
- package/dist/learning/replay.d.ts.map +1 -0
- package/dist/learning/replay.js +228 -0
- package/dist/learning/replay.js.map +1 -0
- package/dist/learning/seed-report.d.ts +88 -0
- package/dist/learning/seed-report.d.ts.map +1 -0
- package/dist/learning/seed-report.js +120 -0
- package/dist/learning/seed-report.js.map +1 -0
- package/dist/learning/trajectory-sources/dataclaw.d.ts.map +1 -1
- package/dist/learning/trajectory-sources/dataclaw.js +6 -18
- package/dist/learning/trajectory-sources/dataclaw.js.map +1 -1
- package/dist/learning/trajectory-sources/entire.d.ts.map +1 -1
- package/dist/learning/trajectory-sources/entire.js +30 -9
- package/dist/learning/trajectory-sources/entire.js.map +1 -1
- package/dist/learning/trajectory-sources/file.d.ts.map +1 -1
- package/dist/learning/trajectory-sources/file.js.map +1 -1
- package/dist/learning/trajectory-sources/huggingface.d.ts.map +1 -1
- package/dist/learning/trajectory-sources/huggingface.js +7 -7
- package/dist/learning/trajectory-sources/huggingface.js.map +1 -1
- package/dist/learning/trajectory-sources/in-memory.d.ts.map +1 -1
- package/dist/learning/trajectory-sources/in-memory.js.map +1 -1
- package/dist/learning/trajectory-sources/index.d.ts +3 -4
- package/dist/learning/trajectory-sources/index.d.ts.map +1 -1
- package/dist/learning/trajectory-sources/index.js +3 -4
- package/dist/learning/trajectory-sources/index.js.map +1 -1
- package/dist/learning/trajectory-sources/pipeline.d.ts +4 -3
- package/dist/learning/trajectory-sources/pipeline.d.ts.map +1 -1
- package/dist/learning/trajectory-sources/pipeline.js +4 -3
- package/dist/learning/trajectory-sources/pipeline.js.map +1 -1
- package/dist/learning/unified-pipeline.d.ts +486 -61
- package/dist/learning/unified-pipeline.d.ts.map +1 -1
- package/dist/learning/unified-pipeline.js +1501 -232
- package/dist/learning/unified-pipeline.js.map +1 -1
- package/dist/learning/usage-inference.d.ts.map +1 -1
- package/dist/learning/usage-inference.js +4 -9
- package/dist/learning/usage-inference.js.map +1 -1
- package/dist/learning/workspace-snapshot.d.ts +146 -0
- package/dist/learning/workspace-snapshot.d.ts.map +1 -0
- package/dist/learning/workspace-snapshot.js +269 -0
- package/dist/learning/workspace-snapshot.js.map +1 -0
- package/dist/mcp/playbook-server.d.ts +61 -2
- package/dist/mcp/playbook-server.d.ts.map +1 -1
- package/dist/mcp/playbook-server.js +179 -9
- package/dist/mcp/playbook-server.js.map +1 -1
- package/dist/memory/coherence.d.ts.map +1 -1
- package/dist/memory/coherence.js +5 -7
- package/dist/memory/coherence.js.map +1 -1
- package/dist/memory/curated-loader.d.ts +24 -0
- package/dist/memory/curated-loader.d.ts.map +1 -1
- package/dist/memory/curated-loader.js +22 -5
- package/dist/memory/curated-loader.js.map +1 -1
- package/dist/memory/evolution/llm-evolver.d.ts +36 -0
- package/dist/memory/evolution/llm-evolver.d.ts.map +1 -0
- package/dist/memory/evolution/llm-evolver.js +106 -0
- package/dist/memory/evolution/llm-evolver.js.map +1 -0
- package/dist/memory/experience.d.ts +34 -13
- package/dist/memory/experience.d.ts.map +1 -1
- package/dist/memory/experience.js +59 -48
- package/dist/memory/experience.js.map +1 -1
- package/dist/memory/extraction/conversation-extractor.d.ts +62 -0
- package/dist/memory/extraction/conversation-extractor.d.ts.map +1 -0
- package/dist/memory/extraction/conversation-extractor.js +169 -0
- package/dist/memory/extraction/conversation-extractor.js.map +1 -0
- package/dist/memory/filesystem-cascade.d.ts +116 -0
- package/dist/memory/filesystem-cascade.d.ts.map +1 -0
- package/dist/memory/filesystem-cascade.js +221 -0
- package/dist/memory/filesystem-cascade.js.map +1 -0
- package/dist/memory/index.d.ts +14 -10
- package/dist/memory/index.d.ts.map +1 -1
- package/dist/memory/index.js +15 -12
- package/dist/memory/index.js.map +1 -1
- package/dist/memory/knowledge-bank.d.ts +145 -29
- package/dist/memory/knowledge-bank.d.ts.map +1 -1
- package/dist/memory/knowledge-bank.js +511 -200
- package/dist/memory/knowledge-bank.js.map +1 -1
- package/dist/memory/knowledge-defrag.d.ts +32 -9
- package/dist/memory/knowledge-defrag.d.ts.map +1 -1
- package/dist/memory/knowledge-defrag.js +57 -49
- package/dist/memory/knowledge-defrag.js.map +1 -1
- package/dist/memory/meta-playbook-bank.d.ts +24 -0
- package/dist/memory/meta-playbook-bank.d.ts.map +1 -0
- package/dist/memory/meta-playbook-bank.js +135 -0
- package/dist/memory/meta-playbook-bank.js.map +1 -0
- package/dist/memory/meta.d.ts.map +1 -1
- package/dist/memory/meta.js +33 -14
- package/dist/memory/meta.js.map +1 -1
- package/dist/memory/playbook-applicability.d.ts +43 -0
- package/dist/memory/playbook-applicability.d.ts.map +1 -0
- package/dist/memory/playbook-applicability.js +155 -0
- package/dist/memory/playbook-applicability.js.map +1 -0
- package/dist/memory/playbook-incorporation.d.ts +24 -0
- package/dist/memory/playbook-incorporation.d.ts.map +1 -0
- package/dist/memory/playbook-incorporation.js +41 -0
- package/dist/memory/playbook-incorporation.js.map +1 -0
- package/dist/memory/playbook.d.ts +444 -7
- package/dist/memory/playbook.d.ts.map +1 -1
- package/dist/memory/playbook.js +1231 -50
- package/dist/memory/playbook.js.map +1 -1
- package/dist/memory/procedural-skill.d.ts +142 -0
- package/dist/memory/procedural-skill.d.ts.map +1 -0
- package/dist/memory/procedural-skill.js +846 -0
- package/dist/memory/procedural-skill.js.map +1 -0
- package/dist/memory/search-provider.d.ts +8 -3
- package/dist/memory/search-provider.d.ts.map +1 -1
- package/dist/memory/search-providers/embedding.d.ts +64 -0
- package/dist/memory/search-providers/embedding.d.ts.map +1 -0
- package/dist/memory/search-providers/embedding.js +96 -0
- package/dist/memory/search-providers/embedding.js.map +1 -0
- package/dist/memory/search-providers/hybrid.d.ts +74 -0
- package/dist/memory/search-providers/hybrid.d.ts.map +1 -0
- package/dist/memory/search-providers/hybrid.js +94 -0
- package/dist/memory/search-providers/hybrid.js.map +1 -0
- package/dist/memory/search-providers/index.d.ts +3 -0
- package/dist/memory/search-providers/index.d.ts.map +1 -1
- package/dist/memory/search-providers/index.js +3 -0
- package/dist/memory/search-providers/index.js.map +1 -1
- package/dist/memory/search-providers/keyword-expanding.d.ts +22 -0
- package/dist/memory/search-providers/keyword-expanding.d.ts.map +1 -0
- package/dist/memory/search-providers/keyword-expanding.js +35 -0
- package/dist/memory/search-providers/keyword-expanding.js.map +1 -0
- package/dist/memory/search-providers/minimem.d.ts +16 -4
- package/dist/memory/search-providers/minimem.d.ts.map +1 -1
- package/dist/memory/search-providers/minimem.js +14 -3
- package/dist/memory/search-providers/minimem.js.map +1 -1
- package/dist/memory/search-providers/text-similarity.d.ts +2 -4
- package/dist/memory/search-providers/text-similarity.d.ts.map +1 -1
- package/dist/memory/search-providers/text-similarity.js.map +1 -1
- package/dist/memory/seeds/meta-playbook-seeds.d.ts +27 -0
- package/dist/memory/seeds/meta-playbook-seeds.d.ts.map +1 -0
- package/dist/memory/seeds/meta-playbook-seeds.js +560 -0
- package/dist/memory/seeds/meta-playbook-seeds.js.map +1 -0
- package/dist/memory/seeds/meta-strategy-seeds.d.ts +23 -0
- package/dist/memory/seeds/meta-strategy-seeds.d.ts.map +1 -0
- package/dist/memory/seeds/meta-strategy-seeds.js +82 -0
- package/dist/memory/seeds/meta-strategy-seeds.js.map +1 -0
- package/dist/memory/seeds/seed-loader.d.ts +34 -0
- package/dist/memory/seeds/seed-loader.d.ts.map +1 -0
- package/dist/memory/seeds/seed-loader.js +60 -0
- package/dist/memory/seeds/seed-loader.js.map +1 -0
- package/dist/memory/skill-exporter.d.ts.map +1 -1
- package/dist/memory/skill-exporter.js +1 -2
- package/dist/memory/skill-exporter.js.map +1 -1
- package/dist/memory/source-resolver.d.ts.map +1 -1
- package/dist/memory/source-resolver.js +7 -8
- package/dist/memory/source-resolver.js.map +1 -1
- package/dist/memory/system.d.ts +119 -14
- package/dist/memory/system.d.ts.map +1 -1
- package/dist/memory/system.js +416 -60
- package/dist/memory/system.js.map +1 -1
- package/dist/memory/temporal-compressor.d.ts +1 -1
- package/dist/memory/temporal-compressor.d.ts.map +1 -1
- package/dist/memory/temporal-compressor.js +26 -16
- package/dist/memory/temporal-compressor.js.map +1 -1
- package/dist/persistence/index.d.ts +2 -2
- package/dist/persistence/index.d.ts.map +1 -1
- package/dist/persistence/index.js +1 -1
- package/dist/persistence/index.js.map +1 -1
- package/dist/persistence/migrator.d.ts +34 -1
- package/dist/persistence/migrator.d.ts.map +1 -1
- package/dist/persistence/migrator.js +163 -33
- package/dist/persistence/migrator.js.map +1 -1
- package/dist/persistence/sqlite-persistence.d.ts +412 -1
- package/dist/persistence/sqlite-persistence.d.ts.map +1 -1
- package/dist/persistence/sqlite-persistence.js +1038 -47
- package/dist/persistence/sqlite-persistence.js.map +1 -1
- package/dist/runtime/backends/acp-protocol.d.ts.map +1 -1
- package/dist/runtime/backends/acp-protocol.js +2 -1
- package/dist/runtime/backends/acp-protocol.js.map +1 -1
- package/dist/runtime/backends/acp.d.ts.map +1 -1
- package/dist/runtime/backends/acp.js +5 -4
- package/dist/runtime/backends/acp.js.map +1 -1
- package/dist/runtime/backends/index.d.ts +2 -2
- package/dist/runtime/backends/index.d.ts.map +1 -1
- package/dist/runtime/backends/index.js +2 -2
- package/dist/runtime/backends/index.js.map +1 -1
- package/dist/runtime/backends/macro-agent.d.ts +17 -1
- package/dist/runtime/backends/macro-agent.d.ts.map +1 -1
- package/dist/runtime/backends/macro-agent.js +1 -1
- package/dist/runtime/backends/macro-agent.js.map +1 -1
- package/dist/runtime/backends/mock.d.ts.map +1 -1
- package/dist/runtime/backends/mock.js.map +1 -1
- package/dist/runtime/backends/subprocess.d.ts.map +1 -1
- package/dist/runtime/backends/subprocess.js +5 -4
- package/dist/runtime/backends/subprocess.js.map +1 -1
- package/dist/runtime/compute-provider.d.ts +2 -18
- package/dist/runtime/compute-provider.d.ts.map +1 -1
- package/dist/runtime/compute-provider.js +8 -8
- package/dist/runtime/compute-provider.js.map +1 -1
- package/dist/runtime/flows/learning.d.ts +2 -1
- package/dist/runtime/flows/learning.d.ts.map +1 -1
- package/dist/runtime/flows/learning.js +4 -5
- package/dist/runtime/flows/learning.js.map +1 -1
- package/dist/runtime/flows/validation.d.ts.map +1 -1
- package/dist/runtime/flows/validation.js +2 -5
- package/dist/runtime/flows/validation.js.map +1 -1
- package/dist/runtime/index.d.ts +1 -1
- package/dist/runtime/index.d.ts.map +1 -1
- package/dist/runtime/index.js.map +1 -1
- package/dist/runtime/manager.d.ts +128 -0
- package/dist/runtime/manager.d.ts.map +1 -1
- package/dist/runtime/manager.js +375 -64
- package/dist/runtime/manager.js.map +1 -1
- package/dist/runtime/types.d.ts +92 -1
- package/dist/runtime/types.d.ts.map +1 -1
- package/dist/search/evaluator.d.ts +71 -0
- package/dist/search/evaluator.d.ts.map +1 -1
- package/dist/search/evaluator.js +40 -5
- package/dist/search/evaluator.js.map +1 -1
- package/dist/search/index.d.ts +3 -5
- package/dist/search/index.d.ts.map +1 -1
- package/dist/search/index.js +4 -7
- package/dist/search/index.js.map +1 -1
- package/dist/search/moe-gate.d.ts +48 -2
- package/dist/search/moe-gate.d.ts.map +1 -1
- package/dist/search/moe-gate.js +117 -4
- package/dist/search/moe-gate.js.map +1 -1
- package/dist/search/refinement-loop.d.ts +63 -3
- package/dist/search/refinement-loop.d.ts.map +1 -1
- package/dist/search/refinement-loop.js +278 -23
- package/dist/search/refinement-loop.js.map +1 -1
- package/dist/search/refinement-types.d.ts +4 -2
- package/dist/search/refinement-types.d.ts.map +1 -1
- package/dist/search/refinement-types.js +2 -11
- package/dist/search/refinement-types.js.map +1 -1
- package/dist/search/router.d.ts +41 -34
- package/dist/search/router.d.ts.map +1 -1
- package/dist/search/router.js +156 -90
- package/dist/search/router.js.map +1 -1
- package/dist/search/solver.js +1 -1
- package/dist/search/solver.js.map +1 -1
- package/dist/search/task-difficulty.d.ts +54 -0
- package/dist/search/task-difficulty.d.ts.map +1 -0
- package/dist/search/task-difficulty.js +116 -0
- package/dist/search/task-difficulty.js.map +1 -0
- package/dist/search/tau-bench-verifier.d.ts +74 -0
- package/dist/search/tau-bench-verifier.d.ts.map +1 -0
- package/dist/search/tau-bench-verifier.js +96 -0
- package/dist/search/tau-bench-verifier.js.map +1 -0
- package/dist/search/verification-runner.d.ts.map +1 -1
- package/dist/search/verification-runner.js +6 -5
- package/dist/search/verification-runner.js.map +1 -1
- package/dist/session-bank/git-reader.d.ts.map +1 -1
- package/dist/session-bank/git-reader.js +5 -19
- package/dist/session-bank/git-reader.js.map +1 -1
- package/dist/session-bank/parser.d.ts.map +1 -1
- package/dist/session-bank/parser.js +26 -0
- package/dist/session-bank/parser.js.map +1 -1
- package/dist/session-bank/session-bank.d.ts.map +1 -1
- package/dist/session-bank/session-bank.js +2 -5
- package/dist/session-bank/session-bank.js.map +1 -1
- package/dist/session-bank/types.d.ts +24 -0
- package/dist/session-bank/types.d.ts.map +1 -1
- package/dist/surfacing/index.d.ts +3 -3
- package/dist/surfacing/index.d.ts.map +1 -1
- package/dist/surfacing/index.js +2 -2
- package/dist/surfacing/index.js.map +1 -1
- package/dist/surfacing/shared-bank.d.ts +43 -0
- package/dist/surfacing/shared-bank.d.ts.map +1 -0
- package/dist/surfacing/shared-bank.js +104 -0
- package/dist/surfacing/shared-bank.js.map +1 -0
- package/dist/surfacing/skill-library.d.ts +98 -2
- package/dist/surfacing/skill-library.d.ts.map +1 -1
- package/dist/surfacing/skill-library.js +192 -17
- package/dist/surfacing/skill-library.js.map +1 -1
- package/dist/surfacing/skill-publisher.d.ts +6 -4
- package/dist/surfacing/skill-publisher.d.ts.map +1 -1
- package/dist/surfacing/skill-publisher.js +32 -30
- package/dist/surfacing/skill-publisher.js.map +1 -1
- package/dist/surfacing/sqlite-storage-adapter.d.ts.map +1 -1
- package/dist/surfacing/sqlite-storage-adapter.js +12 -8
- package/dist/surfacing/sqlite-storage-adapter.js.map +1 -1
- package/dist/types/analysis.d.ts +43 -0
- package/dist/types/analysis.d.ts.map +1 -0
- package/dist/types/analysis.js +10 -0
- package/dist/types/analysis.js.map +1 -0
- package/dist/types/config.d.ts +2178 -425
- package/dist/types/config.d.ts.map +1 -1
- package/dist/types/config.js +600 -88
- package/dist/types/config.js.map +1 -1
- package/dist/types/dataclaw.d.ts +3 -3
- package/dist/types/index.d.ts +4 -7
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +2 -10
- package/dist/types/index.js.map +1 -1
- package/dist/types/knowledge-graph.d.ts +1 -1
- package/dist/types/knowledge-graph.d.ts.map +1 -1
- package/dist/types/knowledge.d.ts +219 -11
- package/dist/types/knowledge.d.ts.map +1 -1
- package/dist/types/knowledge.js +90 -30
- package/dist/types/knowledge.js.map +1 -1
- package/dist/types/memory.d.ts +8 -0
- package/dist/types/memory.d.ts.map +1 -1
- package/dist/types/memory.js +12 -4
- package/dist/types/memory.js.map +1 -1
- package/dist/types/outcome.d.ts +11 -0
- package/dist/types/outcome.d.ts.map +1 -1
- package/dist/types/outcome.js +9 -0
- package/dist/types/outcome.js.map +1 -1
- package/dist/types/playbook.d.ts +63 -0
- package/dist/types/playbook.d.ts.map +1 -1
- package/dist/types/playbook.js +51 -0
- package/dist/types/playbook.js.map +1 -1
- package/dist/types/trajectory-source.d.ts +1 -1
- package/dist/types/trajectory-source.d.ts.map +1 -1
- package/dist/types/trajectory.d.ts +61 -0
- package/dist/types/trajectory.d.ts.map +1 -1
- package/dist/types/trajectory.js +25 -0
- package/dist/types/trajectory.js.map +1 -1
- package/dist/utils/clock.d.ts +36 -0
- package/dist/utils/clock.d.ts.map +1 -0
- package/dist/utils/clock.js +48 -0
- package/dist/utils/clock.js.map +1 -0
- package/dist/utils/frontmatter.d.ts.map +1 -1
- package/dist/utils/frontmatter.js +10 -2
- package/dist/utils/frontmatter.js.map +1 -1
- package/dist/utils/index.d.ts +4 -1
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +4 -1
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/logger.d.ts +31 -0
- package/dist/utils/logger.d.ts.map +1 -0
- package/dist/utils/logger.js +50 -0
- package/dist/utils/logger.js.map +1 -0
- package/dist/utils/objectives.d.ts +45 -0
- package/dist/utils/objectives.d.ts.map +1 -0
- package/dist/utils/objectives.js +74 -0
- package/dist/utils/objectives.js.map +1 -0
- package/dist/utils/partitioned-store.d.ts.map +1 -1
- package/dist/utils/partitioned-store.js.map +1 -1
- package/dist/utils/playbook-hash.d.ts +19 -0
- package/dist/utils/playbook-hash.d.ts.map +1 -0
- package/dist/utils/playbook-hash.js +51 -0
- package/dist/utils/playbook-hash.js.map +1 -0
- package/dist/utils/similarity.d.ts.map +1 -1
- package/dist/utils/similarity.js.map +1 -1
- package/dist/utils/solver-canonicalizer.d.ts +22 -0
- package/dist/utils/solver-canonicalizer.d.ts.map +1 -0
- package/dist/utils/solver-canonicalizer.js +41 -0
- package/dist/utils/solver-canonicalizer.js.map +1 -0
- package/dist/utils/storage.d.ts.map +1 -1
- package/dist/utils/storage.js +1 -3
- package/dist/utils/storage.js.map +1 -1
- package/dist/utils/task-signature.d.ts +34 -0
- package/dist/utils/task-signature.d.ts.map +1 -0
- package/dist/utils/task-signature.js +112 -0
- package/dist/utils/task-signature.js.map +1 -0
- package/dist/utils/trajectory-helpers.d.ts.map +1 -1
- package/dist/utils/trajectory-helpers.js.map +1 -1
- package/dist/utils/validation.d.ts.map +1 -1
- package/dist/utils/validation.js.map +1 -1
- package/dist/workspace/efficacy-toolkit.d.ts.map +1 -1
- package/dist/workspace/efficacy-toolkit.js +18 -26
- package/dist/workspace/efficacy-toolkit.js.map +1 -1
- package/dist/workspace/index.d.ts +4 -3
- package/dist/workspace/index.d.ts.map +1 -1
- package/dist/workspace/index.js +5 -3
- package/dist/workspace/index.js.map +1 -1
- package/dist/workspace/runner.d.ts.map +1 -1
- package/dist/workspace/runner.js +95 -21
- package/dist/workspace/runner.js.map +1 -1
- package/dist/workspace/skill-converter.d.ts +66 -1
- package/dist/workspace/skill-converter.d.ts.map +1 -1
- package/dist/workspace/skill-converter.js +238 -19
- package/dist/workspace/skill-converter.js.map +1 -1
- package/dist/workspace/skill-import.d.ts +43 -0
- package/dist/workspace/skill-import.d.ts.map +1 -0
- package/dist/workspace/skill-import.js +40 -0
- package/dist/workspace/skill-import.js.map +1 -0
- package/dist/workspace/templates/index.d.ts +6 -8
- package/dist/workspace/templates/index.d.ts.map +1 -1
- package/dist/workspace/templates/index.js +7 -11
- package/dist/workspace/templates/index.js.map +1 -1
- package/dist/workspace/templates/knowledge-defrag.d.ts.map +1 -1
- package/dist/workspace/templates/knowledge-defrag.js +0 -2
- package/dist/workspace/templates/knowledge-defrag.js.map +1 -1
- package/dist/workspace/templates/knowledge-extraction.d.ts +11 -0
- package/dist/workspace/templates/knowledge-extraction.d.ts.map +1 -1
- package/dist/workspace/templates/knowledge-extraction.js +11 -6
- package/dist/workspace/templates/knowledge-extraction.js.map +1 -1
- package/dist/workspace/templates/playbook-conditioning.d.ts +38 -0
- package/dist/workspace/templates/playbook-conditioning.d.ts.map +1 -0
- package/dist/workspace/templates/playbook-conditioning.js +147 -0
- package/dist/workspace/templates/playbook-conditioning.js.map +1 -0
- package/dist/workspace/templates/playbook-decay-detection.d.ts.map +1 -1
- package/dist/workspace/templates/playbook-decay-detection.js +24 -18
- package/dist/workspace/templates/playbook-decay-detection.js.map +1 -1
- package/dist/workspace/templates/playbook-efficacy-audit.d.ts.map +1 -1
- package/dist/workspace/templates/playbook-efficacy-audit.js +26 -11
- package/dist/workspace/templates/playbook-efficacy-audit.js.map +1 -1
- package/dist/workspace/templates/playbook-extraction.d.ts.map +1 -1
- package/dist/workspace/templates/playbook-extraction.js +75 -15
- package/dist/workspace/templates/playbook-extraction.js.map +1 -1
- package/dist/workspace/templates/playbook-lifecycle-review.d.ts.map +1 -1
- package/dist/workspace/templates/playbook-lifecycle-review.js +12 -8
- package/dist/workspace/templates/playbook-lifecycle-review.js.map +1 -1
- package/dist/workspace/templates/refinement-analysis.d.ts.map +1 -1
- package/dist/workspace/templates/refinement-analysis.js +11 -5
- package/dist/workspace/templates/refinement-analysis.js.map +1 -1
- package/dist/workspace/templates/skill-enrichment.d.ts.map +1 -1
- package/dist/workspace/templates/skill-enrichment.js +7 -11
- package/dist/workspace/templates/skill-enrichment.js.map +1 -1
- package/dist/workspace/templates/solution-evaluation.d.ts.map +1 -1
- package/dist/workspace/templates/solution-evaluation.js +15 -8
- package/dist/workspace/templates/solution-evaluation.js.map +1 -1
- package/dist/workspace/templates/trajectory-analysis.d.ts.map +1 -1
- package/dist/workspace/templates/trajectory-analysis.js +1 -3
- package/dist/workspace/templates/trajectory-analysis.js.map +1 -1
- package/dist/workspace/templates/usage-inference.d.ts.map +1 -1
- package/dist/workspace/templates/usage-inference.js +9 -7
- package/dist/workspace/templates/usage-inference.js.map +1 -1
- package/dist/workspace/types.d.ts +32 -2
- package/dist/workspace/types.d.ts.map +1 -1
- package/dist/workspace/types.js +29 -0
- package/dist/workspace/types.js.map +1 -1
- package/package.json +43 -19
- package/playbooks/agent-ops/long-task-checkpointing.json +54 -0
- package/playbooks/agent-ops/progressive-context-gathering.json +56 -0
- package/playbooks/agent-ops/safe-destructive-operations.json +59 -0
- package/playbooks/agent-ops/scope-discipline.json +56 -0
- package/playbooks/agent-ops/stall-detection-strategy-switch.json +55 -0
- package/playbooks/agent-ops/verification-before-completion.json +54 -0
- package/playbooks/alfworld/clean-and-place.json +35 -0
- package/playbooks/alfworld/cool-and-place.json +35 -0
- package/playbooks/alfworld/examine-in-light.json +32 -0
- package/playbooks/alfworld/heat-and-place.json +35 -0
- package/playbooks/alfworld/pick-and-place.json +37 -0
- package/playbooks/alfworld/pick-two-and-place.json +35 -0
- package/.claude/settings.json +0 -197
- package/.entire/settings.json +0 -4
- package/.sessionlog/settings.json +0 -4
- package/CLAUDE.md +0 -233
- package/SKILL.md +0 -193
- package/docs/DESIGN-agentic-workspace.md +0 -2057
- package/docs/DESIGN-semantic-memory-knowledge-bank.md +0 -1789
- package/docs/DESIGN-session-bank.md +0 -1134
- package/docs/DESIGN-team-extraction-pipeline.md +0 -1369
- package/docs/PROPOSAL-team-aware-learning.md +0 -1080
- package/docs/RESEARCH-semantic-memory-knowledge-structures.md +0 -517
- package/docs/RESEARCH-team-trajectory-learning.md +0 -553
- package/gaps.md +0 -204
- package/scripts/migrate-to-playbooks.ts +0 -307
- package/src/agents/index.ts +0 -14
- package/src/agents/mock-provider.ts +0 -93
- package/src/agents/types.ts +0 -137
- package/src/atlas.ts +0 -1198
- package/src/bin/cli-utils.ts +0 -220
- package/src/bin/cognitive-core.ts +0 -162
- package/src/bin/commands/kb.ts +0 -266
- package/src/bin/commands/learn.ts +0 -100
- package/src/bin/commands/legacy.ts +0 -182
- package/src/bin/commands/run.ts +0 -113
- package/src/bin/commands/sessions.ts +0 -221
- package/src/bin/commands/skills.ts +0 -146
- package/src/embeddings/bm25.ts +0 -337
- package/src/embeddings/index.ts +0 -42
- package/src/embeddings/inverted-index.ts +0 -134
- package/src/embeddings/manager.ts +0 -293
- package/src/embeddings/provider.ts +0 -318
- package/src/embeddings/vector-store.ts +0 -365
- package/src/factory.ts +0 -280
- package/src/index.ts +0 -495
- package/src/learning/analyzer.ts +0 -319
- package/src/learning/effectiveness.ts +0 -428
- package/src/learning/energy-evaluator.ts +0 -282
- package/src/learning/healing-orchestrator.ts +0 -383
- package/src/learning/index.ts +0 -150
- package/src/learning/instant-loop.ts +0 -357
- package/src/learning/knowledge-extractor.ts +0 -470
- package/src/learning/maintenance-scheduler.ts +0 -271
- package/src/learning/meta-learner.ts +0 -552
- package/src/learning/playbook-extractor.ts +0 -702
- package/src/learning/reflexion-generator.ts +0 -273
- package/src/learning/team-ingester.ts +0 -499
- package/src/learning/team-meta-learner.ts +0 -558
- package/src/learning/team-pipeline.ts +0 -364
- package/src/learning/trajectory-sources/dataclaw.ts +0 -403
- package/src/learning/trajectory-sources/entire.ts +0 -251
- package/src/learning/trajectory-sources/file.ts +0 -136
- package/src/learning/trajectory-sources/huggingface.ts +0 -248
- package/src/learning/trajectory-sources/in-memory.ts +0 -61
- package/src/learning/trajectory-sources/index.ts +0 -15
- package/src/learning/trajectory-sources/pipeline.ts +0 -69
- package/src/learning/unified-pipeline.ts +0 -1191
- package/src/learning/usage-inference.ts +0 -372
- package/src/mcp/index.ts +0 -12
- package/src/mcp/playbook-server.ts +0 -565
- package/src/memory/candidate-retrieval.ts +0 -72
- package/src/memory/causal-store.ts +0 -273
- package/src/memory/coherence.ts +0 -252
- package/src/memory/curated-loader.ts +0 -213
- package/src/memory/experience.ts +0 -682
- package/src/memory/graph-layers/base.ts +0 -184
- package/src/memory/graph-layers/causal.ts +0 -16
- package/src/memory/graph-layers/entity.ts +0 -16
- package/src/memory/graph-layers/index.ts +0 -5
- package/src/memory/graph-layers/semantic.ts +0 -16
- package/src/memory/graph-layers/temporal.ts +0 -16
- package/src/memory/index.ts +0 -131
- package/src/memory/knowledge-bank.ts +0 -1317
- package/src/memory/knowledge-defrag.ts +0 -329
- package/src/memory/knowledge-graph.ts +0 -361
- package/src/memory/meta.ts +0 -488
- package/src/memory/playbook.ts +0 -676
- package/src/memory/reasoning-bank.ts +0 -458
- package/src/memory/reflexion.ts +0 -122
- package/src/memory/search-provider.ts +0 -35
- package/src/memory/search-providers/index.ts +0 -3
- package/src/memory/search-providers/minimem.ts +0 -84
- package/src/memory/search-providers/text-similarity.ts +0 -35
- package/src/memory/skill-exporter.ts +0 -357
- package/src/memory/source-resolver.ts +0 -422
- package/src/memory/system.ts +0 -620
- package/src/memory/team-experience.ts +0 -604
- package/src/memory/temporal-compressor.ts +0 -409
- package/src/persistence/index.ts +0 -37
- package/src/persistence/migrator.ts +0 -298
- package/src/persistence/serializers.ts +0 -79
- package/src/persistence/sqlite-persistence.ts +0 -925
- package/src/runtime/backends/acp-protocol.ts +0 -231
- package/src/runtime/backends/acp.ts +0 -239
- package/src/runtime/backends/index.ts +0 -38
- package/src/runtime/backends/macro-agent.ts +0 -177
- package/src/runtime/backends/mock.ts +0 -218
- package/src/runtime/backends/subprocess.ts +0 -356
- package/src/runtime/compute-provider.ts +0 -206
- package/src/runtime/flows/learning.ts +0 -166
- package/src/runtime/flows/validation.ts +0 -381
- package/src/runtime/index.ts +0 -75
- package/src/runtime/manager.ts +0 -685
- package/src/runtime/types.ts +0 -198
- package/src/search/evaluator.ts +0 -499
- package/src/search/index.ts +0 -78
- package/src/search/moe-gate.ts +0 -304
- package/src/search/refinement-loop.ts +0 -457
- package/src/search/refinement-types.ts +0 -159
- package/src/search/router.ts +0 -368
- package/src/search/solver.ts +0 -303
- package/src/search/team-router.ts +0 -459
- package/src/search/verification-runner.ts +0 -570
- package/src/session-bank/git-reader.ts +0 -200
- package/src/session-bank/index.ts +0 -26
- package/src/session-bank/parser.ts +0 -548
- package/src/session-bank/session-bank.ts +0 -485
- package/src/session-bank/types.ts +0 -176
- package/src/surfacing/index.ts +0 -29
- package/src/surfacing/publisher.ts +0 -23
- package/src/surfacing/skill-library.ts +0 -625
- package/src/surfacing/skill-publisher.ts +0 -258
- package/src/surfacing/sqlite-storage-adapter.ts +0 -287
- package/src/surfacing/team-skill-library.ts +0 -610
- package/src/types/config.ts +0 -661
- package/src/types/dataclaw.ts +0 -99
- package/src/types/huggingface-transformers.d.ts +0 -12
- package/src/types/index.ts +0 -293
- package/src/types/knowledge-graph.ts +0 -246
- package/src/types/knowledge.ts +0 -388
- package/src/types/memory.ts +0 -300
- package/src/types/meta.ts +0 -218
- package/src/types/outcome.ts +0 -66
- package/src/types/playbook.ts +0 -215
- package/src/types/step.ts +0 -40
- package/src/types/task.ts +0 -52
- package/src/types/team-meta.ts +0 -212
- package/src/types/team-playbook.ts +0 -384
- package/src/types/team-trajectory.ts +0 -673
- package/src/types/trajectory-source.ts +0 -47
- package/src/types/trajectory.ts +0 -80
- package/src/utils/error-classifier.ts +0 -113
- package/src/utils/frontmatter.ts +0 -118
- package/src/utils/index.ts +0 -63
- package/src/utils/partitioned-store.ts +0 -299
- package/src/utils/similarity.ts +0 -139
- package/src/utils/storage.ts +0 -249
- package/src/utils/trajectory-helpers.ts +0 -79
- package/src/utils/validation.ts +0 -286
- package/src/workspace/efficacy-toolkit.ts +0 -496
- package/src/workspace/index.ts +0 -77
- package/src/workspace/runner.ts +0 -281
- package/src/workspace/skill-converter.ts +0 -288
- package/src/workspace/templates/index.ts +0 -95
- package/src/workspace/templates/knowledge-defrag.ts +0 -223
- package/src/workspace/templates/knowledge-extraction.ts +0 -337
- package/src/workspace/templates/meta-reflection.ts +0 -208
- package/src/workspace/templates/playbook-decay-detection.ts +0 -272
- package/src/workspace/templates/playbook-efficacy-audit.ts +0 -246
- package/src/workspace/templates/playbook-extraction.ts +0 -240
- package/src/workspace/templates/playbook-lifecycle-review.ts +0 -274
- package/src/workspace/templates/refinement-analysis.ts +0 -162
- package/src/workspace/templates/skill-enrichment.ts +0 -275
- package/src/workspace/templates/solution-evaluation.ts +0 -199
- package/src/workspace/templates/team-playbook-extraction.ts +0 -631
- package/src/workspace/templates/team-trajectory-analysis.ts +0 -564
- package/src/workspace/templates/trajectory-analysis.ts +0 -234
- package/src/workspace/templates/usage-inference.ts +0 -163
- package/src/workspace/types.ts +0 -185
- package/tests/atlas-knowledge.test.ts +0 -165
- package/tests/embeddings/bm25.test.ts +0 -130
- package/tests/embeddings/inverted-index.test.ts +0 -138
- package/tests/embeddings/manager.test.ts +0 -205
- package/tests/feature-toggles.test.ts +0 -275
- package/tests/fixtures/behavioral-trajectories.ts +0 -210
- package/tests/gap-fixes.test.ts +0 -1116
- package/tests/integration/atlas.test.ts +0 -266
- package/tests/integration/cli-e2e.test.ts +0 -621
- package/tests/integration/curated-sources-e2e.test.ts +0 -502
- package/tests/integration/dataclaw-e2e.test.ts +0 -559
- package/tests/integration/e2e.test.ts +0 -1337
- package/tests/integration/entire-e2e.test.ts +0 -376
- package/tests/integration/huggingface-e2e.test.ts +0 -627
- package/tests/integration/persistence-e2e.test.ts +0 -741
- package/tests/integration/phase-e2e.test.ts +0 -1143
- package/tests/integration/pipeline-data-correctness.test.ts +0 -794
- package/tests/integration/ranking-driven-loadout-e2e.test.ts +0 -185
- package/tests/integration/session-bank.test.ts +0 -231
- package/tests/integration/sessionlog-e2e.test.ts +0 -329
- package/tests/integration/skill-publishing-filesystem-e2e.test.ts +0 -216
- package/tests/integration/skill-tree-wiring.test.ts +0 -152
- package/tests/integration/unified-pipeline-e2e.test.ts +0 -634
- package/tests/learning/analyzer.test.ts +0 -426
- package/tests/learning/dataclaw-trajectory-source.test.ts +0 -642
- package/tests/learning/effectiveness.test.ts +0 -542
- package/tests/learning/energy-evaluator.test.ts +0 -180
- package/tests/learning/entire-trajectory-source.test.ts +0 -380
- package/tests/learning/healing-orchestrator.test.ts +0 -269
- package/tests/learning/huggingface-trajectory-source.test.ts +0 -817
- package/tests/learning/instant-loop.test.ts +0 -243
- package/tests/learning/knowledge-extractor.test.ts +0 -491
- package/tests/learning/maintenance-scheduler.test.ts +0 -191
- package/tests/learning/meta-learner.test.ts +0 -418
- package/tests/learning/pipeline-memory-updates.test.ts +0 -721
- package/tests/learning/playbook-extractor-provenance.test.ts +0 -114
- package/tests/learning/reflexion-generator.test.ts +0 -411
- package/tests/learning/team-ingester.test.ts +0 -349
- package/tests/learning/team-meta-learner.test.ts +0 -618
- package/tests/learning/team-pipeline.test.ts +0 -334
- package/tests/learning/trajectory-sources.test.ts +0 -320
- package/tests/learning/unified-pipeline-efficacy.test.ts +0 -232
- package/tests/learning/unified-pipeline.test.ts +0 -322
- package/tests/learning/usage-inference.test.ts +0 -254
- package/tests/mcp/playbook-server.test.ts +0 -257
- package/tests/memory/candidate-retrieval.test.ts +0 -167
- package/tests/memory/causal-store.test.ts +0 -276
- package/tests/memory/coherence.test.ts +0 -232
- package/tests/memory/compound-engineering-seed.test.ts +0 -338
- package/tests/memory/curated-loader-extended.test.ts +0 -225
- package/tests/memory/experience.test.ts +0 -203
- package/tests/memory/graph-layers/semantic.test.ts +0 -219
- package/tests/memory/knowledge-bank-extraction.test.ts +0 -558
- package/tests/memory/knowledge-bank.test.ts +0 -705
- package/tests/memory/knowledge-defrag.test.ts +0 -366
- package/tests/memory/knowledge-evolution.test.ts +0 -563
- package/tests/memory/knowledge-graph.test.ts +0 -492
- package/tests/memory/knowledge-inbox.test.ts +0 -258
- package/tests/memory/knowledge-minimem.test.ts +0 -251
- package/tests/memory/meta.test.ts +0 -399
- package/tests/memory/playbook-quality-validation.test.ts +0 -430
- package/tests/memory/playbook.test.ts +0 -644
- package/tests/memory/provenance.test.ts +0 -648
- package/tests/memory/reasoning-bank.test.ts +0 -239
- package/tests/memory/reflexion.test.ts +0 -166
- package/tests/memory/skill-exporter.test.ts +0 -475
- package/tests/memory/source-resolver.test.ts +0 -700
- package/tests/memory/system.test.ts +0 -330
- package/tests/memory/team-experience.test.ts +0 -411
- package/tests/memory/temporal-compressor.test.ts +0 -318
- package/tests/persistence/migrator.test.ts +0 -1009
- package/tests/persistence/sqlite-persistence.test.ts +0 -635
- package/tests/runtime/agent-manager.test.ts +0 -517
- package/tests/runtime/compute-provider.test.ts +0 -288
- package/tests/runtime/delegate.test.ts +0 -354
- package/tests/runtime/macro-agent-backend.test.ts +0 -266
- package/tests/runtime/mock-backend.test.ts +0 -248
- package/tests/search/evaluator.test.ts +0 -257
- package/tests/search/moe-gate.test.ts +0 -250
- package/tests/search/refinement-loop.test.ts +0 -477
- package/tests/search/refinement.test.ts +0 -267
- package/tests/search/router.test.ts +0 -506
- package/tests/search/team-router.test.ts +0 -376
- package/tests/search/verification-runner.test.ts +0 -357
- package/tests/session-bank/fixtures/multi-tool-session/full.jsonl +0 -12
- package/tests/session-bank/fixtures/multi-tool-session/metadata.json +0 -28
- package/tests/session-bank/fixtures/root-metadata.json +0 -18
- package/tests/session-bank/fixtures/sessionlog-root-metadata.json +0 -16
- package/tests/session-bank/fixtures/sessionlog-session/full.jsonl +0 -6
- package/tests/session-bank/fixtures/sessionlog-session/metadata.json +0 -55
- package/tests/session-bank/fixtures/simple-session/full.jsonl +0 -6
- package/tests/session-bank/fixtures/simple-session/metadata.json +0 -38
- package/tests/session-bank/git-reader.test.ts +0 -232
- package/tests/session-bank/parser.test.ts +0 -453
- package/tests/session-bank/session-bank.test.ts +0 -546
- package/tests/surfacing/skill-library.test.ts +0 -297
- package/tests/surfacing/skill-publisher.test.ts +0 -432
- package/tests/surfacing/sqlite-storage-adapter.test.ts +0 -197
- package/tests/surfacing/team-skill-library.test.ts +0 -444
- package/tests/types/outcome.test.ts +0 -147
- package/tests/types/step.test.ts +0 -133
- package/tests/types/task.test.ts +0 -158
- package/tests/types/team-meta.test.ts +0 -147
- package/tests/types/team-playbook.test.ts +0 -246
- package/tests/types/team-trajectory.test.ts +0 -557
- package/tests/types/trajectory.test.ts +0 -253
- package/tests/utils/error-classifier.test.ts +0 -149
- package/tests/utils/frontmatter.test.ts +0 -208
- package/tests/utils/partitioned-store.test.ts +0 -230
- package/tests/utils/similarity.test.ts +0 -188
- package/tests/utils/trajectory-helpers.test.ts +0 -163
- package/tests/utils/validation.test.ts +0 -252
- package/tests/workspace/efficacy-toolkit.test.ts +0 -404
- package/tests/workspace/full-flow.test.ts +0 -845
- package/tests/workspace/manager.test.ts +0 -215
- package/tests/workspace/runner.test.ts +0 -336
- package/tests/workspace/skill-converter.test.ts +0 -205
- package/tests/workspace/templates/knowledge-extraction.test.ts +0 -235
- package/tests/workspace/templates/playbook-efficacy.test.ts +0 -377
- package/tests/workspace/templates/team-playbook-extraction.test.ts +0 -341
- package/tests/workspace/templates/team-trajectory-analysis.test.ts +0 -417
- package/tsconfig.json +0 -25
- package/vitest.config.ts +0 -22
package/dist/types/config.js
CHANGED
|
@@ -15,6 +15,19 @@ export const LearningConfigSchema = z.object({
|
|
|
15
15
|
creditStrategy: CreditStrategySchema.default('simple'),
|
|
16
16
|
/** How to extract patterns */
|
|
17
17
|
patternExtractor: PatternExtractorSchema.default('llm'),
|
|
18
|
+
/**
|
|
19
|
+
* G2: When `patternExtractor` (or `creditStrategy`) requests an LLM-backed
|
|
20
|
+
* path but no agent backend is wired (no `taskRunner`; e.g. `createAtlas`
|
|
21
|
+
* with no backend or CLI ingest), extraction/analysis degrades to the
|
|
22
|
+
* heuristic implementation. That degradation is always made LOUD (a
|
|
23
|
+
* once-per-run warning). When `strictExtraction` is ON, the degradation
|
|
24
|
+
* instead THROWS so misconfiguration is caught up front.
|
|
25
|
+
*
|
|
26
|
+
* Default OFF (warn, don't throw) so headless ingest still functions —
|
|
27
|
+
* autonomous LLM extraction genuinely requires a backend, so headless
|
|
28
|
+
* runs must be allowed to fall back to the heuristic extractor.
|
|
29
|
+
*/
|
|
30
|
+
strictExtraction: z.boolean().default(false),
|
|
18
31
|
/** Minimum trajectories before batch learning */
|
|
19
32
|
minTrajectories: z.number().default(10),
|
|
20
33
|
/** Minimum hours since last batch learning */
|
|
@@ -25,6 +38,20 @@ export const LearningConfigSchema = z.object({
|
|
|
25
38
|
deduplicationThreshold: z.number().min(0).max(1).default(0.9),
|
|
26
39
|
/** Maximum experiences to keep during pruning (default: 1000) */
|
|
27
40
|
maxExperiences: z.number().default(1000),
|
|
41
|
+
/**
|
|
42
|
+
* Additive-consolidation similarity threshold (0..1). Only consulted when
|
|
43
|
+
* `features.additiveConsolidation` is ON. A freshly distilled playbook is
|
|
44
|
+
* MERGED into an existing one instead of minting a new `distilled-<uuid>`
|
|
45
|
+
* when their embeddings-optional similarity (cosine when both embeddings
|
|
46
|
+
* exist, else lexical textSimilarity over strategy + situations) meets this
|
|
47
|
+
* threshold AND they share a domain. Default 0.55 — deliberately below the
|
|
48
|
+
* 0.9 write-time dedup threshold (which almost never fires for distinct
|
|
49
|
+
* distilled titles) so genuine same-family repeats actually compound, while
|
|
50
|
+
* the domain-overlap hard gate + this floor guard against cross-family
|
|
51
|
+
* over-merge. Lower → more aggressive merging (evidence compounds faster but
|
|
52
|
+
* risk of conflating distinct lessons); higher → closer to proliferation.
|
|
53
|
+
*/
|
|
54
|
+
additiveMergeThreshold: z.number().min(0).max(1).default(0.55),
|
|
28
55
|
});
|
|
29
56
|
/**
|
|
30
57
|
* Task routing configuration
|
|
@@ -36,6 +63,22 @@ export const RouterConfigSchema = z.object({
|
|
|
36
63
|
useDomainRouting: z.boolean().default(true),
|
|
37
64
|
/** Default search strategy */
|
|
38
65
|
defaultStrategy: z.string().default('direct'),
|
|
66
|
+
/**
|
|
67
|
+
* Difficulty-aware routing (G6). When ON, the router computes a general,
|
|
68
|
+
* domain-agnostic task-difficulty signal (`computeTaskDifficulty`) and:
|
|
69
|
+
* - routes HARD tasks to the expensive refinement/exemplar strategy with a
|
|
70
|
+
* deliberately LOWER `routing.confidence` (below `refinement
|
|
71
|
+
* .confidenceThreshold`, default 0.85) so they auto-enter the G1
|
|
72
|
+
* refinement loop;
|
|
73
|
+
* - routes EASY tasks to the cheap/direct path with higher confidence so
|
|
74
|
+
* they stay above the threshold and skip refinement;
|
|
75
|
+
* - sets the multi-objective `prefer` axis from difficulty (hard → quality,
|
|
76
|
+
* trivial → cheap) so the Pareto frontier query is actually exercised.
|
|
77
|
+
*
|
|
78
|
+
* Default ON (maintainer's call): degrades gracefully (no throw) when the
|
|
79
|
+
* frontier is cold or memory is empty.
|
|
80
|
+
*/
|
|
81
|
+
difficultyAwareRouting: z.boolean().default(true),
|
|
39
82
|
});
|
|
40
83
|
/**
|
|
41
84
|
* Memory capacity limits for automatic pruning
|
|
@@ -59,6 +102,112 @@ export const MemoryCapacityConfigSchema = z.object({
|
|
|
59
102
|
/**
|
|
60
103
|
* Memory retrieval configuration
|
|
61
104
|
*/
|
|
105
|
+
export const PlaybookRetrievalConfigSchema = z.object({
|
|
106
|
+
/**
|
|
107
|
+
* Playbook retrieval implementation.
|
|
108
|
+
* - legacy: cognitive-core's existing PlaybookLibrary matcher.
|
|
109
|
+
* - skill-tree-hybrid: convert playbooks to skill-tree Skills and score with
|
|
110
|
+
* skill-tree's body-indexed hybrid scorer.
|
|
111
|
+
*/
|
|
112
|
+
mode: z.enum(['legacy', 'skill-tree-hybrid']).default('legacy'),
|
|
113
|
+
/**
|
|
114
|
+
* Minimum retrieval score required before a playbook is injected, for LEXICAL
|
|
115
|
+
* (text-similarity) scoring. Lexical scores are sparse (~0.1 even for relevant
|
|
116
|
+
* matches), so this floor cannot separate signal from noise — embedding mode
|
|
117
|
+
* (`minScoreSemantic`) is what makes a meaningful floor possible. Serving
|
|
118
|
+
* relevance floor, separate from playbook confidence.
|
|
119
|
+
*/
|
|
120
|
+
minScore: z.number().min(0).max(1).default(0.1),
|
|
121
|
+
/**
|
|
122
|
+
* Relevance floor when SEMANTIC (embedding-cosine) scoring is active (an
|
|
123
|
+
* EmbeddingProvider attached via `setEmbeddingProvider`). Cosine scores are
|
|
124
|
+
* denser than lexical, so a real floor (default 0.35 — below the ~0.5 "high
|
|
125
|
+
* similarity" bar so relevant matches survive) rejects noise WITHOUT omitting
|
|
126
|
+
* relevant playbooks, unlike a raised lexical floor.
|
|
127
|
+
*/
|
|
128
|
+
minScoreSemantic: z.number().min(0).max(1).default(0.35),
|
|
129
|
+
/**
|
|
130
|
+
* Multiplier applied to the active floor on the GLOBAL (cross-domain) fallback
|
|
131
|
+
* retrieval — when a task's own domain has no playbooks and retrieval reaches
|
|
132
|
+
* across all domains, require a higher score (default 1.5×) so out-of-family
|
|
133
|
+
* playbooks need a strong match. Prevents cross-family negative transfer (see
|
|
134
|
+
* docs/runs/skillflow-playbook-ablation-3families-bedrock-haiku.md).
|
|
135
|
+
*/
|
|
136
|
+
crossDomainFloorMultiplier: z.number().min(1).default(1.5),
|
|
137
|
+
/**
|
|
138
|
+
* Fusion strategy for skill-tree-hybrid mode. RRF only changes ordering when
|
|
139
|
+
* a dense embedder is attached; BM25-only scoring remains available.
|
|
140
|
+
*/
|
|
141
|
+
fusion: z.enum(['weighted', 'rrf']).default('rrf'),
|
|
142
|
+
/**
|
|
143
|
+
* How an injected playbook is rendered into the prompt (roadmap §4.3 / Exp 4):
|
|
144
|
+
* - `full`: the whole playbook (strategy + all tactics/steps). Default.
|
|
145
|
+
* - `sectioned`: strategy + only the tactics/steps whose text shares cues with
|
|
146
|
+
* the task. Lower token cost and less context interference for broad
|
|
147
|
+
* playbooks where only a subskill applies. Deterministic (no LLM); a no-op
|
|
148
|
+
* for already-atomic playbooks whose every tactic matches.
|
|
149
|
+
* (`refined`, an LLM task-specific rewrite, is a separate serve-time path and
|
|
150
|
+
* not selectable here yet.)
|
|
151
|
+
*/
|
|
152
|
+
incorporation: z.enum(['full', 'sectioned']).default('full'),
|
|
153
|
+
});
|
|
154
|
+
export const PlaybookApplicabilityConfigSchema = z.object({
|
|
155
|
+
/**
|
|
156
|
+
* Opt-in serving gate that decides whether a retrieved playbook is specific
|
|
157
|
+
* enough to inject.
|
|
158
|
+
*/
|
|
159
|
+
enabled: z.boolean().default(false),
|
|
160
|
+
/** Floor for matches that lack trigger/situation cues. */
|
|
161
|
+
minSpecificityScore: z.number().min(0).max(1).default(0.45),
|
|
162
|
+
/** Stronger floor for cross-domain matches without trigger/situation cues. */
|
|
163
|
+
crossDomainMinScore: z.number().min(0).max(1).default(0.55),
|
|
164
|
+
});
|
|
165
|
+
export const ProceduralMemoryConfigSchema = z.object({
|
|
166
|
+
/**
|
|
167
|
+
* Stable procedural-memory authority. `filesystem` (the default) makes
|
|
168
|
+
* `.atlas/playbooks/<slug>/SKILL.md` canonical for stable playbook content;
|
|
169
|
+
* SQLite remains the runtime cache and operational ledger (operational state
|
|
170
|
+
* mirrored to `.ccore/state.json` so the DB rebuilds from files). `sqlite`
|
|
171
|
+
* preserves the legacy behavior where SQLite rows are the source of truth —
|
|
172
|
+
* used by migration tooling and the SQLite-only-drift / migration tests,
|
|
173
|
+
* which opt back in via `source: "sqlite"` explicitly.
|
|
174
|
+
*/
|
|
175
|
+
source: z.enum(['sqlite', 'filesystem']).default('filesystem'),
|
|
176
|
+
/** Canonical procedural-memory directory, relative to storage.baseDir. */
|
|
177
|
+
dir: z.string().default('playbooks'),
|
|
178
|
+
/** Fail startup on file-first warnings instead of continuing best-effort. */
|
|
179
|
+
strictStartup: z.boolean().default(false),
|
|
180
|
+
/** Future destructive cleanup switch; defaults off for hard migration safety. */
|
|
181
|
+
pruneSqliteOnly: z.boolean().default(false),
|
|
182
|
+
/**
|
|
183
|
+
* Reindex-on-edit cascade (§6.2). When on, a debounced file watcher over the
|
|
184
|
+
* canonical `playbooks/` tree picks up external `SKILL.md` edits (hand edits,
|
|
185
|
+
* `git pull`) live via a durable queue — no reboot needed. Off by default:
|
|
186
|
+
* short-lived eval/CLI runs don't need it (startup reindex covers them), and
|
|
187
|
+
* only long-lived servers benefit. Requires `source: "filesystem"`.
|
|
188
|
+
*/
|
|
189
|
+
watch: z.boolean().default(false),
|
|
190
|
+
/** Coalescing window (ms) for a burst of file events before the cascade drains. */
|
|
191
|
+
watchDebounceMs: z.number().int().positive().default(150),
|
|
192
|
+
/**
|
|
193
|
+
* Poll for changes instead of native OS events. Needed on filesystems where
|
|
194
|
+
* native watching doesn't fire (NFS, Docker bind mounts, some CI). Off by
|
|
195
|
+
* default (native fsevents/inotify are cheaper).
|
|
196
|
+
*/
|
|
197
|
+
watchUsePolling: z.boolean().default(false),
|
|
198
|
+
/** Poll interval (ms) when `watchUsePolling` is on. */
|
|
199
|
+
watchPollIntervalMs: z.number().int().positive().default(100),
|
|
200
|
+
/**
|
|
201
|
+
* Legacy Phase 3 bridge. Prefer `source: "filesystem"` for hard-authority
|
|
202
|
+
* migration; this remains for callers that only want mirroring.
|
|
203
|
+
*/
|
|
204
|
+
structuralDualWrite: z
|
|
205
|
+
.object({
|
|
206
|
+
enabled: z.boolean().default(false),
|
|
207
|
+
dir: z.string().default('playbooks'),
|
|
208
|
+
})
|
|
209
|
+
.default({}),
|
|
210
|
+
});
|
|
62
211
|
export const MemoryConfigSchema = z.object({
|
|
63
212
|
/** Maximum experiences to retrieve */
|
|
64
213
|
maxExperiences: z.number().default(4), // ReMem paper default
|
|
@@ -72,6 +221,51 @@ export const MemoryConfigSchema = z.object({
|
|
|
72
221
|
maxContextTokens: z.number().default(4000),
|
|
73
222
|
/** Capacity limits for storage */
|
|
74
223
|
capacity: MemoryCapacityConfigSchema.default({}),
|
|
224
|
+
/**
|
|
225
|
+
* Use the Pareto frontier to select playbooks when a signature has
|
|
226
|
+
* recorded outcomes, falling back to text-similarity matching otherwise.
|
|
227
|
+
*
|
|
228
|
+
* Default ON (G6, maintainer's call): the frontier path is headless-safe —
|
|
229
|
+
* a cold store (signature with no recorded outcomes / empty frontier) falls
|
|
230
|
+
* back to text-similarity matching inside `findMatchingFrontierAware`
|
|
231
|
+
* (`playbook.ts`), so enabling it never deadlocks or throws.
|
|
232
|
+
*/
|
|
233
|
+
frontierRouting: z.boolean().default(true),
|
|
234
|
+
/**
|
|
235
|
+
* Whether failed trajectories may be injected as in-context EXEMPLARS
|
|
236
|
+
* (the experience-retrieval channel surfaced to the agent at solve time).
|
|
237
|
+
*
|
|
238
|
+
* This does NOT control whether failures are stored or learned from:
|
|
239
|
+
* failures always still feed reflexion episodes, playbook anti-patterns,
|
|
240
|
+
* causal edges, and error-pattern analysis. It only governs the imitation
|
|
241
|
+
* channel. Injecting raw failed trajectories as exemplars can anchor an
|
|
242
|
+
* agent to bad approaches — especially on imitation-heavy / procedural tasks
|
|
243
|
+
* (embodied, web nav) where the agent copies action sequences. Set to
|
|
244
|
+
* `false` for success-biased exemplar injection (the agent only sees
|
|
245
|
+
* trajectories that worked). Default `true` preserves prior behavior.
|
|
246
|
+
*/
|
|
247
|
+
injectFailedExperiences: z.boolean().default(true),
|
|
248
|
+
/**
|
|
249
|
+
* On init, seed the (file-backed) MetaPlaybookBank from the committed
|
|
250
|
+
* `META_PLAYBOOK_SEEDS` — meta-level guidance that steers the
|
|
251
|
+
* analysis/extraction/maintenance agents. Idempotent: only seeds an empty
|
|
252
|
+
* bank, so learned refinements are never overwritten. Default `true`
|
|
253
|
+
* (cold-start default; set `false` for seed-free ablations).
|
|
254
|
+
*/
|
|
255
|
+
seedMetaPlaybooks: z.boolean().default(true),
|
|
256
|
+
/**
|
|
257
|
+
* On init, seed MetaMemory with the committed `META_STRATEGY_SEEDS` routing
|
|
258
|
+
* priors so the router's meta-adjustment path is not inert on a cold store.
|
|
259
|
+
* Idempotent: only seeds when no strategies exist, so learned strategies and
|
|
260
|
+
* their evidence (EMA success rate) are never overwritten. Default `true`.
|
|
261
|
+
*/
|
|
262
|
+
seedMetaStrategies: z.boolean().default(true),
|
|
263
|
+
/** Playbook serving/retrieval configuration. */
|
|
264
|
+
playbookRetrieval: PlaybookRetrievalConfigSchema.default({}),
|
|
265
|
+
/** Optional post-retrieval playbook applicability gate. */
|
|
266
|
+
playbookApplicability: PlaybookApplicabilityConfigSchema.default({}),
|
|
267
|
+
/** Procedural-memory filesystem migration settings. */
|
|
268
|
+
proceduralMemory: ProceduralMemoryConfigSchema.default({}),
|
|
75
269
|
});
|
|
76
270
|
/**
|
|
77
271
|
* Storage configuration
|
|
@@ -89,12 +283,7 @@ export const StorageConfigSchema = z.object({
|
|
|
89
283
|
/**
|
|
90
284
|
* Embedding provider type
|
|
91
285
|
*/
|
|
92
|
-
export const EmbeddingProviderTypeSchema = z.enum([
|
|
93
|
-
'openai',
|
|
94
|
-
'voyage',
|
|
95
|
-
'local',
|
|
96
|
-
'none',
|
|
97
|
-
]);
|
|
286
|
+
export const EmbeddingProviderTypeSchema = z.enum(['openai', 'voyage', 'local', 'none']);
|
|
98
287
|
/**
|
|
99
288
|
* Embedding configuration
|
|
100
289
|
*/
|
|
@@ -147,19 +336,28 @@ export const ComputeProviderConfigSchema = z.object({
|
|
|
147
336
|
*/
|
|
148
337
|
export const RefinementConfigSchema = z.object({
|
|
149
338
|
/** Maximum refinement iterations */
|
|
150
|
-
maxIterations: z.number().min(
|
|
339
|
+
maxIterations: z.number().min(0).max(10).default(3),
|
|
151
340
|
/** Minimum quality score to accept without refinement */
|
|
152
341
|
acceptableScore: z.number().min(0).max(1).default(0.7),
|
|
153
342
|
/** Whether to use ACP agent for evaluation */
|
|
154
343
|
useAgentEvaluation: z.boolean().default(true),
|
|
155
344
|
/** Agent type to use for evaluation */
|
|
156
345
|
evaluatorAgentType: z.string().default('evaluator'),
|
|
157
|
-
/**
|
|
158
|
-
|
|
159
|
-
|
|
346
|
+
/**
|
|
347
|
+
* Confidence threshold below which to trigger refinement.
|
|
348
|
+
* Raised from 0.6 so refinement is reachable on normal routes — most
|
|
349
|
+
* routing decisions land below 0.85 confidence and should remain eligible
|
|
350
|
+
* for verifier-driven refinement.
|
|
351
|
+
*/
|
|
352
|
+
confidenceThreshold: z.number().min(0).max(1).default(0.85),
|
|
353
|
+
/**
|
|
354
|
+
* Routing strategies that should trigger refinement.
|
|
355
|
+
* Broadened to all four strategies (G1): a task can mis-execute on any
|
|
356
|
+
* route, including `direct`/`adapt`, so none are excluded by default.
|
|
357
|
+
*/
|
|
160
358
|
triggerOnStrategies: z
|
|
161
359
|
.array(z.enum(['explore', 'fallback', 'direct', 'adapt']))
|
|
162
|
-
.default(['explore', 'fallback']),
|
|
360
|
+
.default(['explore', 'fallback', 'direct', 'adapt']),
|
|
163
361
|
});
|
|
164
362
|
/**
|
|
165
363
|
* Skill Library promotion criteria
|
|
@@ -171,6 +369,19 @@ export const SkillPromotionConfigSchema = z.object({
|
|
|
171
369
|
minSuccessCount: z.number().default(5),
|
|
172
370
|
/** Minimum success rate to promote */
|
|
173
371
|
minSuccessRate: z.number().min(0).max(1).default(0.8),
|
|
372
|
+
/**
|
|
373
|
+
* Eval-gate tier promotion (G5). When ON, a playbook must pass an
|
|
374
|
+
* eval gate IN ADDITION to the threshold criteria before it is
|
|
375
|
+
* promoted to a served tier.
|
|
376
|
+
*
|
|
377
|
+
* Default ON (maintainer's call): the default gate is Pareto-frontier
|
|
378
|
+
* dominance, which is headless-safe — it reuses already-built, no-LLM
|
|
379
|
+
* machinery and treats a playbook with no frontier history (first-ever
|
|
380
|
+
* / freshly-extracted) as non-dominated, so default-on gating never
|
|
381
|
+
* deadlocks. When a `PromotionJudge` (or `ReplayJudge`) is registered
|
|
382
|
+
* on the `SkillLibrary`, the stronger judge-based gate is used instead.
|
|
383
|
+
*/
|
|
384
|
+
evalGate: z.boolean().default(true),
|
|
174
385
|
});
|
|
175
386
|
/**
|
|
176
387
|
* Skill Library capacity limits
|
|
@@ -193,6 +404,12 @@ export const SkillContextConfigSchema = z.object({
|
|
|
193
404
|
includeRefinements: z.boolean().default(true),
|
|
194
405
|
/** Include code examples in skill context */
|
|
195
406
|
includeExamples: z.boolean().default(false),
|
|
407
|
+
/**
|
|
408
|
+
* G4: include a worked-trajectory exemplar (few-shot demonstration) in skill
|
|
409
|
+
* context when a playbook carries one. Default ON — a surfaced skill should
|
|
410
|
+
* carry the demonstration, not just rules ("demonstration > rules").
|
|
411
|
+
*/
|
|
412
|
+
includeExemplar: z.boolean().default(true),
|
|
196
413
|
/** Cache refresh interval in milliseconds (default: 5 minutes) */
|
|
197
414
|
cacheRefreshInterval: z.number().default(5 * 60 * 1000),
|
|
198
415
|
});
|
|
@@ -217,6 +434,8 @@ export const SkillLibraryConfigSchema = z.object({
|
|
|
217
434
|
context: SkillContextConfigSchema.default({}),
|
|
218
435
|
/** Demotion criteria */
|
|
219
436
|
demotion: SkillDemotionConfigSchema.default({}),
|
|
437
|
+
/** Contextual playbook retrieval for tiered skill surfacing. */
|
|
438
|
+
retrieval: PlaybookRetrievalConfigSchema.default({}),
|
|
220
439
|
});
|
|
221
440
|
/**
|
|
222
441
|
* Agentic Task Runner configuration
|
|
@@ -232,6 +451,8 @@ export const AgenticTaskRunnerConfigSchema = z.object({
|
|
|
232
451
|
staleWorkspaceMaxAgeMs: z.number().default(3600_000),
|
|
233
452
|
/** Base directory for workspaces (defaults to os.tmpdir()) */
|
|
234
453
|
workspaceBaseDir: z.string().optional(),
|
|
454
|
+
/** Always run the workspace agent for playbook extraction when a runner exists. */
|
|
455
|
+
forceAgenticPlaybookExtraction: z.boolean().default(true),
|
|
235
456
|
});
|
|
236
457
|
/**
|
|
237
458
|
* MCP Server configuration
|
|
@@ -254,48 +475,6 @@ export const MCPServerConfigSchema = z.object({
|
|
|
254
475
|
/** Enable filtering by domain */
|
|
255
476
|
enableDomainFiltering: z.boolean().default(true),
|
|
256
477
|
});
|
|
257
|
-
/**
|
|
258
|
-
* Compression configuration for team trajectory ingestion
|
|
259
|
-
*/
|
|
260
|
-
export const CompressionConfigSchema = z.object({
|
|
261
|
-
/** Maximum tokens per agent after compression */
|
|
262
|
-
maxTokensPerAgent: z.number().default(5000),
|
|
263
|
-
/** Preserve interaction boundary steps at full fidelity */
|
|
264
|
-
preserveInteractionBoundaries: z.boolean().default(true),
|
|
265
|
-
/** Minimum consecutive non-key steps before folding */
|
|
266
|
-
foldThreshold: z.number().default(5),
|
|
267
|
-
/** Maximum ratio of steps to mark as critical */
|
|
268
|
-
maxCriticalRatio: z.number().default(0.25),
|
|
269
|
-
/** Score threshold for critical steps */
|
|
270
|
-
criticalStepThreshold: z.number().default(0.3),
|
|
271
|
-
/** Score threshold for critical interactions */
|
|
272
|
-
criticalInteractionThreshold: z.number().default(0.3),
|
|
273
|
-
});
|
|
274
|
-
/**
|
|
275
|
-
* Team-aware learning configuration
|
|
276
|
-
*/
|
|
277
|
-
export const TeamLearningConfigSchema = z.object({
|
|
278
|
-
/** Enable team-aware learning */
|
|
279
|
-
enabled: z.boolean().default(false),
|
|
280
|
-
/** Minimum team trajectories before batch learning */
|
|
281
|
-
minTeamTrajectories: z.number().default(5),
|
|
282
|
-
/** Similarity threshold for team playbook deduplication */
|
|
283
|
-
deduplicationThreshold: z.number().min(0).max(1).default(0.85),
|
|
284
|
-
/** Weight of structural metrics in analysis (0 = ignore, 1 = metrics only) */
|
|
285
|
-
metricsWeight: z.number().min(0).max(1).default(0.3),
|
|
286
|
-
/** Maximum team experiences to store */
|
|
287
|
-
maxTeamExperiences: z.number().default(200),
|
|
288
|
-
/** Maximum team playbooks to store */
|
|
289
|
-
maxTeamPlaybooks: z.number().default(50),
|
|
290
|
-
/** Maximum role playbooks to store */
|
|
291
|
-
maxRolePlaybooks: z.number().default(100),
|
|
292
|
-
/** Analysis agent timeout in milliseconds */
|
|
293
|
-
analysisTimeout: z.number().default(300_000),
|
|
294
|
-
/** Extraction agent timeout in milliseconds */
|
|
295
|
-
extractionTimeout: z.number().default(600_000),
|
|
296
|
-
/** Compression settings for trajectory ingestion */
|
|
297
|
-
compression: CompressionConfigSchema.default({}),
|
|
298
|
-
});
|
|
299
478
|
/**
|
|
300
479
|
* Knowledge Bank confidence model configuration
|
|
301
480
|
*/
|
|
@@ -315,25 +494,6 @@ export const ConfidenceConfigSchema = z.object({
|
|
|
315
494
|
/** Days without validation before decay begins */
|
|
316
495
|
decayGracePeriodDays: z.number().default(90),
|
|
317
496
|
});
|
|
318
|
-
/**
|
|
319
|
-
* Knowledge Bank graph overlay configuration
|
|
320
|
-
*/
|
|
321
|
-
export const GraphConfigSchema = z.object({
|
|
322
|
-
/** Which graph layers to enable */
|
|
323
|
-
enabledLayers: z
|
|
324
|
-
.array(z.enum(['semantic', 'temporal', 'causal', 'entity']))
|
|
325
|
-
.default(['semantic']),
|
|
326
|
-
/** Whether to auto-infer temporal edges from timestamps */
|
|
327
|
-
inferTemporalEdges: z.boolean().default(true),
|
|
328
|
-
/** Whether to auto-infer causal edges from failure-recovery patterns */
|
|
329
|
-
inferCausalEdges: z.boolean().default(true),
|
|
330
|
-
/** Whether to auto-infer entity edges from shared entity tags */
|
|
331
|
-
inferEntityEdges: z.boolean().default(true),
|
|
332
|
-
/** Split layer files by domain when node count exceeds this */
|
|
333
|
-
domainSplitThreshold: z.number().default(500),
|
|
334
|
-
/** Promote to SQLite when total edge count exceeds this */
|
|
335
|
-
sqlitePromotionThreshold: z.number().default(10000),
|
|
336
|
-
});
|
|
337
497
|
/**
|
|
338
498
|
* Knowledge Bank defragmentation configuration
|
|
339
499
|
*/
|
|
@@ -342,6 +502,20 @@ export const DefragConfigSchema = z.object({
|
|
|
342
502
|
minInboxItems: z.number().default(5),
|
|
343
503
|
/** Whether to auto-consolidate observations into entities */
|
|
344
504
|
autoConsolidate: z.boolean().default(true),
|
|
505
|
+
/**
|
|
506
|
+
* How consolidation builds entity notes:
|
|
507
|
+
* - `off`: skip consolidation entirely (atomic facts only).
|
|
508
|
+
* - `index`: entity notes are lightweight records — canonical name + links to
|
|
509
|
+
* the atomic fact notes mentioning the entity, NO duplicated fact bodies.
|
|
510
|
+
* Used as a retrieval boost anchor (see getRelevantKnowledge). Default.
|
|
511
|
+
* - `content`: legacy behavior — concatenate truncated fact bodies into the
|
|
512
|
+
* entity note (retained for back-compat).
|
|
513
|
+
*
|
|
514
|
+
* `autoConsolidate: false` forces `off` regardless of this value.
|
|
515
|
+
* Optional at the type level for back-compat with hand-built configs; the
|
|
516
|
+
* KnowledgeDefragmenter treats `undefined` as `index`.
|
|
517
|
+
*/
|
|
518
|
+
consolidationMode: z.enum(['off', 'index', 'content']).optional(),
|
|
345
519
|
/** Minimum observations about an entity before consolidation */
|
|
346
520
|
consolidationThreshold: z.number().default(3),
|
|
347
521
|
/** Whether to auto-regenerate domain summaries */
|
|
@@ -350,6 +524,20 @@ export const DefragConfigSchema = z.object({
|
|
|
350
524
|
llmSummaryGeneration: z.boolean().default(false),
|
|
351
525
|
/** Whether to auto-resolve simple contradictions */
|
|
352
526
|
autoResolveContradictions: z.boolean().default(false),
|
|
527
|
+
/**
|
|
528
|
+
* Run the pairwise contradiction-detection sweep during defrag. This is O(n²)
|
|
529
|
+
* within a domain, so for large single-domain stores (e.g. a long conversation
|
|
530
|
+
* where every fact shares one domain) it is expensive and low-value. Optional;
|
|
531
|
+
* the KnowledgeDefragmenter treats `undefined` as enabled (back-compat). Set
|
|
532
|
+
* false to skip. See DESIGN-memory-extraction-add-only.md (WS1c).
|
|
533
|
+
*/
|
|
534
|
+
contradictionScan: z.boolean().optional(),
|
|
535
|
+
/**
|
|
536
|
+
* Hard cap on observations-per-domain considered by the contradiction sweep;
|
|
537
|
+
* beyond this the sweep is skipped for that domain to bound cost. `undefined`
|
|
538
|
+
* → default cap (see KnowledgeDefragmenter).
|
|
539
|
+
*/
|
|
540
|
+
contradictionScanMaxNotes: z.number().optional(),
|
|
353
541
|
});
|
|
354
542
|
/**
|
|
355
543
|
* Knowledge Bank extraction configuration
|
|
@@ -378,6 +566,13 @@ export const KnowledgeSurfacingConfigSchema = z.object({
|
|
|
378
566
|
includeEvidence: z.boolean().default(false),
|
|
379
567
|
/** Include graph links in surfaced notes */
|
|
380
568
|
includeLinks: z.boolean().default(false),
|
|
569
|
+
/**
|
|
570
|
+
* Additive score boost applied to atomic fact notes that are linked from an
|
|
571
|
+
* entity record matching the query (index-mode consolidation). Entity records
|
|
572
|
+
* themselves are NOT injected as content — they act purely as ranking anchors.
|
|
573
|
+
* Optional; getRelevantKnowledge treats `undefined` as 0.15.
|
|
574
|
+
*/
|
|
575
|
+
entityBoostWeight: z.number().optional(),
|
|
381
576
|
});
|
|
382
577
|
/**
|
|
383
578
|
* Knowledge Bank configuration
|
|
@@ -393,8 +588,6 @@ export const KnowledgeBankConfigSchema = z.object({
|
|
|
393
588
|
defrag: DefragConfigSchema.default({}),
|
|
394
589
|
/** Confidence model config */
|
|
395
590
|
confidence: ConfidenceConfigSchema.default({}),
|
|
396
|
-
/** Graph overlay config */
|
|
397
|
-
graph: GraphConfigSchema.default({}),
|
|
398
591
|
/** Surfacing config (independent from SkillLibrary) */
|
|
399
592
|
surfacing: KnowledgeSurfacingConfigSchema.default({}),
|
|
400
593
|
/** Whether to manage minimem-specific features (sync, versioning) */
|
|
@@ -422,11 +615,30 @@ export const SessionBankConfigSchema = z.object({
|
|
|
422
615
|
/**
|
|
423
616
|
* Skill-tree storage configuration
|
|
424
617
|
*/
|
|
618
|
+
export const SharedSkillBankConfigSchema = z.object({
|
|
619
|
+
/**
|
|
620
|
+
* Mirror published (graduated) playbooks into a shared skill-tree
|
|
621
|
+
* filesystem bank so consumers outside this Atlas instance (openswarm's
|
|
622
|
+
* SkillProvider, Claude Code skill loaders, peer tools) can read them
|
|
623
|
+
* without an openhive materialization bridge. Off by default: writing to a
|
|
624
|
+
* machine-global bank is an explicit opt-in (CLI `--shared-bank` /
|
|
625
|
+
* `COGCORE_SHARED_SKILL_BANK`).
|
|
626
|
+
*/
|
|
627
|
+
enabled: z.boolean().default(false),
|
|
628
|
+
/**
|
|
629
|
+
* Bank base path (skill-tree `storage.basePath`; skills land under
|
|
630
|
+
* `<path>/.skilltree/skills/<id>/SKILL.md`). Defaults to the ecosystem's
|
|
631
|
+
* conventional shared bank `~/.skill-tree` when omitted.
|
|
632
|
+
*/
|
|
633
|
+
path: z.string().optional(),
|
|
634
|
+
});
|
|
425
635
|
export const SkillTreeConfigSchema = z.object({
|
|
426
636
|
/** Enable automatic skill-tree publishing via SqliteStorageAdapter */
|
|
427
637
|
enabled: z.boolean().default(true),
|
|
428
638
|
/** Path to the SQLite database for skill storage (relative to storage.baseDir) */
|
|
429
639
|
dbPath: z.string().default('skills.db'),
|
|
640
|
+
/** Optional mirror of published skills into a shared filesystem bank. */
|
|
641
|
+
sharedBank: SharedSkillBankConfigSchema.default({}),
|
|
430
642
|
});
|
|
431
643
|
/**
|
|
432
644
|
* Curated playbook cache configuration (for git sources)
|
|
@@ -441,8 +653,14 @@ export const CuratedCacheConfigSchema = z.object({
|
|
|
441
653
|
* Curated playbook configuration
|
|
442
654
|
*/
|
|
443
655
|
export const CuratedPlaybooksConfigSchema = z.object({
|
|
444
|
-
/**
|
|
445
|
-
|
|
656
|
+
/**
|
|
657
|
+
* Load the bundled seed packs (compound-engineering + agent-ops) on init.
|
|
658
|
+
* Cold-start semantics: bundled packs only seed an EMPTY playbook library
|
|
659
|
+
* (mirrors the meta-playbook seed idempotency), so a warm store is never
|
|
660
|
+
* retro-seeded on upgrade. `recreateOnInit` bypasses the empty check.
|
|
661
|
+
* Default `true`; evals that must stay seed-free set this to `false`.
|
|
662
|
+
*/
|
|
663
|
+
loadBundledSeedPack: z.boolean().default(true),
|
|
446
664
|
/** Additional directories to load curated playbooks from (backward compat) */
|
|
447
665
|
additionalDirs: z.array(z.string()).default([]),
|
|
448
666
|
/**
|
|
@@ -468,18 +686,230 @@ export const CuratedPlaybooksConfigSchema = z.object({
|
|
|
468
686
|
* without removing them from the codebase.
|
|
469
687
|
*/
|
|
470
688
|
export const FeaturesConfigSchema = z.object({
|
|
471
|
-
|
|
472
|
-
|
|
689
|
+
// NOTE: there is no `instantLoop` flag. The InstantLoop is the core hot-path
|
|
690
|
+
// write (it stores experiences and feeds the energy evaluator that triggers
|
|
691
|
+
// batch learning) — it is not an optional enrichment and is always on.
|
|
692
|
+
// (A dead, never-read `instantLoop` flag was removed; the "does experience
|
|
693
|
+
// memory help?" measurement is covered by the eval's experience-channel
|
|
694
|
+
// ablation, which strips injection without corrupting storage/energy signals.)
|
|
473
695
|
/** Enable reflexion episode generation and storage */
|
|
474
696
|
reflexion: z.boolean().default(true),
|
|
475
697
|
/** Enable coherence checking on knowledge note insertion */
|
|
476
698
|
coherenceChecking: z.boolean().default(true),
|
|
477
|
-
/** Enable experience clustering via ReasoningBank in batch pipeline */
|
|
478
|
-
reasoningBank: z.boolean().default(true),
|
|
479
|
-
/** Enable causal edge extraction in instant loop */
|
|
480
|
-
causalExtraction: z.boolean().default(true),
|
|
481
699
|
/** Enable temporal compression (Hot/Warm/Cold/Evict) in batch pipeline */
|
|
482
700
|
temporalCompression: z.boolean().default(true),
|
|
701
|
+
/**
|
|
702
|
+
* Dual-write every processed trajectory to the durable `dream_queue` table
|
|
703
|
+
* (Phase A of the dreaming refactor). Write-only substrate: nothing drains it
|
|
704
|
+
* yet, so this does not change learning behavior. Default on so the queue is
|
|
705
|
+
* populated and ready for the decoupled `dream()` consumer (Phase B).
|
|
706
|
+
*/
|
|
707
|
+
dreamQueue: z.boolean().default(true),
|
|
708
|
+
/**
|
|
709
|
+
* Roll each dream-time effectiveness annotation into a per-(scope, family,
|
|
710
|
+
* solver) lift cell (`lift_cells` table, scope 'production') — the
|
|
711
|
+
* treatment-effect companion to the eval difficulty registry. Write-only
|
|
712
|
+
* (no core consumer; read by `cogcore eval lift-report`), one cheap upsert
|
|
713
|
+
* per annotated trajectory, dream-time only. Default on.
|
|
714
|
+
*/
|
|
715
|
+
liftTracking: z.boolean().default(true),
|
|
716
|
+
/**
|
|
717
|
+
* Enable Pareto-frontier merge proposing in the maintenance loop.
|
|
718
|
+
* On by default, but self-gating: it only runs once a ReplayJudge is
|
|
719
|
+
* available (bound via `setLearningProvider` for an LLM judge, or
|
|
720
|
+
* `enableLiveReplayGating` for a live judge). With no judge it no-ops, so
|
|
721
|
+
* headless / provider-less setups are unaffected.
|
|
722
|
+
*/
|
|
723
|
+
mergeProposing: z.boolean().default(true),
|
|
724
|
+
/**
|
|
725
|
+
* Enable single-parent reflective playbook mutation in the maintenance
|
|
726
|
+
* loop. On by default, but self-gating: it only runs once BOTH an LLM
|
|
727
|
+
* provider (the generator, via `setLearningProvider`) and a ReplayJudge
|
|
728
|
+
* are available. With neither it no-ops.
|
|
729
|
+
*/
|
|
730
|
+
reflectiveMutation: z.boolean().default(true),
|
|
731
|
+
/**
|
|
732
|
+
* Force lexical retrieval (Jaccard+trigram textSimilarity) even when an
|
|
733
|
+
* embedding provider is attached. Default false: when a provider is set,
|
|
734
|
+
* retrieval scores by vector cosine (semantic). Set true to ablate
|
|
735
|
+
* semantic vs. lexical — corresponds to E5 ablation arm `lexical-retrieval`.
|
|
736
|
+
*/
|
|
737
|
+
lexicalRetrieval: z.boolean().default(false),
|
|
738
|
+
/**
|
|
739
|
+
* Enable write-time curation (PR-D2): near-dup merge on add(), helpfulness
|
|
740
|
+
* counters, prune pass in maintenance, helpfulness-weighted injection re-rank.
|
|
741
|
+
* Default true. Set false to restore append-only behavior (ablation arm
|
|
742
|
+
* `append-only`).
|
|
743
|
+
*/
|
|
744
|
+
curation: z.boolean().default(true),
|
|
745
|
+
/**
|
|
746
|
+
* Surface applicability conditions (situations + antiPatterns) at injection
|
|
747
|
+
* time so the agent sees "Apply when:" / "Do NOT apply when:" alongside the
|
|
748
|
+
* strategy and tactics. Default true — this is the fix. Set false to
|
|
749
|
+
* reproduce old behavior (ablation arm: no-applicability-injection).
|
|
750
|
+
*/
|
|
751
|
+
injectApplicability: z.boolean().default(true),
|
|
752
|
+
/**
|
|
753
|
+
* Use embedding cosine similarity for anti-pattern exclusion at retrieval
|
|
754
|
+
* time when an embedding provider is attached. Default true. When false,
|
|
755
|
+
* falls back to the legacy lexical textSimilarity > 0.7 guard.
|
|
756
|
+
*/
|
|
757
|
+
semanticAntiPatterns: z.boolean().default(true),
|
|
758
|
+
/**
|
|
759
|
+
* F6: Update playbook helpful/harmful counters via INJECTION-PRESENCE +
|
|
760
|
+
* TASK OUTCOME (relevance-weighted), rather than lexical usage detection.
|
|
761
|
+
*
|
|
762
|
+
* When true (default), for each task solve with injected playbooks, each
|
|
763
|
+
* playbook's successCount/failureCount is incremented by its relevance
|
|
764
|
+
* share (score_i / sum(score_j)) times the task outcome. This fixes the
|
|
765
|
+
* curation loop for DISTILLED playbooks whose abstract tactics never
|
|
766
|
+
* lexically match concrete actions, so wasUsed was always false and counters
|
|
767
|
+
* never updated.
|
|
768
|
+
*
|
|
769
|
+
* When false, falls back to the old wasUsed-gated recordSuccess/recordFailure
|
|
770
|
+
* path (lexical usage detection; ablation arm).
|
|
771
|
+
*
|
|
772
|
+
* Default true (this is the fix).
|
|
773
|
+
*/
|
|
774
|
+
injectionPresenceCredit: z.boolean().default(true),
|
|
775
|
+
/**
|
|
776
|
+
* ADDITIVE LEARNING (default ON as of 2026-07-06). When ON, procedural-memory
|
|
777
|
+
* consolidation REFINES/REUSES existing playbooks instead of minting a unique
|
|
778
|
+
* `distilled-<uuid>` per trajectory:
|
|
779
|
+
* FIX 1 — at dream distill time, a freshly distilled playbook that is
|
|
780
|
+
* sufficiently similar (see `learning.additiveMergeThreshold`) to an
|
|
781
|
+
* existing one (this-batch OR library) is merged into it (append
|
|
782
|
+
* createdFrom, fold guidance/anti-patterns, accumulate counters, bump
|
|
783
|
+
* version) rather than added as a new row.
|
|
784
|
+
* FIX 2 — each solve records a frontier/live outcome for the playbooks
|
|
785
|
+
* that were actually INJECTED (served set), so reused playbooks
|
|
786
|
+
* accumulate frontier rows aligned with hybrid retrieval — not just the
|
|
787
|
+
* legacy 0.3 lexical instant-loop match — feeding a non-sparse mutation
|
|
788
|
+
* gate.
|
|
789
|
+
* Set `false` (eval `--no-additive`) to restore the legacy "proliferating"
|
|
790
|
+
* behavior (a new unique `distilled-<uuid>` per trajectory) for A/B arms.
|
|
791
|
+
*/
|
|
792
|
+
additiveConsolidation: z.boolean().default(true),
|
|
793
|
+
/**
|
|
794
|
+
* F5: Emit a USE-TIME relevance-gating instruction alongside injected
|
|
795
|
+
* candidate playbooks, telling the agent to self-filter against the
|
|
796
|
+
* "Apply when:" / "Do NOT apply when:" conditions before using any
|
|
797
|
+
* candidate. Only emitted when there is ≥1 candidate playbook AND
|
|
798
|
+
* injectApplicability is on.
|
|
799
|
+
*
|
|
800
|
+
* Default true. Set false to reproduce old behavior (ablation arm:
|
|
801
|
+
* no-relevance-gating).
|
|
802
|
+
*/
|
|
803
|
+
relevanceGating: z.boolean().default(true),
|
|
804
|
+
});
|
|
805
|
+
/**
|
|
806
|
+
* Dreaming / consolidation configuration.
|
|
807
|
+
*
|
|
808
|
+
* Controls when and how accumulated trajectories are consolidated. Learning is
|
|
809
|
+
* always decoupled: consolidation happens only via `dream()` — explicitly, on a
|
|
810
|
+
* schedule, or at close.
|
|
811
|
+
*/
|
|
812
|
+
export const DreamSchedulerConfigSchema = z.object({
|
|
813
|
+
/** Arm an in-process idle timer that dreams after `idleMs` of no activity. */
|
|
814
|
+
enabled: z.boolean().default(false),
|
|
815
|
+
/** Idle debounce before an auto-dream fires (ms). */
|
|
816
|
+
idleMs: z.number().int().positive().default(30_000),
|
|
817
|
+
});
|
|
818
|
+
export const DreamConfigSchema = z.object({
|
|
819
|
+
/** After each solve/process call, run a dream synchronously (eval determinism). */
|
|
820
|
+
consolidateInline: z.boolean().default(false),
|
|
821
|
+
/** Pending-row count at/above which the coordinator considers a dream due. */
|
|
822
|
+
countThreshold: z.number().int().positive().default(10),
|
|
823
|
+
/** Oldest-pending age at/above which a dream is considered overdue (ms). */
|
|
824
|
+
maxStalenessMs: z.number().int().positive().default(3_600_000),
|
|
825
|
+
/** Max rows claimed per internal batch within a single dream. */
|
|
826
|
+
maxRowsPerDream: z.number().int().positive().default(200),
|
|
827
|
+
/** Max internal batches a single dream will drain before stopping. */
|
|
828
|
+
maxBatchesPerDream: z.number().int().positive().default(50),
|
|
829
|
+
/** Row lease TTL while a dream holds claimed rows (ms). */
|
|
830
|
+
leaseTtlMs: z.number().int().positive().default(900_000),
|
|
831
|
+
/** Attempts before a repeatedly-failing row is parked as `failed`. */
|
|
832
|
+
maxAttempts: z.number().int().positive().default(3),
|
|
833
|
+
/** In-process idle scheduler. */
|
|
834
|
+
scheduler: DreamSchedulerConfigSchema.default({}),
|
|
835
|
+
});
|
|
836
|
+
/**
|
|
837
|
+
* Validation control plane for mechanism/eval runs.
|
|
838
|
+
*
|
|
839
|
+
* This is intentionally separate from production feature flags. Validation
|
|
840
|
+
* arms need to isolate retrieval, serving, write, and maintenance behavior
|
|
841
|
+
* without silently changing the default runtime.
|
|
842
|
+
*/
|
|
843
|
+
export const ValidationRetrievalChannelSchema = z.enum([
|
|
844
|
+
'experiences',
|
|
845
|
+
'knowledge',
|
|
846
|
+
'playbooks',
|
|
847
|
+
'metaPlaybooks',
|
|
848
|
+
'shortTerm',
|
|
849
|
+
]);
|
|
850
|
+
export const ValidationWriteChannelSchema = z.enum([
|
|
851
|
+
'experience',
|
|
852
|
+
'knowledgeNote',
|
|
853
|
+
'playbook',
|
|
854
|
+
'metaPlaybook',
|
|
855
|
+
'reflexion',
|
|
856
|
+
'causal',
|
|
857
|
+
'frontier',
|
|
858
|
+
'diagnosticOnly',
|
|
859
|
+
]);
|
|
860
|
+
export const ValidationMutationModeSchema = z.enum(['frozen', 'active', 'candidate']);
|
|
861
|
+
export const ValidationMaintenanceMaskSchema = z.object({
|
|
862
|
+
/** Write-time curation and prune maintenance. */
|
|
863
|
+
curation: z.boolean().default(true),
|
|
864
|
+
/** Pareto/replay-gated two-parent merge proposals. */
|
|
865
|
+
mergeProposing: z.boolean().default(true),
|
|
866
|
+
/** Single-parent reflective mutation proposals. */
|
|
867
|
+
reflectiveMutation: z.boolean().default(true),
|
|
868
|
+
/** Dream/batch extraction may create new learned artifacts. */
|
|
869
|
+
extraction: z.boolean().default(true),
|
|
870
|
+
/** Scheduler-driven maintenance/dream runs. */
|
|
871
|
+
scheduling: z.boolean().default(true),
|
|
872
|
+
});
|
|
873
|
+
export const ValidationChannelMasksSchema = z.object({
|
|
874
|
+
retrieval: z
|
|
875
|
+
.array(ValidationRetrievalChannelSchema)
|
|
876
|
+
.default(['experiences', 'knowledge', 'playbooks', 'metaPlaybooks', 'shortTerm']),
|
|
877
|
+
serving: z
|
|
878
|
+
.array(ValidationRetrievalChannelSchema)
|
|
879
|
+
.default(['experiences', 'knowledge', 'playbooks', 'metaPlaybooks', 'shortTerm']),
|
|
880
|
+
write: z
|
|
881
|
+
.array(ValidationWriteChannelSchema)
|
|
882
|
+
.default([
|
|
883
|
+
'experience',
|
|
884
|
+
'knowledgeNote',
|
|
885
|
+
'playbook',
|
|
886
|
+
'metaPlaybook',
|
|
887
|
+
'reflexion',
|
|
888
|
+
'causal',
|
|
889
|
+
'frontier',
|
|
890
|
+
'diagnosticOnly',
|
|
891
|
+
]),
|
|
892
|
+
maintenance: ValidationMaintenanceMaskSchema.default({}),
|
|
893
|
+
});
|
|
894
|
+
export const ValidationConfigSchema = z.object({
|
|
895
|
+
/** Enable validation-specific isolation controls. Production default is off. */
|
|
896
|
+
enabled: z.boolean().default(false),
|
|
897
|
+
/**
|
|
898
|
+
* active: existing direct-commit behavior.
|
|
899
|
+
* frozen: no mutation/merge/curation writes during validation.
|
|
900
|
+
* candidate: proposals are redirected to non-serving candidates (future work).
|
|
901
|
+
*/
|
|
902
|
+
mutationMode: ValidationMutationModeSchema.default('frozen'),
|
|
903
|
+
channelMasks: ValidationChannelMasksSchema.default({}),
|
|
904
|
+
/**
|
|
905
|
+
* Permit cold-start seeding (bundled playbook pack, meta-playbook seeds,
|
|
906
|
+
* meta-strategy priors) under validation. Default false: validation runs
|
|
907
|
+
* start from an explicitly-controlled memory state. The seed-lift A/B
|
|
908
|
+
* (Phase 1 of the seed co-optimization loop) sets this true on the seeded
|
|
909
|
+
* arm so the committed seeds are the *measured variable* rather than an
|
|
910
|
+
* uncontrolled confound.
|
|
911
|
+
*/
|
|
912
|
+
allowSeeds: z.boolean().default(false),
|
|
483
913
|
});
|
|
484
914
|
/**
|
|
485
915
|
* Main Atlas configuration
|
|
@@ -507,8 +937,6 @@ export const AtlasConfigSchema = z.object({
|
|
|
507
937
|
agenticTasks: AgenticTaskRunnerConfigSchema.default({}),
|
|
508
938
|
/** Compute provider configuration */
|
|
509
939
|
compute: ComputeProviderConfigSchema.default({}),
|
|
510
|
-
/** Team-aware learning configuration */
|
|
511
|
-
teamLearning: TeamLearningConfigSchema.default({}),
|
|
512
940
|
/** Knowledge bank configuration */
|
|
513
941
|
knowledgeBank: KnowledgeBankConfigSchema.default({}),
|
|
514
942
|
/** Skill-tree storage configuration */
|
|
@@ -519,6 +947,10 @@ export const AtlasConfigSchema = z.object({
|
|
|
519
947
|
sessionBank: SessionBankConfigSchema.default({}),
|
|
520
948
|
/** Feature toggles for ruvector-inspired subsystems */
|
|
521
949
|
features: FeaturesConfigSchema.default({}),
|
|
950
|
+
/** Dreaming / consolidation configuration */
|
|
951
|
+
dream: DreamConfigSchema.default({}),
|
|
952
|
+
/** Validation-only mechanism isolation controls. */
|
|
953
|
+
validation: ValidationConfigSchema.default({}),
|
|
522
954
|
});
|
|
523
955
|
/**
|
|
524
956
|
* Create default configuration
|
|
@@ -526,6 +958,50 @@ export const AtlasConfigSchema = z.object({
|
|
|
526
958
|
export function createDefaultConfig(overrides) {
|
|
527
959
|
return AtlasConfigSchema.parse(overrides ?? {});
|
|
528
960
|
}
|
|
961
|
+
export function createValidationConfig(overrides) {
|
|
962
|
+
return ValidationConfigSchema.parse(overrides ?? {});
|
|
963
|
+
}
|
|
964
|
+
/**
|
|
965
|
+
* Apply validation controls to the runtime-facing config.
|
|
966
|
+
*
|
|
967
|
+
* This does not enable validation on its own. When validation is enabled, the
|
|
968
|
+
* maintenance mask gates the corresponding runtime feature flags. Frozen
|
|
969
|
+
* mutation mode additionally disables direct mutation/merge/curation paths.
|
|
970
|
+
*
|
|
971
|
+
* Validation also disables ALL cold-start seeding (bundled packs,
|
|
972
|
+
* meta-playbooks, routing priors) unless `validation.allowSeeds` is set:
|
|
973
|
+
* validation runs must start from an explicitly-controlled memory state, so
|
|
974
|
+
* any warmth is injected by the harness's own levers, never implicitly by
|
|
975
|
+
* defaults. `allowSeeds: true` is the explicit lever for seed-lift A/Bs.
|
|
976
|
+
*/
|
|
977
|
+
export function applyValidationControls(config) {
|
|
978
|
+
if (!config.validation.enabled)
|
|
979
|
+
return config;
|
|
980
|
+
const maintenance = config.validation.channelMasks.maintenance;
|
|
981
|
+
const features = {
|
|
982
|
+
...config.features,
|
|
983
|
+
curation: config.features.curation && maintenance.curation,
|
|
984
|
+
mergeProposing: config.features.mergeProposing && maintenance.mergeProposing,
|
|
985
|
+
reflectiveMutation: config.features.reflectiveMutation && maintenance.reflectiveMutation,
|
|
986
|
+
dreamQueue: config.features.dreamQueue && maintenance.scheduling && maintenance.extraction,
|
|
987
|
+
};
|
|
988
|
+
if (config.validation.mutationMode === 'frozen') {
|
|
989
|
+
features.curation = false;
|
|
990
|
+
features.mergeProposing = false;
|
|
991
|
+
features.reflectiveMutation = false;
|
|
992
|
+
features.dreamQueue = false;
|
|
993
|
+
features.reflexion = false;
|
|
994
|
+
}
|
|
995
|
+
if (config.validation.allowSeeds) {
|
|
996
|
+
return { ...config, features };
|
|
997
|
+
}
|
|
998
|
+
return {
|
|
999
|
+
...config,
|
|
1000
|
+
features,
|
|
1001
|
+
curatedPlaybooks: { ...config.curatedPlaybooks, loadBundledSeedPack: false },
|
|
1002
|
+
memory: { ...config.memory, seedMetaPlaybooks: false, seedMetaStrategies: false },
|
|
1003
|
+
};
|
|
1004
|
+
}
|
|
529
1005
|
/**
|
|
530
1006
|
* Merge configurations
|
|
531
1007
|
*/
|
|
@@ -533,18 +1009,37 @@ export function mergeConfig(base, overrides) {
|
|
|
533
1009
|
return AtlasConfigSchema.parse({
|
|
534
1010
|
learning: { ...base.learning, ...overrides.learning },
|
|
535
1011
|
router: { ...base.router, ...overrides.router },
|
|
536
|
-
memory: {
|
|
1012
|
+
memory: {
|
|
1013
|
+
...base.memory,
|
|
1014
|
+
...overrides.memory,
|
|
1015
|
+
capacity: { ...base.memory.capacity, ...overrides.memory?.capacity },
|
|
1016
|
+
playbookRetrieval: {
|
|
1017
|
+
...base.memory.playbookRetrieval,
|
|
1018
|
+
...overrides.memory?.playbookRetrieval,
|
|
1019
|
+
},
|
|
1020
|
+
},
|
|
537
1021
|
storage: { ...base.storage, ...overrides.storage },
|
|
538
1022
|
embedding: { ...base.embedding, ...overrides.embedding },
|
|
539
1023
|
execution: { ...base.execution, ...overrides.execution },
|
|
540
1024
|
refinement: { ...base.refinement, ...overrides.refinement },
|
|
541
|
-
skillLibrary: {
|
|
1025
|
+
skillLibrary: {
|
|
1026
|
+
...base.skillLibrary,
|
|
1027
|
+
...overrides.skillLibrary,
|
|
1028
|
+
promotion: { ...base.skillLibrary.promotion, ...overrides.skillLibrary?.promotion },
|
|
1029
|
+
limits: { ...base.skillLibrary.limits, ...overrides.skillLibrary?.limits },
|
|
1030
|
+
context: { ...base.skillLibrary.context, ...overrides.skillLibrary?.context },
|
|
1031
|
+
demotion: { ...base.skillLibrary.demotion, ...overrides.skillLibrary?.demotion },
|
|
1032
|
+
retrieval: { ...base.skillLibrary.retrieval, ...overrides.skillLibrary?.retrieval },
|
|
1033
|
+
},
|
|
542
1034
|
mcp: { ...base.mcp, ...overrides.mcp },
|
|
543
1035
|
agenticTasks: { ...base.agenticTasks, ...overrides.agenticTasks },
|
|
544
1036
|
compute: { ...base.compute, ...overrides.compute },
|
|
545
|
-
teamLearning: { ...base.teamLearning, ...overrides.teamLearning },
|
|
546
1037
|
knowledgeBank: { ...base.knowledgeBank, ...overrides.knowledgeBank },
|
|
547
|
-
skillTree: {
|
|
1038
|
+
skillTree: {
|
|
1039
|
+
...base.skillTree,
|
|
1040
|
+
...overrides.skillTree,
|
|
1041
|
+
sharedBank: { ...base.skillTree.sharedBank, ...overrides.skillTree?.sharedBank },
|
|
1042
|
+
},
|
|
548
1043
|
curatedPlaybooks: {
|
|
549
1044
|
...base.curatedPlaybooks,
|
|
550
1045
|
...overrides.curatedPlaybooks,
|
|
@@ -552,6 +1047,23 @@ export function mergeConfig(base, overrides) {
|
|
|
552
1047
|
},
|
|
553
1048
|
sessionBank: { ...base.sessionBank, ...overrides.sessionBank },
|
|
554
1049
|
features: { ...base.features, ...overrides.features },
|
|
1050
|
+
dream: {
|
|
1051
|
+
...base.dream,
|
|
1052
|
+
...overrides.dream,
|
|
1053
|
+
scheduler: { ...base.dream.scheduler, ...overrides.dream?.scheduler },
|
|
1054
|
+
},
|
|
1055
|
+
validation: {
|
|
1056
|
+
...base.validation,
|
|
1057
|
+
...overrides.validation,
|
|
1058
|
+
channelMasks: {
|
|
1059
|
+
...base.validation.channelMasks,
|
|
1060
|
+
...overrides.validation?.channelMasks,
|
|
1061
|
+
maintenance: {
|
|
1062
|
+
...base.validation.channelMasks.maintenance,
|
|
1063
|
+
...overrides.validation?.channelMasks?.maintenance,
|
|
1064
|
+
},
|
|
1065
|
+
},
|
|
1066
|
+
},
|
|
555
1067
|
});
|
|
556
1068
|
}
|
|
557
1069
|
//# sourceMappingURL=config.js.map
|