Skip to content

Installing Veritas

Veritas is a registered WarmHub component — a packaged set of shapes, subscriptions, and credentials you install into any graph where you want structured consensus tracking over assertions. For the conceptual model behind how it works, see the Overview.

  • An existing WarmHub graph to install into.
  • A wh CLI authenticated against the org that owns the graph. See Getting access if you have not set this up yet.
  • No user-owned shape already using a Veritas shape name. The five names — Certainty, Support, Opposition, Consensus, Oracle — must be absent or already owned by the Veritas component (warmhub/veritas); a pre-existing user-owned shape under any of them fails the install with a shape-ownership error. Retract or rename the conflicting shape first.
Terminal window
wh component install warmhub/veritas --graph [your-org]/[your-graph]

After the command returns, your graph has the five Veritas shapes and five subscriptions — three watching for new opinions and two watching for rename events. The CLI tracks the install so you can manage and tear it down later. (If a shape name collides with an existing user-owned shape, the install fails with a shape-ownership error — see Prerequisites above.)

Confirm the install succeeded:

Terminal window
wh component list --graph [your-org]/[your-graph]
wh component view warmhub/veritas --graph [your-org]/[your-graph]

Every wh component lifecycle command — install, view, doctor, teardown — addresses Veritas by its registered <org>/<name> ref, warmhub/veritas. The manifest’s reverse-DNS component.id (com.warmhub.Veritas) is manifest metadata, not a CLI argument.

ShapePurposeAbout target
CertaintyA source’s opinion about an assertion. The primitive bet that wagers source reputation.An assertion (binary proposition).
SupportThe belief that one assertion is evidence for another.An Arc of two assertions, from → to.
OppositionThe belief that one assertion is evidence against another.An Arc of two assertions, from → to.
ConsensusVeritas’s consolidated readout. Written by Veritas only.An assertion (consolidating its Certainty opinions) or an Arc (consolidating its Support / Opposition opinions).
OracleA source pinned to fixed, maximum trust. A thing shape, not an assertion shape — you create one and name it as a source.Not applicable — an Oracle is a thing, not an opinion about a target.

The four opinion shapes (Certainty, Support, Opposition, Consensus) carry belief, disbelief, uncertainty, and optional alpha. Certainty, Support, and Opposition additionally require a source wref — the thing whose reputation is wagered — and accept an optional rationale string. Consensus has no source or rationale; it is Veritas’s own consolidated readout, not a wager. See Writing opinions for examples.

Oracle is the one shape that is not an opinion. It is a thing you create to represent a definitionally-trusted source, with three optional fields — displayName, description, and an owner wref — and no opinion fields. See Oracles for when and how to use one.

Veritas provisions five subscriptions in total. Three watch for new opinions so it can re-solve whenever one lands; two watch for rename events so internal references stay consistent:

SubscriptionTriggers on
veritas-certaintyAdd, revise, or retract of any Certainty assertion.
veritas-supportAdd, revise, or retract of any Support assertion.
veritas-oppositionAdd, revise, or retract of any Opposition assertion.
veritas-thing-renamedAny thing.renamed event in the graph.
veritas-repo-renamedAny repo.renamed event, when the graph itself is renamed. A graph was formerly called a repo, and this event keeps that name.

Webhook delivery is provisioned automatically — no setup required on your end.

Install provisions one credential set for Veritas, holding two shared secrets:

SecretUsed for
WEBHOOK_SIGNING_SECRETVerifying the webhook deliveries WarmHub sends to the Veritas worker.
CLI_SIGNING_SECRETAuthenticating the reputation CLI calls the worker receives.

Setup populates both for you — you do not set either by hand. You can inspect the credential set with the wh credential commands.

Run health checks any time to confirm all declared resources are present and active:

Terminal window
wh component doctor warmhub/veritas --graph [your-org]/[your-graph]

A successful wh component install should land Veritas in ready — setup provisions the signing secrets for you, so you do not need to populate any credential keys yourself. doctor validates against the manifest recorded at install time. A current install includes all five shapes; if you installed Veritas before the Oracle shape existed, reinstall (or update) to refresh that record and add the fifth shape. If doctor reports degraded, something went wrong during setup or a resource has drifted; if it reports uninstalled, Veritas has been torn down. See Component lifecycle for the full state machine and recovery guidance — these are generic component states, not Veritas-specific. For credential-set inspection and key management specifically, see the wh credential commands.

Once installed, Veritas exposes three commands for reading and seeding source reputation, dispatched through the component CLI.

get-reputation and upsert-reputation identify the source by its durable ID. Fetch that value first:

Terminal window
wh thing view <source-wref> --graph [your-org]/[your-graph]
# Copy the value on the `durableId` line, e.g.:
# durableId: 040SXA5RYM7Q4QXAGM8N6MXYVH5G37TDS2P16YQAG6D6M3VKT6YE8ZCW52H0

Then pass that durable ID to the reputation commands:

Terminal window
wh component exec veritas list-reputations --graph [your-org]/[your-graph]
wh component exec veritas get-reputation --durable-id 040SXA5RYM7Q4QXAGM8N6MXYVH5G37TDS2P16YQAG6D6M3VKT6YE8ZCW52H0 --scope WeatherClaim --graph [your-org]/[your-graph]
wh component exec veritas upsert-reputation --durable-id 040SXA5RYM7Q4QXAGM8N6MXYVH5G37TDS2P16YQAG6D6M3VKT6YE8ZCW52H0 --scope WeatherClaim --belief 0.7 --disbelief 0 --uncertainty 0.3 --graph [your-org]/[your-graph]

See Reputation and the CLI for the reputation model, scopes, and seeding guidance.

Tear Veritas down without removing its shapes or assertions:

Terminal window
wh component teardown warmhub/veritas --graph [your-org]/[your-graph]

Teardown pauses all five of Veritas’s subscriptions — incoming Certainty, Support, and Opposition changes will no longer trigger a re-solve, and rename events will no longer be processed — revokes the install’s tokens, and marks the component uninstalled. It is non-destructive: the five shapes stay in the graph, and all existing Consensus, Certainty, Support, and Opposition assertions and any Oracle things are left in place. You can still retract your own shapes, assertions, and things through the normal product surfaces without deleting the graph.

To bring Veritas back, reinstall it; the install record is revived. Because subscriptions are left paused, re-enable each one after reinstalling — reinstalling does not unpause them. Resume each of the five graph-scoped subscriptions by name:

Terminal window
wh sub resume veritas-certainty --graph [your-org]/[your-graph]
wh sub resume veritas-support --graph [your-org]/[your-graph]
wh sub resume veritas-opposition --graph [your-org]/[your-graph]
wh sub resume veritas-thing-renamed --graph [your-org]/[your-graph]
wh sub resume veritas-repo-renamed --graph [your-org]/[your-graph]
  • Writing opinions — how to author Certainty, Support, and Opposition, and how to read Consensus.
  • Reputation and the CLI — read and seed source reputation.
  • Oracles — pin a source to fixed, maximum trust.
  • Overview — the conceptual model behind the five shapes.