Skip to content

A ledger copied under another name ignores the source's ledger config #2179

Closed

Description

@bplatz

What happens

A copy of a ledger under another name applies none of the source's ledger config. Copies under another name come from:

  • fluree publish --remote-name
  • an upstream that tracks a differently named remote ledger (push and pull)
  • restoring an archive under another name

The source's config commits arrive intact, but the copy reads them as data in an ordinary named graph.

Observed on feat/retention-history: commits pushed from a:main into b:main include a config commit that enables f:noHistory. b's retention pass discovers the commit but records no history rule, so b keeps serving the history a hides. Policy, SHACL and uniqueness are resolved through the same config graph, so they should behave the same way; not tested.

Why

The config graph's IRI names the ledger: config_graph_iri(ledger_id) is urn:fluree:{ledger_id}#config (fluree-db-core/src/graph_registry.rs). A commit's graph_delta lists the graphs it writes by full IRI. a's config commit therefore writes urn:fluree:a:main#config. In b, that IRI is registered as a user graph, while b's config reader reads urn:fluree:b:main#config (slot 2), which stays empty.

#2069 is the same mechanism within one ledger: a branch replayed from genesis reads its source's …:main#config as a user graph.

Decision needed

Should a renamed copy apply the source's config?

  • Yes: config is part of the data. Policy and SHACL travel with the history, as they do for a same-named copy. A fix would map the source's system graphs (config, and likely txn-meta) onto the copy's slots when commits are replayed or applied.
  • No: the copy's operator owns its config. Then the source's config graph probably shouldn't be served as an ordinary user graph either, and the behavior should be documented.

On feat/retention-history, retention is already inconsistent here. A pull merges the source's removal journal, history rules included, so a renamed copy gets the source's rules by pull but not by push. A push takes only removals from the journal and leaves rules to the receiver's config commits.

Activity

  1. added
    bug
    P2
    triage:needs-decision
    area:transact
    on Oct 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2area:transactbugtriage:needs-decision

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions