{"_id":"@ai-manifests/adp-manifest","_rev":"2-ef2d90dc96e582c87df4ab23505ea8a2","name":"@ai-manifests/adp-manifest","dist-tags":{"latest":"1.0.0"},"versions":{"0.3.0":{"name":"@ai-manifests/adp-manifest","version":"0.3.0","author":{"name":"David H. Friedel Jr. — MarketAlly Pte Ltd"},"license":"Apache-2.0","_id":"@ai-manifests/adp-manifest@0.3.0","maintainers":[{"name":"logikonline","email":"dave@marketally.com"}],"homepage":"https://adp-manifest.dev","dist":{"shasum":"723a467f44bce8a166dc2919b9362886d5da7c18","tarball":"https://registry.npmjs.org/@ai-manifests/adp-manifest/-/adp-manifest-0.3.0.tgz","fileCount":12,"integrity":"sha512-/r5Egkz4oTO/N6+nX4trjDWy8AjZfJcxDFkodgGbGVEgJKhTa/GvWAzkHAxsQOh7+Qk+hF2RZCKl/WHkOWPo+Q==","signatures":[{"sig":"MEYCIQDy/Ps7pU8cxjfQHNM4oPfyUVLpT6ZS5JnQdC1i20UdggIhAObyAJsZfLXUVbtXlhdgBJ4vMXO02hVoa8PpZqxzhfuU","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":27876},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","exports":{".":"./dist/index.js"},"gitHead":"2ba4ccacfd070d62b000fd9e3ebc240bdc6d10e7","scripts":{"test":"vitest run","build":"tsc"},"_npmUser":{"name":"logikonline","email":"dave@marketally.com"},"repository":{"url":"https://git.marketally.com/ai-manifests/adp-ref-lib-ts","type":"git"},"_npmVersion":"10.8.2","description":"TypeScript reference implementation of the Agent Deliberation Protocol (ADP)","directories":{},"_nodeVersion":"20.19.4","_hasShrinkwrap":false,"devDependencies":{"vitest":"^3.0.0","typescript":"^5.5.0"},"_npmOperationalInternal":{"tmp":"tmp/adp-manifest_0.3.0_1777236780613_0.30835561780453014","host":"s3://npm-registry-packages-npm-production"}},"1.0.0":{"name":"@ai-manifests/adp-manifest","version":"1.0.0","description":"TypeScript reference implementation of the Agent Deliberation Protocol (ADP)","author":{"name":"David H. Friedel Jr. — MarketAlly Pte Ltd"},"type":"module","main":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":"./dist/index.js"},"scripts":{"build":"tsc","test":"vitest run"},"license":"Apache-2.0","homepage":"https://adp-manifest.dev","repository":{"type":"git","url":"https://git.marketally.com/ai-manifests/adp-ref-lib-ts"},"devDependencies":{"typescript":"^5.5.0","vitest":"^3.0.0"},"_id":"@ai-manifests/adp-manifest@1.0.0","gitHead":"c504cddef26d17b7212747b2bb758469af73f966","_nodeVersion":"20.19.4","_npmVersion":"10.8.2","dist":{"integrity":"sha512-XyyU9umutVlsFoXxFOn6rsr8G3AJ19D95JSM9s782cyEVLRLMlzWcyqKfbfdCCYuwLbU0WY/3P5Ml+yfh7g8rQ==","shasum":"abb6d88196ad58e3c559138b07ecff9515068687","tarball":"https://registry.npmjs.org/@ai-manifests/adp-manifest/-/adp-manifest-1.0.0.tgz","fileCount":12,"unpackedSize":28414,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDeg/rxjWcW1ORIA90YsBa4UQoez+xlqg8g/ZvAyqixWwIgSJ013/WkJo2QvVkMFliLWQHRxVBUW4FsnVCP1ZZR97A="}]},"_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-manifest_1.0.0_1780369343336_0.820284302266183"},"_hasShrinkwrap":false}},"time":{"created":"2026-04-26T20:53:00.511Z","modified":"2026-06-02T03:02:23.709Z","0.3.0":"2026-04-26T20:53:00.743Z","1.0.0":"2026-06-02T03:02:23.579Z"},"author":{"name":"David H. Friedel Jr. — MarketAlly Pte Ltd"},"license":"Apache-2.0","homepage":"https://adp-manifest.dev","repository":{"type":"git","url":"https://git.marketally.com/ai-manifests/adp-ref-lib-ts"},"description":"TypeScript reference implementation of the Agent Deliberation Protocol (ADP)","maintainers":[{"name":"logikonline","email":"dave@marketally.com"}],"readme":"# adp-manifest\n\n[![npm](https://img.shields.io/npm/v/@ai-manifests/adp-manifest.svg?label=npm)](https://www.npmjs.com/package/@ai-manifests/adp-manifest)\n[![Downloads](https://img.shields.io/npm/dm/@ai-manifests/adp-manifest.svg)](https://www.npmjs.com/package/@ai-manifests/adp-manifest)\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\nA TypeScript reference implementation of the **Agent Deliberation Protocol (ADP)** specification — the consensus protocol that multi-agent systems use to reach calibrated, falsifiable decisions together. ADP defines proposals, weights, tallies, falsification, termination, and reversibility tiers.\n\nThis library is one of several reference implementations ([Python](https://github.com/ai-manifests/adp-ref-lib-py)) of the same spec. The spec itself is at [adp-manifest.dev](https://adp-manifest.dev) and is the source of truth; this library implements what the spec says.\n\nZero runtime dependencies. Pure TypeScript, ESM.\n\n> **Looking for a runnable agent?** This library is the protocol core — data types, weighting math, and an in-memory orchestrator. For a full federation-ready agent runtime with HTTP endpoints, journal persistence, Ed25519 signing, signed calibration snapshots, ACB pricing, and MCP integration, install [`@ai-manifests/adp-agent`](https://www.npmjs.com/package/@ai-manifests/adp-agent) instead.\n\n## Install\n\n```bash\nnpm install @ai-manifests/adp-manifest\n```\n\n## Quick example\n\n```ts\nimport {\n  DeliberationOrchestrator,\n  computeWeight,\n  Vote,\n  ReversibilityTier,\n  StakeMagnitude,\n  type Proposal,\n  type CalibrationScore,\n} from '@ai-manifests/adp-manifest';\n\nconst proposal: Proposal = {\n  agentId: 'did:adp:test-runner-v1',\n  domain: 'code.correctness',\n  vote: Vote.Approve,\n  confidence: 0.82,\n  stake: { magnitude: StakeMagnitude.Medium, domain: 'code.correctness' },\n  justification: { rationale: 'all tests pass', evidenceRefs: [] },\n  dissentConditions: [],\n};\n\nconst calibration: CalibrationScore = { value: 0.78, sampleSize: 42 };\nconst weight = computeWeight(proposal, calibration);\n// weight ≈ 0.82 × 0.78 × stakeFactor('medium') × sampleSizeDiscount(42)\n```\n\n## API\n\nAll exports are re-exported from the package root.\n\n### Enums & primitive types\n\n`Vote`, `ReversibilityTier`, `DissentConditionStatus`, `TerminationState`, `StakeMagnitude`\n\n### Protocol types\n\n`Proposal`, `ProposalAction`, `BlastRadius`, `DomainClaim`, `Justification`, `Stake`, `DissentCondition`, `VoteRevision`, `Amendment`, `CalibrationScore`, `AgentRegistration`, `TallyResult`\n\n### Weighting functions\n\n- `computeWeight(proposal, calibration)` — canonical proposal weight per ADP §4.2\n- `computeDecay(age, halfLife)` — time decay of calibration evidence\n- `stakeFactor(magnitude)` — maps `StakeMagnitude` to its numeric factor\n- `applySampleSizeDiscount(weight, n)` — Wilson-interval sample-size discount\n\n### Orchestrator\n\n- `DeliberationOrchestrator` — in-memory state machine that runs a deliberation through proposal → tally → falsification → termination. Takes a `DeliberationConfig`. Intended for prototypes, tests, and embedded-in-process use. For production distributed deliberation, see [`@ai-manifests/adp-agent`](https://www.npmjs.com/package/@ai-manifests/adp-agent).\n\n## Testing\n\n```bash\nnpm test\n```\n\n## Spec\n\nThis library implements the Agent Deliberation Protocol specification. Read the spec at [adp-manifest.dev](https://adp-manifest.dev). If the spec and this library disagree, the spec is correct and this is a bug.\n\n## License\n\nApache-2.0 — see [`LICENSE`](LICENSE) for the full license text and [`NOTICE`](NOTICE) for attribution.\n","readmeFilename":"README.md"}