New
Apps 6,419Makers 6,403This week 7
Promote your app−30%
AgentSkeptic screenshot 1
5views in
the last 30 days

AgentSkeptic

Catch silent failures in agent workflows by verifying real system state

Built with Cursor

by jwekavanagh · Unclaimed · from USUnited States · added Nov 3, 2026
no ratings0 comments

AgentSkeptic — state vs trace

Trust reality, not traces.

Tool effects vs read-only store facts.

Traces can show success while stored data disagrees.

AgentSkeptic re-checks the stores your agent claims to change, then returns a deterministic Outcome Certificate before you ship.

Bundled terminal proof

### Success (`wf_complete`) — canonical `agentskeptic check`

stderr (first lines): truth_check_verdict: trusted, then release_critical_truth_check_verdict: trusted
stdout (Outcome Certificate excerpt): {"schemaVersion":3,"workflowId":"wf_complete","runKind":"contract_sql","stateRelation":"matches_expectations"}

### Failure (`wf_missing`)

stderr (first line): truth_check_verdict: not_trusted
Human report then explains ROW_ABSENT (missing downstream row vs registry expectation).
stdout (Outcome Certificate excerpt): {"schemaVersion":3,"workflowId":"wf_missing","runKind":"contract_sql","stateRelation":"does_not_match"}

Optional coverage budgets: when configured (`--coverage-budget` or `agentskeptic/coverage-budget.json` beside `--project`), stderr adds `coverage_budget_verdict:` and `coverage_budget_detail:` after the two truth lines — see docs/integrate.md § Optional coverage budgets.

How it works

Default path: one truth check

Start here: docs/first-truth-check.md — canonical first-run steps (command, inputs, stdout/stderr, CI, Cursor, troubleshooting).

Compare recorded tool activity to downstream state (SQL and, in contract mode, HTTP witnesses, object storage, vectors, Mongo per your registry) and get Outcome Certificate v3 on stdout (schemaVersion: 3, failureSpine, evidenceCompleteness) plus truth_check_verdict: and release_critical_truth_check_verdict: on stderr (Trust artifact naming glossary explains receipts and decision-bundle exit.json naming). Optional coverage budgets append two more machine lines only when a policy is active — docs/integrate.md.

npx agentskeptic check --workflow-id wf_example \
  --project ./path/to/your-app \
  --db ./path/to/readable.sqlite

With the conventional layout, --registry and --events default to ./path/to/your-app/agentskeptic/tools.json and events.ndjson. Pass them explicitly when your paths differ. Shortest path: docs/first-truth-check.md. Full integrator SSOT: docs/integrate.md.

No license required. The default agentskeptic check path needs no AGENTSKEPTIC_API_KEY and no license server; it runs stateless contract verification locally. (Stateful agentskeptic enforce for baselines, drift, and acceptance is a later opt-in commercial path — see below.)

Reading the result. stdout is one Outcome Certificate v3 line (machine JSON as above). On verdict exits, stderr begins with truth_check_verdict: and release_critical_truth_check_verdict: (each trusted, not_trusted, or unknown), then the human certificate report. When a coverage budget policy is active, two additional machine lines follow — see docs/integrate.md.

The truth_check_verdict values mean:

truth_check_verdict: trusted
truth_check_verdict: not_trusted
truth_check_verdict: unknown
Verdict Meaning
trusted Checked outcome matched expected downstream state — only this verdict means the workflow can be relied on.
not_trusted Determinate mismatch or required state missing. Do not claim verified; fix the mismatch.
unknown Evidence incomplete or not established. Do not claim verified; collect missing evidence or narrow checked scope.

Full verdict and stderr contract: docs/first-truth-check.md (details in docs/integrate.md).

Exportable activation (advanced): BootstrapPackInput v1 + agentskeptic activate (writes proof/ under --out on exits 0–2; bootstrap is legacy — docs/bootstrap-pack-normative.md).

Lifecycle

  1. Keep agentskeptic/tools.json in version control; update when toolId → verification mapping changes.
  2. Emit observations via the canonical SDK emitter, then append emitted rows to the gate buffer. Optionally mirror the same JSON lines to agentskeptic/events.ndjson for CI replay.
  3. On the code path before irreversible work you control (ship, bill, ticket close), call await gate.assertSafeForIrreversibleAction() so unsafe trust (or required emissions that never reached the gate) blocks that branch — it is not a substitute for wiring the gate everywhere it matters, and outcomes can still be unknown when highStakesReliance is not permitted (see docs/outcome-certificate-normative.md).

Compare two saved Outcome Certificates (semantic diff)

To compare trust posture between two saved schemaVersion: 3 Outcome Certificate JSON files (no workflow payloads or event streams):

npx agentskeptic compare certificates --before ./prior-outcome.json --after ./current-outcome.json

