truthmark 2.2.2 → 2.2.5
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/README.md +83 -682
- package/dist/main.js +524 -754
- package/dist/main.js.map +1 -1
- package/docs/README.md +119 -0
- package/docs/readmes/README.ar.md +225 -0
- package/docs/readmes/README.de.md +225 -0
- package/docs/readmes/README.el.md +225 -0
- package/docs/readmes/README.es.md +225 -0
- package/docs/readmes/README.fr.md +225 -0
- package/docs/readmes/README.id.md +225 -0
- package/docs/readmes/README.it.md +225 -0
- package/docs/readmes/README.ja.md +225 -0
- package/docs/readmes/README.ko.md +225 -0
- package/docs/readmes/README.pl.md +225 -0
- package/docs/readmes/README.pt.md +225 -0
- package/docs/readmes/README.ru.md +225 -0
- package/docs/readmes/README.tr.md +225 -0
- package/docs/readmes/README.vi.md +225 -0
- package/docs/readmes/README.zh.md +225 -0
- package/package.json +20 -3
- package/README.de.md +0 -824
- package/README.es.md +0 -824
- package/README.ru.md +0 -824
- package/README.zh.md +0 -824
package/docs/README.md
ADDED
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
---
|
|
2
|
+
status: active
|
|
3
|
+
doc_type: index
|
|
4
|
+
last_reviewed: 2026-06-20
|
|
5
|
+
source_of_truth:
|
|
6
|
+
- docs/ai/repo-rules.md
|
|
7
|
+
- ../.truthmark/config.yml
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# Truthmark Docs Index
|
|
11
|
+
|
|
12
|
+
## Purpose
|
|
13
|
+
|
|
14
|
+
`docs/` is Truthmark's canonical repository documentation tree. It keeps repository-wide agent rules, reusable standards, current architecture, and current lane-separated truth docs separate from onboarding copy and historical planning notes.
|
|
15
|
+
|
|
16
|
+
`AGENTS.md` is the agent entry point, but it delegates repository-wide rules to [docs/ai/repo-rules.md](ai/repo-rules.md). [README.md](../README.md) remains the human onboarding and product entry point. [docs/user-guide.md](user-guide.md) owns detailed human-facing command, workflow, and configuration guidance. `.truthmark/config.yml` defines the committed hierarchy contract.
|
|
17
|
+
|
|
18
|
+
## Scope
|
|
19
|
+
|
|
20
|
+
This doc defines the current structure, navigation map, and maintenance expectations of Truthmark's canonical `docs/` tree.
|
|
21
|
+
|
|
22
|
+
## Authority Source
|
|
23
|
+
|
|
24
|
+
Repository-wide conflict order and completion policy live in [docs/ai/repo-rules.md](ai/repo-rules.md). Use this index for navigation and document-class guidance; it does not restate the full authority hierarchy.
|
|
25
|
+
|
|
26
|
+
[README.md](../README.md) may help with onboarding and positioning, but it must not override current-state docs or repository-wide agent rules.
|
|
27
|
+
|
|
28
|
+
## Audience Split
|
|
29
|
+
|
|
30
|
+
### Agent-centric docs
|
|
31
|
+
|
|
32
|
+
- `docs/ai/` for repository rules and agent onboarding
|
|
33
|
+
- `docs/truthmark/routes/` for routing metadata
|
|
34
|
+
- `docs/standards/` for reusable constraints and completion rules
|
|
35
|
+
- `docs/truthmark/product/` for product capability promises, boundaries, and acceptance criteria
|
|
36
|
+
- `docs/truthmark/engineering/` for current implementation behavior, architecture, contracts, workflows, and operations
|
|
37
|
+
- `docs/architecture/` for repository-specific architecture guardrails
|
|
38
|
+
- `docs/truthmark/templates/` for editable scaffold templates used to create new docs
|
|
39
|
+
- `docs/truthmark/engineering/contracts/` for stable contracts the CLI exposes
|
|
40
|
+
|
|
41
|
+
### Human-centric docs
|
|
42
|
+
|
|
43
|
+
- [README.md](../README.md) for onboarding and positioning
|
|
44
|
+
- [docs/user-guide.md](user-guide.md) for detailed usage, command, workflow, configuration, routing, Portal, and example guidance
|
|
45
|
+
|
|
46
|
+
## Directory Map
|
|
47
|
+
|
|
48
|
+
| Path | Type | Primary audience | Purpose |
|
|
49
|
+
| --- | --- | --- | --- |
|
|
50
|
+
| `docs/ai/` | agent rules | agent | Repository-wide rules and fast onboarding |
|
|
51
|
+
| `docs/truthmark/routes/` | routing | both | Truth-routing metadata such as `areas.md` and `areas/**/*.md` |
|
|
52
|
+
| `docs/standards/` | standard | agent | Reusable constraints, verification rules, completion gates |
|
|
53
|
+
| `docs/truthmark/product/` | product truth | agent | Product capability promises, boundaries, decisions, and acceptance criteria |
|
|
54
|
+
| `docs/truthmark/engineering/` | engineering truth | agent | Current implementation behavior for init, check, contracts, workflows, and operations |
|
|
55
|
+
| `docs/architecture/` | architecture | agent | Repository-specific architecture guardrails |
|
|
56
|
+
| `docs/truthmark/templates/` | template | both | Editable templates for scaffolded docs; templates are not Truth Sync targets |
|
|
57
|
+
| `docs/user-guide.md` | guide | human | Detailed usage guide kept out of the root README so onboarding stays concise |
|
|
58
|
+
|
|
59
|
+
## Frontmatter Policy
|
|
60
|
+
|
|
61
|
+
Canonical docs should include frontmatter and keep these fields current:
|
|
62
|
+
|
|
63
|
+
- `status`
|
|
64
|
+
- `doc_type`
|
|
65
|
+
- `last_reviewed`
|
|
66
|
+
- `source_of_truth`
|
|
67
|
+
|
|
68
|
+
## Update Rules
|
|
69
|
+
|
|
70
|
+
- When repository-wide agent policy changes, update [docs/ai/repo-rules.md](ai/repo-rules.md).
|
|
71
|
+
- When code-to-doc routing changes, update [docs/truthmark/routes/areas.md](truthmark/routes/areas.md) in the same change.
|
|
72
|
+
- When package versions or release/version policy change, apply [docs/standards/versioning.md](standards/versioning.md) before accepting the version.
|
|
73
|
+
- When PR or release source text is needed, write a `changes/` note using [docs/standards/change-notes.md](standards/change-notes.md).
|
|
74
|
+
- When `truthmark init` or scaffolded files change, update the relevant truth or architecture doc, not only [README.md](../README.md).
|
|
75
|
+
- When `truthmark check` changes what it validates or how it reports diagnostics, update both the current truth doc and the contract doc.
|
|
76
|
+
- When major product, onboarding, install, command, positioning, or workflow behavior changes, review the root [README.md](../README.md) and update it if the human entry point would otherwise be stale.
|
|
77
|
+
- Keep planning or proposal material outside the canonical current-state docs until it becomes implemented truth.
|
|
78
|
+
- When current behavior changes for architecture, contracts, or lane-separated truth docs, update the owning canonical doc's `Product Decisions` and `Rationale` sections in the same change.
|
|
79
|
+
- Do not keep parallel documentation trees for the same subject.
|
|
80
|
+
|
|
81
|
+
## Important Truthmark-Specific Caveat
|
|
82
|
+
|
|
83
|
+
New repositories should run `truthmark config` before `truthmark init` so teams can review the committed hierarchy contract before workflow surfaces are installed. The current scaffold writes a root route index plus one child route file under the configured routing root.
|
|
84
|
+
|
|
85
|
+
## Recommended Reading Order
|
|
86
|
+
|
|
87
|
+
### For humans
|
|
88
|
+
|
|
89
|
+
1. [README.md](../README.md)
|
|
90
|
+
2. [docs/user-guide.md](user-guide.md), when command or workflow detail is needed
|
|
91
|
+
3. [.truthmark/config.yml](../.truthmark/config.yml)
|
|
92
|
+
4. [docs/ai/repo-rules.md](ai/repo-rules.md)
|
|
93
|
+
5. [docs/truthmark/engineering/architecture/overview.md](truthmark/engineering/architecture/overview.md)
|
|
94
|
+
6. the relevant product, engineering, or standard doc for the area being changed
|
|
95
|
+
|
|
96
|
+
### For agents
|
|
97
|
+
|
|
98
|
+
1. [docs/ai/repo-rules.md](ai/repo-rules.md)
|
|
99
|
+
2. [docs/ai/agent-onboarding.md](ai/agent-onboarding.md), when routing is unclear or cross-area
|
|
100
|
+
3. [docs/truthmark/routes/areas.md](truthmark/routes/areas.md), when mapping code to canonical truth
|
|
101
|
+
4. [docs/truthmark/engineering/architecture/overview.md](truthmark/engineering/architecture/overview.md), when changing module boundaries
|
|
102
|
+
5. the relevant standard, product truth, and engineering truth docs for the task
|
|
103
|
+
|
|
104
|
+
Use the route files under [docs/truthmark/routes/](truthmark/routes/) when designing areas for larger API, frontend, infrastructure, or monorepo repositories.
|
|
105
|
+
|
|
106
|
+
## Maintenance Principle
|
|
107
|
+
|
|
108
|
+
The canonical tree should stay small, explicit, and current. Historical notes are useful for traceability, but current behavior belongs in the nearest maintained document class, not in old plans or chat summaries.
|
|
109
|
+
|
|
110
|
+
## Product Decisions
|
|
111
|
+
|
|
112
|
+
- Decision (2026-05-15): The docs index owns navigation and document-class guidance for the canonical tree, while [docs/ai/repo-rules.md](ai/repo-rules.md) owns repository-wide authority order and completion policy.
|
|
113
|
+
- Decision (2026-06-20): The root README is the concise human storefront. Detailed human-facing command, workflow, configuration, routing, Portal, and example material belongs in [docs/user-guide.md](user-guide.md).
|
|
114
|
+
|
|
115
|
+
## Rationale
|
|
116
|
+
|
|
117
|
+
Keeping the docs index focused on navigation avoids loading duplicated authority prose while still giving agents and maintainers one stable place to resolve where current truth should live before they edit deeper canonical docs.
|
|
118
|
+
|
|
119
|
+
Keeping the root README concise reduces evaluator friction while preserving detailed operational guidance in a linked guide.
|
|
@@ -0,0 +1,225 @@
|
|
|
1
|
+
# Truthmark
|
|
2
|
+
|
|
3
|
+
**وكلاؤك يكتبون الكود. يحافظ Truthmark على توثيق موجّه للبشر وقابل للمراجعة عبر Git.**
|
|
4
|
+
|
|
5
|
+
[🇺🇸 English](../../README.md) | [🇨🇳 简体中文](README.zh.md) | [🇯🇵 日本語](README.ja.md) | [🇰🇷 한국어](README.ko.md) | [🇩🇪 Deutsch](README.de.md) | [🇫🇷 Français](README.fr.md) | [🇪🇸 Español](README.es.md) | [🇧🇷 Português](README.pt.md) | [🇷🇺 Русский](README.ru.md) | [🇸🇦 العربية](README.ar.md) | [🇮🇹 Italiano](README.it.md) | [🇵🇱 Polski](README.pl.md) | [🇹🇷 Türkçe](README.tr.md) | [🇻🇳 Tiếng Việt](README.vi.md) | [🇮🇩 Bahasa Indonesia](README.id.md) | [🇬🇷 Ελληνικά](README.el.md)
|
|
6
|
+
|
|
7
|
+

