@miller-tech/uap 1.40.0 → 1.41.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.
Files changed (150) hide show
  1. package/README.md +109 -642
  2. package/dist/.tsbuildinfo +1 -1
  3. package/dist/cli/deliver-defaults.d.ts +23 -0
  4. package/dist/cli/deliver-defaults.d.ts.map +1 -0
  5. package/dist/cli/deliver-defaults.js +121 -0
  6. package/dist/cli/deliver-defaults.js.map +1 -0
  7. package/dist/cli/init.d.ts.map +1 -1
  8. package/dist/cli/init.js +29 -0
  9. package/dist/cli/init.js.map +1 -1
  10. package/dist/cli/setup.d.ts.map +1 -1
  11. package/dist/cli/setup.js +19 -0
  12. package/dist/cli/setup.js.map +1 -1
  13. package/dist/policies/policy-tools.d.ts +7 -0
  14. package/dist/policies/policy-tools.d.ts.map +1 -1
  15. package/dist/policies/policy-tools.js +24 -2
  16. package/dist/policies/policy-tools.js.map +1 -1
  17. package/docs/INDEX.md +48 -286
  18. package/docs/architecture/OVERVIEW.md +328 -0
  19. package/docs/architecture/PROTOCOL.md +204 -0
  20. package/docs/benchmarks/README.md +17 -192
  21. package/docs/getting-started/CONFIGURATION.md +237 -0
  22. package/docs/getting-started/INSTALLATION.md +125 -0
  23. package/docs/getting-started/QUICKSTART.md +115 -0
  24. package/docs/guides/COORDINATION.md +162 -0
  25. package/docs/guides/DELIVER.md +115 -0
  26. package/docs/guides/DEPLOY_BATCHING.md +212 -0
  27. package/docs/guides/DROIDS_AND_SKILLS.md +202 -0
  28. package/docs/guides/LOCAL_MODELS.md +148 -0
  29. package/docs/guides/MCP_ROUTER.md +195 -0
  30. package/docs/guides/MEMORY.md +235 -0
  31. package/docs/guides/MULTI_MODEL.md +223 -0
  32. package/docs/guides/POLICIES.md +190 -0
  33. package/docs/guides/WORKTREE_WORKFLOW.md +185 -0
  34. package/docs/integrations/MCP_ROUTER.md +147 -0
  35. package/docs/integrations/RTK.md +102 -0
  36. package/docs/reference/API.md +485 -0
  37. package/docs/reference/CLI.md +719 -0
  38. package/docs/reference/CONFIGURATION.md +90 -193
  39. package/docs/reference/DATABASE_SCHEMA.md +110 -344
  40. package/docs/reference/FEATURES.md +176 -472
  41. package/docs/reference/PATTERNS.md +102 -0
  42. package/docs/reference/PLATFORMS.md +83 -0
  43. package/package.json +3 -1
  44. package/src/policies/enforcers/7ebbc721-7540-4e9f-879a-770e0213a09b_architecture_review.py +101 -0
  45. package/src/policies/enforcers/__pycache__/_common.cpython-312.pyc +0 -0
  46. package/src/policies/enforcers/_common.py +100 -0
  47. package/src/policies/enforcers/artifact_hygiene.py +52 -0
  48. package/src/policies/enforcers/cluster_routing.py +63 -0
  49. package/src/policies/enforcers/codebase_read_before_plan.py +52 -0
  50. package/src/policies/enforcers/coord_overlap.py +81 -0
  51. package/src/policies/enforcers/delivery_enforcement.py +97 -0
  52. package/src/policies/enforcers/doc_live_over_report.py +50 -0
  53. package/src/policies/enforcers/expert_review_required.py +135 -0
  54. package/src/policies/enforcers/iac_parity.py +53 -0
  55. package/src/policies/enforcers/mcp_router_first.py +37 -0
  56. package/src/policies/enforcers/memory_before_plan.py +61 -0
  57. package/src/policies/enforcers/parallel_reads.py +50 -0
  58. package/src/policies/enforcers/rtk_wrap.py +44 -0
  59. package/src/policies/enforcers/schema_diff_gate.py +80 -0
  60. package/src/policies/enforcers/session_memory_write.py +52 -0
  61. package/src/policies/enforcers/task_required.py +131 -0
  62. package/src/policies/enforcers/test_gate.py +58 -0
  63. package/src/policies/enforcers/validate_plan_before_build.py +75 -0
  64. package/src/policies/enforcers/worktree_required.py +57 -0
  65. package/src/policies/schemas/policies/architecture-review.md +51 -0
  66. package/src/policies/schemas/policies/artifact-hygiene.md +29 -0
  67. package/src/policies/schemas/policies/cluster-routing.md +31 -0
  68. package/src/policies/schemas/policies/codebase-read-before-plan.md +30 -0
  69. package/src/policies/schemas/policies/coord-overlap.md +24 -0
  70. package/src/policies/schemas/policies/delivery-enforcement.md +45 -0
  71. package/src/policies/schemas/policies/doc-live-over-report.md +32 -0
  72. package/src/policies/schemas/policies/expert-review-required.md +60 -0
  73. package/src/policies/schemas/policies/iac-parity.md +31 -0
  74. package/src/policies/schemas/policies/mandatory-testing-deployment.md +147 -0
  75. package/src/policies/schemas/policies/mcp-router-first.md +24 -0
  76. package/src/policies/schemas/policies/memory-before-plan.md +24 -0
  77. package/src/policies/schemas/policies/merge-deploy-monitor-verify.md +145 -0
  78. package/src/policies/schemas/policies/parallel-reads.md +24 -0
  79. package/src/policies/schemas/policies/rtk-wrap.md +26 -0
  80. package/src/policies/schemas/policies/schema-diff-gate.md +30 -0
  81. package/src/policies/schemas/policies/session-memory-write.md +24 -0
  82. package/src/policies/schemas/policies/task-required.md +49 -0
  83. package/src/policies/schemas/policies/test-gate.md +24 -0
  84. package/src/policies/schemas/policies/validate-plan-before-build.md +28 -0
  85. package/src/policies/schemas/policies/worktree-required.md +28 -0
  86. package/templates/hooks/uap-policy-gate.sh +5 -0
  87. package/docs/AGENTS.md +0 -423
  88. package/docs/DOCUMENTATION_AUDIT_REPORT.md +0 -131
  89. package/docs/GETTING_STARTED.md +0 -288
  90. package/docs/PROJECT_ANALYSIS_REPORT.md +0 -510
  91. package/docs/architecture/COMPLETE_ARCHITECTURE.md +0 -748
  92. package/docs/architecture/EXPERT_STACK.md +0 -137
  93. package/docs/architecture/MULTI_MODEL.md +0 -224
  94. package/docs/architecture/PLATFORM_GATING.md +0 -68
  95. package/docs/architecture/SYSTEM_ANALYSIS.md +0 -334
  96. package/docs/architecture/UAP_COMPLIANCE.md +0 -217
  97. package/docs/architecture/UAP_PROTOCOL.md +0 -339
  98. package/docs/architecture/UAP_STRICT_DROIDS.md +0 -172
  99. package/docs/archive/BALLS_MODE_SELF_ANALYSIS.md +0 -260
  100. package/docs/archive/BENCHMARK_GAPS_AND_PLAN.md +0 -146
  101. package/docs/archive/FAILING_TASKS_SOLUTION_PLAN.md +0 -668
  102. package/docs/archive/JINJA2-SYSTEM-MESSAGE-FIX.md +0 -209
  103. package/docs/archive/MODEL_ROUTING_IMPLEMENTATION_SUMMARY.md +0 -281
  104. package/docs/archive/MODEL_ROUTING_OPTIMIZATION_PLAN.md +0 -320
  105. package/docs/archive/NPM-PUBLISH-V0.9.1.md +0 -240
  106. package/docs/archive/OPTIMIZATION_OPTIONS.md +0 -334
  107. package/docs/archive/PARALLELISM_GAPS_AND_OPTIONS.md +0 -422
  108. package/docs/archive/POLICY_GATE_IMPLEMENTATION.md +0 -245
  109. package/docs/archive/SETUP_IMPROVEMENTS.md +0 -213
  110. package/docs/archive/UAP_GENERIC_OPTIMIZATION_PLAN.md +0 -270
  111. package/docs/archive/UAP_OPTIMIZATION_PLAN.md +0 -701
  112. package/docs/archive/UAP_V103_PATTERN_DESIGN.md +0 -315
  113. package/docs/archive/UAP_V104_COMPLIANCE_DESIGN.md +0 -223
  114. package/docs/archive/changelog/2026-03-10_uap-100-compliance.md +0 -77
  115. package/docs/archive/changelog/2026-03-10_uap-full-system-verification.md +0 -109
  116. package/docs/archive/opencode-integration-guide.md +0 -740
  117. package/docs/archive/opencode-integration-quickref.md +0 -180
  118. package/docs/benchmarks/OVERNIGHT_RUNNER.md +0 -341
  119. package/docs/benchmarks/SPECULATIVE_DECODING_JOURNEY_2026-03.md +0 -221
  120. package/docs/benchmarks/VALIDATION_PLAN.md +0 -568
  121. package/docs/blog/SPECULATIVE_DECODING_PRODUCTION_PLAYBOOK.md +0 -139
  122. package/docs/blog/local-coding-agents.md +0 -266
  123. package/docs/blog/x-thread.md +0 -254
  124. package/docs/deployment/DEPLOYMENT.md +0 -895
  125. package/docs/deployment/DEPLOYMENT_STRATEGIES.md +0 -518
  126. package/docs/deployment/DEPLOY_BATCHER_ANALYSIS.md +0 -224
  127. package/docs/deployment/DEPLOY_BATCHING.md +0 -273
  128. package/docs/deployment/DEPLOY_BUCKETING_ANALYSIS.md +0 -420
  129. package/docs/deployment/QWEN35_LLAMA_CPP.md +0 -426
  130. package/docs/deployment/UAP_LLAMA_ANTHROPIC_PROXY_BOOTSTRAP.md +0 -279
  131. package/docs/getting-started/INTEGRATION.md +0 -628
  132. package/docs/getting-started/OVERVIEW.md +0 -324
  133. package/docs/getting-started/SETUP.md +0 -377
  134. package/docs/integrations/MCP_ROUTER_SETUP.md +0 -445
  135. package/docs/integrations/RTK_INTEGRATION.md +0 -468
  136. package/docs/operations/TROUBLESHOOTING.md +0 -660
  137. package/docs/pr/PR_SPECULATIVE_DOCS_TEMPLATE.md +0 -146
  138. package/docs/pr/UPSTREAM_PRS.md +0 -424
  139. package/docs/reference/API_REFERENCE.md +0 -903
  140. package/docs/reference/EXPERT_DROIDS.md +0 -219
  141. package/docs/reference/HARNESS-MATRIX.md +0 -318
  142. package/docs/reference/PATTERN_LIBRARY.md +0 -636
  143. package/docs/reference/UAP_CLI_REFERENCE.md +0 -620
  144. package/docs/research/BEHAVIORAL_PATTERNS.md +0 -228
  145. package/docs/research/DOMAIN_STRATEGIES.md +0 -316
  146. package/docs/research/MEMORY_SYSTEMS_COMPARISON.md +0 -812
  147. package/docs/research/PATTERN_ANALYSIS_2026-01-18.md +0 -436
  148. package/docs/research/PERFORMANCE_ANALYSIS_2026-01-18.md +0 -209
  149. package/docs/research/PERFORMANCE_TEST_PLAN.md +0 -383
  150. package/docs/research/TERMINAL_BENCH_LEARNINGS.md +0 -217
