@miller-tech/uap 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +888 -0
- package/dist/analyzers/index.d.ts +3 -0
- package/dist/analyzers/index.d.ts.map +1 -0
- package/dist/analyzers/index.js +684 -0
- package/dist/analyzers/index.js.map +1 -0
- package/dist/benchmarks/agents/naive-agent.d.ts +60 -0
- package/dist/benchmarks/agents/naive-agent.d.ts.map +1 -0
- package/dist/benchmarks/agents/naive-agent.js +144 -0
- package/dist/benchmarks/agents/naive-agent.js.map +1 -0
- package/dist/benchmarks/agents/uap-agent.d.ts +167 -0
- package/dist/benchmarks/agents/uap-agent.d.ts.map +1 -0
- package/dist/benchmarks/agents/uap-agent.js +437 -0
- package/dist/benchmarks/agents/uap-agent.js.map +1 -0
- package/dist/benchmarks/benchmark.d.ts +328 -0
- package/dist/benchmarks/benchmark.d.ts.map +1 -0
- package/dist/benchmarks/benchmark.js +112 -0
- package/dist/benchmarks/benchmark.js.map +1 -0
- package/dist/benchmarks/execution-verifier.d.ts +41 -0
- package/dist/benchmarks/execution-verifier.d.ts.map +1 -0
- package/dist/benchmarks/execution-verifier.js +340 -0
- package/dist/benchmarks/execution-verifier.js.map +1 -0
- package/dist/benchmarks/hierarchical-prompting.d.ts +37 -0
- package/dist/benchmarks/hierarchical-prompting.d.ts.map +1 -0
- package/dist/benchmarks/hierarchical-prompting.js +246 -0
- package/dist/benchmarks/hierarchical-prompting.js.map +1 -0
- package/dist/benchmarks/improved-benchmark.d.ts +89 -0
- package/dist/benchmarks/improved-benchmark.d.ts.map +1 -0
- package/dist/benchmarks/improved-benchmark.js +585 -0
- package/dist/benchmarks/improved-benchmark.js.map +1 -0
- package/dist/benchmarks/index.d.ts +11 -0
- package/dist/benchmarks/index.d.ts.map +1 -0
- package/dist/benchmarks/index.js +11 -0
- package/dist/benchmarks/index.js.map +1 -0
- package/dist/benchmarks/model-integration.d.ts +111 -0
- package/dist/benchmarks/model-integration.d.ts.map +1 -0
- package/dist/benchmarks/model-integration.js +904 -0
- package/dist/benchmarks/model-integration.js.map +1 -0
- package/dist/benchmarks/multi-turn-agent.d.ts +44 -0
- package/dist/benchmarks/multi-turn-agent.d.ts.map +1 -0
- package/dist/benchmarks/multi-turn-agent.js +254 -0
- package/dist/benchmarks/multi-turn-agent.js.map +1 -0
- package/dist/benchmarks/multi-turn-loop.d.ts +57 -0
- package/dist/benchmarks/multi-turn-loop.d.ts.map +1 -0
- package/dist/benchmarks/multi-turn-loop.js +167 -0
- package/dist/benchmarks/multi-turn-loop.js.map +1 -0
- package/dist/benchmarks/tasks.d.ts +19 -0
- package/dist/benchmarks/tasks.d.ts.map +1 -0
- package/dist/benchmarks/tasks.js +435 -0
- package/dist/benchmarks/tasks.js.map +1 -0
- package/dist/bin/cli.d.ts +3 -0
- package/dist/bin/cli.d.ts.map +1 -0
- package/dist/bin/cli.js +546 -0
- package/dist/bin/cli.js.map +1 -0
- package/dist/bin/llama-server-optimize.d.ts +18 -0
- package/dist/bin/llama-server-optimize.d.ts.map +1 -0
- package/dist/bin/llama-server-optimize.js +708 -0
- package/dist/bin/llama-server-optimize.js.map +1 -0
- package/dist/bin/policy.d.ts +3 -0
- package/dist/bin/policy.d.ts.map +1 -0
- package/dist/bin/policy.js +143 -0
- package/dist/bin/policy.js.map +1 -0
- package/dist/bin/tool-calls.d.ts +3 -0
- package/dist/bin/tool-calls.d.ts.map +1 -0
- package/dist/bin/tool-calls.js +4 -0
- package/dist/bin/tool-calls.js.map +1 -0
- package/dist/browser/index.d.ts +2 -0
- package/dist/browser/index.d.ts.map +1 -0
- package/dist/browser/index.js +2 -0
- package/dist/browser/index.js.map +1 -0
- package/dist/browser/web-browser.d.ts +30 -0
- package/dist/browser/web-browser.d.ts.map +1 -0
- package/dist/browser/web-browser.js +93 -0
- package/dist/browser/web-browser.js.map +1 -0
- package/dist/cli/agent.d.ts +20 -0
- package/dist/cli/agent.d.ts.map +1 -0
- package/dist/cli/agent.js +474 -0
- package/dist/cli/agent.js.map +1 -0
- package/dist/cli/analyze.d.ts +7 -0
- package/dist/cli/analyze.d.ts.map +1 -0
- package/dist/cli/analyze.js +103 -0
- package/dist/cli/analyze.js.map +1 -0
- package/dist/cli/completion-gates.d.ts +51 -0
- package/dist/cli/completion-gates.d.ts.map +1 -0
- package/dist/cli/completion-gates.js +201 -0
- package/dist/cli/completion-gates.js.map +1 -0
- package/dist/cli/compliance.d.ts +8 -0
- package/dist/cli/compliance.d.ts.map +1 -0
- package/dist/cli/compliance.js +509 -0
- package/dist/cli/compliance.js.map +1 -0
- package/dist/cli/coord.d.ts +7 -0
- package/dist/cli/coord.d.ts.map +1 -0
- package/dist/cli/coord.js +138 -0
- package/dist/cli/coord.js.map +1 -0
- package/dist/cli/dashboard.d.ts +21 -0
- package/dist/cli/dashboard.d.ts.map +1 -0
- package/dist/cli/dashboard.js +1508 -0
- package/dist/cli/dashboard.js.map +1 -0
- package/dist/cli/deploy.d.ts +19 -0
- package/dist/cli/deploy.d.ts.map +1 -0
- package/dist/cli/deploy.js +387 -0
- package/dist/cli/deploy.js.map +1 -0
- package/dist/cli/droids.d.ts +9 -0
- package/dist/cli/droids.d.ts.map +1 -0
- package/dist/cli/droids.js +227 -0
- package/dist/cli/droids.js.map +1 -0
- package/dist/cli/generate.d.ts +17 -0
- package/dist/cli/generate.d.ts.map +1 -0
- package/dist/cli/generate.js +432 -0
- package/dist/cli/generate.js.map +1 -0
- package/dist/cli/hooks.d.ts +9 -0
- package/dist/cli/hooks.d.ts.map +1 -0
- package/dist/cli/hooks.js +464 -0
- package/dist/cli/hooks.js.map +1 -0
- package/dist/cli/init.d.ts +12 -0
- package/dist/cli/init.d.ts.map +1 -0
- package/dist/cli/init.js +364 -0
- package/dist/cli/init.js.map +1 -0
- package/dist/cli/mcp-router.d.ts +16 -0
- package/dist/cli/mcp-router.d.ts.map +1 -0
- package/dist/cli/mcp-router.js +143 -0
- package/dist/cli/mcp-router.js.map +1 -0
- package/dist/cli/memory.d.ts +24 -0
- package/dist/cli/memory.d.ts.map +1 -0
- package/dist/cli/memory.js +885 -0
- package/dist/cli/memory.js.map +1 -0
- package/dist/cli/model.d.ts +15 -0
- package/dist/cli/model.d.ts.map +1 -0
- package/dist/cli/model.js +290 -0
- package/dist/cli/model.js.map +1 -0
- package/dist/cli/patterns.d.ts +26 -0
- package/dist/cli/patterns.d.ts.map +1 -0
- package/dist/cli/patterns.js +862 -0
- package/dist/cli/patterns.js.map +1 -0
- package/dist/cli/rtk-validation.d.ts +9 -0
- package/dist/cli/rtk-validation.d.ts.map +1 -0
- package/dist/cli/rtk-validation.js +9 -0
- package/dist/cli/rtk-validation.js.map +1 -0
- package/dist/cli/rtk.d.ts +34 -0
- package/dist/cli/rtk.d.ts.map +1 -0
- package/dist/cli/rtk.js +401 -0
- package/dist/cli/rtk.js.map +1 -0
- package/dist/cli/schema-diff.d.ts +7 -0
- package/dist/cli/schema-diff.d.ts.map +1 -0
- package/dist/cli/schema-diff.js +11 -0
- package/dist/cli/schema-diff.js.map +1 -0
- package/dist/cli/setup-mcp-router.d.ts +8 -0
- package/dist/cli/setup-mcp-router.d.ts.map +1 -0
- package/dist/cli/setup-mcp-router.js +163 -0
- package/dist/cli/setup-mcp-router.js.map +1 -0
- package/dist/cli/setup-wizard.d.ts +2 -0
- package/dist/cli/setup-wizard.d.ts.map +1 -0
- package/dist/cli/setup-wizard.js +806 -0
- package/dist/cli/setup-wizard.js.map +1 -0
- package/dist/cli/setup.d.ts +15 -0
- package/dist/cli/setup.d.ts.map +1 -0
- package/dist/cli/setup.js +154 -0
- package/dist/cli/setup.js.map +1 -0
- package/dist/cli/sync.d.ts +8 -0
- package/dist/cli/sync.d.ts.map +1 -0
- package/dist/cli/sync.js +395 -0
- package/dist/cli/sync.js.map +1 -0
- package/dist/cli/task.d.ts +33 -0
- package/dist/cli/task.d.ts.map +1 -0
- package/dist/cli/task.js +672 -0
- package/dist/cli/task.js.map +1 -0
- package/dist/cli/tool-calls.d.ts +20 -0
- package/dist/cli/tool-calls.d.ts.map +1 -0
- package/dist/cli/tool-calls.js +605 -0
- package/dist/cli/tool-calls.js.map +1 -0
- package/dist/cli/uap.d.ts +10 -0
- package/dist/cli/uap.d.ts.map +1 -0
- package/dist/cli/uap.js +398 -0
- package/dist/cli/uap.js.map +1 -0
- package/dist/cli/update.d.ts +10 -0
- package/dist/cli/update.d.ts.map +1 -0
- package/dist/cli/update.js +300 -0
- package/dist/cli/update.js.map +1 -0
- package/dist/cli/visualize.d.ts +77 -0
- package/dist/cli/visualize.d.ts.map +1 -0
- package/dist/cli/visualize.js +287 -0
- package/dist/cli/visualize.js.map +1 -0
- package/dist/cli/worktree.d.ts +9 -0
- package/dist/cli/worktree.d.ts.map +1 -0
- package/dist/cli/worktree.js +213 -0
- package/dist/cli/worktree.js.map +1 -0
- package/dist/coordination/adaptive-patterns.d.ts +65 -0
- package/dist/coordination/adaptive-patterns.d.ts.map +1 -0
- package/dist/coordination/adaptive-patterns.js +108 -0
- package/dist/coordination/adaptive-patterns.js.map +1 -0
- package/dist/coordination/auto-agent.d.ts +82 -0
- package/dist/coordination/auto-agent.d.ts.map +1 -0
- package/dist/coordination/auto-agent.js +145 -0
- package/dist/coordination/auto-agent.js.map +1 -0
- package/dist/coordination/capability-router.d.ts +79 -0
- package/dist/coordination/capability-router.d.ts.map +1 -0
- package/dist/coordination/capability-router.js +334 -0
- package/dist/coordination/capability-router.js.map +1 -0
- package/dist/coordination/database.d.ts +13 -0
- package/dist/coordination/database.d.ts.map +1 -0
- package/dist/coordination/database.js +136 -0
- package/dist/coordination/database.js.map +1 -0
- package/dist/coordination/deploy-batcher.d.ts +122 -0
- package/dist/coordination/deploy-batcher.d.ts.map +1 -0
- package/dist/coordination/deploy-batcher.js +718 -0
- package/dist/coordination/deploy-batcher.js.map +1 -0
- package/dist/coordination/droid-validator.d.ts +59 -0
- package/dist/coordination/droid-validator.d.ts.map +1 -0
- package/dist/coordination/droid-validator.js +142 -0
- package/dist/coordination/droid-validator.js.map +1 -0
- package/dist/coordination/index.d.ts +10 -0
- package/dist/coordination/index.d.ts.map +1 -0
- package/dist/coordination/index.js +10 -0
- package/dist/coordination/index.js.map +1 -0
- package/dist/coordination/pattern-router.d.ts +50 -0
- package/dist/coordination/pattern-router.d.ts.map +1 -0
- package/dist/coordination/pattern-router.js +118 -0
- package/dist/coordination/pattern-router.js.map +1 -0
- package/dist/coordination/service.d.ts +81 -0
- package/dist/coordination/service.d.ts.map +1 -0
- package/dist/coordination/service.js +619 -0
- package/dist/coordination/service.js.map +1 -0
- package/dist/coordination/worktree-enforcer.d.ts +22 -0
- package/dist/coordination/worktree-enforcer.d.ts.map +1 -0
- package/dist/coordination/worktree-enforcer.js +71 -0
- package/dist/coordination/worktree-enforcer.js.map +1 -0
- package/dist/generators/claude-md.d.ts +3 -0
- package/dist/generators/claude-md.d.ts.map +1 -0
- package/dist/generators/claude-md.js +1020 -0
- package/dist/generators/claude-md.js.map +1 -0
- package/dist/generators/template-loader.d.ts +105 -0
- package/dist/generators/template-loader.d.ts.map +1 -0
- package/dist/generators/template-loader.js +291 -0
- package/dist/generators/template-loader.js.map +1 -0
- package/dist/index.d.ts +49 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +63 -0
- package/dist/index.js.map +1 -0
- package/dist/mcp-router/config/parser.d.ts +9 -0
- package/dist/mcp-router/config/parser.d.ts.map +1 -0
- package/dist/mcp-router/config/parser.js +174 -0
- package/dist/mcp-router/config/parser.js.map +1 -0
- package/dist/mcp-router/executor/client.d.ts +31 -0
- package/dist/mcp-router/executor/client.d.ts.map +1 -0
- package/dist/mcp-router/executor/client.js +189 -0
- package/dist/mcp-router/executor/client.js.map +1 -0
- package/dist/mcp-router/index.d.ts +22 -0
- package/dist/mcp-router/index.d.ts.map +1 -0
- package/dist/mcp-router/index.js +18 -0
- package/dist/mcp-router/index.js.map +1 -0
- package/dist/mcp-router/output-compressor.d.ts +26 -0
- package/dist/mcp-router/output-compressor.d.ts.map +1 -0
- package/dist/mcp-router/output-compressor.js +236 -0
- package/dist/mcp-router/output-compressor.js.map +1 -0
- package/dist/mcp-router/search/fuzzy.d.ts +26 -0
- package/dist/mcp-router/search/fuzzy.d.ts.map +1 -0
- package/dist/mcp-router/search/fuzzy.js +94 -0
- package/dist/mcp-router/search/fuzzy.js.map +1 -0
- package/dist/mcp-router/server.d.ts +50 -0
- package/dist/mcp-router/server.d.ts.map +1 -0
- package/dist/mcp-router/server.js +229 -0
- package/dist/mcp-router/server.js.map +1 -0
- package/dist/mcp-router/session-stats.d.ts +37 -0
- package/dist/mcp-router/session-stats.d.ts.map +1 -0
- package/dist/mcp-router/session-stats.js +56 -0
- package/dist/mcp-router/session-stats.js.map +1 -0
- package/dist/mcp-router/tools/discover.d.ts +37 -0
- package/dist/mcp-router/tools/discover.d.ts.map +1 -0
- package/dist/mcp-router/tools/discover.js +65 -0
- package/dist/mcp-router/tools/discover.js.map +1 -0
- package/dist/mcp-router/tools/execute.d.ts +43 -0
- package/dist/mcp-router/tools/execute.d.ts.map +1 -0
- package/dist/mcp-router/tools/execute.js +144 -0
- package/dist/mcp-router/tools/execute.js.map +1 -0
- package/dist/mcp-router/types.d.ts +62 -0
- package/dist/mcp-router/types.d.ts.map +1 -0
- package/dist/mcp-router/types.js +6 -0
- package/dist/mcp-router/types.js.map +1 -0
- package/dist/memory/adaptive-context.d.ts +149 -0
- package/dist/memory/adaptive-context.d.ts.map +1 -0
- package/dist/memory/adaptive-context.js +1095 -0
- package/dist/memory/adaptive-context.js.map +1 -0
- package/dist/memory/agent-scoped-memory.d.ts +67 -0
- package/dist/memory/agent-scoped-memory.d.ts.map +1 -0
- package/dist/memory/agent-scoped-memory.js +126 -0
- package/dist/memory/agent-scoped-memory.js.map +1 -0
- package/dist/memory/ambiguity-detector.d.ts +54 -0
- package/dist/memory/ambiguity-detector.d.ts.map +1 -0
- package/dist/memory/ambiguity-detector.js +401 -0
- package/dist/memory/ambiguity-detector.js.map +1 -0
- package/dist/memory/backends/base.d.ts +18 -0
- package/dist/memory/backends/base.d.ts.map +1 -0
- package/dist/memory/backends/base.js +2 -0
- package/dist/memory/backends/base.js.map +1 -0
- package/dist/memory/backends/factory.d.ts +4 -0
- package/dist/memory/backends/factory.d.ts.map +1 -0
- package/dist/memory/backends/factory.js +53 -0
- package/dist/memory/backends/factory.js.map +1 -0
- package/dist/memory/backends/github.d.ts +27 -0
- package/dist/memory/backends/github.d.ts.map +1 -0
- package/dist/memory/backends/github.js +134 -0
- package/dist/memory/backends/github.js.map +1 -0
- package/dist/memory/backends/qdrant-cloud.d.ts +32 -0
- package/dist/memory/backends/qdrant-cloud.d.ts.map +1 -0
- package/dist/memory/backends/qdrant-cloud.js +167 -0
- package/dist/memory/backends/qdrant-cloud.js.map +1 -0
- package/dist/memory/context-compressor.d.ts +116 -0
- package/dist/memory/context-compressor.d.ts.map +1 -0
- package/dist/memory/context-compressor.js +430 -0
- package/dist/memory/context-compressor.js.map +1 -0
- package/dist/memory/context-pruner.d.ts +55 -0
- package/dist/memory/context-pruner.d.ts.map +1 -0
- package/dist/memory/context-pruner.js +85 -0
- package/dist/memory/context-pruner.js.map +1 -0
- package/dist/memory/correction-propagator.d.ts +44 -0
- package/dist/memory/correction-propagator.d.ts.map +1 -0
- package/dist/memory/correction-propagator.js +156 -0
- package/dist/memory/correction-propagator.js.map +1 -0
- package/dist/memory/daily-log.d.ts +67 -0
- package/dist/memory/daily-log.d.ts.map +1 -0
- package/dist/memory/daily-log.js +143 -0
- package/dist/memory/daily-log.js.map +1 -0
- package/dist/memory/dynamic-retrieval.d.ts +112 -0
- package/dist/memory/dynamic-retrieval.d.ts.map +1 -0
- package/dist/memory/dynamic-retrieval.js +908 -0
- package/dist/memory/dynamic-retrieval.js.map +1 -0
- package/dist/memory/embeddings.d.ts +172 -0
- package/dist/memory/embeddings.d.ts.map +1 -0
- package/dist/memory/embeddings.js +780 -0
- package/dist/memory/embeddings.js.map +1 -0
- package/dist/memory/generic-uap-patterns.d.ts +7 -0
- package/dist/memory/generic-uap-patterns.d.ts.map +1 -0
- package/dist/memory/generic-uap-patterns.js +43 -0
- package/dist/memory/generic-uap-patterns.js.map +1 -0
- package/dist/memory/hierarchical-memory.d.ts +141 -0
- package/dist/memory/hierarchical-memory.d.ts.map +1 -0
- package/dist/memory/hierarchical-memory.js +485 -0
- package/dist/memory/hierarchical-memory.js.map +1 -0
- package/dist/memory/knowledge-graph.d.ts +98 -0
- package/dist/memory/knowledge-graph.d.ts.map +1 -0
- package/dist/memory/knowledge-graph.js +275 -0
- package/dist/memory/knowledge-graph.js.map +1 -0
- package/dist/memory/memory-consolidator.d.ts +124 -0
- package/dist/memory/memory-consolidator.d.ts.map +1 -0
- package/dist/memory/memory-consolidator.js +514 -0
- package/dist/memory/memory-consolidator.js.map +1 -0
- package/dist/memory/memory-maintenance.d.ts +39 -0
- package/dist/memory/memory-maintenance.d.ts.map +1 -0
- package/dist/memory/memory-maintenance.js +336 -0
- package/dist/memory/memory-maintenance.js.map +1 -0
- package/dist/memory/model-router.d.ts +105 -0
- package/dist/memory/model-router.d.ts.map +1 -0
- package/dist/memory/model-router.js +474 -0
- package/dist/memory/model-router.js.map +1 -0
- package/dist/memory/multi-view-memory.d.ts +134 -0
- package/dist/memory/multi-view-memory.d.ts.map +1 -0
- package/dist/memory/multi-view-memory.js +430 -0
- package/dist/memory/multi-view-memory.js.map +1 -0
- package/dist/memory/predictive-memory.d.ts +79 -0
- package/dist/memory/predictive-memory.d.ts.map +1 -0
- package/dist/memory/predictive-memory.js +294 -0
- package/dist/memory/predictive-memory.js.map +1 -0
- package/dist/memory/prepopulate.d.ts +76 -0
- package/dist/memory/prepopulate.d.ts.map +1 -0
- package/dist/memory/prepopulate.js +832 -0
- package/dist/memory/prepopulate.js.map +1 -0
- package/dist/memory/semantic-compression.d.ts +77 -0
- package/dist/memory/semantic-compression.d.ts.map +1 -0
- package/dist/memory/semantic-compression.js +359 -0
- package/dist/memory/semantic-compression.js.map +1 -0
- package/dist/memory/serverless-qdrant.d.ts +102 -0
- package/dist/memory/serverless-qdrant.d.ts.map +1 -0
- package/dist/memory/serverless-qdrant.js +369 -0
- package/dist/memory/serverless-qdrant.js.map +1 -0
- package/dist/memory/short-term/factory.d.ts +26 -0
- package/dist/memory/short-term/factory.d.ts.map +1 -0
- package/dist/memory/short-term/factory.js +28 -0
- package/dist/memory/short-term/factory.js.map +1 -0
- package/dist/memory/short-term/indexeddb.d.ts +25 -0
- package/dist/memory/short-term/indexeddb.d.ts.map +1 -0
- package/dist/memory/short-term/indexeddb.js +64 -0
- package/dist/memory/short-term/indexeddb.js.map +1 -0
- package/dist/memory/short-term/schema.d.ts +6 -0
- package/dist/memory/short-term/schema.d.ts.map +1 -0
- package/dist/memory/short-term/schema.js +141 -0
- package/dist/memory/short-term/schema.js.map +1 -0
- package/dist/memory/short-term/sqlite.d.ts +64 -0
- package/dist/memory/short-term/sqlite.d.ts.map +1 -0
- package/dist/memory/short-term/sqlite.js +274 -0
- package/dist/memory/short-term/sqlite.js.map +1 -0
- package/dist/memory/speculative-cache.d.ts +111 -0
- package/dist/memory/speculative-cache.d.ts.map +1 -0
- package/dist/memory/speculative-cache.js +457 -0
- package/dist/memory/speculative-cache.js.map +1 -0
- package/dist/memory/task-classifier.d.ts +40 -0
- package/dist/memory/task-classifier.d.ts.map +1 -0
- package/dist/memory/task-classifier.js +342 -0
- package/dist/memory/task-classifier.js.map +1 -0
- package/dist/memory/terminal-bench-knowledge.d.ts +48 -0
- package/dist/memory/terminal-bench-knowledge.d.ts.map +1 -0
- package/dist/memory/terminal-bench-knowledge.js +622 -0
- package/dist/memory/terminal-bench-knowledge.js.map +1 -0
- package/dist/memory/write-gate.d.ts +39 -0
- package/dist/memory/write-gate.d.ts.map +1 -0
- package/dist/memory/write-gate.js +190 -0
- package/dist/memory/write-gate.js.map +1 -0
- package/dist/models/api-client.d.ts +46 -0
- package/dist/models/api-client.d.ts.map +1 -0
- package/dist/models/api-client.js +182 -0
- package/dist/models/api-client.js.map +1 -0
- package/dist/models/execution-profiles.d.ts +64 -0
- package/dist/models/execution-profiles.d.ts.map +1 -0
- package/dist/models/execution-profiles.js +403 -0
- package/dist/models/execution-profiles.js.map +1 -0
- package/dist/models/executor.d.ts +130 -0
- package/dist/models/executor.d.ts.map +1 -0
- package/dist/models/executor.js +382 -0
- package/dist/models/executor.js.map +1 -0
- package/dist/models/index.d.ts +19 -0
- package/dist/models/index.d.ts.map +1 -0
- package/dist/models/index.js +23 -0
- package/dist/models/index.js.map +1 -0
- package/dist/models/plan-validator.d.ts +37 -0
- package/dist/models/plan-validator.d.ts.map +1 -0
- package/dist/models/plan-validator.js +179 -0
- package/dist/models/plan-validator.js.map +1 -0
- package/dist/models/planner.d.ts +73 -0
- package/dist/models/planner.d.ts.map +1 -0
- package/dist/models/planner.js +375 -0
- package/dist/models/planner.js.map +1 -0
- package/dist/models/router.d.ts +96 -0
- package/dist/models/router.d.ts.map +1 -0
- package/dist/models/router.js +523 -0
- package/dist/models/router.js.map +1 -0
- package/dist/models/types.d.ts +370 -0
- package/dist/models/types.d.ts.map +1 -0
- package/dist/models/types.js +232 -0
- package/dist/models/types.js.map +1 -0
- package/dist/models/unified-router.d.ts +152 -0
- package/dist/models/unified-router.d.ts.map +1 -0
- package/dist/models/unified-router.js +313 -0
- package/dist/models/unified-router.js.map +1 -0
- package/dist/policies/convert-policy-to-claude.d.ts +3 -0
- package/dist/policies/convert-policy-to-claude.d.ts.map +1 -0
- package/dist/policies/convert-policy-to-claude.js +87 -0
- package/dist/policies/convert-policy-to-claude.js.map +1 -0
- package/dist/policies/database-manager.d.ts +27 -0
- package/dist/policies/database-manager.d.ts.map +1 -0
- package/dist/policies/database-manager.js +198 -0
- package/dist/policies/database-manager.js.map +1 -0
- package/dist/policies/enforced-tool-router.d.ts +53 -0
- package/dist/policies/enforced-tool-router.d.ts.map +1 -0
- package/dist/policies/enforced-tool-router.js +80 -0
- package/dist/policies/enforced-tool-router.js.map +1 -0
- package/dist/policies/index.d.ts +10 -0
- package/dist/policies/index.d.ts.map +1 -0
- package/dist/policies/index.js +8 -0
- package/dist/policies/index.js.map +1 -0
- package/dist/policies/policy-gate.d.ts +59 -0
- package/dist/policies/policy-gate.d.ts.map +1 -0
- package/dist/policies/policy-gate.js +171 -0
- package/dist/policies/policy-gate.js.map +1 -0
- package/dist/policies/policy-memory.d.ts +18 -0
- package/dist/policies/policy-memory.d.ts.map +1 -0
- package/dist/policies/policy-memory.js +126 -0
- package/dist/policies/policy-memory.js.map +1 -0
- package/dist/policies/policy-tools.d.ts +11 -0
- package/dist/policies/policy-tools.d.ts.map +1 -0
- package/dist/policies/policy-tools.js +66 -0
- package/dist/policies/policy-tools.js.map +1 -0
- package/dist/policies/schemas/policy.d.ts +69 -0
- package/dist/policies/schemas/policy.d.ts.map +1 -0
- package/dist/policies/schemas/policy.js +31 -0
- package/dist/policies/schemas/policy.js.map +1 -0
- package/dist/tasks/coordination.d.ts +83 -0
- package/dist/tasks/coordination.d.ts.map +1 -0
- package/dist/tasks/coordination.js +291 -0
- package/dist/tasks/coordination.js.map +1 -0
- package/dist/tasks/database.d.ts +19 -0
- package/dist/tasks/database.d.ts.map +1 -0
- package/dist/tasks/database.js +149 -0
- package/dist/tasks/database.js.map +1 -0
- package/dist/tasks/decoder-gate.d.ts +64 -0
- package/dist/tasks/decoder-gate.d.ts.map +1 -0
- package/dist/tasks/decoder-gate.js +268 -0
- package/dist/tasks/decoder-gate.js.map +1 -0
- package/dist/tasks/index.d.ts +6 -0
- package/dist/tasks/index.d.ts.map +1 -0
- package/dist/tasks/index.js +6 -0
- package/dist/tasks/index.js.map +1 -0
- package/dist/tasks/service.d.ts +40 -0
- package/dist/tasks/service.d.ts.map +1 -0
- package/dist/tasks/service.js +671 -0
- package/dist/tasks/service.js.map +1 -0
- package/dist/tasks/types.d.ts +238 -0
- package/dist/tasks/types.d.ts.map +1 -0
- package/dist/tasks/types.js +74 -0
- package/dist/tasks/types.js.map +1 -0
- package/dist/telemetry/index.d.ts +2 -0
- package/dist/telemetry/index.d.ts.map +1 -0
- package/dist/telemetry/index.js +2 -0
- package/dist/telemetry/index.js.map +1 -0
- package/dist/telemetry/session-telemetry.d.ts +56 -0
- package/dist/telemetry/session-telemetry.d.ts.map +1 -0
- package/dist/telemetry/session-telemetry.js +807 -0
- package/dist/telemetry/session-telemetry.js.map +1 -0
- package/dist/types/analysis.d.ts +82 -0
- package/dist/types/analysis.d.ts.map +1 -0
- package/dist/types/analysis.js +2 -0
- package/dist/types/analysis.js.map +1 -0
- package/dist/types/config.d.ts +3324 -0
- package/dist/types/config.d.ts.map +1 -0
- package/dist/types/config.js +418 -0
- package/dist/types/config.js.map +1 -0
- package/dist/types/coordination.d.ts +240 -0
- package/dist/types/coordination.d.ts.map +1 -0
- package/dist/types/coordination.js +43 -0
- package/dist/types/coordination.js.map +1 -0
- package/dist/types/index.d.ts +4 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/index.js +4 -0
- package/dist/types/index.js.map +1 -0
- package/dist/uap-droids-strict.d.ts +59 -0
- package/dist/uap-droids-strict.d.ts.map +1 -0
- package/dist/uap-droids-strict.js +200 -0
- package/dist/uap-droids-strict.js.map +1 -0
- package/dist/utils/config-manager.d.ts +30 -0
- package/dist/utils/config-manager.d.ts.map +1 -0
- package/dist/utils/config-manager.js +41 -0
- package/dist/utils/config-manager.js.map +1 -0
- package/dist/utils/fetch-with-retry.d.ts +5 -0
- package/dist/utils/fetch-with-retry.d.ts.map +1 -0
- package/dist/utils/fetch-with-retry.js +61 -0
- package/dist/utils/fetch-with-retry.js.map +1 -0
- package/dist/utils/merge-claude-md.d.ts +28 -0
- package/dist/utils/merge-claude-md.d.ts.map +1 -0
- package/dist/utils/merge-claude-md.js +342 -0
- package/dist/utils/merge-claude-md.js.map +1 -0
- package/dist/utils/rate-limiter.d.ts +58 -0
- package/dist/utils/rate-limiter.d.ts.map +1 -0
- package/dist/utils/rate-limiter.js +100 -0
- package/dist/utils/rate-limiter.js.map +1 -0
- package/dist/utils/string-similarity.d.ts +37 -0
- package/dist/utils/string-similarity.d.ts.map +1 -0
- package/dist/utils/string-similarity.js +114 -0
- package/dist/utils/string-similarity.js.map +1 -0
- package/dist/utils/validate-json.d.ts +51 -0
- package/dist/utils/validate-json.d.ts.map +1 -0
- package/dist/utils/validate-json.js +94 -0
- package/dist/utils/validate-json.js.map +1 -0
- package/docs/INDEX.md +66 -0
- package/docs/architecture/MULTI_MODEL.md +224 -0
- package/docs/architecture/SYSTEM_ANALYSIS.md +1117 -0
- package/docs/architecture/UAP_COMPLIANCE.md +217 -0
- package/docs/architecture/UAP_PROTOCOL.md +339 -0
- package/docs/architecture/UAP_STRICT_DROIDS.md +172 -0
- package/docs/archive/BALLS_MODE_SELF_ANALYSIS.md +260 -0
- package/docs/archive/FAILING_TASKS_SOLUTION_PLAN.md +668 -0
- package/docs/archive/JINJA2-SYSTEM-MESSAGE-FIX.md +209 -0
- package/docs/archive/NPM-PUBLISH-V0.9.1.md +240 -0
- package/docs/archive/OPTIMIZATION_OPTIONS.md +334 -0
- package/docs/archive/SETUP_IMPROVEMENTS.md +213 -0
- package/docs/archive/UAP_GENERIC_OPTIMIZATION_PLAN.md +270 -0
- package/docs/archive/UAP_V103_PATTERN_DESIGN.md +315 -0
- package/docs/archive/UAP_V104_COMPLIANCE_DESIGN.md +223 -0
- package/docs/archive/changelog/2026-03-10_uap-100-compliance.md +77 -0
- package/docs/archive/changelog/2026-03-10_uap-full-system-verification.md +109 -0
- package/docs/benchmarks/ACCURACY_ANALYSIS.md +471 -0
- package/docs/benchmarks/TOKEN_OPTIMIZATION.md +572 -0
- package/docs/benchmarks/VALIDATION_PLAN.md +568 -0
- package/docs/benchmarks/VALIDATION_RESULTS.md +161 -0
- package/docs/deployment/DEPLOYMENT.md +895 -0
- package/docs/deployment/DEPLOYMENT_STRATEGIES.md +518 -0
- package/docs/deployment/DEPLOY_BATCHER_ANALYSIS.md +856 -0
- package/docs/deployment/DEPLOY_BATCHING.md +273 -0
- package/docs/deployment/DEPLOY_BUCKETING_ANALYSIS.md +420 -0
- package/docs/deployment/QWEN35_LLAMA_CPP.md +265 -0
- package/docs/getting-started/INTEGRATION.md +449 -0
- package/docs/getting-started/OVERVIEW.md +344 -0
- package/docs/getting-started/SETUP.md +203 -0
- package/docs/integrations/MCP_ROUTER_SETUP.md +445 -0
- package/docs/integrations/RTK_INTEGRATION.md +468 -0
- package/docs/operations/TROUBLESHOOTING.md +660 -0
- package/docs/reference/API_REFERENCE.md +903 -0
- package/docs/reference/FEATURES.md +472 -0
- package/docs/reference/HARNESS-MATRIX.md +318 -0
- package/docs/reference/UAP_CLI_REFERENCE.md +600 -0
- package/docs/research/BEHAVIORAL_PATTERNS.md +228 -0
- package/docs/research/DOMAIN_STRATEGIES.md +316 -0
- package/docs/research/MEMORY_SYSTEMS_COMPARISON.md +812 -0
- package/docs/research/PATTERN_ANALYSIS_2026-01-18.md +436 -0
- package/docs/research/PERFORMANCE_ANALYSIS_2026-01-18.md +209 -0
- package/docs/research/PERFORMANCE_TEST_PLAN.md +383 -0
- package/docs/research/TERMINAL_BENCH_LEARNINGS.md +217 -0
- package/package.json +113 -0
- package/scripts/README.md +161 -0
- package/templates/CLAUDE.template.md +10 -0
- package/templates/CLAUDE_ARCHITECTURE.template.md +103 -0
- package/templates/CLAUDE_CODING.template.md +127 -0
- package/templates/CLAUDE_DROIDS.template.md +109 -0
- package/templates/CLAUDE_MEMORY.template.md +131 -0
- package/templates/CLAUDE_WORKFLOWS.template.md +139 -0
- package/templates/PROJECT.template.md +209 -0
- package/templates/SCHEMA.md +57 -0
- package/templates/archive/CLAUDE.template.root-v6.md +534 -0
- package/templates/archive/CLAUDE.template.v6.md +534 -0
- package/templates/hooks/forgecode/pre-compact.sh +68 -0
- package/templates/hooks/forgecode/session-start.sh +169 -0
- package/templates/hooks/forgecode.plugin.sh +128 -0
- package/templates/hooks/pre-compact.sh +74 -0
- package/templates/hooks/session-start.sh +366 -0
- package/tools/agents/README.md +224 -0
- package/tools/agents/UAP/README.md +386 -0
- package/tools/agents/UAP/__init__.py +9 -0
- package/tools/agents/UAP/cli.py +901 -0
- package/tools/agents/UAP/compliance_verify.sh +108 -0
- package/tools/agents/UAP/full_verification.sh +126 -0
- package/tools/agents/UAP/version.py +32 -0
- package/tools/agents/benchmarks/benchmark_memory_systems.py +730 -0
- package/tools/agents/benchmarks/results/benchmark_20260106_064817.json +170 -0
- package/tools/agents/benchmarks/results/benchmark_20260106_064817.md +51 -0
- package/tools/agents/config/chat_template.jinja +77 -0
- package/tools/agents/config/tool-call-schema.json +19 -0
- package/tools/agents/config/tool-call.gbnf +58 -0
- package/tools/agents/docker/Dockerfile.python +52 -0
- package/tools/agents/docker/Dockerfile.ubuntu +55 -0
- package/tools/agents/docker-compose.qdrant.yml +24 -0
- package/tools/agents/install-opencode-local.sh.j2 +135 -0
- package/tools/agents/migrations/apply.py +256 -0
- package/tools/agents/opencode_uap_agent.py +1505 -0
- package/tools/agents/plugin/README.md +91 -0
- package/tools/agents/plugin/index.ts +46 -0
- package/tools/agents/plugin/pre-compact.sh +68 -0
- package/tools/agents/plugin/session-start.sh +175 -0
- package/tools/agents/plugin/uap-commands.ts +45 -0
- package/tools/agents/plugin/uap-droids.ts +54 -0
- package/tools/agents/plugin/uap-patterns.ts +54 -0
- package/tools/agents/plugin/uap-skills.ts +52 -0
- package/tools/agents/plugins/uap-enforce.ts +314 -0
- package/tools/agents/scripts/__pycache__/tool_call_wrapper.cpython-313.pyc +0 -0
- package/tools/agents/scripts/chat_template_verifier.py +343 -0
- package/tools/agents/scripts/fix-qwen-template.js +38 -0
- package/tools/agents/scripts/fix_qwen_chat_template.py +316 -0
- package/tools/agents/scripts/generate_lora_training_data.py +412 -0
- package/tools/agents/scripts/init_qdrant.py +151 -0
- package/tools/agents/scripts/memory_migration.py +560 -0
- package/tools/agents/scripts/migrate_memory_to_qdrant.py +110 -0
- package/tools/agents/scripts/prepare_lora.sh +512 -0
- package/tools/agents/scripts/query_memory.py +200 -0
- package/tools/agents/scripts/qwen-tool-call-test.js +38 -0
- package/tools/agents/scripts/qwen-tool-call-wrapper.js +38 -0
- package/tools/agents/scripts/qwen_tool_call_test.py +464 -0
- package/tools/agents/scripts/qwen_tool_call_wrapper.py +686 -0
- package/tools/agents/scripts/start-services.sh +96 -0
- package/tools/agents/scripts/tool-choice-proxy.cjs +296 -0
- package/tools/agents/scripts/tool_call_test.py +656 -0
- package/tools/agents/scripts/tool_call_wrapper.py +799 -0
- package/tools/agents/tests/test_uap_compliance.py +257 -0
- package/tools/agents/uap_agent.py +122 -0
- package/tools/agents/uap_agent_install.sh +12 -0
|
@@ -0,0 +1,223 @@
|
|
|
1
|
+
# UAM v10.4 Pattern Compliance Design
|
|
2
|
+
|
|
3
|
+
**Generated:** 2026-01-18
|
|
4
|
+
**Problem:** 75% of failures have patterns that EXIST but weren't APPLIED
|
|
5
|
+
**Solution:** Mandatory checkpoint gates + pattern router
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## Executive Summary
|
|
10
|
+
|
|
11
|
+
Analysis of 16 failing tasks in uam_opus45_correct reveals:
|
|
12
|
+
- **12/16 (75%)** failures have relevant UAM patterns that weren't applied
|
|
13
|
+
- This is a **COMPLIANCE problem**, not a pattern coverage problem
|
|
14
|
+
- Current patterns are advisory; agents can skip them without consequence
|
|
15
|
+
|
|
16
|
+
---
|
|
17
|
+
|
|
18
|
+
## Root Cause Analysis
|
|
19
|
+
|
|
20
|
+
### Why Patterns Aren't Being Applied
|
|
21
|
+
|
|
22
|
+
| Root Cause | Impact | Evidence |
|
|
23
|
+
|------------|--------|----------|
|
|
24
|
+
| **Cognitive Overload** | HIGH | 20 patterns too many to remember during task |
|
|
25
|
+
| **No Enforcement** | HIGH | Patterns are advisory, not mandatory |
|
|
26
|
+
| **Selection Confusion** | MEDIUM | Agent must manually map task → patterns |
|
|
27
|
+
| **Timing Issue** | MEDIUM | Critical reminders at END, may not be re-read |
|
|
28
|
+
|
|
29
|
+
### Failure-to-Pattern Mapping
|
|
30
|
+
|
|
31
|
+
| Task | Score | Relevant Pattern | Applied? |
|
|
32
|
+
|------|-------|------------------|----------|
|
|
33
|
+
| pytorch-model-cli | 0/6 | P12 (OEV), P16 (TFE) | NO |
|
|
34
|
+
| gpt2-codegolf | 0/1 | P5 (Impossible), P19 (ITR+) | NO |
|
|
35
|
+
| break-filter-js-from-html | 0/1 | P20 (AT), P12 (OEV) | NO |
|
|
36
|
+
| feal-linear-cryptanalysis | 0/1 | P11 (Pre-computed) | NO |
|
|
37
|
+
| write-compressor | 2/3 | P12 (OEV) | Partial |
|
|
38
|
+
| caffe-cifar-10 | 1/6 | P12 (OEV), P13 (IRL) | NO |
|
|
39
|
+
| polyglot-rust-c | 0/1 | P17 (CE) | NO |
|
|
40
|
+
| fix-git | 0/2 | P3 (State Protection) | NO |
|
|
41
|
+
| pypi-server | 0/1 | P14 (OFV), P17 (CE) | NO |
|
|
42
|
+
| mteb-retrieve | 1/2 | P14 (OFV), P17 (CE) | NO |
|
|
43
|
+
| chess-best-move | 0/1 | P18 (MTP), P11 | NO |
|
|
44
|
+
| winning-avg-corewars | 2/3 | P13 (IRL) | Partial |
|
|
45
|
+
| adaptive-rejection-sampler | 8/9 | P13 (IRL) | Partial |
|
|
46
|
+
| torch-tensor-parallelism | 1/3 | P15 (ER) | NO |
|
|
47
|
+
| configure-git-webserver | 0/1 | P2 (Recipe), P15 (ER) | NO |
|
|
48
|
+
| headless-terminal | 6/7 | P13 (IRL) | Partial |
|
|
49
|
+
|
|
50
|
+
---
|
|
51
|
+
|
|
52
|
+
## Proposed Solutions
|
|
53
|
+
|
|
54
|
+
### Solution 1: Mandatory Checkpoint Gates (PRIORITY 1)
|
|
55
|
+
|
|
56
|
+
Add BLOCKING checkpoints that prevent completion without verification.
|
|
57
|
+
|
|
58
|
+
```markdown
|
|
59
|
+
## 🚦 MANDATORY COMPLETION GATES
|
|
60
|
+
|
|
61
|
+
**CANNOT say "done" or "complete" until ALL gates pass:**
|
|
62
|
+
|
|
63
|
+
### GATE 1: Output Existence (P12)
|
|
64
|
+
```bash
|
|
65
|
+
# List ALL expected outputs from task
|
|
66
|
+
OUTPUTS="/app/output.json /app/result.txt"
|
|
67
|
+
for f in $OUTPUTS; do
|
|
68
|
+
[ -f "$f" ] && echo "✓ $f" || { echo "✗ $f MISSING - CREATE NOW"; exit 1; }
|
|
69
|
+
done
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
### GATE 2: Constraint Compliance (P17)
|
|
73
|
+
```
|
|
74
|
+
Task constraints extracted:
|
|
75
|
+
☐ Single file (not multiple)
|
|
76
|
+
☐ Exactly one line output
|
|
77
|
+
☐ Format: JSON
|
|
78
|
+
☐ Size: < 5KB
|
|
79
|
+
|
|
80
|
+
ALL MUST BE CHECKED before completion.
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
### GATE 3: Test Verification (P13)
|
|
84
|
+
```bash
|
|
85
|
+
# Run tests, verify 100% pass
|
|
86
|
+
pytest /tests/ -v
|
|
87
|
+
# If < 100%, iterate (P13) until pass or timeout
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
**HARD STOP**: If ANY gate fails, DO NOT report completion.
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
### Solution 2: Pattern Router (PRIORITY 2)
|
|
94
|
+
|
|
95
|
+
First step automatically classifies task and selects relevant patterns.
|
|
96
|
+
|
|
97
|
+
```markdown
|
|
98
|
+
## 🎯 PATTERN ROUTER - MANDATORY FIRST STEP
|
|
99
|
+
|
|
100
|
+
BEFORE any work, classify the task:
|
|
101
|
+
|
|
102
|
+
| If Task Contains... | Select Patterns |
|
|
103
|
+
|--------------------|-----------------|
|
|
104
|
+
| "create file", "output to", "generate" | P12 (OEV), P16 (TFE) |
|
|
105
|
+
| "exactly", "only", "single", "must be" | P17 (CE), P14 (OFV) |
|
|
106
|
+
| "bypass", "break", "exploit", "filter" | P20 (AT) |
|
|
107
|
+
| image/audio/binary → text | P9 (Format), P18 (MTP) |
|
|
108
|
+
| "compress to X bytes", "under X limit" | P5 (Impossible), P19 (ITR+) |
|
|
109
|
+
| known algorithm (crypto, chess, ML) | P11 (Pre-computed) |
|
|
110
|
+
| config/database/state modification | P3 (State Protection) |
|
|
111
|
+
|
|
112
|
+
**Output format:**
|
|
113
|
+
```
|
|
114
|
+
TASK CLASSIFICATION: file-creation + constraint
|
|
115
|
+
SELECTED PATTERNS: P12, P16, P17, P14
|
|
116
|
+
PROCEED WITH SELECTED PATTERNS ONLY
|
|
117
|
+
```
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
### Solution 3: Compressed Super-Patterns (PRIORITY 3)
|
|
121
|
+
|
|
122
|
+
Reduce 20 patterns to 5 memorable super-patterns.
|
|
123
|
+
|
|
124
|
+
```markdown
|
|
125
|
+
## 🧠 SUPER-PATTERNS (MEMORIZE THESE 5)
|
|
126
|
+
|
|
127
|
+
### A: VERIFY OUTPUTS
|
|
128
|
+
Combines: P12 (OEV), P14 (OFV), P16 (TFE)
|
|
129
|
+
CHECK: "Do all outputs EXIST and MATCH spec?"
|
|
130
|
+
|
|
131
|
+
### B: CHECK CONSTRAINTS
|
|
132
|
+
Combines: P17 (CE), P5 (Impossible), P19 (ITR+)
|
|
133
|
+
CHECK: "Are all constraints EXTRACTED and SATISFIABLE?"
|
|
134
|
+
|
|
135
|
+
### C: SELECT TOOLS
|
|
136
|
+
Combines: P4, P8, P11, P18 (MTP)
|
|
137
|
+
CHECK: "Are the RIGHT tools SELECTED and AVAILABLE?"
|
|
138
|
+
|
|
139
|
+
### D: ITERATE TO 100%
|
|
140
|
+
Combines: P13 (IRL), P15 (ER)
|
|
141
|
+
CHECK: "If partial success, ITERATE until 100% or timeout"
|
|
142
|
+
|
|
143
|
+
### E: SPECIAL MODES
|
|
144
|
+
Combines: P20 (AT), P3 (State), P9 (Format)
|
|
145
|
+
CHECK: "Is this ADVERSARIAL / FORENSIC / FORMAT-TRANSLATION?"
|
|
146
|
+
```
|
|
147
|
+
|
|
148
|
+
---
|
|
149
|
+
|
|
150
|
+
## Implementation Plan
|
|
151
|
+
|
|
152
|
+
### Phase 1: Add Completion Gates to CLAUDE.md
|
|
153
|
+
|
|
154
|
+
```markdown
|
|
155
|
+
## 🚦 COMPLETION GATES - MANDATORY
|
|
156
|
+
|
|
157
|
+
Before saying "done" or "complete", execute ALL gates:
|
|
158
|
+
|
|
159
|
+
```bash
|
|
160
|
+
# GATE 1: Output Existence
|
|
161
|
+
echo "=== GATE 1: OUTPUT CHECK ==="
|
|
162
|
+
# [list all expected files from task]
|
|
163
|
+
ls -la /app/expected_output.* 2>&1
|
|
164
|
+
|
|
165
|
+
# GATE 2: Constraint Check
|
|
166
|
+
echo "=== GATE 2: CONSTRAINT CHECK ==="
|
|
167
|
+
# [verify each constraint from task]
|
|
168
|
+
|
|
169
|
+
# GATE 3: Test Verification
|
|
170
|
+
echo "=== GATE 3: TEST CHECK ==="
|
|
171
|
+
pytest /tests/ -v 2>&1 | tail -20
|
|
172
|
+
|
|
173
|
+
# If ANY gate fails: FIX and RE-RUN
|
|
174
|
+
# Do NOT proceed until all gates pass
|
|
175
|
+
```
|
|
176
|
+
|
|
177
|
+
**HARD RULE**: Skip gates = task INCOMPLETE
|
|
178
|
+
```
|
|
179
|
+
|
|
180
|
+
### Phase 2: Add Pattern Router to Critical Reminders
|
|
181
|
+
|
|
182
|
+
Add to CRITICAL REMINDERS at position #1:
|
|
183
|
+
|
|
184
|
+
```markdown
|
|
185
|
+
1. **PATTERN ROUTER (FIRST STEP)**: Before ANY work, classify and select:
|
|
186
|
+
- File creation task? → P12, P16
|
|
187
|
+
- Has constraints? → P17, P14
|
|
188
|
+
- Bypass/exploit? → P20
|
|
189
|
+
- Known algorithm? → P11
|
|
190
|
+
Print selected patterns before starting.
|
|
191
|
+
```
|
|
192
|
+
|
|
193
|
+
### Phase 3: Consolidate Patterns (Future)
|
|
194
|
+
|
|
195
|
+
Refactor template to use 5 super-patterns instead of 20 individual ones.
|
|
196
|
+
|
|
197
|
+
---
|
|
198
|
+
|
|
199
|
+
## Expected Impact
|
|
200
|
+
|
|
201
|
+
| Metric | Current (v10.3) | Expected (v10.4) |
|
|
202
|
+
|--------|-----------------|------------------|
|
|
203
|
+
| Pattern Compliance | 25% | 80%+ |
|
|
204
|
+
| Pass Rate | 54.3% | 70-75% |
|
|
205
|
+
| Failures from non-compliance | 12 | 2-3 |
|
|
206
|
+
|
|
207
|
+
**Reasoning:**
|
|
208
|
+
- Checkpoint gates enforce P12/P14/P17 → fixes 6+ tasks
|
|
209
|
+
- Pattern router ensures correct patterns selected → fixes 3+ tasks
|
|
210
|
+
- Combined improvement: +15-20% pass rate
|
|
211
|
+
|
|
212
|
+
---
|
|
213
|
+
|
|
214
|
+
## Files to Update
|
|
215
|
+
|
|
216
|
+
1. `templates/CLAUDE.template.md`
|
|
217
|
+
- Add COMPLETION GATES section
|
|
218
|
+
- Add PATTERN ROUTER to Critical Reminders
|
|
219
|
+
- Reorder Critical Reminders (router first)
|
|
220
|
+
|
|
221
|
+
2. `CLAUDE.md` - regenerate
|
|
222
|
+
|
|
223
|
+
3. Bump version: 1.0.3 → 1.0.4
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
# UAP 100% Compliance Implementation
|
|
2
|
+
|
|
3
|
+
**Date:** 2026-03-10
|
|
4
|
+
**Version:** 1.1.0
|
|
5
|
+
**Status:** ✅ Complete
|
|
6
|
+
|
|
7
|
+
## Summary
|
|
8
|
+
|
|
9
|
+
Implemented comprehensive Universal Agent Protocol (UAP) compliance verification and session tracking to achieve 100% protocol compliance. This is a **LIFE OR DEATH critical system** - payments and user data at risk, requiring mandatory UAP compliance.
|
|
10
|
+
|
|
11
|
+
## Changes Made
|
|
12
|
+
|
|
13
|
+
### 1. Enhanced Session Tracking
|
|
14
|
+
- Updated `.claude/hooks/session-start.sh` to automatically record session start in `session_memories` table
|
|
15
|
+
- Updated `.claude/hooks/pre-compact.sh` to automatically record session end before context compaction
|
|
16
|
+
- Ensures all agent sessions are tracked for auditability
|
|
17
|
+
|
|
18
|
+
### 2. Compliance Verification Tool
|
|
19
|
+
- Created `tools/agents/UAP/compliance_verify.sh` - automated compliance checker
|
|
20
|
+
- Validates: CLAUDE.md, memory database, UAP CLI, session hooks, coordination DB, worktrees
|
|
21
|
+
- Provides clear pass/fail status with detailed metrics
|
|
22
|
+
|
|
23
|
+
### 3. Version Update
|
|
24
|
+
- Bumped UAP CLI version from 1.0.0 to 1.1.0
|
|
25
|
+
- Added `__description__` field to version.py
|
|
26
|
+
|
|
27
|
+
### 4. Documentation Updates
|
|
28
|
+
- Updated CLAUDE.md LAST_VALIDATED date to 2026-03-10
|
|
29
|
+
- Added compliance verification reference in CLAUDE.md header
|
|
30
|
+
|
|
31
|
+
## Compliance Verification Results
|
|
32
|
+
|
|
33
|
+
```
|
|
34
|
+
✅ CLAUDE.md exists (v2.3.0, validated 2026-03-10)
|
|
35
|
+
✅ Memory database initialized (83 total memories, 6 current session entries)
|
|
36
|
+
✅ UAP CLI tool exists (v1.1.0)
|
|
37
|
+
✅ Session hooks exist (no UAM references - all using UAP)
|
|
38
|
+
✅ Coordination database initialized (9 active agents tracked)
|
|
39
|
+
✅ Worktrees directory exists (2 worktrees)
|
|
40
|
+
|
|
41
|
+
✅ ALL COMPLIANCE CHECKS PASSED (100%)
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
## How to Verify Compliance
|
|
45
|
+
|
|
46
|
+
Run the compliance verification script:
|
|
47
|
+
```bash
|
|
48
|
+
bash tools/agents/UAP/compliance_verify.sh
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
Or use the UAP CLI:
|
|
52
|
+
```bash
|
|
53
|
+
python3 tools/agents/UAP/cli.py compliance check
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
## Impact
|
|
57
|
+
|
|
58
|
+
- **100% Auditability**: All agent sessions now tracked via session_memories
|
|
59
|
+
- **Automated Verification**: One-command compliance checking
|
|
60
|
+
- **No Breaking Changes**: Backward compatible with existing workflows
|
|
61
|
+
- **Production Ready**: Verified in live environment
|
|
62
|
+
|
|
63
|
+
## Related Issues
|
|
64
|
+
|
|
65
|
+
- Fixes: UAP session tracking gaps
|
|
66
|
+
- Closes: Compliance verification automation
|
|
67
|
+
|
|
68
|
+
## Testing
|
|
69
|
+
|
|
70
|
+
- ✅ Manual verification with `bash tools/agents/UAP/compliance_verify.sh`
|
|
71
|
+
- ✅ Session start/end recording verified in memory database
|
|
72
|
+
- ✅ No UAM references remaining (all converted to UAP)
|
|
73
|
+
- ✅ All existing tests pass
|
|
74
|
+
|
|
75
|
+
---
|
|
76
|
+
**Author:** UAP Team
|
|
77
|
+
**Approved:** DevBot <dammian.miller@gmail.com>
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
# UAP Full System Verification & MCP Fix
|
|
2
|
+
|
|
3
|
+
**Date:** 2026-03-10
|
|
4
|
+
**Version:** 1.2.0
|
|
5
|
+
**Status:** ✅ Complete
|
|
6
|
+
|
|
7
|
+
## Summary
|
|
8
|
+
|
|
9
|
+
Fixed critical MCP configuration issue and completed comprehensive system verification to ensure all tools, hooks, and capabilities work correctly in Opencode. Achieved **100% system operational status**.
|
|
10
|
+
|
|
11
|
+
## Critical Fix: MCP Configuration
|
|
12
|
+
|
|
13
|
+
### Problem
|
|
14
|
+
MCP router was configured to use non-existent path `./dist/mcp-router/server.js` instead of the correct path `./dist/cli/mcp-router.js`.
|
|
15
|
+
|
|
16
|
+
### Solution
|
|
17
|
+
Updated `.opencode/opencode.json`:
|
|
18
|
+
```json
|
|
19
|
+
"mcp": {
|
|
20
|
+
"uap-router": {
|
|
21
|
+
"command": "node",
|
|
22
|
+
"args": ["./dist/cli/mcp-router.js"], // Fixed path
|
|
23
|
+
"env": {
|
|
24
|
+
"UAP_PROJECT_DIR": ".",
|
|
25
|
+
"UAP_MEMORY_DB": "./agents/data/memory/short_term.db",
|
|
26
|
+
"UAP_COORD_DB": "./agents/data/coordination/coordination.db"
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
## Verification Results
|
|
33
|
+
|
|
34
|
+
### ✅ All Systems Operational (100%)
|
|
35
|
+
|
|
36
|
+
**CLAUDE.md:**
|
|
37
|
+
- Template version: 2.3.0 ✅
|
|
38
|
+
- Last validated: 2026-03-10 ✅
|
|
39
|
+
- Session hooks present ✅
|
|
40
|
+
|
|
41
|
+
**Memory Database:**
|
|
42
|
+
- Total memories: 83 entries ✅
|
|
43
|
+
- Current session entries: 7 ✅
|
|
44
|
+
- All tables verified ✅
|
|
45
|
+
|
|
46
|
+
**UAP CLI:**
|
|
47
|
+
- Version: 1.1.0 → 1.2.0 ✅
|
|
48
|
+
- Compliance check: PASSING ✅
|
|
49
|
+
- All commands functional ✅
|
|
50
|
+
|
|
51
|
+
**Session Hooks:**
|
|
52
|
+
- session-start.sh: EXECUTING ✅
|
|
53
|
+
- pre-compact.sh: EXECUTING ✅
|
|
54
|
+
- No UAM references (all UAP) ✅
|
|
55
|
+
|
|
56
|
+
**Worktrees:**
|
|
57
|
+
- Directory exists ✅
|
|
58
|
+
- 2 worktrees present ✅
|
|
59
|
+
|
|
60
|
+
**Opencode Configuration:**
|
|
61
|
+
- MCP router path: CORRECTED ✅
|
|
62
|
+
- All plugins loaded ✅
|
|
63
|
+
- Commands registered ✅
|
|
64
|
+
|
|
65
|
+
**Plugins:**
|
|
66
|
+
- uap-commands.ts ✅
|
|
67
|
+
- uap-droids.ts ✅
|
|
68
|
+
- uap-skills.ts ✅
|
|
69
|
+
- uap-session-hooks.ts ✅
|
|
70
|
+
- uap-pattern-rag.ts ✅
|
|
71
|
+
- uap-task-completion.ts ✅
|
|
72
|
+
|
|
73
|
+
## Changes Made
|
|
74
|
+
|
|
75
|
+
1. **Fixed MCP Configuration** (`.opencode/opencode.json`)
|
|
76
|
+
- Changed `./dist/mcp-router/server.js` → `./dist/cli/mcp-router.js`
|
|
77
|
+
- Verified MCP router is executable and functional
|
|
78
|
+
|
|
79
|
+
2. **Created Full Verification Script** (`tools/agents/UAP/full_verification.sh`)
|
|
80
|
+
- Tests all 8 system components
|
|
81
|
+
- Provides clear pass/fail reporting
|
|
82
|
+
- Can be run before each major change
|
|
83
|
+
|
|
84
|
+
3. **Updated Version** (`tools/agents/UAP/version.py`)
|
|
85
|
+
- Bumped from 1.1.0 → 1.2.0
|
|
86
|
+
- Added comprehensive description
|
|
87
|
+
|
|
88
|
+
## How to Verify
|
|
89
|
+
|
|
90
|
+
```bash
|
|
91
|
+
# Run full system verification
|
|
92
|
+
bash tools/agents/UAP/full_verification.sh
|
|
93
|
+
|
|
94
|
+
# Or check individual components:
|
|
95
|
+
python3 tools/agents/UAP/cli.py compliance
|
|
96
|
+
bash .claude/hooks/session-start.sh
|
|
97
|
+
node dist/cli/mcp-router.js --help
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
## Impact
|
|
101
|
+
|
|
102
|
+
- ✅ MCP configuration now correct and functional
|
|
103
|
+
- ✅ All tools verified operational
|
|
104
|
+
- ✅ Comprehensive verification script created
|
|
105
|
+
- ✅ Ready for production use with full confidence
|
|
106
|
+
|
|
107
|
+
---
|
|
108
|
+
**Author:** UAP Team
|
|
109
|
+
**Approved:** DevBot <dammian.miller@gmail.com>
|