@tera-system/core 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (161) hide show
  1. package/LICENSE.md +13 -0
  2. package/MANIFEST.json +24 -0
  3. package/README.md +67 -0
  4. package/RELEASES.md +28 -0
  5. package/WELCOME.md +35 -0
  6. package/agents/application-blueprint.md +407 -0
  7. package/agents/auditor.md +665 -0
  8. package/agents/design-reviewer.md +392 -0
  9. package/agents/domain-expert-agent.md +510 -0
  10. package/agents/domain-research-agent.md +360 -0
  11. package/agents/engineering-agent-dotnet.md +218 -0
  12. package/agents/engineering-agent-phaser.md +275 -0
  13. package/agents/engineering-agent-typescript.md +300 -0
  14. package/agents/engineering-agent.md +143 -0
  15. package/agents/monitor.md +395 -0
  16. package/agents/production-erp-expert.md +506 -0
  17. package/agents/project-knowledge-agent.md +271 -0
  18. package/agents/qa-agent.md +498 -0
  19. package/agents/tera-business-transformation-consultant.md +290 -0
  20. package/agents/tera-client-engagement.md +891 -0
  21. package/agents/tera-software-designer.md +237 -0
  22. package/agents/tera-strategic-advisor.md +325 -0
  23. package/agents/tera-system-evolution.md +759 -0
  24. package/agents/tera.md +520 -0
  25. package/agents/ui-designer.md +426 -0
  26. package/commands/tera-approve.md +34 -0
  27. package/commands/tera-diagnose.md +47 -0
  28. package/commands/tera-gate.md +40 -0
  29. package/commands/tera-help.md +41 -0
  30. package/commands/tera-new-project.md +35 -0
  31. package/commands/tera-plan.md +34 -0
  32. package/commands/tera-request-build.md +45 -0
  33. package/commands/tera-resume.md +34 -0
  34. package/commands/tera-review.md +52 -0
  35. package/commands/tera-status.md +38 -0
  36. package/commands/tera-update.md +48 -0
  37. package/core/project-control/templates/TASK_TEMPLATE.md +146 -0
  38. package/core/tera-system/AGENT_ACTIVATION_MATRIX.md +285 -0
  39. package/core/tera-system/AGENT_DEPENDENCY_MAP.md +117 -0
  40. package/core/tera-system/AGENT_GENERATION_TEMPLATE.md +312 -0
  41. package/core/tera-system/AGENT_PERMISSION_MODEL.md +343 -0
  42. package/core/tera-system/AIS_PROTOCOL.md +191 -0
  43. package/core/tera-system/TERA_AGENT_CONDUCT.md +102 -0
  44. package/core/tera-system/TERA_CONTINUOUS_IMPROVEMENT_POLICY.md +111 -0
  45. package/core/tera-system/TERA_DISTRIBUTION_POLICY.md +291 -0
  46. package/core/tera-system/TERA_PROJECT_DECISION.md +281 -0
  47. package/core/tera-system/TERA_USER_GUIDE.md +462 -0
  48. package/core/tera-system/TOOLING_AND_MCP_POLICY.md +285 -0
  49. package/core/tera-system/TeraApplicationQuestionBank.md +362 -0
  50. package/core/tera-system/TeraArchitectureMap.md +91 -0
  51. package/core/tera-system/TeraClientPolicy.md +366 -0
  52. package/core/tera-system/TeraHelperAgents.md +970 -0
  53. package/core/tera-system/TeraPolicyMap.md +131 -0
  54. package/core/tera-system/TeraPreExecutionGate.md +818 -0
  55. package/core/tera-system/TeraPreparationDocumentationGovernance.md +370 -0
  56. package/core/tera-system/TeraPricingPolicy.md +674 -0
  57. package/core/tera-system/TeraProjectIntakePolicy.md +164 -0
  58. package/core/tera-system/TeraScenarioStressTests.md +168 -0
  59. package/core/tera-system/TeraSubAgents.md +854 -0
  60. package/core/tera-system/TeraSystemMaintenanceChecklist.md +80 -0
  61. package/core/tera-system/TeraTokenPolicy.md +362 -0
  62. package/core/tera-system/Tera_Project_Preparation_Files.md +1045 -0
  63. package/core/tera-system/agent-helpers/application-blueprint-details.md +177 -0
  64. package/core/tera-system/client-helpers/tera-client-engagement-discovery-domains.md +99 -0
  65. package/core/tera-system/client-helpers/tera-client-engagement-gates.md +258 -0
  66. package/core/tera-system/client-helpers/tera-client-engagement-pricing.md +341 -0
  67. package/core/tera-system/client-helpers/tera-client-engagement-protocols.md +692 -0
  68. package/core/tera-system/consulting-helpers/BTCA_METHODOLOGY_FRAMEWORK.md +195 -0
  69. package/core/tera-system/consulting-helpers/BTCA_REPORT_TEMPLATES.md +266 -0
  70. package/core/tera-system/design-system/ACCESSIBILITY_RULES.md +31 -0
  71. package/core/tera-system/design-system/COMPONENT_LIBRARY_SCHEMA.md +46 -0
  72. package/core/tera-system/design-system/DESIGN_MD_INTEGRATION.md +59 -0
  73. package/core/tera-system/design-system/DESIGN_REVIEW_STANDARDS.md +241 -0
  74. package/core/tera-system/design-system/DESIGN_SOURCE_PROTOCOL.md +61 -0
  75. package/core/tera-system/design-system/DESIGN_SYSTEM_OVERVIEW.md +66 -0
  76. package/core/tera-system/design-system/DESIGN_TOKENS_SCHEMA.md +66 -0
  77. package/core/tera-system/design-system/EXTERNAL_REFERENCE_ANALYSIS.md +52 -0
  78. package/core/tera-system/design-system/FIGMA_INTEGRATION.md +138 -0
  79. package/core/tera-system/design-system/INTERNAL_KITS_INDEX.md +26 -0
  80. package/core/tera-system/design-system/LAYOUT_PATTERNS.md +52 -0
  81. package/core/tera-system/design-system/MOBILE_UI_UX_STANDARDS.md +342 -0
  82. package/core/tera-system/design-system/RTL_LTR_RULES.md +39 -0
  83. package/core/tera-system/design-system/UI_ACCEPTANCE_GATE.md +80 -0
  84. package/core/tera-system/design-system/kits/KIT_ADMIN_DASHBOARD.md +102 -0
  85. package/core/tera-system/engineering-governance/ENGINEERING_AGENT_RESPONSIBILITIES.md +210 -0
  86. package/core/tera-system/engineering-governance/ENGINEERING_BEST_PRACTICES.md +468 -0
  87. package/core/tera-system/engineering-governance/ENGINEERING_GOVERNANCE_GATE.md +131 -0
  88. package/core/tera-system/engineering-governance/ENGINEERING_REVIEW_CHECKLIST.md +129 -0
  89. package/core/tera-system/engineering-governance/QUALITY_GATE_THRESHOLDS.md +159 -0
  90. package/core/tera-system/engineering-helpers/engineering-agent-core.md +171 -0
  91. package/core/tera-system/knowledge-base/OPENHANDS_ARCHITECTURE_REFERENCE.md +243 -0
  92. package/core/tera-system/knowledge-base/manufacturing/00_INDEX.md +32 -0
  93. package/core/tera-system/knowledge-base/manufacturing/01_MANUFACTURING_ERP_CORE_CONCEPTS.md +7 -0
  94. package/core/tera-system/knowledge-base/manufacturing/02_SAP_MANUFACTURING_RESEARCH.md +7 -0
  95. package/core/tera-system/knowledge-base/manufacturing/03_DYNAMICS_365_MANUFACTURING_RESEARCH.md +7 -0
  96. package/core/tera-system/knowledge-base/manufacturing/04_ORACLE_MANUFACTURING_RESEARCH.md +7 -0
  97. package/core/tera-system/knowledge-base/manufacturing/05_ODOO_MANUFACTURING_RESEARCH.md +7 -0
  98. package/core/tera-system/knowledge-base/manufacturing/06_ERPNEXT_MANUFACTURING_RESEARCH.md +7 -0
  99. package/core/tera-system/knowledge-base/manufacturing/07_MANUFACTURING_COSTING_GUIDE.md +7 -0
  100. package/core/tera-system/knowledge-base/manufacturing/08_PRODUCTION_DISCOVERY_QUESTIONS.md +7 -0
  101. package/core/tera-system/knowledge-base/manufacturing/09_MANUFACTURING_BLUEPRINT_CHECKLIST.md +7 -0
  102. package/core/tera-system/knowledge-base/manufacturing/10_PRODUCTION_TEST_SCENARIOS.md +7 -0
  103. package/core/tera-system/knowledge-base/manufacturing/11_QUALITY_REWORK_AND_SCRAP_GUIDE.md +7 -0
  104. package/core/tera-system/knowledge-base/manufacturing/12_MRP_AND_PLANNING_GUIDE.md +7 -0
  105. package/core/tera-system/knowledge-base/manufacturing/13_LOCAL_AND_REGIONAL_MANUFACTURING_CONTEXT.md +7 -0
  106. package/core/tera-system/knowledge-base/manufacturing/14_VENDOR_COMPARISON_MATRIX.md +7 -0
  107. package/core/tera-system/product-standards/maintenance-apps/BEST_PRACTICES_DOMAIN.md +325 -0
  108. package/core/tera-system/product-standards/maintenance-apps/STANDARD_DEFINITION.md +142 -0
  109. package/core/tera-system/profiles/PROFILES_INDEX.md +57 -0
  110. package/core/tera-system/profiles/TEMPLATE.md +47 -0
  111. package/core/tera-system/profiles/dotnet-blazor-ef.md +76 -0
  112. package/core/tera-system/profiles/dotnet-razorpages-adonet.md +137 -0
  113. package/core/tera-system/profiles/dotnet-wpf-sqlite.md +159 -0
  114. package/core/tera-system/profiles/effect-bun-opencode.md +109 -0
  115. package/core/tera-system/profiles/flutter-mobile.md +369 -0
  116. package/core/tera-system/profiles/nextjs-prisma.md +110 -0
  117. package/core/tera-system/profiles/phaser-react-node.md +302 -0
  118. package/core/tera-system/profiles/react-pwa.md +97 -0
  119. package/core/tera-system/runtime/CLIENT_DISCOVERY_PROTOCOL.md +145 -0
  120. package/core/tera-system/runtime/DOMAIN_INTELLIGENCE_PROTOCOL.md +124 -0
  121. package/core/tera-system/runtime/MVP_DEFINITION_PROTOCOL.md +176 -0
  122. package/core/tera-system/runtime/TERA_RUNTIME_CHECKLISTS.md +646 -0
  123. package/core/tera-system/runtime/TERA_RUNTIME_PROTOCOLS.md +50 -0
  124. package/core/tera-system/runtime/TERA_RUNTIME_PROTOCOLS_CLIENT.md +355 -0
  125. package/core/tera-system/runtime/TERA_RUNTIME_PROTOCOLS_CORE.md +799 -0
  126. package/core/tera-system/runtime/TERA_RUNTIME_TEMPLATES.md +908 -0
  127. package/core/tera-system/runtime/TERA_RUNTIME_TEMPLATES_DELIVERY.md +584 -0
  128. package/core/tera-system/runtime/TERA_RUNTIME_TEMPLATES_PREPARATION.md +376 -0
  129. package/core/tera-system/runtime/TERA_SOLUTION_PREPARATION_PROTOCOL.md +335 -0
  130. package/core/tera-system/runtime/TERA_SOLUTION_PREPARATION_TEMPLATES.md +397 -0
  131. package/core/tera-system/runtime/VERSION_LIFECYCLE_PROTOCOL.md +296 -0
  132. package/core/tera-system/semgrep-rules/README.md +32 -0
  133. package/core/tera-system/semgrep-rules/tera-security.yml +66 -0
  134. package/core/tera-system/semgrep-rules/tera-standards.yml +49 -0
  135. package/core/tera-system/teranoo-ui/README.md +48 -0
  136. package/core/tera-system/teranoo-ui/components/button.tsx +51 -0
  137. package/core/tera-system/teranoo-ui/components/card.tsx +49 -0
  138. package/core/tera-system/teranoo-ui/components/dashboard-layout.tsx +36 -0
  139. package/core/tera-system/teranoo-ui/components/data-table.tsx +146 -0
  140. package/core/tera-system/teranoo-ui/components/empty-state.tsx +31 -0
  141. package/core/tera-system/teranoo-ui/components/kpi-card.tsx +42 -0
  142. package/core/tera-system/teranoo-ui/components/page-header.tsx +25 -0
  143. package/core/tera-system/teranoo-ui/components/search-input.tsx +40 -0
  144. package/core/tera-system/teranoo-ui/components/sidebar.tsx +66 -0
  145. package/core/tera-system/teranoo-ui/components/stats-card.tsx +37 -0
  146. package/core/tera-system/teranoo-ui/registry.json +77 -0
  147. package/core/tera-system/teranoo-ui/styles/teranoo-theme.css +61 -0
  148. package/opencode.tera.example.json +30 -0
  149. package/package.json +37 -0
  150. package/scripts/build.mjs +110 -0
  151. package/scripts/install.js +244 -0
  152. package/scripts/lib/license.mjs +90 -0
  153. package/scripts/lib/public-key.pem +3 -0
  154. package/scripts/tera-license.mjs +63 -0
  155. package/tools/tera-clean.ps1 +97 -0
  156. package/tools/tera-fetch.ps1 +165 -0
  157. package/tools/tera-release.ps1 +96 -0
  158. package/tools/tera-schedule.ps1 +59 -0
  159. package/tools/tera-update.ps1 +472 -0
  160. package/tools/tera-watch.ps1 +154 -0
  161. package/tools/update-client-repositories.ps1 +92 -0
