@atlashub/smartstack-cli 4.18.0 → 4.19.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 (160) hide show
  1. package/package.json +1 -1
  2. package/templates/agents/ba-reader.md +86 -80
  3. package/templates/agents/ba-writer.md +318 -415
  4. package/templates/agents/docs-context-reader.md +3 -3
  5. package/templates/mcp-scaffolding/frontend/nav-routes.ts.hbs +133 -0
  6. package/templates/mcp-scaffolding/frontend/routes.tsx.hbs +126 -0
  7. package/templates/skills/apex/SKILL.md +29 -16
  8. package/templates/skills/apex/_shared.md +62 -9
  9. package/templates/skills/apex/references/analysis-methods.md +8 -6
  10. package/templates/skills/apex/references/challenge-questions.md +5 -5
  11. package/templates/skills/apex/references/core-seed-data.md +68 -45
  12. package/templates/skills/apex/references/frontend-route-wiring-app-tsx.md +26 -21
  13. package/templates/skills/apex/references/parallel-execution.md +156 -0
  14. package/templates/skills/apex/references/person-extension-pattern.md +12 -12
  15. package/templates/skills/apex/references/post-checks.md +1748 -1726
  16. package/templates/skills/apex/references/smartstack-api.md +63 -57
  17. package/templates/skills/apex/references/smartstack-frontend-compliance.md +594 -0
  18. package/templates/skills/apex/references/smartstack-frontend.md +1246 -1842
  19. package/templates/skills/apex/references/smartstack-layers.md +98 -145
  20. package/templates/skills/apex/steps/step-00-init.md +30 -6
  21. package/templates/skills/apex/steps/step-01-analyze.md +27 -23
  22. package/templates/skills/apex/steps/step-02-plan.md +12 -12
  23. package/templates/skills/apex/steps/step-03-execute.md +198 -143
  24. package/templates/skills/apex/steps/step-04-examine.md +24 -93
  25. package/templates/skills/apex/steps/step-05-deep-review.md +16 -16
  26. package/templates/skills/apex/steps/step-06-resolve.md +9 -9
  27. package/templates/skills/apex/steps/step-07-tests.md +3 -1
  28. package/templates/skills/apex/steps/step-08-run-tests.md +1 -1
  29. package/templates/skills/business-analyse/SKILL.md +182 -301
  30. package/templates/skills/business-analyse/_shared.md +119 -336
  31. package/templates/skills/business-analyse/html/ba-interactive.html +703 -82
  32. package/templates/skills/business-analyse/html/build-html.js +41 -3
  33. package/templates/skills/business-analyse/html/src/partials/cadrage-context.html +34 -0
  34. package/templates/skills/business-analyse/html/src/partials/cadrage-risks.html +48 -0
  35. package/templates/skills/business-analyse/html/src/partials/cadrage-scope.html +49 -0
  36. package/templates/skills/business-analyse/html/src/partials/cadrage-stakeholders.html +55 -0
  37. package/templates/skills/business-analyse/html/src/partials/cadrage-success.html +34 -0
  38. package/templates/skills/business-analyse/html/src/partials/consol-datamodel.html +8 -0
  39. package/templates/skills/business-analyse/html/src/partials/consol-flows.html +29 -0
  40. package/templates/skills/business-analyse/html/src/partials/consol-interactions.html +8 -0
  41. package/templates/skills/business-analyse/html/src/partials/consol-permissions.html +8 -0
  42. package/templates/skills/business-analyse/html/src/partials/decomp-dependencies.html +38 -0
  43. package/templates/skills/business-analyse/html/src/partials/decomp-modules.html +51 -0
  44. package/templates/skills/business-analyse/html/src/partials/handoff-summary.html +24 -0
  45. package/templates/skills/business-analyse/html/src/partials/module-spec-container.html +4 -0
  46. package/templates/skills/business-analyse/html/src/scripts/01-data-init.js +17 -1
  47. package/templates/skills/business-analyse/html/src/scripts/02-navigation.js +31 -5
  48. package/templates/skills/business-analyse/html/src/scripts/05-render-specs.js +100 -63
  49. package/templates/skills/business-analyse/html/src/scripts/06-render-mockups.js +372 -0
  50. package/templates/skills/business-analyse/html/src/scripts/10-comments.js +41 -13
  51. package/templates/skills/business-analyse/html/src/styles/09-mockups-html.css +136 -0
  52. package/templates/skills/business-analyse/patterns/suggestion-catalog.md +7 -5
  53. package/templates/skills/business-analyse/questionnaire/02-stakeholders-scope.md +142 -0
  54. package/templates/skills/business-analyse/questionnaire/03-data-ui.md +94 -0
  55. package/templates/skills/business-analyse/questionnaire/04-risks-metrics.md +150 -0
  56. package/templates/skills/business-analyse/questionnaire/05-cross-module.md +69 -0
  57. package/templates/skills/business-analyse/questionnaire.md +23 -280
  58. package/templates/skills/business-analyse/react/application-viewer.md +2 -2
  59. package/templates/skills/business-analyse/react/components.md +4 -4
  60. package/templates/skills/business-analyse/react/i18n-template.md +1 -1
  61. package/templates/skills/business-analyse/react/schema.md +14 -14
  62. package/templates/skills/business-analyse/references/acceptance-criteria.md +21 -21
  63. package/templates/skills/business-analyse/references/analysis-semantic-checks.md +3 -3
  64. package/templates/skills/business-analyse/references/compilation-structure-cards.md +1 -1
  65. package/templates/skills/business-analyse/references/consolidation-structural-checks.md +5 -5
  66. package/templates/skills/business-analyse/references/deploy-data-build.md +12 -11
  67. package/templates/skills/business-analyse/references/deploy-modes.md +10 -10
  68. package/templates/skills/business-analyse/references/detection-strategies.md +6 -6
  69. package/templates/skills/business-analyse/references/html-data-mapping.md +15 -15
  70. package/templates/skills/business-analyse/references/naming-conventions.md +4 -4
  71. package/templates/skills/business-analyse/references/review-data-mapping.md +29 -29
  72. package/templates/skills/business-analyse/references/robustness-checks.md +36 -36
  73. package/templates/skills/business-analyse/references/spec-auto-inference.md +2 -2
  74. package/templates/skills/business-analyse/references/ui-dashboard-spec.md +1 -1
  75. package/templates/skills/business-analyse/references/ui-resource-cards.md +1 -1
  76. package/templates/skills/business-analyse/references/validation-checklist.md +3 -3
  77. package/templates/skills/business-analyse/references/wireframe-svg-style-guide.md +2 -2
  78. package/templates/skills/business-analyse/schemas/application-schema.json +8 -8
  79. package/templates/skills/business-analyse/schemas/feature-schema.json +3 -3
  80. package/templates/skills/business-analyse/schemas/index-schema.json +47 -0
  81. package/templates/skills/business-analyse/schemas/project-schema.json +6 -6
  82. package/templates/skills/business-analyse/schemas/sections/analysis-schema.json +1 -1
  83. package/templates/skills/business-analyse/schemas/sections/handoff-schema.json +5 -3
  84. package/templates/skills/business-analyse/schemas/sections/metadata-schema.json +4 -4
  85. package/templates/skills/business-analyse/schemas/sections/specification-schema.json +1 -1
  86. package/templates/skills/business-analyse/schemas/shared/common-defs.json +4 -4
  87. package/templates/skills/business-analyse/steps/step-00-init.md +68 -77
  88. package/templates/skills/business-analyse/steps/step-01-cadrage.md +54 -180
  89. package/templates/skills/business-analyse/steps/step-02-structure.md +175 -0
  90. package/templates/skills/business-analyse/steps/step-03-specify.md +198 -0
  91. package/templates/skills/business-analyse/steps/step-04-consolidate.md +478 -0
  92. package/templates/skills/business-analyse/steps/step-05-deploy.md +220 -0
  93. package/templates/skills/business-analyse/steps/step-06-review.md +51 -69
  94. package/templates/skills/business-analyse/templates/tpl-frd.md +1 -1
  95. package/templates/skills/business-analyse/templates/tpl-handoff.md +20 -17
  96. package/templates/skills/business-analyse/templates/tpl-launch-displays.md +2 -2
  97. package/templates/skills/business-analyse/templates-react.md +2 -2
  98. package/templates/skills/derive-prd/SKILL.md +92 -0
  99. package/templates/skills/derive-prd/references/acceptance-criteria.md +169 -0
  100. package/templates/skills/derive-prd/references/entity-domain-mapping.md +115 -0
  101. package/templates/skills/{business-analyse → derive-prd}/references/handoff-file-templates.md +131 -120
  102. package/templates/skills/{business-analyse → derive-prd}/references/handoff-mappings.md +95 -95
  103. package/templates/skills/{business-analyse → derive-prd}/references/handoff-seeddata-generation.md +312 -312
  104. package/templates/skills/{business-analyse → derive-prd}/references/prd-generation.md +262 -263
  105. package/templates/skills/derive-prd/references/readiness-scoring.md +104 -0
  106. package/templates/skills/derive-prd/schemas/handoff-schema.json +95 -0
  107. package/templates/skills/derive-prd/steps/step-00-validate.md +130 -0
  108. package/templates/skills/derive-prd/steps/step-01-transform.md +206 -0
  109. package/templates/skills/derive-prd/steps/step-02-export.md +181 -0
  110. package/templates/skills/{business-analyse → derive-prd}/templates/tpl-progress.md +172 -172
  111. package/templates/skills/ralph-loop/SKILL.md +2 -1
  112. package/templates/skills/ralph-loop/references/init-resume-recovery.md +1 -1
  113. package/templates/skills/ralph-loop/steps/step-01-task.md +2 -2
  114. package/templates/skills/apex/references/agent-teams-protocol.md +0 -203
  115. package/templates/skills/business-analyse/_architecture.md +0 -124
  116. package/templates/skills/business-analyse/_elicitation.md +0 -206
  117. package/templates/skills/business-analyse/_module-loop.md +0 -115
  118. package/templates/skills/business-analyse/_rules.md +0 -142
  119. package/templates/skills/business-analyse/_suggestions.md +0 -34
  120. package/templates/skills/business-analyse/questionnaire/00-application.md +0 -160
  121. package/templates/skills/business-analyse/questionnaire/00b-project.md +0 -85
  122. package/templates/skills/business-analyse/questionnaire/02-stakeholders.md +0 -189
  123. package/templates/skills/business-analyse/questionnaire/03-scope.md +0 -164
  124. package/templates/skills/business-analyse/questionnaire/04-data.md +0 -88
  125. package/templates/skills/business-analyse/questionnaire/05-integrations.md +0 -58
  126. package/templates/skills/business-analyse/questionnaire/06-security.md +0 -68
  127. package/templates/skills/business-analyse/questionnaire/07-ui.md +0 -76
  128. package/templates/skills/business-analyse/questionnaire/08-performance.md +0 -42
  129. package/templates/skills/business-analyse/questionnaire/09-constraints.md +0 -45
  130. package/templates/skills/business-analyse/questionnaire/10-documentation.md +0 -58
  131. package/templates/skills/business-analyse/questionnaire/11-data-lifecycle.md +0 -59
  132. package/templates/skills/business-analyse/questionnaire/12-migration.md +0 -58
  133. package/templates/skills/business-analyse/questionnaire/13-cross-module.md +0 -69
  134. package/templates/skills/business-analyse/questionnaire/14-risk-assumptions.md +0 -135
  135. package/templates/skills/business-analyse/questionnaire/15-success-metrics.md +0 -136
  136. package/templates/skills/business-analyse/references/agent-module-prompt.md +0 -366
  137. package/templates/skills/business-analyse/references/agent-pooling-best-practices.md +0 -557
  138. package/templates/skills/business-analyse/references/cache-warming-strategy.md +0 -566
  139. package/templates/skills/business-analyse/references/cadrage-challenge-patterns.md +0 -41
  140. package/templates/skills/business-analyse/references/cadrage-coverage-matrix.md +0 -74
  141. package/templates/skills/business-analyse/references/cadrage-pre-analysis.md +0 -115
  142. package/templates/skills/business-analyse/references/cadrage-shared-modules.md +0 -68
  143. package/templates/skills/business-analyse/references/cadrage-structure-cards.md +0 -85
  144. package/templates/skills/business-analyse/references/team-orchestration.md +0 -1093
  145. package/templates/skills/business-analyse/references/validate-incremental-html.md +0 -121
  146. package/templates/skills/business-analyse/steps/step-01b-applications.md +0 -419
  147. package/templates/skills/business-analyse/steps/step-02-decomposition.md +0 -387
  148. package/templates/skills/business-analyse/steps/step-03a-data.md +0 -16
  149. package/templates/skills/business-analyse/steps/step-03a1-setup.md +0 -486
  150. package/templates/skills/business-analyse/steps/step-03a2-analysis.md +0 -300
  151. package/templates/skills/business-analyse/steps/step-03b-ui.md +0 -405
  152. package/templates/skills/business-analyse/steps/step-03c-compile.md +0 -516
  153. package/templates/skills/business-analyse/steps/step-03d-validate.md +0 -691
  154. package/templates/skills/business-analyse/steps/step-04-consolidation.md +0 -17
  155. package/templates/skills/business-analyse/steps/step-04a-collect.md +0 -415
  156. package/templates/skills/business-analyse/steps/step-04b-analyze.md +0 -163
  157. package/templates/skills/business-analyse/steps/step-04c-decide.md +0 -186
  158. package/templates/skills/business-analyse/steps/step-05a-handoff.md +0 -937
  159. package/templates/skills/business-analyse/steps/step-05b-deploy.md +0 -522
  160. package/templates/skills/business-analyse/steps/step-05c-ralph-readiness.md +0 -703
