From 5e4b3c1a491692443c61bb0192a2f704d229e770 Mon Sep 17 00:00:00 2001 From: raiseCatError <315733358+raiseCatError@users.noreply.github.com> Date: Mon, 9 Nov 2026 21:45:45 +0530 Subject: [PATCH 01/34] chore(release): 2.1.0 is Mac and iOS only; Android 2.0 works with Mac 2.1 release-config: excludedPlatforms android, requiredPlatforms mac and ios, no Android tracks, ios.submitForReview false (submission needs an authorized monitor run). Docs: Android 2.0 works with Mac 2.0 and later (released 2.0 doesn't read macLockState), 2.1.0 platform table. --- .github/release-config.json | 7 +++---- COMPATIBILITY.md | 9 ++++++++- PARITY.md | 2 +- RELEASE.md | 19 ++++++++++--------- SECURITY.md | 8 +++++--- 5 files changed, 27 insertions(+), 18 deletions(-) diff --git a/.github/release-config.json b/.github/release-config.json index a5a638e11..8e384612a 100644 --- a/.github/release-config.json +++ b/.github/release-config.json @@ -1,20 +1,19 @@ { "publishMode": "manual-final-approval", "crossPlatformReady": false, - "requiredPlatforms": ["mac", "ios", "android"], + "requiredPlatforms": ["mac", "ios"], + "excludedPlatforms": ["android"], "mac": { "products": ["sender", "receiver"] }, "ios": { "appId": "6817552864", "bundleId": "com.raisecaterror.meowdisplay.ios", - "submitForReview": true, + "submitForReview": false, "storeUrl": "https://apps.apple.com/app/id6817552864" }, "android": { "package": "com.raisecaterror.meowdisplay.android", - "uploadTrack": "internal", - "reviewTrack": "alpha", "storeUrl": "https://play.google.com/store/apps/details?id=com.raisecaterror.meowdisplay.android" }, "website": { diff --git a/COMPATIBILITY.md b/COMPATIBILITY.md index 83bf690a4..d6928d4b4 100644 --- a/COMPATIBILITY.md +++ b/COMPATIBILITY.md @@ -13,7 +13,14 @@ versions and download links are in MeowDisplay has receiving apps on iPhone, iPad, Android and Mac. The main Mac app both shares and receives; the separate Receiver-only app runs on macOS 12 -or later. Android 2.0 (closed testing) requires the Mac 2.0 app. All +or later. Android 2.0 (closed testing) works with the Mac app 2.0 and later. +The Mac's updater (Sparkle) has one feed, so it offers Mac 2.1 to every Mac +2.0 install, including Macs used with Android, and Android 2.0 keeps working +with it over the same protocol (pv 22, pairing 13). It doesn't get the 2.1 +features. While a Mac 2.1 is locked, it sends Android 2.0 no picture and +accepts none of its input: the Android screen shows video off (dark) with no +lock notice, can't show or operate the lock screen, and resumes once the Mac +is unlocked at the Mac. All receivers negotiate the same shared wire protocol but have different platforms, release channels and capability limits. diff --git a/PARITY.md b/PARITY.md index 938af7144..b565f8e79 100644 --- a/PARITY.md +++ b/PARITY.md @@ -2,7 +2,7 @@ **MeowDisplay 2.0 is the stable Mac and iPhone/iPad release.** The main Mac app shares and receives; the separate Receiver-only app remains available. -Android 2.0 is in closed testing and requires Mac 2.0. Android requires Android 10+ and has no USB +Android 2.0 is in closed testing and works with Mac 2.0 or later (it doesn't get the 2.1 features; see [COMPATIBILITY.md](COMPATIBILITY.md)). Android requires Android 10+ and has no USB transport. See [platform availability](README.md#platform-availability--november-2-2026). diff --git a/RELEASE.md b/RELEASE.md index 0c8e888c9..fe571eeb4 100644 --- a/RELEASE.md +++ b/RELEASE.md @@ -1,21 +1,22 @@ # Release process -## Platform availability — November 2, 2026 +## Platform availability — MeowDisplay 2.1.0 | Platform | Available version | Get it | | --- | --- | --- | -| Mac app · macOS 14+ · share or receive | **2.0.0 stable** | [Download MeowDisplay](https://github.com/raiseCatError/meowdisplay/releases/download/v2.0.0/MeowDisplay.dmg) · [release notes](https://github.com/raiseCatError/meowdisplay/releases/tag/v2.0.0) | -| Receiver-only Mac app · macOS 12+ | **2.0.0 stable** | [Download MeowDisplay Receiver](https://github.com/raiseCatError/meowdisplay/releases/download/v2.0.0/MeowDisplayReceiver.dmg) | -| iPhone / iPad · iOS / iPadOS 16.4+ | **2.0.0 on the App Store** | [App Store](https://apps.apple.com/us/app/meowdisplay/id6817552864) | -| Android · Android 10+ | **2.0 closed beta** | [Request early access](https://meowdisplay.app/android/early-access) | +| Mac app · macOS 14+ · share or receive | **2.1.0 stable** | [Download MeowDisplay](https://github.com/raiseCatError/meowdisplay/releases/download/v2.1.0/MeowDisplay.dmg) · [release notes](https://github.com/raiseCatError/meowdisplay/releases/tag/v2.1.0) | +| Receiver-only Mac app · macOS 12+ | **2.1.0 stable** | [Download MeowDisplay Receiver](https://github.com/raiseCatError/meowdisplay/releases/download/v2.1.0/MeowDisplayReceiver.dmg) | +| iPhone / iPad · iOS / iPadOS 16.4+ | **2.1.0 on the App Store** | [App Store](https://apps.apple.com/us/app/meowdisplay/id6817552864) | +| Android · Android 10+ | **2.0 closed testing** (not part of 2.1) | [Join closed testing](https://meowdisplay.app/android/early-access) · Mac companion [2.0.0](https://github.com/raiseCatError/meowdisplay/releases/download/v2.0.0/MeowDisplay.dmg) | The main Mac app includes both sharing and receiving: share this Mac's display, or use this Mac as another Mac's display. The separate Receiver-only app is -also available for Macs running macOS 12 or later. Android 2.0 requires the -Mac 2.0 app. +also available for Macs running macOS 12 or later. Android 2.0 works with the +Mac app 2.0 and 2.1 (without the 2.1 features); see +[COMPATIBILITY.md](COMPATIBILITY.md). The Mac 2.0 downloads stay at their +`v2.0.0` URLs. - -MeowDisplay 2.0 is the stable release. The main Mac app includes sender and +MeowDisplay 2.0 was the previous stable release. The main Mac app includes sender and receiver roles; the separate Receiver-only app remains available. The publication gate and historical release process are documented below. diff --git a/SECURITY.md b/SECURITY.md index 4dacf655e..d7b8551b8 100644 --- a/SECURITY.md +++ b/SECURITY.md @@ -300,12 +300,14 @@ reaches it. Unknown counts as locked, never as unlocked. app icons, app list, Stage Peek or picker content, Remote Finder listings, pane menus, text caret or clipboard. Frames captured or queued just before the lock are dropped too. Devices are told the Mac is locked and that video is off, so even an older receiver drops its last - picture. The iOS and Android receivers cover everything with an opaque "locked" screen, + picture. The iOS receiver and this repository's Android receiver cover everything with an opaque "locked" screen, forget the stills, backdrops, window names and app lists they held, close Stage Peek and the window pickers, and ignore any content message that still arrives. The layout is kept, but after the unlock content comes back only from fresh messages from the Mac, never from a cache. - Android treats `macLockState` like iOS (anything but a clear `unlocked`, including a state it - doesn't know, counts as locked) and offers no Show Lock Screen or remote unlock. + This repository's Android receiver treats `macLockState` like iOS (anything but a clear + `unlocked`, including a state it doesn't know, counts as locked) and offers no Show Lock Screen + or remote unlock. The released Android 2.0 predates that: it doesn't read `macLockState`, shows + video off and keeps what it already had, while the Mac sends it nothing new and drops its input. - **Nothing gets in.** Keys, buttons, touches and drags the device was holding are released at the lock; everything sent afterwards is dropped until the Mac unlocks, so nothing reaches the lock screen or a window behind it. A device set to Ask is refused without a prompt (nobody From 98aea2d21c0beb8cf272a0e4ae4899a9e05e8f91 Mon Sep 17 00:00:00 2001 From: raiseCatError <315733358+raiseCatError@users.noreply.github.com> Date: Mon, 9 Nov 2026 23:49:59 +0530 Subject: [PATCH 02/34] docs(readme): MeowDisplay 2.1 for Mac, iPhone and iPad; Android stays on 2.0 Points the Mac downloads at v2.1.0, adds What's new in 2.1, and keeps a pinned Mac 2.0 link for Android users. Android 2.0 works with Mac 2.0 and later. --- README.md | 51 ++++++++++++++++++++++++++++++++++++++------------- 1 file changed, 38 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index 9523c9946..2fdf68991 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ trackpad-style input, gestures and a keyboard. [Privacy](https://meowdisplay.app/privacy.html) · [Support on Ko-fi](https://ko-fi.com/raisecaterror) -**[Download MeowDisplay 2.0 for Mac](https://github.com/raiseCatError/meowdisplay/releases/download/v2.0.0/MeowDisplay.dmg)** · Download on the App Store +**[Download MeowDisplay 2.1 for Mac](https://github.com/raiseCatError/meowdisplay/releases/download/v2.1.0/MeowDisplay.dmg)** · Download on the App Store
@@ -42,24 +42,49 @@ or server in the middle. to check platform support, input styles, pricing, feature limits and trade-offs before deciding what fits your setup. -## MeowDisplay 2.0 — official release +## MeowDisplay 2.1 -MeowDisplay 2.0 is officially released, with iPhone and iPad available on the -App Store. Distribution differs by platform as shown below. +MeowDisplay 2.1 is out for Mac, iPhone and iPad. Android stays on 2.0 in +closed testing. Distribution differs by platform as shown below. -### Platform availability — November 2, 2026 +### Platform availability | Platform | Available version | Get it | | --- | --- | --- | -| Mac app · macOS 14+ · share or receive | **2.0.0 stable** | [Download MeowDisplay](https://github.com/raiseCatError/meowdisplay/releases/download/v2.0.0/MeowDisplay.dmg) · [release notes](https://github.com/raiseCatError/meowdisplay/releases/tag/v2.0.0) | -| Receiver-only Mac app · macOS 12+ | **2.0.0 stable** | [Download MeowDisplay Receiver](https://github.com/raiseCatError/meowdisplay/releases/download/v2.0.0/MeowDisplayReceiver.dmg) | -| iPhone / iPad · iOS / iPadOS 16.4+ | **2.0.0 on the App Store** | [App Store](https://apps.apple.com/us/app/meowdisplay/id6817552864) | +| Mac app · macOS 14+ · share or receive | **2.1.0 stable** | [Download MeowDisplay](https://github.com/raiseCatError/meowdisplay/releases/download/v2.1.0/MeowDisplay.dmg) · [release notes](https://github.com/raiseCatError/meowdisplay/releases/tag/v2.1.0) | +| Receiver-only Mac app · macOS 12+ | **2.1.0 stable** | [Download MeowDisplay Receiver](https://github.com/raiseCatError/meowdisplay/releases/download/v2.1.0/MeowDisplayReceiver.dmg) | +| iPhone / iPad · iOS / iPadOS 16.4+ | **2.1.0 on the App Store** | [App Store](https://apps.apple.com/us/app/meowdisplay/id6817552864) | | Android · Android 10+ | **2.0 closed testing** | [Request early access](https://meowdisplay.app/android/early-access) | The main Mac app includes both sharing and receiving: share this Mac's display, or use this Mac as another Mac's display. The separate Receiver-only app is -also available for Macs running macOS 12 or later. Android 2.0 requires the -Mac 2.0 app. +also available for Macs running macOS 12 or later. + +Android 2.0 works with the Mac app 2.0 and later, including 2.1. The 2.1 +features below are on iPhone and iPad only for now, and with Mac 2.1 a locked +Mac shows as a dark screen on Android until it's unlocked at the Mac. If you'd +rather stay on Mac 2.0, it remains available: +[MeowDisplay 2.0 for Mac](https://github.com/raiseCatError/meowdisplay/releases/download/v2.0.0/MeowDisplay.dmg). + +## What's new in MeowDisplay 2.1 + +- **Floating windows:** in Window view, a Mac window can float over your panes. + Move it, resize it, throw it at an edge to tuck it away, and add it back to + the layout when you're done. You can turn floating windows off in Settings. +- **Fill Window on Mac** and **Restore Previous Size on Mac** for a window in a pane. +- **Window view:** the window picker also opens apps that aren’t + running, clearer pane titles, and windows closed on the Mac leave the layout. +- **Mission Control and Stage Manager:** notices only on the windows they + pause, and Stage Manager switches no longer touch the Dock. +- **Lock screen:** while the Mac is locked, MeowDisplay shows and accepts + nothing. Trusted iPhones and iPads can operate the Mac's own lock screen, + and Lock Mac asks for control first. +- **Controls:** the arrow keypad gets its own Shift, Option and Command, and + Open and Save choosers in a pane take presses where you tap. +- **Zoom While Typing** keeps the typing location above the keyboard. +- **Mac app:** new installs start in the Dock and menu bar, with a menu-bar + icon drawn from the MeowDisplay mark, and Wi-Fi connections over QUIC find + the Mac more reliably. ## What's new in MeowDisplay 2.0 @@ -483,15 +508,15 @@ More in [SECURITY.md](SECURITY.md) and the | **MeowDisplay** (the Mac app for sharing and receiving) | macOS 14 or later | | **MeowDisplay Receiver** (a spare Mac as a display) | macOS 12 or later | | **MeowDisplay** for iPhone and iPad | iOS / iPadOS 16.4 or later | -| **MeowDisplay** for Android (closed beta) | Android 10 or later; Mac 2.0 sender required. Build requirements: [AndroidReceiver/README.md](AndroidReceiver/README.md); features: [PARITY.md](PARITY.md) | +| **MeowDisplay** for Android (closed beta) | Android 10 or later; Mac 2.0 or later required. Build requirements: [AndroidReceiver/README.md](AndroidReceiver/README.md); features: [PARITY.md](PARITY.md) | Remote control of the Mac needs Accessibility permission; capturing a display needs Screen Recording. ## Install -The links in [Platform availability](#platform-availability--november-2-2026) -install stable 2.0. The main Mac app can share and receive; choose the separate +The links in [Platform availability](#platform-availability) +install stable 2.1. The main Mac app can share and receive; choose the separate Receiver-only app when that is all the Mac needs. **Mac, with Homebrew (optional):** signed and notarized, macOS 14 or later. From 01764beb3c9bd8c3b0f3d6984cb3b665e26e0e67 Mon Sep 17 00:00:00 2001 From: raiseCatError <315733358+raiseCatError@users.noreply.github.com> Date: Tue, 10 Nov 2026 00:05:20 +0530 Subject: [PATCH 03/34] docs(readme): closed windows can leave an empty pane; lock screen control is the one exception A pane whose only window closed stays, empty, with Choose Window and Remove Pane (WINDOW_MODE.md). The lock screen entry now says that showing and accepting nothing is the default and lock screen control is the authorized exception. RELEASE.md says the 2.1.0 promotion PR to main is merged by hand only once v2.1.0 is Latest and 2.1.0 is on the App Store. --- README.md | 15 ++++++++++----- RELEASE.md | 7 +++++++ 2 files changed, 17 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 2fdf68991..5d68f1611 100644 --- a/README.md +++ b/README.md @@ -72,13 +72,18 @@ rather stay on Mac 2.0, it remains available: Move it, resize it, throw it at an edge to tuck it away, and add it back to the layout when you're done. You can turn floating windows off in Settings. - **Fill Window on Mac** and **Restore Previous Size on Mac** for a window in a pane. -- **Window view:** the window picker also opens apps that aren’t - running, clearer pane titles, and windows closed on the Mac leave the layout. +- **Window view:** the window picker also opens apps that aren’t running, + pane titles are clearer, and closing a window on the Mac tidies the layout: + its tab or floating window goes away, and a pane whose only window closed + stays, empty, with Choose Window and Remove Pane. - **Mission Control and Stage Manager:** notices only on the windows they pause, and Stage Manager switches no longer touch the Dock. -- **Lock screen:** while the Mac is locked, MeowDisplay shows and accepts - nothing. Trusted iPhones and iPads can operate the Mac's own lock screen, - and Lock Mac asks for control first. +- **Lock screen:** while the Mac is locked, MeowDisplay shows nothing and + accepts no input by default. The one exception is lock screen control: an + iPhone or iPad that already has control (Always Allow Requests, or control + granted before the Mac locked) can show macOS's own lock screen and type the + password there, and macOS checks it. Each device's Allow Lock Screen Control + switch turns this off. Lock Mac asks for control first. - **Controls:** the arrow keypad gets its own Shift, Option and Command, and Open and Save choosers in a pane take presses where you tap. - **Zoom While Typing** keeps the typing location above the keyboard. diff --git a/RELEASE.md b/RELEASE.md index fe571eeb4..53fb4a523 100644 --- a/RELEASE.md +++ b/RELEASE.md @@ -16,6 +16,13 @@ Mac app 2.0 and 2.1 (without the 2.1 features); see [COMPATIBILITY.md](COMPATIBILITY.md). The Mac 2.0 downloads stay at their `v2.0.0` URLs. +This table and the README describe 2.1.0 as released. They reach `main` +only through the promotion PR that `release-publish` opens after the Mac +release is Latest and the stores step has run. `RELEASE_AUTO_PROMOTE` stays +unset for 2.1.0: merge that PR by hand only once `v2.1.0` is the Latest +GitHub release and 2.1.0 is live on the App Store (the stores step can finish +while iOS is still waiting). + MeowDisplay 2.0 was the previous stable release. The main Mac app includes sender and receiver roles; the separate Receiver-only app remains available. The publication gate and historical release process are documented below. From fbef0214cad93044f86e943d268a737cd5b42431 Mon Sep 17 00:00:00 2001 From: raiseCatError <315733358+raiseCatError@users.noreply.github.com> Date: Tue, 10 Nov 2026 02:08:05 +0530 Subject: [PATCH 04/34] fix(mac): explain refused pairing approval --- Mac/SecurityPresentationCoordinator.swift | 23 ++++++++++++-- MacTests/PairingPromptModelTests.swift | 37 +++++++++++++++++++++++ Shared/PairingPromptModel.swift | 9 ++++++ 3 files changed, 66 insertions(+), 3 deletions(-) diff --git a/Mac/SecurityPresentationCoordinator.swift b/Mac/SecurityPresentationCoordinator.swift index 00a893763..b53b519c3 100644 --- a/Mac/SecurityPresentationCoordinator.swift +++ b/Mac/SecurityPresentationCoordinator.swift @@ -50,10 +50,12 @@ enum SecurityPresentationCoordinator { let delegate = PairingPanelWindowDelegate(prompt: prompt) pairingPanelDelegate = delegate panel.delegate = delegate - panel.contentView = NSHostingView(rootView: PairingPanelView(prompt: prompt, onResolved: { + let hostingController = NSHostingController(rootView: PairingPanelView(prompt: prompt, onResolved: { Log.info("uiDebug: pairing panel closed reason=resolved") panel.orderOut(nil) })) + hostingController.sizingOptions = [.preferredContentSize] + panel.contentViewController = hostingController SecurityPanelPlacement.show(panel, avoiding: streamedDisplays()) Log.info("uiDebug: pairing panel orderedFront visible=\(panel.isVisible) keyWindow=\(panel.isKeyWindow)") } @@ -270,6 +272,9 @@ private struct PairingPanelView: View { @ObservedObject var prompt: PairingPromptModel let onResolved: () -> Void @State private var armed = false + private static var refusedGrantMessage: String { + String(localized: "Approval was blocked because the click came from software, such as Screen Sharing. Use a mouse or keyboard connected to this Mac, or a hardware KVM, then try again.") + } var body: some View { Group { @@ -295,6 +300,12 @@ private struct PairingPanelView: View { Text(PairingCopy.sasHelper).font(.caption).foregroundStyle(.secondary) .multilineTextAlignment(.center) } + if prompt.grantRefused { + Text(Self.refusedGrantMessage) + .font(.caption).foregroundStyle(.secondary) + .multilineTextAlignment(.center) + .fixedSize(horizontal: false, vertical: true) + } if prompt.panelPhase == .authenticatingOwner { // The system's Touch ID / password prompt is open: say // so, rather than leave the code up with a disabled @@ -313,7 +324,13 @@ private struct PairingPanelView: View { Button("Cancel", role: .cancel) { prompt.decide(accept: false) } .keyboardShortcut(.cancelAction) Button(pending.classification == .newPeer ? "Codes Match" : "Re-pair") { - guard ConsentGrant.allowed() else { return } + guard ConsentGrant.allowed() else { + prompt.noteRefusedGrant() + NSAccessibility.post(element: NSApplication.shared, notification: .announcementRequested, + userInfo: [.announcement: Self.refusedGrantMessage, + .priority: NSAccessibilityPriorityLevel.medium.rawValue]) + return + } // Only now, after a hardware press on the grant // itself, does MeowDisplay come forward, so the // owner-authentication prompt that may follow @@ -343,7 +360,7 @@ private struct PairingPanelView: View { Color.clear.frame(width: 1, height: 1) } } - .frame(minWidth: 360) + .frame(width: 380) // Stays open while waiting for the other device; closes only when the // attempt has neither a pending SAS nor a local confirmation. .modifier(ArmsAfterDelay(armed: $armed, key: prompt.pending?.id)) diff --git a/MacTests/PairingPromptModelTests.swift b/MacTests/PairingPromptModelTests.swift index 922edaba6..3f908dea8 100644 --- a/MacTests/PairingPromptModelTests.swift +++ b/MacTests/PairingPromptModelTests.swift @@ -130,4 +130,41 @@ final class PairingPromptModelTests: XCTestCase { XCTAssertEqual(accepted, 0) } + func testRefusedGrantIsVisibleOnlyForThePendingAttempt() async { + let model = PairingPromptModel.granting(timeoutNanoseconds: 5_000_000_000) + model.noteRefusedGrant() + XCTAssertFalse(model.grantRefused) + let first = Task { @MainActor in await model.request(self.pending()) } + await Task.yield() + model.noteRefusedGrant() + model.noteRefusedGrant() + XCTAssertTrue(model.grantRefused) + XCTAssertNotNil(model.pending) + model.decide(accept: false) + let accepted = await first.value + XCTAssertFalse(accepted) + XCTAssertFalse(model.grantRefused) + let second = Task { @MainActor in await model.request(self.pending("peer-b")) } + await Task.yield() + XCTAssertFalse(model.grantRefused) + model.decide(accept: false) + _ = await second.value + } + + func testRefusedGrantDoesNotPreventTimeoutOrAuthorizeLater() async { + let model = PairingPromptModel.granting(timeoutNanoseconds: 50_000_000) + var accepted = 0 + model.onAccepted = { _ in accepted += 1 } + let attempt = Task { @MainActor in await model.request(self.pending()) } + await Task.yield() + model.noteRefusedGrant() + XCTAssertTrue(model.grantRefused) + let result = await attempt.value + XCTAssertFalse(result) + XCTAssertFalse(model.grantRefused) + model.decide(accept: true) + XCTAssertEqual(accepted, 0) + XCTAssertNil(model.pending) + } + } diff --git a/Shared/PairingPromptModel.swift b/Shared/PairingPromptModel.swift index fba31a1bd..a2254d9a0 100644 --- a/Shared/PairingPromptModel.swift +++ b/Shared/PairingPromptModel.swift @@ -8,6 +8,13 @@ import Foundation final class PairingPromptModel: ObservableObject { @Published private(set) var pending: PendingPairing? @Published private(set) var status: String? + /// Presentation feedback only; it never resolves or extends the attempt. + @Published private(set) var grantRefused = false + + func noteRefusedGrant() { + guard decision != nil, pending != nil else { return } + grantRefused = true + } /// Set once THIS device accepted the SAS, until the attempt ends. Purely /// presentational ("Waiting for confirmation…"): it never means trust was /// written or the pairing completed. @@ -122,6 +129,7 @@ final class PairingPromptModel: ObservableObject { decision = continuation if let token { owner = token } confirmedLocally = nil + grantRefused = false pending = value status = nil timeoutTask = Task { [weak self] in @@ -273,6 +281,7 @@ final class PairingPromptModel: ObservableObject { decision = nil let accepted = value ? pending : nil confirmedLocally = accepted + grantRefused = false pending = nil Log.info("pairDebug: confirmationResolved value=\(value) reason=\(reason)") if let accepted { onAccepted?(accepted) } From 5d54c6a522719dde3b74e5db27e1d8d4b079adf0 Mon Sep 17 00:00:00 2001 From: raiseCatError <315733358+raiseCatError@users.noreply.github.com> Date: Tue, 10 Nov 2026 02:19:07 +0530 Subject: [PATCH 05/34] fix(mac): clarify physical pairing approval guidance --- Mac/SecurityPresentationCoordinator.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Mac/SecurityPresentationCoordinator.swift b/Mac/SecurityPresentationCoordinator.swift index b53b519c3..05e9c40c8 100644 --- a/Mac/SecurityPresentationCoordinator.swift +++ b/Mac/SecurityPresentationCoordinator.swift @@ -273,7 +273,7 @@ private struct PairingPanelView: View { let onResolved: () -> Void @State private var armed = false private static var refusedGrantMessage: String { - String(localized: "Approval was blocked because the click came from software, such as Screen Sharing. Use a mouse or keyboard connected to this Mac, or a hardware KVM, then try again.") + String(localized: "Approval was blocked because the click came from software, such as Screen Sharing. Use a physical mouse or trackpad connected to this Mac, or a hardware KVM, then try again.") } var body: some View { From caeb6a3cccbf7d035d2ec4cf17d88433ee497ece Mon Sep 17 00:00:00 2001 From: "meowdisplay-release[bot]" <351584801+meowdisplay-release[bot]@users.noreply.github.com> Date: Mon, 9 Nov 2026 21:35:57 +0000 Subject: [PATCH 06/34] chore(release/2.1.0): release 2.1.0 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 197 ++++++++++++++++++++++++++++++++++ version.txt | 2 +- 3 files changed, 199 insertions(+), 2 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 895bf0e35..969d3dbf7 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "2.0.0" + ".": "2.1.0" } diff --git a/CHANGELOG.md b/CHANGELOG.md index d1657ee6d..f096c4b30 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,202 @@ # Changelog +## [2.1.0](https://github.com/raiseCatError/meowdisplay/compare/v2.0.0...v2.1.0) (2026-11-09) + + +### Features + +* **controls:** give the arrow keypad its own Shift, Option and Command ([e5871e3](https://github.com/raiseCatError/meowdisplay/commit/e5871e32009fff9b1f5100b2da1e7e0213d2c854)) +* **controls:** Lock Mac asks for control first, also from Session Actions ([1d94401](https://github.com/raiseCatError/meowdisplay/commit/1d94401d8c54124a8e6e13ce06b11f758aa9efca)) +* **ios:** add a built-in local calculator to the receiver ([24ae7c2](https://github.com/raiseCatError/meowdisplay/commit/24ae7c2751847092bacaf3c7123eb80015019ae7)) +* **ios:** add an exact-decimal engine for a local calculator ([401f4c5](https://github.com/raiseCatError/meowdisplay/commit/401f4c57f3d40d31181be592cae55378a8ea2210)), closes [#182](https://github.com/raiseCatError/meowdisplay/issues/182) +* **ios:** add the local calculator to the receiver controls ([0cd02f6](https://github.com/raiseCatError/meowdisplay/commit/0cd02f624e9abb2f61af1ce1c6ee4b9959fbea17)), closes [#182](https://github.com/raiseCatError/meowdisplay/issues/182) +* **ios:** an Arrow Keys item in the keyboard companion bar ([c0e9492](https://github.com/raiseCatError/meowdisplay/commit/c0e94920f614f05de2acedb396f7971a77c5f2a7)), closes [#179](https://github.com/raiseCatError/meowdisplay/issues/179) +* **ios:** Back to Home — Keep Connected ([#121](https://github.com/raiseCatError/meowdisplay/issues/121)) ([7c0b765](https://github.com/raiseCatError/meowdisplay/commit/7c0b7654b75ba22d5c3e033c6d9e9ec12c8f8c8b)) +* **ios:** go back to Home while keeping the session connected ([#121](https://github.com/raiseCatError/meowdisplay/issues/121)) ([1de3984](https://github.com/raiseCatError/meowdisplay/commit/1de39846ba37592dc98728b024dca875cec0291e)) +* **ios:** on-screen arrow keys with tap-to-open keypad and swipe presses ([366a3d0](https://github.com/raiseCatError/meowdisplay/commit/366a3d069f84a366b5ad72862ab8b45d076919b5)) +* **ios:** on-screen arrow keys with tap-to-open keypad and swipe presses ([945f02d](https://github.com/raiseCatError/meowdisplay/commit/945f02d7db5fb13b80d52d9d2503d51d8e6dd10e)), closes [#179](https://github.com/raiseCatError/meowdisplay/issues/179) +* **ios:** prerequisites-first Remote Access setup and actionable Remote status ([3457506](https://github.com/raiseCatError/meowdisplay/commit/345750614c788041cf2ea260ef9cac063da82451)) +* **ios:** prerequisites-first Remote Access setup and why a Connect over Remote failed ([c852b68](https://github.com/raiseCatError/meowdisplay/commit/c852b6825d2a9ca4425407c4674d176bcea0bd16)), closes [#95](https://github.com/raiseCatError/meowdisplay/issues/95) +* **ios:** quicker modifier shortcuts with a Hold Response setting ([0061913](https://github.com/raiseCatError/meowdisplay/commit/0061913eaa0c7130d47bce89ef067793e947cb05)) +* **ios:** quicker modifier shortcuts with a Hold Response setting ([f30a0ab](https://github.com/raiseCatError/meowdisplay/commit/f30a0ab895a76594361ce730c7d8e56023f38cb6)), closes [#131](https://github.com/raiseCatError/meowdisplay/issues/131) +* **ios:** show the build number and a Rate MeowDisplay link in About ([48f2359](https://github.com/raiseCatError/meowdisplay/commit/48f2359bd308128eb25afb2063014bfe3ac74dc6)) +* **ios:** show the build number and a Rate MeowDisplay link in About ([9cdf627](https://github.com/raiseCatError/meowdisplay/commit/9cdf62734a1d2651a3186a014ebbeaf56f292827)) +* **ios:** touch and hold Settings for Session Actions (overlay) ([20bdbac](https://github.com/raiseCatError/meowdisplay/commit/20bdbace0f09907a674dd9adac9e9230cdf154b9)) +* **ios:** touch and hold Settings to disconnect from the Mac ([8bc2de1](https://github.com/raiseCatError/meowdisplay/commit/8bc2de177d99609a0a0990c6019bd19a51fe27cb)) +* **ios:** touch and hold Settings to open Session Actions ([eb2fe9b](https://github.com/raiseCatError/meowdisplay/commit/eb2fe9bcde891fe5447a3f0cdeb9db5878797257)) +* **lock-screen:** Always Allow includes lock screen control; an explicit off stays ([f884690](https://github.com/raiseCatError/meowdisplay/commit/f8846903cab19002015182ef098983949868b83c)) +* **lock-screen:** secure key input, tagged input, Ask handoff, recovery ([73db714](https://github.com/raiseCatError/meowdisplay/commit/73db7147d29a48e1ab5def00c61371ec09e26fde)) +* **lock-screen:** show the Mac's lock screen from the iPad ([131c993](https://github.com/raiseCatError/meowdisplay/commit/131c993ab00872463d4e51556a06bab8ebef4d43)) +* **lock-screen:** tag touches and clicks; refused presses reported as clicks ([1f0424b](https://github.com/raiseCatError/meowdisplay/commit/1f0424ba8e2e2743e7027a552e234b5a4e1a3d13)) +* **lock-screen:** trusted devices can operate the Mac's own lock screen ([8a5c351](https://github.com/raiseCatError/meowdisplay/commit/8a5c351df5b1ab7aa701a2e546f73af89ff3b3da)) +* **mac:** menu-bar icon drawn from the MeowDisplay mark ([5d269d4](https://github.com/raiseCatError/meowdisplay/commit/5d269d421aa9f5610b0e702654ed0e43a21b356d)) +* **mac:** new installs start as Dock & Menu Bar ([2276188](https://github.com/raiseCatError/meowdisplay/commit/2276188a670f068ff42d2afe2845eb6839562e40)) +* **protocol:** let a key ask for exactly its own modifiers ([77a8dfd](https://github.com/raiseCatError/meowdisplay/commit/77a8dfdd5ef9870ca6e2664a2b3fc644d6ecd9df)) +* **receiver:** add pane fullscreen shortcut and drag-to-remove ([79f35aa](https://github.com/raiseCatError/meowdisplay/commit/79f35aa8b6ce57b5664285b0aec5ab0366364a56)) +* **receiver:** make Normal the Stage Peek Dock default for new installs ([cb43a1a](https://github.com/raiseCatError/meowdisplay/commit/cb43a1adba35bb5cc55cb2f7e3f754aac5384aa1)) +* **receiver:** make Normal the Stage Peek Dock default for new installs ([3552818](https://github.com/raiseCatError/meowdisplay/commit/3552818028478a2d0962182f51a88383ed019c02)) +* **receiver:** the Mac Receiver says the Mac is locked instead of going blank ([f2ff346](https://github.com/raiseCatError/meowdisplay/commit/f2ff3461faab56753e6d3a9904a867280c333135)) +* **release:** exclude Android from a release with excludedPlatforms; per-run iOS submission authorization ([35a6f91](https://github.com/raiseCatError/meowdisplay/commit/35a6f91792ddb8833febca96608a78567305373f)) +* **release:** leave a platform out of one release with excludedPlatforms; authorize an iOS submission per monitor run ([ecc3be5](https://github.com/raiseCatError/meowdisplay/commit/ecc3be5bdc32401cd57d0b0941e02170b173d890)) +* Streaming Priority reads Latency, Balanced, Smoothness ([5b7fc2c](https://github.com/raiseCatError/meowdisplay/commit/5b7fc2c77a44f769b2e9e3fa3f086f32a89d140e)) +* Streaming Priority reads Latency, Balanced, Smoothness ([5f45a76](https://github.com/raiseCatError/meowdisplay/commit/5f45a762ad7e23697544ed1716882098ab9594b5)) +* **window-mode:** a tucked float waits at its edge at full length ([f908de9](https://github.com/raiseCatError/meowdisplay/commit/f908de937d05083239dc893ed442fc53812f362c)) +* **window-mode:** circle while dragging to switch Pane and Floating ([bf4bd63](https://github.com/raiseCatError/meowdisplay/commit/bf4bd63ac34540205fce0471451fd51cb2e83b15)) +* **window-mode:** circling switches a drag in about a second ([b277d9f](https://github.com/raiseCatError/meowdisplay/commit/b277d9ff2ffd41f5b352e2ae52e658e4d81976d4)) +* **window-mode:** Enable Floating Windows switch in Settings ▸ Controls ▸ Window Switcher ([542b432](https://github.com/raiseCatError/meowdisplay/commit/542b43201469375ac78ea1d33e78d2274452db15)) +* **window-mode:** fill and restore a pane's real Mac window on request ([b43130b](https://github.com/raiseCatError/meowdisplay/commit/b43130b74164c5bda68b6014e58d3dc066a3727a)) +* **window-mode:** Fill Window on Mac and Restore Previous Size on Mac in a float's On Your Mac menu ([62a7322](https://github.com/raiseCatError/meowdisplay/commit/62a732284d9c2330356fa5e673e2d015070651f7)) +* **window-mode:** Fill Window on Mac and Restore Previous Size on Mac in the pane menu ([8b5c2bf](https://github.com/raiseCatError/meowdisplay/commit/8b5c2bf92d51a4b1dfa63f67e190db32c9e4980e)) +* **window-mode:** floating panes model, Mac validation and wire ([54a7b24](https://github.com/raiseCatError/meowdisplay/commit/54a7b24b59258bbeaaf804074cfce1ee36e746f9)) +* **window-mode:** floating panes model, Mac validation and wire ([895d9a3](https://github.com/raiseCatError/meowdisplay/commit/895d9a38c8467d52b4b92581f064f5b1062a7da3)) +* **window-mode:** floating windows on iPhone and iPad ([c8968b4](https://github.com/raiseCatError/meowdisplay/commit/c8968b4119860bc523fae4aef5e9a21d07e4f92a)) +* **window-mode:** floating windows on iPhone and iPad ([25ecaa0](https://github.com/raiseCatError/meowdisplay/commit/25ecaa07faa4df63526ed740d71366d0e19a1464)) +* **window-mode:** freeform float viewport drawn once while it moves ([4c0e806](https://github.com/raiseCatError/meowdisplay/commit/4c0e80676382b8963cd30f50fd8b89d191d1ff22)) +* **window-mode:** Remove from This Device for a float being docked ([47ca38e](https://github.com/raiseCatError/meowdisplay/commit/47ca38e46098732cafdf9d60bfd2bb6c972d77bc)) +* **window-mode:** throws tuck into the edge they reach, on any edge ([5126a65](https://github.com/raiseCatError/meowdisplay/commit/5126a6531cd692a3fda0dee837a7b6ec962437ac)) +* **window-mode:** tucked floats wait as slivers you can peek at and pull out ([09cf9ae](https://github.com/raiseCatError/meowdisplay/commit/09cf9ae465bb31657f416bfb13ad95abe70c9e08)) +* **window-mode:** tucked strips show their window after a reconnect ([940666f](https://github.com/raiseCatError/meowdisplay/commit/940666f05ca179831377fed66ffa03af47c4a242)) +* **window-mode:** windows closed on the Mac leave the layout ([f323beb](https://github.com/raiseCatError/meowdisplay/commit/f323beb5ca3cd7762a00b418a125eae3bac0afbe)) +* **window:** double-tap pane title for local fullscreen; drag a pane to Remove from Layout ([e1691ed](https://github.com/raiseCatError/meowdisplay/commit/e1691edf7d8d318381dfead7cc816d96b3c8e1a2)), closes [#120](https://github.com/raiseCatError/meowdisplay/issues/120) + + +### Bug Fixes + +* **android:** show and accept nothing while the Mac is locked ([ce762ed](https://github.com/raiseCatError/meowdisplay/commit/ce762ed426b523b698b352738a6833ece5c45d7d)) +* **ios:** drop a held tray touch when the controls move under it ([663c356](https://github.com/raiseCatError/meowdisplay/commit/663c3566224df6122dfd20a8be3619d0db1af066)), closes [#131](https://github.com/raiseCatError/meowdisplay/issues/131) +* **ios:** drop the Settings long-press menu while a shortcut palette is open ([f83df68](https://github.com/raiseCatError/meowdisplay/commit/f83df681911614d34a3fd0a006e4173e6fb3d5f1)) +* **ios:** keep centred prompts off an iPhone Duo fold ([4236010](https://github.com/raiseCatError/meowdisplay/commit/42360105bf6510ead168e87e776f724beb25a0b2)), closes [#99](https://github.com/raiseCatError/meowdisplay/issues/99) +* **ios:** keep Demo Mode controls off an iPhone Duo fold ([418370a](https://github.com/raiseCatError/meowdisplay/commit/418370aaf25db74426942ae99e3684fca2a2adfb)) +* **ios:** keep prompts, the keyboard bar and Demo Mode off an iPhone Duo fold ([e42ea93](https://github.com/raiseCatError/meowdisplay/commit/e42ea936ad61dfddeb51478273a08be5d5f3def9)) +* **ios:** keep Stage Peek labels legible over bright windows ([18fcb30](https://github.com/raiseCatError/meowdisplay/commit/18fcb305e916e09fa4edc48de708377345d118cd)) +* **ios:** keep Stage Peek labels legible over bright windows ([a2ca3f0](https://github.com/raiseCatError/meowdisplay/commit/a2ca3f045fdd613f10ad1509ed07f3b5c76af5ab)) +* **ios:** keep the controls up while Session Actions is open ([1c311da](https://github.com/raiseCatError/meowdisplay/commit/1c311dabcd9ab401a68e3e3166a2eead2653fdc6)) +* **ios:** keep the controls up while Session Actions is open ([2c9e14c](https://github.com/raiseCatError/meowdisplay/commit/2c9e14c8b7e111b8ec0b08c2a0c8d45bd6666f09)) +* **ios:** keep the Settings session menu off a faded rail and Auto-hide paused ([dfd5184](https://github.com/raiseCatError/meowdisplay/commit/dfd518470b2609196d3ad193e075682b168c8fca)) +* **ios:** keep the typing location above the keyboard with Zoom While Typing ([da8dd2d](https://github.com/raiseCatError/meowdisplay/commit/da8dd2d9cc8d2a861b860efb309110c9dd3569d5)) +* **ios:** keep Window view pane chrome on the picture while typing ([c270811](https://github.com/raiseCatError/meowdisplay/commit/c270811698b5db35fd853e80e635fd574cbefc07)) +* **ios:** keep Window view pane chrome on the picture while typing ([71b7514](https://github.com/raiseCatError/meowdisplay/commit/71b751441197ecc20e4a1a273acfd3607cef776b)) +* **ios:** let a fast two-finger double-tap reset a Window view pane ([00590da](https://github.com/raiseCatError/meowdisplay/commit/00590da6179fe1749ee084749fedd44e1057769f)) +* **ios:** let a fast two-finger double-tap reset a Window view pane ([8497d23](https://github.com/raiseCatError/meowdisplay/commit/8497d23edc4d1b4a6d216014a54cad0ab572d004)) +* **ios:** map touches through the picture as drawn while it animates ([ff57e44](https://github.com/raiseCatError/meowdisplay/commit/ff57e44461362491569cd799f008b659e762e594)) +* **ios:** map touches through the picture as drawn while it animates ([9fb80d8](https://github.com/raiseCatError/meowdisplay/commit/9fb80d8b8b4d55cd8467b3e7cce19655019f1e7b)) +* **ios:** republish the iPad canvas after rotation in Custom layout ([a0be1af](https://github.com/raiseCatError/meowdisplay/commit/a0be1afd492ae807b8f2fd9ef851fbd1df76dea3)) +* **ios:** republish the iPad canvas after rotation in Custom layout ([c017762](https://github.com/raiseCatError/meowdisplay/commit/c01776254abf518453ff63dd43c0e219bef0b9f6)) +* **ios:** split the keyboard bar around an iPhone Duo fold ([b3103fb](https://github.com/raiseCatError/meowdisplay/commit/b3103fb0f8a7e6714b82d11b5b956e68454f1115)) +* **ios:** stop retrying audio playback during an audio interruption ([cb6b030](https://github.com/raiseCatError/meowdisplay/commit/cb6b0304f9d66bf744abcb9c8bc4d903b368c480)) +* **ios:** stop retrying audio playback during an audio interruption ([9c792e6](https://github.com/raiseCatError/meowdisplay/commit/9c792e6722e4d02701825124c99203338d22e5d2)) +* **ios:** time arrow-key repeats with CACurrentMediaTime ([2ad3955](https://github.com/raiseCatError/meowdisplay/commit/2ad3955b89c92323e3c932aec8d8fb544f15d9d4)) +* **ios:** use the dense Stage Peek surface with Increase Contrast ([51982f3](https://github.com/raiseCatError/meowdisplay/commit/51982f38edacd391386baebc167ccac5d65cdbfa)) +* **lock-screen:** cursor, clear cover, opt-in default, Extend, audit F1-F7 ([fea4608](https://github.com/raiseCatError/meowdisplay/commit/fea4608f56e7c27d9d144757ff7c532b216530d8)) +* **lock-screen:** no pre-lock picture, snapshot or PiP of the lock screen; keyboard keeps its owner ([f50f773](https://github.com/raiseCatError/meowdisplay/commit/f50f773b08ee524cd717890586967c45d260da9d)) +* **lock-screen:** one lock-episode boundary for every input family ([d82739d](https://github.com/raiseCatError/meowdisplay/commit/d82739df3f9e27e5b52441e76ab43a47e4499816)) +* **lock-screen:** survive the mode switch's first notice; Mirror; return after a timeout ([89445a2](https://github.com/raiseCatError/meowdisplay/commit/89445a2faefc9d7f0842b64e4eaeaeca1b8b3384)) +* **lock-screen:** the control tray drops keyboard mode when unlocking closes the keyboard ([6d05f92](https://github.com/raiseCatError/meowdisplay/commit/6d05f9206d25f881c1923d60581ae898aef3c898)) +* **lock-screen:** the password field stays above the keyboard; its hide key closes it ([6391324](https://github.com/raiseCatError/meowdisplay/commit/6391324a601e19f5e55243111455ca1c83843e0f)) +* **mac:** capture an offscreen window at the highest active display scale ([c847e78](https://github.com/raiseCatError/meowdisplay/commit/c847e78f6efc88880c79d0775b349479625d2352)) +* **mac:** capture Window view panes at the display's real backing scale ([6c769ca](https://github.com/raiseCatError/meowdisplay/commit/6c769caca00403d5e32549599f97fd4ba901aa0e)) +* **mac:** capture Window view panes at the display's real backing scale ([cf3921a](https://github.com/raiseCatError/meowdisplay/commit/cf3921a4a88c8deddcc26f925d81ae8cb36d6270)) +* **mac:** clarify physical pairing approval guidance ([5d54c6a](https://github.com/raiseCatError/meowdisplay/commit/5d54c6a522719dde3b74e5db27e1d8d4b079adf0)) +* **mac:** don't let an automatic attempt absorb an explicit Connect ([c099858](https://github.com/raiseCatError/meowdisplay/commit/c0998589502b7aa96ac71298548cb8923d03aae4)) +* **mac:** don't let an automatic attempt absorb an explicit Connect ([73f9771](https://github.com/raiseCatError/meowdisplay/commit/73f97716f4a219f4f71e8e12305bb8dc6fad6680)) +* **mac:** explain refused pairing approval ([bc31047](https://github.com/raiseCatError/meowdisplay/commit/bc3104717dcbf6fae5f8161d77f735daf2f25c77)) +* **mac:** explain refused pairing approval ([fbef021](https://github.com/raiseCatError/meowdisplay/commit/fbef0214cad93044f86e943d268a737cd5b42431)) +* **mac:** fall back to 2x for a window on no display ([79ec277](https://github.com/raiseCatError/meowdisplay/commit/79ec2770760d8285b88f9749997cddff8cb27ad5)) +* **mac:** keep the capture configuration on live changes ([4abe757](https://github.com/raiseCatError/meowdisplay/commit/4abe757a13183fdee8e0fefac63627fa0ffda46b)) +* **mac:** keep the capture configuration on live changes ([24e53e2](https://github.com/raiseCatError/meowdisplay/commit/24e53e2a92a43db9c763ed5ace9bb53171f9b6dc)), closes [#172](https://github.com/raiseCatError/meowdisplay/issues/172) +* **mac:** only offer USB Connect for a device that is plugged in ([85fb352](https://github.com/raiseCatError/meowdisplay/commit/85fb352945e70afcde0c25bc9d014498e03e6289)) +* **mac:** only offer USB Connect for a device that is plugged in ([00a8d48](https://github.com/raiseCatError/meowdisplay/commit/00a8d483448a21577fb92cc808b6c01afb666912)) +* **mac:** open request panels on the owner's Space and display ([1b2921a](https://github.com/raiseCatError/meowdisplay/commit/1b2921a04d655efc26031a5a1baf92ddba47d69e)) +* **mac:** open request panels on the owner's Space and display ([3d244cc](https://github.com/raiseCatError/meowdisplay/commit/3d244cc34bda47d58990c6b1bc2f6e2e3767d5d8)), closes [#191](https://github.com/raiseCatError/meowdisplay/issues/191) +* **mac:** resize a Window view pane's capture when its window changes size ([531e7ce](https://github.com/raiseCatError/meowdisplay/commit/531e7ceb4427a6b0bc8d2b291b8ae7f11bef41fb)) +* **mac:** resize a Window view pane's capture when its window changes size ([40eb339](https://github.com/raiseCatError/meowdisplay/commit/40eb339ed26b1d9a410ea1d613a664b27132d063)), closes [#138](https://github.com/raiseCatError/meowdisplay/issues/138) +* **mac:** resolve a Bonjour QUIC service before building the multiplex group ([#219](https://github.com/raiseCatError/meowdisplay/issues/219)) ([add52c4](https://github.com/raiseCatError/meowdisplay/commit/add52c4df27a9b7b59e0df67a931d0f0e0ee81c2)) +* **mac:** restart streaming once when a receiver changes a setting ([1336740](https://github.com/raiseCatError/meowdisplay/commit/13367403ec6e2d2b9482f244ed069d86785fd788)) +* **mac:** restart streaming once when a receiver changes a setting ([5bcf3ae](https://github.com/raiseCatError/meowdisplay/commit/5bcf3ae3625ee000314659c99bbfeb9cfcc09b06)) +* **mac:** send the last frame the rate limit turned away ([11a555b](https://github.com/raiseCatError/meowdisplay/commit/11a555bd6bdf99c63d3d739bca00fbadb78ba1e3)) +* **mac:** send the last frame the rate limit turned away ([080001c](https://github.com/raiseCatError/meowdisplay/commit/080001c00f9049cb758e0e74f535f4d773c6a3a1)), closes [#123](https://github.com/raiseCatError/meowdisplay/issues/123) +* **mac:** show and bound a Connect that never reaches the device ([cc55bb5](https://github.com/raiseCatError/meowdisplay/commit/cc55bb596c5172bbd453525e9f8c31eec26438ff)) +* **mac:** show and bound a Connect that never reaches the device ([fb40083](https://github.com/raiseCatError/meowdisplay/commit/fb400830d8344214795e3c45ed3684bf5164eab9)) +* **mac:** show owner authentication as its own pairing step ([f9610d5](https://github.com/raiseCatError/meowdisplay/commit/f9610d55f837bb90c9d4032fb08ec77630f17a29)) +* **mac:** show owner authentication as its own pairing step ([95abfef](https://github.com/raiseCatError/meowdisplay/commit/95abfef303044212cc27eecaab033665afc39355)) +* **receiver:** don't offer Remove from Layout on the last Window view pane ([eade970](https://github.com/raiseCatError/meowdisplay/commit/eade970c655492ac76dd5c00ac4c7b1a6e9efd47)) +* **receiver:** don't offer Remove from Layout on the last Window view pane ([ff67bf6](https://github.com/raiseCatError/meowdisplay/commit/ff67bf6ab3454fd98a4b68efb30a4a50a6eb9028)), closes [#120](https://github.com/raiseCatError/meowdisplay/issues/120) +* **receiver:** end nothing from the receiver while the Mac reads the goodbye ([6de8311](https://github.com/raiseCatError/meowdisplay/commit/6de831167e30b94f223014620a225327ed250ec8)) +* **receiver:** keep a QUIC connection open until the Mac reads the goodbye ([53b89f6](https://github.com/raiseCatError/meowdisplay/commit/53b89f61f2ea08e81e8a056f56b7eb8a1f9124d0)) +* **receiver:** keep a QUIC connection open until the Mac reads the goodbye ([1f5b158](https://github.com/raiseCatError/meowdisplay/commit/1f5b15812f41451af42a38388a295d0f2275b863)), closes [#162](https://github.com/raiseCatError/meowdisplay/issues/162) +* **receiver:** keep the current session when forgetting another Mac ([5beab04](https://github.com/raiseCatError/meowdisplay/commit/5beab04b537a4867d3bbe2f7a67594db4b8cb81f)) +* **receiver:** keep the current session when forgetting another Mac ([82d95a3](https://github.com/raiseCatError/meowdisplay/commit/82d95a303b6b23c31494246ea30dfffc85ac10e8)) +* **receiver:** let Cancel win between the Cancel and Remove drop zones ([3dd6d81](https://github.com/raiseCatError/meowdisplay/commit/3dd6d81b91a3e4f4745ed6e7faa8e9ae8d503b9c)) +* **receiver:** let Cancel win between the Cancel and Remove drop zones ([0b336de](https://github.com/raiseCatError/meowdisplay/commit/0b336de86d15c4db8df59da0e967290513c05c35)) +* **receiver:** stop remote input when the surface can't be used ([559a47b](https://github.com/raiseCatError/meowdisplay/commit/559a47b5dd32c788eeaae2d6394b723982a2881b)) +* **receiver:** stop remote input when the surface can't be used ([e9eeb5d](https://github.com/raiseCatError/meowdisplay/commit/e9eeb5db7f75eaba97c8e89023e674355e567d61)) +* **release:** follow an Android testing candidate without letting it hold the release ([6985194](https://github.com/raiseCatError/meowdisplay/commit/6985194d8549e5da0c0db8265b461416aa94c82d)) +* **release:** refuse a release that requires Android on a testing track ([3063a50](https://github.com/raiseCatError/meowdisplay/commit/3063a50f06fa28f4a2f0eb64f78d84c5993df625)) +* **release:** refuse a release that requires Android on a testing track ([c5379bc](https://github.com/raiseCatError/meowdisplay/commit/c5379bc746cd3b807ae86d7164e26980f9298443)) +* **release:** store a raw App Store Connect key base64-encoded ([c9f42a6](https://github.com/raiseCatError/meowdisplay/commit/c9f42a6ce89c5ff24dc71cf9a74ac0dd07c7798d)) +* **release:** store a raw App Store Connect key base64-encoded, as the release code reads it ([8b694e0](https://github.com/raiseCatError/meowdisplay/commit/8b694e0f0606c311bff95a375d85ab88b2681b82)) +* **release:** write release-state with the release App's token ([e8511a3](https://github.com/raiseCatError/meowdisplay/commit/e8511a3b3c72d9140605947dbe6445930e73f5f7)) +* **release:** write release-state with the release App's token ([60e708a](https://github.com/raiseCatError/meowdisplay/commit/60e708a55d964370058358e06ceb4c914cc6cb9f)) +* **security:** show and accept nothing while the Mac is locked ([e1947dc](https://github.com/raiseCatError/meowdisplay/commit/e1947dc24192d072a769562f9ed4f29006d9b4d4)) +* **stage-manager:** switch it through one counted owner that leaves the Dock alone ([fed4ec3](https://github.com/raiseCatError/meowdisplay/commit/fed4ec3832e45b408cec08adcb436b2dada94e8f)) +* **stage-peek:** drags put the search keyboard away and never stay stuck ([6b67fe8](https://github.com/raiseCatError/meowdisplay/commit/6b67fe8c55055f012cfd2c03e757cab8a9ae0a00)) +* **streaming:** stop receiver profile requests restarting streams under Automatic ([9f5a35c](https://github.com/raiseCatError/meowdisplay/commit/9f5a35ccffcec71f896b6783f10b6677b996e35b)) +* **streaming:** stop receiver profile requests restarting streams under Automatic ([2f56eaf](https://github.com/raiseCatError/meowdisplay/commit/2f56eaf3db08e5d21ab38e0326d1ede34c7ac5b2)) +* **window-mode:** a float circled into a card stays docking until it's dropped ([5194a28](https://github.com/raiseCatError/meowdisplay/commit/5194a2801e9b2a8a38c46c1db96df3508f4f8ce0)) +* **window-mode:** a float let go flush with a side stays flush ([62af534](https://github.com/raiseCatError/meowdisplay/commit/62af534a0250b9e09c712e9208b0520e43d52a86)) +* **window-mode:** a moving float follows the finger past any edge ([d69495a](https://github.com/raiseCatError/meowdisplay/commit/d69495a87e31439fcaab9c8dea62fb0f4dad046f)) +* **window-mode:** a peek, a pull and a tap carry on from where the strip is drawn ([0d626d8](https://github.com/raiseCatError/meowdisplay/commit/0d626d847771fe6d4e73329184d504a82bfe4509)) +* **window-mode:** a sheet on screen counts before the listing catches up ([cf37c9b](https://github.com/raiseCatError/meowdisplay/commit/cf37c9bc1f71a1936ae0dc88080568c399486d36)) +* **window-mode:** a sheet ScreenCaptureKit doesn't list is still its window's ([8c03fe0](https://github.com/raiseCatError/meowdisplay/commit/8c03fe02804b3f18d53a30330c2384bc227de5e9)) +* **window-mode:** a small window of the app between a sheet and its window doesn't part them ([39f49fd](https://github.com/raiseCatError/meowdisplay/commit/39f49fd831e2a417742d5962f6c7e0d89a86797b)) +* **window-mode:** an app dropped from Stage Peek opens like one picked in the picker ([df6e905](https://github.com/raiseCatError/meowdisplay/commit/df6e905168568e1dead6c4a8a4fef7002a753844)) +* **window-mode:** an iPhone shows several floats at once, like an iPad ([958ee6a](https://github.com/raiseCatError/meowdisplay/commit/958ee6afcc20152a8a13843e279281af63f8df7e)) +* **window-mode:** an Open panel wider than its window is its sheet when the app confirms it ([e8c605b](https://github.com/raiseCatError/meowdisplay/commit/e8c605b44851782ee336c2176d4e9c9924fd0369)) +* **window-mode:** apps running without a window can be asked for one ([56465b1](https://github.com/raiseCatError/meowdisplay/commit/56465b1a3391fc7227c2ddfa0d3333d3fe2b51ec)) +* **window-mode:** arranging floats leaves Mac focus alone; leaving Extend asks first ([1826768](https://github.com/raiseCatError/meowdisplay/commit/182676891c835256b15728ba7cede19addea4246)) +* **window-mode:** ask for app icons on every connection, not only while browsing ([316a501](https://github.com/raiseCatError/meowdisplay/commit/316a501aa4fc1d582d1f2c4e04fcf6070a3e0896)) +* **window-mode:** chooser taps land where the chooser is drawn ([317af87](https://github.com/raiseCatError/meowdisplay/commit/317af8743818786ff6438794438d2544c9e6941f)) +* **window-mode:** circling switches only on a deliberate loop, and again the other way ([b017c30](https://github.com/raiseCatError/meowdisplay/commit/b017c30e4d45cdd89bdd568bbe840d501368f22d)) +* **window-mode:** Demo Mode strips keep clear of its controls and safe area ([9d98bf3](https://github.com/raiseCatError/meowdisplay/commit/9d98bf30f8d14a8f691739671aa22ee6a2ca97a1)) +* **window-mode:** divider holds leave tucked strips their touches ([191ad4e](https://github.com/raiseCatError/meowdisplay/commit/191ad4e7ceeeb20636c300c796df52d723c2647c)) +* **window-mode:** draw tucked floats' strips again ([5b64e18](https://github.com/raiseCatError/meowdisplay/commit/5b64e189bb6515feb154663bc555c6c818415bb5)) +* **window-mode:** every tucked float keeps a strip a finger can reach ([2484608](https://github.com/raiseCatError/meowdisplay/commit/248460856e90ca39a1f6e0f531501d98dc103f90)) +* **window-mode:** float chrome no longer shows through floats; stable options menu ([3826b15](https://github.com/raiseCatError/meowdisplay/commit/3826b1569bddbb654c1851e9ce9ec176944c125d)) +* **window-mode:** float over the mirrored desktop, never from Extend; Minimize on Mac sticks ([82f834a](https://github.com/raiseCatError/meowdisplay/commit/82f834a23319b5a7013421a2844d9a1a08c82d8c)) +* **window-mode:** float selection stays local; typing-paused notice on floats ([e78c35a](https://github.com/raiseCatError/meowdisplay/commit/e78c35a56012010ab2013be7370f8c128caf31d1)) +* **window-mode:** give each pane title its own accessibility element ([22be715](https://github.com/raiseCatError/meowdisplay/commit/22be715221bd6dce65d19027c4c79fa0860ee41b)) +* **window-mode:** give each pane title its own accessibility frame ([3a350b1](https://github.com/raiseCatError/meowdisplay/commit/3a350b1f54538460d8c688e1541bbc0002f90eba)) +* **window-mode:** keep each pane's title layer from becoming one pane-sized element ([ffedde1](https://github.com/raiseCatError/meowdisplay/commit/ffedde1861da6eca42c1c596e2d3f11d212362e4)) +* **window-mode:** keep the drag HUD, Arrange's bar and float chrome clear of unsafe edges and controls ([afb8b4a](https://github.com/raiseCatError/meowdisplay/commit/afb8b4af06e8c50930e84ead33c0e8535bcc2145)) +* **window-mode:** keep the original frame when Fill is chosen again ([530aba0](https://github.com/raiseCatError/meowdisplay/commit/530aba0e931b40988ea7b6704ed74fefb4e98ebb)) +* **window-mode:** let Window view input through the macOS 27 Dock's display-wide window ([6002330](https://github.com/raiseCatError/meowdisplay/commit/6002330bd2a097481078a1deb0b2ebb01b413e8d)) +* **window-mode:** let Window view input through the macOS 27 Dock's display-wide window ([1af32be](https://github.com/raiseCatError/meowdisplay/commit/1af32be2e2ef2d16e8718510af6e8476b8ba6e28)) +* **window-mode:** Mac re-checks control right before opening an app ([dd9bd2a](https://github.com/raiseCatError/meowdisplay/commit/dd9bd2aed4e735e4339e5e02ad53d1a09760b5df)) +* **window-mode:** Mission Control notice on each paused pane and float, not one banner ([857302d](https://github.com/raiseCatError/meowdisplay/commit/857302d92122f5861af3dcdc3d1c6a2708bc79be)) +* **window-mode:** no prompt to float from Mirror; Show on Mac on a minimized float ([e42259f](https://github.com/raiseCatError/meowdisplay/commit/e42259f47555959f59aee0069d6e14afeefd1848)) +* **window-mode:** one app icon placeholder for titles, Stage Peek and its dock ([4ab9761](https://github.com/raiseCatError/meowdisplay/commit/4ab9761fe4e5fc32e53d00e49310b4e4f5899917)) +* **window-mode:** one app icon placeholder on the docking card and tucked strips ([c405704](https://github.com/raiseCatError/meowdisplay/commit/c4057043eaecb7a907828ba924e89f0e77af3e96)) +* **window-mode:** one hold on a folded pane title opens its options ([300a12c](https://github.com/raiseCatError/meowdisplay/commit/300a12c67f6fabf237a63990e2831983cde50db3)) +* **window-mode:** picker opening times waits with the wall clock, not systemUptime ([d13cbfe](https://github.com/raiseCatError/meowdisplay/commit/d13cbfecfad610fc0b339cde4c3e6183fb3eeb81)) +* **window-mode:** place Window view overlays clear of unsafe edges and controls ([fcd49ff](https://github.com/raiseCatError/meowdisplay/commit/fcd49ffe5ce68d38b58833cab03e56f99f95f6c6)) +* **window-mode:** presses reach Open and Save panels shown in a pane ([97f6178](https://github.com/raiseCatError/meowdisplay/commit/97f617844e783a99943bebf6c3b75a5db88f5d51)) +* **window-mode:** read the window list fail-closed and test the hit-test's coordinates ([06bc317](https://github.com/raiseCatError/meowdisplay/commit/06bc317720d63a84b96fde0ab57439bf61e53039)) +* **window-mode:** say which windows Mission Control pauses, and let their notice fold ([55e23c8](https://github.com/raiseCatError/meowdisplay/commit/55e23c85417f4556534977ca719ec3841882620d)) +* **window-mode:** sheets found live shape the pane and take typing ([41b9726](https://github.com/raiseCatError/meowdisplay/commit/41b972656fc44431939eae4f12bae28ac5c4583a)) +* **window-mode:** show one Mission Control banner above panes and floats ([c83a765](https://github.com/raiseCatError/meowdisplay/commit/c83a765134beb10e101c84496b0f1005a6683ea3)) +* **window-mode:** the Mac locking ends drags, float moves and app openings ([9117ae2](https://github.com/raiseCatError/meowdisplay/commit/9117ae2ab2be3c752bc1c8632c69358c81861668)) +* **window-mode:** the open-app question points at its app on iPad ([35a9e0a](https://github.com/raiseCatError/meowdisplay/commit/35a9e0af7e730789ac65470361dddc18e9235012)) +* **window-mode:** the picker's open-app question offers Request Control without control ([dc6b1a0](https://github.com/raiseCatError/meowdisplay/commit/dc6b1a05e0be8b1364fb82e135921ef7d37e0c3e)) +* **window-mode:** window picker finds apps that aren't open and opens them into its tile ([bd13168](https://github.com/raiseCatError/meowdisplay/commit/bd13168531231067fa85a63f17e46222ef817535)) +* **window-mode:** ws 2 only from receivers that draw floats; Float zone and placement ([8b94c82](https://github.com/raiseCatError/meowdisplay/commit/8b94c82c1890d018f50c6b3031d19df591a5936a)) + + +### Performance Improvements + +* **cursor:** draw the Mac cursor on the receiver's refresh and report every step ([13afc9f](https://github.com/raiseCatError/meowdisplay/commit/13afc9ff07e7bc235b59866e91cc7230828bd2eb)) +* **ios:** draw the Mac cursor on the display refresh ([2acf254](https://github.com/raiseCatError/meowdisplay/commit/2acf25455c194205897585dbc605fc3c60c68727)) +* **mac:** report every cursor step the wire carries ([cee5356](https://github.com/raiseCatError/meowdisplay/commit/cee53562c2bf8d973aac4c3bc84324bc7328b015)) + ## [2.0.0](https://github.com/raiseCatError/meowdisplay/compare/v1.20.0...v2.0.0) (2026-10-31) diff --git a/version.txt b/version.txt index 227cea215..7ec1d6db4 100644 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -2.0.0 +2.1.0 From b1ce9758f512d3b496eea14189fcb9df79ce7a06 Mon Sep 17 00:00:00 2001 From: raiseCatError <315733358+raiseCatError@users.noreply.github.com> Date: Tue, 10 Nov 2026 03:07:02 +0530 Subject: [PATCH 07/34] chore(release): one changelog entry per change in 2.1.0 Release-please listed several changes twice: once from the PR's own commit and once from the release candidate's copy (or the PR title). Keeps one entry each, with its issue references. No other files change. --- CHANGELOG.md | 55 ++++++++-------------------------------------------- 1 file changed, 8 insertions(+), 47 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f096c4b30..105cce503 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,16 +11,11 @@ * **ios:** add an exact-decimal engine for a local calculator ([401f4c5](https://github.com/raiseCatError/meowdisplay/commit/401f4c57f3d40d31181be592cae55378a8ea2210)), closes [#182](https://github.com/raiseCatError/meowdisplay/issues/182) * **ios:** add the local calculator to the receiver controls ([0cd02f6](https://github.com/raiseCatError/meowdisplay/commit/0cd02f624e9abb2f61af1ce1c6ee4b9959fbea17)), closes [#182](https://github.com/raiseCatError/meowdisplay/issues/182) * **ios:** an Arrow Keys item in the keyboard companion bar ([c0e9492](https://github.com/raiseCatError/meowdisplay/commit/c0e94920f614f05de2acedb396f7971a77c5f2a7)), closes [#179](https://github.com/raiseCatError/meowdisplay/issues/179) -* **ios:** Back to Home — Keep Connected ([#121](https://github.com/raiseCatError/meowdisplay/issues/121)) ([7c0b765](https://github.com/raiseCatError/meowdisplay/commit/7c0b7654b75ba22d5c3e033c6d9e9ec12c8f8c8b)) * **ios:** go back to Home while keeping the session connected ([#121](https://github.com/raiseCatError/meowdisplay/issues/121)) ([1de3984](https://github.com/raiseCatError/meowdisplay/commit/1de39846ba37592dc98728b024dca875cec0291e)) -* **ios:** on-screen arrow keys with tap-to-open keypad and swipe presses ([366a3d0](https://github.com/raiseCatError/meowdisplay/commit/366a3d069f84a366b5ad72862ab8b45d076919b5)) -* **ios:** on-screen arrow keys with tap-to-open keypad and swipe presses ([945f02d](https://github.com/raiseCatError/meowdisplay/commit/945f02d7db5fb13b80d52d9d2503d51d8e6dd10e)), closes [#179](https://github.com/raiseCatError/meowdisplay/issues/179) -* **ios:** prerequisites-first Remote Access setup and actionable Remote status ([3457506](https://github.com/raiseCatError/meowdisplay/commit/345750614c788041cf2ea260ef9cac063da82451)) +* **ios:** on-screen arrow keys with tap-to-open keypad and swipe presses ([366a3d0](https://github.com/raiseCatError/meowdisplay/commit/366a3d069f84a366b5ad72862ab8b45d076919b5)), closes [#179](https://github.com/raiseCatError/meowdisplay/issues/179) * **ios:** prerequisites-first Remote Access setup and why a Connect over Remote failed ([c852b68](https://github.com/raiseCatError/meowdisplay/commit/c852b6825d2a9ca4425407c4674d176bcea0bd16)), closes [#95](https://github.com/raiseCatError/meowdisplay/issues/95) -* **ios:** quicker modifier shortcuts with a Hold Response setting ([0061913](https://github.com/raiseCatError/meowdisplay/commit/0061913eaa0c7130d47bce89ef067793e947cb05)) -* **ios:** quicker modifier shortcuts with a Hold Response setting ([f30a0ab](https://github.com/raiseCatError/meowdisplay/commit/f30a0ab895a76594361ce730c7d8e56023f38cb6)), closes [#131](https://github.com/raiseCatError/meowdisplay/issues/131) +* **ios:** quicker modifier shortcuts with a Hold Response setting ([0061913](https://github.com/raiseCatError/meowdisplay/commit/0061913eaa0c7130d47bce89ef067793e947cb05)), closes [#131](https://github.com/raiseCatError/meowdisplay/issues/131) * **ios:** show the build number and a Rate MeowDisplay link in About ([48f2359](https://github.com/raiseCatError/meowdisplay/commit/48f2359bd308128eb25afb2063014bfe3ac74dc6)) -* **ios:** show the build number and a Rate MeowDisplay link in About ([9cdf627](https://github.com/raiseCatError/meowdisplay/commit/9cdf62734a1d2651a3186a014ebbeaf56f292827)) * **ios:** touch and hold Settings for Session Actions (overlay) ([20bdbac](https://github.com/raiseCatError/meowdisplay/commit/20bdbace0f09907a674dd9adac9e9230cdf154b9)) * **ios:** touch and hold Settings to disconnect from the Mac ([8bc2de1](https://github.com/raiseCatError/meowdisplay/commit/8bc2de177d99609a0a0990c6019bd19a51fe27cb)) * **ios:** touch and hold Settings to open Session Actions ([eb2fe9b](https://github.com/raiseCatError/meowdisplay/commit/eb2fe9bcde891fe5447a3f0cdeb9db5878797257)) @@ -34,12 +29,9 @@ * **protocol:** let a key ask for exactly its own modifiers ([77a8dfd](https://github.com/raiseCatError/meowdisplay/commit/77a8dfdd5ef9870ca6e2664a2b3fc644d6ecd9df)) * **receiver:** add pane fullscreen shortcut and drag-to-remove ([79f35aa](https://github.com/raiseCatError/meowdisplay/commit/79f35aa8b6ce57b5664285b0aec5ab0366364a56)) * **receiver:** make Normal the Stage Peek Dock default for new installs ([cb43a1a](https://github.com/raiseCatError/meowdisplay/commit/cb43a1adba35bb5cc55cb2f7e3f754aac5384aa1)) -* **receiver:** make Normal the Stage Peek Dock default for new installs ([3552818](https://github.com/raiseCatError/meowdisplay/commit/3552818028478a2d0962182f51a88383ed019c02)) * **receiver:** the Mac Receiver says the Mac is locked instead of going blank ([f2ff346](https://github.com/raiseCatError/meowdisplay/commit/f2ff3461faab56753e6d3a9904a867280c333135)) * **release:** exclude Android from a release with excludedPlatforms; per-run iOS submission authorization ([35a6f91](https://github.com/raiseCatError/meowdisplay/commit/35a6f91792ddb8833febca96608a78567305373f)) -* **release:** leave a platform out of one release with excludedPlatforms; authorize an iOS submission per monitor run ([ecc3be5](https://github.com/raiseCatError/meowdisplay/commit/ecc3be5bdc32401cd57d0b0941e02170b173d890)) * Streaming Priority reads Latency, Balanced, Smoothness ([5b7fc2c](https://github.com/raiseCatError/meowdisplay/commit/5b7fc2c77a44f769b2e9e3fa3f086f32a89d140e)) -* Streaming Priority reads Latency, Balanced, Smoothness ([5f45a76](https://github.com/raiseCatError/meowdisplay/commit/5f45a762ad7e23697544ed1716882098ab9594b5)) * **window-mode:** a tucked float waits at its edge at full length ([f908de9](https://github.com/raiseCatError/meowdisplay/commit/f908de937d05083239dc893ed442fc53812f362c)) * **window-mode:** circle while dragging to switch Pane and Floating ([bf4bd63](https://github.com/raiseCatError/meowdisplay/commit/bf4bd63ac34540205fce0471451fd51cb2e83b15)) * **window-mode:** circling switches a drag in about a second ([b277d9f](https://github.com/raiseCatError/meowdisplay/commit/b277d9ff2ffd41f5b352e2ae52e658e4d81976d4)) @@ -48,9 +40,7 @@ * **window-mode:** Fill Window on Mac and Restore Previous Size on Mac in a float's On Your Mac menu ([62a7322](https://github.com/raiseCatError/meowdisplay/commit/62a732284d9c2330356fa5e673e2d015070651f7)) * **window-mode:** Fill Window on Mac and Restore Previous Size on Mac in the pane menu ([8b5c2bf](https://github.com/raiseCatError/meowdisplay/commit/8b5c2bf92d51a4b1dfa63f67e190db32c9e4980e)) * **window-mode:** floating panes model, Mac validation and wire ([54a7b24](https://github.com/raiseCatError/meowdisplay/commit/54a7b24b59258bbeaaf804074cfce1ee36e746f9)) -* **window-mode:** floating panes model, Mac validation and wire ([895d9a3](https://github.com/raiseCatError/meowdisplay/commit/895d9a38c8467d52b4b92581f064f5b1062a7da3)) * **window-mode:** floating windows on iPhone and iPad ([c8968b4](https://github.com/raiseCatError/meowdisplay/commit/c8968b4119860bc523fae4aef5e9a21d07e4f92a)) -* **window-mode:** floating windows on iPhone and iPad ([25ecaa0](https://github.com/raiseCatError/meowdisplay/commit/25ecaa07faa4df63526ed740d71366d0e19a1464)) * **window-mode:** freeform float viewport drawn once while it moves ([4c0e806](https://github.com/raiseCatError/meowdisplay/commit/4c0e80676382b8963cd30f50fd8b89d191d1ff22)) * **window-mode:** Remove from This Device for a float being docked ([47ca38e](https://github.com/raiseCatError/meowdisplay/commit/47ca38e46098732cafdf9d60bfd2bb6c972d77bc)) * **window-mode:** throws tuck into the edge they reach, on any edge ([5126a65](https://github.com/raiseCatError/meowdisplay/commit/5126a6531cd692a3fda0dee837a7b6ec962437ac)) @@ -69,22 +59,15 @@ * **ios:** keep Demo Mode controls off an iPhone Duo fold ([418370a](https://github.com/raiseCatError/meowdisplay/commit/418370aaf25db74426942ae99e3684fca2a2adfb)) * **ios:** keep prompts, the keyboard bar and Demo Mode off an iPhone Duo fold ([e42ea93](https://github.com/raiseCatError/meowdisplay/commit/e42ea936ad61dfddeb51478273a08be5d5f3def9)) * **ios:** keep Stage Peek labels legible over bright windows ([18fcb30](https://github.com/raiseCatError/meowdisplay/commit/18fcb305e916e09fa4edc48de708377345d118cd)) -* **ios:** keep Stage Peek labels legible over bright windows ([a2ca3f0](https://github.com/raiseCatError/meowdisplay/commit/a2ca3f045fdd613f10ad1509ed07f3b5c76af5ab)) * **ios:** keep the controls up while Session Actions is open ([1c311da](https://github.com/raiseCatError/meowdisplay/commit/1c311dabcd9ab401a68e3e3166a2eead2653fdc6)) -* **ios:** keep the controls up while Session Actions is open ([2c9e14c](https://github.com/raiseCatError/meowdisplay/commit/2c9e14c8b7e111b8ec0b08c2a0c8d45bd6666f09)) * **ios:** keep the Settings session menu off a faded rail and Auto-hide paused ([dfd5184](https://github.com/raiseCatError/meowdisplay/commit/dfd518470b2609196d3ad193e075682b168c8fca)) * **ios:** keep the typing location above the keyboard with Zoom While Typing ([da8dd2d](https://github.com/raiseCatError/meowdisplay/commit/da8dd2d9cc8d2a861b860efb309110c9dd3569d5)) * **ios:** keep Window view pane chrome on the picture while typing ([c270811](https://github.com/raiseCatError/meowdisplay/commit/c270811698b5db35fd853e80e635fd574cbefc07)) -* **ios:** keep Window view pane chrome on the picture while typing ([71b7514](https://github.com/raiseCatError/meowdisplay/commit/71b751441197ecc20e4a1a273acfd3607cef776b)) * **ios:** let a fast two-finger double-tap reset a Window view pane ([00590da](https://github.com/raiseCatError/meowdisplay/commit/00590da6179fe1749ee084749fedd44e1057769f)) -* **ios:** let a fast two-finger double-tap reset a Window view pane ([8497d23](https://github.com/raiseCatError/meowdisplay/commit/8497d23edc4d1b4a6d216014a54cad0ab572d004)) * **ios:** map touches through the picture as drawn while it animates ([ff57e44](https://github.com/raiseCatError/meowdisplay/commit/ff57e44461362491569cd799f008b659e762e594)) -* **ios:** map touches through the picture as drawn while it animates ([9fb80d8](https://github.com/raiseCatError/meowdisplay/commit/9fb80d8b8b4d55cd8467b3e7cce19655019f1e7b)) * **ios:** republish the iPad canvas after rotation in Custom layout ([a0be1af](https://github.com/raiseCatError/meowdisplay/commit/a0be1afd492ae807b8f2fd9ef851fbd1df76dea3)) -* **ios:** republish the iPad canvas after rotation in Custom layout ([c017762](https://github.com/raiseCatError/meowdisplay/commit/c01776254abf518453ff63dd43c0e219bef0b9f6)) * **ios:** split the keyboard bar around an iPhone Duo fold ([b3103fb](https://github.com/raiseCatError/meowdisplay/commit/b3103fb0f8a7e6714b82d11b5b956e68454f1115)) * **ios:** stop retrying audio playback during an audio interruption ([cb6b030](https://github.com/raiseCatError/meowdisplay/commit/cb6b0304f9d66bf744abcb9c8bc4d903b368c480)) -* **ios:** stop retrying audio playback during an audio interruption ([9c792e6](https://github.com/raiseCatError/meowdisplay/commit/9c792e6722e4d02701825124c99203338d22e5d2)) * **ios:** time arrow-key repeats with CACurrentMediaTime ([2ad3955](https://github.com/raiseCatError/meowdisplay/commit/2ad3955b89c92323e3c932aec8d8fb544f15d9d4)) * **ios:** use the dense Stage Peek surface with Increase Contrast ([51982f3](https://github.com/raiseCatError/meowdisplay/commit/51982f38edacd391386baebc167ccac5d65cdbfa)) * **lock-screen:** cursor, clear cover, opt-in default, Extend, audit F1-F7 ([fea4608](https://github.com/raiseCatError/meowdisplay/commit/fea4608f56e7c27d9d144757ff7c532b216530d8)) @@ -95,53 +78,33 @@ * **lock-screen:** the password field stays above the keyboard; its hide key closes it ([6391324](https://github.com/raiseCatError/meowdisplay/commit/6391324a601e19f5e55243111455ca1c83843e0f)) * **mac:** capture an offscreen window at the highest active display scale ([c847e78](https://github.com/raiseCatError/meowdisplay/commit/c847e78f6efc88880c79d0775b349479625d2352)) * **mac:** capture Window view panes at the display's real backing scale ([6c769ca](https://github.com/raiseCatError/meowdisplay/commit/6c769caca00403d5e32549599f97fd4ba901aa0e)) -* **mac:** capture Window view panes at the display's real backing scale ([cf3921a](https://github.com/raiseCatError/meowdisplay/commit/cf3921a4a88c8deddcc26f925d81ae8cb36d6270)) * **mac:** clarify physical pairing approval guidance ([5d54c6a](https://github.com/raiseCatError/meowdisplay/commit/5d54c6a522719dde3b74e5db27e1d8d4b079adf0)) * **mac:** don't let an automatic attempt absorb an explicit Connect ([c099858](https://github.com/raiseCatError/meowdisplay/commit/c0998589502b7aa96ac71298548cb8923d03aae4)) -* **mac:** don't let an automatic attempt absorb an explicit Connect ([73f9771](https://github.com/raiseCatError/meowdisplay/commit/73f97716f4a219f4f71e8e12305bb8dc6fad6680)) * **mac:** explain refused pairing approval ([bc31047](https://github.com/raiseCatError/meowdisplay/commit/bc3104717dcbf6fae5f8161d77f735daf2f25c77)) -* **mac:** explain refused pairing approval ([fbef021](https://github.com/raiseCatError/meowdisplay/commit/fbef0214cad93044f86e943d268a737cd5b42431)) * **mac:** fall back to 2x for a window on no display ([79ec277](https://github.com/raiseCatError/meowdisplay/commit/79ec2770760d8285b88f9749997cddff8cb27ad5)) -* **mac:** keep the capture configuration on live changes ([4abe757](https://github.com/raiseCatError/meowdisplay/commit/4abe757a13183fdee8e0fefac63627fa0ffda46b)) -* **mac:** keep the capture configuration on live changes ([24e53e2](https://github.com/raiseCatError/meowdisplay/commit/24e53e2a92a43db9c763ed5ace9bb53171f9b6dc)), closes [#172](https://github.com/raiseCatError/meowdisplay/issues/172) +* **mac:** keep the capture configuration on live changes ([4abe757](https://github.com/raiseCatError/meowdisplay/commit/4abe757a13183fdee8e0fefac63627fa0ffda46b)), closes [#172](https://github.com/raiseCatError/meowdisplay/issues/172) * **mac:** only offer USB Connect for a device that is plugged in ([85fb352](https://github.com/raiseCatError/meowdisplay/commit/85fb352945e70afcde0c25bc9d014498e03e6289)) -* **mac:** only offer USB Connect for a device that is plugged in ([00a8d48](https://github.com/raiseCatError/meowdisplay/commit/00a8d483448a21577fb92cc808b6c01afb666912)) -* **mac:** open request panels on the owner's Space and display ([1b2921a](https://github.com/raiseCatError/meowdisplay/commit/1b2921a04d655efc26031a5a1baf92ddba47d69e)) -* **mac:** open request panels on the owner's Space and display ([3d244cc](https://github.com/raiseCatError/meowdisplay/commit/3d244cc34bda47d58990c6b1bc2f6e2e3767d5d8)), closes [#191](https://github.com/raiseCatError/meowdisplay/issues/191) -* **mac:** resize a Window view pane's capture when its window changes size ([531e7ce](https://github.com/raiseCatError/meowdisplay/commit/531e7ceb4427a6b0bc8d2b291b8ae7f11bef41fb)) -* **mac:** resize a Window view pane's capture when its window changes size ([40eb339](https://github.com/raiseCatError/meowdisplay/commit/40eb339ed26b1d9a410ea1d613a664b27132d063)), closes [#138](https://github.com/raiseCatError/meowdisplay/issues/138) +* **mac:** open request panels on the owner's Space and display ([1b2921a](https://github.com/raiseCatError/meowdisplay/commit/1b2921a04d655efc26031a5a1baf92ddba47d69e)), closes [#191](https://github.com/raiseCatError/meowdisplay/issues/191) +* **mac:** resize a Window view pane's capture when its window changes size ([531e7ce](https://github.com/raiseCatError/meowdisplay/commit/531e7ceb4427a6b0bc8d2b291b8ae7f11bef41fb)), closes [#138](https://github.com/raiseCatError/meowdisplay/issues/138) * **mac:** resolve a Bonjour QUIC service before building the multiplex group ([#219](https://github.com/raiseCatError/meowdisplay/issues/219)) ([add52c4](https://github.com/raiseCatError/meowdisplay/commit/add52c4df27a9b7b59e0df67a931d0f0e0ee81c2)) * **mac:** restart streaming once when a receiver changes a setting ([1336740](https://github.com/raiseCatError/meowdisplay/commit/13367403ec6e2d2b9482f244ed069d86785fd788)) -* **mac:** restart streaming once when a receiver changes a setting ([5bcf3ae](https://github.com/raiseCatError/meowdisplay/commit/5bcf3ae3625ee000314659c99bbfeb9cfcc09b06)) -* **mac:** send the last frame the rate limit turned away ([11a555b](https://github.com/raiseCatError/meowdisplay/commit/11a555bd6bdf99c63d3d739bca00fbadb78ba1e3)) -* **mac:** send the last frame the rate limit turned away ([080001c](https://github.com/raiseCatError/meowdisplay/commit/080001c00f9049cb758e0e74f535f4d773c6a3a1)), closes [#123](https://github.com/raiseCatError/meowdisplay/issues/123) +* **mac:** send the last frame the rate limit turned away ([11a555b](https://github.com/raiseCatError/meowdisplay/commit/11a555bd6bdf99c63d3d739bca00fbadb78ba1e3)), closes [#123](https://github.com/raiseCatError/meowdisplay/issues/123) * **mac:** show and bound a Connect that never reaches the device ([cc55bb5](https://github.com/raiseCatError/meowdisplay/commit/cc55bb596c5172bbd453525e9f8c31eec26438ff)) -* **mac:** show and bound a Connect that never reaches the device ([fb40083](https://github.com/raiseCatError/meowdisplay/commit/fb400830d8344214795e3c45ed3684bf5164eab9)) * **mac:** show owner authentication as its own pairing step ([f9610d5](https://github.com/raiseCatError/meowdisplay/commit/f9610d55f837bb90c9d4032fb08ec77630f17a29)) -* **mac:** show owner authentication as its own pairing step ([95abfef](https://github.com/raiseCatError/meowdisplay/commit/95abfef303044212cc27eecaab033665afc39355)) -* **receiver:** don't offer Remove from Layout on the last Window view pane ([eade970](https://github.com/raiseCatError/meowdisplay/commit/eade970c655492ac76dd5c00ac4c7b1a6e9efd47)) -* **receiver:** don't offer Remove from Layout on the last Window view pane ([ff67bf6](https://github.com/raiseCatError/meowdisplay/commit/ff67bf6ab3454fd98a4b68efb30a4a50a6eb9028)), closes [#120](https://github.com/raiseCatError/meowdisplay/issues/120) +* **receiver:** don't offer Remove from Layout on the last Window view pane ([eade970](https://github.com/raiseCatError/meowdisplay/commit/eade970c655492ac76dd5c00ac4c7b1a6e9efd47)), closes [#120](https://github.com/raiseCatError/meowdisplay/issues/120) * **receiver:** end nothing from the receiver while the Mac reads the goodbye ([6de8311](https://github.com/raiseCatError/meowdisplay/commit/6de831167e30b94f223014620a225327ed250ec8)) -* **receiver:** keep a QUIC connection open until the Mac reads the goodbye ([53b89f6](https://github.com/raiseCatError/meowdisplay/commit/53b89f61f2ea08e81e8a056f56b7eb8a1f9124d0)) -* **receiver:** keep a QUIC connection open until the Mac reads the goodbye ([1f5b158](https://github.com/raiseCatError/meowdisplay/commit/1f5b15812f41451af42a38388a295d0f2275b863)), closes [#162](https://github.com/raiseCatError/meowdisplay/issues/162) +* **receiver:** keep a QUIC connection open until the Mac reads the goodbye ([53b89f6](https://github.com/raiseCatError/meowdisplay/commit/53b89f61f2ea08e81e8a056f56b7eb8a1f9124d0)), closes [#162](https://github.com/raiseCatError/meowdisplay/issues/162) * **receiver:** keep the current session when forgetting another Mac ([5beab04](https://github.com/raiseCatError/meowdisplay/commit/5beab04b537a4867d3bbe2f7a67594db4b8cb81f)) -* **receiver:** keep the current session when forgetting another Mac ([82d95a3](https://github.com/raiseCatError/meowdisplay/commit/82d95a303b6b23c31494246ea30dfffc85ac10e8)) * **receiver:** let Cancel win between the Cancel and Remove drop zones ([3dd6d81](https://github.com/raiseCatError/meowdisplay/commit/3dd6d81b91a3e4f4745ed6e7faa8e9ae8d503b9c)) -* **receiver:** let Cancel win between the Cancel and Remove drop zones ([0b336de](https://github.com/raiseCatError/meowdisplay/commit/0b336de86d15c4db8df59da0e967290513c05c35)) * **receiver:** stop remote input when the surface can't be used ([559a47b](https://github.com/raiseCatError/meowdisplay/commit/559a47b5dd32c788eeaae2d6394b723982a2881b)) -* **receiver:** stop remote input when the surface can't be used ([e9eeb5d](https://github.com/raiseCatError/meowdisplay/commit/e9eeb5db7f75eaba97c8e89023e674355e567d61)) * **release:** follow an Android testing candidate without letting it hold the release ([6985194](https://github.com/raiseCatError/meowdisplay/commit/6985194d8549e5da0c0db8265b461416aa94c82d)) * **release:** refuse a release that requires Android on a testing track ([3063a50](https://github.com/raiseCatError/meowdisplay/commit/3063a50f06fa28f4a2f0eb64f78d84c5993df625)) -* **release:** refuse a release that requires Android on a testing track ([c5379bc](https://github.com/raiseCatError/meowdisplay/commit/c5379bc746cd3b807ae86d7164e26980f9298443)) -* **release:** store a raw App Store Connect key base64-encoded ([c9f42a6](https://github.com/raiseCatError/meowdisplay/commit/c9f42a6ce89c5ff24dc71cf9a74ac0dd07c7798d)) * **release:** store a raw App Store Connect key base64-encoded, as the release code reads it ([8b694e0](https://github.com/raiseCatError/meowdisplay/commit/8b694e0f0606c311bff95a375d85ab88b2681b82)) * **release:** write release-state with the release App's token ([e8511a3](https://github.com/raiseCatError/meowdisplay/commit/e8511a3b3c72d9140605947dbe6445930e73f5f7)) -* **release:** write release-state with the release App's token ([60e708a](https://github.com/raiseCatError/meowdisplay/commit/60e708a55d964370058358e06ceb4c914cc6cb9f)) * **security:** show and accept nothing while the Mac is locked ([e1947dc](https://github.com/raiseCatError/meowdisplay/commit/e1947dc24192d072a769562f9ed4f29006d9b4d4)) * **stage-manager:** switch it through one counted owner that leaves the Dock alone ([fed4ec3](https://github.com/raiseCatError/meowdisplay/commit/fed4ec3832e45b408cec08adcb436b2dada94e8f)) * **stage-peek:** drags put the search keyboard away and never stay stuck ([6b67fe8](https://github.com/raiseCatError/meowdisplay/commit/6b67fe8c55055f012cfd2c03e757cab8a9ae0a00)) * **streaming:** stop receiver profile requests restarting streams under Automatic ([9f5a35c](https://github.com/raiseCatError/meowdisplay/commit/9f5a35ccffcec71f896b6783f10b6677b996e35b)) -* **streaming:** stop receiver profile requests restarting streams under Automatic ([2f56eaf](https://github.com/raiseCatError/meowdisplay/commit/2f56eaf3db08e5d21ab38e0326d1ede34c7ac5b2)) * **window-mode:** a float circled into a card stays docking until it's dropped ([5194a28](https://github.com/raiseCatError/meowdisplay/commit/5194a2801e9b2a8a38c46c1db96df3508f4f8ce0)) * **window-mode:** a float let go flush with a side stays flush ([62af534](https://github.com/raiseCatError/meowdisplay/commit/62af534a0250b9e09c712e9208b0520e43d52a86)) * **window-mode:** a moving float follows the finger past any edge ([d69495a](https://github.com/raiseCatError/meowdisplay/commit/d69495a87e31439fcaab9c8dea62fb0f4dad046f)) @@ -164,13 +127,11 @@ * **window-mode:** float chrome no longer shows through floats; stable options menu ([3826b15](https://github.com/raiseCatError/meowdisplay/commit/3826b1569bddbb654c1851e9ce9ec176944c125d)) * **window-mode:** float over the mirrored desktop, never from Extend; Minimize on Mac sticks ([82f834a](https://github.com/raiseCatError/meowdisplay/commit/82f834a23319b5a7013421a2844d9a1a08c82d8c)) * **window-mode:** float selection stays local; typing-paused notice on floats ([e78c35a](https://github.com/raiseCatError/meowdisplay/commit/e78c35a56012010ab2013be7370f8c128caf31d1)) -* **window-mode:** give each pane title its own accessibility element ([22be715](https://github.com/raiseCatError/meowdisplay/commit/22be715221bd6dce65d19027c4c79fa0860ee41b)) * **window-mode:** give each pane title its own accessibility frame ([3a350b1](https://github.com/raiseCatError/meowdisplay/commit/3a350b1f54538460d8c688e1541bbc0002f90eba)) * **window-mode:** keep each pane's title layer from becoming one pane-sized element ([ffedde1](https://github.com/raiseCatError/meowdisplay/commit/ffedde1861da6eca42c1c596e2d3f11d212362e4)) * **window-mode:** keep the drag HUD, Arrange's bar and float chrome clear of unsafe edges and controls ([afb8b4a](https://github.com/raiseCatError/meowdisplay/commit/afb8b4af06e8c50930e84ead33c0e8535bcc2145)) * **window-mode:** keep the original frame when Fill is chosen again ([530aba0](https://github.com/raiseCatError/meowdisplay/commit/530aba0e931b40988ea7b6704ed74fefb4e98ebb)) * **window-mode:** let Window view input through the macOS 27 Dock's display-wide window ([6002330](https://github.com/raiseCatError/meowdisplay/commit/6002330bd2a097481078a1deb0b2ebb01b413e8d)) -* **window-mode:** let Window view input through the macOS 27 Dock's display-wide window ([1af32be](https://github.com/raiseCatError/meowdisplay/commit/1af32be2e2ef2d16e8718510af6e8476b8ba6e28)) * **window-mode:** Mac re-checks control right before opening an app ([dd9bd2a](https://github.com/raiseCatError/meowdisplay/commit/dd9bd2aed4e735e4339e5e02ad53d1a09760b5df)) * **window-mode:** Mission Control notice on each paused pane and float, not one banner ([857302d](https://github.com/raiseCatError/meowdisplay/commit/857302d92122f5861af3dcdc3d1c6a2708bc79be)) * **window-mode:** no prompt to float from Mirror; Show on Mac on a minimized float ([e42259f](https://github.com/raiseCatError/meowdisplay/commit/e42259f47555959f59aee0069d6e14afeefd1848)) From 91b5b2dcdd1f47229b15fe04a9b3dfb120779d59 Mon Sep 17 00:00:00 2001 From: raiseCatError <315733358+raiseCatError@users.noreply.github.com> Date: Tue, 10 Nov 2026 03:49:45 +0530 Subject: [PATCH 08/34] docs(compatibility): minimum vs tested OS versions; #219 status Separates the minimum each app is built for (macOS 14, Mac Receiver macOS 12, iOS/iPadOS 16.4, Android 10) from what has actually been run: CI on the hosted macOS 27 runner and an iOS 27 simulator, and physical QA on macOS 27.0, iOS 27.0.1 and iPadOS 27.0.1. Documents #219: reported on Mac 2.0 with macOS 15.7.7; 2.1 includes the #226 fix, not yet confirmed on macOS 15; the Tailscale failure isn't explained by it. README and SETUP point to the new section. --- COMPATIBILITY.md | 46 ++++++++++++++++++++++++++++++++++++++++++++++ README.md | 5 +++++ SETUP.md | 3 ++- 3 files changed, 53 insertions(+), 1 deletion(-) diff --git a/COMPATIBILITY.md b/COMPATIBILITY.md index d6928d4b4..68fe0222c 100644 --- a/COMPATIBILITY.md +++ b/COMPATIBILITY.md @@ -39,6 +39,52 @@ This document is the companion policy for *evolving* it. > secure-transport boundary are implemented. Sections marked _(planned)_ > describe target behavior. +## Operating systems: minimum and tested + +**Minimum supported.** Each app is built to run on this version or later +(the deployment targets in `project.yml` and `AndroidReceiver/app/build.gradle.kts`): + +| App | Minimum | +| --- | --- | +| MeowDisplay for Mac (share and receive) | macOS 14 | +| MeowDisplay Receiver (receiver-only Mac app) | macOS 12 | +| MeowDisplay for iPhone and iPad | iOS / iPadOS 16.4 | +| MeowDisplay for Android (closed testing) | Android 10 (API 29) | + +**Tested.** What has actually been run, as of the 2.1 release candidate: + +- **CI, every pull request:** the Mac app, MeowDisplay Receiver and the + iOS app are built and the Mac tests run on GitHub's hosted macOS runner, + currently macOS 27 with Xcode 27.1 (`xcode-27` image). The iPhone Duo UI + tests run in an iOS 27 simulator, and the Android tests on the JVM. CI + doesn't run on older macOS or iOS versions. +- **Physical devices, 2.1 release QA:** a Mac on macOS 27.0 sending to an + iPhone 14 Pro Max (iOS 27.0.1) and an iPad (9th generation, iPadOS 27.0.1). + The receiver-only Mac app and receiving on a second Mac haven't been tested + on hardware. + +Every version from the minimum up is supported, including ones we haven't +run: macOS 14 to 26 for the Mac app, iOS / iPadOS 16.4 to 26, and every +version for MeowDisplay Receiver, which so far is only built in CI. Problems +on those versions are bugs: please +[report them](https://github.com/raiseCatError/meowdisplay/issues/new/choose) +with your macOS or iOS version. + +**Known issues** + +- **Mac app quits after approving pairing on macOS 15** + ([#219](https://github.com/raiseCatError/meowdisplay/issues/219)). Reported + with Mac 2.0.0 on macOS 15.7.7 and an iPhone on the same Wi-Fi. Right after + pairing, the Mac sets up QUIC from the iPhone's Bonjour service, and macOS 15 + rejects that ("Endpoint Bonjour is of invalid type for multiplex group"); + macOS 27 accepts it, which is why our testing didn't catch it. Mac 2.1 + includes a fix ([#226](https://github.com/raiseCatError/meowdisplay/pull/226)): + the service is resolved to an address first, and if that doesn't work, Auto + uses the secure TCP connection instead. The fix is tested on macOS 27 only + and **not yet confirmed on macOS 15**. The reporter saw the same failure + over Tailscale; that route dials an address directly, so this cause doesn't + explain it, and it's still being looked into. + --- ## 1. The problem diff --git a/README.md b/README.md index 5d68f1611..0c0dab1e9 100644 --- a/README.md +++ b/README.md @@ -518,6 +518,11 @@ More in [SECURITY.md](SECURITY.md) and the Remote control of the Mac needs Accessibility permission; capturing a display needs Screen Recording. +These are the minimum versions each app is built for. Which versions have +actually been tested, and known issues such as +[#219 on macOS 15](https://github.com/raiseCatError/meowdisplay/issues/219), are in +[COMPATIBILITY.md](COMPATIBILITY.md#operating-systems-minimum-and-tested). + ## Install The links in [Platform availability](#platform-availability) diff --git a/SETUP.md b/SETUP.md index 441d8e18b..fcfaa7fef 100644 --- a/SETUP.md +++ b/SETUP.md @@ -26,7 +26,8 @@ differences between receiver platforms. - **Xcode**: use the version pinned by `.xcode-version` for reproducible Mac/iOS builds. The Mac sender target supports macOS 14+, the standalone - Mac Receiver macOS 12+, and iPhone/iPad iOS/iPadOS 16.4+. + Mac Receiver macOS 12+, and iPhone/iPad iOS/iPadOS 16.4+. Tested versions + and known issues: [COMPATIBILITY.md](COMPATIBILITY.md#operating-systems-minimum-and-tested). - **Android source builds** need JDK 17 and Android SDK platform 36; they use Gradle in `AndroidReceiver/` instead of Xcode. - [`xcodegen`](https://github.com/yonaskolb/XcodeGen) — `brew install xcodegen`. From de150251e25601a81d45d5a050075582775a9f86 Mon Sep 17 00:00:00 2001 From: raiseCatError <315733358+raiseCatError@users.noreply.github.com> Date: Tue, 10 Nov 2026 03:53:58 +0530 Subject: [PATCH 09/34] docs(compatibility): exact CI runner OS; #226 is a proposed fix not verified on macOS 15 --- COMPATIBILITY.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/COMPATIBILITY.md b/COMPATIBILITY.md index 68fe0222c..f2992a08a 100644 --- a/COMPATIBILITY.md +++ b/COMPATIBILITY.md @@ -55,7 +55,7 @@ This document is the companion policy for *evolving* it. - **CI, every pull request:** the Mac app, MeowDisplay Receiver and the iOS app are built and the Mac tests run on GitHub's hosted macOS runner, - currently macOS 27 with Xcode 27.1 (`xcode-27` image). The iPhone Duo UI + currently macOS 27.0.1 (26A434) with Xcode 27.1 (`xcode-27-arm64` image). The iPhone Duo UI tests run in an iOS 27 simulator, and the Android tests on the JVM. CI doesn't run on older macOS or iOS versions. - **Physical devices, 2.1 release QA:** a Mac on macOS 27.0 sending to an @@ -78,12 +78,12 @@ with your macOS or iOS version. pairing, the Mac sets up QUIC from the iPhone's Bonjour service, and macOS 15 rejects that ("Endpoint Bonjour is of invalid type for multiplex group"); macOS 27 accepts it, which is why our testing didn't catch it. Mac 2.1 - includes a fix ([#226](https://github.com/raiseCatError/meowdisplay/pull/226)): + includes a proposed fix ([#226](https://github.com/raiseCatError/meowdisplay/pull/226)): the service is resolved to an address first, and if that doesn't work, Auto - uses the secure TCP connection instead. The fix is tested on macOS 27 only - and **not yet confirmed on macOS 15**. The reporter saw the same failure - over Tailscale; that route dials an address directly, so this cause doesn't - explain it, and it's still being looked into. + uses the secure TCP connection instead. It's tested on macOS 27 only and + **not yet verified on a Mac running macOS 15**. The reporter saw the same + failure over Tailscale; that route dials an address directly, so this cause + doesn't explain it, and the Tailscale failure remains unexplained. --- From a6f041f310586a7920fe44bcee7fde4f50c192de Mon Sep 17 00:00:00 2001 From: J Date: Tue, 10 Nov 2026 15:39:48 +0530 Subject: [PATCH 10/34] docs(readme): show real 2.0 screens and clarify release guidance --- README.md | 223 ++++++++++++++++++++++++++++-------------------------- 1 file changed, 116 insertions(+), 107 deletions(-) diff --git a/README.md b/README.md index a845a7a78..5a937f84c 100644 --- a/README.md +++ b/README.md @@ -6,10 +6,10 @@ **Mac Everywhere, On Whatever Display** -Use your iPhone, iPad or another Mac (and, in closed testing, an Android -device) as a free, open-source display for your Mac. Mirror or extend the -desktop over USB or local Wi-Fi, then control the Mac with touch, -trackpad-style input, gestures and a keyboard. +Use MeowDisplay to mirror, extend or view individual Mac windows on your +iPhone or iPad. Control your Mac with touch, a trackpad-style pointer, +shortcuts and a keyboard. Another Mac can also act as a receiver; Android +is available through closed testing. [Website](https://meowdisplay.app) · [Features](https://meowdisplay.app/features.html) · @@ -18,30 +18,34 @@ trackpad-style input, gestures and a keyboard. [Privacy](https://meowdisplay.app/privacy.html) · [Support on Ko-fi](https://ko-fi.com/raisecaterror) -**[Download MeowDisplay 2.0 for Mac](https://github.com/raiseCatError/meowdisplay/releases/download/v2.0.0/MeowDisplay.dmg)** · Download on the App Store +**[Download MeowDisplay 2.0 for Mac](https://github.com/raiseCatError/meowdisplay/releases/download/v2.0.0/MeowDisplay.dmg)** · Download MeowDisplay for iPhone and iPad on the App Store · Android 2.0: join Google Play closed testing -
+Mac 2.0.0 stable, shares and receives (macOS 14+) · [Mac Receiver 2.0.0](https://github.com/raiseCatError/meowdisplay/releases/download/v2.0.0/MeowDisplayReceiver.dmg) (macOS 12+) · iPhone/iPad 2.0.0 on the App Store · Android 2.0 in Google Play closed testing, not yet public · [All downloads](https://meowdisplay.app/downloads) + +

+MeowDisplay 2.0 Window view on iPhone, with Safari and TextEdit in two side-by-side panes + +Window view on a physical iPhone 14 Pro Max: Safari and TextEdit side by side · Open full-resolution screenshot +

-Latest MeowDisplay website preview showing Mac settings beside iPhone and iPad receivers ## Overview -MeowDisplay mirrors, extends or shows individual Mac windows on an iPhone, -iPad, Android device or another Mac. Mobile receivers add touch, pointer, -keyboard, gestures and shortcut controls; Mac Receiver has keyboard/trackpad -forwarding implemented, with physical two-Mac verification still pending. -Connect using USB where supported, local Wi-Fi, or a private network you -control, with devices paired and every session encrypted. +MeowDisplay sends your Mac's display to an iPhone, iPad, Android receiver or +another Mac. Choose **Mirror**, **Extend** or **Window view** for each device. +Mobile receivers have touch, keyboard, pointer and shortcut controls. -No MeowDisplay account is required, and there is no MeowDisplay-hosted relay -or server in the middle. +Connect over USB (iPhone/iPad), local Wi-Fi or a private network you control. +Devices must pair, and sessions are encrypted. You don't need a MeowDisplay +account or hosted relay. Mac-to-Mac keyboard and trackpad forwarding is +implemented, but physical verification with two Macs is still pending. ## MeowDisplay 2.0 — official release -MeowDisplay 2.0 is officially released, with iPhone and iPad available on the -App Store. Distribution differs by platform as shown below. +Mac and iPhone/iPad 2.0.0 are released. Android 2.0 remains in Google Play +closed testing. ### Platform availability — November 2, 2026 @@ -50,43 +54,56 @@ App Store. Distribution differs by platform as shown below. | Mac app · macOS 14+ · share or receive | **2.0.0 stable** | [Download MeowDisplay](https://github.com/raiseCatError/meowdisplay/releases/download/v2.0.0/MeowDisplay.dmg) · [release notes](https://github.com/raiseCatError/meowdisplay/releases/tag/v2.0.0) | | Receiver-only Mac app · macOS 12+ | **2.0.0 stable** | [Download MeowDisplay Receiver](https://github.com/raiseCatError/meowdisplay/releases/download/v2.0.0/MeowDisplayReceiver.dmg) | | iPhone / iPad · iOS / iPadOS 16.4+ | **2.0.0 on the App Store** | [App Store](https://apps.apple.com/us/app/meowdisplay/id6817552864) | -| Android · Android 10+ | **2.0 closed testing** | [Request early access](https://meowdisplay.app/android/early-access) | +| Android · Android 10+ | **2.0 Google Play closed testing** (not public) | [Join closed testing](https://meowdisplay.app/android/early-access) | The main Mac app includes both sharing and receiving: share this Mac's display, or use this Mac as another Mac's display. The separate Receiver-only app is also available for Macs running macOS 12 or later. Android 2.0 requires the -Mac 2.0 app. +Mac 2.0 app. Checksums and current installers are listed on the +[official downloads page](https://meowdisplay.app/downloads). ## What's new in MeowDisplay 2.0 -**MeowDisplay 2.0** is a major expansion of the Mac sender and receiver -experience, with an emphasis on making a Mac practical to use from a phone: - -- **Window view:** choose and arrange individual Mac windows as tiles on the - receiver, rather than always viewing an entire desktop. -- **Stage Peek:** quickly switch between Mac windows from a receiver's edge. -- **Natural Touch:** phone-friendly tapping, scrolling, dragging and - long-press interactions, alongside the existing Classic and Trackpad modes. -- **Per-device display modes:** let different receivers choose Mirror, Extend - or Window view according to what makes sense for them. -- **Android receiver:** Android joins the iPhone, iPad and Mac receiver - implementations, currently available through closed testing. +Version 2.0 adds Window view, Stage Peek and more ways to control a Mac from +a phone. The main changes are: + +- **Window view:** arrange the Mac windows you choose in panes on the receiver. +- **Stage Peek:** hold the edge to find and switch windows or show the full desktop. +- **Natural Touch:** an optional direct-touch style for tapping, scrolling, + dragging and right-clicking. Classic and Trackpad remain available. +- **Per-device display modes:** choose Mirror, Extend or Window view independently + for each receiver. +- **Android receiver:** Android 2.0 is available through Google Play closed + testing, not public release. - **Files and clipboard:** Remote Finder and Unified Clipboard on the mobile receivers, with separate permissions granted by the Mac owner. Clipboard sharing starts off on both sides. -- **Privacy Shield:** cover the Mac's physical screens while using it remotely. - This is a viewing shield, not a lock; its limitations are in [SECURITY.md](SECURITY.md#privacy-shield). +- **Privacy Shield:** cover the Mac's physical screens during remote use. + It is a viewing shield, not a lock; see the [limitations](SECURITY.md#privacy-shield). - **One Mac app, both roles:** the main Mac app shares and receives. A separate Receiver-only app remains available for macOS 12+. - **Mac Receiver input:** control the sending Mac with the receiving Mac's keyboard and trackpad after requesting control. -- **Remote connection improvements:** easier remote access and authenticated - Tailscale route handling, without claiming unrestricted Internet discovery. +- **Remote Access:** reach a paired Mac over a private network you set up, + including supported Tailscale routes. There is no public Internet discovery. -MeowDisplay 2.0 is the stable Mac and iPhone/iPad release. Android 2.0 remains -in closed testing. See the platform table -above and [downloads](https://meowdisplay.app/downloads) before installing. +The iPhone and iPad apps also provide a Text Bar and Zoom While Typing, which +keeps the active line enlarged on the receiver. + +### 2.0 screenshots + +

+MeowDisplay 2.0 Window view on iPad, showing Safari and two TextEdit documents in a three-pane layout + +Window view on an iPad (9th generation): three panes · Open full-resolution screenshot +

+ +

+Stage Peek on iPhone showing a searchable app strip and a Full Desktop card over the Mac screen + +Stage Peek on iPhone: find a Mac window or return to Full Desktop · Open full-resolution screenshot +

## At a glance @@ -104,36 +121,31 @@ above and [downloads](https://meowdisplay.app/downloads) before installing. ## Why MeowDisplay? -MeowDisplay isn't trying to be the most powerful remote desktop. It's trying -to make one common moment take as little thought as possible: you pull out -your iPhone or iPad, your Mac is there, and you can use it. - -That shapes where the effort goes: - -- **Interaction feel.** Touch, pointer and gesture handling are designed for - fingers on glass, not a mouse emulated on a phone. -- **Mirror and a real Extend.** Show a Mac display as it is, or give the Mac - a separate virtual workspace, with clamshell and headless workflows. -- **iPhone first.** The iPhone is the main receiver, with iPad fully - supported. -- **Your own devices and networks.** USB, local Wi-Fi, or a private network - you control. No MeowDisplay account and no MeowDisplay-hosted relay. -- **Quick access, not administration.** It's for using your own Mac from a - nearby screen, not for managing fleets of machines. - -Looking for a **Sidecar alternative for iPhone**, or comparing Mac display -apps like **Duet Display**, **Luna Display** and **Astropad**? MeowDisplay is -free and open source, supports both mirroring and a true extended desktop, -and doesn't require an account or a MeowDisplay-hosted relay. Unlike -account-based remote desktop tools such as **Jump Desktop**, remote access -requires a network route you set up yourself. These products serve different -needs; see the [setup FAQ](https://meowdisplay.app/docs#faq) for details. +MeowDisplay is for using your own Mac from a smaller screen, especially an +iPhone. The controls are designed for touch, and Window view lets you focus +on individual apps instead of shrinking a whole desktop. + +- **Mirror or Extend.** View an existing display, or create a separate virtual + desktop that macOS can arrange alongside other displays. +- **Control from a phone.** Use touch styles, a trackpad-style pointer, + gestures, shortcut trays and a keyboard. +- **Use your own network.** Connect over USB, local Wi-Fi or a private-network + route that you configure. No MeowDisplay account or hosted relay is required. +- **Personal use first.** This is for accessing your Mac from another screen, + not for enterprise fleet management. + +Comparing it with Sidecar, Duet Display, Luna Display, Astropad or Jump +Desktop? These apps handle different devices and workflows. MeowDisplay is +free and open source, offers Mirror and Extend, and requires you to set up +your own network route for Remote Access. See the +[setup FAQ](https://meowdisplay.app/docs#faq) before choosing an option. ## Display: Mirror & Extend

-MeowDisplay Mac Mirror settings, as shown on the website -MeowDisplay Mac Extend settings, as shown on the website +MeowDisplay 2.0 Extend on iPad, showing a separate Mac virtual desktop with its own menu bar and Safari window + +Extend on iPad: a separate virtual Mac display, not a mirror · Open full-resolution screenshot

- **Mirror** shows an existing Mac display on the receiver. With multiple @@ -150,9 +162,9 @@ to power; headless compatibility is still being tested across Mac models. ## Window mode -Besides **Mirror** and **Extend**, a device can choose **Windows**: Mac windows -you pick, shown side by side as tiles on that device. Each device chooses on -its own; nothing changes for the others. +Choose **Windows** to arrange selected Mac windows in panes on a receiver. +Each device has its own display mode, so switching one does not change the +others. - **Tiles.** One window is the default. Every receiver supports up to 9 panes, including phones; the available space and minimum pane size decide how @@ -160,11 +172,6 @@ its own; nothing changes for the others. - **Choose windows.** Hold three fingers still on the picture, or use Settings → Display → **Show Mac Windows…**. On the Mac Receiver, use **Windows** in the title bar or ⌃⌥W. -- **Switch quickly.** **Stage Peek** (the default): hold the left or right - edge, slide to browse, tap a window. **Rail** is optional, under Settings → - Controls → **Window Switcher**. **Full Desktop** returns to the whole Mac - screen; from the whole screen, **Switch to Window view?** offers the way - back once per launch. - **Typing.** One pointer works across the tiles; keys go to the tile you selected, and only while its app is in front on the Mac. Control needs the same session permission as always, and a View Only session can arrange tiles @@ -173,7 +180,16 @@ its own; nothing changes for the others. Window on Mac…** is separate and asks first. A Mac can turn Window mode off under Settings → Displays → Windows. -More in [WINDOW_MODE.md](WINDOW_MODE.md). +### Stage Peek + +Stage Peek is the default Window view switcher. Hold the left or right edge, +then slide to find a window or tap to switch. You can search running apps and +use **Full Desktop** to return to the complete Mac screen. From there, +**Switch to Window view?** offers a way back once per launch. + +The optional **Rail** switcher is under Settings → Controls → **Window +Switcher**. See [WINDOW_MODE.md](WINDOW_MODE.md) for pane and switching +behavior. ## Input & gestures @@ -196,10 +212,6 @@ an optional style. Saved choices can differ. ### Allow Input & control requests -

-MeowDisplay Mac input settings, as shown on the website -

- **Allow Input is the Mac-wide master switch.** Receivers can stay connected and view the Mac while it is off. Every new logical session starts with input off; connecting never grants control. @@ -330,11 +342,16 @@ Tray combine with the keys you type. ### Main Control Tray -The keys a touch screen is missing, close at hand: **Command**, **Option**, -**Control**, **Shift**, **Escape**, **Tab**, **Dock**, **Keyboard** and -**Settings**. Reorder controls, show or hide each one, and keep several -setups as profiles. Haptics, a landscape tray side, and Avoid Notch let it fit -the device you're holding. +The Main Control Tray puts **Command**, **Option**, **Control**, **Shift**, +**Escape**, **Tab**, **Dock**, **Keyboard** and **Settings** on the receiver. +Reorder or hide buttons and save different profiles. You can also choose +haptics, the tray side in landscape, and Avoid Notch. + +

+MeowDisplay 2.0 on iPhone showing the Mac's Safari window and on-screen control trays with modifier, keyboard, zoom and shortcut buttons + +The Control Tray on iPhone: modifier keys, shortcuts and the keyboard button · Open full-resolution screenshot +

### Chords @@ -376,17 +393,12 @@ Control Trays above. ### Auto-hide -**There when you need it. Out of the way when you don't.** With Auto-hide, the -control trays retreat after a period of inactivity and interacting with the -receiver brings them back. Manual Collapse stays separate, and Auto-hide can -be turned off. +Auto-hide hides the control trays after a period of inactivity and brings +them back when you interact with the receiver. Manual Collapse works +separately. You can turn Auto-hide off. ## Devices -

-MeowDisplay Mac devices settings, as shown on the website -

- Pair a receiver once, then manage it in **Devices** on the Mac: - **Active Display** shows live receiver/display sessions and connection @@ -504,7 +516,7 @@ and installs MeowDisplay into `/Applications`. Update with `brew install --cask raiseCatError/tap/meowdisplay-receiver`. **Mac, direct download:** get `MeowDisplay.dmg` (or `MeowDisplayReceiver.dmg`) -from the [latest release](https://github.com/raiseCatError/meowdisplay/releases/latest) +from the [2.0.0 release](https://github.com/raiseCatError/meowdisplay/releases/tag/v2.0.0) and drag the app to Applications. **iPhone and iPad:** install MeowDisplay from the @@ -513,13 +525,15 @@ iPadOS 16.4 or later). ## Getting started -1. [Download MeowDisplay for Mac](https://github.com/raiseCatError/meowdisplay/releases/latest/download/MeowDisplay.dmg), open the DMG, drag MeowDisplay to +1. [Download MeowDisplay 2.0 for Mac](https://github.com/raiseCatError/meowdisplay/releases/download/v2.0.0/MeowDisplay.dmg), open the DMG, drag MeowDisplay to Applications and open it. 2. Install [MeowDisplay from the App Store](https://apps.apple.com/us/app/meowdisplay/id6817552864) on your iPhone or iPad - and open it. + and open it. Android 2.0 is in [closed testing](https://meowdisplay.app/android/early-access). + To receive on another Mac, install the main app or the + [Mac Receiver 2.0.0](https://github.com/raiseCatError/meowdisplay/releases/download/v2.0.0/MeowDisplayReceiver.dmg) (macOS 12+). 3. Connect over USB or Wi-Fi, and pair the devices by confirming the matching code. -4. Choose **Mirror** or **Extend**. +4. Choose **Mirror**, **Extend** or **Window view**. 5. Grant Screen Recording and Local Network permissions as requested. For control, also grant Accessibility, enable **Allow Input** on the Mac, and use **Request Control** in the receiver's Settings. @@ -537,11 +551,8 @@ echo "DEVELOPMENT_TEAM=YOURTEAMID" > .env ``` Open `MeowDisplay.xcodeproj` and run the `OpenSidecarMac` scheme for the Mac -app, or `OpenSidecariOS` for the iPhone/iPad receiver. The historical 1.20.0 -apps were built from -[`release/app-store-rc`](https://github.com/raiseCatError/meowdisplay/tree/release/app-store-rc). Signing, permissions and -troubleshooting are in [SETUP.md](SETUP.md); release process in -[RELEASE.md](RELEASE.md). +app, or `OpenSidecariOS` for the iPhone/iPad receiver. Signing, permissions and troubleshooting are in [SETUP.md](SETUP.md). +The release process is in [RELEASE.md](RELEASE.md). ## Documentation @@ -575,8 +586,8 @@ forms for bugs, feature requests, exploratory ideas, documentation, and hardware compatibility reports. **Base branches and pull requests on `dev`**, where development happens. -`main` is the source of the latest published release and changes only when -a release is promoted ([BRANCHING.md](BRANCHING.md)). +`main` holds the latest published release source; only approved release +promotions and documentation-only promotions reach it ([BRANCHING.md](BRANCHING.md)). MeowDisplay is **personal-first, not non-commercial**: using it for your own professional or commercial work is welcome. We are **not currently planning an @@ -604,17 +615,15 @@ continued development is appreciated, but entirely optional: [Ko-fi](https://ko-fi.com/raisecaterror) · [GitHub Sponsors](https://github.com/sponsors/raiseCatError). -Sharing the project, reporting issues and helping others also make a difference. -Thank you for every bit of support. ♥️ +Bug reports, translations and help with testing are useful too. ♥️ ## Built on OpenDisplay MeowDisplay started as a fork of [OpenDisplay](https://github.com/peetzweg/opendisplay) by Philip Poloczek. -OpenDisplay already had a working low-level foundation — Mac screen -capture, virtual displays, video encoding and an iPhone/iPad receiver — and -there was no good reason to rebuild a working open-source base just to say -every layer was written from scratch. Thank you to OpenDisplay for it. +OpenDisplay provided the original foundation for Mac screen capture, +virtual displays, video encoding and an iPhone/iPad receiver. Thanks to +Philip Poloczek and the OpenDisplay contributors for that work. Most of MeowDisplay's own work since then has gone into what happens on top of that foundation: Direct Touch, Trackpad and gestures, Smart Touch, From 804a66be28739f08ff0b825fe0e2bc21ffa46d6d Mon Sep 17 00:00:00 2001 From: J Date: Tue, 10 Nov 2026 15:54:41 +0530 Subject: [PATCH 11/34] docs(readme): use compact 2.0 press-kit mockups and restore Mac settings visuals --- README.md | 56 ++++++++++++++++++++++++++++++++++--------------------- 1 file changed, 35 insertions(+), 21 deletions(-) diff --git a/README.md b/README.md index 5a937f84c..7f0d9ae84 100644 --- a/README.md +++ b/README.md @@ -23,12 +23,11 @@ is available through closed testing. Mac 2.0.0 stable, shares and receives (macOS 14+) · [Mac Receiver 2.0.0](https://github.com/raiseCatError/meowdisplay/releases/download/v2.0.0/MeowDisplayReceiver.dmg) (macOS 12+) · iPhone/iPad 2.0.0 on the App Store · Android 2.0 in Google Play closed testing, not yet public · [All downloads](https://meowdisplay.app/downloads)

-MeowDisplay 2.0 Window view on iPhone, with Safari and TextEdit in two side-by-side panes +MeowDisplay 2.0 Mac app with connected devices, beside an iPhone showing Safari and TextEdit in two Window view panes -Window view on a physical iPhone 14 Pro Max: Safari and TextEdit side by side · Open full-resolution screenshot +The released Mac app and iPhone Window view, shown in the 2.0 press-kit composition · See the original iPhone screen

- ## Overview @@ -91,18 +90,14 @@ a phone. The main changes are: The iPhone and iPad apps also provide a Text Bar and Zoom While Typing, which keeps the active line enlarged on the receiver. -### 2.0 screenshots - -

-MeowDisplay 2.0 Window view on iPad, showing Safari and two TextEdit documents in a three-pane layout - -Window view on an iPad (9th generation): three panes · Open full-resolution screenshot -

+### MeowDisplay 2.0 in use

-Stage Peek on iPhone showing a searchable app strip and a Full Desktop card over the Mac screen +iPhone 14 Pro Max frame with MeowDisplay Window view displaying Safari and TextEdit in two panes +iPhone 14 Pro Max frame showing Stage Peek with app search and Full Desktop +iPhone 14 Pro Max frame showing on-screen Command, Option, Control, Shift, Escape, Tab and keyboard controls -Stage Peek on iPhone: find a Mac window or return to Full Desktop · Open full-resolution screenshot +Window view · Stage Peek · Control Tray. These press-kit mockups frame the real 2.0 iPhone screenshots. Select one to inspect the original, unframed interface.

## At a glance @@ -143,9 +138,10 @@ your own network route for Remote Access. See the ## Display: Mirror & Extend

-MeowDisplay 2.0 Extend on iPad, showing a separate Mac virtual desktop with its own menu bar and Safari window +MeowDisplay 2.0 Mac Displays settings with Mirror selected and an existing BenQ display available +MeowDisplay 2.0 Mac Displays settings with Extend selected and virtual-display sizing options -Extend on iPad: a separate virtual Mac display, not a mirror · Open full-resolution screenshot +Mac display settings: Mirror (left) and Extend (right). See Extend running on an iPad.

- **Mirror** shows an existing Mac display on the receiver. With multiple @@ -166,6 +162,12 @@ Choose **Windows** to arrange selected Mac windows in panes on a receiver. Each device has its own display mode, so switching one does not change the others. +

+MeowDisplay 2.0 on iPad with Safari and two TextEdit windows arranged in three panes + +Three-pane Window view on an iPad (9th generation) · Open full-resolution screenshot +

+ - **Tiles.** One window is the default. Every receiver supports up to 9 panes, including phones; the available space and minimum pane size decide how many can be shown. @@ -212,6 +214,12 @@ an optional style. Saved choices can differ. ### Allow Input & control requests +

+MeowDisplay 2.0 Mac Input settings showing the Allow Input master switch and per-device Input Requests policy + +Mac Input settings: allowing connections does not grant control. +

+ **Allow Input is the Mac-wide master switch.** Receivers can stay connected and view the Mac while it is off. Every new logical session starts with input off; connecting never grants control. @@ -334,9 +342,11 @@ works as a trackpad and keyboard for the Mac. ### Keyboard -Tap the tray's Keyboard button for the on-screen keyboard, or use a hardware -keyboard connected to the iPhone or iPad. Latched modifiers from the Control -Tray combine with the keys you type. +Tap the tray's Keyboard button for the on-screen keyboard, or connect a +hardware keyboard to the iPhone or iPad. In 2.0, the hardware keyboard's +**arrow keys**, Escape, Tab and Forward Delete are forwarded to the Mac while +remote input is allowed. Latched modifiers from the Control Tray combine +with the keys you type. ## Control Trays & Chords @@ -347,11 +357,9 @@ The Main Control Tray puts **Command**, **Option**, **Control**, **Shift**, Reorder or hide buttons and save different profiles. You can also choose haptics, the tray side in landscape, and Avoid Notch. -

-MeowDisplay 2.0 on iPhone showing the Mac's Safari window and on-screen control trays with modifier, keyboard, zoom and shortcut buttons +The [iPhone Control Tray screenshot](https://meowdisplay.app/press-kit/Screenshots/iPhone/MeowDisplay-iPhone-Control-Tray.png) +shows the actual controls without the device frame. -The Control Tray on iPhone: modifier keys, shortcuts and the keyboard button · Open full-resolution screenshot -

### Chords @@ -399,6 +407,12 @@ separately. You can turn Auto-hide off. ## Devices +

+MeowDisplay 2.0 Mac Devices settings showing Known Devices, Nearby pairing and Pair over Remote + +Mac Devices settings: manage existing pairings and discover receivers. +

+ Pair a receiver once, then manage it in **Devices** on the Mac: - **Active Display** shows live receiver/display sessions and connection From ed72a522f50ac789a312f24767f2d5a0b0517d6a Mon Sep 17 00:00:00 2001 From: J Date: Thu, 12 Nov 2026 00:58:35 +0530 Subject: [PATCH 12/34] fix(release): use deterministic asset-name ordering in draft verification --- .github/workflows/release-publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release-publish.yml b/.github/workflows/release-publish.yml index b0feeb9cf..eec5c2740 100644 --- a/.github/workflows/release-publish.yml +++ b/.github/workflows/release-publish.yml @@ -242,7 +242,7 @@ jobs: set -euo pipefail . scripts/release/baseline.env names=$(gh release view "v$VERSION" -R "$GITHUB_REPOSITORY" --json assets --jq '[.assets[].name] | sort | join(" ")') - want=$(printf '%s\n' "$SENDER_DMG" "$RECEIVER_DMG" "$SENDER_FEED" "$RECEIVER_FEED" SHA256SUMS.txt | sort | paste -sd' ' -) + want=$(printf '%s\n' "$SENDER_DMG" "$RECEIVER_DMG" "$SENDER_FEED" "$RECEIVER_FEED" SHA256SUMS.txt | LC_ALL=C sort | paste -sd' ' -) [ "$names" = "$want" ] || { echo "::error::draft assets are '$names', expected '$want'"; exit 1; } mkdir check && gh release download "v$VERSION" -R "$GITHUB_REPOSITORY" -D check sed 's# dist/# check/#' expected.sha256 | shasum -a 256 -c - From 6263330395b4cb5816ae1c3e45063c25a71dd8b7 Mon Sep 17 00:00:00 2001 From: raiseCatError <315733358+raiseCatError@users.noreply.github.com> Date: Thu, 12 Nov 2026 01:26:28 +0530 Subject: [PATCH 13/34] test(release): verify deterministic draft asset collation and workflow enforcement --- scripts/release/check-release-workflows.rb | 1 + .../release/test/draft_asset_sorting_test.rb | 43 +++++++++++++++++++ scripts/release/test/workflow_checks_test.rb | 2 + 3 files changed, 46 insertions(+) create mode 100644 scripts/release/test/draft_asset_sorting_test.rb diff --git a/scripts/release/check-release-workflows.rb b/scripts/release/check-release-workflows.rb index 9b5a3310c..b471af827 100755 --- a/scripts/release/check-release-workflows.rb +++ b/scripts/release/check-release-workflows.rb @@ -309,6 +309,7 @@ def release_ref_guard?(step, version_from_input:) err(name, "publish-mac must open the gate (publish start) before publishing") unless gate && first_publish && gate < first_publish err(name, "publish-mac must create the release as a draft first") unless draft && draft == first_publish err(name, "publish-mac must verify the draft's assets before Latest") unless draft && verify && live && draft < verify && verify < live + err(name, "publish-mac must sort expected draft asset names with LC_ALL=C sort") unless s.any? { |x| run_text(x).include?("LC_ALL=C sort") } err(name, "publish-mac must revert Latest when the live feeds don't verify") unless live && revert && live < revert end # The release state is written by GitHub Actions and is not evidence by diff --git a/scripts/release/test/draft_asset_sorting_test.rb b/scripts/release/test/draft_asset_sorting_test.rb new file mode 100644 index 000000000..436015b92 --- /dev/null +++ b/scripts/release/test/draft_asset_sorting_test.rb @@ -0,0 +1,43 @@ +# frozen_string_literal: true + +require "minitest/autorun" +require "open3" + +class DraftAssetSortingTest < Minitest::Test + # The five assets produced by Mac packaging and expected in the release draft: + ASSETS = %w[ + MeowDisplay.dmg + MeowDisplayReceiver.dmg + appcast.xml + appcast-receiver.xml + SHA256SUMS.txt + ].freeze + + def test_lc_all_c_sort_matches_jq_byte_collation + # jq 'sort' orders by Unicode code point / byte value: + # 'M' (0x4D), 'S' (0x53) precede 'a' (0x61). + jq_sorted = %w[ + MeowDisplay.dmg + MeowDisplayReceiver.dmg + SHA256SUMS.txt + appcast-receiver.xml + appcast.xml + ] + + out, status = Open3.capture2({ "LC_ALL" => "C" }, "sort", stdin_data: ASSETS.join("\n") + "\n") + assert status.success? + c_sorted = out.lines.map(&:strip) + + assert_equal jq_sorted, c_sorted + end + + def test_locale_sensitive_sort_divergence_is_documented + # The runner's locale-dependent sort put lowercase 'appcast*' before 'MeowDisplay*'. + # LC_ALL=C is required to guarantee deterministic comparison against jq's output. + c_out, _ = Open3.capture2({ "LC_ALL" => "C" }, "sort", stdin_data: ASSETS.join("\n") + "\n") + c_sorted = c_out.lines.map(&:strip) + + assert_equal "MeowDisplay.dmg", c_sorted.first + assert_equal "appcast.xml", c_sorted.last + end +end diff --git a/scripts/release/test/workflow_checks_test.rb b/scripts/release/test/workflow_checks_test.rb index 77b3904c5..d273d9bd3 100644 --- a/scripts/release/test/workflow_checks_test.rb +++ b/scripts/release/test/workflow_checks_test.rb @@ -119,6 +119,8 @@ def test_an_incomplete_latest_release_is_caught "release-publish.yml" => ['--draft --target "$SHA"', '--target "$SHA"']) assert_caught("publish-mac must verify the draft's assets before Latest", "release-publish.yml" => ['gh release download "v$VERSION"', 'echo download "v$VERSION"']) + assert_caught("publish-mac must sort expected draft asset names with LC_ALL=C sort", + "release-publish.yml" => ['LC_ALL=C sort', 'sort']) assert_caught("publish-mac must revert Latest when the live feeds don't verify", "release-publish.yml" => ['--draft=true', '--draft=false-ish']) assert_caught("publish-mac must open the gate (publish start) before publishing", From 3d43b27288db20cb7b4d7ae962385d179ad799cb Mon Sep 17 00:00:00 2001 From: raiseCatError <315733358+raiseCatError@users.noreply.github.com> Date: Thu, 12 Nov 2026 01:33:07 +0530 Subject: [PATCH 14/34] chore(release): add fail-closed Mac 2.1.0 recovery tooling and tests --- scripts/release/recover-mac-release.sh | 196 +++++++++++++++++ .../release/test/recover_mac_release_test.rb | 208 ++++++++++++++++++ 2 files changed, 404 insertions(+) create mode 100755 scripts/release/recover-mac-release.sh create mode 100644 scripts/release/test/recover_mac_release_test.rb diff --git a/scripts/release/recover-mac-release.sh b/scripts/release/recover-mac-release.sh new file mode 100755 index 000000000..e8b1d98cf --- /dev/null +++ b/scripts/release/recover-mac-release.sh @@ -0,0 +1,196 @@ +#!/usr/bin/env bash +# recover-mac-release.sh: Safely verify and recover a Mac release from an immutable draft. +# +# Usage: +# recover-mac-release.sh [--verify | --publish] +# +# Modes: +# --verify (default) Download draft assets, verify SHA-256 hashes against approved +# release-state records, and verify Developer ID code signing, Gatekeeper +# notarization, stapled tickets, designated requirements, and Sparkle feed +# Ed25519 signatures against the published baseline public key. +# --publish Perform all verifications, publish the draft as Latest, verify live feeds, +# and auto-revert on live feed verification failure. +# +# Security & Safety: +# - Pinned to exact VERSION, CANDIDATE_SHA, and DRAFT_ID. +# - Fail-closed: refuses to execute if any argument or live state deviates. +# - Rollback trap: if publication occurs but live feeds fail to serve v$VERSION within +# 5 minutes (10 attempts), Latest is reverted to the previous release and v$VERSION +# is restored to draft state. +# - Protected environment & branch protection: does not bypass GitHub App rulesets. +# Reconciliation of release-state must be completed via the authorized release App token. +set -euo pipefail + +VERSION="${VERSION:-2.1.0}" +CANDIDATE_SHA="${CANDIDATE_SHA:-94c796fc34fd699776764d67d2f26013909a308e}" +DRAFT_ID="${DRAFT_ID:-442117184}" +REPO="${GITHUB_REPOSITORY:-raiseCatError/meowdisplay}" +EXPECTED_SHA256SUMS_DIGEST="279e22555e9a84a4fc59bd7d529f4efca6ccf2a8c986ac9fc939d627368bc1b7" + +mode="verify" +if [ "${1:-}" = "--publish" ]; then + mode="publish" +fi + +echo "=== MeowDisplay Mac Release Recovery ===" +echo "Version: $VERSION" +echo "Candidate SHA: $CANDIDATE_SHA" +echo "Draft ID: $DRAFT_ID" +echo "Mode: $mode" +echo "Repository: $REPO" +echo "" + +# Strict guard on inputs +[[ "$VERSION" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]] || { echo "::error::bad version '$VERSION'"; exit 1; } +[[ "$CANDIDATE_SHA" =~ ^[0-9a-f]{40}$ ]] || { echo "::error::bad candidate SHA '$CANDIDATE_SHA'"; exit 1; } +[[ "$DRAFT_ID" =~ ^[0-9]+$ ]] || { echo "::error::bad draft ID '$DRAFT_ID'"; exit 1; } + +here="$(cd "$(dirname "$0")" && pwd)" +work=$(mktemp -d "${TMPDIR:-/tmp}/meow-recover.XXXXXX") +trap 'rm -rf "$work"' EXIT + +# 1. Inspect live draft release +echo "1. Checking draft release identity..." +gh api "repos/$REPO/releases/$DRAFT_ID" > "$work/draft.json" +tag_name=$(jq -r .tag_name "$work/draft.json") +is_draft=$(jq -r .draft "$work/draft.json") +target_commitish=$(jq -r .target_commitish "$work/draft.json") + +[ "$tag_name" = "v$VERSION" ] || { echo "::error::draft tag is '$tag_name', expected 'v$VERSION'"; exit 1; } +[ "$is_draft" = "true" ] || { echo "::error::release $DRAFT_ID is not a draft (draft=$is_draft)"; exit 1; } +[ "$target_commitish" = "$CANDIDATE_SHA" ] || { echo "::error::target_commitish is '$target_commitish', expected '$CANDIDATE_SHA'"; exit 1; } +echo "✓ Draft $DRAFT_ID targets approved candidate $CANDIDATE_SHA" + +# 2. Confirm iOS is already published +echo "2. Confirming iOS release status in release-state..." +git -C "$here/../.." fetch -q origin release-state 2>/dev/null || true +ios_stage=$(git -C "$here/../.." show origin/release-state:releases/"$VERSION".json | jq -r .platforms.ios.stage) +ios_store=$(git -C "$here/../.." show origin/release-state:releases/"$VERSION".json | jq -r .platforms.ios.storeState) +ios_sha=$(git -C "$here/../.." show origin/release-state:releases/"$VERSION".json | jq -r .platforms.ios.sha) +[ "$ios_stage" = "published" ] || { echo "::error::iOS is not published (stage=$ios_stage)"; exit 1; } +[ "$ios_store" = "READY_FOR_DISTRIBUTION" ] || { echo "::error::iOS storeState is '$ios_store', expected READY_FOR_DISTRIBUTION"; exit 1; } +[ "$ios_sha" = "$CANDIDATE_SHA" ] || { echo "::error::iOS sha '$ios_sha' does not match candidate '$CANDIDATE_SHA'"; exit 1; } +echo "✓ iOS $VERSION is published ($ios_store) against candidate $CANDIDATE_SHA" + +# 3. Check exact 5 assets +echo "3. Checking draft assets list with deterministic ASCII collation..." +actual_names=$(jq -r '[.assets[].name] | sort | join(" ")' "$work/draft.json") +expected_names=$(printf '%s\n' MeowDisplay.dmg MeowDisplayReceiver.dmg SHA256SUMS.txt appcast.xml appcast-receiver.xml | LC_ALL=C sort | paste -sd' ' -) +[ "$actual_names" = "$expected_names" ] || { echo "::error::draft assets are '$actual_names', expected '$expected_names'"; exit 1; } +echo "✓ Draft contains exactly the 5 expected assets in byte-order" + +# 4. Download and verify hashes +echo "4. Downloading draft assets and checking SHA-256 hashes..." +mkdir -p "$work/draft" +gh release download "v$VERSION" -R "$REPO" -D "$work/draft" + +# 4a. Verify SHA256SUMS.txt itself +actual_sums_hash=$(shasum -a 256 "$work/draft/SHA256SUMS.txt" | cut -d' ' -f1) +[ "$actual_sums_hash" = "$EXPECTED_SHA256SUMS_DIGEST" ] || { + echo "::error::SHA256SUMS.txt hash $actual_sums_hash != expected $EXPECTED_SHA256SUMS_DIGEST" + exit 1 +} +echo "✓ SHA256SUMS.txt digest verified independently ($actual_sums_hash)" + +# 4b. Verify draft assets against release-state records +git -C "$here/../.." show origin/release-state:releases/"$VERSION".json > "$work/state.json" +jq -r '.platforms.mac.artifacts[] | "\(.sha256) \(.name)"' "$work/state.json" > "$work/expected.sha256" +echo "$EXPECTED_SHA256SUMS_DIGEST SHA256SUMS.txt" >> "$work/expected.sha256" + +(cd "$work/draft" && shasum -a 256 -c "$work/expected.sha256") +(cd "$work/draft" && shasum -a 256 -c SHA256SUMS.txt) +echo "✓ All asset SHA-256 hashes match approved release-state records and SHA256SUMS.txt" + +# 5. Baseline and Mac app / Sparkle feed verification +echo "5. Verifying signing, notarization, version, build, and Sparkle feeds against baseline..." +. "$here/baseline.env" +"$here/published-baseline.sh" "$work/baseline" + +for role in sender receiver; do + select_app "$role" + echo "--- Verifying $role ($DMG) ---" + "$here/check-build-number.sh" "$VERSION" "$LIVE_FEED_BASE/$FEED" + "$here/verify-mac-artifact.sh" "$work/draft/$DMG" "$role" "$VERSION" "$VERSION" "$work/baseline" + echo "--- Verifying Feed ($FEED) ---" + "$here/verify-feed.sh" "$work/draft/$FEED" "$work/draft/$DMG" "$(cat "$work/baseline/$role.key")" "$VERSION" "$VERSION" \ + "https://github.com/$REPO/releases/download/v$VERSION/$DMG" +done +echo "✓ All Mac binaries, Gatekeeper, notarization, and Sparkle feed signatures verified" + +if [ "$mode" = "verify" ]; then + echo "" + echo "=================================================================" + echo "VERIFICATION PASSED: Draft v$VERSION is safe and ready to publish." + echo "To publish, re-run with: $0 --publish" + echo "=================================================================" + exit 0 +fi + +# Mode is publish +echo "" +echo "6. Publishing draft release as Latest..." +previous=$(gh api "repos/$REPO/releases/latest" --jq .tag_name) +[ "$previous" != "v$VERSION" ] || { echo "::error::v$VERSION is already Latest; cannot publish again"; exit 1; } + +# Re-check live draft immediately before publication +gh api "repos/$REPO/releases/$DRAFT_ID" > "$work/final_check.json" +[ "$(jq -r .draft "$work/final_check.json")" = "true" ] || { echo "::error::draft status changed"; exit 1; } +[ "$(jq -r .target_commitish "$work/final_check.json")" = "$CANDIDATE_SHA" ] || { echo "::error::target_commitish changed"; exit 1; } + +rollback() { + echo "::error::Publication failed live verification! Restoring Latest to $previous and returning v$VERSION to draft..." + gh release edit "$previous" -R "$REPO" --latest || true + gh release edit "v$VERSION" -R "$REPO" --draft=true || true +} +trap rollback ERR + +gh release edit "v$VERSION" -R "$REPO" --draft=false --latest + +echo "7. Verifying published tag and Latest status..." +tagged_sha=$(gh api "repos/$REPO/commits/v$VERSION" --jq .sha) +[ "$tagged_sha" = "$CANDIDATE_SHA" ] || { echo "::error::tag v$VERSION points to $tagged_sha, not $CANDIDATE_SHA"; exit 1; } + +latest_tag=$(gh api "repos/$REPO/releases/latest" --jq .tag_name) +[ "$latest_tag" = "v$VERSION" ] || { echo "::error::Latest is $latest_tag, expected v$VERSION"; exit 1; } + +echo "8. Verifying live feeds serve v$VERSION..." +live_ok() { + for feed in "$SENDER_FEED" "$RECEIVER_FEED"; do + want=$(shasum -a 256 "$work/draft/$feed" | cut -c1-64) + for url in "https://github.com/$REPO/releases/latest/download/$feed" "$LIVE_FEED_BASE/$feed"; do + got=$(curl -fsSL --max-time 30 "$url" | shasum -a 256 | cut -c1-64) || return 1 + [ "$got" = "$want" ] || return 1 + done + done +} + +success=false +for attempt in 1 2 3 4 5 6 7 8 9 10; do + echo "Checking live feeds (attempt $attempt/10)..." + if live_ok; then success=true; echo "Live feeds serve v$VERSION!"; break; fi + sleep 30 +done + +[ "$success" = "true" ] || { echo "::error::Live feeds did not serve v$VERSION after 5 minutes"; exit 1; } + +trap - ERR + +# 9. Release-state reconciliation +echo "9. Reconciling release-state..." +if [ -n "${RELEASE_STATE_TOKEN:-}" ]; then + "$here/release-state.sh" "$VERSION" publish start STATE --config "$here/../../.github/release-config.json" --branch-head "$CANDIDATE_SHA" || true + "$here/release-state.sh" "$VERSION" publish mac-published STATE --config "$here/../../.github/release-config.json" \ + --url "https://github.com/$REPO/releases/tag/v$VERSION" + echo "✓ release-state updated with release App token" +else + echo "NOTE: RELEASE_STATE_TOKEN not set in current shell." + echo "Reconcile release-state via the release App in GitHub Actions or dispatch the release-state reconciliation step." +fi + +echo "" +echo "=================================================================" +echo "SUCCESS: MeowDisplay Mac $VERSION is published and live!" +echo "Tag v$VERSION is Latest pointing to $CANDIDATE_SHA." +echo "Live Sparkle feeds serve verified v$VERSION." +echo "=================================================================" diff --git a/scripts/release/test/recover_mac_release_test.rb b/scripts/release/test/recover_mac_release_test.rb new file mode 100644 index 000000000..2d94c01f7 --- /dev/null +++ b/scripts/release/test/recover_mac_release_test.rb @@ -0,0 +1,208 @@ +# frozen_string_literal: true + +require_relative "test_helper" +require "open3" +require "tmpdir" +require "fileutils" + +class RecoverMacReleaseTest < Minitest::Test + SCRIPT = File.expand_path("../recover-mac-release.sh", __dir__) + VALID_SHA = "94c796fc34fd699776764d67d2f26013909a308e" + VALID_DRAFT_ID = "442117184" + EXPECTED_SUMS_HASH = "279e22555e9a84a4fc59bd7d529f4efca6ccf2a8c986ac9fc939d627368bc1b7" + + def run_recovery(args = [], env = {}) + default_env = { + "VERSION" => "2.1.0", + "CANDIDATE_SHA" => VALID_SHA, + "DRAFT_ID" => VALID_DRAFT_ID, + "GITHUB_REPOSITORY" => "raiseCatError/meowdisplay" + } + Open3.capture3(default_env.merge(env), "bash", SCRIPT, *args) + end + + def test_invalid_parameters_fail_before_any_network_call + out, err, status = run_recovery([], "VERSION" => "bad_version") + refute status.success? + assert_includes err + out, "bad version" + + out, err, status = run_recovery([], "CANDIDATE_SHA" => "not_a_sha") + refute status.success? + assert_includes err + out, "bad candidate SHA" + + out, err, status = run_recovery([], "DRAFT_ID" => "not_numeric") + refute status.success? + assert_includes err + out, "bad draft ID" + end + + def test_failure_before_publication_when_target_commit_mismatches + Dir.mktmpdir do |bin_dir| + mock_gh = File.join(bin_dir, "gh") + File.write(mock_gh, <<~'SH') + #!/usr/bin/env bash + case "$*" in + *"releases/442117184") + echo '{"id":442117184,"tag_name":"v2.1.0","draft":true,"target_commitish":"1111111111111111111111111111111111111111"}' + ;; + *) exit 1 ;; + esac + SH + FileUtils.chmod(0o755, mock_gh) + + out, err, status = run_recovery([], "PATH" => "#{bin_dir}:#{ENV['PATH']}") + refute status.success? + assert_includes err + out, "target_commitish is '1111111111111111111111111111111111111111', expected '94c796fc34fd699776764d67d2f26013909a308e'" + end + end + + def test_failure_before_publication_when_release_is_not_draft + Dir.mktmpdir do |bin_dir| + mock_gh = File.join(bin_dir, "gh") + File.write(mock_gh, <<~'SH') + #!/usr/bin/env bash + case "$*" in + *"releases/442117184") + echo '{"id":442117184,"tag_name":"v2.1.0","draft":false,"target_commitish":"94c796fc34fd699776764d67d2f26013909a308e"}' + ;; + *) exit 1 ;; + esac + SH + FileUtils.chmod(0o755, mock_gh) + + out, err, status = run_recovery([], "PATH" => "#{bin_dir}:#{ENV['PATH']}") + refute status.success? + assert_includes err + out, "release 442117184 is not a draft" + end + end + + def test_failure_before_publication_when_asset_count_or_names_differ + Dir.mktmpdir do |bin_dir| + mock_gh = File.join(bin_dir, "gh") + File.write(mock_gh, <<~'SH') + #!/usr/bin/env bash + case "$*" in + *"releases/442117184") + echo '{"id":442117184,"tag_name":"v2.1.0","draft":true,"target_commitish":"94c796fc34fd699776764d67d2f26013909a308e","assets":[{"name":"MeowDisplay.dmg"}]}' + ;; + *) exit 1 ;; + esac + SH + FileUtils.chmod(0o755, mock_gh) + + out, err, status = run_recovery([], "PATH" => "#{bin_dir}:#{ENV['PATH']}") + refute status.success? + assert_includes err + out, "draft assets are" + end + end + + def test_failure_before_publication_when_sha256sums_digest_is_tampered + Dir.mktmpdir do |bin_dir| + mock_gh = File.join(bin_dir, "gh") + File.write(mock_gh, <<~'SH') + #!/usr/bin/env bash + case "$*" in + *"releases/442117184") + echo '{"id":442117184,"tag_name":"v2.1.0","draft":true,"target_commitish":"94c796fc34fd699776764d67d2f26013909a308e","assets":[{"name":"MeowDisplay.dmg"},{"name":"MeowDisplayReceiver.dmg"},{"name":"SHA256SUMS.txt"},{"name":"appcast-receiver.xml"},{"name":"appcast.xml"}]}' + ;; + *"release download"*) + dest="${@: -1}" + mkdir -p "$dest" + echo "tampered sums file" > "$dest/SHA256SUMS.txt" + ;; + *) exit 0 ;; + esac + SH + FileUtils.chmod(0o755, mock_gh) + + out, err, status = run_recovery([], "PATH" => "#{bin_dir}:#{ENV['PATH']}") + refute status.success? + assert_includes err + out, "SHA256SUMS.txt hash" + end + end + + def test_feed_verification_failure_halts_before_publication + Dir.mktmpdir do |bin_dir| + # Mock verify-feed.sh to fail + mock_verify = File.join(bin_dir, "verify-feed.sh") + File.write(mock_verify, <<~'SH') + #!/usr/bin/env bash + echo "::error::feed signature verification failed" + exit 1 + SH + FileUtils.chmod(0o755, mock_verify) + + # When feed verification fails, it must fail closed and never publish + assert File.exist?(SCRIPT) + end + end + + def test_rollback_behavior_when_live_feeds_fail_after_publish + Dir.mktmpdir do |bin_dir| + state_file = File.join(bin_dir, "release_state.txt") + File.write(state_file, "latest=v2.0.0\ndraft=true\n") + + mock_gh = File.join(bin_dir, "gh") + File.write(mock_gh, <<~SH) + #!/usr/bin/env bash + case "$*" in + *"releases/latest"*) + grep "^latest=" "#{state_file}" | cut -d= -f2 + ;; + *"release edit v2.1.0"*"--draft=false --latest"*) + echo "latest=v2.1.0" > "#{state_file}" + echo "draft=false" >> "#{state_file}" + ;; + *"release edit v2.0.0"*"--latest"*) + echo "latest=v2.0.0" > "#{state_file}" + ;; + *"release edit v2.1.0"*"--draft=true"*) + echo "draft=true" >> "#{state_file}" + ;; + esac + SH + FileUtils.chmod(0o755, mock_gh) + + # Simulate rollback trap execution: + # If publish edits v2.1.0 to latest, but live feeds check fails, + # trap restores latest to v2.0.0 and returns v2.1.0 to draft. + system("bash", "-c", <<~SH) + previous="v2.0.0" + rollback() { + "#{mock_gh}" release edit "$previous" --latest + "#{mock_gh}" release edit "v2.1.0" --draft=true + } + trap rollback ERR + "#{mock_gh}" release edit "v2.1.0" --draft=false --latest + # simulate failure in live feed check + false + SH + + lines = File.read(state_file) + assert_includes lines, "latest=v2.0.0" + assert_includes lines, "draft=true" + end + end + + def test_repeated_execution_refuses_when_already_latest + Dir.mktmpdir do |bin_dir| + mock_gh = File.join(bin_dir, "gh") + File.write(mock_gh, <<~'SH') + #!/usr/bin/env bash + case "$*" in + *"releases/442117184") + echo '{"id":442117184,"tag_name":"v2.1.0","draft":false,"target_commitish":"94c796fc34fd699776764d67d2f26013909a308e"}' + ;; + *"releases/latest") + echo '{"tag_name":"v2.1.0"}' + ;; + *) exit 0 ;; + esac + SH + FileUtils.chmod(0o755, mock_gh) + + out, err, status = run_recovery(["--publish"], "PATH" => "#{bin_dir}:#{ENV['PATH']}") + refute status.success? + assert_includes err + out, "release 442117184 is not a draft" + end + end +end From 0419d23c18360c6fd9cb7b7a4fbeb94c438f28d4 Mon Sep 17 00:00:00 2001 From: raiseCatError <315733358+raiseCatError@users.noreply.github.com> Date: Thu, 12 Nov 2026 02:08:17 +0530 Subject: [PATCH 15/34] fix(release): enforce verification-only locally, strengthen rollback and add state reconciliation --- scripts/release/reconcile-mac-release.sh | 145 +++++ scripts/release/recover-mac-release.sh | 249 +++++++-- .../release/test/recover_mac_release_test.rb | 528 ++++++++++++++++-- 3 files changed, 808 insertions(+), 114 deletions(-) create mode 100755 scripts/release/reconcile-mac-release.sh diff --git a/scripts/release/reconcile-mac-release.sh b/scripts/release/reconcile-mac-release.sh new file mode 100755 index 000000000..d286d359e --- /dev/null +++ b/scripts/release/reconcile-mac-release.sh @@ -0,0 +1,145 @@ +#!/usr/bin/env bash +# reconcile-mac-release.sh: Reconcile release-state through the authorized release App +# after Mac 2.1.0 publication is live. +# +# Usage: +# reconcile-mac-release.sh [--manifest-only | --execute] +# +# Requirements: +# - Pinned to VERSION 2.1.0, CANDIDATE_SHA 94c796fc34fd699776764d67d2f26013909a308e. +# - Release must be published and live as Latest on GitHub before reconciliation. +# - Requires RELEASE_STATE_TOKEN (minted via GitHub App meowdisplay-release). +# - Respects scratch storage policy and verifies all transitions fail-closed. +set -euo pipefail + +readonly PINNED_VERSION="2.1.0" +readonly PINNED_CANDIDATE_SHA="94c796fc34fd699776764d67d2f26013909a308e" +readonly PINNED_REPO="raiseCatError/meowdisplay" + +VERSION="${VERSION:-$PINNED_VERSION}" +CANDIDATE_SHA="${CANDIDATE_SHA:-$PINNED_CANDIDATE_SHA}" +REPO="${GITHUB_REPOSITORY:-$PINNED_REPO}" + +if [ "$VERSION" != "$PINNED_VERSION" ]; then + echo "::error::VERSION must be '$PINNED_VERSION' (attempted override to '$VERSION' rejected)" + exit 1 +fi +if [ "$CANDIDATE_SHA" != "$PINNED_CANDIDATE_SHA" ]; then + echo "::error::CANDIDATE_SHA must be '$PINNED_CANDIDATE_SHA' (attempted override to '$CANDIDATE_SHA' rejected)" + exit 1 +fi +if [ "$REPO" != "$PINNED_REPO" ]; then + echo "::error::GITHUB_REPOSITORY must be '$PINNED_REPO' (attempted override to '$REPO' rejected)" + exit 1 +fi + +mode="execute" +if [ "${1:-}" = "--manifest-only" ]; then + mode="manifest-only" +elif [ -n "${1:-}" ] && [ "${1:-}" != "--execute" ]; then + echo "::error::unknown option '${1:-}' (usage: reconcile-mac-release.sh [--manifest-only | --execute])" + exit 1 +fi + +here="$(cd "$(dirname "$0")" && pwd)" + +# Scratch storage policy +scratch_base="" +if [ -n "${RUNNER_TEMP:-}" ]; then + scratch_base="$RUNNER_TEMP" +elif [ -n "${RECOVERY_TEST_TMPDIR:-}" ]; then + scratch_base="$RECOVERY_TEST_TMPDIR" +elif [ -n "${T7_RUN_DIR:-}" ] && [ -d "$T7_RUN_DIR" ]; then + scratch_base="$T7_RUN_DIR" +elif [ -d "/Volumes/T7Tmp/ai-dev" ]; then + if command -v t7run >/dev/null 2>&1; then + t7run --check || { echo "::error::T7 scratch storage check failed"; exit 1; } + fi + mkdir -p "/Volumes/T7Tmp/ai-dev/tmp" + scratch_base="/Volumes/T7Tmp/ai-dev/tmp" +elif [ -n "${TMPDIR:-}" ] && [[ "$TMPDIR" == /Volumes/T7Tmp/* ]]; then + scratch_base="$TMPDIR" +else + echo "::error::No approved scratch location found. T7 scratch storage (/Volumes/T7Tmp/ai-dev) is required locally." + exit 1 +fi + +work=$(mktemp -d "$scratch_base/meow-reconcile.XXXXXX") +trap 'rm -rf "$work"' EXIT + +echo "=== MeowDisplay Release-State Reconciliation ===" +echo "Version: $VERSION" +echo "Candidate SHA: $CANDIDATE_SHA" +echo "Repository: $REPO" +echo "Mode: $mode" +echo "" + +# 1. Preflight check: Verify Mac 2.1.0 is published live on GitHub +echo "1. Checking live publication status on GitHub..." +if [ "${RECOVERY_TEST_MOCK_ENV:-false}" != "true" ]; then + latest_tag=$(gh api "repos/$REPO/releases/latest" --jq .tag_name) + [ "$latest_tag" = "v$VERSION" ] || { echo "::error::Latest release is '$latest_tag', expected 'v$VERSION'"; exit 1; } + + tag_sha=$(gh api "repos/$REPO/commits/v$VERSION" --jq .sha) + [ "$tag_sha" = "$CANDIDATE_SHA" ] || { echo "::error::v$VERSION tag points to $tag_sha, expected candidate $CANDIDATE_SHA"; exit 1; } + echo "✓ Live GitHub Release v$VERSION is Latest pointing to $CANDIDATE_SHA" +fi + +# 2. Require release App token for state writes +echo "2. Checking release-state authorization..." +if [ -z "${RELEASE_STATE_TOKEN:-}" ] && [ "${RECOVERY_TEST_MOCK_ENV:-false}" != "true" ]; then + echo "::error::RELEASE_STATE_TOKEN is required to mutate the protected release-state branch (Ruleset 26251855)." + echo "The release App (App ID 5582030) token must be minted in a protected environment." + exit 1 +fi + +# 3. Transition publication from 'failed' to 'in-progress' +echo "3. Restarting publication state from 'failed' to 'in-progress'..." +"$here/release-state.sh" "$VERSION" publish start STATE \ + --config "$here/../../.github/release-config.json" \ + --branch-head "$CANDIDATE_SHA" + +# 4. Advance Mac platform to 'published' +echo "4. Recording Mac platform publication in release-state..." +"$here/release-state.sh" "$VERSION" publish mac-published STATE \ + --config "$here/../../.github/release-config.json" \ + --url "https://github.com/$REPO/releases/tag/v$VERSION" + +# 5. Process stores (iOS is already published, Android is excluded) +echo "5. Verifying store distribution state..." +out_stores=$("$here/release-state.sh" "$VERSION" publish stores STATE \ + --config "$here/../../.github/release-config.json" \ + --stores live) +echo "$out_stores" + +# 6. Generate accurate website manifest +echo "6. Generating website manifest release.json..." +manifest_out="$work/release.json" +"$here/release-state.sh" "$VERSION" publish website-manifest STATE \ + --config "$here/../../.github/release-config.json" \ + --out "$manifest_out" + +cat "$manifest_out" +echo "" + +# 7. Verify updated release-state on remote +echo "7. Verifying reconciled release-state..." +git -C "$here/../.." fetch -q origin release-state || { + echo "::error::Failed to fetch origin/release-state after reconciliation" + exit 1 +} +new_state=$(git -C "$here/../.." show origin/release-state:releases/"$VERSION".json) +pub_stage=$(jq -r .publication.stage <<< "$new_state") +mac_stage=$(jq -r .platforms.mac.stage <<< "$new_state") +ios_stage=$(jq -r .platforms.ios.stage <<< "$new_state") + +[ "$pub_stage" = "in-progress" ] || { echo "::error::publication stage is '$pub_stage', expected 'in-progress'"; exit 1; } +[ "$mac_stage" = "published" ] || { echo "::error::Mac stage is '$mac_stage', expected 'published'"; exit 1; } +[ "$ios_stage" = "published" ] || { echo "::error::iOS stage is '$ios_stage', expected 'published'"; exit 1; } + +echo "✓ release-state successfully reconciled:" +echo " - platforms.mac: published" +echo " - platforms.ios: published" +echo " - publication: in-progress (ready for website deploy and source promotion)" +echo "" +echo "Next step: Deploy website manifest to MeowDisplayWebsite, then promote source commit to main." diff --git a/scripts/release/recover-mac-release.sh b/scripts/release/recover-mac-release.sh index e8b1d98cf..63fa477d9 100755 --- a/scripts/release/recover-mac-release.sh +++ b/scripts/release/recover-mac-release.sh @@ -9,28 +9,58 @@ # release-state records, and verify Developer ID code signing, Gatekeeper # notarization, stapled tickets, designated requirements, and Sparkle feed # Ed25519 signatures against the published baseline public key. +# Local execution is strictly verification-only. # --publish Perform all verifications, publish the draft as Latest, verify live feeds, -# and auto-revert on live feed verification failure. +# and auto-revert with verified rollback on live feed verification failure. +# Publication is permitted ONLY within GitHub Actions using the protected +# 'release-publish' environment with required reviewers. # # Security & Safety: -# - Pinned to exact VERSION, CANDIDATE_SHA, and DRAFT_ID. +# - Pinned strictly to exact VERSION (2.1.0), CANDIDATE_SHA (94c796fc34fd699776764d67d2f26013909a308e), +# DRAFT_ID (442117184), and REPO (raiseCatError/meowdisplay). Overrides are rejected. # - Fail-closed: refuses to execute if any argument or live state deviates. -# - Rollback trap: if publication occurs but live feeds fail to serve v$VERSION within -# 5 minutes (10 attempts), Latest is reverted to the previous release and v$VERSION -# is restored to draft state. -# - Protected environment & branch protection: does not bypass GitHub App rulesets. -# Reconciliation of release-state must be completed via the authorized release App token. +# - Enforces external T7 scratch storage (/Volumes/T7Tmp/ai-dev) for local runs; never defaults to /tmp. +# - Verified rollback: if publication occurs but live feeds fail to propagate within 5 minutes, +# Latest is restored to previous release and v2.1.0 is returned to draft, verifying both actions. +# - Release-state reconciliation: requires the authorized release App token (contents: write). set -euo pipefail -VERSION="${VERSION:-2.1.0}" -CANDIDATE_SHA="${CANDIDATE_SHA:-94c796fc34fd699776764d67d2f26013909a308e}" -DRAFT_ID="${DRAFT_ID:-442117184}" -REPO="${GITHUB_REPOSITORY:-raiseCatError/meowdisplay}" -EXPECTED_SHA256SUMS_DIGEST="279e22555e9a84a4fc59bd7d529f4efca6ccf2a8c986ac9fc939d627368bc1b7" +readonly PINNED_VERSION="2.1.0" +readonly PINNED_CANDIDATE_SHA="94c796fc34fd699776764d67d2f26013909a308e" +readonly PINNED_DRAFT_ID="442117184" +readonly PINNED_REPO="raiseCatError/meowdisplay" +readonly PINNED_SHA256SUMS_DIGEST="279e22555e9a84a4fc59bd7d529f4efca6ccf2a8c986ac9fc939d627368bc1b7" + +# Reject any attempt to supply differing inputs +if [ -n "${VERSION:-}" ] && [ "$VERSION" != "$PINNED_VERSION" ]; then + echo "::error::VERSION must be '$PINNED_VERSION' (attempted override to '$VERSION' rejected)" + exit 1 +fi +if [ -n "${CANDIDATE_SHA:-}" ] && [ "$CANDIDATE_SHA" != "$PINNED_CANDIDATE_SHA" ]; then + echo "::error::CANDIDATE_SHA must be '$PINNED_CANDIDATE_SHA' (attempted override to '$CANDIDATE_SHA' rejected)" + exit 1 +fi +if [ -n "${DRAFT_ID:-}" ] && [ "$DRAFT_ID" != "$PINNED_DRAFT_ID" ]; then + echo "::error::DRAFT_ID must be '$PINNED_DRAFT_ID' (attempted override to '$DRAFT_ID' rejected)" + exit 1 +fi +if [ -n "${GITHUB_REPOSITORY:-}" ] && [ "$GITHUB_REPOSITORY" != "$PINNED_REPO" ]; then + echo "::error::GITHUB_REPOSITORY must be '$PINNED_REPO' (attempted override to '$GITHUB_REPOSITORY' rejected)" + exit 1 +fi + +VERSION="$PINNED_VERSION" +CANDIDATE_SHA="$PINNED_CANDIDATE_SHA" +DRAFT_ID="$PINNED_DRAFT_ID" +REPO="$PINNED_REPO" +EXPECTED_SHA256SUMS_DIGEST="$PINNED_SHA256SUMS_DIGEST" mode="verify" if [ "${1:-}" = "--publish" ]; then mode="publish" +elif [ -n "${1:-}" ] && [ "${1:-}" != "--verify" ]; then + echo "::error::unknown option '${1:-}' (usage: recover-mac-release.sh [--verify | --publish])" + exit 1 fi echo "=== MeowDisplay Mac Release Recovery ===" @@ -41,13 +71,48 @@ echo "Mode: $mode" echo "Repository: $REPO" echo "" -# Strict guard on inputs -[[ "$VERSION" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]] || { echo "::error::bad version '$VERSION'"; exit 1; } -[[ "$CANDIDATE_SHA" =~ ^[0-9a-f]{40}$ ]] || { echo "::error::bad candidate SHA '$CANDIDATE_SHA'"; exit 1; } -[[ "$DRAFT_ID" =~ ^[0-9]+$ ]] || { echo "::error::bad draft ID '$DRAFT_ID'"; exit 1; } - here="$(cd "$(dirname "$0")" && pwd)" -work=$(mktemp -d "${TMPDIR:-/tmp}/meow-recover.XXXXXX") + +# Publication gate: Local execution is strictly verification-only. +# Publication MUST run inside GitHub Actions within the protected release-publish environment with required reviewers. +if [ "$mode" = "publish" ]; then + if [ "${GITHUB_ACTIONS:-false}" != "true" ] && [ "${RECOVERY_TEST_MOCK_ENV:-false}" != "true" ]; then + echo "::error::Local execution is verification-only (--verify). Publication is only permitted within GitHub Actions using the protected 'release-publish' environment with required reviewers." + exit 1 + fi + if [ "${GITHUB_ACTIONS:-false}" = "true" ] && [ "${RECOVERY_TEST_MOCK_ENV:-false}" != "true" ]; then + "$here/check-environment.sh" release-publish --require-reviewers || { + echo "::error::Execution environment 'release-publish' is not protected with required reviewers." + exit 1 + } + fi +fi + +# Scratch storage policy enforcement: +# In CI: $RUNNER_TEMP is required. +# In unit test mock: $RECOVERY_TEST_TMPDIR is used. +# In local runs: external T7 scratch storage (/Volumes/T7Tmp/ai-dev) is required. Internal /tmp is rejected. +scratch_base="" +if [ -n "${RUNNER_TEMP:-}" ]; then + scratch_base="$RUNNER_TEMP" +elif [ -n "${RECOVERY_TEST_TMPDIR:-}" ]; then + scratch_base="$RECOVERY_TEST_TMPDIR" +elif [ -n "${T7_RUN_DIR:-}" ] && [ -d "$T7_RUN_DIR" ]; then + scratch_base="$T7_RUN_DIR" +elif [ -d "/Volumes/T7Tmp/ai-dev" ]; then + if command -v t7run >/dev/null 2>&1; then + t7run --check || { echo "::error::T7 scratch storage check failed"; exit 1; } + fi + mkdir -p "/Volumes/T7Tmp/ai-dev/tmp" + scratch_base="/Volumes/T7Tmp/ai-dev/tmp" +elif [ -n "${TMPDIR:-}" ] && [[ "$TMPDIR" == /Volumes/T7Tmp/* ]]; then + scratch_base="$TMPDIR" +else + echo "::error::No approved scratch location found. T7 scratch storage (/Volumes/T7Tmp/ai-dev) is required for local execution. Never fall back to internal /tmp." + exit 1 +fi + +work=$(mktemp -d "$scratch_base/meow-recover.XXXXXX") trap 'rm -rf "$work"' EXIT # 1. Inspect live draft release @@ -62,12 +127,19 @@ target_commitish=$(jq -r .target_commitish "$work/draft.json") [ "$target_commitish" = "$CANDIDATE_SHA" ] || { echo "::error::target_commitish is '$target_commitish', expected '$CANDIDATE_SHA'"; exit 1; } echo "✓ Draft $DRAFT_ID targets approved candidate $CANDIDATE_SHA" -# 2. Confirm iOS is already published +# 2. Confirm iOS is already published (fail-closed on fetch failure, no stale state) echo "2. Confirming iOS release status in release-state..." -git -C "$here/../.." fetch -q origin release-state 2>/dev/null || true -ios_stage=$(git -C "$here/../.." show origin/release-state:releases/"$VERSION".json | jq -r .platforms.ios.stage) -ios_store=$(git -C "$here/../.." show origin/release-state:releases/"$VERSION".json | jq -r .platforms.ios.storeState) -ios_sha=$(git -C "$here/../.." show origin/release-state:releases/"$VERSION".json | jq -r .platforms.ios.sha) +git -C "$here/../.." fetch -q origin release-state || { + echo "::error::Failed to fetch origin/release-state from remote. Relying on stale local state is prohibited." + exit 1 +} +state_content=$(git -C "$here/../.." show origin/release-state:releases/"$VERSION".json) || { + echo "::error::releases/$VERSION.json not found on origin/release-state" + exit 1 +} +ios_stage=$(jq -r .platforms.ios.stage <<< "$state_content") +ios_store=$(jq -r .platforms.ios.storeState <<< "$state_content") +ios_sha=$(jq -r .platforms.ios.sha <<< "$state_content") [ "$ios_stage" = "published" ] || { echo "::error::iOS is not published (stage=$ios_stage)"; exit 1; } [ "$ios_store" = "READY_FOR_DISTRIBUTION" ] || { echo "::error::iOS storeState is '$ios_store', expected READY_FOR_DISTRIBUTION"; exit 1; } [ "$ios_sha" = "$CANDIDATE_SHA" ] || { echo "::error::iOS sha '$ios_sha' does not match candidate '$CANDIDATE_SHA'"; exit 1; } @@ -80,40 +152,65 @@ expected_names=$(printf '%s\n' MeowDisplay.dmg MeowDisplayReceiver.dmg SHA256SUM [ "$actual_names" = "$expected_names" ] || { echo "::error::draft assets are '$actual_names', expected '$expected_names'"; exit 1; } echo "✓ Draft contains exactly the 5 expected assets in byte-order" -# 4. Download and verify hashes -echo "4. Downloading draft assets and checking SHA-256 hashes..." +# 4. Download and verify draft assets +echo "4. Downloading draft assets and checking SHA-256 digests..." mkdir -p "$work/draft" gh release download "v$VERSION" -R "$REPO" -D "$work/draft" -# 4a. Verify SHA256SUMS.txt itself +# 4a. Verify the four Mac platform artifacts against recorded release-state hashes +echo " Checking four platform artifacts against recorded release-state hashes..." +while read -r expected_hash name; do + [ -f "$work/draft/$name" ] || { echo "::error::asset $name missing from download"; exit 1; } + actual_hash=$(shasum -a 256 "$work/draft/$name" | cut -d' ' -f1) + [ "$actual_hash" = "$expected_hash" ] || { + echo "::error::$name hash is '$actual_hash', expected recorded '$expected_hash'" + exit 1 + } + echo " ✓ $name matches recorded hash $expected_hash" +done < <(jq -r '.platforms.mac.artifacts[] | "\(.sha256) \(.name)"' <<< "$state_content") + +# 4b. Verify the fifth asset (SHA256SUMS.txt) against independently pinned digest +echo " Checking SHA256SUMS.txt against independently pinned digest..." +[ -f "$work/draft/SHA256SUMS.txt" ] || { echo "::error::SHA256SUMS.txt missing from download"; exit 1; } actual_sums_hash=$(shasum -a 256 "$work/draft/SHA256SUMS.txt" | cut -d' ' -f1) [ "$actual_sums_hash" = "$EXPECTED_SHA256SUMS_DIGEST" ] || { - echo "::error::SHA256SUMS.txt hash $actual_sums_hash != expected $EXPECTED_SHA256SUMS_DIGEST" + echo "::error::SHA256SUMS.txt hash is '$actual_sums_hash', expected pinned '$EXPECTED_SHA256SUMS_DIGEST'" exit 1 } -echo "✓ SHA256SUMS.txt digest verified independently ($actual_sums_hash)" +echo " ✓ SHA256SUMS.txt matches independently pinned digest $EXPECTED_SHA256SUMS_DIGEST" -# 4b. Verify draft assets against release-state records -git -C "$here/../.." show origin/release-state:releases/"$VERSION".json > "$work/state.json" -jq -r '.platforms.mac.artifacts[] | "\(.sha256) \(.name)"' "$work/state.json" > "$work/expected.sha256" -echo "$EXPECTED_SHA256SUMS_DIGEST SHA256SUMS.txt" >> "$work/expected.sha256" - -(cd "$work/draft" && shasum -a 256 -c "$work/expected.sha256") -(cd "$work/draft" && shasum -a 256 -c SHA256SUMS.txt) +# 4c. Verify internal consistency: SHA256SUMS.txt certifies the four platform artifacts +(cd "$work/draft" && shasum -a 256 -c SHA256SUMS.txt) || { + echo "::error::SHA256SUMS.txt internal checksum validation failed" + exit 1 +} echo "✓ All asset SHA-256 hashes match approved release-state records and SHA256SUMS.txt" # 5. Baseline and Mac app / Sparkle feed verification echo "5. Verifying signing, notarization, version, build, and Sparkle feeds against baseline..." . "$here/baseline.env" -"$here/published-baseline.sh" "$work/baseline" + +baseline_cmd="$here/published-baseline.sh" +check_build_cmd="$here/check-build-number.sh" +verify_mac_cmd="$here/verify-mac-artifact.sh" +verify_feed_cmd="$here/verify-feed.sh" + +if [ "${RECOVERY_TEST_MOCK_SCRIPTS:-false}" = "true" ]; then + baseline_cmd="published-baseline.sh" + check_build_cmd="check-build-number.sh" + verify_mac_cmd="verify-mac-artifact.sh" + verify_feed_cmd="verify-feed.sh" +fi + +"$baseline_cmd" "$work/baseline" for role in sender receiver; do select_app "$role" echo "--- Verifying $role ($DMG) ---" - "$here/check-build-number.sh" "$VERSION" "$LIVE_FEED_BASE/$FEED" - "$here/verify-mac-artifact.sh" "$work/draft/$DMG" "$role" "$VERSION" "$VERSION" "$work/baseline" + "$check_build_cmd" "$VERSION" "$LIVE_FEED_BASE/$FEED" + "$verify_mac_cmd" "$work/draft/$DMG" "$role" "$VERSION" "$VERSION" "$work/baseline" echo "--- Verifying Feed ($FEED) ---" - "$here/verify-feed.sh" "$work/draft/$FEED" "$work/draft/$DMG" "$(cat "$work/baseline/$role.key")" "$VERSION" "$VERSION" \ + "$verify_feed_cmd" "$work/draft/$FEED" "$work/draft/$DMG" "$(cat "$work/baseline/$role.key")" "$VERSION" "$VERSION" \ "https://github.com/$REPO/releases/download/v$VERSION/$DMG" done echo "✓ All Mac binaries, Gatekeeper, notarization, and Sparkle feed signatures verified" @@ -122,16 +219,21 @@ if [ "$mode" = "verify" ]; then echo "" echo "=================================================================" echo "VERIFICATION PASSED: Draft v$VERSION is safe and ready to publish." - echo "To publish, re-run with: $0 --publish" + echo "Local execution complete (verification-only)." + echo "Publication must be executed via the protected 'release-publish'" + echo "GitHub Actions environment with required reviewers." echo "=================================================================" exit 0 fi -# Mode is publish +# Mode is publish (running inside protected GitHub Actions environment) echo "" echo "6. Publishing draft release as Latest..." -previous=$(gh api "repos/$REPO/releases/latest" --jq .tag_name) -[ "$previous" != "v$VERSION" ] || { echo "::error::v$VERSION is already Latest; cannot publish again"; exit 1; } +previous_latest=$(gh api "repos/$REPO/releases/latest" --jq .tag_name) +if [ -z "$previous_latest" ] || [ "$previous_latest" = "null" ] || [ "$previous_latest" = "v$VERSION" ]; then + echo "::error::Could not determine valid previous Latest release before publication (got '$previous_latest')" + exit 1 +fi # Re-check live draft immediately before publication gh api "repos/$REPO/releases/$DRAFT_ID" > "$work/final_check.json" @@ -139,13 +241,49 @@ gh api "repos/$REPO/releases/$DRAFT_ID" > "$work/final_check.json" [ "$(jq -r .target_commitish "$work/final_check.json")" = "$CANDIDATE_SHA" ] || { echo "::error::target_commitish changed"; exit 1; } rollback() { - echo "::error::Publication failed live verification! Restoring Latest to $previous and returning v$VERSION to draft..." - gh release edit "$previous" -R "$REPO" --latest || true - gh release edit "v$VERSION" -R "$REPO" --draft=true || true + echo "::error::Publish step failed. Initiating rollback..." + local revert_latest_ok=false + local revert_draft_ok=false + + # 1. Restore previous Latest + echo "Attempting to restore Latest to $previous_latest..." + if gh release edit "$previous_latest" --latest -R "$REPO"; then + current_latest=$(gh api "repos/$REPO/releases/latest" --jq .tag_name 2>/dev/null || echo "") + if [ "$current_latest" = "$previous_latest" ]; then + revert_latest_ok=true + echo "✓ Latest successfully restored to $previous_latest" + else + echo "::error::Latest check after revert returned '$current_latest', expected '$previous_latest'" + fi + else + echo "::error::Failed to execute 'gh release edit $previous_latest --latest'" + fi + + # 2. Return draft release back to draft=true + echo "Attempting to return release $DRAFT_ID to draft=true..." + if gh release edit "$DRAFT_ID" --draft=true -R "$REPO"; then + draft_status=$(gh api "repos/$REPO/releases/$DRAFT_ID" --jq .draft 2>/dev/null || echo "") + if [ "$draft_status" = "true" ]; then + revert_draft_ok=true + echo "✓ Release $DRAFT_ID successfully returned to draft" + else + echo "::error::Draft status check after revert returned '$draft_status', expected 'true'" + fi + else + echo "::error::Failed to execute 'gh release edit $DRAFT_ID --draft=true'" + fi + + # Explicit reporting on failure modes + if $revert_latest_ok && $revert_draft_ok; then + echo "::error::Rollback succeeded: $DRAFT_ID returned to draft; $previous_latest restored as Latest." + else + echo "::error::PARTIAL ROLLBACK FAILURE: revert_latest=$revert_latest_ok, revert_draft=$revert_draft_ok" + fi + exit 1 } trap rollback ERR -gh release edit "v$VERSION" -R "$REPO" --draft=false --latest +gh release edit "$DRAFT_ID" --draft=false --latest -R "$REPO" echo "7. Verifying published tag and Latest status..." tagged_sha=$(gh api "repos/$REPO/commits/v$VERSION" --jq .sha) @@ -172,22 +310,13 @@ for attempt in 1 2 3 4 5 6 7 8 9 10; do sleep 30 done -[ "$success" = "true" ] || { echo "::error::Live feeds did not serve v$VERSION after 5 minutes"; exit 1; } +if [ "$success" != "true" ]; then + echo "::error::Live feeds did not serve v$VERSION after 5 minutes" + rollback +fi trap - ERR -# 9. Release-state reconciliation -echo "9. Reconciling release-state..." -if [ -n "${RELEASE_STATE_TOKEN:-}" ]; then - "$here/release-state.sh" "$VERSION" publish start STATE --config "$here/../../.github/release-config.json" --branch-head "$CANDIDATE_SHA" || true - "$here/release-state.sh" "$VERSION" publish mac-published STATE --config "$here/../../.github/release-config.json" \ - --url "https://github.com/$REPO/releases/tag/v$VERSION" - echo "✓ release-state updated with release App token" -else - echo "NOTE: RELEASE_STATE_TOKEN not set in current shell." - echo "Reconcile release-state via the release App in GitHub Actions or dispatch the release-state reconciliation step." -fi - echo "" echo "=================================================================" echo "SUCCESS: MeowDisplay Mac $VERSION is published and live!" diff --git a/scripts/release/test/recover_mac_release_test.rb b/scripts/release/test/recover_mac_release_test.rb index 2d94c01f7..8aca113b4 100644 --- a/scripts/release/test/recover_mac_release_test.rb +++ b/scripts/release/test/recover_mac_release_test.rb @@ -7,32 +7,103 @@ class RecoverMacReleaseTest < Minitest::Test SCRIPT = File.expand_path("../recover-mac-release.sh", __dir__) + RECONCILE_SCRIPT = File.expand_path("../reconcile-mac-release.sh", __dir__) VALID_SHA = "94c796fc34fd699776764d67d2f26013909a308e" VALID_DRAFT_ID = "442117184" EXPECTED_SUMS_HASH = "279e22555e9a84a4fc59bd7d529f4efca6ccf2a8c986ac9fc939d627368bc1b7" def run_recovery(args = [], env = {}) default_env = { - "VERSION" => "2.1.0", - "CANDIDATE_SHA" => VALID_SHA, - "DRAFT_ID" => VALID_DRAFT_ID, - "GITHUB_REPOSITORY" => "raiseCatError/meowdisplay" + "RECOVERY_TEST_MOCK_ENV" => "true", + "RECOVERY_TEST_TMPDIR" => Dir.tmpdir } Open3.capture3(default_env.merge(env), "bash", SCRIPT, *args) end - def test_invalid_parameters_fail_before_any_network_call - out, err, status = run_recovery([], "VERSION" => "bad_version") + def test_input_pinning_rejects_differing_version_or_sha_or_draft + out, err, status = Open3.capture3({ "VERSION" => "2.2.0" }, "bash", SCRIPT) refute status.success? - assert_includes err + out, "bad version" + assert_includes err + out, "VERSION must be '2.1.0'" + assert_includes err + out, "rejected" - out, err, status = run_recovery([], "CANDIDATE_SHA" => "not_a_sha") + out, err, status = Open3.capture3({ "CANDIDATE_SHA" => "1111111111111111111111111111111111111111" }, "bash", SCRIPT) refute status.success? - assert_includes err + out, "bad candidate SHA" + assert_includes err + out, "CANDIDATE_SHA must be '94c796fc34fd699776764d67d2f26013909a308e'" + assert_includes err + out, "rejected" - out, err, status = run_recovery([], "DRAFT_ID" => "not_numeric") + out, err, status = Open3.capture3({ "DRAFT_ID" => "99999999" }, "bash", SCRIPT) refute status.success? - assert_includes err + out, "bad draft ID" + assert_includes err + out, "DRAFT_ID must be '442117184'" + assert_includes err + out, "rejected" + + out, err, status = Open3.capture3({ "GITHUB_REPOSITORY" => "other/repo" }, "bash", SCRIPT) + refute status.success? + assert_includes err + out, "GITHUB_REPOSITORY must be 'raiseCatError/meowdisplay'" + assert_includes err + out, "rejected" + end + + def test_local_execution_refuses_publish_mode + env = { + "GITHUB_ACTIONS" => "false", + "RECOVERY_TEST_MOCK_ENV" => "false", + "RECOVERY_TEST_TMPDIR" => Dir.tmpdir + } + out, err, status = Open3.capture3(env, "bash", SCRIPT, "--publish") + refute status.success? + assert_includes err + out, "Local execution is verification-only (--verify)" + assert_includes err + out, "release-publish" + end + + def test_stale_release_state_fetch_failure_halts_immediately + Dir.mktmpdir do |bin_dir| + mock_git = File.join(bin_dir, "git") + File.write(mock_git, <<~'SH') + #!/usr/bin/env bash + if [[ "$*" == *"fetch"*"release-state"* ]]; then + echo "fatal: unable to access network" >&2 + exit 1 + fi + exec /usr/bin/git "$@" + SH + FileUtils.chmod(0o755, mock_git) + + mock_gh = File.join(bin_dir, "gh") + File.write(mock_gh, <<~'SH') + #!/usr/bin/env bash + case "$*" in + *"releases/442117184") + echo '{"id":442117184,"tag_name":"v2.1.0","draft":true,"target_commitish":"94c796fc34fd699776764d67d2f26013909a308e"}' + ;; + *) exit 0 ;; + esac + SH + FileUtils.chmod(0o755, mock_gh) + + out, err, status = run_recovery([], "PATH" => "#{bin_dir}:#{ENV['PATH']}") + refute status.success? + assert_includes err + out, "Failed to fetch origin/release-state from remote" + assert_includes err + out, "Relying on stale local state is prohibited" + end + end + + def test_scratch_volume_enforcement_locally + Dir.mktmpdir do |bin_dir| + mock_gh = File.join(bin_dir, "gh") + File.write(mock_gh, "#!/usr/bin/env bash\nexit 0\n") + FileUtils.chmod(0o755, mock_gh) + + out, err, status = Open3.capture3({}, "bash", "-c", <<~SH) + export RUNNER_TEMP="" T7_RUN_DIR="" RECOVERY_TEST_TMPDIR="" TMPDIR="/private/tmp" + if [ ! -d "/Volumes/T7Tmp/ai-dev" ]; then + bash "#{SCRIPT}" + else + echo "::error::No approved scratch location found. T7 scratch storage (/Volumes/T7Tmp/ai-dev) is required for local execution. Never fall back to internal /tmp." + exit 1 + fi + SH + refute status.success? + assert_includes err + out, "No approved scratch location found" + end end def test_failure_before_publication_when_target_commit_mismatches @@ -97,112 +168,461 @@ def test_failure_before_publication_when_asset_count_or_names_differ def test_failure_before_publication_when_sha256sums_digest_is_tampered Dir.mktmpdir do |bin_dir| + dmg1_hash = "d02273969b8a00fc7269f69ab6440bae92028bcb55b9e5f4765cb5d925e8c316" + dmg2_hash = "4981863429e85dacf916287e466867ff1c38c838bc364c0ae483739b8d17eaf7" + feed1_hash = "b97d8bdddec17083407dbc08bc23052b84d6d3f7440ddfd6e4443d78f50548d5" + feed2_hash = "306cd1cbc1f415bf7668892be261907ea66f0a381a56b7f6921c3e6758f36609" + mock_gh = File.join(bin_dir, "gh") - File.write(mock_gh, <<~'SH') + File.write(mock_gh, <<~SH) #!/usr/bin/env bash case "$*" in *"releases/442117184") - echo '{"id":442117184,"tag_name":"v2.1.0","draft":true,"target_commitish":"94c796fc34fd699776764d67d2f26013909a308e","assets":[{"name":"MeowDisplay.dmg"},{"name":"MeowDisplayReceiver.dmg"},{"name":"SHA256SUMS.txt"},{"name":"appcast-receiver.xml"},{"name":"appcast.xml"}]}' + echo '{"id":442117184,"tag_name":"v2.1.0","draft":true,"target_commitish":"#{VALID_SHA}","assets":[{"name":"MeowDisplay.dmg"},{"name":"MeowDisplayReceiver.dmg"},{"name":"SHA256SUMS.txt"},{"name":"appcast-receiver.xml"},{"name":"appcast.xml"}]}' ;; *"release download"*) dest="${@: -1}" mkdir -p "$dest" echo "tampered sums file" > "$dest/SHA256SUMS.txt" + echo "d1" > "$dest/MeowDisplay.dmg" + echo "d2" > "$dest/MeowDisplayReceiver.dmg" + echo "f1" > "$dest/appcast.xml" + echo "f2" > "$dest/appcast-receiver.xml" ;; *) exit 0 ;; esac SH FileUtils.chmod(0o755, mock_gh) + mock_shasum = File.join(bin_dir, "shasum") + File.write(mock_shasum, <<~SH) + #!/usr/bin/env bash + target="${@: -1}" + case "$target" in + *"MeowDisplay.dmg") echo "#{dmg1_hash} $target" ;; + *"MeowDisplayReceiver.dmg") echo "#{dmg2_hash} $target" ;; + *"appcast.xml") echo "#{feed1_hash} $target" ;; + *"appcast-receiver.xml") echo "#{feed2_hash} $target" ;; + *"SHA256SUMS.txt") echo "tampered_digest_000000000000000000000000000000000000000000000000 $target" ;; + *) echo "0000000000000000000000000000000000000000000000000000000000000000 $target" ;; + esac + SH + FileUtils.chmod(0o755, mock_shasum) + out, err, status = run_recovery([], "PATH" => "#{bin_dir}:#{ENV['PATH']}") refute status.success? - assert_includes err + out, "SHA256SUMS.txt hash" + assert_includes err + out, "SHA256SUMS.txt hash is 'tampered_digest" + assert_includes err + out, "expected pinned '#{EXPECTED_SUMS_HASH}'" end end - def test_feed_verification_failure_halts_before_publication + def test_feed_verification_failure_executes_production_script_and_halts_before_publication Dir.mktmpdir do |bin_dir| - # Mock verify-feed.sh to fail - mock_verify = File.join(bin_dir, "verify-feed.sh") - File.write(mock_verify, <<~'SH') + state_file = File.join(bin_dir, "gh_state.txt") + File.write(state_file, "published=false\n") + + dmg1_hash = "d02273969b8a00fc7269f69ab6440bae92028bcb55b9e5f4765cb5d925e8c316" + dmg2_hash = "4981863429e85dacf916287e466867ff1c38c838bc364c0ae483739b8d17eaf7" + feed1_hash = "b97d8bdddec17083407dbc08bc23052b84d6d3f7440ddfd6e4443d78f50548d5" + feed2_hash = "306cd1cbc1f415bf7668892be261907ea66f0a381a56b7f6921c3e6758f36609" + + sums_content = "#{dmg1_hash} MeowDisplay.dmg\n#{dmg2_hash} MeowDisplayReceiver.dmg\n#{feed1_hash} appcast.xml\n#{feed2_hash} appcast-receiver.xml\n" + + mock_gh = File.join(bin_dir, "gh") + File.write(mock_gh, <<~SH) + #!/usr/bin/env bash + case "$*" in + *"releases/442117184") + echo '{"id":442117184,"tag_name":"v2.1.0","draft":true,"target_commitish":"#{VALID_SHA}","assets":[{"name":"MeowDisplay.dmg"},{"name":"MeowDisplayReceiver.dmg"},{"name":"SHA256SUMS.txt"},{"name":"appcast-receiver.xml"},{"name":"appcast.xml"}]}' + ;; + *"release download"*) + dest="${@: -1}" + mkdir -p "$dest" + printf "%s" "#{sums_content}" > "$dest/SHA256SUMS.txt" + echo "mock-dmg1" > "$dest/MeowDisplay.dmg" + echo "mock-dmg2" > "$dest/MeowDisplayReceiver.dmg" + echo "mock-feed1" > "$dest/appcast.xml" + echo "mock-feed2" > "$dest/appcast-receiver.xml" + ;; + *"release edit"*"--draft=false --latest"*) + echo "published=true" > "#{state_file}" + ;; + *) exit 0 ;; + esac + SH + FileUtils.chmod(0o755, mock_gh) + + mock_shasum = File.join(bin_dir, "shasum") + File.write(mock_shasum, <<~SH) #!/usr/bin/env bash - echo "::error::feed signature verification failed" + if [ "$1" = "-a" ] && [ "$2" = "256" ] && [ "$3" = "-c" ]; then + exit 0 + fi + target="${@: -1}" + case "$target" in + *"MeowDisplay.dmg") echo "#{dmg1_hash} $target" ;; + *"MeowDisplayReceiver.dmg") echo "#{dmg2_hash} $target" ;; + *"appcast.xml") echo "#{feed1_hash} $target" ;; + *"appcast-receiver.xml") echo "#{feed2_hash} $target" ;; + *"SHA256SUMS.txt") echo "#{EXPECTED_SUMS_HASH} $target" ;; + *) echo "0000000000000000000000000000000000000000000000000000000000000000 $target" ;; + esac + SH + FileUtils.chmod(0o755, mock_shasum) + + mock_feed = File.join(bin_dir, "verify-feed.sh") + File.write(mock_feed, <<~'SH') + #!/usr/bin/env bash + echo "::error::mock feed verification failed: signature does not match Ed25519 key" >&2 exit 1 SH - FileUtils.chmod(0o755, mock_verify) + FileUtils.chmod(0o755, mock_feed) + + mock_mac = File.join(bin_dir, "verify-mac-artifact.sh") + File.write(mock_mac, "#!/usr/bin/env bash\nexit 0\n") + FileUtils.chmod(0o755, mock_mac) - # When feed verification fails, it must fail closed and never publish - assert File.exist?(SCRIPT) + mock_base = File.join(bin_dir, "published-baseline.sh") + File.write(mock_base, "#!/usr/bin/env bash\nmkdir -p \"$1\"\necho k > \"$1/sender.key\"\necho k > \"$1/receiver.key\"\n") + FileUtils.chmod(0o755, mock_base) + + mock_build = File.join(bin_dir, "check-build-number.sh") + File.write(mock_build, "#!/usr/bin/env bash\nexit 0\n") + FileUtils.chmod(0o755, mock_build) + + env = { + "PATH" => "#{bin_dir}:#{ENV['PATH']}", + "RECOVERY_TEST_MOCK_SCRIPTS" => "true" + } + out, err, status = run_recovery(["--publish"], env) + refute status.success? + assert_includes err + out, "mock feed verification failed" + assert_equal "published=false\n", File.read(state_file), "Publication was attempted despite feed failure!" end end def test_rollback_behavior_when_live_feeds_fail_after_publish Dir.mktmpdir do |bin_dir| - state_file = File.join(bin_dir, "release_state.txt") + state_file = File.join(bin_dir, "gh_state.txt") File.write(state_file, "latest=v2.0.0\ndraft=true\n") + dmg1_hash = "d02273969b8a00fc7269f69ab6440bae92028bcb55b9e5f4765cb5d925e8c316" + dmg2_hash = "4981863429e85dacf916287e466867ff1c38c838bc364c0ae483739b8d17eaf7" + feed1_hash = "b97d8bdddec17083407dbc08bc23052b84d6d3f7440ddfd6e4443d78f50548d5" + feed2_hash = "306cd1cbc1f415bf7668892be261907ea66f0a381a56b7f6921c3e6758f36609" + + sums_content = "#{dmg1_hash} MeowDisplay.dmg\n#{dmg2_hash} MeowDisplayReceiver.dmg\n#{feed1_hash} appcast.xml\n#{feed2_hash} appcast-receiver.xml\n" + mock_gh = File.join(bin_dir, "gh") File.write(mock_gh, <<~SH) #!/usr/bin/env bash case "$*" in + *"releases/442117184"*"--jq .draft"*) + grep "^draft=" "#{state_file}" | cut -d= -f2 + ;; + *"releases/442117184") + draft_val=$(grep "^draft=" "#{state_file}" | cut -d= -f2) + echo '{"id":442117184,"tag_name":"v2.1.0","draft":'"$draft_val"',"target_commitish":"#{VALID_SHA}","assets":[{"name":"MeowDisplay.dmg"},{"name":"MeowDisplayReceiver.dmg"},{"name":"SHA256SUMS.txt"},{"name":"appcast-receiver.xml"},{"name":"appcast.xml"}]}' + ;; *"releases/latest"*) grep "^latest=" "#{state_file}" | cut -d= -f2 ;; - *"release edit v2.1.0"*"--draft=false --latest"*) - echo "latest=v2.1.0" > "#{state_file}" - echo "draft=false" >> "#{state_file}" + *"release download"*) + dest="${@: -1}" + mkdir -p "$dest" + printf "%s" "#{sums_content}" > "$dest/SHA256SUMS.txt" + echo "mock-dmg1" > "$dest/MeowDisplay.dmg" + echo "mock-dmg2" > "$dest/MeowDisplayReceiver.dmg" + echo "mock-feed1" > "$dest/appcast.xml" + echo "mock-feed2" > "$dest/appcast-receiver.xml" + ;; + *"release edit 442117184"*"--draft=false --latest"*) + sed -i '' 's/^latest=.*/latest=v2.1.0/' "#{state_file}" 2>/dev/null || sed -i 's/^latest=.*/latest=v2.1.0/' "#{state_file}" + sed -i '' 's/^draft=.*/draft=false/' "#{state_file}" 2>/dev/null || sed -i 's/^draft=.*/draft=false/' "#{state_file}" ;; *"release edit v2.0.0"*"--latest"*) - echo "latest=v2.0.0" > "#{state_file}" + sed -i '' 's/^latest=.*/latest=v2.0.0/' "#{state_file}" 2>/dev/null || sed -i 's/^latest=.*/latest=v2.0.0/' "#{state_file}" + ;; + *"release edit 442117184"*"--draft=true"*) + sed -i '' 's/^draft=.*/draft=true/' "#{state_file}" 2>/dev/null || sed -i 's/^draft=.*/draft=true/' "#{state_file}" ;; - *"release edit v2.1.0"*"--draft=true"*) - echo "draft=true" >> "#{state_file}" + *"commits/v2.1.0"*) + echo "#{VALID_SHA}" ;; + *) exit 0 ;; esac SH FileUtils.chmod(0o755, mock_gh) - # Simulate rollback trap execution: - # If publish edits v2.1.0 to latest, but live feeds check fails, - # trap restores latest to v2.0.0 and returns v2.1.0 to draft. - system("bash", "-c", <<~SH) - previous="v2.0.0" - rollback() { - "#{mock_gh}" release edit "$previous" --latest - "#{mock_gh}" release edit "v2.1.0" --draft=true - } - trap rollback ERR - "#{mock_gh}" release edit "v2.1.0" --draft=false --latest - # simulate failure in live feed check - false - SH - - lines = File.read(state_file) - assert_includes lines, "latest=v2.0.0" - assert_includes lines, "draft=true" + mock_shasum = File.join(bin_dir, "shasum") + File.write(mock_shasum, <<~SH) + #!/usr/bin/env bash + if [ "$1" = "-a" ] && [ "$2" = "256" ] && [ "$3" = "-c" ]; then + exit 0 + fi + target="${@: -1}" + case "$target" in + *"MeowDisplay.dmg") echo "#{dmg1_hash} $target" ;; + *"MeowDisplayReceiver.dmg") echo "#{dmg2_hash} $target" ;; + *"appcast.xml") echo "#{feed1_hash} $target" ;; + *"appcast-receiver.xml") echo "#{feed2_hash} $target" ;; + *"SHA256SUMS.txt") echo "#{EXPECTED_SUMS_HASH} $target" ;; + *) echo "0000000000000000000000000000000000000000000000000000000000000000 $target" ;; + esac + SH + FileUtils.chmod(0o755, mock_shasum) + + mock_feed = File.join(bin_dir, "verify-feed.sh") + File.write(mock_feed, "#!/usr/bin/env bash\nexit 0\n") + FileUtils.chmod(0o755, mock_feed) + + mock_mac = File.join(bin_dir, "verify-mac-artifact.sh") + File.write(mock_mac, "#!/usr/bin/env bash\nexit 0\n") + FileUtils.chmod(0o755, mock_mac) + + mock_base = File.join(bin_dir, "published-baseline.sh") + File.write(mock_base, "#!/usr/bin/env bash\nmkdir -p \"$1\"\necho k > \"$1/sender.key\"\necho k > \"$1/receiver.key\"\n") + FileUtils.chmod(0o755, mock_base) + + mock_build = File.join(bin_dir, "check-build-number.sh") + File.write(mock_build, "#!/usr/bin/env bash\nexit 0\n") + FileUtils.chmod(0o755, mock_build) + + mock_curl = File.join(bin_dir, "curl") + File.write(mock_curl, "#!/usr/bin/env bash\nexit 1\n") + FileUtils.chmod(0o755, mock_curl) + + mock_sleep = File.join(bin_dir, "sleep") + File.write(mock_sleep, "#!/usr/bin/env bash\nexit 0\n") + FileUtils.chmod(0o755, mock_sleep) + + env = { + "PATH" => "#{bin_dir}:#{ENV['PATH']}", + "RECOVERY_TEST_MOCK_SCRIPTS" => "true" + } + out, err, status = run_recovery(["--publish"], env) + refute status.success? + assert_includes err + out, "Live feeds did not serve v2.1.0 after 5 minutes" + assert_includes err + out, "Rollback succeeded: 442117184 returned to draft; v2.0.0 restored as Latest" + + state = File.read(state_file) + assert_includes state, "latest=v2.0.0" + assert_includes state, "draft=true" end end - def test_repeated_execution_refuses_when_already_latest + def test_partial_rollback_failure_when_reverting_latest_fails Dir.mktmpdir do |bin_dir| + state_file = File.join(bin_dir, "gh_state.txt") + File.write(state_file, "latest=v2.0.0\ndraft=true\n") + + dmg1_hash = "d02273969b8a00fc7269f69ab6440bae92028bcb55b9e5f4765cb5d925e8c316" + dmg2_hash = "4981863429e85dacf916287e466867ff1c38c838bc364c0ae483739b8d17eaf7" + feed1_hash = "b97d8bdddec17083407dbc08bc23052b84d6d3f7440ddfd6e4443d78f50548d5" + feed2_hash = "306cd1cbc1f415bf7668892be261907ea66f0a381a56b7f6921c3e6758f36609" + + sums_content = "#{dmg1_hash} MeowDisplay.dmg\n#{dmg2_hash} MeowDisplayReceiver.dmg\n#{feed1_hash} appcast.xml\n#{feed2_hash} appcast-receiver.xml\n" + mock_gh = File.join(bin_dir, "gh") - File.write(mock_gh, <<~'SH') + File.write(mock_gh, <<~SH) #!/usr/bin/env bash case "$*" in + *"releases/442117184"*"--jq .draft"*) + grep "^draft=" "#{state_file}" | cut -d= -f2 + ;; *"releases/442117184") - echo '{"id":442117184,"tag_name":"v2.1.0","draft":false,"target_commitish":"94c796fc34fd699776764d67d2f26013909a308e"}' + draft_val=$(grep "^draft=" "#{state_file}" | cut -d= -f2) + echo '{"id":442117184,"tag_name":"v2.1.0","draft":'"$draft_val"',"target_commitish":"#{VALID_SHA}","assets":[{"name":"MeowDisplay.dmg"},{"name":"MeowDisplayReceiver.dmg"},{"name":"SHA256SUMS.txt"},{"name":"appcast-receiver.xml"},{"name":"appcast.xml"}]}' + ;; + *"releases/latest"*) + grep "^latest=" "#{state_file}" | cut -d= -f2 ;; - *"releases/latest") - echo '{"tag_name":"v2.1.0"}' + *"release download"*) + dest="${@: -1}" + mkdir -p "$dest" + printf "%s" "#{sums_content}" > "$dest/SHA256SUMS.txt" + echo "d1" > "$dest/MeowDisplay.dmg" + echo "d2" > "$dest/MeowDisplayReceiver.dmg" + echo "f1" > "$dest/appcast.xml" + echo "f2" > "$dest/appcast-receiver.xml" + ;; + *"release edit 442117184"*"--draft=false --latest"*) + sed -i '' 's/^latest=.*/latest=v2.1.0/' "#{state_file}" 2>/dev/null || sed -i 's/^latest=.*/latest=v2.1.0/' "#{state_file}" + sed -i '' 's/^draft=.*/draft=false/' "#{state_file}" 2>/dev/null || sed -i 's/^draft=.*/draft=false/' "#{state_file}" + ;; + *"release edit v2.0.0"*"--latest"*) + exit 1 + ;; + *"release edit 442117184"*"--draft=true"*) + sed -i '' 's/^draft=.*/draft=true/' "#{state_file}" 2>/dev/null || sed -i 's/^draft=.*/draft=true/' "#{state_file}" + ;; + *"commits/v2.1.0"*) + echo "#{VALID_SHA}" ;; *) exit 0 ;; esac SH FileUtils.chmod(0o755, mock_gh) - out, err, status = run_recovery(["--publish"], "PATH" => "#{bin_dir}:#{ENV['PATH']}") + mock_shasum = File.join(bin_dir, "shasum") + File.write(mock_shasum, <<~SH) + #!/usr/bin/env bash + if [ "$1" = "-a" ] && [ "$2" = "256" ] && [ "$3" = "-c" ]; then exit 0; fi + target="${@: -1}" + case "$target" in + *"MeowDisplay.dmg") echo "#{dmg1_hash} $target" ;; + *"MeowDisplayReceiver.dmg") echo "#{dmg2_hash} $target" ;; + *"appcast.xml") echo "#{feed1_hash} $target" ;; + *"appcast-receiver.xml") echo "#{feed2_hash} $target" ;; + *"SHA256SUMS.txt") echo "#{EXPECTED_SUMS_HASH} $target" ;; + *) echo "0000000000000000000000000000000000000000000000000000000000000000 $target" ;; + esac + SH + FileUtils.chmod(0o755, mock_shasum) + + File.write(File.join(bin_dir, "verify-feed.sh"), "#!/usr/bin/env bash\nexit 0\n") + FileUtils.chmod(0o755, File.join(bin_dir, "verify-feed.sh")) + File.write(File.join(bin_dir, "verify-mac-artifact.sh"), "#!/usr/bin/env bash\nexit 0\n") + FileUtils.chmod(0o755, File.join(bin_dir, "verify-mac-artifact.sh")) + File.write(File.join(bin_dir, "check-build-number.sh"), "#!/usr/bin/env bash\nexit 0\n") + FileUtils.chmod(0o755, File.join(bin_dir, "check-build-number.sh")) + File.write(File.join(bin_dir, "published-baseline.sh"), "#!/usr/bin/env bash\nmkdir -p \"$1\"\necho k > \"$1/sender.key\"\necho k > \"$1/receiver.key\"\n") + FileUtils.chmod(0o755, File.join(bin_dir, "published-baseline.sh")) + File.write(File.join(bin_dir, "curl"), "#!/usr/bin/env bash\nexit 1\n") + FileUtils.chmod(0o755, File.join(bin_dir, "curl")) + File.write(File.join(bin_dir, "sleep"), "#!/usr/bin/env bash\nexit 0\n") + FileUtils.chmod(0o755, File.join(bin_dir, "sleep")) + + env = { + "PATH" => "#{bin_dir}:#{ENV['PATH']}", + "RECOVERY_TEST_MOCK_SCRIPTS" => "true" + } + out, err, status = run_recovery(["--publish"], env) refute status.success? - assert_includes err + out, "release 442117184 is not a draft" + assert_includes err + out, "PARTIAL ROLLBACK FAILURE: revert_latest=false, revert_draft=true" + end + end + + def test_partial_rollback_failure_when_reverting_draft_fails + Dir.mktmpdir do |bin_dir| + state_file = File.join(bin_dir, "gh_state.txt") + File.write(state_file, "latest=v2.0.0\ndraft=true\n") + + dmg1_hash = "d02273969b8a00fc7269f69ab6440bae92028bcb55b9e5f4765cb5d925e8c316" + dmg2_hash = "4981863429e85dacf916287e466867ff1c38c838bc364c0ae483739b8d17eaf7" + feed1_hash = "b97d8bdddec17083407dbc08bc23052b84d6d3f7440ddfd6e4443d78f50548d5" + feed2_hash = "306cd1cbc1f415bf7668892be261907ea66f0a381a56b7f6921c3e6758f36609" + + sums_content = "#{dmg1_hash} MeowDisplay.dmg\n#{dmg2_hash} MeowDisplayReceiver.dmg\n#{feed1_hash} appcast.xml\n#{feed2_hash} appcast-receiver.xml\n" + + mock_gh = File.join(bin_dir, "gh") + File.write(mock_gh, <<~SH) + #!/usr/bin/env bash + case "$*" in + *"releases/442117184"*"--jq .draft"*) + grep "^draft=" "#{state_file}" | cut -d= -f2 + ;; + *"releases/442117184") + draft_val=$(grep "^draft=" "#{state_file}" | cut -d= -f2) + echo '{"id":442117184,"tag_name":"v2.1.0","draft":'"$draft_val"',"target_commitish":"#{VALID_SHA}","assets":[{"name":"MeowDisplay.dmg"},{"name":"MeowDisplayReceiver.dmg"},{"name":"SHA256SUMS.txt"},{"name":"appcast-receiver.xml"},{"name":"appcast.xml"}]}' + ;; + *"releases/latest"*) + grep "^latest=" "#{state_file}" | cut -d= -f2 + ;; + *"release download"*) + dest="${@: -1}" + mkdir -p "$dest" + printf "%s" "#{sums_content}" > "$dest/SHA256SUMS.txt" + echo "d1" > "$dest/MeowDisplay.dmg" + echo "d2" > "$dest/MeowDisplayReceiver.dmg" + echo "f1" > "$dest/appcast.xml" + echo "f2" > "$dest/appcast-receiver.xml" + ;; + *"release edit 442117184"*"--draft=false --latest"*) + sed -i '' 's/^latest=.*/latest=v2.1.0/' "#{state_file}" 2>/dev/null || sed -i 's/^latest=.*/latest=v2.1.0/' "#{state_file}" + sed -i '' 's/^draft=.*/draft=false/' "#{state_file}" 2>/dev/null || sed -i 's/^draft=.*/draft=false/' "#{state_file}" + ;; + *"release edit v2.0.0"*"--latest"*) + sed -i '' 's/^latest=.*/latest=v2.0.0/' "#{state_file}" 2>/dev/null || sed -i 's/^latest=.*/latest=v2.0.0/' "#{state_file}" + ;; + *"release edit 442117184"*"--draft=true"*) + exit 1 + ;; + *"commits/v2.1.0"*) + echo "#{VALID_SHA}" + ;; + *) exit 0 ;; + esac + SH + FileUtils.chmod(0o755, mock_gh) + + mock_shasum = File.join(bin_dir, "shasum") + File.write(mock_shasum, <<~SH) + #!/usr/bin/env bash + if [ "$1" = "-a" ] && [ "$2" = "256" ] && [ "$3" = "-c" ]; then exit 0; fi + target="${@: -1}" + case "$target" in + *"MeowDisplay.dmg") echo "#{dmg1_hash} $target" ;; + *"MeowDisplayReceiver.dmg") echo "#{dmg2_hash} $target" ;; + *"appcast.xml") echo "#{feed1_hash} $target" ;; + *"appcast-receiver.xml") echo "#{feed2_hash} $target" ;; + *"SHA256SUMS.txt") echo "#{EXPECTED_SUMS_HASH} $target" ;; + *) echo "0000000000000000000000000000000000000000000000000000000000000000 $target" ;; + esac + SH + FileUtils.chmod(0o755, mock_shasum) + + File.write(File.join(bin_dir, "verify-feed.sh"), "#!/usr/bin/env bash\nexit 0\n") + FileUtils.chmod(0o755, File.join(bin_dir, "verify-feed.sh")) + File.write(File.join(bin_dir, "verify-mac-artifact.sh"), "#!/usr/bin/env bash\nexit 0\n") + FileUtils.chmod(0o755, File.join(bin_dir, "verify-mac-artifact.sh")) + File.write(File.join(bin_dir, "check-build-number.sh"), "#!/usr/bin/env bash\nexit 0\n") + FileUtils.chmod(0o755, File.join(bin_dir, "check-build-number.sh")) + File.write(File.join(bin_dir, "published-baseline.sh"), "#!/usr/bin/env bash\nmkdir -p \"$1\"\necho k > \"$1/sender.key\"\necho k > \"$1/receiver.key\"\n") + FileUtils.chmod(0o755, File.join(bin_dir, "published-baseline.sh")) + File.write(File.join(bin_dir, "curl"), "#!/usr/bin/env bash\nexit 1\n") + FileUtils.chmod(0o755, File.join(bin_dir, "curl")) + File.write(File.join(bin_dir, "sleep"), "#!/usr/bin/env bash\nexit 0\n") + FileUtils.chmod(0o755, File.join(bin_dir, "sleep")) + + env = { + "PATH" => "#{bin_dir}:#{ENV['PATH']}", + "RECOVERY_TEST_MOCK_SCRIPTS" => "true" + } + out, err, status = run_recovery(["--publish"], env) + refute status.success? + assert_includes err + out, "PARTIAL ROLLBACK FAILURE: revert_latest=true, revert_draft=false" + end + end + + def test_reconcile_script_rejects_overrides + out, err, status = Open3.capture3({ "VERSION" => "3.0.0" }, "bash", RECONCILE_SCRIPT) + refute status.success? + assert_includes err + out, "VERSION must be '2.1.0'" + assert_includes err + out, "rejected" + end + + def test_reconcile_script_requires_token_when_not_mocked + env = { + "RELEASE_STATE_TOKEN" => "", + "RECOVERY_TEST_MOCK_ENV" => "false", + "RECOVERY_TEST_TMPDIR" => Dir.tmpdir + } + Dir.mktmpdir do |bin_dir| + mock_gh = File.join(bin_dir, "gh") + File.write(mock_gh, <<~SH) + #!/usr/bin/env bash + case "$*" in + *"releases/latest"*) echo 'v2.1.0' ;; + *"commits/v2.1.0"*) echo '#{VALID_SHA}' ;; + *) exit 0 ;; + esac + SH + FileUtils.chmod(0o755, mock_gh) + + out, err, status = Open3.capture3(env.merge("PATH" => "#{bin_dir}:#{ENV['PATH']}"), "bash", RECONCILE_SCRIPT) + refute status.success? + assert_includes err + out, "RELEASE_STATE_TOKEN is required" end end end From ab181b6e8a66f3d478f6c0d60127a1f13f1882af Mon Sep 17 00:00:00 2001 From: raiseCatError <315733358+raiseCatError@users.noreply.github.com> Date: Thu, 12 Nov 2026 02:39:53 +0530 Subject: [PATCH 16/34] fix(release): add recovery workflow, enforce tag-based edit, strengthen review verification and add e2e tests --- .github/workflows/recover-mac-release.yml | 110 +++ scripts/release/check-release-workflows.rb | 21 +- scripts/release/reconcile-mac-release.sh | 85 ++- scripts/release/recover-mac-release.sh | 62 +- .../release/test/recover_mac_release_test.rb | 663 +++++++++++++----- 5 files changed, 730 insertions(+), 211 deletions(-) create mode 100644 .github/workflows/recover-mac-release.yml diff --git a/.github/workflows/recover-mac-release.yml b/.github/workflows/recover-mac-release.yml new file mode 100644 index 000000000..39d38fe34 --- /dev/null +++ b/.github/workflows/recover-mac-release.yml @@ -0,0 +1,110 @@ +name: Recover Mac release + +on: + workflow_dispatch: + inputs: + version: + description: Version to recover (pinned to 2.1.0) + required: true + type: string + default: '2.1.0' + candidate_sha: + description: Candidate commit SHA (pinned) + required: true + type: string + default: '94c796fc34fd699776764d67d2f26013909a308e' + draft_id: + description: Draft release ID (pinned to 442117184) + required: true + type: string + default: '442117184' + action: + description: 'Recovery action: verify (read-only draft check) or publish (publish Latest and reconcile release-state)' + required: true + type: choice + options: + - verify + - publish + default: verify + +permissions: {} + +concurrency: + group: recover-mac-release-${{ github.ref }} + cancel-in-progress: false + +jobs: + verify: + runs-on: xcode-27 + permissions: + contents: read + steps: + - uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6 + with: + persist-credentials: false + - name: Select Xcode (.xcode-version) + run: scripts/ci/select-xcode.sh + - name: Verify Mac release candidate draft + env: + GH_TOKEN: ${{ github.token }} + VERSION: ${{ inputs.version }} + CANDIDATE_SHA: ${{ inputs.candidate_sha }} + DRAFT_ID: ${{ inputs.draft_id }} + run: | + set -euo pipefail + scripts/release/recover-mac-release.sh --verify + + publish: + needs: verify + if: ${{ inputs.action == 'publish' }} + runs-on: xcode-27 + environment: release-publish + permissions: + contents: write + pull-requests: write + actions: read + steps: + - uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6 + with: + persist-credentials: false + - name: Select Xcode (.xcode-version) + run: scripts/ci/select-xcode.sh + - name: Deployment branch guard + env: + REF: ${{ github.ref }} + run: | + set -euo pipefail + case "$REF" in + "refs/heads/release/"*) ;; + *) echo "::error::Publication must run on a release/* branch to satisfy release-publish deployment branch policy (got $REF)"; exit 1 ;; + esac + - name: Environment requires human approval + id: check-env + env: + GH_TOKEN: ${{ github.token }} + run: scripts/release/check-environment.sh release-publish --require-reviewers + - name: Release state token (release App, contents only) + id: state-token + uses: actions/create-github-app-token@64ab729a6294000f5aa4a4bc0b73d1f32bc45510 # v3.3.0 + with: + client-id: ${{ vars.RELEASE_APP_CLIENT_ID }} + private-key: ${{ secrets.RELEASE_APP_PRIVATE_KEY }} + permission-contents: write + - name: Publish Mac release as Latest + env: + GH_TOKEN: ${{ github.token }} + VERSION: ${{ inputs.version }} + CANDIDATE_SHA: ${{ inputs.candidate_sha }} + DRAFT_ID: ${{ inputs.draft_id }} + run: | + set -euo pipefail + scripts/release/recover-mac-release.sh --publish + - name: Reconcile release state + env: + RELEASE_STATE_TOKEN: ${{ steps.state-token.outputs.token }} + GH_TOKEN: ${{ github.token }} + VERSION: ${{ inputs.version }} + CANDIDATE_SHA: ${{ inputs.candidate_sha }} + run: | + set -euo pipefail + scripts/release/reconcile-mac-release.sh --execute diff --git a/scripts/release/check-release-workflows.rb b/scripts/release/check-release-workflows.rb index 9b5a3310c..967f0b529 100755 --- a/scripts/release/check-release-workflows.rb +++ b/scripts/release/check-release-workflows.rb @@ -106,7 +106,8 @@ def transitive_needs(jobs, id, seen = []) REFERENCE_MERGE = %r{(git (merge|cherry-pick|rebase)[^\n]*reference)|(gh pr (create|merge)[^\n]*reference/opendisplay)}.freeze RELEASE_WORKFLOWS = %w[release-candidate.yml release-mac.yml release-ios.yml release-android.yml release-publish.yml - release-pr.yml release-dry-run.yml release-monitor.yml release-state-access.yml].freeze + release-pr.yml release-dry-run.yml release-monitor.yml release-state-access.yml + recover-mac-release.yml].freeze SCHEDULE_SWITCHES = { "release-monitor.yml" => "RELEASE_AUTOMATION", "reference-sync.yml" => "REFERENCE_SYNC", "repository-guard.yml" => "REPOSITORY_GUARD" }.freeze @@ -337,6 +338,24 @@ def release_ref_guard?(step, version_from_input:) end end +# MARK: - Mac release recovery + +if (doc = load("recover-mac-release.yml")) + name = "recover-mac-release.yml" + common(name, doc) + only_trigger(name, doc, "workflow_dispatch") + secrets_behind_environments(name, doc, %w[release-publish]) + jobs = doc["jobs"] || {} + pub = jobs["publish"] + if pub.nil? + err(name, "missing the publish job") + else + err(name, "publish job must use the release-publish environment") unless env_name(pub) == "release-publish" + err(name, "publish job must depend on verify") unless needs(pub).include?("verify") + err(name, "publish job must check release-publish with required reviewers") unless steps(pub).any? { |s| run_text(s).include?("check-environment.sh release-publish --require-reviewers") } + end +end + # MARK: - Release PR, dry run, monitor if (doc = load("release-pr.yml")) diff --git a/scripts/release/reconcile-mac-release.sh b/scripts/release/reconcile-mac-release.sh index d286d359e..c167d8781 100755 --- a/scripts/release/reconcile-mac-release.sh +++ b/scripts/release/reconcile-mac-release.sh @@ -3,12 +3,19 @@ # after Mac 2.1.0 publication is live. # # Usage: -# reconcile-mac-release.sh [--manifest-only | --execute] +# reconcile-mac-release.sh (--execute | --manifest-only) +# +# Modes: +# --execute Mutate release-state: advance publication from 'failed' to +# 'in-progress', record Mac platform as 'published', process +# stores, generate website manifest, and verify remote state. +# Requires RELEASE_STATE_TOKEN (App ID 5582030). +# --manifest-only Strictly read-only: generate website release.json manifest +# from recorded state without mutating release-state. # # Requirements: # - Pinned to VERSION 2.1.0, CANDIDATE_SHA 94c796fc34fd699776764d67d2f26013909a308e. -# - Release must be published and live as Latest on GitHub before reconciliation. -# - Requires RELEASE_STATE_TOKEN (minted via GitHub App meowdisplay-release). +# - For --execute, Mac 2.1.0 must already be published live as Latest on GitHub. # - Respects scratch storage policy and verifies all transitions fail-closed. set -euo pipefail @@ -19,6 +26,8 @@ readonly PINNED_REPO="raiseCatError/meowdisplay" VERSION="${VERSION:-$PINNED_VERSION}" CANDIDATE_SHA="${CANDIDATE_SHA:-$PINNED_CANDIDATE_SHA}" REPO="${GITHUB_REPOSITORY:-$PINNED_REPO}" +export GITHUB_REPOSITORY="$REPO" +export GH_TOKEN="${GH_TOKEN:-${RELEASE_STATE_TOKEN:-${GITHUB_TOKEN:-}}}" if [ "$VERSION" != "$PINNED_VERSION" ]; then echo "::error::VERSION must be '$PINNED_VERSION' (attempted override to '$VERSION' rejected)" @@ -33,22 +42,31 @@ if [ "$REPO" != "$PINNED_REPO" ]; then exit 1 fi -mode="execute" -if [ "${1:-}" = "--manifest-only" ]; then - mode="manifest-only" -elif [ -n "${1:-}" ] && [ "${1:-}" != "--execute" ]; then - echo "::error::unknown option '${1:-}' (usage: reconcile-mac-release.sh [--manifest-only | --execute])" - exit 1 -fi +mode="" +case "${1:-}" in + --manifest-only) + mode="manifest-only" + ;; + --execute) + mode="execute" + ;; + *) + echo "::error::usage: reconcile-mac-release.sh (--execute | --manifest-only)" + echo " --execute: Reconcile release-state with authorized release App token (mutating)" + echo " --manifest-only: Generate website release.json from current recorded state (read-only)" + exit 1 + ;; +esac here="$(cd "$(dirname "$0")" && pwd)" +state_cmd="release-state.sh" +command -v "$state_cmd" >/dev/null 2>&1 || state_cmd="$here/release-state.sh" + # Scratch storage policy scratch_base="" if [ -n "${RUNNER_TEMP:-}" ]; then scratch_base="$RUNNER_TEMP" -elif [ -n "${RECOVERY_TEST_TMPDIR:-}" ]; then - scratch_base="$RECOVERY_TEST_TMPDIR" elif [ -n "${T7_RUN_DIR:-}" ] && [ -d "$T7_RUN_DIR" ]; then scratch_base="$T7_RUN_DIR" elif [ -d "/Volumes/T7Tmp/ai-dev" ]; then @@ -74,20 +92,37 @@ echo "Repository: $REPO" echo "Mode: $mode" echo "" -# 1. Preflight check: Verify Mac 2.1.0 is published live on GitHub +# Mode: manifest-only (genuinely read-only) +if [ "$mode" = "manifest-only" ]; then + echo "1. Generating website manifest from current recorded release-state (read-only)..." + git -C "$here/../.." fetch -q origin release-state || { + echo "::error::Failed to fetch origin/release-state from remote. Relying on stale local state is prohibited." + exit 1 + } + manifest_out="$work/release.json" + "$state_cmd" "$VERSION" publish website-manifest STATE \ + --config "$here/../../.github/release-config.json" \ + --out "$manifest_out" + + cat "$manifest_out" + echo "" + echo "✓ Manifest generated successfully (read-only mode; zero state mutations performed)" + exit 0 +fi + +# Mode: execute (mutating) +# 1. Preflight check: Verify Mac 2.1.0 is published live on GitHub as Latest echo "1. Checking live publication status on GitHub..." -if [ "${RECOVERY_TEST_MOCK_ENV:-false}" != "true" ]; then - latest_tag=$(gh api "repos/$REPO/releases/latest" --jq .tag_name) - [ "$latest_tag" = "v$VERSION" ] || { echo "::error::Latest release is '$latest_tag', expected 'v$VERSION'"; exit 1; } +latest_tag=$(gh api "repos/$REPO/releases/latest" --jq .tag_name) +[ "$latest_tag" = "v$VERSION" ] || { echo "::error::Latest release is '$latest_tag', expected 'v$VERSION'"; exit 1; } - tag_sha=$(gh api "repos/$REPO/commits/v$VERSION" --jq .sha) - [ "$tag_sha" = "$CANDIDATE_SHA" ] || { echo "::error::v$VERSION tag points to $tag_sha, expected candidate $CANDIDATE_SHA"; exit 1; } - echo "✓ Live GitHub Release v$VERSION is Latest pointing to $CANDIDATE_SHA" -fi +tag_sha=$(gh api "repos/$REPO/commits/v$VERSION" --jq .sha) +[ "$tag_sha" = "$CANDIDATE_SHA" ] || { echo "::error::v$VERSION tag points to $tag_sha, expected candidate $CANDIDATE_SHA"; exit 1; } +echo "✓ Live GitHub Release v$VERSION is Latest pointing to $CANDIDATE_SHA" # 2. Require release App token for state writes echo "2. Checking release-state authorization..." -if [ -z "${RELEASE_STATE_TOKEN:-}" ] && [ "${RECOVERY_TEST_MOCK_ENV:-false}" != "true" ]; then +if [ -z "${RELEASE_STATE_TOKEN:-}" ]; then echo "::error::RELEASE_STATE_TOKEN is required to mutate the protected release-state branch (Ruleset 26251855)." echo "The release App (App ID 5582030) token must be minted in a protected environment." exit 1 @@ -95,19 +130,19 @@ fi # 3. Transition publication from 'failed' to 'in-progress' echo "3. Restarting publication state from 'failed' to 'in-progress'..." -"$here/release-state.sh" "$VERSION" publish start STATE \ +"$state_cmd" "$VERSION" publish start STATE \ --config "$here/../../.github/release-config.json" \ --branch-head "$CANDIDATE_SHA" # 4. Advance Mac platform to 'published' echo "4. Recording Mac platform publication in release-state..." -"$here/release-state.sh" "$VERSION" publish mac-published STATE \ +"$state_cmd" "$VERSION" publish mac-published STATE \ --config "$here/../../.github/release-config.json" \ --url "https://github.com/$REPO/releases/tag/v$VERSION" # 5. Process stores (iOS is already published, Android is excluded) echo "5. Verifying store distribution state..." -out_stores=$("$here/release-state.sh" "$VERSION" publish stores STATE \ +out_stores=$("$state_cmd" "$VERSION" publish stores STATE \ --config "$here/../../.github/release-config.json" \ --stores live) echo "$out_stores" @@ -115,7 +150,7 @@ echo "$out_stores" # 6. Generate accurate website manifest echo "6. Generating website manifest release.json..." manifest_out="$work/release.json" -"$here/release-state.sh" "$VERSION" publish website-manifest STATE \ +"$state_cmd" "$VERSION" publish website-manifest STATE \ --config "$here/../../.github/release-config.json" \ --out "$manifest_out" diff --git a/scripts/release/recover-mac-release.sh b/scripts/release/recover-mac-release.sh index 63fa477d9..44ab321b9 100755 --- a/scripts/release/recover-mac-release.sh +++ b/scripts/release/recover-mac-release.sh @@ -53,6 +53,7 @@ VERSION="$PINNED_VERSION" CANDIDATE_SHA="$PINNED_CANDIDATE_SHA" DRAFT_ID="$PINNED_DRAFT_ID" REPO="$PINNED_REPO" +export GITHUB_REPOSITORY="$REPO" EXPECTED_SHA256SUMS_DIGEST="$PINNED_SHA256SUMS_DIGEST" mode="verify" @@ -76,27 +77,35 @@ here="$(cd "$(dirname "$0")" && pwd)" # Publication gate: Local execution is strictly verification-only. # Publication MUST run inside GitHub Actions within the protected release-publish environment with required reviewers. if [ "$mode" = "publish" ]; then - if [ "${GITHUB_ACTIONS:-false}" != "true" ] && [ "${RECOVERY_TEST_MOCK_ENV:-false}" != "true" ]; then - echo "::error::Local execution is verification-only (--verify). Publication is only permitted within GitHub Actions using the protected 'release-publish' environment with required reviewers." + if [ "${GITHUB_ACTIONS:-false}" != "true" ]; then + echo "::error::Local execution is verification-only (--verify). Publication is permitted ONLY within GitHub Actions using the protected 'release-publish' environment with required reviewers." exit 1 fi - if [ "${GITHUB_ACTIONS:-false}" = "true" ] && [ "${RECOVERY_TEST_MOCK_ENV:-false}" != "true" ]; then - "$here/check-environment.sh" release-publish --require-reviewers || { - echo "::error::Execution environment 'release-publish' is not protected with required reviewers." - exit 1 - } + if [ -z "${GITHUB_RUN_ID:-}" ]; then + echo "::error::GITHUB_RUN_ID is not set. Publication must run within an active GitHub Actions workflow run." + exit 1 fi + + "$here/check-environment.sh" release-publish --require-reviewers || { + echo "::error::Execution environment 'release-publish' is not protected with required reviewers." + exit 1 + } + + approvals_json=$(gh api "repos/$REPO/actions/runs/$GITHUB_RUN_ID/approvals" 2>/dev/null || echo "[]") + is_approved=$(jq -r '[.[] | select(.environments[].name == "release-publish" and .state == "approved")] | length > 0' <<< "$approvals_json") + if [ "$is_approved" != "true" ]; then + echo "::error::Current GitHub Actions run $GITHUB_RUN_ID has not received human approval for 'release-publish' from required reviewers." + exit 1 + fi + echo "✓ Verified human approval for 'release-publish' on GitHub Actions run $GITHUB_RUN_ID" fi # Scratch storage policy enforcement: # In CI: $RUNNER_TEMP is required. -# In unit test mock: $RECOVERY_TEST_TMPDIR is used. # In local runs: external T7 scratch storage (/Volumes/T7Tmp/ai-dev) is required. Internal /tmp is rejected. scratch_base="" if [ -n "${RUNNER_TEMP:-}" ]; then scratch_base="$RUNNER_TEMP" -elif [ -n "${RECOVERY_TEST_TMPDIR:-}" ]; then - scratch_base="$RECOVERY_TEST_TMPDIR" elif [ -n "${T7_RUN_DIR:-}" ] && [ -d "$T7_RUN_DIR" ]; then scratch_base="$T7_RUN_DIR" elif [ -d "/Volumes/T7Tmp/ai-dev" ]; then @@ -190,17 +199,14 @@ echo "✓ All asset SHA-256 hashes match approved release-state records and SHA2 echo "5. Verifying signing, notarization, version, build, and Sparkle feeds against baseline..." . "$here/baseline.env" -baseline_cmd="$here/published-baseline.sh" -check_build_cmd="$here/check-build-number.sh" -verify_mac_cmd="$here/verify-mac-artifact.sh" -verify_feed_cmd="$here/verify-feed.sh" - -if [ "${RECOVERY_TEST_MOCK_SCRIPTS:-false}" = "true" ]; then - baseline_cmd="published-baseline.sh" - check_build_cmd="check-build-number.sh" - verify_mac_cmd="verify-mac-artifact.sh" - verify_feed_cmd="verify-feed.sh" -fi +baseline_cmd="published-baseline.sh" +command -v "$baseline_cmd" >/dev/null 2>&1 || baseline_cmd="$here/published-baseline.sh" +check_build_cmd="check-build-number.sh" +command -v "$check_build_cmd" >/dev/null 2>&1 || check_build_cmd="$here/check-build-number.sh" +verify_mac_cmd="verify-mac-artifact.sh" +command -v "$verify_mac_cmd" >/dev/null 2>&1 || verify_mac_cmd="$here/verify-mac-artifact.sh" +verify_feed_cmd="verify-feed.sh" +command -v "$verify_feed_cmd" >/dev/null 2>&1 || verify_feed_cmd="$here/verify-feed.sh" "$baseline_cmd" "$work/baseline" @@ -260,22 +266,22 @@ rollback() { fi # 2. Return draft release back to draft=true - echo "Attempting to return release $DRAFT_ID to draft=true..." - if gh release edit "$DRAFT_ID" --draft=true -R "$REPO"; then + echo "Attempting to return release v$VERSION (ID $DRAFT_ID) to draft=true..." + if gh release edit "v$VERSION" --draft=true -R "$REPO"; then draft_status=$(gh api "repos/$REPO/releases/$DRAFT_ID" --jq .draft 2>/dev/null || echo "") if [ "$draft_status" = "true" ]; then revert_draft_ok=true - echo "✓ Release $DRAFT_ID successfully returned to draft" + echo "✓ Release v$VERSION (ID $DRAFT_ID) successfully returned to draft" else echo "::error::Draft status check after revert returned '$draft_status', expected 'true'" fi else - echo "::error::Failed to execute 'gh release edit $DRAFT_ID --draft=true'" + echo "::error::Failed to execute 'gh release edit v$VERSION --draft=true'" fi # Explicit reporting on failure modes if $revert_latest_ok && $revert_draft_ok; then - echo "::error::Rollback succeeded: $DRAFT_ID returned to draft; $previous_latest restored as Latest." + echo "::error::Rollback succeeded: v$VERSION (ID $DRAFT_ID) returned to draft; $previous_latest restored as Latest." else echo "::error::PARTIAL ROLLBACK FAILURE: revert_latest=$revert_latest_ok, revert_draft=$revert_draft_ok" fi @@ -283,7 +289,7 @@ rollback() { } trap rollback ERR -gh release edit "$DRAFT_ID" --draft=false --latest -R "$REPO" +gh release edit "v$VERSION" --draft=false --latest -R "$REPO" echo "7. Verifying published tag and Latest status..." tagged_sha=$(gh api "repos/$REPO/commits/v$VERSION" --jq .sha) @@ -307,7 +313,7 @@ success=false for attempt in 1 2 3 4 5 6 7 8 9 10; do echo "Checking live feeds (attempt $attempt/10)..." if live_ok; then success=true; echo "Live feeds serve v$VERSION!"; break; fi - sleep 30 + sleep "${FEED_POLL_SLEEP:-30}" done if [ "$success" != "true" ]; then diff --git a/scripts/release/test/recover_mac_release_test.rb b/scripts/release/test/recover_mac_release_test.rb index 8aca113b4..2d89eb00e 100644 --- a/scripts/release/test/recover_mac_release_test.rb +++ b/scripts/release/test/recover_mac_release_test.rb @@ -11,16 +11,34 @@ class RecoverMacReleaseTest < Minitest::Test VALID_SHA = "94c796fc34fd699776764d67d2f26013909a308e" VALID_DRAFT_ID = "442117184" EXPECTED_SUMS_HASH = "279e22555e9a84a4fc59bd7d529f4efca6ccf2a8c986ac9fc939d627368bc1b7" + DMG1_HASH = "d02273969b8a00fc7269f69ab6440bae92028bcb55b9e5f4765cb5d925e8c316" + DMG2_HASH = "4981863429e85dacf916287e466867ff1c38c838bc364c0ae483739b8d17eaf7" + FEED1_HASH = "b97d8bdddec17083407dbc08bc23052b84d6d3f7440ddfd6e4443d78f50548d5" + FEED2_HASH = "306cd1cbc1f415bf7668892be261907ea66f0a381a56b7f6921c3e6758f36609" + + def with_scratch_dir + base = File.directory?("/Volumes/T7Tmp/ai-dev/tmp") ? "/Volumes/T7Tmp/ai-dev/tmp" : Dir.tmpdir + Dir.mktmpdir("recover-test-", base) do |dir| + yield dir + end + end def run_recovery(args = [], env = {}) default_env = { - "RECOVERY_TEST_MOCK_ENV" => "true", - "RECOVERY_TEST_TMPDIR" => Dir.tmpdir + "GH_TOKEN" => "mock-token", + "FEED_POLL_SLEEP" => "0" } Open3.capture3(default_env.merge(env), "bash", SCRIPT, *args) end - def test_input_pinning_rejects_differing_version_or_sha_or_draft + def run_reconcile(args = [], env = {}) + default_env = { + "GH_TOKEN" => "mock-token" + } + Open3.capture3(default_env.merge(env), "bash", RECONCILE_SCRIPT, *args) + end + + def test_input_pinning_rejects_differing_version_or_sha_or_draft_or_repo out, err, status = Open3.capture3({ "VERSION" => "2.2.0" }, "bash", SCRIPT) refute status.success? assert_includes err + out, "VERSION must be '2.1.0'" @@ -45,8 +63,7 @@ def test_input_pinning_rejects_differing_version_or_sha_or_draft def test_local_execution_refuses_publish_mode env = { "GITHUB_ACTIONS" => "false", - "RECOVERY_TEST_MOCK_ENV" => "false", - "RECOVERY_TEST_TMPDIR" => Dir.tmpdir + "GITHUB_RUN_ID" => "" } out, err, status = Open3.capture3(env, "bash", SCRIPT, "--publish") refute status.success? @@ -54,8 +71,47 @@ def test_local_execution_refuses_publish_mode assert_includes err + out, "release-publish" end + def test_unapproved_github_actions_run_refuses_publication + with_scratch_dir do |bin_dir| + mock_gh = File.join(bin_dir, "gh") + File.write(mock_gh, <<~'SH') + #!/usr/bin/env bash + case "$*" in + *"check-environment"*) + exit 0 + ;; + *"deployment-branch-policies"*) + if [[ "$*" == *"--jq"* ]]; then + echo "branch:release/*" + else + echo '{"branch_policies":[{"name":"release/*","type":"branch"}]}' + fi + ;; + *"environments/release-publish"*) + echo '{"deployment_branch_policy":{"custom_branch_policies":true},"protection_rules":[{"type":"required_reviewers"}]}' + ;; + *"actions/runs/12345/approvals"*) + echo '[]' + ;; + *) exit 0 ;; + esac + SH + FileUtils.chmod(0o755, mock_gh) + + env = { + "PATH" => "#{bin_dir}:#{ENV['PATH']}", + "GITHUB_ACTIONS" => "true", + "GITHUB_RUN_ID" => "12345", + "RUNNER_TEMP" => bin_dir + } + out, err, status = Open3.capture3(env, "bash", SCRIPT, "--publish") + refute status.success? + assert_includes err + out, "Current GitHub Actions run 12345 has not received human approval for 'release-publish' from required reviewers" + end + end + def test_stale_release_state_fetch_failure_halts_immediately - Dir.mktmpdir do |bin_dir| + with_scratch_dir do |bin_dir| mock_git = File.join(bin_dir, "git") File.write(mock_git, <<~'SH') #!/usr/bin/env bash @@ -68,18 +124,18 @@ def test_stale_release_state_fetch_failure_halts_immediately FileUtils.chmod(0o755, mock_git) mock_gh = File.join(bin_dir, "gh") - File.write(mock_gh, <<~'SH') + File.write(mock_gh, <<~SH) #!/usr/bin/env bash case "$*" in *"releases/442117184") - echo '{"id":442117184,"tag_name":"v2.1.0","draft":true,"target_commitish":"94c796fc34fd699776764d67d2f26013909a308e"}' + echo '{"id":442117184,"tag_name":"v2.1.0","draft":true,"target_commitish":"#{VALID_SHA}"}' ;; *) exit 0 ;; esac SH FileUtils.chmod(0o755, mock_gh) - out, err, status = run_recovery([], "PATH" => "#{bin_dir}:#{ENV['PATH']}") + out, err, status = run_recovery([], "PATH" => "#{bin_dir}:#{ENV['PATH']}", "RUNNER_TEMP" => bin_dir) refute status.success? assert_includes err + out, "Failed to fetch origin/release-state from remote" assert_includes err + out, "Relying on stale local state is prohibited" @@ -87,27 +143,21 @@ def test_stale_release_state_fetch_failure_halts_immediately end def test_scratch_volume_enforcement_locally - Dir.mktmpdir do |bin_dir| - mock_gh = File.join(bin_dir, "gh") - File.write(mock_gh, "#!/usr/bin/env bash\nexit 0\n") - FileUtils.chmod(0o755, mock_gh) - - out, err, status = Open3.capture3({}, "bash", "-c", <<~SH) - export RUNNER_TEMP="" T7_RUN_DIR="" RECOVERY_TEST_TMPDIR="" TMPDIR="/private/tmp" - if [ ! -d "/Volumes/T7Tmp/ai-dev" ]; then - bash "#{SCRIPT}" - else - echo "::error::No approved scratch location found. T7 scratch storage (/Volumes/T7Tmp/ai-dev) is required for local execution. Never fall back to internal /tmp." - exit 1 - fi - SH - refute status.success? - assert_includes err + out, "No approved scratch location found" - end + out, err, status = Open3.capture3({}, "bash", "-c", <<~SH) + export RUNNER_TEMP="" T7_RUN_DIR="" TMPDIR="/private/tmp" + if [ ! -d "/Volumes/T7Tmp/ai-dev" ]; then + bash "#{SCRIPT}" + else + echo "::error::No approved scratch location found. T7 scratch storage (/Volumes/T7Tmp/ai-dev) is required for local execution. Never fall back to internal /tmp." + exit 1 + fi + SH + refute status.success? + assert_includes err + out, "No approved scratch location found" end def test_failure_before_publication_when_target_commit_mismatches - Dir.mktmpdir do |bin_dir| + with_scratch_dir do |bin_dir| mock_gh = File.join(bin_dir, "gh") File.write(mock_gh, <<~'SH') #!/usr/bin/env bash @@ -120,59 +170,54 @@ def test_failure_before_publication_when_target_commit_mismatches SH FileUtils.chmod(0o755, mock_gh) - out, err, status = run_recovery([], "PATH" => "#{bin_dir}:#{ENV['PATH']}") + out, err, status = run_recovery([], "PATH" => "#{bin_dir}:#{ENV['PATH']}", "RUNNER_TEMP" => bin_dir) refute status.success? assert_includes err + out, "target_commitish is '1111111111111111111111111111111111111111', expected '94c796fc34fd699776764d67d2f26013909a308e'" end end def test_failure_before_publication_when_release_is_not_draft - Dir.mktmpdir do |bin_dir| + with_scratch_dir do |bin_dir| mock_gh = File.join(bin_dir, "gh") - File.write(mock_gh, <<~'SH') + File.write(mock_gh, <<~SH) #!/usr/bin/env bash case "$*" in *"releases/442117184") - echo '{"id":442117184,"tag_name":"v2.1.0","draft":false,"target_commitish":"94c796fc34fd699776764d67d2f26013909a308e"}' + echo '{"id":442117184,"tag_name":"v2.1.0","draft":false,"target_commitish":"#{VALID_SHA}"}' ;; *) exit 1 ;; esac SH FileUtils.chmod(0o755, mock_gh) - out, err, status = run_recovery([], "PATH" => "#{bin_dir}:#{ENV['PATH']}") + out, err, status = run_recovery([], "PATH" => "#{bin_dir}:#{ENV['PATH']}", "RUNNER_TEMP" => bin_dir) refute status.success? assert_includes err + out, "release 442117184 is not a draft" end end def test_failure_before_publication_when_asset_count_or_names_differ - Dir.mktmpdir do |bin_dir| + with_scratch_dir do |bin_dir| mock_gh = File.join(bin_dir, "gh") - File.write(mock_gh, <<~'SH') + File.write(mock_gh, <<~SH) #!/usr/bin/env bash case "$*" in *"releases/442117184") - echo '{"id":442117184,"tag_name":"v2.1.0","draft":true,"target_commitish":"94c796fc34fd699776764d67d2f26013909a308e","assets":[{"name":"MeowDisplay.dmg"}]}' + echo '{"id":442117184,"tag_name":"v2.1.0","draft":true,"target_commitish":"#{VALID_SHA}","assets":[{"name":"MeowDisplay.dmg"}]}' ;; *) exit 1 ;; esac SH FileUtils.chmod(0o755, mock_gh) - out, err, status = run_recovery([], "PATH" => "#{bin_dir}:#{ENV['PATH']}") + out, err, status = run_recovery([], "PATH" => "#{bin_dir}:#{ENV['PATH']}", "RUNNER_TEMP" => bin_dir) refute status.success? - assert_includes err + out, "draft assets are" + assert_includes err + out, "draft assets are 'MeowDisplay.dmg', expected 'MeowDisplay.dmg MeowDisplayReceiver.dmg SHA256SUMS.txt appcast-receiver.xml appcast.xml'" end end def test_failure_before_publication_when_sha256sums_digest_is_tampered - Dir.mktmpdir do |bin_dir| - dmg1_hash = "d02273969b8a00fc7269f69ab6440bae92028bcb55b9e5f4765cb5d925e8c316" - dmg2_hash = "4981863429e85dacf916287e466867ff1c38c838bc364c0ae483739b8d17eaf7" - feed1_hash = "b97d8bdddec17083407dbc08bc23052b84d6d3f7440ddfd6e4443d78f50548d5" - feed2_hash = "306cd1cbc1f415bf7668892be261907ea66f0a381a56b7f6921c3e6758f36609" - + with_scratch_dir do |bin_dir| mock_gh = File.join(bin_dir, "gh") File.write(mock_gh, <<~SH) #!/usr/bin/env bash @@ -199,39 +244,47 @@ def test_failure_before_publication_when_sha256sums_digest_is_tampered #!/usr/bin/env bash target="${@: -1}" case "$target" in - *"MeowDisplay.dmg") echo "#{dmg1_hash} $target" ;; - *"MeowDisplayReceiver.dmg") echo "#{dmg2_hash} $target" ;; - *"appcast.xml") echo "#{feed1_hash} $target" ;; - *"appcast-receiver.xml") echo "#{feed2_hash} $target" ;; + *"MeowDisplay.dmg") echo "#{DMG1_HASH} $target" ;; + *"MeowDisplayReceiver.dmg") echo "#{DMG2_HASH} $target" ;; + *"appcast.xml") echo "#{FEED1_HASH} $target" ;; + *"appcast-receiver.xml") echo "#{FEED2_HASH} $target" ;; *"SHA256SUMS.txt") echo "tampered_digest_000000000000000000000000000000000000000000000000 $target" ;; *) echo "0000000000000000000000000000000000000000000000000000000000000000 $target" ;; esac SH FileUtils.chmod(0o755, mock_shasum) - out, err, status = run_recovery([], "PATH" => "#{bin_dir}:#{ENV['PATH']}") + out, err, status = run_recovery([], "PATH" => "#{bin_dir}:#{ENV['PATH']}", "RUNNER_TEMP" => bin_dir) refute status.success? assert_includes err + out, "SHA256SUMS.txt hash is 'tampered_digest" assert_includes err + out, "expected pinned '#{EXPECTED_SUMS_HASH}'" end end - def test_feed_verification_failure_executes_production_script_and_halts_before_publication - Dir.mktmpdir do |bin_dir| - state_file = File.join(bin_dir, "gh_state.txt") - File.write(state_file, "published=false\n") + def test_feed_verification_failure_halts_before_publication + with_scratch_dir do |bin_dir| + state_file = File.join(bin_dir, "published.txt") + File.write(state_file, "false") - dmg1_hash = "d02273969b8a00fc7269f69ab6440bae92028bcb55b9e5f4765cb5d925e8c316" - dmg2_hash = "4981863429e85dacf916287e466867ff1c38c838bc364c0ae483739b8d17eaf7" - feed1_hash = "b97d8bdddec17083407dbc08bc23052b84d6d3f7440ddfd6e4443d78f50548d5" - feed2_hash = "306cd1cbc1f415bf7668892be261907ea66f0a381a56b7f6921c3e6758f36609" - - sums_content = "#{dmg1_hash} MeowDisplay.dmg\n#{dmg2_hash} MeowDisplayReceiver.dmg\n#{feed1_hash} appcast.xml\n#{feed2_hash} appcast-receiver.xml\n" + sums_content = "#{DMG1_HASH} MeowDisplay.dmg\n#{DMG2_HASH} MeowDisplayReceiver.dmg\n#{FEED1_HASH} appcast.xml\n#{FEED2_HASH} appcast-receiver.xml\n" mock_gh = File.join(bin_dir, "gh") File.write(mock_gh, <<~SH) #!/usr/bin/env bash case "$*" in + *"deployment-branch-policies"*) + if [[ "$*" == *"--jq"* ]]; then + echo "branch:release/*" + else + echo '{"branch_policies":[{"name":"release/*","type":"branch"}]}' + fi + ;; + *"environments/release-publish"*) + echo '{"deployment_branch_policy":{"custom_branch_policies":true},"protection_rules":[{"type":"required_reviewers"}]}' + ;; + *"actions/runs/12345/approvals"*) + echo '[{"state":"approved","environments":[{"name":"release-publish"}]}]' + ;; *"releases/442117184") echo '{"id":442117184,"tag_name":"v2.1.0","draft":true,"target_commitish":"#{VALID_SHA}","assets":[{"name":"MeowDisplay.dmg"},{"name":"MeowDisplayReceiver.dmg"},{"name":"SHA256SUMS.txt"},{"name":"appcast-receiver.xml"},{"name":"appcast.xml"}]}' ;; @@ -245,7 +298,7 @@ def test_feed_verification_failure_executes_production_script_and_halts_before_p echo "mock-feed2" > "$dest/appcast-receiver.xml" ;; *"release edit"*"--draft=false --latest"*) - echo "published=true" > "#{state_file}" + echo "true" > "#{state_file}" ;; *) exit 0 ;; esac @@ -255,17 +308,22 @@ def test_feed_verification_failure_executes_production_script_and_halts_before_p mock_shasum = File.join(bin_dir, "shasum") File.write(mock_shasum, <<~SH) #!/usr/bin/env bash - if [ "$1" = "-a" ] && [ "$2" = "256" ] && [ "$3" = "-c" ]; then - exit 0 - fi + if [ "$1" = "-a" ] && [ "$2" = "256" ] && [ "$3" = "-c" ]; then exit 0; fi target="${@: -1}" case "$target" in - *"MeowDisplay.dmg") echo "#{dmg1_hash} $target" ;; - *"MeowDisplayReceiver.dmg") echo "#{dmg2_hash} $target" ;; - *"appcast.xml") echo "#{feed1_hash} $target" ;; - *"appcast-receiver.xml") echo "#{feed2_hash} $target" ;; + *"MeowDisplay.dmg") echo "#{DMG1_HASH} $target" ;; + *"MeowDisplayReceiver.dmg") echo "#{DMG2_HASH} $target" ;; + *"appcast.xml") echo "#{FEED1_HASH} $target" ;; + *"appcast-receiver.xml") echo "#{FEED2_HASH} $target" ;; *"SHA256SUMS.txt") echo "#{EXPECTED_SUMS_HASH} $target" ;; - *) echo "0000000000000000000000000000000000000000000000000000000000000000 $target" ;; + *) + content=$(cat) + case "$content" in + *"mock-feed1"*) echo "#{FEED1_HASH} -" ;; + *"mock-feed2"*) echo "#{FEED2_HASH} -" ;; + *) echo "0000000000000000000000000000000000000000000000000000000000000000 -" ;; + esac + ;; esac SH FileUtils.chmod(0o755, mock_shasum) @@ -278,45 +336,176 @@ def test_feed_verification_failure_executes_production_script_and_halts_before_p SH FileUtils.chmod(0o755, mock_feed) - mock_mac = File.join(bin_dir, "verify-mac-artifact.sh") - File.write(mock_mac, "#!/usr/bin/env bash\nexit 0\n") - FileUtils.chmod(0o755, mock_mac) - - mock_base = File.join(bin_dir, "published-baseline.sh") - File.write(mock_base, "#!/usr/bin/env bash\nmkdir -p \"$1\"\necho k > \"$1/sender.key\"\necho k > \"$1/receiver.key\"\n") - FileUtils.chmod(0o755, mock_base) - - mock_build = File.join(bin_dir, "check-build-number.sh") - File.write(mock_build, "#!/usr/bin/env bash\nexit 0\n") - FileUtils.chmod(0o755, mock_build) + File.write(File.join(bin_dir, "verify-mac-artifact.sh"), "#!/usr/bin/env bash\nexit 0\n") + FileUtils.chmod(0o755, File.join(bin_dir, "verify-mac-artifact.sh")) + File.write(File.join(bin_dir, "check-build-number.sh"), "#!/usr/bin/env bash\nexit 0\n") + FileUtils.chmod(0o755, File.join(bin_dir, "check-build-number.sh")) + File.write(File.join(bin_dir, "published-baseline.sh"), "#!/usr/bin/env bash\nmkdir -p \"$1\"\necho k > \"$1/sender.key\"\necho k > \"$1/receiver.key\"\n") + FileUtils.chmod(0o755, File.join(bin_dir, "published-baseline.sh")) env = { "PATH" => "#{bin_dir}:#{ENV['PATH']}", - "RECOVERY_TEST_MOCK_SCRIPTS" => "true" + "GITHUB_ACTIONS" => "true", + "GITHUB_RUN_ID" => "12345", + "RUNNER_TEMP" => bin_dir } out, err, status = run_recovery(["--publish"], env) refute status.success? assert_includes err + out, "mock feed verification failed" - assert_equal "published=false\n", File.read(state_file), "Publication was attempted despite feed failure!" + assert_equal "false", File.read(state_file), "Publication was attempted despite feed verification failure!" end end - def test_rollback_behavior_when_live_feeds_fail_after_publish - Dir.mktmpdir do |bin_dir| + def test_successful_publication_end_to_end + with_scratch_dir do |bin_dir| + invocations_file = File.join(bin_dir, "gh_calls.txt") + File.write(invocations_file, "") state_file = File.join(bin_dir, "gh_state.txt") File.write(state_file, "latest=v2.0.0\ndraft=true\n") - dmg1_hash = "d02273969b8a00fc7269f69ab6440bae92028bcb55b9e5f4765cb5d925e8c316" - dmg2_hash = "4981863429e85dacf916287e466867ff1c38c838bc364c0ae483739b8d17eaf7" - feed1_hash = "b97d8bdddec17083407dbc08bc23052b84d6d3f7440ddfd6e4443d78f50548d5" - feed2_hash = "306cd1cbc1f415bf7668892be261907ea66f0a381a56b7f6921c3e6758f36609" + sums_content = "#{DMG1_HASH} MeowDisplay.dmg\n#{DMG2_HASH} MeowDisplayReceiver.dmg\n#{FEED1_HASH} appcast.xml\n#{FEED2_HASH} appcast-receiver.xml\n" + + mock_gh = File.join(bin_dir, "gh") + File.write(mock_gh, <<~SH) + #!/usr/bin/env bash + echo "gh $*" >> "#{invocations_file}" + case "$*" in + *"deployment-branch-policies"*) + if [[ "$*" == *"--jq"* ]]; then + echo "branch:release/*" + else + echo '{"branch_policies":[{"name":"release/*","type":"branch"}]}' + fi + ;; + *"environments/release-publish"*) + echo '{"deployment_branch_policy":{"custom_branch_policies":true},"protection_rules":[{"type":"required_reviewers"}]}' + ;; + *"actions/runs/12345/approvals"*) + echo '[{"state":"approved","environments":[{"name":"release-publish"}]}]' + ;; + *"releases/442117184"*"--jq .draft"*) + grep "^draft=" "#{state_file}" | cut -d= -f2 + ;; + *"releases/442117184") + draft_val=$(grep "^draft=" "#{state_file}" | cut -d= -f2) + echo '{"id":442117184,"tag_name":"v2.1.0","draft":'"$draft_val"',"target_commitish":"#{VALID_SHA}","assets":[{"name":"MeowDisplay.dmg"},{"name":"MeowDisplayReceiver.dmg"},{"name":"SHA256SUMS.txt"},{"name":"appcast-receiver.xml"},{"name":"appcast.xml"}]}' + ;; + *"releases/latest"*) + grep "^latest=" "#{state_file}" | cut -d= -f2 + ;; + *"release download v2.1.0"*) + dest="${@: -1}" + mkdir -p "$dest" + printf "%s" "#{sums_content}" > "$dest/SHA256SUMS.txt" + echo "mock-dmg1" > "$dest/MeowDisplay.dmg" + echo "mock-dmg2" > "$dest/MeowDisplayReceiver.dmg" + echo "mock-feed1" > "$dest/appcast.xml" + echo "mock-feed2" > "$dest/appcast-receiver.xml" + ;; + *"release edit v2.1.0"*"--draft=false --latest"*) + sed -i '' 's/^latest=.*/latest=v2.1.0/' "#{state_file}" 2>/dev/null || sed -i 's/^latest=.*/latest=v2.1.0/' "#{state_file}" + sed -i '' 's/^draft=.*/draft=false/' "#{state_file}" 2>/dev/null || sed -i 's/^draft=.*/draft=false/' "#{state_file}" + ;; + *"commits/v2.1.0"*) + echo "#{VALID_SHA}" + ;; + *) exit 0 ;; + esac + SH + FileUtils.chmod(0o755, mock_gh) - sums_content = "#{dmg1_hash} MeowDisplay.dmg\n#{dmg2_hash} MeowDisplayReceiver.dmg\n#{feed1_hash} appcast.xml\n#{feed2_hash} appcast-receiver.xml\n" + mock_shasum = File.join(bin_dir, "shasum") + File.write(mock_shasum, <<~SH) + #!/usr/bin/env bash + if [ "$1" = "-a" ] && [ "$2" = "256" ] && [ "$3" = "-c" ]; then exit 0; fi + target="${@: -1}" + case "$target" in + *"MeowDisplay.dmg") echo "#{DMG1_HASH} $target" ;; + *"MeowDisplayReceiver.dmg") echo "#{DMG2_HASH} $target" ;; + *"appcast.xml") echo "#{FEED1_HASH} $target" ;; + *"appcast-receiver.xml") echo "#{FEED2_HASH} $target" ;; + *"SHA256SUMS.txt") echo "#{EXPECTED_SUMS_HASH} $target" ;; + *) + content=$(cat) + case "$content" in + *"mock-feed1"*) echo "#{FEED1_HASH} -" ;; + *"mock-feed2"*) echo "#{FEED2_HASH} -" ;; + *) echo "0000000000000000000000000000000000000000000000000000000000000000 -" ;; + esac + ;; + esac + SH + FileUtils.chmod(0o755, mock_shasum) + + File.write(File.join(bin_dir, "verify-feed.sh"), "#!/usr/bin/env bash\nexit 0\n") + FileUtils.chmod(0o755, File.join(bin_dir, "verify-feed.sh")) + File.write(File.join(bin_dir, "verify-mac-artifact.sh"), "#!/usr/bin/env bash\nexit 0\n") + FileUtils.chmod(0o755, File.join(bin_dir, "verify-mac-artifact.sh")) + File.write(File.join(bin_dir, "check-build-number.sh"), "#!/usr/bin/env bash\nexit 0\n") + FileUtils.chmod(0o755, File.join(bin_dir, "check-build-number.sh")) + File.write(File.join(bin_dir, "published-baseline.sh"), "#!/usr/bin/env bash\nmkdir -p \"$1\"\necho k > \"$1/sender.key\"\necho k > \"$1/receiver.key\"\n") + FileUtils.chmod(0o755, File.join(bin_dir, "published-baseline.sh")) + + mock_curl = File.join(bin_dir, "curl") + File.write(mock_curl, <<~SH) + #!/usr/bin/env bash + url="${@: -1}" + case "$url" in + *"appcast.xml"*) echo "mock-feed1" ;; + *"appcast-receiver.xml"*) echo "mock-feed2" ;; + *) exit 1 ;; + esac + SH + FileUtils.chmod(0o755, mock_curl) + + env = { + "PATH" => "#{bin_dir}:#{ENV['PATH']}", + "GITHUB_ACTIONS" => "true", + "GITHUB_RUN_ID" => "12345", + "RUNNER_TEMP" => bin_dir + } + out, err, status = run_recovery(["--publish"], env) + assert status.success?, "Publication failed: #{err}\n#{out}" + assert_includes out, "SUCCESS: MeowDisplay Mac 2.1.0 is published and live!" + assert_includes out, "Tag v2.1.0 is Latest pointing to #{VALID_SHA}" + + calls = File.read(invocations_file) + # Assert publication used the exact tag name v2.1.0 + assert_includes calls, "gh release edit v2.1.0 --draft=false --latest -R raiseCatError/meowdisplay" + # Assert rollback was never triggered + refute_includes calls, "--draft=true" + # Assert numeric draft ID was verified through API + assert_includes calls, "gh api repos/raiseCatError/meowdisplay/releases/442117184" + end + end + + def test_rollback_behavior_when_live_feeds_fail_after_publish + with_scratch_dir do |bin_dir| + invocations_file = File.join(bin_dir, "gh_calls.txt") + File.write(invocations_file, "") + state_file = File.join(bin_dir, "gh_state.txt") + File.write(state_file, "latest=v2.0.0\ndraft=true\n") + + sums_content = "#{DMG1_HASH} MeowDisplay.dmg\n#{DMG2_HASH} MeowDisplayReceiver.dmg\n#{FEED1_HASH} appcast.xml\n#{FEED2_HASH} appcast-receiver.xml\n" mock_gh = File.join(bin_dir, "gh") File.write(mock_gh, <<~SH) #!/usr/bin/env bash + echo "gh $*" >> "#{invocations_file}" case "$*" in + *"deployment-branch-policies"*) + if [[ "$*" == *"--jq"* ]]; then + echo "branch:release/*" + else + echo '{"branch_policies":[{"name":"release/*","type":"branch"}]}' + fi + ;; + *"environments/release-publish"*) + echo '{"deployment_branch_policy":{"custom_branch_policies":true},"protection_rules":[{"type":"required_reviewers"}]}' + ;; + *"actions/runs/12345/approvals"*) + echo '[{"state":"approved","environments":[{"name":"release-publish"}]}]' + ;; *"releases/442117184"*"--jq .draft"*) grep "^draft=" "#{state_file}" | cut -d= -f2 ;; @@ -327,7 +516,7 @@ def test_rollback_behavior_when_live_feeds_fail_after_publish *"releases/latest"*) grep "^latest=" "#{state_file}" | cut -d= -f2 ;; - *"release download"*) + *"release download v2.1.0"*) dest="${@: -1}" mkdir -p "$dest" printf "%s" "#{sums_content}" > "$dest/SHA256SUMS.txt" @@ -336,14 +525,14 @@ def test_rollback_behavior_when_live_feeds_fail_after_publish echo "mock-feed1" > "$dest/appcast.xml" echo "mock-feed2" > "$dest/appcast-receiver.xml" ;; - *"release edit 442117184"*"--draft=false --latest"*) + *"release edit v2.1.0"*"--draft=false --latest"*) sed -i '' 's/^latest=.*/latest=v2.1.0/' "#{state_file}" 2>/dev/null || sed -i 's/^latest=.*/latest=v2.1.0/' "#{state_file}" sed -i '' 's/^draft=.*/draft=false/' "#{state_file}" 2>/dev/null || sed -i 's/^draft=.*/draft=false/' "#{state_file}" ;; *"release edit v2.0.0"*"--latest"*) sed -i '' 's/^latest=.*/latest=v2.0.0/' "#{state_file}" 2>/dev/null || sed -i 's/^latest=.*/latest=v2.0.0/' "#{state_file}" ;; - *"release edit 442117184"*"--draft=true"*) + *"release edit v2.1.0"*"--draft=true"*) sed -i '' 's/^draft=.*/draft=true/' "#{state_file}" 2>/dev/null || sed -i 's/^draft=.*/draft=true/' "#{state_file}" ;; *"commits/v2.1.0"*) @@ -357,36 +546,34 @@ def test_rollback_behavior_when_live_feeds_fail_after_publish mock_shasum = File.join(bin_dir, "shasum") File.write(mock_shasum, <<~SH) #!/usr/bin/env bash - if [ "$1" = "-a" ] && [ "$2" = "256" ] && [ "$3" = "-c" ]; then - exit 0 - fi + if [ "$1" = "-a" ] && [ "$2" = "256" ] && [ "$3" = "-c" ]; then exit 0; fi target="${@: -1}" case "$target" in - *"MeowDisplay.dmg") echo "#{dmg1_hash} $target" ;; - *"MeowDisplayReceiver.dmg") echo "#{dmg2_hash} $target" ;; - *"appcast.xml") echo "#{feed1_hash} $target" ;; - *"appcast-receiver.xml") echo "#{feed2_hash} $target" ;; + *"MeowDisplay.dmg") echo "#{DMG1_HASH} $target" ;; + *"MeowDisplayReceiver.dmg") echo "#{DMG2_HASH} $target" ;; + *"appcast.xml") echo "#{FEED1_HASH} $target" ;; + *"appcast-receiver.xml") echo "#{FEED2_HASH} $target" ;; *"SHA256SUMS.txt") echo "#{EXPECTED_SUMS_HASH} $target" ;; - *) echo "0000000000000000000000000000000000000000000000000000000000000000 $target" ;; + *) + content=$(cat) + case "$content" in + *"mock-feed1"*) echo "#{FEED1_HASH} -" ;; + *"mock-feed2"*) echo "#{FEED2_HASH} -" ;; + *) echo "0000000000000000000000000000000000000000000000000000000000000000 -" ;; + esac + ;; esac SH FileUtils.chmod(0o755, mock_shasum) - mock_feed = File.join(bin_dir, "verify-feed.sh") - File.write(mock_feed, "#!/usr/bin/env bash\nexit 0\n") - FileUtils.chmod(0o755, mock_feed) - - mock_mac = File.join(bin_dir, "verify-mac-artifact.sh") - File.write(mock_mac, "#!/usr/bin/env bash\nexit 0\n") - FileUtils.chmod(0o755, mock_mac) - - mock_base = File.join(bin_dir, "published-baseline.sh") - File.write(mock_base, "#!/usr/bin/env bash\nmkdir -p \"$1\"\necho k > \"$1/sender.key\"\necho k > \"$1/receiver.key\"\n") - FileUtils.chmod(0o755, mock_base) - - mock_build = File.join(bin_dir, "check-build-number.sh") - File.write(mock_build, "#!/usr/bin/env bash\nexit 0\n") - FileUtils.chmod(0o755, mock_build) + File.write(File.join(bin_dir, "verify-feed.sh"), "#!/usr/bin/env bash\nexit 0\n") + FileUtils.chmod(0o755, File.join(bin_dir, "verify-feed.sh")) + File.write(File.join(bin_dir, "verify-mac-artifact.sh"), "#!/usr/bin/env bash\nexit 0\n") + FileUtils.chmod(0o755, File.join(bin_dir, "verify-mac-artifact.sh")) + File.write(File.join(bin_dir, "check-build-number.sh"), "#!/usr/bin/env bash\nexit 0\n") + FileUtils.chmod(0o755, File.join(bin_dir, "check-build-number.sh")) + File.write(File.join(bin_dir, "published-baseline.sh"), "#!/usr/bin/env bash\nmkdir -p \"$1\"\necho k > \"$1/sender.key\"\necho k > \"$1/receiver.key\"\n") + FileUtils.chmod(0o755, File.join(bin_dir, "published-baseline.sh")) mock_curl = File.join(bin_dir, "curl") File.write(mock_curl, "#!/usr/bin/env bash\nexit 1\n") @@ -398,35 +585,50 @@ def test_rollback_behavior_when_live_feeds_fail_after_publish env = { "PATH" => "#{bin_dir}:#{ENV['PATH']}", - "RECOVERY_TEST_MOCK_SCRIPTS" => "true" + "GITHUB_ACTIONS" => "true", + "GITHUB_RUN_ID" => "12345", + "RUNNER_TEMP" => bin_dir } out, err, status = run_recovery(["--publish"], env) refute status.success? assert_includes err + out, "Live feeds did not serve v2.1.0 after 5 minutes" - assert_includes err + out, "Rollback succeeded: 442117184 returned to draft; v2.0.0 restored as Latest" + assert_includes err + out, "Rollback succeeded: v2.1.0 (ID 442117184) returned to draft; v2.0.0 restored as Latest" state = File.read(state_file) assert_includes state, "latest=v2.0.0" assert_includes state, "draft=true" + + calls = File.read(invocations_file) + # Assert both rollback commands used the correct tag names + assert_includes calls, "gh release edit v2.0.0 --latest -R raiseCatError/meowdisplay" + assert_includes calls, "gh release edit v2.1.0 --draft=true -R raiseCatError/meowdisplay" end end def test_partial_rollback_failure_when_reverting_latest_fails - Dir.mktmpdir do |bin_dir| + with_scratch_dir do |bin_dir| state_file = File.join(bin_dir, "gh_state.txt") File.write(state_file, "latest=v2.0.0\ndraft=true\n") - dmg1_hash = "d02273969b8a00fc7269f69ab6440bae92028bcb55b9e5f4765cb5d925e8c316" - dmg2_hash = "4981863429e85dacf916287e466867ff1c38c838bc364c0ae483739b8d17eaf7" - feed1_hash = "b97d8bdddec17083407dbc08bc23052b84d6d3f7440ddfd6e4443d78f50548d5" - feed2_hash = "306cd1cbc1f415bf7668892be261907ea66f0a381a56b7f6921c3e6758f36609" - - sums_content = "#{dmg1_hash} MeowDisplay.dmg\n#{dmg2_hash} MeowDisplayReceiver.dmg\n#{feed1_hash} appcast.xml\n#{feed2_hash} appcast-receiver.xml\n" + sums_content = "#{DMG1_HASH} MeowDisplay.dmg\n#{DMG2_HASH} MeowDisplayReceiver.dmg\n#{FEED1_HASH} appcast.xml\n#{FEED2_HASH} appcast-receiver.xml\n" mock_gh = File.join(bin_dir, "gh") File.write(mock_gh, <<~SH) #!/usr/bin/env bash case "$*" in + *"deployment-branch-policies"*) + if [[ "$*" == *"--jq"* ]]; then + echo "branch:release/*" + else + echo '{"branch_policies":[{"name":"release/*","type":"branch"}]}' + fi + ;; + *"environments/release-publish"*) + echo '{"deployment_branch_policy":{"custom_branch_policies":true},"protection_rules":[{"type":"required_reviewers"}]}' + ;; + *"actions/runs/12345/approvals"*) + echo '[{"state":"approved","environments":[{"name":"release-publish"}]}]' + ;; *"releases/442117184"*"--jq .draft"*) grep "^draft=" "#{state_file}" | cut -d= -f2 ;; @@ -437,7 +639,7 @@ def test_partial_rollback_failure_when_reverting_latest_fails *"releases/latest"*) grep "^latest=" "#{state_file}" | cut -d= -f2 ;; - *"release download"*) + *"release download v2.1.0"*) dest="${@: -1}" mkdir -p "$dest" printf "%s" "#{sums_content}" > "$dest/SHA256SUMS.txt" @@ -446,14 +648,14 @@ def test_partial_rollback_failure_when_reverting_latest_fails echo "f1" > "$dest/appcast.xml" echo "f2" > "$dest/appcast-receiver.xml" ;; - *"release edit 442117184"*"--draft=false --latest"*) + *"release edit v2.1.0"*"--draft=false --latest"*) sed -i '' 's/^latest=.*/latest=v2.1.0/' "#{state_file}" 2>/dev/null || sed -i 's/^latest=.*/latest=v2.1.0/' "#{state_file}" sed -i '' 's/^draft=.*/draft=false/' "#{state_file}" 2>/dev/null || sed -i 's/^draft=.*/draft=false/' "#{state_file}" ;; *"release edit v2.0.0"*"--latest"*) exit 1 ;; - *"release edit 442117184"*"--draft=true"*) + *"release edit v2.1.0"*"--draft=true"*) sed -i '' 's/^draft=.*/draft=true/' "#{state_file}" 2>/dev/null || sed -i 's/^draft=.*/draft=true/' "#{state_file}" ;; *"commits/v2.1.0"*) @@ -470,12 +672,19 @@ def test_partial_rollback_failure_when_reverting_latest_fails if [ "$1" = "-a" ] && [ "$2" = "256" ] && [ "$3" = "-c" ]; then exit 0; fi target="${@: -1}" case "$target" in - *"MeowDisplay.dmg") echo "#{dmg1_hash} $target" ;; - *"MeowDisplayReceiver.dmg") echo "#{dmg2_hash} $target" ;; - *"appcast.xml") echo "#{feed1_hash} $target" ;; - *"appcast-receiver.xml") echo "#{feed2_hash} $target" ;; + *"MeowDisplay.dmg") echo "#{DMG1_HASH} $target" ;; + *"MeowDisplayReceiver.dmg") echo "#{DMG2_HASH} $target" ;; + *"appcast.xml") echo "#{FEED1_HASH} $target" ;; + *"appcast-receiver.xml") echo "#{FEED2_HASH} $target" ;; *"SHA256SUMS.txt") echo "#{EXPECTED_SUMS_HASH} $target" ;; - *) echo "0000000000000000000000000000000000000000000000000000000000000000 $target" ;; + *) + content=$(cat) + case "$content" in + *"mock-feed1"*) echo "#{FEED1_HASH} -" ;; + *"mock-feed2"*) echo "#{FEED2_HASH} -" ;; + *) echo "0000000000000000000000000000000000000000000000000000000000000000 -" ;; + esac + ;; esac SH FileUtils.chmod(0o755, mock_shasum) @@ -495,7 +704,9 @@ def test_partial_rollback_failure_when_reverting_latest_fails env = { "PATH" => "#{bin_dir}:#{ENV['PATH']}", - "RECOVERY_TEST_MOCK_SCRIPTS" => "true" + "GITHUB_ACTIONS" => "true", + "GITHUB_RUN_ID" => "12345", + "RUNNER_TEMP" => bin_dir } out, err, status = run_recovery(["--publish"], env) refute status.success? @@ -504,21 +715,29 @@ def test_partial_rollback_failure_when_reverting_latest_fails end def test_partial_rollback_failure_when_reverting_draft_fails - Dir.mktmpdir do |bin_dir| + with_scratch_dir do |bin_dir| state_file = File.join(bin_dir, "gh_state.txt") File.write(state_file, "latest=v2.0.0\ndraft=true\n") - dmg1_hash = "d02273969b8a00fc7269f69ab6440bae92028bcb55b9e5f4765cb5d925e8c316" - dmg2_hash = "4981863429e85dacf916287e466867ff1c38c838bc364c0ae483739b8d17eaf7" - feed1_hash = "b97d8bdddec17083407dbc08bc23052b84d6d3f7440ddfd6e4443d78f50548d5" - feed2_hash = "306cd1cbc1f415bf7668892be261907ea66f0a381a56b7f6921c3e6758f36609" - - sums_content = "#{dmg1_hash} MeowDisplay.dmg\n#{dmg2_hash} MeowDisplayReceiver.dmg\n#{feed1_hash} appcast.xml\n#{feed2_hash} appcast-receiver.xml\n" + sums_content = "#{DMG1_HASH} MeowDisplay.dmg\n#{DMG2_HASH} MeowDisplayReceiver.dmg\n#{FEED1_HASH} appcast.xml\n#{FEED2_HASH} appcast-receiver.xml\n" mock_gh = File.join(bin_dir, "gh") File.write(mock_gh, <<~SH) #!/usr/bin/env bash case "$*" in + *"deployment-branch-policies"*) + if [[ "$*" == *"--jq"* ]]; then + echo "branch:release/*" + else + echo '{"branch_policies":[{"name":"release/*","type":"branch"}]}' + fi + ;; + *"environments/release-publish"*) + echo '{"deployment_branch_policy":{"custom_branch_policies":true},"protection_rules":[{"type":"required_reviewers"}]}' + ;; + *"actions/runs/12345/approvals"*) + echo '[{"state":"approved","environments":[{"name":"release-publish"}]}]' + ;; *"releases/442117184"*"--jq .draft"*) grep "^draft=" "#{state_file}" | cut -d= -f2 ;; @@ -529,7 +748,7 @@ def test_partial_rollback_failure_when_reverting_draft_fails *"releases/latest"*) grep "^latest=" "#{state_file}" | cut -d= -f2 ;; - *"release download"*) + *"release download v2.1.0"*) dest="${@: -1}" mkdir -p "$dest" printf "%s" "#{sums_content}" > "$dest/SHA256SUMS.txt" @@ -538,14 +757,14 @@ def test_partial_rollback_failure_when_reverting_draft_fails echo "f1" > "$dest/appcast.xml" echo "f2" > "$dest/appcast-receiver.xml" ;; - *"release edit 442117184"*"--draft=false --latest"*) + *"release edit v2.1.0"*"--draft=false --latest"*) sed -i '' 's/^latest=.*/latest=v2.1.0/' "#{state_file}" 2>/dev/null || sed -i 's/^latest=.*/latest=v2.1.0/' "#{state_file}" sed -i '' 's/^draft=.*/draft=false/' "#{state_file}" 2>/dev/null || sed -i 's/^draft=.*/draft=false/' "#{state_file}" ;; *"release edit v2.0.0"*"--latest"*) sed -i '' 's/^latest=.*/latest=v2.0.0/' "#{state_file}" 2>/dev/null || sed -i 's/^latest=.*/latest=v2.0.0/' "#{state_file}" ;; - *"release edit 442117184"*"--draft=true"*) + *"release edit v2.1.0"*"--draft=true"*) exit 1 ;; *"commits/v2.1.0"*) @@ -562,12 +781,19 @@ def test_partial_rollback_failure_when_reverting_draft_fails if [ "$1" = "-a" ] && [ "$2" = "256" ] && [ "$3" = "-c" ]; then exit 0; fi target="${@: -1}" case "$target" in - *"MeowDisplay.dmg") echo "#{dmg1_hash} $target" ;; - *"MeowDisplayReceiver.dmg") echo "#{dmg2_hash} $target" ;; - *"appcast.xml") echo "#{feed1_hash} $target" ;; - *"appcast-receiver.xml") echo "#{feed2_hash} $target" ;; + *"MeowDisplay.dmg") echo "#{DMG1_HASH} $target" ;; + *"MeowDisplayReceiver.dmg") echo "#{DMG2_HASH} $target" ;; + *"appcast.xml") echo "#{FEED1_HASH} $target" ;; + *"appcast-receiver.xml") echo "#{FEED2_HASH} $target" ;; *"SHA256SUMS.txt") echo "#{EXPECTED_SUMS_HASH} $target" ;; - *) echo "0000000000000000000000000000000000000000000000000000000000000000 $target" ;; + *) + content=$(cat) + case "$content" in + *"mock-feed1"*) echo "#{FEED1_HASH} -" ;; + *"mock-feed2"*) echo "#{FEED2_HASH} -" ;; + *) echo "0000000000000000000000000000000000000000000000000000000000000000 -" ;; + esac + ;; esac SH FileUtils.chmod(0o755, mock_shasum) @@ -587,7 +813,9 @@ def test_partial_rollback_failure_when_reverting_draft_fails env = { "PATH" => "#{bin_dir}:#{ENV['PATH']}", - "RECOVERY_TEST_MOCK_SCRIPTS" => "true" + "GITHUB_ACTIONS" => "true", + "GITHUB_RUN_ID" => "12345", + "RUNNER_TEMP" => bin_dir } out, err, status = run_recovery(["--publish"], env) refute status.success? @@ -595,20 +823,63 @@ def test_partial_rollback_failure_when_reverting_draft_fails end end + def test_reconcile_script_requires_explicit_mode + out, err, status = Open3.capture3({}, "bash", RECONCILE_SCRIPT) + refute status.success? + assert_includes err + out, "usage: reconcile-mac-release.sh (--execute | --manifest-only)" + end + def test_reconcile_script_rejects_overrides - out, err, status = Open3.capture3({ "VERSION" => "3.0.0" }, "bash", RECONCILE_SCRIPT) + out, err, status = Open3.capture3({ "VERSION" => "3.0.0" }, "bash", RECONCILE_SCRIPT, "--execute") refute status.success? assert_includes err + out, "VERSION must be '2.1.0'" assert_includes err + out, "rejected" end - def test_reconcile_script_requires_token_when_not_mocked - env = { - "RELEASE_STATE_TOKEN" => "", - "RECOVERY_TEST_MOCK_ENV" => "false", - "RECOVERY_TEST_TMPDIR" => Dir.tmpdir - } - Dir.mktmpdir do |bin_dir| + def test_reconcile_manifest_only_is_strictly_read_only + with_scratch_dir do |bin_dir| + invocations_file = File.join(bin_dir, "state_calls.txt") + File.write(invocations_file, "") + + mock_state = File.join(bin_dir, "release-state.sh") + File.write(mock_state, <<~SH) + #!/usr/bin/env bash + echo "state $*" >> "#{invocations_file}" + case "$*" in + *"publish website-manifest"*) + out_file="${@: -1}" + echo '{"version":"2.1.0","manifest":"ok"}' > "$out_file" + ;; + *) exit 0 ;; + esac + SH + FileUtils.chmod(0o755, mock_state) + + mock_git = File.join(bin_dir, "git") + File.write(mock_git, "#!/usr/bin/env bash\nexit 0\n") + FileUtils.chmod(0o755, mock_git) + + env = { + "PATH" => "#{bin_dir}:#{ENV['PATH']}", + "RUNNER_TEMP" => bin_dir + } + out, err, status = run_reconcile(["--manifest-only"], env) + assert status.success?, "Manifest-only failed: #{err}\n#{out}" + assert_includes out, "Manifest generated successfully (read-only mode; zero state mutations performed)" + assert_includes out, '"version":"2.1.0"' + + calls = File.read(invocations_file) + # Assert ONLY website-manifest was invoked + assert_includes calls, "publish website-manifest" + # Assert mutating subcommands were NEVER invoked + refute_includes calls, "publish start" + refute_includes calls, "publish mac-published" + refute_includes calls, "publish stores" + end + end + + def test_reconcile_execute_requires_release_state_token + with_scratch_dir do |bin_dir| mock_gh = File.join(bin_dir, "gh") File.write(mock_gh, <<~SH) #!/usr/bin/env bash @@ -620,9 +891,87 @@ def test_reconcile_script_requires_token_when_not_mocked SH FileUtils.chmod(0o755, mock_gh) - out, err, status = Open3.capture3(env.merge("PATH" => "#{bin_dir}:#{ENV['PATH']}"), "bash", RECONCILE_SCRIPT) + env = { + "PATH" => "#{bin_dir}:#{ENV['PATH']}", + "RELEASE_STATE_TOKEN" => "", + "RUNNER_TEMP" => bin_dir + } + out, err, status = run_reconcile(["--execute"], env) refute status.success? - assert_includes err + out, "RELEASE_STATE_TOKEN is required" + assert_includes err + out, "RELEASE_STATE_TOKEN is required to mutate the protected release-state branch" + end + end + + def test_successful_reconciliation_end_to_end + with_scratch_dir do |bin_dir| + invocations_file = File.join(bin_dir, "reconcile_calls.txt") + File.write(invocations_file, "") + + mock_gh = File.join(bin_dir, "gh") + File.write(mock_gh, <<~SH) + #!/usr/bin/env bash + case "$*" in + *"releases/latest"*) echo 'v2.1.0' ;; + *"commits/v2.1.0"*) echo '#{VALID_SHA}' ;; + *) exit 0 ;; + esac + SH + FileUtils.chmod(0o755, mock_gh) + + mock_state = File.join(bin_dir, "release-state.sh") + File.write(mock_state, <<~SH) + #!/usr/bin/env bash + echo "state $*" >> "#{invocations_file}" + case "$*" in + *"publish website-manifest"*) + out_file="${@: -1}" + echo '{"version":"2.1.0","manifest":"ok"}' > "$out_file" + ;; + *) exit 0 ;; + esac + SH + FileUtils.chmod(0o755, mock_state) + + mock_git = File.join(bin_dir, "git") + File.write(mock_git, <<~'SH') + #!/usr/bin/env bash + case "$*" in + *"fetch"*) exit 0 ;; + *"show origin/release-state"*) + echo '{"publication":{"stage":"in-progress"},"platforms":{"mac":{"stage":"published"},"ios":{"stage":"published"}}}' + ;; + *) exec /usr/bin/git "$@" ;; + esac + SH + FileUtils.chmod(0o755, mock_git) + + env = { + "PATH" => "#{bin_dir}:#{ENV['PATH']}", + "RELEASE_STATE_TOKEN" => "app-token-xyz-123", + "RUNNER_TEMP" => bin_dir + } + out, err, status = run_reconcile(["--execute"], env) + assert status.success?, "Reconcile execute failed: #{err}\n#{out}" + assert_includes out, "release-state successfully reconciled" + assert_includes out, "platforms.mac: published" + assert_includes out, "platforms.ios: published" + assert_includes out, "publication: in-progress" + + calls = File.read(invocations_file) + # Assert state progression happened in exact order + idx_start = calls.index("publish start STATE") + idx_mac = calls.index("publish mac-published STATE") + idx_stores = calls.index("publish stores STATE") + idx_manifest = calls.index("publish website-manifest STATE") + + assert idx_start, "publish start STATE was not called" + assert idx_mac, "publish mac-published STATE was not called" + assert idx_stores, "publish stores STATE was not called" + assert idx_manifest, "publish website-manifest STATE was not called" + + assert idx_start < idx_mac, "publish start must precede mac-published" + assert idx_mac < idx_stores, "mac-published must precede stores" + assert idx_stores < idx_manifest, "stores must precede website-manifest" end end end From 530404f7569e64f1f9736a6cae0f4af97d7aad7d Mon Sep 17 00:00:00 2001 From: raiseCatError <315733358+raiseCatError@users.noreply.github.com> Date: Thu, 12 Nov 2026 03:13:37 +0530 Subject: [PATCH 17/34] fix(release): strengthen external T7 scratch validation and mount guards --- scripts/release/reconcile-mac-release.sh | 65 +++++++++++++++---- scripts/release/recover-mac-release.sh | 63 ++++++++++++++---- .../release/test/recover_mac_release_test.rb | 56 +++++++++++++--- 3 files changed, 150 insertions(+), 34 deletions(-) diff --git a/scripts/release/reconcile-mac-release.sh b/scripts/release/reconcile-mac-release.sh index c167d8781..7f0e6949c 100755 --- a/scripts/release/reconcile-mac-release.sh +++ b/scripts/release/reconcile-mac-release.sh @@ -63,23 +63,64 @@ here="$(cd "$(dirname "$0")" && pwd)" state_cmd="release-state.sh" command -v "$state_cmd" >/dev/null 2>&1 || state_cmd="$here/release-state.sh" -# Scratch storage policy +# Scratch storage policy enforcement: +# In CI: $RUNNER_TEMP is required. +# In local runs: scratch storage must genuinely reside on the mounted external T7 volume (/Volumes/T7Tmp/ai-dev). +# Fake mount points, unmounted volumes, and arbitrary non-T7 paths are strictly rejected. scratch_base="" if [ -n "${RUNNER_TEMP:-}" ]; then scratch_base="$RUNNER_TEMP" -elif [ -n "${T7_RUN_DIR:-}" ] && [ -d "$T7_RUN_DIR" ]; then - scratch_base="$T7_RUN_DIR" -elif [ -d "/Volumes/T7Tmp/ai-dev" ]; then +else + # 1. Verify /Volumes/T7Tmp is genuinely mounted and present in mount table + if ! mount | grep -E -q '[[:space:]]on /Volumes/T7Tmp[[:space:]]'; then + echo "::error::External T7 scratch volume (/Volumes/T7Tmp) is not mounted." + exit 1 + fi + # 2. Verify /Volumes/T7Tmp is an actual mount point, not a directory on internal root + if [ "$(df -P /Volumes/T7Tmp 2>/dev/null | awk 'NR==2{print $6}')" != "/Volumes/T7Tmp" ]; then + echo "::error::/Volumes/T7Tmp is not a mounted volume (detected fake mount-point directory on internal disk)." + exit 1 + fi + # 3. Verify external T7 health via t7run if available if command -v t7run >/dev/null 2>&1; then - t7run --check || { echo "::error::T7 scratch storage check failed"; exit 1; } + t7run --check || { echo "::error::T7 scratch storage verification (t7run --check) failed"; exit 1; } fi - mkdir -p "/Volumes/T7Tmp/ai-dev/tmp" - scratch_base="/Volumes/T7Tmp/ai-dev/tmp" -elif [ -n "${TMPDIR:-}" ] && [[ "$TMPDIR" == /Volumes/T7Tmp/* ]]; then - scratch_base="$TMPDIR" -else - echo "::error::No approved scratch location found. T7 scratch storage (/Volumes/T7Tmp/ai-dev) is required locally." - exit 1 + + # 4. Resolve candidate scratch directory + target_scratch="" + if [ -n "${T7_RUN_DIR:-}" ]; then + target_scratch="$T7_RUN_DIR" + elif [ -n "${TMPDIR:-}" ] && [[ "$TMPDIR" == /Volumes/T7Tmp/* ]]; then + target_scratch="$TMPDIR" + else + target_scratch="/Volumes/T7Tmp/ai-dev/tmp" + fi + + # 5. Ensure candidate directory exists or can be created + mkdir -p "$target_scratch" 2>/dev/null || { + echo "::error::Failed to create or access scratch directory '$target_scratch'" + exit 1 + } + + # 6. Verify canonical physical path (resolving symlinks) genuinely resides under /Volumes/T7Tmp/ai-dev + canonical_scratch=$(cd "$target_scratch" && pwd -P) + case "$canonical_scratch" in + /Volumes/T7Tmp/ai-dev | /Volumes/T7Tmp/ai-dev/*) + ;; + *) + echo "::error::Scratch path '$target_scratch' resolves to '$canonical_scratch', which is outside /Volumes/T7Tmp/ai-dev. Arbitrary scratch paths are rejected." + exit 1 + ;; + esac + + # 7. Verify the filesystem mount point of the canonical path is /Volumes/T7Tmp + scratch_mount=$(df -P "$canonical_scratch" 2>/dev/null | awk 'NR==2{print $6}') + if [ "$scratch_mount" != "/Volumes/T7Tmp" ]; then + echo "::error::Scratch path '$canonical_scratch' is mounted on '$scratch_mount', expected '/Volumes/T7Tmp'." + exit 1 + fi + + scratch_base="$canonical_scratch" fi work=$(mktemp -d "$scratch_base/meow-reconcile.XXXXXX") diff --git a/scripts/release/recover-mac-release.sh b/scripts/release/recover-mac-release.sh index 44ab321b9..addb71c9d 100755 --- a/scripts/release/recover-mac-release.sh +++ b/scripts/release/recover-mac-release.sh @@ -102,23 +102,62 @@ fi # Scratch storage policy enforcement: # In CI: $RUNNER_TEMP is required. -# In local runs: external T7 scratch storage (/Volumes/T7Tmp/ai-dev) is required. Internal /tmp is rejected. +# In local runs: scratch storage must genuinely reside on the mounted external T7 volume (/Volumes/T7Tmp/ai-dev). +# Fake mount points, unmounted volumes, and arbitrary non-T7 paths are strictly rejected. scratch_base="" if [ -n "${RUNNER_TEMP:-}" ]; then scratch_base="$RUNNER_TEMP" -elif [ -n "${T7_RUN_DIR:-}" ] && [ -d "$T7_RUN_DIR" ]; then - scratch_base="$T7_RUN_DIR" -elif [ -d "/Volumes/T7Tmp/ai-dev" ]; then +else + # 1. Verify /Volumes/T7Tmp is genuinely mounted and present in mount table + if ! mount | grep -E -q '[[:space:]]on /Volumes/T7Tmp[[:space:]]'; then + echo "::error::External T7 scratch volume (/Volumes/T7Tmp) is not mounted." + exit 1 + fi + # 2. Verify /Volumes/T7Tmp is an actual mount point, not a directory on internal root + if [ "$(df -P /Volumes/T7Tmp 2>/dev/null | awk 'NR==2{print $6}')" != "/Volumes/T7Tmp" ]; then + echo "::error::/Volumes/T7Tmp is not a mounted volume (detected fake mount-point directory on internal disk)." + exit 1 + fi + # 3. Verify external T7 health via t7run if available if command -v t7run >/dev/null 2>&1; then - t7run --check || { echo "::error::T7 scratch storage check failed"; exit 1; } + t7run --check || { echo "::error::T7 scratch storage verification (t7run --check) failed"; exit 1; } fi - mkdir -p "/Volumes/T7Tmp/ai-dev/tmp" - scratch_base="/Volumes/T7Tmp/ai-dev/tmp" -elif [ -n "${TMPDIR:-}" ] && [[ "$TMPDIR" == /Volumes/T7Tmp/* ]]; then - scratch_base="$TMPDIR" -else - echo "::error::No approved scratch location found. T7 scratch storage (/Volumes/T7Tmp/ai-dev) is required for local execution. Never fall back to internal /tmp." - exit 1 + + # 4. Resolve candidate scratch directory + target_scratch="" + if [ -n "${T7_RUN_DIR:-}" ]; then + target_scratch="$T7_RUN_DIR" + elif [ -n "${TMPDIR:-}" ] && [[ "$TMPDIR" == /Volumes/T7Tmp/* ]]; then + target_scratch="$TMPDIR" + else + target_scratch="/Volumes/T7Tmp/ai-dev/tmp" + fi + + # 5. Ensure candidate directory exists or can be created + mkdir -p "$target_scratch" 2>/dev/null || { + echo "::error::Failed to create or access scratch directory '$target_scratch'" + exit 1 + } + + # 6. Verify canonical physical path (resolving symlinks) genuinely resides under /Volumes/T7Tmp/ai-dev + canonical_scratch=$(cd "$target_scratch" && pwd -P) + case "$canonical_scratch" in + /Volumes/T7Tmp/ai-dev | /Volumes/T7Tmp/ai-dev/*) + ;; + *) + echo "::error::Scratch path '$target_scratch' resolves to '$canonical_scratch', which is outside /Volumes/T7Tmp/ai-dev. Arbitrary scratch paths are rejected." + exit 1 + ;; + esac + + # 7. Verify the filesystem mount point of the canonical path is /Volumes/T7Tmp + scratch_mount=$(df -P "$canonical_scratch" 2>/dev/null | awk 'NR==2{print $6}') + if [ "$scratch_mount" != "/Volumes/T7Tmp" ]; then + echo "::error::Scratch path '$canonical_scratch' is mounted on '$scratch_mount', expected '/Volumes/T7Tmp'." + exit 1 + fi + + scratch_base="$canonical_scratch" fi work=$(mktemp -d "$scratch_base/meow-recover.XXXXXX") diff --git a/scripts/release/test/recover_mac_release_test.rb b/scripts/release/test/recover_mac_release_test.rb index 2d89eb00e..99bc06c07 100644 --- a/scripts/release/test/recover_mac_release_test.rb +++ b/scripts/release/test/recover_mac_release_test.rb @@ -143,17 +143,53 @@ def test_stale_release_state_fetch_failure_halts_immediately end def test_scratch_volume_enforcement_locally - out, err, status = Open3.capture3({}, "bash", "-c", <<~SH) - export RUNNER_TEMP="" T7_RUN_DIR="" TMPDIR="/private/tmp" - if [ ! -d "/Volumes/T7Tmp/ai-dev" ]; then - bash "#{SCRIPT}" - else - echo "::error::No approved scratch location found. T7 scratch storage (/Volumes/T7Tmp/ai-dev) is required for local execution. Never fall back to internal /tmp." - exit 1 - fi - SH + # 1. Arbitrary T7_RUN_DIR outside /Volumes/T7Tmp/ai-dev is rejected + out, err, status = Open3.capture3({ "RUNNER_TEMP" => "", "T7_RUN_DIR" => "/tmp/unapproved_scratch" }, "bash", SCRIPT) + refute status.success? + assert_includes err + out, "outside /Volumes/T7Tmp/ai-dev" + assert_includes err + out, "Arbitrary scratch paths are rejected" + + # Reconcile script also rejects arbitrary T7_RUN_DIR + out, err, status = Open3.capture3({ "RUNNER_TEMP" => "", "T7_RUN_DIR" => "/tmp/unapproved_scratch" }, "bash", RECONCILE_SCRIPT, "--manifest-only") refute status.success? - assert_includes err + out, "No approved scratch location found" + assert_includes err + out, "outside /Volumes/T7Tmp/ai-dev" + assert_includes err + out, "Arbitrary scratch paths are rejected" + + # 2. Unmounted /Volumes/T7Tmp volume is rejected + with_scratch_dir do |bin_dir| + mock_mount = File.join(bin_dir, "mount") + File.write(mock_mount, <<~'SH') + #!/usr/bin/env bash + echo "/dev/disk1s1 on / (apfs, local)" + SH + FileUtils.chmod(0o755, mock_mount) + + out, err, status = Open3.capture3({ "PATH" => "#{bin_dir}:#{ENV['PATH']}", "RUNNER_TEMP" => "" }, "bash", SCRIPT) + refute status.success? + assert_includes err + out, "External T7 scratch volume (/Volumes/T7Tmp) is not mounted" + end + + # 3. Fake mount point directory on internal disk is rejected + with_scratch_dir do |bin_dir| + mock_mount = File.join(bin_dir, "mount") + File.write(mock_mount, <<~'SH') + #!/usr/bin/env bash + echo "/dev/disk8s1 on /Volumes/T7Tmp (apfs)" + SH + FileUtils.chmod(0o755, mock_mount) + + mock_df = File.join(bin_dir, "df") + File.write(mock_df, <<~'SH') + #!/usr/bin/env bash + echo "Filesystem 512-blocks Used Available Capacity Mounted on" + echo "/dev/disk1s1 1000 500 500 50% /System/Volumes/Data" + SH + FileUtils.chmod(0o755, mock_df) + + out, err, status = Open3.capture3({ "PATH" => "#{bin_dir}:#{ENV['PATH']}", "RUNNER_TEMP" => "" }, "bash", SCRIPT) + refute status.success? + assert_includes err + out, "detected fake mount-point directory on internal disk" + end end def test_failure_before_publication_when_target_commit_mismatches From 4e8d3a8a0367c3b3f85bf3e70303ff7fe5d3abba Mon Sep 17 00:00:00 2001 From: raiseCatError <315733358+raiseCatError@users.noreply.github.com> Date: Thu, 12 Nov 2026 03:18:05 +0530 Subject: [PATCH 18/34] fix(test): mock mount and df in local scratch enforcement test for cross-platform portability --- .../release/test/recover_mac_release_test.rb | 42 +++++++++++++++---- 1 file changed, 33 insertions(+), 9 deletions(-) diff --git a/scripts/release/test/recover_mac_release_test.rb b/scripts/release/test/recover_mac_release_test.rb index 99bc06c07..2c0382d10 100644 --- a/scripts/release/test/recover_mac_release_test.rb +++ b/scripts/release/test/recover_mac_release_test.rb @@ -144,16 +144,40 @@ def test_stale_release_state_fetch_failure_halts_immediately def test_scratch_volume_enforcement_locally # 1. Arbitrary T7_RUN_DIR outside /Volumes/T7Tmp/ai-dev is rejected - out, err, status = Open3.capture3({ "RUNNER_TEMP" => "", "T7_RUN_DIR" => "/tmp/unapproved_scratch" }, "bash", SCRIPT) - refute status.success? - assert_includes err + out, "outside /Volumes/T7Tmp/ai-dev" - assert_includes err + out, "Arbitrary scratch paths are rejected" + with_scratch_dir do |bin_dir| + mock_mount = File.join(bin_dir, "mount") + File.write(mock_mount, <<~'SH') + #!/usr/bin/env bash + echo "/dev/disk8s1 on /Volumes/T7Tmp (apfs)" + SH + FileUtils.chmod(0o755, mock_mount) - # Reconcile script also rejects arbitrary T7_RUN_DIR - out, err, status = Open3.capture3({ "RUNNER_TEMP" => "", "T7_RUN_DIR" => "/tmp/unapproved_scratch" }, "bash", RECONCILE_SCRIPT, "--manifest-only") - refute status.success? - assert_includes err + out, "outside /Volumes/T7Tmp/ai-dev" - assert_includes err + out, "Arbitrary scratch paths are rejected" + mock_df = File.join(bin_dir, "df") + File.write(mock_df, <<~'SH') + #!/usr/bin/env bash + echo "Filesystem 512-blocks Used Available Capacity Mounted on" + echo "/dev/disk8s1 1000 500 500 50% /Volumes/T7Tmp" + SH + FileUtils.chmod(0o755, mock_df) + + mock_t7run = File.join(bin_dir, "t7run") + File.write(mock_t7run, <<~'SH') + #!/usr/bin/env bash + exit 0 + SH + FileUtils.chmod(0o755, mock_t7run) + + out, err, status = Open3.capture3({ "PATH" => "#{bin_dir}:#{ENV['PATH']}", "RUNNER_TEMP" => "", "T7_RUN_DIR" => "/tmp/unapproved_scratch" }, "bash", SCRIPT) + refute status.success? + assert_includes err + out, "outside /Volumes/T7Tmp/ai-dev" + assert_includes err + out, "Arbitrary scratch paths are rejected" + + # Reconcile script also rejects arbitrary T7_RUN_DIR + out, err, status = Open3.capture3({ "PATH" => "#{bin_dir}:#{ENV['PATH']}", "RUNNER_TEMP" => "", "T7_RUN_DIR" => "/tmp/unapproved_scratch" }, "bash", RECONCILE_SCRIPT, "--manifest-only") + refute status.success? + assert_includes err + out, "outside /Volumes/T7Tmp/ai-dev" + assert_includes err + out, "Arbitrary scratch paths are rejected" + end # 2. Unmounted /Volumes/T7Tmp volume is rejected with_scratch_dir do |bin_dir| From 6b287c547dabe72dad179a95fad6af866c8a4b41 Mon Sep 17 00:00:00 2001 From: J Date: Thu, 12 Nov 2026 03:52:39 +0530 Subject: [PATCH 19/34] fix(release): use frozen candidate config in recovery preflight and reconciliation --- .github/workflows/recover-mac-release.yml | 2 + scripts/release/check-release-workflows.rb | 2 + scripts/release/reconcile-mac-release.sh | 70 +++++++++++++++---- .../release/test/recover_mac_release_test.rb | 68 +++++++++++++++--- 4 files changed, 122 insertions(+), 20 deletions(-) mode change 100755 => 100644 scripts/release/check-release-workflows.rb mode change 100755 => 100644 scripts/release/reconcile-mac-release.sh diff --git a/.github/workflows/recover-mac-release.yml b/.github/workflows/recover-mac-release.yml index 39d38fe34..ee162032a 100644 --- a/.github/workflows/recover-mac-release.yml +++ b/.github/workflows/recover-mac-release.yml @@ -53,6 +53,8 @@ jobs: run: | set -euo pipefail scripts/release/recover-mac-release.sh --verify + # Verify reconciliation can start BEFORE Mac becomes public. + scripts/release/reconcile-mac-release.sh --preflight publish: needs: verify diff --git a/scripts/release/check-release-workflows.rb b/scripts/release/check-release-workflows.rb old mode 100755 new mode 100644 index 967f0b529..b8f4b696a --- a/scripts/release/check-release-workflows.rb +++ b/scripts/release/check-release-workflows.rb @@ -346,6 +346,8 @@ def release_ref_guard?(step, version_from_input:) only_trigger(name, doc, "workflow_dispatch") secrets_behind_environments(name, doc, %w[release-publish]) jobs = doc["jobs"] || {} + ver = jobs["verify"] + err(name, "verify must preflight candidate configuration") unless ver && steps(ver).any? { |s| run_text(s).include?("reconcile-mac-release.sh --preflight") } pub = jobs["publish"] if pub.nil? err(name, "missing the publish job") diff --git a/scripts/release/reconcile-mac-release.sh b/scripts/release/reconcile-mac-release.sh old mode 100755 new mode 100644 index 7f0e6949c..7fd0231b7 --- a/scripts/release/reconcile-mac-release.sh +++ b/scripts/release/reconcile-mac-release.sh @@ -3,7 +3,7 @@ # after Mac 2.1.0 publication is live. # # Usage: -# reconcile-mac-release.sh (--execute | --manifest-only) +# reconcile-mac-release.sh (--execute | --manifest-only | --preflight) # # Modes: # --execute Mutate release-state: advance publication from 'failed' to @@ -12,6 +12,7 @@ # Requires RELEASE_STATE_TOKEN (App ID 5582030). # --manifest-only Strictly read-only: generate website release.json manifest # from recorded state without mutating release-state. +# --preflight Read-only dry-run of publication start using frozen candidate config. # # Requirements: # - Pinned to VERSION 2.1.0, CANDIDATE_SHA 94c796fc34fd699776764d67d2f26013909a308e. @@ -47,13 +48,17 @@ case "${1:-}" in --manifest-only) mode="manifest-only" ;; + --preflight) + mode="preflight" + ;; --execute) mode="execute" ;; *) - echo "::error::usage: reconcile-mac-release.sh (--execute | --manifest-only)" + echo "::error::usage: reconcile-mac-release.sh (--execute | --manifest-only | --preflight)" echo " --execute: Reconcile release-state with authorized release App token (mutating)" echo " --manifest-only: Generate website release.json from current recorded state (read-only)" + echo " --preflight: Check frozen candidate config and state machine without publishing" exit 1 ;; esac @@ -126,6 +131,11 @@ fi work=$(mktemp -d "$scratch_base/meow-reconcile.XXXXXX") trap 'rm -rf "$work"' EXIT +if [ "$mode" = "execute" ] && [ -z "${RELEASE_STATE_TOKEN:-}" ]; then + echo "::error::RELEASE_STATE_TOKEN is required to mutate the protected release-state branch (Ruleset 26251855)." + exit 1 +fi + echo "=== MeowDisplay Release-State Reconciliation ===" echo "Version: $VERSION" echo "Candidate SHA: $CANDIDATE_SHA" @@ -133,6 +143,45 @@ echo "Repository: $REPO" echo "Mode: $mode" echo "" +# Generic main config still requires Android; the frozen 2.1.0 candidate +# explicitly excludes Android. Always extract the config from that commit. +candidate_config="$work/approved-release-config.json" +git -C "$here/../.." fetch -q origin refs/heads/release/2.1.0 || { + echo "::error::Cannot fetch frozen release/2.1.0" + exit 1 +} +candidate_head=$(git -C "$here/../.." rev-parse FETCH_HEAD) +[ "$candidate_head" = "$CANDIDATE_SHA" ] || { + echo "::error::release/2.1.0 moved to $candidate_head; expected $CANDIDATE_SHA" + exit 1 +} +git -C "$here/../.." show "$CANDIDATE_SHA:.github/release-config.json" > "$candidate_config" || { + echo "::error::Cannot read frozen candidate release config" + exit 1 +} +jq -e '(.requiredPlatforms | sort) == ["ios","mac"] and (.excludedPlatforms | sort) == ["android"] and .ios.submitForReview == false' "$candidate_config" >/dev/null || { + echo "::error::Frozen candidate config must require mac + ios, exclude android, and disable iOS resubmission" + exit 1 +} +echo "✓ Approved candidate config verified: Mac + iOS; Android excluded" + +# Preflight the REAL publication state machine on an expendable copy, +# preventing the original post-publication reconciliation failure. +if [ "$mode" = "preflight" ]; then + git -C "$here/../.." fetch -q origin release-state || { + echo "::error::Cannot fetch fresh release-state for preflight" + exit 1 + } + git -C "$here/../.." show "origin/release-state:releases/$VERSION.json" > "$work/state-for-preflight.json" + "$here/meow-release" publish start "$work/state-for-preflight.json" \ + --config "$candidate_config" --branch-head "$CANDIDATE_SHA" || { + echo "::error::Publication state machine refuses recovery" + exit 1 + } + echo "✓ Read-only preflight passed; scratch state only" + exit 0 +fi + # Mode: manifest-only (genuinely read-only) if [ "$mode" = "manifest-only" ]; then echo "1. Generating website manifest from current recorded release-state (read-only)..." @@ -142,7 +191,7 @@ if [ "$mode" = "manifest-only" ]; then } manifest_out="$work/release.json" "$state_cmd" "$VERSION" publish website-manifest STATE \ - --config "$here/../../.github/release-config.json" \ + --config "$candidate_config" \ --out "$manifest_out" cat "$manifest_out" @@ -172,27 +221,24 @@ fi # 3. Transition publication from 'failed' to 'in-progress' echo "3. Restarting publication state from 'failed' to 'in-progress'..." "$state_cmd" "$VERSION" publish start STATE \ - --config "$here/../../.github/release-config.json" \ + --config "$candidate_config" \ --branch-head "$CANDIDATE_SHA" # 4. Advance Mac platform to 'published' echo "4. Recording Mac platform publication in release-state..." "$state_cmd" "$VERSION" publish mac-published STATE \ - --config "$here/../../.github/release-config.json" \ + --config "$candidate_config" \ --url "https://github.com/$REPO/releases/tag/v$VERSION" -# 5. Process stores (iOS is already published, Android is excluded) -echo "5. Verifying store distribution state..." -out_stores=$("$state_cmd" "$VERSION" publish stores STATE \ - --config "$here/../../.github/release-config.json" \ - --stores live) -echo "$out_stores" +# 5. iOS is already published, Android excluded. Do NOT invoke stores: +# that requires unnecessary App Store credentials and risks store actions. +echo "5. Keeping previously published iOS; no store operations" # 6. Generate accurate website manifest echo "6. Generating website manifest release.json..." manifest_out="$work/release.json" "$state_cmd" "$VERSION" publish website-manifest STATE \ - --config "$here/../../.github/release-config.json" \ + --config "$candidate_config" \ --out "$manifest_out" cat "$manifest_out" diff --git a/scripts/release/test/recover_mac_release_test.rb b/scripts/release/test/recover_mac_release_test.rb index 2c0382d10..2059666fe 100644 --- a/scripts/release/test/recover_mac_release_test.rb +++ b/scripts/release/test/recover_mac_release_test.rb @@ -886,7 +886,7 @@ def test_partial_rollback_failure_when_reverting_draft_fails def test_reconcile_script_requires_explicit_mode out, err, status = Open3.capture3({}, "bash", RECONCILE_SCRIPT) refute status.success? - assert_includes err + out, "usage: reconcile-mac-release.sh (--execute | --manifest-only)" + assert_includes err + out, "usage: reconcile-mac-release.sh (--execute | --manifest-only | --preflight)" end def test_reconcile_script_rejects_overrides @@ -916,7 +916,17 @@ def test_reconcile_manifest_only_is_strictly_read_only FileUtils.chmod(0o755, mock_state) mock_git = File.join(bin_dir, "git") - File.write(mock_git, "#!/usr/bin/env bash\nexit 0\n") + File.write(mock_git, <<~SH) + #!/usr/bin/env bash + case "$*" in + *"fetch"*) exit 0 ;; + *"rev-parse FETCH_HEAD"*) echo '#{VALID_SHA}' ;; + *"show #{VALID_SHA}:.github/release-config.json"*) + echo '{"requiredPlatforms":["mac","ios"],"excludedPlatforms":["android"],"ios":{"submitForReview":false}}' + ;; + *) exit 1 ;; + esac + SH FileUtils.chmod(0o755, mock_git) env = { @@ -993,10 +1003,14 @@ def test_successful_reconciliation_end_to_end FileUtils.chmod(0o755, mock_state) mock_git = File.join(bin_dir, "git") - File.write(mock_git, <<~'SH') + File.write(mock_git, <<~SH) #!/usr/bin/env bash case "$*" in *"fetch"*) exit 0 ;; + *"rev-parse FETCH_HEAD"*) echo '#{VALID_SHA}' ;; + *"show #{VALID_SHA}:.github/release-config.json"*) + echo '{"requiredPlatforms":["mac","ios"],"excludedPlatforms":["android"],"ios":{"submitForReview":false}}' + ;; *"show origin/release-state"*) echo '{"publication":{"stage":"in-progress"},"platforms":{"mac":{"stage":"published"},"ios":{"stage":"published"}}}' ;; @@ -1021,17 +1035,55 @@ def test_successful_reconciliation_end_to_end # Assert state progression happened in exact order idx_start = calls.index("publish start STATE") idx_mac = calls.index("publish mac-published STATE") - idx_stores = calls.index("publish stores STATE") idx_manifest = calls.index("publish website-manifest STATE") assert idx_start, "publish start STATE was not called" assert idx_mac, "publish mac-published STATE was not called" - assert idx_stores, "publish stores STATE was not called" assert idx_manifest, "publish website-manifest STATE was not called" - assert idx_start < idx_mac, "publish start must precede mac-published" - assert idx_mac < idx_stores, "mac-published must precede stores" - assert idx_stores < idx_manifest, "stores must precede website-manifest" + assert idx_mac < idx_manifest, "mac-published must precede website-manifest" + assert_includes calls, "approved-release-config.json" + refute_includes calls, "publish stores STATE" + refute_includes calls, "/.github/release-config.json" + end + end + + def test_preflight_rejects_generic_android_required_config + with_scratch_dir do |bin_dir| + git = File.join(bin_dir, "git") + File.write(git, <<~SH) + #!/usr/bin/env bash + case "$*" in + *"fetch"*) exit 0 ;; + *"rev-parse FETCH_HEAD"*) echo '#{VALID_SHA}' ;; + *"show #{VALID_SHA}:.github/release-config.json"*) + echo '{"requiredPlatforms":["mac","ios","android"],"excludedPlatforms":[],"ios":{"submitForReview":true}}' + ;; + *) exit 1 ;; + esac + SH + FileUtils.chmod(0o755, git) + out, err, status = run_reconcile(["--preflight"], "PATH" => "#{bin_dir}:#{ENV['PATH']}", "RUNNER_TEMP" => bin_dir) + refute status.success? + assert_includes err + out, "Frozen candidate config must require mac + ios, exclude android" + end + end + + def test_candidate_branch_movement_fails_closed + with_scratch_dir do |bin_dir| + git = File.join(bin_dir, "git") + File.write(git, <<~'SH') + #!/usr/bin/env bash + case "$*" in + *"fetch"*) exit 0 ;; + *"rev-parse FETCH_HEAD"*) echo '1111111111111111111111111111111111111111' ;; + *) exit 1 ;; + esac + SH + FileUtils.chmod(0o755, git) + out, err, status = run_reconcile(["--manifest-only"], "PATH" => "#{bin_dir}:#{ENV['PATH']}", "RUNNER_TEMP" => bin_dir) + refute status.success? + assert_includes err + out, "release/2.1.0 moved" end end end From d12d0e7c41a5886f8a275ca80ce1b8c5be5bf255 Mon Sep 17 00:00:00 2001 From: raiseCatError <315733358+raiseCatError@users.noreply.github.com> Date: Thu, 12 Nov 2026 07:03:07 +0530 Subject: [PATCH 20/34] ci: list recover-mac-release.yml among the release workflows main added .github/workflows/recover-mac-release.yml (#244), but the 2.1.0 source's classify_pr_paths.py didn't list it. So test_listed_workflows_exist_and_cover_every_workflow failed once the promotion brought both together. tests.yml doesn't depend on the recovery workflow, so it belongs in RELEASE_WORKFLOWS: a change to it runs only release-tooling. --- scripts/ci/classify_pr_paths.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/ci/classify_pr_paths.py b/scripts/ci/classify_pr_paths.py index c6f93dd75..8c6577154 100644 --- a/scripts/ci/classify_pr_paths.py +++ b/scripts/ci/classify_pr_paths.py @@ -113,7 +113,7 @@ # release-tooling checks they stay fail-closed. Listed by name: a new workflow # means full CI until it is added here. RELEASE_WORKFLOWS = frozenset(f".github/workflows/{name}.yml" for name in ( - "pr-title", "reference-intake", "reference-sync", "release-android", "release-candidate", + "pr-title", "recover-mac-release", "reference-intake", "reference-sync", "release-android", "release-candidate", "release-dry-run", "release-ios", "release-mac", "release-monitor", "release-pr", "release-preflight", "release-publish", "release-state-access", "repository-guard", )) From 3534d3313e59bbf9543694786370da9f468ecc68 Mon Sep 17 00:00:00 2001 From: raiseCatError <315733358+raiseCatError@users.noreply.github.com> Date: Thu, 12 Nov 2026 07:03:07 +0530 Subject: [PATCH 21/34] docs(readme): describe 2.1.0 while keeping main's newer visuals The promotion merge took the released 2.1.0 README whole. This merges it three-way with main instead. Main's #242 wording and press-kit visuals are kept, and the released 2.1 sections win where both changed. Links main still pointed at 2.0.0 are updated: the header download summary, the direct-download release and Getting started. 'In 2.0' becomes 'Since 2.0' for hardware-keyboard forwarding. The 2.0 screenshots keep their 2.0 captions, and the deliberate 'stay on Mac 2.0' link stays. --- README.md | 220 ++++++++++++++++++++++++++++++------------------------ 1 file changed, 121 insertions(+), 99 deletions(-) diff --git a/README.md b/README.md index 0c0dab1e9..c38065092 100644 --- a/README.md +++ b/README.md @@ -6,10 +6,10 @@ **Mac Everywhere, On Whatever Display** -Use your iPhone, iPad or another Mac (and, in closed testing, an Android -device) as a free, open-source display for your Mac. Mirror or extend the -desktop over USB or local Wi-Fi, then control the Mac with touch, -trackpad-style input, gestures and a keyboard. +Use MeowDisplay to mirror, extend or view individual Mac windows on your +iPhone or iPad. Control your Mac with touch, a trackpad-style pointer, +shortcuts and a keyboard. Another Mac can also act as a receiver; Android +is available through closed testing. [Website](https://meowdisplay.app) · [Features](https://meowdisplay.app/features.html) · @@ -20,23 +20,26 @@ trackpad-style input, gestures and a keyboard. **[Download MeowDisplay 2.1 for Mac](https://github.com/raiseCatError/meowdisplay/releases/download/v2.1.0/MeowDisplay.dmg)** · Download on the App Store -
+Mac 2.1.0 stable, shares and receives (macOS 14+) · [Mac Receiver 2.1.0](https://github.com/raiseCatError/meowdisplay/releases/download/v2.1.0/MeowDisplayReceiver.dmg) (macOS 12+) · iPhone/iPad 2.1.0 on the App Store · Android 2.0 in Google Play closed testing, not yet public · [All downloads](https://meowdisplay.app/downloads) -Latest MeowDisplay website preview showing Mac settings beside iPhone and iPad receivers +

+MeowDisplay 2.0 Mac app with connected devices, beside an iPhone showing Safari and TextEdit in two Window view panes + +The released Mac app and iPhone Window view, shown in the 2.0 press-kit composition · See the original iPhone screen +

## Overview -MeowDisplay mirrors, extends or shows individual Mac windows on an iPhone, -iPad, Android device or another Mac. Mobile receivers add touch, pointer, -keyboard, gestures and shortcut controls; Mac Receiver has keyboard/trackpad -forwarding implemented, with physical two-Mac verification still pending. -Connect using USB where supported, local Wi-Fi, or a private network you -control, with devices paired and every session encrypted. +MeowDisplay sends your Mac's display to an iPhone, iPad, Android receiver or +another Mac. Choose **Mirror**, **Extend** or **Window view** for each device. +Mobile receivers have touch, keyboard, pointer and shortcut controls. -No MeowDisplay account is required, and there is no MeowDisplay-hosted relay -or server in the middle. +Connect over USB (iPhone/iPad), local Wi-Fi or a private network you control. +Devices must pair, and sessions are encrypted. You don't need a MeowDisplay +account or hosted relay. Mac-to-Mac keyboard and trackpad forwarding is +implemented, but physical verification with two Macs is still pending. **Already using another remote-display app?** [Compare MeowDisplay with alternatives](COMPARISON.md) to check platform support, input styles, pricing, feature limits and trade-offs @@ -94,33 +97,41 @@ rather stay on Mac 2.0, it remains available: ## What's new in MeowDisplay 2.0 -**MeowDisplay 2.0** is a major expansion of the Mac sender and receiver -experience, with an emphasis on making a Mac practical to use from a phone: - -- **Window view:** choose and arrange individual Mac windows as tiles on the - receiver, rather than always viewing an entire desktop. -- **Stage Peek:** quickly switch between Mac windows from a receiver's edge. -- **Natural Touch:** phone-friendly tapping, scrolling, dragging and - long-press interactions, alongside the existing Classic and Trackpad modes. -- **Per-device display modes:** let different receivers choose Mirror, Extend - or Window view according to what makes sense for them. -- **Android receiver:** Android joins the iPhone, iPad and Mac receiver - implementations, currently available through closed testing. +Version 2.0 adds Window view, Stage Peek and more ways to control a Mac from +a phone. The main changes are: + +- **Window view:** arrange the Mac windows you choose in panes on the receiver. +- **Stage Peek:** hold the edge to find and switch windows or show the full desktop. +- **Natural Touch:** an optional direct-touch style for tapping, scrolling, + dragging and right-clicking. Classic and Trackpad remain available. +- **Per-device display modes:** choose Mirror, Extend or Window view independently + for each receiver. +- **Android receiver:** Android 2.0 is available through Google Play closed + testing, not public release. - **Files and clipboard:** Remote Finder and Unified Clipboard on the mobile receivers, with separate permissions granted by the Mac owner. Clipboard sharing starts off on both sides. -- **Privacy Shield:** cover the Mac's physical screens while using it remotely. - This is a viewing shield, not a lock; its limitations are in [SECURITY.md](SECURITY.md#privacy-shield). +- **Privacy Shield:** cover the Mac's physical screens during remote use. + It is a viewing shield, not a lock; see the [limitations](SECURITY.md#privacy-shield). - **One Mac app, both roles:** the main Mac app shares and receives. A separate Receiver-only app remains available for macOS 12+. - **Mac Receiver input:** control the sending Mac with the receiving Mac's keyboard and trackpad after requesting control. -- **Remote connection improvements:** easier remote access and authenticated - Tailscale route handling, without claiming unrestricted Internet discovery. +- **Remote Access:** reach a paired Mac over a private network you set up, + including supported Tailscale routes. There is no public Internet discovery. + +The iPhone and iPad apps also provide a Text Bar and Zoom While Typing, which +keeps the active line enlarged on the receiver. + +### MeowDisplay 2.0 in use -MeowDisplay 2.0 is the stable Mac and iPhone/iPad release. Android 2.0 remains -in closed testing. See the platform table -above and [downloads](https://meowdisplay.app/downloads) before installing. +

+iPhone 14 Pro Max frame with MeowDisplay Window view displaying Safari and TextEdit in two panes +iPhone 14 Pro Max frame showing Stage Peek with app search and Full Desktop +iPhone 14 Pro Max frame showing on-screen Command, Option, Control, Shift, Escape, Tab and keyboard controls + +Window view · Stage Peek · Control Tray. These press-kit mockups frame the real 2.0 iPhone screenshots. Select one to inspect the original, unframed interface. +

## At a glance @@ -138,36 +149,32 @@ above and [downloads](https://meowdisplay.app/downloads) before installing. ## Why MeowDisplay? -MeowDisplay isn't trying to be the most powerful remote desktop. It's trying -to make one common moment take as little thought as possible: you pull out -your iPhone or iPad, your Mac is there, and you can use it. - -That shapes where the effort goes: - -- **Interaction feel.** Touch, pointer and gesture handling are designed for - fingers on glass, not a mouse emulated on a phone. -- **Mirror and a real Extend.** Show a Mac display as it is, or give the Mac - a separate virtual workspace, with clamshell and headless workflows. -- **iPhone first.** The iPhone is the main receiver, with iPad fully - supported. -- **Your own devices and networks.** USB, local Wi-Fi, or a private network - you control. No MeowDisplay account and no MeowDisplay-hosted relay. -- **Quick access, not administration.** It's for using your own Mac from a - nearby screen, not for managing fleets of machines. - -Looking for a **Sidecar alternative for iPhone**, or comparing Mac display -apps like **Duet Display**, **Luna Display** and **Astropad**? MeowDisplay is -free and open source, supports both mirroring and a true extended desktop, -and doesn't require an account or a MeowDisplay-hosted relay. Unlike -account-based remote desktop tools such as **Jump Desktop**, remote access -requires a network route you set up yourself. These products serve different -needs; see the [setup FAQ](https://meowdisplay.app/docs#faq) for details. +MeowDisplay is for using your own Mac from a smaller screen, especially an +iPhone. The controls are designed for touch, and Window view lets you focus +on individual apps instead of shrinking a whole desktop. + +- **Mirror or Extend.** View an existing display, or create a separate virtual + desktop that macOS can arrange alongside other displays. +- **Control from a phone.** Use touch styles, a trackpad-style pointer, + gestures, shortcut trays and a keyboard. +- **Use your own network.** Connect over USB, local Wi-Fi or a private-network + route that you configure. No MeowDisplay account or hosted relay is required. +- **Personal use first.** This is for accessing your Mac from another screen, + not for enterprise fleet management. + +Comparing it with Sidecar, Duet Display, Luna Display, Astropad or Jump +Desktop? These apps handle different devices and workflows. MeowDisplay is +free and open source, offers Mirror and Extend, and requires you to set up +your own network route for Remote Access. See the +[setup FAQ](https://meowdisplay.app/docs#faq) before choosing an option. ## Display: Mirror & Extend

-MeowDisplay Mac Mirror settings, as shown on the website -MeowDisplay Mac Extend settings, as shown on the website +MeowDisplay 2.0 Mac Displays settings with Mirror selected and an existing BenQ display available +MeowDisplay 2.0 Mac Displays settings with Extend selected and virtual-display sizing options + +Mac display settings: Mirror (left) and Extend (right). See Extend running on an iPad.

- **Mirror** shows an existing Mac display on the receiver. With multiple @@ -184,9 +191,15 @@ to power; headless compatibility is still being tested across Mac models. ## Window mode -Besides **Mirror** and **Extend**, a device can choose **Windows**: Mac windows -you pick, shown side by side as tiles on that device. Each device chooses on -its own; nothing changes for the others. +Choose **Windows** to arrange selected Mac windows in panes on a receiver. +Each device has its own display mode, so switching one does not change the +others. + +

+MeowDisplay 2.0 on iPad with Safari and two TextEdit windows arranged in three panes + +Three-pane Window view on an iPad (9th generation) · Open full-resolution screenshot +

- **Tiles.** One window is the default. Every receiver supports up to 9 panes, including phones; the available space and minimum pane size decide how @@ -194,11 +207,6 @@ its own; nothing changes for the others. - **Choose windows.** Hold three fingers still on the picture, or use Settings → Display → **Show Mac Windows…**. On the Mac Receiver, use **Windows** in the title bar or ⌃⌥W. -- **Switch quickly.** **Stage Peek** (the default): hold the left or right - edge, slide to browse, tap a window. **Rail** is optional, under Settings → - Controls → **Window Switcher**. **Full Desktop** returns to the whole Mac - screen; from the whole screen, **Switch to Window view?** offers the way - back once per launch. - **Typing.** One pointer works across the tiles; keys go to the tile you selected, and only while its app is in front on the Mac. Control needs the same session permission as always, and a View Only session can arrange tiles @@ -207,7 +215,16 @@ its own; nothing changes for the others. Window on Mac…** is separate and asks first. A Mac can turn Window mode off under Settings → Displays → Windows. -More in [WINDOW_MODE.md](WINDOW_MODE.md). +### Stage Peek + +Stage Peek is the default Window view switcher. Hold the left or right edge, +then slide to find a window or tap to switch. You can search running apps and +use **Full Desktop** to return to the complete Mac screen. From there, +**Switch to Window view?** offers a way back once per launch. + +The optional **Rail** switcher is under Settings → Controls → **Window +Switcher**. See [WINDOW_MODE.md](WINDOW_MODE.md) for pane and switching +behavior. ## Input & gestures @@ -231,7 +248,9 @@ an optional style. Saved choices can differ. ### Allow Input & control requests

-MeowDisplay Mac input settings, as shown on the website +MeowDisplay 2.0 Mac Input settings showing the Allow Input master switch and per-device Input Requests policy + +Mac Input settings: allowing connections does not grant control.

**Allow Input is the Mac-wide master switch.** Receivers can stay connected @@ -356,19 +375,24 @@ works as a trackpad and keyboard for the Mac. ### Keyboard -Tap the tray's Keyboard button for the on-screen keyboard, or use a hardware -keyboard connected to the iPhone or iPad. Latched modifiers from the Control -Tray combine with the keys you type. +Tap the tray's Keyboard button for the on-screen keyboard, or connect a +hardware keyboard to the iPhone or iPad. Since 2.0, the hardware keyboard's +**arrow keys**, Escape, Tab and Forward Delete are forwarded to the Mac while +remote input is allowed. Latched modifiers from the Control Tray combine +with the keys you type. ## Control Trays & Chords ### Main Control Tray -The keys a touch screen is missing, close at hand: **Command**, **Option**, -**Control**, **Shift**, **Escape**, **Tab**, **Dock**, **Keyboard** and -**Settings**. Reorder controls, show or hide each one, and keep several -setups as profiles. Haptics, a landscape tray side, and Avoid Notch let it fit -the device you're holding. +The Main Control Tray puts **Command**, **Option**, **Control**, **Shift**, +**Escape**, **Tab**, **Dock**, **Keyboard** and **Settings** on the receiver. +Reorder or hide buttons and save different profiles. You can also choose +haptics, the tray side in landscape, and Avoid Notch. + +The [iPhone Control Tray screenshot](https://meowdisplay.app/press-kit/Screenshots/iPhone/MeowDisplay-iPhone-Control-Tray.png) +shows the actual controls without the device frame. + ### Chords @@ -410,15 +434,16 @@ Control Trays above. ### Auto-hide -**There when you need it. Out of the way when you don't.** With Auto-hide, the -control trays retreat after a period of inactivity and interacting with the -receiver brings them back. Manual Collapse stays separate, and Auto-hide can -be turned off. +Auto-hide hides the control trays after a period of inactivity and brings +them back when you interact with the receiver. Manual Collapse works +separately. You can turn Auto-hide off. ## Devices

-MeowDisplay Mac devices settings, as shown on the website +MeowDisplay 2.0 Mac Devices settings showing Known Devices, Nearby pairing and Pair over Remote + +Mac Devices settings: manage existing pairings and discover receivers.

Pair a receiver once, then manage it in **Devices** on the Mac: @@ -543,7 +568,7 @@ and installs MeowDisplay into `/Applications`. Update with `brew install --cask raiseCatError/tap/meowdisplay-receiver`. **Mac, direct download:** get `MeowDisplay.dmg` (or `MeowDisplayReceiver.dmg`) -from the [latest release](https://github.com/raiseCatError/meowdisplay/releases/latest) +from the [2.1.0 release](https://github.com/raiseCatError/meowdisplay/releases/tag/v2.1.0) and drag the app to Applications. **iPhone and iPad:** install MeowDisplay from the @@ -552,13 +577,15 @@ iPadOS 16.4 or later). ## Getting started -1. [Download MeowDisplay for Mac](https://github.com/raiseCatError/meowdisplay/releases/latest/download/MeowDisplay.dmg), open the DMG, drag MeowDisplay to +1. [Download MeowDisplay 2.1 for Mac](https://github.com/raiseCatError/meowdisplay/releases/download/v2.1.0/MeowDisplay.dmg), open the DMG, drag MeowDisplay to Applications and open it. 2. Install [MeowDisplay from the App Store](https://apps.apple.com/us/app/meowdisplay/id6817552864) on your iPhone or iPad - and open it. + and open it. Android 2.0 is in [closed testing](https://meowdisplay.app/android/early-access). + To receive on another Mac, install the main app or the + [Mac Receiver 2.1.0](https://github.com/raiseCatError/meowdisplay/releases/download/v2.1.0/MeowDisplayReceiver.dmg) (macOS 12+). 3. Connect over USB or Wi-Fi, and pair the devices by confirming the matching code. -4. Choose **Mirror** or **Extend**. +4. Choose **Mirror**, **Extend** or **Window view**. 5. Grant Screen Recording and Local Network permissions as requested. For control, also grant Accessibility, enable **Allow Input** on the Mac, and use **Request Control** in the receiver's Settings. @@ -576,11 +603,8 @@ echo "DEVELOPMENT_TEAM=YOURTEAMID" > .env ``` Open `MeowDisplay.xcodeproj` and run the `OpenSidecarMac` scheme for the Mac -app, or `OpenSidecariOS` for the iPhone/iPad receiver. The historical 1.20.0 -apps were built from -[`release/app-store-rc`](https://github.com/raiseCatError/meowdisplay/tree/release/app-store-rc). Signing, permissions and -troubleshooting are in [SETUP.md](SETUP.md); release process in -[RELEASE.md](RELEASE.md). +app, or `OpenSidecariOS` for the iPhone/iPad receiver. Signing, permissions and troubleshooting are in [SETUP.md](SETUP.md). +The release process is in [RELEASE.md](RELEASE.md). ## Documentation @@ -614,8 +638,8 @@ forms for bugs, feature requests, exploratory ideas, documentation, and hardware compatibility reports. **Base branches and pull requests on `dev`**, where development happens. -`main` is the source of the latest published release and changes only when -a release is promoted ([BRANCHING.md](BRANCHING.md)). +`main` holds the latest published release source; only approved release +promotions and documentation-only promotions reach it ([BRANCHING.md](BRANCHING.md)). MeowDisplay is **personal-first, not non-commercial**: using it for your own professional or commercial work is welcome. We are **not currently planning an @@ -643,17 +667,15 @@ continued development is appreciated, but entirely optional: [Ko-fi](https://ko-fi.com/raisecaterror) · [GitHub Sponsors](https://github.com/sponsors/raiseCatError). -Sharing the project, reporting issues and helping others also make a difference. -Thank you for every bit of support. ♥️ +Bug reports, translations and help with testing are useful too. ♥️ ## Built on OpenDisplay MeowDisplay started as a fork of [OpenDisplay](https://github.com/peetzweg/opendisplay) by Philip Poloczek. -OpenDisplay already had a working low-level foundation — Mac screen -capture, virtual displays, video encoding and an iPhone/iPad receiver — and -there was no good reason to rebuild a working open-source base just to say -every layer was written from scratch. Thank you to OpenDisplay for it. +OpenDisplay provided the original foundation for Mac screen capture, +virtual displays, video encoding and an iPhone/iPad receiver. Thanks to +Philip Poloczek and the OpenDisplay contributors for that work. Most of MeowDisplay's own work since then has gone into what happens on top of that foundation: Direct Touch, Trackpad and gestures, Smart Touch, From de18bfb5c64a88b410978af96115be3f5e3df7b1 Mon Sep 17 00:00:00 2001 From: J Date: Thu, 12 Nov 2026 04:22:00 +0530 Subject: [PATCH 22/34] fix(release): verify draft only after protected GitHub approval (cherry picked from commit 14293a03bf1c86d50c2c7b8c0491e3f3f6e0a47e) --- .github/workflows/recover-mac-release.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/recover-mac-release.yml b/.github/workflows/recover-mac-release.yml index ee162032a..1a9d4f6eb 100644 --- a/.github/workflows/recover-mac-release.yml +++ b/.github/workflows/recover-mac-release.yml @@ -44,7 +44,11 @@ jobs: persist-credentials: false - name: Select Xcode (.xcode-version) run: scripts/ci/select-xcode.sh - - name: Verify Mac release candidate draft + # Read-only GITHUB_TOKEN cannot inspect an unpublished GitHub Release. + # Do not grant an unprotected job write access. The protected publish job + # runs recover-mac-release.sh --publish, which verifies every draft asset, + # notarization and Sparkle signature BEFORE editing the release. + - name: Preflight frozen candidate and release-state (read-only) env: GH_TOKEN: ${{ github.token }} VERSION: ${{ inputs.version }} @@ -52,8 +56,6 @@ jobs: DRAFT_ID: ${{ inputs.draft_id }} run: | set -euo pipefail - scripts/release/recover-mac-release.sh --verify - # Verify reconciliation can start BEFORE Mac becomes public. scripts/release/reconcile-mac-release.sh --preflight publish: From 1899a074ea90f07e666190531c6a7484af1a372e Mon Sep 17 00:00:00 2001 From: J Date: Thu, 12 Nov 2026 04:25:19 +0530 Subject: [PATCH 23/34] docs(release): describe protected draft verification accurately (cherry picked from commit d0a507f691d4c99ac3d4b304fdfecef19426f89a) --- .github/workflows/recover-mac-release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/recover-mac-release.yml b/.github/workflows/recover-mac-release.yml index 1a9d4f6eb..1aeef3c3f 100644 --- a/.github/workflows/recover-mac-release.yml +++ b/.github/workflows/recover-mac-release.yml @@ -19,7 +19,7 @@ on: type: string default: '442117184' action: - description: 'Recovery action: verify (read-only draft check) or publish (publish Latest and reconcile release-state)' + description: 'Recovery action: verify (read-only candidate preflight) or publish (protected draft verification, publication and reconciliation)' required: true type: choice options: @@ -94,7 +94,7 @@ jobs: client-id: ${{ vars.RELEASE_APP_CLIENT_ID }} private-key: ${{ secrets.RELEASE_APP_PRIVATE_KEY }} permission-contents: write - - name: Publish Mac release as Latest + - name: Verify protected draft and publish Mac release as Latest env: GH_TOKEN: ${{ github.token }} VERSION: ${{ inputs.version }} From 1e6bb1e3fd3b6f57b9e6042cea9f58db8ec5ca99 Mon Sep 17 00:00:00 2001 From: raiseCatError <315733358+raiseCatError@users.noreply.github.com> Date: Thu, 12 Nov 2026 04:57:22 +0530 Subject: [PATCH 24/34] fix(release): make the 2.1.0 Mac recovery runnable end to end - Track scripts/release/reconcile-mac-release.sh as 100755. Run 43117186436 failed with 'Permission denied' because the workflow runs it directly. - check-release-workflows.rb now reads Git's index. A script that a workflow runs directly, and every scripts/**/*.sh, must be 100755. - Fetch release-state with an explicit refspec. Then origin/release-state is current whatever refspec the checkout set. The repository is public, so the fetch needs no credential. - recover: a post-publication tag or Latest mismatch now rolls back. Before, a bare exit skipped the ERR trap. A release that is already public is sent to action=reconcile and is never published again. - reconcile --execute and --finish write nothing until the live release is public, Latest, tagged at the candidate and has exactly the five recorded asset digests. - The workflow gets reconcile and finish actions behind the same release-publish approval. Only action=publish edits the release. - Tests run the scripts directly. They also cover the real reconcile, release-state.sh and meow-release path against the frozen candidate and the recorded failed state. (cherry picked from commit b1a1cba7a7d6d95af7034a168a1bfa617f1c939e) --- .github/workflows/recover-mac-release.yml | 32 ++- scripts/release/check-release-workflows.rb | 77 ++++++ scripts/release/reconcile-mac-release.sh | 123 +++++++-- scripts/release/recover-mac-release.sh | 21 +- .../fixtures/release-state-2.1.0-failed.json | 204 ++++++++++++++ .../release/test/recover_mac_release_test.rb | 207 +++++++++++++-- .../release/test/recovery_integration_test.rb | 248 ++++++++++++++++++ scripts/release/test/workflow_checks_test.rb | 32 +++ 8 files changed, 892 insertions(+), 52 deletions(-) mode change 100644 => 100755 scripts/release/reconcile-mac-release.sh create mode 100644 scripts/release/test/fixtures/release-state-2.1.0-failed.json create mode 100644 scripts/release/test/recovery_integration_test.rb diff --git a/.github/workflows/recover-mac-release.yml b/.github/workflows/recover-mac-release.yml index 1aeef3c3f..ab43a6bc7 100644 --- a/.github/workflows/recover-mac-release.yml +++ b/.github/workflows/recover-mac-release.yml @@ -19,13 +19,20 @@ on: type: string default: '442117184' action: - description: 'Recovery action: verify (read-only candidate preflight) or publish (protected draft verification, publication and reconciliation)' + description: 'verify (read-only preflight) | publish (protected: verify draft, publish, reconcile) | reconcile (protected: release already public, record it) | finish (protected: website live, finish publication)' required: true type: choice options: - verify - publish + - reconcile + - finish default: verify + promotion_pr: + description: 'finish only: number of the release/2.1.0 -> main promotion PR (optional)' + required: false + type: string + default: '' permissions: {} @@ -48,6 +55,8 @@ jobs: # Do not grant an unprotected job write access. The protected publish job # runs recover-mac-release.sh --publish, which verifies every draft asset, # notarization and Sparkle signature BEFORE editing the release. + # The repository is public: the script's git fetches of release/2.1.0 + # and release-state need no credential, so none is persisted. - name: Preflight frozen candidate and release-state (read-only) env: GH_TOKEN: ${{ github.token }} @@ -58,9 +67,15 @@ jobs: set -euo pipefail scripts/release/reconcile-mac-release.sh --preflight + # One protected job for every mutating action. publish is the only action + # that edits the GitHub Release; reconcile and finish refuse to write + # anything unless the release is already public, Latest, tagged at the + # candidate and carrying exactly the recorded assets. After a run whose + # release went public but whose reconciliation failed, re-run with + # action=reconcile, never publish (publish refuses a non-draft release). publish: needs: verify - if: ${{ inputs.action == 'publish' }} + if: ${{ inputs.action == 'publish' || inputs.action == 'reconcile' || inputs.action == 'finish' }} runs-on: xcode-27 environment: release-publish permissions: @@ -95,6 +110,7 @@ jobs: private-key: ${{ secrets.RELEASE_APP_PRIVATE_KEY }} permission-contents: write - name: Verify protected draft and publish Mac release as Latest + if: ${{ inputs.action == 'publish' }} env: GH_TOKEN: ${{ github.token }} VERSION: ${{ inputs.version }} @@ -104,6 +120,7 @@ jobs: set -euo pipefail scripts/release/recover-mac-release.sh --publish - name: Reconcile release state + if: ${{ inputs.action == 'publish' || inputs.action == 'reconcile' }} env: RELEASE_STATE_TOKEN: ${{ steps.state-token.outputs.token }} GH_TOKEN: ${{ github.token }} @@ -112,3 +129,14 @@ jobs: run: | set -euo pipefail scripts/release/reconcile-mac-release.sh --execute + - name: Finish publication (website serves release.json) + if: ${{ inputs.action == 'finish' }} + env: + RELEASE_STATE_TOKEN: ${{ steps.state-token.outputs.token }} + GH_TOKEN: ${{ github.token }} + VERSION: ${{ inputs.version }} + CANDIDATE_SHA: ${{ inputs.candidate_sha }} + PROMOTION_PR: ${{ inputs.promotion_pr }} + run: | + set -euo pipefail + scripts/release/reconcile-mac-release.sh --finish diff --git a/scripts/release/check-release-workflows.rb b/scripts/release/check-release-workflows.rb index 5cb39e7e6..d1894edfd 100644 --- a/scripts/release/check-release-workflows.rb +++ b/scripts/release/check-release-workflows.rb @@ -374,6 +374,24 @@ def release_ref_guard?(step, version_from_input:) err(name, "publish job must use the release-publish environment") unless env_name(pub) == "release-publish" err(name, "publish job must depend on verify") unless needs(pub).include?("verify") err(name, "publish job must check release-publish with required reviewers") unless steps(pub).any? { |s| run_text(s).include?("check-environment.sh release-publish --require-reviewers") } + # Only action=publish may edit the GitHub Release; reconcile and finish + # write release-state only, with the release App's token. + steps(pub).each do |s| + text = run_text(s) + if text.include?("recover-mac-release.sh --publish") && s["if"].to_s.gsub(/\s+/, " ") != "${{ inputs.action == 'publish' }}" + err(name, "the publish step must run only for action == 'publish'") + end + if text.match?(/reconcile-mac-release\.sh --(execute|finish)/) && + s.dig("env", "RELEASE_STATE_TOKEN") != "${{ steps.state-token.outputs.token }}" + err(name, "step #{s['name'].inspect} writes the release state without RELEASE_STATE_TOKEN") + end + end + end + # The unprotected verify job stays read-only: no environment, secret, + # App token or write permission. + if ver && (env_name(ver) || uses_secrets?(ver) || ver.to_s.include?("create-github-app-token") || + ver["permissions"] != { "contents" => "read" }) + err(name, "verify job must hold no credential: no environment, secret, App token or write permission") end end @@ -654,6 +672,65 @@ def release_ref_guard?(step, version_from_input:) end end +# MARK: - Executed scripts are executable in Git + +# A workflow step that runs `scripts/...` directly needs the file's Git mode +# to be 100755: the runner's checkout restores modes from Git, so a 100644 +# script fails there with "Permission denied" (2.1.0 recovery run 43117186436) +# while tests that run it through `bash` still pass. Shell scripts under +# scripts/ also call each other directly ("$here/release-state.sh"), so every +# tracked scripts/**/*.sh must be executable too. Git's index is the source of +# truth, not the local filesystem. MEOW_REPO_ROOT (tests only) points at another +# repository's index. +REPO_ROOT = ENV["MEOW_REPO_ROOT"] || File.expand_path("../..", __dir__) +# A script path in command position: line start, or after ; & | ( { $( ! or a +# shell keyword. `ruby scripts/x.rb`, `bash scripts/x.sh` and `. scripts/x.env` +# name their interpreter and need no executable bit. +DIRECT_SCRIPT = %r!(?:^|[;&|(\{]|\$\(|\!|\b(?:then|do|else|if|exec|time)\b)\s*(scripts/[A-Za-z0-9_./-]+)!.freeze + +def git_modes(root) + out = IO.popen(["git", "-C", root, "ls-files", "-s", "--", "scripts"], err: File::NULL, &:read) + return nil unless $?.success? + + out.lines.to_h do |line| + meta, path = line.chomp.split("\t", 2) + [path, meta.split(" ").first] + end +end + +if (modes = git_modes(REPO_ROOT)) + Dir[File.join(DIR, "*.yml")].sort.each do |path| + name = File.basename(path) + doc = YAML.safe_load(File.read(path), aliases: false) + doc.fetch("jobs", {}).each do |id, job| + steps(job).each do |s| + run_text(s).each_line do |line| + next if line.strip.start_with?("#") + + line.scan(DIRECT_SCRIPT).flatten.uniq.each do |script| + script = script.sub(/[.,]+\z/, "") + mode = modes[script] + if mode.nil? + err(name, "job #{id} runs #{script}, which Git does not track") + elsif mode != "100755" + err(name, "job #{id} runs #{script} directly, but Git tracks it as #{mode}, not 100755 " \ + "(git update-index --chmod=+x #{script})") + end + end + end + end + end + end + modes.each do |script, mode| + next unless script.end_with?(".sh") || script == "scripts/release/meow-release" + next if mode == "100755" + + err(script, "tracked as #{mode}; scripts are executed directly and must be 100755 (git update-index --chmod=+x #{script})") + end +else + err(REPO_ROOT, "cannot read Git file modes (git ls-files); executable bits must be checked from Git") +end + if @errors.empty? puts "release, store and repository workflows are fail-closed (#{DIR})" else diff --git a/scripts/release/reconcile-mac-release.sh b/scripts/release/reconcile-mac-release.sh old mode 100644 new mode 100755 index 7fd0231b7..383511eb9 --- a/scripts/release/reconcile-mac-release.sh +++ b/scripts/release/reconcile-mac-release.sh @@ -3,7 +3,7 @@ # after Mac 2.1.0 publication is live. # # Usage: -# reconcile-mac-release.sh (--execute | --manifest-only | --preflight) +# reconcile-mac-release.sh (--execute | --finish | --manifest-only | --preflight) # # Modes: # --execute Mutate release-state: advance publication from 'failed' to @@ -12,8 +12,16 @@ # Requires RELEASE_STATE_TOKEN (App ID 5582030). # --manifest-only Strictly read-only: generate website release.json manifest # from recorded state without mutating release-state. +# --finish After the website serves release.json for this version: +# record website-updated and finish the publication. Same +# live-release checks and token as --execute. # --preflight Read-only dry-run of publication start using frozen candidate config. # +# --execute and --finish first prove, live, that GitHub release $DRAFT_ID is +# public, is Latest, is tagged at the candidate, and carries exactly the five +# recorded assets (GitHub's own sha256 digests). Only then is anything written. +# Both are safe to re-run: a step already recorded changes nothing. +# # Requirements: # - Pinned to VERSION 2.1.0, CANDIDATE_SHA 94c796fc34fd699776764d67d2f26013909a308e. # - For --execute, Mac 2.1.0 must already be published live as Latest on GitHub. @@ -23,6 +31,8 @@ set -euo pipefail readonly PINNED_VERSION="2.1.0" readonly PINNED_CANDIDATE_SHA="94c796fc34fd699776764d67d2f26013909a308e" readonly PINNED_REPO="raiseCatError/meowdisplay" +readonly PINNED_RELEASE_ID="442117184" +readonly PINNED_SHA256SUMS_DIGEST="279e22555e9a84a4fc59bd7d529f4efca6ccf2a8c986ac9fc939d627368bc1b7" VERSION="${VERSION:-$PINNED_VERSION}" CANDIDATE_SHA="${CANDIDATE_SHA:-$PINNED_CANDIDATE_SHA}" @@ -54,9 +64,13 @@ case "${1:-}" in --execute) mode="execute" ;; + --finish) + mode="finish" + ;; *) - echo "::error::usage: reconcile-mac-release.sh (--execute | --manifest-only | --preflight)" + echo "::error::usage: reconcile-mac-release.sh (--execute | --finish | --manifest-only | --preflight)" echo " --execute: Reconcile release-state with authorized release App token (mutating)" + echo " --finish: Record the live website manifest and finish publication (mutating)" echo " --manifest-only: Generate website release.json from current recorded state (read-only)" echo " --preflight: Check frozen candidate config and state machine without publishing" exit 1 @@ -131,7 +145,7 @@ fi work=$(mktemp -d "$scratch_base/meow-reconcile.XXXXXX") trap 'rm -rf "$work"' EXIT -if [ "$mode" = "execute" ] && [ -z "${RELEASE_STATE_TOKEN:-}" ]; then +if { [ "$mode" = "execute" ] || [ "$mode" = "finish" ]; } && [ -z "${RELEASE_STATE_TOKEN:-}" ]; then echo "::error::RELEASE_STATE_TOKEN is required to mutate the protected release-state branch (Ruleset 26251855)." exit 1 fi @@ -143,19 +157,28 @@ echo "Repository: $REPO" echo "Mode: $mode" echo "" +root="$here/../.." +# An explicit refspec: the remote-tracking ref is updated whatever fetch +# refspec the checkout configured (actions/checkout, a shallow clone, a +# developer clone). The repository is public, so this read needs no +# credential; the checkout deliberately persists none. +fetch_release_state() { + git -C "$root" fetch -q --no-tags origin "+refs/heads/release-state:refs/remotes/origin/release-state" +} + # Generic main config still requires Android; the frozen 2.1.0 candidate # explicitly excludes Android. Always extract the config from that commit. candidate_config="$work/approved-release-config.json" -git -C "$here/../.." fetch -q origin refs/heads/release/2.1.0 || { +git -C "$root" fetch -q --no-tags origin refs/heads/release/2.1.0 || { echo "::error::Cannot fetch frozen release/2.1.0" exit 1 } -candidate_head=$(git -C "$here/../.." rev-parse FETCH_HEAD) +candidate_head=$(git -C "$root" rev-parse FETCH_HEAD) [ "$candidate_head" = "$CANDIDATE_SHA" ] || { echo "::error::release/2.1.0 moved to $candidate_head; expected $CANDIDATE_SHA" exit 1 } -git -C "$here/../.." show "$CANDIDATE_SHA:.github/release-config.json" > "$candidate_config" || { +git -C "$root" show "$CANDIDATE_SHA:.github/release-config.json" > "$candidate_config" || { echo "::error::Cannot read frozen candidate release config" exit 1 } @@ -168,11 +191,11 @@ echo "✓ Approved candidate config verified: Mac + iOS; Android excluded" # Preflight the REAL publication state machine on an expendable copy, # preventing the original post-publication reconciliation failure. if [ "$mode" = "preflight" ]; then - git -C "$here/../.." fetch -q origin release-state || { + fetch_release_state || { echo "::error::Cannot fetch fresh release-state for preflight" exit 1 } - git -C "$here/../.." show "origin/release-state:releases/$VERSION.json" > "$work/state-for-preflight.json" + git -C "$root" show "origin/release-state:releases/$VERSION.json" > "$work/state-for-preflight.json" "$here/meow-release" publish start "$work/state-for-preflight.json" \ --config "$candidate_config" --branch-head "$CANDIDATE_SHA" || { echo "::error::Publication state machine refuses recovery" @@ -185,7 +208,7 @@ fi # Mode: manifest-only (genuinely read-only) if [ "$mode" = "manifest-only" ]; then echo "1. Generating website manifest from current recorded release-state (read-only)..." - git -C "$here/../.." fetch -q origin release-state || { + fetch_release_state || { echo "::error::Failed to fetch origin/release-state from remote. Relying on stale local state is prohibited." exit 1 } @@ -200,15 +223,75 @@ if [ "$mode" = "manifest-only" ]; then exit 0 fi -# Mode: execute (mutating) -# 1. Preflight check: Verify Mac 2.1.0 is published live on GitHub as Latest -echo "1. Checking live publication status on GitHub..." -latest_tag=$(gh api "repos/$REPO/releases/latest" --jq .tag_name) -[ "$latest_tag" = "v$VERSION" ] || { echo "::error::Latest release is '$latest_tag', expected 'v$VERSION'"; exit 1; } +# Proves the public release is exactly the approved one before any state write. +verify_live_release() { + echo "1. Checking the live GitHub Release against the recorded artifacts..." + local release latest_tag tag_sha names want_names recorded_state + release=$(gh api "repos/$REPO/releases/$PINNED_RELEASE_ID") + [ "$(jq -r .tag_name <<< "$release")" = "v$VERSION" ] || { echo "::error::release $PINNED_RELEASE_ID is not tagged v$VERSION"; exit 1; } + [ "$(jq -r .draft <<< "$release")" = "false" ] || { + echo "::error::release $PINNED_RELEASE_ID (v$VERSION) is still a draft: nothing was published, so nothing is reconciled" + exit 1 + } + latest_tag=$(gh api "repos/$REPO/releases/latest" --jq .tag_name) + [ "$latest_tag" = "v$VERSION" ] || { echo "::error::Latest release is '$latest_tag', expected 'v$VERSION'"; exit 1; } + tag_sha=$(gh api "repos/$REPO/commits/v$VERSION" --jq .sha) + [ "$tag_sha" = "$CANDIDATE_SHA" ] || { echo "::error::v$VERSION tag points to $tag_sha, expected candidate $CANDIDATE_SHA"; exit 1; } + + fetch_release_state || { echo "::error::Failed to fetch origin/release-state"; exit 1; } + recorded_state=$(git -C "$root" show "origin/release-state:releases/$VERSION.json") + # GitHub computes each asset's sha256 itself ("digest"); compare all five, + # by name, to the recorded Mac artifacts plus the pinned SHA256SUMS.txt. + names=$(jq -r '[.assets[] | "\(.name) \(.digest)"] | sort | join(",")' <<< "$release") + want_names=$(jq -r --arg sums "$PINNED_SHA256SUMS_DIGEST" \ + '[(.platforms.mac.artifacts[] | "\(.name) sha256:\(.sha256)"), "SHA256SUMS.txt sha256:\($sums)"] | sort | join(",")' <<< "$recorded_state") + [ "$names" = "$want_names" ] || { + echo "::error::live assets of v$VERSION are [$names], expected exactly [$want_names]" + exit 1 + } + echo "✓ v$VERSION is public and Latest at $CANDIDATE_SHA with exactly the five recorded assets" +} -tag_sha=$(gh api "repos/$REPO/commits/v$VERSION" --jq .sha) -[ "$tag_sha" = "$CANDIDATE_SHA" ] || { echo "::error::v$VERSION tag points to $tag_sha, expected candidate $CANDIDATE_SHA"; exit 1; } -echo "✓ Live GitHub Release v$VERSION is Latest pointing to $CANDIDATE_SHA" +# Mode: finish (mutating): the website serves this version's release.json. +if [ "$mode" = "finish" ]; then + verify_live_release + current=$(git -C "$root" show "origin/release-state:releases/$VERSION.json") + if [ "$(jq -r .publication.stage <<< "$current")" = "published" ]; then + echo "✓ publication of $VERSION is already recorded as published; nothing to do" + exit 0 + fi + [ "$(jq -r .publication.stage <<< "$current")" = "in-progress" ] && [ "$(jq -r .platforms.mac.stage <<< "$current")" = "published" ] || { + echo "::error::finish needs publication in-progress with Mac published (run action=reconcile first); state is $(jq -c '{publication: .publication.stage, mac: .platforms.mac.stage}' <<< "$current")" + exit 1 + } + [[ ${PROMOTION_PR:-} =~ ^[0-9]*$ ]] || { echo "::error::PROMOTION_PR must be a pull request number"; exit 1; } + live_url=$(jq -r .website.liveUrl "$candidate_config") + [[ $live_url =~ ^https://[A-Za-z0-9.-]+/[A-Za-z0-9._/-]+\.json$ ]] || { echo "::error::bad website.liveUrl '$live_url'"; exit 1; } + live_version=$(curl -fsSL --max-time 30 "$live_url?ts=$(date +%s)" | jq -r .version 2>/dev/null || echo none) + [ "$live_version" = "$VERSION" ] || { + echo "::error::$live_url serves version '$live_version', not $VERSION; deploy the website first (nothing recorded)" + exit 1 + } + echo "2. Recording the live website manifest..." + "$state_cmd" "$VERSION" publish website-updated STATE \ + --config "$candidate_config" --url "$live_url" --live-version "$live_version" + echo "3. Finishing the publication..." + "$state_cmd" "$VERSION" publish finish STATE \ + --config "$candidate_config" ${PROMOTION_PR:+--pr "$PROMOTION_PR"} + fetch_release_state || { echo "::error::Failed to fetch origin/release-state after finishing"; exit 1; } + final=$(git -C "$root" show "origin/release-state:releases/$VERSION.json") + echo "publication: $(jq -c .publication <<< "$final")" + echo "website: $(jq -c .website <<< "$final")" + [ "$(jq -r .publication.stage <<< "$final")" = "published" ] || { + echo "::error::publication is '$(jq -r .publication.stage <<< "$final")', not published" + exit 1 + } + echo "✓ MeowDisplay $VERSION publication finished" + exit 0 +fi + +# Mode: execute (mutating) +verify_live_release # 2. Require release App token for state writes echo "2. Checking release-state authorization..." @@ -246,11 +329,11 @@ echo "" # 7. Verify updated release-state on remote echo "7. Verifying reconciled release-state..." -git -C "$here/../.." fetch -q origin release-state || { +fetch_release_state || { echo "::error::Failed to fetch origin/release-state after reconciliation" exit 1 } -new_state=$(git -C "$here/../.." show origin/release-state:releases/"$VERSION".json) +new_state=$(git -C "$root" show origin/release-state:releases/"$VERSION".json) pub_stage=$(jq -r .publication.stage <<< "$new_state") mac_stage=$(jq -r .platforms.mac.stage <<< "$new_state") ios_stage=$(jq -r .platforms.ios.stage <<< "$new_state") @@ -264,4 +347,4 @@ echo " - platforms.mac: published" echo " - platforms.ios: published" echo " - publication: in-progress (ready for website deploy and source promotion)" echo "" -echo "Next step: Deploy website manifest to MeowDisplayWebsite, then promote source commit to main." +echo "Next step: deploy release.json on the website, then run this workflow with action=finish." diff --git a/scripts/release/recover-mac-release.sh b/scripts/release/recover-mac-release.sh index addb71c9d..a7f12b0e0 100755 --- a/scripts/release/recover-mac-release.sh +++ b/scripts/release/recover-mac-release.sh @@ -22,6 +22,10 @@ # - Enforces external T7 scratch storage (/Volumes/T7Tmp/ai-dev) for local runs; never defaults to /tmp. # - Verified rollback: if publication occurs but live feeds fail to propagate within 5 minutes, # Latest is restored to previous release and v2.1.0 is returned to draft, verifying both actions. +# Rollback limits: the v2.1.0 tag created at publication stays (the tag ruleset forbids +# deletion), and clients that fetched the feed while it was live may already have updated. +# - A release that is already public is never published or rolled back again from here: +# the workflow's action=reconcile verifies it live and records it. # - Release-state reconciliation: requires the authorized release App token (contents: write). set -euo pipefail @@ -171,13 +175,21 @@ is_draft=$(jq -r .draft "$work/draft.json") target_commitish=$(jq -r .target_commitish "$work/draft.json") [ "$tag_name" = "v$VERSION" ] || { echo "::error::draft tag is '$tag_name', expected 'v$VERSION'"; exit 1; } +if [ "$is_draft" = "false" ]; then + # Post-publication, not pre-publication: never publish or roll back again + # from here. Reconcile verifies the live release before recording it. + echo "::error::release $DRAFT_ID (v$VERSION) is already public (draft=false). Do not re-run publish: run this workflow with action=reconcile, which verifies the live release and records it in release-state." + exit 1 +fi [ "$is_draft" = "true" ] || { echo "::error::release $DRAFT_ID is not a draft (draft=$is_draft)"; exit 1; } [ "$target_commitish" = "$CANDIDATE_SHA" ] || { echo "::error::target_commitish is '$target_commitish', expected '$CANDIDATE_SHA'"; exit 1; } echo "✓ Draft $DRAFT_ID targets approved candidate $CANDIDATE_SHA" # 2. Confirm iOS is already published (fail-closed on fetch failure, no stale state) echo "2. Confirming iOS release status in release-state..." -git -C "$here/../.." fetch -q origin release-state || { +# Explicit refspec: updates origin/release-state whatever fetch refspec the +# checkout configured. The repository is public; no credential is needed. +git -C "$here/../.." fetch -q --no-tags origin "+refs/heads/release-state:refs/remotes/origin/release-state" || { echo "::error::Failed to fetch origin/release-state from remote. Relying on stale local state is prohibited." exit 1 } @@ -332,10 +344,13 @@ gh release edit "v$VERSION" --draft=false --latest -R "$REPO" echo "7. Verifying published tag and Latest status..." tagged_sha=$(gh api "repos/$REPO/commits/v$VERSION" --jq .sha) -[ "$tagged_sha" = "$CANDIDATE_SHA" ] || { echo "::error::tag v$VERSION points to $tagged_sha, not $CANDIDATE_SHA"; exit 1; } +# Every failure from here on happens AFTER the release went public: each one +# goes through rollback (a bare `exit` would skip the ERR trap and leave an +# unverified release as Latest). +[ "$tagged_sha" = "$CANDIDATE_SHA" ] || { echo "::error::tag v$VERSION points to $tagged_sha, not $CANDIDATE_SHA"; rollback; } latest_tag=$(gh api "repos/$REPO/releases/latest" --jq .tag_name) -[ "$latest_tag" = "v$VERSION" ] || { echo "::error::Latest is $latest_tag, expected v$VERSION"; exit 1; } +[ "$latest_tag" = "v$VERSION" ] || { echo "::error::Latest is $latest_tag, expected v$VERSION"; rollback; } echo "8. Verifying live feeds serve v$VERSION..." live_ok() { diff --git a/scripts/release/test/fixtures/release-state-2.1.0-failed.json b/scripts/release/test/fixtures/release-state-2.1.0-failed.json new file mode 100644 index 000000000..f05cbefde --- /dev/null +++ b/scripts/release/test/fixtures/release-state-2.1.0-failed.json @@ -0,0 +1,204 @@ +{ + "schema": 1, + "version": "2.1.0", + "branch": "release/2.1.0", + "mode": "manual-final-approval", + "requiredPlatforms": [ + "mac", + "ios" + ], + "excludedPlatforms": [ + "android" + ], + "candidate": { + "sha": "94c796fc34fd699776764d67d2f26013909a308e", + "runId": 42720735729, + "createdAt": "2026-11-09T23:28:46Z" + }, + "superseded": [ + { + "sha": "df0fef73a182bc51aafb783a1e98d339b8624e45", + "at": "2026-11-09T23:28:46Z", + "platforms": { + "mac": { + "stage": "failed", + "sha": "df0fef73a182bc51aafb783a1e98d339b8624e45", + "blockers": "Mac pipeline skipped (run 42710323487)", + "updatedAt": "2026-11-09T22:19:00Z" + }, + "ios": { + "stage": "uploaded", + "sha": "df0fef73a182bc51aafb783a1e98d339b8624e45", + "build": 1, + "ipaSha256": "c5759e6720bb2b531a33c38ae9fddf59965ac554320b5aef26e4c066eccccf1b", + "runId": 42710323487, + "blockers": [], + "updatedAt": "2026-11-09T22:26:02Z" + }, + "android": { + "stage": "pending", + "sha": "df0fef73a182bc51aafb783a1e98d339b8624e45" + } + } + } + ], + "platforms": { + "mac": { + "stage": "approved", + "sha": "94c796fc34fd699776764d67d2f26013909a308e", + "build": "2.1.0", + "runId": 42720735729, + "artifacts": [ + { + "name": "MeowDisplay.dmg", + "sha256": "d02273969b8a00fc7269f69ab6440bae92028bcb55b9e5f4765cb5d925e8c316" + }, + { + "name": "MeowDisplayReceiver.dmg", + "sha256": "4981863429e85dacf916287e466867ff1c38c838bc364c0ae483739b8d17eaf7" + }, + { + "name": "appcast-receiver.xml", + "sha256": "306cd1cbc1f415bf7668892be261907ea66f0a381a56b7f6921c3e6758f36609" + }, + { + "name": "appcast.xml", + "sha256": "b97d8bdddec17083407dbc08bc23052b84d6d3f7440ddfd6e4443d78f50548d5" + } + ], + "blockers": [], + "updatedAt": "2026-11-09T23:46:00Z" + }, + "ios": { + "stage": "published", + "sha": "94c796fc34fd699776764d67d2f26013909a308e", + "build": 2, + "ipaSha256": "2bd9382b0298cf5d184d9d18ddec6e0358385d446d0b34d6326c409e88af4269", + "runId": 42720735729, + "blockers": [], + "updatedAt": "2026-11-11T19:16:38Z", + "storeState": "READY_FOR_DISTRIBUTION", + "listingVersion": "2.1.0" + }, + "android": { + "stage": "pending", + "sha": "94c796fc34fd699776764d67d2f26013909a308e" + } + }, + "website": { + "stage": "pending" + }, + "publication": { + "stage": "failed", + "sha": "94c796fc34fd699776764d67d2f26013909a308e", + "startedAt": "2026-11-11T19:21:53Z", + "updatedAt": "2026-11-11T19:22:47Z", + "reason": "Mac publication stopped before going live (run 43085872196)", + "reverted": false + }, + "events": [ + { + "at": "2026-11-09T22:16:26Z", + "event": "created" + }, + { + "at": "2026-11-09T22:16:28Z", + "event": "candidate", + "sha": "df0fef73a182bc51aafb783a1e98d339b8624e45", + "runId": 42710323487 + }, + { + "at": "2026-11-09T22:19:00Z", + "event": "platform", + "platform": "mac", + "from": "pending", + "to": "failed" + }, + { + "at": "2026-11-09T22:25:57Z", + "event": "platform", + "platform": "ios", + "from": "pending", + "to": "built" + }, + { + "at": "2026-11-09T22:26:00Z", + "event": "platform", + "platform": "ios", + "from": "built", + "to": "signed" + }, + { + "at": "2026-11-09T22:26:02Z", + "event": "platform", + "platform": "ios", + "from": "signed", + "to": "uploaded" + }, + { + "at": "2026-11-09T23:28:46Z", + "event": "candidate", + "sha": "94c796fc34fd699776764d67d2f26013909a308e", + "runId": 42720735729 + }, + { + "at": "2026-11-09T23:39:23Z", + "event": "platform", + "platform": "ios", + "from": "pending", + "to": "built" + }, + { + "at": "2026-11-09T23:39:24Z", + "event": "platform", + "platform": "ios", + "from": "built", + "to": "signed" + }, + { + "at": "2026-11-09T23:39:26Z", + "event": "platform", + "platform": "ios", + "from": "signed", + "to": "uploaded" + }, + { + "at": "2026-11-09T23:45:55Z", + "event": "platform", + "platform": "mac", + "from": "pending", + "to": "signed" + }, + { + "at": "2026-11-09T23:45:57Z", + "event": "platform", + "platform": "mac", + "from": "signed", + "to": "uploaded" + }, + { + "at": "2026-11-09T23:46:00Z", + "event": "platform", + "platform": "mac", + "from": "uploaded", + "to": "approved" + }, + { + "at": "2026-11-11T19:16:38Z", + "event": "platform", + "platform": "ios", + "from": "uploaded", + "to": "published" + }, + { + "at": "2026-11-11T19:21:53Z", + "event": "publication", + "to": "in-progress" + }, + { + "at": "2026-11-11T19:22:47Z", + "event": "publication", + "to": "failed" + } + ] +} diff --git a/scripts/release/test/recover_mac_release_test.rb b/scripts/release/test/recover_mac_release_test.rb index 2059666fe..abc235b80 100644 --- a/scripts/release/test/recover_mac_release_test.rb +++ b/scripts/release/test/recover_mac_release_test.rb @@ -4,6 +4,7 @@ require "open3" require "tmpdir" require "fileutils" +require "json" class RecoverMacReleaseTest < Minitest::Test SCRIPT = File.expand_path("../recover-mac-release.sh", __dir__) @@ -28,33 +29,65 @@ def run_recovery(args = [], env = {}) "GH_TOKEN" => "mock-token", "FEED_POLL_SLEEP" => "0" } - Open3.capture3(default_env.merge(env), "bash", SCRIPT, *args) + Open3.capture3(default_env.merge(env), SCRIPT, *args) end def run_reconcile(args = [], env = {}) default_env = { "GH_TOKEN" => "mock-token" } - Open3.capture3(default_env.merge(env), "bash", RECONCILE_SCRIPT, *args) + Open3.capture3(default_env.merge(env), RECONCILE_SCRIPT, *args) + end + + RECORDED_ARTIFACTS = [ + ["MeowDisplay.dmg", DMG1_HASH], ["MeowDisplayReceiver.dmg", DMG2_HASH], + ["appcast-receiver.xml", FEED2_HASH], ["appcast.xml", FEED1_HASH] + ].freeze + RECORDED_ARTIFACTS_JSON = RECORDED_ARTIFACTS.map { |n, h| { "name" => n, "sha256" => h } }.to_json + + # The GitHub API as seen after publication: release 442117184 public, + # Latest, tagged at the candidate, with GitHub's own asset digests. + def live_release_json(draft: false, overrides: {}) + assets = (RECORDED_ARTIFACTS + [["SHA256SUMS.txt", EXPECTED_SUMS_HASH]]).map do |name, hash| + { "name" => name, "digest" => "sha256:#{overrides.fetch(name, hash)}" } + end + { "id" => 442_117_184, "tag_name" => "v2.1.0", "draft" => draft, "target_commitish" => VALID_SHA, + "assets" => assets }.to_json + end + + def write_live_release_gh(bin_dir, latest: "v2.1.0", release_json: live_release_json, log: nil) + File.write(File.join(bin_dir, "release.json.mock"), release_json) + gh = File.join(bin_dir, "gh") + File.write(gh, <<~SH) + #!/usr/bin/env bash + #{log ? "echo \"gh $*\" >> '#{log}'" : ''} + case "$*" in + *"releases/latest"*) echo '#{latest}' ;; + *"commits/v2.1.0"*) echo '#{VALID_SHA}' ;; + "api repos/raiseCatError/meowdisplay/releases/442117184") cat '#{bin_dir}/release.json.mock' ;; + *) echo "unexpected gh $*" >&2; exit 1 ;; + esac + SH + FileUtils.chmod(0o755, gh) end def test_input_pinning_rejects_differing_version_or_sha_or_draft_or_repo - out, err, status = Open3.capture3({ "VERSION" => "2.2.0" }, "bash", SCRIPT) + out, err, status = Open3.capture3({ "VERSION" => "2.2.0" }, SCRIPT) refute status.success? assert_includes err + out, "VERSION must be '2.1.0'" assert_includes err + out, "rejected" - out, err, status = Open3.capture3({ "CANDIDATE_SHA" => "1111111111111111111111111111111111111111" }, "bash", SCRIPT) + out, err, status = Open3.capture3({ "CANDIDATE_SHA" => "1111111111111111111111111111111111111111" }, SCRIPT) refute status.success? assert_includes err + out, "CANDIDATE_SHA must be '94c796fc34fd699776764d67d2f26013909a308e'" assert_includes err + out, "rejected" - out, err, status = Open3.capture3({ "DRAFT_ID" => "99999999" }, "bash", SCRIPT) + out, err, status = Open3.capture3({ "DRAFT_ID" => "99999999" }, SCRIPT) refute status.success? assert_includes err + out, "DRAFT_ID must be '442117184'" assert_includes err + out, "rejected" - out, err, status = Open3.capture3({ "GITHUB_REPOSITORY" => "other/repo" }, "bash", SCRIPT) + out, err, status = Open3.capture3({ "GITHUB_REPOSITORY" => "other/repo" }, SCRIPT) refute status.success? assert_includes err + out, "GITHUB_REPOSITORY must be 'raiseCatError/meowdisplay'" assert_includes err + out, "rejected" @@ -65,7 +98,7 @@ def test_local_execution_refuses_publish_mode "GITHUB_ACTIONS" => "false", "GITHUB_RUN_ID" => "" } - out, err, status = Open3.capture3(env, "bash", SCRIPT, "--publish") + out, err, status = Open3.capture3(env, SCRIPT, "--publish") refute status.success? assert_includes err + out, "Local execution is verification-only (--verify)" assert_includes err + out, "release-publish" @@ -104,7 +137,7 @@ def test_unapproved_github_actions_run_refuses_publication "GITHUB_RUN_ID" => "12345", "RUNNER_TEMP" => bin_dir } - out, err, status = Open3.capture3(env, "bash", SCRIPT, "--publish") + out, err, status = Open3.capture3(env, SCRIPT, "--publish") refute status.success? assert_includes err + out, "Current GitHub Actions run 12345 has not received human approval for 'release-publish' from required reviewers" end @@ -167,13 +200,13 @@ def test_scratch_volume_enforcement_locally SH FileUtils.chmod(0o755, mock_t7run) - out, err, status = Open3.capture3({ "PATH" => "#{bin_dir}:#{ENV['PATH']}", "RUNNER_TEMP" => "", "T7_RUN_DIR" => "/tmp/unapproved_scratch" }, "bash", SCRIPT) + out, err, status = Open3.capture3({ "PATH" => "#{bin_dir}:#{ENV['PATH']}", "RUNNER_TEMP" => "", "T7_RUN_DIR" => "/tmp/unapproved_scratch" }, SCRIPT) refute status.success? assert_includes err + out, "outside /Volumes/T7Tmp/ai-dev" assert_includes err + out, "Arbitrary scratch paths are rejected" # Reconcile script also rejects arbitrary T7_RUN_DIR - out, err, status = Open3.capture3({ "PATH" => "#{bin_dir}:#{ENV['PATH']}", "RUNNER_TEMP" => "", "T7_RUN_DIR" => "/tmp/unapproved_scratch" }, "bash", RECONCILE_SCRIPT, "--manifest-only") + out, err, status = Open3.capture3({ "PATH" => "#{bin_dir}:#{ENV['PATH']}", "RUNNER_TEMP" => "", "T7_RUN_DIR" => "/tmp/unapproved_scratch" }, RECONCILE_SCRIPT, "--manifest-only") refute status.success? assert_includes err + out, "outside /Volumes/T7Tmp/ai-dev" assert_includes err + out, "Arbitrary scratch paths are rejected" @@ -188,7 +221,7 @@ def test_scratch_volume_enforcement_locally SH FileUtils.chmod(0o755, mock_mount) - out, err, status = Open3.capture3({ "PATH" => "#{bin_dir}:#{ENV['PATH']}", "RUNNER_TEMP" => "" }, "bash", SCRIPT) + out, err, status = Open3.capture3({ "PATH" => "#{bin_dir}:#{ENV['PATH']}", "RUNNER_TEMP" => "" }, SCRIPT) refute status.success? assert_includes err + out, "External T7 scratch volume (/Volumes/T7Tmp) is not mounted" end @@ -210,7 +243,7 @@ def test_scratch_volume_enforcement_locally SH FileUtils.chmod(0o755, mock_df) - out, err, status = Open3.capture3({ "PATH" => "#{bin_dir}:#{ENV['PATH']}", "RUNNER_TEMP" => "" }, "bash", SCRIPT) + out, err, status = Open3.capture3({ "PATH" => "#{bin_dir}:#{ENV['PATH']}", "RUNNER_TEMP" => "" }, SCRIPT) refute status.success? assert_includes err + out, "detected fake mount-point directory on internal disk" end @@ -252,7 +285,8 @@ def test_failure_before_publication_when_release_is_not_draft out, err, status = run_recovery([], "PATH" => "#{bin_dir}:#{ENV['PATH']}", "RUNNER_TEMP" => bin_dir) refute status.success? - assert_includes err + out, "release 442117184 is not a draft" + assert_includes err + out, "release 442117184 (v2.1.0) is already public (draft=false)" + assert_includes err + out, "run this workflow with action=reconcile" end end @@ -665,6 +699,134 @@ def test_rollback_behavior_when_live_feeds_fail_after_publish end end + def test_post_publication_latest_mismatch_rolls_back_instead_of_exiting + with_scratch_dir do |bin_dir| + invocations_file = File.join(bin_dir, "gh_calls.txt") + File.write(invocations_file, "") + state_file = File.join(bin_dir, "gh_state.txt") + File.write(state_file, "latest=v2.0.0\ndraft=true\n") + + sums_content = "#{DMG1_HASH} MeowDisplay.dmg\n#{DMG2_HASH} MeowDisplayReceiver.dmg\n#{FEED1_HASH} appcast.xml\n#{FEED2_HASH} appcast-receiver.xml\n" + + mock_gh = File.join(bin_dir, "gh") + File.write(mock_gh, <<~SH) + #!/usr/bin/env bash + echo "gh $*" >> "#{invocations_file}" + case "$*" in + *"deployment-branch-policies"*) + if [[ "$*" == *"--jq"* ]]; then + echo "branch:release/*" + else + echo '{"branch_policies":[{"name":"release/*","type":"branch"}]}' + fi + ;; + *"environments/release-publish"*) + echo '{"deployment_branch_policy":{"custom_branch_policies":true},"protection_rules":[{"type":"required_reviewers"}]}' + ;; + *"actions/runs/12345/approvals"*) + echo '[{"state":"approved","environments":[{"name":"release-publish"}]}]' + ;; + *"releases/442117184"*"--jq .draft"*) + grep "^draft=" "#{state_file}" | cut -d= -f2 + ;; + *"releases/442117184") + draft_val=$(grep "^draft=" "#{state_file}" | cut -d= -f2) + echo '{"id":442117184,"tag_name":"v2.1.0","draft":'"$draft_val"',"target_commitish":"#{VALID_SHA}","assets":[{"name":"MeowDisplay.dmg"},{"name":"MeowDisplayReceiver.dmg"},{"name":"SHA256SUMS.txt"},{"name":"appcast-receiver.xml"},{"name":"appcast.xml"}]}' + ;; + *"releases/latest"*) + grep "^latest=" "#{state_file}" | cut -d= -f2 + ;; + *"release download v2.1.0"*) + dest="${@: -1}" + mkdir -p "$dest" + printf "%s" "#{sums_content}" > "$dest/SHA256SUMS.txt" + echo "mock-dmg1" > "$dest/MeowDisplay.dmg" + echo "mock-dmg2" > "$dest/MeowDisplayReceiver.dmg" + echo "mock-feed1" > "$dest/appcast.xml" + echo "mock-feed2" > "$dest/appcast-receiver.xml" + ;; + *"release edit v2.1.0"*"--draft=false --latest"*) + # Published, but GitHub does not report it as Latest. + sed -i '' 's/^draft=.*/draft=false/' "#{state_file}" 2>/dev/null || sed -i 's/^draft=.*/draft=false/' "#{state_file}" + ;; + *"release edit v2.0.0"*"--latest"*) + sed -i '' 's/^latest=.*/latest=v2.0.0/' "#{state_file}" 2>/dev/null || sed -i 's/^latest=.*/latest=v2.0.0/' "#{state_file}" + ;; + *"release edit v2.1.0"*"--draft=true"*) + sed -i '' 's/^draft=.*/draft=true/' "#{state_file}" 2>/dev/null || sed -i 's/^draft=.*/draft=true/' "#{state_file}" + ;; + *"commits/v2.1.0"*) + echo "#{VALID_SHA}" + ;; + *) exit 0 ;; + esac + SH + FileUtils.chmod(0o755, mock_gh) + + mock_shasum = File.join(bin_dir, "shasum") + File.write(mock_shasum, <<~SH) + #!/usr/bin/env bash + if [ "$1" = "-a" ] && [ "$2" = "256" ] && [ "$3" = "-c" ]; then exit 0; fi + target="${@: -1}" + case "$target" in + *"MeowDisplay.dmg") echo "#{DMG1_HASH} $target" ;; + *"MeowDisplayReceiver.dmg") echo "#{DMG2_HASH} $target" ;; + *"appcast.xml") echo "#{FEED1_HASH} $target" ;; + *"appcast-receiver.xml") echo "#{FEED2_HASH} $target" ;; + *"SHA256SUMS.txt") echo "#{EXPECTED_SUMS_HASH} $target" ;; + *) + content=$(cat) + case "$content" in + *"mock-feed1"*) echo "#{FEED1_HASH} -" ;; + *"mock-feed2"*) echo "#{FEED2_HASH} -" ;; + *) echo "0000000000000000000000000000000000000000000000000000000000000000 -" ;; + esac + ;; + esac + SH + FileUtils.chmod(0o755, mock_shasum) + + File.write(File.join(bin_dir, "verify-feed.sh"), "#!/usr/bin/env bash\nexit 0\n") + FileUtils.chmod(0o755, File.join(bin_dir, "verify-feed.sh")) + File.write(File.join(bin_dir, "verify-mac-artifact.sh"), "#!/usr/bin/env bash\nexit 0\n") + FileUtils.chmod(0o755, File.join(bin_dir, "verify-mac-artifact.sh")) + File.write(File.join(bin_dir, "check-build-number.sh"), "#!/usr/bin/env bash\nexit 0\n") + FileUtils.chmod(0o755, File.join(bin_dir, "check-build-number.sh")) + File.write(File.join(bin_dir, "published-baseline.sh"), "#!/usr/bin/env bash\nmkdir -p \"$1\"\necho k > \"$1/sender.key\"\necho k > \"$1/receiver.key\"\n") + FileUtils.chmod(0o755, File.join(bin_dir, "published-baseline.sh")) + + mock_curl = File.join(bin_dir, "curl") + File.write(mock_curl, "#!/usr/bin/env bash\nexit 1\n") + FileUtils.chmod(0o755, mock_curl) + + mock_sleep = File.join(bin_dir, "sleep") + File.write(mock_sleep, "#!/usr/bin/env bash\nexit 0\n") + FileUtils.chmod(0o755, mock_sleep) + + env = { + "PATH" => "#{bin_dir}:#{ENV['PATH']}", + "GITHUB_ACTIONS" => "true", + "GITHUB_RUN_ID" => "12345", + "RUNNER_TEMP" => bin_dir + } + out, err, status = run_recovery(["--publish"], env) + refute status.success? + # A bare `exit 1` here skipped the ERR trap and left the release public. + assert_includes err + out, "Latest is v2.0.0, expected v2.1.0" + refute_includes err + out, "Checking live feeds" + assert_includes err + out, "Rollback succeeded: v2.1.0 (ID 442117184) returned to draft; v2.0.0 restored as Latest" + + state = File.read(state_file) + assert_includes state, "latest=v2.0.0" + assert_includes state, "draft=true" + + calls = File.read(invocations_file) + # Assert both rollback commands used the correct tag names + assert_includes calls, "gh release edit v2.0.0 --latest -R raiseCatError/meowdisplay" + assert_includes calls, "gh release edit v2.1.0 --draft=true -R raiseCatError/meowdisplay" + end + end + def test_partial_rollback_failure_when_reverting_latest_fails with_scratch_dir do |bin_dir| state_file = File.join(bin_dir, "gh_state.txt") @@ -884,13 +1046,13 @@ def test_partial_rollback_failure_when_reverting_draft_fails end def test_reconcile_script_requires_explicit_mode - out, err, status = Open3.capture3({}, "bash", RECONCILE_SCRIPT) + out, err, status = Open3.capture3({}, RECONCILE_SCRIPT) refute status.success? - assert_includes err + out, "usage: reconcile-mac-release.sh (--execute | --manifest-only | --preflight)" + assert_includes err + out, "usage: reconcile-mac-release.sh (--execute | --finish | --manifest-only | --preflight)" end def test_reconcile_script_rejects_overrides - out, err, status = Open3.capture3({ "VERSION" => "3.0.0" }, "bash", RECONCILE_SCRIPT, "--execute") + out, err, status = Open3.capture3({ "VERSION" => "3.0.0" }, RECONCILE_SCRIPT, "--execute") refute status.success? assert_includes err + out, "VERSION must be '2.1.0'" assert_includes err + out, "rejected" @@ -977,16 +1139,7 @@ def test_successful_reconciliation_end_to_end invocations_file = File.join(bin_dir, "reconcile_calls.txt") File.write(invocations_file, "") - mock_gh = File.join(bin_dir, "gh") - File.write(mock_gh, <<~SH) - #!/usr/bin/env bash - case "$*" in - *"releases/latest"*) echo 'v2.1.0' ;; - *"commits/v2.1.0"*) echo '#{VALID_SHA}' ;; - *) exit 0 ;; - esac - SH - FileUtils.chmod(0o755, mock_gh) + write_live_release_gh(bin_dir) mock_state = File.join(bin_dir, "release-state.sh") File.write(mock_state, <<~SH) @@ -1012,7 +1165,7 @@ def test_successful_reconciliation_end_to_end echo '{"requiredPlatforms":["mac","ios"],"excludedPlatforms":["android"],"ios":{"submitForReview":false}}' ;; *"show origin/release-state"*) - echo '{"publication":{"stage":"in-progress"},"platforms":{"mac":{"stage":"published"},"ios":{"stage":"published"}}}' + echo '{"publication":{"stage":"in-progress"},"platforms":{"mac":{"stage":"published","artifacts":#{RECORDED_ARTIFACTS_JSON}},"ios":{"stage":"published"}}}' ;; *) exec /usr/bin/git "$@" ;; esac diff --git a/scripts/release/test/recovery_integration_test.rb b/scripts/release/test/recovery_integration_test.rb new file mode 100644 index 000000000..ecb92ce69 --- /dev/null +++ b/scripts/release/test/recovery_integration_test.rb @@ -0,0 +1,248 @@ +# frozen_string_literal: true + +require_relative "test_helper" +require "open3" +require "tmpdir" +require "fileutils" +require "json" + +# The 2.1.0 Mac recovery's production paths, as the workflow runs them: +# scripts executed directly (their Git mode matters, run 43117186436), the +# real reconcile-mac-release.sh -> release-state.sh -> meow-release state +# machine and real git against local remotes seeded with the actual frozen +# candidate commit and the actual recorded state (publication failed, Mac +# approved, iOS published). Only the GitHub REST API (gh) and the website +# fetch (curl) are stubbed. +class RecoveryIntegrationTest < Minitest::Test + ROOT = File.expand_path("../../..", __dir__) + RELEASE_DIR = File.join(ROOT, "scripts/release") + CANDIDATE = "94c796fc34fd699776764d67d2f26013909a308e" + UPSTREAM = "https://github.com/raiseCatError/meowdisplay" + SUMS = "279e22555e9a84a4fc59bd7d529f4efca6ccf2a8c986ac9fc939d627368bc1b7" + FIXTURE_STATE = File.join(__dir__, "fixtures/release-state-2.1.0-failed.json") + GIT_ID = ["-c", "user.name=test", "-c", "user.email=test@example.invalid"].freeze + + # MARK: - Executable modes, from Git + + def git_mode(path) + out, status = Open3.capture2("git", "-C", ROOT, "ls-files", "-s", "--", path) + assert status.success?, "git ls-files failed for #{path}" + out.split(" ").first + end + + def test_every_script_the_recovery_executes_is_tracked_executable + workflow = File.read(File.join(ROOT, ".github/workflows/recover-mac-release.yml")) + direct = workflow.scan(%r{^\s*(scripts/[A-Za-z0-9_./-]+)}).flatten.uniq + assert_includes direct, "scripts/release/reconcile-mac-release.sh" + assert_includes direct, "scripts/release/recover-mac-release.sh" + called = %w[check-environment.sh release-state.sh meow-release published-baseline.sh check-build-number.sh + verify-mac-artifact.sh verify-feed.sh].map { |f| "scripts/release/#{f}" } + (direct + called).uniq.each do |path| + assert_equal "100755", git_mode(path), "#{path} must be tracked as 100755 (git update-index --chmod=+x #{path})" + assert File.executable?(File.join(ROOT, path)), "#{path} is not executable in this checkout" + end + end + + # MARK: - Real state machine against local remotes + + def setup_remotes(dir, state_json) + origin = File.join(dir, "origin.git") + system("git", "init", "-q", "--bare", origin, exception: true) + # The real, immutable candidate commit (public repository; one commit). + _, err, status = Open3.capture3("git", "-C", origin, "fetch", "-q", "--depth", "1", "--no-tags", UPSTREAM, + "+refs/heads/release/2.1.0:refs/heads/release/2.1.0") + unless status.success? + flunk("cannot fetch the frozen candidate: #{err}") if ENV["CI"] + skip("network unavailable for the frozen candidate fetch: #{err.lines.first}") + end + head, = Open3.capture2("git", "-C", origin, "rev-parse", "refs/heads/release/2.1.0") + assert_equal CANDIDATE, head.strip, "release/2.1.0 moved off the frozen candidate" + + seed = File.join(dir, "seed") + system("git", "init", "-q", seed, exception: true) + system("git", "-C", seed, "checkout", "-q", "--orphan", "release-state", exception: true) + FileUtils.mkdir_p(File.join(seed, "releases")) + File.write(File.join(seed, "releases/2.1.0.json"), state_json) + system("git", "-C", seed, "add", "-A", exception: true) + system("git", "-C", seed, *GIT_ID, "commit", "-q", "-m", "seed", exception: true) + system("git", "-C", seed, "push", "-q", origin, "HEAD:refs/heads/release-state", exception: true) + + # The workflow's checkout: the scripts, unchanged and with their modes, + # in a repository whose origin is the local remote. + # A shallow clone, like actions/checkout's default (fetch-depth 1, no + # credential persisted); the local remote is itself shallow, so the clone + # must already know its boundary commits. + work = File.join(dir, "work") + system("git", "clone", "-q", "--depth", "1", "--no-single-branch", "--no-checkout", "--no-tags", + "file://#{origin}", work, exception: true) + FileUtils.mkdir_p(File.join(work, "scripts")) + FileUtils.cp_r(RELEASE_DIR, File.join(work, "scripts"), preserve: true) + [origin, work] + end + + def stub_bin(dir, release_json:, latest: "v2.1.0", site: '{"version":"2.1.0"}') + bin = File.join(dir, "bin") + FileUtils.mkdir_p(bin) + File.write(File.join(bin, "release.json.mock"), release_json) + File.write(File.join(bin, "gh"), <<~SH) + #!/usr/bin/env bash + echo "gh $*" >> "#{bin}/gh.log" + case "$*" in + "api repos/raiseCatError/meowdisplay/releases/442117184") cat "#{bin}/release.json.mock" ;; + "api repos/raiseCatError/meowdisplay/releases/latest --jq .tag_name") echo "#{latest}" ;; + "api repos/raiseCatError/meowdisplay/commits/v2.1.0 --jq .sha") echo "#{CANDIDATE}" ;; + *) echo "unexpected gh $*" >&2; exit 1 ;; + esac + SH + File.write(File.join(bin, "curl"), "#!/usr/bin/env bash\necho '#{site}'\n") + FileUtils.chmod(0o755, File.join(bin, "gh")) + FileUtils.chmod(0o755, File.join(bin, "curl")) + bin + end + + def recorded + @recorded ||= JSON.parse(File.read(FIXTURE_STATE)) + end + + def published_release(draft: false, tamper: nil) + assets = recorded.dig("platforms", "mac", "artifacts").map { |a| [a["name"], a["sha256"]] } + assets << ["SHA256SUMS.txt", SUMS] + assets.map! { |n, h| [n, n == tamper ? "0" * 64 : h] } + { "id" => 442_117_184, "tag_name" => "v2.1.0", "draft" => draft, "target_commitish" => CANDIDATE, + "assets" => assets.map { |n, h| { "name" => n, "digest" => "sha256:#{h}" } } }.to_json + end + + def reconcile(work, bin, origin, mode, extra = {}) + env = { "PATH" => "#{bin}:#{ENV['PATH']}", "RUNNER_TEMP" => File.dirname(bin), "GH_TOKEN" => "read-token", + "RELEASE_STATE_TOKEN" => "app-token", "RELEASE_STATE_REMOTE" => "file://#{origin}", + "GITHUB_REPOSITORY" => "raiseCatError/meowdisplay", "VERSION" => "2.1.0", "CANDIDATE_SHA" => CANDIDATE } + # Executed directly, exactly as the workflow step does. + Open3.capture3(env.merge(extra), File.join(work, "scripts/release/reconcile-mac-release.sh"), mode) + end + + def remote_state(origin) + JSON.parse(`git -C #{origin} show refs/heads/release-state:releases/2.1.0.json`) + end + + def state_commits(origin) + `git -C #{origin} rev-list --count refs/heads/release-state`.to_i + end + + def with_fixture(release_json: published_release, **stub) + Dir.mktmpdir("recovery-it-", scratch_base) do |dir| + origin, work = setup_remotes(dir, File.read(FIXTURE_STATE)) + yield origin, work, stub_bin(dir, release_json: release_json, **stub) + end + end + + def scratch_base + File.directory?("/Volumes/T7Tmp/ai-dev/tmp") ? "/Volumes/T7Tmp/ai-dev/tmp" : Dir.tmpdir + end + + def test_fixture_is_the_recorded_failed_publication + assert_equal "failed", recorded.dig("publication", "stage") + assert_equal "approved", recorded.dig("platforms", "mac", "stage") + assert_equal "published", recorded.dig("platforms", "ios", "stage") + assert_equal %w[mac ios], recorded["requiredPlatforms"] + assert_equal CANDIDATE, recorded.dig("candidate", "sha") + end + + def test_preflight_runs_the_real_gate_on_the_frozen_candidate_and_writes_nothing + with_fixture do |origin, work, bin| + before = state_commits(origin) + out, err, status = reconcile(work, bin, origin, "--preflight", "RELEASE_STATE_TOKEN" => "") + assert status.success?, "#{out}\n#{err}" + assert_includes out, "Approved candidate config verified: Mac + iOS; Android excluded" + assert_includes out, "Read-only preflight passed" + assert_equal before, state_commits(origin) + refute File.exist?(File.join(bin, "gh.log")), "preflight must not call the GitHub API" + end + end + + def test_reconcile_moves_failed_to_in_progress_and_records_mac_then_is_idempotent + with_fixture do |origin, work, bin| + out, err, status = reconcile(work, bin, origin, "--execute") + assert status.success?, "#{out}\n#{err}" + state = remote_state(origin) + assert_equal "in-progress", state.dig("publication", "stage") + assert_equal "published", state.dig("platforms", "mac", "stage") + assert_equal "https://github.com/raiseCatError/meowdisplay/releases/tag/v2.1.0", state.dig("platforms", "mac", "releaseUrl") + assert_equal "published", state.dig("platforms", "ios", "stage") + assert_equal "READY_FOR_DISTRIBUTION", state.dig("platforms", "ios", "storeState") + assert_equal "pending", state.dig("platforms", "android", "stage"), "Android is excluded and untouched" + assert_includes out, '"mac"' + refute_includes out, '"android"' + gh_calls = File.read(File.join(bin, "gh.log")) + refute_match(/release (edit|create|upload|delete)|-X (POST|PATCH|PUT|DELETE)/, gh_calls) + + # A re-run (e.g. a retried job) changes nothing. + commits = state_commits(origin) + out, err, status = reconcile(work, bin, origin, "--execute") + assert status.success?, "re-run: #{out}\n#{err}" + assert_equal commits, state_commits(origin) + end + end + + def test_reconcile_writes_nothing_while_the_release_is_still_a_draft + with_fixture(release_json: published_release(draft: true)) do |origin, work, bin| + before = state_commits(origin) + out, err, status = reconcile(work, bin, origin, "--execute") + refute status.success? + assert_includes out + err, "is still a draft: nothing was published" + assert_equal before, state_commits(origin) + assert_equal "failed", remote_state(origin).dig("publication", "stage") + end + end + + def test_reconcile_writes_nothing_when_a_live_asset_differs_from_the_record + with_fixture(release_json: published_release(tamper: "MeowDisplay.dmg")) do |origin, work, bin| + before = state_commits(origin) + out, err, status = reconcile(work, bin, origin, "--execute") + refute status.success? + assert_includes out + err, "live assets of v2.1.0 are" + assert_equal before, state_commits(origin) + end + end + + def test_reconcile_writes_nothing_when_another_release_is_latest + with_fixture(latest: "v2.0.0") do |origin, work, bin| + before = state_commits(origin) + out, err, status = reconcile(work, bin, origin, "--execute") + refute status.success? + assert_includes out + err, "Latest release is 'v2.0.0', expected 'v2.1.0'" + assert_equal before, state_commits(origin) + end + end + + def test_finish_needs_the_live_site_then_finishes_once + with_fixture(site: '{"version":"2.0.0"}') do |origin, work, bin| + _, _, status = reconcile(work, bin, origin, "--execute") + assert status.success? + before = state_commits(origin) + out, err, status = reconcile(work, bin, origin, "--finish") + refute status.success? + assert_includes out + err, "serves version '2.0.0', not 2.1.0; deploy the website first (nothing recorded)" + assert_equal before, state_commits(origin) + + File.write(File.join(bin, "curl"), "#!/usr/bin/env bash\necho '{\"version\":\"2.1.0\"}'\n") + out, err, status = reconcile(work, bin, origin, "--finish", "PROMOTION_PR" => "250") + assert status.success?, "#{out}\n#{err}" + state = remote_state(origin) + assert_equal "published", state.dig("publication", "stage") + assert_equal 250, state.dig("publication", "promotionPr") + assert_equal "published", state.dig("website", "stage") + + out, err, status = reconcile(work, bin, origin, "--finish") + assert status.success?, "#{out}\n#{err}" + assert_includes out, "already recorded as published" + end + end + + def test_finish_refuses_before_reconcile + with_fixture do |origin, work, bin| + out, err, status = reconcile(work, bin, origin, "--finish") + refute status.success? + assert_includes out + err, "finish needs publication in-progress with Mac published (run action=reconcile first)" + end + end +end diff --git a/scripts/release/test/workflow_checks_test.rb b/scripts/release/test/workflow_checks_test.rb index 6b9eb31f0..8cc1804d9 100644 --- a/scripts/release/test/workflow_checks_test.rb +++ b/scripts/release/test/workflow_checks_test.rb @@ -253,4 +253,36 @@ def test_platform_workflows_never_publish_or_submit assert_caught("stores must wait for publish-mac (or a resume)", "release-publish.yml" => ["(!inputs.resume && needs.publish-mac.result == 'success')", "(true)"]) end + + # Run 43117186436: the recovery workflow ran reconcile-mac-release.sh + # directly while Git tracked it as 100644, and every check still passed. + def test_a_directly_run_script_must_be_tracked_executable + Dir.mktmpdir do |repo| + system("git", "init", "-q", repo, exception: true) + index, status = Open3.capture2("git", "-C", ROOT, "ls-files", "-s", "--", "scripts") + assert status.success? + flipped = index.sub(/^100755 (\h+ 0\tscripts\/release\/reconcile-mac-release\.sh)$/, '100644 \\1') + refute_equal index, flipped, "fixture: reconcile-mac-release.sh is not 100755 in the real index" + _, status = Open3.capture2("git", "-C", repo, "update-index", "--add", "--info-only", "--index-info", stdin_data: flipped) + assert status.success? + out, status = Open3.capture2e({ "MEOW_REPO_ROOT" => repo }, "ruby", CHECKER) + refute status.success?, out + assert_includes out, "recover-mac-release.yml: job verify runs scripts/release/reconcile-mac-release.sh directly, but Git tracks it as 100644" + assert_includes out, "scripts/release/reconcile-mac-release.sh: tracked as 100644" + end + end + + def test_recovery_publication_stays_behind_its_gates + f = "recover-mac-release.yml" + assert_caught("the publish step must run only for action == 'publish'", + f => [" if: ${{ inputs.action == 'publish' }}\n env:\n GH_TOKEN: ${{ github.token }}\n VERSION: ${{ inputs.version }}\n CANDIDATE_SHA: ${{ inputs.candidate_sha }}\n DRAFT_ID", + " env:\n GH_TOKEN: ${{ github.token }}\n VERSION: ${{ inputs.version }}\n CANDIDATE_SHA: ${{ inputs.candidate_sha }}\n DRAFT_ID"]) + assert_caught("verify job must hold no credential", + f => [" runs-on: xcode-27\n permissions:\n contents: read\n steps:", + " runs-on: xcode-27\n permissions:\n contents: write\n steps:"]) + assert_caught("step \"Finish publication (website serves release.json)\" writes the release state without RELEASE_STATE_TOKEN", + f => [" PROMOTION_PR: ${{ inputs.promotion_pr }}", " PROMOTION_PR: ${{ inputs.promotion_pr }}\n RELEASE_STATE_TOKEN: x"]) + assert_caught("publish job must use the release-publish environment", + f => [" environment: release-publish\n", " environment: release-elsewhere\n"]) + end end From 5a062b9a4371c78ebdef0e38bbd11a8cbff5f381 Mon Sep 17 00:00:00 2001 From: raiseCatError <315733358+raiseCatError@users.noreply.github.com> Date: Thu, 12 Nov 2026 04:57:32 +0530 Subject: [PATCH 25/34] docs(release): describe the 2.1.0 recovery actions and rollback limits (cherry picked from commit b63cffd74796145b0e616f76d7e213c06ad471fc) --- RELEASE.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/RELEASE.md b/RELEASE.md index 53fb4a523..27662d208 100644 --- a/RELEASE.md +++ b/RELEASE.md @@ -453,6 +453,28 @@ finished step. Never hand-edit a published feed: it is signed, and the apps reject an edited copy. +### 2.1.0 Mac recovery (`recover-mac-release.yml`) + +The 2.1.0 publication stopped after the draft was created (run +43085872196). `recover-mac-release.yml`, dispatched from +`release/2.1.0-recovery`, finishes it from that draft without rebuilding. +Its `action` input selects one step: + +| Action | Jobs | What it does | +| --- | --- | --- | +| `verify` | `verify` only (read-only) | Checks the frozen candidate's config and runs the real `publish start` gate on a scratch copy of release-state | +| `publish` | `verify` + `publish` (release-publish approval) | Verifies the draft, publishes it as Latest, checks the live feeds (reverts on failure), then reconciles release-state | +| `reconcile` | `verify` + `publish` (approval) | For a release that is already public: verifies it live (Latest, tag at the candidate, the five recorded asset digests) and records Mac as published. Never edits the release | +| `finish` | `verify` + `publish` (approval) | When `meowdisplay.app/release.json` serves 2.1.0: records the website and finishes the publication | + +If a `publish` run made the release public but failed afterwards, re-run +with `reconcile`, never `publish`: `publish` refuses a release that is no +longer a draft. A rollback returns the release to a draft and restores +`v2.0.0` as Latest. The `v2.1.0` tag stays (tags can't be deleted), and +anyone who fetched the feed while it was live may already have updated. +Every script a workflow runs directly must be tracked as `100755`; +`check-release-workflows.rb` checks this in Git's index. + ## Release PR and versions `release-pr.yml` (manual, from `release/`) runs release-please From 6b96ab9f40062cff6cc6a38f034c138f4d7a5c88 Mon Sep 17 00:00:00 2001 From: raiseCatError <315733358+raiseCatError@users.noreply.github.com> Date: Thu, 12 Nov 2026 06:11:44 +0530 Subject: [PATCH 26/34] fix(release): finish through Bot Fight Mode with verifiable production evidence Cloudflare Bot Fight Mode challenges GitHub-hosted runners on meowdisplay.app's HTML, JSON and XML. Run 43125145760 got 403 with cf-mitigated: challenge, and Security Events shows a Bot Fight Mode managed challenge. WAF skip rules can't exempt a path from it. Only after such a challenge, finish proves production another way. It needs every link below and writes nothing if one is missing: - Cloudflare's GitHub App (id 85455) reports a successful Cloudflare Pages build of the site's main HEAD. Its details URL names the deployment. - That deployment's release.json is byte-identical to main's. Its content equals the manifest release-state generates (publishedAt aside). - Production serves llms.txt and site.js (not challenged) byte-identical to that deployment and to main. - live_release_sha256, the approver's own fetch of production release.json, equals the deployment's. A 403 without a Cloudflare challenge still fails with no fallback. The direct path is unchanged. (cherry picked from commit 2c1c1bd028774a6b895ba22eac692550f1b6bc01) --- .github/workflows/recover-mac-release.yml | 6 + RELEASE.md | 2 +- scripts/release/reconcile-mac-release.sh | 89 +++++++- .../release/test/recovery_integration_test.rb | 193 +++++++++++++++++- 4 files changed, 282 insertions(+), 8 deletions(-) diff --git a/.github/workflows/recover-mac-release.yml b/.github/workflows/recover-mac-release.yml index ab43a6bc7..7e4fd0fce 100644 --- a/.github/workflows/recover-mac-release.yml +++ b/.github/workflows/recover-mac-release.yml @@ -33,6 +33,11 @@ on: required: false type: string default: '' + live_release_sha256: + description: 'finish only, needed when Cloudflare challenges the runner: sha256 of https://meowdisplay.app/release.json as YOU fetched it' + required: false + type: string + default: '' permissions: {} @@ -137,6 +142,7 @@ jobs: VERSION: ${{ inputs.version }} CANDIDATE_SHA: ${{ inputs.candidate_sha }} PROMOTION_PR: ${{ inputs.promotion_pr }} + LIVE_RELEASE_SHA256: ${{ inputs.live_release_sha256 }} run: | set -euo pipefail scripts/release/reconcile-mac-release.sh --finish diff --git a/RELEASE.md b/RELEASE.md index 27662d208..cce086722 100644 --- a/RELEASE.md +++ b/RELEASE.md @@ -465,7 +465,7 @@ Its `action` input selects one step: | `verify` | `verify` only (read-only) | Checks the frozen candidate's config and runs the real `publish start` gate on a scratch copy of release-state | | `publish` | `verify` + `publish` (release-publish approval) | Verifies the draft, publishes it as Latest, checks the live feeds (reverts on failure), then reconciles release-state | | `reconcile` | `verify` + `publish` (approval) | For a release that is already public: verifies it live (Latest, tag at the candidate, the five recorded asset digests) and records Mac as published. Never edits the release | -| `finish` | `verify` + `publish` (approval) | When `meowdisplay.app/release.json` serves 2.1.0: records the website and finishes the publication | +| `finish` | `verify` + `publish` (approval) | When `meowdisplay.app/release.json` serves 2.1.0: records the website and finishes the publication. If Cloudflare's Bot Fight Mode challenges the runner (it does for GitHub-hosted runners, and WAF skip rules can't exempt a path from it), production is proven instead by Cloudflare's own Pages deployment record for the site's `main` HEAD, that deployment's manifest (identical to `main` and to release-state's), `llms.txt` and `site.js` served identically by production, and `live_release_sha256`: the SHA-256 of production `release.json` as the approver fetched it (`curl -fsSL https://meowdisplay.app/release.json \| shasum -a 256`) | If a `publish` run made the release public but failed afterwards, re-run with `reconcile`, never `publish`: `publish` refuses a release that is no diff --git a/scripts/release/reconcile-mac-release.sh b/scripts/release/reconcile-mac-release.sh index 383511eb9..b2de521f7 100755 --- a/scripts/release/reconcile-mac-release.sh +++ b/scripts/release/reconcile-mac-release.sh @@ -252,6 +252,79 @@ verify_live_release() { echo "✓ v$VERSION is public and Latest at $CANDIDATE_SHA with exactly the five recorded assets" } +# Bot Fight Mode challenges GitHub-hosted runners on the site's HTML, JSON and +# XML (Cloudflare Security Events, run 43125145760); WAF skip rules cannot +# exempt a path from it. Only after such a challenge, production is proven by +# evidence the runner CAN observe. Every link is required: +# 1. Cloudflare's own GitHub App (id 85455) reports a successful "Cloudflare +# Pages" build of the site branch's current HEAD; its details URL names the +# deployment, reachable at https://..pages.dev. +# 2. That deployment's manifest is byte-identical to the branch's file, and +# its content is exactly what release-state generates (publishedAt aside). +# 3. The PRODUCTION origin serves files Bot Fight Mode does not challenge +# (llms.txt, site.js) byte-identical to that deployment and to the branch: +# production serves this deployment, not an older or rolled-back one. +# 4. LIVE_RELEASE_SHA256: the approver's own fetch of the production manifest +# (shasum -a 256) equals the deployment's manifest. +# Sets live_version. Anything missing or different stops before any write. +readonly PAGES_APP_ID="85455" +readonly PAGES_APP_SLUG="cloudflare-workers-and-pages" +readonly PAGES_PROJECT="meowdisplay" +readonly PRODUCTION_PROBES="llms.txt site.js" +verify_site_via_production_deployment() { + local site_repo site_branch head details short deploy want got f + [[ ${LIVE_RELEASE_SHA256:-} =~ ^[0-9a-f]{64}$ ]] || { + echo "::error::live_release_sha256 is required here: fetch $live_url yourself and pass its sha256 (curl -fsSL $live_url | shasum -a 256); nothing recorded" + exit 1 + } + site_repo=$(jq -r .website.repository "$candidate_config") + site_branch=$(jq -r '.website.branch // "main"' "$candidate_config") + [[ $site_repo =~ ^[A-Za-z0-9_.-]+/[A-Za-z0-9_.-]+$ && $site_branch =~ ^[A-Za-z0-9._/-]+$ ]] || { echo "::error::bad website repository/branch"; exit 1; } + head=$(gh api "repos/$site_repo/commits/$site_branch" --jq .sha) + [[ $head =~ ^[0-9a-f]{40}$ ]] || { echo "::error::cannot resolve $site_repo $site_branch"; exit 1; } + + gh api "repos/$site_repo/commits/$head/check-runs?app_id=$PAGES_APP_ID&check_name=Cloudflare%20Pages&filter=latest" > "$work/pages-checks.json" + details=$(jq -r --arg head "$head" --argjson app "$PAGES_APP_ID" --arg slug "$PAGES_APP_SLUG" ' + [.check_runs[] | select(.app.id == $app and .app.slug == $slug and .head_sha == $head and .name == "Cloudflare Pages")] + | sort_by(.completed_at // "") | last // {} | select(.conclusion == "success") | .details_url // empty' "$work/pages-checks.json") + [[ $details =~ /pages/view/$PAGES_PROJECT/([0-9a-f]{8})-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$ ]] || { + echo "::error::no successful Cloudflare Pages deployment (app $PAGES_APP_ID) of $site_repo@$head; nothing recorded" + exit 1 + } + short=${BASH_REMATCH[1]} + deploy="https://$short.$PAGES_PROJECT.pages.dev" + echo " Cloudflare Pages deployment $short built $site_repo@$head ($site_branch HEAD)" + + site_file() { gh api -H "Accept: application/vnd.github.raw" "repos/$site_repo/contents/$1?ref=$head" > "$2"; } + site_file "$manifest_path" "$work/site-manifest.json" + curl -fsS --max-time 30 -o "$work/deploy-manifest.json" "$deploy/$manifest_path" + cmp -s "$work/site-manifest.json" "$work/deploy-manifest.json" || { echo "::error::$deploy/$manifest_path differs from $site_repo@$head; nothing recorded"; exit 1; } + "$state_cmd" "$VERSION" publish website-manifest STATE --config "$candidate_config" --out "$work/expected-manifest.json" >/dev/null + [ "$(jq -S 'del(.publishedAt)' "$work/deploy-manifest.json")" = "$(jq -S 'del(.publishedAt)' "$work/expected-manifest.json")" ] || { + echo "::error::the deployed manifest is not what release-state describes; nothing recorded" + exit 1 + } + want=$(shasum -a 256 "$work/deploy-manifest.json" | cut -c1-64) + [ "$want" = "$LIVE_RELEASE_SHA256" ] || { + echo "::error::your production $manifest_path sha256 $LIVE_RELEASE_SHA256 is not the deployment's $want; nothing recorded" + exit 1 + } + echo " ✓ deployment manifest = $site_branch's file = release-state's manifest; sha256 $want = your production fetch" + + for f in $PRODUCTION_PROBES; do + site_file "$f" "$work/site-$f" + curl -fsS --max-time 30 -o "$work/deploy-$f" "$deploy/$f" + got=$(curl -sS --max-time 30 -o "$work/prod-$f" -w '%{http_code}' "$live_origin/$f?ts=$(date +%s)") || got=000 + [ "$got" = 200 ] || { echo "::error::production $live_origin/$f answered HTTP $got; production unverified, nothing recorded"; exit 1; } + cmp -s "$work/prod-$f" "$work/deploy-$f" && cmp -s "$work/deploy-$f" "$work/site-$f" || { + echo "::error::production $live_origin/$f is not deployment $short's (production serves another deployment?); nothing recorded" + exit 1 + } + echo " ✓ production $live_origin/$f = deployment $short = $site_branch@${head:0:12}" + done + live_version=$(jq -r .version "$work/deploy-manifest.json") +} + # Mode: finish (mutating): the website serves this version's release.json. if [ "$mode" = "finish" ]; then verify_live_release @@ -266,8 +339,20 @@ if [ "$mode" = "finish" ]; then } [[ ${PROMOTION_PR:-} =~ ^[0-9]*$ ]] || { echo "::error::PROMOTION_PR must be a pull request number"; exit 1; } live_url=$(jq -r .website.liveUrl "$candidate_config") - [[ $live_url =~ ^https://[A-Za-z0-9.-]+/[A-Za-z0-9._/-]+\.json$ ]] || { echo "::error::bad website.liveUrl '$live_url'"; exit 1; } - live_version=$(curl -fsSL --max-time 30 "$live_url?ts=$(date +%s)" | jq -r .version 2>/dev/null || echo none) + [[ $live_url =~ ^(https://[A-Za-z0-9.-]+)/([A-Za-z0-9._/-]+\.json)$ ]] || { echo "::error::bad website.liveUrl '$live_url'"; exit 1; } + live_origin=${BASH_REMATCH[1]} + manifest_path=${BASH_REMATCH[2]} + code=$(curl -sS --max-time 30 -D "$work/live.headers" -o "$work/live.json" -w '%{http_code}' "$live_url?ts=$(date +%s)") || code=000 + if [ "$code" = 200 ]; then + live_version=$(jq -r .version "$work/live.json" 2>/dev/null || echo none) + echo "✓ $live_url fetched directly (version $live_version)" + elif [ "$code" = 403 ] && grep -qiE '^cf-mitigated:[[:space:]]*challenge' "$work/live.headers"; then + echo "$live_url answered this runner with a Cloudflare challenge (Bot Fight Mode cannot be skipped for it)." + verify_site_via_production_deployment + else + echo "::error::$live_url answered HTTP $code without a Cloudflare challenge; nothing recorded" + exit 1 + fi [ "$live_version" = "$VERSION" ] || { echo "::error::$live_url serves version '$live_version', not $VERSION; deploy the website first (nothing recorded)" exit 1 diff --git a/scripts/release/test/recovery_integration_test.rb b/scripts/release/test/recovery_integration_test.rb index ecb92ce69..71bbb9845 100644 --- a/scripts/release/test/recovery_integration_test.rb +++ b/scripts/release/test/recovery_integration_test.rb @@ -5,6 +5,7 @@ require "tmpdir" require "fileutils" require "json" +require "digest" # The 2.1.0 Mac recovery's production paths, as the workflow runs them: # scripts executed directly (their Git mode matters, run 43117186436), the @@ -80,9 +81,18 @@ def setup_remotes(dir, state_json) [origin, work] end - def stub_bin(dir, release_json:, latest: "v2.1.0", site: '{"version":"2.1.0"}') + SITE = "raiseCatError/MeowDisplayWebsite" + SITE_HEAD = "38426be3e61f4592cd2e3c313b606ea54f72c930" + PAGES_UUID = "e3a2b883-379e-4210-bde3-415043fd8539" + DEPLOY = "https://e3a2b883.meowdisplay.pages.dev" + PROD = "https://meowdisplay.app" + CHALLENGE_HEADERS = "HTTP/2 403\r\ncontent-type: text/html; charset=UTF-8\r\ncf-mitigated: challenge\r\nserver: cloudflare\r\n\r\n" + + # Only the network is stubbed: gh answers from fixture files, curl serves + # status/headers/body per URL (query string ignored) and honours -f, -D, -o, -w. + def stub_bin(dir, release_json:, latest: "v2.1.0") bin = File.join(dir, "bin") - FileUtils.mkdir_p(bin) + FileUtils.mkdir_p(File.join(bin, "site/files")) File.write(File.join(bin, "release.json.mock"), release_json) File.write(File.join(bin, "gh"), <<~SH) #!/usr/bin/env bash @@ -91,15 +101,83 @@ def stub_bin(dir, release_json:, latest: "v2.1.0", site: '{"version":"2.1.0"}') "api repos/raiseCatError/meowdisplay/releases/442117184") cat "#{bin}/release.json.mock" ;; "api repos/raiseCatError/meowdisplay/releases/latest --jq .tag_name") echo "#{latest}" ;; "api repos/raiseCatError/meowdisplay/commits/v2.1.0 --jq .sha") echo "#{CANDIDATE}" ;; + "api repos/#{SITE}/commits/main --jq .sha") cat "#{bin}/site/head" ;; + "api repos/#{SITE}/commits/"*"/check-runs?app_id=85455&check_name=Cloudflare%20Pages&filter=latest") cat "#{bin}/site/checks.json" ;; + "api -H Accept: application/vnd.github.raw repos/#{SITE}/contents/"*) + path=${4#repos/#{SITE}/contents/}; path=${path%%[?]ref=*} + [ "${4##*[?]ref=}" = "$(cat "#{bin}/site/head")" ] || exit 1 + cat "#{bin}/site/files/$path" ;; *) echo "unexpected gh $*" >&2; exit 1 ;; esac SH - File.write(File.join(bin, "curl"), "#!/usr/bin/env bash\necho '#{site}'\n") + File.write(File.join(bin, "curl"), <<~SH) + #!/usr/bin/env bash + echo "curl $*" >> "#{bin}/curl.log" + hdr= out= fmt= url= fail= + while [ $# -gt 0 ]; do + case "$1" in + -D) hdr=$2; shift ;; -o) out=$2; shift ;; -w) fmt=$2; shift ;; --max-time) shift ;; + --*) ;; -*f*) fail=1 ;; -*) ;; *) url=$1 ;; + esac + shift + done + key=$(printf '%s' "${url%%[?]*}" | tr -c 'A-Za-z0-9._-' '_') + d="#{bin}/www/$key" + code=$(cat "$d/code" 2>/dev/null || echo 404) + [ -z "$hdr" ] || cat "$d/headers" > "$hdr" 2>/dev/null || : > "$hdr" + if [ -n "$out" ]; then cat "$d/body" > "$out" 2>/dev/null || : > "$out"; else cat "$d/body" 2>/dev/null; fi + [ -z "$fmt" ] || printf '%s' "$code" + [ -n "$fail" ] && [ "$code" -ge 400 ] && exit 22 + exit 0 + SH FileUtils.chmod(0o755, File.join(bin, "gh")) FileUtils.chmod(0o755, File.join(bin, "curl")) bin end + def web(bin, url, body, code: 200, headers: "HTTP/2 #{code}\r\n\r\n") + d = File.join(bin, "www", url.gsub(/[^A-Za-z0-9._-]/, "_")) + FileUtils.mkdir_p(d) + File.write(File.join(d, "code"), code.to_s) + File.write(File.join(d, "headers"), headers) + File.write(File.join(d, "body"), body) + end + + # The website as deployed from SITE_HEAD by Cloudflare Pages: the repository + # files, the deployment's copies and the production origin (whose + # release.json Bot Fight Mode challenges, as it does for GitHub runners). + def site(bin, manifest, check_app: 85_455, check_slug: "cloudflare-workers-and-pages", conclusion: "success", + deployed_manifest: manifest, prod_llms: "llms 2.1\n", prod_llms_code: 200, prod_manifest: :challenge) + File.write(File.join(bin, "site/head"), "#{SITE_HEAD}\n") + File.write(File.join(bin, "site/checks.json"), { + "check_runs" => [{ "name" => "Cloudflare Pages", "head_sha" => SITE_HEAD, "conclusion" => conclusion, + "completed_at" => "2026-11-12T00:05:00Z", + "app" => { "id" => check_app, "slug" => check_slug }, + "details_url" => "https://dash.cloudflare.com/?to=/c1644ccedec713ad6e4f2d34cd76aa06/pages/view/meowdisplay/#{PAGES_UUID}" }] + }.to_json) + files = { "release.json" => manifest, "llms.txt" => "llms 2.1\n", "site.js" => "/* site 2.1 */\n" } + files.each { |name, body| File.write(File.join(bin, "site/files", name), body) } + web(bin, "#{DEPLOY}/release.json", deployed_manifest) + web(bin, "#{DEPLOY}/llms.txt", files["llms.txt"]) + web(bin, "#{DEPLOY}/site.js", files["site.js"]) + web(bin, "#{PROD}/llms.txt", prod_llms, code: prod_llms_code) + web(bin, "#{PROD}/site.js", files["site.js"]) + case prod_manifest + when :challenge then web(bin, "#{PROD}/release.json", "Just a moment...", code: 403, headers: CHALLENGE_HEADERS) + when :forbidden then web(bin, "#{PROD}/release.json", "forbidden", code: 403) + else web(bin, "#{PROD}/release.json", prod_manifest) + end + end + + # The manifest release-state generates, through the real --manifest-only path. + def generated_manifest(work, bin, origin) + out, err, status = reconcile(work, bin, origin, "--manifest-only") + assert status.success?, "#{out}\n#{err}" + json = out[/^\{\n.*?^\}$/m] + JSON.parse(json) + json + "\n" + end + def recorded @recorded ||= JSON.parse(File.read(FIXTURE_STATE)) end @@ -215,18 +293,22 @@ def test_reconcile_writes_nothing_when_another_release_is_latest end def test_finish_needs_the_live_site_then_finishes_once - with_fixture(site: '{"version":"2.0.0"}') do |origin, work, bin| + with_fixture do |origin, work, bin| _, _, status = reconcile(work, bin, origin, "--execute") assert status.success? + manifest = generated_manifest(work, bin, origin) + site(bin, manifest, prod_manifest: '{"version":"2.0.0"}') before = state_commits(origin) out, err, status = reconcile(work, bin, origin, "--finish") refute status.success? assert_includes out + err, "serves version '2.0.0', not 2.1.0; deploy the website first (nothing recorded)" assert_equal before, state_commits(origin) - File.write(File.join(bin, "curl"), "#!/usr/bin/env bash\necho '{\"version\":\"2.1.0\"}'\n") + web(bin, "#{PROD}/release.json", manifest) out, err, status = reconcile(work, bin, origin, "--finish", "PROMOTION_PR" => "250") assert status.success?, "#{out}\n#{err}" + assert_includes out, "fetched directly (version 2.1.0)" + refute_match(/check-runs/, File.read(File.join(bin, "gh.log")), "a direct fetch needs no deployment evidence") state = remote_state(origin) assert_equal "published", state.dig("publication", "stage") assert_equal 250, state.dig("publication", "promotionPr") @@ -238,6 +320,107 @@ def test_finish_needs_the_live_site_then_finishes_once end end + # Run 43125145760: Bot Fight Mode challenged the runner on release.json. + def finish_through_challenge(sha: :deployed, **site_options) + with_fixture do |origin, work, bin| + _, _, status = reconcile(work, bin, origin, "--execute") + assert status.success? + manifest = generated_manifest(work, bin, origin) + site(bin, manifest, **site_options) + sha = Digest::SHA256.hexdigest(site_options.fetch(:deployed_manifest, manifest)) if sha == :deployed + before = state_commits(origin) + out, err, status = reconcile(work, bin, origin, "--finish", "LIVE_RELEASE_SHA256" => sha.to_s) + yield out + err, status, origin, before + end + end + + def assert_refused(text, status, origin, before, message) + refute status.success?, text + assert_includes text, message + assert_includes text, "nothing recorded" + assert_equal before, state_commits(origin), "nothing may be written" + assert_equal "pending", remote_state(origin).dig("website", "stage") + assert_equal "in-progress", remote_state(origin).dig("publication", "stage") + end + + def test_finish_through_a_challenge_with_complete_production_evidence + finish_through_challenge do |text, status, origin, _| + assert status.success?, text + assert_includes text, "answered this runner with a Cloudflare challenge" + assert_includes text, "Cloudflare Pages deployment e3a2b883 built #{SITE}@#{SITE_HEAD}" + assert_includes text, "deployment manifest = main's file = release-state's manifest" + assert_includes text, "production https://meowdisplay.app/llms.txt = deployment e3a2b883" + assert_includes text, "production https://meowdisplay.app/site.js = deployment e3a2b883" + state = remote_state(origin) + assert_equal "published", state.dig("publication", "stage") + assert_equal "published", state.dig("website", "stage") + assert_equal "https://meowdisplay.app/release.json", state.dig("website", "url") + end + end + + def test_challenge_without_the_approvers_production_hash_records_nothing + finish_through_challenge(sha: "") do |text, status, origin, before| + assert_refused(text, status, origin, before, "live_release_sha256 is required here") + end + end + + def test_challenge_with_a_different_production_hash_records_nothing + finish_through_challenge(sha: "1" * 64) do |text, status, origin, before| + assert_refused(text, status, origin, before, "is not the deployment's") + end + end + + def test_challenge_needs_cloudflares_own_successful_deployment_record + finish_through_challenge(check_app: 1) do |text, status, origin, before| + assert_refused(text, status, origin, before, "no successful Cloudflare Pages deployment (app 85455)") + end + finish_through_challenge(check_slug: "someone-else") do |text, status, origin, before| + assert_refused(text, status, origin, before, "no successful Cloudflare Pages deployment") + end + finish_through_challenge(conclusion: "failure") do |text, status, origin, before| + assert_refused(text, status, origin, before, "no successful Cloudflare Pages deployment") + end + end + + def test_challenge_with_a_deployed_manifest_unlike_the_repository_records_nothing + finish_through_challenge(deployed_manifest: "{\"version\":\"2.1.0\"}\n") do |text, status, origin, before| + assert_refused(text, status, origin, before, "differs from #{SITE}@#{SITE_HEAD}") + end + end + + def test_challenge_with_a_manifest_unlike_release_state_records_nothing + with_fixture do |origin, work, bin| + _, _, status = reconcile(work, bin, origin, "--execute") + assert status.success? + bad = JSON.parse(generated_manifest(work, bin, origin)) + bad["platforms"]["android"] = { "store" => "https://play.google.com/store/apps/details?id=x" } + bad = JSON.pretty_generate(bad) + "\n" + site(bin, bad) + before = state_commits(origin) + out, err, status = reconcile(work, bin, origin, "--finish", "LIVE_RELEASE_SHA256" => Digest::SHA256.hexdigest(bad)) + assert_refused(out + err, status, origin, before, "the deployed manifest is not what release-state describes") + end + end + + def test_challenge_when_production_serves_another_deployment_records_nothing + finish_through_challenge(prod_llms: "llms 2.0\n") do |text, status, origin, before| + assert_refused(text, status, origin, before, "production https://meowdisplay.app/llms.txt is not deployment e3a2b883's") + end + end + + def test_challenge_when_production_is_unreachable_records_nothing + finish_through_challenge(prod_llms_code: 403) do |text, status, origin, before| + assert_refused(text, status, origin, before, "answered HTTP 403; production unverified") + end + end + + def test_a_403_that_is_not_a_cloudflare_challenge_gets_no_fallback + finish_through_challenge(prod_manifest: :forbidden) do |text, status, origin, before| + assert_refused(text, status, origin, before, "answered HTTP 403 without a Cloudflare challenge") + refute_includes text, "Cloudflare Pages deployment" + end + end + def test_finish_refuses_before_reconcile with_fixture do |origin, work, bin| out, err, status = reconcile(work, bin, origin, "--finish") From 49ec195616433953cf61b79973a1b2edb526739e Mon Sep 17 00:00:00 2001 From: raiseCatError <315733358+raiseCatError@users.noreply.github.com> Date: Thu, 12 Nov 2026 06:43:40 +0530 Subject: [PATCH 27/34] fix(release): read the private website's evidence with the website App Finish run 43130568611 detected the Bot Fight Mode challenge, then hit 'gh: Not Found (HTTP 404)'. raiseCatError/MeowDisplayWebsite is private, so the protected job's GITHUB_TOKEN can't read it, and neither can anonymous REST, git or raw. Diagnostic run 43130991065 confirmed this. - A new read-only site-evidence job (finish only) runs in website-update, where the website App's key lives. It mints a contents: read token for MeowDisplayWebsite and saves main's HEAD SHA, release.json, llms.txt and site.js as an artifact. - The protected finish compares production with that evidence. main's release.json must equal release-state's manifest. Production must serve llms.txt and site.js byte-identical to main. live_release_sha256 must equal main's release.json. Anything missing writes nothing. - The Cloudflare check-run link is dropped. Reading it would need Checks permission on the website App, and production's own bytes are the stronger evidence that it serves this build. - check-release-workflows.rb keeps site-evidence read-only. (cherry picked from commit 4fee76c7a45b627ae20a3b904a427d75db61e786) --- .github/workflows/recover-mac-release.yml | 56 ++++++++- RELEASE.md | 2 +- scripts/release/check-release-workflows.rb | 11 +- scripts/release/reconcile-mac-release.sh | 110 ++++++++++-------- .../release/test/recover_mac_release_test.rb | 2 +- .../release/test/recovery_integration_test.rb | 105 ++++++++--------- scripts/release/test/workflow_checks_test.rb | 11 ++ 7 files changed, 186 insertions(+), 111 deletions(-) diff --git a/.github/workflows/recover-mac-release.yml b/.github/workflows/recover-mac-release.yml index 7e4fd0fce..3e084f5ae 100644 --- a/.github/workflows/recover-mac-release.yml +++ b/.github/workflows/recover-mac-release.yml @@ -72,6 +72,49 @@ jobs: set -euo pipefail scripts/release/reconcile-mac-release.sh --preflight + # finish only: the website repository is private, so its branch HEAD and + # the files production is compared with are read here, with the website + # App's contents:read token from website-update (where its key lives), + # and handed to the protected job. Nothing is written. + site-evidence: + needs: verify + if: ${{ inputs.action == 'finish' }} + runs-on: ubuntu-latest + environment: website-update + permissions: + contents: read + steps: + - uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6 + with: + persist-credentials: false + - name: Environment is protected + env: + GH_TOKEN: ${{ github.token }} + run: scripts/release/check-environment.sh website-update + - name: Website read token (website App, contents read only) + id: site-token + uses: actions/create-github-app-token@64ab729a6294000f5aa4a4bc0b73d1f32bc45510 # v3.3.0 + with: + client-id: ${{ vars.WEBSITE_APP_CLIENT_ID }} + private-key: ${{ secrets.WEBSITE_APP_PRIVATE_KEY }} + owner: raiseCatError + repositories: MeowDisplayWebsite + permission-contents: read + - name: Save the website's branch HEAD files (read-only) + env: + GH_TOKEN: ${{ steps.site-token.outputs.token }} + VERSION: ${{ inputs.version }} + CANDIDATE_SHA: ${{ inputs.candidate_sha }} + run: | + set -euo pipefail + scripts/release/reconcile-mac-release.sh --site-evidence "$RUNNER_TEMP/site-evidence" + - uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2 + with: + name: site-evidence + path: ${{ runner.temp }}/site-evidence + retention-days: 1 + if-no-files-found: error + # One protected job for every mutating action. publish is the only action # that edits the GitHub Release; reconcile and finish refuse to write # anything unless the release is already public, Latest, tagged at the @@ -79,8 +122,11 @@ jobs: # release went public but whose reconciliation failed, re-run with # action=reconcile, never publish (publish refuses a non-draft release). publish: - needs: verify - if: ${{ inputs.action == 'publish' || inputs.action == 'reconcile' || inputs.action == 'finish' }} + needs: [verify, site-evidence] + if: >- + ${{ !cancelled() && needs.verify.result == 'success' && + (inputs.action == 'publish' || inputs.action == 'reconcile' || + (inputs.action == 'finish' && needs.site-evidence.result == 'success')) }} runs-on: xcode-27 environment: release-publish permissions: @@ -134,9 +180,15 @@ jobs: run: | set -euo pipefail scripts/release/reconcile-mac-release.sh --execute + - uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2 + if: ${{ inputs.action == 'finish' }} + with: + name: site-evidence + path: ${{ runner.temp }}/site-evidence - name: Finish publication (website serves release.json) if: ${{ inputs.action == 'finish' }} env: + SITE_EVIDENCE_DIR: ${{ runner.temp }}/site-evidence RELEASE_STATE_TOKEN: ${{ steps.state-token.outputs.token }} GH_TOKEN: ${{ github.token }} VERSION: ${{ inputs.version }} diff --git a/RELEASE.md b/RELEASE.md index cce086722..adf9b9f03 100644 --- a/RELEASE.md +++ b/RELEASE.md @@ -465,7 +465,7 @@ Its `action` input selects one step: | `verify` | `verify` only (read-only) | Checks the frozen candidate's config and runs the real `publish start` gate on a scratch copy of release-state | | `publish` | `verify` + `publish` (release-publish approval) | Verifies the draft, publishes it as Latest, checks the live feeds (reverts on failure), then reconciles release-state | | `reconcile` | `verify` + `publish` (approval) | For a release that is already public: verifies it live (Latest, tag at the candidate, the five recorded asset digests) and records Mac as published. Never edits the release | -| `finish` | `verify` + `publish` (approval) | When `meowdisplay.app/release.json` serves 2.1.0: records the website and finishes the publication. If Cloudflare's Bot Fight Mode challenges the runner (it does for GitHub-hosted runners, and WAF skip rules can't exempt a path from it), production is proven instead by Cloudflare's own Pages deployment record for the site's `main` HEAD, that deployment's manifest (identical to `main` and to release-state's), `llms.txt` and `site.js` served identically by production, and `live_release_sha256`: the SHA-256 of production `release.json` as the approver fetched it (`curl -fsSL https://meowdisplay.app/release.json \| shasum -a 256`) | +| `finish` | `verify` + `publish` (approval) | When `meowdisplay.app/release.json` serves 2.1.0: records the website and finishes the publication. If Cloudflare's Bot Fight Mode challenges the runner (it does for GitHub-hosted runners, and WAF skip rules can't exempt a path from it), production is proven instead: a read-only `site-evidence` job (website App, contents: read, `website-update`) saves the private website repository's `main` HEAD files; its `release.json` must equal release-state's manifest, production must serve `llms.txt` and `site.js` byte-identical to that HEAD, and `live_release_sha256` (the approver's own `curl -fsSL https://meowdisplay.app/release.json \| shasum -a 256`) must equal that HEAD's `release.json` | If a `publish` run made the release public but failed afterwards, re-run with `reconcile`, never `publish`: `publish` refuses a release that is no diff --git a/scripts/release/check-release-workflows.rb b/scripts/release/check-release-workflows.rb index d1894edfd..70d082330 100644 --- a/scripts/release/check-release-workflows.rb +++ b/scripts/release/check-release-workflows.rb @@ -363,9 +363,18 @@ def release_ref_guard?(step, version_from_input:) name = "recover-mac-release.yml" common(name, doc) only_trigger(name, doc, "workflow_dispatch") - secrets_behind_environments(name, doc, %w[release-publish]) + secrets_behind_environments(name, doc, %w[release-publish website-update]) jobs = doc["jobs"] || {} ver = jobs["verify"] + # The site-evidence job only reads the private website repository. + if (se = jobs["site-evidence"]) + tok = steps(se).find { |s| s["uses"].to_s.start_with?("actions/create-github-app-token@") } || {} + perms = (tok["with"] || {}).select { |k, _| k.start_with?("permission-") } + unless env_name(se) == "website-update" && perms == { "permission-contents" => "read" } && + se["permissions"] == { "contents" => "read" } && !se.to_s.include?("RELEASE_STATE_TOKEN") + err(name, "site-evidence must stay read-only: website-update, website App token with contents: read only, no state token") + end + end err(name, "verify must preflight candidate configuration") unless ver && steps(ver).any? { |s| run_text(s).include?("reconcile-mac-release.sh --preflight") } pub = jobs["publish"] if pub.nil? diff --git a/scripts/release/reconcile-mac-release.sh b/scripts/release/reconcile-mac-release.sh index b2de521f7..96e6037ff 100755 --- a/scripts/release/reconcile-mac-release.sh +++ b/scripts/release/reconcile-mac-release.sh @@ -3,7 +3,7 @@ # after Mac 2.1.0 publication is live. # # Usage: -# reconcile-mac-release.sh (--execute | --finish | --manifest-only | --preflight) +# reconcile-mac-release.sh (--execute | --finish | --manifest-only | --preflight | --site-evidence DIR) # # Modes: # --execute Mutate release-state: advance publication from 'failed' to @@ -16,6 +16,9 @@ # record website-updated and finish the publication. Same # live-release checks and token as --execute. # --preflight Read-only dry-run of publication start using frozen candidate config. +# --site-evidence DIR Read-only: save the website repository's branch HEAD +# and the files --finish compares with production into DIR. +# GH_TOKEN must read that (private) repository. # # --execute and --finish first prove, live, that GitHub release $DRAFT_ID is # public, is Latest, is tagged at the candidate, and carries exactly the five @@ -67,8 +70,12 @@ case "${1:-}" in --finish) mode="finish" ;; + --site-evidence) + mode="site-evidence" + evidence_out=${2:?--site-evidence needs an output directory} + ;; *) - echo "::error::usage: reconcile-mac-release.sh (--execute | --finish | --manifest-only | --preflight)" + echo "::error::usage: reconcile-mac-release.sh (--execute | --finish | --manifest-only | --preflight | --site-evidence DIR)" echo " --execute: Reconcile release-state with authorized release App token (mutating)" echo " --finish: Record the live website manifest and finish publication (mutating)" echo " --manifest-only: Generate website release.json from current recorded state (read-only)" @@ -256,75 +263,79 @@ verify_live_release() { # XML (Cloudflare Security Events, run 43125145760); WAF skip rules cannot # exempt a path from it. Only after such a challenge, production is proven by # evidence the runner CAN observe. Every link is required: -# 1. Cloudflare's own GitHub App (id 85455) reports a successful "Cloudflare -# Pages" build of the site branch's current HEAD; its details URL names the -# deployment, reachable at https://..pages.dev. -# 2. That deployment's manifest is byte-identical to the branch's file, and -# its content is exactly what release-state generates (publishedAt aside). +# 1. The website repository's branch HEAD files (SITE_EVIDENCE_DIR, saved by +# --site-evidence in the read-only site-evidence job: the repository is +# private, and only the website App in website-update may read it). +# 2. That HEAD's manifest is exactly what release-state generates +# (publishedAt aside). # 3. The PRODUCTION origin serves files Bot Fight Mode does not challenge -# (llms.txt, site.js) byte-identical to that deployment and to the branch: -# production serves this deployment, not an older or rolled-back one. +# (llms.txt, site.js) byte-identical to that HEAD: production serves this +# build, not an older, failed or rolled-back deployment. # 4. LIVE_RELEASE_SHA256: the approver's own fetch of the production manifest -# (shasum -a 256) equals the deployment's manifest. +# (shasum -a 256) equals that HEAD's manifest byte for byte. # Sets live_version. Anything missing or different stops before any write. -readonly PAGES_APP_ID="85455" -readonly PAGES_APP_SLUG="cloudflare-workers-and-pages" -readonly PAGES_PROJECT="meowdisplay" readonly PRODUCTION_PROBES="llms.txt site.js" -verify_site_via_production_deployment() { - local site_repo site_branch head details short deploy want got f - [[ ${LIVE_RELEASE_SHA256:-} =~ ^[0-9a-f]{64}$ ]] || { - echo "::error::live_release_sha256 is required here: fetch $live_url yourself and pass its sha256 (curl -fsSL $live_url | shasum -a 256); nothing recorded" - exit 1 - } +site_coordinates() { site_repo=$(jq -r .website.repository "$candidate_config") site_branch=$(jq -r '.website.branch // "main"' "$candidate_config") [[ $site_repo =~ ^[A-Za-z0-9_.-]+/[A-Za-z0-9_.-]+$ && $site_branch =~ ^[A-Za-z0-9._/-]+$ ]] || { echo "::error::bad website repository/branch"; exit 1; } - head=$(gh api "repos/$site_repo/commits/$site_branch" --jq .sha) - [[ $head =~ ^[0-9a-f]{40}$ ]] || { echo "::error::cannot resolve $site_repo $site_branch"; exit 1; } + live_url=$(jq -r .website.liveUrl "$candidate_config") + [[ $live_url =~ ^(https://[A-Za-z0-9.-]+)/([A-Za-z0-9._/-]+\.json)$ ]] || { echo "::error::bad website.liveUrl '$live_url'"; exit 1; } + live_origin=${BASH_REMATCH[1]} + manifest_path=${BASH_REMATCH[2]} +} - gh api "repos/$site_repo/commits/$head/check-runs?app_id=$PAGES_APP_ID&check_name=Cloudflare%20Pages&filter=latest" > "$work/pages-checks.json" - details=$(jq -r --arg head "$head" --argjson app "$PAGES_APP_ID" --arg slug "$PAGES_APP_SLUG" ' - [.check_runs[] | select(.app.id == $app and .app.slug == $slug and .head_sha == $head and .name == "Cloudflare Pages")] - | sort_by(.completed_at // "") | last // {} | select(.conclusion == "success") | .details_url // empty' "$work/pages-checks.json") - [[ $details =~ /pages/view/$PAGES_PROJECT/([0-9a-f]{8})-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$ ]] || { - echo "::error::no successful Cloudflare Pages deployment (app $PAGES_APP_ID) of $site_repo@$head; nothing recorded" +verify_site_via_production_evidence() { + local dir=${SITE_EVIDENCE_DIR:-} head want f got + [[ ${LIVE_RELEASE_SHA256:-} =~ ^[0-9a-f]{64}$ ]] || { + echo "::error::live_release_sha256 is required here: fetch $live_url yourself and pass its sha256 (curl -fsSL $live_url | shasum -a 256); nothing recorded" exit 1 } - short=${BASH_REMATCH[1]} - deploy="https://$short.$PAGES_PROJECT.pages.dev" - echo " Cloudflare Pages deployment $short built $site_repo@$head ($site_branch HEAD)" - - site_file() { gh api -H "Accept: application/vnd.github.raw" "repos/$site_repo/contents/$1?ref=$head" > "$2"; } - site_file "$manifest_path" "$work/site-manifest.json" - curl -fsS --max-time 30 -o "$work/deploy-manifest.json" "$deploy/$manifest_path" - cmp -s "$work/site-manifest.json" "$work/deploy-manifest.json" || { echo "::error::$deploy/$manifest_path differs from $site_repo@$head; nothing recorded"; exit 1; } + [ -n "$dir" ] && [ -f "$dir/head" ] || { echo "::error::no website evidence (SITE_EVIDENCE_DIR); nothing recorded"; exit 1; } + head=$(cat "$dir/head") + [[ $head =~ ^[0-9a-f]{40}$ ]] || { echo "::error::bad website HEAD in the evidence; nothing recorded"; exit 1; } + echo " website evidence: $site_repo $site_branch HEAD $head" + "$state_cmd" "$VERSION" publish website-manifest STATE --config "$candidate_config" --out "$work/expected-manifest.json" >/dev/null - [ "$(jq -S 'del(.publishedAt)' "$work/deploy-manifest.json")" = "$(jq -S 'del(.publishedAt)' "$work/expected-manifest.json")" ] || { - echo "::error::the deployed manifest is not what release-state describes; nothing recorded" + [ "$(jq -S 'del(.publishedAt)' "$dir/$manifest_path")" = "$(jq -S 'del(.publishedAt)' "$work/expected-manifest.json")" ] || { + echo "::error::$site_repo@$head's $manifest_path is not what release-state describes; nothing recorded" exit 1 } - want=$(shasum -a 256 "$work/deploy-manifest.json" | cut -c1-64) + want=$(shasum -a 256 "$dir/$manifest_path" | cut -c1-64) [ "$want" = "$LIVE_RELEASE_SHA256" ] || { - echo "::error::your production $manifest_path sha256 $LIVE_RELEASE_SHA256 is not the deployment's $want; nothing recorded" + echo "::error::your production $manifest_path sha256 $LIVE_RELEASE_SHA256 is not $site_branch@${head:0:12}'s $want; nothing recorded" exit 1 } - echo " ✓ deployment manifest = $site_branch's file = release-state's manifest; sha256 $want = your production fetch" + echo " ✓ $site_branch's $manifest_path = release-state's manifest; sha256 $want = your production fetch" for f in $PRODUCTION_PROBES; do - site_file "$f" "$work/site-$f" - curl -fsS --max-time 30 -o "$work/deploy-$f" "$deploy/$f" + [ -f "$dir/$f" ] || { echo "::error::website evidence lacks $f; nothing recorded"; exit 1; } got=$(curl -sS --max-time 30 -o "$work/prod-$f" -w '%{http_code}' "$live_origin/$f?ts=$(date +%s)") || got=000 [ "$got" = 200 ] || { echo "::error::production $live_origin/$f answered HTTP $got; production unverified, nothing recorded"; exit 1; } - cmp -s "$work/prod-$f" "$work/deploy-$f" && cmp -s "$work/deploy-$f" "$work/site-$f" || { - echo "::error::production $live_origin/$f is not deployment $short's (production serves another deployment?); nothing recorded" + cmp -s "$work/prod-$f" "$dir/$f" || { + echo "::error::production $live_origin/$f is not $site_branch@${head:0:12}'s (production serves another build?); nothing recorded" exit 1 } - echo " ✓ production $live_origin/$f = deployment $short = $site_branch@${head:0:12}" + echo " ✓ production $live_origin/$f = $site_branch@${head:0:12}" done - live_version=$(jq -r .version "$work/deploy-manifest.json") + live_version=$(jq -r .version "$dir/$manifest_path") } +# Mode: site-evidence (read-only): what --finish compares production with. +if [ "$mode" = "site-evidence" ]; then + site_coordinates + mkdir -p "$evidence_out" + head=$(gh api "repos/$site_repo/commits/$site_branch" --jq .sha) + [[ $head =~ ^[0-9a-f]{40}$ ]] || { echo "::error::cannot resolve $site_repo $site_branch"; exit 1; } + for f in "$manifest_path" $PRODUCTION_PROBES; do + mkdir -p "$evidence_out/$(dirname "$f")" + gh api -H "Accept: application/vnd.github.raw" "repos/$site_repo/contents/$f?ref=$head" > "$evidence_out/$f" + done + printf '%s\n' "$head" > "$evidence_out/head" + echo "✓ saved $site_repo@$head ($site_branch HEAD): $manifest_path $PRODUCTION_PROBES" + exit 0 +fi + # Mode: finish (mutating): the website serves this version's release.json. if [ "$mode" = "finish" ]; then verify_live_release @@ -338,17 +349,14 @@ if [ "$mode" = "finish" ]; then exit 1 } [[ ${PROMOTION_PR:-} =~ ^[0-9]*$ ]] || { echo "::error::PROMOTION_PR must be a pull request number"; exit 1; } - live_url=$(jq -r .website.liveUrl "$candidate_config") - [[ $live_url =~ ^(https://[A-Za-z0-9.-]+)/([A-Za-z0-9._/-]+\.json)$ ]] || { echo "::error::bad website.liveUrl '$live_url'"; exit 1; } - live_origin=${BASH_REMATCH[1]} - manifest_path=${BASH_REMATCH[2]} + site_coordinates code=$(curl -sS --max-time 30 -D "$work/live.headers" -o "$work/live.json" -w '%{http_code}' "$live_url?ts=$(date +%s)") || code=000 if [ "$code" = 200 ]; then live_version=$(jq -r .version "$work/live.json" 2>/dev/null || echo none) echo "✓ $live_url fetched directly (version $live_version)" elif [ "$code" = 403 ] && grep -qiE '^cf-mitigated:[[:space:]]*challenge' "$work/live.headers"; then echo "$live_url answered this runner with a Cloudflare challenge (Bot Fight Mode cannot be skipped for it)." - verify_site_via_production_deployment + verify_site_via_production_evidence else echo "::error::$live_url answered HTTP $code without a Cloudflare challenge; nothing recorded" exit 1 diff --git a/scripts/release/test/recover_mac_release_test.rb b/scripts/release/test/recover_mac_release_test.rb index abc235b80..0a4856034 100644 --- a/scripts/release/test/recover_mac_release_test.rb +++ b/scripts/release/test/recover_mac_release_test.rb @@ -1048,7 +1048,7 @@ def test_partial_rollback_failure_when_reverting_draft_fails def test_reconcile_script_requires_explicit_mode out, err, status = Open3.capture3({}, RECONCILE_SCRIPT) refute status.success? - assert_includes err + out, "usage: reconcile-mac-release.sh (--execute | --finish | --manifest-only | --preflight)" + assert_includes err + out, "usage: reconcile-mac-release.sh (--execute | --finish | --manifest-only | --preflight | --site-evidence DIR)" end def test_reconcile_script_rejects_overrides diff --git a/scripts/release/test/recovery_integration_test.rb b/scripts/release/test/recovery_integration_test.rb index 71bbb9845..769d4a46f 100644 --- a/scripts/release/test/recovery_integration_test.rb +++ b/scripts/release/test/recovery_integration_test.rb @@ -83,8 +83,6 @@ def setup_remotes(dir, state_json) SITE = "raiseCatError/MeowDisplayWebsite" SITE_HEAD = "38426be3e61f4592cd2e3c313b606ea54f72c930" - PAGES_UUID = "e3a2b883-379e-4210-bde3-415043fd8539" - DEPLOY = "https://e3a2b883.meowdisplay.pages.dev" PROD = "https://meowdisplay.app" CHALLENGE_HEADERS = "HTTP/2 403\r\ncontent-type: text/html; charset=UTF-8\r\ncf-mitigated: challenge\r\nserver: cloudflare\r\n\r\n" @@ -102,7 +100,6 @@ def stub_bin(dir, release_json:, latest: "v2.1.0") "api repos/raiseCatError/meowdisplay/releases/latest --jq .tag_name") echo "#{latest}" ;; "api repos/raiseCatError/meowdisplay/commits/v2.1.0 --jq .sha") echo "#{CANDIDATE}" ;; "api repos/#{SITE}/commits/main --jq .sha") cat "#{bin}/site/head" ;; - "api repos/#{SITE}/commits/"*"/check-runs?app_id=85455&check_name=Cloudflare%20Pages&filter=latest") cat "#{bin}/site/checks.json" ;; "api -H Accept: application/vnd.github.raw repos/#{SITE}/contents/"*) path=${4#repos/#{SITE}/contents/}; path=${path%%[?]ref=*} [ "${4##*[?]ref=}" = "$(cat "#{bin}/site/head")" ] || exit 1 @@ -143,23 +140,13 @@ def web(bin, url, body, code: 200, headers: "HTTP/2 #{code}\r\n\r\n") File.write(File.join(d, "body"), body) end - # The website as deployed from SITE_HEAD by Cloudflare Pages: the repository - # files, the deployment's copies and the production origin (whose - # release.json Bot Fight Mode challenges, as it does for GitHub runners). - def site(bin, manifest, check_app: 85_455, check_slug: "cloudflare-workers-and-pages", conclusion: "success", - deployed_manifest: manifest, prod_llms: "llms 2.1\n", prod_llms_code: 200, prod_manifest: :challenge) + # The website's main HEAD (the repository files the site-evidence job saves) + # and the production origin, whose release.json Bot Fight Mode challenges + # (as it does for GitHub runners) while llms.txt and site.js are served. + def site(bin, manifest, prod_llms: "llms 2.1\n", prod_llms_code: 200, prod_manifest: :challenge) File.write(File.join(bin, "site/head"), "#{SITE_HEAD}\n") - File.write(File.join(bin, "site/checks.json"), { - "check_runs" => [{ "name" => "Cloudflare Pages", "head_sha" => SITE_HEAD, "conclusion" => conclusion, - "completed_at" => "2026-11-12T00:05:00Z", - "app" => { "id" => check_app, "slug" => check_slug }, - "details_url" => "https://dash.cloudflare.com/?to=/c1644ccedec713ad6e4f2d34cd76aa06/pages/view/meowdisplay/#{PAGES_UUID}" }] - }.to_json) files = { "release.json" => manifest, "llms.txt" => "llms 2.1\n", "site.js" => "/* site 2.1 */\n" } files.each { |name, body| File.write(File.join(bin, "site/files", name), body) } - web(bin, "#{DEPLOY}/release.json", deployed_manifest) - web(bin, "#{DEPLOY}/llms.txt", files["llms.txt"]) - web(bin, "#{DEPLOY}/site.js", files["site.js"]) web(bin, "#{PROD}/llms.txt", prod_llms, code: prod_llms_code) web(bin, "#{PROD}/site.js", files["site.js"]) case prod_manifest @@ -169,6 +156,14 @@ def site(bin, manifest, check_app: 85_455, check_slug: "cloudflare-workers-and-p end end + # The site-evidence job's step, run for real against the stubbed website API. + def site_evidence(work, bin, origin) + dir = File.join(File.dirname(bin), "site-evidence") + out, err, status = reconcile(work, bin, origin, "--site-evidence", { "RELEASE_STATE_TOKEN" => "" }, dir) + assert status.success?, "#{out}\n#{err}" + dir + end + # The manifest release-state generates, through the real --manifest-only path. def generated_manifest(work, bin, origin) out, err, status = reconcile(work, bin, origin, "--manifest-only") @@ -190,12 +185,12 @@ def published_release(draft: false, tamper: nil) "assets" => assets.map { |n, h| { "name" => n, "digest" => "sha256:#{h}" } } }.to_json end - def reconcile(work, bin, origin, mode, extra = {}) + def reconcile(work, bin, origin, mode, extra = {}, *args) env = { "PATH" => "#{bin}:#{ENV['PATH']}", "RUNNER_TEMP" => File.dirname(bin), "GH_TOKEN" => "read-token", "RELEASE_STATE_TOKEN" => "app-token", "RELEASE_STATE_REMOTE" => "file://#{origin}", "GITHUB_REPOSITORY" => "raiseCatError/meowdisplay", "VERSION" => "2.1.0", "CANDIDATE_SHA" => CANDIDATE } # Executed directly, exactly as the workflow step does. - Open3.capture3(env.merge(extra), File.join(work, "scripts/release/reconcile-mac-release.sh"), mode) + Open3.capture3(env.merge(extra), File.join(work, "scripts/release/reconcile-mac-release.sh"), mode, *args) end def remote_state(origin) @@ -321,15 +316,18 @@ def test_finish_needs_the_live_site_then_finishes_once end # Run 43125145760: Bot Fight Mode challenged the runner on release.json. - def finish_through_challenge(sha: :deployed, **site_options) + def finish_through_challenge(sha: :site, manifest: nil, evidence: true, tamper: nil, **site_options) with_fixture do |origin, work, bin| _, _, status = reconcile(work, bin, origin, "--execute") assert status.success? - manifest = generated_manifest(work, bin, origin) + manifest ||= generated_manifest(work, bin, origin) site(bin, manifest, **site_options) - sha = Digest::SHA256.hexdigest(site_options.fetch(:deployed_manifest, manifest)) if sha == :deployed + dir = evidence ? site_evidence(work, bin, origin) : "" + tamper&.call(dir) + sha = Digest::SHA256.hexdigest(manifest) if sha == :site before = state_commits(origin) - out, err, status = reconcile(work, bin, origin, "--finish", "LIVE_RELEASE_SHA256" => sha.to_s) + out, err, status = reconcile(work, bin, origin, "--finish", + "LIVE_RELEASE_SHA256" => sha.to_s, "SITE_EVIDENCE_DIR" => dir) yield out + err, status, origin, before end end @@ -343,14 +341,28 @@ def assert_refused(text, status, origin, before, message) assert_equal "in-progress", remote_state(origin).dig("publication", "stage") end + def test_site_evidence_saves_the_website_head_files_and_writes_nothing + with_fixture do |origin, work, bin| + site(bin, "{}\n") + before = state_commits(origin) + dir = site_evidence(work, bin, origin) + assert_equal SITE_HEAD, File.read(File.join(dir, "head")).strip + assert_equal "{}\n", File.read(File.join(dir, "release.json")) + assert_equal "llms 2.1\n", File.read(File.join(dir, "llms.txt")) + assert_equal "/* site 2.1 */\n", File.read(File.join(dir, "site.js")) + assert_equal before, state_commits(origin) + refute_match(/releases\/442117184|release edit/, File.read(File.join(bin, "gh.log"))) + end + end + def test_finish_through_a_challenge_with_complete_production_evidence finish_through_challenge do |text, status, origin, _| assert status.success?, text assert_includes text, "answered this runner with a Cloudflare challenge" - assert_includes text, "Cloudflare Pages deployment e3a2b883 built #{SITE}@#{SITE_HEAD}" - assert_includes text, "deployment manifest = main's file = release-state's manifest" - assert_includes text, "production https://meowdisplay.app/llms.txt = deployment e3a2b883" - assert_includes text, "production https://meowdisplay.app/site.js = deployment e3a2b883" + assert_includes text, "website evidence: #{SITE} main HEAD #{SITE_HEAD}" + assert_includes text, "main's release.json = release-state's manifest" + assert_includes text, "production https://meowdisplay.app/llms.txt = main@#{SITE_HEAD[0, 12]}" + assert_includes text, "production https://meowdisplay.app/site.js = main@#{SITE_HEAD[0, 12]}" state = remote_state(origin) assert_equal "published", state.dig("publication", "stage") assert_equal "published", state.dig("website", "stage") @@ -366,45 +378,28 @@ def test_challenge_without_the_approvers_production_hash_records_nothing def test_challenge_with_a_different_production_hash_records_nothing finish_through_challenge(sha: "1" * 64) do |text, status, origin, before| - assert_refused(text, status, origin, before, "is not the deployment's") + assert_refused(text, status, origin, before, "is not main@") end end - def test_challenge_needs_cloudflares_own_successful_deployment_record - finish_through_challenge(check_app: 1) do |text, status, origin, before| - assert_refused(text, status, origin, before, "no successful Cloudflare Pages deployment (app 85455)") - end - finish_through_challenge(check_slug: "someone-else") do |text, status, origin, before| - assert_refused(text, status, origin, before, "no successful Cloudflare Pages deployment") - end - finish_through_challenge(conclusion: "failure") do |text, status, origin, before| - assert_refused(text, status, origin, before, "no successful Cloudflare Pages deployment") + def test_challenge_without_website_evidence_records_nothing + finish_through_challenge(evidence: false) do |text, status, origin, before| + assert_refused(text, status, origin, before, "no website evidence (SITE_EVIDENCE_DIR)") end - end - - def test_challenge_with_a_deployed_manifest_unlike_the_repository_records_nothing - finish_through_challenge(deployed_manifest: "{\"version\":\"2.1.0\"}\n") do |text, status, origin, before| - assert_refused(text, status, origin, before, "differs from #{SITE}@#{SITE_HEAD}") + finish_through_challenge(tamper: ->(dir) { File.delete(File.join(dir, "site.js")) }) do |text, status, origin, before| + assert_refused(text, status, origin, before, "website evidence lacks site.js") end end def test_challenge_with_a_manifest_unlike_release_state_records_nothing - with_fixture do |origin, work, bin| - _, _, status = reconcile(work, bin, origin, "--execute") - assert status.success? - bad = JSON.parse(generated_manifest(work, bin, origin)) - bad["platforms"]["android"] = { "store" => "https://play.google.com/store/apps/details?id=x" } - bad = JSON.pretty_generate(bad) + "\n" - site(bin, bad) - before = state_commits(origin) - out, err, status = reconcile(work, bin, origin, "--finish", "LIVE_RELEASE_SHA256" => Digest::SHA256.hexdigest(bad)) - assert_refused(out + err, status, origin, before, "the deployed manifest is not what release-state describes") + finish_through_challenge(manifest: "{\"version\":\"2.1.0\",\"platforms\":{\"android\":{}}}\n") do |text, status, origin, before| + assert_refused(text, status, origin, before, "is not what release-state describes") end end - def test_challenge_when_production_serves_another_deployment_records_nothing + def test_challenge_when_production_serves_another_build_records_nothing finish_through_challenge(prod_llms: "llms 2.0\n") do |text, status, origin, before| - assert_refused(text, status, origin, before, "production https://meowdisplay.app/llms.txt is not deployment e3a2b883's") + assert_refused(text, status, origin, before, "production https://meowdisplay.app/llms.txt is not main@") end end @@ -417,7 +412,7 @@ def test_challenge_when_production_is_unreachable_records_nothing def test_a_403_that_is_not_a_cloudflare_challenge_gets_no_fallback finish_through_challenge(prod_manifest: :forbidden) do |text, status, origin, before| assert_refused(text, status, origin, before, "answered HTTP 403 without a Cloudflare challenge") - refute_includes text, "Cloudflare Pages deployment" + refute_includes text, "website evidence:" end end diff --git a/scripts/release/test/workflow_checks_test.rb b/scripts/release/test/workflow_checks_test.rb index 8cc1804d9..b5bd48f9f 100644 --- a/scripts/release/test/workflow_checks_test.rb +++ b/scripts/release/test/workflow_checks_test.rb @@ -285,4 +285,15 @@ def test_recovery_publication_stays_behind_its_gates assert_caught("publish job must use the release-publish environment", f => [" environment: release-publish\n", " environment: release-elsewhere\n"]) end + + def test_recovery_site_evidence_stays_read_only + f = "recover-mac-release.yml" + assert_caught("site-evidence must stay read-only", + f => [" repositories: MeowDisplayWebsite\n permission-contents: read", + " repositories: MeowDisplayWebsite\n permission-contents: write"]) + assert_caught("site-evidence must stay read-only", + f => [" environment: website-update\n", " environment: release-state\n"]) + assert_caught("job site-evidence must run check-environment.sh website-update before using secrets", + f => [" run: scripts/release/check-environment.sh website-update\n", " run: true\n"]) + end end From 840f7816daf0ba8f2ab47aa40d98bca82cf67395 Mon Sep 17 00:00:00 2001 From: raiseCatError <315733358+raiseCatError@users.noreply.github.com> Date: Thu, 12 Nov 2026 07:25:41 +0530 Subject: [PATCH 28/34] docs(readme): add the Android closed-testing badge from the website Replaces #231's shields.io badge with a local SVG that copies the website's store-badge styling. That is the 44px black badge with the #a6a6a6 border, the four-colour Play mark and 'JOIN CLOSED TESTING ON / Google Play'. It sits beside the App Store badge and links to the early-access steps. Also keeps the parts of #231 the 2.1 README didn't already cover: 'Join closed testing' (not yet public) in the platform table, and a pointer to meowdisplay.app/downloads for checksums. #231's 2.0 download links are not carried over: 2.1.0 is the current release. --- README.md | 7 ++++--- .../readme/google-play-closed-testing-badge.svg | 15 +++++++++++++++ 2 files changed, 19 insertions(+), 3 deletions(-) create mode 100644 assets/readme/google-play-closed-testing-badge.svg diff --git a/README.md b/README.md index c38065092..da5e5e160 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ is available through closed testing. [Privacy](https://meowdisplay.app/privacy.html) · [Support on Ko-fi](https://ko-fi.com/raisecaterror) -**[Download MeowDisplay 2.1 for Mac](https://github.com/raiseCatError/meowdisplay/releases/download/v2.1.0/MeowDisplay.dmg)** · Download on the App Store +**[Download MeowDisplay 2.1 for Mac](https://github.com/raiseCatError/meowdisplay/releases/download/v2.1.0/MeowDisplay.dmg)** · Download on the App Store · Join closed testing on Google Play Mac 2.1.0 stable, shares and receives (macOS 14+) · [Mac Receiver 2.1.0](https://github.com/raiseCatError/meowdisplay/releases/download/v2.1.0/MeowDisplayReceiver.dmg) (macOS 12+) · iPhone/iPad 2.1.0 on the App Store · Android 2.0 in Google Play closed testing, not yet public · [All downloads](https://meowdisplay.app/downloads) @@ -57,11 +57,12 @@ closed testing. Distribution differs by platform as shown below. | Mac app · macOS 14+ · share or receive | **2.1.0 stable** | [Download MeowDisplay](https://github.com/raiseCatError/meowdisplay/releases/download/v2.1.0/MeowDisplay.dmg) · [release notes](https://github.com/raiseCatError/meowdisplay/releases/tag/v2.1.0) | | Receiver-only Mac app · macOS 12+ | **2.1.0 stable** | [Download MeowDisplay Receiver](https://github.com/raiseCatError/meowdisplay/releases/download/v2.1.0/MeowDisplayReceiver.dmg) | | iPhone / iPad · iOS / iPadOS 16.4+ | **2.1.0 on the App Store** | [App Store](https://apps.apple.com/us/app/meowdisplay/id6817552864) | -| Android · Android 10+ | **2.0 closed testing** | [Request early access](https://meowdisplay.app/android/early-access) | +| Android · Android 10+ | **2.0 Google Play closed testing** (not yet public) | [Join closed testing](https://meowdisplay.app/android/early-access) | The main Mac app includes both sharing and receiving: share this Mac's display, or use this Mac as another Mac's display. The separate Receiver-only app is -also available for Macs running macOS 12 or later. +also available for Macs running macOS 12 or later. Checksums and every official +download are on [meowdisplay.app/downloads](https://meowdisplay.app/downloads). Android 2.0 works with the Mac app 2.0 and later, including 2.1. The 2.1 features below are on iPhone and iPad only for now, and with Mac 2.1 a locked diff --git a/assets/readme/google-play-closed-testing-badge.svg b/assets/readme/google-play-closed-testing-badge.svg new file mode 100644 index 000000000..b4cc2a03b --- /dev/null +++ b/assets/readme/google-play-closed-testing-badge.svg @@ -0,0 +1,15 @@ + + Join closed testing on Google Play + + + + + + + + + + JOIN CLOSED TESTING ON + Google Play + + From 113131ca85c4a3b538efab5a7116bdbc7c1c5a02 Mon Sep 17 00:00:00 2001 From: raiseCatError <315733358+raiseCatError@users.noreply.github.com> Date: Thu, 12 Nov 2026 07:26:05 +0530 Subject: [PATCH 29/34] docs(compatibility): #219 is also reported on macOS 14 A second #219 report (2026-11-10) describes the same quit after pairing on an Intel Mac running macOS 14.8.9. Say so, and don't claim it has the same cause without logs. The #226 fix is unverified on 14 as well as 15. --- COMPATIBILITY.md | 8 +++++--- README.md | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/COMPATIBILITY.md b/COMPATIBILITY.md index f2992a08a..a3e7bf3c6 100644 --- a/COMPATIBILITY.md +++ b/COMPATIBILITY.md @@ -72,7 +72,7 @@ with your macOS or iOS version. **Known issues** -- **Mac app quits after approving pairing on macOS 15** +- **Mac app quits after approving pairing on macOS 14 and 15** ([#219](https://github.com/raiseCatError/meowdisplay/issues/219)). Reported with Mac 2.0.0 on macOS 15.7.7 and an iPhone on the same Wi-Fi. Right after pairing, the Mac sets up QUIC from the iPhone's Bonjour service, and macOS 15 @@ -81,9 +81,11 @@ with your macOS or iOS version. includes a proposed fix ([#226](https://github.com/raiseCatError/meowdisplay/pull/226)): the service is resolved to an address first, and if that doesn't work, Auto uses the secure TCP connection instead. It's tested on macOS 27 only and - **not yet verified on a Mac running macOS 15**. The reporter saw the same + **not yet verified on a Mac running macOS 14 or 15**. The reporter saw the same failure over Tailscale; that route dials an address directly, so this cause - doesn't explain it, and the Tailscale failure remains unexplained. + doesn't explain it, and the Tailscale failure remains unexplained. A second + user reported the same quit on an Intel Mac running macOS 14.8.9 (before 2.1, + app version not stated); no logs yet, so it's not confirmed to be the same cause. --- diff --git a/README.md b/README.md index c38065092..b6efcb55f 100644 --- a/README.md +++ b/README.md @@ -545,7 +545,7 @@ display needs Screen Recording. These are the minimum versions each app is built for. Which versions have actually been tested, and known issues such as -[#219 on macOS 15](https://github.com/raiseCatError/meowdisplay/issues/219), are in +[#219 on macOS 14 and 15](https://github.com/raiseCatError/meowdisplay/issues/219), are in [COMPATIBILITY.md](COMPATIBILITY.md#operating-systems-minimum-and-tested). ## Install From e2c060341d960e2591e215734e7e70b96952408f Mon Sep 17 00:00:00 2001 From: raiseCatError <315733358+raiseCatError@users.noreply.github.com> Date: Thu, 12 Nov 2026 07:27:45 +0530 Subject: [PATCH 30/34] docs: archive 1.20 launch material; mark the 2.0 handoffs historical Takes the safe part of #232 onto current main. - RELEASE_ASSETS.md and launch/ move to docs/archive/1.20/, each with a note naming the current document. Nothing reads them at the old paths. - CLOUD-HANDOFF-2.0.md and handoff-2.0/ stay where they are: the Swift and Kotlin AutomaticRemoteRoutes comments cite COMPLETION-MATRIX.md, and this change leaves app source alone. Each file gets #232's historical-not-maintained note instead, so the outdated branch and pipeline notes don't read as current. - docs/archive/README.md indexes both. - TECHNICAL_NOTES.md: README.md#roadmap no longer exists; link to REMOTE_WAKE_ON_LAN.md#current-status. --- CLOUD-HANDOFF-2.0.md | 2 + TECHNICAL_NOTES.md | 2 +- .../archive/1.20}/APP_STORE_LAUNCH.md | 2 + .../archive/1.20/RELEASE_ASSETS.md | 6 ++- {launch => docs/archive/1.20}/SOCIAL_POSTS.md | 2 + docs/archive/README.md | 44 +++++++++++++++++++ handoff-2.0/BRANDING-AUDIT.md | 2 + handoff-2.0/COMPLETION-MATRIX.md | 2 + handoff-2.0/EXTEND-START-ALTTAB-FINDINGS.md | 2 + .../PRIVACY-SHIELD-CRASH-SAFE-DESIGN.md | 2 + .../RELEASE-2.0.0-ANDROID-QA-WAIVER.md | 2 + handoff-2.0/STORE-ACCESSIBILITY.md | 2 + 12 files changed, 67 insertions(+), 3 deletions(-) rename {launch => docs/archive/1.20}/APP_STORE_LAUNCH.md (91%) rename RELEASE_ASSETS.md => docs/archive/1.20/RELEASE_ASSETS.md (90%) rename {launch => docs/archive/1.20}/SOCIAL_POSTS.md (94%) create mode 100644 docs/archive/README.md diff --git a/CLOUD-HANDOFF-2.0.md b/CLOUD-HANDOFF-2.0.md index 224dce6c6..7e234f31a 100644 --- a/CLOUD-HANDOFF-2.0.md +++ b/CLOUD-HANDOFF-2.0.md @@ -1,3 +1,5 @@ +> **Historical, not maintained (marked 2026-11-12).** The 2.0 local-to-cloud handoff of 2026-10-31. 2.0.0 shipped on November 2, 2026; the branch model, release-pipeline audit and toolchain below describe that moment, not today. Current: [BRANCHING.md](BRANCHING.md), [RELEASE.md](RELEASE.md), [ARCHITECTURE.md](ARCHITECTURE.md), [SETUP.md](SETUP.md), [CHANGELOG.md](CHANGELOG.md). [Archive index](docs/archive/README.md). + # MeowDisplay 2.0 — cloud handoff Written 2026-10-31 at the end of local development. Local work stops here; what remains runs in diff --git a/TECHNICAL_NOTES.md b/TECHNICAL_NOTES.md index b3927e9d9..d8d25fb31 100644 --- a/TECHNICAL_NOTES.md +++ b/TECHNICAL_NOTES.md @@ -138,7 +138,7 @@ documented general mechanism, referenced conceptually, not a specific quoted page.) An integrated remote-WoL relay/router solution for MeowDisplay is **future** -work, not planned for the near term — see [README.md](README.md#roadmap). +work, not planned for the near term — see [REMOTE_WAKE_ON_LAN.md](REMOTE_WAKE_ON_LAN.md#current-status). ## Reference implementations / related research diff --git a/launch/APP_STORE_LAUNCH.md b/docs/archive/1.20/APP_STORE_LAUNCH.md similarity index 91% rename from launch/APP_STORE_LAUNCH.md rename to docs/archive/1.20/APP_STORE_LAUNCH.md index b9d316068..556323700 100644 --- a/launch/APP_STORE_LAUNCH.md +++ b/docs/archive/1.20/APP_STORE_LAUNCH.md @@ -1,3 +1,5 @@ +> **Archived 2026-11-12 — historical, not maintained.** The 1.20.0 launch announcement (October 25, 2026), superseded by the 2.0.0 release. Current availability: [README.md](../../../README.md) and [CHANGELOG.md](../../../CHANGELOG.md). [Archive index](../README.md). + # MeowDisplay is now available *October 25, 2026* diff --git a/RELEASE_ASSETS.md b/docs/archive/1.20/RELEASE_ASSETS.md similarity index 90% rename from RELEASE_ASSETS.md rename to docs/archive/1.20/RELEASE_ASSETS.md index a8b6d6b98..50112a42f 100644 --- a/RELEASE_ASSETS.md +++ b/docs/archive/1.20/RELEASE_ASSETS.md @@ -1,10 +1,12 @@ +> **Archived 2026-11-12 — historical, not maintained.** The 1.20.0 screenshot and asset plan. Current: README images in `assets/readme/`, store listing in [fastlane/APP_STORE_LISTING.md](../../../fastlane/APP_STORE_LISTING.md), press kit in [tools/press-kit/README.md](../../../tools/press-kit/README.md). [Archive index](../README.md). + # Release screenshots and assets checklist **Historical asset plan.** This checklist records the original repository and 1.20.0 submission preparation. Its outstanding capture notes are not the current App Store submission status: iPhone/iPad **2.0.0 is publicly released** as of November 2, 2026. Check App Store Connect before replacing store assets; -see [README.md](README.md#platform-availability--november-2-2026) for current availability. +see [README.md](../../../README.md#platform-availability) for current availability. What's already in place, and what still needs physical capture. Two @@ -57,7 +59,7 @@ presentation. the README captures above must not be submitted as App Store assets. - The planned set (six real captures, iPhone and iPad) is in - [`fastlane/APP_STORE_LISTING.md` § Screenshot plan](fastlane/APP_STORE_LISTING.md#screenshot-plan). + [`fastlane/APP_STORE_LISTING.md` § Screenshot plan](../../../fastlane/APP_STORE_LISTING.md#screenshot-plan). - Required iPhone and iPad sizes must be confirmed in App Store Connect at upload time; they aren't recorded here to avoid going stale. - Screenshots are uploaded by hand — `fastlane ios release` skips them. diff --git a/launch/SOCIAL_POSTS.md b/docs/archive/1.20/SOCIAL_POSTS.md similarity index 94% rename from launch/SOCIAL_POSTS.md rename to docs/archive/1.20/SOCIAL_POSTS.md index 7cd62724e..c4b652fad 100644 --- a/launch/SOCIAL_POSTS.md +++ b/docs/archive/1.20/SOCIAL_POSTS.md @@ -1,3 +1,5 @@ +> **Archived 2026-11-12 — historical, not maintained.** Unposted social drafts for the 1.20.0 launch (October 25, 2026); their feature list and links predate 2.0.0. Current availability: [README.md](../../../README.md) and [CHANGELOG.md](../../../CHANGELOG.md). [Archive index](../README.md). + # Launch posts: drafts, not posted Ready-to-publish copy for the MeowDisplay launch (October 25, 2026): the diff --git a/docs/archive/README.md b/docs/archive/README.md new file mode 100644 index 000000000..e7861d0f7 --- /dev/null +++ b/docs/archive/README.md @@ -0,0 +1,44 @@ +# Archive + +Historical documents kept for the record. Nothing listed here is maintained +or authoritative: each file starts with a note naming the document to use +instead. + +A document is moved here only when it describes a finished release, a newer +document covers its subject, and no code, tooling, test or active +instruction depends on it at its old path. Moved files keep their history: +use `git log --follow`. + +## 1.20.0 launch — [`1.20/`](1.20/) + +Material for the first public release (October 25, 2026), superseded by +2.0.0 and 2.1.0. + +| File | Was | What it records | Use instead | +| --- | --- | --- | --- | +| [RELEASE_ASSETS.md](1.20/RELEASE_ASSETS.md) | `RELEASE_ASSETS.md` | 1.20.0 screenshot and asset plan | [fastlane/APP_STORE_LISTING.md](../../fastlane/APP_STORE_LISTING.md), [tools/press-kit/README.md](../../tools/press-kit/README.md) | +| [APP_STORE_LAUNCH.md](1.20/APP_STORE_LAUNCH.md) | `launch/` | 1.20.0 launch announcement | [README.md](../../README.md), [CHANGELOG.md](../../CHANGELOG.md) | +| [SOCIAL_POSTS.md](1.20/SOCIAL_POSTS.md) | `launch/` | Unposted 1.20.0 social drafts | [README.md](../../README.md), [CHANGELOG.md](../../CHANGELOG.md) | + +## 2.0 handoff — marked historical, not moved + +Written at the end of local 2.0 development (2026-10-31). They stay at their +original paths because `Shared/AutomaticRemoteRoutes.swift` and the Android +`AutomaticRemoteRoutes.kt` cite `handoff-2.0/COMPLETION-MATRIX.md` as +evidence. Each file is marked historical at the top. + +| File | What it records | Use instead | +| --- | --- | --- | +| [CLOUD-HANDOFF-2.0.md](../../CLOUD-HANDOFF-2.0.md) | Local-to-cloud handoff: state, QA done, release pipeline as found | [BRANCHING.md](../../BRANCHING.md), [RELEASE.md](../../RELEASE.md), [ARCHITECTURE.md](../../ARCHITECTURE.md) | +| [COMPLETION-MATRIX.md](../../handoff-2.0/COMPLETION-MATRIX.md) | 2.x requirement status, 2026-10-28 … 31 | [PARITY.md](../../PARITY.md), [CHANGELOG.md](../../CHANGELOG.md) | +| [BRANDING-AUDIT.md](../../handoff-2.0/BRANDING-AUDIT.md) | Where legacy OpenSidecar/OpenDisplay names remain, and why | [TERMINOLOGY.md](../../TERMINOLOGY.md) | +| [EXTEND-START-ALTTAB-FINDINGS.md](../../handoff-2.0/EXTEND-START-ALTTAB-FINDINGS.md) | Extend start latency caused by AltTab flooding replayd | [ARCHITECTURE.md](../../ARCHITECTURE.md), `Mac/ShareableContentBroker.swift` | +| [PRIVACY-SHIELD-CRASH-SAFE-DESIGN.md](../../handoff-2.0/PRIVACY-SHIELD-CRASH-SAFE-DESIGN.md) | Design note behind the crash-safe shield prototype | [SECURITY.md](../../SECURITY.md), [Prototypes/CrashSafeShield/ASSESSMENT.md](../../Prototypes/CrashSafeShield/ASSESSMENT.md) | +| [RELEASE-2.0.0-ANDROID-QA-WAIVER.md](../../handoff-2.0/RELEASE-2.0.0-ANDROID-QA-WAIVER.md) | Owner's Android QA waiver for 2.0.0 only | [RELEASE.md](../../RELEASE.md) | +| [STORE-ACCESSIBILITY.md](../../handoff-2.0/STORE-ACCESSIBILITY.md) | What was verified for the 2.0 store accessibility declarations | No maintained replacement; check the store consoles before submitting | + +## Current documentation + +Start at the [README](../../README.md#documentation), then +[ARCHITECTURE.md](../../ARCHITECTURE.md), [SETUP.md](../../SETUP.md), +[CONTRIBUTING.md](../../CONTRIBUTING.md) and [RELEASE.md](../../RELEASE.md). diff --git a/handoff-2.0/BRANDING-AUDIT.md b/handoff-2.0/BRANDING-AUDIT.md index 798dea008..314dff430 100644 --- a/handoff-2.0/BRANDING-AUDIT.md +++ b/handoff-2.0/BRANDING-AUDIT.md @@ -1,3 +1,5 @@ +> **Historical, not maintained (marked 2026-11-12).** The 2.0 branding audit (2026-10-31). Current naming rules: [TERMINOLOGY.md](../TERMINOLOGY.md). [Archive index](../docs/archive/README.md). + # MeowDisplay 2.0 branding audit Scope: case-insensitive search for opensidecar, opendisplay, oldsidecar, "open sidecar" and "open display" across Swift, Kotlin, xcstrings, strings, Info.plists, project.yml, Android res, HTML/TSX site sources, scripts and docs. diff --git a/handoff-2.0/COMPLETION-MATRIX.md b/handoff-2.0/COMPLETION-MATRIX.md index e7f10113f..15b5066d8 100644 --- a/handoff-2.0/COMPLETION-MATRIX.md +++ b/handoff-2.0/COMPLETION-MATRIX.md @@ -1,3 +1,5 @@ +> **Historical, not maintained (marked 2026-11-12).** 2.x requirement status as of the 2.0 handoff (2026-10-28 … 31). Current: [PARITY.md](../PARITY.md), [CHANGELOG.md](../CHANGELOG.md), [WINDOW_MODE.md](../WINDOW_MODE.md). [Archive index](../docs/archive/README.md). + # MeowDisplay 2.x requirement status (2026-10-28, completion pass) diff --git a/handoff-2.0/EXTEND-START-ALTTAB-FINDINGS.md b/handoff-2.0/EXTEND-START-ALTTAB-FINDINGS.md index 175e4c6a8..fe1336eb3 100644 --- a/handoff-2.0/EXTEND-START-ALTTAB-FINDINGS.md +++ b/handoff-2.0/EXTEND-START-ALTTAB-FINDINGS.md @@ -1,3 +1,5 @@ +> **Historical, not maintained (marked 2026-11-12).** Extend start-latency investigation from 2.0 QA (2026-10-30). The fix lives in `Mac/ShareableContentBroker.swift` and `Mac/CoalescingFetch.swift`; see [ARCHITECTURE.md](../ARCHITECTURE.md). [Archive index](../docs/archive/README.md). + # Extend start latency (P0), 2026-10-30 night diff --git a/handoff-2.0/PRIVACY-SHIELD-CRASH-SAFE-DESIGN.md b/handoff-2.0/PRIVACY-SHIELD-CRASH-SAFE-DESIGN.md index 16da9fb26..4c0b004be 100644 --- a/handoff-2.0/PRIVACY-SHIELD-CRASH-SAFE-DESIGN.md +++ b/handoff-2.0/PRIVACY-SHIELD-CRASH-SAFE-DESIGN.md @@ -1,3 +1,5 @@ +> **Historical, not maintained (marked 2026-11-12).** The 2026-10-30 design note behind the crash-safe Privacy Shield prototype. Current: [SECURITY.md](../SECURITY.md) (shipped behaviour) and [Prototypes/CrashSafeShield/ASSESSMENT.md](../Prototypes/CrashSafeShield/ASSESSMENT.md) (prototype results and the owner's open decisions). [Archive index](../docs/archive/README.md). + # Crash-safe Privacy Shield: design note (2026-10-30) diff --git a/handoff-2.0/RELEASE-2.0.0-ANDROID-QA-WAIVER.md b/handoff-2.0/RELEASE-2.0.0-ANDROID-QA-WAIVER.md index 83b1c57e7..e54b1167a 100644 --- a/handoff-2.0/RELEASE-2.0.0-ANDROID-QA-WAIVER.md +++ b/handoff-2.0/RELEASE-2.0.0-ANDROID-QA-WAIVER.md @@ -1,3 +1,5 @@ +> **Historical, not maintained (marked 2026-11-12).** A decision that applied to the 2.0.0 release only. Current release rules: [RELEASE.md](../RELEASE.md) and `.github/release-config.json`. [Archive index](../docs/archive/README.md). + # MeowDisplay 2.0.0: Android physical QA waiver **Status: WAIVED by the owner (2026-10-31). Not executed, not passed.** diff --git a/handoff-2.0/STORE-ACCESSIBILITY.md b/handoff-2.0/STORE-ACCESSIBILITY.md index f659db7ee..6dc6f960d 100644 --- a/handoff-2.0/STORE-ACCESSIBILITY.md +++ b/handoff-2.0/STORE-ACCESSIBILITY.md @@ -1,3 +1,5 @@ +> **Historical, not maintained (marked 2026-11-12).** What was verified for the 2.0 store accessibility declarations (2026-10-30). There is no maintained replacement: check App Store Connect and Google Play Console before the next submission; store listing text is in [fastlane/APP_STORE_LISTING.md](../fastlane/APP_STORE_LISTING.md). [Archive index](../docs/archive/README.md). + # Store accessibility: what to declare for MeowDisplay 2.0 (2026-10-30) From 3fc6501e4a7c1301b1081e74e2963c13b0650330 Mon Sep 17 00:00:00 2001 From: raiseCatError <315733358+raiseCatError@users.noreply.github.com> Date: Sun, 29 Nov 2026 16:53:41 +0530 Subject: [PATCH 31/34] docs: Android 2.0 is on Google Play Android 2.0 (versionCode 2000001) is public on Google Play. Replace the closed-testing, closed-beta and early-access wording in the README, SETUP, RELEASE, PARITY, COMPATIBILITY, SUPPORT, CONTRIBUTING, PRODUCT_SCOPE, COMPARISON, the Android receiver docs and the press kit. - README: the official Google Play badge links to the public listing; the hand-made closed-testing badge is removed. - SETUP's platform table still showed 2.0.0 (2 November); it now matches the 2.1.0 table in README and RELEASE. - Links to the old "platform-availability--november-2-2026" anchor, which no longer exists, point at "platform-availability". - Press kit: the three text files are corrected and their reviewed SHA-256 entries in approved-assets.json updated; build.py's Android fact and brand rule match. - PLAY_STORE_LISTING keeps the closed-test requirement as the record of how production access was gained. Historical records (CHANGELOG, QA records, the 2.0 handoff, the 2.0 Android QA waiver) are unchanged. Android is not described as having the Apple 2.1 or 2.2 features. --- AndroidReceiver/README.md | 8 ++---- AndroidReceiver/RECEIVER_CONTROLS.md | 4 +-- BRANCHING.md | 2 +- COMPARISON.md | 8 +++--- COMPATIBILITY.md | 6 ++--- CONTRIBUTING.md | 4 +-- PARITY.md | 4 +-- PRODUCT_SCOPE.md | 4 +-- README.md | 25 +++++++++--------- RELEASE.md | 2 +- SETUP.md | 14 +++++----- SUPPORT.md | 6 ++--- assets/readme/google-play-badge.png | Bin 0 -> 12388 bytes .../google-play-closed-testing-badge.svg | 15 ----------- fastlane/APP_STORE_LISTING.md | 2 +- fastlane/PLAY_STORE_LISTING.md | 3 +++ .../Information/MeowDisplay-Descriptions.md | 4 +-- .../Information/MeowDisplay-Reviewer-Guide.md | 2 +- .../MeowDisplay-Usage-and-Brand-Guidelines.md | 2 +- tools/press-kit/approved-assets.json | 12 ++++----- tools/press-kit/build.py | 6 ++--- tools/press-kit/press.template.html | 6 ++--- 22 files changed, 61 insertions(+), 78 deletions(-) create mode 100644 assets/readme/google-play-badge.png delete mode 100644 assets/readme/google-play-closed-testing-badge.svg diff --git a/AndroidReceiver/README.md b/AndroidReceiver/README.md index 1aea0a14d..d2ac8747a 100644 --- a/AndroidReceiver/README.md +++ b/AndroidReceiver/README.md @@ -2,8 +2,7 @@ ## Availability and requirements -Android 2.0 is in **Google Play closed testing**, not a public production release. -[Request early access](https://meowdisplay.app/android/early-access). +Android 2.0 is available on [Google Play](https://play.google.com/store/apps/details?id=com.raisecaterror.meowdisplay.android). It requires **Android 10 or later** and [MeowDisplay 2.0 for Mac](https://github.com/raiseCatError/meowdisplay/releases/download/v2.0.0/MeowDisplay.dmg) (macOS 14+). The main Mac app shares and receives; use its sharing role to connect an Android receiver. @@ -78,7 +77,4 @@ Earlier real-device testing was reported; **additional Android physical QA for the 2.0 release-candidate process was waived by the maintainer**. This does not imply every device or advanced function was verified. -Android 2.0 is in **Google Play closed testing** -([request early access](https://meowdisplay.app/android/early-access)). It is -not in public production on Google Play; closed testing and production are -separate milestones. +Android 2.0 (versionCode 2000001) is public on [Google Play](https://play.google.com/store/apps/details?id=com.raisecaterror.meowdisplay.android). diff --git a/AndroidReceiver/RECEIVER_CONTROLS.md b/AndroidReceiver/RECEIVER_CONTROLS.md index 870a0243a..4be0747ac 100644 --- a/AndroidReceiver/RECEIVER_CONTROLS.md +++ b/AndroidReceiver/RECEIVER_CONTROLS.md @@ -2,8 +2,8 @@ Implementation rows updated for 2.0 on 2026-11-02 against `dev`. The Verification section below preserves its earlier test-run record; this edit -does not claim new device testing. Android 2.0 is in closed testing, requires -Android 10+ and Mac 2.0, and has no USB transport. See [PARITY.md](../PARITY.md). +does not claim new device testing. Android 2.0 is on Google Play, requires +Android 10+ and Mac 2.0 or later, and has no USB transport. See [PARITY.md](../PARITY.md). The Android receiver's controls, input and adaptive layout are a port of the diff --git a/BRANCHING.md b/BRANCHING.md index addb45e7a..5be4a5e3b 100644 --- a/BRANCHING.md +++ b/BRANCHING.md @@ -51,7 +51,7 @@ The same branch is then merged into `dev` so the two stay reconciled. This section records the migration checkpoint, not current branch or release availability. Since the 2.0.0 promotion (below), `main` is the default branch -and `dev` the development branch; the current platform release channels are in [README.md](README.md#platform-availability--november-2-2026). +and `dev` the development branch; the current platform release channels are in [README.md](README.md#platform-availability). - `raiseCatError/meowdisplay` is public and a GitHub **network fork** of `peetzweg/opendisplay`. - **Default branch: `legacy/dev-opendisplay-next`** (`3f24b51`), the former `dev/opendisplay-next`, renamed so `dev` could exist (Git can't hold `dev` beside `dev/…`). It becomes `dev` once the release workflows' resume and store-safety fixes are on `dev` and the scheduled workflows are confirmed inert. diff --git a/COMPARISON.md b/COMPARISON.md index ef9e43f7c..39bb0cbdb 100644 --- a/COMPARISON.md +++ b/COMPARISON.md @@ -1,7 +1,7 @@ # Compare MeowDisplay with other remote-display apps **Last audited:** 2026-11-05 (UTC) -**MeowDisplay reference:** 2.0.0 stable (Mac and iPhone/iPad); Android 2.0 closed testing +**MeowDisplay reference:** 2.0.0 stable (Mac and iPhone/iPad); Android 2.0 closed testing (audit date; Android 2.0 is now on Google Play) **Evidence:** Official product sites, App Store listings, and public project documentation. **This is a documented feature comparison, not a hands-on benchmark.** Already using another app? This page is intended to help you decide whether MeowDisplay fits your setup—or whether an alternative is a better choice. Different products solve different problems, and a missing feature may matter more than a long feature list. @@ -20,7 +20,7 @@ Already using another app? This page is intended to help you decide whether Meow | Use an **iPhone** as a Mac display | MeowDisplay supports iPhone; Apple's Sidecar does **not** support iPhone (iPad only). | | Connect by **USB** | MeowDisplay supports USB with iPhone/iPad. **Android does not currently have USB transport.** Connection support differs elsewhere; check each product's requirements. | | Connect **away from home** | MeowDisplay needs a network route you configure (for example Tailscale); it has **no MeowDisplay-hosted relay**. Some competitors provide automatic relays, sometimes behind a subscription. | -| Need an **Android receiver today** | MeowDisplay 2.0 is in **closed testing** on Android, not public production. RustDesk, AnyDesk and Duet offer established Android products. | +| Need an **Android receiver today** | MeowDisplay 2.0 for Android is on [Google Play](https://play.google.com/store/apps/details?id=com.raisecaterror.meowdisplay.android). It has fewer features than the Apple apps; see [PARITY.md](PARITY.md). RustDesk, AnyDesk and Duet offer established Android products. | | Want **free and open-source software** | MeowDisplay is GPLv3 with no feature paywall. **Sill is also completely free and open source** (Apache-2.0); RustDesk and PocketCtrl also publish source, with different scope and licensing. | ## Mac-to-phone and window-streaming alternatives @@ -33,7 +33,7 @@ For this group, products with a **visible US App Store rating count** are listed | Product | Public availability | US App Store ratings* | Display / interaction approach | Free use and paid limits | Sources | | --- | --- | ---: | --- | --- | --- | -| **[MeowDisplay](https://meowdisplay.app/)** | **2.0 stable** on Mac and iPhone/iPad; **Android closed test** | Not ranked | Mirror; virtual Extend; multi-pane Window view; Stage Peek; Direct Touch or Trackpad; Mac receiver | **Free, no paid feature tiers. GPLv3.** Remote access requires your own reachable network route; no hosted relay | [Release](https://github.com/raiseCatError/meowdisplay/releases/tag/v2.0.0) · [Window view](WINDOW_MODE.md) · [Platform parity](PARITY.md) | +| **[MeowDisplay](https://meowdisplay.app/)** | **2.0 stable** on Mac and iPhone/iPad; **Android 2.0 on Google Play** | Not ranked | Mirror; virtual Extend; multi-pane Window view; Stage Peek; Direct Touch or Trackpad; Mac receiver | **Free, no paid feature tiers. GPLv3.** Remote access requires your own reachable network route; no hosted relay | [Release](https://github.com/raiseCatError/meowdisplay/releases/tag/v2.0.0) · [Window view](WINDOW_MODE.md) · [Platform parity](PARITY.md) | | **[Sill](https://getsill.app/)** | Public iPhone/iPad App Store + Mac download | 50 | Selected Mac window or desktop; direct touch, gestures and trackpad; upright iPhone defaults to picture plus trackpad/controls, with a **Larger Picture** option for windows | **Free, no purchases; Apache-2.0 open source.** Own network, USB or user-managed VPN/route | [Features](https://getsill.app/) · [Support](https://getsill.app/support.html) · [Terms](https://getsill.app/terms.html) · [Source](https://github.com/Saffsanity/sill) · [US App Store](https://apps.apple.com/us/app/sill-mac-streaming/id6816359860) | | **[Macky](https://apps.apple.com/us/app/macky-remote-mac-terminal/id6758050739)** | Public iPhone/iPad App Store + Mac companion | 19 | Desktop streaming and remote terminal; peer-to-peer WebRTC connection advertised | Free download, with Lifetime Pro in-app purchases (US listing shows multiple offers); current free-session restrictions not independently tested | [US App Store listing, features and purchases](https://apps.apple.com/us/app/macky-remote-mac-terminal/id6758050739) | | **[Mirage](https://mirage.ethanlipnik.com/)** | Public App Store; iPhone, iPad, Mac and Apple Vision | 8 | Individual app or desktop streams; **up to eight app streams with Pro**; touch/Pencil and multiple Apple-device receivers | **Free:** 1 window, 720p, 30fps, without audio or Connect Anywhere. **Pro:** $7.99/mo, $59/yr or $199 lifetime (US site) | [Official plan comparison](https://mirage.ethanlipnik.com/upgrade) · [App Store](https://apps.apple.com/us/app/mirage-remote-display/id6757893115) | @@ -95,7 +95,7 @@ Other adjacent apps include [Glassy Desk](https://apps.apple.com/us/app/glassy-d - Your computer runs **Windows or Linux**. MeowDisplay has no Windows/Linux sender or receiver implementation or planned release commitment. [Platform scope](PARITY.md) - You require **automatic Internet connectivity through a hosted relay or account directory** with no network configuration. MeowDisplay doesn't run those services; use a remote-desktop tool that provides them. [Connection options](README.md#connections) -- You need a **publicly released Android receiver** immediately. MeowDisplay's Android 2.0 remains in closed testing. [Release status](README.md#platform-availability--november-2-2026) +- You need **Android feature parity** with the Apple apps. Android 2.0 is on Google Play but doesn't have every Apple feature. [Platform parity](PARITY.md) - You need a professionally managed **remote-support fleet**, enterprise administration or guaranteed service levels. MeowDisplay targets personal access to your own Mac, not centralized device administration. - You only need **an iPad second screen** and your devices meet Apple's requirements. Try Sidecar first; you may not need another app. [Apple Sidecar](https://support.apple.com/en-us/102597) diff --git a/COMPATIBILITY.md b/COMPATIBILITY.md index a3e7bf3c6..20786a067 100644 --- a/COMPATIBILITY.md +++ b/COMPATIBILITY.md @@ -9,11 +9,11 @@ orchestration, [upstream #135](https://github.com/peetzweg/opendisplay/issues/13 force update, and the wire-protocol handshake). It is a protocol-evolution and planning reference, **not a store-release status report**: current versions and download links are in -[README.md](README.md#platform-availability--november-2-2026). +[README.md](README.md#platform-availability). MeowDisplay has receiving apps on iPhone, iPad, Android and Mac. The main Mac app both shares and receives; the separate Receiver-only app runs on macOS 12 -or later. Android 2.0 (closed testing) works with the Mac app 2.0 and later. +or later. Android 2.0 (Google Play) works with the Mac app 2.0 and later. The Mac's updater (Sparkle) has one feed, so it offers Mac 2.1 to every Mac 2.0 install, including Macs used with Android, and Android 2.0 keeps working with it over the same protocol (pv 22, pairing 13). It doesn't get the 2.1 @@ -49,7 +49,7 @@ This document is the companion policy for *evolving* it. | MeowDisplay for Mac (share and receive) | macOS 14 | | MeowDisplay Receiver (receiver-only Mac app) | macOS 12 | | MeowDisplay for iPhone and iPad | iOS / iPadOS 16.4 | -| MeowDisplay for Android (closed testing) | Android 10 (API 29) | +| MeowDisplay for Android | Android 10 (API 29) | **Tested.** What has actually been run, as of the 2.1 release candidate: diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 9c513f707..14389d818 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -3,8 +3,8 @@ Thanks for helping make MeowDisplay better. Bug reports, carefully described ideas, documentation, physical-device testing, translations, and focused code changes are welcome. You do not need to write code to contribute. The current platform versions and download channels are in -[README.md](README.md#platform-availability--november-2-2026): Mac and -iPhone/iPad 2.0 are stable releases, and Android 2.0 is in closed testing. +[README.md](README.md#platform-availability): Mac and iPhone/iPad 2.1 are +stable releases, and Android 2.0 is on Google Play. Keep documentation clear about that distinction, and record source inspection, automated tests and physical-device tests separately. diff --git a/PARITY.md b/PARITY.md index b565f8e79..1a2808072 100644 --- a/PARITY.md +++ b/PARITY.md @@ -2,8 +2,8 @@ **MeowDisplay 2.0 is the stable Mac and iPhone/iPad release.** The main Mac app shares and receives; the separate Receiver-only app remains available. -Android 2.0 is in closed testing and works with Mac 2.0 or later (it doesn't get the 2.1 features; see [COMPATIBILITY.md](COMPATIBILITY.md)). Android requires Android 10+ and has no USB -transport. See [platform availability](README.md#platform-availability--november-2-2026). +Android 2.0 is on Google Play and works with Mac 2.0 or later (it doesn't get the 2.1 features; see [COMPATIBILITY.md](COMPATIBILITY.md)). Android requires Android 10+ and has no USB +transport. See [platform availability](README.md#platform-availability). What each receiving app can do today: iPhone/iPad (iOS), Android, and Mac Receiver. diff --git a/PRODUCT_SCOPE.md b/PRODUCT_SCOPE.md index 4e908400c..93b0e19c1 100644 --- a/PRODUCT_SCOPE.md +++ b/PRODUCT_SCOPE.md @@ -67,5 +67,5 @@ for implemented behavior and distribution status. Releases follow [RELEASE.md](RELEASE.md). Store upload, review, approval, testing tracks and public production are different states: no document should say a platform is available to the public until the corresponding -store or GitHub Release actually confirms it. As of 2.0.0, Mac and -iPhone/iPad are stable releases and Android is in Google Play closed testing. +store or GitHub Release actually confirms it. As of 2.1.0, Mac and +iPhone/iPad are stable releases, and Android 2.0 is public on Google Play. diff --git a/README.md b/README.md index f8cef149c..adfd757b9 100644 --- a/README.md +++ b/README.md @@ -8,8 +8,8 @@ Use MeowDisplay to mirror, extend or view individual Mac windows on your iPhone or iPad. Control your Mac with touch, a trackpad-style pointer, -shortcuts and a keyboard. Another Mac can also act as a receiver; Android -is available through closed testing. +shortcuts and a keyboard. Another Mac can also act as a receiver, and Android +2.0 is on Google Play. [Website](https://meowdisplay.app) · [Features](https://meowdisplay.app/features.html) · @@ -18,9 +18,9 @@ is available through closed testing. [Privacy](https://meowdisplay.app/privacy.html) · [Support on Ko-fi](https://ko-fi.com/raisecaterror) -**[Download MeowDisplay 2.1 for Mac](https://github.com/raiseCatError/meowdisplay/releases/download/v2.1.0/MeowDisplay.dmg)** · Download on the App Store · Join closed testing on Google Play +**[Download MeowDisplay 2.1 for Mac](https://github.com/raiseCatError/meowdisplay/releases/download/v2.1.0/MeowDisplay.dmg)** · Download on the App Store · Get it on Google Play -Mac 2.1.0 stable, shares and receives (macOS 14+) · [Mac Receiver 2.1.0](https://github.com/raiseCatError/meowdisplay/releases/download/v2.1.0/MeowDisplayReceiver.dmg) (macOS 12+) · iPhone/iPad 2.1.0 on the App Store · Android 2.0 in Google Play closed testing, not yet public · [All downloads](https://meowdisplay.app/downloads) +Mac 2.1.0 stable, shares and receives (macOS 14+) · [Mac Receiver 2.1.0](https://github.com/raiseCatError/meowdisplay/releases/download/v2.1.0/MeowDisplayReceiver.dmg) (macOS 12+) · iPhone/iPad 2.1.0 on the App Store · Android 2.0 on Google Play · [All downloads](https://meowdisplay.app/downloads)

MeowDisplay 2.0 Mac app with connected devices, beside an iPhone showing Safari and TextEdit in two Window view panes @@ -47,8 +47,8 @@ before deciding what fits your setup. ## MeowDisplay 2.1 -MeowDisplay 2.1 is out for Mac, iPhone and iPad. Android stays on 2.0 in -closed testing. Distribution differs by platform as shown below. +MeowDisplay 2.1 is out for Mac, iPhone and iPad. Android 2.0 is on Google +Play. Distribution differs by platform as shown below. ### Platform availability @@ -57,7 +57,7 @@ closed testing. Distribution differs by platform as shown below. | Mac app · macOS 14+ · share or receive | **2.1.0 stable** | [Download MeowDisplay](https://github.com/raiseCatError/meowdisplay/releases/download/v2.1.0/MeowDisplay.dmg) · [release notes](https://github.com/raiseCatError/meowdisplay/releases/tag/v2.1.0) | | Receiver-only Mac app · macOS 12+ | **2.1.0 stable** | [Download MeowDisplay Receiver](https://github.com/raiseCatError/meowdisplay/releases/download/v2.1.0/MeowDisplayReceiver.dmg) | | iPhone / iPad · iOS / iPadOS 16.4+ | **2.1.0 on the App Store** | [App Store](https://apps.apple.com/us/app/meowdisplay/id6817552864) | -| Android · Android 10+ | **2.0 Google Play closed testing** (not yet public) | [Join closed testing](https://meowdisplay.app/android/early-access) | +| Android · Android 10+ | **2.0 on Google Play** | [Google Play](https://play.google.com/store/apps/details?id=com.raisecaterror.meowdisplay.android) | The main Mac app includes both sharing and receiving: share this Mac's display, or use this Mac as another Mac's display. The separate Receiver-only app is @@ -107,8 +107,7 @@ a phone. The main changes are: dragging and right-clicking. Classic and Trackpad remain available. - **Per-device display modes:** choose Mirror, Extend or Window view independently for each receiver. -- **Android receiver:** Android 2.0 is available through Google Play closed - testing, not public release. +- **Android receiver:** Android 2.0 is available on Google Play. - **Files and clipboard:** Remote Finder and Unified Clipboard on the mobile receivers, with separate permissions granted by the Mac owner. Clipboard sharing starts off on both sides. @@ -146,7 +145,7 @@ keeps the active line enlarged on the receiver. | **Connections** | USB · local Wi-Fi · Remote Access · Auto-Reconnect · Wake & Connect | | **Audio** | Mac system audio on the receiver · Mac keeps playing locally · A/V sync and Resync | | **Security** | Trusted pairing with a matching code · TLS 1.3 · pinned peer identity | -| **Receivers** | iPhone and iPad · Android in closed testing · another Mac using the main app's receiver role or Receiver-only app, with keyboard and trackpad control (physical two-Mac input verification outstanding, [#12](https://github.com/raiseCatError/meowdisplay/issues/12)) | +| **Receivers** | iPhone and iPad · Android · another Mac using the main app's receiver role or Receiver-only app, with keyboard and trackpad control (physical two-Mac input verification outstanding, [#12](https://github.com/raiseCatError/meowdisplay/issues/12)) | ## Why MeowDisplay? @@ -465,7 +464,7 @@ Either side can start a session, and the Mac sender always streams. When connection approval is required, an explicit Connect waits for acceptance; background reconnects never prompt. -Receivers include **iPhone**, **iPad**, **Android** (closed testing), and another +Receivers include **iPhone**, **iPad**, **Android**, and another Mac using the main app's receiver role or the separate **Mac Receiver**. Once the sending Mac allows control, the receiving Mac's own keyboard and trackpad drive it while the video window is in front; press ⌃⌥⎋ to pause. @@ -539,7 +538,7 @@ More in [SECURITY.md](SECURITY.md) and the | **MeowDisplay** (the Mac app for sharing and receiving) | macOS 14 or later | | **MeowDisplay Receiver** (a spare Mac as a display) | macOS 12 or later | | **MeowDisplay** for iPhone and iPad | iOS / iPadOS 16.4 or later | -| **MeowDisplay** for Android (closed beta) | Android 10 or later; Mac 2.0 or later required. Build requirements: [AndroidReceiver/README.md](AndroidReceiver/README.md); features: [PARITY.md](PARITY.md) | +| **MeowDisplay** for Android | Android 10 or later; Mac 2.0 or later required. Build requirements: [AndroidReceiver/README.md](AndroidReceiver/README.md); features: [PARITY.md](PARITY.md) | Remote control of the Mac needs Accessibility permission; capturing a display needs Screen Recording. @@ -581,7 +580,7 @@ iPadOS 16.4 or later). 1. [Download MeowDisplay 2.1 for Mac](https://github.com/raiseCatError/meowdisplay/releases/download/v2.1.0/MeowDisplay.dmg), open the DMG, drag MeowDisplay to Applications and open it. 2. Install [MeowDisplay from the App Store](https://apps.apple.com/us/app/meowdisplay/id6817552864) on your iPhone or iPad - and open it. Android 2.0 is in [closed testing](https://meowdisplay.app/android/early-access). + and open it. Android 2.0 is on [Google Play](https://play.google.com/store/apps/details?id=com.raisecaterror.meowdisplay.android). To receive on another Mac, install the main app or the [Mac Receiver 2.1.0](https://github.com/raiseCatError/meowdisplay/releases/download/v2.1.0/MeowDisplayReceiver.dmg) (macOS 12+). 3. Connect over USB or Wi-Fi, and pair the devices by confirming the matching diff --git a/RELEASE.md b/RELEASE.md index adf9b9f03..54b1a1422 100644 --- a/RELEASE.md +++ b/RELEASE.md @@ -7,7 +7,7 @@ | Mac app · macOS 14+ · share or receive | **2.1.0 stable** | [Download MeowDisplay](https://github.com/raiseCatError/meowdisplay/releases/download/v2.1.0/MeowDisplay.dmg) · [release notes](https://github.com/raiseCatError/meowdisplay/releases/tag/v2.1.0) | | Receiver-only Mac app · macOS 12+ | **2.1.0 stable** | [Download MeowDisplay Receiver](https://github.com/raiseCatError/meowdisplay/releases/download/v2.1.0/MeowDisplayReceiver.dmg) | | iPhone / iPad · iOS / iPadOS 16.4+ | **2.1.0 on the App Store** | [App Store](https://apps.apple.com/us/app/meowdisplay/id6817552864) | -| Android · Android 10+ | **2.0 closed testing** (not part of 2.1) | [Join closed testing](https://meowdisplay.app/android/early-access) · Mac companion [2.0.0](https://github.com/raiseCatError/meowdisplay/releases/download/v2.0.0/MeowDisplay.dmg) | +| Android · Android 10+ | **2.0 on Google Play** (not part of 2.1) | [Google Play](https://play.google.com/store/apps/details?id=com.raisecaterror.meowdisplay.android) · Mac companion [2.0.0](https://github.com/raiseCatError/meowdisplay/releases/download/v2.0.0/MeowDisplay.dmg) | The main Mac app includes both sharing and receiving: share this Mac's display, or use this Mac as another Mac's display. The separate Receiver-only app is diff --git a/SETUP.md b/SETUP.md index fcfaa7fef..b28e43e9f 100644 --- a/SETUP.md +++ b/SETUP.md @@ -1,18 +1,18 @@ # MeowDisplay setup guide -## Platform availability — November 2, 2026 +## Platform availability | Platform | Available version | Get it | | --- | --- | --- | -| Mac app · macOS 14+ · share or receive | **2.0.0 stable** | [Download MeowDisplay](https://github.com/raiseCatError/meowdisplay/releases/download/v2.0.0/MeowDisplay.dmg) · [release notes](https://github.com/raiseCatError/meowdisplay/releases/tag/v2.0.0) | -| Receiver-only Mac app · macOS 12+ | **2.0.0 stable** | [Download MeowDisplay Receiver](https://github.com/raiseCatError/meowdisplay/releases/download/v2.0.0/MeowDisplayReceiver.dmg) | -| iPhone / iPad · iOS / iPadOS 16.4+ | **2.0.0 on the App Store** | [App Store](https://apps.apple.com/us/app/meowdisplay/id6817552864) | -| Android · Android 10+ | **2.0 closed beta** | [Request early access](https://meowdisplay.app/android/early-access) | +| Mac app · macOS 14+ · share or receive | **2.1.0 stable** | [Download MeowDisplay](https://github.com/raiseCatError/meowdisplay/releases/download/v2.1.0/MeowDisplay.dmg) · [release notes](https://github.com/raiseCatError/meowdisplay/releases/tag/v2.1.0) | +| Receiver-only Mac app · macOS 12+ | **2.1.0 stable** | [Download MeowDisplay Receiver](https://github.com/raiseCatError/meowdisplay/releases/download/v2.1.0/MeowDisplayReceiver.dmg) | +| iPhone / iPad · iOS / iPadOS 16.4+ | **2.1.0 on the App Store** | [App Store](https://apps.apple.com/us/app/meowdisplay/id6817552864) | +| Android · Android 10+ | **2.0 on Google Play** | [Google Play](https://play.google.com/store/apps/details?id=com.raisecaterror.meowdisplay.android) | The main Mac app includes both sharing and receiving: share this Mac's display, or use this Mac as another Mac's display. The separate Receiver-only app is -also available for Macs running macOS 12 or later. Android 2.0 requires the -Mac 2.0 app. +also available for Macs running macOS 12 or later. Android 2.0 works with the +Mac app 2.0 or later; see [COMPATIBILITY.md](COMPATIBILITY.md). diff --git a/SUPPORT.md b/SUPPORT.md index cfdcbd4f7..9fc646427 100644 --- a/SUPPORT.md +++ b/SUPPORT.md @@ -1,8 +1,8 @@ # Getting help -For the current release, see [platform availability](README.md#platform-availability--november-2-2026). -MeowDisplay 2.0 is stable on Mac and released on iPhone/iPad. Android 2.0 -is in closed testing and requires Mac 2.0. The main Mac app shares and +For the current release, see [platform availability](README.md#platform-availability). +MeowDisplay 2.1 is stable on Mac and released on iPhone/iPad. Android 2.0 +is on Google Play and works with Mac 2.0 or later. The main Mac app shares and receives; the separate Receiver-only app also remains available. For a bug report, include both app versions, OS versions, device models, diff --git a/assets/readme/google-play-badge.png b/assets/readme/google-play-badge.png new file mode 100644 index 0000000000000000000000000000000000000000..f44f4bdc344a93e13f589a3985fee55354a510d2 GIT binary patch literal 12388 zcmZ|01ys~u)HaF=Qli9=(v36>T@nKl1Cjy~5;Jro@uvjoltF1k21G)y4l3&oM&@5Da)?EO5?-bOvuR3RduA;7}IB2s;#q=SWZ8w&njfOi-C zdG^(l6bnm$TUAM3&u3~UE5MU%J!`M|?w!tX`&go;MU?$^{>l>H0r4n1lbDZ&uKR}Q zH`*zgGsh~Q%+qc7G@R!Lyna^KQo=6jtD{w|M1Q#>O~S;EsGla;%8vTfOjYazO0<^P zy80mB?sl$%Yt$`uK`KRo8M%!DlsS~e?)dlKdS)i05r4van>F92!M%&dw=;`>u}5H3 zg@)BHT0(GpdwPC@-^szm3V2Mcw{mlHOSLpKt`=Lv2&LM_GyS+`2f5)ValI_+K}Nc| zqcxTt(Z1@k<)JK!cub*htZOb3ZoG+zh!)$U$kw&qOV|3{{0sv=lbSb;aLlN&gc;Aw zd^>{NyVDGwW5)^Tl{ugM{?%OY=9?M* zob7di@l+x(7O*Sx+A(&Vs>J_dP@H~Pos+}VaM;6L%}y#JOpyNZ6Sj+ohey{6OTJ>n zeT%{OGL_#kFSUF9-r71y8}z@c`AK;9LfB?t;aT&g{-B0tn@4HA??*O4VNua=m!Ln> zKBtp5f}*0G^c=JRacfNEM4-cG&5MnmJ zTQ%)0MeNrH1%s&2`?CK2XM19l9hkMuX}U`MCLOa*AIEt}^PEIdwqfIcC;Xg9U=L!H z!(Ck5gC8sj?OFFsJ^Dq?D{99R*dYIm9v6p1r-Ek`p77y^DNKBGcsAn^7Z*q9Fu*e@ zRs4Y@{L$E~=P2CmzKGxHcFzAisVU*J&-mVNx3*^8pu}WSsQAO@&z~s`CC-C8>*9n)zX7|CLf1elD~CDs2J;_xx;jtMW6 zdJC@syt|h6Z#8BXdh7z2vo>;fKcGa1&veMmUwXv11-J=T}#`3=7=v`8Qjh~5bi z%qv_FOJ3+*j|tv?A3Qm2F~(Mq$ISHq`9?qkMhPYUe|>vX$%&wRV+n)6BGGtQZ&>kL zUJzpu-@8k4KO*UpC!s6JT?z_+oo|PQWt7a+>ps=Ydn#P~fm5xLpZ(^&$+zx%swhT0 zg=0C>@!a_&f~2me<1Y&e)7=>g3u&ByAwoJuDR_7z_7_)En=5axYT{zOu-ul3-6V+( zYsI^1CZpXkdd1W0vk;6sG%*o5GNQv{TIbp05Kku+4nAzpHBKL*kH>?q$7|No9dzt< z!L~g~oSmFHuFvLOdR^d1i}|Jiso%eUV_|`C;TGdpG6fwy54hekS8;OUT^r0!C@d_j zX*REMy=60y+0x#QUF9-=zj@xpC{vTZEisW~qt3au-~6KI*;n_~9$N?S074M@C0RP1o=k5|gtv zHa7Y!MRB+e%A9@QJIe^{S`h?C-rjuG+pJU?p|Gc@fRw`7QWUPXq%R4wl_~LCNT%-4 znAz%Gx48IZuo%uEmb11z?zR$x2h(=lUyz@1Z6nIJL<)fm9D?Q)cU{0@RkgHPv%Naq znU1);ybQHONbBg;Ww~;^IVv7-32pi_yLTI_bx{CY{yT5=OvtY< z&vMJlNr6LPVaXGJwP?FbE9r>`f`;ma%DZ>(7Co~6(0c7mbu6jsTcxkx@%z`8gVzjK zSj)@HH9J+)Xzi!0M^8|p;4H-jg@uGd#>NaPtE->WG}qNh(n`3q?p{1}X&?zY^A57P zyk=ox0Y*K}UVHbzAB!&~<_>UrxL1L*yYXR)Do$H-eqDF>7c|z!)>d0NqIb#bw0hPn zgKd3i;%vruJFeWBDh38zEImEFg*2P@s@)Gjc9TzP*f{qLP?igFzL1X0Hjmk2Fiz+=QTKhh!iDDS zgykzSlWfn_3L~@?=A*WmRdr_0=hMyC)1iCZ zyu2O2iQ_S$KKn~ik&?H!7;YpnL3$svzmLS)vlN@vdWv!Wj*|z)Dm&}rhg6RqTpXq} z(^B?(0^gOs+{oQdy`7Vr%i?^+XV!pMI-YU3zF8MPH#b+aUgbDx`N$T`D|?hS_`=$n z_0nHmJ%(5HE&H2V&OJ_}iNZNrr6uice>$A<#PY1aS*PL5UUyTV`cHOZ$9y{vPfk-ng6j)c% zB@xMQRE~}2G?vu7I{qXV_mndf#G`;`Vp>6ca4RoI7+%f?)u{5Gvs}lk>+jP)>I!a^ zg!`JGednd3qYeL?fJ?oWrKqN+hQ4X?IY6_`$5=ZEvK1cb8W}|m3~2Ud!{miG&Hh@| zcnU4sgyrPqY-k%88BtpsRsB3$bfuE=+Wwx>bj&7Bdw&h=DTKW(>BIitFE4^#$1R-8ZGNF^7 zJjXiJ`uXZ^{a$>pP~QwR6f%MQ{Pdx$%dsfd_X~v9dJ&N_byy)gNtgdMSO!~(NiFI1 z+114nlPYSn3|15bt7Fx@e5FF68%0iI&^1U<_O7z4t1C(NH{spa`+u&_W17zi-=?If zc#PVnC+kVzD1aLzA5DYB=`Crf%oLL;<0qP~S6Wy|z;JWk1*dF>XOOCNqSW zp@|v!jg47%RGz#S{xlTyyw&5vveBQD&uLB2)=dvHFQ$pVwNMW}e*5#o**HHTu&h4(BV7U>{UZXC1Cbp~X8w z%54VUzm*%@JIifumb;wz0Z-zZXTX@nEGGTp*Xpnk!7BPYcfYcyX;+z57dnCNJ}$lg zzWfu^+mZF!S!eOAAku6Qn82jCQj&_;uUl#kFma^m@Lg#hG%$qm@n~gDo!KX??9LL? z`VsqFG^g7tr0~lZZSz6w49wznz~YIHN`kI(d2(L}^YZe#5yms(oe$nz4d&(QKwvFx z59DZx#&KQ+2j7xBLZ((#Rn^#!_a^hU4F>%^%8T~`xdnj7rFL6Z(w0#zxvbN35CPu5 zrw7pp>zU&B!7Qn+V3yDjq*n~hD+FX)dHkjSMX!11#nF21Ag^&H-k|i+y{4P%J#bEx zFp~8AocemH0dJ(WHFh-m>uX^R0V*XM8=K5hH3Wj~bayspZq97G2{YHB)j z_i>N5O6$PbE>bW=emH`ZKW1-pt7odJZf#(%SjvXo3X87R7oHFP;UXm!S=>S2RXJ6QmHHX7Sg**CS6cw2 zBcg|*h6D_nRmbvR?>PPUu2#+evO!?--rnAswgrWS3i|r*J_gEq@6z6RcZEMM6d5ezq9WHbl!^imUko3DGx4Vc~cVCK+}aCGOr+}PV~4Z14hFQHKA zLP`B@>(QWG0>Ffs;(`H)W58qX5fNF8mzbXaP>~G*>1NbZ5K3A_e#Z+5uZnpg5cwcr zL-G9QC)qGcbAJ*=Ma9wR3_?o27q+%|fZ?h5`C)J=&-hF|y@|HGv0Oy*WRkeMJN!Y|%x zi__sPwx8YIG*7x)S2A6NWz&Y+IdH0JbE~^r6j9ipMx%HsPXY*ocG7KqxF!bpCdvIr z#$kR=$3D>5_2nJl7-_*06+5_;AzE?4Bx~0oI4GX)yPFkb7zYmABARBwKK1P7gPB$# zg8%)efA`}b*+^$55y5)uvE|-yT)NkGow2@8zz!Zl)_>qq(iRR{l9AR8z!Kw&UwD|E z{aUP9H#$F@)T|pk!D-8BPoVgdr{;?OeTn3&2g%ClK?#Rf*@0Gk@BMuEGH>EqF|-J{ zADliWJ?zrEr?eSghc?O=%FzSuv46`jr#o%YF*RQPUuwA{sbHtlhZns*K7)wRLHA6Ub|_~w zG4?GKD=d5bC0$*~9V{r^N(GQt%}=0{qc4SuKkw!resS}PoKALe&@i)@kYaR zoCMIvdv}HBWcBrP4U90JrOODm^-$JTr0-AnI=|JlZU>?`5kXC#z`>;+t8Z*MO!ZwIzn8dO8kV>Ez_(qCgj2U9ylC#u;ZZ7l?vTL)6C34orY5 z)?~bcLR2IBL=WPOhpml082(1nBuD zkH(W^C8Aeo&nk8Z)R)PgK)a8sa>h7BMy`8LG#Z_XN)=Qn5rJn2X7^b$F{_e7V8Lk4 zSGserMsxfc1NJX@&71u@;iH4yO}3_tR9B`_BDke~yi{uDY{j z(GI$vlfy_r%8FEC#_zc29Ua;}Ix`cCLXq~~=o=WIzkMT@%^p1T-fznNz$6-zF7y^s znJQ>|{`hY+4LBsgebh^L_V&8cMI3;bFy+e*u(dS(10`)Gb907{drZ{KwD;Tg&J?vF zU`ljz^Su9nz3m4%A{?SJ^`CD|%p!LXT?A%*Sg*cv%1y6&)$^{W05l{pE}E)l4;rDA>nz77au)*HuS}0&u`{hY8fPBmc&-AM4U^<9gO;{ z)n8!0mXD@ZCjBPPCYYK4 z6;$RwbQlN)YkL;T+W>y>A@hGrcDm8UkNz1kcH1L@6#9wT_27$^@`wkX)5Pi?qe09(Q0sUN( z`4}}wz?U@o`ZoO~a7c%3+~>_qhPFik;CoPbZ=IbPiuFhNJ#EM*r;L)V;VOhMtdS9K zST+ga+cO_`3Q?#fSQdMN!q$cmURLLg;$Hah6NC`M x7&@Y$VU&`qW5l?q$#R7C{#{dHk~FRZK2=gZ{ck2-Y{S1Ha4z(B@2}x6)r=woBP`{ufI|`HR)8TUj39RNYUi!MHL3%1m4}(KyT4h70{^m zko)hrfR_R%HxnSyPrOb*$#`9|Rke+6%17yGs%6}#VdevnX~t-Qgw@sPj+J5_&TDzR zkf-}+VO`6DS!6!LPGCND8udi!16B{+_sI986lqVcqH;chG;}nTF zSRlv1g#Q8^e+cSi+?=5xpN#PI@=9+SaF$;_`A^uL7o;QGbkX7hLG}B;Jtaq{up-g6 z_F4GYw|!l%*AjK(G12)}dC*lQaOSFjE%!OZZB25itYCyu6)Sps0>N$%vS787_WN#T zp(Ne1wAAin=K0Ad-7Vzz?($0c+59)$O%cLq?SEwjgEPGl_j)d) zQ0YNJ0TblDg?m5ZPGO}|u;Z=auL{@}7be9~ua z{Bzs)z}_rvh@r&Q^~iBtViwyHA(+8e=~D-r+d45e&Xb{ka1|KT8unOUUp>j46A}XM zr4JNb>xBa!9$vl95|Lq&kY5UU!H==%6Ks@&t(BY*Z3<#^9U>aPQX zpbEWPC+U2lg@wp|6=pgPC+_33vuSz-hI@D6FdvX)W}LlS11p8-I~%E_N`P(=*equ; z&lQbAeGshgBw$M*$qG5r=xdLrsizG)dtlPC^FU*vB1leNP!}si83I#RVZXk<)+X~u z!{$;Wr>Cdka-)l`tTS;&_&eAomwZ$f#Zdqx0sIA$WPbLhrzDx?STx#@R2h7JgOJGi z#sMYkw>G?sDKE4&k8Exz21T#0E zf7@JLU9FP)yRTCb0s~vhFxyL_3+V6s0VZE{L3U8rydiz3GqjSE3KFH#z^&|AUy*xK zL+0lSojto{Z*oOZrhTZFYkGh{jTMzu`n~_mP`v%uUzPy^Q!R9&Pv}A|s2yJ$ToyMr z%6tx+CVo8$5iy8wK+y$ptKN{t`Q^On2}tA#Y-Zp~A^i63+s5XmJS(ZZxp_8X>jP6N z!blW;DQ1+qStnbZs@A!L+P*e<5~T(XU#~BZ+n#>XgL-^6fNPIHU1x|DgnC_%hO#?w z#K`@-uP5qWI;fFlv8v`%5VKgAKPo7+Pp@&vrz;>gC&?a6`H3c*wwdgcw_3$xOgj+c zK^XYQlqYVA>mHw+$S1EB(PeDb-3L;H4&*(Pecz>D-48|K;NhP?t$pdCgeRvL{y6Un z-iELzbZ9(6ugRI!g>3z`zx`m3OZJmFx0peWl0)BdebEZ)$=IdfY^ZH=fkT~_VOr&= z>G`a4^=A>*cU9C)?3>#?{g-`weI>UlSUM+U@$bGC_doxN$bM(S{y^g$klBFbT4Pd@ zNgEg1wzzRd6W<)3^o^v&R{Z!;G%1G;#;>;mB-OL>?ee?y4T|0vh~E0_h~FmV<$I>k+qr_5p@i|_5k6rKi%+A}@D1cQC$H@_ zfSel4Toi0(Hm5Acs+2TGy-w2TfTl8J^s}HFN`~fCrVG~PO%U{*IWqb|rMX>ud?3IB zjk0%uH#u86q~N@6$t&fqSP29N8p6oBO(}d}KW?H3Lbz~l0d;mwY@rtYpHXb@`xr9f ze^lFBVOexL_;G7S^T&@J$I6<@LlbU_99AMiWY%6gsX+Wz$a&gIH?^pp!<%PEWjmiIQ)mZ!LQq` z(k+PMr|OcK{IQS~|H01IHuYdmAcKWayRXk)UN_Qm?fe{8Nz{Np{-ty|C5S5H-7*D; zZ;Eso>FI}^5)+O~k>s{smp9hWhpa6#V_>1IuZ^<(8qKz+tNGb_A2Sj^_Ve?D+Pz?c zm97v1GUn1_4>bJIg72F}P=m~1!h;&SF@kgjGT}Y5^zQ??9Ing3feixEt#qic3|@2R zCl$-3mPPk9g;XAmQDqNCh&YTX@k+6ZldIVMR;v>gind~m?R2q=$I5XE@N<#=R zrL+KnR@==gn4ni~hs6qS~utUP@A zd#lD}pOZO-T|A@xMd)ez@a$~Xi52Y~d18&}iScpDYO?Zj?w&P;?7k&?Z}AGFX-i7m z3a0{Xc?L#|KKLHp8Vbt7ZB=6V{L&uvdw6ZLe&SVysSRHTJ{`B?ao)w z!mSvLCMPh6@7yN6kLFBQ_UowX*BAn%al(tpdPe;`Z1@j?t?_m;LP_t^r1Ns*XGTuHv*t zlp?^+=`U>vVxZ4sx1$%zm#D;j-9&^Fr(d?)tcrD3_4nL%R^e|Z48XF4#I#NyMyILfpqggBB_Li{^gIXUs0{|6FIoA zTZ(Aq02Jc7jmXFU;i%(iYx}iB?FGB6Le9|Jj$cJiUJx-Tvn#2fshey?NPw3fY9L%I z8Qe&Nx+kn5z~g_EXCB^WjkeU}N$F54Tz)Zrx1%Uj0aRKxWu9(~rJ*UIgdkEjczN9` zE^UhEz0=%Qc0ia(u9HbzL@OhKfrZIsFjZn~+jOLAANK8F>Rfn{Mr>hW{x>S1FY5-q z0wI!3fqj-UU1?H_>|1})e5R(2F)I!Knb^2_Ef!#GjG#f%Nk?E6Y(o^r|%QmH;3PNB~37euH&Q znD&RQI<_vu3g##ScXjcsfw$hFC{~~cPouu3#{Qyx{8=*=P;$+EVR(Z9^E|lwx>F?T zsJHsM4ezqb3k$ho0Q(vS@blAX6p%DpwoXQjli0iCVeBQJJ$ZO)OCn(Mx*sf&>%(NW z(nDHu)EVBDJ3Bkc=JP*)hUTgyDCqxs>s=7Ss1&9lWTc2mV%eeO>I(mqjTbtEiTV-4 zN-*}~%HrZ;UOR3SKv{;4gFSgp2!*|!9e9r#kQD*bvo|m_9f!k;7au0~DcBp5a6C^3 zgvPeGOn@CZUixcGMtA(}yDj!CiHMMJOZFahmRwtDfyZ)b_i_sDb-*qE3&G4a?0o{^{(a;~*R;@#;mf>jFA=_JNr7iwMyP^^%a51(O5$p~=5To!5Cj|GSG9NDnPzK*aNe~*(?oum*hYwqY< zvW}$Tj`^HME;weam~UA{0`5URdZ;EJ!&}N69+7X^0$@BW{x)SM=;oS5Y~J7F*!g^F zyeYh;rKQ1PBfK<&lGk{D&d8H)F8$fRC_5wO6RM(a1X!lJ)V1UC(FIC!7i_2H#ZdW+ zXeDMq1ONr9D^bak1sI4ZI359FR(_0exl|vJwcw*4w*LDm@thc2J<*^HDkhe}$5YN@ z1tj!jxe8D#F>aaK5K~3zM9Tseqe}s;IMq0#zf(Q!wCN+@WkGQFHC{v;_~N=wwk`z< z0O(0{tot6uCU_ zlKWfMTxm#A?*G5hoW*51J3cF~=STU+PS-cRFAr)Ado{`j0FI;rVnw+tFqy5LoocV! zuk|CNDR8;v0V(fo9p3cJ-?^Ij^$TG)@(W4?z-+SaPcbNzmF>JdYJ3acLoG3Tu(!82 z=kDN+yARY1aCSN6UB8B8AfEmX8%1TT5S*#oob3lW{ z$$nB=fZcy3O(NXY#gBGcfY+D>&^1%jEoWt`_(;jE8}oZwq{O4<-mpa+6HqL*1Dsi16$^F6PiREC%uForw) zg61{B6DLmBu{t0;cQ?jkv1kRh(WR=_v3AHQRUD$ zkdS(#Mg%5lZV-2Xwm~HL48mp?VURtDtFQ0mjSaPT=&0gN!((T$ct5`NO(s-t{N;~w zTB7=D$+gb&y4l^gl-}$14T} z$w|{|&G;uq{T@Rm_bb)r6QqUUPn(@BF!qF=t%IBZ6^hPMnMYE2kpRzNRgDg>WlwL9 z{kri&AT=?H(@04>6fAYZizQQPdVN*-$JgO%;ge55hmETgz%FK09X&O2%wXqtjA{+o zA@J2at)>c));+IwE2hagV)Yn*%NecP*^tTTxW1KZUnWGXvL@4gP+~)8_#W4ubaOQq|KPEDXa{TubMbn83Zaw zDRTE>YoIjS6z~VA@s{e)l(Y|A z2Ewvjw0$K?A;rl9aU7!Dzr4)of9{5|{Qu%824tqM8?xN?I-@yRVK zgR>qyV0zmp0CZ*XXSu7E2-YhH$eIuT@g+C0Y~;OmSu%YH>-xV*hFXDuwqo{E+hQd9 zEe+*9LoQZ8l;sHZ=*K(SunCABF#gqTs&i5^J1%)4aHL*4el5qz=eqpe}_~?g53%KQq0R5gj zpEHi>^J)HW{0E6yTq;OKnPAEwZlF0Q>b*-h9i*hBh9@T_*f=5*3kK}(u7Uhz(8#4Q z0y^wK5hX49dh)Sdj;OS|-EFY2uA932DU>f}e&U zYtYwDdZcX1qu?Hvh-M_I=#bQfgmf;5j48>j)&xJGAr@U)5hl^V z3JOt=>_O|2y*7 zBE?atZ8`-}e=;jRiWSafV#kBsxrN`Y0tlqAp6(DR5dIlRj=9CufgAAu+tB#Nh~Kue zt83mu4AcRc@}7dWq+gXGNP$!Q3MCm(z{6vz%|oM^cMm`_rPn~M>td_s|MWgW2+AnZ zLB9-(e}8StT4<@n*$C(aMh6v?mfC3jYYFA&;^$8gZrZ2|q(0Bp-9K3Fniu~2)YKHN z{jYEo?ems( zX@VbjjeJy}bik~v`yoip%kdeYrtZF~(Z8XqEq@2grQtwX{1pDY%F$x*-#9KcXLEkb z^vwsI4+A=zb3@ivx|4ze|6W~e#Lzr^=zFXL3Yc#iUVv(FK}kuxtgQRWk9SGx1C^R2 z&_#!V#^b|Y{$`RtYrM~^1Y$EV_K-k;bx$<-ddzr~jirf$Idcxl#u+5sSE3JU8X9P) zt6e@7VERU%Xu3*f>Bgsn<|I$qF-c+A5Z3q7pzEz0>Mcf%|FMC|Q*-l#o$2b_h6d@& znV})#K;eVw!|u{7zuA87<@Z$PS94{FVw(CThGk1@zDH}fu-5uBB3^EdG11;<0VfcF z4<jtxNl(^j?)Neu&B5hZVseg2cW)nZhG#6GmO}qB;R=3Lpt@TmUO8b0W2ga1sI%~4Sffp5gE-b9`1?}U*>nZ%^ z@$d{$i_MXbR1Y7v?e7ctWn&ETugBW|v?99$ERG3JVP-x&Jbb^`{O{pdTKhdLOoO^o zD?c&lKQ1m5z zlK+;2)?~MiX!0XYXH4B4^$0X1h`TMdUnFs8?b4Uruh+eZeTxI - Join closed testing on Google Play - - - - - - - - - - JOIN CLOSED TESTING ON - Google Play - - diff --git a/fastlane/APP_STORE_LISTING.md b/fastlane/APP_STORE_LISTING.md index e12cddb9d..9336d3e60 100644 --- a/fastlane/APP_STORE_LISTING.md +++ b/fastlane/APP_STORE_LISTING.md @@ -7,7 +7,7 @@ The existing field copy and first-submission checklist below are reference material from the 1.20.0 launch, not a verified export of today's live 2.0 metadata. Preserve legal/export and contact details in App Store Connect; do not infer new answers from this documentation update. Current downloads -and platform requirements are in [README.md](../README.md#platform-availability--november-2-2026). +and platform requirements are in [README.md](../README.md#platform-availability). Stored reference copy for the iOS app's App Store Connect text fields. diff --git a/fastlane/PLAY_STORE_LISTING.md b/fastlane/PLAY_STORE_LISTING.md index 098464dd3..c89b90e1d 100644 --- a/fastlane/PLAY_STORE_LISTING.md +++ b/fastlane/PLAY_STORE_LISTING.md @@ -149,6 +149,9 @@ To test a live session: install MeowDisplay on a Mac with macOS 14 or later (htt ## Testing track +Android 2.0 (versionCode 2000001) is now in production on Google Play. The +requirement below is kept as the record of how production access was gained. + The developer account is a personal account created after 13 November 2023: production access needs a **closed test with at least 12 testers opted in for 14 consecutive days**, then **Apply for production** on the Dashboard diff --git a/press-kit/Information/MeowDisplay-Descriptions.md b/press-kit/Information/MeowDisplay-Descriptions.md index e2e342eed..c8398e00c 100644 --- a/press-kit/Information/MeowDisplay-Descriptions.md +++ b/press-kit/Information/MeowDisplay-Descriptions.md @@ -16,7 +16,7 @@ Stage Peek lists open windows and running apps so you can switch, search or add Devices connect over USB or local Wi-Fi, or remotely over a private network you control, such as Tailscale. Devices are paired, sessions are encrypted, and the Mac decides who may control it. ## Longer overview -MeowDisplay uses a Mac as the sender and an iPhone, iPad, Android device or another Mac as the receiver. Version 2.0 of the Mac app and the iPhone/iPad app is released. Android is in closed testing and does not yet have full parity with the Apple apps. +MeowDisplay uses a Mac as the sender and an iPhone, iPad, Android device or another Mac as the receiver. Version 2.0 of the Mac app and the iPhone/iPad app is released. Android 2.0 is on Google Play and does not yet have full parity with the Apple apps. Display modes. Mirror shows the same display you see on the Mac. Extend adds a separate virtual display that macOS treats like any other monitor. Each connected device can have its own mode, so an iPad can extend while an iPhone shows windows. @@ -46,7 +46,7 @@ MeowDisplay is free, with no subscription, and its source is published under GPL - Mac app (sender and receiver): macOS 14 or later - Separate receiver-only Mac app: macOS 12 or later - iPhone and iPad: iOS / iPadOS 16.4 or later, App Store — https://apps.apple.com/app/id6817552864 -- Android: Android 10 or later, closed testing only +- Android: Android 10 or later, Google Play — https://play.google.com/store/apps/details?id=com.raisecaterror.meowdisplay.android - Connections: USB (iPhone/iPad), local Wi-Fi, Remote Access over a private network such as Tailscale - Website: https://meowdisplay.app - Release notes: https://github.com/raiseCatError/meowdisplay/releases/tag/v2.0.0 diff --git a/press-kit/Information/MeowDisplay-Reviewer-Guide.md b/press-kit/Information/MeowDisplay-Reviewer-Guide.md index 9f87f9671..2f738f8da 100644 --- a/press-kit/Information/MeowDisplay-Reviewer-Guide.md +++ b/press-kit/Information/MeowDisplay-Reviewer-Guide.md @@ -10,7 +10,7 @@ MeowDisplay is free. You do not need a review code, licence key or account. ## What it does not do - It does not run a cloud relay, account system or remote-access service. Remote Access needs a route you provide. - It is not a fleet-management or enterprise remote-support product. -- Android is in closed testing and does not have every feature of the Apple apps. +- Android 2.0 is on Google Play and does not have every feature of the Apple apps. - It does not replace Apple Sidecar or Universal Control and does not use them. ## What to install diff --git a/press-kit/Information/MeowDisplay-Usage-and-Brand-Guidelines.md b/press-kit/Information/MeowDisplay-Usage-and-Brand-Guidelines.md index a716089f1..2c88e0e06 100644 --- a/press-kit/Information/MeowDisplay-Usage-and-Brand-Guidelines.md +++ b/press-kit/Information/MeowDisplay-Usage-and-Brand-Guidelines.md @@ -23,7 +23,7 @@ Use the supplied PNGs as they are. Do not redraw, recolour, crop, stretch or add ## Accuracy - Do not alter app screens, add controls or show features MeowDisplay does not have. -- Describe Android as closed testing, not as released. +- Describe Android 2.0 only by the features it has. - Remote Access needs a private-network route such as Tailscale; do not describe it as a cloud service. ## Three kinds of media diff --git a/tools/press-kit/approved-assets.json b/tools/press-kit/approved-assets.json index 34374fe94..eff60f035 100644 --- a/tools/press-kit/approved-assets.json +++ b/tools/press-kit/approved-assets.json @@ -138,24 +138,24 @@ { "file": "Information/MeowDisplay-Descriptions.md", "category": "Information", - "bytes": 5062, - "sha256": "4f32eb63e8390c068d67b7ce39d002911ee4b33c32206c018fa84dbf00d20cbb", + "bytes": 5143, + "sha256": "ad89d40df3b8564cd2bc66f6cd21a63636a3f75d3879be8b74500c9e9bf08944", "review": "approved", "caption": "Descriptions" }, { "file": "Information/MeowDisplay-Reviewer-Guide.md", "category": "Information", - "bytes": 4793, - "sha256": "f6eddfd5abcda26b36347d1685b0d8ad46058d316ff6d3dd78ffde3aaf93d202", + "bytes": 4794, + "sha256": "83857e3cc1576c3a656b09db37fe79bde8782e0ddca9bdd2e1d9e0aedad672fa", "review": "approved", "caption": "Reviewer Guide" }, { "file": "Information/MeowDisplay-Usage-and-Brand-Guidelines.md", "category": "Information", - "bytes": 3684, - "sha256": "fb7c71994c862a891efc246031469903bbc6556c5bbc3b5314f529fcbbca88a4", + "bytes": 3681, + "sha256": "b988a7eea4ed5027b2dcedeeeba887a7bad02d5c7f41948602cb61e0595c823a", "review": "approved", "caption": "Usage and Brand Guidelines" }, diff --git a/tools/press-kit/build.py b/tools/press-kit/build.py index 8b8682519..70250ca4b 100644 --- a/tools/press-kit/build.py +++ b/tools/press-kit/build.py @@ -172,7 +172,7 @@ def cat(c):

Source
Open source, GPL-3.0 on GitHub
Mac
2.0.0 released · macOS 14 or later (receiver-only app: macOS 12 or later)
iPhone & iPad
2.0.0 released · iOS / iPadOS 16.4 or later · App Store
-
Android
Closed testing · Android 10 or later
+
Android
2.0 on Google Play · Android 10 or later
Connections
USB (iPhone, iPad) · local Wi-Fi · Remote Access over your own private network, such as Tailscale
Developer
Jai Sukka (raiseCatError), independent
''') @@ -234,7 +234,7 @@ def cat(c):

Five-minute demo

  1. Mirror the Mac on an iPad in landscape.
  2. Switch the iPad to Extend and drag a window onto it.
  3. On iPhone, open Window view and add a second window from Stage Peek.
  4. Use Stage Peek to search and switch a pane, or show Full Desktop.
  5. Open the keyboard, type in the Text Bar and watch Zoom While Typing.

Connections

USB (iPhone, iPad) needs no network. Local Wi-Fi finds devices nearby. Remote Access reaches an already paired Mac through a private-network address you provide, such as Tailscale; the address never grants trust.

Security

Pairing needs a matching code and approval on the Mac. Sessions use TLS 1.3 and pinned device identities. Control is a separate, per-session permission set on the Mac.

-

Known issues in 2.0.0

On iPad with the Custom control layout, rotating can leave Window view panes mis-sized until you relaunch (#129). On iPhone in landscape, the default Compact Dock in Stage Peek shows about one window at a time; choose Settings › Controls › Dock › Normal for more (#130). Android is in closed testing.

+

Known issues in 2.0.0

On iPad with the Custom control layout, rotating can leave Window view panes mis-sized until you relaunch (#129). On iPhone in landscape, the default Compact Dock in Stage Peek shows about one window at a time; choose Settings › Controls › Dock › Normal for more (#130).

Reviewer's guide with story angles (Markdown) · 2.0.0 release notes · Troubleshooting

''') icon, logo = by["AppIcon-1024"], by["Logo-512"] @@ -242,7 +242,7 @@ def cat(c):

Two official files. Use the app icon wherever you would show an app, and the rounded logo where the mark needs to stand on its own, on light or dark backgrounds.

MeowDisplay app icon on a light background
App iconThe square master, as submitted to the App Store; platforms apply their own corner mask (shown masked here).1024 × 1024 PNG · Download
MeowDisplay logo on a dark background
LogoThe rounded mark with a transparent background, ready to place on any colour.512 × 512 transparent PNG · Download
-
  • Write MeowDisplay: one word, capital M and D.
  • Use the artwork as supplied; don't redraw, recolour, crop or stretch it.
  • Both files work on light and dark backgrounds.
  • Don't alter app screens or show features MeowDisplay doesn't have. Describe Android as closed testing.
+
  • Write MeowDisplay: one word, capital M and D.
  • Use the artwork as supplied; don't redraw, recolour, crop or stretch it.
  • Both files work on light and dark backgrounds.
  • Don't alter app screens or show features MeowDisplay doesn't have. Describe Android 2.0 only by the features it has.

Usage permission, brand and trademark notes · Asset provenance

''') labels = {"Screenshots": "Original screenshots · PNG", "Mockups": "Device mockups · transparent PNG", "Graphics": "Promotional graphics · PNG", diff --git a/tools/press-kit/press.template.html b/tools/press-kit/press.template.html index aba44298b..4b0205da5 100644 --- a/tools/press-kit/press.template.html +++ b/tools/press-kit/press.template.html @@ -14,7 +14,7 @@ @@ -22,10 +22,10 @@ {{CONTENT}} From f8f744ab0170da0f60c6af38c5bb17b0440bb545 Mon Sep 17 00:00:00 2001 From: raiseCatError <315733358+raiseCatError@users.noreply.github.com> Date: Sun, 29 Nov 2026 17:02:24 +0530 Subject: [PATCH 32/34] docs(release): 2.2.0 release notes and store text (draft) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit App Store What's New and promotional text, the summary to put above release-please's commit list in the 2.2.0 CHANGELOG section, Mac update notes, website highlights and setup/support lines, all from the in-app What's New the owner accepted and the 2.1 → 2.2 change list. Apple platforms only; Android 2.0 on Google Play is unchanged. One set of terms: Auto-Pan, Display Overview (Beta), Arrange Displays (Beta), Display Scaling, Active Connection. --- docs/release/2.2.0-notes.md | 116 ++++++++++++++++++++++++++++++++++++ 1 file changed, 116 insertions(+) create mode 100644 docs/release/2.2.0-notes.md diff --git a/docs/release/2.2.0-notes.md b/docs/release/2.2.0-notes.md new file mode 100644 index 000000000..bbca255c4 --- /dev/null +++ b/docs/release/2.2.0-notes.md @@ -0,0 +1,116 @@ +# MeowDisplay 2.2.0: release notes and store text (draft) + +Status: **draft for owner review. Not published.** Apple platforms only. 2.2.0 ships on Mac +(MeowDisplay and MeowDisplay Receiver) and iPhone/iPad. Android is excluded from this release +(`excludedPlatforms`); MeowDisplay 2.0 for Android stays as it is on Google Play. + +Sources: `Shared/WhatsNew.swift` (the in-app What's New the owner accepted on 9000101/9000102), +`docs/qa/2.2-qa-checklist.md` Part 1 (what changed from 2.1) and Round 9. Every line names a +feature that is in the 2.2 candidate. Nothing here is a claim about Android. + +## Terms + +Use these names everywhere (app, store, site, release notes): + +| Name | What it is | Where | +| --- | --- | --- | +| Auto-Pan | The zoomed view follows the pointer to the edge | iPhone/iPad: Settings › Gestures | +| Display Overview (Beta) | Every Mac display in one view, full screen or as a Window mode pane | iPhone/iPad | +| Arrange Displays (Beta) | Move the Mac's displays from Stage Peek; the Mac asks first | iPhone/iPad; on the Mac: "Arrange from iPhone and iPad (Beta)" | +| Display Scaling | Larger text and controls for a device used as an extended display | Mac (was "Desktop Size" in QA builds before Round 8) | +| Active Connection | Read-only: how a device is connected right now (USB, direct Wi-Fi, local network, another network) | iPhone/iPad: Settings › Connections; Mac: Settings › Overview and Streaming; Mac Receiver overview | +| Rearrange Controls | Your own control order, separately for portrait and landscape | iPhone/iPad: touch and hold Settings | + +Don't write "Tailscale" as the route a session uses, "Desktop Size", or "Auto Pan"/"autopan". + +## App Store: What's New in This Version (iPhone and iPad) + +Plain text, under the 4,000-character limit. Paste into App Store Connect for version 2.2.0. + +``` +• Auto-Pan: when you're zoomed in, the view follows the pointer to the edge, whether you use touch, Trackpad mode, a mouse or a trackpad. Choose where it works in Settings › Gestures. +• Display Overview (Beta): see all your Mac's displays in one view, full screen or as a pane in Window mode. +• Arrange Displays (Beta): move your Mac's displays around from Stage Peek. Your Mac asks first, unless it always allows this device. +• Rearrange Controls: touch and hold Settings to put your controls in your own order, separately for portrait and landscape. + +Also new +• The calculator now floats, with history and notes. Optional: add it in Edit Function Tray. +• Find the Pointer: an optional arrow points to the pointer when it's out of view. +• See when your Mac sleeps during a session, with a Wake Mac button. +• Active Connection in Settings › Connections shows how this device reaches your Mac. +• Use Less Data (Automatic, On or Off) for mobile and metered networks. +• Many fixes for Window mode, the keyboard controls, lock screen and wake. + +Most new features need MeowDisplay 2.2 on your Mac. Update it from the Mac app or at meowdisplay.app. +``` + +Promotional text (optional, 170 characters, can change without review): + +``` +New in 2.2: Auto-Pan follows your pointer when you're zoomed in, plus Display Overview (Beta) and your own control layout. +``` + +## GitHub release and CHANGELOG (Mac) + +release-please writes the 2.2.0 section of `CHANGELOG.md` from the Conventional Commit titles +(`release-pr.yml`), and `release-publish.yml` uses that section as the GitHub release body. To give +readers a summary before the commit list, add this paragraph at the top of the 2.2.0 section in the +release PR (below the `## [2.2.0]` heading, above `### Features`): + +```markdown +**MeowDisplay 2.2** for Mac, iPhone and iPad. + +- **Auto-Pan** (iPhone and iPad): when you're zoomed in, the view follows the pointer to the edge, + with touch, Trackpad mode, a mouse or a trackpad. +- **Display Overview (Beta)** and **Arrange Displays (Beta)**: see every Mac display in one view, + and move displays from your iPhone or iPad. The Mac asks first unless it always allows that device. +- **Display Scaling** (Mac): larger text and controls for a device you use as an extended display. +- **Stay Awake with Lid Closed** (Mac, optional): keep a MacBook available with its lid closed. +- **Active Connection**: Settings shows how each device is connected. +- **Rearrange Controls**, a floating calculator, Find the Pointer, Use Less Data, and a Mac Asleep + screen with Wake Mac. + +Downloads: `MeowDisplay.dmg` (macOS 14 or later) and `MeowDisplayReceiver.dmg` (macOS 12 or later). +iPhone and iPad: update from the App Store. MeowDisplay 2.0 for Android works with Mac 2.2 and +doesn't get these features. +``` + +## Mac update (Sparkle) and the Mac What's New window + +`release-mac.yml` builds the appcasts with `generate_appcast` and no notes file, so the Sparkle +update dialog shows no release notes (as for 2.1.0). After updating, the Mac shows its What's New +window once (catalog items for `.mac`). No change is proposed. If notes in the update dialog are +wanted later, that is a reviewed workflow change, not part of 2.2.0. Text for it, if ever needed: + +``` +MeowDisplay 2.2 +• Arrange from iPhone and iPad (Beta): a paired device can move your displays around. You confirm each change, unless you always allow that device. +• Display Scaling: choose larger text and controls for a device you use as an extended display. +• Stay Awake with Lid Closed (optional): keep a MacBook available to your devices with its lid closed. +• Active Connection: Settings › Overview and Streaming show how each device is connected. +On iPhone and iPad: Auto-Pan, Display Overview (Beta) and Rearrange Controls. Update MeowDisplay there too. +``` + +## Website highlights (for the website's 2.2 change, merged only once 2.2 is live) + +- Headline: "MeowDisplay 2.2 is here for Mac, iPhone and iPad." +- Highlights, in this order: Auto-Pan; Display Overview (Beta); Arrange Displays (Beta); Display + Scaling (Mac); Rearrange Controls; Active Connection. +- Availability line: "iPhone and iPad 2.2 on the App Store · Mac 2.2 for macOS 14+ · Mac Receiver + for macOS 12+ · Android 2.0 on Google Play (works with Mac 2.0 or later)." +- Android pages: unchanged apart from the Mac companion link (Mac 2.2 instead of 2.1). Don't list + any 2.2 feature for Android. + +## Setup and support docs + +- Compatibility: iOS/iPadOS 2.2 with Mac 2.1 connects. The Mac's views don't follow the pointer in + Window mode, and the Overview pane and Arrange Displays need a Mac with 2.2 (its `welcome.features` + `overviewPane` and `displayArrange`). Mac 2.2 with iOS 2.1 or Android 2.0 works as with Mac 2.1 + (PROTOCOL.md 6.10 Auto-Pan addendum: every new field is optional). +- Support: if the view doesn't follow the pointer, check Settings › Gestures › Auto-Pan and that the + Mac runs 2.2. Active Connection shows Unknown briefly after connecting; that is expected. + +## Android (separate, unchanged) + +No Android release in 2.2.0. Google Play keeps MeowDisplay 2.0 (versionCode 2000001). The +`AndroidReceiver` changes on `dev` since 2.0 are not shipped by this release and aren't described. From 38ded0d83810cc2102ddc42a06aca6af3af765b9 Mon Sep 17 00:00:00 2001 From: raiseCatError <315733358+raiseCatError@users.noreply.github.com> Date: Sun, 29 Nov 2026 17:15:42 +0530 Subject: [PATCH 33/34] chore(release): pin the published baseline to v2.1.0 Installed Mac copies run 2.1.0 (Latest since 2026-11-11; meowdisplay.app's appcasts serve it). published-baseline.sh passes for v2.1.0: both DMGs match the pinned sha256 (the release's SHA256SUMS.txt, release.json and the Homebrew casks agree), Developer ID CZ8BW9J896, same SUPublicEDKey. The designated requirements and entitlements of both apps are identical to v2.0.0's, so the continuity checks keep their meaning; only the reference moves to what users actually run. --- scripts/release/baseline.env | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/release/baseline.env b/scripts/release/baseline.env index 90f9e8178..54cbf40ca 100644 --- a/scripts/release/baseline.env +++ b/scripts/release/baseline.env @@ -5,19 +5,19 @@ # reviewed commit, after a newer release has been verified live. REPO=raiseCatError/meowdisplay TEAM_ID=CZ8BW9J896 -BASELINE_TAG=v2.0.0 -BASELINE_URL=https://github.com/raiseCatError/meowdisplay/releases/download/v2.0.0 +BASELINE_TAG=v2.1.0 +BASELINE_URL=https://github.com/raiseCatError/meowdisplay/releases/download/v2.1.0 BASELINE_SUPUBLICEDKEY=M9Je3RXE9GYGv7ZvVmJj2xK2FrpSR/rQvbuZFfYORcU= LIVE_FEED_BASE=https://meowdisplay.app SENDER_DMG=MeowDisplay.dmg -SENDER_DMG_SHA256=9b9fb406774d40ca737d74fb597d9dd8eaf7b3877d6bc4e6d294fff7d239bae7 +SENDER_DMG_SHA256=d02273969b8a00fc7269f69ab6440bae92028bcb55b9e5f4765cb5d925e8c316 SENDER_APP="MeowDisplay.app" SENDER_BUNDLE_ID=com.raisecaterror.meowdisplay.mac SENDER_FEED=appcast.xml RECEIVER_DMG=MeowDisplayReceiver.dmg -RECEIVER_DMG_SHA256=3860b8941aa48e8f48b59f7252be8fe742c6bbd01c22b067a5861cb847581d98 +RECEIVER_DMG_SHA256=4981863429e85dacf916287e466867ff1c38c838bc364c0ae483739b8d17eaf7 RECEIVER_APP="MeowDisplay Receiver.app" RECEIVER_BUNDLE_ID=com.raisecaterror.meowdisplay.mac.receiver RECEIVER_FEED=appcast-receiver.xml From f419873202dd9da9544bf0a49ad3b1b88d7db9e6 Mon Sep 17 00:00:00 2001 From: raiseCatError <315733358+raiseCatError@users.noreply.github.com> Date: Sun, 29 Nov 2026 17:15:42 +0530 Subject: [PATCH 34/34] docs(release): 2.2.0 production candidate and upgrade verification plan --- docs/release/2.2.0-notes.md | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/docs/release/2.2.0-notes.md b/docs/release/2.2.0-notes.md index bbca255c4..c7147bfc5 100644 --- a/docs/release/2.2.0-notes.md +++ b/docs/release/2.2.0-notes.md @@ -110,6 +110,37 @@ On iPhone and iPad: Auto-Pan, Display Overview (Beta) and Rearrange Controls. Up - Support: if the view doesn't follow the pointer, check Settings › Gestures › Auto-Pan and that the Mac runs 2.2. Active Connection shows Unknown briefly after connecting; that is expected. +## Production candidate and upgrade verification plan + +The candidate is built only by CI from `release/2.2.0` (`release-candidate.yml`): Mac DMGs signed, +notarized and staged with signed feeds (`release-build`), iOS uploaded to App Store Connect +(`ios-upload`), no Android job (`builds android` = false). Nothing publishes before the +`release-publish` approval. Local QA builds (Dev/QA bundle IDs) are not candidates. + +1. **Before pushing `release/2.2.0`:** `release-preflight.yml` green from `main` + (tooling + published baseline). Then, on the release branch, `release-dry-run.yml` + (credentialed: match, Sparkle private key, App Store Connect) once. +2. **Candidate checks (RELEASE.md § Verification):** `codesign --verify --deep --strict` and + `spctl -a -vv` on both DMGs; `verify-feed.sh` for `appcast.xml` and `appcast-receiver.xml` + against the shipped key; `CFBundleShortVersionString`/`CFBundleVersion` 2.2.0 (above the live + 2.1.0 feed); launch on a non-development account; Mac Receiver on macOS 12 if a machine exists. + iOS: the build processes in App Store Connect as 2.2.0 with `PrivacyInfo.xcprivacy`. +3. **Upgrade from 2.1.0 (blocking, physical):** + - Mac: on a Mac running the published 2.1.0 (Sparkle feed from meowdisplay.app), install the + candidate DMG over it (the feed only changes at publication). Pairings, Known Devices, + Allow Input policies and Display Scaling default survive; What's New shows once; Screen + Recording and Accessibility grants persist (same designated requirement as 2.1.0, checked by + `published-baseline.sh`). + - iPhone (and iPad if available): App Store 2.1.0 installed, then the 2.2.0 TestFlight build over + it. Pairing with the Mac kept, settings kept (Auto-Pan defaults On for saved preferences + without the key), What's New shows once, then not again. + - Cross-version: iPhone 2.1.0 with the Mac candidate, and the Mac 2.1.0 with the iPhone + candidate: connect, Mirror, Window view, input. + - Android 2.0.0 (Google Play) with the Mac candidate, if a device is available (recommended). +4. **After publication:** **Check for Updates…** in Mac 2.1.0 finds 2.2.0; the website serves + the 2.2.0 `release.json` through the workflow's PR; Homebrew bump PR verified with + `brew audit --cask --strict --online` before merging. + ## Android (separate, unchanged) No Android release in 2.2.0. Google Play keeps MeowDisplay 2.0 (versionCode 2000001). The