|
|
8
|
+
|
|
9
|
+
## 🚀 البدء السريع: التشغيل محلياً خلال خمس دقائق
|
|
10
|
+
|
|
11
|
+
شغّل هذا داخل مستودع Git الذي تريد أن يديره Truthmark:
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
cd /path/to/your-repo
|
|
15
|
+
npm install -g truthmark
|
|
16
|
+
truthmark config
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
فعّل مضيف الذكاء الاصطناعي الذي تستخدمه فعلياً. تكون الإعدادات الجديدة محايدة تجاه المضيف، لذلك أضف قائمة `platforms` في المستوى الأعلى إلى `.truthmark/config.yml` قبل التهيئة:
|
|
20
|
+
|
|
21
|
+
```yaml
|
|
22
|
+
version: 2
|
|
23
|
+
platforms:
|
|
24
|
+
- codex # or: claude-code, github-copilot, opencode, antigravity, cursor
|
|
25
|
+
truthmark:
|
|
26
|
+
workspace: docs/truthmark
|
|
27
|
+
generated:
|
|
28
|
+
portal:
|
|
29
|
+
enabled: false
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
ثم ثبّت توثيق الحقيقة المحلي للمستودع، والتوجيه، وأسطح سير عمل الوكلاء:
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
truthmark init
|
|
36
|
+
truthmark check
|
|
37
|
+
git diff
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
جرّب الآن مسار الاعتماد الأكثر شيوعاً: توثيق سلوك موجود من الكود والاختبارات. في مضيف البرمجة بالذكاء الاصطناعي، اطلب من سير العمل المثبّت:
|
|
41
|
+
|
|
42
|
+
```text
|
|
43
|
+
/truthmark-document document the implemented session timeout behavior across src/auth/session.ts and tests/auth/session.test.ts
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
بعد ذلك، لا ينبغي للمستخدمين عادةً استدعاء Truth Sync مباشرة. واصل البرمجة عبر مضيف الذكاء الاصطناعي؛ فتعليمات المستودع المثبّتة تطلب من الوكيل تشغيل الاختبارات ذات الصلة وتنفيذ مراجعة Truth Sync قبل التسليم عندما تتغير الشيفرة الوظيفية. أنت تراجع فرق الكود الناتج مع فرق توثيق الحقيقة.
|
|
47
|
+
|
|
48
|
+
إذا كنت تريد فقط التحقق عبر CLI ولا تريد بعدُ مسارات عمل ذكاء اصطناعي خاصة بمضيف، فاترك `platforms` محذوفة وشغّل `truthmark init && truthmark check`؛ يمكنك إضافة منصة لاحقاً وإعادة تشغيل `truthmark init`.
|
|
49
|
+
|
|
50
|
+
## 💡 المشكلة: فجوة توثيق الذكاء الاصطناعي
|
|
51
|
+
|
|
52
|
+
وكلاء البرمجة بالذكاء الاصطناعي مذهلون في كتابة الكود بسرعة. لكن هذه السرعة تخلق نمط فشل جديداً وخطيراً: **قصة المستودع تنحرف عن الواقع.**
|
|
53
|
+
|
|
54
|
+
* يضيع السلوك داخل سجلات محادثة عابرة.
|
|
55
|
+
* تتأخر وثائق المعمارية بسرعة.
|
|
56
|
+
* تختفي قرارات المنتج بعد التسليم.
|
|
57
|
+
* يُترك مراجعو الكود لفحص فروق كود خام من دون فهم "السبب".
|
|
58
|
+
* تُجبر كل جلسة ذكاء اصطناعي جديدة على إعادة اكتشاف حقيقة مستودعك من الصفر.
|
|
59
|
+
|
|
60
|
+
## 🎯 الحل: Truthmark
|
|
61
|
+
|
|
62
|
+
يثبّت **Truthmark** طبقة سير عمل أصلية لـ Git داخل مستودعك. وهو يعالج الجزء الذي يتعطل عادةً في تطوير الذكاء الاصطناعي: مساعدة التوثيق على البقاء متوافقاً مع الكود.
|
|
63
|
+
|
|
64
|
+
بدلاً من الأمل في أن يتذكر البشر ووكلاء الذكاء الاصطناعي تحديث الوثائق، يجعل Truthmark التوثيق عادةً منهجية قابلة للمراجعة داخل مستودعك مباشرةً.
|
|
65
|
+
|
|
66
|
+
### ✨ لماذا يتميّز Truthmark
|
|
67
|
+
|
|
68
|
+
Truthmark ليس مجرد أداة توثيق أخرى. إنه مدمج بعمق في سير عمل الذكاء الاصطناعي:
|
|
69
|
+
|
|
70
|
+
* **🚫 بلا ارتباط بمورّد واحد:** لا خدمات مستضافة، ولا قواعد بيانات مخفية، ولا خوادم إضافية للتشغيل.
|
|
71
|
+
* **🌳 أصلي 100% لـ Git:** كل شيء يعيش في مستودعك. تنتقل الحقيقة مع فرعك.
|
|
72
|
+
* **🤝 عقد يملكه البشر ويتبعه الوكلاء:** الصائنون يملكون عقد المستودع؛ والوكلاء يتبعون التعليمات المثبّتة أثناء البرمجة.
|
|
73
|
+
* **✅ الثقة عبر التحقق:** يصبح عمل الذكاء الاصطناعي أسهل للثقة لأن العمل الذي يغيّر السلوك يتضمن قراراً أو فرقاً في توثيق الحقيقة يمكن للبشر مراجعته.
|
|
74
|
+
|
|
75
|
+
## 🔄 كيف يعمل
|
|
76
|
+
|
|
77
|
+
عندما يعدّل وكيل ذكاء اصطناعي كودك، لا تكون المهمة قد انتهت. يثبّت Truthmark حاجز سير عمل عند وقت الإنهاء يتبعه الوكلاء قبل التسليم:
|
|
78
|
+
|
|
79
|
+
1. 💻 **الكود:** يغيّر الوكيل الكود الوظيفي.
|
|
80
|
+
2. 🧪 **الاختبار:** تُشغّل الاختبارات ذات الصلة.
|
|
81
|
+
3. 🔍 **التحقق:** يتحقق Truthmark من التوثيق المربوط كجزء من مراجعة وقت الإنهاء المثبّتة.
|
|
82
|
+
4. 📝 **التوثيق:** يحدّث الوكيل الوثائق عندما تتغير حقيقة المستودع.
|
|
83
|
+
5. 👀 **المراجعة:** يراجع إنسان *فرق الكود* + *فرق الحقيقة*.
|
|
84
|
+
|
|
85
|
+
## 🛠 كيف تتفاعل مع Truthmark
|
|
86
|
+
|
|
87
|
+
لدى Truthmark عقد واحد محلي داخل المستودع، وطريقتان لاستخدامه.
|
|
88
|
+
|
|
89
|
+
### البشر يثبّتون العقد ويتحققون منه
|
|
90
|
+
|
|
91
|
+
يستخدم الصائنون وCI واجهة CLI:
|
|
92
|
+
|
|
93
|
+
* `truthmark config` - إنشاء الإعدادات الأولية.
|
|
94
|
+
* `truthmark init` - تثبيت أو تحديث التوجيه، وقوالب وثائق الحقيقة، وتعليمات مضيف الذكاء الاصطناعي.
|
|
95
|
+
* `truthmark check` - التحقق من حقيقة المستودع من الطرفية.
|
|
96
|
+
|
|
97
|
+
### الوكلاء يتبعون العقد أثناء البرمجة
|
|
98
|
+
|
|
99
|
+
يثبّت Truthmark تعليمات محلية في المستودع لمضيفي البرمجة بالذكاء الاصطناعي المدعومين مثل Codex وClaude Code وGitHub Copilot وOpenCode وAntigravity وCursor.
|
|
100
|
+
|
|
101
|
+
الحلقة العادية بسيطة:
|
|
102
|
+
|
|
103
|
+
1. اطلب من الوكيل تغيير كود، أو اطلب منه توثيق سلوك موجود.
|
|
104
|
+
2. تخبر التعليمات المثبّتة الوكيل متى يختبر، ومتى يحدّث وثائق الحقيقة، ومتى يتوقف للمراجعة البشرية.
|
|
105
|
+
3. أنت تراجع فروق Git العادية: الكود وأي تغييرات في وثائق الحقيقة.
|
|
106
|
+
|
|
107
|
+
طلبات الوكيل التي يبدأها المستخدم قليلة عمداً:
|
|
108
|
+
|
|
109
|
+
* `/truthmark-document` - توثيق سلوك منفّذ موجود من الكود والاختبارات.
|
|
110
|
+
* `/truthmark-realize` - تنفيذ الكود من وثائق الحقيقة الموجودة.
|
|
111
|
+
* `/truthmark-check` - تدقيق حقيقة المستودع.
|
|
112
|
+
|
|
113
|
+
Truth Sync ليس الطريقة المعتادة لبدء العمل؛ إنه مراجعة وقت الإنهاء بعد تغييرات الكود الوظيفية.
|
|
114
|
+
Truth Structure ليس أمراً يومياً؛ إنه يصلح التوجيه أو الملكية فقط عندما يعيق ذلك العمل.
|
|
115
|
+
|
|
116
|
+
## ما الذي تحصل عليه
|
|
117
|
+
|
|
118
|
+
| القدرة | ما تفعله |
|
|
119
|
+
| --- | --- |
|
|
120
|
+
| حقيقة أصلية لـ Git | تُبقي حقيقة المستودع في Markdown وإعدادات ملتزم بها. |
|
|
121
|
+
| توثيق مرتبط بالفرع | تنتقل الحقيقة مع الفرع بدلاً من العيش في جلسة خاصة. |
|
|
122
|
+
| CLI بشري | يمنح الصائنين أوامر للإعداد والتحديث والتحقق والفحص. |
|
|
123
|
+
| إرشادات الوكيل المثبّتة | تخبر وكلاء البرمجة متى يوثقون، أو يختبرون، أو يزامنون الحقيقة، أو يدققون، أو يتوقفون للمراجعة. |
|
|
124
|
+
| توجيه صريح | يربط مناطق الكود بوثائق الحقيقة المعتمدة. |
|
|
125
|
+
| تسليمات قابلة للمراجعة | ينتج فروق Git عادية لكل من الكود ووثائق الحقيقة. |
|
|
126
|
+
| تشغيل محلي أولاً | لا يتطلب خدمة مستضافة أو daemon أو قاعدة بيانات أو خادم MCP. |
|
|
127
|
+
| حدود كتابة أكثر أماناً | يفصل بين مسارات العمل التي تبدأ بالكود، أو تبدأ بالتوثيق، أو للقراءة فقط، أو للتوثيق فقط. |
|
|
128
|
+
| التحقق | يبلّغ عن مشكلات التوجيه والسلطة وfrontmatter والروابط والأسطح المولّدة ونطاق الفرع والحداثة والتغطية. |
|
|
129
|
+
| Portal اختياري | يولّد موقع عرض HTML ثابتاً وملتزماً به من وثائق حقيقة Markdown عندما يُفعّل ويُطلب ذلك صراحةً. |
|
|
130
|
+
|
|
131
|
+
## نظرة بصرية عامة
|
|
132
|
+
|
|
133
|
+

