LINXInternal
Antarctica expedition
LINX · Required Reading · Engineering

Prometheus + Matrix

The Future LINX Backend
For LINX Engineering
Antarctica · Ice Axe Expeditions · ph. Stein Retzlaff
Read this first

This is a backend vision we are building toward — a baseline of ideas for powering LINX.

It is something we are working towards. It is not meant to be implemented now, but it is required reading, because this is part of the future. Think of it as the North Star of the scalable LINX backend: every decision we make should be made with this picture in view, so that what we build today grows cleanly into what this describes.

Why this exists

Where we are today. The LINX backend works — but it is static. Trust scoring runs on fixed, hand-chosen numbers. The recommender matches on similarity alone. Nothing in the system learns from what actually happens: a booking that converts, a referral that lands, a memory that gets created all pass through without making the next recommendation any smarter.

Why that's a problem. A static backend treats every assumption as permanent. Our trust weights are educated guesses frozen in code; our matching can't understand a plain-English dream; our data accumulates but never compounds into intelligence. That is fine for getting started — and fatal for a future sustainable company, because the one thing that should become our deepest moat, the data, sits inert.

The solution — and why this exists. Two systems are being designed to make the backend learn: MATRIX (the trust graph) and PROMETHEUS (the continuously-learning intelligence layer over it). These are ideas for the future scalable LINX backend — the North Star this document describes. This is the picture.

Part 1

The Vision

Everyone reads this.

1The problem a static backend can't solve

Every generic startup bolts AI onto its data as an afterthought. The model is the product, the data is exhaust. That company gets rewritten every time the AI vendors change — and they change every few months.

LINX inverts that. The data is the moat. The model is a replaceable part.

Concretely, today:

A static backend treats every guess as permanent. The future backend treats every guess as a hypothesis the system improves on its own.

2The one-sentence bet

Couple to the substrate. Decouple from the vendor.

The substrate = the append-only log of everything that happens (a referral, a booking, a memory, a correction) + open data formats + clean contracts. That compounds for a decade.

The vendor = whichever LLM or embedding provider is best this quarter (Anthropic, OpenAI, Google, whoever). Those are swappable config lines.

Anything coupled to a 2026 model is rewritten by 2028. Anything coupled to the substrate compounds through 2036. This is the Renaissance Technologies pattern — one event log, one data pool, survived 30+ years while competitors who fragmented their data eroded.

Greenland
The moat is the graph, not the inventory

3MATRIX — the moat (the "who vouched" layer)

Matrix is the LINX Trust Graph. It is the part competitors cannot copy.

They can copy our UI, our referral links, our 10% pitch, our operator listings, even our math. What they cannot copy, because it takes years to accumulate and is verified by operators themselves:

Matrix's own doctrine says it bluntly:

"The moat is the graph, not inventory."

Two things people get wrong, that you should not:

4PROMETHEUS — eyes, judgment, and forethought

If Matrix is the moat, Prometheus is what makes it intelligent. The clean metaphor from the framework: Prometheus gives the trust graph eyes, judgment, and forethought.

Raja Ampat
Two rails — trust and taste

5The two-rail picture — why LINX feels different from Netflix and Instagram

Here is how Matrix and Prometheus combine on a single recommendation. When a traveler asks for something, the system runs two rails in parallel:

TRAVELER ASKS  —  "warm, adventurous, five-star, on the water"
Rail 1 · Taste
Prometheus embeddings
"what fits what they want"
Rail 2 · Trust
Matrix trust graph
"who vouched, who referred, how recent, attribution chain"
FUSE  +  apply Matrix decay  →  LLM ranks the top 3–5 and explains WHY each one reached you — including the human who referred it

Give Netflix and Instagram their due: they are two of the most sophisticated recommendation engines ever built. Billions of dollars and some of the best machine-learning talent on the planet have made them extraordinary at one thing — predicting what will hold your attention. Netflix is the number-one streaming platform in the world for a reason. We are not trying to out-taste them at their own game; Rail 1 stands on the shoulders of everything they pioneered.

What LINX adds is a dimension their model structurally does not have: Rail 2, a verified human trust rail. A LINX recommendation can say "this came to you because Doug, who you trust for polar trips, did it last season." Netflix knows what people like you watched; Instagram knows what people like you engaged with. Neither can tell you that a specific person you actually trust did this specific thing and vouched for it — because they don't have an operator-verified, consented trust graph underneath. That sentence — the verified human reason — is the product. It is why people join, and it is impossible to fake without the graph.

6Why this IS the network effect, in code

This is the most important idea in the document, so we give it room — and an interactive graph to make it concrete.

The trust graph is not a metaphor for the network effect. It is the network effect, written as a data structure.

