IPloop · Origin & Supabase deep diagnostic


Purpose: One place that consolidates the Start Here → IPloop HTML pages (diagram, data funnel, Supabase structure, database PRD, data preview) plus what already exists live — so we do not need to re-open those tabs to plan Origin.


Audience: Gil + Origin rebuild of IPloop

As of: 15 September 2026

Primary HTML source: `/Users/cortexaios/PrecisionDataHQ/Management-github/docs/source-backups/reachai-os-system-pages.html` (474 KB, 15 Sep 10:00) — Start here dropdown pages

Also used: `~/Iploop/STATUS.md`, live `iploop` Supabase map, Sep 10 PRD/design HTML set, architecture page (direction only)


Stance for Origin: We are not extending the old GitHub tree. GitHub architecture is direction / vocabulary only. We rebuild in Origin from documentation + the live `iploop` Supabase reel, department by department.


Caveat (Gil): The HTML may be an older or incomplete version — primary framework yes, 100% correct no. Prefer Gil’s spoken department model when it conflicts with Management/Knowledge placement.


---


0 · How to read this document


LayerMeaning for Origin
**Framework**Departments, money rules, client types, funnel stages — keep
**Evidence / snapshots**Dated counts (Prime vault, workbook, Totach) — use as seed/test, not as live truth
**GitHub / agent OS / Management / Knowledge**Company-wide or historical — **not** IPloop product DB scope
**Live `iploop` Supabase**Already started clean rebuild (10 Sep) — **extend and contract**, do not invent a second product DB

---


1 · What IPloop is (product, not OS)


IPloop is a proxy + SDK monetization company run as its own business:


1. Proxy monetization — companies buy bandwidth through the platform (usage GB / requests / success → client cash).

2. SDK monetization — partners supply devices via SDK (inventory observations + partner revenue → partner money).

3. App monetization (Bravo Apps) — later channel; recorded as a business unit, not the first Origin build slice.


One company can be proxy, SDK, or both. Hard money rule everywhere: client cash and partner earnings never share one total. Missing ≠ zero. Reporting is read-oriented; imports land in staging and are reviewed before they become canonical.


Precision Data builds the operating system / tooling. IPloop is the first company that OS runs — drawn on its own in the HTML. For Origin we treat IPloop as a partner product repo + Supabase project, not as a folder under Management.


---


2 · Gil’s department model (build target)


These are the sections we are structuring the database (and later the Origin tree) around:


#Department (Gil)What it owns for IPloopHTML diagram closest match
1**Marketing**Outreach, social, signals / templates used in growthMarketing
2**Activities**Day-to-day operating activity streams (campaigns, outreach runs, follow-ups as *work*, not company OS tasks)Split across Marketing outreach + Management Kanban in HTML — **rename/reframe for Origin**
3**Sales**Pipeline to partners/clients, SDK intelligence, partner relationshipsSales & partners
4**Accounts · Clients · Leads**Company cards, proxy/SDK client facts, leads before they are clientsCustomers & accounts + PRD Section 1 Clients + future Section 2 Leads
5**Finance**Client cash, partner earnings, expenses, cash accounts, P&L (when sources exist)Finance
6**Design & branding**Site creatives, banners, content templates, brand packsDesign & branding
7**Website & applications**iploop.io, mini sites, apps/distribution surfacesWebsite & web dev (+ Bravo Apps as partner delivery later)
8**Operational**All systems connected: network/system inventory, feeds, monitoring, sync healthOperations & technical + System section + connectors

Explicitly **not** IPloop (company-wide, above IPloop)


AreaWhy out
**Management**Strategy, decisions, priorities, company tasks/scheduling for everyone
**Knowledge**Shared learning, sources, examples for everyone

The HTML still draws a department “Management & knowledge” under IPloop (Kanban, Command Center, knowledge docs, Slack, mail hub). For Origin: do not put that schema inside the IPloop product database as a peer department. If IPloop needs a work board later, it is a thin *operations* concern or stays in company OS — not a core monetization schema.


---


3 · Start Here → IPloop page (operation map)


