{"_id":"@aroha-sdk/reputation","_rev":"6-0bd8026bc94a67f683a0955202a1afca","name":"@aroha-sdk/reputation","dist-tags":{"latest":"1.4.0"},"versions":{"1.0.0":{"name":"@aroha-sdk/reputation","version":"1.0.0","_id":"@aroha-sdk/reputation@1.0.0","maintainers":[{"name":"aroha-labs","email":"projectmed99@gmail.com"}],"dist":{"shasum":"a3f8ed4cd16f4450f83be720b2f82af2bd7e31ed","tarball":"https://registry.npmjs.org/@aroha-sdk/reputation/-/reputation-1.0.0.tgz","fileCount":11,"integrity":"sha512-NwZG16Epo2hdA7KD5GF4/26pi4joQ5GR9F0Pn8UaQXjsEFsUPmWff5FVohx9Fo94TClKR/AiNifraJIwaJYklQ==","signatures":[{"sig":"MEYCIQCVCxRRy1Y+LBoBgOIFmyS4q67+TjSc8D7f75x1rH9GhQIhANm9UeVnQbAo3ay7Pf5/SP8dMRbmjCyY3FNZhVOD9HXb","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":48881},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","gitHead":"67cbe687cd0664deb4374aaa75788c9d7119d74b","scripts":{"dev":"tsc -p tsconfig.json --watch","test":"vitest run --passWithNoTests","build":"tsc -p tsconfig.json"},"_npmUser":{"name":"aroha-labs","email":"projectmed99@gmail.com"},"_npmVersion":"11.13.0","description":"Aroha Bayesian Beta reputation engine — 11-signal model with Thompson Sampling","directories":{},"_nodeVersion":"24.16.0","dependencies":{"@aroha-sdk/settlement":"^1.0.0"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^1.6.0","typescript":"^5.4.5","@types/node":"^20.14.0"},"_npmOperationalInternal":{"tmp":"tmp/reputation_1.0.0_1782173756306_0.6341366036747131","host":"s3://npm-registry-packages-npm-production"}},"1.2.0":{"name":"@aroha-sdk/reputation","version":"1.2.0","_id":"@aroha-sdk/reputation@1.2.0","maintainers":[{"name":"aroha-labs","email":"projectmed99@gmail.com"}],"dist":{"shasum":"3436320111d4c7a40a6d952b67a42c3eac0fbe2a","tarball":"https://registry.npmjs.org/@aroha-sdk/reputation/-/reputation-1.2.0.tgz","fileCount":42,"integrity":"sha512-KRBzw0/E9Nw2t7iDmOQKaadYNiDUYXG7/LDF4zFtoxCyMSkNg+9HYmYzbftmnpebDQDVsx+Fg2RQfvU4XQAE8w==","signatures":[{"sig":"MEQCIBRcd0peNlVI7mZd2K7FUmZMrCn12uLHm3JO20MuslwlAiBVvQcRH9/Dubk3DPjxe2eHaT+aXevxkz+3jkZAniNz6g==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":141633},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","gitHead":"3fd6d5ab883e07e6c38989dc642f87ef70bb6320","scripts":{"dev":"tsc -p tsconfig.json --watch","test":"vitest run --passWithNoTests","build":"tsc -p tsconfig.json"},"_npmUser":{"name":"aroha-labs","email":"projectmed99@gmail.com"},"_npmVersion":"11.13.0","description":"Aroha Bayesian Beta reputation engine â€” 11-signal model with Thompson Sampling","directories":{},"_nodeVersion":"24.16.0","dependencies":{"@aroha-sdk/settlement":"^1.0.0"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^1.6.0","typescript":"^5.4.5","@types/node":"^20.14.0"},"_npmOperationalInternal":{"tmp":"tmp/reputation_1.2.0_1782181559371_0.78160554585886","host":"s3://npm-registry-packages-npm-production"}},"1.3.0":{"name":"@aroha-sdk/reputation","version":"1.3.0","_id":"@aroha-sdk/reputation@1.3.0","maintainers":[{"name":"aroha-labs","email":"projectmed99@gmail.com"}],"dist":{"shasum":"de301c5b1acbdcd8582af3f1fd0ebd5fba7ef7a5","tarball":"https://registry.npmjs.org/@aroha-sdk/reputation/-/reputation-1.3.0.tgz","fileCount":48,"integrity":"sha512-+uuaJQpabrLYTFyKg/i3kuv0uTzUZZZzzdGoego5TQD5DwtRd1jtJfUG4FCma2XqcXxQhqyNJdwCUEfDpmqh5Q==","signatures":[{"sig":"MEQCICOnzD6R1wcPvg5m67aZ9tHNFAq3Ca+5QVTuiU/VwkGNAiBADsEOEgAzhBbrpzIuZ0wDL4zMM3kiQLllPRsLq7rmRw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":168137},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","gitHead":"202398dcb7c1e33835ece99cdf19b9376cf884b3","scripts":{"dev":"tsc -p tsconfig.json --watch","test":"vitest run --passWithNoTests","build":"tsc -p tsconfig.json"},"_npmUser":{"name":"aroha-labs","email":"projectmed99@gmail.com"},"_npmVersion":"11.16.0","description":"Aroha Bayesian Beta reputation engine â€” 11-signal model with Thompson Sampling","directories":{},"_nodeVersion":"24.18.0","dependencies":{"@aroha-sdk/settlement":"^1.0.0"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^1.6.0","typescript":"^5.4.5","@types/node":"^20.14.0"},"_npmOperationalInternal":{"tmp":"tmp/reputation_1.3.0_1782995429037_0.8541030087673831","host":"s3://npm-registry-packages-npm-production"}},"1.3.1":{"name":"@aroha-sdk/reputation","version":"1.3.1","_id":"@aroha-sdk/reputation@1.3.1","maintainers":[{"name":"aroha-labs","email":"projectmed99@gmail.com"}],"dist":{"shasum":"433eb06a1f8d747b4928b28ed6f6896577c36e34","tarball":"https://registry.npmjs.org/@aroha-sdk/reputation/-/reputation-1.3.1.tgz","fileCount":48,"integrity":"sha512-IvAmXo8kWxn+DYj3yTcJGgGEN2h7vq1dzEwWeS64kFvvYj4QKmRORpHpPjwdADtWz7/UHnszQB7UMg5GY4RRtA==","signatures":[{"sig":"MEUCIC8X23fQNT4MVfnWPjk8CKwijRYnYlycUfjq3ZQNVnJcAiEA/MWzdwzBiv5cbjlveLlxRbfrebQ4IhpoQlJ810/KNUg=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":168244},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"a7fc3b14f2e9a4b83b1483442dc68e46d0ac4872","scripts":{"dev":"tsc -p tsconfig.json --watch","test":"vitest run --passWithNoTests","build":"tsc -p tsconfig.json"},"_npmUser":{"name":"aroha-labs","email":"projectmed99@gmail.com"},"_npmVersion":"11.16.0","description":"Aroha Bayesian Beta reputation engine â€” 11-signal model with Thompson Sampling","directories":{},"_nodeVersion":"24.18.0","dependencies":{"@aroha-sdk/settlement":"^1.0.0"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^1.6.0","typescript":"^5.4.5","@types/node":"^20.14.0"},"_npmOperationalInternal":{"tmp":"tmp/reputation_1.3.1_1783118068606_0.8590560153366791","host":"s3://npm-registry-packages-npm-production"}},"1.3.2":{"name":"@aroha-sdk/reputation","version":"1.3.2","license":"MIT","_id":"@aroha-sdk/reputation@1.3.2","maintainers":[{"name":"aroha-labs","email":"projectmed99@gmail.com"}],"dist":{"shasum":"dcaaa2353e056df727aeeb39ce5194a8fc0f01fc","tarball":"https://registry.npmjs.org/@aroha-sdk/reputation/-/reputation-1.3.2.tgz","fileCount":48,"integrity":"sha512-5ZRRB37eWNPmXbwIv4yoDPWLlGt6dXDzrxUWc3aPZSSnmyX0cEpWA1W52kD8MCfBA/3ElfNZAHW/kC53743NTQ==","signatures":[{"sig":"MEUCIAVRvHesuFcUF8etyf2YqwafvH/46uwSk7gTQCLjoHxSAiEAi9ExHIKkbeyw0g2+23DXaIc+/WV4vJG1XAGwilB2f4Q=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":168307},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=18.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"ca0800d55b453d5e9b38ffce3dff055f010619eb","scripts":{"dev":"tsc -p tsconfig.json --watch","test":"vitest run --passWithNoTests","build":"tsc -p tsconfig.json"},"_npmUser":{"name":"aroha-labs","email":"projectmed99@gmail.com"},"_npmVersion":"11.16.0","description":"Aroha Bayesian Beta reputation engine â€” 11-signal model with Thompson Sampling","directories":{},"_nodeVersion":"24.18.0","dependencies":{"@aroha-sdk/settlement":"^1.0.0"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^1.6.0","typescript":"^5.4.5","@types/node":"^20.14.0"},"_npmOperationalInternal":{"tmp":"tmp/reputation_1.3.2_1783119747518_0.5935352590525909","host":"s3://npm-registry-packages-npm-production"}},"1.4.0":{"name":"@aroha-sdk/reputation","version":"1.4.0","description":"Aroha Bayesian Beta reputation engine â€” 11-signal model with Thompson Sampling","type":"module","main":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"import":"./dist/index.js","types":"./dist/index.d.ts"}},"scripts":{"build":"tsc -p tsconfig.json","test":"vitest run --passWithNoTests","dev":"tsc -p tsconfig.json --watch"},"dependencies":{"@aroha-sdk/settlement":"^1.0.0"},"devDependencies":{"typescript":"^5.4.5","vitest":"^1.6.0","@types/node":"^20.14.0"},"license":"MIT","engines":{"node":">=18.0.0"},"gitHead":"b8eed11bbd8d5b6643c567ef75b2b5ac044d5bc6","_id":"@aroha-sdk/reputation@1.4.0","_nodeVersion":"24.19.0","_npmVersion":"11.17.0","dist":{"integrity":"sha512-kUlxqiCwBVf2DUuIrawHgvzQ0gGo8MxMshNTPPE3Y+TDZgh7GEpMMnmSt/7wvjrjiRnYyZaCOI1JoerE4+/0DA==","shasum":"bfc216fe8564e10f046893d7a8b2ef1514375373","tarball":"https://registry.npmjs.org/@aroha-sdk/reputation/-/reputation-1.4.0.tgz","fileCount":61,"unpackedSize":194237,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDE+nv9PtXB9zLOoUGnMjd7+nf6gaDUrTQnIYSvFMy/tAIhAM9ZBgKyEOXWSJ9cd5N1xchjT/1zE5WZo9PhgBs5QtQa"}]},"_npmUser":{"name":"aroha-labs","email":"projectmed99@gmail.com"},"directories":{},"maintainers":[{"name":"aroha-labs","email":"projectmed99@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/reputation_1.4.0_1787537874273_0.8072743485446034"},"_hasShrinkwrap":false}},"time":{"created":"2026-06-23T00:15:56.066Z","modified":"2026-08-24T02:17:54.541Z","1.0.0":"2026-06-23T00:15:56.451Z","1.2.0":"2026-06-23T02:25:59.509Z","1.3.0":"2026-07-02T12:30:29.196Z","1.3.1":"2026-07-03T22:34:28.753Z","1.3.2":"2026-07-03T23:02:27.665Z","1.4.0":"2026-08-24T02:17:54.400Z"},"license":"MIT","description":"Aroha Bayesian Beta reputation engine â€” 11-signal model with Thompson Sampling","maintainers":[{"name":"aroha-labs","email":"projectmed99@gmail.com"}],"readme":"# @aroha-sdk/reputation\n\nTrack and query agent reputation scores — surface agents that consistently honor their mandate bounds.\n\n## Install\n\n```bash\nnpm install @aroha-sdk/reputation\n```\n\n## Quick example\n\n```typescript\nimport { ReputationClient } from \"@aroha-sdk/reputation\";\n\nconst rep = new ReputationClient();\n\n// After a successful mandate-bounded interaction, record a positive signal\nawait rep.record({\n  agentDID: \"did:aroha:flight-agent\",\n  event: \"mandate.honored\",\n  mandateConstraints: { spendLimitUsd: 300 },\n  actualSpend: 299,\n});\n\n// Record a violation\nawait rep.record({\n  agentDID: \"did:aroha:rogue-agent\",\n  event: \"mandate.violated\",\n  reason: \"Attempted to charge $400 against a $300 mandate\",\n});\n\n// Query before deciding whether to issue a mandate\nconst score = await rep.score(\"did:aroha:flight-agent\");\n// score.value: 0–100\n// score.mandateViolations: 0\n// score.successfulDelegations: 142\n```\n\n## Why this exists in the mandate chain\n\nCryptographic mandates prevent unauthorized actions, but they don't tell you which agents are reliable over time. Reputation surfaces agents that consistently operate within their granted scope — so orchestrators can make informed decisions before issuing a mandate.\n\n## API\n\n- `ReputationClient(opts?)` — connect to the Aroha reputation service (or a local store for testing).\n  - `rep.record(signal)` — record a reputation signal for a DID.\n  - `rep.score(did)` — get the current score and signal history for an agent.\n  - `rep.leaderboard(filter?)` — list agents ranked by score, optionally filtered by capability.\n\n## License\n\nMIT\n","readmeFilename":"README.md"}