Feature request: attribute per-project data storage / egress cost across remote remotes, for grant and purchase-order reconciliation
patch: per-project data cost attribution in DVC (grant/PO accounting)
Upstream
treeverse/dvc — https://github.com/treeverse/dvc (Data version control for ML and scientific data pipelines; Apache-2.0; ~15.9k stars, the de-facto Git-like versioning layer for datasets and models across S3 / Azure Blob / GCS / Google Drive / SSH / local remotes. Submit as an upstream feature-request issue under the PANDeveloper001 identity.)
Submission type
Feature-request issue (not a code diff). Title:
Feature request: attribute per-project data storage / egress cost across remote remotes, for grant and purchase-order reconciliation
What is missing
In the maintainer's own terms: DVC already knows exactly what data a project owns and
where it lives — every versioned object in the cache, which remote(s) it is pushed to
(dvc remote add s3://bucket/..., Azure Blob, GCS, SSH), and the object-hash index of
what each experiment or pipeline depends on. That index is exactly what a funded lab
needs to answer "how much is our data costing this project/per quarter", but the cost
half lives outside the tool: cloud bills arrive aggregated per bucket/account, and no
per-project figure exists that a PI or a core-facility administrator can drop straight
into grant or purchase-order reconciliation.
DVC has no per-project cost or budget accounting anywhere today (checked 2026-09-25: no open issue asks for cost, budget, billing or charge attribution; remote-storage issues are all connectivity/backend requests). It is open ground.
The change
Add optional cost attribution on the remote/config side:
- for each remote, an optional per-unit price (GB-stored, egress, per object) and a billing allocation name / project tag;
- a report (CLI or
dvc metrics-style output) that aggregates a project's versioned objects across remotes into stored-GB and estimated spend per named allocation, so a grant line or PO can be reconciled without leaving DVC; - an optional "settled / not yet settled" flag per reporting period, so a facility or cloud-credit pool can mark a period as reconciled.
That yields a per-project, per-remote cost figure a PI, an accountant or a shared cloud-credit pool can use, built on the object index that already exists.
Why they want it
DVC's users are exactly this shape: university and research labs, core facilities and ML teams funded by grants, institutional cloud credits or purchase orders. Data living in S3/GCS/Azure accrues a rolling storage and egress bill per bucket — not per project — and many groups share one bucket or one credit pool. A per-project figure, derived from the object index DVC already maintains, turns an aggregated cloud bill into defensible grant/PO accounting. No current DVC issue asks for it (checked 2026-09-25), and it fits the tool's own-data-model design: the data is already fully indexed.
Optional settlement note (keep brief, in their terms)
For groups that move past attribution to cost recovery (a facility recharging partner groups or an industrial collaborator for shared object storage, or a shared cloud-credit pool settling between projects), a feeless per-report settlement rail keeps the small per-period amounts economical. The attribution fields are the prerequisite and stand alone without any settlement.
Acceptance
- The issue documents the requested cost-attribution fields and the per-project / per-remote / per-period report use case.
- Title/body stay in DVC terms (remotes, object cache,
dvc remote, storage/egress, grant/PO reconciliation); a feeless settlement option appears only as the optional recovery footnote. - Posted upstream on treeverse/dvc, not on a fork we control.
Notes for the poster
- Post as the single PANDeveloper001 identity; one contact, no follow-up noise.
- Target repo: treeverse/dvc (moved from iterative/dvc). The object index
(
dvc.objects/ cache) anddvc remoteconfig already give the storage-ownership picture; if the maintainer asks for a concrete schema or a report sketch, that is a follow-up this member will prepare from the object-hash and remote-config internals.
Source: treeverse/dvc