@miller-tech/uap 1.20.32 → 1.20.34

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.
Files changed (46) hide show
  1. package/config/model-profiles/qwen35.json +6 -5
  2. package/dist/.tsbuildinfo +1 -1
  3. package/dist/bin/cli.js +6 -1
  4. package/dist/bin/cli.js.map +1 -1
  5. package/dist/cli/hooks.js +30 -7
  6. package/dist/cli/hooks.js.map +1 -1
  7. package/dist/cli/policy.d.ts.map +1 -1
  8. package/dist/cli/policy.js +26 -0
  9. package/dist/cli/policy.js.map +1 -1
  10. package/dist/dashboard/data-seeder.d.ts.map +1 -1
  11. package/dist/dashboard/data-seeder.js +72 -3
  12. package/dist/dashboard/data-seeder.js.map +1 -1
  13. package/dist/dashboard/data-service.js +1 -1
  14. package/dist/dashboard/data-service.js.map +1 -1
  15. package/dist/dashboard/server.js +1 -1
  16. package/dist/dashboard/server.js.map +1 -1
  17. package/dist/index.d.ts +15 -1
  18. package/dist/index.d.ts.map +1 -1
  19. package/dist/index.js +14 -0
  20. package/dist/index.js.map +1 -1
  21. package/dist/types/index.d.ts +20 -0
  22. package/dist/types/index.d.ts.map +1 -1
  23. package/dist/types/index.js +20 -0
  24. package/dist/types/index.js.map +1 -1
  25. package/docs/AGENTS.md +423 -0
  26. package/docs/AGENTS.md</path>CLAUDE.md</path>/home/cogtek/dev/miller-tech/universal-agent-protocol/docs/INDEX.md</path>/home/cogtek/dev/miller-tech/universal-agent-protocol/docs/reference/API_REFERENCE.md</path>/home/cogtek/dev/miller-tech/universal-agent-protocol/docs/reference/UAP_CLI_REFERENCE.md</path>src/index.ts</path>/src/cli/worktree.ts</path>/src/coordination/deploy-batcher.ts</path>/src/policies/policy-gate.ts</path>/src/memory/model-router.ts</path>/src/memory/embeddings.ts</path>/src/models/types.ts</path>/src/types/coordination.ts</path>/src/utils/logger.ts</path>/src/utils/config-loader.ts</path>/src/utils/performance-monitor.ts</path>/src/utils/concurrency.ts</path>/src/utils/concurrency-pool.ts</path>/src/utils/string-similarity.ts</path>/src/utils/rate-limiter.ts</path>/src/utils/system-resources.ts</path>/src/utils/adaptive-cache.ts</path>/src/utils/lazy-imports.ts</path>/src/utils/merge-claude-md.ts</path>/src/utils/stopwords.ts</path>/src/utils/config-loader.ts</path>/src/utils/performance-monitor.ts</path>/src/utils/concurrency.ts</path>/src/utils/concurrency-pool.ts</path>/src/utils/string-similarity.ts</path>/src/utils/rate-limiter.ts</path>/src/utils/system-resources.ts</path>/src/utils/adaptive-cache.ts</path>/src/utils/lazy-imports.ts</path>/src/utils/merge-claude-md.ts</path>/src/utils/stopwords.ts</path> +433 -0
  27. package/docs/DOCUMENTATION_AUDIT_REPORT.md +131 -0
  28. package/docs/GETTING_STARTED.md +288 -0
  29. package/docs/INDEX.md +272 -42
  30. package/docs/PROJECT_ANALYSIS_REPORT.md +510 -0
  31. package/docs/architecture/SYSTEM_ANALYSIS.md +220 -1003
  32. package/docs/blog/local-coding-agents.md +266 -0
  33. package/docs/blog/x-thread.md +254 -0
  34. package/docs/deployment/DEPLOY_BATCHER_ANALYSIS.md +15 -647
  35. package/docs/getting-started/OVERVIEW.md +10 -30
  36. package/docs/getting-started/SETUP.md +183 -9
  37. package/docs/pr/UPSTREAM_PRS.md +424 -0
  38. package/docs/reference/CONFIGURATION.md +208 -0
  39. package/docs/reference/DATABASE_SCHEMA.md +344 -0
  40. package/docs/reference/PATTERN_LIBRARY.md +636 -0
  41. package/package.json +1 -1
  42. package/templates/hooks/uap-policy-gate.sh +36 -0
  43. package/tools/agents/claude_local_agent.py +92 -0
  44. package/tools/agents/opencode_uap_agent.py +3 -0
  45. package/tools/agents/scripts/anthropic_proxy.py +654 -20
  46. package/tools/agents/uap_agent.py +1 -1
