@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,646 @@
|
|
|
1
|
+
# Tera Runtime Checklists
|
|
2
|
+
|
|
3
|
+
These checklists are official runtime support material for Tera Agent.
|
|
4
|
+
Use them when the compact runtime file requests a verification list.
|
|
5
|
+
|
|
6
|
+
Authority rule:
|
|
7
|
+
If this file conflicts with `.opencode/agents/tera.md`, the active runtime file wins until the conflict is reviewed and corrected.
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
## 1. First Action in Any New Project
|
|
12
|
+
|
|
13
|
+
When the user provides a project idea and technical information:
|
|
14
|
+
|
|
15
|
+
### Phase 1: Project Intake & Client Discovery
|
|
16
|
+
> **⚠️ SCP-2026-07-28-118:** هذه المرحلة يملكها مُهندس (ApplicationBlueprintAgent). TeraAgent يبدأ من Engineering Intake Gate (Phase 5).
|
|
17
|
+
1. Read the required system references in `tera-system/`.
|
|
18
|
+
2. Check `project-inputs/01_APPLICATION_IDEA.md` and `project-inputs/02_TECHNICAL_CONTEXT.md`.
|
|
19
|
+
3. If intake is incomplete, enter `Client Discovery Mode` and complete intake first.
|
|
20
|
+
4. **Determine project type:**
|
|
21
|
+
- [ ] Is this an **external client project**? (has a client folder under `clients/`)
|
|
22
|
+
- [ ] Is this an **internal Tera project**? (no client folder)
|
|
23
|
+
- If client project → read `clients/README.md`, identify the client application path, and set write paths accordingly.
|
|
24
|
+
5. If the user provides project-specific rules, create or update `project-preparation/PROJECT_RULES.md` in the appropriate tier (root for internal, client sub-path for client project).
|
|
25
|
+
6. If the project has UI, collect design preferences and sources: colors, screenshots, Figma, CSS, reference sites, RTL/LTR, brand notes.
|
|
26
|
+
|
|
27
|
+
### Phase 2: Project Decision Formation
|
|
28
|
+
1. Create or update `00_PROJECT_INPUTS.md` — **in the correct tier** (root `project-preparation/` for internal OR `clients/.../APP-xxx/project-preparation/` for client project).
|
|
29
|
+
2. Create or update `TERA_PROJECT_DECISION.md` — **in the correct tier**.
|
|
30
|
+
|
|
31
|
+
### Phase 3: Project Preparation Planning
|
|
32
|
+
1. Read `TERA_PROJECT_DECISION.md` — verify Decision is `Proceed to Project Preparation`.
|
|
33
|
+
2. Read `tera-system/Tera_Project_Preparation_Files.md` as the file catalog.
|
|
34
|
+
3. Create `project-control/PREPARATION_PLAN.md` using the template in `TERA_RUNTIME_TEMPLATES.md` Section 27:
|
|
35
|
+
- Classify each file: Required / Conditional / Deferred / Not Required.
|
|
36
|
+
- Determine creation order and dependencies.
|
|
37
|
+
- Assign each file to the appropriate sub-agent.
|
|
38
|
+
- Identify user approval points.
|
|
39
|
+
- If UI exists, decide whether `28_UI_UX_GUIDELINES.md`, `project-preparation/design-source/`, or `UIVisualDesignerAgent` are required.
|
|
40
|
+
4. **No file creation. No agent generation.**
|
|
41
|
+
5. Present the plan for user approval.
|
|
42
|
+
|
|
43
|
+
### Phase 4: Sub-Agent Generation & Preparation Delegation
|
|
44
|
+
1. Verify `PREPARATION_PLAN.md` is approved. If not → do not start Phase 4.
|
|
45
|
+
2. Determine which preparation agents are needed now from the plan.
|
|
46
|
+
- Include `UIVisualDesignerAgent` when visual design tokens/component rules must be prepared now.
|
|
47
|
+
3. For each agent, check status: **Use Existing** / **Specialize** / **Generate**.
|
|
48
|
+
4. If generating: create draft in `generated-agents/opencode/` using `AGENT_GENERATION_TEMPLATE.md`.
|
|
49
|
+
5. For each agent, set:
|
|
50
|
+
- `Allowed Sources` and `Allowed Write Targets`.
|
|
51
|
+
- `Token Budget` (Light / Medium / Strong) and `Context Rules` (Task / Summary / Full).
|
|
52
|
+
- `Forbidden Actions` and `Acceptance Criteria`.
|
|
53
|
+
6. Create `project-control/AGENT_DELEGATION_PLAN.md` using template in `TERA_RUNTIME_TEMPLATES.md` Section 28.
|
|
54
|
+
7. Create or update `generated-agents/opencode/GENERATED_AGENTS_MANIFEST.md`.
|
|
55
|
+
8. Present delegation plan for user approval.
|
|
56
|
+
9. After approval: activate agents in `.opencode/agents/` per current preparation batch.
|
|
57
|
+
10. If activation happens, ask user to restart OpenCode.
|
|
58
|
+
11. Delegate **preparation-file creation only**:
|
|
59
|
+
- Create `TASK-PREP-XXX`.
|
|
60
|
+
- Apply Pre-Execution Gate for the preparation-file task.
|
|
61
|
+
- Assign to the approved preparation agent.
|
|
62
|
+
12. Receive **preparation handback only**:
|
|
63
|
+
- Review generated preparation files.
|
|
64
|
+
- Accept, reject, or request rework.
|
|
65
|
+
13. **This is not application implementation.**
|
|
66
|
+
|
|
67
|
+
### Phase 5: Execution Planning
|
|
68
|
+
1. Run **Execution Readiness Check**:
|
|
69
|
+
- [ ] All required preparation files complete and approved.
|
|
70
|
+
- [ ] `AGENT_DELEGATION_PLAN.md` approved.
|
|
71
|
+
- [ ] Active Technology Profile confirmed.
|
|
72
|
+
- [ ] No blocking Issues.
|
|
73
|
+
- [ ] Design Source Decision resolved for any incoming UI tasks.
|
|
74
|
+
- [ ] `28_UI_UX_GUIDELINES.md` exists for incoming visual UI tasks.
|
|
75
|
+
2. Create `project-control/PROJECT_MASTER_PLAN.md` using template Section 29:
|
|
76
|
+
- Define execution phases with objectives and dependencies.
|
|
77
|
+
- Include the formal phased roadmap (Core MVP / Extended MVP / Phase 2 / Later / Out of Scope).
|
|
78
|
+
- Define transition conditions between phases.
|
|
79
|
+
- Record Design Source Decision per phase.
|
|
80
|
+
3. Create `project-control/PROJECT_DETAILED_EXECUTION_PLAN.md` using template Section 30:
|
|
81
|
+
- Break each phase into traceable items.
|
|
82
|
+
- Link each item to a planned TASK-ID.
|
|
83
|
+
4. Define **First Batch** only — not the full project:
|
|
84
|
+
- Select which items from the detailed plan form the first executable batch.
|
|
85
|
+
5. Create `project-control/EXECUTION_BATCH_PLAN.md` using template Section 31:
|
|
86
|
+
- List included TASK-IDs with assigned agents and Allowed Write Targets.
|
|
87
|
+
- List deferred items with reasons.
|
|
88
|
+
- Record Design Source Decision for this batch.
|
|
89
|
+
6. For each TASK-ID in the batch:
|
|
90
|
+
- Apply Orchestration Decision Matrix.
|
|
91
|
+
- Apply Model Capability Gate.
|
|
92
|
+
- Create task file in `project-control/tasks/TASK-COD-XXX.md`.
|
|
93
|
+
- Run **Pre-Execution Gate** (checklist from `TeraPreExecutionGate.md`, including Design Governance items for UI tasks).
|
|
94
|
+
- Record `Pre-Execution Gate Result: PASS` in the task file.
|
|
95
|
+
- For UI tasks, include UI Source / UI Rules / UI Acceptance / Design Gap Handling and link `UI_ACCEPTANCE_GATE.md`.
|
|
96
|
+
7. Present to user: Master Plan + Detailed Plan + Batch Plan + first TASK-IDs.
|
|
97
|
+
8. Wait for user approval before moving to Phase 6.
|
|
98
|
+
9. **No coding. No UI without Design Source Decision. No TASK-ID without Pre-Execution Gate PASS.**
|
|
99
|
+
|
|
100
|
+
### Phase 6: Implementation
|
|
101
|
+
|
|
102
|
+
0. **Request Build Mode:** Ask the user explicitly: "Do you approve entering Build Mode for TASK-COD-XXX?" before any implementation delegation. Remain in Plan Mode until approved.
|
|
103
|
+
1. Select one approved `TASK-COD-XXX` from the approved `EXECUTION_BATCH_PLAN.md`.
|
|
104
|
+
2. Confirm:
|
|
105
|
+
- [ ] Build Mode approved by user.
|
|
106
|
+
- [ ] Task status is `Approved` or `Assigned`.
|
|
107
|
+
- [ ] Responsible agent is active and appropriate.
|
|
108
|
+
- [ ] Active Technology Profile is loaded.
|
|
109
|
+
- [ ] `Pre-Execution Gate Result: PASS` exists in the task file.
|
|
110
|
+
- [ ] User approval exists for the batch or task.
|
|
111
|
+
3. Delegate only the current task package:
|
|
112
|
+
- Task ID.
|
|
113
|
+
- Objective.
|
|
114
|
+
- Allowed Sources.
|
|
115
|
+
- Allowed Write Targets.
|
|
116
|
+
- Forbidden Actions.
|
|
117
|
+
- Technology Profile.
|
|
118
|
+
- Expected Output.
|
|
119
|
+
- Acceptance Criteria.
|
|
120
|
+
4. Execute only inside `Allowed Write Targets`.
|
|
121
|
+
5. Require structured agent handback:
|
|
122
|
+
- Task ID, Agent, Status.
|
|
123
|
+
- Files Created / Modified.
|
|
124
|
+
- Commands Run.
|
|
125
|
+
- Summary, Assumptions, Issues, Decisions Needed, Recommendation.
|
|
126
|
+
6. Record handback in `project-control/tasks/TASK-COD-XXX.md`; it must not remain only in chat.
|
|
127
|
+
7. Run `Post-Execution Review Gate` from `TeraPreExecutionGate.md` before any acceptance/closure.
|
|
128
|
+
8. Decide final task status: Accepted / Needs Fix / Blocked / Rework Needed / Deferred / Cancelled / READY FOR OWNER ACCEPTANCE.
|
|
129
|
+
(إذا Owner Approval Required = Yes من Task Contract/Gate/Batch/قرار مالك ولم يُسجَّل الاعتماد بعد → READY FOR OWNER ACCEPTANCE — لا Accepted/Closed — SCP-2026-08-16-003.)
|
|
130
|
+
9. Update `TASK_REGISTRY.md`, `PROJECT_ACTIVITY_LOG.md`, `PROJECT_STATE.md`, and `ISSUES_AND_GAPS.md` when needed.
|
|
131
|
+
10. Do not open the next task unless the current task is accepted or explicitly handled.
|
|
132
|
+
11. **Self-Diagnosis Checkpoint:** After every 3 closed tasks, record a compact self-diagnosis (see §1.3 in `.opencode/agents/tera.md`) before opening the 4th task.
|
|
133
|
+
12. When all approved implementation tasks are closed or explicitly deferred, prepare Phase 7 entry review.
|
|
134
|
+
13. **No implementation without approved TASK-ID. No closure without Post-Execution Review. No scope expansion. Implementation completion does not equal project closure.**
|
|
135
|
+
|
|
136
|
+
### Phase 7: Delivery, Handover & Closure
|
|
137
|
+
|
|
138
|
+
Entry Gate:
|
|
139
|
+
|
|
140
|
+
- [ ] All approved `TASK-COD-*` tasks are Closed / Accepted, or incomplete items are documented as Deferred Items.
|
|
141
|
+
- [ ] No undocumented Critical blockers.
|
|
142
|
+
- [ ] Post-Execution Reviews are complete for all accepted implementation tasks.
|
|
143
|
+
- [ ] `TASK_REGISTRY.md`, `PROJECT_STATE.md`, and `ISSUES_AND_GAPS.md` are current.
|
|
144
|
+
|
|
145
|
+
Allowed activities:
|
|
146
|
+
|
|
147
|
+
- Final QA Review.
|
|
148
|
+
- Smoke / Regression Review.
|
|
149
|
+
- Delivery Readiness Review.
|
|
150
|
+
- Documentation finalization.
|
|
151
|
+
- Release Notes.
|
|
152
|
+
- Client/User Acceptance.
|
|
153
|
+
- Handover Package.
|
|
154
|
+
- Post-Implementation Review.
|
|
155
|
+
- Project Closure Decision.
|
|
156
|
+
|
|
157
|
+
Forbidden in Phase 7:
|
|
158
|
+
|
|
159
|
+
- [ ] No new scope.
|
|
160
|
+
- [ ] No code changes.
|
|
161
|
+
- [ ] No direct edits to implementation files.
|
|
162
|
+
- [ ] No hidden open issues.
|
|
163
|
+
- [ ] No undocumented Deferred Items.
|
|
164
|
+
|
|
165
|
+
Exit Gate:
|
|
166
|
+
|
|
167
|
+
- [ ] Delivery Readiness Report complete or intentionally minimized for small internal projects.
|
|
168
|
+
- [ ] Final Acceptance Checklist complete.
|
|
169
|
+
- [ ] Release Notes complete.
|
|
170
|
+
- [ ] Project Closure Report complete.
|
|
171
|
+
- [ ] Client Handover Package complete for external client projects.
|
|
172
|
+
- [ ] Deferred Items documented.
|
|
173
|
+
- [ ] Final closure decision recorded in `PROJECT_ACTIVITY_LOG.md` and `PROJECT_STATE.md`.
|
|
174
|
+
|
|
175
|
+
If Phase 7 finds a blocking issue:
|
|
176
|
+
|
|
177
|
+
1. Do not fix it inside Phase 7.
|
|
178
|
+
2. Create `TASK-COD-FIX-*`.
|
|
179
|
+
3. Return to Phase 6 for fix + review.
|
|
180
|
+
4. Re-enter Phase 7 after the fix is accepted.
|
|
181
|
+
|
|
182
|
+
---
|
|
183
|
+
|
|
184
|
+
## 2. Tera Self-Diagnosis Checklist
|
|
185
|
+
|
|
186
|
+
Run self-diagnosis when:
|
|
187
|
+
|
|
188
|
+
- before creating or activating a sub-agent
|
|
189
|
+
- before starting a new project phase
|
|
190
|
+
- before a major delegation or multi-agent task
|
|
191
|
+
- when user instructions conflict with official files or prior decisions
|
|
192
|
+
- after 2 failed or corrected task attempts in a row
|
|
193
|
+
- when current state, scope, next step, or authority is unclear
|
|
194
|
+
- when Tera is about to ask for broad context, a stronger model, or a costly operation
|
|
195
|
+
|
|
196
|
+
Checklist:
|
|
197
|
+
|
|
198
|
+
```text
|
|
199
|
+
Tera Self-Diagnosis:
|
|
200
|
+
- Current phase:
|
|
201
|
+
- Current task / decision:
|
|
202
|
+
- Have I read PROJECT_STATE.md or TERA_ACTIVE_CONTEXT.md this session?
|
|
203
|
+
- Am I using official files, not chat memory only?
|
|
204
|
+
- Is the next step aligned with PROJECT_MASTER_PLAN.md / PROJECT_DETAILED_EXECUTION_PLAN.md when they exist?
|
|
205
|
+
- Are there unresolved issues, contradictions, or blocked decisions?
|
|
206
|
+
- Are my assumptions documented?
|
|
207
|
+
- Is this the smallest safe next step?
|
|
208
|
+
- Do I need task split, stronger model, or specialist review?
|
|
209
|
+
- Do I need user clarification before proceeding?
|
|
210
|
+
Result: PASS / UNCLEAR / BLOCKED
|
|
211
|
+
```
|
|
212
|
+
|
|
213
|
+
Result rules:
|
|
214
|
+
- `PASS`: continue.
|
|
215
|
+
- `UNCLEAR`: do not delegate yet; clarify, read the needed official file, or update the task package.
|
|
216
|
+
- `BLOCKED`: stop and ask only for the missing decision or information.
|
|
217
|
+
|
|
218
|
+
---
|
|
219
|
+
|
|
220
|
+
## 3. Surgical Editing Rules
|
|
221
|
+
|
|
222
|
+
When modifying an existing file:
|
|
223
|
+
|
|
224
|
+
- Touch only what must be changed.
|
|
225
|
+
- Do not refactor unrelated code, rename files, or restructure unless required.
|
|
226
|
+
- Do not change existing behavior unless the task explicitly requires it.
|
|
227
|
+
- Preserve the current style, structure, indentation, and naming conventions.
|
|
228
|
+
- Explain what changed and why in the handback or task file.
|
|
229
|
+
- Violation = `Surgical Editing Violation`; change must be reverted unless approved.
|
|
230
|
+
|
|
231
|
+
---
|
|
232
|
+
|
|
233
|
+
## 4. MVP Anti-Bloat Checklist
|
|
234
|
+
|
|
235
|
+
For small MVP projects, start with the smallest sufficient structure.
|
|
236
|
+
|
|
237
|
+
Default MVP behavior:
|
|
238
|
+
|
|
239
|
+
- Prefer one management screen per main entity.
|
|
240
|
+
- Combine list, filters, add, edit, details, printing, and actions into one screen unless a clear reason requires separation.
|
|
241
|
+
- Do not create separate add/edit/detail/status screens unless there is a clear reason.
|
|
242
|
+
- Generate only sub-agents required for the current approved phase.
|
|
243
|
+
- Delay architecture, engineering, QA, deployment, performance, compliance, and handover agents until their phase is approved.
|
|
244
|
+
- Avoid separate lookup, status, history, or audit tables when fixed values or simple fields are enough for the MVP.
|
|
245
|
+
- Treat the first draft as reducible, not final.
|
|
246
|
+
- After drafting preparation files, perform a reduction pass: remove, merge, or postpone anything unnecessary.
|
|
247
|
+
|
|
248
|
+
For MVP projects, report:
|
|
249
|
+
|
|
250
|
+
- initial proposed screen count
|
|
251
|
+
- reduced final screen count
|
|
252
|
+
- files merged or postponed
|
|
253
|
+
- agents postponed
|
|
254
|
+
- data structures simplified
|
|
255
|
+
- items moved to future phase
|
|
256
|
+
|
|
257
|
+
---
|
|
258
|
+
|
|
259
|
+
## 5. MVP Definition Classification Checklist
|
|
260
|
+
|
|
261
|
+
Use after discovery information is collected, before finalizing the MVP scope in `project-inputs/01_APPLICATION_IDEA.md`.
|
|
262
|
+
|
|
263
|
+
**Golden rule: User-selected features during discovery are not automatically MVP.**
|
|
264
|
+
|
|
265
|
+
Checklist:
|
|
266
|
+
|
|
267
|
+
- [ ] All candidate features have been collected from discovery.
|
|
268
|
+
- [ ] Each feature has been classified by: necessity, dependency, risk, cost, implementation size.
|
|
269
|
+
- [ ] Each feature is assigned to exactly one tier: Core MVP / Extended MVP / Phase 2 / Phase 3 / Later / Out of Scope.
|
|
270
|
+
- [ ] Core MVP features form the smallest version that delivers the primary workflow end-to-end.
|
|
271
|
+
- [ ] Core MVP is small enough to build in a reasonable timeframe (days to weeks).
|
|
272
|
+
- [ ] Extended MVP features are clearly non-blocking — the app works without them.
|
|
273
|
+
- [ ] Phase 2+ features depend on Core MVP being stable first.
|
|
274
|
+
- [ ] Later/Enterprise features are deferred unless explicitly approved for current scope.
|
|
275
|
+
- [ ] Out-of-scope items are documented to prevent future scope creep.
|
|
276
|
+
- [ ] The classification is visible in the Application Understanding Summary for user review.
|
|
277
|
+
- [ ] The user has approved or reclassified — Tera's default is not automatic MVP inclusion.
|
|
278
|
+
|
|
279
|
+
Reference: `tera-system/runtime/MVP_DEFINITION_PROTOCOL.md`
|
|
280
|
+
|
|
281
|
+
---
|
|
282
|
+
|
|
283
|
+
## 6. Design Governance Checklist
|
|
284
|
+
|
|
285
|
+
Tera must not allow random or inconsistent UI styling.
|
|
286
|
+
|
|
287
|
+
Official reference:
|
|
288
|
+
|
|
289
|
+
```text
|
|
290
|
+
tera-system/design-system/
|
|
291
|
+
```
|
|
292
|
+
|
|
293
|
+
Before any frontend execution planning or UI implementation, decide the design source mode:
|
|
294
|
+
|
|
295
|
+
```text
|
|
296
|
+
INTERNAL_TERA_KIT / GETDESIGN_MD / FIGMA_DESIGN_FILE / USER_PROVIDED_REFERENCE / EXTERNAL_URL_ANALYSIS / HYBRID / NO_UI / N/A
|
|
297
|
+
```
|
|
298
|
+
|
|
299
|
+
Checklist:
|
|
300
|
+
|
|
301
|
+
- [ ] Project design level selected: None / Compact / Full.
|
|
302
|
+
- [ ] Design Source Decision recorded.
|
|
303
|
+
- [ ] Raw sources saved in `project-preparation/design-source/` when applicable.
|
|
304
|
+
- [ ] `project-preparation/28_UI_UX_GUIDELINES.md` created for visual UI work.
|
|
305
|
+
- [ ] `28_UI_UX_GUIDELINES.md` includes tokens, layout rules, component rules, RTL/LTR, accessibility, forbidden styling, and implementation instructions.
|
|
306
|
+
- [ ] UI tasks include UI Source / UI Rules / UI Acceptance / Design Gap Handling.
|
|
307
|
+
- [ ] UI tasks link `tera-system/design-system/UI_ACCEPTANCE_GATE.md`.
|
|
308
|
+
- [ ] EngineeringAgent is instructed to raise Design Gap instead of guessing.
|
|
309
|
+
|
|
310
|
+
Separation rule:
|
|
311
|
+
|
|
312
|
+
```text
|
|
313
|
+
07_SCREENS_AND_UI_STRUCTURE.md = screen structure and UX/navigation
|
|
314
|
+
28_UI_UX_GUIDELINES.md = final executable visual design rules
|
|
315
|
+
project-preparation/design-source/ = raw design sources
|
|
316
|
+
```
|
|
317
|
+
|
|
318
|
+
Default rule:
|
|
319
|
+
|
|
320
|
+
```text
|
|
321
|
+
No Frontend Execution Planning without Design Source Decision.
|
|
322
|
+
No UI Implementation without 28_UI_UX_GUIDELINES.md when visual style matters.
|
|
323
|
+
```
|
|
324
|
+
|
|
325
|
+
---
|
|
326
|
+
|
|
327
|
+
## 7. Security Sensitivity Levels
|
|
328
|
+
|
|
329
|
+
Decide security sensitivity before delegation.
|
|
330
|
+
|
|
331
|
+
| Level | Meaning | Default Action |
|
|
332
|
+
|---|---|---|
|
|
333
|
+
| Low | UI-only, text/layout, no Auth/API/Server Actions/Data Mutations | `SecurityAgent` not needed by default; only required if Tera identifies a real security gap |
|
|
334
|
+
| Medium | Standard Server Actions, CRUD with requireAdmin, Data Mutations within existing permissions | Tera explicitly decides: required / optional but skipped / not needed |
|
|
335
|
+
| High | Auth flow, JWT, cookies, sessions, passwords, secrets, config, middleware, permissions model, public API endpoints | `SecurityAgent` is default; cannot skip without strong documented reason |
|
|
336
|
+
|
|
337
|
+
Rules:
|
|
338
|
+
- `Server Actions` and `Data Mutations` count as independent security surfaces.
|
|
339
|
+
- `Security Sensitivity` does not replace the post-execution `Independent Review Decision`; both are required.
|
|
340
|
+
|
|
341
|
+
---
|
|
342
|
+
|
|
343
|
+
## 8. Pre-Execution Gate Checklist
|
|
344
|
+
|
|
345
|
+
Before any implementation task is approved, assigned, or executed, apply:
|
|
346
|
+
|
|
347
|
+
```text
|
|
348
|
+
tera-system/TeraPreExecutionGate.md
|
|
349
|
+
```
|
|
350
|
+
|
|
351
|
+
Mandatory rule:
|
|
352
|
+
|
|
353
|
+
```text
|
|
354
|
+
No implementation delegation without Pre-Execution Gate PASS.
|
|
355
|
+
```
|
|
356
|
+
|
|
357
|
+
Tera must add a `Pre-Execution Gate Result` section to every implementation task.
|
|
358
|
+
|
|
359
|
+
If `NEEDS_REVISION`, Tera revises by itself before asking user approval.
|
|
360
|
+
If `BLOCKED`, Tera stops and asks only for the missing decision or information.
|
|
361
|
+
Tera must not require the user to discover detailed technical scope mistakes.
|
|
362
|
+
|
|
363
|
+
Default first technical task, scaffold restrictions, ORM/schema rules, and database apply limits must come from the active Technology Profile.
|
|
364
|
+
|
|
365
|
+
General database-layer rule:
|
|
366
|
+
|
|
367
|
+
```text
|
|
368
|
+
Schema definitions may define field types and relations.
|
|
369
|
+
Business validation rules such as amount > 0 must not be implemented as database constraints unless explicitly approved.
|
|
370
|
+
```
|
|
371
|
+
|
|
372
|
+
General secret rule:
|
|
373
|
+
|
|
374
|
+
```text
|
|
375
|
+
Real secrets are allowed only in approved local environment files or environment variables.
|
|
376
|
+
They must never be written into task files, logs, handbacks, or config/code fallback values.
|
|
377
|
+
```
|
|
378
|
+
|
|
379
|
+
---
|
|
380
|
+
|
|
381
|
+
## 9. Task Prioritization Matrix
|
|
382
|
+
|
|
383
|
+
When multiple tasks are ready and the user has not specified an order, Tera chooses the next task using this priority order.
|
|
384
|
+
|
|
385
|
+
| Priority | Meaning | Examples |
|
|
386
|
+
|---|---|---|
|
|
387
|
+
| P0 Critical | Blocks all or protects the project | broken auth, exposed secret, failed build, blocking setup |
|
|
388
|
+
| P1 High | Core MVP / unlocks later work | main data model, auth, core screen, required validation |
|
|
389
|
+
| P2 Medium | Important but not blocking | secondary filters, reports, quality fixes |
|
|
390
|
+
| P3 Low | polish or minor improvement | visual polish, small UX improvement |
|
|
391
|
+
| P4 Deferred | later phase | future enhancements, nice-to-have features |
|
|
392
|
+
|
|
393
|
+
Ordering rules:
|
|
394
|
+
|
|
395
|
+
1. Follow explicit user order when provided.
|
|
396
|
+
2. Fix P0 blockers before feature work.
|
|
397
|
+
3. Prefer dependencies that unblock more work.
|
|
398
|
+
4. Prefer higher-risk or security-sensitive tasks before lower-risk polish.
|
|
399
|
+
5. Prefer MVP acceptance blockers before enhancements.
|
|
400
|
+
6. If two tasks are equal, choose the smaller safer task first.
|
|
401
|
+
7. If a high-priority task is blocked, choose the next highest unblocked task.
|
|
402
|
+
|
|
403
|
+
---
|
|
404
|
+
|
|
405
|
+
## 10. PROJECT_STATE.md Minimum Content
|
|
406
|
+
|
|
407
|
+
`project-control/PROJECT_STATE.md` is the compact project memory.
|
|
408
|
+
|
|
409
|
+
Must contain at minimum:
|
|
410
|
+
|
|
411
|
+
- Current phase.
|
|
412
|
+
- Approved decisions.
|
|
413
|
+
- Active technical stack.
|
|
414
|
+
- Completed tasks and screens.
|
|
415
|
+
- Active and inactive sub-agents.
|
|
416
|
+
- Open risks or issues.
|
|
417
|
+
- Current roadmap position.
|
|
418
|
+
- Next recommended step.
|
|
419
|
+
|
|
420
|
+
Rules:
|
|
421
|
+
- It is a context gateway, not a replacement for detailed files.
|
|
422
|
+
- Update it after closing a significant task, accepting a phase, registering a significant issue/decision, changing the roadmap, running `PlanComplianceReviewAgent`, or performing phase compaction/summary.
|
|
423
|
+
|
|
424
|
+
---
|
|
425
|
+
|
|
426
|
+
## 11. Domain Intelligence and Research Trigger Checklist
|
|
427
|
+
|
|
428
|
+
### When to trigger formal Domain Intelligence
|
|
429
|
+
|
|
430
|
+
Tera may trigger full Domain Intelligence (Research Brief + agents) when one or more conditions exist:
|
|
431
|
+
|
|
432
|
+
- ERP module or deep business domain.
|
|
433
|
+
- Screen or feature has workflow, approval, permissions, or cross-module integration.
|
|
434
|
+
- Domain is procurement, inventory, accounting, manufacturing, HR, projects, compliance, or another rule-heavy business area.
|
|
435
|
+
- User requests best practices.
|
|
436
|
+
- User requests alignment with SAP, Oracle, Odoo, Dynamics, or another reference system.
|
|
437
|
+
- Current domain understanding is incomplete and wrong analysis could cause major rework.
|
|
438
|
+
- Feature depends on current or source-grounded external knowledge.
|
|
439
|
+
|
|
440
|
+
Do not trigger Domain Intelligence for:
|
|
441
|
+
- simple CRUD
|
|
442
|
+
- small UI edits
|
|
443
|
+
- bug fixes
|
|
444
|
+
- adding a filter or button
|
|
445
|
+
- purely technical tasks
|
|
446
|
+
- domains already sufficiently documented in official project files
|
|
447
|
+
|
|
448
|
+
### When to trigger Quick Search (during Client Discovery)
|
|
449
|
+
|
|
450
|
+
A Quick Search (real-time, no formal brief) is triggered when:
|
|
451
|
+
- The client mentions an integration, API, or third-party service.
|
|
452
|
+
- The client asks about hosting providers, pricing, or regional availability.
|
|
453
|
+
- The question in the Question Bank is marked `🔍 Research recommended` and the client defers or asks for a recommendation.
|
|
454
|
+
- Majed explicitly says "ابحث عن [موضوع]" during the conversation.
|
|
455
|
+
- Tera does not have source-grounded knowledge about a specific technology, library, or approach relevant to the client's context.
|
|
456
|
+
|
|
457
|
+
### When to trigger Focused Research (between discovery and preparation)
|
|
458
|
+
|
|
459
|
+
Focused Research is triggered when:
|
|
460
|
+
- A specific decision needs comparison (e.g., which payment gateway, which cloud provider).
|
|
461
|
+
- The user requests a comparison with sources.
|
|
462
|
+
- The topic is bounded and can be resolved in one research round.
|
|
463
|
+
|
|
464
|
+
---
|
|
465
|
+
|
|
466
|
+
## 12. Source Reliability Checklist
|
|
467
|
+
|
|
468
|
+
Source tiers:
|
|
469
|
+
|
|
470
|
+
| Tier | Source Type |
|
|
471
|
+
|---|---|
|
|
472
|
+
| Tier 1 | Official documentation: SAP, Oracle, Microsoft, Odoo, standards, government/business authorities |
|
|
473
|
+
| Tier 2 | Books, whitepapers, professional articles, reputable implementation guides |
|
|
474
|
+
| Tier 3 | General blogs, practitioner notes, community examples |
|
|
475
|
+
| Forbidden | Sources without links, weak forums, unverified marketing content, copied or unclear material |
|
|
476
|
+
|
|
477
|
+
Rules:
|
|
478
|
+
|
|
479
|
+
- Tier 3 cannot define mandatory scope alone.
|
|
480
|
+
- Prefer Tier 1 when reference-system alignment is requested.
|
|
481
|
+
- Record source confidence and conflicting findings.
|
|
482
|
+
- Do not use unverifiable claims as requirements.
|
|
483
|
+
|
|
484
|
+
---
|
|
485
|
+
|
|
486
|
+
## 13. Reference-System Safety Checklist
|
|
487
|
+
|
|
488
|
+
SAP, Oracle, Odoo, Dynamics, and similar systems may be used as reference sources, not mandatory blueprints.
|
|
489
|
+
|
|
490
|
+
Allowed reference use:
|
|
491
|
+
|
|
492
|
+
- terminology
|
|
493
|
+
- common workflow concepts
|
|
494
|
+
- statuses
|
|
495
|
+
- approval patterns
|
|
496
|
+
- integration points
|
|
497
|
+
- best-practice warnings
|
|
498
|
+
|
|
499
|
+
Do not copy by default:
|
|
500
|
+
|
|
501
|
+
- complete enterprise workflows
|
|
502
|
+
- full MRP behavior
|
|
503
|
+
- multi-level release strategies
|
|
504
|
+
- budget commitment accounting
|
|
505
|
+
- advanced supplier or contract automation
|
|
506
|
+
- any feature that exceeds approved project scope
|
|
507
|
+
|
|
508
|
+
Enterprise-grade features default to `Later` unless explicitly approved.
|
|
509
|
+
|
|
510
|
+
---
|
|
511
|
+
|
|
512
|
+
## 14. Domain Anti-Bloat Checklist
|
|
513
|
+
|
|
514
|
+
Before accepting any domain recommendation, ask:
|
|
515
|
+
|
|
516
|
+
- Is it required for the current approved phase?
|
|
517
|
+
- Is it essential for MVP?
|
|
518
|
+
- Is it enterprise-only?
|
|
519
|
+
- Does it require integration not yet approved?
|
|
520
|
+
- Can it be deferred safely?
|
|
521
|
+
- Does it conflict with `PROJECT_RULES.md`?
|
|
522
|
+
- Does it need a user decision?
|
|
523
|
+
|
|
524
|
+
Every recommendation must be classified as:
|
|
525
|
+
|
|
526
|
+
```text
|
|
527
|
+
Include now / Recommended / Defer / Out of Scope / Needs User Decision
|
|
528
|
+
```
|
|
529
|
+
|
|
530
|
+
---
|
|
531
|
+
|
|
532
|
+
## 15. Application Discovery Questions Checklist
|
|
533
|
+
|
|
534
|
+
Ask in short batches. Do not ask all questions at once.
|
|
535
|
+
|
|
536
|
+
Core discovery areas:
|
|
537
|
+
|
|
538
|
+
- What is the application idea?
|
|
539
|
+
- What problem does it solve?
|
|
540
|
+
- Who will use it?
|
|
541
|
+
- What should the first useful version do?
|
|
542
|
+
- What is explicitly not needed now?
|
|
543
|
+
- What workflows, approvals, statuses, or reports are expected?
|
|
544
|
+
- Are there roles or permissions?
|
|
545
|
+
- Are there external systems or integrations?
|
|
546
|
+
- Are there design, language, RTL/LTR, color, or UX preferences?
|
|
547
|
+
- Is there a preferred technology stack?
|
|
548
|
+
- Is the app internal, customer-facing, public, or multi-tenant?
|
|
549
|
+
- Are there reference systems or examples such as SAP, Odoo, Oracle, Dynamics, or screenshots?
|
|
550
|
+
|
|
551
|
+
Smart domain questions may be asked after the app is sufficiently understood, not before.
|
|
552
|
+
|
|
553
|
+
---
|
|
554
|
+
|
|
555
|
+
## 16. Discovery Documentation Checklist
|
|
556
|
+
|
|
557
|
+
Before leaving Application Discovery, confirm:
|
|
558
|
+
|
|
559
|
+
- Application idea is documented.
|
|
560
|
+
- Problem / purpose is documented.
|
|
561
|
+
- Target users are documented.
|
|
562
|
+
- Main workflows or expected actions are documented.
|
|
563
|
+
- MVP candidates are documented.
|
|
564
|
+
- Later-phase candidates are documented.
|
|
565
|
+
- Out-of-scope items are documented when known.
|
|
566
|
+
- Technical context is documented or explicitly marked missing.
|
|
567
|
+
- User preferences are documented.
|
|
568
|
+
- Assumptions are documented.
|
|
569
|
+
- Open questions are documented.
|
|
570
|
+
- Materially important chat-only information has been normalized into official `project-inputs` files.
|
|
571
|
+
|
|
572
|
+
Materially important means information that affects scope, MVP/later phasing, users, workflows, permissions, data, integrations, technical context, constraints, risks, assumptions, open questions, or acceptance.
|
|
573
|
+
|
|
574
|
+
Do not block discovery just to preserve every minor phrase, aside, preference wording, or non-impactful detail.
|
|
575
|
+
|
|
576
|
+
If materially important application information remains only in chat, discovery cannot close.
|
|
577
|
+
|
|
578
|
+
---
|
|
579
|
+
|
|
580
|
+
## 17. Suggestion Timing Checklist
|
|
581
|
+
|
|
582
|
+
Before Tera proposes significant improvements, confirm:
|
|
583
|
+
|
|
584
|
+
- Tera can summarize the application accurately.
|
|
585
|
+
- The user has had a chance to correct the understanding.
|
|
586
|
+
- The suggestion is tied to the user's goals or a real domain risk.
|
|
587
|
+
- The suggestion is classified as MVP / Later / Out of Scope / Needs User Decision.
|
|
588
|
+
- The suggestion is presented as an option, not as automatic scope.
|
|
589
|
+
|
|
590
|
+
Do not propose major scope expansions before sufficient understanding.
|
|
591
|
+
|
|
592
|
+
---
|
|
593
|
+
|
|
594
|
+
## 18. Post-Research Review Checklist
|
|
595
|
+
|
|
596
|
+
After Domain Intelligence or external research:
|
|
597
|
+
|
|
598
|
+
- Did the research introduce new useful ideas?
|
|
599
|
+
- Did it reveal missing workflow, role, validation, or integration issues?
|
|
600
|
+
- Did it suggest enterprise features that should be deferred?
|
|
601
|
+
- Did any finding conflict with user intent or `PROJECT_RULES.md`?
|
|
602
|
+
- Did Tera classify findings into Include now / Recommended / Defer / Out of Scope / Needs User Decision?
|
|
603
|
+
- Did Tera return to the user to review meaningful changes before adopting them?
|
|
604
|
+
|
|
605
|
+
Research findings cannot become approved scope without user/Tera decision.
|
|
606
|
+
|
|
607
|
+
---
|
|
608
|
+
|
|
609
|
+
## 19. Phased Roadmap / Master Plan Readiness Checklist
|
|
610
|
+
|
|
611
|
+
Before detailed execution planning or `TASK-COD-*` generation, confirm:
|
|
612
|
+
|
|
613
|
+
- [ ] Feature classification (`tera-system/runtime/MVP_DEFINITION_PROTOCOL.md`) has been completed before MVP scope was set.
|
|
614
|
+
- [ ] Phase 1 / MVP is clear and small enough.
|
|
615
|
+
- [ ] Core MVP and Extended MVP are distinguished (if Extended MVP features exist).
|
|
616
|
+
- [ ] Later phases are separated from MVP.
|
|
617
|
+
- [ ] Enterprise or complex features are deferred unless explicitly approved.
|
|
618
|
+
- [ ] Out-of-scope items are listed where relevant.
|
|
619
|
+
- [ ] User decisions are captured.
|
|
620
|
+
- [ ] The preliminary phased roadmap from discovery has been reviewed.
|
|
621
|
+
- [ ] `PROJECT_MASTER_PLAN.md` includes the formal phased roadmap.
|
|
622
|
+
- [ ] The user approved `PROJECT_MASTER_PLAN.md`.
|
|
623
|
+
|
|
624
|
+
No detailed execution planning or `TASK-COD-*` generation before `PROJECT_MASTER_PLAN.md` approval.
|
|
625
|
+
|
|
626
|
+
---
|
|
627
|
+
|
|
628
|
+
## 20. Project Knowledge Gate Checklist
|
|
629
|
+
|
|
630
|
+
### 20.1 Pre-Task (Before Delegation)
|
|
631
|
+
- [ ] Does this task affect an existing element? (screen/module/service/component)
|
|
632
|
+
- [ ] Is there a knowledge file in `project-knowledge/` for this element?
|
|
633
|
+
- [ ] If YES → added "Must read project-knowledge/{path}" to delegation package
|
|
634
|
+
- [ ] If NO → added "Knowledge file not yet created" note
|
|
635
|
+
|
|
636
|
+
### 20.2 Post-Task (After Acceptance, Before Closure)
|
|
637
|
+
- [ ] Did the task affect operational knowledge?
|
|
638
|
+
- [ ] If YES → delegated to ProjectKnowledgeAgent with full Knowledge Package
|
|
639
|
+
- [ ] ProjectKnowledgeAgent report received
|
|
640
|
+
- [ ] Knowledge update confirmed
|
|
641
|
+
- [ ] Task closure includes knowledge update confirmation
|
|
642
|
+
|
|
643
|
+
### 20.3 When to Skip Knowledge Gate
|
|
644
|
+
- [ ] Cosmetic changes only (color, spacing, formatting)
|
|
645
|
+
- [ ] Variable renaming / internal refactoring (no behavior change)
|
|
646
|
+
- [ ] Code quality improvements only (no user-facing change)
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
# Tera Runtime Protocols — Knowledge Management
|
|
2
|
+
|
|
3
|
+
This file now contains **Section 19** (Project Knowledge Management Protocol) after the INS-02 continuation split (2026-08-01).
|
|
4
|
+
|
|
5
|
+
## Split Notice
|
|
6
|
+
|
|
7
|
+
| Split file | Sections | Lines |
|
|
8
|
+
|---|---|---|
|
|
9
|
+
| `TERA_RUNTIME_PROTOCOLS_CORE.md` | 1–11 (Core operational) | ~758 |
|
|
10
|
+
| `TERA_RUNTIME_PROTOCOLS_CLIENT.md` | 12–18 (Client & Discovery) | ~356 |
|
|
11
|
+
| `TERA_RUNTIME_PROTOCOLS.md` (this file) | 19 (Knowledge Management) | ~38 |
|
|
12
|
+
|
|
13
|
+
Update any reference that pointed to Sections 1–18 to the new files.
|
|
14
|
+
|
|
15
|
+
---
|
|
16
|
+
|
|
17
|
+
## 19. Project Knowledge Management Protocol
|
|
18
|
+
|
|
19
|
+
### 19.1 Pre-Task Knowledge Gate (TeraAgent)
|
|
20
|
+
Before delegating any TASK-COD-* that affects an existing element:
|
|
21
|
+
1. Determine elements (screen/module/service/component)
|
|
22
|
+
2. Look for knowledge files in `project-knowledge/`
|
|
23
|
+
3. If found → add to delegation: "Must read project-knowledge/{path} before starting"
|
|
24
|
+
4. If not found → add note: "Knowledge file not yet created"
|
|
25
|
+
|
|
26
|
+
### 19.2 Post-Task Knowledge Update (ProjectKnowledgeAgent)
|
|
27
|
+
After task acceptance, if the task affected operational knowledge:
|
|
28
|
+
1. TeraAgent delegates to ProjectKnowledgeAgent with Knowledge Package
|
|
29
|
+
2. ProjectKnowledgeAgent reads: Knowledge Package + Primary Files + Referenced Files (if any) + current knowledge file
|
|
30
|
+
3. Updates or creates knowledge file in `project-knowledge/`
|
|
31
|
+
4. Returns report to TeraAgent
|
|
32
|
+
5. TeraAgent confirms knowledge update before task closure
|
|
33
|
+
|
|
34
|
+
### 19.3 Knowledge Package Structure
|
|
35
|
+
```
|
|
36
|
+
Task ID | Task Summary | Primary Files | Referenced Files (if any) |
|
|
37
|
+
Acceptance Result | Audit Notes (if any) | Element Type |
|
|
38
|
+
Element Name | Element Path | Completion Status (Complete/Partial/Deferred)
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
### 19.4 Knowledge File Location
|
|
42
|
+
`clients/CLIENT-XXX/applications/APP-XXX/project-knowledge/{element-path}.md`
|
|
43
|
+
|
|
44
|
+
### 19.5 Boundaries
|
|
45
|
+
- `project-knowledge/` = operational knowledge for agents (current state)
|
|
46
|
+
- `docs/` = human-facing documentation (guides, test plans, deployment)
|
|
47
|
+
- Knowledge files describe current state only — no historical logs
|
|
48
|
+
- Auditor reviews `project-knowledge/` periodically for accuracy
|
|
49
|
+
|
|
50
|
+
---
|