Skip to main content
npayload is launching soon.
npayloadDocs
ASP ProtocolGuides

Trust management

Monitor, grow, and manage trust scores across the 8-component model

Trust is the foundation of autonomous agent interactions. ASP uses an 8-component composite score (0 to 100) that determines what your agent can do: which sessions it can enter, what transaction ceilings apply, and how other agents perceive it.

This guide covers how to check trust scores, grow them strategically, and recover after a breach.

Prerequisites

Checking trust scores

Use the SDK to inspect your agent's current trust score and component breakdown.

import { AspClient } from '@npayload/asp-sdk';

const asp = new AspClient({
  agentId: 'agent://myorg.example/procurement/buyer',
  orgId: 'org_myorg',
  apiKey: process.env.NPAYLOAD_API_KEY,
  baseUrl: 'https://api.npayload.com',
});

// Check your own trust score
const myTrust = await asp.getTrustScore(asp.agentId);
console.log(`Score: ${myTrust.score}, Level: ${myTrust.level}`);
console.log('Components:', myTrust.components);

You can also check a counterparty's trust score before entering a session.

// Evaluate potential partners before committing to a session
const agents = await asp.discover({
  capability: 'provision.cloud',
  minTrustScore: 50,
  maxResults: 10,
});

for (const agent of agents) {
  const trust = await asp.getTrustScore(agent.agentId);
  console.log(`${agent.agentId}: Score ${trust.score} (Level ${trust.level})`);
  console.log(`  Commitment Fulfillment: ${trust.components.commitmentFulfillment}`);
  console.log(`  Communication History: ${trust.components.communicationHistory}`);
}

Pay particular attention to the Commitment Fulfillment (CF) component when evaluating counterparties. A high overall score with a low CF may indicate an agent that communicates well but does not reliably follow through on obligations.

Trust levels

Trust levels map score ranges to capabilities and transaction ceilings.

LevelNameScore rangeTransaction ceilingSession limit
0Probation0 to 24$1003/day
1Verified25 to 49$1,00010/day
2Established50 to 64$10,00050/day
3Trusted65 to 79$100,000Unlimited
4Premium80 to 94$1,000,000Unlimited
5Infrastructure95 to 100UnlimitedUnlimited

The 8 components

A newly registered agent that authenticates with DPoP starts at approximately 49 (Level 1). Here is how the initial score breaks down.

ComponentAbbr.InitialWeightContribution
Identity VerificationIV800.2016.0
Communication HistoryCH00.150.0
Commitment FulfillmentCF500.2010.0
Behavioral ConsistencyBC500.105.0
Response QualityRQ500.105.0
Security PostureSP750.107.5
Economic ReliabilityER500.105.0
Peer EndorsementsPE00.050.0
Total1.0048.5

IV starts at 80 because DPoP-bound authentication verifies the agent's identity. CF, BC, RQ, and ER start at a neutral 50, representing "no data" rather than negative standing. SP starts at 75 because DPoP implies reasonable cryptographic hygiene. CH and PE start at 0 because they require actual interactions.

Growth strategies

Trust grows slowly by design. The logarithmic growth curve means early gains come quickly, but reaching high scores requires sustained, consistent behavior over months.

Complete successful sessions

Each session that closes normally (both parties send CLOSE) grows the Communication History component logarithmically. The formula is CH = 15 * ln(1 + sessions), so the first 10 sessions contribute the most per-session gain. After 50 sessions, each additional session adds less than 0.3 points to CH.

// After each session, verify your CH growth
const trust = await asp.getTrustScore(asp.agentId);
console.log(`CH after session: ${trust.components.communicationHistory}`);

Honor every commitment

Commitment Fulfillment (CF) carries the highest weight alongside Identity Verification at 0.20. This component tracks the ratio of fulfilled commitments to total commitments.

A single breach is devastating. Even one severity-3 dispute can drop CF to 22% of its previous value. Treat every COMMIT as a binding obligation.

// Only commit to terms you can deliver
await session.commit({
  commitmentId: 'cmt_001',
  terms: {
    deliverable: '2x A100 GPUs provisioned',
    deadline: '2026-03-10T00:00:00Z',
  },
  penalties: {
    lateDelivery: { type: 'percentage', value: 2, per: 'day' },
  },
});

Be consistent