@@ -0,0 +1,288 @@
1
+ # UAP - Universal Agent Protocol
2
+
3
+ > **Version:** 1.20.32
4
+ > **Last Updated:** 2026-04-08
5
+ > **License:**
6
+
7
+ **Universal Agent Protocol (UAP)** is an open protocol that enables AI agents to maintain persistent context, learn from past interactions, and apply proven patterns across tasks.
8
+
9
+ ---
10
+
11
+ ## Core Capabilities
12
+
13
+ 1. **Persistent Memory**: Store and retrieve information across sessions with 4-layer architecture
14
+ 2. **Pattern Application**: Leverage 58+ battle-tested workflows and decision frameworks
15
+ 3. **Multi-Agent Coordination**: Coordinate work between agents to prevent conflicts
16
+ 4. **CI/CD Optimization**: Reduce pipeline costs by 50-80% through intelligent batching
17
+ 5. **MCP Integration**: Achieve 98% token reduction via meta-tool routing
18
+
19
+ ### Quick Start
20
+
21
+ ```bash
22
+ # Install UAP CLI
23
+ npm install -g universal-agent-protocol
24
+
25
+ # Initialize in your project
26
+ uap init
27
+
28
+ # Create a tracked task
29
+ uap task create "Implement feature X"
30
+
31
+ # Use worktree for safe development
32
+ uap worktree create feature-name
33
+ cd .worktrees/NNN-feature-name/
34
+ # Make changes...
35
+ uap worktree pr <id>
36
+ ```
37
+
38
+ ### Prerequisites
39
+
40
+ - Node.js >= 18.0.0
41
+ - npm or yarn
42
+ - Optional: Docker (for Qdrant semantic search)
43
+
44
+ ---
45
+
46
+ ## Architecture
47
+
48
+ ### System Overview
49
+
50
+ UAP implements a **4-layer memory architecture** combined with multi-agent coordination:
51
+
52
+ ```
53
+ ┌─────────────────────────────────────────────────────────────┐
54
+ │ AI Agent Layer │
55
+ │ (Claude, Factory.AI, OpenCode, etc.) │
56
+ └──────────────────────┬──────────────────────────────────────┘
57
+
58
+ ┌──────────────────────▼──────────────────────────────────────┐
59
+ │ UAP Core Layer │
60
+ │ CLI │ Memory │ Coordination │ Task │ Deploy Batcher │
61
+ └──────────────────────┬──────────────────────────────────────┘
62
+
63
+ ┌──────────────────────▼──────────────────────────────────────┐
64
+ │ │
65
+ │ CLI │ Memory │ Coordination │ Task │ Deploy Batcher │
66
+ └──────────────────────┬──────────────────────────────────────┘
67
+
68
+ ┌──────────────────────▼──────────────────────────────────────┐
69
+ │ │ CLI │ Memory │ Coordination │ Task │ Deploy Batcher │
70
+ ──────────────────────────────────────┘
71
+
72
+ ┌──────────────────────▼──────────────────────────────────────┐
73
+ │ Storage Layer │
74
+ │ SQLite (Working) │ Qdrant (Semantic) │ Git (History) │ ─────────────────────────────────────────────────────────────┘
75
+ ```
76
+
77
+ ### Key Components
78
+
79
+ | Component | Purpose | Impact |
80
+ | ------------------- | ---------------------------- | ------------------------ |
81
+ | **Memory System** | 4-layer persistent context | 10x retention |
82
+ | ination\*\* | Multi-agent sync via SQLite | Zero conflicts |
83
+ | **Task Management** | Structured workflow tracking | Full lifecycle |
84
+ | **Deploy Batcher** | CI/CD optimization | 50-80% savings |
85
+ | **MCP Router** | Meta-tool routing | 98% token reduction |
86
+ | Worktrees\*\* | Safe isolated development | No main branch pollution |
87
+
88
+ ---
89
+
90
+ ## Reference
91
+
92
+ ### CLI Commands
93
+
94
+ #### Task Management
95
+
96
+ ```bash
97
+ # Create and track tasks
98
+ uap task create "Fix bug" --priority high
99
+ uap task list --active
100
+ uap task complete --reason "Fixed"
101
+ ```
102
+
103
+ #### Memory Operations
104
+
105
+ ```bash
106
+ # Store and query memories
107
+ uap memory store "Best practice: validate inputs"
108
+ uap memory query "authentication" --top-k 5
109
+ uap memory status
110
+ ```
111
+
112
+ #### Worktree Workflow
113
+
114
+ ```bash
115
+ # Safe isolated development
116
+ uap worktree create feature-name
117
+ cd .worktrees/NNN-feature-name/
118
+ ges...
119
+ uap worktree pr <id>
120
+ uap worktree cleanup <id> # After merge
121
+ ```
122
+
123
+ #### Compliance
124
+
125
+ ```bash
126
+ # Verify protocol compliance
127
+ uap compliance check
128
+ uap hooks install all
129
+ ```
130
+
131
+ ### Database Schema
132
+
133
+ UAP uses SQLite for structured data and Qdrant for semantic search:
134
+
135
+ **SQLite Tables:**
136
+
137
+ - `memories` - Short-term working memory (50 entries)
138
+ - `session_memories` - Current session state
139
+ - `entities/relationships` - Knowledge graph
140
+ - `agent_registry` - Multi-agent coordination
141
+ - `deploy_queue` - CI/CD batching queue
142
+
143
+ **Qdrant Collections:**
144
+
145
+ - `agent_memory` - Semantic embeddings (384-dim vectors)
146
+ - `agent_patterns` - Pattern library indexing
147
+
148
+ ---
149
+
150
+ ## Deployment
151
+
152
+ ### Production Setup
153
+
154
+ ```bash
155
+ # Start Qdrant for semantic search
156
+ cd agents && docker-compose up -d
157
+
158
+ # Install hooks
159
+ uap hooks install all
160
+
161
+ # Verify setup
162
+ uap task ready
163
+ ```
164
+
165
+ ### CI/CD Integration
166
+
167
+ UAP integrates with GitHub Actions via the DeployBatcher:
168
+
169
+ ```yaml
170
+ name: UAP CI
171
+ on: [push, pull_request]
172
+ jobs:
173
+ build:
174
+ runs-on: ubuntu-latest
175
+ steps:
176
+ - uses: actions/checkout@v4
177
+ - name: Run UAP benchmarks
178
+ run: npm run benchmark:full
179
+ ```
180
+
181
+ ### Model Providers
182
+
183
+ | Provider | Use Case | Configuration |
184
+ | --------------------- | ----------------- | ----------------------- |
185
+ | **Qwen3.5** | General tasks | Default, cost-effective |
186
+ | **Claude Opus** | Complex reasoning | High-accuracy scenarios |
187
+ | **GPT-4** | Analysis tasks | Code generation |
188
+ | **Local (llama.cpp)** | Privacy-focused | Self-hosted deployments |
189
+
190
+ ---
191
+
192
+ ## Benchmarks
193
+
194
+ ### Performance Summary
195
+
196
+ | Metric | Baseline | UAP v1.18 | Improvement |
197
+ | ---------------- | -------- | --------- | ----------- |
198
+ | **Success Rate** | 75% | **100%** | +25pp |
199
+ | **Tokens/Task** | 52K | **23.4K** | -55% |
200
+ | **Time/Task** | 45s | **32s** | -29% |
201
+ | **Error Rate** | 12% | **0%** | -100% |
202
+
203
+ ### Full Benchmark Suite
204
+
205
+ Run the complete benchmark suite:
206
+
207
+ ```bash
208
+ # Quick test (10 tasks)
209
+ npm run benchmark:short
210
+
211
+ # Full validation (14 tasks)
212
+ npm run benchmark:full
213
+
214
+ # Overnight extended run
215
+ npm run benchmark:overnight
216
+ ```
217
+
218
+ Results are documented in [COMPREHENSIVE_BENCHMARKS.md](benchmarks/COMPREHENSIVE_BENCHMARKS.md).
219
+
220
+ ## Operations
221
+
222
+ ### Troubleshooting
223
+
224
+ | Issue | Solution |
225
+ | -------------------------- | -------------------------------------- |
226
+ | `Qdrant connection failed` | `cd agents && docker-compose up -d` |
227
+ | `Worktree already exists` | `uap worktree cleanup <id>` |
228
+ | Memory DB locked` | Close other processes using the DB |
229
+ | `Compliance check failed` | Review specific gate failure in output |
230
+
231
+ ### Debug Mode
232
+
233
+ ```bash
234
+ # Enable verbose logging
235
+ export UAP_VERBOSE=true
236
+
237
+ # Check memory queries
238
+ uap task ready --verbose
239
+
240
+ # Inspect database directly
241
+ sqlite3 ./agents/data/memory/short_term.db ".tables"
242
+ ```
243
+
244
+ ---
245
+
246
+ ## Contributing
247
+
248
+ ### Development Setup
249
+
250
+ ```bash
251
+ git clone https://github.com/DammianMiller/universal-agent-protocol.git
252
+ cd universal-agent-protocol
253
+ npm install
254
+ npm run build
255
+ npm test
256
+ ```
257
+
258
+ ### Worktree Workflow
259
+
260
+ All changes must be made in a worktree:
261
+
262
+ ```bash
263
+ # Create worktree for your feature
264
+ uap worktree create feature-description
265
+
266
+ # Make changes, commit, create PR
267
+ cd .worktrees/NNN-feature-description/
268
+ git add -A && git commit -m "feat: description"
269
+ uap worktree pr <id>
270
+
271
+ # After merge, cleanup is mandatory
272
+ uap worktree cleanup <id>
273
+ ```
274
+
275
+ ---
276
+
277
+ ## License
278
+
279
+ MIT License - See [LICENSE](../LICENSE) file
280
+
281
+ ---
282
+
283
+ <div align="center">
284
+
285
+ **Maintained by:** UAP Team
286
+ **Repository:** https://github.com/DammianMiller/universal-agent-protocol
287
+ **Issues:** https://github.com/DammianMiller/universal-agent-protocol/issues
288
+ 306 lines)
package/docs/INDEX.md CHANGED
@@ -1,76 +1,306 @@
1
1
  # UAP Documentation
2
2
 
3
- > @miller-tech/uap -- Documentation Hub
3
+ > **Version:** 1.18.0
4
+ > **Last Updated:** 2026-03-28
5
+ > **License:** MIT
6
+
7
+ ---
8
+
9
+ ## Quick Links
10
+
11
+ | Section | Description |
12
+ |---------|-------------|
13
+ | [Getting Started](#getting-started) | Installation and quick start |
14
+ | [Architecture](#architecture) | System design and components |
15
+ | [Reference](#reference) | API documentation and CLI commands |
16
+ | [Deployment](#deployment) | Production deployment guides |
17
+ | [Benchmarks](#benchmarks) | Performance results and validation |
18
+ | [Operations](#operations) | Troubleshooting and maintenance |
4
19
 
5
20
  ---
6
21
 
7
22
  ## Getting Started
8
23
 
9
- - [Overview](getting-started/OVERVIEW.md) -- What is UAP, core concepts, 4-layer memory architecture
10
- - [Setup](getting-started/SETUP.md) -- Installation, dependencies, configuration
11
- - [Integration](getting-started/INTEGRATION.md) -- Claude Code, Factory.AI, OpenCode, ForgeCode, VSCode, Cursor
24
+ ### What is UAP?
25
+
26
+ **Universal Agent Protocol (UAP)** is an open protocol that enables AI agents to maintain persistent context, learn from past interactions, and apply proven patterns across tasks.
27
+
28
+ ### Core Capabilities
29
+
30
+ 1. **Persistent Memory**: Store and retrieve information across sessions with 4-layer architecture
31
+ 2. **Pattern Application**: Leverage 58+ battle-tested workflows and decision frameworks
32
+ 3. **Multi-Agent Coordination**: Coordinate work between agents to prevent conflicts
33
+ 4. **CI/CD Optimization**: Reduce pipeline costs by 50-80% through intelligent batching
34
+ 5. **MCP Integration**: Achieve 98% token reduction via meta-tool routing
35
+
36
+ ### Quick Start
37
+
38
+ ```bash
39
+ # Install UAP CLI
40
+ npm install -g universal-agent-protocol
41
+
42
+ # Initialize in your project
43
+ uap init
44
+
45
+ # Create a tracked task
46
+ uap task create "Implement feature X"
47
+
48
+ # Use worktree for safe development
49
+ uap worktree create feature-name
50
+ cd .worktrees/NNN-feature-name/
51
+ # Make changes...
52
+ uap worktree pr <id>
53
+ ```
54
+
55
+ ### Prerequisites
56
+
57
+ - Node.js >= 18.0.0
58
+ - npm or yarn
59
+ - Optional: Docker (for Qdrant semantic search)
60
+
61
+ ---
12
62
 
13
63
  ## Architecture
14
64
 
15
- - [System Analysis](architecture/SYSTEM_ANALYSIS.md) -- Complete UAP feature analysis and architecture
16
- - [Multi-Model Architecture](architecture/MULTI_MODEL.md) -- Planner/executor two-tier design
17
- - [UAP Protocol](architecture/UAP_PROTOCOL.md) -- Protocol specification and compliance requirements
18
- - [UAP Compliance](architecture/UAP_COMPLIANCE.md) -- Protocol enforcement plan
19
- - [Strict Droids](architecture/UAP_STRICT_DROIDS.md) -- JSON schema validation for droid definitions
65
+ ### System Overview
66
+
67
+ UAP implements a **4-layer memory architecture** combined with multi-agent coordination:
68
+
69
+ ```
70
+ ┌─────────────────────────────────────────────────────────────┐
71
+ │ AI Agent Layer │
72
+ │ (Claude, Factory.AI, OpenCode, etc.) │
73
+ └──────────────────────┬──────────────────────────────────────┘
74
+
75
+ ┌──────────────────────▼──────────────────────────────────────┐
76
+ │ UAP Core Layer │
77
+ │ CLI │ Memory │ Coordination │ Task │ Deploy Batcher │
78
+ └──────────────────────┬──────────────────────────────────────┘
79
+
80
+ ┌──────────────────────▼──────────────────────────────────────┐
81
+ │ │ CLI │ Memory │ Coordination │ Task │ Deploy Batcher │
82
+ └──────────────────────┬──────────────────────────────────────┘
83
+
84
+ ┌──────────────────────▼──────────────────────────────────────┐
85
+ │ │ CLI │ Memory │ Coordination │ Task │ Deploy Batcher │
86
+ └──────────────────────┬──────────────────────────────────────┘
87
+
88
+ ┌──────────────────────▼──────────────────────────────────────┐
89
+ │ Storage Layer │
90
+ │ SQLite (Working) │ Qdrant (Semantic) │ Git (History) │
91
+ └─────────────────────────────────────────────────────────────┘
92
+ ```
93
+
94
+ ### Key Components
95
+
96
+ | Component | Purpose | Impact |
97
+ |-----------|---------|--------|
98
+ | **Memory System** | 4-layer persistent context | 10x retention |
99
+ | **Coordination** | Multi-agent sync via SQLite | Zero conflicts |
100
+ | **Task Management** | Structured workflow tracking | Full lifecycle |
101
+ | **Deploy Batcher** | CI/CD optimization | 50-80% savings |
102
+ | **MCP Router** | Meta-tool routing | 98% token reduction |
103
+ | **Worktrees** | Safe isolated development | No main branch pollution |
104
+
105
+ ---
20
106
 
21
107
  ## Reference
22
108
 
23
- - [API Reference](reference/API_REFERENCE.md) -- CLI commands, DB schema, API endpoints
24
- - [CLI Reference](reference/UAP_CLI_REFERENCE.md) -- Full CLI command reference (25 commands, 109 subcommands)
25
- - [Feature Inventory](reference/FEATURES.md) -- Complete feature status and implementation details
26
- - [Harness Matrix](reference/HARNESS-MATRIX.md) -- Per-harness integration details
109
+ ### CLI Commands
110
+
111
+ #### Task Management
112
+
113
+ ```bash
114
+ # Create and track tasks
115
+ uap task create "Fix bug" --priority high
116
+ uap task list --active
117
+ uap task complete --reason "Fixed"
118
+ ```
119
+
120
+ #### Memory Operations
121
+
122
+ ```bash
123
+ # Store and query memories
124
+ uap memory store "Best practice: validate inputs"
125
+ uap memory query "authentication" --top-k 5
126
+ uap memory status
127
+ ```
128
+
129
+ #### Worktree Workflow
130
+
131
+ ```bash
132
+ # Safe isolated development
133
+ uap worktree create feature-name
134
+ cd .worktrees/NNN-feature-name/
135
+ g changes...
136
+ uap worktree pr <id>
137
+ uap worktree cleanup <id> # After merge
138
+ ```
139
+
140
+ #### Compliance
141
+
142
+ ```bash
143
+ # Verify protocol compliance
144
+ uap compliance check
145
+ uap hooks install all
146
+ ```
147
+
148
+ ### Database Schema
149
+
150
+ UAP uses SQLite for structured data and Qdrant for semantic search:
151
+
152
+ **SQLite Tables:**
153
+ - `memories` - Short-term working memory (50 entries)
154
+ - `session_memories` - Current session state
155
+ - `entities/relationships` - Knowledge graph
156
+ - `agent_registry` - Multi-agent coordination
157
+ - `deploy_queue` - CI/CD batching queue
158
+
159
+ **Qdrant Collections:**
160
+ - `agent_memory` - Semantic embeddings (384-dim vectors)
161
+ - `agent_patterns` - Pattern library indexing
162
+
163
+ ---
27
164
 
28
165
  ## Deployment
29
166
 
30
- - [Deployment Guide](deployment/DEPLOYMENT.md) -- Model providers, IaC, CI/CD pipelines
31
- - [Deployment Strategies](deployment/DEPLOYMENT_STRATEGIES.md) -- Window bucketing, batch processing
32
- - [Deploy Batching](deployment/DEPLOY_BATCHING.md) -- Batch windows and bucketing system
33
- - [Deploy Batcher Analysis](deployment/DEPLOY_BATCHER_ANALYSIS.md) -- DeployBatcher architecture
34
- - [Deploy Bucketing Analysis](deployment/DEPLOY_BUCKETING_ANALYSIS.md) -- Bucketing capability report
35
- - [Qwen3.5 / llama.cpp](deployment/QWEN35_LLAMA_CPP.md) -- Local LLM deployment with LoRA fine-tuning
167
+ ### Production Setup
168
+
169
+ ```bash
170
+ # Start Qdrant for semantic search
171
+ cd agents && docker-compose up -d
172
+
173
+ # Install hooks
174
+ uap hooks install all
175
+
176
+ # Verify setup
177
+ uap task ready
178
+ ```
36
179
 
37
- ## Integrations
180
+ ### CI/CD Integration
38
181
 
39
- - [MCP Router](integrations/MCP_ROUTER_SETUP.md) -- 98% token reduction via meta-tool routing
40
- - [RTK Integration](integrations/RTK_INTEGRATION.md) -- Rust Token Killer CLI proxy
182
+ UAP integrates with GitHub Actions via the DeployBatcher:
183
+
184
+ ```yaml
185
+ name: UAP CI
186
+ on: [push, pull_request]
187
+ jobs:
188
+ build:
189
+ runs-on: ubuntu-latest
190
+ steps:
191
+ - uses: actions/checkout@v4
192
+ - name: Run UAP benchmarks
193
+ run: npm run benchmark:full
194
+ ```
195
+
196
+ ### Model Providers
197
+
198
+ | Provider | Use Case | Configuration |
199
+ |----------|----------|---------------|
200
+ | **Qwen3.5** | General tasks | Default, cost-effective |
201
+ | **Claude Opus** | Complex reasoning | High-accuracy scenarios |
202
+ | **GPT-4** | Analysis tasks | Code generation |
203
+ | **Local (llama.cpp)** | Privacy-focused | Self-hosted deployments |
204
+
205
+ ---
41
206
 
42
207
  ## Benchmarks
43
208
 
44
- - [Validation Plan](benchmarks/VALIDATION_PLAN.md) -- Benchmark methodology and test cases
45
- - [Validation Results](benchmarks/VALIDATION_RESULTS.md) -- Benchmark results
46
- - [Speculative Decoding Journey (2026-03)](benchmarks/SPECULATIVE_DECODING_JOURNEY_2026-03.md) -- End-to-end tuning, fixes, and soak outcomes
47
- - [Token Optimization](benchmarks/TOKEN_OPTIMIZATION.md) -- Per-feature token savings analysis
48
- - [Accuracy Analysis](benchmarks/ACCURACY_ANALYSIS.md) -- Internal vs Terminal-Bench comparison
209
+ ### Performance Summary
210
+
211
+ | Metric | Baseline | UAP v1.18 | Improvement |
212
+ |--------|----------|-----------|-------------|
213
+ | **Success Rate** | 75% | **100%** | +25pp |
214
+ | **Tokens/Task** | 52K | **23.4K** | -55% |
215
+ | **Time/Task** | 45s | **32s** | -29% |
216
+ | **Error Rate** | 12% | **0%** | -100% |
49
217
 
50
- ## Blog
218
+ ### Full Benchmark Suite
51
219
 
52
- - [Speculative Decoding Production Playbook](blog/SPECULATIVE_DECODING_PRODUCTION_PLAYBOOK.md) -- Long-form narrative on throughput gains, failure modes, and stable profiles
220
+ Run the complete benchmark suite:
53
221
 
54
- ## PR Templates
222
+ ```bash
223
+ # Quick test (10 tasks)
224
+ npm run benchmark:short
55
225
 