@@ -1,636 +0,0 @@
1
- # UAP Pattern Library Reference
2
-
3
- Complete documentation for all 23 battle-tested patterns from Terminal-Bench 2.0.
4
-
5
- ## Pattern Index
6
-
7
- | ID | Name | Category | Status |
8
- | --- | ----------------------------------- | --------------- | ----------- |
9
- | P12 | Output Existence Verification | Verification | ✅ Critical |
10
- | P13 | Iterative Refinement Loop | Testing | ✅ Active |
11
- | P14 | Output Format Validation | Verification | ✅ Active |
12
- | P16 | Task-First Execution | Execution | ✅ Active |
13
- | P17 | Constraint Extraction | Planning | ✅ Active |
14
- | P19 | Impossible Task Refusal | Safety | ✅ Active |
15
- | P20 | Adversarial Thinking | Security | ✅ Active |
16
- | P21 | Chess Engine Integration | Domain-Specific | ✅ Active |
17
- | P22 | Git Recovery Forensics | Recovery | ✅ Active |
18
- | P23 | Compression Impossibility Detection | Verification | ✅ Active |
19
- | P24 | Polyglot Code Construction | Code-Golf | ✅ Active |
20
- | P25 | Service Configuration Pipeline | DevOps | ✅ Active |
21
- | P26 | Near-Miss Iteration | Testing | ✅ Active |
22
- | P28 | Service Smoke Test | Verification | ✅ Active |
23
- | P30 | Performance Threshold Tuning | Optimization | ✅ Active |
24
- | P31 | Round-Trip Verification | Verification | ✅ Active |
25
- | P32 | CLI Execution Verification | Verification | ✅ Active |
26
- | P33 | Numerical Stability Testing | Testing | ✅ Active |
27
- | P34 | Image-to-Structured Pipeline | Domain-Specific | ✅ Active |
28
- | P35 | Decoder-First Analysis | Analysis | ✅ Critical |
29
- | P36 | Competition Domain Research | Research | ✅ Active |
30
- | P37 | Ambiguity Detection & Resolution | Planning | ✅ Active |
31
- | IaC | Infrastructure as Code Parity | Infrastructure | ✅ Active |
32
-
33
- ## Pattern Details
34
-
35
- ### P12 - Output Existence Verification
36
-
37
- **Purpose:** Prevents missing output files (37% of Terminal-Bench failures)
38
-
39
- **When to Use:**
40
-
41
- - File creation tasks
42
- - Build/output generation
43
- - Deployment tasks
44
-
45
- **Example:**
46
-
47
- ```bash
48
- uap patterns enable P12
49
- ```
50
-
51
- **Checklist:**
52
-
53
- - [ ] Verify output file exists after task completion
54
- - [ ] Check file permissions and ownership
55
- - [ ] Validate file content matches expectations
56
-
57
- ---
58
-
59
- ### P13 - Iterative Refinement Loop
60
-
61
- **Purpose:** Ensures first-attempt acceptance through systematic refinement
62
-
63
- **When to Use:**
64
-
65
- - Complex feature implementation
66
- - Bug fixes with multiple edge cases
67
- - Performance optimization tasks
68
-
69
- **Example:**
70
-
71
- ```bash
72
- uap patterns enable P13
73
- ```
74
-
75
- **Workflow:**
76
-
77
- 1. Implement initial solution
78
- 2. Run tests
79
- 3. Analyze failures
80
- 4. Refine implementation
81
- 5. Repeat until all tests pass
82
-
83
- ---
84
-
85
- ### P14 - Output Format Validation
86
-
87
- **Purpose:** Prevents wrong format/encoding errors
88
-
89
- **When to Use:**
90
-
91
- - JSON/YAML generation
92
- - CSV data export
93
- - Configuration file creation
94
-
95
- **Example:**
96
-
97
- ```bash
98
- uap patterns enable P14
99
- ```
100
-
101
- **Validation Rules:**
102
-
103
- - JSON: Valid JSON syntax, required fields present
104
- - YAML: Valid YAML syntax, proper indentation
105
- - CSV: Correct column count, delimiter consistency
106
-
107
- ---
108
-
109
- ### P16 - Task-First Execution
110
-
111
- **Purpose:** Prevents over-planning before doing
112
-
113
- **When to Use:**
114
-
115
- - Clear task descriptions
116
- - Well-defined requirements
117
- - Time-sensitive tasks
118
-
119
- **Example:**
120
-
121
- ```bash
122
- uap patterns enable P16
123
- ```
124
-
125
- **Guideline:**
126
-
127
- - Execute immediately if task is clear
128
- - Plan only when ambiguity exists
129
- - Document decisions as you go
130
-
131
- ---
132
-
133
- ### P17 - Constraint Extraction
134
-
135
- **Purpose:** Identifies hidden requirements and constraints
136
-
137
- **When to Use:**
138
-
139
- - Ambiguous task descriptions
140
- - Complex system integrations
141
- - Multi-step workflows
142
-
143
- **Example:**
144
-
145
- ```bash
146
- uap patterns enable P17
147
- ```
148
-
149
- **Extraction Process:**
150
-
151
- 1. Identify explicit constraints ("exactly", "only", "must be")
152
- 2. Infer implicit constraints from context
153
- 3. Document all constraints before implementation
154
-
155
- ---
156
-
157
- ### P19 - Impossible Task Refusal
158
-
159
- **Purpose:** Prevents attempting fundamentally impossible tasks
160
-
161
- **When to Use:**
162
-
163
- - Tasks requiring impossible capabilities
164
- - Requests violating physical laws
165
- - Tasks exceeding system limits
166
-
167
- **Example:**
168
-
169
- ```bash
170
- uap patterns enable P19
171
- ```
172
-
173
- **Refusal Criteria:**
174
-
175
- - Requires capabilities not available
176
- - Violates security policies
177
- - Exceeds computational limits
178
-
179
- ---
180
-
181
- ### P20 - Adversarial Thinking
182
-
183
- **Purpose:** Identifies missing attack vectors and security issues
184
-
185
- **When to Use:**
186
-
187
- - Security-sensitive implementations
188
- - Authentication/authorization systems
189
- - Data processing pipelines
190
-
191
- **Example:**
192
-
193
- ```bash
194
- uap patterns enable P20
195
- ```
196
-
197
- **Attack Vectors:**
198
-
199
- - Input validation bypass
200
- - Authentication circumvention
201
- - Authorization escalation
202
- - Data exposure
203
-
204
- ---
205
-
206
- ### P21 - Chess Engine Integration
207
-
208
- **Purpose:** Leverages existing chess engines instead of reinventing
209
-
210
- **When to Use:**
211
-
212
- - Chess game analysis
213
- - Move generation
214
- - Position evaluation
215
-
216
- **Example:**
217
-
218
- ```bash
219
- uap patterns enable P21
220
- ```
221
-
222
- **Integration Points:**
223
-
224
- - Stockfish API
225
- - FEN position parsing
226
- - Move validation
227
- - Evaluation scoring
228
-
229
- ---
230
-
231
- ### P22 - Git Recovery Forensics
232
-
233
- **Purpose:** Recovers lost commits and corrupted repositories
234
-
235
- **When to Use:**
236
-
237
- - Accidental deletions
238
- - Repository corruption
239
- - Lost branch references
240
-
241
- **Example:**
242
-
243
- ```bash
244
- uap patterns enable P22
245
- ```
246
-
247
- **Recovery Tools:**
248
-
249
- - `git reflog`
250
- - `git fsck`
251
- - `git filter-branch`
252
- - `git reset --hard`
253
-
254
- ---
255
-
256
- ### P23 - Compression Impossibility Detection
257
-
258
- **Purpose:** Identifies already-compressed or incompressible data
259
-
260
- **When to Use:**
261
-
262
- - File compression tasks
263
- - Archive creation
264
- - Data optimization
265
-
266
- **Example:**
267
-
268
- ```bash
269
- uap patterns enable P23
270
- ```
271
-
272
- **Detection Rules:**
273
-
274
- - Check file extension (zip, jpg, mp4)
275
- - Analyze entropy (high = already compressed)
276
- - Test compression ratio before processing
277
-
278
- ---
279
-
280
- ### P24 - Polyglot Code Construction
281
-
282
- **Purpose:** Creates code that works in multiple languages
283
-
284
- **When to Use:**
285
-
286
- - Code golf challenges
287
- - Cross-language demonstrations
288
- - Educational purposes
289
-
290
- **Example:**
291
-
292
- ```bash
293
- uap patterns enable P24
294
- ```
295
-
296
- **Languages:**
297
-
298
- - Python/JavaScript
299
- - Ruby/Perl
300
- - C/C++
301
-
302
- ---
303
-
304
- ### P25 - Service Configuration Pipeline
305
-
306
- **Purpose:** Systematic service configuration and validation
307
-
308
- **When to Use:**
309
-
310
- - Daemon/server setup
311
- - Configuration file management
312
- - Service reload operations
313
-
314
- **Example:**
315
-
316
- ```bash
317
- uap patterns enable P25
318
- ```
319
-
320
- **Pipeline Steps:**
321
-
322
- 1. Validate configuration syntax
323
- 2. Check dependencies
324
- 3. Apply configuration
325
- 4. Reload service
326
- 5. Verify operation
327
-
328
- ---
329
-
330
- ### P26 - Near-Miss Iteration
331
-
332
- **Purpose:** Fixes small gaps between expected and actual results
333
-
334
- **When to Use:**
335
-
336
- - Tests failing by small margin
337
- - Output nearly correct
338
- - Edge case handling
339
-
340
- **Example:**
341
-
342
- ```bash
343
- uap patterns enable P26
344
- ```
345
-
346
- **Iteration Process:**
347
-
348
- 1. Identify gap size
349
- 2. Analyze failure reason
350
- 3. Make minimal adjustment
351
- 4. Re-test
352
- 5. Repeat until passing
353
-
354
- ---
355
-
356
- ### P28 - Service Smoke Test
357
-
358
- **Purpose:** Verifies service deployment and operation
359
-
360
- **When to Use:**
361
-
362
- - After deployment
363
- - Service restart
364
- - Configuration changes
365
-
366
- **Example:**
367
-
368
- ```bash
369
- uap patterns enable P28
370
- ```
371
-
372
- **Smoke Tests:**
373
-
374
- - Health check endpoint
375
- - Port accessibility
376
- - Basic functionality
377
- - Log output validation
378
-
379
- ---
380
-
381
- ### P30 - Performance Threshold Tuning
382
-
383
- **Purpose:** Optimizes performance to meet specific thresholds
384
-
385
- **When to Use:**
386
-
387
- - Performance-critical tasks
388
- - Optimization challenges
389
- - Benchmark improvements
390
-
391
- **Example:**
392
-
393
- ```bash
394
- uap patterns enable P30
395
- ```
396
-
397
- **Optimization Areas:**
398
-
399
- - Algorithm complexity
400
- - Memory usage
401
- - I/O operations
402
- - Network latency
403
-
404
- ---
405
-
406
- ### P31 - Round-Trip Verification
407
-
408
- **Purpose:** Ensures encode/decode consistency
409
-
410
- **When to Use:**
411
-
412
- - Data serialization
413
- - Encoding/decoding tasks
414
- - Compression/decompression
415
-
416
- **Example:**
417
-
418
- ```bash
419
- uap patterns enable P31
420
- ```
421
-
422
- **Verification Steps:**
423
-
424
- 1. Encode original data
425
- 2. Decode encoded data
426
- 3. Compare with original
427
- 4. Validate integrity
428
-
429
- ---
430
-
431
- ### P32 - CLI Execution Verification
432
-
433
- **Purpose:** Validates command-line tool functionality
434
-
435
- **When to Use:**
436
-
437
- - CLI tool development
438
- - Command execution tasks
439
- - Binary verification
440
-
441
- **Example:**
442
-
443
- ```bash
444
- uap patterns enable P32
445
- ```
446
-
447
- **Verification:**
448
-
449
- - Executable permissions
450
- - Command output validation
451
- - Exit code checking
452
- - Error handling
453
-
454
- ---
455
-
456
- ### P33 - Numerical Stability Testing
457
-
458
- **Purpose:** Prevents floating-point precision errors
459
-
460
- **When to Use:**
461
-
462
- - Mathematical computations
463
- - Optimization algorithms
464
- - Scientific calculations
465
-
466
- **Example:**
467
-
468
- ```bash
469
- uap patterns enable P33
470
- ```
471
-
472
- **Stability Checks:**
473
-
474
- - Epsilon comparisons
475
- - Iteration convergence
476
- - Precision limits
477
- - Overflow/underflow
478
-
479
- ---
480
-
481
- ### P34 - Image-to-Structured Pipeline
482
-
483
- **Purpose:** Extracts structured data from images
484
-
485
- **When to Use:**
486
-
487
- - OCR tasks
488
- - Diagram analysis
489
- - Chess board recognition
490
- - Form processing
491
-
492
- **Example:**
493
-
494
- ```bash
495
- uap patterns enable P34
496
- ```
497
-
498
- **Pipeline Steps:**
499
-
500
- 1. Image preprocessing
501
- 2. Feature extraction
502
- 3. Pattern recognition
503
- 4. Structured output generation
504
-
505
- ---
506
-
507
- ### P35 - Decoder-First Analysis
508
-
509
- **Purpose:** Correct problem decomposition through format analysis
510
-
511
- **When to Use:**
512
-
513
- - Unknown file formats
514
- - Protocol parsing
515
- - Data structure analysis
516
-
517
- **Example:**
518
-
519
- ```bash
520
- uap patterns enable P35
521
- ```
522
-
523
- **Analysis Process:**
524
-
525
- 1. Identify format type
526
- 2. Analyze structure
527
- 3. Extract schema
528
- 4. Implement parser
529
-
530
- ---
531
-
532
- ### P36 - Competition Domain Research
533
-
534
- **Purpose:** Leverages domain knowledge for competitive tasks
535
-
536
- **When to Use:**
537
-
538
- - Tournament challenges
539
- - Leaderboard optimization
540
- - Competitive programming
541
-
542
- **Example:**
543
-
544
- ```bash
545
- uap patterns enable P36
546
- ```
547
-
548
- **Research Areas:**
549
-
550
- - Winning strategies
551
- - Common patterns
552
- - Edge cases
553
- - Optimization techniques
554
-
555
- ---
556
-
557
- ### P37 - Ambiguity Detection & Resolution
558
-
559
- **Purpose:** Identifies and clarifies ambiguous task descriptions
560
-
561
- **When to Use:**
562
-
563
- - Vague requirements
564
- - Unclear specifications
565
- - Missing context
566
-
567
- **Example:**
568
-
569
- ```bash
570
- uap patterns enable P37
571
- ```
572
-
573
- **Detection Criteria:**
574
-
575
- - Missing parameters
576
- - Undefined terms
577
- - Conflicting requirements
578
- - Unspecified constraints
579
-
580
- ---
581
-
582
- ### IaC - Infrastructure as Code Parity
583
-
584
- **Purpose:** Ensures config drift prevention
585
-
586
- **When to Use:**
587
-
588
- - Terraform deployments
589
- - Kubernetes manifests
590
- - Infrastructure automation
591
-
592
- **Example:**
593
-
594
- ```bash
595
- uap patterns enable IaC
596
- ```
597
-
598
- **Parity Checks:**
599
-
600
- - State file consistency
601
- - Resource drift detection
602
- - Configuration validation
603
- - Deployment verification
604
-
605
- ## Pattern Selection Guide
606
-
607
- ### Critical Patterns (Always Active)
608
-
609
- - P12: Output Existence Verification
610
- - P35: Decoder-First Analysis
611
-
612
- ### Testing Patterns
613
-
614
- - P13: Iterative Refinement Loop
615
- - P26: Near-Miss Iteration
616
- - P33: Numerical Stability Testing
617
-
618
- ### Verification Patterns
619
-
620
- - P14: Output Format Validation
621
- - P23: Compression Impossibility Detection
622
- - P28: Service Smoke Test
623
- - P31: Round-Trip Verification
624
- - P32: CLI Execution Verification
625
-
626
- ### Planning Patterns
627
-
628
- - P16: Task-First Execution
629
- - P17: Constraint Extraction
630
- - P37: Ambiguity Detection & Resolution
631
-
632
- ## See Also
633
-
634
- - [Pattern System](../../docs/reference/FEATURES.md#pattern-system)
635
- - [Terminal-Bench Patterns](https://github.com/aptx432/terminal-bench)
636
- - [CLI Reference](./UAP_CLI_REFERENCE.md)