Repository navigation
release(45.2.1): group calls on member relays, and the fixes after 45.2.0 - #1034
Merged
Merged
Conversation
…er (for the calls cut) Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RmimP31GP4L7i54KY5xF7o
…s relay wiring Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RmimP31GP4L7i54KY5xF7o
…ay, RelayStatus, peer_relay path event, relay plane, holder ranking Uncompiled work in progress, committed so a restart cannot lose it. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RmimP31GP4L7i54KY5xF7o
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RmimP31GP4L7i54KY5xF7o
…ack capped uplink, no tc) Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RmimP31GP4L7i54KY5xF7o
…osed link releases its direct path) Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RmimP31GP4L7i54KY5xF7o
…alls Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RmimP31GP4L7i54KY5xF7o
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RmimP31GP4L7i54KY5xF7o
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RmimP31GP4L7i54KY5xF7o
…ntified) and names every failed criterion Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QhnFA55hn77AhZmw1ELLPE
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QhnFA55hn77AhZmw1ELLPE
…per node Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QhnFA55hn77AhZmw1ELLPE
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QhnFA55hn77AhZmw1ELLPE
persist 61.4 raises a re-offer of a hold this node already settled (`cosign_pending_settled`), and a pending row signed more than one hold window before receipt (`cosign_pending_too_old`), as an untyped InvalidArgument led by a stable pub const token. Edge's conservative default booked both transient, so the founder's pushed cosign signature rows were re-asked every round in the 12-person room (~16 refusals per joiner). Neither can turn: a settled hold is not held again and the event only ages. typed_terminal_verdict now reads the token prefix. Witness: a_cosignature_for_a_settled_hold_is_refused_terminal_1029 (real sqlite stores, the hold filled by its voices, then a further voice). CIRISEdge#1029 F7 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QhnFA55hn77AhZmw1ELLPE
…very ask round_and_report ran the signer-recovery round first on every round, the RoundNow kick included. In the 12-person room the joiner's kick toward the founder, right after publishing its KeyPackage, sent a recovery Fetch the founder did not answer inside the round timeout, so the KeyPackage's Summary left 8 s late on every kicked hop. A kick exists because a caller cannot wait: on a kick the ordinary round goes first and the recovery round follows it in the same tick (never overlapping, never starved by a stream of kicks). A cadence tick keeps the recovery-first order (#1005). Witness: a_kicked_round_sends_its_summary_before_a_queued_recovery_ask_1029. CIRISEdge#1029 F4 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QhnFA55hn77AhZmw1ELLPE
One Deliver from the founder carried the joiner's epoch wrap and the room's cosign rows ahead of the widening that seats the joiner. Applied in wire order the wrap was refused recipient_not_in_audience and the cosign rows not_in_audience half a second before the widening opened the audience, and the wrap landed ~147 s later on rounds that timed out. On the Attestation plane the group's record, a widening and the consent it rests on (proposal, acceptance) now apply first, then the rest; wire order is kept within each part. A removal or resignation keeps its place. Witness: a_deliver_applies_the_widening_before_the_rows_its_audience_gates_1029 (the applier is persist's audience rule reduced to its order dependence; the rows are the field's shapes). CIRISEdge#1029 F2b Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QhnFA55hn77AhZmw1ELLPE
A pull parked on its room's scope install was re-run only on the puller's retry tick (5 s): ~4 s on the joiner's path to its first read once the room keyed. The address table now announces its generation on a watch channel (bumped where the generation already was), and the puller wakes the parked pulls when it moves; the tick stays the backstop and picks the channel up if the table is armed after the loop starts. The holder-dropped line for a group not installed yet (the room still keying; the pull waits for the install) is INFO, not WARN: it repeated per holder per retry on every joiner. Other scope refusals stay WARN. Witness: the_loop_wakes_a_scope_parked_pull_on_the_install_1029 (the run loop, a minute-long tick, a parked pull, then the install). CIRISEdge#1029 F5 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QhnFA55hn77AhZmw1ELLPE
… drops what it cannot use The 12-person room's last joiner waited 160 s for its Welcome. A Welcome is attested to its author and names its joiner only in the body, so no required query read it; it moved as the newest room row behind the joiner's #968 backfill (every other member's KeyPackage, ten earlier Welcomes, ten Commits, ~0.5-1 MB of PQC-sized rows) through an oldest-first push that stops at 256 KiB, four rounds after it was placed. - A group the peer joined is watched for its Welcome: each listing reads the group's Welcomes (bounded: 60 listings, 3 more once found) and the one naming the peer is a required row, spliced at the front of the required read so the push carries it first. - The join backfill drops every KeyPackage, every Welcome for someone else, and every Commit at or below the epoch of the joiner's Welcome when it is known. A dropped row is only not backfilled; it moves as any row does. chat.rs gains crate-visible readers of the Welcome's recipient and the handshake epoch. The one existing caller of group_history_backfill (a 968 witness) passes the new arguments. Witnesses: the_joiners_welcome_leads_the_push_past_a_backlog_over_the_budget_1029 (the production session's push over the bridge), and a_welcome_placed_after_the_backfill_is_required_for_its_joiner_1029. CIRISEdge#1029 F1 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QhnFA55hn77AhZmw1ELLPE
…d on admission
As agreed with the server on CIRISEdge#1029: EventKind::RowAdmitted
{dimension, group_id, subject, author, row_id} on the existing EventBus's
union channel (subscribe_all), for a row admitted from a peer through the
replication apply choke. dimension is the closed set AdmittedRow:
key_package | welcome | commit | membership_decision (acceptance,
decline) | membership_widen | key_grant. subject is the attested key, or
for a Welcome the joiner it is for. Coalescing is acceptable; on Lagged
the host's sweep is the fallback. Two host wins hang on it: seating on the
decision (~19 s) and adding on the KeyPackage (~20 s); until now the
KeyPackage's admission was a log line only.
Wiring: ReplicationRuntimeConfig::events (None by default) into the
bridge's with_events; the PyO3 host passes the Edge's bus. A Rust host
(the server) sets config.events = Some(edge.events()).
EventKind gains a variant: an exhaustive match on it outside this crate
breaks (API-visible).
Witness: an_admitted_widening_and_keypackage_are_announced_1029 (real
stores and rows through the replicated door).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QhnFA55hn77AhZmw1ELLPE
…roke Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QhnFA55hn77AhZmw1ELLPE
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QhnFA55hn77AhZmw1ELLPE
index_on() left holdings_audit_every at its 60 s production default, so
any witness built on it whose run crossed a minute of wall clock had an
audit fire inside it. A 27-minute loaded lib run failed
the_set_equals_a_full_drain_through_every_door_971 that way ("no audit
ran", left=2); it passed alone.
Red, reproduced by shrinking the fixture's audit to 1 ms: four witnesses
fail for the timer, not for what they test (the full-drain equality with
left=2, exactly the field failure; idle_summaries_drain_the_index_zero_times_971
read the store 15 times; a_direct_store_write_is_not_wanted_971;
no_ask_waits_on_the_warm_up_and_none_boots_the_set_before_it_971). Green
with the fixture's audit at NO_TEST_OUTLIVES. Users of index_on(): the
holdings_index, holdings_doors, stale_route and cosign_1252 tests; those
that want an audit set Duration::ZERO themselves, the rest override it or
never reach the timer.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QhnFA55hn77AhZmw1ELLPE
…d its bound is witnessed F1 added one list_targeted_by_dimension_prefix per listing for each group a peer joined while its Welcome is watched. It was credited to edge.advertise.groups; it is now edge.advertise.welcomes (read_caller::Site::AdvertiseWelcomes, 27 of persist's 32 caller labels), so a hub's join cost is its own line in persist_reads. Witnesses: - the_welcome_read_is_credited_to_its_own_read_site_1029 (real SqliteBackend, persist's per-caller counter). Red before the label: nothing credited edge.advertise.welcomes. - the_welcome_read_stops_once_found_or_spent_and_costs_a_settled_member_nothing_1029 (CountingDirectory, the targeted door alone): a member that joined nothing reads 0 in 10 listings; a found Welcome is read in 1 + WELCOME_FOUND_LISTINGS listings and never again; a watch that never finds one reads WELCOME_WATCH_LISTINGS - 1 after the join round and then stops. Green on the F1 code as committed (a bound check, not a fix). CIRISEdge#1029 F1 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QhnFA55hn77AhZmw1ELLPE
…roposes nor accepts CC 5.4.6: a node in the Anonymous Tier holds only layer and rendezvous links, and a direct-link upgrade hands the peer (and the facilitator) the node's address. Neither side asked about the tier: - proposing: open_av_link was gated (media_allowed), but the #915 hook proposes on a send to a room peer, and the glare fallback proposes after its wait; both reach dispatch_proposal unchecked; - accepting: direct_link_requested decided on room standing alone. One predicate, OnionRuntime::may_reveal_address (Err while the tier is active, token onion_anonymous_no_direct). dispatch_proposal, the one door every proposal goes through, checks it first: nothing is sent, so leviculum opens no session and probes no facilitator, and the peer is backed off as for a refused proposal (reason propose_refused). The answer to a request checks it at decision time and refuses with the existing answer (accepted=false, direct_link_request_refused); should_accept_direct reads it too. The call event's `anonymous_no_direct` cause is a follow-up on the calls branch (feat/media-path-failed) and needs the server's sign-off; it is not here. Witnesses (tests/direct_links_805.rs, the trio with one side's tier active: opted in and a dealt period whose every layer answers): - an_anonymous_node_refuses_a_direct_link_request_1028. Red before: B accepted. - an_anonymous_node_proposes_no_direct_link_1028. Red before: A's send proposed and B was asked. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QhnFA55hn77AhZmw1ELLPE
too_many_lines on two fixture-heavy witnesses (allowed with the reason, as the #1005 witness beside them is), and the F5 witness's helper moved ahead of its statements (items_after_statements). CIRISEdge#1029 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QhnFA55hn77AhZmw1ELLPE
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QhnFA55hn77AhZmw1ELLPE
The room-join fixes (CIRISEdge#1029 F1, F2b, F4, F5, F7 and the RowAdmitted event), the #1028 anonymous-tier direct-link gate, and the holdings-index fixture that ran a wall-clock audit. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QhnFA55hn77AhZmw1ELLPE
… and lands its wrap The F2b unit witness models persist's audience rule with a stub applier; this one runs the production Session's Deliver over a real runtime's bridge on real sqlite stores. A (the founder's node, the minter) widens Q in by consent and seals, so its epoch is wrapped to B (Q's node). B holds the room's record (P alone) and not Q's seat. One Deliver carries, in the founder's required-read order, the wrap to B and a room row of P's, then the proposal, the acceptance and the widening. Precondition (the field's token): the wrap alone is refused recipient_not_in_audience. Red with F2b's apply order reverted to wire order: (admitted, refused) = (3, 2), the wrap and the room row. Green with it: (5, 0), and B holds A's grant for the epoch. The room row stands for the field's cosign rows: both are refused by the same not_in_audience gate until the joiner is seated, and a cosign hold needs a majority room of three this fixture does not build. CIRISEdge#1029 F2b Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QhnFA55hn77AhZmw1ELLPE
…he call-path tokens); clippy on the NAT call witnesses Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QhnFA55hn77AhZmw1ELLPE
…nly, shaped_only_no_media) at join, dial and accept; the frozen token list Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QhnFA55hn77AhZmw1ELLPE
…ol frame (RED: 41 C3 frames shed with media) The receiving edge's inbound A/V queue per link (256, drop-newest) carries the ALM C3 control frames with the media, so a listener that falls behind a media flood loses offers and answers the transport delivered: come-back's admits sent 67 / taken in 42, and every unanswered SUBSCRIBE in its runs. New label av_inbound_control_dropped counts the C3 frames among the sink's drops. The witness holds one listener's pump 12 s while three members publish: its queues overflow (637 dropped) and 41 of them were C3. RED on 7fbc1dc; the fix (control frames never shed with media) follows on a ruling. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019ZeGbV1jgLwkVAPqjjgpYm
… with media at the receiver Each A/V link's inbound frames went through one bounded queue (256) that drops the newest when full, and the ALM C3 control frames (offers, admits, refusals, subscribes, sheds) rode it with the media. A listener that fell behind a media flood (after a cap lifted, P's backlog and the uncapped rate at once, each chunk verified) lost answers the transport had delivered and acked: come-back's admits sent 67 / taken in 42, unanswered SUBSCRIBEs for tens of seconds, listeners left parentless. Each link now has a second queue for C3 frames (AV_LINK_CONTROL_DEPTH 1024, newest dropped only under abuse), and the pump takes from it first (biased): an answer never waits behind media, and is never dropped with it. Media keeps its queue and its drop-newest rule; a control frame carries no hop counter, so the media's drop count waits for the next media frame. Witnesses, both RED first: - a_listener_whose_pump_falls_behind_still_takes_every_control_frame: one listener's pump held 12 s under three publishers; 32-41 C3 frames among the sink's drops before, 0 after (453 media dropped), 157 C3 taken in. - av_sink a_control_frame_is_never_shed_with_media_and_goes_first. --lib av_sink 10, realtime_av_runtime 6, realtime_av_dispatcher 20, transport::av_call 109, realtime_av_alm 183 green; wide clippy clean. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019ZeGbV1jgLwkVAPqjjgpYm
…host does It never read them: each listener's call filled its frame queue (256) and heard queue (1024) within seconds, then every link pump of that listener waited on the heard queue, control frames included, and from then on the listener took in no C3 at all (answers sent on its links: delivered by leviculum, never read). The witness was judging a harness that had stopped listening. count_frames_from drains them, as the kill witness does. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019ZeGbV1jgLwkVAPqjjgpYm
…lossy, control and relaying are not A host that stops reading the call's frames (a backgrounded app, a busy UI thread, a paused decoder) parked its node: the reorder stage awaited the full frame queue (256), the heard queue (1024) then filled, and every link pump awaited it in turn, so the node stopped taking in C3, stopped metering its parents and stopped relaying, while leviculum still delivered and acked its links. Both sends toward the host are now try_send: a frame the host cannot take now is dropped (the newest, since the queues are FIFO channels owned by their reader) and counted in av_frame_dropped_host_not_reading. Witness a_member_whose_host_never_reads_frames_keeps_its_place (R's host never calls frames() while three members publish, 90 s): R's pumps keep reading its links (no sink overflow), it keeps taking in control every second, keeps a parent for every stream (never without one over 1.5 s), and does not fail over. RED on 2ba6adb: 11358 and 12313 frames dropped at R's sink in two runs (its pumps parked); 2 of 4 earlier runs also lost R's parent and its control frames. Green 3/3: 0 sink drops, 0 failovers, 7832 dropped for the host, ~800 C3 taken in (vs ~190 parked). --lib transport::av_call, av_sink, realtime_av_runtime, realtime_av_dispatcher, realtime_av_alm: 10 runs each, all green; wide clippy (-D warnings, all targets) clean. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019ZeGbV1jgLwkVAPqjjgpYm
… waiting a minute After a cap lifted, a publisher's congestion-taught ceiling could only expire by ageing 60 s, so its children came back to it more than 70 s later (the come-back witness's one remaining failure). And the demand that grows the ceiling was a flag with no age that every Capacity refusal set: one set under the cap by a child the publisher had just shed was spent 33 s later, after the lift, and started a shed, refuse, step, re-admit cycle with no cap at all (mesh4 n4, intermittently 0.83 heard for 0.99). The rule, rows RO, ProbeAfterDrain and FR of the call model: - A refusal is demand only if no stall verdict is latched, the asker was not shed by this publisher within the dwell, and any congestion-taught ceiling has drained for the hold. Demand lapses a dwell after it was set. - Once the uplink has drained for two clean windows, a live call's publisher raises a congestion-taught ceiling one stream per dwell, each step one stream above what is committed now (steps compounded on unused room: 145, 217, 290, 363 k with no congestion between). It no longer jumps to what one window carried. - A step that meets congestion, or an over-committed shed, is a failed probe however long it took; how long is kept. Fails are forgotten only when a widening has stood for its own backoff wait and twice the longest time-to-fail, or the ceiling goes stale. PROBE_FAILS_MAX is 4 (32 s). Forgiving at the next widening let a step that fails slowly reset the backoff, so a held cap was probed on the dwell's rhythm for the whole call. The mesh4 sim now runs on the world's clock: its nodes read a step counter, where they read Instant::elapsed and so added the host's compute time to every step (run-to-run results moved with the box's load). Witnesses: a_drained_uplink_reopens_a_congested_ceiling_by_probing and a_refusal_of_a_just_shed_member_is_not_demand (red with the rule off); n4_a_held_cap_reprobes_ever_more_rarely (probe gaps 10, 40, 51 s over a held cap); n4_a_rate_cap_sheds_and_recovers_within_the_bound (steps at the dwell after the lift). realtime_av_alm 185/0 and transport::av_call 110/0, 5 runs each. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019ZeGbV1jgLwkVAPqjjgpYm
…gestion verdict Two faults kept a call's listeners off a publisher whose cap had lifted, both seen in the come-back witness once the publisher re-opened in seconds. The way back (row RD): a listener that left its publisher for a relay kept a member as its standby, and nothing re-picked the publisher while that relay stayed healthy. The publisher offered room 8 s after the lift and for 50 s no child took it. Now, when a node hears a stream through a relay, its standby is a relay too, and the stream's publisher offers room for a whole stream, the standby moves to the publisher; the direct-first switch then upgrades it. No shed without a verdict (row NV): a live call's forwarder sheds an existing child only in a window that carries a congestion verdict. The clean-window "over-committed" shed fired on accounting alone: another stream the node relays admitted someone, the limit left for this stream fell below what was committed, and a child admitted at 55.78 s was shed at 56.50 s with no cap (four primary changes for one listener). come-back: all direct 35 s after the lift (bound 85 s), nobody parentless, no link torn, at most two primary changes. realtime_av_alm 185/0, av_call 110/0. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019ZeGbV1jgLwkVAPqjjgpYm
… whose host reads nothing still relays to its child - A control frame dropped at the A/V sink (its per-link control queue full) is logged at WARN once per link (av_inbound_control_dropped counts every one); the warn-once set is bounded at leviculum's link cap. - A call event the host's queue cannot take (64, try_send: nothing ever waits on it) was dropped with a debug line only: now counted in av_call_event_dropped_host_not_reading and logged at WARN once per call. Events are still dropped when full, pairs included; the pair-preserving coalescer the server specified is not in this commit. - Witness a_member_whose_host_reads_nothing_still_relays_to_its_child: R never takes frames() or events(); P and C cannot reach each other, so C hears P only through R, for 90 s (past R's 256 + 1024 host-bound queues). RED with the host-bound sends awaited (8ecff80's fix reverted): C heard 1282 of 2630, nothing from 44 s on. Green 3/3: 2629-2643 of 2629-2643, no empty second, ~2380 frames dropped for R's host. It generates no more than a handful of events, so it does not fill the events queue. --lib transport::av_call, av_sink, reticulum, realtime_av_alm 10 runs each green; wide clippy clean. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019ZeGbV1jgLwkVAPqjjgpYm
Version 45.2.0 (MINOR). Pins: persist v61.4.4, CIRISVerify v22.2.4, leviculum v0.34.0+ciris.4 by tag. Evidence rows, README and MISSION status, CHANGELOG and release notes. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019ZeGbV1jgLwkVAPqjjgpYm
…cast_sign_loss) Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019ZeGbV1jgLwkVAPqjjgpYm
… proposal Since leviculum v0.34.0+ciris.4 a node answers a proposal only by probing a facilitator of its own; it no longer probes one the proposer names. Edge handed leviculum its facilitator only when the node itself proposed, so a node with a facilitator named and proposing off refused every proposal as unsupported (Rejected(3)), and its links never went direct. The facilitator is now handed over whenever one is named; proposing stays edge's to start. The two direct-link suites were written around an answering side with no facilitator at all, which the new handshake refuses: 15 of 33 tests in direct_links_805 and 7 of 12 in av_call_nat_805 failed on the tag. Their answering node now names the facilitator and does not propose; one test's expectation for that node's own leg becomes other/proposing_off (it was no_facilitator). direct_links_805 33/0, av_call_nat_805 12/0. A node with NO facilitator named, or with proposing switched off by the operator (which resolves none), can no longer accept a direct link: that is leviculum's rule now, and is in the release notes. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019ZeGbV1jgLwkVAPqjjgpYm
…d reaching us The guard (CIRISEdge#926) judges a link dead after three Channel sends land nothing. Under a capped uplink the capped node's acknowledgements wait behind its own queue for seconds, so the one child it still fed saw three such sends in 3.2 s and retired its punched path to the publisher, while receiving that publisher's media on it the whole time. The whole call tree hung off that child (server matrix on 0a2df94, N=6 at 300 kbit/s: every listener silent for 14 s; the same retirement at +13 s and +21 s in N=4 at 250). Verified media from a peer is proof it is alive and reaching this node. When any of the peer's links carried such proof within 2 s, a stalled link to it is held: its count starts over, its clock does not, so STALL_BOUND (30 s) still ends a link whose peer truly stopped acknowledging, and a one-sided punch (nothing arrives at all) is judged as before. Counted as link_stall_held_peer_alive. Witness: a_stalled_link_whose_peer_is_alive_is_held_and_still_bounded. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019ZeGbV1jgLwkVAPqjjgpYm
The first screen now carries the whole idea; each piece is one table row (problem, then what edge does); facts, caveats and links are kept. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019ZeGbV1jgLwkVAPqjjgpYm
…hat a cap costs in its first seconds Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019ZeGbV1jgLwkVAPqjjgpYm
Eric's ruling on the server's capped-uplink matrix (522d376): four members pass every bar at 250 and 300 kbit/s; six do not yet. The release notes, changelog and README say so, with the measured figures. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019ZeGbV1jgLwkVAPqjjgpYm
…ure again v45.2.0's CI failed four lanes (core with transport-http only, packet-radio, the test-anchor full lib, the uniffi bindgen build): 25 unresolved leviculum_core / leviculum_std imports in realtime_av_runtime.rs. The #[cfg(feature = "_reticulum-module")] that guarded mod leviculum_link ended up on the send_diag module inserted in front of it, so the link module compiled in every build. The gate is back on the module. The release gate ran the wide feature set only, which cannot see code used without its feature. Checked: cargo check --all-targets with transport-http alone and with transport-packet-radio alone; cargo build --bin uniffi_bindgen_cli --features ffi-uniffi. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019ZeGbV1jgLwkVAPqjjgpYm
The field failure: six nodes joined a room call within 0.2 s; four of
them joined a moment before their chat driver applied the room's
"member added" commit. Edge::join_call opened the room through the
Edge's CohortGroups, which loaded its own copy of the MLS group and
cached it for the life of the process; the chat driver applies commits
to a different handle on the same store. The call's watch read the
cached copy, so those four sat one epoch behind for ever: they dialled
addresses nobody registered and nobody could dial them. The call never
formed in 120 s, with no "CALL ROLLED" line anywhere; leaving and
rejoining reused the stale copy, and only a restart cleared it.
The rule: a call always runs at the room group's CURRENT stored epoch.
- CohortGroup::refresh_from_store: one read of the 9-byte head slot;
when the store's head is past this handle's epoch, the handle's state
is reloaded from the store IN PLACE (so every clone, the call's among
them, reads it). It never moves a handle back; commits held for a
later epoch survive. CohortGroup::stored_epoch reads the head alone.
- CohortGroups::open_existing and ::open refresh a cached handle before
handing it out.
- The call's watch refreshes every tick before it compares epochs, and
a roll now redials every remaining member at its new address at once,
racing a dial still in flight to the old one (RACE_ON_ROLL, as
RACE_ON_INBOUND does).
- A roll error is no longer swallowed: counted every tick it happens
(av_plane av_call_roll_failed) and logged once per cause, again every
30 s while it stands. av_call_room_followed_store counts the reloads.
Both are in docs/TELEMETRY_CATALOGUE.md. No host-facing event added.
- NoRouteToPeer from a derived-address dial reports the path table's
own has_path instead of a hard-coded false.
Witnesses (tests/av_call_805.rs), both red on 3c47746 (v45.2.0 code
with only the witnesses added): the one-node call never rolled to the
commit a second CohortGroups on the same store applied ("the call
rolled to the stored head within 3s"), and in the three-node join race
B's call stayed at epoch 1 ("B's call rolled to epoch 2 within 3s (at
1)").
Worst case from "commit applied by another handle" to "call at the new
epoch": one watch tick (250 ms) plus the roll (a reload, a stream key,
the bindings); measured 157-232 ms. Every pair's legs then come up
within two dials (this node's redial, and the member's race back on the
inbound link): measured 258-528 ms after the commit. The witnesses
assert 3 s and 10 s.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019ZeGbV1jgLwkVAPqjjgpYm
…mpiles Version 45.2.1 (PATCH). Pins unchanged. Evidence rows, README and MISSION status, CHANGELOG and release notes. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019ZeGbV1jgLwkVAPqjjgpYm
The kill witness (a_capped_publishers_kept_child_lost_mid_cap_is_recovered) failed 1 run in 4 on v45.2.0: after P's kept child died, P refused every member that asked for the rest of the probe hold, ~30 s against a ~7.6 s bound. Mechanism, from a per-window dump of P's own admission in a failing run: - after the kill P's own ledger is empty; the uplink stays congested and stalled for four windows while its 3.2 s backlog drains at the cap; - in that span P admits relay standbys for OTHER members' streams (8, then 16 kbit); the last stall window sets P's ceiling to one stream plus the 8 kbit relay work (G8, fold_egress_window); - every primary ask is refused Capacity (82965 bit/s of room for a 90.5 kbit/s stream), and no refusal is demand (row RO: the stall's probe hold is latched to ~28 s and the uplink never measures drained), so nothing re-opens P before the hold ends; - the row S3 no-primary admit exists for exactly this, but was guarded by `external_committed == 0`: any relay commitment switched it off. The runs that passed got their ask in before the relay standbys. The rule: a publisher with no primary child admits one past RELAY work (other members' streams, which other forwarders can carry); only its own other streams (shares) keep their room. The next verdict sheds the relay work, never that last primary: in the witness's decision log, e.g. "t=19252 stream=fdc4 Shed subj=A (over-committed)" (a relay) right after "t=18317 stream=6d43 Admit subj=B (admit)" (P's own), P's own child kept. - Admission::set_external_relay_committed: the relay part of the external commitments; S3's guard is `external == relay part`. - av_call/alm.rs relay_except: set beside set_external_committed at every own admission (the request, a departure, each egress window, shares). Set only per window, a relay admitted between windows switched S3 off again at the next request (seen in the first fixed runs). - docs/AV_ALM_DESIGN.md: the rule, next to row S3. Red: a_publisher_with_no_primary_admits_one_over_relay_work, the failing run's exact state (ceiling one stream + 8 kbit, hold latched, ledger empty, 16 kbit relay), failed on v45.2.0's guard. Kept green: a_publisher_with_no_primary_keeps_its_shares_room (new), other_streams_commitments_share_the_uplink. The witness after: 10 of 10, back after 3.0-4.8 s against bounds of 5.8-9.1 s, and once under taskset -c 0,1 (4.5 s, bound 8.6 s). No bound changed. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019ZeGbV1jgLwkVAPqjjgpYm
09734be made CohortGroups::open_existing and ::open refresh a cached handle and return the refresh's ERROR when it failed (a store fault, a head whose snapshot is missing, a newer snapshot that will not load). Before, a cached handle was always handed out; after, one unloadable newer snapshot made every open of that room fail (boot readdress skipped the room, join_call failed) although the cached handle still worked. Now a failed refresh leaves the handle as it was and hands it out; it is counted (av_plane av_call_room_refresh_failed, catalogued) and logged once per cause per room, again every 30 s while it stands. CohortGroup::refresh_from_store still returns the error to a caller that asks directly (the call's watch counts it as av_call_roll_failed). CohortGroups::attach_metrics: the Edge attaches its metrics at build and in arm_room_groups. Witness: a_cached_handle_whose_refresh_fails_is_still_handed_out_and_counted (a head naming a snapshot that does not decode): open_existing and open return the cached handle at its epoch and the counter moves each time. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019ZeGbV1jgLwkVAPqjjgpYm
…room opens from its cached handle Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019ZeGbV1jgLwkVAPqjjgpYm
a_signed_leave_says_why_and_a_killed_node_is_lost_after_the_bound failed on v45.2.0 (CI linux full and darwin: "A reads C as left: Elapsed(())"). Bisected from 993d6eb (green): first bad 73a3133, "a leg a send finds gone is redialled". The witness kills C by closing both legs and dropping C's Call. Drop unregistered the router and aborted the tasks, but never left the call's addresses (unchanged since before 45.2.0): C's node kept answering on its call address, and the router dropped the arrival without closing the link. Since 73a3133, A redials a gone leg; the redial established to the dead call, and A's leg to C stood for the rest of the run (check_lost at A: out leg up again from 6 s to 60 s), so C was never unlinked and never Lost. A host that drops a Call without a signed leave did exactly that to its peers. Drop now does what a media-refused end does: it leaves the call's addresses (ScopeLifecycle::leave) and closes every out leg and in link (spawned on the running runtime). The test is unchanged: 5 of 5. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019ZeGbV1jgLwkVAPqjjgpYm
framed_video_arrives_whole_and_audio_unmarked failed on v45.2.0 (CI linux
full: "each dropped base frame is exactly one frame_seq gap on (0,0,0): {}
left: 0, right: 30"). Bisected from 993d6eb (green): first bad fc46e94, "a
period's offers to one member are paced onto its link".
A frame_seq gap counts only when both its ends came in one receive view
(av_call/frame.rs note_frame_seq), and a Shed or Decision opens a new view.
In this 2-node room B's media reaches A before A's first subscription is
admitted; with fc46e94's offer timing A's FIRST Admit{Primary} lands after
the 30 pre-loss frames (dump: frame 30 in view 0, the Admit, frame 61 in
view 1). wait_view_settled returned the settled view 1, but the gap's left
end, frame 30, was in view 0, so the 30 frozen base frames were rightly
not counted under the view rule. Before fc46e94 that first Admit happened
to land before frame 30: the test leaned on that timing.
The test now publishes three clean frames after the view settles and takes
them out of A's frames before withholding, so both ends of the loss gap lie
in the settled view (asserted). Unchanged: gaps on (0,0,0) equal
av_frame_incomplete; each lossy frame whole or counted dropped, once;
nothing partial handed out. 5 of 5.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019ZeGbV1jgLwkVAPqjjgpYm
CallRouter dropped an arrival for no live call on this node and left the link up: the dialer held a leg to nowhere for ever, so it never read that attendee Lost. That is what turned a dropped call into "never lost" (b8fa01d fixes the dropped call itself); a build before 45.3, or a host whose call task died with the node up, does the same to its peers. The router now closes such a link (LeviculumAvSender::close, the node's close_link; its LinkClosed event does the transport's bookkeeping as for a close the peer made). The dialer's leg goes with it and the normal lost timing runs. Join race: none is cut short. Call::join installs the call's addresses and registers its router entry in one synchronous step (no await between), and an arrival exists only after a link to an installed address has carried its first frame; so no arrival for a call this node is joining can reach the router before the call is registered. Closed are only links for a call this node never held or has dropped (or whose address was sealed out before the link's first frame). No grace was needed. Drop's doc now says a dropped call is read LOST by its peers, never left; a host that wants "left" calls leave_with. Witness a_node_that_answers_but_routes_no_call_is_read_lost_within_the_bound: C's call is dropped the old way (Call::drop_keeping_the_wire_for_test: the addresses stay and the node answers, routing nothing); A's leg closes and A redials. Red with the router's drop (A still holds a leg to C at 15 s), green with the close (Lost within ATTENDEE_LOST_AFTER + 10 s, not before the bound). Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019ZeGbV1jgLwkVAPqjjgpYm
a_keyframe_reaches_a_loaded_receiver_whole failed under a busy host, on
v45.2.0 as on this branch ("got tags 1..10 of 11; shed 0"; A counted
av_frame_framing_unknown 13-15). It published after wait_bound(&ca, 1),
B's v1 binding only. The v2 binding carries the framing and goes only
after the CAPS exchange, later than v1; with A's per-datagram delay on,
the keyframe's chunks waited FRAMING_HOLD (400 ms) for a framing not yet
verified and were dropped. The witness is about the data plane holding
the burst, not binding timing: it now waits for both bindings. Every
assertion is unchanged. Product question for 45.3 (not this cut): a
receiver drops a first keyframe that beats the v2 binding by more than the
hold.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019ZeGbV1jgLwkVAPqjjgpYm
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019ZeGbV1jgLwkVAPqjjgpYm
…ds late Measured by the server's matrix on 9a810d2 (N=4 at 250 kbit/s): p50 6.0 s, p95 11.1 s, nothing dropped by the kernel. The release notes and changelog say so, and where the fix lies (45.3). Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019ZeGbV1jgLwkVAPqjjgpYm
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
The drift gate failed on the PR: the UDL gained members in 45.2.0 and the committed Python, Kotlin and Swift bindings were not regenerated (v45.2.0's CI never reached the comparison: the bindgen build itself did not compile). Regenerated with uniffi_bindgen_cli; additions only. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019ZeGbV1jgLwkVAPqjjgpYm
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
release(45.2.1): group calls on member relays, then the fixes its own CI and the server's matrix found
This branch carries v45.2.0 (tagged at
7749385; its CI was red) and the 45.2.1 fixes on top. Do not merge before the server's checks on 45.2.1 report green and the tag is cut.45.2.0
45.2.1
mod leviculum_linkis gated on the reticulum feature again (45.2.0 did not compile without it: four red CI lanes).Evidence
cargo check --all-targetswith transport-http alone, transport-packet-radio alone, transport-reticulum alone and no features; the uniffi bindgen build.av_call_805,av_call_nat_805,direct_links_805,av_call_record_805,welcome_wrap_e2e,link_stall_926,log_citations,observability_metrics.alm_mesh_stage2suite: 40 pass, 1 ignored in source; one timing assertion (publish()max 50 ms) failed once under a second concurrent test job and passed 3 of 3 alone (filed for 45.3).Known limits (in the release notes)
🤖 Generated with Claude Code
https://claude.ai/code/session_019ZeGbV1jgLwkVAPqjjgpYm