moflo 4.8.31 → 4.8.32
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/bin/generate-code-map.mjs +1 -1
- package/bin/index-guidance.mjs +1 -1
- package/bin/index-tests.mjs +1 -1
- package/bin/setup-project.mjs +1 -1
- package/package.json +6 -7
- package/src/@claude-flow/cli/package.json +106 -106
- package/.claude/agents/browser/browser-agent.yaml +0 -182
- package/.claude/agents/database-specialist.yaml +0 -21
- package/.claude/agents/index.yaml +0 -17
- package/.claude/agents/project-coordinator.yaml +0 -15
- package/.claude/agents/python-specialist.yaml +0 -21
- package/.claude/agents/security-auditor.yaml +0 -20
- package/.claude/agents/typescript-specialist.yaml +0 -21
- package/.claude/checkpoints/1767754460.json +0 -8
- package/.claude/config/v3-dependency-optimization.json +0 -266
- package/.claude/config/v3-performance-targets.json +0 -251
- package/.claude/guidance/moflo-bootstrap.md +0 -129
- package/.claude/mcp.json +0 -13
- package/.claude/settings.json +0 -351
- package/.claude/settings.local.json +0 -18
- package/.claude/skills/agentdb-advanced/SKILL.md +0 -550
- package/.claude/skills/agentdb-learning/SKILL.md +0 -545
- package/.claude/skills/agentdb-memory-patterns/SKILL.md +0 -339
- package/.claude/skills/agentdb-optimization/SKILL.md +0 -509
- package/.claude/skills/agentdb-vector-search/SKILL.md +0 -339
- package/.claude/skills/browser/SKILL.md +0 -204
- package/.claude/skills/fl/SKILL.md +0 -583
- package/.claude/skills/flo/SKILL.md +0 -583
- package/.claude/skills/github-code-review/SKILL.md +0 -1140
- package/.claude/skills/github-multi-repo/SKILL.md +0 -874
- package/.claude/skills/github-project-management/SKILL.md +0 -1277
- package/.claude/skills/github-release-management/SKILL.md +0 -1081
- package/.claude/skills/github-workflow-automation/SKILL.md +0 -1065
- package/.claude/skills/hive-mind-advanced/SKILL.md +0 -712
- package/.claude/skills/hooks-automation/SKILL.md +0 -1201
- package/.claude/skills/pair-programming/SKILL.md +0 -1202
- package/.claude/skills/performance-analysis/SKILL.md +0 -563
- package/.claude/skills/reasoningbank-agentdb/SKILL.md +0 -446
- package/.claude/skills/reasoningbank-intelligence/SKILL.md +0 -201
- package/.claude/skills/skill-builder/SKILL.md +0 -910
- package/.claude/skills/sparc-methodology/SKILL.md +0 -1115
- package/.claude/skills/stream-chain/SKILL.md +0 -563
- package/.claude/skills/swarm-advanced/SKILL.md +0 -973
- package/.claude/skills/swarm-orchestration/SKILL.md +0 -179
- package/.claude/skills/v3-cli-modernization/SKILL.md +0 -872
- package/.claude/skills/v3-core-implementation/SKILL.md +0 -797
- package/.claude/skills/v3-ddd-architecture/SKILL.md +0 -442
- package/.claude/skills/v3-integration-deep/SKILL.md +0 -241
- package/.claude/skills/v3-mcp-optimization/SKILL.md +0 -777
- package/.claude/skills/v3-memory-unification/SKILL.md +0 -174
- package/.claude/skills/v3-performance-optimization/SKILL.md +0 -390
- package/.claude/skills/v3-security-overhaul/SKILL.md +0 -82
- package/.claude/skills/v3-swarm-coordination/SKILL.md +0 -340
- package/.claude/skills/verification-quality/SKILL.md +0 -649
- package/.claude/skills/worker-benchmarks/skill.md +0 -135
- package/.claude/skills/worker-integration/skill.md +0 -154
- package/.claude/workflow-state.json +0 -9
- package/src/@claude-flow/cli/dist/src/appliance/gguf-engine.d.ts +0 -91
- package/src/@claude-flow/cli/dist/src/appliance/ruvllm-bridge.d.ts +0 -102
- package/src/@claude-flow/cli/dist/src/appliance/rvfa-builder.d.ts +0 -44
- package/src/@claude-flow/cli/dist/src/appliance/rvfa-distribution.d.ts +0 -97
- package/src/@claude-flow/cli/dist/src/appliance/rvfa-format.d.ts +0 -111
- package/src/@claude-flow/cli/dist/src/appliance/rvfa-runner.d.ts +0 -69
- package/src/@claude-flow/cli/dist/src/appliance/rvfa-signing.d.ts +0 -123
- package/src/@claude-flow/cli/dist/src/benchmarks/pretrain/index.d.ts +0 -58
- package/src/@claude-flow/cli/dist/src/commands/agent.d.ts +0 -8
- package/src/@claude-flow/cli/dist/src/commands/analyze.d.ts +0 -19
- package/src/@claude-flow/cli/dist/src/commands/appliance-advanced.d.ts +0 -9
- package/src/@claude-flow/cli/dist/src/commands/appliance.d.ts +0 -8
- package/src/@claude-flow/cli/dist/src/commands/benchmark.d.ts +0 -10
- package/src/@claude-flow/cli/dist/src/commands/claims.d.ts +0 -10
- package/src/@claude-flow/cli/dist/src/commands/completions.d.ts +0 -10
- package/src/@claude-flow/cli/dist/src/commands/config.d.ts +0 -8
- package/src/@claude-flow/cli/dist/src/commands/daemon.d.ts +0 -8
- package/src/@claude-flow/cli/dist/src/commands/deployment.d.ts +0 -10
- package/src/@claude-flow/cli/dist/src/commands/diagnose.d.ts +0 -16
- package/src/@claude-flow/cli/dist/src/commands/doctor.d.ts +0 -10
- package/src/@claude-flow/cli/dist/src/commands/embeddings.d.ts +0 -18
- package/src/@claude-flow/cli/dist/src/commands/gate.d.ts +0 -23
- package/src/@claude-flow/cli/dist/src/commands/github.d.ts +0 -12
- package/src/@claude-flow/cli/dist/src/commands/guidance.d.ts +0 -8
- package/src/@claude-flow/cli/dist/src/commands/hive-mind.d.ts +0 -11
- package/src/@claude-flow/cli/dist/src/commands/hooks.d.ts +0 -8
- package/src/@claude-flow/cli/dist/src/commands/index.d.ts +0 -115
- package/src/@claude-flow/cli/dist/src/commands/init.d.ts +0 -8
- package/src/@claude-flow/cli/dist/src/commands/issues.d.ts +0 -21
- package/src/@claude-flow/cli/dist/src/commands/mcp.d.ts +0 -11
- package/src/@claude-flow/cli/dist/src/commands/memory.d.ts +0 -8
- package/src/@claude-flow/cli/dist/src/commands/migrate.d.ts +0 -8
- package/src/@claude-flow/cli/dist/src/commands/neural.d.ts +0 -10
- package/src/@claude-flow/cli/dist/src/commands/orc.d.ts +0 -21
- package/src/@claude-flow/cli/dist/src/commands/performance.d.ts +0 -10
- package/src/@claude-flow/cli/dist/src/commands/plugins.d.ts +0 -11
- package/src/@claude-flow/cli/dist/src/commands/process.d.ts +0 -10
- package/src/@claude-flow/cli/dist/src/commands/progress.d.ts +0 -11
- package/src/@claude-flow/cli/dist/src/commands/providers.d.ts +0 -10
- package/src/@claude-flow/cli/dist/src/commands/route.d.ts +0 -16
- package/src/@claude-flow/cli/dist/src/commands/ruvector/backup.d.ts +0 -11
- package/src/@claude-flow/cli/dist/src/commands/ruvector/benchmark.d.ts +0 -11
- package/src/@claude-flow/cli/dist/src/commands/ruvector/import.d.ts +0 -18
- package/src/@claude-flow/cli/dist/src/commands/ruvector/index.d.ts +0 -29
- package/src/@claude-flow/cli/dist/src/commands/ruvector/init.d.ts +0 -11
- package/src/@claude-flow/cli/dist/src/commands/ruvector/migrate.d.ts +0 -11
- package/src/@claude-flow/cli/dist/src/commands/ruvector/optimize.d.ts +0 -11
- package/src/@claude-flow/cli/dist/src/commands/ruvector/setup.d.ts +0 -18
- package/src/@claude-flow/cli/dist/src/commands/ruvector/status.d.ts +0 -11
- package/src/@claude-flow/cli/dist/src/commands/security.d.ts +0 -10
- package/src/@claude-flow/cli/dist/src/commands/session.d.ts +0 -8
- package/src/@claude-flow/cli/dist/src/commands/start.d.ts +0 -8
- package/src/@claude-flow/cli/dist/src/commands/status.d.ts +0 -8
- package/src/@claude-flow/cli/dist/src/commands/swarm.d.ts +0 -8
- package/src/@claude-flow/cli/dist/src/commands/task.d.ts +0 -8
- package/src/@claude-flow/cli/dist/src/commands/transfer-store.d.ts +0 -13
- package/src/@claude-flow/cli/dist/src/commands/update.d.ts +0 -8
- package/src/@claude-flow/cli/dist/src/commands/workflow.d.ts +0 -8
- package/src/@claude-flow/cli/dist/src/config/moflo-config.d.ts +0 -93
- package/src/@claude-flow/cli/dist/src/config-adapter.d.ts +0 -15
- package/src/@claude-flow/cli/dist/src/index.d.ts +0 -81
- package/src/@claude-flow/cli/dist/src/infrastructure/in-memory-repositories.d.ts +0 -68
- package/src/@claude-flow/cli/dist/src/init/claudemd-generator.d.ts +0 -30
- package/src/@claude-flow/cli/dist/src/init/executor.d.ts +0 -41
- package/src/@claude-flow/cli/dist/src/init/helpers-generator.d.ts +0 -51
- package/src/@claude-flow/cli/dist/src/init/index.d.ts +0 -13
- package/src/@claude-flow/cli/dist/src/init/mcp-generator.d.ts +0 -29
- package/src/@claude-flow/cli/dist/src/init/moflo-init.d.ts +0 -31
- package/src/@claude-flow/cli/dist/src/init/settings-generator.d.ts +0 -14
- package/src/@claude-flow/cli/dist/src/init/statusline-generator.d.ts +0 -28
- package/src/@claude-flow/cli/dist/src/init/types.d.ts +0 -285
- package/src/@claude-flow/cli/dist/src/mcp-client.d.ts +0 -92
- package/src/@claude-flow/cli/dist/src/mcp-server.d.ts +0 -161
- package/src/@claude-flow/cli/dist/src/mcp-tools/agent-tools.d.ts +0 -9
- package/src/@claude-flow/cli/dist/src/mcp-tools/agentdb-tools.d.ts +0 -30
- package/src/@claude-flow/cli/dist/src/mcp-tools/analyze-tools.d.ts +0 -38
- package/src/@claude-flow/cli/dist/src/mcp-tools/auto-install.d.ts +0 -83
- package/src/@claude-flow/cli/dist/src/mcp-tools/browser-tools.d.ts +0 -13
- package/src/@claude-flow/cli/dist/src/mcp-tools/claims-tools.d.ts +0 -12
- package/src/@claude-flow/cli/dist/src/mcp-tools/config-tools.d.ts +0 -8
- package/src/@claude-flow/cli/dist/src/mcp-tools/coordination-tools.d.ts +0 -13
- package/src/@claude-flow/cli/dist/src/mcp-tools/daa-tools.d.ts +0 -13
- package/src/@claude-flow/cli/dist/src/mcp-tools/embeddings-tools.d.ts +0 -9
- package/src/@claude-flow/cli/dist/src/mcp-tools/github-tools.d.ts +0 -13
- package/src/@claude-flow/cli/dist/src/mcp-tools/hive-mind-tools.d.ts +0 -8
- package/src/@claude-flow/cli/dist/src/mcp-tools/hooks-tools.d.ts +0 -44
- package/src/@claude-flow/cli/dist/src/mcp-tools/index.d.ts +0 -23
- package/src/@claude-flow/cli/dist/src/mcp-tools/memory-tools.d.ts +0 -14
- package/src/@claude-flow/cli/dist/src/mcp-tools/neural-tools.d.ts +0 -16
- package/src/@claude-flow/cli/dist/src/mcp-tools/performance-tools.d.ts +0 -16
- package/src/@claude-flow/cli/dist/src/mcp-tools/progress-tools.d.ts +0 -14
- package/src/@claude-flow/cli/dist/src/mcp-tools/security-tools.d.ts +0 -18
- package/src/@claude-flow/cli/dist/src/mcp-tools/session-tools.d.ts +0 -8
- package/src/@claude-flow/cli/dist/src/mcp-tools/swarm-tools.d.ts +0 -8
- package/src/@claude-flow/cli/dist/src/mcp-tools/system-tools.d.ts +0 -13
- package/src/@claude-flow/cli/dist/src/mcp-tools/task-tools.d.ts +0 -8
- package/src/@claude-flow/cli/dist/src/mcp-tools/terminal-tools.d.ts +0 -13
- package/src/@claude-flow/cli/dist/src/mcp-tools/transfer-tools.d.ts +0 -14
- package/src/@claude-flow/cli/dist/src/mcp-tools/types.d.ts +0 -31
- package/src/@claude-flow/cli/dist/src/mcp-tools/workflow-tools.d.ts +0 -8
- package/src/@claude-flow/cli/dist/src/memory/ewc-consolidation.d.ts +0 -271
- package/src/@claude-flow/cli/dist/src/memory/intelligence.d.ts +0 -285
- package/src/@claude-flow/cli/dist/src/memory/memory-bridge.d.ts +0 -413
- package/src/@claude-flow/cli/dist/src/memory/memory-initializer.d.ts +0 -405
- package/src/@claude-flow/cli/dist/src/memory/sona-optimizer.d.ts +0 -227
- package/src/@claude-flow/cli/dist/src/output.d.ts +0 -133
- package/src/@claude-flow/cli/dist/src/parser.d.ts +0 -51
- package/src/@claude-flow/cli/dist/src/plugins/manager.d.ts +0 -133
- package/src/@claude-flow/cli/dist/src/plugins/store/discovery.d.ts +0 -88
- package/src/@claude-flow/cli/dist/src/plugins/store/index.d.ts +0 -76
- package/src/@claude-flow/cli/dist/src/plugins/store/search.d.ts +0 -46
- package/src/@claude-flow/cli/dist/src/plugins/store/types.d.ts +0 -274
- package/src/@claude-flow/cli/dist/src/plugins/tests/demo-plugin-store.d.ts +0 -7
- package/src/@claude-flow/cli/dist/src/plugins/tests/standalone-test.d.ts +0 -12
- package/src/@claude-flow/cli/dist/src/plugins/tests/test-plugin-store.d.ts +0 -7
- package/src/@claude-flow/cli/dist/src/production/circuit-breaker.d.ts +0 -101
- package/src/@claude-flow/cli/dist/src/production/error-handler.d.ts +0 -92
- package/src/@claude-flow/cli/dist/src/production/index.d.ts +0 -23
- package/src/@claude-flow/cli/dist/src/production/monitoring.d.ts +0 -161
- package/src/@claude-flow/cli/dist/src/production/rate-limiter.d.ts +0 -80
- package/src/@claude-flow/cli/dist/src/production/retry.d.ts +0 -48
- package/src/@claude-flow/cli/dist/src/prompt.d.ts +0 -44
- package/src/@claude-flow/cli/dist/src/runtime/headless.d.ts +0 -60
- package/src/@claude-flow/cli/dist/src/ruvector/ast-analyzer.d.ts +0 -67
- package/src/@claude-flow/cli/dist/src/ruvector/coverage-router.d.ts +0 -160
- package/src/@claude-flow/cli/dist/src/ruvector/coverage-tools.d.ts +0 -33
- package/src/@claude-flow/cli/dist/src/ruvector/diff-classifier.d.ts +0 -175
- package/src/@claude-flow/cli/dist/src/ruvector/enhanced-model-router.d.ts +0 -146
- package/src/@claude-flow/cli/dist/src/ruvector/flash-attention.d.ts +0 -195
- package/src/@claude-flow/cli/dist/src/ruvector/graph-analyzer.d.ts +0 -187
- package/src/@claude-flow/cli/dist/src/ruvector/index.d.ts +0 -34
- package/src/@claude-flow/cli/dist/src/ruvector/lora-adapter.d.ts +0 -218
- package/src/@claude-flow/cli/dist/src/ruvector/model-router.d.ts +0 -220
- package/src/@claude-flow/cli/dist/src/ruvector/moe-router.d.ts +0 -206
- package/src/@claude-flow/cli/dist/src/ruvector/q-learning-router.d.ts +0 -211
- package/src/@claude-flow/cli/dist/src/ruvector/semantic-router.d.ts +0 -77
- package/src/@claude-flow/cli/dist/src/ruvector/vector-db.d.ts +0 -69
- package/src/@claude-flow/cli/dist/src/services/agent-router.d.ts +0 -63
- package/src/@claude-flow/cli/dist/src/services/agentic-flow-bridge.d.ts +0 -50
- package/src/@claude-flow/cli/dist/src/services/claim-service.d.ts +0 -204
- package/src/@claude-flow/cli/dist/src/services/container-worker-pool.d.ts +0 -197
- package/src/@claude-flow/cli/dist/src/services/daemon-lock.d.ts +0 -60
- package/src/@claude-flow/cli/dist/src/services/headless-worker-executor.d.ts +0 -304
- package/src/@claude-flow/cli/dist/src/services/index.d.ts +0 -13
- package/src/@claude-flow/cli/dist/src/services/learning-service.d.ts +0 -161
- package/src/@claude-flow/cli/dist/src/services/moflo-require.d.ts +0 -34
- package/src/@claude-flow/cli/dist/src/services/registry-api.d.ts +0 -58
- package/src/@claude-flow/cli/dist/src/services/ruvector-training.d.ts +0 -214
- package/src/@claude-flow/cli/dist/src/services/worker-daemon.d.ts +0 -225
- package/src/@claude-flow/cli/dist/src/services/worker-queue.d.ts +0 -194
- package/src/@claude-flow/cli/dist/src/services/workflow-gate.d.ts +0 -88
- package/src/@claude-flow/cli/dist/src/suggest.d.ts +0 -53
- package/src/@claude-flow/cli/dist/src/transfer/anonymization/index.d.ts +0 -25
- package/src/@claude-flow/cli/dist/src/transfer/deploy-seraphine.d.ts +0 -13
- package/src/@claude-flow/cli/dist/src/transfer/export.d.ts +0 -25
- package/src/@claude-flow/cli/dist/src/transfer/index.d.ts +0 -12
- package/src/@claude-flow/cli/dist/src/transfer/ipfs/client.d.ts +0 -109
- package/src/@claude-flow/cli/dist/src/transfer/ipfs/upload.d.ts +0 -95
- package/src/@claude-flow/cli/dist/src/transfer/models/seraphine.d.ts +0 -72
- package/src/@claude-flow/cli/dist/src/transfer/serialization/cfp.d.ts +0 -49
- package/src/@claude-flow/cli/dist/src/transfer/storage/gcs.d.ts +0 -82
- package/src/@claude-flow/cli/dist/src/transfer/storage/index.d.ts +0 -6
- package/src/@claude-flow/cli/dist/src/transfer/store/discovery.d.ts +0 -84
- package/src/@claude-flow/cli/dist/src/transfer/store/download.d.ts +0 -70
- package/src/@claude-flow/cli/dist/src/transfer/store/index.d.ts +0 -84
- package/src/@claude-flow/cli/dist/src/transfer/store/publish.d.ts +0 -76
- package/src/@claude-flow/cli/dist/src/transfer/store/registry.d.ts +0 -58
- package/src/@claude-flow/cli/dist/src/transfer/store/search.d.ts +0 -54
- package/src/@claude-flow/cli/dist/src/transfer/store/tests/standalone-test.d.ts +0 -12
- package/src/@claude-flow/cli/dist/src/transfer/store/types.d.ts +0 -193
- package/src/@claude-flow/cli/dist/src/transfer/test-seraphine.d.ts +0 -6
- package/src/@claude-flow/cli/dist/src/transfer/tests/test-store.d.ts +0 -7
- package/src/@claude-flow/cli/dist/src/transfer/types.d.ts +0 -245
- package/src/@claude-flow/cli/dist/src/types.d.ts +0 -198
- package/src/@claude-flow/cli/dist/src/update/checker.d.ts +0 -34
- package/src/@claude-flow/cli/dist/src/update/executor.d.ts +0 -32
- package/src/@claude-flow/cli/dist/src/update/index.d.ts +0 -33
- package/src/@claude-flow/cli/dist/src/update/rate-limiter.d.ts +0 -20
- package/src/@claude-flow/cli/dist/src/update/validator.d.ts +0 -17
- package/src/@claude-flow/guidance/dist/adversarial.d.ts +0 -284
- package/src/@claude-flow/guidance/dist/analyzer.d.ts +0 -530
- package/src/@claude-flow/guidance/dist/artifacts.d.ts +0 -283
- package/src/@claude-flow/guidance/dist/authority.d.ts +0 -290
- package/src/@claude-flow/guidance/dist/capabilities.d.ts +0 -209
- package/src/@claude-flow/guidance/dist/coherence.d.ts +0 -233
- package/src/@claude-flow/guidance/dist/compiler.d.ts +0 -87
- package/src/@claude-flow/guidance/dist/conformance-kit.d.ts +0 -225
- package/src/@claude-flow/guidance/dist/continue-gate.d.ts +0 -214
- package/src/@claude-flow/guidance/dist/crypto-utils.d.ts +0 -17
- package/src/@claude-flow/guidance/dist/evolution.d.ts +0 -282
- package/src/@claude-flow/guidance/dist/gates.d.ts +0 -79
- package/src/@claude-flow/guidance/dist/gateway.d.ts +0 -206
- package/src/@claude-flow/guidance/dist/generators.d.ts +0 -153
- package/src/@claude-flow/guidance/dist/headless.d.ts +0 -177
- package/src/@claude-flow/guidance/dist/hooks.d.ts +0 -109
- package/src/@claude-flow/guidance/dist/index.d.ts +0 -205
- package/src/@claude-flow/guidance/dist/ledger.d.ts +0 -162
- package/src/@claude-flow/guidance/dist/manifest-validator.d.ts +0 -289
- package/src/@claude-flow/guidance/dist/memory-gate.d.ts +0 -222
- package/src/@claude-flow/guidance/dist/meta-governance.d.ts +0 -265
- package/src/@claude-flow/guidance/dist/optimizer.d.ts +0 -104
- package/src/@claude-flow/guidance/dist/persistence.d.ts +0 -189
- package/src/@claude-flow/guidance/dist/proof.d.ts +0 -185
- package/src/@claude-flow/guidance/dist/retriever.d.ts +0 -116
- package/src/@claude-flow/guidance/dist/ruvbot-integration.d.ts +0 -370
- package/src/@claude-flow/guidance/dist/temporal.d.ts +0 -426
- package/src/@claude-flow/guidance/dist/trust.d.ts +0 -283
- package/src/@claude-flow/guidance/dist/truth-anchors.d.ts +0 -276
- package/src/@claude-flow/guidance/dist/types.d.ts +0 -378
- package/src/@claude-flow/guidance/dist/uncertainty.d.ts +0 -372
- package/src/@claude-flow/guidance/dist/wasm-kernel.d.ts +0 -48
- package/src/@claude-flow/memory/dist/agent-memory-scope.d.ts +0 -131
- package/src/@claude-flow/memory/dist/agent-memory-scope.test.d.ts +0 -8
- package/src/@claude-flow/memory/dist/agentdb-adapter.d.ts +0 -165
- package/src/@claude-flow/memory/dist/agentdb-backend.d.ts +0 -212
- package/src/@claude-flow/memory/dist/agentdb-backend.test.d.ts +0 -7
- package/src/@claude-flow/memory/dist/application/commands/delete-memory.command.d.ts +0 -65
- package/src/@claude-flow/memory/dist/application/commands/store-memory.command.d.ts +0 -48
- package/src/@claude-flow/memory/dist/application/index.d.ts +0 -12
- package/src/@claude-flow/memory/dist/application/queries/search-memory.query.d.ts +0 -72
- package/src/@claude-flow/memory/dist/application/services/memory-application-service.d.ts +0 -121
- package/src/@claude-flow/memory/dist/auto-memory-bridge.d.ts +0 -226
- package/src/@claude-flow/memory/dist/auto-memory-bridge.test.d.ts +0 -8
- package/src/@claude-flow/memory/dist/benchmark.test.d.ts +0 -2
- package/src/@claude-flow/memory/dist/cache-manager.d.ts +0 -134
- package/src/@claude-flow/memory/dist/controller-registry.d.ts +0 -216
- package/src/@claude-flow/memory/dist/controller-registry.test.d.ts +0 -14
- package/src/@claude-flow/memory/dist/database-provider.d.ts +0 -87
- package/src/@claude-flow/memory/dist/database-provider.test.d.ts +0 -7
- package/src/@claude-flow/memory/dist/domain/entities/memory-entry.d.ts +0 -143
- package/src/@claude-flow/memory/dist/domain/index.d.ts +0 -11
- package/src/@claude-flow/memory/dist/domain/repositories/memory-repository.interface.d.ts +0 -102
- package/src/@claude-flow/memory/dist/domain/services/memory-domain-service.d.ts +0 -105
- package/src/@claude-flow/memory/dist/hnsw-index.d.ts +0 -111
- package/src/@claude-flow/memory/dist/hnsw-lite.d.ts +0 -23
- package/src/@claude-flow/memory/dist/hybrid-backend.d.ts +0 -245
- package/src/@claude-flow/memory/dist/hybrid-backend.test.d.ts +0 -8
- package/src/@claude-flow/memory/dist/index.d.ts +0 -204
- package/src/@claude-flow/memory/dist/infrastructure/index.d.ts +0 -17
- package/src/@claude-flow/memory/dist/infrastructure/repositories/hybrid-memory-repository.d.ts +0 -66
- package/src/@claude-flow/memory/dist/learning-bridge.d.ts +0 -137
- package/src/@claude-flow/memory/dist/learning-bridge.test.d.ts +0 -8
- package/src/@claude-flow/memory/dist/memory-graph.d.ts +0 -100
- package/src/@claude-flow/memory/dist/memory-graph.test.d.ts +0 -8
- package/src/@claude-flow/memory/dist/migration.d.ts +0 -68
- package/src/@claude-flow/memory/dist/persistent-sona.d.ts +0 -144
- package/src/@claude-flow/memory/dist/query-builder.d.ts +0 -211
- package/src/@claude-flow/memory/dist/rvf-backend.d.ts +0 -51
- package/src/@claude-flow/memory/dist/rvf-learning-store.d.ts +0 -139
- package/src/@claude-flow/memory/dist/rvf-migration.d.ts +0 -45
- package/src/@claude-flow/memory/dist/sqlite-backend.d.ts +0 -121
- package/src/@claude-flow/memory/dist/sqljs-backend.d.ts +0 -127
- package/src/@claude-flow/memory/dist/types.d.ts +0 -484
- package/src/@claude-flow/shared/dist/core/config/defaults.d.ts +0 -41
- package/src/@claude-flow/shared/dist/core/config/index.d.ts +0 -8
- package/src/@claude-flow/shared/dist/core/config/loader.d.ts +0 -45
- package/src/@claude-flow/shared/dist/core/config/schema.d.ts +0 -1134
- package/src/@claude-flow/shared/dist/core/config/validator.d.ts +0 -92
- package/src/@claude-flow/shared/dist/core/event-bus.d.ts +0 -31
- package/src/@claude-flow/shared/dist/core/index.d.ts +0 -15
- package/src/@claude-flow/shared/dist/core/interfaces/agent.interface.d.ts +0 -200
- package/src/@claude-flow/shared/dist/core/interfaces/coordinator.interface.d.ts +0 -310
- package/src/@claude-flow/shared/dist/core/interfaces/event.interface.d.ts +0 -224
- package/src/@claude-flow/shared/dist/core/interfaces/index.d.ts +0 -10
- package/src/@claude-flow/shared/dist/core/interfaces/memory.interface.d.ts +0 -298
- package/src/@claude-flow/shared/dist/core/interfaces/task.interface.d.ts +0 -185
- package/src/@claude-flow/shared/dist/core/orchestrator/event-coordinator.d.ts +0 -35
- package/src/@claude-flow/shared/dist/core/orchestrator/health-monitor.d.ts +0 -60
- package/src/@claude-flow/shared/dist/core/orchestrator/index.d.ts +0 -46
- package/src/@claude-flow/shared/dist/core/orchestrator/lifecycle-manager.d.ts +0 -56
- package/src/@claude-flow/shared/dist/core/orchestrator/session-manager.d.ts +0 -83
- package/src/@claude-flow/shared/dist/core/orchestrator/task-manager.d.ts +0 -49
- package/src/@claude-flow/shared/dist/events/domain-events.d.ts +0 -282
- package/src/@claude-flow/shared/dist/events/event-store.d.ts +0 -126
- package/src/@claude-flow/shared/dist/events/event-store.test.d.ts +0 -8
- package/src/@claude-flow/shared/dist/events/example-usage.d.ts +0 -10
- package/src/@claude-flow/shared/dist/events/index.d.ts +0 -21
- package/src/@claude-flow/shared/dist/events/projections.d.ts +0 -177
- package/src/@claude-flow/shared/dist/events/rvf-event-log.d.ts +0 -82
- package/src/@claude-flow/shared/dist/events/state-reconstructor.d.ts +0 -101
- package/src/@claude-flow/shared/dist/events.d.ts +0 -80
- package/src/@claude-flow/shared/dist/hooks/example-usage.d.ts +0 -42
- package/src/@claude-flow/shared/dist/hooks/executor.d.ts +0 -100
- package/src/@claude-flow/shared/dist/hooks/hooks.test.d.ts +0 -9
- package/src/@claude-flow/shared/dist/hooks/index.d.ts +0 -52
- package/src/@claude-flow/shared/dist/hooks/registry.d.ts +0 -133
- package/src/@claude-flow/shared/dist/hooks/safety/bash-safety.d.ts +0 -105
- package/src/@claude-flow/shared/dist/hooks/safety/file-organization.d.ts +0 -144
- package/src/@claude-flow/shared/dist/hooks/safety/git-commit.d.ts +0 -158
- package/src/@claude-flow/shared/dist/hooks/safety/index.d.ts +0 -17
- package/src/@claude-flow/shared/dist/hooks/session-hooks.d.ts +0 -234
- package/src/@claude-flow/shared/dist/hooks/task-hooks.d.ts +0 -163
- package/src/@claude-flow/shared/dist/hooks/types.d.ts +0 -267
- package/src/@claude-flow/shared/dist/hooks/verify-exports.test.d.ts +0 -9
- package/src/@claude-flow/shared/dist/index.d.ts +0 -20
- package/src/@claude-flow/shared/dist/mcp/connection-pool.d.ts +0 -98
- package/src/@claude-flow/shared/dist/mcp/index.d.ts +0 -69
- package/src/@claude-flow/shared/dist/mcp/server.d.ts +0 -166
- package/src/@claude-flow/shared/dist/mcp/session-manager.d.ts +0 -136
- package/src/@claude-flow/shared/dist/mcp/tool-registry.d.ts +0 -178
- package/src/@claude-flow/shared/dist/mcp/transport/http.d.ts +0 -104
- package/src/@claude-flow/shared/dist/mcp/transport/index.d.ts +0 -102
- package/src/@claude-flow/shared/dist/mcp/transport/stdio.d.ts +0 -104
- package/src/@claude-flow/shared/dist/mcp/transport/websocket.d.ts +0 -133
- package/src/@claude-flow/shared/dist/mcp/types.d.ts +0 -438
- package/src/@claude-flow/shared/dist/plugin-interface.d.ts +0 -544
- package/src/@claude-flow/shared/dist/plugin-loader.d.ts +0 -139
- package/src/@claude-flow/shared/dist/plugin-registry.d.ts +0 -183
- package/src/@claude-flow/shared/dist/plugins/index.d.ts +0 -10
- package/src/@claude-flow/shared/dist/plugins/official/hive-mind-plugin.d.ts +0 -106
- package/src/@claude-flow/shared/dist/plugins/official/index.d.ts +0 -10
- package/src/@claude-flow/shared/dist/plugins/official/maestro-plugin.d.ts +0 -121
- package/src/@claude-flow/shared/dist/plugins/types.d.ts +0 -93
- package/src/@claude-flow/shared/dist/resilience/bulkhead.d.ts +0 -105
- package/src/@claude-flow/shared/dist/resilience/circuit-breaker.d.ts +0 -132
- package/src/@claude-flow/shared/dist/resilience/index.d.ts +0 -19
- package/src/@claude-flow/shared/dist/resilience/rate-limiter.d.ts +0 -168
- package/src/@claude-flow/shared/dist/resilience/retry.d.ts +0 -91
- package/src/@claude-flow/shared/dist/security/index.d.ts +0 -10
- package/src/@claude-flow/shared/dist/security/input-validation.d.ts +0 -73
- package/src/@claude-flow/shared/dist/security/secure-random.d.ts +0 -92
- package/src/@claude-flow/shared/dist/services/index.d.ts +0 -7
- package/src/@claude-flow/shared/dist/services/v3-progress.service.d.ts +0 -124
- package/src/@claude-flow/shared/dist/types/agent.types.d.ts +0 -137
- package/src/@claude-flow/shared/dist/types/index.d.ts +0 -11
- package/src/@claude-flow/shared/dist/types/mcp.types.d.ts +0 -266
- package/src/@claude-flow/shared/dist/types/memory.types.d.ts +0 -236
- package/src/@claude-flow/shared/dist/types/swarm.types.d.ts +0 -186
- package/src/@claude-flow/shared/dist/types/task.types.d.ts +0 -178
- package/src/@claude-flow/shared/dist/types.d.ts +0 -197
- package/src/@claude-flow/shared/dist/utils/secure-logger.d.ts +0 -69
|
@@ -1,162 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Run Ledger + Evaluators
|
|
3
|
-
*
|
|
4
|
-
* Logs every run as an event with a minimum schema, then runs evaluators
|
|
5
|
-
* to assess compliance and quality.
|
|
6
|
-
*
|
|
7
|
-
* Objective evaluators:
|
|
8
|
-
* 1. Tests pass
|
|
9
|
-
* 2. Lint pass
|
|
10
|
-
* 3. Forbidden dependency scan
|
|
11
|
-
* 4. Forbidden command scan
|
|
12
|
-
* 5. Required sections present in plan
|
|
13
|
-
*
|
|
14
|
-
* Subjective evaluators:
|
|
15
|
-
* 1. Reviewer rating (pass/fail)
|
|
16
|
-
* 2. Architecture compliance (pass/fail)
|
|
17
|
-
*
|
|
18
|
-
* @module @claude-flow/guidance/ledger
|
|
19
|
-
*/
|
|
20
|
-
import type { RunEvent, EvaluatorResult, TaskIntent, OptimizationMetrics, ViolationRanking } from './types.js';
|
|
21
|
-
export interface IEvaluator {
|
|
22
|
-
/** Evaluator name */
|
|
23
|
-
name: string;
|
|
24
|
-
/** Whether this is objective (automated) or subjective (human) */
|
|
25
|
-
type: 'objective' | 'subjective';
|
|
26
|
-
/** Run the evaluation */
|
|
27
|
-
evaluate(event: RunEvent): Promise<EvaluatorResult>;
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* Tests Pass evaluator - checks test results
|
|
31
|
-
*/
|
|
32
|
-
export declare class TestsPassEvaluator implements IEvaluator {
|
|
33
|
-
name: string;
|
|
34
|
-
type: "objective";
|
|
35
|
-
evaluate(event: RunEvent): Promise<EvaluatorResult>;
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* Forbidden command scan evaluator
|
|
39
|
-
*/
|
|
40
|
-
export declare class ForbiddenCommandEvaluator implements IEvaluator {
|
|
41
|
-
name: string;
|
|
42
|
-
type: "objective";
|
|
43
|
-
private forbiddenPatterns;
|
|
44
|
-
constructor(forbiddenPatterns?: RegExp[]);
|
|
45
|
-
evaluate(event: RunEvent): Promise<EvaluatorResult>;
|
|
46
|
-
}
|
|
47
|
-
/**
|
|
48
|
-
* Forbidden dependency scan evaluator
|
|
49
|
-
*/
|
|
50
|
-
export declare class ForbiddenDependencyEvaluator implements IEvaluator {
|
|
51
|
-
name: string;
|
|
52
|
-
type: "objective";
|
|
53
|
-
private forbiddenPackages;
|
|
54
|
-
constructor(forbiddenPackages?: string[]);
|
|
55
|
-
evaluate(event: RunEvent): Promise<EvaluatorResult>;
|
|
56
|
-
}
|
|
57
|
-
/**
|
|
58
|
-
* Violation rate evaluator - checks violation count
|
|
59
|
-
*/
|
|
60
|
-
export declare class ViolationRateEvaluator implements IEvaluator {
|
|
61
|
-
name: string;
|
|
62
|
-
type: "objective";
|
|
63
|
-
private maxViolations;
|
|
64
|
-
constructor(maxViolations?: number);
|
|
65
|
-
evaluate(event: RunEvent): Promise<EvaluatorResult>;
|
|
66
|
-
}
|
|
67
|
-
/**
|
|
68
|
-
* Diff quality evaluator - checks rework ratio
|
|
69
|
-
*/
|
|
70
|
-
export declare class DiffQualityEvaluator implements IEvaluator {
|
|
71
|
-
name: string;
|
|
72
|
-
type: "objective";
|
|
73
|
-
private maxReworkRatio;
|
|
74
|
-
constructor(maxReworkRatio?: number);
|
|
75
|
-
evaluate(event: RunEvent): Promise<EvaluatorResult>;
|
|
76
|
-
}
|
|
77
|
-
export declare class RunLedger {
|
|
78
|
-
private events;
|
|
79
|
-
private evaluators;
|
|
80
|
-
private readonly maxEvents;
|
|
81
|
-
/**
|
|
82
|
-
* @param maxEvents - Maximum events to retain in memory (0 = unlimited).
|
|
83
|
-
* When the limit is exceeded the oldest events are evicted.
|
|
84
|
-
*/
|
|
85
|
-
constructor(maxEvents?: number);
|
|
86
|
-
/**
|
|
87
|
-
* Add a custom evaluator
|
|
88
|
-
*/
|
|
89
|
-
addEvaluator(evaluator: IEvaluator): void;
|
|
90
|
-
/**
|
|
91
|
-
* Remove an evaluator by name
|
|
92
|
-
*/
|
|
93
|
-
removeEvaluator(name: string): void;
|
|
94
|
-
/**
|
|
95
|
-
* Log a run event
|
|
96
|
-
*/
|
|
97
|
-
logEvent(event: RunEvent | Omit<RunEvent, 'eventId'>): RunEvent;
|
|
98
|
-
/**
|
|
99
|
-
* Create a new run event with defaults
|
|
100
|
-
*/
|
|
101
|
-
createEvent(taskId: string, intent: TaskIntent, guidanceHash: string): RunEvent;
|
|
102
|
-
/**
|
|
103
|
-
* Finalize and store an event
|
|
104
|
-
*/
|
|
105
|
-
finalizeEvent(event: RunEvent): RunEvent;
|
|
106
|
-
/**
|
|
107
|
-
* Evict oldest events when maxEvents is exceeded.
|
|
108
|
-
* Trims 10% in a batch to amortize the O(n) splice cost.
|
|
109
|
-
*/
|
|
110
|
-
private evictIfNeeded;
|
|
111
|
-
/**
|
|
112
|
-
* Run all evaluators against an event
|
|
113
|
-
*/
|
|
114
|
-
evaluate(event: RunEvent): Promise<EvaluatorResult[]>;
|
|
115
|
-
/**
|
|
116
|
-
* Get all events
|
|
117
|
-
*/
|
|
118
|
-
getEvents(): RunEvent[];
|
|
119
|
-
/**
|
|
120
|
-
* Get events by task ID
|
|
121
|
-
*/
|
|
122
|
-
getEventsByTask(taskId: string): RunEvent[];
|
|
123
|
-
/**
|
|
124
|
-
* Get events within a time range
|
|
125
|
-
*/
|
|
126
|
-
getEventsInRange(startMs: number, endMs: number): RunEvent[];
|
|
127
|
-
/**
|
|
128
|
-
* Get recent events
|
|
129
|
-
*/
|
|
130
|
-
getRecentEvents(count: number): RunEvent[];
|
|
131
|
-
/**
|
|
132
|
-
* Compute optimization metrics from events
|
|
133
|
-
*/
|
|
134
|
-
computeMetrics(events?: RunEvent[]): OptimizationMetrics;
|
|
135
|
-
/**
|
|
136
|
-
* Rank violations by frequency and cost (rework lines)
|
|
137
|
-
*/
|
|
138
|
-
rankViolations(windowEvents?: RunEvent[]): ViolationRanking[];
|
|
139
|
-
/**
|
|
140
|
-
* Get event count
|
|
141
|
-
*/
|
|
142
|
-
get eventCount(): number;
|
|
143
|
-
/**
|
|
144
|
-
* Export events for persistence
|
|
145
|
-
*/
|
|
146
|
-
exportEvents(): RunEvent[];
|
|
147
|
-
/**
|
|
148
|
-
* Import events from persistence
|
|
149
|
-
*/
|
|
150
|
-
importEvents(events: RunEvent[]): void;
|
|
151
|
-
/**
|
|
152
|
-
* Clear all events
|
|
153
|
-
*/
|
|
154
|
-
clear(): void;
|
|
155
|
-
}
|
|
156
|
-
/**
|
|
157
|
-
* Create a run ledger instance
|
|
158
|
-
*
|
|
159
|
-
* @param maxEvents - Maximum events to retain in memory (0 = unlimited).
|
|
160
|
-
*/
|
|
161
|
-
export declare function createLedger(maxEvents?: number): RunLedger;
|
|
162
|
-
//# sourceMappingURL=ledger.d.ts.map
|
|
@@ -1,289 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Manifest Validator & Conformance Suite
|
|
3
|
-
*
|
|
4
|
-
* Validates AgentCellManifest documents against the Agentic Container spec,
|
|
5
|
-
* computes risk scores, selects execution lanes, and fails closed on any
|
|
6
|
-
* validation error. The ConformanceSuite runs golden traces through an
|
|
7
|
-
* evaluator to prove the platform behaves as specified.
|
|
8
|
-
*
|
|
9
|
-
* @module @claude-flow/guidance/manifest-validator
|
|
10
|
-
*/
|
|
11
|
-
/** Data sensitivity levels ordered by severity */
|
|
12
|
-
declare const DATA_SENSITIVITY_LEVELS: readonly ["public", "internal", "confidential", "restricted"];
|
|
13
|
-
type DataSensitivity = typeof DATA_SENSITIVITY_LEVELS[number];
|
|
14
|
-
/** Write modes for memory policy */
|
|
15
|
-
declare const WRITE_MODES: readonly ["append", "overwrite", "merge"];
|
|
16
|
-
type WriteMode = typeof WRITE_MODES[number];
|
|
17
|
-
/** Authority scopes for memory policy */
|
|
18
|
-
declare const AUTHORITY_SCOPES: readonly ["self", "team", "tenant", "global"];
|
|
19
|
-
type AuthorityScope = typeof AUTHORITY_SCOPES[number];
|
|
20
|
-
/** Trace levels for observability */
|
|
21
|
-
declare const TRACE_LEVELS: readonly ["none", "errors", "decisions", "full"];
|
|
22
|
-
/** Execution lanes ordered by privilege (lowest to highest) */
|
|
23
|
-
declare const LANES: readonly ["wasm", "sandboxed", "native"];
|
|
24
|
-
type Lane = typeof LANES[number];
|
|
25
|
-
/**
|
|
26
|
-
* The manifest describing an agent cell per the Agentic Container spec.
|
|
27
|
-
*/
|
|
28
|
-
export interface AgentCellManifest {
|
|
29
|
-
/** API version string (must be 'agentic_cells.v0_1') */
|
|
30
|
-
apiVersion: string;
|
|
31
|
-
/** Cell identity */
|
|
32
|
-
cell: {
|
|
33
|
-
name: string;
|
|
34
|
-
purpose: string;
|
|
35
|
-
ownerTenant: string;
|
|
36
|
-
codeRef: {
|
|
37
|
-
kind: string;
|
|
38
|
-
digest: string;
|
|
39
|
-
entry: string;
|
|
40
|
-
};
|
|
41
|
-
};
|
|
42
|
-
/** Lane execution policy */
|
|
43
|
-
lanePolicy: {
|
|
44
|
-
portabilityRequired: boolean;
|
|
45
|
-
needsNativeThreads: boolean;
|
|
46
|
-
preferredLane: Lane;
|
|
47
|
-
maxRiskScore: number;
|
|
48
|
-
};
|
|
49
|
-
/** Resource budgets */
|
|
50
|
-
budgets: {
|
|
51
|
-
maxWallClockSeconds: number;
|
|
52
|
-
maxToolCalls: number;
|
|
53
|
-
maxBytesEgress: number;
|
|
54
|
-
maxTokensInMtok: number;
|
|
55
|
-
maxTokensOutMtok: number;
|
|
56
|
-
maxMemoryWrites: number;
|
|
57
|
-
};
|
|
58
|
-
/** Data handling policy */
|
|
59
|
-
dataPolicy: {
|
|
60
|
-
dataSensitivity: DataSensitivity;
|
|
61
|
-
piiAllowed: boolean;
|
|
62
|
-
retentionDays: number;
|
|
63
|
-
exportControls: {
|
|
64
|
-
allowedRegions: string[];
|
|
65
|
-
blockedRegions: string[];
|
|
66
|
-
};
|
|
67
|
-
};
|
|
68
|
-
/** Tool usage policy */
|
|
69
|
-
toolPolicy: {
|
|
70
|
-
toolsAllowed: string[];
|
|
71
|
-
networkAllowlist: string[];
|
|
72
|
-
writeActionsRequireConfirmation: boolean;
|
|
73
|
-
};
|
|
74
|
-
/** Memory system policy */
|
|
75
|
-
memoryPolicy: {
|
|
76
|
-
namespace: string;
|
|
77
|
-
authorityScope: AuthorityScope;
|
|
78
|
-
writeMode: WriteMode;
|
|
79
|
-
requiresCoherenceGate: boolean;
|
|
80
|
-
requiresAntiHallucinationGate: boolean;
|
|
81
|
-
};
|
|
82
|
-
/** Observability configuration */
|
|
83
|
-
observability: {
|
|
84
|
-
traceLevel: typeof TRACE_LEVELS[number];
|
|
85
|
-
emitArtifacts: boolean;
|
|
86
|
-
artifactBucket: string;
|
|
87
|
-
};
|
|
88
|
-
}
|
|
89
|
-
/**
|
|
90
|
-
* A single validation error or warning.
|
|
91
|
-
*/
|
|
92
|
-
export interface ValidationError {
|
|
93
|
-
/** Error code (e.g., 'MISSING_FIELD', 'INVALID_DIGEST', 'BUDGET_EXCEED') */
|
|
94
|
-
code: string;
|
|
95
|
-
/** JSON path to the problematic field */
|
|
96
|
-
field: string;
|
|
97
|
-
/** Human-readable description */
|
|
98
|
-
message: string;
|
|
99
|
-
/** Severity level */
|
|
100
|
-
severity: 'error';
|
|
101
|
-
}
|
|
102
|
-
/**
|
|
103
|
-
* A single validation warning.
|
|
104
|
-
*/
|
|
105
|
-
export interface ValidationWarning {
|
|
106
|
-
/** Warning code */
|
|
107
|
-
code: string;
|
|
108
|
-
/** JSON path to the problematic field */
|
|
109
|
-
field: string;
|
|
110
|
-
/** Human-readable description */
|
|
111
|
-
message: string;
|
|
112
|
-
/** Severity level */
|
|
113
|
-
severity: 'warning';
|
|
114
|
-
}
|
|
115
|
-
/**
|
|
116
|
-
* Complete validation result for a manifest.
|
|
117
|
-
*/
|
|
118
|
-
export interface ValidationResult {
|
|
119
|
-
/** Whether the manifest passed all validation checks */
|
|
120
|
-
valid: boolean;
|
|
121
|
-
/** Validation errors (each causes rejection) */
|
|
122
|
-
errors: ValidationError[];
|
|
123
|
-
/** Validation warnings (informational, do not block admission) */
|
|
124
|
-
warnings: ValidationWarning[];
|
|
125
|
-
/** Admission decision: admit, reject, or review */
|
|
126
|
-
admissionDecision: 'admit' | 'reject' | 'review';
|
|
127
|
-
/** Selected execution lane (null if rejected) */
|
|
128
|
-
laneSelection: Lane | null;
|
|
129
|
-
/** Computed risk score (0-100) */
|
|
130
|
-
riskScore: number;
|
|
131
|
-
}
|
|
132
|
-
/**
|
|
133
|
-
* Validates AgentCellManifest documents against the Agentic Container spec.
|
|
134
|
-
*
|
|
135
|
-
* Fails closed: any validation error results in a 'reject' decision.
|
|
136
|
-
* Warnings alone do not block admission but may trigger a 'review' decision
|
|
137
|
-
* when the risk score is between thresholds.
|
|
138
|
-
*/
|
|
139
|
-
export declare class ManifestValidator {
|
|
140
|
-
/** Risk score threshold: below this, admit. Above reject threshold, reject. Between, review. */
|
|
141
|
-
private readonly admitThreshold;
|
|
142
|
-
private readonly rejectThreshold;
|
|
143
|
-
constructor(options?: {
|
|
144
|
-
admitThreshold?: number;
|
|
145
|
-
rejectThreshold?: number;
|
|
146
|
-
});
|
|
147
|
-
/**
|
|
148
|
-
* Validate a manifest, compute its risk score, select a lane, and decide admission.
|
|
149
|
-
*
|
|
150
|
-
* FAILS CLOSED: any validation error leads to reject.
|
|
151
|
-
*/
|
|
152
|
-
validate(manifest: AgentCellManifest): ValidationResult;
|
|
153
|
-
/**
|
|
154
|
-
* Compute a risk score (0-100) from tool risk, data sensitivity, and privilege surface.
|
|
155
|
-
*
|
|
156
|
-
* Components:
|
|
157
|
-
* - tool_risk (0-40): based on tool types and network access
|
|
158
|
-
* - data_sensitivity (0-30): based on sensitivity level and PII
|
|
159
|
-
* - privilege_surface (0-30): based on memory scope, write mode, native threads
|
|
160
|
-
*/
|
|
161
|
-
computeRiskScore(manifest: AgentCellManifest): number;
|
|
162
|
-
/**
|
|
163
|
-
* Select the execution lane based on risk score and manifest policy.
|
|
164
|
-
*
|
|
165
|
-
* Lane selection rules:
|
|
166
|
-
* - If portabilityRequired or risk <= 30: wasm
|
|
167
|
-
* - If needsNativeThreads and risk > 50: native
|
|
168
|
-
* - Otherwise: sandboxed
|
|
169
|
-
* - Always respect preferredLane if risk score allows it
|
|
170
|
-
* - Risk exceeding maxRiskScore forces the most restrictive lane
|
|
171
|
-
*/
|
|
172
|
-
selectLane(manifest: AgentCellManifest, riskScore: number): Lane;
|
|
173
|
-
/**
|
|
174
|
-
* Validate budget values: no negatives, within sanity limits.
|
|
175
|
-
*/
|
|
176
|
-
validateBudgets(budgets: AgentCellManifest['budgets']): ValidationError[];
|
|
177
|
-
/**
|
|
178
|
-
* Validate tool policy: network allowlist must not contain wildcards
|
|
179
|
-
* unless the cell explicitly has Bash (privileged).
|
|
180
|
-
*/
|
|
181
|
-
validateToolPolicy(toolPolicy: AgentCellManifest['toolPolicy']): ValidationError[];
|
|
182
|
-
/**
|
|
183
|
-
* Validate data policy fields.
|
|
184
|
-
*/
|
|
185
|
-
validateDataPolicy(dataPolicy: AgentCellManifest['dataPolicy']): ValidationError[];
|
|
186
|
-
private validateRequiredFields;
|
|
187
|
-
private validateApiVersion;
|
|
188
|
-
private validateDigest;
|
|
189
|
-
private validateWarnings;
|
|
190
|
-
}
|
|
191
|
-
/**
|
|
192
|
-
* A single event within a golden trace.
|
|
193
|
-
*/
|
|
194
|
-
export interface GoldenTraceEvent {
|
|
195
|
-
/** Sequence number within the trace */
|
|
196
|
-
seq: number;
|
|
197
|
-
/** Type of event (e.g., 'command', 'tool-use', 'memory-write', 'budget-check') */
|
|
198
|
-
eventType: string;
|
|
199
|
-
/** Event payload */
|
|
200
|
-
payload: Record<string, unknown>;
|
|
201
|
-
/** Expected outcome from the platform */
|
|
202
|
-
expectedOutcome: 'allow' | 'deny' | 'warn';
|
|
203
|
-
}
|
|
204
|
-
/**
|
|
205
|
-
* A complete golden trace including events and expected decisions.
|
|
206
|
-
*/
|
|
207
|
-
export interface GoldenTrace {
|
|
208
|
-
/** Unique trace identifier */
|
|
209
|
-
traceId: string;
|
|
210
|
-
/** Human-readable name */
|
|
211
|
-
name: string;
|
|
212
|
-
/** Description of what the trace verifies */
|
|
213
|
-
description: string;
|
|
214
|
-
/** Ordered sequence of events */
|
|
215
|
-
events: GoldenTraceEvent[];
|
|
216
|
-
/** Map from event seq (as string) to expected decision string */
|
|
217
|
-
expectedDecisions: Record<string, string>;
|
|
218
|
-
/** Map from memory key to expected parent chain for lineage verification */
|
|
219
|
-
expectedMemoryLineage: Record<string, string[]>;
|
|
220
|
-
}
|
|
221
|
-
/**
|
|
222
|
-
* Result of running the conformance suite.
|
|
223
|
-
*/
|
|
224
|
-
export interface ConformanceResult {
|
|
225
|
-
/** Whether all events matched their expected outcomes */
|
|
226
|
-
passed: boolean;
|
|
227
|
-
/** Total number of events evaluated */
|
|
228
|
-
totalEvents: number;
|
|
229
|
-
/** Number of events that matched expectations */
|
|
230
|
-
matchedEvents: number;
|
|
231
|
-
/** Details of any mismatches */
|
|
232
|
-
mismatches: Array<{
|
|
233
|
-
traceId: string;
|
|
234
|
-
seq: number;
|
|
235
|
-
expected: string;
|
|
236
|
-
actual: string;
|
|
237
|
-
details: unknown;
|
|
238
|
-
}>;
|
|
239
|
-
}
|
|
240
|
-
/**
|
|
241
|
-
* Runs golden traces through an evaluator and reports conformance.
|
|
242
|
-
*
|
|
243
|
-
* Each trace contains events with expected outcomes. The suite feeds every
|
|
244
|
-
* event to the evaluator and compares the actual decision to the expectation.
|
|
245
|
-
*/
|
|
246
|
-
export declare class ConformanceSuite {
|
|
247
|
-
private traces;
|
|
248
|
-
/**
|
|
249
|
-
* Add a golden trace to the suite.
|
|
250
|
-
*/
|
|
251
|
-
addTrace(trace: GoldenTrace): void;
|
|
252
|
-
/**
|
|
253
|
-
* Run every event in every trace through the evaluator and compare
|
|
254
|
-
* actual decisions against expected outcomes.
|
|
255
|
-
*/
|
|
256
|
-
run(evaluator: (event: GoldenTraceEvent) => {
|
|
257
|
-
decision: string;
|
|
258
|
-
details: unknown;
|
|
259
|
-
}): ConformanceResult;
|
|
260
|
-
/**
|
|
261
|
-
* Get all registered traces.
|
|
262
|
-
*/
|
|
263
|
-
getTraces(): GoldenTrace[];
|
|
264
|
-
/**
|
|
265
|
-
* Create built-in default golden traces that verify core platform invariants:
|
|
266
|
-
*
|
|
267
|
-
* 1. Destructive command blocked
|
|
268
|
-
* 2. Secret detected and blocked
|
|
269
|
-
* 3. Budget exceeded and denied
|
|
270
|
-
* 4. Memory write without evidence blocked
|
|
271
|
-
* 5. Valid operation allowed
|
|
272
|
-
*/
|
|
273
|
-
createDefaultTraces(): GoldenTrace[];
|
|
274
|
-
}
|
|
275
|
-
/**
|
|
276
|
-
* Create a new ManifestValidator instance.
|
|
277
|
-
*/
|
|
278
|
-
export declare function createManifestValidator(options?: {
|
|
279
|
-
admitThreshold?: number;
|
|
280
|
-
rejectThreshold?: number;
|
|
281
|
-
}): ManifestValidator;
|
|
282
|
-
/**
|
|
283
|
-
* Create a new ConformanceSuite instance, optionally pre-loaded with default traces.
|
|
284
|
-
*/
|
|
285
|
-
export declare function createConformanceSuite(options?: {
|
|
286
|
-
includeDefaults?: boolean;
|
|
287
|
-
}): ConformanceSuite;
|
|
288
|
-
export {};
|
|
289
|
-
//# sourceMappingURL=manifest-validator.d.ts.map
|
|
@@ -1,222 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Memory Write Gating System
|
|
3
|
-
*
|
|
4
|
-
* Adds authority scope, TTL, decay, and contradiction tracking
|
|
5
|
-
* to memory operations. Ensures that only authorized agents can
|
|
6
|
-
* write to specific namespaces, enforces rate limits, and detects
|
|
7
|
-
* contradictions between memory entries.
|
|
8
|
-
*
|
|
9
|
-
* @module @claude-flow/guidance/memory-gate
|
|
10
|
-
*/
|
|
11
|
-
/**
|
|
12
|
-
* Authority definition for a memory-writing agent
|
|
13
|
-
*/
|
|
14
|
-
export interface MemoryAuthority {
|
|
15
|
-
/** Agent identifier */
|
|
16
|
-
agentId: string;
|
|
17
|
-
/** Role in the hierarchy */
|
|
18
|
-
role: 'queen' | 'coordinator' | 'worker' | 'observer';
|
|
19
|
-
/** Namespaces this agent is allowed to write to */
|
|
20
|
-
namespaces: string[];
|
|
21
|
-
/** Maximum writes allowed per minute */
|
|
22
|
-
maxWritesPerMinute: number;
|
|
23
|
-
/** Whether this agent can delete entries */
|
|
24
|
-
canDelete: boolean;
|
|
25
|
-
/** Whether this agent can overwrite existing entries */
|
|
26
|
-
canOverwrite: boolean;
|
|
27
|
-
/** Trust level from 0 (untrusted) to 1 (fully trusted) */
|
|
28
|
-
trustLevel: number;
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* A gated memory entry with metadata for TTL, decay, lineage, and contradictions
|
|
32
|
-
*/
|
|
33
|
-
export interface MemoryEntry {
|
|
34
|
-
/** Entry key */
|
|
35
|
-
key: string;
|
|
36
|
-
/** Namespace the entry belongs to */
|
|
37
|
-
namespace: string;
|
|
38
|
-
/** The stored value */
|
|
39
|
-
value: unknown;
|
|
40
|
-
/** SHA-256 hash of the serialized value */
|
|
41
|
-
valueHash: string;
|
|
42
|
-
/** Authority that created/last wrote this entry */
|
|
43
|
-
authority: MemoryAuthority;
|
|
44
|
-
/** Timestamp when the entry was created (ms since epoch) */
|
|
45
|
-
createdAt: number;
|
|
46
|
-
/** Timestamp of the last update (ms since epoch) */
|
|
47
|
-
updatedAt: number;
|
|
48
|
-
/** Time-to-live in milliseconds, or null for no expiry */
|
|
49
|
-
ttlMs: number | null;
|
|
50
|
-
/** Decay rate from 0 (no decay) to 1 (immediate decay) */
|
|
51
|
-
decayRate: number;
|
|
52
|
-
/** Confidence score from 0 to 1, decays over time */
|
|
53
|
-
confidence: number;
|
|
54
|
-
/** Lineage tracking for provenance */
|
|
55
|
-
lineage: {
|
|
56
|
-
parentKey?: string;
|
|
57
|
-
derivedFrom?: string[];
|
|
58
|
-
operation: string;
|
|
59
|
-
};
|
|
60
|
-
/** Detected contradictions with other entries */
|
|
61
|
-
contradictions: Array<{
|
|
62
|
-
entryKey: string;
|
|
63
|
-
description: string;
|
|
64
|
-
resolvedAt?: number;
|
|
65
|
-
}>;
|
|
66
|
-
}
|
|
67
|
-
/**
|
|
68
|
-
* Result of evaluating a write request
|
|
69
|
-
*/
|
|
70
|
-
export interface WriteDecision {
|
|
71
|
-
/** Whether the write is allowed */
|
|
72
|
-
allowed: boolean;
|
|
73
|
-
/** Human-readable reason for the decision */
|
|
74
|
-
reason: string;
|
|
75
|
-
/** Contradictions detected with existing entries */
|
|
76
|
-
contradictions: Array<{
|
|
77
|
-
existingKey: string;
|
|
78
|
-
description: string;
|
|
79
|
-
}>;
|
|
80
|
-
/** Authority check result */
|
|
81
|
-
authorityCheck: {
|
|
82
|
-
passed: boolean;
|
|
83
|
-
requiredRole: string;
|
|
84
|
-
actualRole: string;
|
|
85
|
-
};
|
|
86
|
-
/** Rate limit check result */
|
|
87
|
-
rateCheck: {
|
|
88
|
-
passed: boolean;
|
|
89
|
-
writesInWindow: number;
|
|
90
|
-
limit: number;
|
|
91
|
-
};
|
|
92
|
-
/** Overwrite permission check result */
|
|
93
|
-
overwriteCheck: {
|
|
94
|
-
isOverwrite: boolean;
|
|
95
|
-
allowed: boolean;
|
|
96
|
-
};
|
|
97
|
-
}
|
|
98
|
-
/**
|
|
99
|
-
* Configuration for the MemoryWriteGate
|
|
100
|
-
*/
|
|
101
|
-
export interface MemoryWriteGateConfig {
|
|
102
|
-
/** Pre-registered authorities */
|
|
103
|
-
authorities?: MemoryAuthority[];
|
|
104
|
-
/** Similarity threshold for contradiction detection (0-1) */
|
|
105
|
-
contradictionThreshold?: number;
|
|
106
|
-
/** Default TTL for new entries in ms (null = no expiry) */
|
|
107
|
-
defaultTtlMs?: number;
|
|
108
|
-
/** Default decay rate for new entries (0-1) */
|
|
109
|
-
defaultDecayRate?: number;
|
|
110
|
-
/** Whether to run contradiction detection on writes */
|
|
111
|
-
enableContradictionTracking?: boolean;
|
|
112
|
-
}
|
|
113
|
-
/**
|
|
114
|
-
* Memory Write Gate
|
|
115
|
-
*
|
|
116
|
-
* Controls write access to the memory system by enforcing:
|
|
117
|
-
* - Authority checks (namespace access, role hierarchy)
|
|
118
|
-
* - Rate limiting (sliding window per agent)
|
|
119
|
-
* - Overwrite permissions
|
|
120
|
-
* - Contradiction detection against existing entries
|
|
121
|
-
* - TTL and confidence decay tracking
|
|
122
|
-
*/
|
|
123
|
-
export declare class MemoryWriteGate {
|
|
124
|
-
private authorities;
|
|
125
|
-
private writeTimestamps;
|
|
126
|
-
private contradictionThreshold;
|
|
127
|
-
private defaultTtlMs;
|
|
128
|
-
private defaultDecayRate;
|
|
129
|
-
private enableContradictionTracking;
|
|
130
|
-
private contradictionResolutions;
|
|
131
|
-
constructor(config?: MemoryWriteGateConfig);
|
|
132
|
-
/**
|
|
133
|
-
* Evaluate whether a write operation should be allowed.
|
|
134
|
-
*
|
|
135
|
-
* Steps:
|
|
136
|
-
* 1. Check authority (namespace allowed, role sufficient)
|
|
137
|
-
* 2. Check rate limit
|
|
138
|
-
* 3. Check overwrite permission
|
|
139
|
-
* 4. Detect contradictions against existing entries
|
|
140
|
-
* 5. Return decision
|
|
141
|
-
*/
|
|
142
|
-
evaluateWrite(authority: MemoryAuthority, key: string, namespace: string, value: unknown, existingEntries?: MemoryEntry[]): WriteDecision;
|
|
143
|
-
/**
|
|
144
|
-
* Register a new authority or update an existing one
|
|
145
|
-
*/
|
|
146
|
-
registerAuthority(authority: MemoryAuthority): void;
|
|
147
|
-
/**
|
|
148
|
-
* Compute the current confidence for an entry based on decay over time.
|
|
149
|
-
*
|
|
150
|
-
* Uses exponential decay: confidence = initialConfidence * e^(-decayRate * ageHours)
|
|
151
|
-
* where ageHours is (now - updatedAt) / 3600000
|
|
152
|
-
*/
|
|
153
|
-
computeConfidence(entry: MemoryEntry): number;
|
|
154
|
-
/**
|
|
155
|
-
* Get all entries whose TTL has been exceeded
|
|
156
|
-
*/
|
|
157
|
-
getExpiredEntries(entries: MemoryEntry[]): MemoryEntry[];
|
|
158
|
-
/**
|
|
159
|
-
* Get entries whose decayed confidence has dropped below a threshold
|
|
160
|
-
*/
|
|
161
|
-
getDecayedEntries(entries: MemoryEntry[], threshold: number): MemoryEntry[];
|
|
162
|
-
/**
|
|
163
|
-
* Detect contradictions between a new value and existing entries.
|
|
164
|
-
*
|
|
165
|
-
* Uses string-based pattern matching to find conflicting statements
|
|
166
|
-
* (must vs never, always vs never, require vs forbid, etc.)
|
|
167
|
-
*/
|
|
168
|
-
detectContradictions(newValue: unknown, existingEntries: MemoryEntry[]): Array<{
|
|
169
|
-
entryKey: string;
|
|
170
|
-
description: string;
|
|
171
|
-
}>;
|
|
172
|
-
/**
|
|
173
|
-
* Mark a contradiction as resolved
|
|
174
|
-
*/
|
|
175
|
-
resolveContradiction(entryKey: string, resolution: string): void;
|
|
176
|
-
/**
|
|
177
|
-
* Get the authority for an agent by ID
|
|
178
|
-
*/
|
|
179
|
-
getAuthorityFor(agentId: string): MemoryAuthority | undefined;
|
|
180
|
-
/**
|
|
181
|
-
* Get the current rate limit status for an agent
|
|
182
|
-
*/
|
|
183
|
-
getRateLimitStatus(agentId: string): {
|
|
184
|
-
writesInWindow: number;
|
|
185
|
-
limit: number;
|
|
186
|
-
resetAt: number;
|
|
187
|
-
};
|
|
188
|
-
/** Get the default TTL in ms */
|
|
189
|
-
getDefaultTtlMs(): number | null;
|
|
190
|
-
/** Get the default decay rate */
|
|
191
|
-
getDefaultDecayRate(): number;
|
|
192
|
-
/** Check if contradiction tracking is enabled */
|
|
193
|
-
isContradictionTrackingEnabled(): boolean;
|
|
194
|
-
/** Get the contradiction resolution for an entry key */
|
|
195
|
-
getContradictionResolution(entryKey: string): string | undefined;
|
|
196
|
-
/**
|
|
197
|
-
* Check whether an authority is allowed to write to a namespace
|
|
198
|
-
*/
|
|
199
|
-
private checkAuthority;
|
|
200
|
-
/**
|
|
201
|
-
* Check rate limit using a sliding window of write timestamps
|
|
202
|
-
*/
|
|
203
|
-
private checkRateLimit;
|
|
204
|
-
/**
|
|
205
|
-
* Record a write timestamp for an agent
|
|
206
|
-
*/
|
|
207
|
-
private recordWrite;
|
|
208
|
-
}
|
|
209
|
-
/**
|
|
210
|
-
* Create a MemoryWriteGate instance with optional configuration
|
|
211
|
-
*/
|
|
212
|
-
export declare function createMemoryWriteGate(config?: MemoryWriteGateConfig): MemoryWriteGate;
|
|
213
|
-
/**
|
|
214
|
-
* Create a new MemoryEntry with defaults applied
|
|
215
|
-
*/
|
|
216
|
-
export declare function createMemoryEntry(key: string, namespace: string, value: unknown, authority: MemoryAuthority, options?: {
|
|
217
|
-
ttlMs?: number | null;
|
|
218
|
-
decayRate?: number;
|
|
219
|
-
confidence?: number;
|
|
220
|
-
lineage?: MemoryEntry['lineage'];
|
|
221
|
-
}): MemoryEntry;
|
|
222
|
-
//# sourceMappingURL=memory-gate.d.ts.map
|