@vesviet/agent-skills 5.6.0 → 5.6.1

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 (113) hide show
  1. package/INDEX.md +1 -1
  2. package/README.md +1 -1
  3. package/VERSION +1 -1
  4. package/adapters/antigravity/a2a-config.template.yaml +1 -1
  5. package/adapters/antigravity/role-skill-index.json +1 -1
  6. package/adapters/claude/CLAUDE_ADAPTER.md +1 -1
  7. package/adapters/cursor/README.md +185 -185
  8. package/bin/agent-skills.mjs +17 -14
  9. package/core/contracts/schemas/api-contract-spec.json +191 -191
  10. package/core/contracts/schemas/feature-ticket.json +1293 -1293
  11. package/core/contracts/schemas/pull-request-spec.json +338 -338
  12. package/core/contracts/schemas/references/detailed/01-solution-and-governance.md +19 -19
  13. package/core/contracts/schemas/references/detailed/02-engineering-delivery.md +93 -93
  14. package/core/contracts/schemas/references/detailed/04-finance-accounting-and-compliance.md +54 -54
  15. package/core/contracts/schemas/references/detailed/05-design-and-content.md +92 -92
  16. package/core/contracts/schemas/references/detailed/06-seo-and-publishing.md +48 -48
  17. package/core/contracts/schemas/references/detailed/07-a2a-protocol.md +85 -85
  18. package/core/contracts/schemas/test-report.json +530 -530
  19. package/core/roles/references/business-analyst-responsibilities.md +207 -207
  20. package/core/roles/references/frontend-developer-responsibilities.md +275 -275
  21. package/core/roles/system-engineer.md +465 -465
  22. package/core/skills/agent/agent-memory-compaction/references/anchored-schema-and-compaction-algorithms.md +141 -141
  23. package/core/skills/backend/build-mcp-server/SKILL.md +100 -100
  24. package/core/skills/backend/implement-structured-outputs/SKILL.md +94 -94
  25. package/core/skills/business/elicit-requirements/SKILL.md +102 -102
  26. package/core/skills/business/elicit-requirements/references/elicitation-techniques-and-babok-criteria.md +60 -60
  27. package/core/skills/business/trace-requirements-impact/SKILL.md +97 -97
  28. package/core/skills/business/trace-requirements-impact/references/rtm-graph-and-prioritization-models.md +109 -109
  29. package/core/skills/business/write-use-cases/SKILL.md +106 -106
  30. package/core/skills/business/write-use-cases/references/cockburn-scoping-and-13-field-template.md +135 -135
  31. package/core/skills/document/pptx/scripts/add_slide.py +0 -0
  32. package/core/skills/document/pptx/scripts/clean.py +0 -0
  33. package/core/skills/document/pptx/scripts/thumbnail.py +0 -0
  34. package/core/skills/document/xlsx/scripts/recalc.py +0 -0
  35. package/core/skills/documentation/write-documentation/SKILL.md +143 -143
  36. package/core/skills/documentation/write-tech-radar/SKILL.md +149 -149
  37. package/core/skills/foundation/accessibility-review/SKILL.md +160 -160
  38. package/core/skills/foundation/release-notes/SKILL.md +192 -192
  39. package/core/skills/foundation/webapp-server-runner/scripts/with_server.py +0 -0
  40. package/core/skills/foundation/write-product-brief/SKILL.md +160 -160
  41. package/core/skills/platform/cloudflare-email-service/SKILL.md +166 -166
  42. package/core/skills/platform/cloudflare-email-service/references/routing.md +199 -199
  43. package/core/skills/platform/debug-workers-edge/SKILL.md +111 -111
  44. package/core/skills/platform/sandbox-sdk/SKILL.md +183 -183
  45. package/core/skills/platform/setup-gpu-finops/SKILL.md +107 -107
  46. package/core/skills/platform/setup-llm-gateway/SKILL.md +108 -108
  47. package/core/skills/platform/turnstile-spin/SKILL.md +118 -118
  48. package/core/skills/platform/turnstile-spin/scripts/auth-probe.sh +0 -0
  49. package/core/skills/platform/turnstile-spin/scripts/fetch-secret.sh +0 -0
  50. package/core/skills/platform/turnstile-spin/scripts/persist-skill.sh +0 -0
  51. package/core/skills/platform/turnstile-spin/scripts/validate.sh +0 -0
  52. package/core/skills/platform/turnstile-spin/scripts/widget-create.sh +0 -0
  53. package/core/skills/platform/turnstile-spin/scripts/worker-deploy.sh +0 -0
  54. package/core/skills/platform/turnstile-spin/templates/worker/src/index.ts +199 -199
  55. package/core/skills/platform/turnstile-spin/templates/worker/wrangler.toml +31 -31
  56. package/core/skills/platform/web-perf/SKILL.md +151 -151
  57. package/core/skills/platform/workers-best-practices/references/rules.md +463 -463
  58. package/core/skills/product/build-story-map/SKILL.md +104 -104
  59. package/core/skills/product/build-story-map/references/story-mapping-and-cpm-scheduling.md +101 -101
  60. package/core/skills/product/define-product-strategy/SKILL.md +105 -105
  61. package/core/skills/product/define-product-strategy/references/strategy-frameworks-and-pr-faq.md +142 -142
  62. package/core/skills/product/model-saas-metrics/SKILL.md +104 -104
  63. package/core/skills/product/model-saas-metrics/references/saas-unit-economics-and-pricing.md +110 -110
  64. package/core/skills/product/prioritize-roadmap/SKILL.md +106 -106
  65. package/core/skills/product/prioritize-roadmap/references/prioritization-scoring-and-kill-criteria.md +105 -105
  66. package/core/skills/repo-ops/commit-code/SKILL.md +190 -190
  67. package/core/skills/repo-ops/commit-code/references/multi-repo-and-deployment.md +21 -21
  68. package/core/skills/repo-ops/navigate-service/SKILL.md +199 -199
  69. package/core/skills/repo-ops/review-code/references/process-and-format.md +100 -100
  70. package/core/skills/repo-ops/review-service/SKILL.md +186 -186
  71. package/core/skills/repo-ops/troubleshoot-service/SKILL.md +127 -127
  72. package/core/skills/repo-ops/troubleshoot-service/references/failure-modes-and-security.md +22 -22
  73. package/core/skills/repo-ops/troubleshoot-service/references/suggested-process.md +110 -110
  74. package/core/skills/security-data/security-audit/SKILL.md +119 -119
  75. package/core/workflows/add-new-feature.md +212 -212
  76. package/core/workflows/agent-a2a-delegation.md +142 -142
  77. package/core/workflows/bug-fix.md +147 -147
  78. package/core/workflows/build-deploy.md +208 -208
  79. package/core/workflows/code-review.md +137 -137
  80. package/core/workflows/dependency-upgrade.md +193 -193
  81. package/core/workflows/feature-delivery.md +149 -149
  82. package/core/workflows/hotfix-production.md +172 -172
  83. package/core/workflows/qa-validation.md +231 -231
  84. package/core/workflows/refactoring.md +154 -154
  85. package/core/workflows/revert-deployment.md +147 -147
  86. package/core/workflows/security-incident-response.md +191 -191
  87. package/core/workflows/seo-content-lifecycle.md +91 -91
  88. package/core/workflows/service-review-release.md +223 -223
  89. package/core/workflows/setup-new-service.md +214 -214
  90. package/core/workflows/tech-repo-review.md +245 -245
  91. package/core/workflows/troubleshooting.md +241 -241
  92. package/overlays/astro-cloudflare/README.md +93 -93
  93. package/overlays/data-analyst-stack/README.md +109 -109
  94. package/overlays/data-analyst-stack/rules/metric-dashboard-templates.md +135 -135
  95. package/overlays/data-analyst-stack/rules/stack-conventions.md +80 -80
  96. package/overlays/ecommerce-microservices/README.md +65 -65
  97. package/overlays/go-microservices/README.md +78 -78
  98. package/overlays/go-microservices/rules/go-conventions.md +223 -223
  99. package/overlays/laravel-filament/README.md +90 -90
  100. package/overlays/laravel-filament/rules/laravel-conventions.md +220 -220
  101. package/overlays/laravel-filament/skills/develop-laravel-feature/SKILL.md +141 -141
  102. package/overlays/laravel-filament/workflows/deploy-laravel.md +133 -133
  103. package/overlays/obj-configurator/rules/obj-project-rules.md +111 -111
  104. package/overlays/obj-configurator/skills/develop-obj-feature/SKILL.md +71 -71
  105. package/overlays/r3f-stack/README.md +89 -89
  106. package/overlays/r3f-stack/rules/stub.md +43 -43
  107. package/overlays/r3f-stack/skills/debug-3d-scene/SKILL.md +166 -166
  108. package/overlays/r3f-stack/skills/integrate-r3f-three-legacy/SKILL.md +159 -159
  109. package/overlays/r3f-stack/skills/optimize-3d-assets/SKILL.md +128 -128
  110. package/overlays/seo-publishing/rules/site-mix-and-cannibalization.md +52 -52
  111. package/overlays/ui-design-system/rules/handoff-conventions.md +73 -73
  112. package/package.json +2 -2
  113. package/core/README.md +0 -53
@@ -1,530 +1,530 @@
1
- {
2
- "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "$id": "test-report",
4
- "title": "QA Test Report",
5
- "description": "Structured output from QA Engineer using write-tests, frontend-testing, or review-service skills. Emitted after test execution. Consumed by Technical Lead, Reviewer, Project Manager, and Agent Coordinator as release confidence evidence. Complements code-review-finding.json \u2014 review catches code issues, test-report catches behavior risk.",
6
- "type": "object",
7
- "properties": {
8
- "contract_type": {
9
- "type": "string",
10
- "const": "test-report",
11
- "description": "Machine-readable contract discriminator."
12
- },
13
- "report_id": {
14
- "type": "string",
15
- "description": "Unique report identifier. Convention: YYYY-MM-DD-feature-slug."
16
- },
17
- "created_at": {
18
- "type": "string",
19
- "format": "date-time"
20
- },
21
- "ticket_ref": {
22
- "type": "string",
23
- "description": "feature-ticket.json ticket_id this report covers."
24
- },
25
- "delivery_plan_ref": {
26
- "type": "string",
27
- "description": "technical-delivery-plan.json plan_id this test run validates."
28
- },
29
- "environment": {
30
- "type": "string",
31
- "description": "Test environment name (e.g. staging, preview, local, production-canary)."
32
- },
33
- "test_types_executed": {
34
- "type": "array",
35
- "items": {
36
- "type": "string",
37
- "enum": [
38
- "unit",
39
- "integration",
40
- "e2e",
41
- "smoke",
42
- "regression",
43
- "performance",
44
- "security",
45
- "accessibility",
46
- "manual"
47
- ]
48
- },
49
- "description": "Types of tests run in this report."
50
- },
51
- "status": {
52
- "type": "string",
53
- "enum": [
54
- "passed",
55
- "failed",
56
- "blocked",
57
- "partial"
58
- ],
59
- "description": "Overall test run status."
60
- },
61
- "scenarios_executed": {
62
- "type": "array",
63
- "description": "One entry per AC scenario or test case executed.",
64
- "minItems": 1,
65
- "items": {
66
- "type": "object",
67
- "properties": {
68
- "name": {
69
- "type": "string",
70
- "description": "Scenario name \u2014 should match feature-ticket AC scenario label when covering AC."
71
- },
72
- "type": {
73
- "type": "string",
74
- "enum": [
75
- "unit",
76
- "integration",
77
- "e2e",
78
- "smoke",
79
- "manual",
80
- "regression"
81
- ]
82
- },
83
- "passed": {
84
- "type": "boolean"
85
- },
86
- "evidence": {
87
- "type": "string",
88
- "description": "CI run link, screenshot path, log excerpt, or 'manual verified' description."
89
- },
90
- "notes": {
91
- "type": [
92
- "string",
93
- "null"
94
- ]
95
- }
96
- },
97
- "required": [
98
- "name",
99
- "passed"
100
- ]
101
- }
102
- },
103
- "defects": {
104
- "type": "array",
105
- "description": "Defects found during testing. Empty array if none.",
106
- "items": {
107
- "type": "object",
108
- "properties": {
109
- "defect_id": {
110
- "type": "string"
111
- },
112
- "title": {
113
- "type": "string"
114
- },
115
- "severity": {
116
- "type": "string",
117
- "enum": [
118
- "critical",
119
- "high",
120
- "medium",
121
- "low"
122
- ]
123
- },
124
- "steps_to_reproduce": {
125
- "type": "array",
126
- "items": {
127
- "type": "string"
128
- }
129
- },
130
- "expected_behavior": {
131
- "type": "string"
132
- },
133
- "actual_behavior": {
134
- "type": "string"
135
- },
136
- "linked_code_finding": {
137
- "type": "string",
138
- "description": "code-review-finding.json finding_id if related."
139
- }
140
- },
141
- "required": [
142
- "title",
143
- "severity",
144
- "steps_to_reproduce",
145
- "expected_behavior",
146
- "actual_behavior"
147
- ]
148
- }
149
- },
150
- "coverage_gaps": {
151
- "type": "array",
152
- "items": {
153
- "type": "string"
154
- },
155
- "description": "Behaviors or edge cases that could not be tested in this cycle and why."
156
- },
157
- "residual_risk": {
158
- "type": "string",
159
- "description": "Remaining risk that won't be covered before release \u2014 should be visible to Technical Lead and PM."
160
- },
161
- "release_recommendation": {
162
- "type": "string",
163
- "enum": [
164
- "ship",
165
- "hold",
166
- "ship_with_mitigations"
167
- ],
168
- "description": "QA recommendation on whether to proceed with release."
169
- },
170
- "mitigation_notes": {
171
- "type": [
172
- "string",
173
- "null"
174
- ],
175
- "description": "Required when release_recommendation=ship_with_mitigations. Describe the mitigations."
176
- },
177
- "mutation_score": {
178
- "type": "object",
179
- "description": "Mutation testing verification results (e.g. Stryker, mutmut, go-mutesting).",
180
- "properties": {
181
- "score_pct": {
182
- "type": "number",
183
- "minimum": 0,
184
- "maximum": 100
185
- },
186
- "threshold_pct": {
187
- "type": "number",
188
- "minimum": 0,
189
- "maximum": 100
190
- },
191
- "mutants_total": {
192
- "type": "integer",
193
- "minimum": 0
194
- },
195
- "mutants_killed": {
196
- "type": "integer",
197
- "minimum": 0
198
- },
199
- "mutants_survived": {
200
- "type": "integer",
201
- "minimum": 0
202
- },
203
- "tool": {
204
- "type": "string"
205
- },
206
- "status": {
207
- "type": "string",
208
- "enum": [
209
- "passed",
210
- "failed",
211
- "skipped"
212
- ]
213
- }
214
- },
215
- "required": [
216
- "score_pct",
217
- "threshold_pct",
218
- "status"
219
- ]
220
- },
221
- "sandbox_isolation_tier": {
222
- "type": "string",
223
- "enum": [
224
- "tier_0_ephemeral_container",
225
- "tier_1_isolated_microvm",
226
- "tier_2_airgapped_sandbox",
227
- "local_dev_workspace"
228
- ],
229
- "description": "Environment isolation tier where tests were executed."
230
- },
231
- "reproduction_test_verified": {
232
- "type": "boolean",
233
- "description": "For bug fixes: confirms that a failing reproduction test was verified Red prior to code modification."
234
- },
235
- "blast_radius_assessment": {
236
- "type": "object",
237
- "description": "Verification of bounded failure domain during test execution.",
238
- "properties": {
239
- "verified_failure_domain": {
240
- "type": "string"
241
- },
242
- "cross_boundary_impact_detected": {
243
- "type": "boolean"
244
- }
245
- },
246
- "required": [
247
- "verified_failure_domain",
248
- "cross_boundary_impact_detected"
249
- ]
250
- },
251
- "contract_testing": {
252
- "type": "object",
253
- "description": "Consumer-Driven Contract Testing (PactV3, buf breaking, oasdiff) verification.",
254
- "properties": {
255
- "pact_matrix_status": {
256
- "type": "string",
257
- "enum": [
258
- "passed",
259
- "failed",
260
- "skipped"
261
- ]
262
- },
263
- "breaking_changes_detected": {
264
- "type": "boolean"
265
- },
266
- "can_i_deploy": {
267
- "type": "boolean"
268
- },
269
- "tool": {
270
- "type": "string"
271
- }
272
- }
273
- },
274
- "ai_evaluation": {
275
- "type": "object",
276
- "description": "Calibrated LLM and agentic evaluation metrics.",
277
- "properties": {
278
- "g_eval_alignment_score": {
279
- "type": "number",
280
- "minimum": 0,
281
- "maximum": 100
282
- },
283
- "rag_triad": {
284
- "type": "object",
285
- "properties": {
286
- "faithfulness": {
287
- "type": "number",
288
- "minimum": 0,
289
- "maximum": 1
290
- },
291
- "context_precision": {
292
- "type": "number",
293
- "minimum": 0,
294
- "maximum": 1
295
- },
296
- "context_recall": {
297
- "type": "number",
298
- "minimum": 0,
299
- "maximum": 1
300
- },
301
- "answer_relevancy": {
302
- "type": "number",
303
- "minimum": 0,
304
- "maximum": 1
305
- }
306
- }
307
- },
308
- "agent_trajectory_passed": {
309
- "type": "boolean"
310
- },
311
- "loop_detection_passed": {
312
- "type": "boolean"
313
- },
314
- "promptfoo_redteam_passed": {
315
- "type": "boolean"
316
- }
317
- }
318
- },
319
- "observability_testing": {
320
- "type": "object",
321
- "description": "Observability-Driven Testing (Tracetest, OpenTelemetry, N+1 query counters).",
322
- "properties": {
323
- "trace_assertions_passed": {
324
- "type": "boolean"
325
- },
326
- "w3c_traceparent_propagated": {
327
- "type": "boolean"
328
- },
329
- "n_plus_one_queries_detected": {
330
- "type": "boolean"
331
- },
332
- "query_budget_exceeded": {
333
- "type": "boolean"
334
- },
335
- "tool": {
336
- "type": "string"
337
- }
338
- }
339
- },
340
- "accessibility_audit": {
341
- "type": "object",
342
- "description": "Automated and manual WCAG accessibility audit findings.",
343
- "properties": {
344
- "wcag_standard": {
345
- "type": "string"
346
- },
347
- "violations_count": {
348
- "type": "integer",
349
- "minimum": 0
350
- },
351
- "critical_violations": {
352
- "type": "integer",
353
- "minimum": 0
354
- },
355
- "passed": {
356
- "type": "boolean"
357
- },
358
- "tool": {
359
- "type": "string"
360
- }
361
- }
362
- },
363
- "chaos_injection": {
364
- "type": "object",
365
- "description": "Shift-left fault injection and resilience testing (Toxiproxy, Chaos Mesh).",
366
- "properties": {
367
- "fault_type": {
368
- "type": "string"
369
- },
370
- "circuit_breaker_transition_verified": {
371
- "type": "boolean"
372
- },
373
- "blast_radius_contained": {
374
- "type": "boolean"
375
- },
376
- "tool": {
377
- "type": "string"
378
- }
379
- }
380
- },
381
- "performance_slo": {
382
- "type": "object",
383
- "description": "Performance and load test SLO gates (k6, Locust).",
384
- "properties": {
385
- "p95_latency_ms": {
386
- "type": "number",
387
- "minimum": 0
388
- },
389
- "p99_latency_ms": {
390
- "type": "number",
391
- "minimum": 0
392
- },
393
- "error_rate_pct": {
394
- "type": "number",
395
- "minimum": 0,
396
- "maximum": 100
397
- },
398
- "slo_threshold_met": {
399
- "type": "boolean"
400
- },
401
- "tool": {
402
- "type": "string"
403
- }
404
- }
405
- },
406
- "clean_architecture_verification": {
407
- "type": "object",
408
- "description": "Clean architecture, database parity, and concurrency verification.",
409
- "properties": {
410
- "race_detector_passed": {
411
- "type": "boolean"
412
- },
413
- "goroutine_leak_clean": {
414
- "type": "boolean"
415
- },
416
- "layer_isolation_verified": {
417
- "type": "boolean"
418
- },
419
- "ephemeral_db_rollback_isolated": {
420
- "type": "boolean"
421
- },
422
- "property_based_testing_passed": {
423
- "type": "boolean"
424
- }
425
- }
426
- }
427
- },
428
- "required": [
429
- "contract_type",
430
- "ticket_ref",
431
- "environment",
432
- "status",
433
- "scenarios_executed",
434
- "release_recommendation"
435
- ],
436
- "examples": [
437
- {
438
- "contract_type": "test-report",
439
- "report_id": "2026-06-12-change-store-order-cod",
440
- "created_at": "2026-06-12T14:00:00+07:00",
441
- "ticket_ref": "2026-06-12-change-store-order-cod",
442
- "delivery_plan_ref": "2026-06-12-change-store-order-cod",
443
- "environment": "staging",
444
- "test_types_executed": [
445
- "unit",
446
- "integration",
447
- "smoke"
448
- ],
449
- "status": "passed",
450
- "scenarios_executed": [
451
- {
452
- "name": "COD order assigned to store courier",
453
- "type": "integration",
454
- "passed": true,
455
- "evidence": "CI run #1042, test NewLogicAutoAssignTest::testCodOrderAssignedToStoreCourier — passed",
456
- "notes": null
457
- },
458
- {
459
- "name": "COD order with no store courier falls back",
460
- "type": "integration",
461
- "passed": true,
462
- "evidence": "CI run #1042, test NewLogicAutoAssignTest::testCodOrderFallsBackToWarehouse — passed; warning log verified",
463
- "notes": null
464
- },
465
- {
466
- "name": "Non-COD order unaffected",
467
- "type": "unit",
468
- "passed": true,
469
- "evidence": "CI run #1042 — all existing non-COD tests pass without modification",
470
- "notes": null
471
- },
472
- {
473
- "name": "Store service 503 fallback (code-review F-01)",
474
- "type": "integration",
475
- "passed": true,
476
- "evidence": "Manual test with store-service stub returning 503 — fallback to warehouse confirmed; error logged with order_id",
477
- "notes": "Added after code-review finding F-01 raised by Reviewer"
478
- }
479
- ],
480
- "defects": [],
481
- "coverage_gaps": [
482
- "Load test for COD routing under high batch volume — deferred to next sprint"
483
- ],
484
- "residual_risk": "Batch performance under > 500 concurrent COD orders not validated. Low risk given current store volume.",
485
- "release_recommendation": "ship",
486
- "mitigation_notes": null,
487
- "mutation_score": {
488
- "score_pct": 82.0,
489
- "threshold_pct": 75.0,
490
- "mutants_total": 50,
491
- "mutants_killed": 41,
492
- "mutants_survived": 9,
493
- "tool": "Stryker",
494
- "status": "passed"
495
- },
496
- "sandbox_isolation_tier": "tier_0_ephemeral_container",
497
- "reproduction_test_verified": true,
498
- "blast_radius_assessment": {
499
- "verified_failure_domain": "order_fulfillment",
500
- "cross_boundary_impact_detected": false
501
- },
502
- "contract_testing": {
503
- "pact_matrix_status": "passed",
504
- "breaking_changes_detected": false,
505
- "can_i_deploy": true,
506
- "tool": "PactV3"
507
- },
508
- "observability_testing": {
509
- "trace_assertions_passed": true,
510
- "w3c_traceparent_propagated": true,
511
- "n_plus_one_queries_detected": false,
512
- "query_budget_exceeded": false,
513
- "tool": "Tracetest"
514
- },
515
- "chaos_injection": {
516
- "fault_type": "latency_jitter",
517
- "circuit_breaker_transition_verified": true,
518
- "blast_radius_contained": true,
519
- "tool": "Toxiproxy"
520
- },
521
- "clean_architecture_verification": {
522
- "race_detector_passed": true,
523
- "goroutine_leak_clean": true,
524
- "layer_isolation_verified": true,
525
- "ephemeral_db_rollback_isolated": true,
526
- "property_based_testing_passed": true
527
- }
528
- }
529
- ]
530
- }
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "test-report",
4
+ "title": "QA Test Report",
5
+ "description": "Structured output from QA Engineer using write-tests, frontend-testing, or review-service skills. Emitted after test execution. Consumed by Technical Lead, Reviewer, Project Manager, and Agent Coordinator as release confidence evidence. Complements code-review-finding.json \u2014 review catches code issues, test-report catches behavior risk.",
6
+ "type": "object",
7
+ "properties": {
8
+ "contract_type": {
9
+ "type": "string",
10
+ "const": "test-report",
11
+ "description": "Machine-readable contract discriminator."
12
+ },
13
+ "report_id": {
14
+ "type": "string",
15
+ "description": "Unique report identifier. Convention: YYYY-MM-DD-feature-slug."
16
+ },
17
+ "created_at": {
18
+ "type": "string",
19
+ "format": "date-time"
20
+ },
21
+ "ticket_ref": {
22
+ "type": "string",
23
+ "description": "feature-ticket.json ticket_id this report covers."
24
+ },
25
+ "delivery_plan_ref": {
26
+ "type": "string",
27
+ "description": "technical-delivery-plan.json plan_id this test run validates."
28
+ },
29
+ "environment": {
30
+ "type": "string",
31
+ "description": "Test environment name (e.g. staging, preview, local, production-canary)."
32
+ },
33
+ "test_types_executed": {
34
+ "type": "array",
35
+ "items": {
36
+ "type": "string",
37
+ "enum": [
38
+ "unit",
39
+ "integration",
40
+ "e2e",
41
+ "smoke",
42
+ "regression",
43
+ "performance",
44
+ "security",
45
+ "accessibility",
46
+ "manual"
47
+ ]
48
+ },
49
+ "description": "Types of tests run in this report."
50
+ },
51
+ "status": {
52
+ "type": "string",
53
+ "enum": [
54
+ "passed",
55
+ "failed",
56
+ "blocked",
57
+ "partial"
58
+ ],
59
+ "description": "Overall test run status."
60
+ },
61
+ "scenarios_executed": {
62
+ "type": "array",
63
+ "description": "One entry per AC scenario or test case executed.",
64
+ "minItems": 1,
65
+ "items": {
66
+ "type": "object",
67
+ "properties": {
68
+ "name": {
69
+ "type": "string",
70
+ "description": "Scenario name \u2014 should match feature-ticket AC scenario label when covering AC."
71
+ },
72
+ "type": {
73
+ "type": "string",
74
+ "enum": [
75
+ "unit",
76
+ "integration",
77
+ "e2e",
78
+ "smoke",
79
+ "manual",
80
+ "regression"
81
+ ]
82
+ },
83
+ "passed": {
84
+ "type": "boolean"
85
+ },
86
+ "evidence": {
87
+ "type": "string",
88
+ "description": "CI run link, screenshot path, log excerpt, or 'manual verified' description."
89
+ },
90
+ "notes": {
91
+ "type": [
92
+ "string",
93
+ "null"
94
+ ]
95
+ }
96
+ },
97
+ "required": [
98
+ "name",
99
+ "passed"
100
+ ]
101
+ }
102
+ },
103
+ "defects": {
104
+ "type": "array",
105
+ "description": "Defects found during testing. Empty array if none.",
106
+ "items": {
107
+ "type": "object",
108
+ "properties": {
109
+ "defect_id": {
110
+ "type": "string"
111
+ },
112
+ "title": {
113
+ "type": "string"
114
+ },
115
+ "severity": {
116
+ "type": "string",
117
+ "enum": [
118
+ "critical",
119
+ "high",
120
+ "medium",
121
+ "low"
122
+ ]
123
+ },
124
+ "steps_to_reproduce": {
125
+ "type": "array",
126
+ "items": {
127
+ "type": "string"
128
+ }
129
+ },
130
+ "expected_behavior": {
131
+ "type": "string"
132
+ },
133
+ "actual_behavior": {
134
+ "type": "string"
135
+ },
136
+ "linked_code_finding": {
137
+ "type": "string",
138
+ "description": "code-review-finding.json finding_id if related."
139
+ }
140
+ },
141
+ "required": [
142
+ "title",
143
+ "severity",
144
+ "steps_to_reproduce",
145
+ "expected_behavior",
146
+ "actual_behavior"
147
+ ]
148
+ }
149
+ },
150
+ "coverage_gaps": {
151
+ "type": "array",
152
+ "items": {
153
+ "type": "string"
154
+ },
155
+ "description": "Behaviors or edge cases that could not be tested in this cycle and why."
156
+ },
157
+ "residual_risk": {
158
+ "type": "string",
159
+ "description": "Remaining risk that won't be covered before release \u2014 should be visible to Technical Lead and PM."
160
+ },
161
+ "release_recommendation": {
162
+ "type": "string",
163
+ "enum": [
164
+ "ship",
165
+ "hold",
166
+ "ship_with_mitigations"
167
+ ],
168
+ "description": "QA recommendation on whether to proceed with release."
169
+ },
170
+ "mitigation_notes": {
171
+ "type": [
172
+ "string",
173
+ "null"
174
+ ],
175
+ "description": "Required when release_recommendation=ship_with_mitigations. Describe the mitigations."
176
+ },
177
+ "mutation_score": {
178
+ "type": "object",
179
+ "description": "Mutation testing verification results (e.g. Stryker, mutmut, go-mutesting).",
180
+ "properties": {
181
+ "score_pct": {
182
+ "type": "number",
183
+ "minimum": 0,
184
+ "maximum": 100
185
+ },
186
+ "threshold_pct": {
187
+ "type": "number",
188
+ "minimum": 0,
189
+ "maximum": 100
190
+ },
191
+ "mutants_total": {
192
+ "type": "integer",
193
+ "minimum": 0
194
+ },
195
+ "mutants_killed": {
196
+ "type": "integer",
197
+ "minimum": 0
198
+ },
199
+ "mutants_survived": {
200
+ "type": "integer",
201
+ "minimum": 0
202
+ },
203
+ "tool": {
204
+ "type": "string"
205
+ },
206
+ "status": {
207
+ "type": "string",
208
+ "enum": [
209
+ "passed",
210
+ "failed",
211
+ "skipped"
212
+ ]
213
+ }
214
+ },
215
+ "required": [
216
+ "score_pct",
217
+ "threshold_pct",
218
+ "status"
219
+ ]
220
+ },
221
+ "sandbox_isolation_tier": {
222
+ "type": "string",
223
+ "enum": [
224
+ "tier_0_ephemeral_container",
225
+ "tier_1_isolated_microvm",
226
+ "tier_2_airgapped_sandbox",
227
+ "local_dev_workspace"
228
+ ],
229
+ "description": "Environment isolation tier where tests were executed."
230
+ },
231
+ "reproduction_test_verified": {
232
+ "type": "boolean",
233
+ "description": "For bug fixes: confirms that a failing reproduction test was verified Red prior to code modification."
234
+ },
235
+ "blast_radius_assessment": {
236
+ "type": "object",
237
+ "description": "Verification of bounded failure domain during test execution.",
238
+ "properties": {
239
+ "verified_failure_domain": {
240
+ "type": "string"
241
+ },
242
+ "cross_boundary_impact_detected": {
243
+ "type": "boolean"
244
+ }
245
+ },
246
+ "required": [
247
+ "verified_failure_domain",
248
+ "cross_boundary_impact_detected"
249
+ ]
250
+ },
251
+ "contract_testing": {
252
+ "type": "object",
253
+ "description": "Consumer-Driven Contract Testing (PactV3, buf breaking, oasdiff) verification.",
254
+ "properties": {
255
+ "pact_matrix_status": {
256
+ "type": "string",
257
+ "enum": [
258
+ "passed",
259
+ "failed",
260
+ "skipped"
261
+ ]
262
+ },
263
+ "breaking_changes_detected": {
264
+ "type": "boolean"
265
+ },
266
+ "can_i_deploy": {
267
+ "type": "boolean"
268
+ },
269
+ "tool": {
270
+ "type": "string"
271
+ }
272
+ }
273
+ },
274
+ "ai_evaluation": {
275
+ "type": "object",
276
+ "description": "Calibrated LLM and agentic evaluation metrics.",
277
+ "properties": {
278
+ "g_eval_alignment_score": {
279
+ "type": "number",
280
+ "minimum": 0,
281
+ "maximum": 100
282
+ },
283
+ "rag_triad": {
284
+ "type": "object",
285
+ "properties": {
286
+ "faithfulness": {
287
+ "type": "number",
288
+ "minimum": 0,
289
+ "maximum": 1
290
+ },
291
+ "context_precision": {
292
+ "type": "number",
293
+ "minimum": 0,
294
+ "maximum": 1
295
+ },
296
+ "context_recall": {
297
+ "type": "number",
298
+ "minimum": 0,
299
+ "maximum": 1
300
+ },
301
+ "answer_relevancy": {
302
+ "type": "number",
303
+ "minimum": 0,
304
+ "maximum": 1
305
+ }
306
+ }
307
+ },
308
+ "agent_trajectory_passed": {
309
+ "type": "boolean"
310
+ },
311
+ "loop_detection_passed": {
312
+ "type": "boolean"
313
+ },
314
+ "promptfoo_redteam_passed": {
315
+ "type": "boolean"
316
+ }
317
+ }
318
+ },
319
+ "observability_testing": {
320
+ "type": "object",
321
+ "description": "Observability-Driven Testing (Tracetest, OpenTelemetry, N+1 query counters).",
322
+ "properties": {
323
+ "trace_assertions_passed": {
324
+ "type": "boolean"
325
+ },
326
+ "w3c_traceparent_propagated": {
327
+ "type": "boolean"
328
+ },
329
+ "n_plus_one_queries_detected": {
330
+ "type": "boolean"
331
+ },
332
+ "query_budget_exceeded": {
333
+ "type": "boolean"
334
+ },
335
+ "tool": {
336
+ "type": "string"
337
+ }
338
+ }
339
+ },
340
+ "accessibility_audit": {
341
+ "type": "object",
342
+ "description": "Automated and manual WCAG accessibility audit findings.",
343
+ "properties": {
344
+ "wcag_standard": {
345
+ "type": "string"
346
+ },
347
+ "violations_count": {
348
+ "type": "integer",
349
+ "minimum": 0
350
+ },
351
+ "critical_violations": {
352
+ "type": "integer",
353
+ "minimum": 0
354
+ },
355
+ "passed": {
356
+ "type": "boolean"
357
+ },
358
+ "tool": {
359
+ "type": "string"
360
+ }
361
+ }
362
+ },
363
+ "chaos_injection": {
364
+ "type": "object",
365
+ "description": "Shift-left fault injection and resilience testing (Toxiproxy, Chaos Mesh).",
366
+ "properties": {
367
+ "fault_type": {
368
+ "type": "string"
369
+ },
370
+ "circuit_breaker_transition_verified": {
371
+ "type": "boolean"
372
+ },
373
+ "blast_radius_contained": {
374
+ "type": "boolean"
375
+ },
376
+ "tool": {
377
+ "type": "string"
378
+ }
379
+ }
380
+ },
381
+ "performance_slo": {
382
+ "type": "object",
383
+ "description": "Performance and load test SLO gates (k6, Locust).",
384
+ "properties": {
385
+ "p95_latency_ms": {
386
+ "type": "number",
387
+ "minimum": 0
388
+ },
389
+ "p99_latency_ms": {
390
+ "type": "number",
391
+ "minimum": 0
392
+ },
393
+ "error_rate_pct": {
394
+ "type": "number",
395
+ "minimum": 0,
396
+ "maximum": 100
397
+ },
398
+ "slo_threshold_met": {
399
+ "type": "boolean"
400
+ },
401
+ "tool": {
402
+ "type": "string"
403
+ }
404
+ }
405
+ },
406
+ "clean_architecture_verification": {
407
+ "type": "object",
408
+ "description": "Clean architecture, database parity, and concurrency verification.",
409
+ "properties": {
410
+ "race_detector_passed": {
411
+ "type": "boolean"
412
+ },
413
+ "goroutine_leak_clean": {
414
+ "type": "boolean"
415
+ },
416
+ "layer_isolation_verified": {
417
+ "type": "boolean"
418
+ },
419
+ "ephemeral_db_rollback_isolated": {
420
+ "type": "boolean"
421
+ },
422
+ "property_based_testing_passed": {
423
+ "type": "boolean"
424
+ }
425
+ }
426
+ }
427
+ },
428
+ "required": [
429
+ "contract_type",
430
+ "ticket_ref",
431
+ "environment",
432
+ "status",
433
+ "scenarios_executed",
434
+ "release_recommendation"
435
+ ],
436
+ "examples": [
437
+ {
438
+ "contract_type": "test-report",
439
+ "report_id": "2026-06-12-change-store-order-cod",
440
+ "created_at": "2026-06-12T14:00:00+07:00",
441
+ "ticket_ref": "2026-06-12-change-store-order-cod",
442
+ "delivery_plan_ref": "2026-06-12-change-store-order-cod",
443
+ "environment": "staging",
444
+ "test_types_executed": [
445
+ "unit",
446
+ "integration",
447
+ "smoke"
448
+ ],
449
+ "status": "passed",
450
+ "scenarios_executed": [
451
+ {
452
+ "name": "COD order assigned to store courier",
453
+ "type": "integration",
454
+ "passed": true,
455
+ "evidence": "CI run #1042, test NewLogicAutoAssignTest::testCodOrderAssignedToStoreCourier — passed",
456
+ "notes": null
457
+ },
458
+ {
459
+ "name": "COD order with no store courier falls back",
460
+ "type": "integration",
461
+ "passed": true,
462
+ "evidence": "CI run #1042, test NewLogicAutoAssignTest::testCodOrderFallsBackToWarehouse — passed; warning log verified",
463
+ "notes": null
464
+ },
465
+ {
466
+ "name": "Non-COD order unaffected",
467
+ "type": "unit",
468
+ "passed": true,
469
+ "evidence": "CI run #1042 — all existing non-COD tests pass without modification",
470
+ "notes": null
471
+ },
472
+ {
473
+ "name": "Store service 503 fallback (code-review F-01)",
474
+ "type": "integration",
475
+ "passed": true,
476
+ "evidence": "Manual test with store-service stub returning 503 — fallback to warehouse confirmed; error logged with order_id",
477
+ "notes": "Added after code-review finding F-01 raised by Reviewer"
478
+ }
479
+ ],
480
+ "defects": [],
481
+ "coverage_gaps": [
482
+ "Load test for COD routing under high batch volume — deferred to next sprint"
483
+ ],
484
+ "residual_risk": "Batch performance under > 500 concurrent COD orders not validated. Low risk given current store volume.",
485
+ "release_recommendation": "ship",
486
+ "mitigation_notes": null,
487
+ "mutation_score": {
488
+ "score_pct": 82.0,
489
+ "threshold_pct": 75.0,
490
+ "mutants_total": 50,
491
+ "mutants_killed": 41,
492
+ "mutants_survived": 9,
493
+ "tool": "Stryker",
494
+ "status": "passed"
495
+ },
496
+ "sandbox_isolation_tier": "tier_0_ephemeral_container",
497
+ "reproduction_test_verified": true,
498
+ "blast_radius_assessment": {
499
+ "verified_failure_domain": "order_fulfillment",
500
+ "cross_boundary_impact_detected": false
501
+ },
502
+ "contract_testing": {
503
+ "pact_matrix_status": "passed",
504
+ "breaking_changes_detected": false,
505
+ "can_i_deploy": true,
506
+ "tool": "PactV3"
507
+ },
508
+ "observability_testing": {
509
+ "trace_assertions_passed": true,
510
+ "w3c_traceparent_propagated": true,
511
+ "n_plus_one_queries_detected": false,
512
+ "query_budget_exceeded": false,
513
+ "tool": "Tracetest"
514
+ },
515
+ "chaos_injection": {
516
+ "fault_type": "latency_jitter",
517
+ "circuit_breaker_transition_verified": true,
518
+ "blast_radius_contained": true,
519
+ "tool": "Toxiproxy"
520
+ },
521
+ "clean_architecture_verification": {
522
+ "race_detector_passed": true,
523
+ "goroutine_leak_clean": true,
524
+ "layer_isolation_verified": true,
525
+ "ephemeral_db_rollback_isolated": true,
526
+ "property_based_testing_passed": true
527
+ }
528
+ }
529
+ ]
530
+ }