Skip to content

Write paths outside the shared check tail: push, validate, and stage + commit_staged #2076

Open

Description

@aaj3f

#2009 gives the write lanes one post-staging check tail (check_staged_write: one config read, then SHACL, uniqueness and the staged-config guard), replacing three copies that had drifted. A few ways to write or check data still go around it, so they can reach a different answer than a transaction would on the same data.

  • Push. Push validates pushed commits through its own SHACL call with replay semantics (origin_validated_replay; a violation is a 422), and runs neither uniqueness nor the config-group checks. As bplatz pointed out reviewing fix: JSON-LD graph scoping, config integrity and explicit-only SHACL #2009, that means a governed ledger accepts pushed duplicates and a split config (one an older client wrote, say), and a split config then blocks later merges until it's repaired. Routing push through the tail while keeping its replay semantics and statuses would hold a pushed commit to the checks a transaction meets. That changes what replication refuses, so it wants a release note.
  • validate without config. resolve_config_for_validate (fluree-db-api/src/validate.rs) falls back to default config on a config read error. Its comment says this mirrors the transaction path, but transactions refuse in that case (with fix: JSON-LD graph scoping, config integrity and explicit-only SHACL #2009, a 500 with err:storage/ReadFailure). A validation report produced without the ledger's config should fail, or at least say it was produced without config.
  • stage plus commit_staged doesn't register the graphs it writes. A commit made through the public fluree_db_transact::stage plus Fluree::commit_staged that writes the config graph records no graph registration in the commit's graph_delta. A branch created afterwards can't replay it ("flake references unknown graph Sid"), and with fix: JSON-LD graph scoping, config integrity and explicit-only SHACL #2009 such commits pushed to another ledger are refused (422). The transaction path registers correctly. The commit_unchecked test helper (it_config_graph.rs) takes this path, so tests seeded with it don't model branches either.

Related existing issue: #2069, the neighboring branch case (a branch of a never-indexed ledger replays its source's config into a user graph).

From #2009 (Follow-ups: push through the shared check tail; validate without config; stage plus commit_staged) and bplatz's review of #2009.

Activity

  1. added
    bug
    P2
    area:transact
    on Oct 12, 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:transactbug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions