Skip to content

docs(adr): operator protocol-upgrade runbook - #361

Merged
thiras merged 2 commits into
mainfrom
docs/operator-upgrade-path
Apr 30, 2026
Merged

thiras merged 2 commits into
mainfrom
docs/operator-upgrade-path

Conversation

@thiras

@thiras thiras commented Apr 30, 2026

Copy link
Copy Markdown
Contributor

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.

Tier What the runbook covers
1 (minor) §2.1 — pull-and-restart, no drain, no client coordination
2 (medium) §2.2 — opt-in flag config, smoke-test on protocol_error rate
3 (major) §3 — pre-cutover checklist (config deltas, channel validity, voucher-signer compatibility, watchtower re-coord, receipt continuity); per-node rolling-upgrade procedure exploiting dual-ALPN-on-one-Endpoint; post-cutover traffic-mix monitoring and v1-removal timing
Coordination §4 — watchtowers, clients, governance touchpoints
Failure modes §5 — symptom → cause → rollback table
Out of scope §6 — in-place downgrades, cross-chain coordination, client-side migration

The Tier 3 procedure references ADR 010 §"Migration from ADR 003" as the existing contract-level worked example.

Files touched

File Change
adr/appendix-operator-upgrade-path.md (new) The runbook. ~140 lines.
adr/013-schema-evolution.md One-line "See also" appended at the end of §Deprecation Timeline. No semantic change.
adr/README.md Appendix-list prose updated in both Reading Order and Decision-Record Context sections.
adr/architecture.md New entry 6 in §Appendices — Reference Patterns.

Test plan

  • Runbook does not redefine any tier boundary or ALPN-negotiation rule — all such content links back to ADR 013.
  • ADR 010 §Migration from ADR 003 is referenced as the contract-level worked example.
  • No claim that cdn/probe/v2 exists today — the runbook is forward-looking.
  • Cross-refs to ADR 005 §Probe-Triggered Eviction Hold, ADR 007, ADR 010, ADR 024, ADR 027, and the local-admin and observability appendices all resolve.
  • markdownlint passes.

Note on conflicts with #360

Both this PR and #360 add a new appendix as "entry 6" in adr/architecture.md and append to the appendix-list prose in adr/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

Copilot AI review requested due to automatic review settings April 30, 2026 18:57

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread adr/appendix-operator-upgrade-path.md Resolved
Comment thread adr/appendix-operator-upgrade-path.md Resolved

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread adr/appendix-operator-upgrade-path.md Resolved
Comment thread adr/appendix-operator-upgrade-path.md Resolved
Comment thread adr/README.md Resolved
thiras added a commit that referenced this pull request Apr 30, 2026
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]>
thiras and others added 2 commits April 30, 2026 22:40
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]>
@thiras
thiras force-pushed the docs/operator-upgrade-path branch from 98a4637 to f6b2043 Compare April 30, 2026 19:41
@thiras
thiras merged commit ac9a70a into main Apr 30, 2026
9 checks passed
@thiras
thiras deleted the docs/operator-upgrade-path branch April 30, 2026 19:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

docs: no documented upgrade path or migration guide for operators moving between protocol versions (e.g. cdn/probe/v1 to v2)

2 participants