Stdout is VerificationDiffCertificateV1 (schemas/verification-diff-certificate-v1.schema.json); stderr is human-readable text (not JSON). Multi-run structural regression compare still uses agentskeptic compare --manifest (docs/regression-artifact-normative.md). Full CLI contract: docs/agentskeptic.md.

Install

npm install agentskeptic

Network access (OSS CLI)

Local contract verification (for example SQLite file --db) runs offline by default: anonymous product-activation telemetry is disabled unless you opt in with AGENTSKEPTIC_TELEMETRY=1 or persist {"telemetry": true} in ~/.agentskeptic/config.json. Use AGENTSKEPTIC_TELEMETRY=0 to force telemetry off. When enabled, the CLI sends best-effort anonymous usage events to AgentSkeptic’s telemetry endpoint (POST /api/funnel/product-activation); it does not send workflow payloads, database contents, credentials, prompts, traces, or verification artifacts. Outbound access can still occur when you explicitly configure remote databases, --share-report-origin, state witnesses (HTTP / vector / S3 / Mongo), commercial license or enforcement flows (AGENTSKEPTIC_API_KEY), funnel-anon pull, or when running the website/ app (Stripe, email, databases, etc.).

Code

npx agentskeptic init --framework none --database sqlite --yes
import { join } from "node:path";
import { AgentSkeptic } from "agentskeptic";

const skeptic = new AgentSkeptic({
  registryPath: join("agentskeptic", "tools.json"),
  databaseUrl: join(process.cwd(), "demo.db"),
});

const certificate = await skeptic.check({
  workflowId: "wf_complete",
  observations: [
    {
      toolId: "crm.upsert_contact",
      params: { recordId: "c_ok", fields: { name: "Alice", status: "active" } },
    },
  ],
});

Python / LangGraph / CrewAI (same truth check)

The default verification contract is unchanged: agentskeptic check semantics, Outcome Certificate on stdout, and the truth_check_verdict: / release_critical_truth_check_verdict: stderr prefix—whether you invoke the published npm CLI alongside your stack or use the Python SDK / extras documented in docs/integrate.md. Start here: pip install and framework notes there, plus examples/python-verification/README.md.

See docs/integrate.md (canonical integrator guide — see title in integrate.md) and docs/migrate-2.md for 1.x → 2.0 renames.

CI (GitHub Actions)

Default: copy examples/github-actions/agentskeptic-check.yml — first-party composite action at .github/actions/agentskeptic-check wrapping agentskeptic check (default mode). No AGENTSKEPTIC_API_KEY on the OSS path. In another repo, pin upstream with uses: jwekavanagh/agentskeptic/.github/actions/agentskeptic-check@<ref> (not Marketplace). Advanced CLI flags pass through extra-args. Transparent manual fallback: invoke npx agentskeptic check … inline (same CLI contract). The composite’s default agentskeptic@latest package input is not a branch-protection posture—pin package per docs/ambient-ci-distribution.md#composite-package-input-contract-normative.

Every composite run produces three CI surfaces: a certificate-derived job summary (failure spine + per-step table + witness kinds), a downloadable artifact named agentskeptic-outcome-certificate (outcome-certificate.json), and structured composite outputs (verdict, state-relation, trust-decision, release-critical-verdict, failing-tool-ids, primary-reason-codes, failing-witness-kinds, recommended-action, automation-safe, certificate-path, plus the existing stdout-path / stderr-path / exit-code). The OSS example needs only permissions: contents: read — artifact upload uses ACTIONS_RUNTIME_TOKEN, not GITHUB_TOKEN, so no actions: write scope is required. Full contract: docs/ambient-ci-distribution.md.

Opt-in commercial / stateful enforcement (baseline, drift, acceptance): examples/github-actions/agentskeptic-commercial.yml requires an API key and license server (docs/commercial-enforce-gate-normative.md).

Buy vs build: why not only SQL checks

The scar (one pattern, over and over): the trace says the tool succeeded—here crm.upsert_contact / contacts—but the row is missing or wrong. The repo demo names it wf_missing / ROW_ABSENT; the same failure shape applies whenever your registry maps tool activity to SQL state (ledgers, orders, tickets—not only CRM). That is not a logging problem—it is a money and risk problem the moment you ship, bill, close, or treat the run as audit evidence.

Why “we’ll just write SQL checks” stops working

  • Drift: Scripts rot when schemas and workflows change; nobody keeps them current.
  • No ownership: The author leaves; the checks become folklore.
  • Not an org contract: Expectations live in heads and one-off files—not in a shared tools.json + NDJSON contract everyone replays.
  • CI and audit: Ad-hoc checks are skipped locally and rarely ship as repeatable artifacts; when the issue is cross-team or compliance, scripts do not hold. Use CI lock / enforcement when you need pins (docs/ci-enforcement.md).