Live · the network effect compounding
0members 0trust links 0network value (∝ connections)
How to read this: press the + Invite a cohort button below and watch the constellation grow. Every new member brings a few trust links to people they already trust — so members rise in a straight line, but the network's value (the connections between them) climbs far faster. That widening gap is the moat. Drag any node to explore.
← click to add members & watch the value jump

This is why understanding the network effect matters for building, not just for pitching. If you build the invite graph as a plain table, it works mechanically and is strategically dead. If you build it as typed, provenanced edges in the trust graph, it compounds — and compounding is the whole game.

Part 2

The Architecture

The engineering detail.

The single most important framing in this document: almost everything below is specified, gated, adversarially reviewed — and not yet built. See §8 for the precise "spec vs. shipped" line. Treat this as the destination, and build every decision toward it.

1The 8 layers + the self-improving Ring

Prometheus is 8 layers. The substrate (bottom) is sovereign; everything above it is swappable.

LayerNameWhat it is
L0Privacy BoundaryPII redaction, zero-data-retention (ZDR) vendor contracts, tenant isolation. Maps to Nomos consent classes.
L1SubstratePostgres + vector (pgvector) + BM25 + cron + change-data-capture
L2Event LogAppend-only, content-hashed, 7–10yr retention. "Bedrock, sacred. If this is corrupted, the company is dead."
L3RepresentationEmbeddings + features (e.g. Voyage-3-large 1024-dim, swappable)
L4JudgmentLLM judge + ensemble (Haiku routine / Opus hard / a second vendor for second opinion)
L5BuilderSandboxed autonomous agent — the overnight learner
L6OrchestrationDurable, exactly-once workflow
L7GovernanceEval gate, observability, held-out golden set

The Ring (the self-improving loop):

1 event lands2 append to immutable log3 embed4 judge5 write provenanced output6 aggregate outcomes nightly7 Builder proposes change on a branch8 eval gate · PASS→merge / FAIL→logged9 merge · repeat

Every cycle leaves the substrate measurably smarter.

2The 8 Laws (constraints, not best practices)

"'Best practices' is what you say when you're not sure. Laws are constraints — all or none." Each law names the failure it prevents and a real example:

  1. Substrate sovereign — couple to data + open formats, never the vendor.
  2. Event log is append-only & immutable — projections recompute from it.
  3. Held-out golden set, forever — a set of judgment cases that NEVER enters training, so the model can't game it. (Chatbot Arena was gamed and destroyed in 2025 for lacking this.)
  4. Provenance on every output — model version, timestamp, payload hash, all logged.
  5. Capability contracts — business logic talks to interfaces, never vendor SDKs. (Voyage got acquired by MongoDB Feb 2026 — contracts make that a config change, not a rewrite.)
  6. Failover stays warm — quarterly real cutover drills, not theater.
  7. Eval gate before merge — no learned change ships without passing the golden set.
  8. Privacy at the vendor edge — ZDR signed per vendor or the adapter refuses to start at runtime.

3MATRIX data model — the spec an engineer treats as law

The binding contract is GRAPH_CONTRACT.md (Matrix owns the meaning, Poseidon owns the DDL — "Matrix does not write DDL; Poseidon does not change semantics without a Matrix ticket"). Below is the model made interactive — click any node or edge to see what it is and the rule that governs it.

Live · the Matrix trust graph (a real scenario)drag to rotate · click a node or edge
Each chip is an entity (a node in the graph); each line is a typed relationship between two entities. Drag to rotate  ·  click a chip for what it is  ·  click a line's label for the rule that lets it exist.
Click any node or edge. This is one traveler's corner of the graph — you book an Antarctica expedition Doug referred, create a verified memory, travel with a friend you invited, and it all resolves to real places. Every edge is typed and carries the rule that lets it exist.

The strict hierarchy — the only path from behavior to money

event → signal → inference → edge → credit → decision
  1. Event — raw, immutable, append-only. Always log if useful + permitted.
  2. Signal — derived, with context + a confidence score.
  3. Inference — model output. Never stored as fact (marked_inferred: true until a user correction graduates it).
  4. Edge — materializes only on a defined product action + an identified subject. Stores a provenance_ref that explains why it exists.
  5. Credit — only after operator-confirmed or policy-confirmed outcome. CommissionCredit requires a Plutus co-signature.
  6. Decision — versioned; a policy change writes a new row with a supersedes pointer, never an update.
The rule to tattoo on the wall: No edge materializes from system seeding, anonymous opens, or an AI guess. Anonymous opens create events, not trust edges.

The pieces (engineering-relevant)

4The attribution math — Shapley & Markov (the how)

When a booking happens, several people influenced it: the curator who first recommended the experience, the friend who co-signed it, the operator who delivered it. A naive system gives 100% of the credit to the last click. That is wrong, and it is how you lose curators. LINX uses two world-leading multi-touch attribution (MTA) models, both operating over the trust graph, to distribute credit fairly. Here is exactly how they work.