3.1 Story the page tells


  • IPloop is its own company on ReachAI OS.
  • Three business units: Proxy / SDK / App (Bravo).
  • Agent team can be shared or dedicated (Hermes + Grok through Forge) — **agents are context, not Origin DB tables**.
  • Under each department: systems and data sources.
  • Bottom: systems of record + **three client channels** (SDK partners, proxy companies, apps later) — **Supabase follows channels, not org chart**.

  • 3.2 Systems of record (as drawn)


    SystemRoleOrigin treatment
    **Prime Owner Data Vault**Authoritative *read-only* reporting snapshot historically (accounts, plans, payments, usage, inventory, revenue workbook, knowledge)Upstream / drain source — not write target
    **cortex-data (old Supabase)**Legacy R&D holding IPloop tenants + many mixed tablesDrain through staging only
    **precisiondata (OS Supabase)**Company OS control planeOut of IPloop product scope
    **New management write store** (PRD idea)Tasks metadata, expenses, approvals, annotations + auditSplit: expenses → Finance when ready; tasks/approvals → **not** IPloop core
    **primepattern-sync Kanban**Work board snapshotNot IPloop product DB
    **SDK lead-intelligence exports**Competitors / apps / publishers evidenceFeeds **Sales** (+ later Leads)

    3.3 Department × systems (from diagram JS — framework)


    Marketing — Outreach (agent + cowork), Apollo, Instantly, enrichment (later), Vista Social, Buffer (unverified use), Trigify signals (candidate). Gap: templates process (design).


    Sales & partners — SDK lead intelligence, partner portals, outreach/contact queue (approval-gated), evidence tiers. Gap: CRM read model.


    Customers & accounts — Prime accounts/plans/payments/usage, API key metadata, Telegram (candidate), WhatsApp (gap). Gap: support history / notes.


    Finance — Client cash payments, partner earnings workbook, iCount, PayPal; expenses / cash accounts / P&L missing everywhere. Gap: two books to reconcile.


    Design & branding — Website redesign, social banners, outreach content templates, Buzz design pack. Gap: no tool / no standard.


    Website & web dev — GitHub, Vercel, HTML prototypes, client website as money + entry channel. Gap: site list / publishing.


    Operations & technical — Prime sync, Hostinger VPS, Better Stack, live inventory, logs, services. Gap: incidents / maintenance.


    Management & knowledge *(exclude from IPloop product scope per Gil)* — Kanban, Command Center, gateway, knowledge vault, Supermemory, Slack, mail hub.


    3.4 Known gaps called out on the page


    Expenses and recurring costs · cash-account balances · complete P&L · durable support history · incident/maintenance · project/milestone structure · approvals + user-action audit · design tool · WhatsApp path · expense sources still owed.


    ---


    4 · IPloop data funnel page


    4.1 Funnel rule (keep for Origin)


    Source → import → staging → review → canonical


  • Every source is registered before import.
  • Imports land in **staging**, reviewed row by row.
  • Only approval makes a row canonical.
  • Verified upstream rows (e.g. Tony) can be **locked**.
  • Missing is not zero; stale / partial / estimated / unverified are states.

  • 4.2 Two human feeds (named in funnel)


    Person / feedRole
    **Tony (Totach / Barak Revenue Report)**Partner revenue source of truth; monthly sheet; many rows `source=tony, verified`
    **Ultron**Observed system inventory / proxy-usage money (as named in notes)

    Tony’s automatic finance importer was disabled (8 Sep) when Anchor/Soax sync applied — monthly import into staging is the intended path.


    4.3 Four money streams (never mix)


    1. Client cash — what proxy clients pay (platform, PayPal, …)

    2. Partner earnings — what SDK/proxy partners owe (Tony sheet, portals, workbook)

    3. Pass-through (e.g. TRON wallet) — tagged expense/pass-through, not operating revenue

    4. Expenses / cash accounts / P&Ldo not exist in any system yet


    4.4 Open decision (framework, still live)


    Prime as permanent upstream vs migrate Prime reporting into Supabase once. Funnel works either way; arrows change. Origin default recommendation: keep Prime read-only upstream until Clients+System are trustworthy; migrate tables only with an explicit Gil decision.


    4.5 Owner-owed inputs (still true)


    Expense spreadsheet · cash accounts & opening balances · accounting basis · receipt/invoice locations · FX policy · approval thresholds · full systems register · consolidated website/app list · tenant/Bravo/WhatsApp/mail channel decisions.


    ---


    5 · Supabase structure page (section-by-section design)


    The HTML designs the new IPloop database in sections. Plain tables first, confirmed on real data, drawn last.


    SectionStatus in HTMLOrigin priority
    **1 · Clients**Drafted (Groups A/B/C)**P0 — already partially live**
    **2 · Leads & CRM**Follows laterP2 (Sales + Accounts/Leads)
    **3 · Inbox**Follows laterParked (not Origin first slice)
    **4 · System**Drafted**P0 — already partially live**
    **5 · Finance**Follows laterP1 boundary now; full schema when sources exist
    **6 · Development**DraftedP3 evidence admin — optional

    5.1 Section 1 · Clients (core)


    Group A — Company (shared)

    Companies · Contacts · Contracts/documents · Notes/follow-ups


    Group B — Proxy

    Platform accounts · Proxy terms · Usage per day · Country outcomes (quality, not billing) · Balances · Client payments · Monthly results (calc) · Attention (calc)


    Group C — SDK

    Reporting profile · SDK terms · Inventory observations (flexible metrics) · Revenue observations · Balance observations · Payouts · Monthly results (calc) · Attention (calc)


    Rules: missing≠zero · estimated labelled · exact periods · never mix cash streams · success rates from request totals · never sum overlapping device groups.


    5.2 Section 4 · System (network, not a client)


    Inventory snapshots · breakdowns (country/OS/device-type/SDK version as separate views) · activity summaries · usage report runs · coverage issues · freshness limits.

    Clocks are different (inventory ≠ activity ≠ usage report). Stale stays visible. Device-type currently duplicated OS in one snapshot — treat as one breakdown until API fixed.


    5.3 Section 6 · Development (evidence)


    Work items, tests, deployments, review findings — from real files, not an invented sprint board.


    ---


    6 · IPloop database PRD (v0.2) — requirements spine


    6.1 Decisions the PRD rests on (Gil, 10 Sep)


  • One **new clean Supabase project** for all IPloop business data.
  • OS project stays company-neutral.
  • Old project drained through staging.
  • Two client types in one Clients section; money never mixed.
  • No agent holds a DB key — access through the **door** by role.
  • Prime read as upstream for now.

  • 6.2 Real-data workbook findings that changed the plan


    AreaRealityDesign impact
    Proxy accounts2,732 non-internal; 3 named paying clients; classification neededAccount key = register; keep recorded vs confirmed company
    Proxy usageOnly closed days then; must run dailyMonthly results stay “partial” until full month
    CountrySuccess-only short windows**Country outcomes**, not usage-by-country billing
    Proxy payments ledgerUndated / failed purchases mixedCash needs Gil payments file + dated platform txs; bonus → balances not cash
    SDK10 clients; heterogeneous metrics; terms unknownObservations table confirmed; **reporting profile is first SDK job**; balance-meaning table added
    Contracts / ownersNowhere structuredManual admin entry from day one
    System snapshot~91k devices etc.; device-type = OS copyConfirms Section 4; flag API flaw

    6.3 Acceptance spirit (carry to Origin)


    Argus-style: missing≠zero · proxy≠SDK totals · re-import idempotent · door rights · one proxy card + one SDK card readable end-to-end · first write ships with audit or does not ship.


    ---


    7 · Data preview page — what “filled tables” look like


    Preview fills PRD tables from the 10 Sep workbook: real values where present, dashes where not. Useful as golden examples for Origin migrations/tests.


    Companies (13): Serper, GeoEdge, ProxyScrape (proxy API) + BigMama, CashRaven, EarnFM, EarnFM small, Geonode, HoneyGain, Infatica, Infatica 2, Repocket, Soax (SDK).


    No contacts/contracts/notes in preview (correctly empty). Classification and attention signals are rule proposals, not confirmed Gil decisions.


    ---


    8 · GitHub architecture page — direction only (ignore as build target)


    Logical company tree (Management, Knowledge-Base, Workflows, Agents, Platform, OS, Partners/IPLoop/…).


    For Origin IPloop: take only the idea that Partners/IPLoop owns partner-specific ops config and evidence-backed operations — not that we recreate PrecisionDataHQ repos. Physical repo count/hosting unresolved in that page; Origin is the chosen home for the rebuild.


    ---


    9 · What already exists live (do not rebuild from zero)


    9.1 Supabase projects


    ProjectRole
    **`iploop`**Live product home (clean rebuild from 10 Sep)
    **`cortex-data`**Legacy drain source
    **`precisiondata`**Company OS — out of product scope

    9.2 Live schemas in `iploop`


    `shared` · `clients` · `system` · `staging` · `audit` · `public` empty by design


    Migrations 0001–0013 present in `~/Iploop` (apply history partly via SQL editor).


    9.3 Live signals (approx, from map + STATUS)


  • 13 companies
  • ~2,732 platform accounts (few paying confirmed)
  • Totach path live (accounts, daily, months; Tony map)
  • Staging inbox large · audit log active
  • Daily `platform-pull` + `totach-pull` + health checklist
  • **Gaps:** contacts/docs/notes empty · sdk_profiles/sdk_terms empty · proxy rates incomplete · finance schema not created · leads/inbox not in new project

  • 9.4 Local product repo


    `~/Iploop` (STATUS, migrations, QA checklist) — reference implementation of the clean model. Origin checkout starts empty/greenfield and should absorb this contract, not the old multi-repo Management tree.


    ---


    10 · Mapping HTML departments → Origin database areas


    Proposed schema / domain split for Origin (names can be schemas or prefixed table groups):


    Gil departmentSuggested DB areaPrimary tables / feedsFirst slice?
    Accounts · Clients · Leads`shared` + `clients` (+ later `leads`)companies, contacts, docs, notes, platform_accounts, proxy_*, sdk_*, attention**Yes — Clients now; Leads later**
    Operational`system` + staging/feed plumbinginventory, activity, usage runs, freshness, collection_log, door, health**Yes**
    Finance`finance` (new) or views over payments for v1client_payments, sdk_payments, later expenses/cash/P&L**Boundary now; full later**
    Saleslater `sales` / leads intelligenceSDK lead-intel, partner evidence, pipelineAfter Clients trustworthy
    Marketinglater `marketing`outreach runs, Apollo/Instantly artifacts, socialAfter Clients
    Activitiesthin ops tables or viewsactivity streams linking marketing/sales/account follow-upsDefine after Clients+Sales
    Design & brandingmostly files + thin metadataasset registry optionalLow DB priority
    Website & applicationsconfig + deploy evidence / later appssite list, Bravo distributionLow DB priority until Clients/System stable
    Management / Knowledge**exclude**Company OS only

    ---


    11 · Origin tree — think with the world we want (parallel to DB)


    Goal: Origin repo structure mirrors departments + data contract, not PrecisionDataHQ’s historical folders.


    11.1 Suggested Origin layout (proposal for fine-tuning)


    iploop/                          # Origin product repo
    ├── README.md                    # What IPloop is + how to run
    ├── STATUS.md                    # Live truth (feeds, counts, open items)
    ├── docs/
    │   ├── product/                 # Business narrative, monetization pillars
    │   ├── database/                # This diagnostic, PRD spine, schema contracts
    │   ├── departments/             # One short brief per Gil department
    │   │   ├── marketing.md
    │   │   ├── activities.md
    │   │   ├── sales.md
    │   │   ├── accounts-clients-leads.md
    │   │   ├── finance.md
    │   │   ├── design-branding.md
    │   │   ├── website-applications.md
    │   │   └── operational.md
    │   ├── admin/                   # UI PRDs / templates (Clients, System, …)
    │   └── sources/                 # Pointers to HTML exports, workbook notes (no secrets)
    ├── supabase/
    │   ├── migrations/              # Numbered only; never edit applied
    │   ├── seed/                    # Non-secret fixtures
    │   └── functions/               # door, platform-pull, totach-pull, health
    ├── apps/
    │   └── admin/                   # Admin UI (Gil template) — later
    └── tools/                       # Import/review scripts, QA checks
    

    11.2 What not to put in Origin IPloop


  • Company Management / Knowledge bases
  • Agent identity fleets / Hermes OS wiring as product code
  • Recreating multi-repo GH architecture
  • Writes back to cortex-data or Prime

  • 11.3 Relationship to live Supabase


    Origin owns migrations + functions + docs. Supabase project `iploop` remains the reel. Parallel workstreams:


    1. Database structure — finish Clients + System contract; add Finance boundary; park Leads/Marketing.

    2. Origin tree — docs by department + migration discipline + admin scaffold when ready.


    ---


    12 · Variations / ideas (for strategy fine-tuning)


    Idea A — “Channel schemas” (closer to HTML slogan)


    Schemas: `proxy`, `sdk`, `system`, `shared`, `staging`, `audit`, later `finance`.

    Pros: Matches monetization pillars. Cons: Company card spans schemas (already true today with shared+clients).


    Idea B — “Department schemas” (closer to Gil’s wording)


    Schemas named marketing/sales/accounts/finance/…

    Pros: Matches how Gil speaks. Cons: Cross-cutting companies and money rules get messy; Activities overlaps Marketing/Sales.


    Idea C — **Recommended hybrid (Origin default)**


    Keep live `shared` / `clients` / `system` / `staging` / `audit` (already proven).

    Add `finance` when expense/cash sources exist.

    Add `leads` (or `sales`) when CRM starts.

    Document departments in `/docs/departments/*` so org language stays clear without forcing one schema per department on day one.


    Idea D — Activities as a first-class stream


    Treat Activities as append-only operational events (outreach sent, portal scraped, follow-up due, payment imported) linking to company_id — not as Management Kanban. That separates company OS tasks from IPloop business activity.


    ---


    13 · Strategy spine (what we refine next)


    1. Freeze Gil department list (this doc §2) as the Origin vocabulary.

    2. Freeze money + funnel rules (§1, §4, §5.1).

    3. Confirm hybrid schema Idea C vs A/B.

    4. Phase plan (already aligned with existing database plan):

    - Phase 0: contract freeze

    - Phase 1: complete Clients + System + matching/profiles/rates + view contract

    - Phase 2: Admin UI (Clients → System → thin Finance)

    - Phase 3: Sales/Leads, Marketing, Activities stream, full Finance, Website/Apps

    5. Parallel Origin tree: create `docs/departments` + absorb STATUS/migrations discipline from `~/Iploop`.

    6. Ignore Management/Knowledge/GitHub-as-destination while building the product DB.


    ---


    14 · Source inventory (so tabs can stay closed)


    ArtifactPath / note
    Start Here HTML (newest)`PrecisionDataHQ/Management-github/docs/source-backups/reachai-os-system-pages.html`
    IPloop copy`PrecisionDataHQ/Iploop/docs/design/reachai-os-system-pages.html`
    Store HTML copies`docs/html/*` in this Agent Store
    Live STATUS`~/Iploop/STATUS.md`
    Existing store docs`docs/iploop-project-description.md`, `docs/iploop-database-plan.md`, `docs/iploop-supabase-map.md`
    Sep 10 design setDownloads: Client Admin Design v2, System API Only, Development Admin PRD; `reachai-os/.../iploop-supabase-prd.html`

    ---


    15 · Bottom line


    The HTML gives us a company-shaped framework: departments, channels, funnel, Clients/System/Finance/Dev sections, and strict money rules. Live Supabase `iploop` already started that framework for Accounts/Clients + Operational/System.


    For Origin we: rebuild the product home in Origin, keep `iploop` Supabase as the reel, structure thinking by Gil’s eight departments, keep Management & Knowledge above IPloop, and use GitHub architecture only as directional language — then fine-tune strategy/PRD and build database structure and Origin tree in parallel, starting with Clients + System.