truthmark 2.2.5 → 2.2.6
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 +16 -1
- package/dist/main.js +19 -1
- package/dist/main.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
**Your agents write code. Truthmark maintains human-facing, Git-reviewable documentation.**
|
|
4
4
|
|
|
5
|
+
[](https://www.npmjs.com/package/truthmark)
|
|
6
|
+
[](https://github.com/merlinhu1/truthmark/actions/workflows/ci.yml)
|
|
7
|
+
[](LICENSE)
|
|
8
|
+
[](package.json)
|
|
9
|
+
|
|
10
|
+
[Website](https://merlinhu1.github.io/truthmark/) | [GitHub](https://github.com/merlinhu1/truthmark) | [User Guide](docs/user-guide.md)
|
|
11
|
+
|
|
5
12
|
[🇺🇸 English](README.md) | [🇨🇳 简体中文](docs/readmes/README.zh.md) | [🇯🇵 日本語](docs/readmes/README.ja.md) | [🇰🇷 한국어](docs/readmes/README.ko.md) | [🇩🇪 Deutsch](docs/readmes/README.de.md) | [🇫🇷 Français](docs/readmes/README.fr.md) | [🇪🇸 Español](docs/readmes/README.es.md) | [🇧🇷 Português](docs/readmes/README.pt.md) | [🇷🇺 Русский](docs/readmes/README.ru.md) | [🇸🇦 العربية](docs/readmes/README.ar.md) | [🇮🇹 Italiano](docs/readmes/README.it.md) | [🇵🇱 Polski](docs/readmes/README.pl.md) | [🇹🇷 Türkçe](docs/readmes/README.tr.md) | [🇻🇳 Tiếng Việt](docs/readmes/README.vi.md) | [🇮🇩 Bahasa Indonesia](docs/readmes/README.id.md) | [🇬🇷 Ελληνικά](docs/readmes/README.el.md)
|
|
6
13
|
|
|
7
14
|

|
|
@@ -59,10 +66,12 @@ AI coding agents are incredible at writing code fast. But this speed creates a d
|
|
|
59
66
|
|
|
60
67
|
## 🎯 The Solution: Truthmark
|
|
61
68
|
|
|
62
|
-
**Truthmark** installs a Git-native workflow layer into your repository. It fixes the part of AI development that usually breaks:
|
|
69
|
+
**Truthmark** installs a Git-native workflow layer into your repository. It fixes the part of AI development that usually breaks: keeping documentation aligned with code after the first draft.
|
|
63
70
|
|
|
64
71
|
Instead of hoping humans and AI agents remember to update docs, Truthmark makes documentation a systematic, reviewable habit right inside your repo.
|
|
65
72
|
|
|
73
|
+
Truthmark is not a one-shot docs generator. It is an ongoing truth-doc curation loop that keeps human-facing docs small, owned, evidence-backed, and reviewable as agents keep changing code.
|
|
74
|
+
|
|
66
75
|
### ✨ Why Truthmark is Unique
|
|
67
76
|
|
|
68
77
|
Truthmark isn't just another documentation tool. It is deeply integrated into the AI workflow:
|
|
@@ -70,6 +79,7 @@ Truthmark isn't just another documentation tool. It is deeply integrated into th
|
|
|
70
79
|
* **🚫 Zero Vendor Lock-in:** No hosted services, no hidden databases, no extra servers to operate.
|
|
71
80
|
* **🌳 100% Git-Native:** Everything lives in your repository. The truth moves with your branch.
|
|
72
81
|
* **🤝 Human-owned, agent-followed contract:** Maintainers own the repo contract; agents follow the installed instructions while coding.
|
|
82
|
+
* **🧭 Ongoing truth curation:** Broad or messy docs are routed toward Structure instead of becoming giant catch-all files.
|
|
73
83
|
* **✅ Trust Through Verification:** AI work becomes easier to trust because behavior-changing work includes a human-reviewable truth-doc decision or diff.
|
|
74
84
|
|
|
75
85
|
## 🔄 How It Works
|
|
@@ -122,6 +132,7 @@ Truth Structure is not a day-to-day command; it repairs routing or ownership onl
|
|
|
122
132
|
| Human CLI | Gives maintainers setup, refresh, validation, and inspection commands. |
|
|
123
133
|
| Installed agent guidance | Tells coding agents when to document, test, sync truth, audit, or stop for review. |
|
|
124
134
|
| Explicit routing | Maps code areas to canonical truth docs. |
|
|
135
|
+
| Durable truth curation | Keeps docs bounded, evidence-backed, and reviewable instead of letting them grow into catch-all files. |
|
|
125
136
|
| Reviewable handoffs | Produces ordinary Git diffs for both code and truth docs. |
|
|
126
137
|
| Local-first operation | Requires no hosted service, daemon, database, or MCP server. |
|
|
127
138
|
| Safer write boundaries | Separates code-first, doc-first, read-only, and doc-only workflows. |
|
|
@@ -154,6 +165,8 @@ Not governance as ceremony. Governance as a simple question:
|
|
|
154
165
|
|
|
155
166
|
Truthmark helps teams answer that with committed files, explicit routing, and reviewable diffs.
|
|
156
167
|
|
|
168
|
+
Most AI tools can draft documentation. Truthmark keeps repository truth curated after the draft, after the next code change, and after the doc starts getting too broad.
|
|
169
|
+
|
|
157
170
|
It is useful when you need:
|
|
158
171
|
|
|
159
172
|
- less documentation drift
|
|
@@ -193,6 +206,8 @@ keep the result reviewable in Git
|
|
|
193
206
|
|
|
194
207
|
The README is the storefront: fast context, quick start, and the core mental model.
|
|
195
208
|
|
|
209
|
+
The [static website](https://merlinhu1.github.io/truthmark/) is the concise public introduction for GitHub Pages.
|
|
210
|
+
|
|
196
211
|
For command-by-command usage, surface comparisons, supported platform details, configuration, routing, Portal, and examples, read the [Truthmark User Guide](docs/user-guide.md).
|
|
197
212
|
|
|
198
213
|
## Project status
|
package/dist/main.js
CHANGED
|
@@ -1235,6 +1235,16 @@ var renderBehaviorDocTemplateFile = () => {
|
|
|
1235
1235
|
"",
|
|
1236
1236
|
"{{core_rules}}",
|
|
1237
1237
|
"",
|
|
1238
|
+
"## Behavior Scenarios",
|
|
1239
|
+
"",
|
|
1240
|
+
"<!--",
|
|
1241
|
+
"Use compact scenario blocks only where they clarify normal, fallback, or compatibility-critical behavior.",
|
|
1242
|
+
"Write scenarios as current truth, not desired requirements: `#### Scenario: <implemented case>` followed by `- **GIVEN** ...`, `- **WHEN** ...`, `- **THEN** ...`, and optional `- **AND** ...` bullets.",
|
|
1243
|
+
"Keep each bullet evidence-backed and observable; do not force a scenario for every rule.",
|
|
1244
|
+
"-->",
|
|
1245
|
+
"",
|
|
1246
|
+
"{{behavior_scenarios}}",
|
|
1247
|
+
"",
|
|
1238
1248
|
"## Flows And States",
|
|
1239
1249
|
"",
|
|
1240
1250
|
"<!--",
|
|
@@ -2118,7 +2128,14 @@ var FEATURE_DOC_TEMPLATE_INSTRUCTIONS = [
|
|
|
2118
2128
|
"If the template is missing, use lane-specific sections: product truth says what must be true and why; engineering truth says how the repository currently realizes it.",
|
|
2119
2129
|
"Teams may edit template files under the configured Truthmark templates root to define their local truth-doc standards."
|
|
2120
2130
|
].join("\n");
|
|
2121
|
-
var TRUTH_DOC_AUTHORING_STYLE_INSTRUCTIONS =
|
|
2131
|
+
var TRUTH_DOC_AUTHORING_STYLE_INSTRUCTIONS = [
|
|
2132
|
+
"Truth-doc prose style:",
|
|
2133
|
+
"- Use professional, plain technical prose. Prefer specific current-state claims over promotional, symbolic, or generic significance language.",
|
|
2134
|
+
"- Avoid common AI-writing tells: pivotal, crucial, underscores, serves as, stands as, showcases, landscape, vague expert attributions, and generic upbeat conclusions.",
|
|
2135
|
+
"- Keep claims evidence-backed and diff-friendly: one durable claim per bullet or line; paragraphs should be no longer than one or two short sentences.",
|
|
2136
|
+
"- Do not add personality, rhetorical flourish, first-person commentary, or marketing tone.",
|
|
2137
|
+
"- Rewrite dense or formulaic prose only when it improves readability without removing scope, evidence, decisions, or source references."
|
|
2138
|
+
].join("\n");
|
|
2122
2139
|
var renderTruthDocOwnershipGateSection = (subject, outcome) => {
|
|
2123
2140
|
return [
|
|
2124
2141
|
"Truth-doc ownership review:",
|
|
@@ -3224,6 +3241,7 @@ ${renderTruthSyncProductDecisionRuleBlock(config)}
|
|
|
3224
3241
|
- No-update-needed rationale: why mapped truth is already current when no truth doc should change
|
|
3225
3242
|
- Blockers: missing routing, ambiguous ownership, failed verification, unavailable evidence, or off-boundary write needs
|
|
3226
3243
|
11. Only edit allowed truth docs/routes after Sync Intent is clear; if ownership is ambiguous, repair topology first when the repair is safe and in scope, otherwise stop and recommend Truth Structure instead of guessing.
|
|
3244
|
+
${TRUTH_DOC_AUTHORING_STYLE_INSTRUCTIONS}
|
|
3227
3245
|
${subagentMode}Topology review and repair:
|
|
3228
3246
|
- before updating truth docs, verify the changed code resolves to a specific behavior-owned area and bounded truth owner
|
|
3229
3247
|
- if routing is missing, stale, broad, overloaded, catch-all route only, or cannot map changed code to a bounded truth owner, run Truth Structure before syncing when topology repair is safe and in scope
|