4.1 Markov chain attribution — the "removal effect"

Model the traveler's journey as a directed graph of probabilistic states: touchpoint → touchpoint → … → conversion. The Markov property: the probability of the next state depends only on the current state.

To value a single node (say Curator B), compute the network's overall conversion probability with the full graph, then remove B's node entirely and recompute. The drop is B's value:

If removing Curator B drops network conversion from 15% to 2%, B's removal effect is enormous — credit follows how catastrophic the graph's collapse is without that node. Conversion probability of any single path is the product of its transition probabilities; total conversion is the sum over all paths into the absorbing "converted" state.

4.2 Shapley value attribution — fair coalition credit

From cooperative game theory (Lloyd Shapley, 1953; Nobel 2012). Treat the touchpoints as a coalition of players that jointly produce a conversion, and distribute credit by each player's average marginal contribution across every possible ordering of the coalition:

Where:

Shapley evaluates the journey against every permutation of touchpoints (A, A+B, B+C, A+B+C, …), which is what lets it isolate synergy: it can prove a curator is weak alone but a powerful multiplier when combined with someone else's trust signal. It is the unique credit scheme that satisfies four fairness axioms simultaneously — efficiency, symmetry, null-player, and additivity.

4.3 How LINX phases this in (the discipline)

This math is powerful and easy to misuse, so it is gated — never shipped raw:

Why this is the moat in motion: LINX is, mathematically, a multi-touch attribution engine for human taste. Every booking lets us recompute the marginal contribution and removal effect of every person, place, and theme in the graph — and that calculation gets sharper with every outcome. Competitors don't have the graph to run it on.

5The two-rail composition — the hard rules

The §5 two-rail picture has non-negotiable rules so the taste rail never erases the trust:

  1. Vector candidates MUST pass through Matrix decay before the union — or the recommender resurfaces stale operators Matrix correctly down-ranked. (A raw vector index has no concept of decay.)
  2. The LLM ranker MUST carry attribution context per candidate ("referred by Y, degree-2 from user, shared 3 weeks ago") — or recommendations go attribution-blind.
  3. Taste is downstream of trust. Phase 1 is vector + graph, no taste model. Resist building taste-modeling first.

6Sequencing discipline — build order when we DO build it

Build the trust composition first; layer the vector recommender on top. Never the reverse.

7Build toward the North Star

This is the point of the whole document. As you build the backend, every decision should be made with this vision in view. You are not just building features — you are building toward this backend. Each schema choice, each edge, each vector, each endpoint should be made knowing what it grows into.

The discipline is simple: measure twice, cut once, and always know what you are building toward.

8Spec vs. shipped — the honest line (read this twice)

What is actually in linx-core today:

What is spec / vision (this whole document, mostly): multi-axis embeddings, confidence×claim-status duality, source-tier evidence, geography edges, read-time decay DSL, transactional 4-gate ingest, force-graph compute, the consent-class system, Shapley/Markov attribution, Matrix↔Plutus co-sign, the Wiki-Link Link Grammar, and all 8 Prometheus layers. Matrix v2 is ~4,200 lines across ~25 files, five-gate reviewed, story-certified — and never invoked in production. Prometheus v1 is a locked framework with ~22 code stubs and a 15-PR sequence — not running.

The shipped graph is a typed-edge table with hardcoded weights and a score-event log. The spec is a far richer, self-learning system. The shipped service is the starting point; the spec is the destination. Prometheus is the proposed bridge that learns the spec's weights from real outcomes over the production graph.

Two known issues an implementer resolves before writing DDL: (a) the confidence_basis enum is 3-valued in the binding GRAPH_CONTRACT (EXTRACTED / INFERRED / AMBIGUOUS) but 4-valued in the doctrine prose (EXTRACTED / INFERRED / DECLARED / VERIFIED) — the contract governs; (b) the multi-axis D=16 and all decay half-lives are hypotheses requiring Phase-1 validation against minimum sample sizes before they harden.

South Pole
Build for 2036 · ship Year 1 so Year 10 becomes inevitable

9The horizon

Prometheus is designed on an 11-Star ladder (Chesky): Year 1 → investor-grade, Year 3 → category-creator, Year 10 → an open standard ("the PROMETHEUS architecture" enters the vernacular). The moat at the top is eight stacked layers — Data, Contracts, Golden set, Relationships, Reliability, Ecosystem, Brand, Foundation. We don't need to believe the Year-10 artifact to act. We need to build Year 1 so that Year 10 becomes inevitable — and the way you do that is to build the trust graph like it lasts.

TL;DR

The short version

Superyacht in Antarctica
The moments the substrate is built to compound

Sources & further reading

Internal — the canonical specs

External — the foundations the design rests on