@@ -0,0 +1,376 @@
1
+ # Tera Runtime Templates — Preparation & Blueprint Outputs
2
+
3
+ These are the preparation-phase templates (Sections 35–40: TCEA outputs and ApplicationBlueprint outputs) split from TERA_RUNTIME_TEMPLATES.md via INSPECTION-2026-08-01 (INS-02).
4
+ Main file: `tera-system/runtime/TERA_RUNTIME_TEMPLATES.md` (Sections 1–28).
5
+ Delivery templates: `tera-system/runtime/TERA_RUNTIME_TEMPLATES_DELIVERY.md` (Sections 29–34).
6
+
7
+ ---
8
+
9
+ ## 35. Discovery Coverage Summary (TCEA — Phase 2 Mandatory Output)
10
+
11
+ This template defines `client-engagement/DISCOVERY_COVERAGE_SUMMARY.md`.
12
+ It is produced by TCEA after completing the 13-domain discovery and before any scope/quotation/handoff.
13
+
14
+ ```markdown
15
+ # DISCOVERY_COVERAGE_SUMMARY.md
16
+
17
+ ## 1. Metadata
18
+
19
+ | Field | Value |
20
+ |---|---|
21
+ | Client | [name] |
22
+ | Application | [name] |
23
+ | Prepared by | TCEA |
24
+ | Date | YYYY-MM-DD |
25
+ | Last Updated | YYYY-MM-DD |
26
+
27
+ ## 2. Domain Coverage Matrix
28
+
29
+ > الترقيم والتسمية حسب المصدر الرسمي: `tera-system/client-helpers/tera-client-engagement-discovery-domains.md`
30
+
31
+ | # | Domain | Status | Reason if not Complete | Impact | Risk | Blocks Pricing? | Blocks Handoff? | **Source of Info** | **Confirmed by Majed?** | **Risk if Wrong** |
32
+ |---|--------|--------|----------------------|--------|------|----------------|-----------------|--------------------|-------------------------|-------------------|
33
+ | 1 | Business & Goals | Complete / Partial / Missing / Deferred / N/A | ... | ... | L/M/H | Yes/No | Yes/No | Majed / Websearch / Inference / Unknown | Yes / No / Partially | L / M / H |
34
+ | 2 | Users, Roles & Access | ... | ... | ... | ... | ... | ... | ... | ... | ... |
35
+ | 3 | Process & Workflow | ... | ... | ... | ... | ... | ... | ... | ... | ... |
36
+ | 4 | Data & Content | ... | ... | ... | ... | ... | ... | ... | ... | ... |
37
+ | 5 | Scope & MVP | ... | ... | ... | ... | ... | ... | ... | ... | ... |
38
+ | 6 | Screens & UX | ... | ... | ... | ... | ... | ... | ... | ... | ... |
39
+ | 7 | Notifications Engine | ... | ... | ... | ... | ... | ... | ... | ... | ... |
40
+ | 8 | Reports & Dashboards | ... | ... | ... | ... | ... | ... | ... | ... | ... |
41
+ | 9 | Design & Branding | ... | ... | ... | ... | ... | ... | ... | ... | ... |
42
+ | 10 | Technical, Hosting & Compliance | ... | ... | ... | ... | ... | ... | ... | ... | ... |
43
+ | 11 | Security & Audit | ... | ... | ... | ... | ... | ... | ... | ... | ... |
44
+ | 12 | Integrations & APIs | ... | ... | ... | ... | ... | ... | ... | ... | ... |
45
+ | 13 | Acceptance, Commercials & Warranty | ... | ... | ... | ... | ... | ... | ... | ... | ... |
46
+
47
+ > **ملاحظة المجال 13:** يحتاج تغطية 3 جوانب داخلية على الأقل: (أ) معايير القبول والاختبارات, (ب) الميزانية وخطة الدفع, (ج) الضمان والصيانة.
48
+
49
+ ## 3. Coverage Decision
50
+
51
+ | Item | Value |
52
+ |---|---|
53
+ | Overall Status | Ready for Scope / Needs More Discovery / Ready for Quotation / Ready for Handoff / Blocked |
54
+ | Missing Critical Domains | [list or none] |
55
+ | Next Action | [explicit next step] |
56
+ | Approved by Majed | Yes / No / Pending |
57
+
58
+ ---
59
+
60
+ ## 36. TERA_HANDOFF_PACKAGE.md — TCEA Output (Phase 3 Mandatory Output)
61
+
62
+ This is the official template for `client-engagement/TERA_HANDOFF_PACKAGE.md`.
63
+ It is produced by TCEA after scope/quotation approval, packaging everything for delivery to ApplicationBlueprintAgent → TeraAgent.
64
+
65
+ **SCP-038 Compliance:** This template includes a dedicated compliance section (§1). Every handoff MUST include this section — do NOT remove it.
66
+
67
+ ```markdown
68
+ # TERA_HANDOFF_PACKAGE.md
69
+
70
+ > **حزمة التسليم الرسمية — متوافقة مع SCP-038**
71
+ > **العميل:** [Client Name]
72
+ > **التطبيق:** [Application Name]
73
+ > **المرحلة:** Phase 1 (MVP) / Phase 2 / Phase 3
74
+ > **تاريخ الإعداد:** YYYY-MM-DD
75
+ > **الحالة:** [Draft / Approved]
76
+ > **SCP-038 Compliance:** ✅ متوافقة — تم تطبيق القواعد الأربع (Reconciliation, Budget-to-Scope, Decision Register, Approval Consistency)
77
+ > **إعداد:** TCEA
78
+
79
+ ---
80
+
81
+ ## فهرس المحتويات
82
+
83
+ | القسم | المحتوى |
84
+ |:------|:--------|
85
+ | 1 | التوافق مع SCP-038 |
86
+ | 2 | خلاصة تنفيذية |
87
+ | 3 | معلومات العميل |
88
+ | 4 | ملخص النطاق |
89
+ | 5 | قائمة الميزات المعتمدة |
90
+ | 6 | خارج النطاق + المؤجل |
91
+ | 7 | ملخص التسعير والشروط التجارية |
92
+ | 8 | ملخص سجل القرارات |
93
+ | 9 | النقاط المفتوحة والمعلقة |
94
+ | 10 | المراجع والملفات |
95
+ | 11 | قرار الجاهزية للتسليم |
96
+
97
+ ---
98
+
99
+ ## 1. التوافق مع SCP-038
100
+
101
+ تم تطبيق قواعد SCP-038 الأربع على حزمة التسليم:
102
+
103
+ | القاعدة | الحالة | التفاصيل |
104
+ |---------|:------:|----------|
105
+ | **§3.3.1 Final Scope Reconciliation Gate** | ✅ مطبّق / ⚠️ غير مطبّق | [FEATURE_LIST.md: كل ميزة مصنفة بحالتها النهائية ✅ Included / ◉ Optional / ⏳ Phase 2 / ❌ Out of Scope] |
106
+ | **§3.3.2 Budget-to-Scope Control Rule** | ✅ مطبّق / ⚠️ غير مطبّق | [كل ميزة مصنفة Essential/Important/Nice-to-have ضمن الميزانية المحددة] |
107
+ | **§3.3.3 Client Decision Register** | ✅ مطبّق / ⚠️ غير مطبّق | [CLIENT_DECISION_LOG.md: جميع القرارات موثقة بحالات موحدة] |
108
+ | **§3.6.1 Approval Consistency Rule** | ✅ مطبّق / ⚠️ غير مطبّق | [الحزمة متسقة مع أقل حالة مصدر — جميع المصادر معتمدة / بعضها Draft] |
109
+
110
+ > **ملاحظة:** إذا كانت أي قاعدة غير مطبّقة، اذكر السبب والخطة لتفعيلها في قسم النقاط المفتوحة (§9).
111
+
112
+ ---
113
+
114
+ ## 2. خلاصة تنفيذية
115
+
116
+ [2-3 جمل تلخص: من هو العميل، المشكلة التي يحلها التطبيق، الحل المقترح، وحالة التسليم]
117
+
118
+ ---
119
+
120
+ ## 3. معلومات العميل
121
+
122
+ | الحقل | القيمة |
123
+ |-------|--------|
124
+ | **Client name** | [Full Name] |
125
+ | **Application name** | [Full Name] |
126
+ | **Business goal** | [Goal statement] |
127
+ | **Problem statement** | [Problem statement] |
128
+ | **Client approval status** | ✅ Approved / ⏳ Pending |
129
+ | **SCP-038 Compliance** | ✅ متوافقة |
130
+
131
+ ---
132
+
133
+ ## 4. ملخص النطاق
134
+
135
+ | الحقل | القيمة |
136
+ |-------|--------|
137
+ | **Approved scope** | [Core scope description] |
138
+ | **MVP scope** | [Bullet list of MVP features] |
139
+ | **Phase 2** | [Items for Phase 2] |
140
+ | **Phase 3** | [Items for Phase 3] |
141
+ | **Out of scope** | [Items explicitly out of scope] |
142
+
143
+ ---
144
+
145
+ ## 5. قائمة الميزات المعتمدة
146
+
147
+ | # | الميزة | الحالة النهائية Stack | الأولوية للميزانية | ملاحظات |
148
+ |---|--------|----------------------|-------------------|---------|
149
+ | 1 | [Feature] | ✅ Included / ◉ Optional / ⏳ Phase 2 / ❌ Out of Scope | Essential / Important / Nice-to-have | [Notes] |
150
+
151
+ > **المفتاح:** ✅ Included = مشمولة في هذه المرحلة · ◉ Optional = اختيارية · ⏳ Phase 2/3 = مؤجلة · ❌ Out of Scope = غير مشمولة أبداً
152
+
153
+ ---
154
+
155
+ ## 6. خارج النطاق + المؤجل
156
+
157
+ | البند | الحالة | السبب | التاريخ المستهدف |
158
+ |-------|--------|-------|:----------------:|
159
+ | [Item] | خارج النطاق / مؤجل لـ Phase 2/3 | [Reason] | [Target date or TBD] |
160
+
161
+ ---
162
+
163
+ ## 7. ملخص التسعير والشروط التجارية
164
+
165
+ | الحقل | القيمة |
166
+ |-------|--------|
167
+ | **السعر الإجمالي** | [Amount] JOD |
168
+ | **سياسة التسعير** | [e.g. Tera Pricing Policy v4.2] |
169
+ | **نطاق الدفع** | [Payment terms] |
170
+ | **الضمان** | [Warranty terms] |
171
+ | **المرجع** | DRAFT_QUOTATION.md |
172
+
173
+ ---
174
+
175
+ ## 8. ملخص سجل القرارات
176
+
177
+ | # | التاريخ | القرار | الحالة |
178
+ |---|---------|--------|:------:|
179
+ | 1 | YYYY-MM-DD | [Decision description] | ✅ Approved / ⏳ Deferred / ⚠️ Conditional / ❓ Not Finalized |
180
+
181
+ > **المرجع:** CLIENT_DECISION_LOG.md للتفاصيل الكاملة
182
+
183
+ ---
184
+
185
+ ## 9. النقاط المفتوحة والمعلقة
186
+
187
+ | # | النقطة | التأثير | مطلوب من | التاريخ المستهدف |
188
+ |---|--------|---------|----------|:----------------:|
189
+ | 1 | [Description] | [Impact] | Majed / Client / TCEA | YYYY-MM-DD |
190
+
191
+ ---
192
+
193
+ ## 10. المراجع والملفات
194
+
195
+ | الملف | المسار | الإصدار | ملاحظات |
196
+ |-------|--------|:-------:|---------|
197
+ | CLIENT_INTAKE.md | `client-engagement/` | v1.0 | [Notes] |
198
+ | CLIENT_BRIEF.md | `client-engagement/` | v1.0 | [Notes] |
199
+ | SCOPE_SUMMARY.md | `client-engagement/` | v1.0 | [Notes] |
200
+ | FEATURE_LIST.md | `client-engagement/` | v1.0 | [Notes] |
201
+ | DRAFT_QUOTATION.md | `client-engagement/` | v1.0 | [Notes] |
202
+ | CLIENT_DECISION_LOG.md | `client-engagement/` | v1.0 | [Notes] |
203
+ | DISCOVERY_COVERAGE_SUMMARY.md | `client-engagement/` | v1.0 | [Notes] |
204
+ | GATE_COMPLIANCE_RECORD.md | `client-engagement/` | v1.0 | [Notes] |
205
+
206
+ ---
207
+
208
+ ## 11. قرار الجاهزية للتسليم
209
+
210
+ | الحقل | القيمة |
211
+ |-------|--------|
212
+ | **Handoff Readiness Gate** | 🟢 جاهز / 🟡 جاهز مع ملاحظات / 🔴 غير جاهز |
213
+ | ✅ | [Checklist item 1] |
214
+ | ✅ | [Checklist item 2] |
215
+ | **Final Consistency Check** | ✅ PASS — [عدد القرارات المطابق: N / تصنيف النطاق متسق / لا بقايا مصطلحات / المراجع سليمة] (SCP-2026-08-15-010) |
216
+ | **الخطوة التالية:** | [Next step after handoff] |
217
+ | **تاريخ التسليم:** | YYYY-MM-DD |
218
+
219
+ ---
220
+
221
+ > **تم إعداد هذه الحزمة بواسطة:** TCEA
222
+ > **تاريخ التحديث:** YYYY-MM-DD
223
+ > **حالة الاعتماد:** Draft / Approved
224
+ ```
225
+ ```
226
+
227
+ ---
228
+
229
+ ## 37. Depth Assessment — قسم في APPLICATION_BLUEPRINT.md
230
+
231
+ هذا القسم يُدرج في بداية `APPLICATION_BLUEPRINT.md` (قبل Blueprint Status) بعد تطبيق Depth Assessment في §5.5.1.
232
+
233
+ ```markdown
234
+ ### Depth Assessment
235
+
236
+ | البعد | التقييم | السبب |
237
+ |-------|---------|-------|
238
+ | **Risk Level** | High / Medium / Low | [سبب التقييم] |
239
+ | **Uncertainty Level** | High / Medium / Low | [سبب التقييم] |
240
+ | **Domain Complexity** | High / Medium / Low | [سبب التقييم] |
241
+ | **Selected Depth** | Core Only / Standard / Full | [سبب اختيار هذا المستوى] |
242
+ ```
243
+
244
+ ---
245
+
246
+ ## 38. C4 Architecture Diagrams — قسم في APPLICATION_BLUEPRINT.md
247
+
248
+ هذا القسم يُدرج في `APPLICATION_BLUEPRINT.md` عند مستوى **Full** فقط.
249
+
250
+ ```markdown
251
+ ### C4 Architecture Diagrams
252
+
253
+ #### Context Diagram (C1)
254
+ [وصف النظام في محيطه — المستخدمون الخارجيون، الأنظمة المتكاملة]
255
+
256
+ ```structurizr
257
+ !include https://raw.githubusercontent.com/structurizr/dsl/master/src/structurizr/dsl/structurizr.dsl
258
+
259
+ workspace {
260
+ model {
261
+ user = person "مستخدم" "وصف المستخدم"
262
+ system = softwareSystem "النظام" "وصف النظام"
263
+
264
+ user -> system "يستخدم"
265
+ }
266
+ views {
267
+ systemContext system "SystemContext" {
268
+ include *
269
+ autolayout
270
+ }
271
+ }
272
+ }
273
+ ```
274
+
275
+ #### Container Diagram (C2)
276
+ [المكونات الكبيرة — Web, API, Database, Workers]
277
+
278
+ ```structurizr
279
+ workspace {
280
+ model {
281
+ // تعريف الـ Containers
282
+ webApp = container "Web App" "تطبيق الواجهة" "React/Blazor"
283
+ api = container "API" "واجهة الخدمات" "ASP.NET Core"
284
+ db = container "Database" "قاعدة البيانات" "SQL Server"
285
+
286
+ webApp -> api "يستدعي" "HTTP/REST"
287
+ api -> db "يقرأ/يكتب" "EF Core"
288
+ }
289
+ views {
290
+ container api "Containers" {
291
+ include *
292
+ autolayout
293
+ }
294
+ }
295
+ }
296
+ ```
297
+
298
+ #### Component Diagram (C3) — اختياري
299
+ [للمكونات الحرجة فقط — يحددها Depth Assessment]
300
+ ```
301
+
302
+ > **ملاحظة:** كود Structurizr DSL أعلاه هو示例 (illustrative). يكتب المُهندس الـ DSL الفعلي حسب كل مشروع. مصدر الحقيقة هو ملف `.dsl` وليس الـ diagram المُولّد.
303
+
304
+ ---
305
+
306
+ ## 39. Architecture Decision Seeds (ADR Seeds) — قسم في APPLICATION_BLUEPRINT.md
307
+
308
+ هذا القسم يُدرج في `APPLICATION_BLUEPRINT.md` في جميع مستويات العمق.
309
+
310
+ ```markdown
311
+ ### Architecture Decision Seeds
312
+
313
+ سجل القرارات المعمارية التي تم تحديدها خلال هذه المرحلة. هذه **بذور قرارات** وليست قرارات نهائية.
314
+
315
+ | # | العنوان | السياق | الخيار المقترح | Tradeoffs | الحالة |
316
+ |---|----------|--------|---------------|-----------|--------|
317
+ | 1 | [Title] | [Context of the decision] | [Candidate option] | [Performance, maintainability, cost, ...] | `[ADR-Seed]` |
318
+ | 2 | [Title] | [Context of the decision] | [Candidate option] | [Tradeoffs] | `[ADR-Seed]` |
319
+ ```
320
+
321
+ ---
322
+
323
+ ## 40. Domain Events Map — قسم في APPLICATION_BLUEPRINT.md
324
+
325
+ هذا القسم اختياري، يُدرج في `APPLICATION_BLUEPRINT.md` عند `Domain Complexity ≥ High` أو `Uncertainty ≥ High`.
326
+
327
+ ```markdown
328
+ ### Domain Events Map / Event Storming Results
329
+
330
+ #### Domain Events (الأحداث)
331
+ | الحدث | المشغّل (Command) | الفاعل (Actor) | المصدر (Aggregate) | ملاحظات |
332
+ |-------|-------------------|----------------|-------------------|---------|
333
+ | [Event Name] | [Command that triggers it] | User / System / External | [Aggregate name] | [Notes] |
334
+
335
+ #### Commands (الأوامر)
336
+ | الأمر | النتيجة | الـ Actor المنفذ | صلاحية الوصول |
337
+ |-------|---------|-----------------|--------------|
338
+ | [Command] | [Resulting event(s)] | [Role] | [Permission level] |
339
+
340
+ #### Key Aggregates (الكيانات الرئيسية)
341
+ | الكيان | وصف | الأحداث المرتبطة |
342
+ |--------|-----|------------------|
343
+ | [Aggregate] | [Description] | [Events] |
344
+ ```
345
+
346
+ ---
347
+
348
+ ## 41. CONTENT_REQUIREMENTS.md — مخرج Content Confirmation Gate (SCP-2026-08-15-016)
349
+
350
+ > **مشروط:** يُنتَج فقط عندما يكون Content Type = `User-Facing Content` / `Mixed` (موقع، صفحة هبوط، تسويق، محتوى).
351
+ > **المالك:** مُهندس — بعد `07_SCREENS_AND_UI_STRUCTURE.md` وقبل التصميم النهائي (28) وقبل Phase 5.
352
+ > **القاعدة:** لا يُخترع محتوى بدل المالك؛ كل قرار محتوى يُوثق في `CLIENT_DECISION_LOG.md`؛ الاعتراض يُعالج في الشاشة المعنية فقط.
353
+
354
+ ```markdown
355
+ # CONTENT_REQUIREMENTS.md
356
+
357
+ > **المشروع:** [Name]
358
+ > **Content Type:** User-Facing Content / Mixed
359
+ > **أعدّه:** مُهندس (Content Confirmation Gate)
360
+ > **التاريخ:** YYYY-MM-DD
361
+ > **الحالة:** [Draft / Approved]
362
+
363
+ ## لكل شاشة/صفحة
364
+
365
+ | الشاشة | Purpose | Audience | Primary Message | Required Content | CTA | Forbidden | Claims المسموحة | Priorities | Content Owner |
366
+ |--------|---------|----------|-----------------|------------------|-----|-----------|-----------------|------------|---------------|
367
+ | S1 [Home] | [الغرض] | [الجمهور] | [الرسالة الأساسية] | [المحتوى المطلوب] | [CTA ووجهته] | [الممنوع — D-015] | [الادعاءات المسموحة] | [الأولويات] | [المالك] |
368
+ | S2 [How It Works] | ... | ... | ... | ... | ... | ... | ... | ... | ... |
369
+ | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... |
370
+
371
+ ## قرارات المحتوى المعتمدة
372
+
373
+ | # | الشاشة | القرار | المصدر | الحالة |
374
+ |---|--------|--------|--------|--------|
375
+ | 1 | [Screen] | [Decision] | `[Confirmed by Majed]` | Approved |
376
+ ```