@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,584 @@
|
|
|
1
|
+
# Tera Runtime Templates — Delivery & Execution
|
|
2
|
+
|
|
3
|
+
These are the execution, delivery, and closure templates (Sections 29–34) 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
|
+
Preparation-phase templates: `tera-system/runtime/TERA_RUNTIME_TEMPLATES_PREPARATION.md` (Sections 35–40).
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## 29. Project Master Plan (Phase 5 — Output)
|
|
10
|
+
|
|
11
|
+
This template is used for the first formal output of Phase 5 (Execution Planning).
|
|
12
|
+
The generated file is saved to `project-control/PROJECT_MASTER_PLAN.md`.
|
|
13
|
+
|
|
14
|
+
```markdown
|
|
15
|
+
# PROJECT_MASTER_PLAN.md
|
|
16
|
+
|
|
17
|
+
## 1. Plan Metadata
|
|
18
|
+
|
|
19
|
+
| Item | Value |
|
|
20
|
+
|---|---|
|
|
21
|
+
| Project | [NAME] |
|
|
22
|
+
| Version | 1.0 |
|
|
23
|
+
| Status | Draft / Approved / Active |
|
|
24
|
+
| Reference | `project-preparation/09_IMPLEMENTATION_PLAN.md` |
|
|
25
|
+
|
|
26
|
+
## 1.1 Relationship to Preparation Plan
|
|
27
|
+
|
|
28
|
+
| File | Role |
|
|
29
|
+
|---|---|
|
|
30
|
+
| `project-preparation/09_IMPLEMENTATION_PLAN.md` | Preliminary implementation plan produced during preparation |
|
|
31
|
+
| `project-control/PROJECT_MASTER_PLAN.md` | Official execution roadmap after preparation approval |
|
|
32
|
+
| `project-control/PROJECT_DETAILED_EXECUTION_PLAN.md` | Detailed traceable execution items |
|
|
33
|
+
| `project-control/EXECUTION_BATCH_PLAN.md` | Next approved executable batch only |
|
|
34
|
+
| `project-control/tasks/TASK-COD-XXX.md` | Actual executable unit |
|
|
35
|
+
|
|
36
|
+
## 2. Execution Phases
|
|
37
|
+
|
|
38
|
+
| Phase | Name | Objective | Roadmap Tier | Depends On | Status |
|
|
39
|
+
|---|---|---|---|---|---|
|
|
40
|
+
| 1 | [e.g. Technical Foundation] | [e.g. Scaffold project, init ORM, verify startup] | Core MVP / Foundation | — | Planned |
|
|
41
|
+
| 2 | [e.g. Database Schema] | [e.g. Define models, create migration, seed] | Core MVP | Phase 1 | Planned |
|
|
42
|
+
| 3 | [e.g. Core Feature] | [e.g. Main workflow implementation] | Core MVP / Extended MVP | Phase 1, 2 | Planned |
|
|
43
|
+
| ... | ... | ... | ... | ... | ... |
|
|
44
|
+
|
|
45
|
+
## 2.1 Formal Phased Roadmap
|
|
46
|
+
|
|
47
|
+
| Roadmap Tier | Included Phases / Features | Explicitly Excluded / Later |
|
|
48
|
+
|---|---|---|
|
|
49
|
+
| Core MVP | ... | ... |
|
|
50
|
+
| Extended MVP | ... | ... |
|
|
51
|
+
| Phase 2 | ... | ... |
|
|
52
|
+
| Later / Out of Scope | ... | ... |
|
|
53
|
+
|
|
54
|
+
> **Rule:** No detailed execution planning or `TASK-COD-*` generation before this master plan, including the formal phased roadmap, is approved.
|
|
55
|
+
|
|
56
|
+
## 3. Transition Conditions
|
|
57
|
+
|
|
58
|
+
| From | To | Condition |
|
|
59
|
+
|---|---|---|
|
|
60
|
+
| Phase 1 | Phase 2 | Project starts, dev env works, ORM connects to DB |
|
|
61
|
+
| Phase 2 | Phase 3 | Schema applied, seed data verified |
|
|
62
|
+
| ... | ... | ... |
|
|
63
|
+
|
|
64
|
+
## 4. Design Source Decisions
|
|
65
|
+
|
|
66
|
+
| Phase / Batch | Design Source | Decided? |
|
|
67
|
+
|---|---|---|
|
|
68
|
+
| All UI phases | [INTERNAL_TERA_KIT / GETDESIGN_MD / FIGMA_DESIGN_FILE / USER_PROVIDED_REFERENCE / EXTERNAL_URL_ANALYSIS / HYBRID / NO_UI / N/A] | Yes / No |
|
|
69
|
+
| Phase 3 (UI) | [source] | Yes / No |
|
|
70
|
+
|
|
71
|
+
> **Rule:** No UI phase/batch without a Design Source Decision.
|
|
72
|
+
|
|
73
|
+
## 5. Deferred Items
|
|
74
|
+
|
|
75
|
+
| Item | Reason | Phase |
|
|
76
|
+
|---|---|---|
|
|
77
|
+
| ... | ... | ... |
|
|
78
|
+
|
|
79
|
+
## 6. Approval
|
|
80
|
+
|
|
81
|
+
- [ ] Submitted
|
|
82
|
+
- [ ] Approved → Ready for Detailed Planning
|
|
83
|
+
- [ ] Needs revision
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
---
|
|
87
|
+
|
|
88
|
+
## 30. Detailed Execution Plan (Phase 5 — Output)
|
|
89
|
+
|
|
90
|
+
This template breaks each phase into traceable execution items.
|
|
91
|
+
The generated file is saved to `project-control/PROJECT_DETAILED_EXECUTION_PLAN.md`.
|
|
92
|
+
|
|
93
|
+
```markdown
|
|
94
|
+
# PROJECT_DETAILED_EXECUTION_PLAN.md
|
|
95
|
+
|
|
96
|
+
## 1. Source Reference
|
|
97
|
+
|
|
98
|
+
- Master Plan: `project-control/PROJECT_MASTER_PLAN.md`
|
|
99
|
+
- Implementation Plan: `project-preparation/09_IMPLEMENTATION_PLAN.md`
|
|
100
|
+
|
|
101
|
+
## 2. Phase Breakdown
|
|
102
|
+
|
|
103
|
+
### Phase [N]: [Phase Name]
|
|
104
|
+
|
|
105
|
+
| Item ID | Description | Linked TASK-ID | Depends On | Status | Notes |
|
|
106
|
+
|---|---|---|---|---|---|
|
|
107
|
+
| P1-01 | [e.g. Scaffold Next.js project] | TASK-COD-001 | — | Planned | |
|
|
108
|
+
| P1-02 | [e.g. Init Prisma + connect to DB] | TASK-COD-002 | P1-01 | Planned | See profile: nextjs-prisma |
|
|
109
|
+
| P2-01 | [e.g. Define User model] | TASK-COD-003 | P1-02 | Planned | |
|
|
110
|
+
| P2-02 | [e.g. Create migration + apply] | TASK-COD-004 | P2-01 | Planned | |
|
|
111
|
+
| ... | ... | ... | ... | ... | ... |
|
|
112
|
+
|
|
113
|
+
### Item Status Legend
|
|
114
|
+
|
|
115
|
+
| Status | Meaning |
|
|
116
|
+
|---|---|
|
|
117
|
+
| Planned | Defined, not yet assigned |
|
|
118
|
+
| In Progress | Assigned to agent, being executed |
|
|
119
|
+
| Completed | Executed and accepted |
|
|
120
|
+
| Blocked | Cannot proceed without resolution |
|
|
121
|
+
| Deferred | Moved to later phase |
|
|
122
|
+
|
|
123
|
+
## 3. Approval
|
|
124
|
+
|
|
125
|
+
- [ ] Submitted
|
|
126
|
+
- [ ] Approved → Ready for batch planning
|
|
127
|
+
- [ ] Needs revision
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
---
|
|
131
|
+
|
|
132
|
+
## 31. Execution Batch Plan (Phase 5 — Output)
|
|
133
|
+
|
|
134
|
+
This template defines the current approved batch only — not the full project.
|
|
135
|
+
The generated file is saved to `project-control/EXECUTION_BATCH_PLAN.md`.
|
|
136
|
+
|
|
137
|
+
```markdown
|
|
138
|
+
# EXECUTION_BATCH_PLAN.md
|
|
139
|
+
|
|
140
|
+
## 1. Batch Metadata
|
|
141
|
+
|
|
142
|
+
| Item | Value |
|
|
143
|
+
|---|---|
|
|
144
|
+
| Batch | [Number / Name] |
|
|
145
|
+
| Phase | [Phase from Master Plan] |
|
|
146
|
+
| Status | Draft / Approved / In Progress / Completed |
|
|
147
|
+
| Source Plan | `project-control/PROJECT_DETAILED_EXECUTION_PLAN.md` |
|
|
148
|
+
|
|
149
|
+
## 2. Included Tasks
|
|
150
|
+
|
|
151
|
+
| TASK-ID | Description | Assigned Agent | Allowed Write Targets | Pre-Execution Gate |
|
|
152
|
+
|---|---|---|---|---|
|
|
153
|
+
| TASK-COD-001 | [e.g. Scaffold project] | EngineeringAgent | `.` (project root) | PASS |
|
|
154
|
+
| TASK-COD-002 | [e.g. Init ORM + DB] | EngineeringAgent | `prisma/schema.prisma`, `.env.example` | PASS |
|
|
155
|
+
| ... | ... | ... | ... | ... |
|
|
156
|
+
|
|
157
|
+
## 3. Not Included (Deferred to Later Batches)
|
|
158
|
+
|
|
159
|
+
| Item | Reason | Expected Batch |
|
|
160
|
+
|---|---|---|
|
|
161
|
+
| Schema design | Depends on scaffold completion | Batch 2 |
|
|
162
|
+
| UI components | No Design Source Decision yet | Batch 3 |
|
|
163
|
+
|
|
164
|
+
## 4. Design Source Decision (for this batch)
|
|
165
|
+
|
|
166
|
+
- [ ] INTERNAL_TERA_KIT
|
|
167
|
+
- [ ] GETDESIGN_MD
|
|
168
|
+
- [ ] FIGMA_DESIGN_FILE
|
|
169
|
+
- [ ] USER_PROVIDED_REFERENCE
|
|
170
|
+
- [ ] EXTERNAL_URL_ANALYSIS
|
|
171
|
+
- [ ] HYBRID
|
|
172
|
+
- [ ] NO_UI
|
|
173
|
+
- [ ] N/A
|
|
174
|
+
|
|
175
|
+
## 5. User Approval
|
|
176
|
+
|
|
177
|
+
- [ ] Batch plan submitted
|
|
178
|
+
- [ ] Approved → Begin execution (Phase 6)
|
|
179
|
+
- [ ] Rejected → Revise
|
|
180
|
+
- [ ] Blocked → Reason: ...
|
|
181
|
+
|
|
182
|
+
---
|
|
183
|
+
|
|
184
|
+
> **Rules:**
|
|
185
|
+
> - No Implementation without Execution Plan.
|
|
186
|
+
> - No UI Task without Design Source Decision.
|
|
187
|
+
> - No UI Task without `28_UI_UX_GUIDELINES.md` when visual style matters.
|
|
188
|
+
> - UI tasks must link `tera-system/design-system/UI_ACCEPTANCE_GATE.md`.
|
|
189
|
+
> - No TASK-ID without Pre-Execution Gate PASS.
|
|
190
|
+
> - No batch execution without user approval.
|
|
191
|
+
```
|
|
192
|
+
|
|
193
|
+
---
|
|
194
|
+
|
|
195
|
+
## 32. Post-Execution Review (Phase 6 Review Template)
|
|
196
|
+
|
|
197
|
+
This template is used inside `project-control/tasks/TASK-COD-XXX.md` after an agent handback and before any task acceptance or closure.
|
|
198
|
+
|
|
199
|
+
```markdown
|
|
200
|
+
## Post-Execution Review
|
|
201
|
+
|
|
202
|
+
| Check | Result | Notes |
|
|
203
|
+
|---|---|---|
|
|
204
|
+
| TASK objective completed? | PASS / FAIL | ... |
|
|
205
|
+
| Output matches approved scope? | PASS / FAIL | ... |
|
|
206
|
+
| No files outside Allowed Write Targets? | PASS / FAIL | ... |
|
|
207
|
+
| No forbidden files created? | PASS / FAIL | ... |
|
|
208
|
+
| No unexpected libraries added? | PASS / FAIL | ... |
|
|
209
|
+
| No secrets, tokens, passwords, or real `.env` values? | PASS / FAIL | ... |
|
|
210
|
+
| Technology Profile respected? | PASS / FAIL | ... |
|
|
211
|
+
| UI/UX rules respected if UI exists? | PASS / FAIL / N/A | ... |
|
|
212
|
+
| UI Acceptance Gate passed if UI exists? | PASS / FAIL / N/A | ... |
|
|
213
|
+
| Acceptance Criteria passed? | PASS / FAIL | ... |
|
|
214
|
+
| CLI / tool side effects reviewed? | PASS / FAIL / N/A | ... |
|
|
215
|
+
| Rollback needed? | Yes / No | ... |
|
|
216
|
+
|
|
217
|
+
Gate Result:
|
|
218
|
+
PASS / NEEDS_FIX / BLOCKED
|
|
219
|
+
|
|
220
|
+
Final Tera Decision:
|
|
221
|
+
Accepted / Needs Fix / Blocked / Rework Needed / Deferred / Cancelled / READY FOR OWNER ACCEPTANCE
|
|
222
|
+
|
|
223
|
+
Owner Approval Required: Yes / No / N/A — (المصدر: Task Contract / Gate / Batch approval / قرار مالك مسجل — لا يُقرر ارتجالياً)
|
|
224
|
+
Owner Approval Status: Pending / Approved / N/A
|
|
225
|
+
(إذا Required = Yes وStatus = Pending → الحالة = READY FOR OWNER ACCEPTANCE — لا Accepted/Closed — SCP-2026-08-16-003)
|
|
226
|
+
|
|
227
|
+
Required Record Updates:
|
|
228
|
+
- [ ] `project-control/tasks/TASK-COD-XXX.md`
|
|
229
|
+
- [ ] `project-control/TASK_REGISTRY.md`
|
|
230
|
+
- [ ] `project-control/PROJECT_ACTIVITY_LOG.md`
|
|
231
|
+
- [ ] `project-control/PROJECT_STATE.md`
|
|
232
|
+
- [ ] `project-control/ISSUES_AND_GAPS.md` if needed
|
|
233
|
+
- [ ] `project-control/DECISIONS_LOG.md` if owner approval recorded
|
|
234
|
+
- [ ] `project-control/TERA_AUDIT_TRAIL.md` (AUD entry with Owner Approval Status)
|
|
235
|
+
```
|
|
236
|
+
|
|
237
|
+
---
|
|
238
|
+
|
|
239
|
+
## 33. Compliance Record (Task Closure Governance Summary)
|
|
240
|
+
|
|
241
|
+
هذا القسم يُضاف إلى `project-control/tasks/TASK-COD-XXX.md` كآخر قسم قبل الإغلاق (بعد `Post-Execution Review`).
|
|
242
|
+
وهو المرجع المعتمد لـ Monitor للتحقق من مطابقة Handback + Git diff + القواعد.
|
|
243
|
+
|
|
244
|
+
```markdown
|
|
245
|
+
## Compliance Record
|
|
246
|
+
|
|
247
|
+
| # | Check | Result | Verified By |
|
|
248
|
+
|---|---|---|---|
|
|
249
|
+
| 1 | Pre-Execution Gate: PASS documented in task file | PASS / N/A | Tera |
|
|
250
|
+
| 2 | Allowed Write Targets respected | PASS / FAIL | Tera |
|
|
251
|
+
| 3 | No secrets/tokens/passwords in outputs or logs | PASS / FAIL | Tera |
|
|
252
|
+
| 4 | Design Source Decision documented (if UI exists) | PASS / N/A | Tera |
|
|
253
|
+
| 5 | Post-Execution Review: PASS | PASS / FAIL | Tera |
|
|
254
|
+
| 6 | PROJECT_ACTIVITY_LOG.md updated | PASS / FAIL | Tera |
|
|
255
|
+
| 7 | Handback recorded in TASK-ID file | PASS / FAIL | Tera |
|
|
256
|
+
| 8 | Git diff matches Handback description | PASS / FAIL / PENDING | Monitor\* |
|
|
257
|
+
| 9 | CLI/commands documented (if any) | Done / N/A | Tera |
|
|
258
|
+
| 10 | Owner Approval: إذا Required = Yes → الاعتماد الصريح مسجل (Task + DECISIONS_LOG + AUDIT_TRAIL) قبل CLOSED | PASS / N/A | Tera |
|
|
259
|
+
| 11 | Cross-Record Consistency: لا تعارض حالة المهمة بين Task file / TASK_REGISTRY / PROJECT_STATE / DECISIONS_LOG / AUDIT_TRAIL | PASS / FAIL | Tera/Monitor |
|
|
260
|
+
|
|
261
|
+
\* Item 8: Monitor يتحقق عند نشاطه. إذا لم يكن Monitor نشطاً، يوثق Tera الفحص الذاتي.
|
|
262
|
+
\* Item 10–11: SCP-2026-08-16-003 — المرجع الحاكم: `TERA_RUNTIME_PROTOCOLS_CORE.md` §4.0/§4.0.1.
|
|
263
|
+
|
|
264
|
+
Compliance Status: COMPLIANT / NON-COMPLIANT / PENDING_MONITOR_REVIEW
|
|
265
|
+
```
|
|
266
|
+
|
|
267
|
+
---
|
|
268
|
+
|
|
269
|
+
## 34. UI/UX Guidelines Template (Design Governance Output)
|
|
270
|
+
|
|
271
|
+
This template defines the required structure of `project-preparation/28_UI_UX_GUIDELINES.md`.
|
|
272
|
+
|
|
273
|
+
Required sections:
|
|
274
|
+
|
|
275
|
+
```markdown
|
|
276
|
+
# 28_UI_UX_GUIDELINES.md
|
|
277
|
+
|
|
278
|
+
## 1. Design Source Decision
|
|
279
|
+
## 2. Approved Design Direction
|
|
280
|
+
## 3. Raw Design Sources
|
|
281
|
+
## 4. Client Branding Overrides
|
|
282
|
+
## 5. Design Tokens
|
|
283
|
+
## 6. Layout System
|
|
284
|
+
## 7. Component Rules
|
|
285
|
+
## 8. RTL/LTR Rules
|
|
286
|
+
## 9. Responsive Rules
|
|
287
|
+
## 10. Accessibility Rules
|
|
288
|
+
## 11. Motion Rules
|
|
289
|
+
## 12. Forbidden Styling
|
|
290
|
+
## 13. Engineering Implementation Instructions
|
|
291
|
+
## 14. UI Acceptance Checklist
|
|
292
|
+
## 15. Figma Source Mapping (when FIGMA_DESIGN_FILE is active)
|
|
293
|
+
## 16. Open Design Gaps
|
|
294
|
+
```
|
|
295
|
+
|
|
296
|
+
Rule:
|
|
297
|
+
|
|
298
|
+
```text
|
|
299
|
+
EngineeringAgent implements UI from this file first. Missing rules become Design Gaps, not guesses.
|
|
300
|
+
```
|
|
301
|
+
|
|
302
|
+
---
|
|
303
|
+
|
|
304
|
+
## 35. Phase 7 Delivery, Handover & Closure Templates
|
|
305
|
+
|
|
306
|
+
These templates are used after Phase 6 implementation is complete. Phase 7 does not execute code. Blocking findings return to Phase 6 as `TASK-COD-FIX-*`.
|
|
307
|
+
|
|
308
|
+
### 35.1 Delivery Readiness Report
|
|
309
|
+
|
|
310
|
+
Generated file: `project-control/DELIVERY_READINESS_REPORT.md`
|
|
311
|
+
|
|
312
|
+
```markdown
|
|
313
|
+
# DELIVERY_READINESS_REPORT.md
|
|
314
|
+
|
|
315
|
+
## 1. Metadata
|
|
316
|
+
|
|
317
|
+
| Field | Value |
|
|
318
|
+
|---|---|
|
|
319
|
+
| Project | |
|
|
320
|
+
| Phase | 7 — Delivery, Handover & Closure |
|
|
321
|
+
| Date | |
|
|
322
|
+
| Prepared By | Tera / qa-agent / DevOpsAgent |
|
|
323
|
+
| Status | Draft / Ready / Blocked |
|
|
324
|
+
|
|
325
|
+
## 2. Entry Gate
|
|
326
|
+
|
|
327
|
+
| Check | Result | Notes |
|
|
328
|
+
|---|---|---|
|
|
329
|
+
| All approved TASK-COD closed or deferred | PASS / FAIL | |
|
|
330
|
+
| Post-Execution Reviews complete | PASS / FAIL | |
|
|
331
|
+
| No undocumented Critical blockers | PASS / FAIL | |
|
|
332
|
+
| TASK_REGISTRY current | PASS / FAIL | |
|
|
333
|
+
| PROJECT_STATE current | PASS / FAIL | |
|
|
334
|
+
| ISSUES_AND_GAPS current | PASS / FAIL / N/A | |
|
|
335
|
+
|
|
336
|
+
## 3. Delivery Readiness
|
|
337
|
+
|
|
338
|
+
| Area | Result | Notes |
|
|
339
|
+
|---|---|---|
|
|
340
|
+
| Core workflows | Ready / Not Ready | |
|
|
341
|
+
| Final QA / smoke | PASS / FAIL / N/A | |
|
|
342
|
+
| Regression review | PASS / FAIL / N/A | |
|
|
343
|
+
| Documentation | Ready / Needs Work | |
|
|
344
|
+
| Deployment readiness | Ready / Not Ready / N/A | |
|
|
345
|
+
| Security closure | PASS / FAIL / N/A | |
|
|
346
|
+
|
|
347
|
+
## 4. Blockers
|
|
348
|
+
|
|
349
|
+
| Blocker | Severity | Required Action | Return to Phase 6? |
|
|
350
|
+
|---|---|---|---|
|
|
351
|
+
| | Critical / High / Medium / Low | | Yes / No |
|
|
352
|
+
|
|
353
|
+
## 5. Result
|
|
354
|
+
|
|
355
|
+
Delivery Readiness Status: READY / NEEDS_FIX / BLOCKED
|
|
356
|
+
```
|
|
357
|
+
|
|
358
|
+
### 35.2 Final Acceptance Checklist
|
|
359
|
+
|
|
360
|
+
Generated file: `project-control/FINAL_ACCEPTANCE_CHECKLIST.md`
|
|
361
|
+
|
|
362
|
+
```markdown
|
|
363
|
+
# FINAL_ACCEPTANCE_CHECKLIST.md
|
|
364
|
+
|
|
365
|
+
| Acceptance Area | Result | Evidence / Notes |
|
|
366
|
+
|---|---|---|
|
|
367
|
+
| Approved scope delivered | PASS / FAIL | |
|
|
368
|
+
| Deferred items documented | PASS / FAIL / N/A | |
|
|
369
|
+
| Open issues reviewed | PASS / FAIL | |
|
|
370
|
+
| User/client acceptance recorded | PASS / FAIL | |
|
|
371
|
+
| No hidden blockers | PASS / FAIL | |
|
|
372
|
+
| Handover package ready if client project | PASS / FAIL / N/A | |
|
|
373
|
+
|
|
374
|
+
Final Acceptance Status: ACCEPTED / NEEDS_FIX / BLOCKED
|
|
375
|
+
```
|
|
376
|
+
|
|
377
|
+
### 35.3 Release Notes
|
|
378
|
+
|
|
379
|
+
Generated file: `project-control/RELEASE_NOTES.md`
|
|
380
|
+
|
|
381
|
+
```markdown
|
|
382
|
+
# RELEASE_NOTES.md
|
|
383
|
+
|
|
384
|
+
## Version / Release
|
|
385
|
+
|
|
386
|
+
- Release Name:
|
|
387
|
+
- Date:
|
|
388
|
+
- Scope:
|
|
389
|
+
|
|
390
|
+
## Delivered
|
|
391
|
+
|
|
392
|
+
- ...
|
|
393
|
+
|
|
394
|
+
## Changed
|
|
395
|
+
|
|
396
|
+
- ...
|
|
397
|
+
|
|
398
|
+
## Fixed
|
|
399
|
+
|
|
400
|
+
- ...
|
|
401
|
+
|
|
402
|
+
## Deferred / Not Included
|
|
403
|
+
|
|
404
|
+
- ...
|
|
405
|
+
|
|
406
|
+
## Known Issues
|
|
407
|
+
|
|
408
|
+
- ...
|
|
409
|
+
```
|
|
410
|
+
|
|
411
|
+
### 35.4 Post-Implementation Review
|
|
412
|
+
|
|
413
|
+
Generated file: `project-control/POST_IMPLEMENTATION_REVIEW.md`
|
|
414
|
+
|
|
415
|
+
```markdown
|
|
416
|
+
# POST_IMPLEMENTATION_REVIEW.md
|
|
417
|
+
|
|
418
|
+
## What Went Well
|
|
419
|
+
- ...
|
|
420
|
+
|
|
421
|
+
## What Was Difficult
|
|
422
|
+
- ...
|
|
423
|
+
|
|
424
|
+
## Scope / Quality Notes
|
|
425
|
+
- ...
|
|
426
|
+
|
|
427
|
+
## Process Improvements
|
|
428
|
+
- ...
|
|
429
|
+
|
|
430
|
+
## Follow-up Recommendations
|
|
431
|
+
- ...
|
|
432
|
+
```
|
|
433
|
+
|
|
434
|
+
### 35.5 Project Closure Report
|
|
435
|
+
|
|
436
|
+
Generated file: `project-control/PROJECT_CLOSURE_REPORT.md`
|
|
437
|
+
|
|
438
|
+
```markdown
|
|
439
|
+
# PROJECT_CLOSURE_REPORT.md
|
|
440
|
+
|
|
441
|
+
## 1. Closure Metadata
|
|
442
|
+
|
|
443
|
+
| Field | Value |
|
|
444
|
+
|---|---|
|
|
445
|
+
| Project | |
|
|
446
|
+
| Closure Date | |
|
|
447
|
+
| Closure Decision | Closed / Needs Final Fix / Deferred / Blocked |
|
|
448
|
+
| Approved By | User / Client / Tera |
|
|
449
|
+
|
|
450
|
+
## 2. Completion Summary
|
|
451
|
+
|
|
452
|
+
- Delivered:
|
|
453
|
+
- Deferred:
|
|
454
|
+
- Out of Scope:
|
|
455
|
+
|
|
456
|
+
## 3. Required Outputs
|
|
457
|
+
|
|
458
|
+
| Output | Status | Notes |
|
|
459
|
+
|---|---|---|
|
|
460
|
+
| Delivery Readiness Report | Complete / N/A | |
|
|
461
|
+
| Final Acceptance Checklist | Complete / N/A | |
|
|
462
|
+
| Release Notes | Complete / N/A | |
|
|
463
|
+
| Client Handover Package | Complete / N/A | |
|
|
464
|
+
|
|
465
|
+
## 4. Open Issues / Deferred Items
|
|
466
|
+
|
|
467
|
+
| Item | Status | Recommended Action |
|
|
468
|
+
|---|---|---|
|
|
469
|
+
| | Deferred / Closed / Won't Fix | |
|
|
470
|
+
|
|
471
|
+
## 5. Final Decision
|
|
472
|
+
|
|
473
|
+
Project Closure Status: CLOSED / BLOCKED / NEEDS_PHASE_6_FIX
|
|
474
|
+
```
|
|
475
|
+
|
|
476
|
+
### 35.6 Client Handover Package
|
|
477
|
+
|
|
478
|
+
Generated file for external client projects:
|
|
479
|
+
|
|
480
|
+
```text
|
|
481
|
+
clients/CLIENT-[client-name-or-id]/applications/APP-[app-name-or-id]/delivery/CLIENT_HANDOVER_PACKAGE.md
|
|
482
|
+
```
|
|
483
|
+
|
|
484
|
+
```markdown
|
|
485
|
+
# CLIENT_HANDOVER_PACKAGE.md
|
|
486
|
+
|
|
487
|
+
## 1. تسليم المشروع
|
|
488
|
+
|
|
489
|
+
- اسم العميل:
|
|
490
|
+
- اسم التطبيق:
|
|
491
|
+
- تاريخ التسليم:
|
|
492
|
+
- نسخة التسليم:
|
|
493
|
+
|
|
494
|
+
## 2. ما تم تسليمه
|
|
495
|
+
|
|
496
|
+
- ...
|
|
497
|
+
|
|
498
|
+
## 3. طريقة التشغيل / الوصول
|
|
499
|
+
|
|
500
|
+
- لا تكتب أسرارًا أو كلمات مرور.
|
|
501
|
+
- أشر فقط إلى أن البيانات الحساسة محفوظة كـ local environment secrets أو عبر قناة آمنة.
|
|
502
|
+
|
|
503
|
+
## 4. العناصر المؤجلة أو غير المشمولة
|
|
504
|
+
|
|
505
|
+
- ...
|
|
506
|
+
|
|
507
|
+
## 5. القبول النهائي
|
|
508
|
+
|
|
509
|
+
- Accepted / Needs Fix / Deferred
|
|
510
|
+
- اسم صاحب الاعتماد:
|
|
511
|
+
- التاريخ:
|
|
512
|
+
```
|
|
513
|
+
|
|
514
|
+
---
|
|
515
|
+
|
|
516
|
+
## 36. Logging & Production Diagnosis Standards (GAP-006 — SCP-2026-08-16-005)
|
|
517
|
+
|
|
518
|
+
تُطبَّق على كل تسليم يعمل في الإنتاج.
|
|
519
|
+
|
|
520
|
+
### 35.1 Logging Standards
|
|
521
|
+
|
|
522
|
+
| القاعدة | المعيار |
|
|
523
|
+
|---|---|
|
|
524
|
+
| المستويات | موحدة: `ERROR` (فشل يحتاج انتباهاً)، `WARN` (غير متوقع لكن قابل للاستمرار)، `INFO` (مراحل أعمال)، `DEBUG` (تشخيص — يُغلق في الإنتاج) |
|
|
525
|
+
| السياق | كل سطر يشمل: اسم العملية/التدفق + معرّف الكيان/الطلب حيثما توفر |
|
|
526
|
+
| البيانات الحساسة | **ممنوع** تسجيل: كلمات مرور، Tokens، بيانات شخصية — تُستبدل بمرجع مُقنّع |
|
|
527
|
+
| اللغة | لغة واحدة متسقة حسب Baseline المشروع |
|
|
528
|
+
|
|
529
|
+
### 35.2 Production Diagnosis — الخطوات الأولى
|
|
530
|
+
|
|
531
|
+
عند الإبلاغ عن مشكلة إنتاجية، اتبع بالترتيب:
|
|
532
|
+
|
|
533
|
+
1. اقرأ السجلات بالمستوى الصحيح (ERROR/WARN أولاً) مع سياق العملية.
|
|
534
|
+
2. تحقق من حالة الخدمة/التبعيات (قاعدة بيانات، API خارجي، تخزين) قبل لمس الكود.
|
|
535
|
+
3. أعد إنتاج الخطأ في بيئة معزولة (Staging/محلي بنفس قيم البيئة) عند الإمكان.
|
|
536
|
+
4. وثّق السبب الجذري في تقرير المهمة/التسليم.
|
|
537
|
+
|
|
538
|
+
---
|
|
539
|
+
|
|
540
|
+
## 37. Performance Verification & Load Testing Guidance (GAP-007 — SCP-2026-08-16-006)
|
|
541
|
+
|
|
542
|
+
### 36.1 Basic Performance Check — إلزامي عند التسليم
|
|
543
|
+
|
|
544
|
+
| الفحص | الحد الأدنى |
|
|
545
|
+
|---|---|
|
|
546
|
+
| زمن استجابة المسارات الرئيسية | قياس + تسجيل متوسط/p95 للمسارات الأساسية |
|
|
547
|
+
| استهلاك الذاكرة | مراقبة عملية ممثلة؛ تسجيل الذروة |
|
|
548
|
+
| استهلاك المعالج | مراقبة عملية ممثلة؛ تسجيل الاستخدام |
|
|
549
|
+
|
|
550
|
+
سجّل **أرقاماً حقيقية** في تقرير التسليم — لا ادعاءات بلا قياس.
|
|
551
|
+
|
|
552
|
+
### 36.2 Load Testing — مشروط (المشاريع الحساسة للنمو فقط)
|
|
553
|
+
|
|
554
|
+
- حدد سيناريو أساسياً: مستخدمون متزامنون، طلبات/ثانية، مدة.
|
|
555
|
+
- استخدم أداة قياسية موثوقة؛ سجّل الإنتاجية ومعدل الأخطاء.
|
|
556
|
+
- قرار القبول/الرفض بيد المالك/المدير — موثق.
|
|
557
|
+
- غير مطلوب للمشاريع الصغيرة/الثابتة/الداخلية (تجنّب التضخم).
|
|
558
|
+
|
|
559
|
+
---
|
|
560
|
+
|
|
561
|
+
## 38. Backup & Disaster Recovery Guidance (GAP-008 — SCP-2026-08-16-007)
|
|
562
|
+
|
|
563
|
+
تنطبق على التسليمات ذات البيانات (قاعدة بيانات، ملفات رفع، سجلات).
|
|
564
|
+
|
|
565
|
+
### 37.1 Backup Basics
|
|
566
|
+
|
|
567
|
+
| البند | الإرشاد |
|
|
568
|
+
|---|---|
|
|
569
|
+
| ما يُحمى | قاعدة البيانات، ملفات الرفع، الإعدادات/الحالة |
|
|
570
|
+
| التكرار | يومي كحد أدنى للبيانات النشطة؛ أسبوعي للثابتة — حسب الحساسية |
|
|
571
|
+
| التخزين | منفصل عن بيئة الإنتاج (قرص/منطقة مختلفة) |
|
|
572
|
+
|
|
573
|
+
### 37.2 أهداف الاستعادة (RPO/RTO)
|
|
574
|
+
|
|
575
|
+
- **RPO** (الحد الأقصى المقبول لفقدان البيانات): يُحدد صراحةً (مثال: ≤ 24 ساعة).
|
|
576
|
+
- **RTO** (الحد الأقصى المقبول لزمن الاستعادة): يُحدد صراحةً (مثال: ≤ 4 ساعات).
|
|
577
|
+
- يُتفق عليهما مع العميل ويُسجّلان في وثائق التسليم/القبول.
|
|
578
|
+
|
|
579
|
+
### 37.3 اختبار استعادة دوري
|
|
580
|
+
|
|
581
|
+
- اختبر استعادة من نسخة احتياطية في بيئة معزولة قبل الاعتماد على الخطة.
|
|
582
|
+
- سجّل نتيجة الاختبار (تاريخ، نجاح/فشل) في وثائق التسليم.
|
|
583
|
+
|
|
584
|
+
---
|