npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@poketopa/believe-me

v0.4.0

Published

BelieveMe is an evidence-first execution harness for safe, verifiable AI code changes

Readme

BelieveMe

Don't trust the summary. Verify the run.

A local-first trust layer that keeps generated changes away from the source project until a declared verifier passes, receipt-bound evidence is reviewable, and the exact receipt is approved for atomic apply.

Unlike an agent that edits a working tree directly, BelieveMe separates execution, verification, evidence review, approval, and mutation authority.

Two-minute disposable demo

npm install --global @poketopa/believe-me
believeme demo

The command creates a dependency-free Node fixture in a private temporary directory, repairs an intentionally incorrect boundary, and exercises the real receipt → review → portable export/verify → receipt-hash approval → fresh verification → atomic apply lifecycle. It uses no provider credentials, network, Java, PostgreSQL, or Podman, never edits the directory from which it was invoked, and removes the fixture before returning.

The result is exactly one canonical JSONL record containing the receipt and bundle hashes, every demonstrated stage, the applied path, and cleanup status.

Abbreviated example (hashes and changed_paths omitted):

{"command":"demo","data":{"cleanup_status":"removed","demo_status":"completed","stages":[{"lifecycle_state":"receipted","stage":"receipt"},{"review_status":"stored_evidence_verified","stage":"review"},{"stage":"export_verify","verification_status":"portable_evidence_verified"},{"approval_scope":"disposable_demo_project","lifecycle_state":"applied","stage":"approve_apply"}]},"schema_version":{"major":1},"status":"ok"}

The demo proves that the packaged lifecycle works. It is not a benchmark, an efficacy claim, provider provenance, or evidence of trusted execution. The command is included in v0.3.0 and later packages.

Design references: architecture, threat model, and design decisions.

[!NOTE] BelieveMe v0.4.0 adds optional offline Ed25519 signer evidence while preserving the unsigned bundle path introduced in v0.3.0. Signatures do not establish a person identity, freshness, revocation status, trusted execution, approval, or apply authority. The npm package is @poketopa/believe-me, and the CLI command is believeme.

Install

Node.js 24 LTS or later is required.

npm install --global @poketopa/believe-me
believeme --version

Product promise

The harness does not assume an AI agent is trustworthy. It binds a requested change to a policy, workflow gates, an isolated source snapshot, verification results, and an evidence receipt before the user may apply it.

skill / policy
  -> workflow gates
  -> isolated execution
  -> verification
  -> evidence receipt
  -> explicit approval
  -> atomic apply or rollback

Current development scope

  • one npm CLI package;
  • one Codex execution adapter;
  • manifest-selected bounded command verification plus one Java/Spring reference adapter;
  • one Spring use-case policy;
  • one Roomescape development fixture;
  • deterministic stale-source, tamper, crash, resume, and rollback tests.
  • deterministic verifier mutation calibration over independent Node and Spring tasks.

The CLI surface is init, run, status, receipt, review, demo, run-session, resume-session, status-session, review-session, export-bundle, verify-bundle, attest-bundle, verify-attestation, apply, and the additive apply-session command for a verified adaptive-session winner.

Current proof

The repository now includes an executor-neutral run orchestrator, deterministic and bounded Codex executors, the contract/evidence/apply kernel, and the first real verifier adapter. A run freezes its manifest, run spec, source snapshot, workflow plan, and executor input before creating an isolated workspace. Only a non-empty candidate that passes verification can reach receipted; executor and verifier failures keep typed evidence while leaving the source project unchanged.

The Codex adapter invokes the official non-interactive JSONL surface with a fixed argument array and stdin prompt. It copies only auth.json into an ephemeral Codex home, ignores user config and exec rules, disables web, shell, plugin, browser, computer-use, and multi-agent tools, and confines edits to the isolated workspace. The harness derives candidate bytes from the workspace, rejects deletions and out-of-allowlist changes, and binds credential-screened raw events, usage, and execution configuration into the result receipt.

The canonical Roomescape Spring fixture proves the strict owner cancellation boundary, manager exemption, unchanged not-found behavior, first-waiting promotion, transactional rollback, and PostgreSQL row preservation. Its deterministic baseline-to-candidate run now reaches receipted without manual state editing, and the resulting change set is directly compatible with the atomic apply contract exercised by the core tests.

The fixture is verified through its pinned Gradle wrapper with a direct argv spawn (shell: false). Gradle distribution and dependency versions are locked; GitHub Actions also runs the preservation test against a digest-pinned PostgreSQL service.

Verifier selection is no longer hard-coded by the CLI. A skill manifest may bind an explicit command-verifier argv, timeout, and output limit; that exact descriptor is frozen and reused for run, resume, receipt, and apply. Legacy major-v1 manifests without the field retain the Spring compatibility route. Apply re-verification runs in a fresh copy of the applied candidate, so verifier source drift cannot contaminate the user's project.

