Conversation
Stop discarding ensure_path_for_direct in start_propagation_sync so unreachable discovered/preferred PNs return PROPAGATION_PATH_UNKNOWN instead of stalling into syncTimedOut. Auto cascade now tries finite-hop discovered, then configured remotes, then hops-unknown discovered, then local-prop.
|
Warning Review limit reached
Next review available in: 55 minutes You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: QUIET Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughAuto propagation now orders finite-hop discovered nodes before configured remotes, then unknown-hop nodes and local propagation. Sidecar sync validates the path after announce settling and returns ChangesPropagation target ordering
Propagation path validation
Estimated code review effort: 3 (Moderate) | ~25 minutes Sequence Diagram(s)sequenceDiagram
participant AutoApply
participant TargetSelection
participant SidecarSync
participant PathDiscovery
AutoApply->>TargetSelection: select target by hop and remote priority
TargetSelection-->>AutoApply: return target
AutoApply->>SidecarSync: start propagation sync
SidecarSync->>PathDiscovery: establish path after announce settling
PathDiscovery-->>SidecarSync: return path status and hop count
alt path available
SidecarSync-->>AutoApply: start sync
else path unavailable
SidecarSync-->>AutoApply: return PROPAGATION_PATH_UNKNOWN
end
Possibly related PRs
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@reticulum-sidecar/src/stack/live.rs`:
- Around line 3623-3639: The propagation sync flow must validate the direct path
before doing peering work. In the relevant propagation-start method, move
ensure_path_for_direct immediately after announce settlement and the
outbound-busy check, return PROPAGATION_PATH_UNKNOWN with existing failure-state
cleanup when it fails, and invoke resolve_propagation_peering only after the
path succeeds. Add a regression case covering nonzero peering cost with a
missing path.
🪄 Autofix
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: QUIET
Plan: Pro Plus
Run ID: 33e998ef-08a5-4db6-b782-8c1418fab529
⛔ Files ignored due to path filters (16)
src/renderer/locales/cs/translation.jsonis excluded by!src/renderer/locales/**src/renderer/locales/de/translation.jsonis excluded by!src/renderer/locales/**src/renderer/locales/en/translation.jsonis excluded by!src/renderer/locales/**src/renderer/locales/es/translation.jsonis excluded by!src/renderer/locales/**src/renderer/locales/fr/translation.jsonis excluded by!src/renderer/locales/**src/renderer/locales/id/translation.jsonis excluded by!src/renderer/locales/**src/renderer/locales/it/translation.jsonis excluded by!src/renderer/locales/**src/renderer/locales/ja/translation.jsonis excluded by!src/renderer/locales/**src/renderer/locales/ko/translation.jsonis excluded by!src/renderer/locales/**src/renderer/locales/nl/translation.jsonis excluded by!src/renderer/locales/**src/renderer/locales/pl/translation.jsonis excluded by!src/renderer/locales/**src/renderer/locales/pt-BR/translation.jsonis excluded by!src/renderer/locales/**src/renderer/locales/ru/translation.jsonis excluded by!src/renderer/locales/**src/renderer/locales/tr/translation.jsonis excluded by!src/renderer/locales/**src/renderer/locales/uk/translation.jsonis excluded by!src/renderer/locales/**src/renderer/locales/zh/translation.jsonis excluded by!src/renderer/locales/**
📒 Files selected for processing (11)
docs/agents/reticulum.mdreticulum-sidecar/src/stack/live.rsreticulum-sidecar/src/stack/propagation_bridge.rssrc/main/support-bundle.test.tssrc/main/support-bundle.tssrc/renderer/lib/reticulum/reticulumPropagationAutoApply.test.tssrc/renderer/lib/reticulum/reticulumPropagationAutoApply.tssrc/renderer/lib/reticulum/reticulumPropagationMode.test.tssrc/renderer/lib/reticulum/reticulumPropagationMode.tssrc/renderer/lib/reticulum/reticulumPropagationSync.test.tssrc/renderer/lib/reticulum/reticulumPropagationSync.ts
Avoid burning nonzero peering_cost PoW when ensure_path_for_direct fails; keep PATH_UNKNOWN fail-fast and assert path → peering → start_sync order.
Summary
ensure_path_for_directafter announce settle; returnPROPAGATION_PATH_UNKNOWNinstead of starting Establishing and timing out assyncTimedOut(matches offer probe).reticulumPropagation.syncPathUnknownin UI; widen developer-bundle log filter forpropagation-sync/ establish / path-unknown lines; add regression coverage (sidecar source contract + renderer cascade/mapping).Test plan
reticulumPropagationSync,reticulumPropagationMode,reticulumPropagationAutoApply,support-bundle(pre-commit covered related)cargo test --features rns-stack,rns-ble,rns-rnode-tcp source_host_peer_sync_idle_gate_and_policy_startSummary by CodeRabbit
New Features
Bug Fixes
PROPAGATION_PATH_UNKNOWNdiagnostic for clearer failure reporting.Support