|
|
134
|
+
|
|
135
|
+
**الميزات:** ما يثبّته Truthmark وكيف ينقسم سطح سير العمل.
|
|
136
|
+
|
|
137
|
+

|
|
138
|
+
|
|
139
|
+
**الموضع:** أين يندرج Truthmark مقارنةً بالمطالبات والذاكرة ومسارات عمل المواصفات.
|
|
140
|
+
|
|
141
|
+

|
|
142
|
+
|
|
143
|
+
**تدفق المزامنة:** كيف ينهي Truth Sync تغييرات الكود العادية قبل التسليم.
|
|
144
|
+
|
|
145
|
+
## لماذا تتبناه الفرق
|
|
146
|
+
|
|
147
|
+
Truthmark مخصص للفرق التي تعرف بالفعل أن وكلاء الذكاء الاصطناعي يستطيعون توليد الكود.
|
|
148
|
+
|
|
149
|
+
المشكلة التالية هي الحوكمة.
|
|
150
|
+
|
|
151
|
+
ليست الحوكمة كطقوس. بل الحوكمة كسؤال بسيط:
|
|
152
|
+
|
|
153
|
+
> بعد هذا التغيير المدعوم بالذكاء الاصطناعي، هل ما زال المستودع يقول الحقيقة؟
|
|
154
|
+
|
|
155
|
+
يساعد Truthmark الفرق على الإجابة عن ذلك بملفات ملتزم بها، وتوجيه صريح، وفروق قابلة للمراجعة.
|
|
156
|
+
|
|
157
|
+
يكون مفيداً عندما تحتاج إلى:
|
|
158
|
+
|
|
159
|
+
- انحراف أقل في التوثيق
|
|
160
|
+
- تسليمات أفضل
|
|
161
|
+
- حقيقة منتج خاصة بالفرع
|
|
162
|
+
- توثيق معماري وAPI دائم
|
|
163
|
+
- ملكية صريحة بين الوثائق والكود
|
|
164
|
+
- حدود كتابة أكثر أماناً للوكلاء
|
|
165
|
+
- توثيق قابل للمراجعة بدلاً من ذاكرة مخفية
|
|
166
|
+
- مسارات عمل ذكاء اصطناعي تستمر في العمل من ملفات المستودع الملتزم بها
|
|
167
|
+
|
|
168
|
+
## أين يندرج Truthmark
|
|
169
|
+
|
|
170
|
+
لا يستبدل Truthmark المطالبات أو الذاكرة أو المواصفات أو الاختبارات أو مراجعة الكود.
|
|
171
|
+
|
|
172
|
+
إنه يمنح تلك المسارات مكاناً دائماً للرسو في Git.
|
|
173
|
+
|
|
174
|
+
| الحاجة | الأنسب |
|
|
175
|
+
| --- | --- |
|
|
176
|
+
| مخرجات أفضل من جلسة وكيل واحدة | مطالبة أفضل |
|
|
177
|
+
| استمرارية شخصية أو على مستوى الجلسة | أداة ذاكرة |
|
|
178
|
+
| عمل ميزات يبدأ بالخطة | سير عمل مواصفات |
|
|
179
|
+
| حقيقة مرتبطة بالفرع تنتقل مع الكود | Truthmark |
|
|
180
|
+
| التحقق من صحة السلوك | الاختبارات والمراجعة |
|
|
181
|
+
| مراجعة تغييرات التوثيق المدعومة بالذكاء الاصطناعي | Truthmark مع مراجعة Git |
|
|
182
|
+
|
|
183
|
+
مجال Truthmark ضيق عمداً بحسب التصميم:
|
|
184
|
+
|
|
185
|
+
```text
|
|
186
|
+
make repository truth explicit
|
|
187
|
+
route it to code
|
|
188
|
+
تثبيت إرشادات الوكلاء حولها
|
|
189
|
+
keep the result reviewable in Git
|
|
190
|
+
```
|
|
191
|
+
|
|
192
|
+
## تعمّق أكثر
|
|
193
|
+
|
|
194
|
+
README هو الواجهة: سياق سريع، وبدء سريع، والنموذج الذهني الأساسي.
|
|
195
|
+
|
|
196
|
+
للاستخدام أمراً بأمر، ومقارنات الأسطح، وتفاصيل المنصات المدعومة، والإعداد، والتوجيه، وPortal، والأمثلة، اقرأ [دليل مستخدم Truthmark](../user-guide.md).
|
|
197
|
+
|
|
198
|
+
## حالة المشروع
|
|
199
|
+
|
|
200
|
+
يوفر الإصدار الحالي:
|
|
201
|
+
|
|
202
|
+
- أوامر CLI محلية للإعداد والتهيئة والتحقق والفهرسة وتحليل الأثر وحالة سير العمل
|
|
203
|
+
- تعليمات وكلاء محلية مولّدة لـ Codex وClaude Code وGitHub Copilot وOpenCode وAntigravity وCursor
|
|
204
|
+
- تشخيصات للتوجيه والسلطة وfrontmatter والروابط والحداثة والأسطح المولّدة ونطاق الفرع والتغطية
|
|
205
|
+
- وثائق حقيقة مرتبطة بالفرع وعناصر مستمدة لاستخبارات المستودع
|
|
206
|
+
|
|
207
|
+
## التوثيق
|
|
208
|
+
|
|
209
|
+
- [دليل المستخدم](../user-guide.md)
|
|
210
|
+
- [فهرس الوثائق](../README.md)
|
|
211
|
+
- [نظرة عامة على المعمارية](../truthmark/engineering/architecture/overview.md)
|
|
212
|
+
- [عقود API وCLI](../truthmark/engineering/contracts/config-route-and-check-contracts.md)
|
|
213
|
+
- [دليل صيانة حقيقة المستودع](../standards/maintaining-repository-truth.md)
|
|
214
|
+
|
|
215
|
+
لأوامر التطوير المحلي والمساهمة، راجع [CONTRIBUTING.md](../../CONTRIBUTING.md).
|
|
216
|
+
|
|
217
|
+
## حدود التصميم
|
|
218
|
+
|
|
219
|
+
Truthmark صغير عمداً: محلي، ملتزم به، مرتبط بالفرع، وقابل للمراجعة.
|
|
220
|
+
|
|
221
|
+
إنه ليس خدمة مستضافة، ولا خادم MCP، ولا قاعدة بيانات متجهات، ولا طبقة ذاكرة مخفية، ولا منتج إنفاذ CI، ولا محركاً مستقلاً لإعادة كتابة الكود. يساعد حقيقة المستودع على البقاء مرئية؛ ولا يستبدل الاختبارات أو مراجعة الكود أو حكم البشر.
|
|
222
|
+
|
|
223
|
+
## الترخيص
|
|
224
|
+
|
|
225
|
+
MIT. راجع [LICENSE](../../LICENSE).
|
|
@@ -0,0 +1,225 @@
|
|
|
1
|
+
# Truthmark
|
|
2
|
+
|
|
3
|
+
**Deine Agenten schreiben Code. Truthmark pflegt menschenorientierte, in Git überprüfbare Dokumentation.**
|
|
4
|
+
|
|
5
|
+
[🇺🇸 English](../../README.md) | [🇨🇳 简体中文](README.zh.md) | [🇯🇵 日本語](README.ja.md) | [🇰🇷 한국어](README.ko.md) | [🇩🇪 Deutsch](README.de.md) | [🇫🇷 Français](README.fr.md) | [🇪🇸 Español](README.es.md) | [🇧🇷 Português](README.pt.md) | [🇷🇺 Русский](README.ru.md) | [🇸🇦 العربية](README.ar.md) | [🇮🇹 Italiano](README.it.md) | [🇵🇱 Polski](README.pl.md) | [🇹🇷 Türkçe](README.tr.md) | [🇻🇳 Tiếng Việt](README.vi.md) | [🇮🇩 Bahasa Indonesia](README.id.md) | [🇬🇷 Ελληνικά](README.el.md)
|
|
6
|
+
|
|
7
|
+

