Skip to content

Extend the repo-registry data model to support subnet-funded pool association #6320

Description

@JSONbored

Problem: #6099 defines the entity model for subnet-funded pools (subnet, repo, pool as distinct related entities) but the current registration data model (RegistryRepoConfig in src/types.ts, populated via normalizeRegistryPayload/registrySnapshots) is entirely repo-keyed with no way to associate a repo with a funding pool or subnet identity. Nothing in loopover's own storage can currently represent "this registered repo has a subnet-funded pool" at all.

Area: Platform / gittensor economics — registry data model

Proposal: Add an optional pool association to the existing repo-registration data model — a nullable poolId (matching #6098's SettlementBackend interface's own poolId field) plus a subnet identifier, attached to a RegistryRepoConfig/repositories row without changing anything about how an unfunded (organic) repo registration works. Additive only: a repo with no pool association behaves byte-identical to today.

Deliverables:

Acceptance criteria:

  • An organic (non-subnet-funded) repo's registration round-trips byte-identical to today — no poolId/subnet fields set, no behavior change.
  • A repo with a pool association can be read back with its poolId and subnet identifier intact.

Resources:

Boundaries:

  • No settlement mechanics, no pricing/allocation numbers, no UI.
  • Does not change organic (non-pool) repo registration behavior in any way.

Part of #6101.

Metadata

Metadata

Assignees

No one assigned

    Labels

    gittensor:featureGittensor-scored feature linked to a feature issue — scores a 0.25x multiplier.

    Projects

    Status
    Done

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions