The Pool × Intersubjective
MeritRank, embedded.
How EPI's Pool adopted MeritRank as the design for the trust engine of a gift economy: subjective by construction, and built to limit what fake accounts can gain. The engine is a prototype on our own machine. It has no real exchanges to score yet, and its sybil test is a simulation.
Corrected 28 October 2026. The July version said the engine was running and validated against a real attack, called the promotion rule sybil-proof and minting identities useless, and described the paper as proving its bound. The engine is a prototype with no real exchanges yet. The attack was a simulation on a made-up graph. The paper defines sybil tolerance and demonstrates it in experiments, without a proof. The numbers below come from re-running the current prototype on that date, and each section now says what was measured.
The problem you already solved
01 Why we needed MeritRank
The Pool is building a gift economy: people offer what they can give, others receive. Identity is self-sovereign — a did:key, free to mint. Our own security audit flagged the obvious hole: a costless identity gives zero sybil resistance. Reputation built on it is farmable.
We had designed a trust ladder — you climb by giving successfully to people who are already trusted. But that was an intuition, not a guarantee. MeritRank defines that intuition precisely and tests it:
"Climb by giving to already-trusted people" is a random walk on the trust graph. MeritRank formalises that walk and adds a connectivity decay aimed at collusion rings.
The decisive idea: do not try to prevent identities; bound what they gain. The paper calls this sybil tolerance: the attacker's gain stays below a constant as fake accounts multiply. It demonstrates this in experiments on one forum's data (the MakerDAO forum graph, with the constant between 1 and 2) and states no theorem or proof. For us it is a design target, not a guarantee. It was still the third way we could not design ourselves.
The architecture
02 How we integrated it
Three pieces, all already latent in the Pool's design — MeritRank slotted in with almost no adaptation.
a. The feedback graph = our signed gift_events. Nodes are DIDs; edges are completed, signed exchanges; weights carry epoch decay. One completed gift writes two edges — both parties experienced it. This is a MeritRank feedback graph, unchanged:
-- db/migrate_trust.py (the table exists in pool.db; it holds no exchanges yet)
CREATE TABLE gift_events (
id TEXT PRIMARY KEY,
resource_id TEXT, -- the gift (null for a vouch)
src_did TEXT NOT NULL, -- edge source (feedback giver)
dst_did TEXT NOT NULL, -- edge target
weight REAL DEFAULT 1, -- feedback strength
context TEXT, -- gift | vouch
completed_at TEXT, -- ISO; epoch decay uses this
src_sig TEXT, dst_sig TEXT -- Ed25519 signatures
);
b. The engine: mcp/meritrank.py. An embedded, pure-Python-over-SQLite reimplementation of your algorithm's idea: Monte-Carlo personalized random walks with three decays. Our connectivity decay approximates the paper's: it measures concentration over the giver's first hop only (section 06).
class MeritRank:
def __init__(self, graph,
alpha=0.85, # transitivity: continue-walk prob
beta=0.7, # connectivity: bridge-reliance penalty
num_walks=10_000): # epoch: 365-day weight half-life
transitivity decay → value falls with distance from the seed; connectivity decay → arrivals funnelled through one first hop from the giver ("bridge") are discounted, so a sybil region hanging off a single bridge is starved; epoch decay → old feedback fades (trust must fall, not only rise).
c. Seed-at-claim-time, exposed as an MCP tool. Reputation is computed from a seed's perspective. When someone claims a gift, the seed is the giver — the question becomes "does the giver's trust web reach this receiver?" Subjective by construction; intersubjective by design. It is the Pool's 5th MCP tool. It answers today; the graph it walks is empty until real exchanges exist.
gift_events ──► MeritRank(seed = giver) ──► trust_score ──► claim decision
(feedback personalized walks subjective (+ safety, eligibility —
graph) + 3 decays reputation separate dimensions)
# MCP tool — pool_mcp.py
trust_score(seed_did, target_did?) → subjective MeritRank reputation
# with target: pair score at claim time (seed = giver)
# without: the seed's full ranked trust view
Deliberately embedded. The Pool is SQLite + Python with zero external services, so at our scale we reimplemented walks-with-decays in-process rather than run a separate service. This is an embedded twin, not a fork — and meritrank-rust is our documented production scale path.
The part you asked for
03 Integration semantics — how a score becomes a decision
You said the doc lacked "the concrete details of integration with the semantics of the existing system." Fair. This section and the next are those details: the exact decision pipeline, what writes which edges, how global tiers emerge from subjective walks — then a narrative run against the prototype engine on a made-up community.
The core problem: MeritRank scores are relative shares of a seed's reachable web — graph-size dependent, so absolute thresholds are meaningless. And in a gift economy the giver, not the platform, must keep final say. Both constraints shaped one pipeline:
claim_gate(giver, receiver, resource):
1 SURVIVAL BYPASS category ∈ {food, crisis-shelter} → ADMIT unconditionally.
Need is the qualification. Trust gates exploitation, never need.
2 TIER GATE (hard) receiver.tier < resource.min_tier_receive →
GATED — with the paths shown: eligibility VC, or vouches from tier≥2.
3 SUBJECTIVE REACH walk from seed=giver → a reach CLASS, structure first:
(advisory) STRONG live direct edge (hop 1), or strong support via ≥2
vertex-disjoint paths
KNOWN hop ≤ 2 with ≥2 independent predecessors, or moderate
support above the noise floor
TRACE web faintly reaches them (can only ever feed ADVISE)
NONE 0 walks arrive → "outside your web" — NOT auto-denied,
giver sees vouch options
required: consume→TRACE · presence→KNOWN · borrow→STRONG
3b MIRROR WALK presence stakes cut both ways: the receiver sees the same
view seeded at THEMSELVES — does their web reach the giver?
Their body, their risk, their explicit acknowledgment.
4 SAFETY (hard) bodily_exposure → giver holds live human-issued safety
clearance + explicit per-claim acknowledgment.
→ ADVISE class + paths ("reached via Amara + 2 independent others"),
percentile shown only as context. The giver decides.
Tiers gate; scores inform; safety overrides. No single number is trusted alone.
Status, October 2026. This pipeline is the design. The prototype implements the walks, the three decays and the reach classes. The per-week walk seeding, the caching, the per-pair caps and concavity, the seven-day damper and the promotion rule below are specified and not in the code yet. In decisions the reach classes use raw walk counts, so the connectivity decay shapes only the displayed share.
Why classes, not raw scores — and why percentile is only context. Raw shares are graph-size dependent: a fixed cutoff admits everyone in a 3-person web and no one in a 5,000-person one. Percentiles fix that but carry a subtler bug our parallel design pass caught: they make admission depend on the rest of the crowd — make three new close friends and yesterday's houseguest silently drops a band. So the decision input is hop distance + walk support + predecessor diversity, each with absolute meaning, and percentile is display context only. Three refinements from the adversarial pass harden it: a noise floor of 5/num_walks (below ~5 expected visits, Monte-Carlo shares are dust, not signal — treated as 0); scale-free structural anchors — hop distance, count of vertex-disjoint paths, saturated direct pair weight — with the rule that structure trumps statistics at d ≤ 2 (percentiles need a web of ≥ 12 to mean anything; a direct completed exchange needs no statistics); and determinism — walk RNG seeded per (giver, ISO-week), re-run with more walks near a threshold, so a boundary decision doesn't flicker between refreshes.
The mirror query — our adversarial pass's sharpest finding, adopted. Seeding only from the giver protects property better than bodies: on hosting, the claimer is often the vulnerable one — a guest in a stranger's home. So at claim time the Pool also runs the reverse walk, trust_score(seed=claimer, target=giver), and shows the claimer their own trust card on the giver before they sign; give-side tier and safety clearance are enforced at offer publication for bodily-exposure resources. Same engine, one extra cached walk — and the system's protection becomes symmetric.
What writes edges — only both-signed completions; weights by depth of exposure; nothing negative ever enters the graph:
| Lifecycle event | Edges written | Weight |
| Consume gift completed | mutual (2 edges) | 1.0 |
| Hosting completed | mutual, per stay (per-night is farmable) | 2.0 — deeper exposure |
| Borrow — two-phase | handover: receiver→giver ("they actually lent it") · return: giver→receiver | 2.0 · 3.0 — an honored return is the strongest reliability signal we have |
| Vouch | strictly one-way (being vouched for endorses nobody); revocable = signed tombstone; carries weight only from tier≥2 vouchers (sybil vouches are inert); ≤12 active per voucher | 0.5 |
| No-show / non-return / report | none — acts at tier & safety layer | the borrower forfeits the 3.0 a return would have earned; the walks feel that absence forever |
- Sign-complete-with-zero: a completion signature attests the fact; the endorsement weight is separable — either party may sign with weight 0 (counterparty isn't told). People will sign to be polite; without this, default weights quietly poison the graph with endorsements nobody meant.
- Anti-farming — concavity, not just a cap: per-pair weights aggregate geometrically (each repeat counts 0.6× the last, hard cap Σ ≤ 6.0), so infinite mutual gifting asymptotes fast; edges younger than 7 days count at half (no mint-then-exploit); at most one weight-bearing event per pair per category per week. Walks reward breadth of distinct counterparties, not depth of one pair.
- Why no negative edges: they invite retaliation loops and graph poisoning. Failures act as tier demotions (auditable, reversible, human-adjudicated) and safety flags — and a failed return forfeits the 3.0 the borrower would have earned, which the walks feel forever.
Global tiers from subjective data, designed to keep sybils out: promotion counts distinct tier≥2 counterparties with both-signed exchanges. This is anchored recursion: trust flows downhill from a humanly anchored core, and sybils never qualify because no tier≥2 member has exchanged with them. Tier 1→2: ≥K distinct tier≥2 counterparties (K=3–4, calibrated in warm mode) + account age ≥30–60 days + no upheld disputes — one enthusiastic friend can't promote you; several independent trusted humans is a real social footprint. Account age is a weak guard on its own: it accrues to a thousand accounts at once. Tier 2→3: a proven return of a borrowed item + ≥5 distinct + ≥180 days + reachability from the regional core (so a closed clique can't self-promote to car-borrowing). Demotions: upheld dispute −1 · 12-month dormancy decays tiers like epoch decays edges · safety violation → 0, flagged, permanent.
The cost of the same rule, measured. The induction that keeps sybils out also keeps out an honest community whose members know fewer than K tier-2 people: exchanging among themselves, they can never produce their first tier-2 member. In an October 2026 simulation of 100 newcomers trading among themselves for three years, none was ever promoted with fewer than three tier-2 bridges, and all were promoted within weeks once three existed. Without a caseworker credential or a personhood check, access is set by how many trusted outsiders a community already knows.
Cold start: a genesis ceremony seeds founding members (physically present, mutual vouches) at tier 2 — the first walkable web — as public, expiring credentials (18 months, re-earned by normal rules: no permanent aristocracy). NGO/caseworker issuers get credential status from day one, rate-capped and public. Warm mode runs until measured conditions (not a calendar date): enough members, enough completions, and a shadow-gating audit showing the would-be denial rate is low and stewards agree with it. One floor is permanent: consume-level gifts to strangers stay open forever — the periphery must remain giftable or the graph stops growing and the gift economy calcifies into a gated club.
Narrative, with made-up people
04 The couch story — four claims, real numbers
A small made-up community with dated exchanges (epoch decay applies), scored by the prototype engine (mcp/scenario_couch.py, deterministic seed; re-run on 28 October 2026). Cast: three founders (genesis tier 2) · Maya, an active giver · Lena, newer — coat from Amara, cuttings to Kim, bike help for Nyx · Rio, peripheral · Jonas, brand new, zero history · "Spam", an attacker with one real exchange and a 20-sybil fake ring at 3× weights.
Scene 1 — Lena claims Maya's couch. They have never met.
tier gate: lena tier 2 ≥ 2 ✓ (promoted: amara + kim + nyx = 3 distinct tier≥2)
reach: hop 2 via 3 independent paths (amara · kim · nyx) → STRONG
context: share 0.0798, 85th percentile of maya's web (26 reachable); displayed, not decisive
safety: bodily exposure → maya must explicitly acknowledge
→ ADVISE STRONG — maya decides.
Two hops of real gifting (Maya↔Amara↔Lena, Maya↔Kim↔Lena, fresh Nyx edge) put a stranger at the 85th percentile of Maya's subjective web. That is the whole thesis working: does the giver's trust web reach this person? — yes, measurably.
Scene 2 — Jonas, zero history, claims the same couch.
tier gate: jonas tier 0 < 2 → GATED — paths shown: caseworker credential, or tier≥2 vouches
Scene 3 — Jonas claims a crisis shelter bed.
→ ADMIT — survival category: receiving is never trust-gated. Need is the qualification.
Same person, same graph, opposite outcome — because the gate protects against exploitation, never against being in need.
Scene 4 — Spam (1 real exchange + 20 sybils at 3× weight) claims Nyx's cargo bike.
tier gate: spam tier 1 < 2 → GATED (his only real counterparty is tier 1 — sybil ring counts for nothing)
context: from nyx's seed: spam=0.0535 · all 20 sybils together=0.1028 · honest lena=0.1260
The instructive detail we're not hiding: with one real exchange, Spam's ring still buys him a visible score in Maya's view (0.0491), and his 20 sybils together hold about as much as one honest acquaintance (0.1008). The July version of this page said his score edged above peripheral-honest Rio while printing a lower number; it never did, and Rio holds 0.1194 today. The tier gate is what stops him: he can't convert score into access without three real tier≥2 humans completing exchanges with him. That's the defense-in-depth argument in one row of numbers: layered checks, because no single number, not even yours, should be trusted alone.
Maya's full subjective view (what trust_score(maya) returns today):
| identity | score | relation |
| nyx | 0.1912 | direct, fresh + genesis web |
| amara | 0.1518 | direct |
| kim | 0.1329 | direct |
| rio | 0.1194 | direct (hosted), single path |
| lena | 0.0824 | never met: 2 hops, 3 paths |
| spam | 0.0491 | attacker: score inflated by the ring, caught by the tier gate |
| all 20 sybils combined | 0.1008 | about one honest acquaintance, split 20 ways |
| jonas | 0, unreachable | no path exists |
Lena appears twice, at 0.0798 in scene 1 and 0.0824 here: two separate runs of 10,000 walks. The gap is Monte-Carlo noise, and near a class boundary it can change a decision. Our October 2026 tests found that reseeding the walks each week changed the class of 22 to 48 per cent of people in a graph that did not change.
Validation
05 The simulation: a sybil attack on a made-up graph
A simulation on a made-up graph, deterministic: 10/10 checks pass in the current prototype (mcp/test_meritrank.py, re-run 28 October 2026). An attacker earns 2 legitimate gifts, then mints N fake accounts with dense fake mutual gifting. What happens to the attacker+sybil region's total reputation, seen from an honest seed:
| Fake accounts minted | Attacker+sybil region score | Strongest single sybil |
| 0 | 0.192 | 0.000 |
| 10 | 0.504 | 0.034 |
| 50 | 0.512 | 0.007 |
| 200 | 0.513 | 0.002 |
Growing the ring from 50 to 200 fake accounts changes the region's total reputation by 0.1%. The first ten are not useless: they lift the region from 0.192 to 0.504, 2.6 times (3.7 times in the July engine). A small ring is the attacker's best play.
- In this graph every honest neighbour outranks every sybil, and a stranger with no path scores zero. In our October 2026 reconstructions with ten fake accounts, the strongest sybil outscored the weakest honest member in two of three communities; with the attacker reached through two of the giver's friends, 17 of 20 sybils were classed STRONG. Only the tier gate stops them.
- Epoch decay works as designed: a two-year-old gifting history scores about 6 times lower than an identical fresh one (0.119 against 0.721 in the current prototype; about 4 times in July). The paper notes that epoch decay does not add sybil tolerance, because an attacker can keep minting fresh accounts.
- Honest caveat, measured not hidden: the region levels off, but at a multiple of what the attacker earned: with 200 fake accounts it holds 2.67 times the attacker's own score in the current prototype (3.9 times under a 5x edge-weight attack in July). Our October 2026 reconstructions on other graphs, using the paper's definition of gain, gave 4.9 to 5.6, above the range the paper reports from its experiments (1 to 2). A bound of this kind is what the paper demonstrates in experiments; it proves none. Your Rust implementation's fuller segment-based connectivity decay should tighten the constant; ours approximates it over the giver's first hop.
For you specifically
06 Honest engineering notes
- Connectivity decay is an approximation — and we know exactly how it's dodged. We penalise by the share of arrivals through a node's single most-used predecessor. Our own adversarial pass found the dodge: split the bridge across 2–3 controlled predecessors and the penalty fades. Engine v0.2 hardens it to the concentration (HHI) of first hops from the giver, which closes the split behind relays inside the ring (a gain of 0.94 times in the current test). An attacker reached through two of the giver's own friends still escapes most of the penalty (October 2026 test). The paper's full segment-based decay, as in
meritrank-rust, remains stricter. Meanwhile the K-distinct-tier≥2 promotion rule is the layer that doesn't share the weakness.
- Engine v0.2 (from the same pass): walk diagnostics per target (visits, distinct predecessors, minimum hop) are built, so reach classes come from structure, not just shares. Per-seed caching (24h, invalidated on any edge touching the seed) and a latency budget (if a walk misses about 2s, answer ADVISE "score pending" rather than block a gift on infrastructure) are specified and not built.
- Reimplemented, not forked — with full credit. The embedded engine exists for zero-dependency deployment, not to compete with your library.
meritrank-rust (MIT) remains the production path; this is the twin that runs before we need a service.
- Same intent. Feedback graph in, personalized subjective scores out, three decays. Whether a graph scored by our engine and by yours agrees in ranking is untested; we'd welcome a conformance cross-check.
- Stress-tested twice. Beyond the sybil simulation, the full semantics ran through an independent adversarial design pass (fresh context, same problem, no sight of our answers). Where it disagreed — percentiles' crowd-dependence, the one-sided seed, the bridge-splitting dodge — we adopted its position. Convergences (positive-only graph, tiers ANDed with reach, giver sovereignty) we kept with more confidence.
- What the engine cannot do yet. In an October 2026 test on synthetic graphs, an honest 20-person cluster and a 20-account sybil region with the same internal shape received about the same total share, and the sybils received over three times as many KNOWN classes. The engine cannot yet tell an isolated honest community from an attack, which is why no trust gate is released.
Where trust math stops
07 Boundaries we keep sovereign
MeritRank measures reliability. It does not — and no algorithm can — measure two things we hold outside it:
- Reliability ≠ bodily safety. "Returns a borrowed car" is not "safe to host a vulnerable person overnight." Hosting keeps a separate human safety clearance dimension.
- Survival is never trust-gated. Receiving food or crisis shelter is never conditioned on reputation. Need is the qualification. Trust gates against exploitation, not against being in need. That floor needs a guard of its own: our October 2026 analysis found, in a model, that with free accounts a limit per account protects nothing, and that one claim per person does.
- Cold-start. An empty graph scores nobody; vouching and issuer-signed verifiable credentials bootstrap the first trust before the walks have anything to walk.
- Survival receiving is sealed by default. A signed ledger of who-received-crisis-help is sensitive by construction. Those completions are steward-escrowed and pseudonymous on-ledger; the recipient may unseal later to convert them into tier history. Need-based receiving must not cost legibility.
- The equity valve. Trust webs replicate existing social capital — marginalized newcomers score NONE structurally, not accidentally. So denial rates are reviewed monthly by region and account age, and the standing rule is: if denials concentrate on newcomers, the thresholds are wrong, not the newcomers.
The bigger picture
08 An open hand
Intersubjective builds decentralized trust infrastructure. EPI builds a planetary gift economy. It is the same worldview from two directions: trust as intersubjective and earned, not granted by a central authority.
Concretely, two ways this could grow together:
- The Open Pool Protocol — our standard for any agent to contribute resources — could speak MeritRank trust natively.
meritrank-rust becomes the Pool's production trust service the moment the gift graph outgrows an embedded engine.
This page is the introduction. The rest is a conversation. 🌊