@enki-dev-expert/global-engineering-standards 0.0.0-stage → 0.1.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 +303 -0
- package/CHANGELOG.md +23 -0
- package/CITATION.cff +21 -0
- package/CODE_OF_CONDUCT.md +13 -0
- package/CONTRIBUTING.md +27 -0
- package/LICENSE +21 -0
- package/README.md +159 -2
- package/SECURITY.md +25 -0
- package/dist/cli.js +40 -0
- package/dist/content.js +71 -0
- package/dist/filesystem.js +83 -0
- package/dist/installer.js +243 -0
- package/dist/layout.js +42 -0
- package/dist/transaction.js +143 -0
- package/docs/ai-and-llm.md +1312 -0
- package/docs/architecture.md +1007 -0
- package/docs/cost-engineering.md +1322 -0
- package/docs/data.md +993 -0
- package/docs/governance.md +1744 -0
- package/docs/mobile-and-web.md +1362 -0
- package/docs/observability.md +1345 -0
- package/docs/platforms-and-applications.md +1581 -0
- package/docs/privacy.md +566 -0
- package/docs/quality-and-testing.md +1278 -0
- package/docs/scalability.md +1012 -0
- package/docs/security.md +373 -0
- package/handbook/claude-plugin.md +31 -0
- package/handbook/compatibility.md +27 -0
- package/handbook/recovery.md +29 -0
- package/handbook/releasing.md +50 -0
- package/handbook/security-review.md +41 -0
- package/handbook/signing.md +18 -0
- package/handbook/validation.md +50 -0
- package/package.json +65 -4
- package/scripts/content-baseline.json +25 -0
- package/skills/engineering-architecture-review/SKILL.md +1531 -0
- package/skills/engineering-cost-estimate/SKILL.md +1599 -0
- package/skills/engineering-database-review/SKILL.md +1364 -0
- package/skills/engineering-privacy-check/SKILL.md +1295 -0
- package/skills/engineering-safe-implementation/SKILL.md +1502 -0
- package/skills/engineering-security-standards-check/SKILL.md +1112 -0
- package/src/cli.ts +45 -0
- package/src/content.ts +82 -0
- package/src/filesystem.ts +94 -0
- package/src/installer.ts +280 -0
- package/src/layout.ts +70 -0
- package/src/transaction.ts +167 -0
- package/templates/ADR.md +1302 -0
- package/templates/AUDIT_REPORT.md +1693 -0
- package/templates/EXCEPTIONS.md +647 -0
- package/templates/PROJECT_AGENTS.md +868 -0
|
@@ -0,0 +1,1599 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: engineering-cost-estimate
|
|
3
|
+
description: Estimate, evaluate, forecast and optimize engineering costs using the Global Engineering Standards. Use for cloud infrastructure pricing, AWS, Azure, GCP, Supabase, Firebase, databases, Kubernetes, serverless, AI model inference, RAG, agentic systems, FinOps, SaaS unit economics, scalability cost planning and prevention of unauthorized spending.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Engineering Cost Estimate
|
|
7
|
+
|
|
8
|
+
## 1. Purpose
|
|
9
|
+
|
|
10
|
+
Provide an evidence-based engineering cost estimation and optimization workflow.
|
|
11
|
+
|
|
12
|
+
This skill supports:
|
|
13
|
+
|
|
14
|
+
- Infrastructure cost estimation.
|
|
15
|
+
- Cloud provider comparison.
|
|
16
|
+
- Database pricing evaluation.
|
|
17
|
+
- Storage and network cost analysis.
|
|
18
|
+
- Serverless pricing.
|
|
19
|
+
- Kubernetes cost assessment.
|
|
20
|
+
- AI and LLM inference costs.
|
|
21
|
+
- RAG and agentic AI costs.
|
|
22
|
+
- SaaS unit economics.
|
|
23
|
+
- Scalability cost forecasting.
|
|
24
|
+
- Capacity planning.
|
|
25
|
+
- Cost optimization.
|
|
26
|
+
- FinOps governance.
|
|
27
|
+
- Budget controls.
|
|
28
|
+
- Cost anomaly detection.
|
|
29
|
+
- Financial risk assessment.
|
|
30
|
+
- Autonomous development cost protection.
|
|
31
|
+
|
|
32
|
+
The objective is to select and maintain economically efficient solutions that satisfy actual technical and business requirements.
|
|
33
|
+
|
|
34
|
+
Do not sacrifice security, privacy, data integrity or essential reliability merely to reduce cost.
|
|
35
|
+
|
|
36
|
+
Do not create financial commitments without appropriate authorization.
|
|
37
|
+
|
|
38
|
+
## 2. Global Engineering Standards
|
|
39
|
+
|
|
40
|
+
The Global Engineering Standards repository is located at:
|
|
41
|
+
|
|
42
|
+
~/engineering-standards/
|
|
43
|
+
|
|
44
|
+
Primary reference:
|
|
45
|
+
|
|
46
|
+
~/engineering-standards/docs/cost-engineering.md
|
|
47
|
+
|
|
48
|
+
Additional references when relevant:
|
|
49
|
+
|
|
50
|
+
- docs/governance.md
|
|
51
|
+
- docs/architecture.md
|
|
52
|
+
- docs/scalability.md
|
|
53
|
+
- docs/data.md
|
|
54
|
+
- docs/security.md
|
|
55
|
+
- docs/privacy.md
|
|
56
|
+
- docs/ai-and-llm.md
|
|
57
|
+
- docs/quality-and-testing.md
|
|
58
|
+
- docs/observability.md
|
|
59
|
+
- docs/mobile-and-web.md
|
|
60
|
+
- docs/platforms-and-applications.md
|
|
61
|
+
|
|
62
|
+
Resolve relative references against the engineering-standards repository.
|
|
63
|
+
|
|
64
|
+
Read the relevant standards before making significant recommendations.
|
|
65
|
+
|
|
66
|
+
Do not load unrelated documentation unnecessarily.
|
|
67
|
+
|
|
68
|
+
## 3. When to Use This Skill
|
|
69
|
+
|
|
70
|
+
Use when the user requests:
|
|
71
|
+
|
|
72
|
+
- A cost estimate.
|
|
73
|
+
- A cloud provider comparison.
|
|
74
|
+
- Infrastructure budgeting.
|
|
75
|
+
- Database cost assessment.
|
|
76
|
+
- AI inference cost calculation.
|
|
77
|
+
- SaaS operating cost estimates.
|
|
78
|
+
- Cost reduction recommendations.
|
|
79
|
+
- Capacity planning.
|
|
80
|
+
- Kubernetes financial evaluation.
|
|
81
|
+
- Serverless versus dedicated infrastructure analysis.
|
|
82
|
+
- Pricing analysis for scaling an application.
|
|
83
|
+
- FinOps auditing.
|
|
84
|
+
- Financial risk review.
|
|
85
|
+
- Spending safeguards.
|
|
86
|
+
|
|
87
|
+
Also apply cost engineering during significant infrastructure decisions and Autonomous Build Mode.
|
|
88
|
+
|
|
89
|
+
Do not assume an application needs paid cloud infrastructure during initial development.
|
|
90
|
+
|
|
91
|
+
## 4. Operating Modes
|
|
92
|
+
|
|
93
|
+
Support:
|
|
94
|
+
|
|
95
|
+
- Supervised Mode.
|
|
96
|
+
- Autonomous Build Mode.
|
|
97
|
+
|
|
98
|
+
Supervised Mode is the default.
|
|
99
|
+
|
|
100
|
+
Autonomous Build Mode requires explicit user authorization.
|
|
101
|
+
|
|
102
|
+
Both modes must preserve financial controls.
|
|
103
|
+
|
|
104
|
+
The operating mode changes implementation autonomy, not spending authority.
|
|
105
|
+
|
|
106
|
+
Consult docs/governance.md.
|
|
107
|
+
|
|
108
|
+
## 5. Supervised Mode
|
|
109
|
+
|
|
110
|
+
For an existing application:
|
|
111
|
+
|
|
112
|
+
1. Identify authorized scope.
|
|
113
|
+
2. Review relevant architecture.
|
|
114
|
+
3. Inspect available cost information.
|
|
115
|
+
4. Identify actual providers.
|
|
116
|
+
5. Evaluate measured usage.
|
|
117
|
+
6. Separate actual spending from estimated spending.
|
|
118
|
+
7. Identify cost drivers.
|
|
119
|
+
8. Assess optimization opportunities.
|
|
120
|
+
9. Explain risks and trade-offs.
|
|
121
|
+
10. Recommend proportionate changes.
|
|
122
|
+
11. Obtain approval before significant or billable modifications.
|
|
123
|
+
|
|
124
|
+
A default financial or infrastructure audit is read-only.
|
|
125
|
+
|
|
126
|
+
Do not change cloud billing, infrastructure size or production services automatically.
|
|
127
|
+
|
|
128
|
+
## 6. Autonomous Build Mode
|
|
129
|
+
|
|
130
|
+
When explicitly authorized to build a complete application:
|
|
131
|
+
|
|
132
|
+
1. Identify expected workload.
|
|
133
|
+
2. Determine technical requirements.
|
|
134
|
+
3. Evaluate low-cost suitable technologies.
|
|
135
|
+
4. Prefer existing authorized resources where practical.
|
|
136
|
+
5. Estimate potential recurring costs.
|
|
137
|
+
6. Avoid unnecessary paid dependencies.
|
|
138
|
+
7. Implement appropriate local cost controls.
|
|
139
|
+
8. Add usage limits where applicable.
|
|
140
|
+
9. Review resource efficiency.
|
|
141
|
+
10. Test cost-sensitive behaviors.
|
|
142
|
+
11. Document cost assumptions.
|
|
143
|
+
12. Continue authorized development.
|
|
144
|
+
13. Report paid prerequisites at final handoff.
|
|
145
|
+
|
|
146
|
+
Do not interrupt for every ordinary implementation decision.
|
|
147
|
+
|
|
148
|
+
Do not provision billable resources merely because autonomous development was requested.
|
|
149
|
+
|
|
150
|
+
## 7. Financial Authorization
|
|
151
|
+
|
|
152
|
+
A general development request does not authorize financial commitments.
|
|
153
|
+
|
|
154
|
+
Protected actions include:
|
|
155
|
+
|
|
156
|
+
- Creating paid cloud resources.
|
|
157
|
+
- Upgrading subscriptions.
|
|
158
|
+
- Enabling paid API plans.
|
|
159
|
+
- Increasing service quotas with financial exposure.
|
|
160
|
+
- Purchasing domains.
|
|
161
|
+
- Activating paid AI services.
|
|
162
|
+
- Purchasing licenses.
|
|
163
|
+
- Starting billable managed clusters.
|
|
164
|
+
- Changing production billing settings.
|
|
165
|
+
- Accepting recurring financial obligations.
|
|
166
|
+
|
|
167
|
+
Obtain specific authorization according to actual risk and scope.
|
|
168
|
+
|
|
169
|
+
Never infer spending permission from an available payment method.
|
|
170
|
+
|
|
171
|
+
## 8. Budget Identification
|
|
172
|
+
|
|
173
|
+
Identify:
|
|
174
|
+
|
|
175
|
+
- Approved budget.
|
|
176
|
+
- Budget currency.
|
|
177
|
+
- Budget period.
|
|
178
|
+
- Existing resources.
|
|
179
|
+
- Expected users.
|
|
180
|
+
- Expected usage.
|
|
181
|
+
- Workload characteristics.
|
|
182
|
+
- Reliability requirements.
|
|
183
|
+
- Security requirements.
|
|
184
|
+
- Data residency.
|
|
185
|
+
- Growth assumptions.
|
|
186
|
+
|
|
187
|
+
If no approved budget is available, label it as unknown.
|
|
188
|
+
|
|
189
|
+
Do not invent an approved spending ceiling.
|
|
190
|
+
|
|
191
|
+
## 9. Actual Costs Versus Estimates
|
|
192
|
+
|
|
193
|
+
Clearly distinguish:
|
|
194
|
+
|
|
195
|
+
- Verified current spending.
|
|
196
|
+
- Published provider prices.
|
|
197
|
+
- Calculated estimates.
|
|
198
|
+
- Scenario assumptions.
|
|
199
|
+
- Historical averages.
|
|
200
|
+
- Unverified projections.
|
|
201
|
+
|
|
202
|
+
Use accurate labels.
|
|
203
|
+
|
|
204
|
+
Never present an estimate as an actual invoice.
|
|
205
|
+
|
|
206
|
+
Never invent pricing information.
|
|
207
|
+
|
|
208
|
+
## 10. Pricing Verification
|
|
209
|
+
|
|
210
|
+
For pricing-sensitive recommendations:
|
|
211
|
+
|
|
212
|
+
1. Identify the exact service.
|
|
213
|
+
2. Identify provider and region.
|
|
214
|
+
3. Review the applicable pricing model.
|
|
215
|
+
4. Identify billing units.
|
|
216
|
+
5. Check relevant free-tier conditions.
|
|
217
|
+
6. Identify additional charges.
|
|
218
|
+
7. Record verification date.
|
|
219
|
+
8. Document source references.
|
|
220
|
+
9. State relevant uncertainty.
|
|
221
|
+
|
|
222
|
+
Use current official provider pricing whenever accessible.
|
|
223
|
+
|
|
224
|
+
Do not rely on outdated remembered prices when current prices materially affect the answer.
|
|
225
|
+
|
|
226
|
+
If live pricing cannot be verified, explain the limitation and use clearly labeled assumptions.
|
|
227
|
+
|
|
228
|
+
## 11. Cost Estimation Units
|
|
229
|
+
|
|
230
|
+
Identify relevant units, such as:
|
|
231
|
+
|
|
232
|
+
- Cost per hour.
|
|
233
|
+
- Cost per month.
|
|
234
|
+
- Cost per year.
|
|
235
|
+
- Cost per request.
|
|
236
|
+
- Cost per thousand requests.
|
|
237
|
+
- Cost per million tokens.
|
|
238
|
+
- Cost per gigabyte-month.
|
|
239
|
+
- Cost per gigabyte transferred.
|
|
240
|
+
- Cost per database operation.
|
|
241
|
+
- Cost per active user.
|
|
242
|
+
- Cost per transaction.
|
|
243
|
+
- Cost per generated image.
|
|
244
|
+
- Cost per processing minute.
|
|
245
|
+
|
|
246
|
+
Maintain consistent units throughout calculations.
|
|
247
|
+
|
|
248
|
+
## 12. Estimation Methodology
|
|
249
|
+
|
|
250
|
+
Use the following process:
|
|
251
|
+
|
|
252
|
+
1. Define workload.
|
|
253
|
+
2. Identify billable resources.
|
|
254
|
+
3. Determine billing units.
|
|
255
|
+
4. Obtain verified rates or documented assumptions.
|
|
256
|
+
5. Calculate expected usage.
|
|
257
|
+
6. Calculate each cost category.
|
|
258
|
+
7. Include relevant secondary charges.
|
|
259
|
+
8. Calculate monthly and annual totals.
|
|
260
|
+
9. Evaluate growth scenarios.
|
|
261
|
+
10. Perform sensitivity analysis.
|
|
262
|
+
11. Identify uncertain variables.
|
|
263
|
+
12. Present findings and recommendations.
|
|
264
|
+
|
|
265
|
+
Show calculations transparently.
|
|
266
|
+
|
|
267
|
+
Avoid unsupported precision.
|
|
268
|
+
|
|
269
|
+
## 13. Core Cost Model
|
|
270
|
+
|
|
271
|
+
Use a model appropriate to the project.
|
|
272
|
+
|
|
273
|
+
A general monthly total may include:
|
|
274
|
+
|
|
275
|
+
Total monthly cost =
|
|
276
|
+
Compute +
|
|
277
|
+
Database +
|
|
278
|
+
Storage +
|
|
279
|
+
Network +
|
|
280
|
+
Observability +
|
|
281
|
+
AI inference +
|
|
282
|
+
External services +
|
|
283
|
+
Other applicable charges
|
|
284
|
+
|
|
285
|
+
Do not double-count included allowances or bundled services.
|
|
286
|
+
|
|
287
|
+
Distinguish fixed costs from variable costs.
|
|
288
|
+
|
|
289
|
+
Account for taxes where relevant and verifiable.
|
|
290
|
+
|
|
291
|
+
## 14. Scenario Planning
|
|
292
|
+
|
|
293
|
+
Evaluate appropriate scenarios.
|
|
294
|
+
|
|
295
|
+
Examples:
|
|
296
|
+
|
|
297
|
+
- Initial development.
|
|
298
|
+
- Small launch.
|
|
299
|
+
- Moderate adoption.
|
|
300
|
+
- High growth.
|
|
301
|
+
- Peak demand.
|
|
302
|
+
- Large-scale production.
|
|
303
|
+
|
|
304
|
+
For each scenario, document:
|
|
305
|
+
|
|
306
|
+
- Active users.
|
|
307
|
+
- Concurrent users.
|
|
308
|
+
- Requests.
|
|
309
|
+
- Data volume.
|
|
310
|
+
- AI interactions.
|
|
311
|
+
- Resource requirements.
|
|
312
|
+
- Monthly cost.
|
|
313
|
+
- Cost uncertainty.
|
|
314
|
+
|
|
315
|
+
Do not assume all registered users are simultaneously active.
|
|
316
|
+
|
|
317
|
+
## 15. Growth to Millions of Users
|
|
318
|
+
|
|
319
|
+
When an application targets large-scale growth:
|
|
320
|
+
|
|
321
|
+
- Distinguish registered users from active users.
|
|
322
|
+
- Estimate concurrency.
|
|
323
|
+
- Evaluate request frequency.
|
|
324
|
+
- Estimate storage per user.
|
|
325
|
+
- Model data growth.
|
|
326
|
+
- Evaluate background workloads.
|
|
327
|
+
- Assess database limits.
|
|
328
|
+
- Consider network transfer.
|
|
329
|
+
- Model inference usage.
|
|
330
|
+
- Estimate capacity thresholds.
|
|
331
|
+
|
|
332
|
+
Design a credible evolution path.
|
|
333
|
+
|
|
334
|
+
Do not provision infrastructure for millions of simultaneous users without supporting requirements.
|
|
335
|
+
|
|
336
|
+
## 16. Unit Economics
|
|
337
|
+
|
|
338
|
+
Evaluate suitable metrics:
|
|
339
|
+
|
|
340
|
+
- Cost per active user.
|
|
341
|
+
- Cost per customer.
|
|
342
|
+
- Cost per transaction.
|
|
343
|
+
- Cost per request.
|
|
344
|
+
- Cost per document processed.
|
|
345
|
+
- Cost per AI conversation.
|
|
346
|
+
- Cost per generated result.
|
|
347
|
+
- Cost per organization or tenant.
|
|
348
|
+
|
|
349
|
+
Select units relevant to the application's business model.
|
|
350
|
+
|
|
351
|
+
Do not treat infrastructure cost alone as total business cost.
|
|
352
|
+
|
|
353
|
+
## 17. Fixed and Variable Costs
|
|
354
|
+
|
|
355
|
+
Separate:
|
|
356
|
+
|
|
357
|
+
Fixed or relatively stable costs:
|
|
358
|
+
|
|
359
|
+
- Reserved capacity.
|
|
360
|
+
- Dedicated infrastructure.
|
|
361
|
+
- Base subscriptions.
|
|
362
|
+
- Minimum service fees.
|
|
363
|
+
|
|
364
|
+
Variable costs:
|
|
365
|
+
|
|
366
|
+
- Usage-based compute.
|
|
367
|
+
- Requests.
|
|
368
|
+
- Storage growth.
|
|
369
|
+
- Network transfer.
|
|
370
|
+
- AI tokens.
|
|
371
|
+
- Database operations.
|
|
372
|
+
- Event processing.
|
|
373
|
+
|
|
374
|
+
Identify how each category changes with adoption.
|
|
375
|
+
|
|
376
|
+
## 18. Cloud Provider Comparison
|
|
377
|
+
|
|
378
|
+
Evaluate relevant services across:
|
|
379
|
+
|
|
380
|
+
- AWS.
|
|
381
|
+
- Microsoft Azure.
|
|
382
|
+
- Google Cloud.
|
|
383
|
+
- Other suitable providers.
|
|
384
|
+
|
|
385
|
+
Compare:
|
|
386
|
+
|
|
387
|
+
- Compute.
|
|
388
|
+
- Managed databases.
|
|
389
|
+
- Storage.
|
|
390
|
+
- Networking.
|
|
391
|
+
- Monitoring.
|
|
392
|
+
- Security controls.
|
|
393
|
+
- Operational complexity.
|
|
394
|
+
- Reliability.
|
|
395
|
+
- Data residency.
|
|
396
|
+
- Scaling behavior.
|
|
397
|
+
- Pricing model.
|
|
398
|
+
|
|
399
|
+
Compare functionally equivalent configurations.
|
|
400
|
+
|
|
401
|
+
Do not declare a universal cheapest cloud provider.
|
|
402
|
+
|
|
403
|
+
## 19. AWS Cost Review
|
|
404
|
+
|
|
405
|
+
When AWS is relevant, consider:
|
|
406
|
+
|
|
407
|
+
- Compute services.
|
|
408
|
+
- Lambda.
|
|
409
|
+
- API Gateway.
|
|
410
|
+
- RDS and Aurora.
|
|
411
|
+
- DynamoDB.
|
|
412
|
+
- S3.
|
|
413
|
+
- CloudFront.
|
|
414
|
+
- Network egress.
|
|
415
|
+
- NAT gateways.
|
|
416
|
+
- Load balancers.
|
|
417
|
+
- CloudWatch.
|
|
418
|
+
- EKS.
|
|
419
|
+
- Backup.
|
|
420
|
+
- Data transfer between services.
|
|
421
|
+
|
|
422
|
+
Include only services actually used or seriously considered.
|
|
423
|
+
|
|
424
|
+
Verify current provider-specific pricing.
|
|
425
|
+
|
|
426
|
+
## 20. Azure Cost Review
|
|
427
|
+
|
|
428
|
+
When Azure is relevant, consider:
|
|
429
|
+
|
|
430
|
+
- App Service.
|
|
431
|
+
- Functions.
|
|
432
|
+
- Virtual machines.
|
|
433
|
+
- Azure SQL.
|
|
434
|
+
- Cosmos DB.
|
|
435
|
+
- Blob Storage.
|
|
436
|
+
- Azure Monitor.
|
|
437
|
+
- AKS.
|
|
438
|
+
- Load balancing.
|
|
439
|
+
- Networking.
|
|
440
|
+
- Data transfer.
|
|
441
|
+
- Backup.
|
|
442
|
+
|
|
443
|
+
Use actual region and deployment assumptions.
|
|
444
|
+
|
|
445
|
+
Verify current pricing.
|
|
446
|
+
|
|
447
|
+
## 21. Google Cloud Cost Review
|
|
448
|
+
|
|
449
|
+
When Google Cloud is relevant, consider:
|
|
450
|
+
|
|
451
|
+
- Cloud Run.
|
|
452
|
+
- Cloud Functions.
|
|
453
|
+
- Compute Engine.
|
|
454
|
+
- Cloud SQL.
|
|
455
|
+
- Firestore.
|
|
456
|
+
- Cloud Storage.
|
|
457
|
+
- Cloud Monitoring.
|
|
458
|
+
- GKE.
|
|
459
|
+
- Load balancing.
|
|
460
|
+
- Networking.
|
|
461
|
+
- Backup.
|
|
462
|
+
- Egress.
|
|
463
|
+
|
|
464
|
+
Verify applicable rates and allowances.
|
|
465
|
+
|
|
466
|
+
## 22. Managed Platforms
|
|
467
|
+
|
|
468
|
+
Evaluate managed application platforms when appropriate.
|
|
469
|
+
|
|
470
|
+
Examples include:
|
|
471
|
+
|
|
472
|
+
- Supabase.
|
|
473
|
+
- Firebase.
|
|
474
|
+
- Managed hosting providers.
|
|
475
|
+
- Serverless application platforms.
|
|
476
|
+
- Managed database platforms.
|
|
477
|
+
- Managed authentication services.
|
|
478
|
+
|
|
479
|
+
Review:
|
|
480
|
+
|
|
481
|
+
- Base plan.
|
|
482
|
+
- Usage limits.
|
|
483
|
+
- Database charges.
|
|
484
|
+
- Storage.
|
|
485
|
+
- Bandwidth.
|
|
486
|
+
- Authentication.
|
|
487
|
+
- Backups.
|
|
488
|
+
- Additional environments.
|
|
489
|
+
- Upgrade thresholds.
|
|
490
|
+
- Provider dependencies.
|
|
491
|
+
|
|
492
|
+
Do not assume that a managed platform is always cheaper or more expensive than self-hosting.
|
|
493
|
+
|
|
494
|
+
## 23. Supabase Cost Considerations
|
|
495
|
+
|
|
496
|
+
When Supabase is used or evaluated, consider:
|
|
497
|
+
|
|
498
|
+
- Project plan.
|
|
499
|
+
- Database compute.
|
|
500
|
+
- Storage.
|
|
501
|
+
- Bandwidth.
|
|
502
|
+
- Authentication usage.
|
|
503
|
+
- Edge Functions.
|
|
504
|
+
- Backups.
|
|
505
|
+
- Additional project environments.
|
|
506
|
+
- Resource limits.
|
|
507
|
+
- Upgrade requirements.
|
|
508
|
+
|
|
509
|
+
Verify current published pricing and account-specific billing conditions where accessible.
|
|
510
|
+
|
|
511
|
+
Do not assume a free project can support every production workload.
|
|
512
|
+
|
|
513
|
+
## 24. Firebase Cost Considerations
|
|
514
|
+
|
|
515
|
+
When Firebase is used or evaluated, consider:
|
|
516
|
+
|
|
517
|
+
- Firestore operations.
|
|
518
|
+
- Realtime Database usage.
|
|
519
|
+
- Storage.
|
|
520
|
+
- Network egress.
|
|
521
|
+
- Cloud Functions.
|
|
522
|
+
- Authentication.
|
|
523
|
+
- Hosting.
|
|
524
|
+
- Logging.
|
|
525
|
+
- Google Cloud-linked resources.
|
|
526
|
+
- Plan limits.
|
|
527
|
+
|
|
528
|
+
Usage-based charges may rise with inefficient access patterns.
|
|
529
|
+
|
|
530
|
+
Model reads and writes according to realistic application behavior.
|
|
531
|
+
|
|
532
|
+
## 25. Compute Cost Engineering
|
|
533
|
+
|
|
534
|
+
Evaluate:
|
|
535
|
+
|
|
536
|
+
- Instance type.
|
|
537
|
+
- CPU.
|
|
538
|
+
- Memory.
|
|
539
|
+
- Operating hours.
|
|
540
|
+
- Idle capacity.
|
|
541
|
+
- Autoscaling.
|
|
542
|
+
- Cold starts.
|
|
543
|
+
- Minimum replicas.
|
|
544
|
+
- Provisioned concurrency.
|
|
545
|
+
- Burst demand.
|
|
546
|
+
- Reserved or committed capacity.
|
|
547
|
+
|
|
548
|
+
Avoid overprovisioning.
|
|
549
|
+
|
|
550
|
+
Do not reduce capacity below justified reliability requirements.
|
|
551
|
+
|
|
552
|
+
## 26. Serverless Cost Engineering
|
|
553
|
+
|
|
554
|
+
For serverless services, model:
|
|
555
|
+
|
|
556
|
+
- Invocation count.
|
|
557
|
+
- Execution duration.
|
|
558
|
+
- Memory allocation.
|
|
559
|
+
- CPU allocation.
|
|
560
|
+
- Provisioned capacity.
|
|
561
|
+
- Networking.
|
|
562
|
+
- Logging.
|
|
563
|
+
- Concurrency.
|
|
564
|
+
- Request limits.
|
|
565
|
+
|
|
566
|
+
Evaluate break-even conditions against other hosting options.
|
|
567
|
+
|
|
568
|
+
Do not assume serverless is always free at low traffic or always cheaper at high traffic.
|
|
569
|
+
|
|
570
|
+
## 27. Container Infrastructure
|
|
571
|
+
|
|
572
|
+
For container-based services, consider:
|
|
573
|
+
|
|
574
|
+
- Compute capacity.
|
|
575
|
+
- Memory limits.
|
|
576
|
+
- Container registry.
|
|
577
|
+
- Storage.
|
|
578
|
+
- Networking.
|
|
579
|
+
- Scheduling.
|
|
580
|
+
- Deployment overhead.
|
|
581
|
+
- Monitoring.
|
|
582
|
+
- Security scanning.
|
|
583
|
+
|
|
584
|
+
Compare managed containers and traditional hosting when relevant.
|
|
585
|
+
|
|
586
|
+
Avoid unnecessary orchestration layers.
|
|
587
|
+
|
|
588
|
+
## 28. Kubernetes Cost Engineering
|
|
589
|
+
|
|
590
|
+
When Kubernetes is considered, evaluate:
|
|
591
|
+
|
|
592
|
+
- Control plane charges.
|
|
593
|
+
- Worker nodes.
|
|
594
|
+
- Minimum cluster size.
|
|
595
|
+
- Load balancers.
|
|
596
|
+
- Persistent volumes.
|
|
597
|
+
- Networking.
|
|
598
|
+
- Logging.
|
|
599
|
+
- Monitoring.
|
|
600
|
+
- Autoscaling.
|
|
601
|
+
- Operational staffing.
|
|
602
|
+
- Upgrades.
|
|
603
|
+
- Backup.
|
|
604
|
+
|
|
605
|
+
Compare EKS, AKS and GKE where appropriate.
|
|
606
|
+
|
|
607
|
+
Do not introduce Kubernetes solely because the application may eventually reach millions of users.
|
|
608
|
+
|
|
609
|
+
Prefer simpler alternatives when they satisfy the requirements.
|
|
610
|
+
|
|
611
|
+
## 29. Kubernetes Optimization
|
|
612
|
+
|
|
613
|
+
For existing Kubernetes environments, review:
|
|
614
|
+
|
|
615
|
+
- CPU requests and limits.
|
|
616
|
+
- Memory requests and limits.
|
|
617
|
+
- Idle workloads.
|
|
618
|
+
- Node utilization.
|
|
619
|
+
- Autoscaling configuration.
|
|
620
|
+
- Replica counts.
|
|
621
|
+
- Scheduling constraints.
|
|
622
|
+
- Storage classes.
|
|
623
|
+
- Network charges.
|
|
624
|
+
- Resource quotas.
|
|
625
|
+
|
|
626
|
+
Do not change production cluster configuration without authorization.
|
|
627
|
+
|
|
628
|
+
Validate performance and reliability before reducing resources.
|
|
629
|
+
|
|
630
|
+
## 30. Database Cost Engineering
|
|
631
|
+
|
|
632
|
+
Evaluate:
|
|
633
|
+
|
|
634
|
+
- Database compute.
|
|
635
|
+
- Storage size.
|
|
636
|
+
- Index size.
|
|
637
|
+
- Read operations.
|
|
638
|
+
- Write operations.
|
|
639
|
+
- Connections.
|
|
640
|
+
- Backups.
|
|
641
|
+
- Replicas.
|
|
642
|
+
- High availability.
|
|
643
|
+
- Data transfer.
|
|
644
|
+
- Monitoring.
|
|
645
|
+
- Maintenance.
|
|
646
|
+
|
|
647
|
+
Consider architecture and query efficiency before increasing capacity.
|
|
648
|
+
|
|
649
|
+
Consult docs/data.md.
|
|
650
|
+
|
|
651
|
+
## 31. Database Query Economics
|
|
652
|
+
|
|
653
|
+
Review:
|
|
654
|
+
|
|
655
|
+
- Query frequency.
|
|
656
|
+
- Expensive scans.
|
|
657
|
+
- N+1 patterns.
|
|
658
|
+
- Unnecessary reads.
|
|
659
|
+
- Missing indexes.
|
|
660
|
+
- Inefficient pagination.
|
|
661
|
+
- Excessive data transfer.
|
|
662
|
+
- Overly frequent polling.
|
|
663
|
+
- Cache opportunities.
|
|
664
|
+
|
|
665
|
+
Optimize measured or credible bottlenecks.
|
|
666
|
+
|
|
667
|
+
Avoid unsafe index changes on production.
|
|
668
|
+
|
|
669
|
+
## 32. Storage Cost Engineering
|
|
670
|
+
|
|
671
|
+
Consider:
|
|
672
|
+
|
|
673
|
+
- Object storage.
|
|
674
|
+
- Database storage.
|
|
675
|
+
- Backup storage.
|
|
676
|
+
- Logs.
|
|
677
|
+
- Archived data.
|
|
678
|
+
- Version history.
|
|
679
|
+
- Temporary files.
|
|
680
|
+
- Media assets.
|
|
681
|
+
- Replication.
|
|
682
|
+
- Lifecycle policies.
|
|
683
|
+
|
|
684
|
+
Calculate storage growth over time.
|
|
685
|
+
|
|
686
|
+
Do not delete important data merely to reduce costs.
|
|
687
|
+
|
|
688
|
+
## 33. Network and Egress Costs
|
|
689
|
+
|
|
690
|
+
Estimate relevant:
|
|
691
|
+
|
|
692
|
+
- Internet egress.
|
|
693
|
+
- Cross-region transfer.
|
|
694
|
+
- Cross-zone transfer.
|
|
695
|
+
- CDN traffic.
|
|
696
|
+
- Database transfer.
|
|
697
|
+
- Backup replication.
|
|
698
|
+
- Managed networking.
|
|
699
|
+
- NAT charges.
|
|
700
|
+
|
|
701
|
+
Do not assume network transfer is always free inside a cloud provider.
|
|
702
|
+
|
|
703
|
+
Use actual architecture and billing assumptions.
|
|
704
|
+
|
|
705
|
+
## 34. CDN Cost Considerations
|
|
706
|
+
|
|
707
|
+
When a CDN is relevant, review:
|
|
708
|
+
|
|
709
|
+
- Request volume.
|
|
710
|
+
- Cache hit ratio.
|
|
711
|
+
- Egress volume.
|
|
712
|
+
- Image optimization.
|
|
713
|
+
- Media delivery.
|
|
714
|
+
- Cache invalidations.
|
|
715
|
+
- Geographic traffic distribution.
|
|
716
|
+
|
|
717
|
+
Avoid recommending a CDN without considering actual traffic patterns.
|
|
718
|
+
|
|
719
|
+
## 35. Observability Costs
|
|
720
|
+
|
|
721
|
+
Model:
|
|
722
|
+
|
|
723
|
+
- Log ingestion.
|
|
724
|
+
- Log retention.
|
|
725
|
+
- Metric cardinality.
|
|
726
|
+
- Trace sampling.
|
|
727
|
+
- Dashboard services.
|
|
728
|
+
- Alerting.
|
|
729
|
+
- Error reporting.
|
|
730
|
+
- Long-term storage.
|
|
731
|
+
|
|
732
|
+
Use proportionate telemetry.
|
|
733
|
+
|
|
734
|
+
Never eliminate critical security or operational visibility solely to lower spending.
|
|
735
|
+
|
|
736
|
+
Consult docs/observability.md.
|
|
737
|
+
|
|
738
|
+
## 36. Backup and Recovery Costs
|
|
739
|
+
|
|
740
|
+
Evaluate:
|
|
741
|
+
|
|
742
|
+
- Backup frequency.
|
|
743
|
+
- Backup retention.
|
|
744
|
+
- Storage.
|
|
745
|
+
- Replication.
|
|
746
|
+
- Recovery testing.
|
|
747
|
+
- Secondary environments.
|
|
748
|
+
- Recovery infrastructure.
|
|
749
|
+
|
|
750
|
+
Backup cost must be evaluated alongside data-loss and recovery risk.
|
|
751
|
+
|
|
752
|
+
Do not remove backups without appropriate risk assessment and authorization.
|
|
753
|
+
|
|
754
|
+
## 37. AI and LLM Cost Engineering
|
|
755
|
+
|
|
756
|
+
For AI-enabled systems, consider:
|
|
757
|
+
|
|
758
|
+
- Input tokens.
|
|
759
|
+
- Output tokens.
|
|
760
|
+
- Model pricing.
|
|
761
|
+
- Context length.
|
|
762
|
+
- Cached inputs.
|
|
763
|
+
- Tool calls.
|
|
764
|
+
- Model retries.
|
|
765
|
+
- Embeddings.
|
|
766
|
+
- Reranking.
|
|
767
|
+
- Vector storage.
|
|
768
|
+
- Document processing.
|
|
769
|
+
- Image generation.
|
|
770
|
+
- Audio processing.
|
|
771
|
+
- Background jobs.
|
|
772
|
+
|
|
773
|
+
Verify provider-specific prices.
|
|
774
|
+
|
|
775
|
+
Do not assume all model calls have identical costs.
|
|
776
|
+
|
|
777
|
+
Consult docs/ai-and-llm.md.
|
|
778
|
+
|
|
779
|
+
## 38. Token Usage Estimation
|
|
780
|
+
|
|
781
|
+
Estimate:
|
|
782
|
+
|
|
783
|
+
- Requests per user.
|
|
784
|
+
- Input tokens per request.
|
|
785
|
+
- Output tokens per request.
|
|
786
|
+
- System context.
|
|
787
|
+
- Retrieved context.
|
|
788
|
+
- Conversation history.
|
|
789
|
+
- Retry frequency.
|
|
790
|
+
- Tool-generated content.
|
|
791
|
+
|
|
792
|
+
Document assumptions.
|
|
793
|
+
|
|
794
|
+
Model different user activity scenarios.
|
|
795
|
+
|
|
796
|
+
Avoid invented average token consumption.
|
|
797
|
+
|
|
798
|
+
## 39. AI Model Selection
|
|
799
|
+
|
|
800
|
+
Compare suitable models according to:
|
|
801
|
+
|
|
802
|
+
- Task quality.
|
|
803
|
+
- Reliability.
|
|
804
|
+
- Latency.
|
|
805
|
+
- Context requirements.
|
|
806
|
+
- Security.
|
|
807
|
+
- Privacy.
|
|
808
|
+
- Provider terms.
|
|
809
|
+
- Availability.
|
|
810
|
+
- Price.
|
|
811
|
+
- Operational complexity.
|
|
812
|
+
|
|
813
|
+
Use less expensive models for appropriate tasks when evaluation supports their adequacy.
|
|
814
|
+
|
|
815
|
+
Do not downgrade critical decision quality solely to save tokens.
|
|
816
|
+
|
|
817
|
+
## 40. Model Routing
|
|
818
|
+
|
|
819
|
+
When justified, evaluate:
|
|
820
|
+
|
|
821
|
+
- Task classification.
|
|
822
|
+
- Model selection by complexity.
|
|
823
|
+
- Deterministic preprocessing.
|
|
824
|
+
- Retrieval filtering.
|
|
825
|
+
- Response caching where appropriate.
|
|
826
|
+
- Fallback models.
|
|
827
|
+
- Token budgeting.
|
|
828
|
+
|
|
829
|
+
Test quality before using model routing to reduce spending.
|
|
830
|
+
|
|
831
|
+
Avoid uncontrolled fallback chains.
|
|
832
|
+
|
|
833
|
+
## 41. RAG Cost Engineering
|
|
834
|
+
|
|
835
|
+
For Retrieval-Augmented Generation systems, assess:
|
|
836
|
+
|
|
837
|
+
- Document ingestion.
|
|
838
|
+
- Parsing.
|
|
839
|
+
- Chunking.
|
|
840
|
+
- Embeddings.
|
|
841
|
+
- Re-embedding.
|
|
842
|
+
- Vector indexing.
|
|
843
|
+
- Storage.
|
|
844
|
+
- Retrieval.
|
|
845
|
+
- Reranking.
|
|
846
|
+
- Context size.
|
|
847
|
+
- Model inference.
|
|
848
|
+
- Access control.
|
|
849
|
+
|
|
850
|
+
Optimize the full pipeline, not merely inference token costs.
|
|
851
|
+
|
|
852
|
+
Preserve retrieval authorization and answer quality.
|
|
853
|
+
|
|
854
|
+
## 42. Agentic AI Costs
|
|
855
|
+
|
|
856
|
+
Agentic systems may multiply resource consumption.
|
|
857
|
+
|
|
858
|
+
Evaluate:
|
|
859
|
+
|
|
860
|
+
- Number of agents.
|
|
861
|
+
- Tool calls.
|
|
862
|
+
- Sequential reasoning steps.
|
|
863
|
+
- Parallel executions.
|
|
864
|
+
- Retry loops.
|
|
865
|
+
- External API calls.
|
|
866
|
+
- Memory and context growth.
|
|
867
|
+
- Model routing.
|
|
868
|
+
- Timeouts.
|
|
869
|
+
- Execution budgets.
|
|
870
|
+
|
|
871
|
+
Apply bounded execution.
|
|
872
|
+
|
|
873
|
+
Do not allow unlimited recursive tool use or uncontrolled retries.
|
|
874
|
+
|
|
875
|
+
## 43. Autonomous Agent Spending Controls
|
|
876
|
+
|
|
877
|
+
For autonomous development agents and application-level agents:
|
|
878
|
+
|
|
879
|
+
- Define spending boundaries.
|
|
880
|
+
- Define execution limits.
|
|
881
|
+
- Restrict paid tools.
|
|
882
|
+
- Avoid uncontrolled API usage.
|
|
883
|
+
- Review external calls.
|
|
884
|
+
- Monitor budget consumption.
|
|
885
|
+
- Escalate protected financial actions.
|
|
886
|
+
|
|
887
|
+
Application-level AI agents do not inherit unrestricted spending authorization from a development instruction.
|
|
888
|
+
|
|
889
|
+
Do not bypass tool approval controls.
|
|
890
|
+
|
|
891
|
+
## 44. Cost-Aware Prompt Design
|
|
892
|
+
|
|
893
|
+
Evaluate opportunities to:
|
|
894
|
+
|
|
895
|
+
- Reduce unnecessary context.
|
|
896
|
+
- Use selective retrieval.
|
|
897
|
+
- Avoid duplicated instructions.
|
|
898
|
+
- Summarize appropriate history.
|
|
899
|
+
- Reuse validated results.
|
|
900
|
+
- Limit redundant tool outputs.
|
|
901
|
+
- Apply bounded response formats.
|
|
902
|
+
|
|
903
|
+
Do not remove essential safety instructions merely to reduce tokens.
|
|
904
|
+
|
|
905
|
+
## 45. AI Quality Versus Cost
|
|
906
|
+
|
|
907
|
+
Cost optimization must preserve required quality.
|
|
908
|
+
|
|
909
|
+
Evaluate:
|
|
910
|
+
|
|
911
|
+
- Accuracy.
|
|
912
|
+
- Reliability.
|
|
913
|
+
- Hallucination risks.
|
|
914
|
+
- Safety requirements.
|
|
915
|
+
- Human oversight.
|
|
916
|
+
- Response latency.
|
|
917
|
+
- Privacy.
|
|
918
|
+
- Operational cost.
|
|
919
|
+
|
|
920
|
+
Choose the most economical configuration that adequately satisfies the required evaluation criteria.
|
|
921
|
+
|
|
922
|
+
Do not assume the cheapest model is always the best engineering choice.
|
|
923
|
+
|
|
924
|
+
## 46. API Integration Costs
|
|
925
|
+
|
|
926
|
+
For third-party APIs, evaluate:
|
|
927
|
+
|
|
928
|
+
- Request pricing.
|
|
929
|
+
- Usage quotas.
|
|
930
|
+
- Rate limits.
|
|
931
|
+
- Overage charges.
|
|
932
|
+
- Minimum subscriptions.
|
|
933
|
+
- Geographic pricing.
|
|
934
|
+
- Data transfer.
|
|
935
|
+
- Retry behavior.
|
|
936
|
+
- Caching opportunities.
|
|
937
|
+
|
|
938
|
+
Do not enable paid API access without authorization.
|
|
939
|
+
|
|
940
|
+
## 47. Authentication Costs
|
|
941
|
+
|
|
942
|
+
When managed authentication is used, evaluate:
|
|
943
|
+
|
|
944
|
+
- Monthly active users.
|
|
945
|
+
- Authentication methods.
|
|
946
|
+
- SMS usage.
|
|
947
|
+
- Email delivery.
|
|
948
|
+
- Enterprise features.
|
|
949
|
+
- Multi-factor authentication.
|
|
950
|
+
- Provider limits.
|
|
951
|
+
- Additional identity services.
|
|
952
|
+
|
|
953
|
+
Do not disable important authentication safeguards solely to reduce costs.
|
|
954
|
+
|
|
955
|
+
## 48. Communication Costs
|
|
956
|
+
|
|
957
|
+
Evaluate relevant:
|
|
958
|
+
|
|
959
|
+
- Transactional email.
|
|
960
|
+
- SMS.
|
|
961
|
+
- Push notifications.
|
|
962
|
+
- Voice services.
|
|
963
|
+
- Support notifications.
|
|
964
|
+
- Delivery retries.
|
|
965
|
+
- Fraud prevention.
|
|
966
|
+
|
|
967
|
+
Distinguish essential notifications from optional features.
|
|
968
|
+
|
|
969
|
+
Avoid uncontrolled message loops.
|
|
970
|
+
|
|
971
|
+
## 49. Media Processing Costs
|
|
972
|
+
|
|
973
|
+
For media-intensive applications, model:
|
|
974
|
+
|
|
975
|
+
- Image uploads.
|
|
976
|
+
- Video storage.
|
|
977
|
+
- Transcoding.
|
|
978
|
+
- Audio processing.
|
|
979
|
+
- Streaming.
|
|
980
|
+
- CDN delivery.
|
|
981
|
+
- AI generation.
|
|
982
|
+
- Retention.
|
|
983
|
+
- Moderation.
|
|
984
|
+
|
|
985
|
+
Media costs can grow differently from ordinary API traffic.
|
|
986
|
+
|
|
987
|
+
## 50. Game Infrastructure Costs
|
|
988
|
+
|
|
989
|
+
For games, evaluate:
|
|
990
|
+
|
|
991
|
+
- Multiplayer servers.
|
|
992
|
+
- Matchmaking.
|
|
993
|
+
- Real-time messaging.
|
|
994
|
+
- Player state.
|
|
995
|
+
- Game analytics.
|
|
996
|
+
- Asset delivery.
|
|
997
|
+
- Voice chat.
|
|
998
|
+
- Anti-cheat infrastructure.
|
|
999
|
+
- Live operations.
|
|
1000
|
+
- Save storage.
|
|
1001
|
+
|
|
1002
|
+
Consider concurrent players and session duration.
|
|
1003
|
+
|
|
1004
|
+
Do not estimate multiplayer costs using registered-player counts alone.
|
|
1005
|
+
|
|
1006
|
+
Consult docs/platforms-and-applications.md.
|
|
1007
|
+
|
|
1008
|
+
## 51. Mobile and Desktop Distribution Costs
|
|
1009
|
+
|
|
1010
|
+
When relevant, evaluate:
|
|
1011
|
+
|
|
1012
|
+
- Developer account fees.
|
|
1013
|
+
- Code signing.
|
|
1014
|
+
- Application distribution.
|
|
1015
|
+
- Update hosting.
|
|
1016
|
+
- Crash reporting.
|
|
1017
|
+
- Push services.
|
|
1018
|
+
- Platform testing.
|
|
1019
|
+
- Device testing.
|
|
1020
|
+
- Paid SDKs.
|
|
1021
|
+
|
|
1022
|
+
Verify current official fees.
|
|
1023
|
+
|
|
1024
|
+
Do not purchase memberships or publish applications automatically.
|
|
1025
|
+
|
|
1026
|
+
## 52. Development Environment Costs
|
|
1027
|
+
|
|
1028
|
+
Review:
|
|
1029
|
+
|
|
1030
|
+
- Local tooling.
|
|
1031
|
+
- CI runners.
|
|
1032
|
+
- Development databases.
|
|
1033
|
+
- Preview deployments.
|
|
1034
|
+
- Testing services.
|
|
1035
|
+
- Device farms.
|
|
1036
|
+
- Cloud workstations.
|
|
1037
|
+
- Build storage.
|
|
1038
|
+
|
|
1039
|
+
Prefer existing authorized resources when practical.
|
|
1040
|
+
|
|
1041
|
+
Avoid keeping expensive development environments running unnecessarily.
|
|
1042
|
+
|
|
1043
|
+
## 53. Staging and Preview Environment Costs
|
|
1044
|
+
|
|
1045
|
+
Estimate:
|
|
1046
|
+
|
|
1047
|
+
- Additional compute.
|
|
1048
|
+
- Database copies.
|
|
1049
|
+
- Storage.
|
|
1050
|
+
- Network usage.
|
|
1051
|
+
- Logging.
|
|
1052
|
+
- Preview deployments.
|
|
1053
|
+
- Test traffic.
|
|
1054
|
+
|
|
1055
|
+
Use appropriate environment lifecycles.
|
|
1056
|
+
|
|
1057
|
+
Do not delete protected environments without authorization.
|
|
1058
|
+
|
|
1059
|
+
## 54. CI/CD Cost Optimization
|
|
1060
|
+
|
|
1061
|
+
Evaluate:
|
|
1062
|
+
|
|
1063
|
+
- Build minutes.
|
|
1064
|
+
- Test duration.
|
|
1065
|
+
- Parallelism.
|
|
1066
|
+
- Cache efficiency.
|
|
1067
|
+
- Artifact retention.
|
|
1068
|
+
- Runner size.
|
|
1069
|
+
- Redundant jobs.
|
|
1070
|
+
|
|
1071
|
+
Do not disable critical tests or security checks solely to reduce CI expenses.
|
|
1072
|
+
|
|
1073
|
+
## 55. Cost Monitoring
|
|
1074
|
+
|
|
1075
|
+
Recommend appropriate visibility into:
|
|
1076
|
+
|
|
1077
|
+
- Daily spending.
|
|
1078
|
+
- Monthly spending.
|
|
1079
|
+
- Usage by service.
|
|
1080
|
+
- Cost by environment.
|
|
1081
|
+
- Cost by project.
|
|
1082
|
+
- Cost by tenant where feasible.
|
|
1083
|
+
- AI inference consumption.
|
|
1084
|
+
- Budget trends.
|
|
1085
|
+
- Anomalies.
|
|
1086
|
+
|
|
1087
|
+
Do not claim monitoring is active unless it is configured and verified.
|
|
1088
|
+
|
|
1089
|
+
## 56. Budget Alerts
|
|
1090
|
+
|
|
1091
|
+
Consider:
|
|
1092
|
+
|
|
1093
|
+
- Monthly budget alerts.
|
|
1094
|
+
- Daily spending anomalies.
|
|
1095
|
+
- Usage thresholds.
|
|
1096
|
+
- API quota alerts.
|
|
1097
|
+
- Storage growth alerts.
|
|
1098
|
+
- Unexpected infrastructure creation.
|
|
1099
|
+
- Token spending alerts.
|
|
1100
|
+
|
|
1101
|
+
Alerts do not necessarily prevent spending.
|
|
1102
|
+
|
|
1103
|
+
Distinguish notifications from enforced spending controls.
|
|
1104
|
+
|
|
1105
|
+
## 57. Hard Spending Limits
|
|
1106
|
+
|
|
1107
|
+
Where available, evaluate technical mechanisms such as:
|
|
1108
|
+
|
|
1109
|
+
- Provider-enforced quotas.
|
|
1110
|
+
- API spending caps.
|
|
1111
|
+
- Resource policies.
|
|
1112
|
+
- Account restrictions.
|
|
1113
|
+
- Permission boundaries.
|
|
1114
|
+
- Service limits.
|
|
1115
|
+
- Automated shutdown controls where safe.
|
|
1116
|
+
|
|
1117
|
+
Verify whether each mechanism actually prevents new charges.
|
|
1118
|
+
|
|
1119
|
+
Do not assume every provider offers a reliable hard cost ceiling.
|
|
1120
|
+
|
|
1121
|
+
## 58. Financial Anomaly Detection
|
|
1122
|
+
|
|
1123
|
+
Potential anomalies include:
|
|
1124
|
+
|
|
1125
|
+
- Unexpected request spikes.
|
|
1126
|
+
- Sudden token consumption.
|
|
1127
|
+
- Excessive database reads.
|
|
1128
|
+
- Rapid storage growth.
|
|
1129
|
+
- Idle resource charges.
|
|
1130
|
+
- Repeated job failures.
|
|
1131
|
+
- Recursive agent loops.
|
|
1132
|
+
- Unexpected egress.
|
|
1133
|
+
|
|
1134
|
+
Recommend proportionate investigation.
|
|
1135
|
+
|
|
1136
|
+
Do not automatically destroy production resources to stop spending.
|
|
1137
|
+
|
|
1138
|
+
## 59. Cost Optimization Workflow
|
|
1139
|
+
|
|
1140
|
+
Follow:
|
|
1141
|
+
|
|
1142
|
+
1. Identify actual cost drivers.
|
|
1143
|
+
2. Review current usage.
|
|
1144
|
+
3. Establish baseline.
|
|
1145
|
+
4. Identify safe improvements.
|
|
1146
|
+
5. Estimate expected savings.
|
|
1147
|
+
6. Assess performance impact.
|
|
1148
|
+
7. Assess security impact.
|
|
1149
|
+
8. Assess availability impact.
|
|
1150
|
+
9. Obtain required authorization.
|
|
1151
|
+
10. Implement within scope.
|
|
1152
|
+
11. Measure actual outcomes.
|
|
1153
|
+
12. Document results.
|
|
1154
|
+
|
|
1155
|
+
Avoid optimization based entirely on theoretical assumptions.
|
|
1156
|
+
|
|
1157
|
+
## 60. Rightsizing
|
|
1158
|
+
|
|
1159
|
+
Evaluate resource utilization before reducing capacity.
|
|
1160
|
+
|
|
1161
|
+
Consider:
|
|
1162
|
+
|
|
1163
|
+
- CPU usage.
|
|
1164
|
+
- Memory usage.
|
|
1165
|
+
- Peak demand.
|
|
1166
|
+
- Storage IOPS.
|
|
1167
|
+
- Latency.
|
|
1168
|
+
- Autoscaling behavior.
|
|
1169
|
+
- Failover requirements.
|
|
1170
|
+
|
|
1171
|
+
Do not reduce production capacity without appropriate review and authorization.
|
|
1172
|
+
|
|
1173
|
+
## 61. Scheduling and Idle Resource Management
|
|
1174
|
+
|
|
1175
|
+
Identify opportunities to reduce unnecessary non-production spending.
|
|
1176
|
+
|
|
1177
|
+
Examples:
|
|
1178
|
+
|
|
1179
|
+
- Scheduled development environment shutdown.
|
|
1180
|
+
- Ephemeral preview environments.
|
|
1181
|
+
- Cleanup of unused test resources.
|
|
1182
|
+
- Bounded background jobs.
|
|
1183
|
+
- Expiration of temporary artifacts.
|
|
1184
|
+
|
|
1185
|
+
Do not shut down production or protected shared resources automatically.
|
|
1186
|
+
|
|
1187
|
+
## 62. Resource Tagging
|
|
1188
|
+
|
|
1189
|
+
Where applicable, recommend labels or tags for:
|
|
1190
|
+
|
|
1191
|
+
- Project.
|
|
1192
|
+
- Environment.
|
|
1193
|
+
- Owner.
|
|
1194
|
+
- Cost center.
|
|
1195
|
+
- Application.
|
|
1196
|
+
- Lifecycle.
|
|
1197
|
+
- Expiration.
|
|
1198
|
+
|
|
1199
|
+
Tagging supports allocation but does not itself reduce spending.
|
|
1200
|
+
|
|
1201
|
+
Avoid imposing complex tagging systems on trivial projects.
|
|
1202
|
+
|
|
1203
|
+
## 63. Multi-Tenant Cost Attribution
|
|
1204
|
+
|
|
1205
|
+
For multi-tenant applications, evaluate:
|
|
1206
|
+
|
|
1207
|
+
- Cost per tenant.
|
|
1208
|
+
- Usage allocation.
|
|
1209
|
+
- Shared infrastructure.
|
|
1210
|
+
- Storage growth.
|
|
1211
|
+
- Heavy-user workloads.
|
|
1212
|
+
- AI consumption.
|
|
1213
|
+
- Rate limits.
|
|
1214
|
+
- Fair-use policies.
|
|
1215
|
+
|
|
1216
|
+
Protect tenant privacy in billing and analytics records.
|
|
1217
|
+
|
|
1218
|
+
Avoid introducing expensive tenant-specific infrastructure without justification.
|
|
1219
|
+
|
|
1220
|
+
## 64. Scaling Economics
|
|
1221
|
+
|
|
1222
|
+
Analyze how cost changes as usage grows.
|
|
1223
|
+
|
|
1224
|
+
Consider:
|
|
1225
|
+
|
|
1226
|
+
- Linear cost growth.
|
|
1227
|
+
- Fixed overhead.
|
|
1228
|
+
- Threshold-based upgrades.
|
|
1229
|
+
- Step-function pricing.
|
|
1230
|
+
- Bulk discounts.
|
|
1231
|
+
- Provider quotas.
|
|
1232
|
+
- Database scaling limits.
|
|
1233
|
+
- AI inference growth.
|
|
1234
|
+
|
|
1235
|
+
Document break-even points when supported by real pricing and usage assumptions.
|
|
1236
|
+
|
|
1237
|
+
## 65. Sensitivity Analysis
|
|
1238
|
+
|
|
1239
|
+
Evaluate how conclusions change when assumptions vary.
|
|
1240
|
+
|
|
1241
|
+
Potential variables:
|
|
1242
|
+
|
|
1243
|
+
- Active user percentage.
|
|
1244
|
+
- Requests per user.
|
|
1245
|
+
- Storage per user.
|
|
1246
|
+
- Average response size.
|
|
1247
|
+
- AI tokens per request.
|
|
1248
|
+
- Retry rates.
|
|
1249
|
+
- Peak concurrency.
|
|
1250
|
+
- Regional distribution.
|
|
1251
|
+
|
|
1252
|
+
Do not present one forecast as a guaranteed future bill.
|
|
1253
|
+
|
|
1254
|
+
## 66. Cost Forecasting
|
|
1255
|
+
|
|
1256
|
+
Build forecasts using:
|
|
1257
|
+
|
|
1258
|
+
- Historical usage when available.
|
|
1259
|
+
- Defined growth scenarios.
|
|
1260
|
+
- Current pricing.
|
|
1261
|
+
- Workload assumptions.
|
|
1262
|
+
- Planned feature changes.
|
|
1263
|
+
- Capacity thresholds.
|
|
1264
|
+
|
|
1265
|
+
Indicate uncertainty and sources.
|
|
1266
|
+
|
|
1267
|
+
Avoid unsupported long-term precision.
|
|
1268
|
+
|
|
1269
|
+
## 67. Financial Risk Classification
|
|
1270
|
+
|
|
1271
|
+
Classify relevant risks:
|
|
1272
|
+
|
|
1273
|
+
- Low.
|
|
1274
|
+
- Moderate.
|
|
1275
|
+
- High.
|
|
1276
|
+
- Critical.
|
|
1277
|
+
|
|
1278
|
+
Consider:
|
|
1279
|
+
|
|
1280
|
+
- Recurring exposure.
|
|
1281
|
+
- Billing variability.
|
|
1282
|
+
- Unbounded consumption.
|
|
1283
|
+
- Irreversible commitments.
|
|
1284
|
+
- Service dependency.
|
|
1285
|
+
- Budget sensitivity.
|
|
1286
|
+
|
|
1287
|
+
Do not label every paid service as financially critical.
|
|
1288
|
+
|
|
1289
|
+
## 68. Cost Finding Format
|
|
1290
|
+
|
|
1291
|
+
For material cost findings, record:
|
|
1292
|
+
|
|
1293
|
+
Finding ID:
|
|
1294
|
+
|
|
1295
|
+
[FINDING_ID]
|
|
1296
|
+
|
|
1297
|
+
Category:
|
|
1298
|
+
|
|
1299
|
+
[CATEGORY]
|
|
1300
|
+
|
|
1301
|
+
Affected resource:
|
|
1302
|
+
|
|
1303
|
+
[RESOURCE]
|
|
1304
|
+
|
|
1305
|
+
Actual monthly cost:
|
|
1306
|
+
|
|
1307
|
+
[VERIFIED_COST_OR_UNKNOWN]
|
|
1308
|
+
|
|
1309
|
+
Estimated monthly cost:
|
|
1310
|
+
|
|
1311
|
+
[ESTIMATE_OR_UNKNOWN]
|
|
1312
|
+
|
|
1313
|
+
Evidence:
|
|
1314
|
+
|
|
1315
|
+
[EVIDENCE]
|
|
1316
|
+
|
|
1317
|
+
Cost driver:
|
|
1318
|
+
|
|
1319
|
+
[DRIVER]
|
|
1320
|
+
|
|
1321
|
+
Proposed optimization:
|
|
1322
|
+
|
|
1323
|
+
[RECOMMENDATION]
|
|
1324
|
+
|
|
1325
|
+
Estimated savings:
|
|
1326
|
+
|
|
1327
|
+
[ESTIMATE_AND_ASSUMPTIONS]
|
|
1328
|
+
|
|
1329
|
+
Technical risks:
|
|
1330
|
+
|
|
1331
|
+
[RISKS]
|
|
1332
|
+
|
|
1333
|
+
Required authorization:
|
|
1334
|
+
|
|
1335
|
+
[APPROVAL]
|
|
1336
|
+
|
|
1337
|
+
Verification plan:
|
|
1338
|
+
|
|
1339
|
+
[VALIDATION]
|
|
1340
|
+
|
|
1341
|
+
Never invent realized savings.
|
|
1342
|
+
|
|
1343
|
+
## 69. Comparative Cost Report
|
|
1344
|
+
|
|
1345
|
+
When comparing options, use a consistent structure.
|
|
1346
|
+
|
|
1347
|
+
| Criterion | Option A | Option B | Option C |
|
|
1348
|
+
|---|---|---|---|
|
|
1349
|
+
| Initial cost | [VALUE] | [VALUE] | [VALUE] |
|
|
1350
|
+
| Monthly cost | [VALUE] | [VALUE] | [VALUE] |
|
|
1351
|
+
| Growth cost | [VALUE] | [VALUE] | [VALUE] |
|
|
1352
|
+
| Reliability | [ASSESSMENT] | [ASSESSMENT] | [ASSESSMENT] |
|
|
1353
|
+
| Security | [ASSESSMENT] | [ASSESSMENT] | [ASSESSMENT] |
|
|
1354
|
+
| Operational effort | [ASSESSMENT] | [ASSESSMENT] | [ASSESSMENT] |
|
|
1355
|
+
| Scalability | [ASSESSMENT] | [ASSESSMENT] | [ASSESSMENT] |
|
|
1356
|
+
| Portability | [ASSESSMENT] | [ASSESSMENT] | [ASSESSMENT] |
|
|
1357
|
+
|
|
1358
|
+
Remove irrelevant alternatives when creating a real report.
|
|
1359
|
+
|
|
1360
|
+
Use comparable workloads and regions.
|
|
1361
|
+
|
|
1362
|
+
## 70. Cost Estimation Report
|
|
1363
|
+
|
|
1364
|
+
For a cost estimate, include:
|
|
1365
|
+
|
|
1366
|
+
1. Project context.
|
|
1367
|
+
2. Workload assumptions.
|
|
1368
|
+
3. Services evaluated.
|
|
1369
|
+
4. Pricing sources.
|
|
1370
|
+
5. Verification date.
|
|
1371
|
+
6. Cost calculation.
|
|
1372
|
+
7. Monthly projection.
|
|
1373
|
+
8. Annual projection where relevant.
|
|
1374
|
+
9. Growth scenarios.
|
|
1375
|
+
10. Main cost drivers.
|
|
1376
|
+
11. Uncertainty.
|
|
1377
|
+
12. Recommended configuration.
|
|
1378
|
+
13. Financial risks.
|
|
1379
|
+
14. Required approvals.
|
|
1380
|
+
|
|
1381
|
+
Do not present estimates as guaranteed bills.
|
|
1382
|
+
|
|
1383
|
+
## 71. Architecture Decision Records
|
|
1384
|
+
|
|
1385
|
+
For major financial architecture decisions, use:
|
|
1386
|
+
|
|
1387
|
+
~/engineering-standards/templates/ADR.md
|
|
1388
|
+
|
|
1389
|
+
Document:
|
|
1390
|
+
|
|
1391
|
+
- Options.
|
|
1392
|
+
- Business constraints.
|
|
1393
|
+
- Architecture implications.
|
|
1394
|
+
- Security.
|
|
1395
|
+
- Scalability.
|
|
1396
|
+
- Reliability.
|
|
1397
|
+
- Cost.
|
|
1398
|
+
- Portability.
|
|
1399
|
+
- Trade-offs.
|
|
1400
|
+
|
|
1401
|
+
An ADR does not authorize spending.
|
|
1402
|
+
|
|
1403
|
+
## 72. Cost Audit Reporting
|
|
1404
|
+
|
|
1405
|
+
For significant reviews, use:
|
|
1406
|
+
|
|
1407
|
+
~/engineering-standards/templates/AUDIT_REPORT.md
|
|
1408
|
+
|
|
1409
|
+
Record:
|
|
1410
|
+
|
|
1411
|
+
- Scope.
|
|
1412
|
+
- Evidence.
|
|
1413
|
+
- Actual costs.
|
|
1414
|
+
- Estimates.
|
|
1415
|
+
- Opportunities.
|
|
1416
|
+
- Technical risks.
|
|
1417
|
+
- Recommendations.
|
|
1418
|
+
- Approvals.
|
|
1419
|
+
- Remaining uncertainty.
|
|
1420
|
+
|
|
1421
|
+
Do not claim that proposed cost savings have already occurred.
|
|
1422
|
+
|
|
1423
|
+
## 73. Financial Exceptions
|
|
1424
|
+
|
|
1425
|
+
When a standard cannot reasonably be followed, use:
|
|
1426
|
+
|
|
1427
|
+
~/engineering-standards/templates/EXCEPTIONS.md
|
|
1428
|
+
|
|
1429
|
+
Record:
|
|
1430
|
+
|
|
1431
|
+
- Requirement.
|
|
1432
|
+
- Justification.
|
|
1433
|
+
- Scope.
|
|
1434
|
+
- Financial exposure.
|
|
1435
|
+
- Technical risks.
|
|
1436
|
+
- Compensating controls.
|
|
1437
|
+
- Approval.
|
|
1438
|
+
- Expiration.
|
|
1439
|
+
- Review conditions.
|
|
1440
|
+
|
|
1441
|
+
An AI agent cannot approve its own financial exception.
|
|
1442
|
+
|
|
1443
|
+
An exception does not automatically grant purchasing authority.
|
|
1444
|
+
|
|
1445
|
+
## 74. Existing Production Protection
|
|
1446
|
+
|
|
1447
|
+
For existing production systems:
|
|
1448
|
+
|
|
1449
|
+
- Begin with authorized read-only assessment.
|
|
1450
|
+
- Protect service availability.
|
|
1451
|
+
- Protect data.
|
|
1452
|
+
- Avoid unapproved rightsizing.
|
|
1453
|
+
- Avoid unapproved resource deletion.
|
|
1454
|
+
- Avoid unapproved plan changes.
|
|
1455
|
+
- Avoid unapproved provider migration.
|
|
1456
|
+
- Preserve essential security controls.
|
|
1457
|
+
- Evaluate rollback.
|
|
1458
|
+
- Require appropriate authorization.
|
|
1459
|
+
|
|
1460
|
+
Do not interpret available cloud credentials as spending authorization.
|
|
1461
|
+
|
|
1462
|
+
## 75. Autonomous Cost Optimization
|
|
1463
|
+
|
|
1464
|
+
In Autonomous Build Mode, permitted local work may include:
|
|
1465
|
+
|
|
1466
|
+
- Reducing redundant API calls.
|
|
1467
|
+
- Optimizing inefficient queries.
|
|
1468
|
+
- Improving caching within scope.
|
|
1469
|
+
- Reducing unnecessary processing.
|
|
1470
|
+
- Implementing usage metering.
|
|
1471
|
+
- Adding configurable request budgets.
|
|
1472
|
+
- Introducing safe retry limits.
|
|
1473
|
+
- Creating cost reports.
|
|
1474
|
+
- Preparing infrastructure configurations for review.
|
|
1475
|
+
- Adding cost-related tests.
|
|
1476
|
+
|
|
1477
|
+
Do not make protected production or financial changes without authorization.
|
|
1478
|
+
|
|
1479
|
+
Continue independent authorized development when paid prerequisites are unavailable.
|
|
1480
|
+
|
|
1481
|
+
## 76. Autonomous Build Financial Safety
|
|
1482
|
+
|
|
1483
|
+
Before using external billable tools:
|
|
1484
|
+
|
|
1485
|
+
1. Confirm the service is authorized.
|
|
1486
|
+
2. Confirm the account and environment.
|
|
1487
|
+
3. Identify potential billing.
|
|
1488
|
+
4. Review spending limits.
|
|
1489
|
+
5. Respect available quotas.
|
|
1490
|
+
6. Obtain required authorization.
|
|
1491
|
+
7. Use bounded execution.
|
|
1492
|
+
8. Monitor actual usage when possible.
|
|
1493
|
+
9. Record financial limitations.
|
|
1494
|
+
|
|
1495
|
+
Do not bypass financial approval mechanisms.
|
|
1496
|
+
|
|
1497
|
+
Do not assume that an API key implies unlimited spending permission.
|
|
1498
|
+
|
|
1499
|
+
## 77. External Dependency Blockers
|
|
1500
|
+
|
|
1501
|
+
When a paid service is needed but not authorized:
|
|
1502
|
+
|
|
1503
|
+
- Do not activate the service.
|
|
1504
|
+
- Prepare integration boundaries.
|
|
1505
|
+
- Use local mocks when appropriate.
|
|
1506
|
+
- Document required configuration.
|
|
1507
|
+
- Continue independent work.
|
|
1508
|
+
- Explain the blocker.
|
|
1509
|
+
- Include the paid prerequisite in the final handoff.
|
|
1510
|
+
|
|
1511
|
+
Do not claim live integration verification without executing it.
|
|
1512
|
+
|
|
1513
|
+
## 78. Cost Verification
|
|
1514
|
+
|
|
1515
|
+
After authorized optimizations:
|
|
1516
|
+
|
|
1517
|
+
1. Verify functionality.
|
|
1518
|
+
2. Execute relevant tests.
|
|
1519
|
+
3. Compare resource usage.
|
|
1520
|
+
4. Check security implications.
|
|
1521
|
+
5. Check performance.
|
|
1522
|
+
6. Review operational impact.
|
|
1523
|
+
7. Measure costs when actual data is available.
|
|
1524
|
+
8. Document estimates separately.
|
|
1525
|
+
9. Record limitations.
|
|
1526
|
+
|
|
1527
|
+
Do not report savings as realized without supporting evidence.
|
|
1528
|
+
|
|
1529
|
+
## 79. Cost Engineering Definition of Done
|
|
1530
|
+
|
|
1531
|
+
For significant cost-sensitive decisions:
|
|
1532
|
+
|
|
1533
|
+
- Requirements understood.
|
|
1534
|
+
- Workload assumptions recorded.
|
|
1535
|
+
- Technical alternatives evaluated.
|
|
1536
|
+
- Applicable pricing verified or limitations disclosed.
|
|
1537
|
+
- Fixed and variable costs distinguished.
|
|
1538
|
+
- Secondary charges considered.
|
|
1539
|
+
- Growth scenarios assessed.
|
|
1540
|
+
- Security preserved.
|
|
1541
|
+
- Privacy preserved.
|
|
1542
|
+
- Data integrity preserved.
|
|
1543
|
+
- Reliability requirements respected.
|
|
1544
|
+
- Scalability path documented.
|
|
1545
|
+
- Financial risks assessed.
|
|
1546
|
+
- Protected spending authorized.
|
|
1547
|
+
- Relevant tests performed.
|
|
1548
|
+
- Remaining uncertainty recorded.
|
|
1549
|
+
- Human actions listed.
|
|
1550
|
+
|
|
1551
|
+
Do not claim an architecture is optimal without defining the evaluation criteria.
|
|
1552
|
+
|
|
1553
|
+
## 80. Final Reporting
|
|
1554
|
+
|
|
1555
|
+
Report:
|
|
1556
|
+
|
|
1557
|
+
1. Scope evaluated.
|
|
1558
|
+
2. Current infrastructure.
|
|
1559
|
+
3. Verified spending.
|
|
1560
|
+
4. Estimated spending.
|
|
1561
|
+
5. Cost drivers.
|
|
1562
|
+
6. Alternatives evaluated.
|
|
1563
|
+
7. Recommended optimizations.
|
|
1564
|
+
8. Scalability considerations.
|
|
1565
|
+
9. Security and reliability trade-offs.
|
|
1566
|
+
10. Tests performed.
|
|
1567
|
+
11. Unverified assumptions.
|
|
1568
|
+
12. Financial risks.
|
|
1569
|
+
13. Required human approvals.
|
|
1570
|
+
14. Next actions.
|
|
1571
|
+
|
|
1572
|
+
Clearly distinguish recommendations from implemented changes.
|
|
1573
|
+
|
|
1574
|
+
## 81. Final Cost Engineering Principles
|
|
1575
|
+
|
|
1576
|
+
Optimize for total engineering value, not minimum price alone.
|
|
1577
|
+
Protect security, privacy and data integrity.
|
|
1578
|
+
Preserve required reliability.
|
|
1579
|
+
Use evidence-based infrastructure sizing.
|
|
1580
|
+
Avoid unnecessary services.
|
|
1581
|
+
Avoid premature Kubernetes adoption.
|
|
1582
|
+
Choose cloud providers according to actual needs.
|
|
1583
|
+
Compare services using equivalent workloads.
|
|
1584
|
+
Use official current pricing when available.
|
|
1585
|
+
Separate actual spending from projections.
|
|
1586
|
+
Document assumptions and uncertainty.
|
|
1587
|
+
Model fixed and variable costs.
|
|
1588
|
+
Consider growth to large user populations.
|
|
1589
|
+
Evaluate AI and agentic inference spending.
|
|
1590
|
+
Use bounded execution and retries.
|
|
1591
|
+
Protect production environments.
|
|
1592
|
+
Avoid unauthorized paid commitments.
|
|
1593
|
+
Never assume free tiers eliminate all billing risks.
|
|
1594
|
+
Implement suitable cost monitoring.
|
|
1595
|
+
Distinguish alerts from hard spending limits.
|
|
1596
|
+
Do not fabricate savings.
|
|
1597
|
+
Respect human financial authority.
|
|
1598
|
+
Support authorized autonomous development.
|
|
1599
|
+
Report remaining financial risks honestly.
|