Repository navigation
docs(adr): operator protocol-upgrade runbook - #361
Conversation
There was a problem hiding this comment.
Code Review
This pull request introduces a new appendix, appendix-operator-upgrade-path.md, which provides a comprehensive protocol-upgrade runbook for operators. It sequences actions for Tier 1, 2, and 3 upgrades, including checklists for coordination with watchtowers, clients, and governance. The feedback focuses on resolving an ambiguity regarding the 12-week deprecation timeline to ensure consistency with ADR 013 and refining the rollback procedure for nodes waiting on governance flags to ensure service availability.
There was a problem hiding this comment.
Pull request overview
Adds an operator-facing runbook appendix that sequences required actions for Tier 1/2/3 protocol upgrades (per ADR 013), and wires it into the ADR docs index/cross-references.
Changes:
- Introduces
adr/appendix-operator-upgrade-path.md(Tier-specific checklists, Tier 3 rolling upgrade, coordination/failure-mode guidance). - Links the new appendix from ADR 013 and includes it in the appendix indices.
- Updates ADR README appendix prose to mention the new operator runbook.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
adr/architecture.md |
Adds the new appendix to the canonical “Appendices — Reference Patterns” list. |
adr/appendix-operator-upgrade-path.md |
New operator runbook appendix detailing upgrade procedures per ADR 013 tier. |
adr/README.md |
Updates appendix-list prose to include the operator upgrade runbook. |
adr/013-schema-evolution.md |
Adds a “See also” pointer to the operator upgrade runbook. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Five inline comments from gemini-code-assist and Copilot, all verified as technically correct. K. Line 77 (Copilot): admin_v1_drain is referenced in §3.2 step 1 but is not yet implemented (only admin_v1_peersList exists today; admin_v1_drain is tracked as #244). Added a one-line caveat directing operators to drain via external load balancer or firewall block until the admin RPC method ships. I. Line 100-102 (gemini): The runbook said operators MAY remove v1 support earlier than T+12 weeks (under the negligible-traffic condition) and MAY NOT remove v1 before T+4 weeks. Both wrong: ADR 013 §Multi-version support says nodes MUST support both versions during the transition period, which the §Deprecation Timeline ends at T+12 weeks. Replaced with a strict "MUST keep v1 until T+12; MAY remove at T+12+" and explained the no_application_protocol TLS-alert failure mode that early removal causes. J. Line 134 (gemini): §5 failure-mode row "Restarted node reports not_ready for rate_bounds_loaded" advised "Hold the rollout; wait for the governance flag to flip; restart. Do not roll back the binary." Risky for availability — the governance timelock can be up to 48h (ADR 009). Changed to recommend rolling back to the previous stable or dual-version binary to restore service, then redoing §3.2 after the flag flips. L. Line 157 (Copilot): §"Cross-references" included a link to appendix-operator-key-rotation.md, which is a forward-reference to PR #360 — the link breaks until that PR also lands. Removed the reference; can be added back in a follow-up after both appendices are on main. M. README:29 (Copilot): adr/README.md said "operator protocol-upgrade path" but the appendix title (and architecture.md) use "Operator Protocol-Upgrade Runbook". Aligned README wording. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Closes #282. ADR 013 specifies the three-tier schema-evolution scheme, ALPN negotiation, signed-field freezing, and the production deprecation timeline (T+0 / T+4 / T+12), but no document sequences the operator-facing actions implied by each tier: which kinds of releases need config edits, when payment channels are at risk, when watchtower escrows must be re-coordinated, and how to roll a Tier-3 upgrade across a fleet without dropping traffic. Adds adr/appendix-operator-upgrade-path.md covering: - §1 Tier overview (recap; not a redefinition of ADR 013) - §2.1 Tier 1 minor — pull-and-restart, no drain - §2.2 Tier 2 medium — opt-in flag config, smoke-test on protocol_error rate - §3 Tier 3 major: - §3.1 Pre-cutover (T+0..T+4 weeks): config-field deltas, payment-channel validity, voucher-signer compatibility, watchtower re-coordination, receipt continuity - §3.2 Per-node rolling upgrade procedure exploiting the dual-ALPN-on-one-Endpoint property from ADR 013 - §3.3 Post-cutover (T+4..T+12 weeks): traffic-mix monitoring and v1-removal timing - §4 Coordination touchpoints (watchtowers, clients, governance) - §5 Failure modes and rollback table - §6 Out-of-scope: in-place downgrades, cross-chain coordination, client-side migration References ADR 010 §"Migration from ADR 003" as the existing contract-level worked example. Index updates: - adr/013-schema-evolution.md: appended a one-line "See also" pointer at the end of §Deprecation Timeline. No semantic change. - adr/README.md: appendix-list prose updated in both the Reading Order and Decision-Record-Context sections. - adr/architecture.md: new entry 6 in §Appendices — Reference Patterns. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Five inline comments from gemini-code-assist and Copilot, all verified as technically correct. K. Line 77 (Copilot): admin_v1_drain is referenced in §3.2 step 1 but is not yet implemented (only admin_v1_peersList exists today; admin_v1_drain is tracked as #244). Added a one-line caveat directing operators to drain via external load balancer or firewall block until the admin RPC method ships. I. Line 100-102 (gemini): The runbook said operators MAY remove v1 support earlier than T+12 weeks (under the negligible-traffic condition) and MAY NOT remove v1 before T+4 weeks. Both wrong: ADR 013 §Multi-version support says nodes MUST support both versions during the transition period, which the §Deprecation Timeline ends at T+12 weeks. Replaced with a strict "MUST keep v1 until T+12; MAY remove at T+12+" and explained the no_application_protocol TLS-alert failure mode that early removal causes. J. Line 134 (gemini): §5 failure-mode row "Restarted node reports not_ready for rate_bounds_loaded" advised "Hold the rollout; wait for the governance flag to flip; restart. Do not roll back the binary." Risky for availability — the governance timelock can be up to 48h (ADR 009). Changed to recommend rolling back to the previous stable or dual-version binary to restore service, then redoing §3.2 after the flag flips. L. Line 157 (Copilot): §"Cross-references" included a link to appendix-operator-key-rotation.md, which is a forward-reference to PR #360 — the link breaks until that PR also lands. Removed the reference; can be added back in a follow-up after both appendices are on main. M. README:29 (Copilot): adr/README.md said "operator protocol-upgrade path" but the appendix title (and architecture.md) use "Operator Protocol-Upgrade Runbook". Aligned README wording. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
98a4637 to
f6b2043
Compare
Closes #282.
Why
ADR 013 specifies the three-tier schema-evolution scheme, ALPN negotiation, signed-field freezing, and the production deprecation timeline (T+0 / T+4 / T+12), but no document sequences the operator-facing actions implied by each tier. New operators reading ADR 013 cold cannot tell which kinds of releases need config edits, when payment channels are at risk, when watchtower escrows must be re-coordinated, or how to roll a Tier 3 upgrade across a fleet without dropping traffic.
This runbook fills that gap. It does not redefine any protocol mechanism — every tier semantic, every timeline number, and every ALPN-negotiation detail is referenced from ADR 013.
What
A new appendix,
adr/appendix-operator-upgrade-path.md, plus the standard appendix-index updates and a one-line "See also" pointer in ADR 013.protocol_errorratev1-removal timingThe Tier 3 procedure references ADR 010 §"Migration from ADR 003" as the existing contract-level worked example.
Files touched
adr/appendix-operator-upgrade-path.md(new)adr/013-schema-evolution.mdadr/README.mdadr/architecture.mdTest plan
cdn/probe/v2exists today — the runbook is forward-looking.Note on conflicts with #360
Both this PR and #360 add a new appendix as "entry 6" in
adr/architecture.mdand append to the appendix-list prose inadr/README.md. Whichever lands second will need a trivial rebase to renumber to entry 7 and merge the two prose appendix-list additions. This is the smallest possible conflict surface for two parallel appendix additions.🤖 Generated with Claude Code