@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,117 @@
|
|
|
1
|
+
<!-- © 2026 Majed Khaireddin (Alabasi1980). Tera System — Proprietary. All rights reserved. -->
|
|
2
|
+
|
|
3
|
+
# AGENT_DEPENDENCY_MAP.md
|
|
4
|
+
|
|
5
|
+
## الغرض
|
|
6
|
+
خريطة العلاقات بين ملفات العملاء في `.opencode/agents/`. تساعد في:
|
|
7
|
+
- تتبع أثر أي تعديل على عميل — ما الملفات الأخرى التي قد تتأثر
|
|
8
|
+
- كشف المراجع المكسورة بعد التحديثات
|
|
9
|
+
- تحديد ترتيب التعديل الآمن
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
## 🔗 خريطة العلاقات
|
|
14
|
+
|
|
15
|
+
| Agent | يتم استدعاؤه بواسطة | يستدعي/يشير إلى | يقرأ من |
|
|
16
|
+
|-------|-------------------|----------------|---------|
|
|
17
|
+
| **tera.md** | — (Engineering Delivery Lead — phases 5–7 — SCP-118) | `ui-designer.md`, `engineering-agent.md`, `engineering-agent-typescript.md`, `engineering-agent-phaser.md`, `engineering-agent-dotnet.md`, `tera-software-designer.md`, `auditor.md` | `tera-system/runtime/TERA_RUNTIME_*.md`, `project-control/`, `ENGINEERING_HANDOFF_PACKAGE.md` |
|
|
18
|
+
| **ui-designer.md** | `tera.md`, `tera-system-evolution.md` (للأغراض النظامية) | `design-reviewer.md` (ناقد يراجعه)، `engineering-agent-typescript.md` (يسلّم له UI Spec) | `28_UI_UX_GUIDELINES.md`, `tera-system/design-system/*.md` |
|
|
19
|
+
| **engineering-agent.md** | `tera.md` | `ui-designer.md` (مصمم يسبقه)، `tera-software-designer.md` (يسبقه للمهام المعقدة) | `TECHNICAL_SPECIFICATION.md`, `28_UI_UX_GUIDELINES.md` |
|
|
20
|
+
| **engineering-agent-typescript.md** 🆕 | `tera.md` | `ui-designer.md` (يستلم منه UI Spec)، `engineering-agent-phaser.md` (يملك integration bridge معه) | `engineering-agent-core.md`, Active Technology Profile, `28_UI_UX_GUIDELINES.md` |
|
|
21
|
+
| **engineering-agent-phaser.md** 🆕 | `tera.md` | `engineering-agent-typescript.md` (يملك bridge معه عبر Tera) | `engineering-agent-core.md`, Active Technology Profile, game design documents |
|
|
22
|
+
| **engineering-agent-dotnet.md** | `tera.md` | — | `engineering-agent-core.md`, Active .NET Technology Profile |
|
|
23
|
+
| **tera-software-designer.md** | `tera.md` | `engineering-agent.md` (ينفذ الـ Spec) | `project-preparation/*.md`, `28_UI_UX_GUIDELINES.md`, `PROJECT_RULES.md` |
|
|
24
|
+
| **design-reviewer.md** | — (مستقل — يستدعيه Majed) | `TeraAgent`, `EngineeringAgent` (مراجعة مخرجاتهم) | `28_UI_UX_GUIDELINES.md`, `tera-system/design-system/DESIGN_REVIEW_STANDARDS.md` |
|
|
25
|
+
| **tera-client-engagement.md** | — (مستقل — يستدعيه Majed) | `domain-research-agent.md`, `domain-expert-agent.md`, `production-erp-expert.md`, `application-blueprint.md` | `tera-system/client-helpers/*.md`, `tera-system/TeraPricingPolicy.md` |
|
|
26
|
+
| **application-blueprint.md** | `tera-client-engagement.md` (handoff); — (Solution Preparation Authority — phases 1–4 — SCP-118) | `domain-research-agent.md`, `domain-expert-agent.md`, `production-erp-expert.md`, preparation agents, `qa-agent.md` (Planning Mode), `ui-designer.md` (Preparation Design Mode) | `tera-system/runtime/TERA_SOLUTION_PREPARATION_*.md`, `project-preparation/`, `client-engagement/` |
|
|
27
|
+
| **domain-research-agent.md** | `tera-client-engagement.md`, `tera.md`, `application-blueprint.md`, `tera-system-evolution.md` | `domain-expert-agent.md` (يسلم له للتحليل) | — (بحث خارجي) |
|
|
28
|
+
| **domain-expert-agent.md** | `tera-client-engagement.md`, `tera.md`, `application-blueprint.md`, `tera-system-evolution.md` | — | `domain-research-agent.md` (Domain Research Report) |
|
|
29
|
+
| **production-erp-expert.md** | Majed مباشرة، `tera.md`, `tera-client-engagement.md`, `application-blueprint.md`؛ وEngineering/QA فقط عبر Tera-approved task scope | `domain-research-agent.md` عند نقص المعرفة وبقرار المستدعي | `tera-system/knowledge-base/manufacturing/`, ملفات discovery/blueprint المحددة |
|
|
30
|
+
| **tera-system-evolution.md** | — (مستقل — يستدعيه Majed) | `ui-designer.md`, `domain-research-agent.md`, `domain-expert-agent.md` (للأغراض النظامية) | `tera-system/*.md`, `.opencode/agents/*.md` |
|
|
31
|
+
| **tera-strategic-advisor.md** | — (مستقل — يستدعيه Majed فقط) | لا يستدعي عملاء ولا يديرهم؛ قد يوصي Majed بالرجوع إلى TeraAgent أو حارس أو غيرهم | ملفات وسياقات القرار فقط، مصادر خارجية عند الحاجة |
|
|
32
|
+
| **auditor.md** | `tera.md`؛ و`monitor.md` فقط عند طلب Majed | يراجع مخرجات `tera.md`, `engineering-agent.md`؛ يحيل findings إلى `SecurityAgent`, `DesignReviewer`, `QAAndAcceptanceAgent`, أو `ProjectControlAgent` عبر الوكيل المستدعي | `project-control/*.md`, `project-control/audit-reports/`, `tera-system/engineering-governance/*.md`, الملفات المعدلة |
|
|
33
|
+
| **monitor.md** | — (مستقل — يستدعيه Majed) | يراجع مخرجات `tera.md`, `engineering-agent.md`; قد يستدعي `auditor.md` فقط عندما يطلب Majed تحدي/تحقق جودة مستقل | `project-control/*.md`, `tera-system/*.md` |
|
|
34
|
+
| **qa-agent.md** (الاسم المنطقي: QAAndAcceptanceAgent) | `tera.md` (يُفعّله Tera) | لا يستدعي عملاء آخرين | ملفات التحضير، ملفات المهمة، logs، مخرجات CLI، `project-control/test-reports/` |
|
|
35
|
+
| **tera-business-transformation-consultant.md** | — (مستقل — يُستدعى من TCEA عبر Majed عند Track C) | `domain-research-agent.md`, `domain-expert-agent.md` (للبحث عن معايير الصناعة وأفضل الممارسات) | `tera-system/consulting-helpers/BTCA_METHODOLOGY_FRAMEWORK.md`, `BTCA_REPORT_TEMPLATES.md` |
|
|
36
|
+
|
|
37
|
+
---
|
|
38
|
+
|
|
39
|
+
## 📏 ترتيب التعديل الآمن
|
|
40
|
+
|
|
41
|
+
عند تعديل أي Agent، اتبع هذا التسلسل لتجنب كسر المراجع:
|
|
42
|
+
|
|
43
|
+
```
|
|
44
|
+
1. غيّر الملف الأساسي
|
|
45
|
+
2. راجع AGENT_DEPENDENCY_MAP.md — من يشير لهذا الملف؟
|
|
46
|
+
3. افتح كل ملف يشير إليه وتحقق من أن المراجع ما زالت صحيحة
|
|
47
|
+
4. إذا وجدت مرجعاً مكسوراً → صححه
|
|
48
|
+
5. سجل التغيير
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
### مثال: تعديل `ui-designer.md`
|
|
52
|
+
```
|
|
53
|
+
ui-designer.md
|
|
54
|
+
↑ يشير إليه: tera.md (Section 8 — يستدعيه)
|
|
55
|
+
↑ يشير إليه: design-reviewer.md (Section 11 — يقارن نفسه به)
|
|
56
|
+
↑ يشير إليه: engineering-agent.md (Section 3 — يتكامل معه)
|
|
57
|
+
↑ يشير إليه: tera-system-evolution.md (Section 7.1 — يستدعيه لأغراض نظامية)
|
|
58
|
+
|
|
59
|
+
يجب فتح: tera.md + design-reviewer.md + engineering-agent.md + tera-system-evolution.md
|
|
60
|
+
وتأكيد أن الإشارات ما زالت صحيحة بعد التعديل.
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
---
|
|
64
|
+
|
|
65
|
+
## ⚠️ تنبيهات حجم الملف
|
|
66
|
+
|
|
67
|
+
الجدول أدناه يستخدم القاعدة المحدّثة: < 700 = ✅, 700–1000 = 🟡 دراسة, > 1000 = 🔴 تقسيم إجباري.
|
|
68
|
+
|
|
69
|
+
| الملف | الحجم (سطور) | الحالة / ملاحظات |
|
|
70
|
+
|-------|-------------|-----------------|
|
|
71
|
+
| `tera.md` | 520 | 🟢 < 700 — +4 (SCP-2026-08-16-003: READY FOR OWNER ACCEPTANCE §12) |
|
|
72
|
+
| `tera-system/TeraSubAgents.md` | 855 | 🟡 700–1000 — يحتاج دراسة تقسيم قريبة |
|
|
73
|
+
| `tera-system/TeraHelperAgents.md` | 970 | 🟡 700–1000 — يحتاج دراسة تقسيم قريبة |
|
|
74
|
+
| `tera-system/runtime/TERA_RUNTIME_TEMPLATES.md` | 908 | 🟡 700–1000 — +5 (SCP-2026-08-16-001: ملاحظة تفويض المدققين §2) — تقسيم مكتمل سابقاً (INS-02) |
|
|
75
|
+
| `tera-system/runtime/TERA_RUNTIME_TEMPLATES_DELIVERY.md` | 514 | 🟢 < 700 — +9 (SCP-2026-08-16-003: §32 Owner Approval fields + §33 items 10–11) |
|
|
76
|
+
| `tera-system/runtime/TERA_RUNTIME_TEMPLATES_PREPARATION.md` | 344 | 🟢 < 700 — جديد INS-02 (§35–40) |
|
|
77
|
+
| `tera-system/runtime/TERA_RUNTIME_PROTOCOLS.md` | 50 | 🟢 < 700 — §19 فقط (Knowledge Management) بعد تقسيم INS-02 continuation |
|
|
78
|
+
| `tera-system/runtime/TERA_RUNTIME_PROTOCOLS_CORE.md` | 799 | 🟡 700–1000 — +31 (SCP-2026-08-16-003: Owner Approval Gate + Cross-Record Consistency §4) — قريب من الحد — مراقبة |
|
|
79
|
+
| `tera-system/runtime/TERA_RUNTIME_PROTOCOLS_CLIENT.md` | 356 | 🟢 < 700 — جديد INS-02 (§12–18) |
|
|
80
|
+
| `tera-system/runtime/TERA_RUNTIME_CHECKLISTS.md` | 646 | 🟢 < 700 — +1 (SCP-2026-08-16-003: Phase 6 بند 8) |
|
|
81
|
+
| `tera-system/TeraPreExecutionGate.md` | 818 | 🟡 700–1000 — +18 (SCP-2026-08-16-003: Owner Approval Gate + Checklist 33–35) |
|
|
82
|
+
| `tera-client-engagement.md` | 892 | 🟡 700–1000 — توسعة Dual-Track عبر SCP-2026-07-29-001 |
|
|
83
|
+
| `auditor.md` | 665 | 🟢 < 700 — +22 (SCP-2026-08-16-001: Independent Scope Discovery §6.1) |
|
|
84
|
+
| `qa-agent.md` | 498 | 🟢 < 700 — +23 (SCP-2026-08-16-001: Independent Discovery §3.1 + NOT VERIFIED) |
|
|
85
|
+
| `tera-system-evolution.md` | 754 | 🟡 700–1000 — قريب من الحد — يحتاج مراقبة |
|
|
86
|
+
| `tera-strategic-advisor.md` | 325 | 🟢 < 700 |
|
|
87
|
+
| `engineering-agent-typescript.md` | 300 | 🟢 < 700 |
|
|
88
|
+
| `engineering-agent-phaser.md` | 275 | 🟢 < 700 |
|
|
89
|
+
| `monitor.md` | 395 | 🟢 < 700 — +117 (SCP-2026-08-16-004: تصنيف + Lifecycle + Quick/Full + Snapshot + قوالب) — يقرأ/يكتب `MONITOR_STATE.md` |
|
|
90
|
+
| `application-blueprint.md` | 407 | 🟢 < 700 — SCP-118 compact redesign + SCP-2026-08-15-016 (شرط Content في §9) |
|
|
91
|
+
| `tera-system/engineering-helpers/engineering-agent-core.md` | 171 | 🟢 — ملف مشارك |
|
|
92
|
+
| `tera-system/client-helpers/tera-client-engagement-protocols.md` | 692 | 🟢 < 700 — +3 بروتوكولات Track B |
|
|
93
|
+
| `tera-system/client-helpers/tera-client-engagement-pricing.md` | 341 | 🟢 < 700 — +Product Pricing Models |
|
|
94
|
+
| `tera-system/client-helpers/tera-client-engagement-gates.md` | 258 | 🟢 < 700 — +6 بوابات Track B + B.7c Final Consistency (SCP-014) |
|
|
95
|
+
| `tera-system/client-helpers/tera-client-engagement-discovery-domains.md` | 98 | 🟢 < 700 — +Existing App + Track B |
|
|
96
|
+
| `tera-system/runtime/TERA_SOLUTION_PREPARATION_PROTOCOL.md` | 279 | 🟢 < 700 — ملف SCP-118 |
|
|
97
|
+
| `tera-system/runtime/TERA_SOLUTION_PREPARATION_TEMPLATES.md` | 397 | 🟢 < 700 — ملف SCP-118 |
|
|
98
|
+
| `.opencode/agents/tera-business-transformation-consultant.md` | 290 | 🟢 < 700 — عميل SCP-2026-07-29-002 |
|
|
99
|
+
| `tera-system/consulting-helpers/BTCA_METHODOLOGY_FRAMEWORK.md` | 195 | 🟢 < 700 — منهجية الأدلة ومراحل العمل |
|
|
100
|
+
| `tera-system/consulting-helpers/BTCA_REPORT_TEMPLATES.md` | 266 | 🟢 < 700 — قوالب التقارير العشرة |
|
|
101
|
+
|
|
102
|
+
**ملاحظة (تحديث 2026-08-01 — INS-01):** تمت إعادة حساب جميع الأحجام الفعلية وتصحيح الجدول. الملفات 🔴 (>1000) تحتاج خطط تقسيم (انظر INS-02). الملفات 🟡 (700–1000) قيد المراقبة.
|
|
103
|
+
|
|
104
|
+
---
|
|
105
|
+
|
|
106
|
+
## 📐 خطة تقسيم الملفات الكبيرة (INS-02 — 2026-08-01)
|
|
107
|
+
|
|
108
|
+
المبدأ: التقسيم عند الحاجة الحقيقية — ملفات runtime تُقسَّم حسب الوظيفة (كما في استثناءات §"حجم الملف" في تعريف حارس).
|
|
109
|
+
|
|
110
|
+
| الملف | الحجم | خطة التقسيم المقترحة | الحالة |
|
|
111
|
+
|-------|-------|---------------------|--------|
|
|
112
|
+
| `tera-system/runtime/TERA_RUNTIME_TEMPLATES.md` | 903 | **✅ تم التقسيم (2026-08-01):** §29–34 → `TERA_RUNTIME_TEMPLATES_DELIVERY.md` (505)، §35–40 → `TERA_RUNTIME_TEMPLATES_PREPARATION.md` (344) | ✅ **مكتمل** |
|
|
113
|
+
| `tera-system/runtime/TERA_RUNTIME_PROTOCOLS.md` | 50 | **✅ تم التقسيم (2026-08-01):** §1–11 → `TERA_RUNTIME_PROTOCOLS_CORE.md` (758)، §12–18 → `TERA_RUNTIME_PROTOCOLS_CLIENT.md` (356)، الرئيسي يحتفظ بـ §19 | ✅ **مكتمل** |
|
|
114
|
+
| `tera-system/Tera_Project_Preparation_Files.md` | 1,015 | **قرار (2026-08-01):** لا تقسيم — هو "Guide" مرجعي متماسك (26 قالباً مدمجاً). يُوثَّق في الخرائط كـ Guide وليس Catalog. | 🟡 **لا يُقسَّم — توثيق فقط** |
|
|
115
|
+
|
|
116
|
+
**القاعدة:** أي تقسيم فعلي يُنفَّذ عبر SCP منفصل بعد موافقة Majed — لا يُقسَّم هنا تلقائياً.
|
|
117
|
+
**الأولوية:** TERA_RUNTIME_TEMPLATES ✅ مكتمل — التالي: PROTOCOLS، ثم Preparation_Files.
|
|
@@ -0,0 +1,312 @@
|
|
|
1
|
+
# AGENT_GENERATION_TEMPLATE.md
|
|
2
|
+
|
|
3
|
+
# قالب توليد العملاء الفرعيين لمنظومة Tera
|
|
4
|
+
|
|
5
|
+
هذا الملف هو المصدر الرسمي لقالب توليد أي عميل فرعي فعلي.
|
|
6
|
+
|
|
7
|
+
لا تحفظ نسخة كاملة من هذا القالب داخل `.opencode/agents/tera.md`. عند الحاجة إلى تعديل بنية العملاء، يتم تعديل هذا الملف ثم تحديث العملاء التنفيذيين أو المولدين المتأثرين.
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
## Required Sections
|
|
12
|
+
|
|
13
|
+
كل عميل فرعي فعلي يجب أن يحتوي على الأقسام التالية:
|
|
14
|
+
|
|
15
|
+
```text
|
|
16
|
+
OpenCode frontmatter:
|
|
17
|
+
description:
|
|
18
|
+
mode:
|
|
19
|
+
اسم العميل:
|
|
20
|
+
المعرف:
|
|
21
|
+
الفئة:
|
|
22
|
+
بيئة العمل:
|
|
23
|
+
الدور:
|
|
24
|
+
نوع التفويض: Preparation Delegation / Implementation Delegation / Review / Control
|
|
25
|
+
Activation Trigger: (مرجع إلى AGENT_ACTIVATION_MATRIX.md)
|
|
26
|
+
Phase Usage: (المراحل المناسبة)
|
|
27
|
+
Default Permission Level: (مرجع إلى AGENT_PERMISSION_MODEL.md)
|
|
28
|
+
متى يستدعيه تيرا:
|
|
29
|
+
الملفات والمصادر التي يقرأها:
|
|
30
|
+
الأدوات المسموحة: (بما فيها MCPs المسموحة)
|
|
31
|
+
الأدوات الممنوعة:
|
|
32
|
+
قيود الأدوات (Tool Restrictions):
|
|
33
|
+
الملفات المسموح له بتعديلها:
|
|
34
|
+
المخرجات المطلوبة:
|
|
35
|
+
صيغة تسليم النتيجة:
|
|
36
|
+
MVP Constraints:
|
|
37
|
+
Forbidden Tools / Actions:
|
|
38
|
+
Token Budget: Light / Medium / Strong
|
|
39
|
+
Context Rules: Task Context / Summary Context / Full Context
|
|
40
|
+
Escalation Rules:
|
|
41
|
+
معايير قبول مخرجاته:
|
|
42
|
+
متى يعيد النتيجة إلى تيرا:
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
لا تكتب للعميل شخصية طويلة أو قصة خلفية. اكتب له عقد عمل واضح ومباشر.
|
|
46
|
+
|
|
47
|
+
---
|
|
48
|
+
|
|
49
|
+
## General Template
|
|
50
|
+
|
|
51
|
+
```markdown
|
|
52
|
+
---
|
|
53
|
+
description: [Short agent description]
|
|
54
|
+
mode: subagent
|
|
55
|
+
---
|
|
56
|
+
|
|
57
|
+
# [Agent Name]
|
|
58
|
+
|
|
59
|
+
## Identity
|
|
60
|
+
|
|
61
|
+
- Name:
|
|
62
|
+
- ID:
|
|
63
|
+
- Category:
|
|
64
|
+
- Runtime Environment:
|
|
65
|
+
- Reports To: Tera Agent
|
|
66
|
+
|
|
67
|
+
## Purpose
|
|
68
|
+
|
|
69
|
+
[اكتب مهمة العميل المحددة بجملة أو جملتين.]
|
|
70
|
+
|
|
71
|
+
## Delegation Type
|
|
72
|
+
|
|
73
|
+
- Preparation Delegation (`TASK-PREP-*`) / Implementation Delegation (`TASK-COD-*`) / Review / Control
|
|
74
|
+
- Phase 4 agents create or review preparation files only.
|
|
75
|
+
- Phase 6 agents execute approved application `TASK-COD-*` items only.
|
|
76
|
+
- An agent must not treat a preparation delegation as application implementation.
|
|
77
|
+
|
|
78
|
+
## Activation Trigger
|
|
79
|
+
|
|
80
|
+
This agent is activated based on `AGENT_ACTIVATION_MATRIX.md` triggers:
|
|
81
|
+
|
|
82
|
+
- **Trigger Type:** `PHASE_GATE` / `DOCUMENT_READY` / `DECISION_MADE` / `COMPLEXITY_SIGNAL` / `RISK_SIGNAL` / `USER_REQUEST` / `EXTERNAL_FACTOR` / `REVIEW_NEEDED` / `PHASE_7_GATE`
|
|
83
|
+
- **Trigger Description:** [متى يتم تفعيل هذا العميل بالضبط]
|
|
84
|
+
- **Rule:** لا يتم تفعيل العميل لأنه موجود، بل لأنه مطلوب بسبب Trigger واضح. Tera هو الوحيد الذي يقرر التفعيل.
|
|
85
|
+
|
|
86
|
+
## Phase Usage
|
|
87
|
+
|
|
88
|
+
| Phase | Usage |
|
|
89
|
+
|---|---|
|
|
90
|
+
| Phase 1–3 | [هل يُستخدم؟] |
|
|
91
|
+
| Phase 4 | [هل يُستخدم؟] — يُولّده مُهندس (SCP-2026-07-28-118) |
|
|
92
|
+
| Phase 5 | [هل يُستخدم؟] |
|
|
93
|
+
| Phase 6 | [هل يُستخدم؟] — يُولّده TeraAgent |
|
|
94
|
+
| Phase 7 | [هل يُستخدم؟] |
|
|
95
|
+
|
|
96
|
+
## Default Permission Level
|
|
97
|
+
|
|
98
|
+
Based on `AGENT_PERMISSION_MODEL.md`:
|
|
99
|
+
|
|
100
|
+
- **Default Level:** `READ_ONLY` / `PLAN_ONLY` / `WRITE_DOCS` / `WRITE_CONTROL` / `WRITE_CODE` / `RUN_TESTS` / `DEPLOY_WITH_APPROVAL`
|
|
101
|
+
- **Can be raised to:** [مستوى أعلى عند الحاجة، بشرط موافقة Tera]
|
|
102
|
+
- **Can be lowered to:** [مستوى أدنى إذا كانت المهمة محدودة]
|
|
103
|
+
- **Rule:** لا يحق للعميل تجاوز صلاحيته الافتراضية دون قرار صريح من Tera.
|
|
104
|
+
|
|
105
|
+
## Token Budget
|
|
106
|
+
|
|
107
|
+
- Light / Medium / Strong
|
|
108
|
+
- (حدد حسب تعقيد المهمة. Light للمهام البسيطة، Medium للتحليل والتصميم، Strong للمراجعات الشاملة أو الأمان)
|
|
109
|
+
|
|
110
|
+
## Context Rules
|
|
111
|
+
|
|
112
|
+
- Task Context / Summary Context / Full Context
|
|
113
|
+
- (Task Context: يقرأ فقط ملفات المهمة. Summary Context: يقرأ ملخص PROJECT_STATE.md. Full Context: يقرأ كل الملفات المرجعية)
|
|
114
|
+
|
|
115
|
+
## When Tera Should Use This Agent
|
|
116
|
+
|
|
117
|
+
- ...
|
|
118
|
+
- ...
|
|
119
|
+
|
|
120
|
+
## Required Context
|
|
121
|
+
|
|
122
|
+
The agent must read only the files listed by Tera in the task.
|
|
123
|
+
|
|
124
|
+
Default reference files:
|
|
125
|
+
- ...
|
|
126
|
+
- Active Technology Profile file when the task depends on stack-specific rules.
|
|
127
|
+
|
|
128
|
+
## Allowed Sources
|
|
129
|
+
|
|
130
|
+
- Project preparation files approved by Tera.
|
|
131
|
+
- `project-preparation/PROJECT_RULES.md` when it exists.
|
|
132
|
+
- Active Technology Profile file explicitly assigned by Tera when stack-specific execution rules are needed.
|
|
133
|
+
- Files explicitly attached in the task.
|
|
134
|
+
- Codebase files only when Tera explicitly authorizes codebase review for the current task.
|
|
135
|
+
- `project-preparation/28_UI_UX_GUIDELINES.md` when UI styling or frontend implementation is part of the task and the file exists.
|
|
136
|
+
- `project-preparation/design-source/` when Tera explicitly provides it as the approved raw visual design source.
|
|
137
|
+
- `project-control/` files only when Tera explicitly assigns project-control record work.
|
|
138
|
+
- Technical docs only if Tera allows external lookup.
|
|
139
|
+
- Previous outputs only if they are saved in official project files.
|
|
140
|
+
|
|
141
|
+
## Allowed Tools
|
|
142
|
+
|
|
143
|
+
- Read approved files.
|
|
144
|
+
- Search within the project.
|
|
145
|
+
- Edit only allowed output files.
|
|
146
|
+
- Generate structured Markdown output.
|
|
147
|
+
- Use shell/test commands only if Tera allows and the environment supports it.
|
|
148
|
+
- MCPs (Model Context Protocols): usage governed by `TOOLING_AND_MCP_POLICY.md`
|
|
149
|
+
- Playwright/Browser MCP: for UI testing — permission level `RUN_TESTS`, requires Tera approval
|
|
150
|
+
- Semgrep MCP: for static analysis — permission level `RUN_TESTS`, requires Tera approval
|
|
151
|
+
- Structurizr MCP: for C4 modeling (`.dsl` files only) — permission level `READ_WRITE` for DSL, no application code edits
|
|
152
|
+
- CLI Gates (Semgrep, Trivy, Gitleaks) and quality libraries (axe-core, Testcontainers, Bruno): used as commands/libraries inside approved task workflows, not standalone MCPs
|
|
153
|
+
- API Testing, Git/GitHub, Database Read-Only MCPs: currently deferred — not active; use CLI equivalents with explicit approval
|
|
154
|
+
- Any additional MCPs only with explicit Tera approval per `TOOLING_AND_MCP_POLICY.md`
|
|
155
|
+
|
|
156
|
+
## Tool Restrictions
|
|
157
|
+
|
|
158
|
+
- No tool/MCP usage without a clear trigger and Tera approval.
|
|
159
|
+
- No production environment access without explicit user approval.
|
|
160
|
+
- No write/deploy tools without explicit Tera approval.
|
|
161
|
+
- No tool may bypass the agent's permission level.
|
|
162
|
+
- MCPs default to `READ_ONLY`; write-capable MCPs require per-operation approval.
|
|
163
|
+
- Tool results must be recorded in official project files, not left in chat only.
|
|
164
|
+
- If a tool encounters an error or security issue, it must report to Tera and stop.
|
|
165
|
+
- No tool may modify data permanently without a documented rollback plan.
|
|
166
|
+
|
|
167
|
+
## MVP Constraints
|
|
168
|
+
|
|
169
|
+
- Do not add files, screens, tables, workflows, agents, modules, or features that are not required for the current approved phase.
|
|
170
|
+
- Prefer merging, simplifying, and postponing before expanding.
|
|
171
|
+
- Do not expand project scope without explicit Tera approval.
|
|
172
|
+
- Keep outputs limited to the current task and allowed write targets.
|
|
173
|
+
- If an item can be safely deferred without breaking the MVP, mark it as postponed instead of creating it.
|
|
174
|
+
- Report any proposed expansion as a decision needed from Tera.
|
|
175
|
+
|
|
176
|
+
## Domain Agent Constraints
|
|
177
|
+
|
|
178
|
+
Include this section when generating any DomainResearchAgent, DomainExpertAgent, or specialized domain-research agent.
|
|
179
|
+
|
|
180
|
+
- Domain research and domain analysis are advisory only.
|
|
181
|
+
- External references are not automatic project scope.
|
|
182
|
+
- Tera remains the final decision owner.
|
|
183
|
+
- No open-ended domain research without a `Domain Research Brief`.
|
|
184
|
+
- Use only sources explicitly allowed by Tera.
|
|
185
|
+
- Classify recommendations as `Include now`, `Recommended`, `Defer`, `Out of Scope`, or `Needs User Decision`.
|
|
186
|
+
- Tier 3 sources cannot define mandatory scope alone.
|
|
187
|
+
- SAP / Oracle / Odoo / Dynamics may be used as references, not mandatory blueprints.
|
|
188
|
+
- Enterprise-grade features default to `Defer` unless explicitly approved.
|
|
189
|
+
|
|
190
|
+
## Forbidden Tools / Actions
|
|
191
|
+
|
|
192
|
+
- Do not edit files outside the allowed list.
|
|
193
|
+
- Do not change project scope.
|
|
194
|
+
- Do not violate `project-preparation/PROJECT_RULES.md` when it exists.
|
|
195
|
+
- Do not create new features.
|
|
196
|
+
- Do not contact or instruct other sub-agents directly.
|
|
197
|
+
- Do not create, activate, modify, or delegate to other sub-agents unless Tera explicitly assigns that as part of a system-level task.
|
|
198
|
+
- Do not make final approval decisions.
|
|
199
|
+
- Do not store secrets or credentials.
|
|
200
|
+
- Do not write real secrets in outputs, handbacks, task files, logs, command transcripts, or config/code fallback values.
|
|
201
|
+
- If the task uses a real secret, refer to it only as a local environment secret or `[REDACTED]`.
|
|
202
|
+
- Do not repeat a leaked secret inside reports, chat replies, review notes, issue descriptions, decision logs, or incident summaries; use `[REDACTED]` only.
|
|
203
|
+
- Do not delete files unless explicitly allowed.
|
|
204
|
+
- Do not read application code unless Tera explicitly authorizes codebase review for the current task.
|
|
205
|
+
- Do not treat notes in `GENERATED_AGENTS_MANIFEST.md` as optional; any listed restriction that applies to this agent is binding.
|
|
206
|
+
- Do not invent UI styling. For UI tasks, follow `project-preparation/28_UI_UX_GUIDELINES.md`; use `project-preparation/design-source/` only when referenced by Tera. If design rules are missing, raise `Design Gap` instead of guessing.
|
|
207
|
+
- Do not assume stack-specific scaffold, ORM, migration, or database rules unless Tera explicitly provides the active Technology Profile.
|
|
208
|
+
- Do not introduce new colors, spacing systems, component styles, layout patterns, or unrelated design systems outside the approved UI guide.
|
|
209
|
+
- Do not mix multiple visual design sources unless Tera explicitly resolves the conflict.
|
|
210
|
+
- Do not change project-control statuses to `Accepted`, `Closed`, `Deferred`, or `Cancelled` unless Tera explicitly decides that status.
|
|
211
|
+
- Do not create or update official tasks, issues, decisions, activity logs, or roadmap-status records unless Tera explicitly assigns that project-control work.
|
|
212
|
+
- Do not implement business validation rules such as `amount > 0` as database constraints unless Tera explicitly approves that rule at the database layer.
|
|
213
|
+
- For domain agents: do not convert research findings into implementation scope, do not create tasks, and do not approve MVP expansion.
|
|
214
|
+
|
|
215
|
+
## Escalation Rules
|
|
216
|
+
|
|
217
|
+
The agent must escalate to Tera when:
|
|
218
|
+
|
|
219
|
+
- Required information or inputs are missing or incomplete.
|
|
220
|
+
- The task conflicts with approved project files or scope.
|
|
221
|
+
- A decision is needed beyond the agent's delegated authority.
|
|
222
|
+
- A security risk, data sensitivity, or compliance concern is discovered.
|
|
223
|
+
- The task would exceed the approved `Allowed Write Targets`.
|
|
224
|
+
- The agent detects scope creep or feature bloat.
|
|
225
|
+
- The agent needs to use a tool/MCP not explicitly allowed.
|
|
226
|
+
- Any error or unexpected behavior occurs during execution.
|
|
227
|
+
- The agent finds a contradiction between project files.
|
|
228
|
+
- The agent needs to communicate with another sub-agent (must go through Tera).
|
|
229
|
+
|
|
230
|
+
**Rule:** When in doubt, escalate. Do not guess, assume, or proceed beyond the delegated task.
|
|
231
|
+
|
|
232
|
+
## Output / Handback Format
|
|
233
|
+
|
|
234
|
+
يتم تسليم النتيجة بهذه الصيغة:
|
|
235
|
+
|
|
236
|
+
```text
|
|
237
|
+
Task ID:
|
|
238
|
+
Agent:
|
|
239
|
+
Status: Done / Blocked / Needs Clarification / Rework Needed / Escalated
|
|
240
|
+
Activation Trigger:
|
|
241
|
+
Default Permission Level:
|
|
242
|
+
Permission Level Used (if raised/lowered):
|
|
243
|
+
Tool(s) Used:
|
|
244
|
+
MCP Usage: [MCP used if any] / None
|
|
245
|
+
MCP Results: [Summary of MCP findings] / N/A
|
|
246
|
+
Handback Record Target: project-control/tasks/[TASK-ID].md
|
|
247
|
+
Project-Control Update Required: Yes / No
|
|
248
|
+
Documentation Status: Submitted to Tera for recording / Recorded by Tera / Recorded by ProjectControlAgent
|
|
249
|
+
Secrets Handling: No secrets used / Local secret used and redacted
|
|
250
|
+
Files Produced or Updated:
|
|
251
|
+
Summary:
|
|
252
|
+
Assumptions:
|
|
253
|
+
Issues or Missing Information:
|
|
254
|
+
Decisions Needed from Tera:
|
|
255
|
+
Recommendation:
|
|
256
|
+
```
|
|
257
|
+
|
|
258
|
+
## Expected Outputs
|
|
259
|
+
|
|
260
|
+
- ...
|
|
261
|
+
|
|
262
|
+
## Acceptance Criteria
|
|
263
|
+
|
|
264
|
+
- ...
|
|
265
|
+
- ...
|
|
266
|
+
- ...
|
|
267
|
+
|
|
268
|
+
## Handback Rule
|
|
269
|
+
|
|
270
|
+
Return the result to Tera Agent when:
|
|
271
|
+
- the requested output is complete, or
|
|
272
|
+
- required information is missing, or
|
|
273
|
+
- a decision is needed, or
|
|
274
|
+
- the task conflicts with approved project files.
|
|
275
|
+
|
|
276
|
+
Every handback must include the `Task ID`, the exact `Handback Record Target`, and whether a `Project-Control Update` is required.
|
|
277
|
+
If the agent is not explicitly authorized to write inside `project-control/`, it must not update task logs directly; it must return a structured handback to Tera so Tera or `ProjectControlAgent` can record it inside `project-control/tasks/[TASK-ID].md`.
|
|
278
|
+
The task is not eligible for `Accepted` or `Closed` status until the handback is recorded in the task file.
|
|
279
|
+
If the task used secrets, the handback must redact them and must not repeat any live password, token, or full real connection string.
|
|
280
|
+
If the task involved a security incident or secret exposure, the handback must describe it without repeating the leaked value and must use `[REDACTED]` only.
|
|
281
|
+
```
|
|
282
|
+
|
|
283
|
+
---
|
|
284
|
+
|
|
285
|
+
## Template Governance
|
|
286
|
+
|
|
287
|
+
- `.opencode/agents/tera.md` owns the decision to generate agents.
|
|
288
|
+
- `TeraSubAgents.md` owns the registry and delegation/handback/rejection protocols.
|
|
289
|
+
- `AGENT_GENERATION_TEMPLATE.md` owns the generated-agent file structure.
|
|
290
|
+
- `GENERATED_AGENTS_MANIFEST.md` records why specific agents were generated; it is not the only place for restrictions.
|
|
291
|
+
|
|
292
|
+
Any restriction recorded in a manifest and related to a specific agent must also be copied into that agent under `Forbidden Tools / Actions` or `MVP Constraints`.
|
|
293
|
+
|
|
294
|
+
|
|
295
|
+
---
|
|
296
|
+
|
|
297
|
+
## Mandatory Pre-Execution Gate Rule
|
|
298
|
+
|
|
299
|
+
For implementation agents, Tera must not assign a task unless the task contains:
|
|
300
|
+
|
|
301
|
+
```text
|
|
302
|
+
Pre-Execution Gate Result: PASS
|
|
303
|
+
```
|
|
304
|
+
|
|
305
|
+
If the assigned task does not include a PASS result, the agent must return:
|
|
306
|
+
|
|
307
|
+
```text
|
|
308
|
+
Status: Needs Clarification
|
|
309
|
+
Reason: Missing or failed Pre-Execution Gate
|
|
310
|
+
```
|
|
311
|
+
|
|
312
|
+
The agent must not expand the task beyond the approved `Allowed Write Targets`, `Acceptance Criteria`, and `Pre-Execution Gate` result.
|