{"_id":"@ai-manifests/adp-agent","_rev":"5-7050751792d8026e56f4d6973f8596b5","name":"@ai-manifests/adp-agent","dist-tags":{"latest":"0.7.0"},"versions":{"0.1.0":{"name":"@ai-manifests/adp-agent","version":"0.1.0","keywords":["adp","agent-deliberation-protocol","multi-agent","consensus","calibration"],"license":"CC0-1.0","_id":"@ai-manifests/adp-agent@0.1.0","maintainers":[{"name":"logikonline","email":"dave@marketally.com"}],"homepage":"https://adp-manifest.dev","dist":{"shasum":"100cde77c540c1ff6dd4f46a4e2d2d97142459f0","tarball":"https://registry.npmjs.org/@ai-manifests/adp-agent/-/adp-agent-0.1.0.tgz","fileCount":70,"integrity":"sha512-U/dD3SuKH+xy0HbMMaQ7SkB0Ja6/54/p0x0AMygQlG3b9urBC5pijKriQ0wpV2ZZm7VuKjQVC1/C0UwjlKiKRw==","signatures":[{"sig":"MEUCIQDvCZnhh2nj7qgtiz2dFZ6ig2hl0ky8majDesbIfV/GdAIgNhxPljG2SEmRIExrg3futF4Awwx0dwk9ykYkuAuiB3U=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":249739},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./types":{"types":"./dist/types.d.ts","import":"./dist/types.js"},"./journal":{"types":"./dist/journal.d.ts","import":"./dist/journal.js"},"./journal-sqlite":{"types":"./dist/journal-sqlite.d.ts","import":"./dist/journal-sqlite.js"}},"gitHead":"62285258a50b36bb4e5122346201ba5491fe6c39","scripts":{"test":"vitest run","build":"tsc -b","clean":"rm -rf dist tsconfig.tsbuildinfo"},"_npmUser":{"name":"logikonline","email":"dave@marketally.com"},"repository":{"url":"https://git.marketally.com/ai-manifests/adp-agent","type":"git","directory":"packages/agent"},"_npmVersion":"10.8.2","description":"Reference implementation of the Agent Deliberation Protocol (ADP). Protocol runtime for agents that deliberate, sign proposals, journal outcomes, and publish signed calibration snapshots.","directories":{},"_nodeVersion":"20.19.4","dependencies":{"zod":"^3.25.76","express":"^4.21.0","@noble/ed25519":"^2.3.0","@modelcontextprotocol/sdk":"^1.29.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"@types/node":"^22.0.0","@types/express":"^5.0.0","@types/better-sqlite3":"^7.6.13"},"peerDependencies":{"better-sqlite3":"^12.8.0"},"peerDependenciesMeta":{"better-sqlite3":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/adp-agent_0.1.0_1776119915538_0.3399870504276483","host":"s3://npm-registry-packages-npm-production"}},"0.2.0":{"name":"@ai-manifests/adp-agent","version":"0.2.0","keywords":["adp","agent-deliberation-protocol","multi-agent","consensus","calibration"],"author":{"name":"David H. Friedel Jr. — MarketAlly"},"license":"Apache-2.0","_id":"@ai-manifests/adp-agent@0.2.0","maintainers":[{"name":"logikonline","email":"dave@marketally.com"}],"homepage":"https://adp-manifest.dev","dist":{"shasum":"fb64994c5a5095727e3ded3d95a0a220faa6cb6a","tarball":"https://registry.npmjs.org/@ai-manifests/adp-agent/-/adp-agent-0.2.0.tgz","fileCount":73,"integrity":"sha512-WvlD204tGnkHAoMTWZ6WODnWBODfu52WHE9Rj+pekf2NH19ayWKvr+le9zw9ThBIufgzUBX0P705zbBY8803fQ==","signatures":[{"sig":"MEYCIQDmt7N/8+qkir/vNK7FBTB2Yv/AxZgM9JAhEp2iQLv/5wIhAO+6/dxDr1j5Ew5+3haQCRKZO/5Kwp2EUw8fTV/y3eoc","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":263387},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./types":{"types":"./dist/types.d.ts","import":"./dist/types.js"},"./journal":{"types":"./dist/journal.d.ts","import":"./dist/journal.js"},"./journal-sqlite":{"types":"./dist/journal-sqlite.d.ts","import":"./dist/journal-sqlite.js"}},"gitHead":"4ae965a8ff7c09346a61d915f93ab57ab1344425","scripts":{"test":"vitest run","build":"tsc -b","clean":"rm -rf dist tsconfig.tsbuildinfo"},"_npmUser":{"name":"logikonline","email":"dave@marketally.com"},"repository":{"url":"https://git.marketally.com/ai-manifests/adp-agent","type":"git","directory":"packages/agent"},"_npmVersion":"10.8.2","description":"Reference implementation of the Agent Deliberation Protocol (ADP). Protocol runtime for agents that deliberate, sign proposals, journal outcomes, and publish signed calibration snapshots.","directories":{},"_nodeVersion":"20.19.4","dependencies":{"zod":"^3.25.76","express":"^4.21.0","@noble/ed25519":"^2.3.0","@modelcontextprotocol/sdk":"^1.29.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"@types/node":"^22.0.0","@types/express":"^5.0.0","@types/better-sqlite3":"^7.6.13"},"peerDependencies":{"better-sqlite3":"^12.8.0"},"peerDependenciesMeta":{"better-sqlite3":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/adp-agent_0.2.0_1776150218225_0.7552346344411864","host":"s3://npm-registry-packages-npm-production"}},"0.2.1":{"name":"@ai-manifests/adp-agent","version":"0.2.1","keywords":["adp","agent-deliberation-protocol","multi-agent","consensus","calibration"],"author":{"name":"David H. Friedel Jr. — MarketAlly"},"license":"Apache-2.0","_id":"@ai-manifests/adp-agent@0.2.1","maintainers":[{"name":"logikonline","email":"dave@marketally.com"}],"homepage":"https://adp-manifest.dev","dist":{"shasum":"7975cac6d5ba21d2b104a6bc4085b9069f9437e7","tarball":"https://registry.npmjs.org/@ai-manifests/adp-agent/-/adp-agent-0.2.1.tgz","fileCount":73,"integrity":"sha512-jNvf3xbnypgC73DPI6KEe9ia8DFWVi+ENpC9gt+iCA4GXh4COKiE0Phz+9mxH0MJE13CJM6JOf2VT9KZ+JeD5g==","signatures":[{"sig":"MEQCIAgoyVLjWH9hO/XHXuRNBbH/nxLu6b8okijuDjECZtGAAiA3hgH4SXuiNtv18D6I9ji7iYT3lKdxg+Gn+B7kTnkFmg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":263920},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./types":{"types":"./dist/types.d.ts","import":"./dist/types.js"},"./journal":{"types":"./dist/journal.d.ts","import":"./dist/journal.js"},"./journal-sqlite":{"types":"./dist/journal-sqlite.d.ts","import":"./dist/journal-sqlite.js"}},"gitHead":"4ae965a8ff7c09346a61d915f93ab57ab1344425","scripts":{"test":"vitest run","build":"tsc -b","clean":"rm -rf dist tsconfig.tsbuildinfo"},"_npmUser":{"name":"logikonline","email":"dave@marketally.com"},"repository":{"url":"https://git.marketally.com/ai-manifests/adp-agent","type":"git","directory":"packages/agent"},"_npmVersion":"10.8.2","description":"Reference implementation of the Agent Deliberation Protocol (ADP). Protocol runtime for agents that deliberate, sign proposals, journal outcomes, and publish signed calibration snapshots.","directories":{},"_nodeVersion":"20.19.4","dependencies":{"zod":"^3.25.76","express":"^4.21.0","@noble/ed25519":"^2.3.0","@modelcontextprotocol/sdk":"^1.29.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"@types/node":"^22.0.0","@types/express":"^5.0.0","@types/better-sqlite3":"^7.6.13"},"peerDependencies":{"better-sqlite3":"^12.8.0"},"peerDependenciesMeta":{"better-sqlite3":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/adp-agent_0.2.1_1776150431289_0.997099916725162","host":"s3://npm-registry-packages-npm-production"}},"0.3.0":{"name":"@ai-manifests/adp-agent","version":"0.3.0","keywords":["adp","agent-deliberation-protocol","multi-agent","consensus","calibration"],"author":{"name":"David H. Friedel Jr. — MarketAlly Pte Ltd"},"license":"Apache-2.0","_id":"@ai-manifests/adp-agent@0.3.0","maintainers":[{"name":"logikonline","email":"dave@marketally.com"}],"homepage":"https://adp-manifest.dev","dist":{"shasum":"5442dacf785c9cb63aba9eb5ffe204a4fb5315c2","tarball":"https://registry.npmjs.org/@ai-manifests/adp-agent/-/adp-agent-0.3.0.tgz","fileCount":73,"integrity":"sha512-8fSWbz8IY/qIx+JlBsYq4dodTDr4OcTEoNVVCAfhsKZaBX7kjtSCIvOldY3Gw6Aa46voK3227FOgoKJSpJM3iw==","signatures":[{"sig":"MEQCIAUCxliV01bS77JjoY+T7d00eZux1jphznGQRiXeck/tAiBi3PJN8hQQPyvWAMfbYP8Vb6JC7VBko+3yvQtcp4Y7Pg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":270430},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./types":{"types":"./dist/types.d.ts","import":"./dist/types.js"},"./journal":{"types":"./dist/journal.d.ts","import":"./dist/journal.js"},"./journal-sqlite":{"types":"./dist/journal-sqlite.d.ts","import":"./dist/journal-sqlite.js"}},"gitHead":"b975fa1e6d1eaa04e80798d67d65dba3ef6b325c","scripts":{"test":"vitest run","build":"tsc -b","clean":"rm -rf dist tsconfig.tsbuildinfo"},"_npmUser":{"name":"logikonline","email":"dave@marketally.com"},"repository":{"url":"https://git.marketally.com/ai-manifests/adp-agent","type":"git","directory":"packages/agent"},"_npmVersion":"10.8.2","description":"Reference implementation of the Agent Deliberation Protocol (ADP). Protocol runtime for agents that deliberate, sign proposals, journal outcomes, and publish signed calibration snapshots.","directories":{},"_nodeVersion":"20.19.4","dependencies":{"zod":"^3.25.76","express":"^4.21.0","@noble/ed25519":"^2.3.0","@modelcontextprotocol/sdk":"^1.29.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"@types/node":"^22.0.0","@types/express":"^5.0.0","@types/better-sqlite3":"^7.6.13"},"peerDependencies":{"better-sqlite3":"^12.8.0"},"peerDependenciesMeta":{"better-sqlite3":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/adp-agent_0.3.0_1777236979090_0.11574577789009899","host":"s3://npm-registry-packages-npm-production"}},"0.7.0":{"name":"@ai-manifests/adp-agent","version":"0.7.0","description":"Reference implementation of the Agent Deliberation Protocol (ADP). Protocol runtime for agents that deliberate, sign proposals, journal outcomes, and publish signed calibration snapshots.","author":{"name":"David H. Friedel Jr. — MarketAlly Pte Ltd"},"type":"module","publishConfig":{"access":"public"},"main":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"import":"./dist/index.js","types":"./dist/index.d.ts"},"./types":{"import":"./dist/types.js","types":"./dist/types.d.ts"},"./journal":{"import":"./dist/journal.js","types":"./dist/journal.d.ts"},"./journal-sqlite":{"import":"./dist/journal-sqlite.js","types":"./dist/journal-sqlite.d.ts"}},"scripts":{"build":"tsc -b","clean":"rm -rf dist tsconfig.tsbuildinfo","test":"vitest run"},"keywords":["adp","agent-deliberation-protocol","multi-agent","consensus","calibration"],"license":"Apache-2.0","homepage":"https://adp-manifest.dev","repository":{"type":"git","url":"https://git.marketally.com/ai-manifests/adp-agent","directory":"packages/agent"},"dependencies":{"@modelcontextprotocol/sdk":"^1.29.0","@noble/ed25519":"^2.3.0","express":"^4.21.0","zod":"^3.25.76"},"peerDependencies":{"better-sqlite3":"^12.8.0"},"peerDependenciesMeta":{"better-sqlite3":{"optional":true}},"devDependencies":{"@types/better-sqlite3":"^7.6.13","@types/express":"^5.0.0","@types/node":"^22.0.0"},"_id":"@ai-manifests/adp-agent@0.7.0","gitHead":"1a08a9079c8293c33f0aefcd3f410cc4530be23b","_nodeVersion":"20.19.4","_npmVersion":"10.8.2","dist":{"integrity":"sha512-NmZnCh9j/7oi1OVyHNYM9xu9YQLfzHQz5tIIGCqM6JGlhMtBwXxSCWQuGyZvkE/x1VnwRWR+xS5j//duP4xSXg==","shasum":"21ef54b3202488d607a6df9099f9dbc99147c4c4","tarball":"https://registry.npmjs.org/@ai-manifests/adp-agent/-/adp-agent-0.7.0.tgz","fileCount":81,"unpackedSize":331042,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIBHBd88q2DzFnpmLgC067XSMZtnq7lbELIzNuyXY8YesAiEAmcrjkFhID/Dss8gsrXP1L9+iYVAbc6mCaCzldc+Jn6g="}]},"_npmUser":{"name":"logikonline","email":"dave@marketally.com"},"directories":{},"maintainers":[{"name":"logikonline","email":"dave@marketally.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/adp-agent_0.7.0_1780369366533_0.591258270639869"},"_hasShrinkwrap":false}},"time":{"created":"2026-04-13T22:38:35.440Z","modified":"2026-06-02T03:02:46.832Z","0.1.0":"2026-04-13T22:38:35.658Z","0.2.0":"2026-04-14T07:03:38.406Z","0.2.1":"2026-04-14T07:07:11.421Z","0.3.0":"2026-04-26T20:56:19.384Z","0.7.0":"2026-06-02T03:02:46.728Z"},"author":{"name":"David H. Friedel Jr. — MarketAlly Pte Ltd"},"license":"Apache-2.0","homepage":"https://adp-manifest.dev","keywords":["adp","agent-deliberation-protocol","multi-agent","consensus","calibration"],"repository":{"type":"git","url":"https://git.marketally.com/ai-manifests/adp-agent","directory":"packages/agent"},"description":"Reference implementation of the Agent Deliberation Protocol (ADP). Protocol runtime for agents that deliberate, sign proposals, journal outcomes, and publish signed calibration snapshots.","maintainers":[{"name":"logikonline","email":"dave@marketally.com"}],"readme":"# @ai-manifests/adp-agent\n\n[![npm](https://img.shields.io/npm/v/@ai-manifests/adp-agent.svg?label=npm)](https://www.npmjs.com/package/@ai-manifests/adp-agent)\n[![Downloads](https://img.shields.io/npm/dm/@ai-manifests/adp-agent.svg)](https://www.npmjs.com/package/@ai-manifests/adp-agent)\n[![Node](https://img.shields.io/badge/node-20%2B-blue.svg)](https://nodejs.org/)\n[![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](LICENSE)\n[![Spec](https://img.shields.io/badge/spec-adp--manifest.dev-informational)](https://adp-manifest.dev)\n\nReference implementation of the [Agent Deliberation Protocol](https://adp-manifest.dev). Build a federation-ready agent with:\n\n```bash\nnpm install @ai-manifests/adp-agent\n```\n\n## Minimal use\n\n```ts\nimport { AdpAgent, type AgentConfig } from '@ai-manifests/adp-agent';\n\nconst config: AgentConfig = {\n  agentId: 'did:adp:my-agent-v1',\n  port: 3000,\n  domain: 'my-agent.example.com',\n  decisionClasses: ['code.correctness'],\n  authorities: { 'code.correctness': 0.7 },\n  stakeMagnitude: 'medium',\n  defaultVote: 'approve',\n  defaultConfidence: 0.65,\n  dissentConditions: ['if any test marked critical regresses'],\n  falsificationResponses: {},\n  journalDir: './journal',\n  registryUrl: 'https://aar.example.com', // optional — enables AAP/AAR reputation\n};\n\nconst agent = new AdpAgent(config);\nawait agent.start();\n```\n\nThat's all. The library handles:\n\n- **Manifest endpoint** at `/.well-known/adp-manifest.json`\n- **Signed calibration snapshots** at `/.well-known/adp-calibration.json` (ADJ §7.4)\n- **Deliberation API** (`POST /api/deliberate`, `POST /api/propose`, `POST /api/respond-falsification`)\n- **Outcome recording** (`POST /api/record-outcome`)\n- **ADJ query contract** (`/adj/v0/calibration`, `/adj/v0/deliberation/:id`, `/adj/v0/deliberations`, `/adj/v0/outcome/:id`, `/adj/v0/entries`)\n- **ACB budget endpoints** (`POST /api/budget`) — when `acbDefaults` is configured\n- **AAP/AAR reputation** — when `registryUrl` is set, acknowledging a peer's falsification emits a signed AAP `RECOGNITION` event to the AAR registry (and peer reputation can be read back)\n- **MCP tool server** at `/mcp` — agents can call each other's ADP/ADJ operations as MCP tools\n- **Health check** at `/healthz`\n- **Ed25519 proposal signing**, **Brier-score calibration**, **journal append/query**\n\nYou only write the **evaluator** — the thing that produces votes. See [`adp-agent-template`](https://github.com/ai-manifests/adp-agent-template) for the full pattern.\n\n## AdpAgent class\n\n```ts\nclass AdpAgent {\n  constructor(config: AgentConfig, options?: AdpAgentOptions);\n\n  // Lifecycle\n  start(port?: number): Promise<Server>;\n  stop(): Promise<void>;\n  afterStart(fn: () => void | Promise<void>): this;\n  beforeStop(fn: () => void | Promise<void>): this;\n\n  // Access\n  getApp(): Express;             // Mount your own routes on top\n  getJournal(): JournalStore;    // For admin/testing\n  getConfig(): Readonly<AgentConfig>;\n}\n\ninterface AdpAgentOptions {\n  journal?: JournalStore;        // Defaults to JsonlJournal(config.journalDir)\n  app?: Express;                 // Defaults to a fresh express() instance\n  skipBodyParser?: boolean;      // Skip default express.json() middleware\n}\n```\n\n## Custom journal\n\nDefault is JSONL. For production, use SQLite:\n\n```ts\nimport { SqliteJournal } from '@ai-manifests/adp-agent/journal-sqlite';\nimport { AdpAgent } from '@ai-manifests/adp-agent';\n\nconst journal = new SqliteJournal('/var/lib/adp/journal.db');\nconst agent = new AdpAgent(config, { journal });\n```\n\n`better-sqlite3` is an optional peer dependency — install it explicitly when using `SqliteJournal`:\n\n```bash\nnpm install better-sqlite3\n```\n\nOr bring your own `JournalStore` implementation (Postgres, event-sourced log, whatever). The interface is:\n\n```ts\ninterface JournalStore {\n  append(entry: JournalEntry): void;\n  appendBatch(entries: JournalEntry[]): void;\n  getDeliberation(deliberationId: string): JournalEntry[];\n  getOutcome(deliberationId: string): JournalEntry | null;\n  getCalibration(agentId: string, domain: string): CalibrationScore;\n  listDeliberationsSince(since: Date, limit: number): DeliberationRecord[];\n}\n```\n\n## Public exports\n\nAll exports live on the default entry point. Deep imports are not supported.\n\n- **Class**: `AdpAgent`\n- **Types**: `AgentConfig`, `AgentManifest`, `Proposal`, `JournalEntry`, `AcbBudget`, `CalibrationAnchorConfig`, and every other protocol type\n- **Journal**: `JournalStore`, `JsonlJournal`, `DeliberationRecord` (plus `SqliteJournal` via the `@ai-manifests/adp-agent/journal-sqlite` subpath)\n- **Protocol primitives**: `computeWeight`, `computeTally`, `determineTermination`, `computeCalibration`, `generateId`\n- **Deliberation**: `PeerDeliberation`, `HttpTransport`, `DeliberationResult`, `PeerTransport`\n- **Signing**: `generateKeyPair`, `signProposal`, `verifyProposal`, `canonicalize`\n- **Calibration snapshot (ADJ §7.4)**: `buildSnapshot`, `buildSignedEnvelope`, `signSnapshot`, `verifySnapshot`, `computeJournalHash`, `extractScoringPairs`\n- **Calibration verifier**: `verifyPeerCalibration`, `applyDivergencePenalty`\n- **ACB**: `computeDisagreementMagnitude`, `selectRoutine`, `computeCheapDraw`, `computeExpensiveDraw`, `computeHabitDiscount`, `buildSettlementRecord`, `buildBudgetCommittedEntry`, `budgetFromDefaults`, `ContributionTracker`, `distributeEpistemic`, `distributeSubstrate`, `DEFAULT_PRICING`, `DEFAULT_SETTLEMENT`, `MAX_HABIT_DISCOUNT`\n- **AAP/AAR reputation**: `buildSignedAck`, `submitAck`, `emitAck`, `getReputationScore` (plus types `WireAapEvent`, `EmitAckParams`)\n- **Evaluator**: `evaluate`\n- **MCP**: `createMcpServer`, `mountMcpEndpoints`\n- **Middleware**: `createAuthMiddleware`, `createJournalValidator`, `createRateLimiter`, `authHeaders`, `validateEntry`\n\n## AAP / AAR reputation\n\nSet the optional `registryUrl` config field to the base URL of your [AAR](https://aar-manifest.dev) registry (the acknowledgment aggregator) to close the loop from **contribution → acknowledgment → reputation → future deliberation weighting**. When unset, behaviour is unchanged.\n\nWith `registryUrl` configured, whenever this agent **acknowledges** a peer's falsifying evidence in `POST /api/respond-falsification`, it emits a signed [AAP](https://aap-manifest.dev) `RECOGNITION` event (AAP §4.1) **from its own identity** to the evidence agent and submits it to the AAR registry. Because each acknowledging agent recognizes from its own identity, the recognized agent accrues **multi-issuer** reputation that clears AAR's §9 issuer-diversity floor. Emission is fire-and-forget — it never blocks or fails the deliberation.\n\nEvents are built in the spec snake_case wire shape and signed with the runtime's own Ed25519 signer + JCS canonicalizer, so the registry verifies them the same way it verifies any AAP event. Reading reputation returns a normalized `[0, 1)` score.\n\nThe reputation helpers are exported from the package root for direct use:\n\n```ts\nimport { buildSignedAck, submitAck, emitAck, getReputationScore } from '@ai-manifests/adp-agent';\n\n// Build + submit in one fire-and-forget call (what the handler uses internally):\nawait emitAck({ registryUrl, signer, fromAgentId, toAgentId, deliberationId });\n\n// Read a peer's reputation for weighting:\nconst score = await getReputationScore(registryUrl, 'did:adp:peer-v1'); // [0, 1)\n```\n\nSee the companion [`aap-manifest`](https://aap-manifest.dev) and [`aar-manifest`](https://aar-manifest.dev) specs for the recognition event format and reputation aggregation rules.\n\n## Optional: chain anchoring\n\nFor third-party tamper evidence, install the optional anchor package:\n\n```bash\nnpm install @ai-manifests/adp-agent-anchor\n```\n\nSee [`adp-agent-anchor` README](../agent-anchor/README.md) for wiring.\n\n## License\n\nApache-2.0 — see [`LICENSE`](LICENSE) for the full text.\n","readmeFilename":"README.md"}