MI Mandate Intelligence Data Journey · v1

From a public filing
to a decision.

The complete, honest walk through the data platform and product — from raw regulatory feeds to the insight on a user's screen, and the two switches still standing between them.

Read first-principles from apps/platform · apps/api · apps/web Every figure traced to code Both apps · all layers
Scroll
01 The whole thing, on one line

A document only travels one road.

Twenty sources land in a single append-only table, ride a seven-stage bus, become mandate events, and are recomputed into insight at read time. Here is that road — and the gate that stops most traffic today.

02 Layer 0 · where data is born

Twenty front doors to the public record.

Each source is exactly one fetcher file — no registry, no abstraction. They do not parse; they only land raw payloads, idempotently. Not all of them feed the product, and the deck is honest about which.

03 Layer 1 · the landing

One table holds every
raw filing, forever.

Bronze is not a data lake of files. It is a single Postgres table — raw_document — append-only and content-addressed. Re-ingesting is free and changes nothing. Provenance starts here and is load-bearing for the rest of the journey.

    04 Layer 2 · the engine room

    Seven pure stages on a bus.

    A document is dispatched once, then flows stage to stage as an envelope on NATS JetStream. Every stage is a pure shell — subscribe, run, publish next. Failures never vanish; they park and stay replayable.

    · When things go wrong, on purpose

    05 Layer 3 · the product's atoms

    The mandate event
    is what the product sells.

    Silver is the structured truth: discrete mandate signals, the storylines that group them, the parties involved, and the GLEIF-anchored entity graph that lets the product know two names are one company.

    06 Layer 4 · insight, on demand

    Gold isn't stored. It's computed.

    There is no warehouse of pre-aggregated marts. Every insight is a SQL query that runs the moment a user asks — five families of them, straight over the silver tables.

    07 Layer 5 · the contract

    Every endpoint, traced to its tables.

    EndpointReadsServes

    Present in the schema but never read by the API — pipeline-side write targets only:

    08 Layer 6 · the screen

    What the user actually sees.

    09 The journey atlas

    Raw data to insight, told in full.

    Each journey is one real path from a public filing to a user's screen — with an honest verdict on whether it works today, is built-but-gated, or needs a switch.

    10 Straight talk

    What doesn't add up — yet.

    A great onboarding deck earns trust by naming its own gaps. Each of these is known, documented in-repo, and config- or build-gated — not an architectural dead-end.

    11 The honest story