@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,131 @@
|
|
|
1
|
+
<!-- © 2026 Majed Khaireddin (Alabasi1980). Tera System — Proprietary. All rights reserved. -->
|
|
2
|
+
|
|
3
|
+
# Tera Policy Map
|
|
4
|
+
|
|
5
|
+
## 1. Purpose
|
|
6
|
+
|
|
7
|
+
This file maps each major Tera operating topic to its official source of truth.
|
|
8
|
+
|
|
9
|
+
It prevents rule duplication, unclear authority, and runtime bloat as the system grows.
|
|
10
|
+
|
|
11
|
+
## 2. Rule
|
|
12
|
+
|
|
13
|
+
```text
|
|
14
|
+
Policies define rules.
|
|
15
|
+
Runtime files summarize operational triggers.
|
|
16
|
+
Guides explain usage.
|
|
17
|
+
Project files record project-specific decisions.
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
## 3. Source Of Truth Map
|
|
21
|
+
|
|
22
|
+
| Topic | Source of truth | Runtime summary allowed in | Notes |
|
|
23
|
+
|---|---|---|---|
|
|
24
|
+
| Tera identity and authority | `.opencode/agents/tera.md` | `.opencode/agents/tera.md` | Runtime must stay compact. |
|
|
25
|
+
| Owner strategic advisory | `.opencode/agents/tera-strategic-advisor.md` | Not applicable | Independent advisor for Majed only. Advice is not approval or execution authorization. |
|
|
26
|
+
| Core agent conduct gate | `tera-system/TERA_AGENT_CONDUCT.md` | `.opencode/agents/*.md` | Short runtime reference only. Do not duplicate the conduct rules in each agent file. |
|
|
27
|
+
| Runtime authority order | `.opencode/agents/tera.md` | Not applicable | Active runtime wins until conflict is corrected. |
|
|
28
|
+
| Operating model overview | `.opencode/agents/tera.md` (Section 36) | Not applicable | Merged from Tera Operating Model.md (now deprecated). |
|
|
29
|
+
| System architecture | `tera-system/TeraArchitectureMap.md` | `.opencode/agents/tera.md` | Runtime should only link or summarize. |
|
|
30
|
+
| Project intake | `tera-system/TeraProjectIntakePolicy.md` | `.opencode/agents/application-blueprint.md`, `TERA_SOLUTION_PREPARATION_PROTOCOL.md` | Owned by مُهندس (SCP-2026-07-28-118). Do not duplicate full intake rules elsewhere. |
|
|
31
|
+
| Application question bank | `tera-system/TeraApplicationQuestionBank.md` | `TERA_RUNTIME_PROTOCOLS_CLIENT.md` (Section 18) | Reference bank of categorized questions for Client Discovery + Smart Interview. Includes assumption handling rules. |
|
|
32
|
+
| Client discovery + smart interview | `tera-system/runtime/TERA_RUNTIME_PROTOCOLS_CLIENT.md` (Section 18) | `.opencode/agents/tera.md` | Two-stage intake: open conversation → structured questioning if needed. |
|
|
33
|
+
| Domain intelligence + research | `tera-system/runtime/TERA_RUNTIME_PROTOCOLS_CLIENT.md` (Section 12) | `.opencode/agents/tera.md`, `TERA_RUNTIME_CHECKLISTS.md` | Covers real-time search during discovery, on-demand research, and the No-Guessing Rule. |
|
|
34
|
+
| Production ERP specialist knowledge | `.opencode/agents/production-erp-expert.md` + `tera-system/knowledge-base/manufacturing/00_INDEX.md` | `TeraSubAgents.md`, `AGENT_ACTIVATION_MATRIX.md` | Agent contract governs behavior; KB index governs readiness/status of local manufacturing knowledge files. |
|
|
35
|
+
| Client policy (unified) | `tera-system/TeraClientPolicy.md` | `.opencode/agents/tera.md`, `TERA_RUNTIME_PROTOCOLS_CORE.md`, `TERA_RUNTIME_TEMPLATES.md` | Merged from 4 separate client files (now deprecated). Covers engagement, approval, change control, and facing content. |
|
|
36
|
+
| TCEA discovery coverage framework | `.opencode/agents/tera-client-engagement.md` | `.opencode/agents/tera.md` | Governs the mandatory 13-domain discovery framework, completeness matrix, Discovery Coverage Gate, Quotation Readiness Gate, and Tera Handoff Readiness Gate for external client work. |
|
|
37
|
+
| TCEA discovery domains (canonical) | `tera-system/client-helpers/tera-client-engagement-discovery-domains.md` | Not applicable | Canonical source for the 13 domains numbering, naming, aliases, coverage, and blocking rules. All other files reference this source. |
|
|
38
|
+
| TCEA commercial value discovery (MR6) | `.opencode/agents/tera-client-engagement.md` (A.6.0 MR6) | `.opencode/agents/tera.md` | 6th Master Rule: TCEA must actively discover value-added opportunities — propose as options, not commitments. |
|
|
39
|
+
| TCEA value-added proposals protocol | `tera-system/client-helpers/tera-client-engagement-protocols.md` (A.6.10) | Not applicable | Detailed protocol for commercial proposals: types, rules, template, connection to Future-Proof Discovery. |
|
|
40
|
+
| Solution preparation (phases 1–4) | `.opencode/agents/application-blueprint.md` | `.opencode/agents/tera.md` (reference only) | Owned by مُهندس. Covers blueprint, intake, project decision, preparation planning, delegation, cross-review, baseline, and Engineering Handoff. SCP-2026-07-28-118. |
|
|
41
|
+
| Preparation file catalog | `tera-system/Tera_Project_Preparation_Files.md` | `TERA_PROJECT_DECISION.md` | Comprehensive preparation files **Guide** (catalog + per-file purpose/questions/outputs) owned by مُهندس during preparation. Classified as reference Guide — not split (2026-08-01). |
|
|
42
|
+
| Project decision template | `tera-system/TERA_PROJECT_DECISION.md` + `tera-system/runtime/TERA_SOLUTION_PREPARATION_TEMPLATES.md` §1 | Not applicable | Owned by مُهندس. 13-section structure. |
|
|
43
|
+
| 7-phase Tera workflow | `.opencode/agents/tera.md` §11 (phases 5–7) + `.opencode/agents/application-blueprint.md` (phases 1–4) | Runtime files as referenced | Phases 1–4: مُهندس. Phases 5–7: Tera. SCP-2026-07-28-118. |
|
|
44
|
+
| Phase 3 preparation planning output | `tera-system/runtime/TERA_SOLUTION_PREPARATION_TEMPLATES.md` §2 | `.opencode/agents/application-blueprint.md` | Produces `PREPARATION_PLAN.md`; owned by مُهندس. |
|
|
45
|
+
| Phase 4 agent delegation output | `tera-system/runtime/TERA_SOLUTION_PREPARATION_TEMPLATES.md` §3 | `.opencode/agents/application-blueprint.md` | Produces `AGENT_DELEGATION_PLAN.md`; owned by مُهندس. |
|
|
46
|
+
| Solution preparation protocols | `tera-system/runtime/TERA_SOLUTION_PREPARATION_PROTOCOL.md` | `.opencode/agents/application-blueprint.md` | Phases 1–4 operational protocols for مُهندس. SCP-2026-07-28-118. |
|
|
47
|
+
| Solution preparation templates | `tera-system/runtime/TERA_SOLUTION_PREPARATION_TEMPLATES.md` | `.opencode/agents/application-blueprint.md` | Phase 1–4 output templates for مُهندس. SCP-2026-07-28-118. |
|
|
48
|
+
| Engineering handoff | `project-control/ENGINEERING_HANDOFF_PACKAGE.md` (produced by مُهندس, consumed by Tera) | `.opencode/agents/tera.md` §6 | Two-gate handoff: Solution Readiness → Engineering Intake. |
|
|
49
|
+
| Phase 5 execution planning outputs | `tera-system/runtime/TERA_RUNTIME_TEMPLATES_DELIVERY.md` Sections 29-31 | `.opencode/agents/tera.md`, `TERA_RUNTIME_CHECKLISTS.md`, `TeraPreExecutionGate.md` | Produces `PROJECT_MASTER_PLAN.md`, `PROJECT_DETAILED_EXECUTION_PLAN.md`, and `EXECUTION_BATCH_PLAN.md`. Split notice INS-02: Sections 29-31 moved to DELIVERY file. |
|
|
50
|
+
| Phase 6 post-execution review template | `tera-system/runtime/TERA_RUNTIME_TEMPLATES_DELIVERY.md` Section 32 | `TASK_TEMPLATE.md`, `TeraPreExecutionGate.md`, `TERA_RUNTIME_CHECKLISTS.md` | Used inside `TASK-COD-*` before final acceptance or closure. Note: `TASK_TEMPLATE.md` lives at `project-control/tasks/TASK_TEMPLATE.md` (clarified INS-07, 2026-08-01). Split notice INS-02: Section 32 moved to DELIVERY file. |
|
|
51
|
+
| Phase 7 delivery, handover, and closure | `.opencode/agents/tera.md` Section 5 + `TERA_RUNTIME_TEMPLATES_DELIVERY.md` Section 35 | `.opencode/agents/tera.md`, `TERA_RUNTIME_CHECKLISTS.md`, `TERA_RUNTIME_PROTOCOLS.md` | Project closure is separate from last TASK-COD closure. Phase 7 does not execute code. Split notice INS-02: Section 34 moved to DELIVERY file. |
|
|
52
|
+
| Sub-agent registry (core) | `tera-system/TeraSubAgents.md` | `.opencode/agents/tera.md` | Core agents (Engineering, QA, Auditor, Software Designer) — 769 lines 🟢 |
|
|
53
|
+
| Sub-agent registry (helpers) | `tera-system/TeraHelperAgents.md` | `.opencode/agents/tera.md` | Helper agents (Security, DevOps, Domain, ERP, etc.) — 964 lines 🟢 — split from TeraSubAgents.md via SCP-2026-07-26 |
|
|
54
|
+
| Agent generation template | `tera-system/AGENT_GENERATION_TEMPLATE.md` | `TERA_RUNTIME_PROTOCOLS_CORE.md` | Draft agents use this source. |
|
|
55
|
+
| Pre/Post execution gates | `tera-system/TeraPreExecutionGate.md` | `.opencode/agents/tera.md`, `TERA_RUNTIME_PROTOCOLS_CORE.md` | Gate details stay in the policy file. |
|
|
56
|
+
| Token/context policy | `tera-system/TeraTokenPolicy.md` | `.opencode/agents/tera.md` | Runtime contains only startup/loading rules. |
|
|
57
|
+
| Runtime protocols | `tera-system/runtime/TERA_RUNTIME_PROTOCOLS_CORE.md` + `TERA_RUNTIME_PROTOCOLS_CLIENT.md` | `.opencode/agents/tera.md` | Detailed operational behavior. Split INS-02 continuation: core (1–11) + client (12–18) + knowledge (19). |
|
|
58
|
+
| Client Discovery protocol | `tera-system/runtime/CLIENT_DISCOVERY_PROTOCOL.md` | `TERA_RUNTIME_PROTOCOLS_CLIENT.md` (Section 18 → reference) | Extracted from §18 of Runtime Protocols; covers full Discovery and Smart Interview. |
|
|
59
|
+
| Domain Intelligence protocol | `tera-system/runtime/DOMAIN_INTELLIGENCE_PROTOCOL.md` | `TERA_RUNTIME_PROTOCOLS_CLIENT.md` (Section 12 → reference) | Extracted from §12 of Runtime Protocols; covers research, No-Guessing Rule, Source Policy. |
|
|
60
|
+
| Runtime templates | `tera-system/runtime/TERA_RUNTIME_TEMPLATES.md` | Not applicable | Formal output formats only. |
|
|
61
|
+
| Runtime checklists | `tera-system/runtime/TERA_RUNTIME_CHECKLISTS.md` | `.opencode/agents/tera.md` | Checklists stay outside runtime. |
|
|
62
|
+
| MVP classification | `tera-system/runtime/MVP_DEFINITION_PROTOCOL.md` | `.opencode/agents/tera.md` | Runtime references when to load it. |
|
|
63
|
+
| Technology profiles | `tera-system/profiles/` | `.opencode/agents/tera.md` | Stack-specific rules stay in profiles. |
|
|
64
|
+
| Design governance layer | `tera-system/design-system/` | `.opencode/agents/tera.md`, `TERA_RUNTIME_CHECKLISTS.md`, `TERA_RUNTIME_PROTOCOLS_CORE.md` | Governs Design Source Decision, DESIGN.md integration, internal kits, design tokens, component rules, and UI Acceptance Gate. |
|
|
65
|
+
| Monitor audit framework | `.opencode/agents/monitor.md` | `ENGINEERING_AGENT_RESPONSIBILITIES.md` | Governs the 7 immutable audit rules, reference hierarchy, plan rejection authority, and cumulative audit for plan-compliance checking. |
|
|
66
|
+
| Auditor audit framework | `.opencode/agents/auditor.md` | `ENGINEERING_AGENT_RESPONSIBILITIES.md` | Governs Auditor as a Tera-managed quality gate sub-agent, including diff-first scope, evidence model, QUAUD reporting, and authorized invocation by Tera/Monitor. |
|
|
67
|
+
| Quality gate thresholds | `tera-system/engineering-governance/QUALITY_GATE_THRESHOLDS.md` | `.opencode/agents/auditor.md`, `.opencode/agents/tera.md` | Compact reference for Auditor rule classes, evidence requirements, P1/P2 checks, and default heuristics. |
|
|
68
|
+
| Project UI/UX executable guide | `project-preparation/28_UI_UX_GUIDELINES.md` using `TERA_RUNTIME_TEMPLATES_DELIVERY.md` Section 33 | `TASK_TEMPLATE.md`, `TeraPreExecutionGate.md` | Final executable visual design rules for EngineeringAgent; raw sources stay in `project-preparation/design-source/`. Split notice INS-02: Section 33 moved to DELIVERY file. |
|
|
69
|
+
| Application proposal template | `tera-workshop/client-templates/commercial/APPLICATION_PROPOSAL_TEMPLATE.md` | `TERA_RUNTIME_TEMPLATES.md` (Section 26) | Formal proposal document. Generated after Client Discovery before formal preparation. |
|
|
70
|
+
| Scope of Work template | `tera-workshop/client-templates/commercial/SCOPE_OF_WORK_TEMPLATE.md` | — | Formal SOW document — scope, deliverables, timeline, payment, assumptions, sign-off. Generated after proposal approval. |
|
|
71
|
+
| Technical Proposal template | `tera-workshop/client-templates/commercial/TECHNICAL_PROPOSAL_TEMPLATE.md` | — | Technical architecture, stack, hosting, security, testing, CI/CD. Generated after SOW approval. |
|
|
72
|
+
| Change Request form | `tera-workshop/client-templates/contractual/CHANGE_REQUEST_FORM.md` | — | Change management — description, impact analysis, revised estimates, approval. Used during execution. |
|
|
73
|
+
| Software Services Agreement | `tera-workshop/client-templates/contractual/SOFTWARE_SERVICES_AGREEMENT_TEMPLATE.md` | — | 18-section legal agreement covering scope, obligations, payment, IP, confidentiality, liability, termination. Arabic, Jordanian law. |
|
|
74
|
+
| Quotation | `tera-workshop/client-templates/commercial/QUOTATION_TEMPLATE.md` | — | Formal price quotation — items, totals, payment terms, sign-off. |
|
|
75
|
+
| Meeting Report | `tera-workshop/client-templates/pre-contract/MEETING_REPORT_TEMPLATE.md` | — | Meeting minutes — attendees, agenda, decisions, action items. |
|
|
76
|
+
| Status Report | `tera-workshop/client-templates/contractual/STATUS_REPORT_TEMPLATE.md` | — | Periodic status — progress, achievements, risks, next steps. |
|
|
77
|
+
| Handover Report | `tera-workshop/client-templates/handover/HANDOVER_REPORT_TEMPLATE.md` | — | Delivery and acceptance — deliverables checklist, access info, sign-off. |
|
|
78
|
+
| Completion Certificate | `tera-workshop/client-templates/handover/COMPLETION_CERTIFICATE_TEMPLATE.md` | — | Formal project completion certificate with seal and signatures. |
|
|
79
|
+
| Client Intake Form | `tera-workshop/client-templates/pre-contract/CLIENT_INTAKE_FORM.md` | — | Pre-interview questionnaire — company, project, goals, budget, tech. |
|
|
80
|
+
| Project Charter | `tera-workshop/client-templates/commercial/PROJECT_CHARTER_TEMPLATE.md` | — | Project initiation document — objectives, scope, team, risks, success criteria. |
|
|
81
|
+
| User Persona Matrix | `tera-workshop/client-templates/pre-contract/USER_PERSONA_MATRIX_TEMPLATE.md` | — | User roles and persona cards — goals, pain points, permissions, features. |
|
|
82
|
+
| Gap Analysis | `tera-workshop/client-templates/pre-contract/GAP_ANALYSIS_TEMPLATE.md` | — | As-is vs to-be analysis, gap identification, recommendations. |
|
|
83
|
+
| Risk Register | `tera-workshop/client-templates/pre-contract/RISK_REGISTER_TEMPLATE.md` | — | Risk tracking — impact, probability, mitigation, owner, status. |
|
|
84
|
+
| SLA | `tera-workshop/client-templates/contractual/SLA_TEMPLATE.md` | — | Service Level Agreement — support hours, response times, priorities. |
|
|
85
|
+
| NDA | `tera-workshop/client-templates/pre-contract/NDA_TEMPLATE.md` | — | Non-Disclosure Agreement — confidentiality, exclusions, governing law. |
|
|
86
|
+
| Client Satisfaction Survey | `tera-workshop/client-templates/handover/CLIENT_SATISFACTION_SURVEY_TEMPLATE.md` | — | Post-project feedback — ratings, open questions, recommendation. |
|
|
87
|
+
| Agent improvement suggestions (AIS) | `tera-system/AIS_PROTOCOL.md` | `project-control/AGENT_IMPROVEMENT_SUGGESTIONS.md` | Protocol + central log for agent self-improvement suggestions from real work. Agents record; Hares processes; Majed approves. |
|
|
88
|
+
| User guide | `tera-system/TERA_USER_GUIDE.md` | Not applicable | User-facing prompts and usage examples. |
|
|
89
|
+
| System maintenance | `tera-system/TeraSystemMaintenanceChecklist.md` | `.opencode/agents/tera.md` | Use when modifying Tera itself. |
|
|
90
|
+
| Agent dependency map | `tera-system/AGENT_DEPENDENCY_MAP.md` | `tera-system/AGENT_DEPENDENCY_MAP.md` | Cross-references between agent files; safe edit order; file size alerts. Read before editing any agent file. |
|
|
91
|
+
| Engineering agent core | `tera-system/engineering-helpers/engineering-agent-core.md` | `.opencode/agents/engineering-agent.md`, `.opencode/agents/engineering-agent-dotnet.md` | Shared engineering rules for ALL engineering agents. Must be read before every task. |
|
|
92
|
+
| .NET Engineering agent | `.opencode/agents/engineering-agent-dotnet.md` | `tera-system/TeraSubAgents.md`, `tera-system/AGENT_ACTIVATION_MATRIX.md`, `tera-system/AGENT_DEPENDENCY_MAP.md` | Specialized .NET/C# engineering agent. Used for .NET tasks instead of the general engineering-agent.md. |
|
|
93
|
+
| Scenario stress tests | `tera-system/TeraScenarioStressTests.md` | Not applicable | Used for validation, not daily runtime. |
|
|
94
|
+
| Client workspace guide | `clients/README.md` | Not applicable | Folder usage guide only; policies remain in `tera-system/`. |
|
|
95
|
+
| Project implementation knowledge | `.opencode/agents/project-knowledge-agent.md` | `.opencode/agents/tera.md` | Post-acceptance knowledge updates only; pre-task reading gate before modification |
|
|
96
|
+
| Project knowledge directory | `clients/.../applications/*/project-knowledge/` | — | Per-application folder; concise operational knowledge per screen/module/service. Not for human-facing docs. |
|
|
97
|
+
| TCEA — Dual-Track Model (SCP-2026-07-29-001) | `.opencode/agents/tera-client-engagement.md` (A.0.3, A.4) | `tera-system/client-helpers/tera-client-engagement-protocols.md`, `pricing.md`, `gates.md`, `discovery-domains.md` | Dual-Track: Track A (Custom Development) موجود + تحسينات Existing App. Track B (Product Implementation) جديد — 6 مراحل (B1–B6) + 6 بوابات (PB.1–PB.6) + 3 بروتوكولات (Product Demo, Fit-Gap, Config-First) + Product Pricing Models. |
|
|
98
|
+
| Track B — Product Demo Protocol | `tera-system/client-helpers/tera-client-engagement-protocols.md` (B.1) | Not applicable | بروتوكول العرض التوضيحي للمنتج للمرحلة B1 من Track B. |
|
|
99
|
+
| Track B — Fit-Gap Analysis Protocol | `tera-system/client-helpers/tera-client-engagement-protocols.md` (B.2) | Not applicable | بروتوكول تحليل الفجوة الرباعي (Fit/Gap-Config/Gap-Custom/Process Change) للمرحلة B2 من Track B. |
|
|
100
|
+
| Track B — Configuration-First Mandate | `tera-system/client-helpers/tera-client-engagement-protocols.md` (B.3) | Not applicable | قاعدة "التكوين أولاً قبل التخصيص" لـ Track B. |
|
|
101
|
+
| Track B — Product Pricing Models | `tera-system/client-helpers/tera-client-engagement-pricing.md` (Product Pricing) | `.opencode/agents/tera-client-engagement.md` (A.8) | نماذج تسعير Track B: تراخيص + خدمات تنفيذ + Retainer + T&M. منفصلة عن TeraPricingPolicy.md |
|
|
102
|
+
| Track B — Gates (PB.1–PB.6) | `tera-system/client-helpers/tera-client-engagement-gates.md` (PB.1–PB.6) | `.opencode/agents/tera-client-engagement.md` (D.1) | بوابات Track B الست: Product Discovery, Fit-Gap Coverage, Solution Blueprint, Configuration Readiness, Go-Live Readiness, Hypercare Handoff. |
|
|
103
|
+
| Track B — Existing App Enhancement | `tera-system/client-helpers/tera-client-engagement-discovery-domains.md` (توجيهات Existing) | `.opencode/agents/tera-client-engagement.md` (A.4) | توجيهات إضافية لـ Track A عند `[Existing]` — أسئلة عن قاعدة الكود، Tech Debt، قيود التكامل. |
|
|
104
|
+
| Business Transformation Consultant (BTCA) | `.opencode/agents/tera-business-transformation-consultant.md` | `tera-system/consulting-helpers/BTCA_METHODOLOGY_FRAMEWORK.md`, `BTCA_REPORT_TEMPLATES.md` | عميل مستقل للاستشارات الإدارية والتنظيمية غير البرمجية — Track C. SCP-2026-07-29-002. |
|
|
105
|
+
| BTCA — Methodology Framework | `tera-system/consulting-helpers/BTCA_METHODOLOGY_FRAMEWORK.md` | `.opencode/agents/tera-business-transformation-consultant.md` | إطار المنهجية: تصنيف الأدلة الخماسي، مراحل العمل، دليل المقابلات، هيكل التقرير النهائي. |
|
|
106
|
+
| BTCA — Report Templates | `tera-system/consulting-helpers/BTCA_REPORT_TEMPLATES.md` | `.opencode/agents/tera-business-transformation-consultant.md` | قوالب التقارير العشرة الأساسية + التقرير التنفيذي. |
|
|
107
|
+
| Tera distribution (versioned) | `tera-system/TERA_DISTRIBUTION_POLICY.md` | `.tera/lock.json` في مستودعات العملاء | توزيع Tera المُروّس على مستودعات العملاء: استمداد من المستودع الأصلي (`tera-fetch.ps1` + RepositoryUrl)، إصدارات (Tag+SHA)، عقد ملكية، أدوات `tera-workshop/tools/`. SCP-2026-08-15-009. |
|
|
108
|
+
|
|
109
|
+
## 4. Duplication Policy
|
|
110
|
+
|
|
111
|
+
Allowed duplication:
|
|
112
|
+
|
|
113
|
+
- Short critical rules in `.opencode/agents/tera.md`.
|
|
114
|
+
- Short conduct-gate references in `.opencode/agents/*.md`.
|
|
115
|
+
- Checklist references in runtime files.
|
|
116
|
+
- User-facing summaries in `TERA_USER_GUIDE.md`.
|
|
117
|
+
|
|
118
|
+
Forbidden duplication:
|
|
119
|
+
|
|
120
|
+
- Copying full policy sections into runtime.
|
|
121
|
+
- Rewriting the same mandatory file list in multiple catalog files.
|
|
122
|
+
- Defining conflicting gates in more than one source.
|
|
123
|
+
- Adding new agents in runtime without updating `TeraSubAgents.md`.
|
|
124
|
+
|
|
125
|
+
## 5. Change Rule
|
|
126
|
+
|
|
127
|
+
When a rule changes, update the source of truth first, then update only the summaries that are operationally required.
|
|
128
|
+
|
|
129
|
+
If the change affects runtime behavior, sync `.opencode/agents/tera.md` and update its `Last Synced` date.
|
|
130
|
+
|
|
131
|
+
If a new policy file, folder role, or lifecycle layer is added, update this file and `TeraArchitectureMap.md` in the same maintenance pass.
|