Skip to content

bug(hive): withdrawal is not reflected in transparency() — list() ignores the revoked column #931

Closed

Description

@AmitoVrito

Found while adding an HTTP-boundary test for #924.

SQLiteHiveStore.revoke() updates the revoked column (UPDATE ... SET revoked = 1), but SQLiteHiveStore.list() reconstructs each ContributionEnvelope from the stored envelope_json blob — which still carries revoked: false from insert time — and never overlays the column. The column is used for filtering (include_revoked), but the returned envelope's .revoked attribute is always the stale JSON value.

Consequence: HiveAggregator.transparency() computes withdrawn = all(item.revoked for item in mine), so after a real withdraw() the transparency report still reports withdrawn=False — the withdrawal is invisible to the very report meant to surface it. (The 'dropped metadata' backend-bug class.)

Fix: have list() select the revoked column and overlay it onto the reconstructed envelope (dataclasses.replace). Surfaced by a real urllib-transport → live-service round-trip test.

Activity

  1. added
    bug
    on Aug 12, 2026
  2. added a commit that references this issue on Aug 12, 2026
    eb5b23f
  3. AmitoVrito commented on Aug 12, 2026

    @AmitoVrito
    CollaboratorAuthor

    Fixed in #924 (commit eb5b23f) — SQLiteHiveStore.list() now overlays the revoked column onto the reconstructed envelope, so transparency() reflects withdrawals. Surfaced and covered by the new real urllib-transport → live-service HTTP round-trip test. Lands on main when #924 merges.

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

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions