feat: Add release safety framework with preflight checks and canary gates - #150
Merged
Obiajulu-gif merged 3 commits intoJul 22, 2026
Merged
Conversation
…ates - Add release manifest validation and schema definition in lib/release/manifest.ts - Add pre-deploy verification for backup freshness and contract identity in lib/release/preDeployChecks.ts - Add expand-contract zero-downtime migration helper in lib/release/migrations.ts - Add canary cohort routing, financial probe execution, and automated rollback evaluation in lib/release/canary.ts - Add administrative release safety API routes (preflight, canary, rollback) - Add comprehensive release safety test suite Closes Chainmove#148
- Fix scope order of authContext in app/api/kyc-documents/route.ts - Import missing activity functions and fix Notification.create in app/api/notifications/route.ts - Fix MongoDB/Mongoose Collection and Db types in backup, restore, and verify services - Fix Stellar SDK type signatures in rent-sweeper and restore-state scripts - Fix tsconfig date-fns import resolution in stellar-activity-panel.tsx Closes Chainmove#148
…t support lib/risk/engine.test.ts uses top-level await which requires target >= ES2017. The previous target ES6 caused TS1378 in CI.
Collaborator
|
@soomtochukwu nice work ... great job |
Contributor
Author
@Obiajulu-gif ...appreciate |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements a comprehensive release safety framework protecting live financial operations during releases and deployments.
lib/release/manifest.ts): Validates contract address, WASM hash, network passphrase, and required preflight checks.lib/release/preDeployChecks.ts): Ensures backup freshness (<30 min), dry-run migration capability, and contract identity matching.lib/release/migrations.ts): Enforces phased zero-downtime field deprecation.lib/release/canary.ts): Deterministic cohort routing, financial probe execution, and auto-rollback triggers.app/api/admin/release/preflight,canary,rollback).lib/release/release-safety.test.ts): Full coverage of manifest validation, preflight checks, canary routing, and rollback triggers.Closes #148