You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bug(hive): withdrawal is not reflected in transparency() — list() ignores the revoked column #931
Found while adding an HTTP-boundary test for #924.
SQLiteHiveStore.revoke() updates the revokedcolumn (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.
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.
Activity
fix(hive): reflect withdrawal in transparency + add HTTP-boundary tests
AmitoVrito commentedon Aug 12, 2026
Fixed in #924 (commit
eb5b23f) —SQLiteHiveStore.list()now overlays therevokedcolumn onto the reconstructed envelope, sotransparency()reflects withdrawals. Surfaced and covered by the new real urllib-transport → live-service HTTP round-trip test. Lands on main when #924 merges.