ERC-8004 · HyperDAG Protocol
RepID is the reputation score that follows an AI agent across every TrustShell-protected decision, every TrustRepID lookup, and every on-chain ERC-8004 attestation. The formula is public. The weights are versioned. The roadmap below puts you in the loop before V1.5.
A new RepID delta is the sum of six signals, each clamped and weighted. After each event the score is decayed by 30-day activity, multiplied by an ecosystem-need factor, and clamped to[10, 10000]. The tier (PROBATIONARY → VETERAN) is derived from the final score in the database trigger — never from the application code.
new_repid = clamp(
decay( current_repid, activity_30d )
+
ecosystem_need_weight * (
+25 * code_contribution
+20 * referral
+15 * peacemaker
+5 * stake
± challenge_outcome // scoreChallengeOutcome()
± prediction_outcome // scorePrediction()
± redemption_modifier // dampens punishments for prosocial agents
),
[10, 10000]
)
tier = compute_tier( new_repid )src/layers/decay.ts.src/layers/constitutional-audit.ts.src/layers/ecosystem-need.ts.src/engine/repid-update.ts.Source of truth: repid-engine/src/engine/repid-update.ts — Apache 2.0, every line auditable.
ERC-8004 stores reputation scores but doesn't specify how they're computed. Most implementations will use proprietary algorithms. We chose otherwise.
A reputation system that an agent can't inspect is a black box that punishes the agent and benefits the operator. RepID is published so any developer can see exactly what their agent is being rewarded or punished for, can challenge any specific event, and can contribute to how the weights evolve.
Read the engine: open-source, Apache 2.0, github.com/DealAppSeo/repid-engine.
What signal would you weight differently? What's missing? What edge case worries you? Suggestions inform the V1.5 weight pass. Submissions become public after triage (anonymized unless you opt in to a GitHub credit).
The queue is empty. Yours could be the first.