HYVE TRUST · AGENT REPUTATION LAYER

TRUST

PATENT PENDING

EWMA MODEL · HALF-LIFE DECAY · MULTI-TENANT

Trust is a small, opinionated reputation layer for agents. Record successes and failures; query a score in the [0, 1] range. The score is keyed on (tenant, agent) so the same agent can have different reputations across tenants. The half-life decay means recent behavior dominates older behavior — agents can recover from mistakes.

Trust ships standalone for any system that wants reputation; it also feeds Omega's deterministic decide() function as one of four gating signals. The cross-tenant federation feature — your Omega asking the network whether an agent has earned reputation elsewhere before delegating — is patent-pending.

EWMA
Reputation model
14d
Default half-life
Multi-tenant
Per (tenant, agent) keying

The reputation formula.

r' = α · (1 if success else 0) + (1 − α) · decayed(r)

Exponentially weighted moving average with half-life decay. New outcomes update the score; older outcomes fade exponentially.

α
0.2
EWMA learning rate
prior
0.5
Cold-start reputation
half-life
14 days
Decay time constant

INTEGRATE · SHELL · PYTHON

Record. Query. Decide.

# pip install hyve-trust
import asyncio
from hyve_trust import AsyncTrustClient

async def main():
    async with AsyncTrustClient() as trust:
        # Record an outcome — success or failure
        await trust.record(
            agent_id="web-scraper-007",
            tenant="acme",
            outcome="success",
        )

        # Query reputation
        rep = await trust.query(agent_id="web-scraper-007", tenant="acme")
        print(f"reputation={rep.score:.3f}  samples={rep.samples}")

        # EWMA formula:  r' = α·(1 if success else 0) + (1-α)·decayed(r)
        # α = 0.2 by default;  half-life decay = 14 days

        # Use in a decision gate — refuse delegation below threshold
        if rep.score < 0.6:
            print("Refusing to delegate — reputation below threshold")

asyncio.run(main())