|
|
8
|
+
|
|
9
|
+
## 🚀 Schnellstart: lokal in fünf Minuten ausführen
|
|
10
|
+
|
|
11
|
+
Führe dies in dem Git-Repository aus, das Truthmark verwalten soll:
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
cd /path/to/your-repo
|
|
15
|
+
npm install -g truthmark
|
|
16
|
+
truthmark config
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
Aktiviere den KI-Host, den du tatsächlich nutzt. Neue Konfigurationen sind host-neutral; füge daher vor der Initialisierung eine `platforms`-Liste auf oberster Ebene zu `.truthmark/config.yml` hinzu:
|
|
20
|
+
|
|
21
|
+
```yaml
|
|
22
|
+
version: 2
|
|
23
|
+
platforms:
|
|
24
|
+
- codex # or: claude-code, github-copilot, opencode, antigravity, cursor
|
|
25
|
+
truthmark:
|
|
26
|
+
workspace: docs/truthmark
|
|
27
|
+
generated:
|
|
28
|
+
portal:
|
|
29
|
+
enabled: false
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
Installiere anschließend die repo-lokalen Truth-Dokumente, das Routing und die Anweisungen für KI-Hosts:
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
truthmark init
|
|
36
|
+
truthmark check
|
|
37
|
+
git diff
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
Probiere nun den häufigsten Einstiegspfad: ein bestehendes Verhalten anhand von Code und Tests dokumentieren. Bitte in deinem KI-Coding-Host den installierten Workflow:
|
|
41
|
+
|
|
42
|
+
```text
|
|
43
|
+
/truthmark-document document the implemented session timeout behavior across src/auth/session.ts and tests/auth/session.test.ts
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
Danach sollten Nutzer Truth Sync normalerweise nicht direkt aufrufen. Programmiere weiter über deinen KI-Host; die installierten Repository-Anweisungen weisen den Agenten an, relevante Tests auszuführen und vor der Übergabe die Truth Sync-Prüfung durchzuführen, wenn funktionaler Code geändert wurde. Du prüfst den daraus entstehenden Code-Diff plus den Truth-Doc-Diff.
|
|
47
|
+
|
|
48
|
+
Wenn du nur CLI-Validierung möchtest und noch keine host-spezifischen KI-Workflows willst, lasse `platforms` weg und führe `truthmark init && truthmark check` aus; du kannst später eine Plattform hinzufügen und `truthmark init` erneut ausführen.
|
|
49
|
+
|
|
50
|
+
## 💡 Das Problem: die KI-Dokumentationslücke
|
|
51
|
+
|
|
52
|
+
KI-Coding-Agenten sind unglaublich gut darin, schnell Code zu schreiben. Doch diese Geschwindigkeit erzeugt einen gefährlichen neuen Fehlermodus: **die Geschichte des Repositories driftet von der Realität ab.**
|
|
53
|
+
|
|
54
|
+
* Verhalten geht in flüchtigen Chatverläufen verloren.
|
|
55
|
+
* Architekturdokumente geraten schnell in Rückstand.
|
|
56
|
+
* Produktentscheidungen verschwinden nach der Übergabe.
|
|
57
|
+
* Code-Reviewer prüfen rohe Code-Diffs, ohne das „Warum“ zu verstehen.
|
|
58
|
+
* Jede neue KI-Sitzung muss die Wahrheit deines Repositories von Grund auf neu entdecken.
|
|
59
|
+
|
|
60
|
+
## 🎯 Die Lösung: Truthmark
|
|
61
|
+
|
|
62
|
+
**Truthmark** installiert eine Git-native Workflow-Schicht in deinem Repository. Es behebt den Teil der KI-Entwicklung, der normalerweise kaputtgeht: die Dokumentation dabei zu unterstützen, mit dem Code synchron zu bleiben.
|
|
63
|
+
|
|
64
|
+
Statt darauf zu hoffen, dass Menschen und KI-Agenten daran denken, Dokumentation zu aktualisieren, macht Truthmark Dokumentation direkt in deinem Repo zu einer systematischen, überprüfbaren Gewohnheit.
|
|
65
|
+
|
|
66
|
+
### ✨ Warum Truthmark einzigartig ist
|
|
67
|
+
|
|
68
|
+
Truthmark ist nicht einfach nur ein weiteres Dokumentationstool. Es ist tief in den KI-Workflow integriert:
|
|
69
|
+
|
|
70
|
+
* **🚫 Kein Vendor-Lock-in:** keine gehosteten Dienste, keine versteckten Datenbanken, keine zusätzlichen Server im Betrieb.
|
|
71
|
+
* **🌳 100 % Git-nativ:** alles lebt in deinem Repository. Die Wahrheit bewegt sich mit deinem Branch.
|
|
72
|
+
* **🤝 Von Menschen besessener, von Agenten befolgter Vertrag:** Maintainer besitzen den Repository-Vertrag; Agenten folgen beim Coden den installierten Anweisungen.
|
|
73
|
+
* **✅ Vertrauen durch Verifikation:** KI-Arbeit wird leichter vertrauenswürdig, weil verhaltensändernde Arbeit eine für Menschen überprüfbare Truth-Doc-Entscheidung oder einen Diff enthält.
|
|
74
|
+
|
|
75
|
+
## 🔄 Wie es funktioniert
|
|
76
|
+
|
|
77
|
+
Wenn ein KI-Agent deinen Code verändert, ist die Arbeit nicht erledigt. Truthmark installiert eine Workflow-Schutzschiene zum Abschluss, der Agenten vor der Übergabe folgen:
|
|
78
|
+
|
|
79
|
+
1. 💻 **Code:** Der Agent ändert funktionalen Code.
|
|
80
|
+
2. 🧪 **Test:** Relevante Tests werden ausgeführt.
|
|
81
|
+
3. 🔍 **Prüfen:** Truthmark prüft zugeordnete Dokumentation als Teil der installierten Abschlussprüfung.
|
|
82
|
+
4. 📝 **Dokumentation:** Docs werden vom Agenten aktualisiert, wenn sich die Repository-Wahrheit geändert hat.
|
|
83
|
+
5. 👀 **Review:** Ein Mensch prüft den *Code-Diff* + den *Truth-Diff*.
|
|
84
|
+
|
|
85
|
+
## 🛠 Wie du mit Truthmark interagierst
|
|
86
|
+
|
|
87
|
+
Truthmark hat einen repo-lokalen Vertrag und zwei Arten, ihn zu nutzen.
|
|
88
|
+
|
|
89
|
+
### Menschen installieren und validieren den Vertrag
|
|
90
|
+
|
|
91
|
+
Maintainer und CI nutzen die CLI:
|
|
92
|
+
|
|
93
|
+
* `truthmark config` - erstellt die Anfangskonfiguration.
|
|
94
|
+
* `truthmark init` - installiert oder aktualisiert Routing, Truth-Doc-Scaffolds und Anweisungen für KI-Hosts.
|
|
95
|
+
* `truthmark check` - validiert die Repository-Truth im Terminal.
|
|
96
|
+
|
|
97
|
+
### Agenten folgen dem Vertrag beim Coden
|
|
98
|
+
|
|
99
|
+
Truthmark installiert repo-lokale Anweisungen für unterstützte KI-Coding-Hosts wie Codex, Claude Code, GitHub Copilot, OpenCode, Antigravity und Cursor.
|
|
100
|
+
|
|
101
|
+
Der normale Ablauf ist einfach:
|
|
102
|
+
|
|
103
|
+
1. Bitte deinen Agenten um eine Codeänderung oder darum, vorhandenes Verhalten zu dokumentieren.
|
|
104
|
+
2. Die installierten Anweisungen sagen dem Agenten, wann er testen, wann er Truth-Dokumente aktualisieren und wann er für menschliche Prüfung stoppen soll.
|
|
105
|
+
3. Du prüfst normale Git-Diffs: Code plus alle Truth-Doc-Änderungen.
|
|
106
|
+
|
|
107
|
+
Die vom Nutzer gestarteten Agentenanfragen bleiben bewusst wenige:
|
|
108
|
+
|
|
109
|
+
* `/truthmark-document` - dokumentiert vorhandenes implementiertes Verhalten aus Code und Tests.
|
|
110
|
+
* `/truthmark-realize` - implementiert Code aus vorhandenen Truth-Dokumenten.
|
|
111
|
+
* `/truthmark-check` - auditiert die Repository-Truth.
|
|
112
|
+
|
|
113
|
+
Truth Sync ist nicht der übliche Weg, Arbeit zu starten; es ist die Abschlussprüfung nach funktionalen Codeänderungen.
|
|
114
|
+
Truth Structure ist kein Alltagsbefehl; es repariert Routing oder Ownership nur, wenn das die Arbeit blockiert.
|
|
115
|
+
|
|
116
|
+
## Was du bekommst
|
|
117
|
+
|
|
118
|
+
| Fähigkeit | Was sie tut |
|
|
119
|
+
| --- | --- |
|
|
120
|
+
| Git-native Wahrheit | Hält Repository-Wahrheit in committetem Markdown und Konfiguration. |
|
|
121
|
+
| Branch-bezogene Dokumentation | Die Wahrheit bewegt sich mit dem Branch, statt in einer privaten Sitzung zu leben. |
|
|
122
|
+
| Menschliche CLI | Gibt Maintainern Befehle für Einrichtung, Aktualisierung, Validierung und Inspektion. |
|
|
123
|
+
| Installierte Agentenanleitung | Sagt Coding-Agenten, wann sie dokumentieren, testen, Truth synchronisieren, auditieren oder für Review stoppen sollen. |
|
|
124
|
+
| Explizites Routing | Ordnet Codebereiche kanonischen Truth-Dokumenten zu. |
|
|
125
|
+
| Überprüfbare Übergaben | Erzeugt normale Git-Diffs sowohl für Code als auch für Truth-Dokumente. |
|
|
126
|
+
| Local-first-Betrieb | Benötigt keinen gehosteten Dienst, Daemon, keine Datenbank und keinen MCP-Server. |
|
|
127
|
+
| Sicherere Schreibgrenzen | Trennt code-first-, doc-first-, read-only- und doc-only-Workflows. |
|
|
128
|
+
| Validierung | Meldet Probleme bei Routing, Autorität, Frontmatter, Links, generierten Oberflächen, Branch-Scope, Aktualität und Abdeckung. |
|
|
129
|
+
| Optionales Portal | Erzeugt bei ausdrücklicher Aktivierung und Anforderung eine committete statische HTML-Präsentationssite aus Markdown-Truth-Dokumenten. |
|
|
130
|
+
|
|
131
|
+
## Visueller Überblick
|
|
132
|
+
|
|
133
|
+

