itsgoin/crates/core/src
Scott Reimers 8d29cb918e fix: novelty gate on diff re-propagation + greetings_max reachable from app
Re-propagation fired on every receipt, so a duplicate diff spawned a fresh
round of sends with only sender-exclusion as a guard — no termination
condition in a dense holder cluster, which is exactly what hot open-slot
posts (registry, greeting-enabled bios) produce.

Now: every storage apply reports whether it actually changed state, and
apply_diff_ops returns only the ops that did. Nothing changed means no
header rebuild and no outbound push at all; a mixed diff re-propagates a
freshly built payload of only its novel ops rather than echoing what
arrived. Gating is on state change, not message identity — a hash seen-set
would break once coalescing lands, since no two pushes stay identical.

Tombstones count as changes even when their target is absent, so a delete
arriving before its comment still propagates.

Found while implementing: AddCommentSlots appended unconditionally, so a
re-delivered op grew the header forever AND looked novel forever —
unbounded amplification on precisely the clusters this gate targets. Now
idempotent on slot bytes.

Review found a remotely-triggerable blocker in the first cut: absent-target
tombstone placeholders were written with no expiry, and DeleteComment is
authorized per-op rather than per-cardinality, so one keypair could mint
unlimited valid deletes against any post a victim holds — permanent rows,
relayed onward, and served in the rebuilt header. The registry post is
universally held, making it network-wide unbounded growth. Fixed three
ways: a 64-per-post placeholder cap, a bounded expiry so the existing
sweep reclaims them, and exclusion from everything published (headers and
the uniques announce).

Also: RemoveReaction deliberately does NOT mirror the placeholder — it
carries no timestamp and is unsigned, so a guessed-timestamp placeholder
loses to a late AddReaction and the row key would be a free unbounded
write vector. Rationale documented on the arm; signed RemoveReaction
carrying the reaction timestamp is the named follow-up.

set_greetings_max/get_greetings_max exposed as Tauri commands and wired
next to the Accept-greetings consent control, clamped at the single read
point every writer funnels through.

267 core tests (was 250); a3 12/12; c_topology 33/33.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LGiPD2cF75mnvneSCjdDC5
2026-08-07 01:29:15 -04:00
..
activity.rs ItsGoin v0.3.2 — Decentralized social media network 2026-03-15 20:23:09 -04:00
android_wifi.rs fix: v0.7.3 — disable EDM scanner, bootstrap batching, stale-anchor prune 2026-05-15 14:33:45 -06:00
announcement.rs fix: comment retention taxonomy — TTL by (post policy x signing class) 2026-08-03 15:33:44 -04:00
blob.rs v0.3.6: Active CDN replication, device roles, budgets, tombstones, engagement fix, DOS hardening 2026-03-20 21:00:28 -04:00
comment_ttl.rs fix: comment retention taxonomy — TTL by (post policy x signing class) 2026-08-03 15:33:44 -04:00
connection.rs fix: novelty gate on diff re-propagation + greetings_max reachable from app 2026-08-07 01:29:15 -04:00
content.rs fix: comment retention taxonomy — TTL by (post policy x signing class) 2026-08-03 15:33:44 -04:00
control.rs fix: comment retention taxonomy — TTL by (post policy x signing class) 2026-08-03 15:33:44 -04:00
crypto.rs feat: v0.8 Iteration A — ID-class fixes, manifest privacy, registry + greetings 2026-07-30 08:28:26 -04:00
export.rs fix: comment retention taxonomy — TTL by (post policy x signing class) 2026-08-03 15:33:44 -04:00
fof.rs fix: novelty gate on diff re-propagation + greetings_max reachable from app 2026-08-07 01:29:15 -04:00
group_key_distribution.rs fix: comment retention taxonomy — TTL by (post policy x signing class) 2026-08-03 15:33:44 -04:00
http.rs refactor: v0.8 Iteration B — cruft purge + ALPN bump to itsgoin/4 2026-07-30 09:26:16 -04:00
identity.rs First-run chooser, node shutdown on switch, file picker, export path fix 2026-04-06 01:58:02 -04:00
import.rs fix: comment retention taxonomy — TTL by (post policy x signing class) 2026-08-03 15:33:44 -04:00
lib.rs fix: comment retention taxonomy — TTL by (post policy x signing class) 2026-08-03 15:33:44 -04:00
network.rs fix: comment retention taxonomy — TTL by (post policy x signing class) 2026-08-03 15:33:44 -04:00
node.rs fix: novelty gate on diff re-propagation + greetings_max reachable from app 2026-08-07 01:29:15 -04:00
profile.rs fix: comment retention taxonomy — TTL by (post policy x signing class) 2026-08-03 15:33:44 -04:00
protocol.rs feat: v0.8 Iteration C — narrow mesh, N1-N4 uniques index, anchor convection 2026-07-30 13:03:12 -04:00
registry.rs fix: comment retention taxonomy — TTL by (post policy x signing class) 2026-08-03 15:33:44 -04:00
registry_post_v1.json fix: comment retention taxonomy — TTL by (post policy x signing class) 2026-08-03 15:33:44 -04:00
storage.rs fix: novelty gate on diff re-propagation + greetings_max reachable from app 2026-08-07 01:29:15 -04:00
stun.rs Our Info panel, hole punch race fix, NAT profiles in relay introduction 2026-04-05 17:57:41 -04:00
types.rs fix: comment retention taxonomy — TTL by (post policy x signing class) 2026-08-03 15:33:44 -04:00
upnp.rs feat: v0.8 Iteration C — narrow mesh, N1-N4 uniques index, anchor convection 2026-07-30 13:03:12 -04:00
web.rs refactor: v0.8 Iteration B — cruft purge + ALPN bump to itsgoin/4 2026-07-30 09:26:16 -04:00