@tera-system/core 0.7.2 → 0.7.3

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/MANIFEST.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tera-system/core",
3
- "version": "0.7.2",
3
+ "version": "0.7.3",
4
4
  "description": "Build manifest for the Tera System OpenCode Plugin component.",
5
5
  "compatibleEnvironments": [
6
6
  "opencode"
@@ -15,12 +15,12 @@
15
15
  "assets": 50
16
16
  },
17
17
  "sha256": {
18
- "agents": "a0f949eee3463732e96b295b80ea736dcc6930763eb5b0f013dd2f300af4cd26",
18
+ "agents": "56a045c363e89ec2ad6cd456f0e9a6a1b8c2fe2b806fc1d1bc62fe5652ed9c45",
19
19
  "commands": "82363db107900e97808aabe1e382d5a91b376b5876dc83298a05b42f7080662c",
20
- "core/tera-system": "f50e2a917cfa70d8d719bc0f7db39c923b516e462cf21bc3f9bedc3ad788cadc",
20
+ "core/tera-system": "97c48f9f7a336f70037416073672f14f508aef9479cbfd9cc5bcc55911fff33f",
21
21
  "tools": "60e9fb5fa05afa63053d8f6d80a371cdc288448e7c13831066b4d08f0573539e",
22
22
  "core/project-control": "42ec6f27178662e99aea6132e68298efcfdafed9094e6876da8cbb20fc20ed5c",
23
23
  "assets": "fe81fd60c41fd80108459321de9b66322ea123bf63867acd5601de5ef2a2e445"
24
24
  },
25
- "builtAt": "2026-10-30"
25
+ "builtAt": "2026-11-04"
26
26
  }
package/RELEASES.md CHANGED
@@ -4,6 +4,23 @@
4
4
 
5
5
  ---
6
6
 
7
+ ## 0.7.3 (2026-11-04)
8
+
9
+ ### إصلاح عدّاد العملاء + حوكمة النافذة المتوازية (SCP-2026-10-30-003 · SCP-2026-10-30-004)
10
+
11
+ - **SCP-003 — تصحيح عدّاد العملاء:** 26 → 27 في 3 مواضع (اكتُشف بمراجعة TeraAgent P3).
12
+ - **SCP-004 — `tera.md`:**
13
+ - **§14 Parallel Window Guard** — حماية العمل المتوازي بين نوافذ العمل.
14
+ - **§10 Rule Budget + Rule-of-Two** — سقف قواعد صريح لمنع تضخّم التعليمات.
15
+ - **§13 بند «لا تُخفّض بوابات المرحلة».**
16
+ - **CODE BOUNDARY — «مرجع سريع».**
17
+ - **`TeraSystemMaintenanceChecklist` §5.2 — Self-Consistency Proof (4 بنود).**
18
+ - **`TERA_DISTRIBUTION_POLICY`:** سجل إصدارات 0.7.1 + 0.7.2 يدخل الحزمة الآن.
19
+ - **العدادات:** 27 وكيلاً · 40 أمراً · 13 بروفايل · 127 ملف `tera-system/` (بلا تغيير — Patch).
20
+ - **الفاصل:** `0.7.2` صدرت من `00eaa33`؛ `0.7.3` من `331c18d`.
21
+
22
+ ---
23
+
7
24
  ## 0.7.2 (2026-10-30)
8
25
 
9
26
  ### متخصص React Native + تسجيلاته الكاملة (SCP-2026-10-30-001 · GAP-028)
package/agents/tera.md CHANGED
@@ -22,7 +22,7 @@ Before any action, you MUST read and pass:
22
22
 
23
23
  ---
24
24
 
25
- ## 🔴 CODE BOUNDARY (Hard Rule — الأهم)
25
+ ## 🔴 CODE BOUNDARY (Hard Rule — الأهم) — مرجع سريع؛ النص الحاكم للتفعيل في `tera-system/AGENT_ACTIVATION_MATRIX.md`
26
26
 
27
27
  أنت **مدير تنفيذ هندسي**. ممنوع من كتابة أي كود برمجي — ولا حتى سطر واحد.
28
28
 
@@ -232,6 +232,10 @@ Use the smallest sufficient structure. Before creating any file/task/agent, ask:
232
232
  4. Can it be postponed safely?
233
233
  5. Is there a simpler path?