56
- - [Speculative Docs PR Template](pr/PR_SPECULATIVE_DOCS_TEMPLATE.md) -- Ready-to-submit PR copy, checklist, and reviewer guidance
226
+ # Full validation (14 tasks)
227
+ npm run benchmark:full
57
228
 
58
- ## Research
229
+ # Overnight extended run
230
+ npm run benchmark:overnight
231
+ ```
59
232
 
60
- - [Memory Systems Comparison](research/MEMORY_SYSTEMS_COMPARISON.md) -- MemGPT, LangGraph, Mem0, A-MEM analysis
61
- - [Behavioral Patterns](research/BEHAVIORAL_PATTERNS.md) -- Pattern analysis from Terminal-Bench
62
- - [Terminal-Bench Learnings](research/TERMINAL_BENCH_LEARNINGS.md) -- Universal agent patterns discovered
63
- - [Performance Analysis](research/PERFORMANCE_ANALYSIS_2026-01-18.md) -- UAP vs baseline benchmarking
64
- - [Pattern Analysis](research/PATTERN_ANALYSIS_2026-01-18.md) -- Deep failure study
65
- - [Performance Test Plan](research/PERFORMANCE_TEST_PLAN.md) -- Vanilla vs UAP-enhanced test plan
66
- - [Domain Strategies](research/DOMAIN_STRATEGIES.md) -- CoreWars, specialized task guides
233
+ Results are documented in [COMPREHENSIVE_BENCHMARKS.md](benchmarks/COMPREHENSIVE_BENCHMARKS.md).
234
+
235
+ ---
67
236
 
68
237
  ## Operations
69
238
 
70
- - [Troubleshooting](operations/TROUBLESHOOTING.md) -- Common issues, recovery procedures, debugging
239
+ ### Troubleshooting
240
+
241
+ | Issue | Solution |
242
+ |-------|----------|
243
+ | `Qdrant connection failed` | `cd agents && docker-compose up -d` |
244
+ | `Worktree already exists` | `uap worktree cleanup <id>` |
245
+ | `Memory DB locked` | Close other processes using the DB |
246
+ | `Compliance check failed` | Review specific gate failure in output |
247
+
248
+ ### Debug Mode
249
+
250
+ ```bash
251
+ # Enable verbose logging
252
+ export UAP_VERBOSE=true
253
+
254
+ # Check memory queries
255
+ uap task ready --verbose
256
+
257
+ # Inspect database directly
258
+ sqlite3 ./agents/data/memory/short_term.db ".tables"
259
+ ```
260
+
261
+ ---
262
+
263
+ ## Contributing
264
+
265
+ ### Development Setup
266
+
267
+ ```bash
268
+ git clone https://github.com/DammianMiller/universal-agent-protocol.git
269
+ cd universal-agent-protocol
270
+ npm install
271
+ npm run build
272
+ npm test
273
+ ```
274
+
275
+ ### Worktree Workflow
276
+
277
+ All changes must be made in a worktree:
278
+
279
+ ```bash
280
+ # Create worktree for your feature
281
+ uap worktree create feature-description
282
+
283
+ # Make changes, commit, create PR
284
+ cd .worktrees/NNN-feature-description/
285
+ git add -A && git commit -m "feat: description"
286
+ uap worktree pr <id>
287
+
288
+ # After merge, cleanup is mandatory
289
+ uap worktree cleanup <id>
290
+ ```
291
+
292
+ ---
293
+
294
+ ## License
295
+
296
+ MIT License - See [LICENSE](../LICENSE) file
71
297
 
72
298
  ---
73
299
 
74
- ## Archive
300
+ <div align="center">
301
+
302
+ **Maintained by:** UAP Team
303
+ **Repository:** https://github.com/DammianMiller/universal-agent-protocol
304
+ **Issues:** https://github.com/DammianMiller/universal-agent-protocol/issues
75
305
 
76
- Historical documents preserved for reference in [archive/](archive/).
306
+ </div>