|
|
134
|
+
|
|
135
|
+
**Funktionen:** was Truthmark installiert und wie Agenten repo-lokale Anweisungen nutzen.
|
|
136
|
+
|
|
137
|
+

|
|
138
|
+
|
|
139
|
+
**Position:** wo Truthmark im Verhältnis zu Prompts, Memory und Spec-Workflows steht.
|
|
140
|
+
|
|
141
|
+

|
|
142
|
+
|
|
143
|
+
**Sync-Ablauf:** wie Truth Sync normale Codeänderungen vor der Übergabe abschließt.
|
|
144
|
+
|
|
145
|
+
## Warum Teams es einsetzen
|
|
146
|
+
|
|
147
|
+
Truthmark ist für Teams, die bereits wissen, dass KI-Agenten Code erzeugen können.
|
|
148
|
+
|
|
149
|
+
Das nächste Problem ist Governance.
|
|
150
|
+
|
|
151
|
+
Nicht Governance als Zeremonie. Governance als einfache Frage:
|
|
152
|
+
|
|
153
|
+
> Sagt das Repository nach dieser KI-gestützten Änderung noch die Wahrheit?
|
|
154
|
+
|
|
155
|
+
Truthmark hilft Teams, diese Frage mit committeten Dateien, explizitem Routing und überprüfbaren Diffs zu beantworten.
|
|
156
|
+
|
|
157
|
+
Es ist nützlich, wenn du Folgendes brauchst:
|
|
158
|
+
|
|
159
|
+
- weniger Dokumentationsdrift
|
|
160
|
+
- bessere Übergaben
|
|
161
|
+
- branch-spezifische Produktwahrheit
|
|
162
|
+
- dauerhafte Architektur- und API-Dokumentation
|
|
163
|
+
- explizite Ownership zwischen Docs und Code
|
|
164
|
+
- sicherere Schreibgrenzen für Agenten
|
|
165
|
+
- überprüfbare Dokumentation statt versteckter Memory
|
|
166
|
+
- Agentenanleitung, die weiterhin aus committeten Repo-Dateien funktioniert
|
|
167
|
+
|
|
168
|
+
## Wo Truthmark hineinpasst
|
|
169
|
+
|
|
170
|
+
Truthmark ersetzt keine Prompts, Memory, Specs, Tests oder Code-Reviews.
|
|
171
|
+
|
|
172
|
+
Es gibt diesen Workflows einen dauerhaften Ort in Git.
|
|
173
|
+
|
|
174
|
+
| Bedarf | Besser geeignet |
|
|
175
|
+
| --- | --- |
|
|
176
|
+
| Bessere Ausgabe aus einer Agentensitzung | Besserer Prompt |
|
|
177
|
+
| Persönliche oder sitzungsbezogene Kontinuität | Memory-Tool |
|
|
178
|
+
| Plan-first-Feature-Arbeit | Spec-Workflow |
|
|
179
|
+
| Branch-bezogene Wahrheit, die mit Code reist | Truthmark |
|
|
180
|
+
| Verhaltenskorrektheit validieren | Tests und Review |
|
|
181
|
+
| KI-gestützte Dokumentationsänderungen prüfen | Truthmark plus Git-Review |
|
|
182
|
+
|
|
183
|
+
Truthmarks Spur ist bewusst schmal:
|
|
184
|
+
|
|
185
|
+
```text
|
|
186
|
+
make repository truth explicit
|
|
187
|
+
route it to code
|
|
188
|
+
Agentenanleitung darum installieren
|
|
189
|
+
keep the result reviewable in Git
|
|
190
|
+
```
|
|
191
|
+
|
|
192
|
+
## Tiefer einsteigen
|
|
193
|
+
|
|
194
|
+
Das README ist das Schaufenster: schneller Kontext, Schnellstart und das zentrale Denkmodell.
|
|
195
|
+
|
|
196
|
+
Für befehlsweise Nutzung, Oberflächenvergleiche, Details zu unterstützten Plattformen, Konfiguration, Routing, Portal und Beispiele lies den [Truthmark-Benutzerleitfaden](../user-guide.md).
|
|
197
|
+
|
|
198
|
+
## Projektstatus
|
|
199
|
+
|
|
200
|
+
Die aktuelle Version bietet:
|
|
201
|
+
|
|
202
|
+
- lokale CLI-Befehle für config, init, check, index, impact und Workflow-Status
|
|
203
|
+
- generierte repo-lokale Agentenanweisungen für Codex, Claude Code, GitHub Copilot, OpenCode, Antigravity und Cursor
|
|
204
|
+
- Diagnosen für Routing, Autorität, Frontmatter, Links, Aktualität, generierte Oberflächen, Branch-Scope und Abdeckung
|
|
205
|
+
- branch-bezogene Truth-Dokumente und abgeleitete Repository-Intelligence-Artefakte
|
|
206
|
+
|
|
207
|
+
## Dokumentation
|
|
208
|
+
|
|
209
|
+
- [Benutzerleitfaden](../user-guide.md)
|
|
210
|
+
- [Docs-Index](../README.md)
|
|
211
|
+
- [Architekturüberblick](../truthmark/engineering/architecture/overview.md)
|
|
212
|
+
- [API- und CLI-Verträge](../truthmark/engineering/contracts/config-route-and-check-contracts.md)
|
|
213
|
+
- [Leitfaden zur Pflege der Repository-Wahrheit](../standards/maintaining-repository-truth.md)
|
|
214
|
+
|
|
215
|
+
Für lokale Entwicklungs- und Beitragsbefehle siehe [CONTRIBUTING.md](../../CONTRIBUTING.md).
|
|
216
|
+
|
|
217
|
+
## Designgrenzen
|
|
218
|
+
|
|
219
|
+
Truthmark ist bewusst klein: lokal, committet, branch-bezogen und überprüfbar.
|
|
220
|
+
|
|
221
|
+
Es ist kein gehosteter Dienst, MCP-Server, keine Vektordatenbank, versteckte Memory-Schicht, kein CI-Enforcement-Produkt und keine autonome Code-Rewrite-Engine. Es hilft, Repository-Wahrheit sichtbar zu halten; es ersetzt keine Tests, Code-Reviews oder menschliches Urteil.
|
|
222
|
+
|
|
223
|
+
## Lizenz
|
|
224
|
+
|
|
225
|
+
MIT. Siehe [LICENSE](../../LICENSE).
|