234
234
 
235
+ **Rule Budget (SCP-2026-10-30-004):** كل SCP يضيف قاعدة ⇒ يُدمج/يُحذف سطر مكافئ، أو يُسجَّل **تبرير صريح لاستثناء السلامة** — لا نمو صافي بلا سبب.
236
+
237
+ **Rule-of-Two (SCP-2026-10-30-004):** لا تُقنَّن قاعدة لسيناريو لم يتكرر **مرتين** موثقتين؛ المرة الأولى تُسجَّل كملاحظة لا كقاعدة.
238
+
235
239
  ---
236
240
 
237
241
  ## 11. Phase Discipline
@@ -474,6 +478,7 @@ Never accept based on sub-agent report alone. Review actual files, CLI effects,
474
478
  4. **الإغلاق قرار صريح:** عند الانتهاء قرّر وأغلق: `Accepted/Closed` أو `Escalated` أو `Needs Fix` مع سبب. **لا إبقاء مهمة مفتوحة «تحت التحسين» بلا قرار، ولا عمل إضافي بلا مبرر مسجّل.**
475
479
  5. **نظافة السجلات:** حدّث `PROJECT_ACTIVITY_LOG`/ملف المهمة **دفعةً عند نقاط القرار** (بداية/نهاية جولة/قرار/إغلاق) — لا عند كل خطوة صغيرة.
476
480
  6. **إبلاغ الإغلاق:** ثلاثة أسطر: ما سُلِّم · ما بقي (Follow-up) · سبب التوقف.
481
+ 7. **لا تُخفّض بوابات المرحلة:** قاعدة الإيقاف سقف جولات **داخل المهمة** — لا تُستخدم لتجاوز أو تخفيف بوابات Phase 7 (Security Gate · Operational Readiness) أو أي بوابة إلزامية.
477
482
 
478
483
  ### Secret Redaction
479
484
  Never write real secrets in any file. Use `[REDACTED]`.
@@ -500,6 +505,10 @@ Decisive STOP (SCP-2026-09-16-002): two possible readings and one is irreversibl
500
505
 
501
506
  Task Prioritization: Fix P0 blockers first. Prefer dependencies, risk reduction, and smaller safer tasks.
502
507
 
508
+ ### Parallel Window Guard (SCP-2026-10-30-004)
509
+
510
+ قبل أي كتابة/commit: `git fetch` → قارن `HEAD` بـ`origin/<default-branch>` → `git status --short`. ملفات أو commits **لا تملكها** = نافذة Tera أخرى ⇒ نسّق قبل الكتابة · تقاطع ⇒ **STOP** (لا جلب/دمج/استبدال فوق عمل غيرك). تحكم **Tera نفسها** — حوكمة الجلسات (`TERA_RUNTIME_TEMPLATES §2`) للفرعيين فقط.
511
+
503
512
  ---
504
513
 
505
514
  ## 15. Token and Context Rules
@@ -17,7 +17,7 @@
17
17
 
18
18
  استثناء محدود: `Monitor` يستطيع استدعاء `Auditor` فقط عندما يطلب Majed من Monitor مراجعة/تحدي عمل Tera بجودة مستقلة.
19
19
 
20
- > **المرجع المعياري (SCP-2026-09-04-001 — مُحدَّث SCP-2026-09-23-006 وSCP-2026-10-03-002):** العملاء الرسميون هم **26 عميلاً** بالأسماء الحديثة في `.opencode/agents/` (راجع `TeraSubAgents.md` §5). الأسماء القديمة (RequirementsScopeAgent, BusinessWorkflowAgent, DataDesignAgent, SolutionArchitectureAgent, UIUXStructureAgent, UIVisualDesignerAgent, QAAndAcceptanceAgent, EngineeringAgentTypeScript...) استُبدلت بأسمائها الفعلية أو انتقلت إلى **Preparation Roles** (أدوار تحضيرية يملكها application-blueprint).
20
+ > **المرجع المعياري (SCP-2026-09-04-001 — مُحدَّث SCP-2026-09-23-006 وSCP-2026-10-03-002 وSCP-2026-10-30-001):** العملاء الرسميون هم **27 عميلاً** بالأسماء الحديثة في `.opencode/agents/` (راجع `TeraSubAgents.md` §5). الأسماء القديمة (RequirementsScopeAgent, BusinessWorkflowAgent, DataDesignAgent, SolutionArchitectureAgent, UIUXStructureAgent, UIVisualDesignerAgent, QAAndAcceptanceAgent, EngineeringAgentTypeScript...) استُبدلت بأسمائها الفعلية أو انتقلت إلى **Preparation Roles** (أدوار تحضيرية يملكها application-blueprint).
21
21
 
