WIP: Draft: ops: harden F6 upgrade-582 retries, pair_code_id, and has_more #1109

Closed
PlasticDigits wants to merge 0 commits from 584-ops-p0-order-enforcing-upgrade-582-script-columbus-5-contractinfo-probe-freeze-unfreeze-runbook into main
PlasticDigits commented 2026-08-21 01:15:12 +00:00 (Migrated from gitlab.com)

Summary

Hardens scripts/upgrade-582-code-id-pin.sh from the production gaps on #584 (columbus-5 2026-08-21: mixed 11/14 pair set after publicnode RST, smoke abort pin1=10184/null from a dropped second IsCodeIdWhitelisted, missing UpdateConfig { pair_code_id }).

  • Retry LCD IsCodeIdWhitelisted until a boolean is returned; DRY_RUN now parses the whitelist JSON (unparseable stub refuses pair migrate).
  • UpdateConfig { pair_code_id } after factory 1.9.0 so new CreatePair instantiates pair 1.15.0.
  • Skip pairs already on the target code id (retry-safe after RPC RST).
  • UPGRADE582_REFRESH=1 parses wasm has_more / next_start_after (SDK 0.53 .events and legacy .logs).
  • Docs + skill + launch checklist: columbus-5 F6 RAN 2026-08-21; #581 / 8266 remains BLOCK.

Invariant F6 is unchanged on-chain. No FoT math. No AddWhitelistedCodeId 8266.

Test plan

  • make verify-issue-584 (17/17 including internal retest)
  • Independent second make verify-issue-584 (17/17)
  • DRY_RUN factory 1.8.0 still exits before PAIR_MIGRATE_BEGIN
  • DRY_RUN unparseable IsCodeIdWhitelisted exits before PAIR_MIGRATE_BEGIN
  • Pagination mock 31 + 61 pairs; refresh-event parser (has_more true/false + missing fails closed)
  • LocalTerra UPGRADE582_LOCAL=1 after make deploy-local (chain was not running on this agent; optional rehearsal)
  • Operators: next F6 wasm upgrade uses this script (factory first, UpdateConfig, LCD retries)

Closes #584

## Summary Hardens [`scripts/upgrade-582-code-id-pin.sh`](scripts/upgrade-582-code-id-pin.sh) from the production gaps on [#584](https://gitlab.com/PlasticDigits/cl8y-dex-terraclassic/-/issues/584) (columbus-5 2026-08-21: mixed 11/14 pair set after publicnode RST, smoke abort `pin1=10184/null` from a dropped second `IsCodeIdWhitelisted`, missing `UpdateConfig { pair_code_id }`). - Retry LCD `IsCodeIdWhitelisted` until a boolean is returned; DRY_RUN now parses the whitelist JSON (unparseable stub refuses pair migrate). - `UpdateConfig { pair_code_id }` after factory 1.9.0 so new `CreatePair` instantiates pair 1.15.0. - Skip pairs already on the target code id (retry-safe after RPC RST). - `UPGRADE582_REFRESH=1` parses wasm `has_more` / `next_start_after` (SDK 0.53 `.events` and legacy `.logs`). - Docs + skill + launch checklist: columbus-5 F6 **RAN 2026-08-21**; **#581 / 8266 remains BLOCK**. Invariant **F6** is unchanged on-chain. No FoT math. No `AddWhitelistedCodeId 8266`. ## Test plan - [x] `make verify-issue-584` (17/17 including internal retest) - [x] Independent second `make verify-issue-584` (17/17) - [x] DRY_RUN factory 1.8.0 still exits before `PAIR_MIGRATE_BEGIN` - [x] DRY_RUN unparseable `IsCodeIdWhitelisted` exits before `PAIR_MIGRATE_BEGIN` - [x] Pagination mock 31 + 61 pairs; refresh-event parser (has_more true/false + missing fails closed) - [ ] LocalTerra `UPGRADE582_LOCAL=1` after `make deploy-local` (chain was not running on this agent; optional rehearsal) - [ ] Operators: next F6 wasm upgrade uses this script (factory first, UpdateConfig, LCD retries) Closes #584
PlasticDigits (Migrated from gitlab.com) closed this pull request 2026-08-21 01:15:44 +00:00
PlasticDigits commented 2026-08-21 01:15:45 +00:00 (Migrated from gitlab.com)

Closed: this draft used the stale #584 source branch (already merged) instead of fix/584-upgrade-582-retry-harden. Recreating with the correct source.

Closed: this draft used the stale #584 source branch (already merged) instead of `fix/584-upgrade-582-retry-harden`. Recreating with the correct source.

Pull request closed

Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
code/cl8y-dex-terraclassic!1109
No description provided.