chore: refresh Truthmark to 2.2.0 (#15)

* Split Truthmark product and engineering truth lanes

* chore: align truthmark docs and runtime with lane updates

* chore: bump package version to 2.2.0

* chore: refresh truthmark surfaces for 2.2.0 and document release

* chore: migrate legacy truth docs to engineering legacy path

* chore: remove legacy docs/truth legacy docs from repository

* chore: trim document command prompts to adapter stubs

* chore: customize truth root README guidance per lane

* chore: make doc reviewer guidance lane-specific and helper-rendered

* fix: remove duplicate check lane-classification render in evidence gate

* fix: make realize doc example lane-agnostic to product and engineering

* feat: separate product and engineering truth lanes

* test: restore workflow surface coverage

* Fix workflow lane prompt boundaries

* test: guard read-only generated surface wording

* Fix manual Realize lane guidance

* fix: harden route relationship diagnostics

Validate reciprocal product and engineering route links, gate missing product-link review diagnostics on product evidence, and reject duplicate route entries with divergent relationship metadata.

* fix: merge duplicate route relationships

Allow repeated route entries for the same truth document, kind, and lane to contribute additive relationship metadata. Keep hard validation errors for kind and lane conflicts and emit merged relationships in RouteMap output.

* fix: make route relationships local

Treat realized_by and realizes metadata as route-local navigation edges. Validate target existence and lane compatibility without requiring reciprocal declarations, and document the chosen semantics.

---------

Co-authored-by: MerlinH <merlinh221@gmail.com>
This commit is contained in:
Merlin's Cat
2026-06-16 00:54:46 +10:00
committed by GitHub
co-authored by MerlinH
parent 7e68f5d216
commit 2dc0da40ff
309 changed files with 6483 additions and 6151 deletions
+1 -1
View File
@@ -16,7 +16,7 @@ permission:
"grep *": allow
---
# Generated by Truthmark 2.1.0. Rerun truthmark init after upgrades.
# Generated by Truthmark 2.2.0. Rerun truthmark init after upgrades.
Manual invocation: @truth-claim-verifier
+2 -2
View File
@@ -16,12 +16,12 @@ permission:
"grep *": allow
---
# Generated by Truthmark 2.1.0. Rerun truthmark init after upgrades.
# Generated by Truthmark 2.2.0. Rerun truthmark init after upgrades.
Manual invocation: @truth-doc-reviewer
Stay read-only.
Review assigned canonical truth docs for frontmatter, source_of_truth, required template sections, Evidence checked entries, Product Decisions, and Rationale.
Review assigned canonical truth docs for compact frontmatter, required template sections, final Source References entries, Evidence checked entries, and lane-appropriate decision sections (Product Decisions in product truth, Engineering Decisions in engineering truth).
Flag README.md files used as behavior truth targets, mixed-owner docs, and shape repairs that should move to Truth Structure.
Do not edit files, stage changes, or rewrite docs.
Return JSON only with keys: scope, filesReviewed, findings, evidence, confidence, recommendedWorkflow, notes.
+3 -2
View File
@@ -8,7 +8,8 @@ permission:
glob: allow
edit:
"*": deny
"docs/truthmark/truth/**": allow
"docs/truthmark/product/**": allow
"docs/truthmark/engineering/**": allow
"docs/truthmark/routes/areas.md": allow
"docs/truthmark/routes/areas/**/*.md": allow
task: deny
@@ -21,7 +22,7 @@ permission:
"git diff*": allow
---
# Generated by Truthmark 2.1.0. Rerun truthmark init after upgrades.
# Generated by Truthmark 2.2.0. Rerun truthmark init after upgrades.
Manual invocation: @truth-doc-writer
+8 -1
View File
@@ -16,14 +16,21 @@ permission:
"grep *": allow
---
# Generated by Truthmark 2.1.0. Rerun truthmark init after upgrades.
# Generated by Truthmark 2.2.0. Rerun truthmark init after upgrades.
Manual invocation: @truth-route-auditor
Stay read-only.
Audit one bounded Truthmark route, area, or doc shard assigned by the parent.
Inspect .truthmark/config.yml and route files only when they exist; then inspect mapped truth docs and relevant implementation files directly.
Use a route-first bounded strategy: narrow audits inspect only the routed area and directly linked counterpart docs; root-wide health first builds a cheap route-map/index from route files, then inspects only mismatches and linked leaves.
Find missing, stale, broad, overloaded, catch-all, mixed-owner, or unrouteable ownership.
Validate route ownership against lane-specific roots and route kind:
- confirm mapped truth docs resolve to the correct lane root (product or engineering) for their kind
- flag mismatch between assigned route kind and resolved doc kind (for example, product-capability routed to engineering paths)
- verify route-doc linkage for lane pairings via realized_by and realizes before recommending edits
- inspect product counterparts for engineering docs only when route YAML claims a product relationship, or when the parent explicitly asks for user-visible product coverage
- treat missing product links for user-visible engineering docs as a second-pass diagnostic, not a default full-document read.
Do not edit files, stage changes, or propose broad rewrites.
Return JSON only with keys: scope, filesReviewed, findings, evidence, confidence, recommendedWorkflow, notes.
recommendedWorkflow must be one of: none, truthmark-document, truthmark-structure.
+1 -1
View File
@@ -3,7 +3,7 @@ name: truthmark-check
description: Use when the user asks to audit repository truth health, routing, ownership, or canonical docs. Not for normal lint/test/typecheck/code-review verification, finish-time Sync, or silently rewriting docs.
argument-hint: Optional area, doc path, or audit focus
user-invocable: true
truthmark-version: 2.1.0
truthmark-version: 2.2.0
---
# Truthmark Check
@@ -1,6 +1,6 @@
# Truthmark Check Procedure
Generated by Truthmark 2.1.0. Rerun truthmark init after upgrades.
Generated by Truthmark 2.2.0. Rerun truthmark init after upgrades.
# Truthmark Check
@@ -11,13 +11,31 @@ Invocations: OpenCode /skill truthmark-check; Codex /truthmark-check or $truthma
Truth Check is agent-led:
- inspect .truthmark/config.yml and configured route files only when they exist; then inspect canonical docs and relevant implementation directly
- Repository instruction files and explicitly configured policy docs remain instruction authority when present; do not assume a repository uses any particular policy path.
Implementation code and canonical truth docs are inspected evidence for current behavior; they do not silently override workflow write boundaries.
- inspect the configured root route index at docs/truthmark/routes/areas.md and relevant child route files under docs/truthmark/routes/areas/ when they exist
- Evidence authority:
- Repository instruction files and explicitly configured policy docs remain instruction authority when present; do not assume a repository uses any particular policy path.
- Implementation code and canonical truth docs are inspected evidence for current behavior; they do not silently override workflow write boundaries.
- Lane classification:
- classify the request or changed surface as product-lane, engineering-lane, both-lane, or ambiguous for reporting only
- product-lane ownership belongs under docs/truthmark/product and describes product promises, boundaries, rationale, decisions, and success criteria
- engineering-lane ownership belongs under docs/truthmark/engineering and describes source-backed current realization, contracts, architecture, workflows, operations, or tests
- both-lane ownership uses separate product and engineering docs cross-linked in route YAML with realized_by and realizes, not in doc frontmatter
- ambiguous lane ownership should be reported as blocked or routed to Truth Structure
- Do not make product docs a summary of engineering docs. Do not make engineering docs a detailed version of product docs. Product truth says what must be true and why. Engineering truth says how the repository currently realizes it.
- check that current docs describe current code rather than historical plans
- keep lane and cross-lane checks route-first and bounded:
- for a narrow audit, inspect only the routed area and directly linked counterpart docs
- for root-wide truth health, first build a cheap route-map/index from route files, then inspect only mismatches and linked leaves
- inspect product counterparts for engineering docs only when route YAML claims a product relationship, or when the user explicitly asks for user-visible product coverage
- check lane root/kind alignment for product truth under docs/truthmark/product and engineering truth under docs/truthmark/engineering
- check route YAML cross-lane realized_by and realizes links for existence and lane compatibility
- report missing product links for user-visible engineering docs only as a second-pass review diagnostic, not as default full-document reads or hard errors
- check product docs do not contain engineering execution flow, generated file inventories, or CLI envelope mechanics
- check engineering docs do not contain product promises, product rationale, or Product Decisions sections
- never judge whether a product decision is commercially correct, valuable, prioritized, or desirable
- check that route files map code surfaces to canonical truth docs when route files exist
- check for broad, catch-all, index-like, or mixed-owner truth docs and report them as topology issues requiring Truth Structure
- check that canonical behavior docs keep active Product Decisions and Rationale sections
- check that canonical docs keep lane-appropriate decisions and rationale sections
- optionally run truthmark check when local tooling is available
- must not require the truthmark binary; direct inspection is always valid
- report issues and suggested fixes without silently rewriting unrelated files
@@ -31,7 +49,8 @@ Truthmark hierarchy hints:
- Config, when present: .truthmark/config.yml
- Root route index, when present: docs/truthmark/routes/areas.md
- Area route files, when present: docs/truthmark/routes/areas/**/*.md
- Truth docs, when present: docs/truthmark/truth/**/*.md
- Product truth docs, when present: docs/truthmark/product/**/*.md
- Engineering truth docs, when present: docs/truthmark/engineering/**/*.md
Decision truth lives in the canonical doc it governs; date active decisions inline when added or changed.
Do not create separate active-decision ADR/planning logs; replace the active decision and let Git history carry the audit trail.
Update Product Decisions and Rationale when a decision changes behavior.
Product decisions belong in product truth; engineering, architecture, contract, workflow, and operational decisions belong in engineering truth.
@@ -1,6 +1,6 @@
# Truthmark Check Report Template
Generated by Truthmark 2.1.0. Rerun truthmark init after upgrades.
Generated by Truthmark 2.2.0. Rerun truthmark init after upgrades.
Report completion in this shape:
@@ -1,6 +1,6 @@
# Truthmark Check Subagents And Leases
Generated by Truthmark 2.1.0. Rerun truthmark init after upgrades.
Generated by Truthmark 2.2.0. Rerun truthmark init after upgrades.
OpenCode subagent mode:
- use automatically when this workflow runs in OpenCode and the parent agent chooses bounded subagent fan-out
+1 -1
View File
@@ -3,7 +3,7 @@ name: truthmark-document
description: Use when the user asks to document existing implemented behavior, or Sync, Check, or Structure finds implemented behavior missing canonical truth. Not for functional-code changes, doc-first implementation, or topology repair that needs Structure.
argument-hint: Optional implemented behavior, API endpoint, route, controller, package, or truth-doc area to document
user-invocable: true
truthmark-version: 2.1.0
truthmark-version: 2.2.0
---
# Truthmark Document
@@ -1,8 +1,8 @@
# Generated by Truthmark 2.1.0. Rerun truthmark init after upgrades.
# Generated by Truthmark 2.2.0. Rerun truthmark init after upgrades.
helpers:
validate-document-report:
optional: true
runner: truthmark>=2.1.0
runner: truthmark>=2.2.0
command:
argv:
- truthmark
@@ -17,7 +17,7 @@ helpers:
fallback: manually validate support/report-template.md required sections and structured Evidence checked entries
validate-write-lease:
optional: true
runner: truthmark>=2.1.0
runner: truthmark>=2.2.0
command:
argv:
- truthmark
@@ -1,6 +1,6 @@
# Optional Helper CLI Policy
Generated by Truthmark 2.1.0. Rerun truthmark init after upgrades.
Generated by Truthmark 2.2.0. Rerun truthmark init after upgrades.
Optional helper CLI commands may collect deterministic checkout facts or validate artifacts. If the Truthmark CLI is unavailable or too old for a declared helper, continue manually using this procedure and report which helper was skipped. Helper output is derived evidence; it does not override direct checkout inspection, workflow write boundaries, or parent acceptance.
@@ -11,8 +11,8 @@ Runner detection:
- Do not fail the workflow solely because a helper cannot run.
Available helpers:
- validate-document-report: optional truthmark>=2.1.0; manual fallback: manually validate support/report-template.md required sections and structured Evidence checked entries
- validate-write-lease: optional truthmark>=2.1.0; manual fallback: manually compare declared allowedWrites and forbiddenWrites with the actual changed files
- validate-document-report: optional truthmark>=2.2.0; manual fallback: manually validate support/report-template.md required sections and structured Evidence checked entries
- validate-write-lease: optional truthmark>=2.2.0; manual fallback: manually compare declared allowedWrites and forbiddenWrites with the actual changed files
Final reports should include helper status when helpers are declared for this workflow:
@@ -1,6 +1,6 @@
# Truthmark Document Procedure
Generated by Truthmark 2.1.0. Rerun truthmark init after upgrades.
Generated by Truthmark 2.2.0. Rerun truthmark init after upgrades.
# Truthmark Document
@@ -11,8 +11,16 @@ Truth Document is manual and implementation-first:
- run only when the user explicitly asks to generate or update truth docs for existing behavior, or when Truth Sync, Truth Check, or Truth Structure reports implemented behavior that lacks canonical truth docs
- inspect .truthmark/config.yml and configured route files only when they exist; then inspect existing canonical docs, implementation code, and tests directly
- Repository instruction files and explicitly configured policy docs remain instruction authority when present; do not assume a repository uses any particular policy path.
Implementation code and canonical truth docs are inspected evidence for current behavior; they do not silently override workflow write boundaries.
- Evidence authority:
- Repository instruction files and explicitly configured policy docs remain instruction authority when present; do not assume a repository uses any particular policy path.
- Implementation code and canonical truth docs are inspected evidence for current behavior; they do not silently override workflow write boundaries.
- Lane classification:
- before writing canonical truth docs, classify the request or change as product-lane, engineering-lane, both-lane, or ambiguous
- product-lane writes belong under docs/truthmark/product and state product promises, boundaries, rationale, decisions, and success criteria
- engineering-lane writes belong under docs/truthmark/engineering and state source-backed current realization, contracts, architecture, workflows, operations, or tests
- both-lane work must write separate product and engineering docs and cross-link them in route YAML with realized_by and realizes, not in doc frontmatter
- ambiguous lane ownership must block or invoke Truth Structure instead of writing a mixed document
- Do not make product docs a summary of engineering docs. Do not make engineering docs a detailed version of product docs. Product truth says what must be true and why. Engineering truth says how the repository currently realizes it.
- document current implemented behavior; do not invent future behavior or planned endpoints
- may write canonical truth docs and docs/truthmark/routes/areas.md or relevant child route files only
- must not write functional code
@@ -20,7 +28,10 @@ Implementation code and canonical truth docs are inspected evidence for current
- block and recommend Truth Structure when routing repair is unsafe, ambiguous, or outside the task boundary
- keep feature README.md files as indexes rather than truth-document targets
- create or update bounded leaf truth docs when behavior does not fit an existing leaf doc
- keep behavior truth docs behavior-oriented, not endpoint-oriented, unless the endpoint itself is the behavior boundary
- write product capability/boundary truth under docs/truthmark/product when documenting product promise, boundary, rationale, or user/stakeholder value
- write engineering truth under docs/truthmark/engineering when documenting implementation behavior, contracts, architecture, workflows, operations, or tests
- for both-lane documentation requests, write separate product and engineering docs and cross-link them in route YAML with realized_by and realizes, not in doc frontmatter
- keep engineering behavior truth behavior-oriented, not endpoint-oriented, unless the endpoint itself is the behavior boundary
- keep API endpoint details in the nearest contract truth doc when such a doc owns the API contract
- preserve unrelated authored content
Truth-doc ownership gate:
@@ -28,15 +39,15 @@ Truth-doc ownership gate:
- if a target/source doc mixes independent owners, spans unrelated behaviors, acts as an index, or needs cross-owner edits, do not patch or in-place repair it
- if the target doc is broad, mixed-owner, index-like, or the documented behavior spans independent owners, run Truth Structure first when safe and in scope; otherwise block and recommend Truth Structure
- report Ownership reviewed, Structure required, Truth docs split, Truth docs restructured, or Blocked reason as applicable
Product Decisions/Rationale preservation gate:
- before any truth-doc split, restructure, or shape repair, inventory existing Product Decisions and Rationale sections in every source or touched truth doc
- preserve each current decision and rationale in the bounded owner doc it governs; when splitting, move it to the new owner doc rather than deleting it or leaving it in an index
Decision/Rationale preservation gate:
- before any truth-doc split, restructure, or shape repair, inventory existing Product Decisions, Engineering Decisions, and Rationale sections in every source or touched truth doc
- preserve each current decision and rationale in the correct product or engineering lane owner; when splitting, move it to the new owner doc rather than deleting it or leaving it in an index
- remove or narrow a decision or rationale only when checkout evidence shows it is stale or unsupported, and report the exact claim, evidence, and result
- if ownership of a decision or rationale is unclear, block with manual-review files instead of deleting it or guessing
- after the edit, verify every touched truth doc still has Product Decisions and Rationale sections and every pre-existing entry is preserved, moved, narrowed, removed with evidence, or blocked
- after the edit, verify every touched truth doc keeps lane-appropriate decision/rationale sections and every pre-existing entry is preserved, moved, narrowed, removed with evidence, or blocked
Evidence Gate:
- route-first: map the documented behavior to bounded route owners and primary canonical docs
- review new or changed behavior-bearing claims only in touched docs, route ownership, Product Decisions, and Rationale
- review new or changed behavior-bearing claims only in touched docs, route ownership, lane-specific decisions, and rationale
- support claims with primary checkout evidence: implementation, config, routing, generated templates, schemas, or contract definitions
- tests/examples/canonical docs corroborate; they are not sole proof when implementation conflicts
- remove, narrow, or block unsupported claims
@@ -45,10 +56,10 @@ Repository intelligence artifacts are optional derived context: RepoIndex, Route
They do not override checkout evidence, canonical truth docs, route files, or workflow write boundaries.
If unavailable, inspect any present Truthmark config, route files, source files, truth docs, and tests directly, then report that repository-intelligence artifacts were not generated.
When creating or updating a truth doc, inspect the routed truth kind and use the matching template under the configured Truthmark templates root.
Supported kinds: behavior, contract, architecture, workflow, operations, and test-behavior.
Supported kinds: product-capability, engineering-behavior, engineering-contract, engineering-architecture, engineering-workflow, engineering-operations, and engineering-test-behavior.
Treat the HTML comments under each template section as normative authoring guidance for that section.
Align existing docs to that template and write or repair section content so it satisfies the comment guidance while preserving accurate authored content.
If the template is missing, use Scope, Product Decisions, Rationale, and the kind-specific current-truth section.
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.
Teams may edit template files under the configured Truthmark templates root to define their local truth-doc standards.
Truth-doc shape repair gate:
- Truth Document may restructure only truth docs for the implemented behavior being documented.
@@ -63,10 +74,11 @@ Truthmark hierarchy hints:
- Config, when present: .truthmark/config.yml
- Root route index, when present: docs/truthmark/routes/areas.md
- Area route files, when present: docs/truthmark/routes/areas/**/*.md
- Truth docs, when present: docs/truthmark/truth/**/*.md
- Product truth docs, when present: docs/truthmark/product/**/*.md
- Engineering truth docs, when present: docs/truthmark/engineering/**/*.md
Decision truth lives in the canonical doc it governs; date active decisions inline when added or changed.
Do not create separate active-decision ADR/planning logs; replace the active decision and let Git history carry the audit trail.
Update Product Decisions and Rationale when a decision changes behavior.
Product decisions belong in product truth; engineering, architecture, contract, workflow, and operational decisions belong in engineering truth.
Helper status reporting:
- Validate the report body before adding this validator's own success status; the body may omit `validate-document-report` while validation is pending.
- After `truthmark validate document-report <report-file> --json` returns `data.validation.ok: true`, append or update `validate-document-report: ran, passed` in the final report.
@@ -1,6 +1,6 @@
# Truthmark Document Report Template
Generated by Truthmark 2.1.0. Rerun truthmark init after upgrades.
Generated by Truthmark 2.2.0. Rerun truthmark init after upgrades.
Report completion in this shape:
```md
@@ -13,13 +13,13 @@ Ownership reviewed:
- docs/truthmark/routes/areas.md
Truth docs created:
- docs/truthmark/truth/contracts.md
- docs/truthmark/engineering/contracts/routing.md
Truth docs updated:
- docs/truthmark/truth/check-diagnostics.md
- docs/truthmark/engineering/behaviors/check-diagnostics.md
Truth docs restructured:
- docs/truthmark/truth/check-diagnostics.md
- docs/truthmark/engineering/behaviors/check-diagnostics.md
Routing updated:
- docs/truthmark/routes/areas.md
@@ -1,6 +1,6 @@
# Truthmark Document Subagents And Leases
Generated by Truthmark 2.1.0. Rerun truthmark init after upgrades.
Generated by Truthmark 2.2.0. Rerun truthmark init after upgrades.
OpenCode subagent mode:
- use automatically when this workflow runs in OpenCode and the parent agent chooses bounded subagent fan-out
+2 -2
View File
@@ -3,7 +3,7 @@ name: truthmark-preview
description: Use when the user explicitly asks to preview likely workflow routing, target files, writes, or subagent use before edits. Not for validation, automatic gates, final correctness, or replacing Truth Check.
argument-hint: Optional requested outcome, code area, doc path, or routing question
user-invocable: true
truthmark-version: 2.1.0
truthmark-version: 2.2.0
---
# Truthmark Preview
@@ -14,7 +14,7 @@ Invocations: OpenCode /skill truthmark-preview; Codex /truthmark-preview or $tru
Quick procedure:
- Follow repository instruction files that exist in this checkout; do not assume any optional policy path exists.
- Inspect .truthmark/config.yml and configured route files (docs/truthmark/routes/areas.md; docs/truthmark/routes/areas/) only when they exist; then inspect only the truth docs or implementation files needed to preview ownership.
- Inspect .truthmark/config.yml and the root route index (docs/truthmark/routes/areas.md) first when present; then inspect only child route files under docs/truthmark/routes/areas/ that are relevant to the selected scope or changed paths, plus the truth docs or implementation files needed to preview ownership.
- Truth Preview is read-only; this report is intended, not authorized.
- must not edit files and must not issue write leases; do not run Truth Sync automatically, replace Truth Check, claim final correctness, or mutate code.
- Use optional read-only route-auditor evidence only when it reduces context or clarifies ownership.
@@ -1,6 +1,6 @@
# Truthmark Preview Procedure
Generated by Truthmark 2.1.0. Rerun truthmark init after upgrades.
Generated by Truthmark 2.2.0. Rerun truthmark init after upgrades.
Use this skill only when the user explicitly asks to preview Truthmark routing or workflow choice before edits.
@@ -10,16 +10,25 @@ Truth Preview is read-only. Its report is intended, not authorized.
Purpose:
- preview the likely Truthmark workflow, route owner, target files, expected write classes, suggested subagent use, and blocking ambiguity before edits happen
- report likely product lane impact, engineering lane impact, target docs, and ambiguity before edits
- hand off to the selected workflow after user approval
- keep the selector thin so agents can avoid loading or acting through heavier workflows prematurely
Read:
- .truthmark/config.yml, only when present
- docs/truthmark/routes/areas.md, only when present
- relevant child route files under docs/truthmark/routes/areas/, only when present
- docs/truthmark/routes/areas.md, first, only when present
- relevant child route files under docs/truthmark/routes/areas/ for the selected scope or changed paths, only when present
- relevant truth docs and implementation files needed to preview ownership
- Repository instruction files and explicitly configured policy docs remain instruction authority when present; do not assume a repository uses any particular policy path.
Implementation code and canonical truth docs are inspected evidence for current behavior; they do not silently override workflow write boundaries.
- Evidence authority:
- Repository instruction files and explicitly configured policy docs remain instruction authority when present; do not assume a repository uses any particular policy path.
- Implementation code and canonical truth docs are inspected evidence for current behavior; they do not silently override workflow write boundaries.
- Lane classification:
- classify the request or changed surface as product-lane, engineering-lane, both-lane, or ambiguous for reporting only
- product-lane ownership belongs under docs/truthmark/product and describes product promises, boundaries, rationale, decisions, and success criteria
- engineering-lane ownership belongs under docs/truthmark/engineering and describes source-backed current realization, contracts, architecture, workflows, operations, or tests
- both-lane ownership uses separate product and engineering docs cross-linked in route YAML with realized_by and realizes, not in doc frontmatter
- ambiguous lane ownership should be reported as blocked or routed to Truth Structure
- Do not make product docs a summary of engineering docs. Do not make engineering docs a detailed version of product docs. Product truth says what must be true and why. Engineering truth says how the repository currently realizes it.
Do not:
- must not edit files
@@ -40,4 +49,5 @@ Truthmark hierarchy hints:
- Config, when present: .truthmark/config.yml
- Root route index, when present: docs/truthmark/routes/areas.md
- Area route files, when present: docs/truthmark/routes/areas/**/*.md
- Truth docs, when present: docs/truthmark/truth/**/*.md
- Product truth docs, when present: docs/truthmark/product/**/*.md
- Engineering truth docs, when present: docs/truthmark/engineering/**/*.md
@@ -1,6 +1,6 @@
# Truthmark Preview Report Template
Generated by Truthmark 2.1.0. Rerun truthmark init after upgrades.
Generated by Truthmark 2.2.0. Rerun truthmark init after upgrades.
Report completion in this shape:
```md
@@ -19,14 +19,16 @@ Why this workflow:
Likely route owner:
- route file: docs/truthmark/routes/areas.md
- truth doc: docs/truthmark/truth/example.md
- likely lane impact: engineering-lane
- product target docs: none identified
- engineering target docs: docs/truthmark/engineering/behaviors/example.md
- confidence: medium
Expected write classes:
- truth docs
Expected target files:
- docs/truthmark/truth/example.md
- docs/truthmark/engineering/behaviors/example.md
Suggested subagent use:
- read-only verifiers: truth_route_auditor
@@ -1,6 +1,6 @@
# Truthmark Preview Subagents And Leases
Generated by Truthmark 2.1.0. Rerun truthmark init after upgrades.
Generated by Truthmark 2.2.0. Rerun truthmark init after upgrades.
OpenCode subagent mode:
- use automatically when this workflow runs in OpenCode and the parent agent chooses bounded subagent fan-out
+1 -1
View File
@@ -3,7 +3,7 @@ name: truthmark-realize
description: Use when the user explicitly asks to realize Truthmark truth docs into code, including /truthmark-realize, $truthmark-realize, or /truthmark:realize. Not for syncing docs after code changes, documenting existing code, topology repair, or truth audits.
argument-hint: Optional truth doc path, area, or desired code behavior to realize
user-invocable: true
truthmark-version: 2.1.0
truthmark-version: 2.2.0
---
# Truthmark Realize
@@ -1,6 +1,6 @@
# Truthmark Realize Procedure
Generated by Truthmark 2.1.0. Rerun truthmark init after upgrades.
Generated by Truthmark 2.2.0. Rerun truthmark init after upgrades.
# Truthmark Realize
@@ -33,7 +33,8 @@ Truthmark hierarchy hints:
- Config, when present: .truthmark/config.yml
- Root route index, when present: docs/truthmark/routes/areas.md
- Area route files, when present: docs/truthmark/routes/areas/**/*.md
- Truth docs, when present: docs/truthmark/truth/**/*.md
- Product truth docs, when present: docs/truthmark/product/**/*.md
- Engineering truth docs, when present: docs/truthmark/engineering/**/*.md
Read and write boundaries:
@@ -1,6 +1,6 @@
# Truthmark Realize Report Template
Generated by Truthmark 2.1.0. Rerun truthmark init after upgrades.
Generated by Truthmark 2.2.0. Rerun truthmark init after upgrades.
Report completion in this shape:
@@ -8,7 +8,8 @@ Report completion in this shape:
Truth Realize: completed
Truth docs used:
- docs/truthmark/truth/authentication/session-timeout.md
- docs/truthmark/product/capabilities/authentication-session.md
- docs/truthmark/engineering/behaviors/authentication-session.md
Code updated:
- src/auth/session.ts
@@ -3,7 +3,7 @@ name: truthmark-structure
description: Use when routing or truth ownership is missing, stale, broad, overloaded, catch-all, unrouteable, mixed-owner, needs split/repair, or needs new area setup. Not for documenting implemented behavior, syncing a code diff, or realizing docs into code.
argument-hint: Optional area, directory, or routing concern
user-invocable: true
truthmark-version: 2.1.0
truthmark-version: 2.2.0
---
# Truthmark Structure
@@ -1,29 +1,38 @@
# Truthmark Structure Procedure
Generated by Truthmark 2.1.0. Rerun truthmark init after upgrades.
Generated by Truthmark 2.2.0. Rerun truthmark init after upgrades.
Use this skill to design or repair Truthmark area structure.
Invocations: OpenCode /skill truthmark-structure; Codex /truthmark-structure or $truthmark-structure; Claude Code /truthmark-structure; GitHub Copilot /truthmark-structure; Gemini CLI /truthmark:structure.
Truth Structure is agent-native:
- inspect repository layout, current docs, Truthmark config and route files when present, and relevant code directly
- Repository instruction files and explicitly configured policy docs remain instruction authority when present; do not assume a repository uses any particular policy path.
Implementation code and canonical truth docs are inspected evidence for current behavior; they do not silently override workflow write boundaries.
- Evidence authority:
- Repository instruction files and explicitly configured policy docs remain instruction authority when present; do not assume a repository uses any particular policy path.
- Implementation code and canonical truth docs are inspected evidence for current behavior; they do not silently override workflow write boundaries.
- Lane classification:
- before writing canonical truth docs, classify the request or change as product-lane, engineering-lane, both-lane, or ambiguous
- product-lane writes belong under docs/truthmark/product and state product promises, boundaries, rationale, decisions, and success criteria
- engineering-lane writes belong under docs/truthmark/engineering and state source-backed current realization, contracts, architecture, workflows, operations, or tests
- both-lane work must write separate product and engineering docs and cross-link them in route YAML with realized_by and realizes, not in doc frontmatter
- ambiguous lane ownership must block or invoke Truth Structure instead of writing a mixed document
- Do not make product docs a summary of engineering docs. Do not make engineering docs a detailed version of product docs. Product truth says what must be true and why. Engineering truth says how the repository currently realizes it.
- inspect the configured root route index at docs/truthmark/routes/areas.md and relevant child route files under docs/truthmark/routes/areas/ when they exist
- define areas by product or behavior ownership, not by mechanical directory mirroring
- create or repair docs/truthmark/routes/areas.md
- create starter truth docs when useful and when they belong in the canonical current-truth surface
- Starter truth docs must use closed YAML frontmatter bounded by opening and closing --- lines; include status, doc_type, last_reviewed, and source_of_truth inside that frontmatter.
- Starter truth docs must include ## Product Decisions and ## Rationale sections.
- Starter truth docs must use closed YAML frontmatter bounded by opening and closing --- lines; include status, truth_kind, and last_reviewed inside that frontmatter. Put source references in the final ## Source References section, not in frontmatter.
- Starter truth docs must use lane-specific templates and keep product and engineering truth in separate files.
When creating or updating a truth doc, inspect the routed truth kind and use the matching template under the configured Truthmark templates root.
Supported kinds: behavior, contract, architecture, workflow, operations, and test-behavior.
Supported kinds: product-capability, engineering-behavior, engineering-contract, engineering-architecture, engineering-workflow, engineering-operations, and engineering-test-behavior.
Treat the HTML comments under each template section as normative authoring guidance for that section.
Align existing docs to that template and write or repair section content so it satisfies the comment guidance while preserving accurate authored content.
If the template is missing, use Scope, Product Decisions, Rationale, and the kind-specific current-truth section.
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.
Teams may edit template files under the configured Truthmark templates root to define their local truth-doc standards.
- use docs/truthmark/truth/** for current truth destinations
- use docs/truthmark/product/** for product truth destinations
- use docs/truthmark/engineering/** for engineering truth destinations
- use only canonical current-truth destinations for starter truth docs
- keep active Product Decisions and Rationale in the canonical doc that owns the behavior
- keep active Product Decisions in product truth and Engineering Decisions in engineering truth
- preserve unrelated authored content
## New area setup
Use when a user asks to onboard a new code area into Truthmark, a new package, controller, domain, or product area lacks bounded truth ownership, or a new product area needs routing and starter truth docs.
@@ -41,7 +50,7 @@ Do not:
- do not create generic catch-all docs
- do not treat README files as Sync targets
## Topology Governance
Truth Structure owns documentation topology. Do not depend on humans to manually organize docs/truthmark/truth. Treat the configured truth root as a managed semantic root.
Truth Structure owns documentation topology, lane splits, decision relocation, and relationship repair. Do not depend on humans to manually organize docs/truthmark/product or docs/truthmark/engineering. Treat both configured lane roots as managed semantic roots.
Inspect controllers, routes, handlers, services, packages, tests, existing truth docs, and route files; infer product and domain ownership from behavior boundaries, not from mechanical directory mirroring.
When topology pressure exists, repair structure before creating or extending truth docs.
Truth-doc ownership gate:
@@ -49,17 +58,17 @@ Truth-doc ownership gate:
- if a target/source doc mixes independent owners, spans unrelated behaviors, acts as an index, or needs cross-owner edits, do not patch or in-place repair it
- if a truth doc mixes independent owners, route ownership is broad, or a split is required for bounded ownership, split and reroute into bounded truth docs when safe; otherwise block with manual-review files
- report Ownership reviewed, Structure required, Truth docs split, Truth docs restructured, or Blocked reason as applicable
Product Decisions/Rationale preservation gate:
- before any truth-doc split, restructure, or shape repair, inventory existing Product Decisions and Rationale sections in every source or touched truth doc
- preserve each current decision and rationale in the bounded owner doc it governs; when splitting, move it to the new owner doc rather than deleting it or leaving it in an index
Decision/Rationale preservation gate:
- before any truth-doc split, restructure, or shape repair, inventory existing Product Decisions, Engineering Decisions, and Rationale sections in every source or touched truth doc
- preserve each current decision and rationale in the correct product or engineering lane owner; when splitting, move it to the new owner doc rather than deleting it or leaving it in an index
- remove or narrow a decision or rationale only when checkout evidence shows it is stale or unsupported, and report the exact claim, evidence, and result
- if ownership of a decision or rationale is unclear, block with manual-review files instead of deleting it or guessing
- after the edit, verify every touched truth doc still has Product Decisions and Rationale sections and every pre-existing entry is preserved, moved, narrowed, removed with evidence, or blocked
- after the edit, verify every touched truth doc keeps lane-appropriate decision/rationale sections and every pre-existing entry is preserved, moved, narrowed, removed with evidence, or blocked
Topology pressure signals:
- one area maps broad code such as src/**, app/**, server/**, services/**, or packages/**
- one area maps multiple unrelated controllers, route groups, services, or bounded contexts
- one truth doc owns unrelated behaviors or unrelated endpoint families
- the configured truth root has many direct non-index docs
- either configured lane root has many direct non-index docs
- a changed controller, route, or service cannot map to a specific behavior doc
- Truth Sync would need to create a new generic truth doc because routing is too broad
- endpoint or controller names reveal domains missing from docs/truthmark/routes/areas/**
@@ -72,9 +81,10 @@ Repair rules:
- split broad, overloaded, or catch-all areas into behavior-owned child route files
- split mixed-owner truth docs into bounded owner docs before adding new behavior claims
- create route files under docs/truthmark/routes/areas/ when a product/domain boundary is clear
- create behavior truth docs under the configured truth root only when behavior lacks a current doc
- create engineering behavior truth docs under docs/truthmark/engineering only when behavior lacks a current doc
- create product truth docs under docs/truthmark/product only when product promise, boundary, rationale, or user-visible capability truth is in scope
- README.md files are indexes, not Truth Sync targets
- prefer bounded leaf truth docs at <truth-root>/<domain>/<behavior>.md
- prefer bounded product docs under product/capabilities or product/decisions and engineering docs under engineering/<kind>/<surface>.md
- keep behavior truth docs behavior-oriented, not endpoint-oriented
- keep API endpoint details in the nearest contract truth doc when such a doc exists
- update routing so future Truth Sync can target small docs
@@ -88,13 +98,13 @@ Truth-doc shape repair gate:
- preserve supported claims; remove, narrow, or block unsupported or stale claims
- report docs restructured and why a narrow edit was not sufficient
Evidence Gate:
- apply the Evidence Gate before finishing when Truth Structure writes routed docs, ownership claims, Product Decisions, or Rationale
- apply the Evidence Gate before finishing when Truth Structure writes routed docs, ownership claims, lane-specific decisions, or rationale
- support ownership/behavior claims with topology or primary checkout evidence from layout, implementation boundaries, docs, config, route files, tests, templates, schemas, or contracts
- tests/examples/canonical docs corroborate; remove, narrow, or block unsupported claims
Maintain architecture docs only for structure-level changes: system structure, module boundaries, runtime topology, persistence boundaries, cross-cutting contracts, or generated-surface ownership.
Keep ordinary behavior, endpoints, UI copy, validation rules, and bug fixes in behavior or contract docs unless they change those boundaries.
- Do not finish topology repair with routed canonical current-truth docs missing Product Decisions or Rationale sections.
- If an existing canonical doc lacks either section, add the missing heading beside Current Behavior with a concise current-state placeholder or active decision.
- Do not finish topology repair with mixed product/engineering authority in a single canonical truth doc.
- If an existing canonical doc has wrong-lane sections, split or move them into the correct product or engineering lane.
Portable fallback:
- If this skill surface is unavailable, perform the same workflow directly from committed repository files.
- Do not require the truthmark CLI.
@@ -104,7 +114,8 @@ Truthmark hierarchy hints:
- Config, when present: .truthmark/config.yml
- Root route index, when present: docs/truthmark/routes/areas.md
- Area route files, when present: docs/truthmark/routes/areas/**/*.md
- Truth docs, when present: docs/truthmark/truth/**/*.md
- Product truth docs, when present: docs/truthmark/product/**/*.md
- Engineering truth docs, when present: docs/truthmark/engineering/**/*.md
Decision truth lives in the canonical doc it governs; date active decisions inline when added or changed.
Do not create separate active-decision ADR/planning logs; replace the active decision and let Git history carry the audit trail.
Update Product Decisions and Rationale when a decision changes behavior.
Product decisions belong in product truth; engineering, architecture, contract, workflow, and operational decisions belong in engineering truth.
@@ -1,13 +1,14 @@
# Truthmark Structure Report Template
Generated by Truthmark 2.1.0. Rerun truthmark init after upgrades.
Generated by Truthmark 2.2.0. Rerun truthmark init after upgrades.
Report completion in this shape:
```md
Truth Structure: completed
Topology reviewed:
- controllers: src/auth/**
- docs root: docs/truthmark/truth
- product docs root: docs/truthmark/product
- engineering docs root: docs/truthmark/engineering
- route files: docs/truthmark/routes/areas.md
Areas reviewed:
- src/auth/**
@@ -16,12 +17,14 @@ Routing updated:
Initial truth boundary:
- Area: Authentication
- Code: src/auth/**
- Truth owner: docs/truthmark/truth/authentication/session.md
- Product owner: docs/truthmark/product/capabilities/authentication-session.md
- Engineering owner: docs/truthmark/engineering/behaviors/authentication-session.md
- Scope: session behavior only
Truth docs created:
- docs/truthmark/truth/authentication/session.md
- docs/truthmark/product/capabilities/authentication-session.md
- docs/truthmark/engineering/behaviors/authentication-session.md
Truth docs split:
- docs/truthmark/truth/authentication/README.md -> docs/truthmark/truth/authentication/session.md
- docs/truthmark/truth/authentication/README.md -> docs/truthmark/product/capabilities/authentication-session.md and docs/truthmark/engineering/behaviors/authentication-session.md
Truth docs restructured:
- docs/truthmark/truth/authentication/README.md
Evidence checked:
@@ -1,6 +1,6 @@
# Truthmark Structure Subagents And Leases
Generated by Truthmark 2.1.0. Rerun truthmark init after upgrades.
Generated by Truthmark 2.2.0. Rerun truthmark init after upgrades.
OpenCode subagent mode:
- use automatically when this workflow runs in OpenCode and the parent agent chooses bounded subagent fan-out
+1 -1
View File
@@ -3,7 +3,7 @@ name: truthmark-sync
description: Use automatically at finish-time after functional code changes, or explicit /truthmark-sync, $truthmark-sync, or /truthmark:sync. Skip docs-only, formatting-only, behavior-preserving renames, missing config, and no-code changes. Not for doc-first realization or manual topology design.
argument-hint: Optional changed-code area, truth-doc area, or sync focus
user-invocable: true
truthmark-version: 2.1.0
truthmark-version: 2.2.0
---
# Truthmark Sync
@@ -1,8 +1,8 @@
# Generated by Truthmark 2.1.0. Rerun truthmark init after upgrades.
# Generated by Truthmark 2.2.0. Rerun truthmark init after upgrades.
helpers:
validate-sync-report:
optional: true
runner: truthmark>=2.1.0
runner: truthmark>=2.2.0
command:
argv:
- truthmark
@@ -17,7 +17,7 @@ helpers:
fallback: "manually validate support/report-template.md and check Evidence checked entries match Claim, indented Evidence, and Result: supported | narrowed | removed | blocked"
validate-write-lease:
optional: true
runner: truthmark>=2.1.0
runner: truthmark>=2.2.0
command:
argv:
- truthmark
@@ -1,6 +1,6 @@
# Optional Helper CLI Policy
Generated by Truthmark 2.1.0. Rerun truthmark init after upgrades.
Generated by Truthmark 2.2.0. Rerun truthmark init after upgrades.
Optional helper CLI commands may collect deterministic checkout facts or validate artifacts. If the Truthmark CLI is unavailable or too old for a declared helper, continue manually using this procedure and report which helper was skipped. Helper output is derived evidence; it does not override direct checkout inspection, workflow write boundaries, or parent acceptance.
@@ -11,8 +11,8 @@ Runner detection:
- Do not fail the workflow solely because a helper cannot run.
Available helpers:
- validate-sync-report: optional truthmark>=2.1.0; manual fallback: manually validate support/report-template.md and check Evidence checked entries match Claim, indented Evidence, and Result: supported | narrowed | removed | blocked
- validate-write-lease: optional truthmark>=2.1.0; manual fallback: manually compare declared allowedWrites and forbiddenWrites with the actual changed files
- validate-sync-report: optional truthmark>=2.2.0; manual fallback: manually validate support/report-template.md and check Evidence checked entries match Claim, indented Evidence, and Result: supported | narrowed | removed | blocked
- validate-write-lease: optional truthmark>=2.2.0; manual fallback: manually compare declared allowedWrites and forbiddenWrites with the actual changed files
Final reports should include helper status when helpers are declared for this workflow:
@@ -1,6 +1,6 @@
# Truthmark Sync Procedure
Generated by Truthmark 2.1.0. Rerun truthmark init after upgrades.
Generated by Truthmark 2.2.0. Rerun truthmark init after upgrades.
Use this skill automatically before finishing when functional code changed since the last successful Truth Sync. Also run it immediately when the user explicitly invokes Truth Sync.
Invocations: OpenCode /skill truthmark-sync; Codex /truthmark-sync or $truthmark-sync; Claude Code /truthmark-sync; GitHub Copilot /truthmark-sync; Gemini CLI /truthmark:sync.
@@ -10,10 +10,19 @@ Parent workflow:
1. Inspect git status, staged changes, unstaged changes, and untracked files directly.
2. Inspect .truthmark/config.yml and configured route files only when they exist; then inspect relevant canonical docs.
3. Identify functional-code changes and the nearest truth docs or routing repairs.
4. Repository instruction files and explicitly configured policy docs remain instruction authority when present; do not assume a repository uses any particular policy path.
Implementation code and canonical truth docs are inspected evidence for current behavior; they do not silently override workflow write boundaries.
5. Code verification is parent-owned: follow repository instructions and task context, and report what ran or why it did not run.
6. Dispatch bounded Truth Sync workers only when the host supports subagent dispatch and the acting agent chooses that path; otherwise execute the same sync task inline.
4. Evidence authority:
- Repository instruction files and explicitly configured policy docs remain instruction authority when present; do not assume a repository uses any particular policy path.
- Implementation code and canonical truth docs are inspected evidence for current behavior; they do not silently override workflow write boundaries.
5. Lane classification gate:
- before writing canonical truth docs, classify the request or change as product-lane, engineering-lane, both-lane, or ambiguous
- product-lane writes belong under docs/truthmark/product and state product promises, boundaries, rationale, decisions, and success criteria
- engineering-lane writes belong under docs/truthmark/engineering and state source-backed current realization, contracts, architecture, workflows, operations, or tests
- both-lane work must write separate product and engineering docs and cross-link them in route YAML with realized_by and realizes, not in doc frontmatter
- ambiguous lane ownership must block or invoke Truth Structure instead of writing a mixed document
- Do not make product docs a summary of engineering docs. Do not make engineering docs a detailed version of product docs. Product truth says what must be true and why. Engineering truth says how the repository currently realizes it.
6. Update engineering truth first after code changes. Update product truth only when implemented user-visible product promise or capability boundary changed and explicit source/user evidence supports it; otherwise report product-lane review needed.
7. Code verification is parent-owned: follow repository instructions and task context, and report what ran or why it did not run.
8. Dispatch bounded Truth Sync workers only when the host supports subagent dispatch and the acting agent chooses that path; otherwise execute the same sync task inline.
Topology quality gate:
- before updating truth docs, verify the changed code resolves to a specific behavior-owned area and bounded truth owner
- if routing is missing, stale, broad, overloaded, catch-all route only, or cannot map changed code to a bounded truth owner, do not create another generic truth doc
@@ -23,22 +32,23 @@ Topology quality gate:
- README.md files are indexes, not Truth Sync targets
- must not append behavior details to a README.md index
- create or update a bounded leaf truth doc when behavior changes do not fit an existing leaf doc
- write engineering truth under docs/truthmark/engineering; product truth updates under docs/truthmark/product are allowed only for explicit current product behavior changes
Truth-doc ownership gate:
- before editing or relying on changed functional files and impacted truth docs, verify each target/source truth doc is a bounded owner for the behavior
- if a target/source doc mixes independent owners, spans unrelated behaviors, acts as an index, or needs cross-owner edits, do not patch or in-place repair it
- if an impacted doc is broad, mixed-owner, index-like, or the update spans independent behavior owners, run Truth Structure before syncing when safe and in scope; otherwise block and recommend Truth Structure
- report Ownership reviewed, Structure required, Truth docs split, Truth docs restructured, or Blocked reason as applicable
Product Decisions/Rationale preservation gate:
- before any truth-doc split, restructure, or shape repair, inventory existing Product Decisions and Rationale sections in every source or touched truth doc
- preserve each current decision and rationale in the bounded owner doc it governs; when splitting, move it to the new owner doc rather than deleting it or leaving it in an index
Decision/Rationale preservation gate:
- before any truth-doc split, restructure, or shape repair, inventory existing Product Decisions, Engineering Decisions, and Rationale sections in every source or touched truth doc
- preserve each current decision and rationale in the correct product or engineering lane owner; when splitting, move it to the new owner doc rather than deleting it or leaving it in an index
- remove or narrow a decision or rationale only when checkout evidence shows it is stale or unsupported, and report the exact claim, evidence, and result
- if ownership of a decision or rationale is unclear, block with manual-review files instead of deleting it or guessing
- after the edit, verify every touched truth doc still has Product Decisions and Rationale sections and every pre-existing entry is preserved, moved, narrowed, removed with evidence, or blocked
- after the edit, verify every touched truth doc keeps lane-appropriate decision/rationale sections and every pre-existing entry is preserved, moved, narrowed, removed with evidence, or blocked
When creating or updating a truth doc, inspect the routed truth kind and use the matching template under the configured Truthmark templates root.
Supported kinds: behavior, contract, architecture, workflow, operations, and test-behavior.
Supported kinds: product-capability, engineering-behavior, engineering-contract, engineering-architecture, engineering-workflow, engineering-operations, and engineering-test-behavior.
Treat the HTML comments under each template section as normative authoring guidance for that section.
Align existing docs to that template and write or repair section content so it satisfies the comment guidance while preserving accurate authored content.
If the template is missing, use Scope, Product Decisions, Rationale, and the kind-specific current-truth section.
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.
Teams may edit template files under the configured Truthmark templates root to define their local truth-doc standards.
Truth-doc shape repair gate:
- Truth Sync may restructure only truth docs impacted by the current functional-code change.
@@ -51,7 +61,7 @@ Maintain architecture docs only for structure-level changes: system structure, m
Keep ordinary behavior, endpoints, UI copy, validation rules, and bug fixes in behavior or contract docs unless they change those boundaries.
Evidence Gate:
- route-first: map changed functional files to bounded route owners and primary canonical docs
- review new or changed behavior-bearing claims only in touched docs, route ownership, Product Decisions, and Rationale
- review new or changed behavior-bearing claims only in touched docs, route ownership, lane-specific decisions, and rationale
- support claims with primary checkout evidence: implementation, config, routing, generated templates, schemas, or contract definitions
- tests/examples/canonical docs corroborate; they are not sole proof when implementation conflicts
- remove, narrow, or block unsupported claims
@@ -63,7 +73,7 @@ Optional validation tooling:
- you may run truthmark check when local tooling is available
- do not require the truthmark binary; direct checkout inspection is the canonical path
- optional validation must not replace agent judgment about docs and routing
- update Product Decisions and Rationale when a behavior change comes from a decision change
- update Product Decisions only in product truth and Engineering Decisions only in engineering truth when evidence supports the lane-specific decision change
Helper status reporting:
- Validate the report body before adding this validator's own success status; the body may omit `validate-sync-report` while validation is pending.
- After `truthmark validate sync-report <report-file> --json` returns `data.validation.ok: true`, append or update `validate-sync-report: ran, passed` in the final report.
@@ -74,10 +84,11 @@ Truthmark hierarchy hints:
- Config, when present: .truthmark/config.yml
- Root route index, when present: docs/truthmark/routes/areas.md
- Area route files, when present: docs/truthmark/routes/areas/**/*.md
- Truth docs, when present: docs/truthmark/truth/**/*.md
- Product truth docs, when present: docs/truthmark/product/**/*.md
- Engineering truth docs, when present: docs/truthmark/engineering/**/*.md
Decision truth lives in the canonical doc it governs; date active decisions inline when added or changed.
Do not create separate active-decision ADR/planning logs; replace the active decision and let Git history carry the audit trail.
Update Product Decisions and Rationale when a decision changes behavior.
Product decisions belong in product truth; engineering, architecture, contract, workflow, and operational decisions belong in engineering truth.
Parent post-sync verification:
- verify only truth docs and leased truth routing files changed during sync
- block on any unrelated diff caused by the sync step
@@ -1,6 +1,6 @@
# Truthmark Sync Report Template
Generated by Truthmark 2.1.0. Rerun truthmark init after upgrades.
Generated by Truthmark 2.2.0. Rerun truthmark init after upgrades.
Report completion in this shape:
```md
@@ -13,7 +13,7 @@ Ownership reviewed:
- docs/truthmark/routes/areas.md
Truth docs updated:
- docs/truthmark/truth/repository/overview.md
- docs/truthmark/engineering/repository/overview.md
Evidence checked:
- Claim: Session timeout behavior is documented in the mapped repository truth doc.
@@ -1,6 +1,6 @@
# Truthmark Sync Subagents And Leases
Generated by Truthmark 2.1.0. Rerun truthmark init after upgrades.
Generated by Truthmark 2.2.0. Rerun truthmark init after upgrades.
OpenCode subagent mode:
- use automatically when this workflow runs in OpenCode and the parent agent chooses bounded subagent fan-out