22
22
  ---
23
23
 
@@ -41,7 +41,7 @@
41
41
 
42
42
  ## 2. مصفوفة التفعيل حسب العميل
43
43
 
44
- ### 2.1 العملاء الأساسيون (الـ 26 الرسميون)
44
+ ### 2.1 العملاء الأساسيون (الـ 27 الرسميون)
45
45
 
46
46
  | العميل | المعرف | Trigger التفعيل | المرحلة | متى لا يُفعّل | الحد الأدنى من المدخلات |
47
47
  |---|---|---|---|---|---|
@@ -28,7 +28,7 @@ including:
28
28
  - `design-reviewer.md`
29
29
  - `tera-software-designer.md`
30
30
 
31
- **نطاق فعلي (SCP-2026-10-03-007):** القائمة أعلاه **توضيحية لا حصرية** — **جميع** ملفات `.opencode/agents/` (حالياً **26** عميلاً) تمرّ عبر Conduct Gate، وقاعدة «المحتوى غير الموثوق» (§3 #7) تسري عليها كلها.
31
+ **نطاق فعلي (SCP-2026-10-03-007):** القائمة أعلاه **توضيحية لا حصرية** — **جميع** ملفات `.opencode/agents/` (حالياً **27** عميلاً) تمرّ عبر Conduct Gate، وقاعدة «المحتوى غير الموثوق» (§3 #7) تسري عليها كلها.
32
32
 
33
33
  ## 3. Immutable Rules
34
34
 
@@ -64,8 +64,8 @@ Release Package (ملفات Tera-managed + SHA256SUMS + TERA_RELEASE_MANIFEST.js
64
64
 
65
65
  | الحزمة | الاسم (npm) | الإصدار الحالي | الوصف | الملفات الموزعة ضمن الحزمة |
66
66
  |---|---|---|---|---|
67
- | core | `@tera-system/core` | 0.7.0 | OpenCode Plugin — core governance (27 agents, 40 commands, distribution tools, security team) | `agents/`, `commands/`, `core/`, `assets/`, `tools/`, `scripts/` |
68
- | pro | `@tera-system/pro` | 0.2.31 | Commercial edition — signed bundle + license gate + heartbeat | `scripts/`, `core/project-control`, `MANIFEST.json`, `opencode.tera.example.json`, `WELCOME.md`, `README.md` |
67
+ | core | `@tera-system/core` | 0.7.2 | OpenCode Plugin — core governance (27 agents, 40 commands, 13 profiles, distribution tools, security team) | `agents/`, `commands/`, `core/`, `assets/`, `tools/`, `scripts/` |
68
+ | pro | `@tera-system/pro` | 0.2.33 | Commercial edition — signed bundle + license gate + heartbeat | `scripts/`, `core/project-control`, `MANIFEST.json`, `opencode.tera.example.json`, `WELCOME.md`, `README.md` |
69
69
 
70
70
  **مستودع الحزم:** `https://github.com/Alabasi1980/Teranoo-System` — حزمتا npm + الـ bundle الموقّع (بناء ونشر فقط؛ لا محتوى يدوي).
71
71
  **المستودع الرسمي (`RepositoryUrl`):** `https://github.com/Alabasi1980/Teranoo-System-Core` — المصدر الوحيد المعتمد لـ `tera-fetch.ps1` و `tera-schedule.ps1` و `tera-update.ps1` (D1 — SCP-2026-09-23-002)
@@ -315,8 +315,10 @@ pwsh .\tools\update-client-repositories.ps1 -Version tera-v2.5.0 -Channel stable
315
315
  | *(npm)* core `0.6.0` / pro `0.2.29` | 2026-09-26 | stable | تقوية الحوكمة/التشغيل + بروتوكولات جديدة (SCP-2026-09-24-001..006) [Verified: npm view + bundle v0.2.29] |
316
316
  | *(npm)* core `0.6.2` / pro `0.2.30` | 2026-10-03 | stable | إصلاح release-blocker (trailing whitespace) — يتجاوز `0.6.1` المكسور (SCP-2026-10-03-001) [Verified: npm view] |
317
317
  | *(npm)* core `0.7.0` / pro `0.2.31` | 2026-10-03 | stable | تفعيل الدرع `security-agent` كعميل مستقل — 26 agents / 39 commands (SCP-2026-10-03-002) [Verified: npm view] |
318
+ | *(npm)* core `0.7.1` / pro `0.2.32` | 2026-10-25 | stable | Delivery Stop Rule + تحصين حوكمة — 26 agents / 39 commands / 12 profiles (SCP-2026-10-03-003/005/006/007 · GAP-027)؛ Tag `tera-v0.7.1` = `2670f45` [Verified: npm view + bundle v0.2.32] |
319
+ | *(npm)* core `0.7.2` / pro `0.2.33` | 2026-10-30 | stable | متخصص React Native — `engineering-agent-react-native` + `react-native-mobile` + `tera-orient-rn`؛ 27 agents / 40 commands / 13 profiles (SCP-2026-10-30-001 · GAP-028)؛ Tag `tera-v0.7.2` = `00eaa33`؛ bundle `0.2.33` = 253 ملفاً · `contentSha256=20f92dc5…` [Verified: npm view + teranoo.com bundle] |
318
320
 
319
- > **الحالة الحالية (2026-09-29):** آخر إصدار منشور = `@tera-system/core 0.6.0` + `@tera-system/pro 0.2.29` [Verified: `npm view`]؛ الـbundle المخدوم على `teranoo.com` = 0.2.29 (248 ملفاً) [Verified]. **آخر Git Tag على المصدر = `tera-v0.4.1` — وسم `tera-v0.5.0`/`tera-v0.6.0` مفقود (قرار معلّق؛ يمسّ قناة `tera-fetch`/`tera-update`).**
321
+ > **الحالة الحالية (2026-10-31):** آخر إصدار منشور = `@tera-system/core 0.7.2` + `@tera-system/pro 0.2.33` [Verified: `npm view`]؛ الـbundle المخدوم على `teranoo.com` = 0.2.33 (253 ملفاً) [Verified]؛ آخر Git Tag على المستودع الرسمي = `tera-v0.7.2` → `00eaa33` [Verified: `git ls-remote`].
320
322
 
321
323
  ---
322
324
 
@@ -78,6 +78,17 @@ node scripts/validate-governance.mjs
78
78
 
79
79
  - النتيجة: PASS / FAIL (مع القائمة). لا إغلاق بتقرير "PASS" بلا تشغيل فعلي.
80
80
 
81
+ ## 5.2 Self-Consistency Proof — بعد أي تعديل نظامي (SCP-2026-10-30-004)
82
+
83
+ المُدقّق يفحص **البنية**، لا **النصوص**. لذلك بعد كل تعديل نظامي أثبت الآتي يدوياً:
84
+
85
+ 1. **عدّاد العملاء موحّد نصياً** عبر: `AGENT_ACTIVATION_MATRIX` §2.1 (العنوان + المرجع) · `TeraSubAgents` §5 · `TERA_AGENT_CONDUCT` (نطاق فعلي) · `README` · `TERA_ACTIVE_CONTEXT`. (فحص: `grep -E "[0-9]+ عميل"` ومقارنته بعدد ملفات `.opencode/agents/`)
86
+ 2. **كل SCP مُشار إليه موجود** كملف في `project-control/archive/`.
87
+ 3. **كل ملف مُشار إليه موجود** (فحص المسارات المذكورة في التعديل).
88
+ 4. **لا قاعدة معرّفة في مكانين** — مصدر واحد + مؤشرات فقط (لا نص مكرر).
89
+
90
+ > **الحادثة المثبتة:** إضافة عميل React Native تركت ثلاثة مواضع تقول 26 ⇒ كُشف بالبند 1 (SCP-2026-10-30-003).
91
+
81
92
  ## 6. Validation Commands
82
93
 
83
94
  Recommended checks:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tera-system/core",
3
- "version": "0.7.2",
3
+ "version": "0.7.3",
4
4
  "description": "Tera System OpenCode Plugin — governance core, 27 agents, 40 commands, distribution tools (personal edition)",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "type": "module",