@tera-system/core 0.5.0 → 0.6.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.
Files changed (41) hide show
  1. package/MANIFEST.json +7 -7
  2. package/RELEASES.md +13 -0
  3. package/agents/application-blueprint.md +6 -6
  4. package/agents/auditor.md +19 -2
  5. package/agents/tera-client-engagement.md +6 -6
  6. package/agents/tera-system-evolution.md +1 -1
  7. package/agents/tera.md +2 -0
  8. package/commands/tera-approve.md +43 -34
  9. package/commands/tera-diagnose.md +2 -0
  10. package/commands/tera-gate.md +2 -0
  11. package/commands/tera-help.md +1 -0
  12. package/commands/tera-new-project.md +32 -35
  13. package/commands/tera-plan.md +2 -0
  14. package/commands/tera-reconcile.md +35 -0
  15. package/commands/tera-request-build.md +2 -0
  16. package/commands/tera-resume.md +2 -0
  17. package/commands/tera-review.md +2 -0
  18. package/commands/tera-status.md +2 -0
  19. package/core/tera-system/AGENT_ACTIVATION_MATRIX.md +10 -6
  20. package/core/tera-system/AGENT_DEPENDENCY_MAP.md +9 -7
  21. package/core/tera-system/AGENT_GENERATION_TEMPLATE.md +6 -5
  22. package/core/tera-system/AGENT_PERMISSION_MODEL.md +26 -9
  23. package/core/tera-system/TERA_AGENT_CONDUCT.md +17 -0
  24. package/core/tera-system/TERA_DISTRIBUTION_POLICY.md +1 -1
  25. package/core/tera-system/TeraPolicyMap.md +4 -2
  26. package/core/tera-system/TeraPreExecutionGate.md +34 -0
  27. package/core/tera-system/TeraPreparationDocumentationGovernance.md +21 -15
  28. package/core/tera-system/TeraSubAgents.md +2 -1
  29. package/core/tera-system/TeraSystemMaintenanceChecklist.md +12 -0
  30. package/core/tera-system/client-helpers/tera-client-engagement-gates.md +2 -2
  31. package/core/tera-system/client-helpers/tera-client-engagement-pricing.md +1 -1
  32. package/core/tera-system/client-helpers/tera-client-engagement-protocols.md +14 -9
  33. package/core/tera-system/engineering-helpers/database-privileges.md +63 -0
  34. package/core/tera-system/engineering-helpers/engineering-agent-core.md +11 -0
  35. package/core/tera-system/profiles/rust.md +1 -0
  36. package/core/tera-system/runtime/AGENT_SELF_ORIENTATION_PROTOCOL.md +1 -1
  37. package/core/tera-system/runtime/TERA_COMMAND_PROTOCOL.md +86 -0
  38. package/core/tera-system/runtime/TERA_RUNTIME_PROTOCOLS_CORE.md +14 -0
  39. package/core/tera-system/runtime/TERA_SOLUTION_PREPARATION_PROTOCOL.md +2 -2
  40. package/core/tera-system/runtime/TERA_SOLUTION_PREPARATION_TEMPLATES.md +9 -2
  41. package/package.json +2 -2
@@ -333,6 +333,20 @@ No task may become `Accepted` or `Closed` without:
333
333
 
334
334
  Use `TERA_RUNTIME_TEMPLATES_DELIVERY.md` Section 33 for the official template format.
335
335
 
336
+ ### 4.0.2 Staleness Sweep (SCP-2026-09-24-005)
337
+
338
+ At each project boundary — **Task Accepted · Phase boundary · Batch closure · Session handoff** — run a consistency sweep over the state files **that actually exist in this project** (لا تفترض مجموعة ثابتة):
339
+
340
+ ```text
341
+ Master Plan · Detailed Plan · Batch Plan · PROJECT_STATE · TASK_REGISTRY ·
342
+ TERA_ACTIVE_CONTEXT · PROJECT_ACTIVITY_LOG · TERA_AUDIT_TRAIL
343
+ ```
344
+
345
+ - الغرض: كشف الخطط المتقادمة، وضَياع Paired-Records، وتعارض الحالة **قبل** التفويض التالي.
346
+ - تكيّف مع ملفات المشروع الفعلية (داخلي/عميل، موجود/غائب). ملف غائب = `N/A` لا فشل.
347
+ - قراءة فقط افتراضياً؛ أي تصحيح = تغيير حوكمي عادي (Allowed Write Targets + مراجعة).
348
+ - يقرن مع Paired Records: حدّث `TERA_AUDIT_TRAIL` و`PROJECT_ACTIVITY_LOG` **معاً**.
349
+
336
350
  ### 4.1 Roadmap and Detailed Plan Tracking
337
351
 
338
352
  For medium and large projects, the following files are mandatory operational references:
@@ -124,7 +124,7 @@
124
124
  ### 4.1 Maker / Checker Model
125
125
 
126
126
  - **Maker:** عميل تحضير متخصص يكتب الملف.
127
- - **Checker:** عميل تحضير مختلف يراجع الاتساق.
127
+ - **Checker:** عميل تحضير **مختلف** يراجع الاتساق (Checker ≠ Maker) — الافتراضي: `auditor` في وضع `Preparation-Review` (كل دفعة، قراءة فقط — SCP-2026-09-24-006).
128
128
  - **Orchestrator:** مُهندس يخطط ويدير lifecycle.
129
129
 
130
130
  ### 4.2 Document States
@@ -136,7 +136,7 @@ Draft → Under Cross-Review → Module Baseline Approved → System Pending Int
136
136
  ### 4.3 Cross-Review Rules
137
137
 
138
138
  1. كل ملف تحضيري يمر بـ Cross-Review قبل `Module Baseline Approved`.
139
- 2. الـ Checker يجب أن يكون مختلفاً عن الـ Maker.
139
+ 2. الـ Checker يجب أن يكون مختلفاً عن الـ Maker. إن تعذّر → التصنيف `SELF_REVIEW` صراحةً (لا "Cross-Review") + تنازل مالك للمشاريع Tiny/Low-risk (راجع Governance §4.2/§9 — SCP-2026-09-24-004).
140
140
  3. الـ Checker يراجع: اتساق مع upstream، اكتمال، حالات الحافة، التبعيات.
141
141
  4. Issues → يعاد الملف إلى Draft مع توثيق findings.
142
142
  5. موافقة Checker → مُهندس يرفع الحالة.
@@ -386,8 +386,15 @@ Approval status: Pending / Approved
386
386
  | 11 | No unresolved High/Critical item | PASS / FAIL | |
387
387
  | 12 | No Low Confidence section | PASS / FAIL | |
388
388
  | 13 | No Pending Approval blocking Phase 5 | PASS / FAIL | |
389
- | 14 | Technology Profile confirmed | PASS / FAIL | |
390
- | 15 | Recommended implementation sequence exists | PASS / FAIL | |
389
+ | 14 | Technology Profile: `CONFIRMED` **أو** `EXPLICITLY_DEFERRED_TO_ENGINEERING_INTAKE` مع قرار حاجب مسجّل | PASS / FAIL | |
390
+ | 15 | Review Evidence مفصول: Self-Review / Independent Review / Cross-Document Reconciliation — كلٌّ بنتيجته (SCP-2026-09-24-004) | PASS / FAIL | |
391
+ | 16 | Recommended implementation sequence exists | PASS / FAIL | |
392
+
393
+ ## Review Evidence (مفصول — SCP-2026-09-24-004)
394
+ - Review Type: `SELF_REVIEW` / `INDEPENDENT_REVIEW` / `MIXED`
395
+ - Self Verification: PASS / FAIL
396
+ - Independent Preparation Review: PASS / NOT_REQUIRED / WAIVED (reason)
397
+ - Cross-Document Reconciliation: PASS / FAIL
391
398
 
392
399
  ## Gate Result
393
400
  **PASS / REVISION_REQUIRED / BLOCKED**
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tera-system/core",
3
- "version": "0.5.0",
4
- "description": "Tera System OpenCode Plugin — governance core, 25 agents, 37 commands, distribution tools (personal edition)",
3
+ "version": "0.6.0",
4
+ "description": "Tera System OpenCode Plugin — governance core, 25 agents, 38 commands, distribution tools (personal edition)",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "type": "module",
7
7
  "engines": {