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

@godman-protocols/score

v0.3.0

Published

Sovereign Constitutional Output Rating Engine — self-scoring rubric

Readme

SCORE — Scoring and Reputation for Agent Outputs

npm version License: Apache-2.0 Node: >=20

v0.2.0 · Apache 2.0 · @godman-protocols/score · Node 20+ / Deno 1.40+

SCORE is an open protocol for evaluating AI agent outputs against weighted rubrics, calculating time-decayed reputation, and maintaining a signed audit trail — so multi-agent systems can objectively measure who does good work.

npx skills add https://github.com/godman-protocols/score
# or
npm install @godman-protocols/score

The Problem

In a multi-agent swarm, how do you know which agents produce quality output? Without a scoring protocol:

  • No accountability — bad outputs circulate with no feedback signal
  • No improvement — agents can't learn what worked and what didn't
  • No trust basis — new agents have no reputation, established agents coast on past performance

SCORE provides the missing quality layer: define what "good" means (rubrics), measure it (evaluations), track it over time (reputation), and prove it (audit trail).


Core Concepts

| Concept | What it is | |---------|-----------| | Rubric | A named set of weighted criteria that define "quality" for a task type | | Criterion | A single dimension of quality (e.g. accuracy, clarity) with a weight | | Evaluation | A scored assessment of one agent output against a rubric | | Reputation | A time-decayed aggregate score across all evaluations for an agent | | AuditEntry | A signed, append-only record linking evaluation to agent and score |


Quickstart

import {
  createRubric, evaluate, calculateReputation, createAuditEntry,
} from '@godman-protocols/score';

// 1. Define a rubric for content quality
const rubric = createRubric('Content Quality', [
  { name: 'accuracy',    description: 'Factual correctness',  weight: 0.4 },
  { name: 'clarity',     description: 'Easy to understand',   weight: 0.3 },
  { name: 'engagement',  description: 'Holds attention',      weight: 0.3 },
]);

// 2. Evaluate an agent's output
const SECRET = process.env.EVALUATOR_SECRET!;
const scores: Record<string, number> = {};
rubric.criteria.forEach((c, i) => {
  scores[c.id] = [0.9, 0.85, 0.75][i]; // accuracy=0.9, clarity=0.85, engagement=0.75
});

const ev = evaluate(rubric, 'did:kognai:messi', 'vlog-mn3abc', scores, 'did:kognai:sherlock', SECRET);
// → { compositeScore: 0.845, ... }

// 3. Build reputation over time
const reputation = calculateReputation('did:kognai:messi', [ev]);
// → { score: 0.845, evaluationCount: 1 }

// 4. Create audit trail
const audit = createAuditEntry(ev, SECRET);
// → { evaluationId: '...', signature: '...' }

API Summary

Rubric & Evaluation (src/core.ts)

| Function | Description | |----------|-------------| | createRubric(name, criteria, options?) | Create a weighted scoring rubric | | evaluate(rubric, agentId, outputRef, scores, evaluatedBy, secret, options?) | Score an output against a rubric |

Reputation (src/core.ts)

| Function | Description | |----------|-------------| | calculateReputation(agentId, evaluations, decayRate?, asOf?) | Time-decayed reputation from evaluations |

Audit (src/core.ts)

| Function | Description | |----------|-------------| | createAuditEntry(evaluation, secret) | Create a signed audit trail entry |


Reputation Decay

SCORE uses exponential time decay to weight recent performance more heavily:

weight = exp(-decayRate × ageDays)

Default decay rate: 0.01 (half-life ~69 days). An evaluation from 69 days ago counts half as much as today's. This prevents agents from coasting on old reputation while their recent output degrades.


Security Model

SCORE v0.2 uses HMAC-SHA256 for evaluation signing. The signature covers: evaluation ID, agent ID, output reference, composite score, and timestamp.

Production upgrade path:

  • Replace HMAC with Ed25519 for evaluator identity verification
  • Store audit entries on-chain for cross-organisation reputation portability
  • Add ZK proofs for privacy-preserving reputation queries

Compatibility

| System | How it connects | |--------|----------------| | Kognai (QC Gate) | SCORE rubrics formalise what the SCS-001 Quality Control Gate already checks | | PACT (mandates) | Mandate execution outcomes feed into SCORE evaluations | | SIGNAL (events) | Evaluations published as score.evaluation.completed events | | SOUL (constitution) | Constitutional violations auto-score 0.0 on relevant criteria |


Related Protocols

| Protocol | Purpose | |----------|---------| | PACT | Agent coordination and trust | | LAX | Latency-aware execution scheduling | | SCORE (this repo) | Scoring and reputation for agent outputs | | AMF | Agent Message Format | | DRS | Dynamic Resource Scheduling | | SOUL | Constitutional constraints and safety | | SIGNAL | Event bus and pub/sub for agent swarms |


Roadmap

  • [x] Rubric creation with weight validation (v0.2)
  • [x] Signed evaluations with composite scoring (v0.2)
  • [x] Time-decayed reputation calculation (v0.2)
  • [x] Signed audit trail entries (v0.2)
  • [ ] Ed25519 evaluation signing (v0.3)
  • [ ] Persistent evaluation store (Supabase / SQLite) (v0.3)
  • [ ] Rubric versioning + migration (v0.4)
  • [ ] Python SDK (v0.5)
  • [ ] Cross-organisation reputation federation (v0.5)

License

Apache License 2.0 — see LICENSE

Part of the Godman Protocols portfolio.