@tera-system/core 0.2.20 → 0.3.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/MANIFEST.json +5 -5
- package/RELEASES.md +14 -0
- package/agents/auditor.md +17 -0
- package/agents/design-reviewer.md +12 -3
- package/agents/tera.md +48 -76
- package/agents/ui-designer.md +31 -0
- package/core/tera-system/AGENT_ACTIVATION_MATRIX.md +2 -0
- package/core/tera-system/AGENT_DEPENDENCY_MAP.md +4 -4
- package/core/tera-system/TOOLING_AND_MCP_POLICY.md +81 -1
- package/core/tera-system/TeraArchitectureMap.md +3 -0
- package/core/tera-system/TeraCapabilityMap.md +1 -1
- package/core/tera-system/TeraPolicyMap.md +3 -1
- package/core/tera-system/image-generation/ASSET_POLICY.md +149 -0
- package/core/tera-system/image-generation/IMAGE_TOOL_CONTRACT.md +341 -0
- package/core/tera-system/profiles/node-ts-coolify-postgres.md +93 -0
- package/core/tera-system/runtime/TERA_RUNTIME_PROTOCOLS.md +1 -1
- package/core/tera-system/runtime/TERA_RUNTIME_TEMPLATES.md +5 -4
- package/core/tera-system/runtime/TERA_RUNTIME_TEMPLATES_DELIVERY.md +59 -0
- package/core/tera-system/semgrep-rules/tera-security.yml +119 -10
- package/package.json +2 -2
|
@@ -154,6 +154,8 @@ The generated file is saved to `project-control/EXECUTION_BATCH_PLAN.md`.
|
|
|
154
154
|
| TASK-COD-002 | [e.g. Init ORM + DB] | EngineeringAgent | `prisma/schema.prisma`, `.env.example` | PASS |
|
|
155
155
|
| ... | ... | ... | ... | ... |
|
|
156
156
|
|
|
157
|
+
> **قاعدة قياسية لكل مهمة (GAP-013):** إن احتاج الوكيل أداة خارج صلاحياته → توقف + اطلبها من Tera — لا يُكمل بأدلة ناقصة صامتة، ولا يرحّل الفجوة للمالك. (راجع `TERA_RUNTIME_TEMPLATES.md` §2 — Tool Escalation)
|
|
158
|
+
|
|
157
159
|
## 3. Not Included (Deferred to Later Batches)
|
|
158
160
|
|
|
159
161
|
| Item | Reason | Expected Batch |
|
|
@@ -585,3 +587,60 @@ clients/CLIENT-[client-name-or-id]/applications/APP-[app-name-or-id]/delivery/CL
|
|
|
585
587
|
- سجّل نتيجة الاختبار (تاريخ، نجاح/فشل) في وثائق التسليم.
|
|
586
588
|
|
|
587
589
|
---
|
|
590
|
+
|
|
591
|
+
## 39. TERA Audit Trail Entry Template (moved from tera.md §26 — SCP-2026-09-16-004)
|
|
592
|
+
|
|
593
|
+
Operational core stays in `tera.md` §26 (file, sole owner, when in brief, minimum fields, closure gate). This section holds the full record-once reference: event list + entry structure + evidence guidance.
|
|
594
|
+
|
|
595
|
+
### 39.1 When to Record (substantive events only)
|
|
596
|
+
|
|
597
|
+
Record an entry only at these events:
|
|
598
|
+
1. Phase start
|
|
599
|
+
2. Phase end
|
|
600
|
+
3. Gate PASS / FAIL
|
|
601
|
+
4. Execution Plan / Batch Plan created or approved
|
|
602
|
+
5. `TASK-COD-*` created
|
|
603
|
+
6. Task delegated to an agent
|
|
604
|
+
7. Handback received from an agent
|
|
605
|
+
8. Handback rejected / rework requested
|
|
606
|
+
9. QA / Auditor / Reviewer invoked
|
|
607
|
+
10. QA / Audit / Review result that affects a decision
|
|
608
|
+
11. Owner decision or clarification that affects execution
|
|
609
|
+
12. Open Item status change
|
|
610
|
+
13. Scope Change Request
|
|
611
|
+
14. Governance violation discovered
|
|
612
|
+
15. Dependency or batch-order change
|
|
613
|
+
16. TASK closed
|
|
614
|
+
17. Batch accepted or rejected
|
|
615
|
+
18. Phase 5 → 6 transition
|
|
616
|
+
19. Phase 6 → 7 transition
|
|
617
|
+
20. Final delivery / closure
|
|
618
|
+
|
|
619
|
+
Do **NOT** record: every file read, grep, shell command, internal message, minor failed attempt, small bug fix, or line edit. Record only events with value for governance, delegation, decision-making, quality, traceability, phase control, scope control, or accountability.
|
|
620
|
+
|
|
621
|
+
### 39.2 Entry Structure
|
|
622
|
+
|
|
623
|
+
Fields (not all mandatory for every event):
|
|
624
|
+
- Audit ID (`AUD-0001`, `AUD-0002`, … — sequential, zero-padded, one format only)
|
|
625
|
+
- Timestamp
|
|
626
|
+
- Phase
|
|
627
|
+
- Event Type
|
|
628
|
+
- Actor
|
|
629
|
+
- Target
|
|
630
|
+
- Related Task / Batch
|
|
631
|
+
- Source of Truth
|
|
632
|
+
- Action Taken
|
|
633
|
+
- Decision
|
|
634
|
+
- Reason
|
|
635
|
+
- Evidence
|
|
636
|
+
- Gate Result
|
|
637
|
+
- Owner Approval Required
|
|
638
|
+
- Owner Approval Status
|
|
639
|
+
- Next Step
|
|
640
|
+
|
|
641
|
+
**Mandatory minimum per entry:** Audit ID, Timestamp, Phase, Event Type, Actor, Action Taken, Evidence (or Reference), Next Step. Never write an entry without these.
|
|
642
|
+
|
|
643
|
+
### 39.3 Evidence
|
|
644
|
+
|
|
645
|
+
Point to real evidence wherever possible — never just "done successfully":
|
|
646
|
+
- file path, `TASK-ID`, `Batch-ID`, commit SHA, QA report, handback file, decision-log entry, gate-result file.
|
|
@@ -1,13 +1,52 @@
|
|
|
1
1
|
rules:
|
|
2
|
-
- id: tera-no-hardcoded-secrets
|
|
2
|
+
- id: tera-no-hardcoded-secrets-csharp
|
|
3
3
|
message: >
|
|
4
4
|
SECURITY [QG-SEC-001]: لا تخزن مفاتيح أو ConnectionStrings أو Secrets في الكود.
|
|
5
5
|
استخدم User Secrets / Environment Variables / Azure Key Vault / أي آلية آمنة معتمدة.
|
|
6
6
|
severity: ERROR
|
|
7
7
|
languages:
|
|
8
8
|
- csharp
|
|
9
|
+
patterns:
|
|
10
|
+
- pattern: |
|
|
11
|
+
$VAR = "..."
|
|
12
|
+
- metavariable-regex:
|
|
13
|
+
metavariable: $VAR
|
|
14
|
+
regex: (?i).*(password|secret|connection.?string|api.?key|apikey|passwd|pwd|credential).*
|
|
15
|
+
|
|
16
|
+
- id: tera-no-hardcoded-secrets-javascript
|
|
17
|
+
message: >
|
|
18
|
+
SECURITY [QG-SEC-001]: لا تخزن مفاتيح أو ConnectionStrings أو Secrets في الكود.
|
|
19
|
+
استخدم User Secrets / Environment Variables / Azure Key Vault / أي آلية آمنة معتمدة.
|
|
20
|
+
severity: ERROR
|
|
21
|
+
languages:
|
|
9
22
|
- javascript
|
|
23
|
+
patterns:
|
|
24
|
+
- pattern: |
|
|
25
|
+
$VAR = "..."
|
|
26
|
+
- metavariable-regex:
|
|
27
|
+
metavariable: $VAR
|
|
28
|
+
regex: (?i).*(password|secret|connection.?string|api.?key|apikey|passwd|pwd|credential).*
|
|
29
|
+
|
|
30
|
+
- id: tera-no-hardcoded-secrets-typescript
|
|
31
|
+
message: >
|
|
32
|
+
SECURITY [QG-SEC-001]: لا تخزن مفاتيح أو ConnectionStrings أو Secrets في الكود.
|
|
33
|
+
استخدم User Secrets / Environment Variables / Azure Key Vault / أي آلية آمنة معتمدة.
|
|
34
|
+
severity: ERROR
|
|
35
|
+
languages:
|
|
10
36
|
- typescript
|
|
37
|
+
patterns:
|
|
38
|
+
- pattern: |
|
|
39
|
+
$VAR = "..."
|
|
40
|
+
- metavariable-regex:
|
|
41
|
+
metavariable: $VAR
|
|
42
|
+
regex: (?i).*(password|secret|connection.?string|api.?key|apikey|passwd|pwd|credential).*
|
|
43
|
+
|
|
44
|
+
- id: tera-no-hardcoded-secrets-python
|
|
45
|
+
message: >
|
|
46
|
+
SECURITY [QG-SEC-001]: لا تخزن مفاتيح أو ConnectionStrings أو Secrets في الكود.
|
|
47
|
+
استخدم User Secrets / Environment Variables / Azure Key Vault / أي آلية آمنة معتمدة.
|
|
48
|
+
severity: ERROR
|
|
49
|
+
languages:
|
|
11
50
|
- python
|
|
12
51
|
patterns:
|
|
13
52
|
- pattern: |
|
|
@@ -16,6 +55,23 @@ rules:
|
|
|
16
55
|
metavariable: $VAR
|
|
17
56
|
regex: (?i).*(password|secret|connection.?string|api.?key|apikey|passwd|pwd|credential).*
|
|
18
57
|
|
|
58
|
+
- id: tera-no-hardcoded-secrets-kotlin
|
|
59
|
+
message: >
|
|
60
|
+
SECURITY [QG-SEC-001]: لا تخزن مفاتيح أو ConnectionStrings أو Secrets في الكود.
|
|
61
|
+
استخدم User Secrets / Environment Variables / Azure Key Vault / أي آلية آمنة معتمدة.
|
|
62
|
+
severity: ERROR
|
|
63
|
+
languages:
|
|
64
|
+
- kotlin
|
|
65
|
+
patterns:
|
|
66
|
+
- pattern-either:
|
|
67
|
+
- pattern: |
|
|
68
|
+
val $VAR = "..."
|
|
69
|
+
- pattern: |
|
|
70
|
+
var $VAR = "..."
|
|
71
|
+
- metavariable-regex:
|
|
72
|
+
metavariable: $VAR
|
|
73
|
+
regex: (?i).*(password|secret|connection.?string|api.?key|apikey|passwd|pwd|credential).*
|
|
74
|
+
|
|
19
75
|
- id: tera-no-eval
|
|
20
76
|
pattern: eval(...)
|
|
21
77
|
message: >
|
|
@@ -44,23 +100,76 @@ rules:
|
|
|
44
100
|
metavariable: $VAR
|
|
45
101
|
regex: (?i).*
|
|
46
102
|
|
|
47
|
-
- id: tera-exposed-credentials
|
|
103
|
+
- id: tera-exposed-credentials-csharp
|
|
48
104
|
message: >
|
|
49
105
|
SECURITY [QG-SEC-001]: لا تخزن مفاتيح أو توكنز أو API Keys بشكل صريح في الكود.
|
|
50
106
|
severity: ERROR
|
|
51
107
|
languages:
|
|
52
108
|
- csharp
|
|
109
|
+
patterns:
|
|
110
|
+
- pattern: $VAR = $VAL
|
|
111
|
+
- metavariable-regex:
|
|
112
|
+
metavariable: $VAL
|
|
113
|
+
regex: ^"(sk-|ghp_|AKIA|=).*"
|
|
114
|
+
|
|
115
|
+
- id: tera-exposed-credentials-javascript
|
|
116
|
+
message: >
|
|
117
|
+
SECURITY [QG-SEC-001]: لا تخزن مفاتيح أو توكنز أو API Keys بشكل صريح في الكود.
|
|
118
|
+
severity: ERROR
|
|
119
|
+
languages:
|
|
53
120
|
- javascript
|
|
121
|
+
patterns:
|
|
122
|
+
- pattern: $VAR = $VAL
|
|
123
|
+
- metavariable-regex:
|
|
124
|
+
metavariable: $VAL
|
|
125
|
+
regex: ^"(sk-|ghp_|AKIA|=).*"
|
|
126
|
+
|
|
127
|
+
- id: tera-exposed-credentials-typescript
|
|
128
|
+
message: >
|
|
129
|
+
SECURITY [QG-SEC-001]: لا تخزن مفاتيح أو توكنز أو API Keys بشكل صريح في الكود.
|
|
130
|
+
severity: ERROR
|
|
131
|
+
languages:
|
|
54
132
|
- typescript
|
|
133
|
+
patterns:
|
|
134
|
+
- pattern: $VAR = $VAL
|
|
135
|
+
- metavariable-regex:
|
|
136
|
+
metavariable: $VAL
|
|
137
|
+
regex: ^"(sk-|ghp_|AKIA|=).*"
|
|
138
|
+
|
|
139
|
+
- id: tera-exposed-credentials-python
|
|
140
|
+
message: >
|
|
141
|
+
SECURITY [QG-SEC-001]: لا تخزن مفاتيح أو توكنز أو API Keys بشكل صريح في الكود.
|
|
142
|
+
severity: ERROR
|
|
143
|
+
languages:
|
|
55
144
|
- python
|
|
145
|
+
patterns:
|
|
146
|
+
- pattern: $VAR = $VAL
|
|
147
|
+
- metavariable-regex:
|
|
148
|
+
metavariable: $VAL
|
|
149
|
+
regex: ^"(sk-|ghp_|AKIA|=).*"
|
|
150
|
+
|
|
151
|
+
- id: tera-exposed-credentials-java
|
|
152
|
+
message: >
|
|
153
|
+
SECURITY [QG-SEC-001]: لا تخزن مفاتيح أو توكنز أو API Keys بشكل صريح في الكود.
|
|
154
|
+
severity: ERROR
|
|
155
|
+
languages:
|
|
56
156
|
- java
|
|
157
|
+
patterns:
|
|
158
|
+
- pattern: $VAR = $VAL
|
|
159
|
+
- metavariable-regex:
|
|
160
|
+
metavariable: $VAL
|
|
161
|
+
regex: ^"(sk-|ghp_|AKIA|=).*"
|
|
162
|
+
|
|
163
|
+
- id: tera-exposed-credentials-kotlin
|
|
164
|
+
message: >
|
|
165
|
+
SECURITY [QG-SEC-001]: لا تخزن مفاتيح أو توكنز أو API Keys بشكل صريح في الكود.
|
|
166
|
+
severity: ERROR
|
|
167
|
+
languages:
|
|
168
|
+
- kotlin
|
|
57
169
|
patterns:
|
|
58
170
|
- pattern-either:
|
|
59
|
-
- pattern:
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
$VAR = "ghp_..."
|
|
65
|
-
- pattern: |
|
|
66
|
-
$VAR = "AKIA..."
|
|
171
|
+
- pattern: val $VAR = $VAL
|
|
172
|
+
- pattern: var $VAR = $VAL
|
|
173
|
+
- metavariable-regex:
|
|
174
|
+
metavariable: $VAL
|
|
175
|
+
regex: ^"(sk-|ghp_|AKIA|=).*"
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tera-system/core",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "Tera System OpenCode Plugin
|
|
3
|
+
"version": "0.3.0",
|
|
4
|
+
"description": "Tera System OpenCode Plugin — governance core, 23 agents, 11 commands, distribution tools (personal edition)",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"engines": {
|