Skip to content

Design spec: settlement-backend interface (gittensor-owned or self-built, pluggable either way) #6098

Description

@JSONbored

Problem

We don't yet know whether the actual settlement/pooling layer for subnet-funded rewards ends up owned by gittensor (extending their existing registration/reward infrastructure) or needs to be self-built. Rather than block on that decision, the interface boundary between "AMS/ORB's work" and "money moves" can be designed now so either backend plugs in without a rewrite later.

Area

Product spec / architecture. Directly relevant to #4792 (rental ledger integration) — that issue's ledger/metering work should be built against this interface once it exists, not duplicated here.

Proposal

Define a settlement-backend interface, not an implementation: the contract a "pool funded, work discovered, work delivered, payout owed" flow needs, expressed so that (a) a future gittensor-owned settlement service, or (b) a self-built one, can sit behind it interchangeably. Cover, at interface level:

  • What triggers a payout-eligible event (a merged PR against a subnet-funded repo) and what data that event needs to carry.
  • How a pool's remaining balance/allocation is queried and decremented — read/write contract, not a specific ledger schema.
  • Refund/dispute/partial-completion semantics at the interface level (the actual policy is Settlement & refund handling #4791's job once the model is chosen; this issue only defines where that policy plugs in).
  • What "gittensor is structurally in the settlement path" requires at the interface level, if we build our own backend — i.e., the self-built version can't quietly disintermediate gittensor even as a fallback; the interface itself should make that structurally true, not just a business promise.

Deliverables

Resources

Boundaries

Spec only — this issue does not decide whether we actually build our own settlement backend, it just makes that decision reversible/cheap later by not coupling the ledger work to one specific backend now. No real payment rails, wallet/hotkey material, or reward figures.

maintainer-only — planning/decision issue, not itself a build task.

Metadata

Metadata

Assignees

Labels

maintainer-onlyOwner-only work — yields no Gittensor points.roadmapOn the Wave-2 agent-layer roadmap board (project 9)

Projects

Status
Done

Relationships

None yet

Development

No branches or pull requests

Issue actions