Paired benchmark direction

Milestone 2 adds an honest paired comparison between direct Codex execution and the harness treatment. It keeps identical task baselines, provider settings, and verifiers while measuring verified success, unsafe changes, pre-verification source mutation, tokens, latency, and orchestration overhead. Infrastructure and negative outcomes remain in the report instead of being filtered until an experiment appears to pass.

The protocol and claim boundary are documented in docs/BENCHMARK.md. Living reports are descriptive; there is no global benchmark pass gate and no universal-efficacy claim.

The frozen v0.2 decision cut finds insufficient comparative evidence to claim adaptive token, cost, or quality gains. The only protocol-valid live comparison is one Roomescape direct-versus-current-harness pilot: the harness succeeded where the direct arm did not, while using 151,237 more tokens and 49,697 ms more wall time. No compatible live ContextPack-only, routing-only, or routing-plus-repair ledger exists. Those features therefore remain opt-in. The canonical decision report is benchmarks/reports/adaptive-execution-v0.2/decision.jsonl with SHA-256 19434728e19e2887b0ea62989d13986b10e38f7a88c56135450ec837a5fce89f.

CLI contract

Every command outcome writes exactly one canonical JSONL record: success goes to stdout and failure goes to stderr. Help and version remain plain text.

believeme init --project ./my-project

believeme run \
  --project ./my-project \
  --skill ./skill-manifest.json \
  --executor deterministic \
  --input ./candidate-changes.json

believeme status <run-id> --project ./my-project
believeme receipt <run-id> --project ./my-project
believeme review <run-id> --project ./my-project
believeme run-session <session-id> \
  --project ./my-project \
  --skill ./skill-manifest.json \
  --input ./codex-task.json \
  --policy ./adaptive-policy.json \
  --context ./context-pack.json \
  --risk-tier low
believeme resume-session <session-id> --project ./my-project
believeme status-session <session-id> --project ./my-project
believeme review-session <session-id> --project ./my-project
believeme export-bundle <run-id> \
  --output ./run-evidence.jsonl \
  --project ./my-project
believeme verify-bundle --bundle ./run-evidence.jsonl
believeme attest-bundle \
  --bundle ./run-evidence.jsonl \
  --private-key ./signer-private.pem \
  --output ./run-evidence.attestation.jsonl
believeme verify-attestation \
  --bundle ./run-evidence.jsonl \
  --attestation ./run-evidence.attestation.jsonl \
  --public-key ./signer-public.pem
believeme apply <run-id> \
  --approve <receipt-sha256> \
  --project ./my-project

believeme apply-session <session-id> \
  --approve <winner-receipt-sha256> \
  --project ./my-project

The deterministic executor accepts a declared candidate change set. The Codex executor accepts a task and explicit file allowlist:

{
  "task": "Fix the owner cancellation deadline boundary.",
  "allowed_paths": [
    "src/main/java/com/roomescape/booking/application/ReservationService.java"
  ]
}

Use a manifest whose executor_kinds includes codex and whose input_schema_ref is codex-executor-input/v1, then pass --executor codex. The Codex CLI must be installed and authenticated with codex login. Missing authentication, a missing executable, timeouts, malformed events, and cleanup failures return typed infra_error records and never fall back to deterministic execution. The adapter follows the official Codex non-interactive mode contract.

Language-neutral verification is declared in the same manifest:

{
  "verifier": {
    "schema_version": { "major": 1 },
    "adapter_id": "command-verifier",
    "command": "node",
    "args": ["--test"],
    "timeout_ms": 30000,
    "max_output_bytes": 1048576
  }
}

The command is spawned as exact argv with shell: false, a fixed project cwd, a reduced environment, bounded combined output, timeout, and forced cleanup. On POSIX, the verifier receives its own process group; descendant residue is terminated and an uncleanable group fails closed instead of producing a pass. The verifier is user-authorized project code: this adapter does not provide a network sandbox or install dependencies. Project-relative executable paths must start with ./, resolve through regular non-symlink entries, and remain inside the project; bare executable names use the reduced PATH.

| Exit | Meaning | | ---: | --- | | 0 | command succeeded | | 2 | usage or input contract error | | 3 | safety refusal or unsupported persisted schema | | 4 | run or artifact not found | | 5 | verification failed | | 10 | infrastructure or unavailable-adapter failure |

Example success record:

{"command":"run","data":{"lifecycle_state":"receipted","run_id":"run-..."},"schema_version":{"major":1},"status":"ok"}

The complete record also includes the receipt hash, artifact root, and state directory. The CLI is covered both as a source process and after installing an npm pack tarball into a clean temporary project. The installed tarball proof also repairs and applies a dependency-free Node reservation policy through the manifest-selected command verifier, demonstrating that the CLI lifecycle is not tied to Spring.