@@ -1,115 +0,0 @@
1
- # Cadrage: Pre-Analysis Reference
2
-
3
- > Reference for step-01-cadrage.md — silent pre-analysis to PREPARE the interactive conversation.
4
- > **This file does NOT replace the conversation — it prepares it.**
5
-
6
- ## Purpose
7
-
8
- Before engaging the client, the AI silently analyzes the `{feature_description}` to:
9
- 1. Understand what was said (extract explicit requirements)
10
- 2. Detect what was NOT said (identify shadow zones to challenge)
11
- 3. Prepare targeted questions (not generic ones)
12
- 4. Pre-identify modules, sections, and resources
13
-
14
- **The output of this pre-analysis is INTERNAL ONLY.** It is never shown directly to the client — it feeds the reformulation (Phase 2) and challenge questions (Phase 3).
15
-
16
- ## Pre-Analysis Rules
17
-
18
- ### 1. Problem Type Inference
19
-
20
- Derive the problem type from `{feature_description}` keywords:
21
-
22
- ```yaml
23
- problem_type:
24
- → Keywords "remplacer", "migrer", "existant" → "replace" (existing tool to replace)
25
- → Keywords "automatiser", "manuel", "processus" → "automate" (manual process to automate)
26
- → Keywords "centraliser", "dispersees", "eparpillees" → "centralize" (data scattered across systems)
27
- → Default (new tool) → "new_tool" (no system in place)
28
- ```
29
-
30
- ### 2. Explicit Module/Feature Extraction
31
-
32
- Extract functional areas explicitly mentioned in the description:
33
-
34
- ```yaml
35
- detected_modules:
36
- → For each distinct functional area mentioned:
37
- - name: "{PascalCase module name}"
38
- - description: "{what the user said about it}"
39
- - detected_sections: ["{inferred sections based on description}"]
40
- - detected_resources: ["{inferred resources}"]
41
- ```
42
-
43
- ### 3. Shadow Zone Detection (CRITICAL)
44
-
45
- > **Shadow zones are the most valuable output of pre-analysis.**
46
- > They become the challenge questions in Phase 3.
47
-
48
- For EACH detected module, check for missing information:
49
-
50
- | What to check | Shadow zone if missing | Challenge question pattern |
51
- |--------------|----------------------|--------------------------|
52
- | Stakeholders | Who uses this module? | "Who interacts with {module} daily? Only {mentioned role} or also managers, admins, external users?" |
53
- | Cardinality | Relationships stated as fact | "You said {A} is 1:1 with {B}. Can {A} exist without {B}? Can {B} have multiple {A}?" |
54
- | Granularity | Level of detail unclear | "What granularity for {feature}? Day, half-day, hour? Single entry or batch?" |
55
- | Reports | Mentioned but not detailed | "Which reports exactly? For whom? What format? How often?" |
56
- | Validation workflow | Actions without approval | "Does {action} require approval? Who validates? What happens if rejected?" |
57
- | Edge cases | Only happy path described | "What happens when {something goes wrong}? When data is incomplete? When two users do it simultaneously?" |
58
- | Non-functional | Security, performance, compliance | "Is there sensitive data (GDPR)? Expected concurrent users? Compliance requirements?" |
59
- | Integration | Standalone or connected | "Does {module} need to exchange data with external systems? Import? Export? API?" |
60
-
61
- ### 4. Domain-Specific Anticipation Patterns
62
-
63
- When the problem domain is identified, pre-load domain-specific needs:
64
-
65
- | Domain keywords | Anticipated needs (suggest in Phase 4) |
66
- |----------------|---------------------------------------|
67
- | RH, employes, personnel | Contrats, competences, organigramme, RGPD, conges, jours feries, calendriers |
68
- | Temps, activites, absences | Granularite saisie, validation manageriale, soldes conges, compteurs, export paie |
69
- | Ventes, commandes, clients | Devis, factures, pipeline, relances, taux conversion, segments client |
70
- | Stock, inventaire, produits | Categories, fournisseurs, seuils reapprovisionnement, mouvements, valorisation |
71
- | Projets, taches, planning | Jalons, ressources, Gantt, charge, budget, risques projet |
72
- | Tickets, support, incidents | SLA, escalade, base connaissances, satisfaction, priorites |
73
- | Documents, GED | Versionning, workflows validation, templates, OCR, archivage legal |
74
-
75
- ### 5. Section & Resource Pre-Identification
76
-
77
- For each detected module, anticipate sections (Level 4) and resources (Level 5) based on feature type:
78
-
79
- | Feature type | Sections (functional zones) | Resources (in list section) | Detail page tabs |
80
- |-------------|---------------------------|---------------------------|------------------|
81
- | data-centric | list | {entity}-grid, {entity}-filters, {entity}-form | Infos, {relations} |
82
- | workflow | list, approve | {entity}-grid, {entity}-filters, {entity}-form, approval-queue | Infos, {relations}, Historique |
83
- | reporting | dashboard | summary-chart, kpi-cards, export-panel | — |
84
- | integration | list | sync-status-grid, config-form, log-viewer | Infos, Config, Logs |
85
-
86
- > **RULE:** Sections = functional zones only (`list`, `dashboard`, `approve`, `import`, `rapport`, `planning`).
87
- > `create`/`edit` = separate pages with own URL routes (`/create` and `/:id/edit`). `detail` = tabbed page reached by clicking a row in `list`.
88
-
89
- **Always check:** Does the user's description imply additional functional sections? (e.g., "reports" → `dashboard`, "calendar view" → `planning`, "approval workflow" → `approve`)
90
-
91
- ## Output Format (Internal Only)
92
-
93
- ```yaml
94
- pre_analysis:
95
- problem_type: "new_tool|replace|automate|centralize"
96
- detected_modules:
97
- - name: "ModuleName"
98
- description: "What the user said"
99
- detected_sections: ["list", "detail", "create"]
100
- detected_resources: ["entity-grid", "entity-form"]
101
- shadow_zones:
102
- - topic: "Cardinality Employee-User"
103
- why_it_matters: "1:1 assumption may not hold for temp workers"
104
- challenge_question: "Can a user be linked to multiple employee records?"
105
- - topic: "Report granularity"
106
- why_it_matters: "Reports mentioned but not specified"
107
- challenge_question: "Which reports exactly? For whom? What format?"
108
- anticipated_suggestions:
109
- - suggestion: "Leave balance management"
110
- justification: "Time tracking without leave balances is incomplete"
111
- module: "TimeTracking"
112
- - suggestion: "GDPR compliance module"
113
- justification: "HR data is personal data under GDPR"
114
- module: "Employees"
115
- ```
@@ -1,68 +0,0 @@
1
- # Cross-Application Shared Module Detection
2
-
3
- Reference for detecting and extracting shared modules when `workflow_mode = "project"`.
4
-
5
- ## Detection Algorithm
6
-
7
- Build module inventory per candidate application:
8
-
9
- ```javascript
10
- // From candidateApplications (step-00) + enriched by cadrage phases 1-4
11
- const modulesByApp = {};
12
- for (const app of candidate_applications) {
13
- modulesByApp[app.name] = app.modules; // e.g., { "RH": ["Employes", "Conges", "Temps"], "Projet": ["Projets", "Temps"] }
14
- }
15
- ```
16
-
17
- Detect modules appearing in 2+ applications:
18
-
19
- ```javascript
20
- const allModules = Object.values(modulesByApp).flat();
21
- const moduleCounts = {};
22
- for (const mod of allModules) {
23
- const normalized = normalizeModuleName(mod); // "Temps", "Saisie du temps", "Time Tracking" → same concept
24
- moduleCounts[normalized] = (moduleCounts[normalized] || 0) + 1;
25
- }
26
- const sharedModules = Object.entries(moduleCounts)
27
- .filter(([_, count]) => count >= 2)
28
- .map(([name, count]) => ({ name, appearsIn: count, applications: findAppsContaining(name) }));
29
- ```
30
-
31
- ## Extraction Logic
32
-
33
- If shared modules found, propose extraction:
34
-
35
- ```javascript
36
- for (const shared of sharedModules) {
37
- // Create new candidate application
38
- candidate_applications.push({
39
- name: shared.name,
40
- description: `Application transversale pour ${shared.name}`,
41
- modules: [shared.name],
42
- isTransversal: true,
43
- consumedBy: shared.applications
44
- });
45
-
46
- // Remove the shared module from original applications
47
- for (const appName of shared.applications) {
48
- const app = candidate_applications.find(a => a.name === appName);
49
- app.modules = app.modules.filter(m => normalizeModuleName(m) !== shared.name);
50
- app.dependencies = app.dependencies || [];
51
- app.dependencies.push({ target: shared.name, type: "data-dependency" });
52
- }
53
- }
54
- ```
55
-
56
- Update `candidate_applications` in the project feature.json.
57
-
58
- ## Question Template
59
-
60
- ```
61
- question: "{language == 'fr' ? 'Souhaitez-vous extraire les modules partagés en application(s) dédiée(s) ?' : 'Do you want to extract shared modules as dedicated application(s)?'}"
62
- header: "Extraction"
63
- options:
64
- - label: "{language == 'fr' ? 'Oui, extraire' : 'Yes, extract'}"
65
- description: "{language == 'fr' ? 'Créer {sharedModules.length} application(s) transversale(s) supplémentaire(s)' : 'Create {sharedModules.length} additional cross-cutting application(s)'}"
66
- - label: "{language == 'fr' ? 'Non, garder en l\'état' : 'No, keep as-is'}"
67
- description: "{language == 'fr' ? 'Chaque application garde sa propre version du module' : 'Each application keeps its own version of the module'}"
68
- ```
@@ -1,85 +0,0 @@
1
- # Cadrage Structure Cards
2
-
3
- > Reference for step-01-cadrage.md — exact JSON formats for cadrage section fields.
4
-
5
- ## stakeholders[]
6
-
7
- ```json
8
- {
9
- "role": "Fleet Manager",
10
- "function": "Manages daily fleet operations",
11
- "involvement": "decision-maker",
12
- "tasks": ["Monitor vehicles", "Approve repairs", "Export reports"],
13
- "frequency": "Daily",
14
- "painPoints": ["Manual tracking in spreadsheets", "No real-time visibility"]
15
- }
16
- ```
17
- **MANDATORY fields:** `role`, `function`, `involvement`, `tasks`
18
- **involvement values:** `approver`, `decision-maker`, `consulted`, `informed`, `end-user`
19
- **FORBIDDEN fields:** Do NOT use `expertise`, `systemRole`, `description` (use `function` instead).
20
-
21
- ## applicationRoles[]
22
-
23
- ```json
24
- {
25
- "role": "{App} Admin",
26
- "description": "Full access to all modules",
27
- "level": "admin",
28
- "permissionPattern": "{app}.*"
29
- }
30
- ```
31
- **MANDATORY fields:** `role`, `level`, `permissionPattern`
32
- **level values:** `admin`, `manager`, `contributor`, `viewer`
33
- **FORBIDDEN fields:** Do NOT use `permissions` (use `permissionPattern`), `isDefault`.
34
-
35
- ## risks[]
36
-
37
- ```json
38
- {
39
- "id": "RISK-001",
40
- "type": "business|technical|organizational",
41
- "description": "CSV data may contain duplicates and errors",
42
- "probability": "high|medium|low",
43
- "impact": "high|medium|low",
44
- "priority": "critical|medium|low",
45
- "mitigation": "Data cleaning phase before import, detailed error reports"
46
- }
47
- ```
48
- **MANDATORY fields:** `id` (pattern: RISK-NNN), `type`, `description`, `mitigation`
49
- **FORBIDDEN fields:** Do NOT use `risk` (name), `severity`. Use `id` + `description` + `priority`.
50
-
51
- ## acceptanceCriteria[]
52
-
53
- ```json
54
- { "id": "AC-001", "criterion": "All must-have features delivered and tested", "validated": false }
55
- ```
56
- **MANDATORY:** This section must NOT be omitted.
57
-
58
- ## coverageMatrix[]
59
-
60
- ```json
61
- {
62
- "item": "User management with CRUD",
63
- "category": "mustHave|shouldHave|couldHave|outOfScope|implicit",
64
- "module": "Users",
65
- "ucRef": "UC-UM-001",
66
- "notes": "Foundation module, must be implemented first",
67
- "anticipatedSections": ["list", "dashboard"],
68
- "anticipatedResources": ["user-grid", "user-filters", "user-form"],
69
- "detailTabs": ["Informations", "Roles", "Historique"]
70
- }
71
- ```
72
- **MANDATORY fields:** `item`, `category`, `module`
73
- **OPTIONAL fields:** `ucRef`, `notes`, `anticipatedSections`, `anticipatedResources`, `detailTabs`
74
- **category values:** `mustHave`, `shouldHave`, `couldHave`, `outOfScope`, `implicit` (camelCase)
75
- **anticipatedSections:** Array of section codes (Level 4) — functional zones ONLY: `["list", "dashboard", "approve", "import", "rapport", "planning"]`. NEVER `create`, `edit`, or `detail` (those are actions/pages within `list`).
76
- **anticipatedResources:** Array of resource codes (Level 5) — e.g., `["user-grid", "user-filters", "user-form"]`
77
- **detailTabs:** Array of tab names for the detail page (reached by clicking a row in `list`) — e.g., `["Informations", "Roles", "Historique"]`
78
- **FORBIDDEN fields:** Do NOT use `id`, `feature`, `priority`. Use `item` + `category`.
79
-
80
- ## codebaseContext
81
-
82
- Must be a string, NOT an object:
83
- ```json
84
- "codebaseContext": "Greenfield project, no existing entities. SmartStack 2.1.0 with Extensions DbContext."
85
- ```