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
Slice 1 of #7585 (commit 0dfe789, pkgs/id/src/boards/subscription.rs) stakes a privacy invariant and then derives the surface that breaks it.
Evidence
`pkgs/id/src/boards/subscription.rs:14-17": "the only reads are a per-pair lookup and a per-subscriber listing, so there is no surface that enumerates who follows what."
`pkgs/id/src/boards/subscription.rs:296-299" (test): "follower identity is visible to no one but the follower" (oracle invariant 4).
pkgs/id/src/boards/subscription.rs:44" and :83": BoardSubscription and SubscriptionStore both #[derive(..., Debug, ...)] over subscriber: String (canonical Ed25519 key) keyed maps. One {store:?} in a log line dumps the entire follower graph: every subscriber key with every board each follows.
Verified, not a hunch
Added a temporary in-module probe (reverted afterwards, tree clean):
letmut store = SubscriptionStore::new();
store.follow(&viewer(),&board,1).unwrap();assert!(!format!("{store:?}").contains(&viewer()));
Result: FAILED — store Debug leaks subscriber key at src/boards/subscription.rs. The derived Debug prints the subscriber hex.
Why it matters now
Slice 1 has no callers yet, so nothing logs the store today — but slices 2+ (discovery/feed surfaces per #7585) will hold this store next to request logging. A single :?} on an error/log path then leaks who-follows-what. Redacting now is a ~10-line fix before the store grows callers.
Acceptance
SubscriptionStore and BoardSubscription no longer emit subscriber keys via Debug (custom redacting impl or removed derive), with a regression test asserting the rendered form contains no subscriber key.
Module docs still hold: per-pair lookup + per-subscriber listing remain the only enumeration surfaces.
Claim — Lane AAF (archer), 2026-11-23. Taking this item: replace the derived Debug on SubscriptionStore and BoardSubscription with redacting impls so no subscriber key renders, plus the regression test the acceptance names. Premise and ownership verified first-hand before this claim: thread count-confirmed at 1 comment (Kaneo bot link only, no lane claim). Work proceeds in a laptop worktree on branch lane-aaf-13452.
Done — Lane AAF (archer), 2026-11-23. Landed via PR #13486, merged 2d65edd6eda82ddbe7cf760f0b9e19811ad162dc.
What changed (pkgs/id/src/boards/subscription.rs, +58/−3):
BoardSubscription: derived Debug removed; manual impl renders "<redacted>" for subscriber (board, created_at, notify_mode, muted still render).
SubscriptionStore: derived Debug removed; manual impl renders only subscription_count — the keyed map never renders.
Regression test oracle_debug_output_never_renders_subscriber_keys makes the issue's probe permanent: neither rendered form may contain a subscriber key.
Serialization and behavior unchanged; the module had no other callers (slice 1), so nothing downstream is affected. Per-pair lookup + per-subscriber listing remain the only enumeration surfaces, as the module docs stake.
Verification (laptop, nix develop in pkgs/id, sccache bypassed per the standing defect note):
Module suite 10/10 pass, including the new regression test.
rustfmt: no new diffs from this change (the file's two flagged hunks pre-date it on main, left untouched); clippy: no findings in the touched file.
Premise was verified first-hand at main fa4b1d5fbd6 before the fix (both derives present over the subscriber-keyed map). Closing — both acceptance points are met.
Activity
developing-today commentedon Nov 23, 2026
CODE-4898
dezren39 commentedon Nov 23, 2026
Claim — Lane AAF (archer), 2026-11-23. Taking this item: replace the derived
DebugonSubscriptionStoreandBoardSubscriptionwith redacting impls so no subscriber key renders, plus the regression test the acceptance names. Premise and ownership verified first-hand before this claim: thread count-confirmed at 1 comment (Kaneo bot link only, no lane claim). Work proceeds in a laptop worktree on branchlane-aaf-13452.Merge pull request #13486 from developing-today/lane-aaf-13452
dezren39 commentedon Nov 23, 2026
Done — Lane AAF (archer), 2026-11-23. Landed via PR #13486, merged
2d65edd6eda82ddbe7cf760f0b9e19811ad162dc.What changed (
pkgs/id/src/boards/subscription.rs, +58/−3):BoardSubscription: derivedDebugremoved; manual impl renders"<redacted>"forsubscriber(board, created_at, notify_mode, muted still render).SubscriptionStore: derivedDebugremoved; manual impl renders onlysubscription_count— the keyed map never renders.oracle_debug_output_never_renders_subscriber_keysmakes the issue's probe permanent: neither rendered form may contain a subscriber key.Verification (laptop,
nix developin pkgs/id, sccache bypassed per the standing defect note):idlib suite (--all-features): 572 passed; the only 4 failures are the pre-existinghosted_exportfailures tracked in id: 4 hosted_export tests fail on main (BlobCitationMismatch/MissingBlob) #13444, identical on pristine main — no new failures.Premise was verified first-hand at main
fa4b1d5fbd6before the fix (both derives present over the subscriber-keyed map). Closing — both acceptance points are met.