@vesviet/agent-skills 5.6.0 → 5.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (184) hide show
  1. package/INDEX.md +5 -5
  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 +12 -12
  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/README.md +1 -1
  10. package/core/contracts/schemas/api-contract-spec.json +191 -191
  11. package/core/contracts/schemas/data-pipeline-spec.json +1 -1
  12. package/core/contracts/schemas/design-tokens-spec.json +19 -0
  13. package/core/contracts/schemas/feature-ticket.json +1293 -1293
  14. package/core/contracts/schemas/pull-request-spec.json +338 -338
  15. package/core/contracts/schemas/references/detailed/01-solution-and-governance.md +19 -19
  16. package/core/contracts/schemas/references/detailed/02-engineering-delivery.md +93 -93
  17. package/core/contracts/schemas/references/detailed/04-finance-accounting-and-compliance.md +54 -54
  18. package/core/contracts/schemas/references/detailed/05-design-and-content.md +92 -92
  19. package/core/contracts/schemas/references/detailed/06-seo-and-publishing.md +48 -48
  20. package/core/contracts/schemas/references/detailed/07-a2a-protocol.md +85 -85
  21. package/core/contracts/schemas/security-audit.json +143 -12
  22. package/core/contracts/schemas/system-design-spec.json +9 -1
  23. package/core/contracts/schemas/test-report.json +530 -530
  24. package/core/contracts/schemas/ux-flow-spec.json +66 -0
  25. package/core/roles/ai-systems-engineer.md +31 -18
  26. package/core/roles/aws-engineer.md +33 -29
  27. package/core/roles/backend-developer.md +6 -4
  28. package/core/roles/content-manager.md +7 -7
  29. package/core/roles/data-engineer.md +39 -36
  30. package/core/roles/qa-engineer.md +18 -18
  31. package/core/roles/references/ai-systems-engineer-review-checklist.md +11 -3
  32. package/core/roles/references/aws-engineer-review-checklist.md +29 -16
  33. package/core/roles/references/business-analyst-responsibilities.md +207 -207
  34. package/core/roles/references/content-manager-governance-standards.md +2 -2
  35. package/core/roles/references/content-manager-review-checklist.md +7 -1
  36. package/core/roles/references/data-engineer-review-checklist.md +11 -3
  37. package/core/roles/references/frontend-developer-responsibilities.md +275 -275
  38. package/core/roles/references/qa-engineer-review-checklist.md +10 -5
  39. package/core/roles/references/security-engineer-review-checklist.md +8 -0
  40. package/core/roles/references/solution-architect-review-checklist.md +6 -1
  41. package/core/roles/references/system-engineer-review-checklist.md +11 -0
  42. package/core/roles/references/ui-ux-designer-review-checklist.md +12 -0
  43. package/core/roles/security-engineer.md +35 -5
  44. package/core/roles/solution-architect.md +7 -7
  45. package/core/roles/system-engineer.md +470 -465
  46. package/core/roles/ui-ux-designer.md +17 -3
  47. package/core/skills/agent/agent-memory-compaction/references/anchored-schema-and-compaction-algorithms.md +141 -141
  48. package/core/skills/agent/architect-mcp-server/SKILL.md +3 -3
  49. package/core/skills/agent/decompose-agentic-system/SKILL.md +1 -1
  50. package/core/skills/ai/deploy-vllm-inference/SKILL.md +14 -14
  51. package/core/skills/ai-agent/agent-evaluation/SKILL.md +5 -0
  52. package/core/skills/ai-agent/context-optimization/SKILL.md +9 -0
  53. package/core/skills/backend/add-api-endpoint/SKILL.md +1 -0
  54. package/core/skills/backend/add-event-handler/SKILL.md +1 -0
  55. package/core/skills/backend/add-service-client/SKILL.md +1 -0
  56. package/core/skills/backend/build-mcp-server/SKILL.md +101 -100
  57. package/core/skills/backend/implement-auth/SKILL.md +1 -0
  58. package/core/skills/backend/implement-structured-outputs/SKILL.md +95 -94
  59. package/core/skills/backend/optimize-postgres/SKILL.md +1 -0
  60. package/core/skills/backend/scaffold-new-service/SKILL.md +1 -0
  61. package/core/skills/business/elicit-requirements/SKILL.md +102 -102
  62. package/core/skills/business/elicit-requirements/references/elicitation-techniques-and-babok-criteria.md +60 -60
  63. package/core/skills/business/trace-requirements-impact/SKILL.md +97 -97
  64. package/core/skills/business/trace-requirements-impact/references/rtm-graph-and-prioritization-models.md +109 -109
  65. package/core/skills/business/write-use-cases/SKILL.md +106 -106
  66. package/core/skills/business/write-use-cases/references/cockburn-scoping-and-13-field-template.md +135 -135
  67. package/core/skills/content/audit-content/SKILL.md +3 -2
  68. package/core/skills/content/audit-content/references/information-gain-rubric.md +1 -1
  69. package/core/skills/content/design-content-strategy/SKILL.md +6 -5
  70. package/core/skills/content/design-content-strategy/references/information-gain-and-decay-triage.md +2 -2
  71. package/core/skills/content/optimize-seo/SKILL.md +6 -5
  72. package/core/skills/content/optimize-seo/references/geo-ai-citation-playbook.md +2 -2
  73. package/core/skills/content/optimize-seo/references/process-and-checklist.md +1 -1
  74. package/core/skills/content/repurpose-content/SKILL.md +4 -3
  75. package/core/skills/content/write-article/SKILL.md +6 -5
  76. package/core/skills/content/write-copy/SKILL.md +3 -2
  77. package/core/skills/document/pptx/SKILL.md +1 -0
  78. package/core/skills/document/pptx/scripts/add_slide.py +0 -0
  79. package/core/skills/document/pptx/scripts/clean.py +0 -0
  80. package/core/skills/document/pptx/scripts/thumbnail.py +0 -0
  81. package/core/skills/document/xlsx/scripts/recalc.py +0 -0
  82. package/core/skills/documentation/write-documentation/SKILL.md +143 -143
  83. package/core/skills/documentation/write-tech-radar/SKILL.md +149 -149
  84. package/core/skills/foundation/accessibility-review/SKILL.md +160 -160
  85. package/core/skills/foundation/design-review/SKILL.md +11 -1
  86. package/core/skills/foundation/design-ux-flow/SKILL.md +13 -1
  87. package/core/skills/foundation/performance-profiling/SKILL.md +3 -1
  88. package/core/skills/foundation/release-notes/SKILL.md +192 -192
  89. package/core/skills/foundation/webapp-server-runner/scripts/with_server.py +0 -0
  90. package/core/skills/foundation/write-product-brief/SKILL.md +160 -160
  91. package/core/skills/foundation/write-tests/SKILL.md +11 -10
  92. package/core/skills/frontend/anti-ui-slop-finish-gate/SKILL.md +5 -0
  93. package/core/skills/frontend/design-md-specification/SKILL.md +1 -0
  94. package/core/skills/frontend/design-system-engineering/SKILL.md +4 -2
  95. package/core/skills/meetings-analysis/analyze-business-requirements/SKILL.md +1 -1
  96. package/core/skills/platform/add-telemetry-instrumentation/SKILL.md +2 -1
  97. package/core/skills/platform/aws-infrastructure/SKILL.md +12 -11
  98. package/core/skills/platform/cloudflare-email-service/SKILL.md +166 -166
  99. package/core/skills/platform/cloudflare-email-service/references/routing.md +199 -199
  100. package/core/skills/platform/debug-runtime-platform/SKILL.md +1 -0
  101. package/core/skills/platform/debug-workers-edge/SKILL.md +111 -111
  102. package/core/skills/platform/sandbox-sdk/SKILL.md +183 -183
  103. package/core/skills/platform/setup-gpu-finops/SKILL.md +111 -107
  104. package/core/skills/platform/setup-llm-gateway/SKILL.md +110 -108
  105. package/core/skills/platform/supply-chain-security/SKILL.md +1 -0
  106. package/core/skills/platform/system-design/SKILL.md +7 -0
  107. package/core/skills/platform/turnstile-spin/SKILL.md +118 -118
  108. package/core/skills/platform/turnstile-spin/scripts/auth-probe.sh +0 -0
  109. package/core/skills/platform/turnstile-spin/scripts/fetch-secret.sh +0 -0
  110. package/core/skills/platform/turnstile-spin/scripts/persist-skill.sh +0 -0
  111. package/core/skills/platform/turnstile-spin/scripts/validate.sh +0 -0
  112. package/core/skills/platform/turnstile-spin/scripts/widget-create.sh +0 -0
  113. package/core/skills/platform/turnstile-spin/scripts/worker-deploy.sh +0 -0
  114. package/core/skills/platform/turnstile-spin/templates/worker/src/index.ts +199 -199
  115. package/core/skills/platform/turnstile-spin/templates/worker/wrangler.toml +31 -31
  116. package/core/skills/platform/web-perf/SKILL.md +151 -151
  117. package/core/skills/platform/workers-best-practices/references/rules.md +463 -463
  118. package/core/skills/product/build-story-map/SKILL.md +104 -104
  119. package/core/skills/product/build-story-map/references/story-mapping-and-cpm-scheduling.md +101 -101
  120. package/core/skills/product/define-product-strategy/SKILL.md +105 -105
  121. package/core/skills/product/define-product-strategy/references/strategy-frameworks-and-pr-faq.md +142 -142
  122. package/core/skills/product/model-saas-metrics/SKILL.md +104 -104
  123. package/core/skills/product/model-saas-metrics/references/saas-unit-economics-and-pricing.md +110 -110
  124. package/core/skills/product/prioritize-roadmap/SKILL.md +106 -106
  125. package/core/skills/product/prioritize-roadmap/references/prioritization-scoring-and-kill-criteria.md +105 -105
  126. package/core/skills/repo-ops/commit-code/SKILL.md +190 -190
  127. package/core/skills/repo-ops/commit-code/references/multi-repo-and-deployment.md +21 -21
  128. package/core/skills/repo-ops/navigate-service/SKILL.md +199 -199
  129. package/core/skills/repo-ops/review-code/references/process-and-format.md +100 -100
  130. package/core/skills/repo-ops/review-service/SKILL.md +186 -186
  131. package/core/skills/repo-ops/troubleshoot-service/SKILL.md +127 -127
  132. package/core/skills/repo-ops/troubleshoot-service/references/failure-modes-and-security.md +22 -22
  133. package/core/skills/repo-ops/troubleshoot-service/references/suggested-process.md +110 -110
  134. package/core/skills/security-data/build-data-pipeline/SKILL.md +15 -14
  135. package/core/skills/security-data/build-data-pipeline/references/producer-contracts-and-lakehouse.md +5 -5
  136. package/core/skills/security-data/database-maintenance/SKILL.md +1 -0
  137. package/core/skills/security-data/database-maintenance/references/relational-and-vector-maintenance.md +5 -5
  138. package/core/skills/security-data/manage-secrets/SKILL.md +3 -0
  139. package/core/skills/security-data/optimize-olap-database/SKILL.md +14 -13
  140. package/core/skills/security-data/optimize-olap-database/references/olap-database-guide.md +2 -2
  141. package/core/skills/security-data/prompt-injection-defense/SKILL.md +3 -0
  142. package/core/skills/security-data/query-analytical-engine/SKILL.md +8 -7
  143. package/core/skills/security-data/query-analytical-engine/references/analytical-query-guide.md +3 -3
  144. package/core/skills/security-data/security-audit/SKILL.md +126 -119
  145. package/core/workflows/add-new-feature.md +212 -212
  146. package/core/workflows/agent-a2a-delegation.md +142 -142
  147. package/core/workflows/bug-fix.md +147 -147
  148. package/core/workflows/build-deploy.md +208 -208
  149. package/core/workflows/code-review.md +137 -137
  150. package/core/workflows/curriculum-delivery.md +1 -1
  151. package/core/workflows/dependency-upgrade.md +193 -193
  152. package/core/workflows/feature-delivery.md +149 -149
  153. package/core/workflows/hotfix-production.md +172 -172
  154. package/core/workflows/qa-validation.md +231 -231
  155. package/core/workflows/refactoring.md +154 -154
  156. package/core/workflows/revert-deployment.md +147 -147
  157. package/core/workflows/security-incident-response.md +191 -191
  158. package/core/workflows/seo-content-lifecycle.md +91 -91
  159. package/core/workflows/service-review-release.md +223 -223
  160. package/core/workflows/setup-new-service.md +214 -214
  161. package/core/workflows/tech-repo-review.md +245 -245
  162. package/core/workflows/troubleshooting.md +241 -241
  163. package/overlays/astro-cloudflare/README.md +93 -93
  164. package/overlays/data-analyst-stack/README.md +109 -109
  165. package/overlays/data-analyst-stack/rules/metric-dashboard-templates.md +135 -135
  166. package/overlays/data-analyst-stack/rules/stack-conventions.md +80 -80
  167. package/overlays/ecommerce-microservices/README.md +65 -65
  168. package/overlays/go-microservices/README.md +78 -78
  169. package/overlays/go-microservices/rules/go-conventions.md +223 -223
  170. package/overlays/laravel-filament/README.md +90 -90
  171. package/overlays/laravel-filament/rules/laravel-conventions.md +220 -220
  172. package/overlays/laravel-filament/skills/develop-laravel-feature/SKILL.md +141 -141
  173. package/overlays/laravel-filament/workflows/deploy-laravel.md +133 -133
  174. package/overlays/obj-configurator/rules/obj-project-rules.md +111 -111
  175. package/overlays/obj-configurator/skills/develop-obj-feature/SKILL.md +71 -71
  176. package/overlays/r3f-stack/README.md +89 -89
  177. package/overlays/r3f-stack/rules/stub.md +43 -43
  178. package/overlays/r3f-stack/skills/debug-3d-scene/SKILL.md +166 -166
  179. package/overlays/r3f-stack/skills/integrate-r3f-three-legacy/SKILL.md +159 -159
  180. package/overlays/r3f-stack/skills/optimize-3d-assets/SKILL.md +128 -128
  181. package/overlays/seo-publishing/rules/site-mix-and-cannibalization.md +52 -52
  182. package/overlays/ui-design-system/rules/handoff-conventions.md +73 -73
  183. package/package.json +2 -2
  184. package/core/README.md +0 -53
@@ -1,1293 +1,1293 @@
1
- {
2
- "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "$id": "feature-ticket",
4
- "title": "Feature Ticket Specification",
5
- "description": "Structured output from Business Analyst. Consumed by Technical Architect (for adr-spec.json), Technical Lead (for technical-delivery-plan.json), and Backend/Frontend Developers as the source of truth for scope, acceptance criteria, and business rules. Also optionally triggers Data Analyst and SEO Analyst handoffs. For AI/LLM features, includes ai_feature_spec (probabilistic AC, HITL triggers, EU AI Act tier) and assumption_register (risk-scored assumptions).",
6
- "type": "object",
7
- "properties": {
8
- "contract_type": {
9
- "type": "string",
10
- "const": "feature-ticket",
11
- "description": "Machine-readable contract discriminator."
12
- },
13
- "ticket_id": {
14
- "type": "string",
15
- "description": "Unique identifier. Convention: YYYY-MM-DD-short-slug or project-number."
16
- },
17
- "created_at": {
18
- "type": "string",
19
- "format": "date-time"
20
- },
21
- "title": {
22
- "type": "string"
23
- },
24
- "type": {
25
- "type": "string",
26
- "enum": [
27
- "feature",
28
- "bug",
29
- "chore",
30
- "spike",
31
- "research"
32
- ]
33
- },
34
- "priority": {
35
- "type": "string",
36
- "enum": [
37
- "critical",
38
- "high",
39
- "medium",
40
- "low"
41
- ],
42
- "description": "Business priority \u2014 not technical complexity."
43
- },
44
- "business_value": {
45
- "type": "string",
46
- "description": "Why this work matters to the business or users. Expressed as outcome, not activity."
47
- },
48
- "preserved_behavior": {
49
- "type": "string",
50
- "description": "Behavior that must remain unchanged after this change. Required for bug fixes."
51
- },
52
- "changed_behavior": {
53
- "type": "string",
54
- "description": "Intended new or restored behavior. Expressed in user/system terms."
55
- },
56
- "actors": {
57
- "type": "array",
58
- "items": {
59
- "type": "string"
60
- },
61
- "description": "Human users, systems, or agent roles involved in this feature."
62
- },
63
- "business_rules": {
64
- "type": "array",
65
- "description": "Explicit business rules and invariants. Each rule must be testable.",
66
- "items": {
67
- "type": "object",
68
- "properties": {
69
- "id": {
70
- "type": "string",
71
- "description": "Rule identifier for cross-referencing."
72
- },
73
- "rule": {
74
- "type": "string",
75
- "description": "The business rule, stated as a declarative sentence."
76
- },
77
- "exceptions": {
78
- "type": "string",
79
- "description": "Known exceptions or edge cases to this rule."
80
- }
81
- },
82
- "required": [
83
- "rule"
84
- ]
85
- }
86
- },
87
- "acceptance_criteria": {
88
- "type": "array",
89
- "description": "Testable acceptance scenarios in Given/When/Then format. For AI features, use ai_feature_spec for probabilistic AC \u2014 do not encode statistical thresholds in this plain GWT format.",
90
- "minItems": 1,
91
- "items": {
92
- "type": "object",
93
- "properties": {
94
- "scenario": {
95
- "type": "string",
96
- "description": "Short label for this AC scenario."
97
- },
98
- "given": {
99
- "type": "string",
100
- "description": "Pre-condition state."
101
- },
102
- "when": {
103
- "type": "string",
104
- "description": "User or system action."
105
- },
106
- "then": {
107
- "type": "string",
108
- "description": "Expected observable outcome."
109
- },
110
- "tags": {
111
- "type": "array",
112
- "items": {
113
- "type": "string"
114
- },
115
- "description": "BDD scenario tags (e.g. @smoke, @regression, @p1, @core)."
116
- },
117
- "and_conditions": {
118
- "type": "array",
119
- "items": {
120
- "type": "string"
121
- },
122
- "description": "Additional conjunction assertions for complex verification."
123
- },
124
- "stateful_invariants": {
125
- "type": "array",
126
- "items": {
127
- "type": "string"
128
- },
129
- "description": "System state invariants that must remain unbroken during and after scenario execution."
130
- },
131
- "failure_guarantee": {
132
- "type": "string",
133
- "description": "Explicit postcondition guarantee when execution fails or raises an exception."
134
- }
135
- },
136
- "required": [
137
- "scenario",
138
- "then"
139
- ]
140
- }
141
- },
142
- "edge_cases": {
143
- "type": "array",
144
- "items": {
145
- "type": "string"
146
- },
147
- "description": "Edge cases that require special handling but aren't full AC scenarios."
148
- },
149
- "dependencies": {
150
- "type": "array",
151
- "items": {
152
- "type": "string"
153
- },
154
- "description": "Other tickets, services, or teams this work depends on."
155
- },
156
- "out_of_scope": {
157
- "type": "array",
158
- "items": {
159
- "type": "string"
160
- },
161
- "description": "Explicitly excluded from this ticket to prevent scope creep."
162
- },
163
- "open_questions": {
164
- "type": "array",
165
- "items": {
166
- "type": "string"
167
- },
168
- "description": "Questions requiring clarification before or during implementation."
169
- },
170
- "process_impact": {
171
- "type": "string",
172
- "description": "Downstream teams, systems, workflows, or users affected beyond the core change."
173
- },
174
- "ai_feature_spec": {
175
- "type": "object",
176
- "description": "Required when the feature involves AI/LLM behavior. Owned by Business Analyst. Consumed by Technical Lead, QA Engineer, and Reviewer as AI acceptance criteria evidence. Binary pass/fail AC must NOT be used for AI features \u2014 use this block instead.",
177
- "properties": {
178
- "behavioral_boundaries": {
179
- "type": "string",
180
- "description": "Acceptable output range expressed as intent \u2014 not exact string match. E.g. 'Response must be professional in tone, contain no hallucinated product names, and cite only verified sources.'"
181
- },
182
- "probabilistic_ac": {
183
- "type": "object",
184
- "description": "Statistical acceptance criteria for AI behavior. Replaces binary pass/fail for non-deterministic outputs.",
185
- "properties": {
186
- "threshold_pct": {
187
- "type": "number",
188
- "minimum": 0,
189
- "maximum": 100,
190
- "description": "Minimum percentage of correct outcomes. E.g. 95 means \u226595% of N samples must meet the criteria."
191
- },
192
- "population": {
193
- "type": "string",
194
- "description": "The population or input distribution this threshold applies to."
195
- },
196
- "window_n": {
197
- "type": "integer",
198
- "description": "Sample window size for threshold evaluation (e.g. 100 evaluations per week)."
199
- },
200
- "evaluation_method": {
201
- "type": "string",
202
- "enum": [
203
- "llm-as-judge",
204
- "human-review-panel",
205
- "golden-dataset",
206
- "automated-harness",
207
- "hybrid"
208
- ],
209
- "description": "How correctness is assessed."
210
- },
211
- "judge": {
212
- "type": "string",
213
- "description": "Who or what acts as the judge \u2014 specify model name, rubric reference, or reviewer role."
214
- }
215
- },
216
- "required": [
217
- "threshold_pct",
218
- "evaluation_method"
219
- ]
220
- },
221
- "hitl_trigger": {
222
- "type": "object",
223
- "description": "Human-in-the-Loop escalation specification. Required for any AI feature with high-stakes decisions (financial, legal, medical, safety, access control). AI-HITL-SPEC LOCK applies.",
224
- "properties": {
225
- "condition": {
226
- "type": "string",
227
- "description": "When does AI autonomy end? E.g. 'confidence_score < 0.85' or 'decision_category = credit'."
228
- },
229
- "action": {
230
- "type": "string",
231
- "description": "What happens when the trigger fires? E.g. 'pause decision, display Under Review status'."
232
- },
233
- "responsible_role": {
234
- "type": "string",
235
- "description": "Who receives the escalated decision?"
236
- },
237
- "sla": {
238
- "type": "string",
239
- "description": "Maximum response time after escalation. E.g. '24h', '4h for safety-critical'."
240
- },
241
- "audit_log_required": {
242
- "type": "boolean",
243
- "description": "Whether an immutable audit log must be written at the escalation point."
244
- },
245
- "audit_log_fields": {
246
- "type": "array",
247
- "items": {
248
- "type": "string"
249
- },
250
- "description": "Fields required in the audit log: e.g. model_version, input_summary, output, confidence, human_decision, timestamp."
251
- }
252
- },
253
- "required": [
254
- "condition",
255
- "action",
256
- "responsible_role",
257
- "sla",
258
- "audit_log_required"
259
- ]
260
- },
261
- "non_determinism": {
262
- "type": "string",
263
- "enum": [
264
- "deterministic_required",
265
- "controlled_variation",
266
- "creative_generation"
267
- ],
268
- "description": "deterministic_required: identical inputs must produce identical outputs (temperature=0 or equivalent). controlled_variation: intentional A/B or seeded variation. creative_generation: open-ended generation acceptable."
269
- },
270
- "hybrid_architecture_intent": {
271
- "type": "string",
272
- "description": "Which components use deterministic rule-based logic vs AI/LLM? High-stakes actions (payment, legal notice, access revocation) must be deterministic."
273
- },
274
- "accountability_model": {
275
- "type": "object",
276
- "description": "Who owns AI decisions and how are they monitored post-launch.",
277
- "properties": {
278
- "decision_owner": {
279
- "type": "string",
280
- "description": "Accountable role for AI decisions in this feature."
281
- },
282
- "monitoring_metric": {
283
- "type": "string",
284
- "description": "KPI or metric used to detect degradation in production."
285
- },
286
- "review_cadence": {
287
- "type": "string",
288
- "description": "How often AI behavior is reviewed post-launch. E.g. 'weekly for 4 weeks, then monthly'."
289
- },
290
- "audit_log_requirements": {
291
- "type": "string",
292
- "description": "Immutable audit log spec: fields required per AI decision (model version, input summary, output, confidence, human intervention)."
293
- }
294
- },
295
- "required": [
296
- "decision_owner",
297
- "monitoring_metric"
298
- ]
299
- },
300
- "eu_ai_act_tier": {
301
- "type": "string",
302
- "enum": [
303
- "high-risk",
304
- "limited-risk",
305
- "minimal-risk",
306
- "not-applicable"
307
- ],
308
- "description": "EU AI Act risk tier classification. high-risk requires HITL, audit logging, conformity assessment, and Human Review Board availability. Must be classified before AC is locked."
309
- },
310
- "degradation_trigger": {
311
- "type": "string",
312
- "description": "Production degradation alert spec. E.g. 'If accuracy falls below 90% in any 7-day rolling window, raise P1 incident and suspend feature pending review.'"
313
- }
314
- },
315
- "required": [
316
- "behavioral_boundaries",
317
- "eu_ai_act_tier"
318
- ]
319
- },
320
- "assumption_register": {
321
- "type": "array",
322
- "description": "Risk-scored assumptions that underlie the requirements. Required for significant bets. Risk score = impact \u00d7 (6 \u2212 confidence). Highest-risk assumptions must be validated before build commitment. ASSUMPTION LOCK applies.",
323
- "items": {
324
- "type": "object",
325
- "properties": {
326
- "assumption": {
327
- "type": "string",
328
- "description": "What must be true for this requirement to be valid? State as a declarative belief."
329
- },
330
- "impact": {
331
- "type": "integer",
332
- "minimum": 1,
333
- "maximum": 5,
334
- "description": "If this assumption is wrong, how bad is the outcome? 1=trivial, 5=project-breaking."
335
- },
336
- "confidence": {
337
- "type": "integer",
338
- "minimum": 1,
339
- "maximum": 5,
340
- "description": "How much evidence supports this assumption being true? 1=pure guess, 5=verified fact."
341
- },
342
- "risk_score": {
343
- "type": "number",
344
- "description": "Computed as impact \u00d7 (6 \u2212 confidence). Range 1\u201325. Scores \u226515 require validation before build commitment."
345
- },
346
- "validation_method": {
347
- "type": "string",
348
- "description": "How will this assumption be validated? E.g. 'user interview', 'analytics query', 'spike', 'legal review'."
349
- },
350
- "status": {
351
- "type": "string",
352
- "enum": [
353
- "pending",
354
- "validated",
355
- "invalidated",
356
- "escalated"
357
- ],
358
- "description": "Current validation status. escalated = PM notified with build-cost comparison."
359
- },
360
- "outcome_note": {
361
- "type": "string",
362
- "description": "Result of validation or reason for escalation. Required when status is validated/invalidated/escalated."
363
- }
364
- },
365
- "required": [
366
- "assumption",
367
- "impact",
368
- "confidence",
369
- "risk_score",
370
- "status"
371
- ]
372
- }
373
- },
374
- "analytics_request": {
375
- "type": "object",
376
- "description": "Optional handoff block for Data Analyst \u2014 triggers data investigation request.",
377
- "properties": {
378
- "decision_supported": {
379
- "type": "string",
380
- "description": "What business decision will this data inform?"
381
- },
382
- "questions": {
383
- "type": "array",
384
- "items": {
385
- "type": "string"
386
- }
387
- },
388
- "proposed_metrics": {
389
- "type": "array",
390
- "items": {
391
- "type": "string"
392
- }
393
- },
394
- "segments": {
395
- "type": "string"
396
- },
397
- "time_range": {
398
- "type": "string"
399
- },
400
- "timezone": {
401
- "type": "string"
402
- },
403
- "sources_known": {
404
- "type": "string"
405
- },
406
- "constraints": {
407
- "type": "string"
408
- },
409
- "out_of_scope": {
410
- "type": "string"
411
- }
412
- }
413
- },
414
- "seo_content_request": {
415
- "type": "object",
416
- "description": "Optional handoff block for SEO Analyst \u2014 triggers content or discoverability work.",
417
- "properties": {
418
- "business_outcome": {
419
- "type": "string"
420
- },
421
- "audience": {
422
- "type": "string"
423
- },
424
- "site_or_channel": {
425
- "type": "string"
426
- },
427
- "topic_angle": {
428
- "type": "string"
429
- },
430
- "proposed_primary_keyword": {
431
- "type": "string"
432
- },
433
- "conversion_or_cta_goal": {
434
- "type": "string"
435
- },
436
- "must_link_to": {
437
- "type": "array",
438
- "items": {
439
- "type": "string"
440
- },
441
- "description": "High-value paths (product, property, guides) BA wants emphasized."
442
- },
443
- "constraints": {
444
- "type": "string"
445
- },
446
- "out_of_scope": {
447
- "type": "string"
448
- }
449
- }
450
- },
451
- "research_request": {
452
- "type": "object",
453
- "description": "Optional handoff block for Researcher \u2014 triggers domain or compliance research. depth must align with researcher.md depth_mode: deep (10+ rounds, default) or scoped (3+ rounds, requires scope_waiver_note).",
454
- "properties": {
455
- "research_question": {
456
- "type": "string",
457
- "description": "Primary research question (singular framing). Use questions[] for numbered multi-part requests."
458
- },
459
- "questions": {
460
- "type": "array",
461
- "items": {
462
- "type": "string"
463
- },
464
- "description": "Numbered research questions and boundaries. Preferred over research_question for multi-part requests."
465
- },
466
- "domain": {
467
- "type": "string"
468
- },
469
- "depth": {
470
- "type": "string",
471
- "enum": [
472
- "deep",
473
- "scoped"
474
- ],
475
- "description": "deep: 10+ research rounds (default). scoped: minimum 3 rounds \u2014 requires scope_waiver_note explaining why deep is not needed."
476
- },
477
- "scope_waiver_note": {
478
- "type": "string",
479
- "description": "Required when depth = scoped. Explains why deep discovery is not needed for this request."
480
- },
481
- "output_contract": {
482
- "type": "string",
483
- "enum": [
484
- "research-report.json",
485
- "markdown-brief"
486
- ],
487
- "description": "Expected output format from Researcher. research-report.json for machine handoff; markdown-brief for quick synthesis."
488
- },
489
- "deadline": {
490
- "type": "string",
491
- "format": "date"
492
- },
493
- "constraints": {
494
- "type": "string"
495
- }
496
- }
497
- },
498
- "ai_interaction_requirements": {
499
- "type": "object",
500
- "description": "2026 PM Standard: Define HITL and fallback bounds.",
501
- "properties": {
502
- "human_in_the_loop_triggers": {
503
- "type": "array",
504
- "items": {
505
- "type": "string"
506
- }
507
- },
508
- "fallback_behavior": {
509
- "type": "string"
510
- }
511
- }
512
- },
513
- "blast_radius_assessment": {
514
- "type": "object",
515
- "description": "Assessment of potential blast radius and failure domain impact.",
516
- "properties": {
517
- "impact_tier": {
518
- "type": "string",
519
- "enum": [
520
- "isolated_component",
521
- "service_level",
522
- "cross_service",
523
- "critical_infrastructure"
524
- ]
525
- },
526
- "failure_domains": {
527
- "type": "array",
528
- "items": {
529
- "type": "string"
530
- },
531
- "description": "Bounded contexts or failure domains exposed to this change."
532
- },
533
- "downstream_consumers_affected": {
534
- "type": "array",
535
- "items": {
536
- "type": "string"
537
- },
538
- "description": "Services, queues, or client apps dependent on changed behavior."
539
- },
540
- "data_blast_radius": {
541
- "type": "string",
542
- "enum": [
543
- "read_only",
544
- "isolated_write",
545
- "schema_migration",
546
- "irreversible_deletion"
547
- ]
548
- }
549
- },
550
- "required": [
551
- "impact_tier",
552
- "failure_domains"
553
- ]
554
- },
555
- "sandbox_isolation_tier": {
556
- "type": "string",
557
- "enum": [
558
- "tier_0_ephemeral_container",
559
- "tier_1_isolated_microvm",
560
- "tier_2_airgapped_sandbox",
561
- "local_dev_workspace"
562
- ],
563
- "description": "Required execution environment isolation tier for code generation and testing."
564
- },
565
- "test_strategy_ref": {
566
- "type": "object",
567
- "description": "Testing strategy standards for this feature ticket.",
568
- "properties": {
569
- "red_green_required": {
570
- "type": "boolean"
571
- },
572
- "mutation_score_threshold_pct": {
573
- "type": "number",
574
- "minimum": 0,
575
- "maximum": 100
576
- },
577
- "reproduction_test_required": {
578
- "type": "boolean"
579
- }
580
- },
581
- "required": [
582
- "red_green_required"
583
- ]
584
- },
585
- "vertical_slice_metadata": {
586
- "type": "object",
587
- "description": "Lean/Agile vertical slicing metadata according to SOTA decomposition patterns (Elephant Carpentry).",
588
- "properties": {
589
- "slice_pattern": {
590
- "type": "string",
591
- "enum": [
592
- "workflow_step",
593
- "business_rule_variation",
594
- "data_channel",
595
- "user_persona",
596
- "major_effort_vs_variation",
597
- "crud_operation",
598
- "non_functional_sla",
599
- "reversibility_tier"
600
- ],
601
- "description": "Primary slicing pattern used to decompose the feature."
602
- },
603
- "invest_criteria": {
604
- "type": "object",
605
- "properties": {
606
- "independent": {
607
- "type": "boolean"
608
- },
609
- "negotiable": {
610
- "type": "boolean"
611
- },
612
- "valuable": {
613
- "type": "boolean"
614
- },
615
- "estimable": {
616
- "type": "boolean"
617
- },
618
- "small": {
619
- "type": "boolean"
620
- },
621
- "testable": {
622
- "type": "boolean"
623
- }
624
- },
625
- "required": [
626
- "independent",
627
- "valuable",
628
- "testable"
629
- ]
630
- },
631
- "walking_skeleton": {
632
- "type": "boolean",
633
- "description": "Whether this slice serves as a thin end-to-end tracer bullet across all layers (UI, API, DB)."
634
- },
635
- "slice_order": {
636
- "type": "integer",
637
- "minimum": 1,
638
- "description": "Sequential delivery sequence for this vertical slice."
639
- }
640
- }
641
- },
642
- "event_storming_context": {
643
- "type": "object",
644
- "description": "Domain-Driven Design (DDD) discovery context derived from collaborative Event Storming workshops.",
645
- "properties": {
646
- "bounded_context": {
647
- "type": "string",
648
- "description": "Explicit bounded context this feature belongs to."
649
- },
650
- "aggregate_root": {
651
- "type": "string",
652
- "description": "Aggregate root enforcing transactional consistency and invariants."
653
- },
654
- "domain_events": {
655
- "type": "array",
656
- "items": {
657
- "type": "string"
658
- },
659
- "description": "Immutable business events emitted in past tense (e.g. OrderPlaced, PaymentSettled)."
660
- },
661
- "commands": {
662
- "type": "array",
663
- "items": {
664
- "type": "string"
665
- },
666
- "description": "User or system intents phrased in present imperative (e.g. SubmitOrder, SettlePayment)."
667
- },
668
- "read_models": {
669
- "type": "array",
670
- "items": {
671
- "type": "string"
672
- },
673
- "description": "Query views and projections supporting decisions or UI display."
674
- },
675
- "business_policies": {
676
- "type": "array",
677
- "items": {
678
- "type": "object",
679
- "properties": {
680
- "whenever_event": {
681
- "type": "string"
682
- },
683
- "then_command": {
684
- "type": "string"
685
- }
686
- },
687
- "required": [
688
- "whenever_event",
689
- "then_command"
690
- ]
691
- },
692
- "description": "Reactive business policies (Whenever [Event] Then [Command])."
693
- }
694
- }
695
- },
696
- "agentic_feature_spec": {
697
- "type": "object",
698
- "description": "Governance and behavioral requirements for multi-agent workflows and MCP tool access.",
699
- "properties": {
700
- "autonomy_level": {
701
- "type": "string",
702
- "enum": [
703
- "L1_assistive",
704
- "L2_task_based",
705
- "L3_conditional",
706
- "L4_high_autonomy",
707
- "L5_unbounded"
708
- ],
709
- "description": "Declared autonomy level. L3 (Conditional) is enterprise ceiling; L4/L5 requires special authorization."
710
- },
711
- "governance_justified_ceiling": {
712
- "type": "string",
713
- "description": "Justification for declared autonomy level based on reversibility and audit capabilities."
714
- },
715
- "agent_roles": {
716
- "type": "array",
717
- "items": {
718
- "type": "object",
719
- "properties": {
720
- "role_name": {
721
- "type": "string"
722
- },
723
- "authority_scope": {
724
- "type": "string"
725
- },
726
- "tool_allowlist": {
727
- "type": "array",
728
- "items": {
729
- "type": "string"
730
- }
731
- },
732
- "escalation_threshold": {
733
- "type": "string"
734
- }
735
- },
736
- "required": [
737
- "role_name",
738
- "authority_scope"
739
- ]
740
- }
741
- },
742
- "mcp_tool_permissions": {
743
- "type": "array",
744
- "items": {
745
- "type": "object",
746
- "properties": {
747
- "tool_name": {
748
- "type": "string"
749
- },
750
- "server_id": {
751
- "type": "string"
752
- },
753
- "permission_level": {
754
- "type": "string",
755
- "enum": [
756
- "read",
757
- "write",
758
- "delete",
759
- "execute"
760
- ]
761
- },
762
- "credential_mechanism": {
763
- "type": "string"
764
- }
765
- },
766
- "required": [
767
- "tool_name",
768
- "permission_level"
769
- ]
770
- }
771
- },
772
- "forbidden_zones": {
773
- "type": "array",
774
- "items": {
775
- "type": "string"
776
- },
777
- "description": "Hard actions the agent must never take regardless of user prompting."
778
- },
779
- "kill_switch": {
780
- "type": "object",
781
- "properties": {
782
- "stop_mechanism": {
783
- "type": "string"
784
- },
785
- "credential_revocation_sla": {
786
- "type": "string"
787
- },
788
- "authority_to_invoke": {
789
- "type": "string"
790
- },
791
- "state_preservation": {
792
- "type": "string"
793
- }
794
- },
795
- "required": [
796
- "stop_mechanism",
797
- "authority_to_invoke"
798
- ]
799
- },
800
- "agent_registry_entry_required": {
801
- "type": "boolean",
802
- "description": "Whether an inventory registration gate must pass prior to production deployment."
803
- }
804
- },
805
- "required": [
806
- "autonomy_level",
807
- "governance_justified_ceiling",
808
- "kill_switch"
809
- ]
810
- },
811
- "responsible_ai_spec": {
812
- "type": "object",
813
- "description": "Responsible AI requirements covering fairness, bias prevention, and explainability.",
814
- "properties": {
815
- "four_fifths_rule_dir_threshold": {
816
- "type": "number",
817
- "minimum": 0.8,
818
- "maximum": 1.0,
819
- "description": "Minimum Disparate Impact Ratio threshold (EEOC 80% rule)."
820
- },
821
- "protected_groups": {
822
- "type": "array",
823
- "items": {
824
- "type": "string"
825
- }
826
- },
827
- "disaggregated_error_rate_bounds": {
828
- "type": "string",
829
- "description": "Maximum allowable deviation of subgroup FNR/FPR from aggregate mean."
830
- },
831
- "xai_requirements": {
832
- "type": "object",
833
- "properties": {
834
- "explanation_type": {
835
- "type": "string",
836
- "enum": [
837
- "contrastive",
838
- "feature_attribution",
839
- "counterfactual"
840
- ]
841
- },
842
- "intelligibility_criterion": {
843
- "type": "string"
844
- },
845
- "faithfulness_criterion": {
846
- "type": "string"
847
- },
848
- "actionability_criterion": {
849
- "type": "string"
850
- },
851
- "inline_at_decision_point": {
852
- "type": "boolean"
853
- }
854
- },
855
- "required": [
856
- "explanation_type",
857
- "intelligibility_criterion",
858
- "faithfulness_criterion",
859
- "actionability_criterion"
860
- ]
861
- }
862
- }
863
- },
864
- "nfr_envelope": {
865
- "type": "object",
866
- "description": "Non-Functional Requirements envelope defining performance, scalability, and regulatory bounds.",
867
- "properties": {
868
- "latency_p99_ms": {
869
- "type": "number",
870
- "description": "Maximum allowable 99th percentile response time in milliseconds."
871
- },
872
- "max_error_rate_pct": {
873
- "type": "number",
874
- "minimum": 0,
875
- "maximum": 100,
876
- "description": "Maximum acceptable error rate percentage."
877
- },
878
- "data_retention_days": {
879
- "type": "integer",
880
- "description": "Mandatory audit or data retention period in days."
881
- },
882
- "gdpr_article_6_legal_basis": {
883
- "type": "string",
884
- "enum": [
885
- "consent",
886
- "contract",
887
- "legal_obligation",
888
- "vital_interests",
889
- "public_task",
890
- "legitimate_interests",
891
- "not_applicable"
892
- ]
893
- },
894
- "right_to_erasure_propagation_sla": {
895
- "type": "string",
896
- "description": "Target SLA for full erasure propagation across downstream datastores."
897
- },
898
- "dpia_required": {
899
- "type": "boolean",
900
- "description": "Whether a formal Data Protection Impact Assessment is required prior to build."
901
- }
902
- }
903
- }
904
- },
905
- "required": [
906
- "contract_type",
907
- "title",
908
- "type",
909
- "acceptance_criteria"
910
- ],
911
- "examples": [
912
- {
913
- "contract_type": "feature-ticket",
914
- "ticket_id": "2026-06-12-change-store-order-cod",
915
- "created_at": "2026-06-12T09:00:00+07:00",
916
- "title": "Change Order Assignment Logic for COD Store Orders",
917
- "type": "feature",
918
- "priority": "high",
919
- "business_value": "Reduce failed COD delivery assignments by routing store orders to the nearest active store with COD capability, instead of the default warehouse courier route.",
920
- "preserved_behavior": "Non-COD orders continue to use existing auto-assign logic unchanged.",
921
- "changed_behavior": "COD orders with a store_id set are routed to the store's designated courier, bypassing warehouse assignment.",
922
- "actors": [
923
- "Order Management System",
924
- "Store Manager",
925
- "Delivery Courier"
926
- ],
927
- "business_rules": [
928
- {
929
- "id": "BR-01",
930
- "rule": "A COD order with store_id must be assigned to a courier linked to that store.",
931
- "exceptions": "If no active courier is linked to the store, fall back to warehouse assignment and log a warning."
932
- }
933
- ],
934
- "acceptance_criteria": [
935
- {
936
- "scenario": "COD order assigned to store courier",
937
- "given": "A COD order exists with store_id=42 and store 42 has an active courier",
938
- "when": "The auto-assign command runs",
939
- "then": "The order is assigned to the store 42 courier, not the warehouse courier"
940
- },
941
- {
942
- "scenario": "COD order with no store courier falls back",
943
- "given": "A COD order exists with store_id=99 and store 99 has no active courier",
944
- "when": "The auto-assign command runs",
945
- "then": "The order is assigned to the warehouse courier and a warning is logged"
946
- },
947
- {
948
- "scenario": "Non-COD order unaffected",
949
- "given": "A non-COD order exists",
950
- "when": "The auto-assign command runs",
951
- "then": "The order follows the existing auto-assign logic without entering the new branch"
952
- }
953
- ],
954
- "edge_cases": [
955
- "store_id is set but store record is soft-deleted",
956
- "COD order arrives during store courier capacity blackout window"
957
- ],
958
- "assumption_register": [
959
- {
960
- "assumption": "Store courier lookup API returns results within 200ms p99 under current load",
961
- "impact": 4,
962
- "confidence": 3,
963
- "risk_score": 12,
964
- "validation_method": "Load test against staging Store service API with 2x current peak traffic",
965
- "status": "pending"
966
- },
967
- {
968
- "assumption": "Store Manager team will accept new courier assignment notifications without process change",
969
- "impact": 3,
970
- "confidence": 2,
971
- "risk_score": 12,
972
- "validation_method": "Interview 3 Store Managers before sprint planning",
973
- "status": "validated",
974
- "outcome_note": "Confirmed in stakeholder session 2026-06-10 \u2014 Store Managers prefer automated routing"
975
- }
976
- ],
977
- "dependencies": [
978
- "Store service API for courier lookup"
979
- ],
980
- "out_of_scope": [
981
- "COD payment reconciliation",
982
- "Store courier capacity management"
983
- ],
984
- "open_questions": [
985
- "Should we notify the store manager when fallback occurs?"
986
- ],
987
- "process_impact": "Store operations team will see different courier assignments for COD orders starting from deploy date.",
988
- "research_request": {
989
- "questions": [
990
- "What are the industry-standard SLA expectations for COD store courier assignment in Southeast Asian e-commerce platforms?",
991
- "Are there regulatory requirements for COD assignment logging in Vietnam logistics regulations 2026?"
992
- ],
993
- "domain": "SEA e-commerce logistics, Vietnam COD regulations",
994
- "depth": "scoped",
995
- "scope_waiver_note": "Domain is narrow and well-defined; 3 targeted research passes sufficient before locking courier SLA AC.",
996
- "output_contract": "research-report.json",
997
- "deadline": "2026-06-15"
998
- },
999
- "blast_radius_assessment": {
1000
- "impact_tier": "isolated_component",
1001
- "failure_domains": [
1002
- "order_routing"
1003
- ],
1004
- "downstream_consumers_affected": [
1005
- "courier-mobile-app"
1006
- ],
1007
- "data_blast_radius": "isolated_write"
1008
- },
1009
- "sandbox_isolation_tier": "tier_0_ephemeral_container",
1010
- "test_strategy_ref": {
1011
- "red_green_required": true,
1012
- "mutation_score_threshold_pct": 75.0,
1013
- "reproduction_test_required": false
1014
- }
1015
- },
1016
- {
1017
- "contract_type": "feature-ticket",
1018
- "ticket_id": "2026-06-13-ai-credit-scoring-assistant",
1019
- "created_at": "2026-06-13T10:00:00+07:00",
1020
- "title": "AI Credit Scoring Assistant for Loan Applications",
1021
- "type": "feature",
1022
- "priority": "critical",
1023
- "business_value": "Reduce manual credit review time by 40% while maintaining accuracy above 95% through AI-assisted preliminary scoring with mandatory human confirmation for all decisions.",
1024
- "actors": [
1025
- "Loan Applicant",
1026
- "Credit Officer",
1027
- "AI Scoring Service",
1028
- "Risk Management System"
1029
- ],
1030
- "acceptance_criteria": [
1031
- {
1032
- "scenario": "AI score produced with high confidence",
1033
- "given": "A complete loan application with all required fields",
1034
- "when": "The AI scoring service processes the application",
1035
- "then": "A preliminary score and confidence rating are produced within 3 seconds"
1036
- },
1037
- {
1038
- "scenario": "Low-confidence application routed to human review",
1039
- "given": "AI confidence score < 0.85 for any application",
1040
- "when": "The scoring service completes processing",
1041
- "then": "Application is paused, status set to Under Review, and Credit Officer notified within 15 minutes"
1042
- }
1043
- ],
1044
- "ai_feature_spec": {
1045
- "behavioral_boundaries": "AI must produce a credit score band (A/B/C/D/F) and confidence score. It must not approve or reject loans autonomously. All preliminary scores require Credit Officer confirmation. Response must contain no hallucinated applicant data and must reference only verified financial fields from the application.",
1046
- "probabilistic_ac": {
1047
- "threshold_pct": 95,
1048
- "population": "Complete loan applications passing input validation",
1049
- "window_n": 200,
1050
- "evaluation_method": "human-review-panel",
1051
- "judge": "Senior Credit Officer panel reviewing 200 sampled applications weekly against ground truth"
1052
- },
1053
- "hitl_trigger": {
1054
- "condition": "AI confidence score < 0.85 OR loan_amount > 500,000,000 VND OR applicant_category = 'first-time-borrower'",
1055
- "action": "Pause decision, set status to 'Under Review', notify assigned Credit Officer via in-app alert and email",
1056
- "responsible_role": "Credit Officer (primary), Risk Manager (escalation if no response in 8h)",
1057
- "sla": "Credit Officer must confirm or override within 24h; Risk Manager escalation within 32h",
1058
- "audit_log_required": true,
1059
- "audit_log_fields": [
1060
- "model_version",
1061
- "application_id",
1062
- "input_field_hash",
1063
- "ai_score_band",
1064
- "ai_confidence",
1065
- "hitl_trigger_reason",
1066
- "credit_officer_id",
1067
- "human_decision",
1068
- "human_decision_timestamp",
1069
- "override_reason"
1070
- ]
1071
- },
1072
- "non_determinism": "deterministic_required",
1073
- "hybrid_architecture_intent": "AI/LLM handles preliminary scoring and risk factor summarization only. Deterministic rule engine handles: final approval/rejection execution, rate calculation, regulatory compliance checks, and all database writes for approved loans.",
1074
- "accountability_model": {
1075
- "decision_owner": "Credit Officer (all decisions); Risk Manager (escalated decisions); VP Credit (policy exceptions)",
1076
- "monitoring_metric": "Weekly accuracy rate vs ground truth; HITL trigger rate; Credit Officer override rate",
1077
- "review_cadence": "Weekly for first 8 weeks post-launch, then bi-weekly; quarterly model performance review",
1078
- "audit_log_requirements": "Immutable append-only log per decision: model_version, input_field_hash, ai_score_band, ai_confidence, human_decision, override_reason, timestamps. Retained 7 years per financial regulation."
1079
- },
1080
- "eu_ai_act_tier": "high-risk",
1081
- "degradation_trigger": "If weekly accuracy rate falls below 93% for any 7-day window, raise P1 incident, suspend AI scoring (revert to fully manual), and notify Risk Manager and VP Credit within 2h."
1082
- },
1083
- "assumption_register": [
1084
- {
1085
- "assumption": "Credit Officers will adopt AI-assisted workflow without significant process resistance",
1086
- "impact": 5,
1087
- "confidence": 2,
1088
- "risk_score": 20,
1089
- "validation_method": "Structured interview with 5 Credit Officers + 2-week pilot with shadow mode (AI scores hidden from officers until after their decision)",
1090
- "status": "escalated",
1091
- "outcome_note": "Risk score 20 \u2014 escalated to PM 2026-06-12. Pilot proposed before sprint commitment. Build commitment deferred pending pilot results."
1092
- },
1093
- {
1094
- "assumption": "AI model accuracy \u226595% is achievable with current training data volume (12 months)",
1095
- "impact": 5,
1096
- "confidence": 3,
1097
- "risk_score": 15,
1098
- "validation_method": "Offline evaluation on 6-month holdout dataset before feature build starts",
1099
- "status": "pending"
1100
- }
1101
- ],
1102
- "out_of_scope": [
1103
- "AI model training and retraining pipeline",
1104
- "Credit score appeal process",
1105
- "Regulatory filing for EU AI Act conformity assessment"
1106
- ],
1107
- "open_questions": [
1108
- "Has legal confirmed EU AI Act high-risk classification and conformity assessment timeline?",
1109
- "Who is the designated Human Review Board required under EU AI Act Article 14?"
1110
- ],
1111
- "blast_radius_assessment": {
1112
- "impact_tier": "isolated_component",
1113
- "failure_domains": [
1114
- "order_routing"
1115
- ],
1116
- "downstream_consumers_affected": [
1117
- "courier-mobile-app"
1118
- ],
1119
- "data_blast_radius": "isolated_write"
1120
- },
1121
- "sandbox_isolation_tier": "tier_0_ephemeral_container",
1122
- "test_strategy_ref": {
1123
- "red_green_required": true,
1124
- "mutation_score_threshold_pct": 75.0,
1125
- "reproduction_test_required": false
1126
- }
1127
- },
1128
- {
1129
- "contract_type": "feature-ticket",
1130
- "ticket_id": "2026-10-05-agentic-reconciliation-assistant",
1131
- "created_at": "2026-10-05T09:00:00+07:00",
1132
- "title": "Autonomous Multi-Agent Settlement Reconciliation with MCP Tool Auditing",
1133
- "type": "feature",
1134
- "priority": "high",
1135
- "business_value": "Automate 85% of multi-currency ledger reconciliation anomalies while maintaining double-entry conservation and full EU AI Act Article 50 transparency.",
1136
- "preserved_behavior": "Manual reconciliation workbench remains accessible with identical permission models.",
1137
- "changed_behavior": "Reconciliation Coordinator agent extracts ledger batches, analyzes discrepancy patterns, and drafts balancing journal entries for human sign-off.",
1138
- "actors": [
1139
- "Treasury Operations Officer",
1140
- "Reconciliation Coordinator Agent",
1141
- "Ledger Query Specialist Agent",
1142
- "Core Banking Settlement Engine"
1143
- ],
1144
- "business_rules": [
1145
- {
1146
- "id": "BR-REC-01",
1147
- "rule": "Total debit legs must equal total credit legs across all balancing journal transactions.",
1148
- "exceptions": "Exchange rate micro-rounding under 0.01 USD is absorbed into FX rounding reserve."
1149
- }
1150
- ],
1151
- "acceptance_criteria": [
1152
- {
1153
- "scenario": "Balanced anomaly reconciliation with automated journal draft",
1154
- "given": "An unreconciled ledger transaction batch exists with discrepancy equal to 12.50 USD",
1155
- "when": "The Reconciliation Coordinator agent analyzes the transaction legs",
1156
- "then": "A balancing journal voucher is drafted and presented to Treasury Officer with confidence score and feature attribution",
1157
- "tags": [
1158
- "@core",
1159
- "@smoke",
1160
- "@p1"
1161
- ],
1162
- "and_conditions": [
1163
- "Treasury Officer receives in-app approval notification within 30 seconds",
1164
- "Zero automated ledger balance mutations occur prior to explicit human sign-off"
1165
- ],
1166
- "stateful_invariants": [
1167
- "Sum(Debits) == Sum(Credits) across all proposed journal legs"
1168
- ],
1169
- "failure_guarantee": "On agent execution failure or timeout, reconciliation batch state reverts to PENDING_MANUAL_REVIEW with zero partial state committed"
1170
- }
1171
- ],
1172
- "vertical_slice_metadata": {
1173
- "slice_pattern": "workflow_step",
1174
- "invest_criteria": {
1175
- "independent": true,
1176
- "negotiable": true,
1177
- "valuable": true,
1178
- "estimable": true,
1179
- "small": true,
1180
- "testable": true
1181
- },
1182
- "walking_skeleton": true,
1183
- "slice_order": 1
1184
- },
1185
- "event_storming_context": {
1186
- "bounded_context": "treasury_reconciliation",
1187
- "aggregate_root": "ReconciliationBatch",
1188
- "domain_events": [
1189
- "ReconciliationBatchIngested",
1190
- "DiscrepancyAnalyzed",
1191
- "BalancingVoucherDrafted",
1192
- "ReconciliationCompleted"
1193
- ],
1194
- "commands": [
1195
- "IngestReconciliationBatch",
1196
- "DraftBalancingVoucher",
1197
- "ApproveReconciliationVoucher"
1198
- ],
1199
- "read_models": [
1200
- "UnreconciledBatchSummaryView"
1201
- ],
1202
- "business_policies": [
1203
- {
1204
- "whenever_event": "DiscrepancyAnalyzed",
1205
- "then_command": "DraftBalancingVoucher"
1206
- }
1207
- ]
1208
- },
1209
- "agentic_feature_spec": {
1210
- "autonomy_level": "L3_conditional",
1211
- "governance_justified_ceiling": "Agent coordinates data extraction, discrepancy correlation, and draft proposal generation; write actions are strictly gated by human approval.",
1212
- "agent_roles": [
1213
- {
1214
- "role_name": "CoordinatorAgent",
1215
- "authority_scope": "Decomposes batch analysis and routes tasks to Ledger Specialist",
1216
- "tool_allowlist": [
1217
- "ledger_query",
1218
- "fx_rate_lookup"
1219
- ],
1220
- "escalation_threshold": "Confidence score < 0.90"
1221
- }
1222
- ],
1223
- "mcp_tool_permissions": [
1224
- {
1225
- "tool_name": "ledger_query",
1226
- "server_id": "mcp-core-banking-gateway",
1227
- "permission_level": "read",
1228
- "credential_mechanism": "OAuth2 scoped JWT token evaluated per invocation"
1229
- },
1230
- {
1231
- "tool_name": "draft_journal_voucher",
1232
- "server_id": "mcp-core-banking-gateway",
1233
- "permission_level": "write",
1234
- "credential_mechanism": "Short-lived mTLS client certificate"
1235
- }
1236
- ],
1237
- "forbidden_zones": [
1238
- "Direct execution of ledger settlement without human approval signature",
1239
- "Modification of historical closed financial periods",
1240
- "Export of raw unmasked banking data outside corporate VPC"
1241
- ],
1242
- "kill_switch": {
1243
- "stop_mechanism": "Emergency API token revocation endpoint and webhook pause signal",
1244
- "credential_revocation_sla": "Under 30 seconds",
1245
- "authority_to_invoke": "Treasury Operations Lead, On-Call Security Engineer, Head of Compliance",
1246
- "state_preservation": "In-flight batch state persisted to S3 cold storage; running agent workers terminate gracefully within 10 seconds"
1247
- },
1248
- "agent_registry_entry_required": true
1249
- },
1250
- "responsible_ai_spec": {
1251
- "four_fifths_rule_dir_threshold": 0.85,
1252
- "protected_groups": [
1253
- "merchant_tier_small_business",
1254
- "merchant_tier_enterprise"
1255
- ],
1256
- "disaggregated_error_rate_bounds": "False discovery rate for anomaly classification must not deviate by > 3% across merchant tiers.",
1257
- "xai_requirements": {
1258
- "explanation_type": "contrastive",
1259
- "intelligibility_criterion": "Explanations readable by non-technical Treasury clerks in plain accounting terminology.",
1260
- "faithfulness_criterion": "Attribution scores strictly computed from SHAP values against model features.",
1261
- "actionability_criterion": "Specifies which specific transaction leg caused the reconciliation imbalance.",
1262
- "inline_at_decision_point": true
1263
- }
1264
- },
1265
- "nfr_envelope": {
1266
- "latency_p99_ms": 450.0,
1267
- "max_error_rate_pct": 0.05,
1268
- "data_retention_days": 2555,
1269
- "gdpr_article_6_legal_basis": "legal_obligation",
1270
- "right_to_erasure_propagation_sla": "Not applicable - Statutory financial audit retention exemption",
1271
- "dpia_required": false
1272
- },
1273
- "blast_radius_assessment": {
1274
- "impact_tier": "service_level",
1275
- "failure_domains": [
1276
- "treasury_reconciliation",
1277
- "core_ledger"
1278
- ],
1279
- "downstream_consumers_affected": [
1280
- "treasury-operations-portal",
1281
- "general-ledger-export-service"
1282
- ],
1283
- "data_blast_radius": "isolated_write"
1284
- },
1285
- "sandbox_isolation_tier": "tier_1_isolated_microvm",
1286
- "test_strategy_ref": {
1287
- "red_green_required": true,
1288
- "mutation_score_threshold_pct": 80.0,
1289
- "reproduction_test_required": true
1290
- }
1291
- }
1292
- ]
1293
- }
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "feature-ticket",
4
+ "title": "Feature Ticket Specification",
5
+ "description": "Structured output from Business Analyst. Consumed by Technical Architect (for adr-spec.json), Technical Lead (for technical-delivery-plan.json), and Backend/Frontend Developers as the source of truth for scope, acceptance criteria, and business rules. Also optionally triggers Data Analyst and SEO Analyst handoffs. For AI/LLM features, includes ai_feature_spec (probabilistic AC, HITL triggers, EU AI Act tier) and assumption_register (risk-scored assumptions).",
6
+ "type": "object",
7
+ "properties": {
8
+ "contract_type": {
9
+ "type": "string",
10
+ "const": "feature-ticket",
11
+ "description": "Machine-readable contract discriminator."
12
+ },
13
+ "ticket_id": {
14
+ "type": "string",
15
+ "description": "Unique identifier. Convention: YYYY-MM-DD-short-slug or project-number."
16
+ },
17
+ "created_at": {
18
+ "type": "string",
19
+ "format": "date-time"
20
+ },
21
+ "title": {
22
+ "type": "string"
23
+ },
24
+ "type": {
25
+ "type": "string",
26
+ "enum": [
27
+ "feature",
28
+ "bug",
29
+ "chore",
30
+ "spike",
31
+ "research"
32
+ ]
33
+ },
34
+ "priority": {
35
+ "type": "string",
36
+ "enum": [
37
+ "critical",
38
+ "high",
39
+ "medium",
40
+ "low"
41
+ ],
42
+ "description": "Business priority \u2014 not technical complexity."
43
+ },
44
+ "business_value": {
45
+ "type": "string",
46
+ "description": "Why this work matters to the business or users. Expressed as outcome, not activity."
47
+ },
48
+ "preserved_behavior": {
49
+ "type": "string",
50
+ "description": "Behavior that must remain unchanged after this change. Required for bug fixes."
51
+ },
52
+ "changed_behavior": {
53
+ "type": "string",
54
+ "description": "Intended new or restored behavior. Expressed in user/system terms."
55
+ },
56
+ "actors": {
57
+ "type": "array",
58
+ "items": {
59
+ "type": "string"
60
+ },
61
+ "description": "Human users, systems, or agent roles involved in this feature."
62
+ },
63
+ "business_rules": {
64
+ "type": "array",
65
+ "description": "Explicit business rules and invariants. Each rule must be testable.",
66
+ "items": {
67
+ "type": "object",
68
+ "properties": {
69
+ "id": {
70
+ "type": "string",
71
+ "description": "Rule identifier for cross-referencing."
72
+ },
73
+ "rule": {
74
+ "type": "string",
75
+ "description": "The business rule, stated as a declarative sentence."
76
+ },
77
+ "exceptions": {
78
+ "type": "string",
79
+ "description": "Known exceptions or edge cases to this rule."
80
+ }
81
+ },
82
+ "required": [
83
+ "rule"
84
+ ]
85
+ }
86
+ },
87
+ "acceptance_criteria": {
88
+ "type": "array",
89
+ "description": "Testable acceptance scenarios in Given/When/Then format. For AI features, use ai_feature_spec for probabilistic AC \u2014 do not encode statistical thresholds in this plain GWT format.",
90
+ "minItems": 1,
91
+ "items": {
92
+ "type": "object",
93
+ "properties": {
94
+ "scenario": {
95
+ "type": "string",
96
+ "description": "Short label for this AC scenario."
97
+ },
98
+ "given": {
99
+ "type": "string",
100
+ "description": "Pre-condition state."
101
+ },
102
+ "when": {
103
+ "type": "string",
104
+ "description": "User or system action."
105
+ },
106
+ "then": {
107
+ "type": "string",
108
+ "description": "Expected observable outcome."
109
+ },
110
+ "tags": {
111
+ "type": "array",
112
+ "items": {
113
+ "type": "string"
114
+ },
115
+ "description": "BDD scenario tags (e.g. @smoke, @regression, @p1, @core)."
116
+ },
117
+ "and_conditions": {
118
+ "type": "array",
119
+ "items": {
120
+ "type": "string"
121
+ },
122
+ "description": "Additional conjunction assertions for complex verification."
123
+ },
124
+ "stateful_invariants": {
125
+ "type": "array",
126
+ "items": {
127
+ "type": "string"
128
+ },
129
+ "description": "System state invariants that must remain unbroken during and after scenario execution."
130
+ },
131
+ "failure_guarantee": {
132
+ "type": "string",
133
+ "description": "Explicit postcondition guarantee when execution fails or raises an exception."
134
+ }
135
+ },
136
+ "required": [
137
+ "scenario",
138
+ "then"
139
+ ]
140
+ }
141
+ },
142
+ "edge_cases": {
143
+ "type": "array",
144
+ "items": {
145
+ "type": "string"
146
+ },
147
+ "description": "Edge cases that require special handling but aren't full AC scenarios."
148
+ },
149
+ "dependencies": {
150
+ "type": "array",
151
+ "items": {
152
+ "type": "string"
153
+ },
154
+ "description": "Other tickets, services, or teams this work depends on."
155
+ },
156
+ "out_of_scope": {
157
+ "type": "array",
158
+ "items": {
159
+ "type": "string"
160
+ },
161
+ "description": "Explicitly excluded from this ticket to prevent scope creep."
162
+ },
163
+ "open_questions": {
164
+ "type": "array",
165
+ "items": {
166
+ "type": "string"
167
+ },
168
+ "description": "Questions requiring clarification before or during implementation."
169
+ },
170
+ "process_impact": {
171
+ "type": "string",
172
+ "description": "Downstream teams, systems, workflows, or users affected beyond the core change."
173
+ },
174
+ "ai_feature_spec": {
175
+ "type": "object",
176
+ "description": "Required when the feature involves AI/LLM behavior. Owned by Business Analyst. Consumed by Technical Lead, QA Engineer, and Reviewer as AI acceptance criteria evidence. Binary pass/fail AC must NOT be used for AI features \u2014 use this block instead.",
177
+ "properties": {
178
+ "behavioral_boundaries": {
179
+ "type": "string",
180
+ "description": "Acceptable output range expressed as intent \u2014 not exact string match. E.g. 'Response must be professional in tone, contain no hallucinated product names, and cite only verified sources.'"
181
+ },
182
+ "probabilistic_ac": {
183
+ "type": "object",
184
+ "description": "Statistical acceptance criteria for AI behavior. Replaces binary pass/fail for non-deterministic outputs.",
185
+ "properties": {
186
+ "threshold_pct": {
187
+ "type": "number",
188
+ "minimum": 0,
189
+ "maximum": 100,
190
+ "description": "Minimum percentage of correct outcomes. E.g. 95 means \u226595% of N samples must meet the criteria."
191
+ },
192
+ "population": {
193
+ "type": "string",
194
+ "description": "The population or input distribution this threshold applies to."
195
+ },
196
+ "window_n": {
197
+ "type": "integer",
198
+ "description": "Sample window size for threshold evaluation (e.g. 100 evaluations per week)."
199
+ },
200
+ "evaluation_method": {
201
+ "type": "string",
202
+ "enum": [
203
+ "llm-as-judge",
204
+ "human-review-panel",
205
+ "golden-dataset",
206
+ "automated-harness",
207
+ "hybrid"
208
+ ],
209
+ "description": "How correctness is assessed."
210
+ },
211
+ "judge": {
212
+ "type": "string",
213
+ "description": "Who or what acts as the judge \u2014 specify model name, rubric reference, or reviewer role."
214
+ }
215
+ },
216
+ "required": [
217
+ "threshold_pct",
218
+ "evaluation_method"
219
+ ]
220
+ },
221
+ "hitl_trigger": {
222
+ "type": "object",
223
+ "description": "Human-in-the-Loop escalation specification. Required for any AI feature with high-stakes decisions (financial, legal, medical, safety, access control). AI-HITL-SPEC LOCK applies.",
224
+ "properties": {
225
+ "condition": {
226
+ "type": "string",
227
+ "description": "When does AI autonomy end? E.g. 'confidence_score < 0.85' or 'decision_category = credit'."
228
+ },
229
+ "action": {
230
+ "type": "string",
231
+ "description": "What happens when the trigger fires? E.g. 'pause decision, display Under Review status'."
232
+ },
233
+ "responsible_role": {
234
+ "type": "string",
235
+ "description": "Who receives the escalated decision?"
236
+ },
237
+ "sla": {
238
+ "type": "string",
239
+ "description": "Maximum response time after escalation. E.g. '24h', '4h for safety-critical'."
240
+ },
241
+ "audit_log_required": {
242
+ "type": "boolean",
243
+ "description": "Whether an immutable audit log must be written at the escalation point."
244
+ },
245
+ "audit_log_fields": {
246
+ "type": "array",
247
+ "items": {
248
+ "type": "string"
249
+ },
250
+ "description": "Fields required in the audit log: e.g. model_version, input_summary, output, confidence, human_decision, timestamp."
251
+ }
252
+ },
253
+ "required": [
254
+ "condition",
255
+ "action",
256
+ "responsible_role",
257
+ "sla",
258
+ "audit_log_required"
259
+ ]
260
+ },
261
+ "non_determinism": {
262
+ "type": "string",
263
+ "enum": [
264
+ "deterministic_required",
265
+ "controlled_variation",
266
+ "creative_generation"
267
+ ],
268
+ "description": "deterministic_required: identical inputs must produce identical outputs (temperature=0 or equivalent). controlled_variation: intentional A/B or seeded variation. creative_generation: open-ended generation acceptable."
269
+ },
270
+ "hybrid_architecture_intent": {
271
+ "type": "string",
272
+ "description": "Which components use deterministic rule-based logic vs AI/LLM? High-stakes actions (payment, legal notice, access revocation) must be deterministic."
273
+ },
274
+ "accountability_model": {
275
+ "type": "object",
276
+ "description": "Who owns AI decisions and how are they monitored post-launch.",
277
+ "properties": {
278
+ "decision_owner": {
279
+ "type": "string",
280
+ "description": "Accountable role for AI decisions in this feature."
281
+ },
282
+ "monitoring_metric": {
283
+ "type": "string",
284
+ "description": "KPI or metric used to detect degradation in production."
285
+ },
286
+ "review_cadence": {
287
+ "type": "string",
288
+ "description": "How often AI behavior is reviewed post-launch. E.g. 'weekly for 4 weeks, then monthly'."
289
+ },
290
+ "audit_log_requirements": {
291
+ "type": "string",
292
+ "description": "Immutable audit log spec: fields required per AI decision (model version, input summary, output, confidence, human intervention)."
293
+ }
294
+ },
295
+ "required": [
296
+ "decision_owner",
297
+ "monitoring_metric"
298
+ ]
299
+ },
300
+ "eu_ai_act_tier": {
301
+ "type": "string",
302
+ "enum": [
303
+ "high-risk",
304
+ "limited-risk",
305
+ "minimal-risk",
306
+ "not-applicable"
307
+ ],
308
+ "description": "EU AI Act risk tier classification. high-risk requires HITL, audit logging, conformity assessment, and Human Review Board availability. Must be classified before AC is locked."
309
+ },
310
+ "degradation_trigger": {
311
+ "type": "string",
312
+ "description": "Production degradation alert spec. E.g. 'If accuracy falls below 90% in any 7-day rolling window, raise P1 incident and suspend feature pending review.'"
313
+ }
314
+ },
315
+ "required": [
316
+ "behavioral_boundaries",
317
+ "eu_ai_act_tier"
318
+ ]
319
+ },
320
+ "assumption_register": {
321
+ "type": "array",
322
+ "description": "Risk-scored assumptions that underlie the requirements. Required for significant bets. Risk score = impact \u00d7 (6 \u2212 confidence). Highest-risk assumptions must be validated before build commitment. ASSUMPTION LOCK applies.",
323
+ "items": {
324
+ "type": "object",
325
+ "properties": {
326
+ "assumption": {
327
+ "type": "string",
328
+ "description": "What must be true for this requirement to be valid? State as a declarative belief."
329
+ },
330
+ "impact": {
331
+ "type": "integer",
332
+ "minimum": 1,
333
+ "maximum": 5,
334
+ "description": "If this assumption is wrong, how bad is the outcome? 1=trivial, 5=project-breaking."
335
+ },
336
+ "confidence": {
337
+ "type": "integer",
338
+ "minimum": 1,
339
+ "maximum": 5,
340
+ "description": "How much evidence supports this assumption being true? 1=pure guess, 5=verified fact."
341
+ },
342
+ "risk_score": {
343
+ "type": "number",
344
+ "description": "Computed as impact \u00d7 (6 \u2212 confidence). Range 1\u201325. Scores \u226515 require validation before build commitment."
345
+ },
346
+ "validation_method": {
347
+ "type": "string",
348
+ "description": "How will this assumption be validated? E.g. 'user interview', 'analytics query', 'spike', 'legal review'."
349
+ },
350
+ "status": {
351
+ "type": "string",
352
+ "enum": [
353
+ "pending",
354
+ "validated",
355
+ "invalidated",
356
+ "escalated"
357
+ ],
358
+ "description": "Current validation status. escalated = PM notified with build-cost comparison."
359
+ },
360
+ "outcome_note": {
361
+ "type": "string",
362
+ "description": "Result of validation or reason for escalation. Required when status is validated/invalidated/escalated."
363
+ }
364
+ },
365
+ "required": [
366
+ "assumption",
367
+ "impact",
368
+ "confidence",
369
+ "risk_score",
370
+ "status"
371
+ ]
372
+ }
373
+ },
374
+ "analytics_request": {
375
+ "type": "object",
376
+ "description": "Optional handoff block for Data Analyst \u2014 triggers data investigation request.",
377
+ "properties": {
378
+ "decision_supported": {
379
+ "type": "string",
380
+ "description": "What business decision will this data inform?"
381
+ },
382
+ "questions": {
383
+ "type": "array",
384
+ "items": {
385
+ "type": "string"
386
+ }
387
+ },
388
+ "proposed_metrics": {
389
+ "type": "array",
390
+ "items": {
391
+ "type": "string"
392
+ }
393
+ },
394
+ "segments": {
395
+ "type": "string"
396
+ },
397
+ "time_range": {
398
+ "type": "string"
399
+ },
400
+ "timezone": {
401
+ "type": "string"
402
+ },
403
+ "sources_known": {
404
+ "type": "string"
405
+ },
406
+ "constraints": {
407
+ "type": "string"
408
+ },
409
+ "out_of_scope": {
410
+ "type": "string"
411
+ }
412
+ }
413
+ },
414
+ "seo_content_request": {
415
+ "type": "object",
416
+ "description": "Optional handoff block for SEO Analyst \u2014 triggers content or discoverability work.",
417
+ "properties": {
418
+ "business_outcome": {
419
+ "type": "string"
420
+ },
421
+ "audience": {
422
+ "type": "string"
423
+ },
424
+ "site_or_channel": {
425
+ "type": "string"
426
+ },
427
+ "topic_angle": {
428
+ "type": "string"
429
+ },
430
+ "proposed_primary_keyword": {
431
+ "type": "string"
432
+ },
433
+ "conversion_or_cta_goal": {
434
+ "type": "string"
435
+ },
436
+ "must_link_to": {
437
+ "type": "array",
438
+ "items": {
439
+ "type": "string"
440
+ },
441
+ "description": "High-value paths (product, property, guides) BA wants emphasized."
442
+ },
443
+ "constraints": {
444
+ "type": "string"
445
+ },
446
+ "out_of_scope": {
447
+ "type": "string"
448
+ }
449
+ }
450
+ },
451
+ "research_request": {
452
+ "type": "object",
453
+ "description": "Optional handoff block for Researcher \u2014 triggers domain or compliance research. depth must align with researcher.md depth_mode: deep (10+ rounds, default) or scoped (3+ rounds, requires scope_waiver_note).",
454
+ "properties": {
455
+ "research_question": {
456
+ "type": "string",
457
+ "description": "Primary research question (singular framing). Use questions[] for numbered multi-part requests."
458
+ },
459
+ "questions": {
460
+ "type": "array",
461
+ "items": {
462
+ "type": "string"
463
+ },
464
+ "description": "Numbered research questions and boundaries. Preferred over research_question for multi-part requests."
465
+ },
466
+ "domain": {
467
+ "type": "string"
468
+ },
469
+ "depth": {
470
+ "type": "string",
471
+ "enum": [
472
+ "deep",
473
+ "scoped"
474
+ ],
475
+ "description": "deep: 10+ research rounds (default). scoped: minimum 3 rounds \u2014 requires scope_waiver_note explaining why deep is not needed."
476
+ },
477
+ "scope_waiver_note": {
478
+ "type": "string",
479
+ "description": "Required when depth = scoped. Explains why deep discovery is not needed for this request."
480
+ },
481
+ "output_contract": {
482
+ "type": "string",
483
+ "enum": [
484
+ "research-report.json",
485
+ "markdown-brief"
486
+ ],
487
+ "description": "Expected output format from Researcher. research-report.json for machine handoff; markdown-brief for quick synthesis."
488
+ },
489
+ "deadline": {
490
+ "type": "string",
491
+ "format": "date"
492
+ },
493
+ "constraints": {
494
+ "type": "string"
495
+ }
496
+ }
497
+ },
498
+ "ai_interaction_requirements": {
499
+ "type": "object",
500
+ "description": "2026 PM Standard: Define HITL and fallback bounds.",
501
+ "properties": {
502
+ "human_in_the_loop_triggers": {
503
+ "type": "array",
504
+ "items": {
505
+ "type": "string"
506
+ }
507
+ },
508
+ "fallback_behavior": {
509
+ "type": "string"
510
+ }
511
+ }
512
+ },
513
+ "blast_radius_assessment": {
514
+ "type": "object",
515
+ "description": "Assessment of potential blast radius and failure domain impact.",
516
+ "properties": {
517
+ "impact_tier": {
518
+ "type": "string",
519
+ "enum": [
520
+ "isolated_component",
521
+ "service_level",
522
+ "cross_service",
523
+ "critical_infrastructure"
524
+ ]
525
+ },
526
+ "failure_domains": {
527
+ "type": "array",
528
+ "items": {
529
+ "type": "string"
530
+ },
531
+ "description": "Bounded contexts or failure domains exposed to this change."
532
+ },
533
+ "downstream_consumers_affected": {
534
+ "type": "array",
535
+ "items": {
536
+ "type": "string"
537
+ },
538
+ "description": "Services, queues, or client apps dependent on changed behavior."
539
+ },
540
+ "data_blast_radius": {
541
+ "type": "string",
542
+ "enum": [
543
+ "read_only",
544
+ "isolated_write",
545
+ "schema_migration",
546
+ "irreversible_deletion"
547
+ ]
548
+ }
549
+ },
550
+ "required": [
551
+ "impact_tier",
552
+ "failure_domains"
553
+ ]
554
+ },
555
+ "sandbox_isolation_tier": {
556
+ "type": "string",
557
+ "enum": [
558
+ "tier_0_ephemeral_container",
559
+ "tier_1_isolated_microvm",
560
+ "tier_2_airgapped_sandbox",
561
+ "local_dev_workspace"
562
+ ],
563
+ "description": "Required execution environment isolation tier for code generation and testing."
564
+ },
565
+ "test_strategy_ref": {
566
+ "type": "object",
567
+ "description": "Testing strategy standards for this feature ticket.",
568
+ "properties": {
569
+ "red_green_required": {
570
+ "type": "boolean"
571
+ },
572
+ "mutation_score_threshold_pct": {
573
+ "type": "number",
574
+ "minimum": 0,
575
+ "maximum": 100
576
+ },
577
+ "reproduction_test_required": {
578
+ "type": "boolean"
579
+ }
580
+ },
581
+ "required": [
582
+ "red_green_required"
583
+ ]
584
+ },
585
+ "vertical_slice_metadata": {
586
+ "type": "object",
587
+ "description": "Lean/Agile vertical slicing metadata according to SOTA decomposition patterns (Elephant Carpentry).",
588
+ "properties": {
589
+ "slice_pattern": {
590
+ "type": "string",
591
+ "enum": [
592
+ "workflow_step",
593
+ "business_rule_variation",
594
+ "data_channel",
595
+ "user_persona",
596
+ "major_effort_vs_variation",
597
+ "crud_operation",
598
+ "non_functional_sla",
599
+ "reversibility_tier"
600
+ ],
601
+ "description": "Primary slicing pattern used to decompose the feature."
602
+ },
603
+ "invest_criteria": {
604
+ "type": "object",
605
+ "properties": {
606
+ "independent": {
607
+ "type": "boolean"
608
+ },
609
+ "negotiable": {
610
+ "type": "boolean"
611
+ },
612
+ "valuable": {
613
+ "type": "boolean"
614
+ },
615
+ "estimable": {
616
+ "type": "boolean"
617
+ },
618
+ "small": {
619
+ "type": "boolean"
620
+ },
621
+ "testable": {
622
+ "type": "boolean"
623
+ }
624
+ },
625
+ "required": [
626
+ "independent",
627
+ "valuable",
628
+ "testable"
629
+ ]
630
+ },
631
+ "walking_skeleton": {
632
+ "type": "boolean",
633
+ "description": "Whether this slice serves as a thin end-to-end tracer bullet across all layers (UI, API, DB)."
634
+ },
635
+ "slice_order": {
636
+ "type": "integer",
637
+ "minimum": 1,
638
+ "description": "Sequential delivery sequence for this vertical slice."
639
+ }
640
+ }
641
+ },
642
+ "event_storming_context": {
643
+ "type": "object",
644
+ "description": "Domain-Driven Design (DDD) discovery context derived from collaborative Event Storming workshops.",
645
+ "properties": {
646
+ "bounded_context": {
647
+ "type": "string",
648
+ "description": "Explicit bounded context this feature belongs to."
649
+ },
650
+ "aggregate_root": {
651
+ "type": "string",
652
+ "description": "Aggregate root enforcing transactional consistency and invariants."
653
+ },
654
+ "domain_events": {
655
+ "type": "array",
656
+ "items": {
657
+ "type": "string"
658
+ },
659
+ "description": "Immutable business events emitted in past tense (e.g. OrderPlaced, PaymentSettled)."
660
+ },
661
+ "commands": {
662
+ "type": "array",
663
+ "items": {
664
+ "type": "string"
665
+ },
666
+ "description": "User or system intents phrased in present imperative (e.g. SubmitOrder, SettlePayment)."
667
+ },
668
+ "read_models": {
669
+ "type": "array",
670
+ "items": {
671
+ "type": "string"
672
+ },
673
+ "description": "Query views and projections supporting decisions or UI display."
674
+ },
675
+ "business_policies": {
676
+ "type": "array",
677
+ "items": {
678
+ "type": "object",
679
+ "properties": {
680
+ "whenever_event": {
681
+ "type": "string"
682
+ },
683
+ "then_command": {
684
+ "type": "string"
685
+ }
686
+ },
687
+ "required": [
688
+ "whenever_event",
689
+ "then_command"
690
+ ]
691
+ },
692
+ "description": "Reactive business policies (Whenever [Event] Then [Command])."
693
+ }
694
+ }
695
+ },
696
+ "agentic_feature_spec": {
697
+ "type": "object",
698
+ "description": "Governance and behavioral requirements for multi-agent workflows and MCP tool access.",
699
+ "properties": {
700
+ "autonomy_level": {
701
+ "type": "string",
702
+ "enum": [
703
+ "L1_assistive",
704
+ "L2_task_based",
705
+ "L3_conditional",
706
+ "L4_high_autonomy",
707
+ "L5_unbounded"
708
+ ],
709
+ "description": "Declared autonomy level. L3 (Conditional) is enterprise ceiling; L4/L5 requires special authorization."
710
+ },
711
+ "governance_justified_ceiling": {
712
+ "type": "string",
713
+ "description": "Justification for declared autonomy level based on reversibility and audit capabilities."
714
+ },
715
+ "agent_roles": {
716
+ "type": "array",
717
+ "items": {
718
+ "type": "object",
719
+ "properties": {
720
+ "role_name": {
721
+ "type": "string"
722
+ },
723
+ "authority_scope": {
724
+ "type": "string"
725
+ },
726
+ "tool_allowlist": {
727
+ "type": "array",
728
+ "items": {
729
+ "type": "string"
730
+ }
731
+ },
732
+ "escalation_threshold": {
733
+ "type": "string"
734
+ }
735
+ },
736
+ "required": [
737
+ "role_name",
738
+ "authority_scope"
739
+ ]
740
+ }
741
+ },
742
+ "mcp_tool_permissions": {
743
+ "type": "array",
744
+ "items": {
745
+ "type": "object",
746
+ "properties": {
747
+ "tool_name": {
748
+ "type": "string"
749
+ },
750
+ "server_id": {
751
+ "type": "string"
752
+ },
753
+ "permission_level": {
754
+ "type": "string",
755
+ "enum": [
756
+ "read",
757
+ "write",
758
+ "delete",
759
+ "execute"
760
+ ]
761
+ },
762
+ "credential_mechanism": {
763
+ "type": "string"
764
+ }
765
+ },
766
+ "required": [
767
+ "tool_name",
768
+ "permission_level"
769
+ ]
770
+ }
771
+ },
772
+ "forbidden_zones": {
773
+ "type": "array",
774
+ "items": {
775
+ "type": "string"
776
+ },
777
+ "description": "Hard actions the agent must never take regardless of user prompting."
778
+ },
779
+ "kill_switch": {
780
+ "type": "object",
781
+ "properties": {
782
+ "stop_mechanism": {
783
+ "type": "string"
784
+ },
785
+ "credential_revocation_sla": {
786
+ "type": "string"
787
+ },
788
+ "authority_to_invoke": {
789
+ "type": "string"
790
+ },
791
+ "state_preservation": {
792
+ "type": "string"
793
+ }
794
+ },
795
+ "required": [
796
+ "stop_mechanism",
797
+ "authority_to_invoke"
798
+ ]
799
+ },
800
+ "agent_registry_entry_required": {
801
+ "type": "boolean",
802
+ "description": "Whether an inventory registration gate must pass prior to production deployment."
803
+ }
804
+ },
805
+ "required": [
806
+ "autonomy_level",
807
+ "governance_justified_ceiling",
808
+ "kill_switch"
809
+ ]
810
+ },
811
+ "responsible_ai_spec": {
812
+ "type": "object",
813
+ "description": "Responsible AI requirements covering fairness, bias prevention, and explainability.",
814
+ "properties": {
815
+ "four_fifths_rule_dir_threshold": {
816
+ "type": "number",
817
+ "minimum": 0.8,
818
+ "maximum": 1.0,
819
+ "description": "Minimum Disparate Impact Ratio threshold (EEOC 80% rule)."
820
+ },
821
+ "protected_groups": {
822
+ "type": "array",
823
+ "items": {
824
+ "type": "string"
825
+ }
826
+ },
827
+ "disaggregated_error_rate_bounds": {
828
+ "type": "string",
829
+ "description": "Maximum allowable deviation of subgroup FNR/FPR from aggregate mean."
830
+ },
831
+ "xai_requirements": {
832
+ "type": "object",
833
+ "properties": {
834
+ "explanation_type": {
835
+ "type": "string",
836
+ "enum": [
837
+ "contrastive",
838
+ "feature_attribution",
839
+ "counterfactual"
840
+ ]
841
+ },
842
+ "intelligibility_criterion": {
843
+ "type": "string"
844
+ },
845
+ "faithfulness_criterion": {
846
+ "type": "string"
847
+ },
848
+ "actionability_criterion": {
849
+ "type": "string"
850
+ },
851
+ "inline_at_decision_point": {
852
+ "type": "boolean"
853
+ }
854
+ },
855
+ "required": [
856
+ "explanation_type",
857
+ "intelligibility_criterion",
858
+ "faithfulness_criterion",
859
+ "actionability_criterion"
860
+ ]
861
+ }
862
+ }
863
+ },
864
+ "nfr_envelope": {
865
+ "type": "object",
866
+ "description": "Non-Functional Requirements envelope defining performance, scalability, and regulatory bounds.",
867
+ "properties": {
868
+ "latency_p99_ms": {
869
+ "type": "number",
870
+ "description": "Maximum allowable 99th percentile response time in milliseconds."
871
+ },
872
+ "max_error_rate_pct": {
873
+ "type": "number",
874
+ "minimum": 0,
875
+ "maximum": 100,
876
+ "description": "Maximum acceptable error rate percentage."
877
+ },
878
+ "data_retention_days": {
879
+ "type": "integer",
880
+ "description": "Mandatory audit or data retention period in days."
881
+ },
882
+ "gdpr_article_6_legal_basis": {
883
+ "type": "string",
884
+ "enum": [
885
+ "consent",
886
+ "contract",
887
+ "legal_obligation",
888
+ "vital_interests",
889
+ "public_task",
890
+ "legitimate_interests",
891
+ "not_applicable"
892
+ ]
893
+ },
894
+ "right_to_erasure_propagation_sla": {
895
+ "type": "string",
896
+ "description": "Target SLA for full erasure propagation across downstream datastores."
897
+ },
898
+ "dpia_required": {
899
+ "type": "boolean",
900
+ "description": "Whether a formal Data Protection Impact Assessment is required prior to build."
901
+ }
902
+ }
903
+ }
904
+ },
905
+ "required": [
906
+ "contract_type",
907
+ "title",
908
+ "type",
909
+ "acceptance_criteria"
910
+ ],
911
+ "examples": [
912
+ {
913
+ "contract_type": "feature-ticket",
914
+ "ticket_id": "2026-06-12-change-store-order-cod",
915
+ "created_at": "2026-06-12T09:00:00+07:00",
916
+ "title": "Change Order Assignment Logic for COD Store Orders",
917
+ "type": "feature",
918
+ "priority": "high",
919
+ "business_value": "Reduce failed COD delivery assignments by routing store orders to the nearest active store with COD capability, instead of the default warehouse courier route.",
920
+ "preserved_behavior": "Non-COD orders continue to use existing auto-assign logic unchanged.",
921
+ "changed_behavior": "COD orders with a store_id set are routed to the store's designated courier, bypassing warehouse assignment.",
922
+ "actors": [
923
+ "Order Management System",
924
+ "Store Manager",
925
+ "Delivery Courier"
926
+ ],
927
+ "business_rules": [
928
+ {
929
+ "id": "BR-01",
930
+ "rule": "A COD order with store_id must be assigned to a courier linked to that store.",
931
+ "exceptions": "If no active courier is linked to the store, fall back to warehouse assignment and log a warning."
932
+ }
933
+ ],
934
+ "acceptance_criteria": [
935
+ {
936
+ "scenario": "COD order assigned to store courier",
937
+ "given": "A COD order exists with store_id=42 and store 42 has an active courier",
938
+ "when": "The auto-assign command runs",
939
+ "then": "The order is assigned to the store 42 courier, not the warehouse courier"
940
+ },
941
+ {
942
+ "scenario": "COD order with no store courier falls back",
943
+ "given": "A COD order exists with store_id=99 and store 99 has no active courier",
944
+ "when": "The auto-assign command runs",
945
+ "then": "The order is assigned to the warehouse courier and a warning is logged"
946
+ },
947
+ {
948
+ "scenario": "Non-COD order unaffected",
949
+ "given": "A non-COD order exists",
950
+ "when": "The auto-assign command runs",
951
+ "then": "The order follows the existing auto-assign logic without entering the new branch"
952
+ }
953
+ ],
954
+ "edge_cases": [
955
+ "store_id is set but store record is soft-deleted",
956
+ "COD order arrives during store courier capacity blackout window"
957
+ ],
958
+ "assumption_register": [
959
+ {
960
+ "assumption": "Store courier lookup API returns results within 200ms p99 under current load",
961
+ "impact": 4,
962
+ "confidence": 3,
963
+ "risk_score": 12,
964
+ "validation_method": "Load test against staging Store service API with 2x current peak traffic",
965
+ "status": "pending"
966
+ },
967
+ {
968
+ "assumption": "Store Manager team will accept new courier assignment notifications without process change",
969
+ "impact": 3,
970
+ "confidence": 2,
971
+ "risk_score": 12,
972
+ "validation_method": "Interview 3 Store Managers before sprint planning",
973
+ "status": "validated",
974
+ "outcome_note": "Confirmed in stakeholder session 2026-06-10 \u2014 Store Managers prefer automated routing"
975
+ }
976
+ ],
977
+ "dependencies": [
978
+ "Store service API for courier lookup"
979
+ ],
980
+ "out_of_scope": [
981
+ "COD payment reconciliation",
982
+ "Store courier capacity management"
983
+ ],
984
+ "open_questions": [
985
+ "Should we notify the store manager when fallback occurs?"
986
+ ],
987
+ "process_impact": "Store operations team will see different courier assignments for COD orders starting from deploy date.",
988
+ "research_request": {
989
+ "questions": [
990
+ "What are the industry-standard SLA expectations for COD store courier assignment in Southeast Asian e-commerce platforms?",
991
+ "Are there regulatory requirements for COD assignment logging in Vietnam logistics regulations 2026?"
992
+ ],
993
+ "domain": "SEA e-commerce logistics, Vietnam COD regulations",
994
+ "depth": "scoped",
995
+ "scope_waiver_note": "Domain is narrow and well-defined; 3 targeted research passes sufficient before locking courier SLA AC.",
996
+ "output_contract": "research-report.json",
997
+ "deadline": "2026-06-15"
998
+ },
999
+ "blast_radius_assessment": {
1000
+ "impact_tier": "isolated_component",
1001
+ "failure_domains": [
1002
+ "order_routing"
1003
+ ],
1004
+ "downstream_consumers_affected": [
1005
+ "courier-mobile-app"
1006
+ ],
1007
+ "data_blast_radius": "isolated_write"
1008
+ },
1009
+ "sandbox_isolation_tier": "tier_0_ephemeral_container",
1010
+ "test_strategy_ref": {
1011
+ "red_green_required": true,
1012
+ "mutation_score_threshold_pct": 75.0,
1013
+ "reproduction_test_required": false
1014
+ }
1015
+ },
1016
+ {
1017
+ "contract_type": "feature-ticket",
1018
+ "ticket_id": "2026-06-13-ai-credit-scoring-assistant",
1019
+ "created_at": "2026-06-13T10:00:00+07:00",
1020
+ "title": "AI Credit Scoring Assistant for Loan Applications",
1021
+ "type": "feature",
1022
+ "priority": "critical",
1023
+ "business_value": "Reduce manual credit review time by 40% while maintaining accuracy above 95% through AI-assisted preliminary scoring with mandatory human confirmation for all decisions.",
1024
+ "actors": [
1025
+ "Loan Applicant",
1026
+ "Credit Officer",
1027
+ "AI Scoring Service",
1028
+ "Risk Management System"
1029
+ ],
1030
+ "acceptance_criteria": [
1031
+ {
1032
+ "scenario": "AI score produced with high confidence",
1033
+ "given": "A complete loan application with all required fields",
1034
+ "when": "The AI scoring service processes the application",
1035
+ "then": "A preliminary score and confidence rating are produced within 3 seconds"
1036
+ },
1037
+ {
1038
+ "scenario": "Low-confidence application routed to human review",
1039
+ "given": "AI confidence score < 0.85 for any application",
1040
+ "when": "The scoring service completes processing",
1041
+ "then": "Application is paused, status set to Under Review, and Credit Officer notified within 15 minutes"
1042
+ }
1043
+ ],
1044
+ "ai_feature_spec": {
1045
+ "behavioral_boundaries": "AI must produce a credit score band (A/B/C/D/F) and confidence score. It must not approve or reject loans autonomously. All preliminary scores require Credit Officer confirmation. Response must contain no hallucinated applicant data and must reference only verified financial fields from the application.",
1046
+ "probabilistic_ac": {
1047
+ "threshold_pct": 95,
1048
+ "population": "Complete loan applications passing input validation",
1049
+ "window_n": 200,
1050
+ "evaluation_method": "human-review-panel",
1051
+ "judge": "Senior Credit Officer panel reviewing 200 sampled applications weekly against ground truth"
1052
+ },
1053
+ "hitl_trigger": {
1054
+ "condition": "AI confidence score < 0.85 OR loan_amount > 500,000,000 VND OR applicant_category = 'first-time-borrower'",
1055
+ "action": "Pause decision, set status to 'Under Review', notify assigned Credit Officer via in-app alert and email",
1056
+ "responsible_role": "Credit Officer (primary), Risk Manager (escalation if no response in 8h)",
1057
+ "sla": "Credit Officer must confirm or override within 24h; Risk Manager escalation within 32h",
1058
+ "audit_log_required": true,
1059
+ "audit_log_fields": [
1060
+ "model_version",
1061
+ "application_id",
1062
+ "input_field_hash",
1063
+ "ai_score_band",
1064
+ "ai_confidence",
1065
+ "hitl_trigger_reason",
1066
+ "credit_officer_id",
1067
+ "human_decision",
1068
+ "human_decision_timestamp",
1069
+ "override_reason"
1070
+ ]
1071
+ },
1072
+ "non_determinism": "deterministic_required",
1073
+ "hybrid_architecture_intent": "AI/LLM handles preliminary scoring and risk factor summarization only. Deterministic rule engine handles: final approval/rejection execution, rate calculation, regulatory compliance checks, and all database writes for approved loans.",
1074
+ "accountability_model": {
1075
+ "decision_owner": "Credit Officer (all decisions); Risk Manager (escalated decisions); VP Credit (policy exceptions)",
1076
+ "monitoring_metric": "Weekly accuracy rate vs ground truth; HITL trigger rate; Credit Officer override rate",
1077
+ "review_cadence": "Weekly for first 8 weeks post-launch, then bi-weekly; quarterly model performance review",
1078
+ "audit_log_requirements": "Immutable append-only log per decision: model_version, input_field_hash, ai_score_band, ai_confidence, human_decision, override_reason, timestamps. Retained 7 years per financial regulation."
1079
+ },
1080
+ "eu_ai_act_tier": "high-risk",
1081
+ "degradation_trigger": "If weekly accuracy rate falls below 93% for any 7-day window, raise P1 incident, suspend AI scoring (revert to fully manual), and notify Risk Manager and VP Credit within 2h."
1082
+ },
1083
+ "assumption_register": [
1084
+ {
1085
+ "assumption": "Credit Officers will adopt AI-assisted workflow without significant process resistance",
1086
+ "impact": 5,
1087
+ "confidence": 2,
1088
+ "risk_score": 20,
1089
+ "validation_method": "Structured interview with 5 Credit Officers + 2-week pilot with shadow mode (AI scores hidden from officers until after their decision)",
1090
+ "status": "escalated",
1091
+ "outcome_note": "Risk score 20 \u2014 escalated to PM 2026-06-12. Pilot proposed before sprint commitment. Build commitment deferred pending pilot results."
1092
+ },
1093
+ {
1094
+ "assumption": "AI model accuracy \u226595% is achievable with current training data volume (12 months)",
1095
+ "impact": 5,
1096
+ "confidence": 3,
1097
+ "risk_score": 15,
1098
+ "validation_method": "Offline evaluation on 6-month holdout dataset before feature build starts",
1099
+ "status": "pending"
1100
+ }
1101
+ ],
1102
+ "out_of_scope": [
1103
+ "AI model training and retraining pipeline",
1104
+ "Credit score appeal process",
1105
+ "Regulatory filing for EU AI Act conformity assessment"
1106
+ ],
1107
+ "open_questions": [
1108
+ "Has legal confirmed EU AI Act high-risk classification and conformity assessment timeline?",
1109
+ "Who is the designated Human Review Board required under EU AI Act Article 14?"
1110
+ ],
1111
+ "blast_radius_assessment": {
1112
+ "impact_tier": "isolated_component",
1113
+ "failure_domains": [
1114
+ "order_routing"
1115
+ ],
1116
+ "downstream_consumers_affected": [
1117
+ "courier-mobile-app"
1118
+ ],
1119
+ "data_blast_radius": "isolated_write"
1120
+ },
1121
+ "sandbox_isolation_tier": "tier_0_ephemeral_container",
1122
+ "test_strategy_ref": {
1123
+ "red_green_required": true,
1124
+ "mutation_score_threshold_pct": 75.0,
1125
+ "reproduction_test_required": false
1126
+ }
1127
+ },
1128
+ {
1129
+ "contract_type": "feature-ticket",
1130
+ "ticket_id": "2026-10-05-agentic-reconciliation-assistant",
1131
+ "created_at": "2026-10-05T09:00:00+07:00",
1132
+ "title": "Autonomous Multi-Agent Settlement Reconciliation with MCP Tool Auditing",
1133
+ "type": "feature",
1134
+ "priority": "high",
1135
+ "business_value": "Automate 85% of multi-currency ledger reconciliation anomalies while maintaining double-entry conservation and full EU AI Act Article 50 transparency.",
1136
+ "preserved_behavior": "Manual reconciliation workbench remains accessible with identical permission models.",
1137
+ "changed_behavior": "Reconciliation Coordinator agent extracts ledger batches, analyzes discrepancy patterns, and drafts balancing journal entries for human sign-off.",
1138
+ "actors": [
1139
+ "Treasury Operations Officer",
1140
+ "Reconciliation Coordinator Agent",
1141
+ "Ledger Query Specialist Agent",
1142
+ "Core Banking Settlement Engine"
1143
+ ],
1144
+ "business_rules": [
1145
+ {
1146
+ "id": "BR-REC-01",
1147
+ "rule": "Total debit legs must equal total credit legs across all balancing journal transactions.",
1148
+ "exceptions": "Exchange rate micro-rounding under 0.01 USD is absorbed into FX rounding reserve."
1149
+ }
1150
+ ],
1151
+ "acceptance_criteria": [
1152
+ {
1153
+ "scenario": "Balanced anomaly reconciliation with automated journal draft",
1154
+ "given": "An unreconciled ledger transaction batch exists with discrepancy equal to 12.50 USD",
1155
+ "when": "The Reconciliation Coordinator agent analyzes the transaction legs",
1156
+ "then": "A balancing journal voucher is drafted and presented to Treasury Officer with confidence score and feature attribution",
1157
+ "tags": [
1158
+ "@core",
1159
+ "@smoke",
1160
+ "@p1"
1161
+ ],
1162
+ "and_conditions": [
1163
+ "Treasury Officer receives in-app approval notification within 30 seconds",
1164
+ "Zero automated ledger balance mutations occur prior to explicit human sign-off"
1165
+ ],
1166
+ "stateful_invariants": [
1167
+ "Sum(Debits) == Sum(Credits) across all proposed journal legs"
1168
+ ],
1169
+ "failure_guarantee": "On agent execution failure or timeout, reconciliation batch state reverts to PENDING_MANUAL_REVIEW with zero partial state committed"
1170
+ }
1171
+ ],
1172
+ "vertical_slice_metadata": {
1173
+ "slice_pattern": "workflow_step",
1174
+ "invest_criteria": {
1175
+ "independent": true,
1176
+ "negotiable": true,
1177
+ "valuable": true,
1178
+ "estimable": true,
1179
+ "small": true,
1180
+ "testable": true
1181
+ },
1182
+ "walking_skeleton": true,
1183
+ "slice_order": 1
1184
+ },
1185
+ "event_storming_context": {
1186
+ "bounded_context": "treasury_reconciliation",
1187
+ "aggregate_root": "ReconciliationBatch",
1188
+ "domain_events": [
1189
+ "ReconciliationBatchIngested",
1190
+ "DiscrepancyAnalyzed",
1191
+ "BalancingVoucherDrafted",
1192
+ "ReconciliationCompleted"
1193
+ ],
1194
+ "commands": [
1195
+ "IngestReconciliationBatch",
1196
+ "DraftBalancingVoucher",
1197
+ "ApproveReconciliationVoucher"
1198
+ ],
1199
+ "read_models": [
1200
+ "UnreconciledBatchSummaryView"
1201
+ ],
1202
+ "business_policies": [
1203
+ {
1204
+ "whenever_event": "DiscrepancyAnalyzed",
1205
+ "then_command": "DraftBalancingVoucher"
1206
+ }
1207
+ ]
1208
+ },
1209
+ "agentic_feature_spec": {
1210
+ "autonomy_level": "L3_conditional",
1211
+ "governance_justified_ceiling": "Agent coordinates data extraction, discrepancy correlation, and draft proposal generation; write actions are strictly gated by human approval.",
1212
+ "agent_roles": [
1213
+ {
1214
+ "role_name": "CoordinatorAgent",
1215
+ "authority_scope": "Decomposes batch analysis and routes tasks to Ledger Specialist",
1216
+ "tool_allowlist": [
1217
+ "ledger_query",
1218
+ "fx_rate_lookup"
1219
+ ],
1220
+ "escalation_threshold": "Confidence score < 0.90"
1221
+ }
1222
+ ],
1223
+ "mcp_tool_permissions": [
1224
+ {
1225
+ "tool_name": "ledger_query",
1226
+ "server_id": "mcp-core-banking-gateway",
1227
+ "permission_level": "read",
1228
+ "credential_mechanism": "OAuth2 scoped JWT token evaluated per invocation"
1229
+ },
1230
+ {
1231
+ "tool_name": "draft_journal_voucher",
1232
+ "server_id": "mcp-core-banking-gateway",
1233
+ "permission_level": "write",
1234
+ "credential_mechanism": "Short-lived mTLS client certificate"
1235
+ }
1236
+ ],
1237
+ "forbidden_zones": [
1238
+ "Direct execution of ledger settlement without human approval signature",
1239
+ "Modification of historical closed financial periods",
1240
+ "Export of raw unmasked banking data outside corporate VPC"
1241
+ ],
1242
+ "kill_switch": {
1243
+ "stop_mechanism": "Emergency API token revocation endpoint and webhook pause signal",
1244
+ "credential_revocation_sla": "Under 30 seconds",
1245
+ "authority_to_invoke": "Treasury Operations Lead, On-Call Security Engineer, Head of Compliance",
1246
+ "state_preservation": "In-flight batch state persisted to S3 cold storage; running agent workers terminate gracefully within 10 seconds"
1247
+ },
1248
+ "agent_registry_entry_required": true
1249
+ },
1250
+ "responsible_ai_spec": {
1251
+ "four_fifths_rule_dir_threshold": 0.85,
1252
+ "protected_groups": [
1253
+ "merchant_tier_small_business",
1254
+ "merchant_tier_enterprise"
1255
+ ],
1256
+ "disaggregated_error_rate_bounds": "False discovery rate for anomaly classification must not deviate by > 3% across merchant tiers.",
1257
+ "xai_requirements": {
1258
+ "explanation_type": "contrastive",
1259
+ "intelligibility_criterion": "Explanations readable by non-technical Treasury clerks in plain accounting terminology.",
1260
+ "faithfulness_criterion": "Attribution scores strictly computed from SHAP values against model features.",
1261
+ "actionability_criterion": "Specifies which specific transaction leg caused the reconciliation imbalance.",
1262
+ "inline_at_decision_point": true
1263
+ }
1264
+ },
1265
+ "nfr_envelope": {
1266
+ "latency_p99_ms": 450.0,
1267
+ "max_error_rate_pct": 0.05,
1268
+ "data_retention_days": 2555,
1269
+ "gdpr_article_6_legal_basis": "legal_obligation",
1270
+ "right_to_erasure_propagation_sla": "Not applicable - Statutory financial audit retention exemption",
1271
+ "dpia_required": false
1272
+ },
1273
+ "blast_radius_assessment": {
1274
+ "impact_tier": "service_level",
1275
+ "failure_domains": [
1276
+ "treasury_reconciliation",
1277
+ "core_ledger"
1278
+ ],
1279
+ "downstream_consumers_affected": [
1280
+ "treasury-operations-portal",
1281
+ "general-ledger-export-service"
1282
+ ],
1283
+ "data_blast_radius": "isolated_write"
1284
+ },
1285
+ "sandbox_isolation_tier": "tier_1_isolated_microvm",
1286
+ "test_strategy_ref": {
1287
+ "red_green_required": true,
1288
+ "mutation_score_threshold_pct": 80.0,
1289
+ "reproduction_test_required": true
1290
+ }
1291
+ }
1292
+ ]
1293
+ }