Skip to content

node: cooperative-close unilateral pre-expiry settle path for unreachable providers has no metric distinguishing timeout-shaped unreachability from RPC failure during the waiver-request phase #989

Description

@alpergundogdu

Issue #988 tracks the unilateral settle path but the implementation has no counter separating cases where the provider was genuinely unreachable (QUIC timeout) from cases where the waiver RPC succeeded but the on-chain submission failed, making it impossible for operators to determine whether cooperative-close failures are network or contract problems.


Filed via GitDailyReporterBot

Activity

  1. added
    status:blocked
    kind:feature
    prio:low
    rust
    on Jun 24, 2026
  2. github-actions commented on Jun 24, 2026

    @github-actions

    🎯 Triage report

    This issue identifies an observability gap in the cooperative-close flow: when the unilateral settle path (tracked by #988) attempts to close an idle buyer channel with an unreachable provider, there is no metric counter to distinguish QUIC-level timeouts from waiver RPC failures followed by a failed on-chain submission. Without this label dimension, operators cannot distinguish network problems from contract/RPC problems in monitoring dashboards or alerts.

    📊 Assessment

    Dimension Value Reasoning
    Type Feature Observability enhancement — adds instrumentation to a future code path, not a correctness fix
    Labels enhancement, technical, rust, low, blocked Same label set as parent #988; blocked because the implementation path this metric would instrument doesn't exist yet
    Coding agent Not suitable The parent feature (#988) is deferred and blocked; the code path to be instrumented hasn't been written yet. Once #988 ships, adding labeled counters would be well-scoped and straightforward.

    🔗 Similar issues

    💡 Notes and suggestions

    Dependency: This issue has no value until #988 is implemented. It should stay blocked until #988 is closed or at minimum has the waiver-request phase sketched out.

    Suggested metric shape (mirrors #966's approach):

    decdn_cooperative_close_failures_total{reason="quic_timeout|waiver_rpc_error|onchain_submit_error"}
    

    Three label values capture the three distinct failure modes the issue describes:

    • quic_timeout — provider unreachable at QUIC/transport layer
    • waiver_rpc_error — waiver request RPC failed (provider rejected or error response)
    • onchain_submit_error — waiver succeeded but closeChannel or settleChannel submission to L2 reverted or RPC-errored

    Implementation pointer: When #988 is implemented, the relevant instrumentation site would be in the buyer-side sweep logic added to crates/node/src/payment_settlement.rs. The three counter labels map cleanly to the three error arms that the trigger logic in #988 §Scope already enumerates (unreachable via node_id_for, declined/reverted waiver, failed on-chain submit).

    ADR reference: ADR 003 §Cooperative close is the design authority; any metric naming should be consistent with observability conventions established in appendix-observability.md.

    Generated by Agentic Triage for issue #989 · ◷

    Add this agentic workflows to your repo

    To install this agentic workflow, run

    gh aw add githubnext/agentics/workflows/issue-triage.md@94ec5db57374c5b04a4b8eef8b4413f9af44d63f
    
  3. self-assigned this
    on Jun 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

kind:featureprio:lowruststatus:blocked

Fields

Priority

None yet

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions