← Back to Pull requests

multi: fix nightly lint, BOLT 12 startup, and signer teardown #11614

Merged
Roasbeef merged 5 files (39 lines) on Nov 24, 2026 19:40 UTC
View on GitHub
Roasbeef Roasbeef commented on Nov 24, 2026 08:17 UTC
Author

In this PR, we fix three independent failures from the November 24 nightly. Each fix is in its own commit.

The BOLT 12 startup guard still checks for 000016_offers, even though the build includes 000017_offers. We update the guard and add a tagged regression test that fails with the old name. In the remote signer itests, we stop WatchOnly before generic harness cleanup can remove its signer's TLS certificate. We also remove the unused gocritic suppression that fails the lint job.

The tagged and untagged startup tests passed locally, as did the chancloser race tests. The targeted bitcoind/SQLite native SQL run passed the BOLT 12 and remote signer cases with the new shutdown order on the success path. The final defer keeps that order on failure too. The local full lint run was interrupted during analysis, so full lint is still pending.

Refs #11507. The separate PostgreSQL invoice failures are not addressed here.

Diff: 39 lines (+37 / -2) across 5 files Reviewer: ziggie1984 Review duration: 682m
All Vouch review confidence checks passed
Residual risk 0.03 = Change Risk (0.31) × (1 − Review Confidence (0.91)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.31 · 39 lines diff across 5 files
0.31
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.90 · 2 substantive comment(s)
0.90
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 50%
91%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size diff_size
0.221
Real PR Conversation Timeline
5 items
github-actions[bot] github-actions[bot] commented on Nov 24, 2026 08:18 UTC
Bot

🔴 PR Severity: CRITICAL

gh pr view | 4 files | 34 lines changed

<details>
<summary>🔴 <strong>Critical</strong> (1 file)</summary>

  • lnwallet/chancloser/rbf_coop_transitions.go - lnwallet/ channel closing / RBF coop-close state machine
  • </details>

    <details>
    <summary>🟡 <strong>Medium</strong> (1 file)</summary>

  • config.go - root config, not otherwise categorized
  • </details>

    <details>
    <summary>🟢 <strong>Low</strong> (2 files, excluded from severity calculation)</summary>

  • config_native_sql_test.go - test-only change

  • itest/lnd_remote_signer_test.go - test-only change
  • </details>

    Analysis

    The highest-severity file touched is lnwallet/chancloser/rbf_coop_transitions.go, which is part of the RBF cooperative-close state machine inside lnwallet/. That package is on the CRITICAL list (wallet operations, channel funding, signing, commitment transactions), so the PR is classified CRITICAL even though the diff itself is a tiny 1-line change. The rest of the change is a 1-line config.go tweak and test-only additions, which do not affect the overall severity. No file-count or line-count bump applies (2 non-test files, ~4 non-test lines changed). Recommend review by someone familiar with the channel-closer / RBF coop-close logic given the sensitivity of that package, even though the diff is small.

    ---
    <sub>To override, add a severity-override-{critical,high,medium,low} label.</sub>
    <!-- pr-severity-bot -->

    ziggie1984 ziggie1984 approved these changes on Nov 24, 2026 15:54 UTC
    Approved Reviewer

    LGTM 🎉

    Note: I force-pushed to rewrap the commit message bodies at 72 columns; no code changes (tree identical to 5c463cb5). Please reset your local branch before pushing again.

    Non-blocking follow-up idea: the BOLT 12 guard still identifies the migration by a name copied into config.go. Giving the bolt12-offers flag the same build tags as migrations_dev.go (dev && (test_db_postgres || test_db_sqlite || test_native_sql)) would make the mismatch unbuildable and let us drop bolt12Migrations/missingMigration and their tests.

    litbot-9000 litbot-9000 approved these changes on Nov 24, 2026 16:03 UTC
    Approved Reviewer

    /gateway review

    Approve — no blockers. Three independent nightly fixes, each tight and verified:

  • BOLT 12 startup: the guard checked 000016_offers while the build ships 000017_offers. The one-line rename plus a tagged regression test is the right shape — and the tag (test_db_postgres || test_db_sqlite || test_native_sql) puts it in exactly the job class that failed in the nightly. Verified: the test passes at the head, and reverting to 000016_offers makes it fail, so it provably pins the bug.

  • Signer teardown: stopping the watch-only node before generic harness cleanup can remove its signer's TLS credentials — the defer ht.Shutdown(watchOnly) ordering holds on both success and failure paths, as the body claims.

  • Lint: removing the unused gocritic suppression on the switch — nothing on the switch would re-trigger the directive.
  • Also correct to leave the PostgreSQL invoice failures out of scope (refs #11507) rather than bundling them.

    Verified by execution: go test -tags test_db_sqlite -run TestValidateBolt12OffersNativeSQL . passes at the head and fails under the mutation; gofmt and 80-col clean on the changed files (the lnd_psbt_test.go gofmt hit in the full-tree run is pre-existing on master, not this PR). Not verified: the itest itself (no Docker here) — the teardown change is read-only review, and full lint per the PR body is still pending in CI.

    — claudell ⚡ (OpenClaw dev agent; approval posts as litbot-9000 and does not count toward branch protection)

    github-actions[bot] github-actions[bot] commented on Nov 24, 2026 19:42 UTC
    Bot

    Created backport PR for v0.21.x-branch:

  • #11617 with remaining conflicts!
  • Please cherry-pick the changes locally and resolve any conflicts.

    git fetch origin backport-11614-to-v0.21.x-branch
    git worktree add --checkout .worktree/backport-11614-to-v0.21.x-branch backport-11614-to-v0.21.x-branch
    cd .worktree/backport-11614-to-v0.21.x-branch
    git reset --hard HEAD^
    git cherry-pick -x 76beaaa35a822138841061da142e73e0b75d1d17 becf725d10246c216790d19412c3c1552a60cfcb 0f4d87f8ea528f303481f21dbf7cd238cbe8eb0c
    git push --force-with-lease
    

    Reviewers
    Assignees
    Roasbeef Roasbeef
    Labels
    risk: low confidence: 91% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 30.9% (LOW) · Higher = larger blast radius
    30.9%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 91% · Lower = rushed or shallow review
    91%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 2.8% · Safe to merge
    2.8%