mobileui-os 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/AGENTS.md +47 -0
- package/CHANGELOG.md +25 -0
- package/README.md +78 -0
- package/bin/cli.mjs +375 -0
- package/knowledge/android/00-apple-to-android-adaption.md +1499 -0
- package/knowledge/android/accessibility.md +333 -0
- package/knowledge/android/components-controls.md +270 -0
- package/knowledge/android/material-design-3.md +174 -0
- package/knowledge/android/navigation-patterns.md +212 -0
- package/knowledge/apple/00-skill-reading-protocol.md +1296 -0
- package/knowledge/apple/Accessibility, Inclusive Design & Human Factors Intelligence.md +735 -0
- package/knowledge/apple/Advanced Interaction Patterns, Gestures, Feedback & State Transitions.md +1140 -0
- package/knowledge/apple/Advanced Navigation, Information Architecture & Wayfinding.md +551 -0
- package/knowledge/apple/Autonomus Ui-UX Improvement Loop.md +611 -0
- package/knowledge/apple/Color, Materials, Contrast, Themes & Visual Depth.md +1351 -0
- package/knowledge/apple/Content, Copy, Microinteractions & UX Communication.md +642 -0
- package/knowledge/apple/Data-Heavy Interfaces, Tables, Lists, Search, Filtering & Large-Scale Content.md +721 -0
- package/knowledge/apple/Design Systems & Component Architecture.md +412 -0
- package/knowledge/apple/Forms, Input, Data Entry & Validation Intelligence.md +705 -0
- package/knowledge/apple/Interaction, State & Edge-Case Engineering.md +491 -0
- package/knowledge/apple/Interaction-behaviour.md +1378 -0
- package/knowledge/apple/Layout Architecture, Responsive Design & Spatial Systems.md +1365 -0
- package/knowledge/apple/MASTER UI-UX ORCHESTRATOR.md +1210 -0
- package/knowledge/apple/Navigation Architecture, Routing, Deep Linking & State Restoration.md +1392 -0
- package/knowledge/apple/Navigation, Information Architecture & Spatial Hierarchy.md +1613 -0
- package/knowledge/apple/Notifications, Permissions, Privacy and Trust.md +1540 -0
- package/knowledge/apple/Patterns-templates-composition.md +647 -0
- package/knowledge/apple/Performance, Perceived Speed, Motion & Rendering Intelligence.md +855 -0
- package/knowledge/apple/Responsive, Adaptive & Cross-Platform UI Intelligence.md +669 -0
- package/knowledge/apple/Responsive, Adaptive, Accessible & Performant UI.md +545 -0
- package/knowledge/apple/Tablet Adaptation & Multi-Device UX.md +1447 -0
- package/knowledge/apple/UI Implementation & Refactoring.md +498 -0
- package/knowledge/apple/UI-UX Decision-Making, Prioritization & Trade-offs.md +533 -0
- package/knowledge/apple/UI-UX Project Lifecycle & Delivery.md +544 -0
- package/knowledge/apple/User Flows & Experience Architecture.md +335 -0
- package/knowledge/apple/Visual Design Systems, Theming, Tokens & Brand Intelligence.md +764 -0
- package/knowledge/apple/Visual QA, Testing & Validation.md +557 -0
- package/knowledge/apple/accessibility-inclusive-interaction.md +1361 -0
- package/knowledge/apple/accessibility.md +2162 -0
- package/knowledge/apple/color.md +1933 -0
- package/knowledge/apple/component-architecture.md +2208 -0
- package/knowledge/apple/components.md +2172 -0
- package/knowledge/apple/design-decision-framework.md +1883 -0
- package/knowledge/apple/design-review-engine.md +2108 -0
- package/knowledge/apple/design-tokens.md +1943 -0
- package/knowledge/apple/designing-for-ios.md +1680 -0
- package/knowledge/apple/gestures, touch behavior, feedback, motion, and micro-interactions.md +1538 -0
- package/knowledge/apple/hig-foundation.md +1806 -0
- package/knowledge/apple/iconography.md +1903 -0
- package/knowledge/apple/interaction-patterns.md +2513 -0
- package/knowledge/apple/interaction.md +2141 -0
- package/knowledge/apple/ios-alerts-confirmations-destructive-actions.md +1342 -0
- package/knowledge/apple/ios-components-and-controls.md +1634 -0
- package/knowledge/apple/ios-components-patterns.md +1343 -0
- package/knowledge/apple/ios-design-system-architecture.md +1520 -0
- package/knowledge/apple/ios-empty-error-offline-states.md +1370 -0
- package/knowledge/apple/ios-empty-loading-error-recovery.md +1674 -0
- package/knowledge/apple/ios-forms-and-input.md +1458 -0
- package/knowledge/apple/ios-forms-input-data-entry.md +1308 -0
- package/knowledge/apple/ios-gestures-and-touch.md +1272 -0
- package/knowledge/apple/ios-lists-collections-and-data-display.md +1735 -0
- package/knowledge/apple/ios-loading-progress-async-states.md +1378 -0
- package/knowledge/apple/ios-materials-and-surfaces.md +1543 -0
- package/knowledge/apple/ios-motion-animation-transitions.md +1178 -0
- package/knowledge/apple/ios-navigation-and-information-architecture.md +1674 -0
- package/knowledge/apple/ios-navigation-user-flows-design-architecture.md +1195 -0
- package/knowledge/apple/ios-search-and-discovery.md +1456 -0
- package/knowledge/apple/ios-search-filtering-discovery.md +1402 -0
- package/knowledge/apple/ios-sheets-modals-popovers.md +1205 -0
- package/knowledge/apple/ios-typography-icons-visual-hierarchy.md +1431 -0
- package/knowledge/apple/layout.md +2331 -0
- package/knowledge/apple/media-centric-content-ui-patterns.md +1470 -0
- package/knowledge/apple/motion, transitions, physics, and animation language.md +1535 -0
- package/knowledge/apple/motion-and-animation.md +1698 -0
- package/knowledge/apple/motion.md +2087 -0
- package/knowledge/apple/navigation.md +2281 -0
- package/knowledge/apple/responsive-adaptive.md +2159 -0
- package/knowledge/apple/screen-architecture.md +2067 -0
- package/knowledge/apple/typography, Content Hierarchy & Readability.md +1411 -0
- package/knowledge/apple/typography.md +1802 -0
- package/knowledge/apple/ui-ux inteligence audit.md +106 -0
- package/knowledge/apple/visual-design-and-premium-ui.md +1555 -0
- package/knowledge/apple/visual-hierarchy-engine.md +1647 -0
- package/knowledge/apple/visual-materials.md +2189 -0
- package/package.json +53 -0
- package/principles/design-principles.md +37 -0
- package/principles/platform-principles.md +25 -0
- package/principles/ux-principles.md +16 -0
- package/references/official-links.md +11 -0
- package/skills/accessibility-engineer/SKILL.md +125 -0
- package/skills/analytics-engineer/SKILL.md +283 -0
- package/skills/animation-engineer/SKILL.md +316 -0
- package/skills/component-designer/SKILL.md +75 -0
- package/skills/component-library-engineer/SKILL.md +140 -0
- package/skills/component-library-ops/SKILL.md +155 -0
- package/skills/design-system/SKILL.md +77 -0
- package/skills/design-token-engineer/SKILL.md +203 -0
- package/skills/design-token-pipeline/SKILL.md +277 -0
- package/skills/device-lab-engineer/SKILL.md +387 -0
- package/skills/forms-engineer/SKILL.md +79 -0
- package/skills/internationalization-engineer/SKILL.md +256 -0
- package/skills/motion-designer/SKILL.md +77 -0
- package/skills/native-data-fetching/SKILL.md +50 -0
- package/skills/navigation-architect/SKILL.md +65 -0
- package/skills/performance-engineer/SKILL.md +250 -0
- package/skills/platform-specialist/SKILL.md +95 -0
- package/skills/pre-release-gate/SKILL.md +75 -0
- package/skills/screen-designer/SKILL.md +117 -0
- package/skills/security-engineer/SKILL.md +375 -0
- package/skills/skills.json +134 -0
- package/skills/testing-auditor/SKILL.md +62 -0
- package/skills/ui-architect/SKILL.md +86 -0
- package/skills/ui-implementer/SKILL.md +188 -0
- package/skills/ux-architect/SKILL.md +49 -0
- package/skills/ux-auditor/SKILL.md +52 -0
- package/skills/visual-auditor/SKILL.md +71 -0
- package/templates/audit-report.md +29 -0
- package/templates/design-tokens.ts +33 -0
- package/templates/screen-spec.md +61 -0
- package/workflows/new-screen.md +17 -0
- package/workflows/pre-release.md +21 -0
- package/workflows/redesign.md +14 -0
- package/workflows/ui-audit.md +22 -0
|
@@ -0,0 +1,533 @@
|
|
|
1
|
+
## File 64 — UI/UX Decision-Making, Prioritization & Trade-offs
|
|
2
|
+
|
|
3
|
+
Now that **63** manages the lifecycle, **64** should teach the agent how to make good decisions when requirements, design quality, engineering constraints, and user needs conflict.
|
|
4
|
+
|
|
5
|
+
This is important because real projects rarely provide perfect conditions.
|
|
6
|
+
|
|
7
|
+
> **The agent must optimize for the best overall outcome—not blindly maximize one dimension.**
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
# 1. The decision hierarchy
|
|
12
|
+
|
|
13
|
+
When evaluating a UI/UX decision, reason in this order:
|
|
14
|
+
|
|
15
|
+
```text id="h7v3q2"
|
|
16
|
+
USER GOAL
|
|
17
|
+
↓
|
|
18
|
+
PRODUCT REQUIREMENT
|
|
19
|
+
↓
|
|
20
|
+
USABILITY
|
|
21
|
+
↓
|
|
22
|
+
ACCESSIBILITY
|
|
23
|
+
↓
|
|
24
|
+
RELIABILITY
|
|
25
|
+
↓
|
|
26
|
+
MAINTAINABILITY
|
|
27
|
+
↓
|
|
28
|
+
PERFORMANCE
|
|
29
|
+
↓
|
|
30
|
+
VISUAL POLISH
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
The exact ordering can change depending on the product, but the agent must understand that **visual preference is not automatically the highest priority**.
|
|
34
|
+
|
|
35
|
+
---
|
|
36
|
+
|
|
37
|
+
# 2. Identify the actual decision
|
|
38
|
+
|
|
39
|
+
Avoid vague decisions such as:
|
|
40
|
+
|
|
41
|
+
> "Which design is better?"
|
|
42
|
+
|
|
43
|
+
Translate them into something concrete:
|
|
44
|
+
|
|
45
|
+
```text id="r3m8k1"
|
|
46
|
+
Should navigation use tabs or a drawer?
|
|
47
|
+
|
|
48
|
+
Should this action be inline or modal?
|
|
49
|
+
|
|
50
|
+
Should this component be reused or specialized?
|
|
51
|
+
|
|
52
|
+
Should this flow have confirmation or undo?
|
|
53
|
+
|
|
54
|
+
Should this screen prioritize density or simplicity?
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
Good decisions have identifiable alternatives.
|
|
58
|
+
|
|
59
|
+
---
|
|
60
|
+
|
|
61
|
+
# 3. Decision inputs
|
|
62
|
+
|
|
63
|
+
Evaluate:
|
|
64
|
+
|
|
65
|
+
```text id="p6y2w9"
|
|
66
|
+
User needs
|
|
67
|
+
Product goals
|
|
68
|
+
Usage frequency
|
|
69
|
+
Risk
|
|
70
|
+
Accessibility
|
|
71
|
+
Platform conventions
|
|
72
|
+
Existing design system
|
|
73
|
+
Technical constraints
|
|
74
|
+
Performance
|
|
75
|
+
Development cost
|
|
76
|
+
Maintenance cost
|
|
77
|
+
Future scalability
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
Avoid deciding from aesthetics alone.
|
|
81
|
+
|
|
82
|
+
---
|
|
83
|
+
|
|
84
|
+
# 4. Reversible vs irreversible decisions
|
|
85
|
+
|
|
86
|
+
Classify decisions:
|
|
87
|
+
|
|
88
|
+
### Easily reversible
|
|
89
|
+
|
|
90
|
+
```text id="c9v4x2"
|
|
91
|
+
Spacing
|
|
92
|
+
Typography
|
|
93
|
+
Minor layout
|
|
94
|
+
Color adjustment
|
|
95
|
+
Microcopy
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
### Moderately expensive
|
|
99
|
+
|
|
100
|
+
```text id="s2k8m5"
|
|
101
|
+
Component architecture
|
|
102
|
+
Navigation structure
|
|
103
|
+
State architecture
|
|
104
|
+
Design-system changes
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
### High-cost / difficult to reverse
|
|
108
|
+
|
|
109
|
+
```text id="n7q3w1"
|
|
110
|
+
Data architecture
|
|
111
|
+
Core navigation model
|
|
112
|
+
Major dependency changes
|
|
113
|
+
Platform architecture
|
|
114
|
+
Fundamental interaction model
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
The more irreversible the decision, the more evidence the agent should gather first.
|
|
118
|
+
|
|
119
|
+
---
|
|
120
|
+
|
|
121
|
+
# 5. Evidence before preference
|
|
122
|
+
|
|
123
|
+
The agent should distinguish:
|
|
124
|
+
|
|
125
|
+
```text id="z4m1p8"
|
|
126
|
+
FACT
|
|
127
|
+
What is known?
|
|
128
|
+
|
|
129
|
+
ASSUMPTION
|
|
130
|
+
What are we assuming?
|
|
131
|
+
|
|
132
|
+
PREFERENCE
|
|
133
|
+
What simply feels better?
|
|
134
|
+
|
|
135
|
+
CONSTRAINT
|
|
136
|
+
What cannot change?
|
|
137
|
+
|
|
138
|
+
HYPOTHESIS
|
|
139
|
+
What do we expect to improve?
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
This dramatically improves decision quality.
|
|
143
|
+
|
|
144
|
+
---
|
|
145
|
+
|
|
146
|
+
# 6. Trade-off analysis
|
|
147
|
+
|
|
148
|
+
When two solutions are viable:
|
|
149
|
+
|
|
150
|
+
```text id="j5r8c3"
|
|
151
|
+
Option A
|
|
152
|
+
├── UX
|
|
153
|
+
├── Accessibility
|
|
154
|
+
├── Performance
|
|
155
|
+
├── Complexity
|
|
156
|
+
├── Scalability
|
|
157
|
+
└── Cost
|
|
158
|
+
|
|
159
|
+
Option B
|
|
160
|
+
├── UX
|
|
161
|
+
├── Accessibility
|
|
162
|
+
├── Performance
|
|
163
|
+
├── Complexity
|
|
164
|
+
├── Scalability
|
|
165
|
+
└── Cost
|
|
166
|
+
```
|
|
167
|
+
|
|
168
|
+
Then determine which trade-off best fits the product.
|
|
169
|
+
|
|
170
|
+
---
|
|
171
|
+
|
|
172
|
+
# 7. Avoid false optimization
|
|
173
|
+
|
|
174
|
+
Examples:
|
|
175
|
+
|
|
176
|
+
```text id="b8x4m2"
|
|
177
|
+
Smaller code ≠ better UX
|
|
178
|
+
|
|
179
|
+
More components ≠ better architecture
|
|
180
|
+
|
|
181
|
+
More animation ≠ better polish
|
|
182
|
+
|
|
183
|
+
Fewer screens ≠ better flow
|
|
184
|
+
|
|
185
|
+
More options ≠ more flexibility
|
|
186
|
+
|
|
187
|
+
Pixel-perfect ≠ accessible
|
|
188
|
+
|
|
189
|
+
Faster rendering ≠ better perceived experience
|
|
190
|
+
```
|
|
191
|
+
|
|
192
|
+
The agent should optimize the **system**, not isolated metrics.
|
|
193
|
+
|
|
194
|
+
---
|
|
195
|
+
|
|
196
|
+
# 8. User-frequency weighting
|
|
197
|
+
|
|
198
|
+
Not every UI element deserves equal attention.
|
|
199
|
+
|
|
200
|
+
Prioritize based on:
|
|
201
|
+
|
|
202
|
+
```text id="f7k2n4"
|
|
203
|
+
Frequency
|
|
204
|
+
×
|
|
205
|
+
Importance
|
|
206
|
+
×
|
|
207
|
+
User impact
|
|
208
|
+
```
|
|
209
|
+
|
|
210
|
+
A frequently used primary action deserves much more attention than a rarely accessed settings control.
|
|
211
|
+
|
|
212
|
+
---
|
|
213
|
+
|
|
214
|
+
# 9. Risk-based decision-making
|
|
215
|
+
|
|
216
|
+
High-risk actions need stronger design and validation.
|
|
217
|
+
|
|
218
|
+
Examples:
|
|
219
|
+
|
|
220
|
+
```text id="v1n6q9"
|
|
221
|
+
Low risk
|
|
222
|
+
→ direct action
|
|
223
|
+
|
|
224
|
+
Medium risk
|
|
225
|
+
→ feedback / undo
|
|
226
|
+
|
|
227
|
+
High risk
|
|
228
|
+
→ confirmation / explicit explanation
|
|
229
|
+
|
|
230
|
+
Critical
|
|
231
|
+
→ strong safeguards + recovery
|
|
232
|
+
```
|
|
233
|
+
|
|
234
|
+
This should influence both UX and implementation.
|
|
235
|
+
|
|
236
|
+
---
|
|
237
|
+
|
|
238
|
+
# 10. Consistency vs innovation
|
|
239
|
+
|
|
240
|
+
Consistency is valuable, but not absolute.
|
|
241
|
+
|
|
242
|
+
Ask:
|
|
243
|
+
|
|
244
|
+
```text id="m4z8s2"
|
|
245
|
+
Does the existing pattern work?
|
|
246
|
+
↓
|
|
247
|
+
Does it support the new use case?
|
|
248
|
+
↓
|
|
249
|
+
Would changing it improve the experience?
|
|
250
|
+
↓
|
|
251
|
+
Would the change create unnecessary inconsistency?
|
|
252
|
+
```
|
|
253
|
+
|
|
254
|
+
Use innovation where it creates meaningful value—not merely novelty.
|
|
255
|
+
|
|
256
|
+
---
|
|
257
|
+
|
|
258
|
+
# 11. Simplicity vs capability
|
|
259
|
+
|
|
260
|
+
A powerful product can become overwhelming.
|
|
261
|
+
|
|
262
|
+
The agent should consider:
|
|
263
|
+
|
|
264
|
+
```text id="u9x3c7"
|
|
265
|
+
Core functionality
|
|
266
|
+
↓
|
|
267
|
+
Progressive disclosure
|
|
268
|
+
↓
|
|
269
|
+
Advanced functionality
|
|
270
|
+
```
|
|
271
|
+
|
|
272
|
+
Don't expose every capability simultaneously.
|
|
273
|
+
|
|
274
|
+
---
|
|
275
|
+
|
|
276
|
+
# 12. Flexibility vs opinionation
|
|
277
|
+
|
|
278
|
+
Highly configurable interfaces can create cognitive overhead.
|
|
279
|
+
|
|
280
|
+
Prefer:
|
|
281
|
+
|
|
282
|
+
```text id="r6k2p1"
|
|
283
|
+
Good defaults
|
|
284
|
+
+
|
|
285
|
+
Optional customization
|
|
286
|
+
```
|
|
287
|
+
|
|
288
|
+
rather than:
|
|
289
|
+
|
|
290
|
+
```text id="q1m8v5"
|
|
291
|
+
Configure everything before using the product.
|
|
292
|
+
```
|
|
293
|
+
|
|
294
|
+
---
|
|
295
|
+
|
|
296
|
+
# 13. Speed vs clarity
|
|
297
|
+
|
|
298
|
+
Sometimes an extra step improves understanding.
|
|
299
|
+
|
|
300
|
+
For example:
|
|
301
|
+
|
|
302
|
+
```text id="t7c3x9"
|
|
303
|
+
Instant destructive action
|
|
304
|
+
```
|
|
305
|
+
|
|
306
|
+
may be worse than:
|
|
307
|
+
|
|
308
|
+
```text id="p5v8k2"
|
|
309
|
+
Action
|
|
310
|
+
↓
|
|
311
|
+
Clear feedback
|
|
312
|
+
↓
|
|
313
|
+
Undo
|
|
314
|
+
```
|
|
315
|
+
|
|
316
|
+
The goal isn't always the fewest taps.
|
|
317
|
+
|
|
318
|
+
It's:
|
|
319
|
+
|
|
320
|
+
> **The lowest unnecessary effort while maintaining confidence and control.**
|
|
321
|
+
|
|
322
|
+
---
|
|
323
|
+
|
|
324
|
+
# 14. Native convention vs custom design
|
|
325
|
+
|
|
326
|
+
When designing for Expo/React Native:
|
|
327
|
+
|
|
328
|
+
```text id="m3k7x1"
|
|
329
|
+
Platform convention
|
|
330
|
+
↓
|
|
331
|
+
User expectation
|
|
332
|
+
↓
|
|
333
|
+
Product identity
|
|
334
|
+
↓
|
|
335
|
+
Customization
|
|
336
|
+
```
|
|
337
|
+
|
|
338
|
+
Use custom behavior when there is a clear product reason.
|
|
339
|
+
|
|
340
|
+
Don't reinvent familiar interactions without benefit.
|
|
341
|
+
|
|
342
|
+
---
|
|
343
|
+
|
|
344
|
+
# 15. Technical constraint negotiation
|
|
345
|
+
|
|
346
|
+
Sometimes engineering constraints affect UX.
|
|
347
|
+
|
|
348
|
+
Example:
|
|
349
|
+
|
|
350
|
+
```text id="d8q2m6"
|
|
351
|
+
Ideal UX
|
|
352
|
+
↓
|
|
353
|
+
Technical limitation
|
|
354
|
+
↓
|
|
355
|
+
Evaluate alternatives
|
|
356
|
+
↓
|
|
357
|
+
Preserve essential user value
|
|
358
|
+
↓
|
|
359
|
+
Choose practical implementation
|
|
360
|
+
```
|
|
361
|
+
|
|
362
|
+
The agent should not simply say:
|
|
363
|
+
|
|
364
|
+
> "Impossible."
|
|
365
|
+
|
|
366
|
+
It should search for the **closest viable experience**.
|
|
367
|
+
|
|
368
|
+
---
|
|
369
|
+
|
|
370
|
+
# 16. Scope prioritization
|
|
371
|
+
|
|
372
|
+
Classify work:
|
|
373
|
+
|
|
374
|
+
```text id="a4v9s7"
|
|
375
|
+
MUST
|
|
376
|
+
Required for functionality
|
|
377
|
+
|
|
378
|
+
SHOULD
|
|
379
|
+
Strongly improves experience
|
|
380
|
+
|
|
381
|
+
COULD
|
|
382
|
+
Useful enhancement
|
|
383
|
+
|
|
384
|
+
LATER
|
|
385
|
+
Nice-to-have
|
|
386
|
+
```
|
|
387
|
+
|
|
388
|
+
This helps protect delivery timelines.
|
|
389
|
+
|
|
390
|
+
---
|
|
391
|
+
|
|
392
|
+
# 17. Technical debt decisions
|
|
393
|
+
|
|
394
|
+
Not every imperfect implementation needs immediate refactoring.
|
|
395
|
+
|
|
396
|
+
Evaluate:
|
|
397
|
+
|
|
398
|
+
```text id="k8r1x4"
|
|
399
|
+
Current cost
|
|
400
|
+
Future cost
|
|
401
|
+
Frequency of change
|
|
402
|
+
Risk
|
|
403
|
+
Complexity
|
|
404
|
+
User impact
|
|
405
|
+
```
|
|
406
|
+
|
|
407
|
+
Refactor when the accumulated cost justifies the disruption.
|
|
408
|
+
|
|
409
|
+
---
|
|
410
|
+
|
|
411
|
+
# 18. When to create a new pattern
|
|
412
|
+
|
|
413
|
+
Before adding a new UI pattern:
|
|
414
|
+
|
|
415
|
+
```text id="c2m7v5"
|
|
416
|
+
Existing pattern?
|
|
417
|
+
↓
|
|
418
|
+
Can it be adapted?
|
|
419
|
+
↓
|
|
420
|
+
Does adaptation remain semantically correct?
|
|
421
|
+
↓
|
|
422
|
+
Would a new pattern solve a genuinely different problem?
|
|
423
|
+
```
|
|
424
|
+
|
|
425
|
+
Only then introduce another pattern.
|
|
426
|
+
|
|
427
|
+
---
|
|
428
|
+
|
|
429
|
+
# 19. Decision record
|
|
430
|
+
|
|
431
|
+
Important decisions should be captured:
|
|
432
|
+
|
|
433
|
+
```text id="s6x9n3"
|
|
434
|
+
DECISION
|
|
435
|
+
What was chosen?
|
|
436
|
+
|
|
437
|
+
CONTEXT
|
|
438
|
+
Why was the decision necessary?
|
|
439
|
+
|
|
440
|
+
OPTIONS
|
|
441
|
+
What alternatives existed?
|
|
442
|
+
|
|
443
|
+
REASONING
|
|
444
|
+
Why was this option selected?
|
|
445
|
+
|
|
446
|
+
TRADE-OFF
|
|
447
|
+
What was sacrificed?
|
|
448
|
+
|
|
449
|
+
CONSEQUENCE
|
|
450
|
+
What changes because of this?
|
|
451
|
+
```
|
|
452
|
+
|
|
453
|
+
This prevents future agents from "fixing" deliberate decisions without understanding them.
|
|
454
|
+
|
|
455
|
+
---
|
|
456
|
+
|
|
457
|
+
# 20. Decision confidence
|
|
458
|
+
|
|
459
|
+
The agent should estimate:
|
|
460
|
+
|
|
461
|
+
```text id="w4p2j8"
|
|
462
|
+
High confidence
|
|
463
|
+
→ strong evidence
|
|
464
|
+
|
|
465
|
+
Medium confidence
|
|
466
|
+
→ reasonable evidence
|
|
467
|
+
|
|
468
|
+
Low confidence
|
|
469
|
+
→ assumption / uncertainty
|
|
470
|
+
```
|
|
471
|
+
|
|
472
|
+
Low-confidence decisions should be validated when practical.
|
|
473
|
+
|
|
474
|
+
---
|
|
475
|
+
|
|
476
|
+
# 21. Escalation rules
|
|
477
|
+
|
|
478
|
+
The agent should continue autonomously when:
|
|
479
|
+
|
|
480
|
+
```text id="n3q7m5"
|
|
481
|
+
Decision is low risk
|
|
482
|
+
AND
|
|
483
|
+
Existing patterns provide guidance
|
|
484
|
+
AND
|
|
485
|
+
User intent is reasonably clear
|
|
486
|
+
```
|
|
487
|
+
|
|
488
|
+
Escalate when:
|
|
489
|
+
|
|
490
|
+
```text id="x8m4r2"
|
|
491
|
+
Requirements conflict
|
|
492
|
+
OR
|
|
493
|
+
Business intent is ambiguous
|
|
494
|
+
OR
|
|
495
|
+
Multiple high-impact solutions exist
|
|
496
|
+
OR
|
|
497
|
+
Decision is difficult to reverse
|
|
498
|
+
OR
|
|
499
|
+
Security/privacy implications exist
|
|
500
|
+
```
|
|
501
|
+
|
|
502
|
+
---
|
|
503
|
+
|
|
504
|
+
# 22. Decision workflow
|
|
505
|
+
|
|
506
|
+
```text id="v5k9q1"
|
|
507
|
+
IDENTIFY DECISION
|
|
508
|
+
↓
|
|
509
|
+
COLLECT CONTEXT
|
|
510
|
+
↓
|
|
511
|
+
SEPARATE FACTS FROM ASSUMPTIONS
|
|
512
|
+
↓
|
|
513
|
+
GENERATE OPTIONS
|
|
514
|
+
↓
|
|
515
|
+
ANALYZE TRADE-OFFS
|
|
516
|
+
↓
|
|
517
|
+
ASSESS RISK
|
|
518
|
+
↓
|
|
519
|
+
CHOOSE
|
|
520
|
+
↓
|
|
521
|
+
IMPLEMENT
|
|
522
|
+
↓
|
|
523
|
+
VALIDATE
|
|
524
|
+
↓
|
|
525
|
+
REASSESS IF NECESSARY
|
|
526
|
+
```
|
|
527
|
+
|
|
528
|
+
---
|
|
529
|
+
|
|
530
|
+
## File 64 operating principle
|
|
531
|
+
|
|
532
|
+
> **Make decisions deliberately, based on user value, evidence, constraints, risk, and long-term system health—not personal aesthetic preference.**
|
|
533
|
+
|