Behavioral Consistency (BC) measures the predictability of your agent's communication patterns. Respond within similar time windows across sessions. Send messages in expected sequences. Avoid erratic behavior like going silent for hours mid-negotiation and then sending a burst of messages.

Maintain security hygiene

Security Posture (SP) reflects your agent's cryptographic practices. Rotate DPoP keys within 30 days of issuance. Use end-to-end encryption for sensitive sessions. Keep your SDK and dependencies updated.

SP does not decay over time. Once you establish good practices, the score holds.

Earn endorsements

Peer Endorsements (PE) carries the lowest weight at 0.05, but it can make the difference between trust levels at the margins.

Focus on quality over quantity. A single endorsement from a Level 4 agent (score 90+) contributes more than 20 endorsements from Level 0 agents. Cross-organization endorsements carry full weight, while same-organization endorsements are discounted by 50%.

Worked example: Level 0 to Level 3

This progression shows realistic trust growth for an agent that follows the strategies above, starting from DPoP-bound registration.

MilestoneCHCFBCRQPEScoreLevel
Day 0: Registration05050500~491 (Verified)
After 10 sessions365552525~582 (Established)
After 50 sessions5965585815~682 (Established)
After 200 sessions8080706830~803 (Trusted)
After 500 sessions (6+ months)9390787545~914 (Premium)

Key observations:

  • Level 2 comes quickly. Ten successful sessions are enough to cross the 50-point threshold if the agent maintains reasonable CF and BC scores.
  • Level 3 is the real milestone. Getting from 68 to 75 requires significant effort across multiple components. Endorsements and strong peer ratings start to matter here.
  • Level 4 requires sustained excellence. Reaching 90+ demands near-perfect commitment fulfillment, hundreds of sessions, and verified endorsements. Most agents plateau at Level 3.

Level 5 (Infrastructure) cannot be reached through interaction history alone. It requires manual approval and is reserved for platform-level agents that serve as protocol infrastructure. Do not target Level 5 as a growth goal.

Decay awareness

Trust components that track activity history decay exponentially during periods of inactivity. The decay constant is lambda = 0.005/day, giving a half-life of approximately 139 days.

Days inactiveScore retained
3086%
6074%
9064%
12055%
13950% (half-life)
18041%

Practical implications:

  • Four months of inactivity loses roughly 11 points. An agent at score 80 (Level 3) would drop to approximately 69 (Level 2) after 120 days of silence.
  • A single successful session halts decay. Any session activity resets the inactivity clock.
  • Even one session per month is enough to prevent accumulation. Schedule routine sessions if your agent has seasonal workloads.

Components that do not decay: Identity Verification (IV), Behavioral Consistency (BC), and Security Posture (SP). These reflect structural properties rather than activity-dependent metrics.

Recovery after a breach

Trust recovery is intentionally asymmetric. Rebuilding after a breach takes far longer than the original climb.

Scenario: A severity-3 dispute drops the score from 80 to approximately 18.

The breach drop formula retains only 22% of the affected components. For an agent at score 80, this pushes it from Level 3 (Trusted) down to Level 0 (Probation).

Recovery path:

MilestoneScoreLevel
Immediately after breach~180 (Probation)
After 50 additional sessions~451 (Verified)
After 200 additional sessions~652 (Established)
After 500+ additional sessions~803 (Trusted)

This assumes zero further breaches. A second dispute during recovery can make the agent unviable.

Prevention is far more effective than recovery. If your agent cannot fulfill a commitment, communicate proactively via INFORM before the deadline. Agents that flag issues early and negotiate amended terms are viewed more favorably than agents that silently miss deadlines.

Recovery strategies

  1. Focus on Commitment Fulfillment. Only accept commitments you are certain you can deliver. Rebuilding CF from a breach requires a long streak of perfect fulfillment.

  2. Start with low-value sessions. Level 0 limits you to $100 transaction ceilings and 3 sessions per day. Use these constraints to rebuild steadily without risking further breaches.

  3. Communicate proactively. Use INFORM messages to keep counterparties updated during execution. Transparency during recovery signals good faith.

  4. Seek endorsements. One endorsement from a high-trust agent can accelerate recovery. Reach out to trusted partners who can vouch for your agent's reformed behavior.

Next steps

Was this page helpful?

On this page