believeme review is the approval-facing read-only companion to receipt. It re-validates the stored evidence binding and returns a bounded summary of the approved run without re-running the verifier, reading the current working tree, or exposing candidate bytes. Its stored_evidence_verified status describes stored canonical bytes, receipt hash links, minimal result/verifier semantics, and run-state binding only; it is not a signature, a fresh verifier run, or a current-source freshness claim.

believeme status-session reads validated adaptive-session artifacts without creating state directories, taking a session lock, resuming a child, or running a verifier. It distinguishes in-progress, completed, and terminal parent-failure state while returning only bounded hashes and identifiers. believeme review-session requires a completed session, validates the frozen input, ordered attempt checkpoints, and final session receipt, and validates the winning child receipt when one exists. adaptive_session_verified describes stored content binding only: non-winning attempt hashes remain session-bound pointers, and neither command proves identity, freshness, attestation, or a new verifier execution.

CLI-created adaptive execution freezes the canonical project/state paths, skill manifest, Codex task input, execution policy, ContextPack, risk tier, retry allowlist, and codex-cli adapter before any adaptive child claim. The selected model and reasoning aliases are admitted only from that frozen policy and are passed to the existing Codex transport as exact configuration. run-session never applies candidate changes. resume-session accepts no authority overrides and resumes a claimed child under its existing identity; legacy library-created sessions without a launch binding remain readable and applicable but are not CLI-resumable.

believeme export-bundle writes the same validated stored evidence as one deterministic canonical JSONL file. The output contains candidate source bytes in base64, so export is explicit, refuses overwrite, and creates the file with private 0600 permissions subject to a stricter process umask. The parent must already be a real directory path, and the encoded file is limited to 64 MiB. Two exports of unchanged stored evidence are byte-identical.

believeme verify-bundle reads only the supplied regular file: it does not need the original project or .harness, does not rerun the verifier, and does not compare current source. Its portable_evidence_verified status means the canonical file, receipt digest, embedded verification/result digests, and their run/executor semantics are internally consistent. The unsigned bundle does not prove identity, provenance, freshness, or independent execution, and it cannot be imported, approved, or applied.

Signer evidence is an optional detached layer that leaves those unsigned bundle bytes and semantics unchanged. It is available in v0.4.0 and later packages:

chmod 600 signer-private.pem
believeme attest-bundle \
  --bundle run.jsonl \
  --private-key signer-private.pem \
  --output run.attestation.jsonl

believeme verify-attestation \
  --bundle run.jsonl \
  --attestation run.attestation.jsonl \
  --public-key signer-public.pem

The v1 mode accepts an Ed25519 PKCS8 private key and an SPKI public key, uses no network or runtime dependency, and signs the exact canonical bundle bytes. A successful bundle_attestation_verified result proves possession of the caller-trusted key identified by its DER-SPKI SHA-256 fingerprint. Key ownership, distribution, rotation, and revocation are external policy. The stable fingerprint can correlate signatures, and no timestamp, person identity, freshness, transparency-log inclusion, trusted execution, approval, import, or apply authority is claimed. Existing verify-bundle remains the unsigned compatibility path.

Development

Node.js 24 LTS or later is required.

Apply locks are immutable owner-token files. If an apply.recovery.lock.jsonl file remains after an interrupted recovery attempt, the harness preserves it as evidence and refuses further apply attempts until a manual investigation removes or archives that recovery lock.

Interrupted runs resume only after revalidating the frozen input, plan, manifest, source-tree, executor kind, and evidence hashes. A verified run with a complete receipt can finish its lifecycle without executing the candidate again.

npm ci
npm test
npm run check
npm run pack:check

An authenticated, usage-consuming Roomescape smoke is opt-in:

npm run smoke:codex

It stops at receipted and proves that the original source remains unchanged; it does not auto-approve or apply the generated candidate.

The paired A/B pilot is also opt-in and consumes two Codex runs:

npm run benchmark:smoke:codex

It writes a replay-verified canonical JSONL ledger and digest under a temporary benchmark directory. A one-pair result is labelled pilot; it validates the measurement path but is not presented as efficacy evidence.

Release and publication

The package identity is @poketopa/believe-me. Public releases originate from a reviewed commit on main, an immutable v* tag, and a published GitHub Release. The release-only workflow validates the tag, package metadata, locked metadata, runtime identity, tests, and packed files before one final npm publish --access public through npm Trusted Publishing. The workflow also requires the protected GitHub npm environment and the repository variable NPM_PUBLISH_ENABLED=true.

The prior owner-source licensing blocker for the three listed adapted components is resolved by the durable rights-holder confirmation in Issue #22 and recorded in THIRD_PARTY_NOTICES.md. See CHANGELOG.md and docs/RELEASING.md for the release record and verification procedure.

Provenance

The product selectively learns from the current harness project, jyt6640/persona-harness, and bhoon716/skill-forge. Reused source and adapted contracts must be recorded in THIRD_PARTY_NOTICES.md before publication.

License

Apache-2.0. See LICENSE.