truth-tools
v0.1.1
Published
Unified CLI and MCP-oriented entrypoint for capture-truth, program-truth, and timeline-truth.
Maintainers
Readme
Truth Tools
truth-tools is the unified entrypoint for this workspace's three truth packages:
capture-truthfor evidence intakeprogram-truthfor program reconciliationtimeline-truthfor timeline compilation and validation
It keeps the existing packages focused and exposes one consistent CLI and MCP-oriented callable surface for benchmarking and TPM review workflows.
CLI
truth-tools doctor --all
truth-tools capture create --input intake.json
truth-tools capture validate --input evidence-pack.json
truth-tools capture render --export-profile repo-safe-summary --input evidence-pack.json
truth-tools program reconcile --input program-input.json
truth-tools timeline create --input intake.json
truth-tools timeline validate --input timeline.json
truth-tools timeline render --format markdown --input timeline.jsonMCP Tools
The MCP server exposes dotted tool names:
capture.createcapture.validatecapture.renderprogram.reconciletimeline.createtimeline.validatetimeline.renderdoctor.all
Local checkout config:
{
"mcpServers": {
"truth-tools": {
"command": "node",
"args": ["C:/path/to/truth-tools/src/mcp-server.js"]
}
}
}Npm-style config:
{
"mcpServers": {
"truth-tools": {
"command": "npx",
"args": ["-y", "--package=truth-tools", "truth-tools-mcp"]
}
}
}Doctor
truth-tools doctor --all checks:
- local install and runtime truth package availability
- shared conflict, timeline unknown, and program-status schemas
- repo-safe render path
- MCP tool-surface availability
Conflict Schema
Conflicts are normalized as:
{
"claim": "Real-client rollout start date",
"source_a": { "system": "local-note", "value": "2026-05-27" },
"source_b": { "system": "jira", "value": "2026-06-02" },
"conflict_type": "date_mismatch",
"recommended_owner_action": "Assign an owner to reconcile the source disagreement and update the system of record."
}Timeline Unknowns
Timeline items carry explicit uncertainty:
{
"title": "Phase 2 rollout",
"date_status": "tbc",
"blocks_next_milestone": "unknown"
}Supported date_status values:
exactrangeearliesttbcconflicting
Supported blocks_next_milestone values:
truefalseunknown
Program Status Schema
program.reconcile returns:
confirmed_factsblockersrisksunknownsconflictsassumptionsrecommended_write_back
recommended_write_back separates what belongs in the repo, what belongs in .tmp/, and what needs source-system updates.
Export Profiles
repo-safe-summary is the default safety posture for TPM repos. It omits raw source bodies and favors compact facts, gaps, conflicts, and owner actions.
internal-evidence-pack keeps structured evidence metadata but redacts raw content fields before rendering.
raw-local-only returns the full artifact and should stay local. Do not commit raw Jira, Confluence, customer, credential, or private operational data.
All render paths run a redaction check for common credential and sensitive-data markers.
Development
npm test
npm run check
npm pack --dry-runUpdate Checks
truth-tools doctor --all checks npm for newer versions of truth-tools, capture-truth, and timeline-truth.
Use truth-tools doctor --all --no-update-check for CI or offline runs.
