GeezerVison is showing github.com — Phase 4: held application messages need a bound · Issue #186 · developing-today/code
Phase 4: held application messages need a bound #186DescriptionThe history track holds application messages whose group secret is unreadable until a welcome or a later secret arrives (src/encryption/scheme.rs, held). Held messages for members who were removed are not capped, so a removed or stalled peer can grow the held set. Add a count and byte cap with a clear refusal, and decide what happens to messages that expire. Activitydezren39 commented on Oct 24, 2026 id train triage (2026-10-24): too-big-needs-design — held-message count/byte cap + expiry policy in src/encryption/scheme.rs; a removed/stalled peer can grow the held set. dezren39 commented on Oct 29, 2026 🤖 Agent note · picked up
- Agent: queue worker (repo-worker-code), lane D
- Session / ID: queue task 2031
- Found via: queue claim
- Task: Triage issue Phase 4: held application messages need a bound #186 — verify held application messages are unbounded against current main, then route as scoped follow-up or close with evidence
- Expectation: s — triage verdict backed by code citation at HEAD
- Links: n/a yet
dezren39 commented on Oct 29, 2026 🤖 Agent note · done
Verdict: CONFIRMED — the held set has no count cap, no byte cap, and no expiry at HEAD a3cdf6c9a35df1ff8b88b7a02d62e5c04ca4c94a.
Evidence (fresh reads of current main, not the issue text):
pkgs/id/src/encryption/scheme.rs:201 — held: Vec<Envelope> on Session, documented only as "Application messages this device cannot read yet, in arrival order."
process() in the same file pushes every unreadable application message that is not already held by id (if !self.held.iter().any(|held| held.id() == message.id()) { self.held.push(...) }) — the id-dedupe is the only guard. A grep of the file finds no held-message cap or expiry anywhere; the only cap present is TooManyParents for publish parents.
release() is the only place messages leave the held set, and only those whose group secret the device now holds — so messages from a removed or stalled peer, whose secret may never arrive, accumulate for the life of the session.
No competing work: no open PR and no other issue implements a held-message bound.
Routing: the 2026-10-24 triage comment on this issue called this "too-big-needs-design", so the follow-up packet pins the design: MAX_HELD_MESSAGES = 1024 and MAX_HELD_BYTES = 16 MiB (CBOR-encoded envelope lengths, as Envelope::new encodes), enforced in process() after the id-dedupe with a new SchemeError::HeldFull refusal styled on TooManyParents (checked before any crate call, so a refusal never poisons the session), and the expiry decision made explicit — no eviction, no time expiry: already-held messages are never silently dropped; the bound is refusal of new arrivals, which a sender/relay can re-deliver after a welcome or history answer drains the set. Enqueued as queue task 2976 (small_fix, dedupe repo-health:v1:fix:developing-today/code:issue:186, packet queue-packets/packet-186-fix.json). This issue stays open and is labelled queue/queued for that task.
dezren39 commented on Oct 29, 2026 🤖 Agent note · picked up
- Agent: queue worker (repo-worker-code), lane A shift
- Session / ID: queue task 2976
- Found via: queue claim
- Task: Fix Phase 4: held application messages need a bound #186 per the pinned design in triage task 2031: MAX_HELD_MESSAGES=1024 / MAX_HELD_BYTES=16 MiB caps in encryption/scheme.rs Session, new SchemeError::HeldFull refusal before the push, tracked byte total, no eviction/expiry.
- Expectation: branch + PR this shift, CI-first verification; acceptance tests per the packet.
- Links: triage verdict: task 2031 on this issue
dezren39 commented on Oct 29, 2026 🤖 Agent note · parked
- Agent: queue worker (repo-worker-code), lane C
- Session / ID: queue task 2976, lane C shift 2026-10-29 15:35 CDT
- Found via: queue claim (resume from parked awaiting_ci)
- Task: Re-verified fresh: PR id(encryption): bound Session held messages at 1024 / 16 MiB (#186) #2216 OPEN / CLEAN / MERGEABLE at 95a21b0, 29 checks pass (3 skipping, 0 fail), 0 unresolved review threads. Sole blocker is the merge-queue stall (ci: merge queue ejects every PR — no merge since #2233 (10:57Z), entries dropped 2-6 min into AWAITING_CHECKS #2403): main still frozen at 5a34fa7 (no merge since 10:57:51Z) and the queue ejected this lane's test entry (PR feat(usage-hub): Cloudflare live collector as gatherer file-export adapter (#1048) #2228) again at 20:39Z today, so a re-enqueue this shift would be another futile cycle.
- Expectation: Re-parked 1h. Resume verbatim: when ci: merge queue ejects every PR — no merge since #2233 (10:57Z), entries dropped 2-6 min into AWAITING_CHECKS #2403 closes / main advances, re-enqueue id(encryption): bound Session held messages at 1024 / 16 MiB (#186) #2216 → on MERGED complete fixed_merged, close Phase 4: held application messages need a bound #186, strip labels.
- Links: PR id(encryption): bound Session held messages at 1024 / 16 MiB (#186) #2216 · blocker ci: merge queue ejects every PR — no merge since #2233 (10:57Z), entries dropped 2-6 min into AWAITING_CHECKS #2403
dezren39 commented on Oct 29, 2026 🤖 Agent note · parked (gate recheck)
- Agent: queue worker (repo-worker-code), Lane C
- Session / ID: queue task 2976
- Found via: queue claim (resume)
- Gate recheck (fresh, 2026-10-29 ~22:30Z): PR id(encryption): bound Session held messages at 1024 / 16 MiB (#186) #2216 still OPEN, head 95a21b0, MERGEABLE/CLEAN, basic checks passing; ci: merge queue ejects every PR — no merge since #2233 (10:57Z), entries dropped 2-6 min into AWAITING_CHECKS #2403 (merge queue ejects every PR) still OPEN — this shift independently verified the ejection twice more (PRs fix(aggregator): age out done after 7d, collapse Done recently, filter retired Done-table class (#1146) #2430 and mcpx: typed sampling errors — -1 on rejection, expiry stays -32603 (#1835) #2440, evidence on ci: merge queue ejects every PR — no merge since #2233 (10:57Z), entries dropped 2-6 min into AWAITING_CHECKS #2403) and confirmed direct merge is 405 queue-required. Gate unmet; re-parked without burning another enqueue cycle.
- Expectation / resume: when ci: merge queue ejects every PR — no merge since #2233 (10:57Z), entries dropped 2-6 min into AWAITING_CHECKS #2403 closes / main advances: re-enqueue PR id(encryption): bound Session held messages at 1024 / 16 MiB (#186) #2216; on MERGED complete task 2976 fixed_merged, close Phase 4: held application messages need a bound #186, strip labels.
- Links: PR id(encryption): bound Session held messages at 1024 / 16 MiB (#186) #2216 · blocker ci: merge queue ejects every PR — no merge since #2233 (10:57Z), entries dropped 2-6 min into AWAITING_CHECKS #2403
dezren39 commented on Oct 29, 2026 dezren39 commented on Oct 29, 2026 🤖 Agent note · done (pr_opened), merge blocked upstream
- Agent: queue worker (repo-worker-code), OpenChamber scheduled lane · queue task 2976
- Found via: queue claim (resume from awaiting_ci)
- Verified fresh 23:47Z: PR id(encryption): bound Session held messages at 1024 / 16 MiB (#186) #2216 OPEN, not draft,
MERGEABLE/CLEAN, head 95a21b08, every basic: check green (guard list, nix flake matrix incl. cargo-check/fmt/clippy, crash-gate legs). No superseding PR; issue still open.
- Not done, not worker-authority: the merge.
main has not moved since 10:57Z — the merge queue ejects every clean PR (ci: merge queue ejects every PR — no merge since #2233 (10:57Z), entries dropped 2-6 min into AWAITING_CHECKS #2403, now user/escalated with the one-call fix). --admin is forbidden by repo convention and push-protection changes are repo-admin authority.
- Next: when ci: merge queue ejects every PR — no merge since #2233 (10:57Z), entries dropped 2-6 min into AWAITING_CHECKS #2403 clears,
gh pr merge 2216 --merge --match-head-commit 95a21b08, which closes this issue.
- Labels: stripped
status/parked, queue/parked, work/assigned so nothing looks in-flight.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|