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

@agenticprimitives/verification-receipts

v0.0.0-alpha.3

Published

Verifier-retained verification receipts (spec 303): commitment-split evidence that signature + scope + revocation were checked at time T. Public receipt = HMAC commitments only; private detail = vault-held opening material.

Downloads

443

Readme

@agenticprimitives/verification-receipts

Verifier-retained verification receipts — the portable evidence that a verifier checked an agent's authority at execution time (signature, scope vs. transaction parameters, current revocation status), retained independently by the counterparty.

Spec: specs/303-verification-receipts.md · Doctrine: ADR-0010 amendment 2026-07-07 ("the Smart Agent address is the accountability root, not the default presentation identifier") · Standing measurement: acting-on-behalf alignment audit.

Why

When an agent transacts before its principal reviews the action, the counterparty's protection is the verifier's diligence — and diligence that leaves no retained artifact is unprovable. This package produces that artifact. Naively, a rich receipt (principal address, tool name, args hash, exact timestamp) would also be a correlation surface; receipts here are born privacy-split:

  • Public receipt (VerificationReceiptV1) — exportable, counterparty-retained. Carries the verifier identity (services are public), the decision, coarse reason, revocation evidence (chain/block), a UTC-day time bucket, already-public artifact hashes (delegation / invocation proof), and HMAC commitments — never raw values — for the principal and arguments.
  • Private detail (VerificationReceiptDetailV1) — vault-resident. Raw principal, tool, args hash, exact time, and the receiptKey that opens the public commitments. Destroying the key and detail degrades the public receipt to an anonymous verdict whose signature still verifies — the GDPR-erasure-friendly path.

Use

import {
  mintVerificationReceipt,
  verifyVerificationReceipt,
  openReceipt,
} from '@agenticprimitives/verification-receipts';

// At the verify pipeline's terminal point (allow AND deny):
const { receipt, detail } = await mintVerificationReceipt(
  {
    verifier: serviceSa,
    decision: 'allow',
    reasonCode: 'verified',
    principal, toolName, argsHash,
    delegationHash, invocationProofHash,
    scopeDecision: 'in_scope',
    status: { revocation: 'active', chainId, blockNumber, blockHash },
    verifiedAt: new Date().toISOString(),
    verifierPolicyVersion: 'policy-v1',
  },
  { sign: (receiptHash) => hostSigner.sign(receiptHash) }, // injected — KMS/EIP-712/ECDSA
);
// → receipt: return to the caller (`_meta.ap_receipt`) + durable sink
// → detail:  write to the principal's vault (classification `receipt.private`)

// Counterparty, offline, no AP runtime:
const ok = await verifyVerificationReceipt(receipt, { verifySignature });

// Dispute: does the vault detail open this receipt?
const opens = await openReceipt(receipt, detail);

Signing and signature verification are injected ports — this package is dependency-free (WebCrypto only) and never picks a crypto mechanism for you. One scheme per deployment, no fallbacks.

Non-goals

The mint-point wiring, durable storage, and vault residency belong to mcp-runtime and consuming apps (spec 303 W2). Audit events remain @agenticprimitives/audit's job — receipts share hashes with audit rows (one incident, joinable evidence) but face the counterparty, not the substrate.

Status

w1-mint-verify — types, commitment profile, canonical hashing, mint/verify/open, unit suite. Runtime wiring (W2), A2A task receipts + ap verify-receipt CLI (W3), and relationship-record anchoring (W4) are tracked in the spec.