What you standardize on instead: when the row backs revenue or customer promises, you stop betting the business on whoever wrote the last script. AgentSkeptic is how the org owns the check: one verifier, one replayable contract, Quick → Contract when stakes go up—explore with Quick Verify (docs/quick-verify-normative.md), lock with contract mode and a tools.json registry when “we ran a query” is not evidence (docs/agentskeptic.md). That is the responsible default once the failure mode hurts.

Core mechanism: Read-only SQL checks that your database at verification time matches expectations derived from structured tool activity—not whether a trace step “succeeded.”

Read-only checks at verify time—not color.

Advanced

Canonical runnable (same API as README ### Code): after npm run build, run node examples/decision-gate-canonical.mjs.

Try it (about one minute)

This is the fastest way to see ROW_ABSENT versus verified on the same screen—the concrete failure mode the section above is about (bundled CRM-style demo, not your production incident yet).

Prerequisite: Node.js ≥ 22.13 (built-in node:sqlite), or use Docker below.

Fast first run on your own DB: run the same agentskeptic check from the Default path above against your inputs — after npm install and npm run build:

agentskeptic check --workflow-id <id> --events <path> --registry <path> --db <sqlitePath>

stdout is the Outcome Certificate; stderr begins with truth_check_verdict: trusted|not_trusted|unknown and release_critical_truth_check_verdict: trusted|not_trusted|unknown, then the human report (optional coverage budget lines when configured).

Local feedback loop with run history (advanced): agentskeptic loop wraps the same check contract and adds local run history, prior-run comparison, and a single TRUSTED / NOT TRUSTED / UNKNOWN line for tight inner-loop iteration — normative contract: docs/local-feedback-loop.md.

Advanced compatibility paths: agentskeptic quick, agentskeptic crossing, and agentskeptic verify-integrator-owned remain supported for specialized workflows and CI parity; they are not the first-run path.

npm install
npm start

What you should see: npm start builds, seeds examples/demo.db, and runs two workflows from examples/events.ndjson with examples/tools.json. The first case ends complete / verified; the second inconsistent / missing with reason ROW_ABSENT. That contrast is the product on one screen.

npm install does not compile TypeScript. To run the CLI without npm start, run npm run build first so dist/ exists.

Docker quickstart (optional)

Use this when you want the bundled demo without Node 22.13+ on the host. The repo is bind-mounted so examples/demo.db stays on your machine.

Bash / macOS / Linux (repo root):

docker run --rm -it -v "$PWD:/work" -w /work node:22-bookworm bash -lc "npm install && npm start"

PowerShell (repo root):

docker run --rm -it -v "${PWD}:/work" -w /work node:22-bookworm bash -lc "npm install && npm start"

Minimal model (event → registry → result)

One structured observation (NDJSON line; full schema in Event line schema):

{"schemaVersion":1,"workflowId":"wf_complete","seq":0,"type":"tool_observed","toolId":"crm.upsert_contact","params":{"recordId":"c_ok","fields":{"name":"Alice","status":"active"}}}

Registry entry (excerpt; full file is examples/tools.json) telling the engine how that toolId maps to a row check:

{
  "toolId": "crm.upsert_contact",
  "verification": {
    "kind": "sql_row",
    "table": { "const": "contacts" },
    "identityEq": [{ "column": { "const": "id" }, "value": { "pointer": "/recordId" } }],
    "requiredFields": { "pointer": "/fields" }
  }
}

When the row matches: workflow result (excerpt; demo prints full JSON to stdout):

{
  "workflowId": "wf_complete",
  "status": "complete",
  "steps": [{ "seq": 0, "toolId": "crm.upsert_contact", "status": "verified" }]
}

When the row is missing or fields disagree, you get inconsistent / missing and reason codes such as ROW_ABSENT.

What this is (and is not)

Retries, partial failures, and race conditions mean a success flag in a trace is not proof the intended row exists with the right values. The engine derives expected state from your registry and events and compares it to observed state with read-only SELECTs.

This is This is not
A SQL ground-truth state check against expectations from structured tool activity Generic observability, log search, or arbitrary unstructured logs
A verifier for persisted state after agent or automation workflows A test runner for application code
Proof that observed DB state matched expectations at verification time Proof that a tool executed, wrote, or caused that state

This is for you if you need persisted-row SQL truth after agent or automation runs when the trace looks fine but the DB might not.

This is not for you if you need proof a tool executed, log search as verification, or a model where read-only SQL against your app DB is not the right check. Homepage “for you / not for you” copy lives in website/src/content/productCopy.ts (single source with the site).

Trust boundary (once): a green

Description taken from the repository README.

Ratings

–
0 ratings
5 0
4 0
3 0
2 0
1 0

Rate this app

Sign in to rate

Comments 0

Sign in to comment

No comments yet.

Related apps

#ai-agents · #testing · #verification