@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.
- package/LICENSE.md +13 -0
- package/MANIFEST.json +24 -0
- package/README.md +67 -0
- package/RELEASES.md +28 -0
- package/WELCOME.md +35 -0
- package/agents/application-blueprint.md +407 -0
- package/agents/auditor.md +665 -0
- package/agents/design-reviewer.md +392 -0
- package/agents/domain-expert-agent.md +510 -0
- package/agents/domain-research-agent.md +360 -0
- package/agents/engineering-agent-dotnet.md +218 -0
- package/agents/engineering-agent-phaser.md +275 -0
- package/agents/engineering-agent-typescript.md +300 -0
- package/agents/engineering-agent.md +143 -0
- package/agents/monitor.md +395 -0
- package/agents/production-erp-expert.md +506 -0
- package/agents/project-knowledge-agent.md +271 -0
- package/agents/qa-agent.md +498 -0
- package/agents/tera-business-transformation-consultant.md +290 -0
- package/agents/tera-client-engagement.md +891 -0
- package/agents/tera-software-designer.md +237 -0
- package/agents/tera-strategic-advisor.md +325 -0
- package/agents/tera-system-evolution.md +759 -0
- package/agents/tera.md +520 -0
- package/agents/ui-designer.md +426 -0
- package/commands/tera-approve.md +34 -0
- package/commands/tera-diagnose.md +47 -0
- package/commands/tera-gate.md +40 -0
- package/commands/tera-help.md +41 -0
- package/commands/tera-new-project.md +35 -0
- package/commands/tera-plan.md +34 -0
- package/commands/tera-request-build.md +45 -0
- package/commands/tera-resume.md +34 -0
- package/commands/tera-review.md +52 -0
- package/commands/tera-status.md +38 -0
- package/commands/tera-update.md +48 -0
- package/core/project-control/templates/TASK_TEMPLATE.md +146 -0
- package/core/tera-system/AGENT_ACTIVATION_MATRIX.md +285 -0
- package/core/tera-system/AGENT_DEPENDENCY_MAP.md +117 -0
- package/core/tera-system/AGENT_GENERATION_TEMPLATE.md +312 -0
- package/core/tera-system/AGENT_PERMISSION_MODEL.md +343 -0
- package/core/tera-system/AIS_PROTOCOL.md +191 -0
- package/core/tera-system/TERA_AGENT_CONDUCT.md +102 -0
- package/core/tera-system/TERA_CONTINUOUS_IMPROVEMENT_POLICY.md +111 -0
- package/core/tera-system/TERA_DISTRIBUTION_POLICY.md +291 -0
- package/core/tera-system/TERA_PROJECT_DECISION.md +281 -0
- package/core/tera-system/TERA_USER_GUIDE.md +462 -0
- package/core/tera-system/TOOLING_AND_MCP_POLICY.md +285 -0
- package/core/tera-system/TeraApplicationQuestionBank.md +362 -0
- package/core/tera-system/TeraArchitectureMap.md +91 -0
- package/core/tera-system/TeraClientPolicy.md +366 -0
- package/core/tera-system/TeraHelperAgents.md +970 -0
- package/core/tera-system/TeraPolicyMap.md +131 -0
- package/core/tera-system/TeraPreExecutionGate.md +818 -0
- package/core/tera-system/TeraPreparationDocumentationGovernance.md +370 -0
- package/core/tera-system/TeraPricingPolicy.md +674 -0
- package/core/tera-system/TeraProjectIntakePolicy.md +164 -0
- package/core/tera-system/TeraScenarioStressTests.md +168 -0
- package/core/tera-system/TeraSubAgents.md +854 -0
- package/core/tera-system/TeraSystemMaintenanceChecklist.md +80 -0
- package/core/tera-system/TeraTokenPolicy.md +362 -0
- package/core/tera-system/Tera_Project_Preparation_Files.md +1045 -0
- package/core/tera-system/agent-helpers/application-blueprint-details.md +177 -0
- package/core/tera-system/client-helpers/tera-client-engagement-discovery-domains.md +99 -0
- package/core/tera-system/client-helpers/tera-client-engagement-gates.md +258 -0
- package/core/tera-system/client-helpers/tera-client-engagement-pricing.md +341 -0
- package/core/tera-system/client-helpers/tera-client-engagement-protocols.md +692 -0
- package/core/tera-system/consulting-helpers/BTCA_METHODOLOGY_FRAMEWORK.md +195 -0
- package/core/tera-system/consulting-helpers/BTCA_REPORT_TEMPLATES.md +266 -0
- package/core/tera-system/design-system/ACCESSIBILITY_RULES.md +31 -0
- package/core/tera-system/design-system/COMPONENT_LIBRARY_SCHEMA.md +46 -0
- package/core/tera-system/design-system/DESIGN_MD_INTEGRATION.md +59 -0
- package/core/tera-system/design-system/DESIGN_REVIEW_STANDARDS.md +241 -0
- package/core/tera-system/design-system/DESIGN_SOURCE_PROTOCOL.md +61 -0
- package/core/tera-system/design-system/DESIGN_SYSTEM_OVERVIEW.md +66 -0
- package/core/tera-system/design-system/DESIGN_TOKENS_SCHEMA.md +66 -0
- package/core/tera-system/design-system/EXTERNAL_REFERENCE_ANALYSIS.md +52 -0
- package/core/tera-system/design-system/FIGMA_INTEGRATION.md +138 -0
- package/core/tera-system/design-system/INTERNAL_KITS_INDEX.md +26 -0
- package/core/tera-system/design-system/LAYOUT_PATTERNS.md +52 -0
- package/core/tera-system/design-system/MOBILE_UI_UX_STANDARDS.md +342 -0
- package/core/tera-system/design-system/RTL_LTR_RULES.md +39 -0
- package/core/tera-system/design-system/UI_ACCEPTANCE_GATE.md +80 -0
- package/core/tera-system/design-system/kits/KIT_ADMIN_DASHBOARD.md +102 -0
- package/core/tera-system/engineering-governance/ENGINEERING_AGENT_RESPONSIBILITIES.md +210 -0
- package/core/tera-system/engineering-governance/ENGINEERING_BEST_PRACTICES.md +468 -0
- package/core/tera-system/engineering-governance/ENGINEERING_GOVERNANCE_GATE.md +131 -0
- package/core/tera-system/engineering-governance/ENGINEERING_REVIEW_CHECKLIST.md +129 -0
- package/core/tera-system/engineering-governance/QUALITY_GATE_THRESHOLDS.md +159 -0
- package/core/tera-system/engineering-helpers/engineering-agent-core.md +171 -0
- package/core/tera-system/knowledge-base/OPENHANDS_ARCHITECTURE_REFERENCE.md +243 -0
- package/core/tera-system/knowledge-base/manufacturing/00_INDEX.md +32 -0
- package/core/tera-system/knowledge-base/manufacturing/01_MANUFACTURING_ERP_CORE_CONCEPTS.md +7 -0
- package/core/tera-system/knowledge-base/manufacturing/02_SAP_MANUFACTURING_RESEARCH.md +7 -0
- package/core/tera-system/knowledge-base/manufacturing/03_DYNAMICS_365_MANUFACTURING_RESEARCH.md +7 -0
- package/core/tera-system/knowledge-base/manufacturing/04_ORACLE_MANUFACTURING_RESEARCH.md +7 -0
- package/core/tera-system/knowledge-base/manufacturing/05_ODOO_MANUFACTURING_RESEARCH.md +7 -0
- package/core/tera-system/knowledge-base/manufacturing/06_ERPNEXT_MANUFACTURING_RESEARCH.md +7 -0
- package/core/tera-system/knowledge-base/manufacturing/07_MANUFACTURING_COSTING_GUIDE.md +7 -0
- package/core/tera-system/knowledge-base/manufacturing/08_PRODUCTION_DISCOVERY_QUESTIONS.md +7 -0
- package/core/tera-system/knowledge-base/manufacturing/09_MANUFACTURING_BLUEPRINT_CHECKLIST.md +7 -0
- package/core/tera-system/knowledge-base/manufacturing/10_PRODUCTION_TEST_SCENARIOS.md +7 -0
- package/core/tera-system/knowledge-base/manufacturing/11_QUALITY_REWORK_AND_SCRAP_GUIDE.md +7 -0
- package/core/tera-system/knowledge-base/manufacturing/12_MRP_AND_PLANNING_GUIDE.md +7 -0
- package/core/tera-system/knowledge-base/manufacturing/13_LOCAL_AND_REGIONAL_MANUFACTURING_CONTEXT.md +7 -0
- package/core/tera-system/knowledge-base/manufacturing/14_VENDOR_COMPARISON_MATRIX.md +7 -0
- package/core/tera-system/product-standards/maintenance-apps/BEST_PRACTICES_DOMAIN.md +325 -0
- package/core/tera-system/product-standards/maintenance-apps/STANDARD_DEFINITION.md +142 -0
- package/core/tera-system/profiles/PROFILES_INDEX.md +57 -0
- package/core/tera-system/profiles/TEMPLATE.md +47 -0
- package/core/tera-system/profiles/dotnet-blazor-ef.md +76 -0
- package/core/tera-system/profiles/dotnet-razorpages-adonet.md +137 -0
- package/core/tera-system/profiles/dotnet-wpf-sqlite.md +159 -0
- package/core/tera-system/profiles/effect-bun-opencode.md +109 -0
- package/core/tera-system/profiles/flutter-mobile.md +369 -0
- package/core/tera-system/profiles/nextjs-prisma.md +110 -0
- package/core/tera-system/profiles/phaser-react-node.md +302 -0
- package/core/tera-system/profiles/react-pwa.md +97 -0
- package/core/tera-system/runtime/CLIENT_DISCOVERY_PROTOCOL.md +145 -0
- package/core/tera-system/runtime/DOMAIN_INTELLIGENCE_PROTOCOL.md +124 -0
- package/core/tera-system/runtime/MVP_DEFINITION_PROTOCOL.md +176 -0
- package/core/tera-system/runtime/TERA_RUNTIME_CHECKLISTS.md +646 -0
- package/core/tera-system/runtime/TERA_RUNTIME_PROTOCOLS.md +50 -0
- package/core/tera-system/runtime/TERA_RUNTIME_PROTOCOLS_CLIENT.md +355 -0
- package/core/tera-system/runtime/TERA_RUNTIME_PROTOCOLS_CORE.md +799 -0
- package/core/tera-system/runtime/TERA_RUNTIME_TEMPLATES.md +908 -0
- package/core/tera-system/runtime/TERA_RUNTIME_TEMPLATES_DELIVERY.md +584 -0
- package/core/tera-system/runtime/TERA_RUNTIME_TEMPLATES_PREPARATION.md +376 -0
- package/core/tera-system/runtime/TERA_SOLUTION_PREPARATION_PROTOCOL.md +335 -0
- package/core/tera-system/runtime/TERA_SOLUTION_PREPARATION_TEMPLATES.md +397 -0
- package/core/tera-system/runtime/VERSION_LIFECYCLE_PROTOCOL.md +296 -0
- package/core/tera-system/semgrep-rules/README.md +32 -0
- package/core/tera-system/semgrep-rules/tera-security.yml +66 -0
- package/core/tera-system/semgrep-rules/tera-standards.yml +49 -0
- package/core/tera-system/teranoo-ui/README.md +48 -0
- package/core/tera-system/teranoo-ui/components/button.tsx +51 -0
- package/core/tera-system/teranoo-ui/components/card.tsx +49 -0
- package/core/tera-system/teranoo-ui/components/dashboard-layout.tsx +36 -0
- package/core/tera-system/teranoo-ui/components/data-table.tsx +146 -0
- package/core/tera-system/teranoo-ui/components/empty-state.tsx +31 -0
- package/core/tera-system/teranoo-ui/components/kpi-card.tsx +42 -0
- package/core/tera-system/teranoo-ui/components/page-header.tsx +25 -0
- package/core/tera-system/teranoo-ui/components/search-input.tsx +40 -0
- package/core/tera-system/teranoo-ui/components/sidebar.tsx +66 -0
- package/core/tera-system/teranoo-ui/components/stats-card.tsx +37 -0
- package/core/tera-system/teranoo-ui/registry.json +77 -0
- package/core/tera-system/teranoo-ui/styles/teranoo-theme.css +61 -0
- package/opencode.tera.example.json +30 -0
- package/package.json +37 -0
- package/scripts/build.mjs +110 -0
- package/scripts/install.js +244 -0
- package/scripts/lib/license.mjs +90 -0
- package/scripts/lib/public-key.pem +3 -0
- package/scripts/tera-license.mjs +63 -0
- package/tools/tera-clean.ps1 +97 -0
- package/tools/tera-fetch.ps1 +165 -0
- package/tools/tera-release.ps1 +96 -0
- package/tools/tera-schedule.ps1 +59 -0
- package/tools/tera-update.ps1 +472 -0
- package/tools/tera-watch.ps1 +154 -0
- package/tools/update-client-repositories.ps1 +92 -0
|
@@ -0,0 +1,397 @@
|
|
|
1
|
+
# Tera Solution Preparation Templates
|
|
2
|
+
|
|
3
|
+
هذه القوالب هي مادة دعم تشغيلية رسمية لـ **ApplicationBlueprintAgent (مُهندس)** للمراحل 1–4.
|
|
4
|
+
|
|
5
|
+
**Reference:** SCP-2026-07-28-118
|
|
6
|
+
**Split from:** `tera-system/runtime/TERA_RUNTIME_TEMPLATES.md`
|
|
7
|
+
**Primary consumer:** مُهندس (ApplicationBlueprintAgent)
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
## 1. Project Decision Template (Phase 2 Output)
|
|
12
|
+
|
|
13
|
+
الملف: `project-control/TERA_PROJECT_DECISION.md`
|
|
14
|
+
|
|
15
|
+
```markdown
|
|
16
|
+
# TERA_PROJECT_DECISION.md
|
|
17
|
+
|
|
18
|
+
> **المرحلة:** 2. Project Decision Formation
|
|
19
|
+
> **أعدّه:** ApplicationBlueprintAgent (مُهندس)
|
|
20
|
+
|
|
21
|
+
## 1. Decision Metadata
|
|
22
|
+
| البند | القيمة |
|
|
23
|
+
|---|---|
|
|
24
|
+
| اسم المشروع | `[PROJECT_NAME]` |
|
|
25
|
+
| تاريخ القرار | `[DATE]` |
|
|
26
|
+
| حالة القرار | Draft / Pending Approval / Approved / Blocked |
|
|
27
|
+
|
|
28
|
+
## 2. Intake Readiness
|
|
29
|
+
| البند | الحالة |
|
|
30
|
+
|---|---|
|
|
31
|
+
| Application Idea | Complete / Partial / Missing |
|
|
32
|
+
| Technical Context | Complete / Partial / Missing |
|
|
33
|
+
| Technology Profile Candidate | Found / Missing / Unclear |
|
|
34
|
+
|
|
35
|
+
## 3. Project Understanding Summary
|
|
36
|
+
[3-5 أسطر]
|
|
37
|
+
|
|
38
|
+
## 4. Project Type Classification
|
|
39
|
+
| البند | التصنيف |
|
|
40
|
+
|---|---|
|
|
41
|
+
| نوع المشروع | Web App / SaaS / ERP / Mobile / API / MVP / Other |
|
|
42
|
+
| حجم المشروع | Tiny / Small MVP / Medium / Large |
|
|
43
|
+
| مستوى التعقيد | Low / Medium / High |
|
|
44
|
+
|
|
45
|
+
## 5. Initial Scope Direction
|
|
46
|
+
### داخل النطاق
|
|
47
|
+
- ...
|
|
48
|
+
### خارج النطاق
|
|
49
|
+
- ...
|
|
50
|
+
### مؤجل
|
|
51
|
+
- ...
|
|
52
|
+
|
|
53
|
+
## 6. Technology Understanding
|
|
54
|
+
| المجال | القيمة | الحالة |
|
|
55
|
+
|---|---|---|
|
|
56
|
+
| لغة البرمجة | ... | ... |
|
|
57
|
+
| Framework | ... | ... |
|
|
58
|
+
| قاعدة البيانات | ... | ... |
|
|
59
|
+
|
|
60
|
+
## 7. Client Readiness (للمشاريع الخارجية)
|
|
61
|
+
| البند | الحالة |
|
|
62
|
+
|---|---|
|
|
63
|
+
| Client Profile | Complete / N/A |
|
|
64
|
+
| Execution Authorization | Approved / Pending / N/A |
|
|
65
|
+
|
|
66
|
+
## 8. Required Preparation Files
|
|
67
|
+
| الملف | التصنيف | العميل المتوقع |
|
|
68
|
+
|---|---|---|
|
|
69
|
+
| 01_PROJECT_BRIEF.md | Required | RequirementsScopeAgent |
|
|
70
|
+
| ... | ... | ... |
|
|
71
|
+
|
|
72
|
+
## 9. Suggested Sub-Agents
|
|
73
|
+
| العميل | الحاجة | السبب |
|
|
74
|
+
|---|---|---|
|
|
75
|
+
| ... | Required / Conditional / Not Needed | ... |
|
|
76
|
+
|
|
77
|
+
## 10. Initial Risks / Gaps
|
|
78
|
+
| الفجوة | الخطورة | الإجراء |
|
|
79
|
+
|---|---|---|
|
|
80
|
+
|
|
81
|
+
## 11. Model Tier & Token Policy
|
|
82
|
+
| المرحلة | المستوى الموصى به | السبب |
|
|
83
|
+
|---|---|---|
|
|
84
|
+
| Discovery | Medium | ... |
|
|
85
|
+
| Scope | Medium | ... |
|
|
86
|
+
|
|
87
|
+
## 12. Tera Decision
|
|
88
|
+
```
|
|
89
|
+
Decision: PROCEED / ASK_MORE / CREATE_PROFILE / STOP
|
|
90
|
+
الخطوة التالية: ...
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
## 13. Post-Decision Protocol
|
|
94
|
+
1. إنشاء `00_PROJECT_INPUTS.md`
|
|
95
|
+
2. تسجيل في `PROJECT_STATE.md` و `PROJECT_ACTIVITY_LOG.md`
|
|
96
|
+
3. بدء المرحلة 3 — Preparation Planning
|
|
97
|
+
4. لا إنشاء ملفات تحضير قبل اعتماد الخطة
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
---
|
|
101
|
+
|
|
102
|
+
## 2. Preparation Plan Template (Phase 3 Output)
|
|
103
|
+
|
|
104
|
+
الملف: `project-control/PREPARATION_PLAN.md`
|
|
105
|
+
|
|
106
|
+
```markdown
|
|
107
|
+
# PREPARATION_PLAN.md
|
|
108
|
+
|
|
109
|
+
## 1. Preparation Decision
|
|
110
|
+
Decision: Proceed / Blocked / Needs More Intake
|
|
111
|
+
Reference: `TERA_PROJECT_DECISION.md`
|
|
112
|
+
|
|
113
|
+
## 2. Required Preparation Files
|
|
114
|
+
| File | Required | Reason | Owner Agent | Order |
|
|
115
|
+
|---|---|---|---|---|
|
|
116
|
+
| 01_PROJECT_BRIEF.md | Required | Core understanding | RequirementsScopeAgent | 1 |
|
|
117
|
+
| 02_SCOPE_AND_BOUNDARIES.md | Required | Scope discipline | RequirementsScopeAgent | 2 |
|
|
118
|
+
| ... | ... | ... | ... | ... |
|
|
119
|
+
|
|
120
|
+
Classification Key:
|
|
121
|
+
- Required: Must be created now
|
|
122
|
+
- Conditional: Create only if trigger is met
|
|
123
|
+
- Deferred: Postponed
|
|
124
|
+
- Not Required: Not needed
|
|
125
|
+
|
|
126
|
+
## 3. Deferred Files
|
|
127
|
+
| File | Reason | Trigger for Activation |
|
|
128
|
+
|---|---|---|
|
|
129
|
+
|
|
130
|
+
## 4. Not Required Files
|
|
131
|
+
| File | Reason |
|
|
132
|
+
|---|---|
|
|
133
|
+
|
|
134
|
+
## 5. Suggested Sub-Agents
|
|
135
|
+
| Agent | Needed Now | Reason |
|
|
136
|
+
|---|---|---|
|
|
137
|
+
|
|
138
|
+
## 6. Preparation Sequence
|
|
139
|
+
```
|
|
140
|
+
Batch A: 01, 08
|
|
141
|
+
Batch B: 02, 04
|
|
142
|
+
Batch C: 05, 07
|
|
143
|
+
Batch D: 06, 09
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
## 7. User Approval Points
|
|
147
|
+
| Point | What Needs Approval | Before Moving To |
|
|
148
|
+
|---|---|---|
|
|
149
|
+
| P1 | This plan | Phase 4 |
|
|
150
|
+
| P2 | Scope files | Downstream files |
|
|
151
|
+
| P3 | Architecture | Implementation planning |
|
|
152
|
+
|
|
153
|
+
> Rule: No file creation in Phase 3. No agent generation before plan approval.
|
|
154
|
+
|
|
155
|
+
## 8. Approval Status
|
|
156
|
+
- [ ] Plan submitted
|
|
157
|
+
- [ ] Plan approved → Phase 4
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
---
|
|
161
|
+
|
|
162
|
+
## 3. Agent Delegation Plan Template (Phase 4 Output)
|
|
163
|
+
|
|
164
|
+
الملف: `project-control/AGENT_DELEGATION_PLAN.md`
|
|
165
|
+
|
|
166
|
+
```markdown
|
|
167
|
+
# AGENT_DELEGATION_PLAN.md
|
|
168
|
+
|
|
169
|
+
## 1. Delegation Decision
|
|
170
|
+
Decision: Proceed / Needs User Approval / Blocked
|
|
171
|
+
Reference: `PREPARATION_PLAN.md`
|
|
172
|
+
|
|
173
|
+
## 2. Agents Needed Now
|
|
174
|
+
| Agent | Reason | Status | Assigned Files |
|
|
175
|
+
|---|---|---|---|
|
|
176
|
+
| RequirementsScopeAgent | Core scope | Generate / Existing / Specialize | 01, 02, 03, 04 |
|
|
177
|
+
|
|
178
|
+
## 3. Agents Not Needed Now
|
|
179
|
+
| Agent | Reason | Defer Until |
|
|
180
|
+
|---|---|---|
|
|
181
|
+
|
|
182
|
+
## 4. Agent Generation Actions
|
|
183
|
+
| Agent | Action | Output File | Token Budget |
|
|
184
|
+
|---|---|---|---|
|
|
185
|
+
|
|
186
|
+
## 5. Delegation Map
|
|
187
|
+
| Preparation File | Assigned Agent | Allowed Sources | Allowed Write Targets |
|
|
188
|
+
|---|---|---|---|
|
|
189
|
+
|
|
190
|
+
## 6. Activation Plan
|
|
191
|
+
| Agent | Activate Now? | Reason |
|
|
192
|
+
|---|---|---|
|
|
193
|
+
|
|
194
|
+
## 7. User Approval Points
|
|
195
|
+
| Point | What Needs Approval | Before Moving To |
|
|
196
|
+
|---|---|---|
|
|
197
|
+
| A1 | Agent Generation Plan | Generating agents |
|
|
198
|
+
| A2 | Activating agents | Start delegation |
|
|
199
|
+
|
|
200
|
+
> Rules: No approved PREPARATION_PLAN.md = No agent generation. No active need = No active sub-agent.
|
|
201
|
+
|
|
202
|
+
## 8. Approval Status
|
|
203
|
+
- [ ] Plan submitted
|
|
204
|
+
- [ ] Plan approved → Agent generation
|
|
205
|
+
```
|
|
206
|
+
|
|
207
|
+
---
|
|
208
|
+
|
|
209
|
+
## 4. Application Discovery Templates
|
|
210
|
+
|
|
211
|
+
### 4.1 Discovery Notes
|
|
212
|
+
```text
|
|
213
|
+
Application Discovery Notes
|
|
214
|
+
Session date:
|
|
215
|
+
User raw idea summary:
|
|
216
|
+
Normalized application idea:
|
|
217
|
+
Problem / need:
|
|
218
|
+
Target users:
|
|
219
|
+
Main capabilities:
|
|
220
|
+
MVP candidates:
|
|
221
|
+
Later candidates:
|
|
222
|
+
Open questions:
|
|
223
|
+
```
|
|
224
|
+
|
|
225
|
+
### 4.2 Understanding Summary
|
|
226
|
+
```text
|
|
227
|
+
Application Understanding Summary
|
|
228
|
+
Application name:
|
|
229
|
+
Core idea:
|
|
230
|
+
Problem solved:
|
|
231
|
+
Target users:
|
|
232
|
+
Primary goals:
|
|
233
|
+
Main workflows:
|
|
234
|
+
|
|
235
|
+
--- Classified Scope ---
|
|
236
|
+
Core MVP (Phase 1A):
|
|
237
|
+
Extended MVP (Phase 1B):
|
|
238
|
+
Phase 2:
|
|
239
|
+
Phase 3:
|
|
240
|
+
Out of scope:
|
|
241
|
+
|
|
242
|
+
User preferences:
|
|
243
|
+
Technical context:
|
|
244
|
+
Open questions:
|
|
245
|
+
Readiness: Ready / Partially Ready / Not Ready
|
|
246
|
+
```
|
|
247
|
+
|
|
248
|
+
### 4.3 Discovery Confirmation Request
|
|
249
|
+
```text
|
|
250
|
+
This is my current understanding of the application:
|
|
251
|
+
[summary]
|
|
252
|
+
|
|
253
|
+
Please confirm:
|
|
254
|
+
1. Approved as basis for project preparation.
|
|
255
|
+
2. Mostly correct, with corrections: ...
|
|
256
|
+
3. Not correct; continue discovery.
|
|
257
|
+
```
|
|
258
|
+
|
|
259
|
+
### 4.4 Phased Application Roadmap
|
|
260
|
+
```text
|
|
261
|
+
Phase 1 / MVP:
|
|
262
|
+
Core (Phase 1A):
|
|
263
|
+
- ...
|
|
264
|
+
Extended (Phase 1B):
|
|
265
|
+
- ...
|
|
266
|
+
|
|
267
|
+
Phase 2:
|
|
268
|
+
- ...
|
|
269
|
+
|
|
270
|
+
Phase 3:
|
|
271
|
+
- ...
|
|
272
|
+
|
|
273
|
+
Out of scope:
|
|
274
|
+
- ...
|
|
275
|
+
|
|
276
|
+
Approval status: Pending / Approved
|
|
277
|
+
```
|
|
278
|
+
|
|
279
|
+
---
|
|
280
|
+
|
|
281
|
+
## 5. Engineering Handoff Package Template
|
|
282
|
+
|
|
283
|
+
الملف: `project-control/ENGINEERING_HANDOFF_PACKAGE.md`
|
|
284
|
+
|
|
285
|
+
```markdown
|
|
286
|
+
# ENGINEERING_HANDOFF_PACKAGE.md
|
|
287
|
+
|
|
288
|
+
> **منتج بواسطة:** ApplicationBlueprintAgent (مُهندس)
|
|
289
|
+
> **مستهلك بواسطة:** TeraAgent — Engineering Intake Gate
|
|
290
|
+
> **التاريخ:** YYYY-MM-DD
|
|
291
|
+
> **مصدر التغيير:** SCP-2026-07-28-118
|
|
292
|
+
|
|
293
|
+
## 1. Workspace and Project Identity
|
|
294
|
+
- **ClientAppPath:** [absolute path]
|
|
295
|
+
- **Project:** [name]
|
|
296
|
+
- **Phase:** Solution Baseline → Engineering Handoff
|
|
297
|
+
|
|
298
|
+
## 2. Approved Scope / Version References
|
|
299
|
+
- **Scope Source:** [TERA_HANDOFF_PACKAGE.md أو قرار Majed]
|
|
300
|
+
- **Version:** [version]
|
|
301
|
+
- **Approval Date:** [date]
|
|
302
|
+
|
|
303
|
+
## 3. Preparation Baseline Manifest
|
|
304
|
+
| Document | Lifecycle State | Module Coverage | Notes |
|
|
305
|
+
|---|---|---|---|
|
|
306
|
+
| 01_PROJECT_BRIEF.md | MBA / System Approved | All | |
|
|
307
|
+
| 02_SCOPE_AND_BOUNDARIES.md | MBA | All | |
|
|
308
|
+
| 08_TECHNICAL_ARCHITECTURE.md | System Approved | All | |
|
|
309
|
+
| ... | ... | ... | ... |
|
|
310
|
+
|
|
311
|
+
## 4. Requirements Traceability Summary
|
|
312
|
+
| Req ID | Source | Workflow | Screen | Data | Acceptance Criteria |
|
|
313
|
+
|---|---|---|---|---|---|
|
|
314
|
+
| ... | ... | ... | ... | ... | ... |
|
|
315
|
+
|
|
316
|
+
## 5. Architecture / Technology Decisions
|
|
317
|
+
- **Active Technology Profile:** [profile path]
|
|
318
|
+
- **Key Architecture Decisions:**
|
|
319
|
+
- ...
|
|
320
|
+
- **Constraints:** ...
|
|
321
|
+
|
|
322
|
+
## 6. Design Source and UI Readiness
|
|
323
|
+
- **Design Source Decision:** [INTERNAL_TERA_KIT / FIGMA / GETDESIGN_MD / HYBRID / NO_UI]
|
|
324
|
+
- **UI Guidance File:** [path to 28_UI_UX_GUIDELINES.md or N/A]
|
|
325
|
+
- **UI Readiness:** Ready / Needs Design / N/A
|
|
326
|
+
|
|
327
|
+
## 7. Test and Acceptance Readiness
|
|
328
|
+
- **Acceptance Criteria:** Documented / Partial / Pending
|
|
329
|
+
- **QA Plan:** [reference or N/A]
|
|
330
|
+
- **Testability:** All features testable / Partial gaps documented
|
|
331
|
+
|
|
332
|
+
## 8. Risks, Assumptions, Deferred Items
|
|
333
|
+
| Item | Type | Impact | Mitigation / Notes |
|
|
334
|
+
|---|---|---|---|
|
|
335
|
+
| ... | Risk / Assumption / Deferred | High / Medium / Low | ... |
|
|
336
|
+
|
|
337
|
+
## 9. Non-Blocking Questions
|
|
338
|
+
| Question | Impact If Unresolved | Suggested Owner |
|
|
339
|
+
|---|---|---|
|
|
340
|
+
| ... | ... | Tera / Majed |
|
|
341
|
+
|
|
342
|
+
## 10. Recommended Implementation Sequence
|
|
343
|
+
1. [Foundation / Scaffold]
|
|
344
|
+
2. [Database / Core Models]
|
|
345
|
+
3. [Core Workflow / Feature]
|
|
346
|
+
...
|
|
347
|
+
[N]: [Phase 7 — Delivery]
|
|
348
|
+
|
|
349
|
+
> هذا تسلسل استرشادي. TeraAgent يملك القرار التنفيذي النهائي في Phase 5.
|
|
350
|
+
|
|
351
|
+
## 11. Solution Readiness Gate Evidence
|
|
352
|
+
- **Gate Result:** PASS
|
|
353
|
+
- **Gate Date:** YYYY-MM-DD
|
|
354
|
+
- **Gate Evidence:** [summary or reference to gate checklist]
|
|
355
|
+
|
|
356
|
+
## 12. Majed Approval Reference
|
|
357
|
+
- **Approved by:** Majed
|
|
358
|
+
- **Approval Date:** YYYY-MM-DD
|
|
359
|
+
- **Approval Scope:** Full preparation baseline approved for Engineering Intake
|
|
360
|
+
```
|
|
361
|
+
|
|
362
|
+
---
|
|
363
|
+
|
|
364
|
+
## 6. Solution Readiness Gate Checklist
|
|
365
|
+
|
|
366
|
+
```markdown
|
|
367
|
+
# SOLUTION_READINESS_GATE — [Project Name]
|
|
368
|
+
|
|
369
|
+
## Gate Metadata
|
|
370
|
+
- **Date:** YYYY-MM-DD
|
|
371
|
+
- **Owner:** ApplicationBlueprintAgent (مُهندس)
|
|
372
|
+
|
|
373
|
+
## Readiness Checks
|
|
374
|
+
| # | Check | Result | Evidence / Notes |
|
|
375
|
+
|---|---|---|---|
|
|
376
|
+
| 1 | Approved commercial/owner source exists | PASS / FAIL | |
|
|
377
|
+
| 2 | Scope/exclusions/deferred/assumptions explicit | PASS / FAIL | |
|
|
378
|
+
| 3 | Every material requirement traced to source | PASS / FAIL | |
|
|
379
|
+
| 4 | Users/roles/workflows/screens/data consistent | PASS / FAIL | |
|
|
380
|
+
| 5 | Error/empty/exception/edge cases covered | PASS / FAIL | |
|
|
381
|
+
| 6 | Security/performance/deployment triggers evaluated | PASS / FAIL | |
|
|
382
|
+
| 7 | UI Design Source Decision exists | PASS / N/A | |
|
|
383
|
+
| 8 | Acceptance criteria observable and testable | PASS / FAIL | |
|
|
384
|
+
| 9 | Required docs reached required lifecycle states | PASS / FAIL | |
|
|
385
|
+
| 10 | Cross-document reconciliation passed | PASS / FAIL | |
|
|
386
|
+
| 11 | No unresolved High/Critical item | PASS / FAIL | |
|
|
387
|
+
| 12 | No Low Confidence section | PASS / FAIL | |
|
|
388
|
+
| 13 | No Pending Approval blocking Phase 5 | PASS / FAIL | |
|
|
389
|
+
| 14 | Technology Profile confirmed | PASS / FAIL | |
|
|
390
|
+
| 15 | Recommended implementation sequence exists | PASS / FAIL | |
|
|
391
|
+
|
|
392
|
+
## Gate Result
|
|
393
|
+
**PASS / REVISION_REQUIRED / BLOCKED**
|
|
394
|
+
|
|
395
|
+
## Next Step
|
|
396
|
+
[إذا PASS: "تقديم ENGINEERING_HANDOFF_PACKAGE.md إلى Majed للاعتماد"]
|
|
397
|
+
```
|
|
@@ -0,0 +1,296 @@
|
|
|
1
|
+
# VERSION_LIFECYCLE_PROTOCOL.md
|
|
2
|
+
|
|
3
|
+
> **Purpose:** Official Teranoo protocol for application version, release, maintenance, and hotfix lifecycle management.
|
|
4
|
+
> **Layer:** Tera Version Management Layer.
|
|
5
|
+
> **Status:** Active runtime protocol.
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## 1. Core Rule
|
|
10
|
+
|
|
11
|
+
```text
|
|
12
|
+
No released version may be modified without opening a Version Cycle, Maintenance Cycle, or Hotfix Cycle.
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
Arabic operational wording:
|
|
16
|
+
|
|
17
|
+
> لا يتم تعديل أي نسخة مسلّمة إلا من خلال دورة نسخة جديدة، أو دورة صيانة، أو دورة إصلاح عاجل.
|
|
18
|
+
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
## 2. Release Types
|
|
22
|
+
|
|
23
|
+
| Type | Meaning | Scope Rule |
|
|
24
|
+
|---|---|---|
|
|
25
|
+
| `Initial` | First delivered application version, usually `v1.0` | Uses full 7-phase workflow |
|
|
26
|
+
| `Hotfix` | Urgent production fix after release | No new features allowed |
|
|
27
|
+
| `Patch` | Small bug fixes or safe improvements | No major workflow or module changes |
|
|
28
|
+
| `Minor` | New features within the same product direction | Requires version decision and planning |
|
|
29
|
+
| `Major` | New module, major workflow, breaking change, or new product scope | Requires updated project decision and fuller planning |
|
|
30
|
+
|
|
31
|
+
---
|
|
32
|
+
|
|
33
|
+
## 3. Required Project-Control Records
|
|
34
|
+
|
|
35
|
+
For projects using version management, Tera must maintain:
|
|
36
|
+
|
|
37
|
+
```text
|
|
38
|
+
project-control/VERSION_REGISTRY.md
|
|
39
|
+
project-control/RELEASE_NOTES.md
|
|
40
|
+
project-control/NEXT_VERSION_HANDOFF.md
|
|
41
|
+
project-control/PROJECT_STATE.md
|
|
42
|
+
project-control/TASK_REGISTRY.md
|
|
43
|
+
project-control/tasks/TASK_TEMPLATE.md
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
Rules:
|
|
47
|
+
|
|
48
|
+
- No new version starts without updating `VERSION_REGISTRY.md`.
|
|
49
|
+
- Every task must record `Target Version` and `Release Type`.
|
|
50
|
+
- Every release, patch, or hotfix must update `RELEASE_NOTES.md`.
|
|
51
|
+
- Phase 7 must produce or update `NEXT_VERSION_HANDOFF.md` unless the application reaches Final Application Closure.
|
|
52
|
+
- Deferred features must be linked to a target version or explicitly marked `Unassigned`.
|
|
53
|
+
|
|
54
|
+
---
|
|
55
|
+
|
|
56
|
+
## 4. Version Cycle Entry Rules
|
|
57
|
+
|
|
58
|
+
### 4.0 Version Scope Proposal Ownership
|
|
59
|
+
|
|
60
|
+
During Phase 2, ApplicationBlueprintAgent (مُهندس — SCP-2026-07-28-118) is responsible for proposing what enters each application version based on:
|
|
61
|
+
|
|
62
|
+
- Phase 1 discovery information.
|
|
63
|
+
- `MVP_DEFINITION_PROTOCOL.md` classification.
|
|
64
|
+
- Client/user priorities.
|
|
65
|
+
- Risks, dependencies, and implementation complexity.
|
|
66
|
+
- Anti-bloat and smallest useful version rules.
|
|
67
|
+
|
|
68
|
+
The user/client is responsible for approving, rejecting, or modifying the proposal.
|
|
69
|
+
|
|
70
|
+
```text
|
|
71
|
+
Client provides needs -> Tera proposes version scope -> User/client approves -> Tera documents and executes.
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
No version scope becomes official until it is approved and recorded in the relevant project-control records, especially `VERSION_REGISTRY.md` and the Phase 2 decision record.
|
|
75
|
+
|
|
76
|
+
### 4.0.1 Version Scope Change Requests
|
|
77
|
+
|
|
78
|
+
If the user/client asks to move a feature, screen, workflow, module, or requirement from one version to another, Tera must classify it as a `Version Scope Change`.
|
|
79
|
+
|
|
80
|
+
Examples:
|
|
81
|
+
|
|
82
|
+
```text
|
|
83
|
+
Move Feature X from v1.1 to v1.0.
|
|
84
|
+
Move reports from v2.0 to v1.1.
|
|
85
|
+
Move mobile support out of v1.0 to a later version.
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
Rules:
|
|
89
|
+
|
|
90
|
+
- Tera is responsible for updating the version documentation and execution records after approval.
|
|
91
|
+
- If the target version is not released yet, Tera may update that version's approved scope, plans, task registry, and release notes preparation after user/client approval.
|
|
92
|
+
- If the target version is already released, Tera must not rewrite the released version history or tag. Instead, Tera must open the appropriate `Patch`, `Hotfix`, `Minor`, or `Major` cycle.
|
|
93
|
+
- Moving a feature into an earlier unreleased version requires checking MVP impact, schedule impact, risks, dependencies, preparation files, and client approval needs.
|
|
94
|
+
- Moving a feature out of a version requires updating deferred items and the target version in `VERSION_REGISTRY.md`.
|
|
95
|
+
- The original version history must remain traceable.
|
|
96
|
+
|
|
97
|
+
Required records when applicable:
|
|
98
|
+
|
|
99
|
+
```text
|
|
100
|
+
VERSION_REGISTRY.md
|
|
101
|
+
PROJECT_STATE.md
|
|
102
|
+
TASK_REGISTRY.md
|
|
103
|
+
RELEASE_NOTES.md
|
|
104
|
+
PROJECT_MASTER_PLAN.md / PROJECT_DETAILED_EXECUTION_PLAN.md
|
|
105
|
+
Phase 2 decision record / VERSION_DECISION.md when used
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
### 4.1 First Version (`v1.0`)
|
|
109
|
+
|
|
110
|
+
Default path:
|
|
111
|
+
|
|
112
|
+
```text
|
|
113
|
+
Phase 1 -> Phase 2 -> Phase 3 -> Phase 4 -> Phase 5 -> Phase 6 -> Phase 7
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
The first version must define:
|
|
117
|
+
|
|
118
|
+
- `Current App Version`
|
|
119
|
+
- `Release Type: Initial`
|
|
120
|
+
- Core MVP scope
|
|
121
|
+
- Deferred features and target versions where known
|
|
122
|
+
|
|
123
|
+
### 4.2 New Minor / Major Version
|
|
124
|
+
|
|
125
|
+
Before starting `v1.1`, `v2.0`, or later:
|
|
126
|
+
|
|
127
|
+
1. Read `VERSION_REGISTRY.md`.
|
|
128
|
+
2. Read `NEXT_VERSION_HANDOFF.md` if it exists.
|
|
129
|
+
3. Classify release type: `Minor` or `Major`.
|
|
130
|
+
4. Update or create a version decision record in project-control files.
|
|
131
|
+
5. Update `PROJECT_STATE.md` and `TASK_REGISTRY.md` version fields.
|
|
132
|
+
6. Continue with the smallest sufficient phase path:
|
|
133
|
+
- Minor: usually Phase 2 update -> Phase 3/5 as needed -> Phase 6 -> Phase 7.
|
|
134
|
+
- Major: usually updated Phase 2 -> Phase 3 -> Phase 4 if needed -> Phase 5 -> Phase 6 -> Phase 7.
|
|
135
|
+
|
|
136
|
+
### 4.3 Hotfix / Patch Cycle
|
|
137
|
+
|
|
138
|
+
Before starting a hotfix or patch:
|
|
139
|
+
|
|
140
|
+
1. Classify the request as Bug / Hotfix / Patch / Minor Feature / Major Version.
|
|
141
|
+
2. Confirm affected released version.
|
|
142
|
+
3. Confirm no new feature is included in hotfix scope.
|
|
143
|
+
4. Create a versioned fix task using `TASK-COD-FIX-vX.Y.Z-001` or equivalent approved format.
|
|
144
|
+
5. Run Pre-Execution Gate.
|
|
145
|
+
6. Execute in Phase 6.
|
|
146
|
+
7. Run Post-Execution Review.
|
|
147
|
+
8. Update `RELEASE_NOTES.md`, `VERSION_REGISTRY.md`, and `PROJECT_STATE.md`.
|
|
148
|
+
9. Run compact Phase 7 closure for the hotfix/patch.
|
|
149
|
+
|
|
150
|
+
---
|
|
151
|
+
|
|
152
|
+
## 5. Versioned TASK-ID Rule
|
|
153
|
+
|
|
154
|
+
Default versioned format:
|
|
155
|
+
|
|
156
|
+
```text
|
|
157
|
+
TASK-COD-v1.0-001
|
|
158
|
+
TASK-PREP-v1.0-001
|
|
159
|
+
TASK-REV-v1.0-001
|
|
160
|
+
TASK-COD-FIX-v1.0.1-001
|
|
161
|
+
```
|
|
162
|
+
|
|
163
|
+
Rules:
|
|
164
|
+
|
|
165
|
+
- Keep the prefix family (`TASK-COD-*`, `TASK-PREP-*`, `TASK-COD-FIX-*`) compatible with existing Teranoo gates.
|
|
166
|
+
- Do not create duplicate task IDs for the same target version.
|
|
167
|
+
- Read the last used task ID for the target version before creating the next one.
|
|
168
|
+
- `TASK-COD-FIX-*` is for accepted fix work returning from Phase 7 or production maintenance.
|
|
169
|
+
|
|
170
|
+
---
|
|
171
|
+
|
|
172
|
+
## 6. Phase 7 Closure Types
|
|
173
|
+
|
|
174
|
+
Phase 7 must distinguish between:
|
|
175
|
+
|
|
176
|
+
| Closure Type | Meaning |
|
|
177
|
+
|---|---|
|
|
178
|
+
| `Version Closure` | A delivered version such as `v1.0` is accepted/released |
|
|
179
|
+
| `Maintenance Closure` | Patch or non-urgent maintenance cycle is closed |
|
|
180
|
+
| `Hotfix Closure` | Urgent fix version such as `v1.0.1` is released |
|
|
181
|
+
| `Final Application Closure` | The whole application lifecycle is closed with no planned next version |
|
|
182
|
+
|
|
183
|
+
Rules:
|
|
184
|
+
|
|
185
|
+
- Version Closure is not automatically Final Application Closure.
|
|
186
|
+
- No Final Application Closure with hidden open issues or undocumented deferred items.
|
|
187
|
+
- If a next version is likely, update `NEXT_VERSION_HANDOFF.md`.
|
|
188
|
+
|
|
189
|
+
---
|
|
190
|
+
|
|
191
|
+
## 7. Git Release Tagging + GitHub Releases Protocol
|
|
192
|
+
|
|
193
|
+
Git release tagging is the official code-level anchor for a delivered application version. GitHub Releases are the official repository-facing release record when the project remote is hosted on GitHub.
|
|
194
|
+
|
|
195
|
+
### 7.1 Responsibility Model
|
|
196
|
+
|
|
197
|
+
| Responsibility | Owner |
|
|
198
|
+
|---|---|
|
|
199
|
+
| Inspecting git status/diff/log before release commit | Tera |
|
|
200
|
+
| Preparing commit message and local commit | Tera |
|
|
201
|
+
| Confirming remote URL from `project-control/GIT_REMOTE.md` | Tera |
|
|
202
|
+
| Asking for push/tag approval | Tera |
|
|
203
|
+
| Approving or rejecting push/tag | User / Majed / authorized client owner |
|
|
204
|
+
| Executing `git push`, `git tag`, and tag push after approval | Tera |
|
|
205
|
+
| Creating GitHub Release after tag push approval | Tera |
|
|
206
|
+
| Recording git/tag result in project-control files | Tera |
|
|
207
|
+
|
|
208
|
+
User responsibility is approval. Tera responsibility is safe repository handling, release tagging, GitHub Release creation, logging, and version traceability.
|
|
209
|
+
|
|
210
|
+
### 7.2 Release Tag Preconditions
|
|
211
|
+
|
|
212
|
+
Before creating a Git release tag:
|
|
213
|
+
|
|
214
|
+
- Phase 7 Delivery Readiness is `READY` or the closure decision allows release.
|
|
215
|
+
- `VERSION_REGISTRY.md` is updated for the target version.
|
|
216
|
+
- `RELEASE_NOTES.md` contains the target version entry.
|
|
217
|
+
- `PROJECT_CLOSURE_REPORT.md` records Closure Type and Closed Version.
|
|
218
|
+
- No secrets are staged or committed.
|
|
219
|
+
- `project-control/GIT_REMOTE.md` matches the intended repository.
|
|
220
|
+
- User has explicitly approved push/tag action.
|
|
221
|
+
- If GitHub Release is requested, GitHub remote is confirmed and release notes are ready.
|
|
222
|
+
- **CI Status (SCP-2026-07-31-002):** if `.github/workflows/` CI exists for the workspace, the latest run on the release branch should be `PASS` or a documented waiver recorded in `VERSION_REGISTRY.md`. If CI does not exist, record `N/A (no CI)`.
|
|
223
|
+
|
|
224
|
+
### 7.3 Default Git Release Flow
|
|
225
|
+
|
|
226
|
+
```text
|
|
227
|
+
review status/diff/log
|
|
228
|
+
-> git add .
|
|
229
|
+
-> git commit -m "Release vX.Y"
|
|
230
|
+
-> ask user approval to push
|
|
231
|
+
-> git push
|
|
232
|
+
-> ask user approval to create/push tag
|
|
233
|
+
-> git tag -a vX.Y -m "Release vX.Y"
|
|
234
|
+
-> git push origin vX.Y
|
|
235
|
+
-> ask user approval to create GitHub Release
|
|
236
|
+
-> gh release create vX.Y --title "Release vX.Y" --notes-file [release-notes-file]
|
|
237
|
+
-> update VERSION_REGISTRY / RELEASE_NOTES / PROJECT_CLOSURE_REPORT / PROJECT_ACTIVITY_LOG
|
|
238
|
+
```
|
|
239
|
+
|
|
240
|
+
For hotfixes:
|
|
241
|
+
|
|
242
|
+
```text
|
|
243
|
+
git checkout -b hotfix/vX.Y.Z vX.Y
|
|
244
|
+
```
|
|
245
|
+
|
|
246
|
+
Only after the user approves the hotfix cycle and Tera confirms the target base tag.
|
|
247
|
+
|
|
248
|
+
### 7.4 Tag Rules
|
|
249
|
+
|
|
250
|
+
- Tag names should match the application version: `v1.0`, `v1.0.1`, `v1.1`, `v2.0`.
|
|
251
|
+
- No force-push.
|
|
252
|
+
- No deleting or rewriting release tags without explicit emergency approval.
|
|
253
|
+
- No tag if Phase 7 is blocked.
|
|
254
|
+
- If tag creation is deferred, record why in `VERSION_REGISTRY.md` and `PROJECT_CLOSURE_REPORT.md`.
|
|
255
|
+
- Git tags restore code state, not database state, secrets, uploaded files, or server configuration. Release notes must record migration/deployment notes when relevant.
|
|
256
|
+
|
|
257
|
+
### 7.5 GitHub Release Rules
|
|
258
|
+
|
|
259
|
+
- GitHub Release creation is optional per release but recommended for every delivered version after the Git tag is pushed.
|
|
260
|
+
- No GitHub Release without a matching Git tag.
|
|
261
|
+
- No GitHub Release without explicit user approval.
|
|
262
|
+
- GitHub Release notes must come from `project-control/RELEASE_NOTES.md` or a generated release-note excerpt for the target version.
|
|
263
|
+
- If `gh` CLI is unavailable or unauthenticated, record GitHub Release as `Deferred` and keep the Git tag as the source of truth.
|
|
264
|
+
- If the repository is not hosted on GitHub, record GitHub Release as `N/A`.
|
|
265
|
+
- GitHub Releases must not contain secrets, credentials, private environment values, or unapproved client-sensitive information.
|
|
266
|
+
|
|
267
|
+
---
|
|
268
|
+
|
|
269
|
+
## 8. Deferred Level 3 Expansion
|
|
270
|
+
|
|
271
|
+
The following expansion is intentionally deferred until needed:
|
|
272
|
+
|
|
273
|
+
```text
|
|
274
|
+
project-control/versions/
|
|
275
|
+
/tera-new-version
|
|
276
|
+
/tera-hotfix
|
|
277
|
+
/tera-maintenance
|
|
278
|
+
deprecation / end-of-life workflows
|
|
279
|
+
parallel version support
|
|
280
|
+
```
|
|
281
|
+
|
|
282
|
+
Activation triggers:
|
|
283
|
+
|
|
284
|
+
- Large or ERP project.
|
|
285
|
+
- Multiple active versions.
|
|
286
|
+
- Frequent hotfix or maintenance cycles.
|
|
287
|
+
- Need to archive each version separately.
|
|
288
|
+
- Client requires formal version-by-version approval records.
|
|
289
|
+
|
|
290
|
+
Until then, `VERSION_REGISTRY.md`, `RELEASE_NOTES.md`, `NEXT_VERSION_HANDOFF.md`, and versioned task fields are the official lightweight layer.
|
|
291
|
+
|
|
292
|
+
---
|
|
293
|
+
|
|
294
|
+
## 9. Anti-Bloat Rule
|
|
295
|
+
|
|
296
|
+
Do not create per-version folders or slash commands until the Level 3 activation trigger exists and the user approves it.
|