Fresh app identity for the destination Apple developer account; real sandbox IAP and iCloud runtime validation remain follow-up work.
4PJS97G236.Ready to push
Sequential independent reuse, quality and efficiency reviews completed. Test deployment-target alignment and two Xcode 27 test-compilation compatibility issues were fixed. Mac build-for-testing, 62 focused tests and lint/static guards passed. User accepts merging before real App Store sandbox IAP and iCloud runtime validation.
working-tree Approved account migration, user configuration and scoped Xcode 27 compile fixes Prism now identifies itself as a new app under the new developer account. Its cloud storage and purchase catalogue use matching new names. This does not copy old beta data or purchases.
Debug and Release teams/IDs are updated for the project and three targets. Entitlement container arrays, KVS expansion, device/probe paths, log metadata and source/StoreKit product IDs stay consistent. Tests target the same OS minimum as the app.
This is a new identity, not an App Store transfer. KVS remains prefix/bundle derived. Restricted entitlements were verified on an existing-profile signed Mac artifact; this does not prove CloudDocuments access or server-side product availability. The Sendable async StoreKit-sync protocol explicitly opts out of inferred MainActor isolation, preserving actor-backed test conformers on Xcode 27.
prism.xcodeproj/project.pbxproj
Why it matters. Every app/test configuration must describe the same new account identity and compatible platform minimum.
What to look at. Debug and Release configuration blocks
prism/Services/StoreManager.swift
Why it matters. StoreKit looks up exact product strings for the new app.
What to look at. StoreManager.ProductID
prism/prism.entitlements
Why it matters. Container references must match the newly associated destination container.
What to look at. Both container arrays; variable-based KVS preserved
prism/Services/AppStoreSync.swift
Why it matters. Existing unit tests must still compile under the new Xcode SDK.
What to look at. AppStoreSyncing; MarkdownDocument readable-content-type assertion
User confirmed no released App Store version and approved the new identifiers.
Phone/local StoreKit success is user-reported. Real sandbox IAP and iCloud runtime checks remain outstanding and accepted for merge.
| Severity | Area | Finding | Resolution |
|---|---|---|---|
| major | Test target deployment minimums | Tests still targeted 26.2 while importing the app built for 27.0. | Aligned unit/UI target minimums in both configurations; build-for-testing passed. |
| major | Xcode 27 test compilation | System UTType.markdown conflicts with Prism extension; actor synchroniser could not conform to inferred-MainActor protocol. | Assert stable UTI directly and explicitly mark Sendable async protocol nonisolated. Focused tests passed 62/62. |
Source: local run at 2026-10-30T11:15:56.560647+00:00 · snapshot a55805b5e4ba89b7708a0c2a090d7006911a2a8f (dirty working tree)
Baseline: none
Execution: passed · JUnit: 1 file · Coverage: none · Baseline: absent
Coverage scope: as the project configures it
Totals: 62 passed · 0 failed · 0 skipped · 0 errored · 0 flaky
Derived by declaration name, from the diff (no baseline run).
No new or removed test declarations.
Files that import a changed file on the left, changed files in the centre, files a changed file imports on the right. Snapshot working-tree against base a55805b5e4ba89b7708a0c2a090d7006911a2a8f.
prism/Resources/mermaid.min.js — blob over 1 MB14 files: 10 code · 4 docs. Click to expand.
diff --git a/Makefile b/Makefileindex b88fd0e2..3884a1bb 100644--- a/Makefile+++ b/Makefile@@ -49,7 +49,7 @@ SIGNING_FLAGS = SCHEME = prism PROJECT = prism.xcodeproj-BUNDLE_ID = me.nore.ig.prism+BUNDLE_ID = me.nore.ig.apps.prism CONFIG ?= Debug # Cap how long xcodebuild waits for a -destination to resolve. A wirelessly
diff --git a/Tools/convergence-probe.sh b/Tools/convergence-probe.shindex be670b8d..a4ee38a2 100755--- a/Tools/convergence-probe.sh+++ b/Tools/convergence-probe.sh@@ -133,7 +133,7 @@ echo "[probe] log: $LOG" # The Debug app is sandboxed (Xcode injects com.apple.security.app-sandbox at # signing), so it cannot read arbitrary paths. Stage the fixture inside the # app's own container, which the sandbox always allows.-CONTAINER_TMP="$HOME/Library/Containers/me.nore.ig.prism/Data/tmp"+CONTAINER_TMP="$HOME/Library/Containers/me.nore.ig.apps.prism/Data/tmp" mkdir -p "$CONTAINER_TMP" STAGED_FIXTURE="$CONTAINER_TMP/convergence-fixture-$$.md" cp "$FIXTURE_ABS" "$STAGED_FIXTURE"
diff --git a/prism.xcodeproj/project.pbxproj b/prism.xcodeproj/project.pbxprojindex 9488a99f..0e16265e 100644--- a/prism.xcodeproj/project.pbxproj+++ b/prism.xcodeproj/project.pbxproj@@ -385,7 +385,7 @@ CODE_SIGN_IDENTITY = "Apple Development"; CODE_SIGN_STYLE = Automatic; CURRENT_PROJECT_VERSION = 1;- DEVELOPMENT_TEAM = V24684SCZN;+ DEVELOPMENT_TEAM = 4PJS97G236; ENABLE_APP_SANDBOX = YES; ENABLE_HARDENED_RUNTIME = YES; ENABLE_PREVIEWS = YES;@@ -393,7 +393,9 @@ GENERATE_INFOPLIST_FILE = YES; INFOPLIST_FILE = prism/Info.plist; INFOPLIST_KEY_CFBundleDisplayName = "Prism Markdown";+ INFOPLIST_KEY_ITSAppUsesNonExemptEncryption = NO; INFOPLIST_KEY_LSApplicationCategoryType = "public.app-category.developer-tools";+ INFOPLIST_KEY_LSSupportsOpeningDocumentsInPlace = YES; "INFOPLIST_KEY_UIApplicationSceneManifest_Generation[sdk=iphoneos*]" = YES; "INFOPLIST_KEY_UIApplicationSceneManifest_Generation[sdk=iphonesimulator*]" = YES; "INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents[sdk=iphoneos*]" = YES;@@ -406,12 +408,12 @@ INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; "INFOPLIST_KEY_UISupportsDocumentBrowser[sdk=iphoneos*]" = YES; "INFOPLIST_KEY_UISupportsDocumentBrowser[sdk=iphonesimulator*]" = YES;- IPHONEOS_DEPLOYMENT_TARGET = 26.0;+ IPHONEOS_DEPLOYMENT_TARGET = 27.0; LD_RUNPATH_SEARCH_PATHS = "@executable_path/Frameworks"; "LD_RUNPATH_SEARCH_PATHS[sdk=macosx*]" = "@executable_path/../Frameworks";- MACOSX_DEPLOYMENT_TARGET = 26.0;- MARKETING_VERSION = 0.11.0;- PRODUCT_BUNDLE_IDENTIFIER = me.nore.ig.prism;+ MACOSX_DEPLOYMENT_TARGET = 27.0;+ MARKETING_VERSION = 0.12.0;+ PRODUCT_BUNDLE_IDENTIFIER = me.nore.ig.apps.prism; PRODUCT_NAME = "$(TARGET_NAME)"; PROVISIONING_PROFILE_SPECIFIER = ""; REGISTER_APP_GROUPS = YES;@@ -439,7 +441,7 @@ CODE_SIGN_IDENTITY = "Apple Development"; CODE_SIGN_STYLE = Automatic; CURRENT_PROJECT_VERSION = 1;- DEVELOPMENT_TEAM = V24684SCZN;+ DEVELOPMENT_TEAM = 4PJS97G236; ENABLE_APP_SANDBOX = YES; ENABLE_HARDENED_RUNTIME = YES; ENABLE_PREVIEWS = YES;@@ -447,7 +449,9 @@ GENERATE_INFOPLIST_FILE = YES; INFOPLIST_FILE = prism/Info.plist; INFOPLIST_KEY_CFBundleDisplayName = "Prism Markdown";+ INFOPLIST_KEY_ITSAppUsesNonExemptEncryption = NO; INFOPLIST_KEY_LSApplicationCategoryType = "public.app-category.developer-tools";+ INFOPLIST_KEY_LSSupportsOpeningDocumentsInPlace = YES; "INFOPLIST_KEY_UIApplicationSceneManifest_Generation[sdk=iphoneos*]" = YES; "INFOPLIST_KEY_UIApplicationSceneManifest_Generation[sdk=iphonesimulator*]" = YES; "INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents[sdk=iphoneos*]" = YES;@@ -460,12 +464,12 @@ INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; "INFOPLIST_KEY_UISupportsDocumentBrowser[sdk=iphoneos*]" = YES; "INFOPLIST_KEY_UISupportsDocumentBrowser[sdk=iphonesimulator*]" = YES;- IPHONEOS_DEPLOYMENT_TARGET = 26.0;+ IPHONEOS_DEPLOYMENT_TARGET = 27.0; LD_RUNPATH_SEARCH_PATHS = "@executable_path/Frameworks"; "LD_RUNPATH_SEARCH_PATHS[sdk=macosx*]" = "@executable_path/../Frameworks";- MACOSX_DEPLOYMENT_TARGET = 26.0;- MARKETING_VERSION = 0.11.0;- PRODUCT_BUNDLE_IDENTIFIER = me.nore.ig.prism;+ MACOSX_DEPLOYMENT_TARGET = 27.0;+ MARKETING_VERSION = 0.12.0;+ PRODUCT_BUNDLE_IDENTIFIER = me.nore.ig.apps.prism; PRODUCT_NAME = "$(TARGET_NAME)"; PROVISIONING_PROFILE_SPECIFIER = ""; REGISTER_APP_GROUPS = YES;@@ -519,7 +523,7 @@ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; COPY_PHASE_STRIP = NO; DEBUG_INFORMATION_FORMAT = dwarf;- DEVELOPMENT_TEAM = V24684SCZN;+ DEVELOPMENT_TEAM = 4PJS97G236; ENABLE_STRICT_OBJC_MSGSEND = YES; ENABLE_TESTABILITY = YES; ENABLE_USER_SCRIPT_SANDBOXING = NO;@@ -581,7 +585,7 @@ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; COPY_PHASE_STRIP = NO; DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";- DEVELOPMENT_TEAM = V24684SCZN;+ DEVELOPMENT_TEAM = 4PJS97G236; ENABLE_NS_ASSERTIONS = NO; ENABLE_STRICT_OBJC_MSGSEND = YES; ENABLE_USER_SCRIPT_SANDBOXING = NO;@@ -606,12 +610,12 @@ BUNDLE_LOADER = "$(TEST_HOST)"; CODE_SIGN_STYLE = Automatic; CURRENT_PROJECT_VERSION = 1;- DEVELOPMENT_TEAM = V24684SCZN;+ DEVELOPMENT_TEAM = 4PJS97G236; GENERATE_INFOPLIST_FILE = YES;- IPHONEOS_DEPLOYMENT_TARGET = 26.2;- MACOSX_DEPLOYMENT_TARGET = 26.2;+ IPHONEOS_DEPLOYMENT_TARGET = 27.0;+ MACOSX_DEPLOYMENT_TARGET = 27.0; MARKETING_VERSION = 1.0;- PRODUCT_BUNDLE_IDENTIFIER = me.nore.ig.prismTests;+ PRODUCT_BUNDLE_IDENTIFIER = me.nore.ig.apps.prismTests; PRODUCT_NAME = "$(TARGET_NAME)"; SDKROOT = auto; STRING_CATALOG_GENERATE_SYMBOLS = NO;@@ -632,12 +636,12 @@ BUNDLE_LOADER = "$(TEST_HOST)"; CODE_SIGN_STYLE = Automatic; CURRENT_PROJECT_VERSION = 1;- DEVELOPMENT_TEAM = V24684SCZN;+ DEVELOPMENT_TEAM = 4PJS97G236; GENERATE_INFOPLIST_FILE = YES;- IPHONEOS_DEPLOYMENT_TARGET = 26.2;- MACOSX_DEPLOYMENT_TARGET = 26.2;+ IPHONEOS_DEPLOYMENT_TARGET = 27.0;+ MACOSX_DEPLOYMENT_TARGET = 27.0; MARKETING_VERSION = 1.0;- PRODUCT_BUNDLE_IDENTIFIER = me.nore.ig.prismTests;+ PRODUCT_BUNDLE_IDENTIFIER = me.nore.ig.apps.prismTests; PRODUCT_NAME = "$(TARGET_NAME)"; SDKROOT = auto; STRING_CATALOG_GENERATE_SYMBOLS = NO;@@ -657,12 +661,12 @@ buildSettings = { CODE_SIGN_STYLE = Automatic; CURRENT_PROJECT_VERSION = 1;- DEVELOPMENT_TEAM = V24684SCZN;+ DEVELOPMENT_TEAM = 4PJS97G236; GENERATE_INFOPLIST_FILE = YES;- IPHONEOS_DEPLOYMENT_TARGET = 26.2;- MACOSX_DEPLOYMENT_TARGET = 26.2;+ IPHONEOS_DEPLOYMENT_TARGET = 27.0;+ MACOSX_DEPLOYMENT_TARGET = 27.0; MARKETING_VERSION = 1.0;- PRODUCT_BUNDLE_IDENTIFIER = me.nore.ig.prismUITests;+ PRODUCT_BUNDLE_IDENTIFIER = me.nore.ig.apps.prismUITests; PRODUCT_NAME = "$(TARGET_NAME)"; SDKROOT = auto; STRING_CATALOG_GENERATE_SYMBOLS = NO;@@ -682,12 +686,12 @@ buildSettings = { CODE_SIGN_STYLE = Automatic; CURRENT_PROJECT_VERSION = 1;- DEVELOPMENT_TEAM = V24684SCZN;+ DEVELOPMENT_TEAM = 4PJS97G236; GENERATE_INFOPLIST_FILE = YES;- IPHONEOS_DEPLOYMENT_TARGET = 26.2;- MACOSX_DEPLOYMENT_TARGET = 26.2;+ IPHONEOS_DEPLOYMENT_TARGET = 27.0;+ MACOSX_DEPLOYMENT_TARGET = 27.0; MARKETING_VERSION = 1.0;- PRODUCT_BUNDLE_IDENTIFIER = me.nore.ig.prismUITests;+ PRODUCT_BUNDLE_IDENTIFIER = me.nore.ig.apps.prismUITests; PRODUCT_NAME = "$(TARGET_NAME)"; SDKROOT = auto; STRING_CATALOG_GENERATE_SYMBOLS = NO;
diff --git a/prism/Info.plist b/prism/Info.plistindex 9407ef3f..44a52caf 100644--- a/prism/Info.plist+++ b/prism/Info.plist@@ -2,8 +2,21 @@ <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict>- <key>CFBundleDevelopmentRegion</key>- <string>en</string>+ <key>CFBundleDocumentTypes</key>+ <array>+ <dict>+ <key>CFBundleTypeName</key>+ <string>Markdown Document</string>+ <key>CFBundleTypeRole</key>+ <string>Viewer</string>+ <key>LSHandlerRank</key>+ <string>Default</string>+ <key>LSItemContentTypes</key>+ <array>+ <string>net.daringfireball.markdown</string>+ </array>+ </dict>+ </array> <key>CFBundleLocalizations</key> <array> <string>en</string>@@ -14,33 +27,14 @@ <key>CFBundleURLTypes</key> <array> <dict>+ <key>CFBundleURLName</key>+ <string>me.nore.ig.apps.prism</string> <key>CFBundleURLSchemes</key> <array> <string>prism</string> </array>- <key>CFBundleURLName</key>- <string>com.arjenschwarz.prism</string> </dict> </array>- <key>CFBundleDocumentTypes</key>- <array>- <dict>- <key>CFBundleTypeName</key>- <string>Markdown Document</string>- <key>CFBundleTypeRole</key>- <string>Viewer</string>- <key>LSHandlerRank</key>- <string>Default</string>- <key>LSItemContentTypes</key>- <array>- <string>net.daringfireball.markdown</string>- </array>- </dict>- </array>- <key>ITSAppUsesNonExemptEncryption</key>- <false/>- <key>LSSupportsOpeningDocumentsInPlace</key>- <true/> <key>UIFileSharingEnabled</key> <true/> <key>UTImportedTypeDeclarations</key>
diff --git a/prism/Resources/Products.storekit b/prism/Resources/Products.storekitindex 834cf9f7..64b4f5ab 100644--- a/prism/Resources/Products.storekit+++ b/prism/Resources/Products.storekit@@ -25,7 +25,7 @@ "locale" : "en_US" } ],- "productID" : "me.nore.ig.prism.unlock",+ "productID" : "me.nore.ig.apps.prism.unlock", "referenceName" : "Unlock Exports", "type" : "NonConsumable" },@@ -40,7 +40,7 @@ "locale" : "en_US" } ],- "productID" : "me.nore.ig.prism.tip.small",+ "productID" : "me.nore.ig.apps.prism.tip.small", "referenceName" : "Small Tip", "type" : "Consumable" },@@ -55,7 +55,7 @@ "locale" : "en_US" } ],- "productID" : "me.nore.ig.prism.tip.medium",+ "productID" : "me.nore.ig.apps.prism.tip.medium", "referenceName" : "Medium Tip", "type" : "Consumable" },@@ -70,7 +70,7 @@ "locale" : "en_US" } ],- "productID" : "me.nore.ig.prism.tip.large",+ "productID" : "me.nore.ig.apps.prism.tip.large", "referenceName" : "Large Tip", "type" : "Consumable" }
diff --git a/prism/Services/AppStoreSync.swift b/prism/Services/AppStoreSync.swiftindex e952d0e5..794613d5 100644--- a/prism/Services/AppStoreSync.swift+++ b/prism/Services/AppStoreSync.swift@@ -10,7 +10,9 @@ import StoreKit /// all, so its one-line wiring — forwarding `verifyEntitlements()`'s return /// value rather than re-reading `entitlementState` — was unpinned and could be /// reverted with the whole suite still green (T-2237).-protocol AppStoreSyncing: Sendable {+/// Keep this async boundary independent of the target's default MainActor+/// isolation so actor-backed synchronisers can conform under the Xcode 27 SDK.+nonisolated protocol AppStoreSyncing: Sendable { /// Re-syncs the App Store account, throwing so the caller can surface a /// user-visible error (req 6.4 / 7.2). func sync() async throws
diff --git a/prism/Services/StoreManager.swift b/prism/Services/StoreManager.swiftindex b8393cc0..138816d5 100644--- a/prism/Services/StoreManager.swift+++ b/prism/Services/StoreManager.swift@@ -41,10 +41,10 @@ final class StoreManager { /// MainActor isolation would otherwise make even a string literal main-actor /// isolated and unreadable from there. nonisolated enum ProductID {- static let unlock = "me.nore.ig.prism.unlock"- static let tipSmall = "me.nore.ig.prism.tip.small"- static let tipMedium = "me.nore.ig.prism.tip.medium"- static let tipLarge = "me.nore.ig.prism.tip.large"+ static let unlock = "me.nore.ig.apps.prism.unlock"+ static let tipSmall = "me.nore.ig.apps.prism.tip.small"+ static let tipMedium = "me.nore.ig.apps.prism.tip.medium"+ static let tipLarge = "me.nore.ig.apps.prism.tip.large" static let all: Set<String> = [unlock, tipSmall, tipMedium, tipLarge] static let tips: Set<String> = [tipSmall, tipMedium, tipLarge]
diff --git a/prism/Utilities/Logger+Prism.swift b/prism/Utilities/Logger+Prism.swiftindex 4cf0a871..04661f60 100644--- a/prism/Utilities/Logger+Prism.swift+++ b/prism/Utilities/Logger+Prism.swift@@ -4,6 +4,6 @@ extension Logger { /// Creates a Logger with the app's bundle identifier as the subsystem. /// - Parameter category: The category for filtering in Console.app (e.g., "NotesStore", "App"). nonisolated static func prism(category: String) -> Logger {- Logger(subsystem: "me.nore.ig.prism", category: category)+ Logger(subsystem: "me.nore.ig.apps.prism", category: category) } }
diff --git a/prism/prism.entitlements b/prism/prism.entitlementsindex c987495c..847db33b 100644--- a/prism/prism.entitlements+++ b/prism/prism.entitlements@@ -4,7 +4,7 @@ <dict> <key>com.apple.developer.icloud-container-identifiers</key> <array>- <string>iCloud.me.nore.ig.Prism</string>+ <string>iCloud.me.nore.ig.apps.Prism</string> </array> <key>com.apple.developer.icloud-services</key> <array>@@ -12,7 +12,7 @@ </array> <key>com.apple.developer.ubiquity-container-identifiers</key> <array>- <string>iCloud.me.nore.ig.Prism</string>+ <string>iCloud.me.nore.ig.apps.Prism</string> </array> <key>com.apple.developer.ubiquity-kvstore-identifier</key> <string>$(TeamIdentifierPrefix)$(CFBundleIdentifier)</string>
diff --git a/prismTests/MarkdownDocumentTests.swift b/prismTests/MarkdownDocumentTests.swiftindex 975d0e37..5aa955df 100644--- a/prismTests/MarkdownDocumentTests.swift+++ b/prismTests/MarkdownDocumentTests.swift@@ -136,7 +136,7 @@ struct MarkdownDocumentTests { @Test("MarkdownDocument supports markdown UTType") func testReadableContentTypes() { let types = MarkdownDocument.readableContentTypes- #expect(types.contains(.markdown))+ #expect(types.contains(where: { $0.identifier == "net.daringfireball.markdown" })) #expect(types.count == 1) }
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 5cfd1c06..d5e6c328 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -13,6 +13,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed +- Configure Prism 0.12.0 for the new developer account with the `me.nore.ig.apps.prism` app identity, matching iCloud and purchase identifiers, and minimum iOS/macOS 27.0 support. This creates a separate app identity; existing beta data and purchases are not migrated automatically.+ - Use `scaledToFit()` for the iOS and macOS image viewer, preserving aspect-fit behavior and resolving the two strict SwiftLint violations (T-2502). - Agent notes no longer describe the SwiftUI/Textual renderer deleted in the T-1542 WebKit cutover as current code (T-2001). `textkit2-attachment-issues.md` and `mermaid-preview.md` are deleted; `layout-views.md` and `table-display-modes.md` are rewritten for the web path; `footnotes.md` keeps only its current architecture section; fourteen other notes had stale passages rewritten against current code or removed. Spec and sweep residuals in `specs/purge-stale-agent-notes/`.
diff --git a/docs/agent-notes/development-tooling.md b/docs/agent-notes/development-tooling.mdindex 9806a7e4..44ceb6dd 100644--- a/docs/agent-notes/development-tooling.md+++ b/docs/agent-notes/development-tooling.md@@ -307,7 +307,7 @@ rather than implying the suite passed. ## Convergence Harness (T-1513/T-1531) - `Tools/convergence-probe.sh <fixture.md>` builds the macOS Debug app and scroll-drives a document end-to-end, watching a main-run-loop heartbeat. Verdicts: CONVERGES / NON-CONVERGENT / DEGRADED / TIMEOUT (see script header for thresholds and the pre-hoist calibration numbers).-- The in-app side is `prism/Services/ConvergenceProbe.swift` (Debug-only, `PRISM_CONVERGENCE_PROBE=<path>` env var). The app is sandboxed even in Debug (Xcode injects the entitlement at signing) — the script stages fixtures into the app container at `~/Library/Containers/me.nore.ig.prism/Data/tmp/`; don't pass arbitrary repo paths directly.+- The in-app side is `prism/Services/ConvergenceProbe.swift` (Debug-only, `PRISM_CONVERGENCE_PROBE=<path>` env var). The app is sandboxed even in Debug (Xcode injects the entitlement at signing) — the script stages fixtures into the app container at `~/Library/Containers/me.nore.ig.apps.prism/Data/tmp/`; don't pass arbitrary repo paths directly. - `proxy.scrollTo` jumps alone do NOT reproduce the historical selection layout-loop; continuous scrolling (the script's clip-view stepping wheel pass) is required. - Don't run other builds/tests in parallel with a probe run — they skew the main-loop gap measurements and can flip a CONVERGES into DEGRADED.
diff --git a/specs/inapp-purchase/prerequisites.md b/specs/inapp-purchase/prerequisites.mdindex 60a1c1c0..c092d06d 100644--- a/specs/inapp-purchase/prerequisites.md+++ b/specs/inapp-purchase/prerequisites.md@@ -1,5 +1,7 @@ # Prerequisites for In-App Purchase +> Historical checklist for the original TestFlight app. For the new account/app identity and expected new product IDs, follow [the account migration checklist](../../docs/account-migration.md). Completed boxes below do not establish setup for the new app.+ These tasks must be completed by the user before or during implementation. ## Before Starting
diff --git a/docs/account-migration.md b/docs/account-migration.mdnew file mode 100644index 00000000..ed1d7671--- /dev/null+++ b/docs/account-migration.md@@ -0,0 +1,77 @@+# Prism: new-account setup checklist++Updated 30 October 2026 after Arjen approved coordinated local identifier changes. Prism was TestFlight only, never released on the App Store; this is a **fresh app**, not an App Store transfer.++## Checkout and applied local changes++- Worktree: `/Users/arjen/Documents/Codex/2026-10-30/task-6/prism-account-migration`+- Branch: `chore/apple-account-migration`+- Xcode project: `/Users/arjen/Documents/Codex/2026-10-30/task-6/prism-account-migration/prism.xcodeproj`+- Internal workspace: `/Users/arjen/Documents/Codex/2026-10-30/task-6/prism-account-migration/prism.xcodeproj/project.xcworkspace`+- Starting commit/fetched baseline: `a55805b5e4ba89b7708a0c2a090d7006911a2a8f` (merged PR #427).++| Scope | Saved value, Debug AND Release |+| --- | --- |+| Project and all three target teams | `4PJS97G236` |+| App bundle ID | `me.nore.ig.apps.prism` |+| Unit-test bundle ID | `me.nore.ig.apps.prismTests` |+| UI-test bundle ID | `me.nore.ig.apps.prismUITests` |+| iCloud/ubiquity container entries | `iCloud.me.nore.ig.apps.Prism` |+| KVS entitlement | `$(TeamIdentifierPrefix)$(CFBundleIdentifier)` (unchanged formula) |++Updated: six project bundle-ID entries, both iCloud container entries, Makefile's device-launch ID, convergence probe's sandbox path, logger subsystem, URL-name label, four StoreManager product constants and four local StoreKit product IDs. URL scheme `prism` is unchanged. Original specs/review reports retain historical identifiers; the original IAP prerequisites now point here. Only the current convergence-harness path in development notes was updated; old incident paths remain historical evidence.++Arjen's existing team settings, version 0.12.0, minimum iOS/macOS 27.0 deployment targets, Info.plist edits and untracked Xcode Cloud association were preserved. The local Xcode Cloud association is not part of the migration commit. Unit/UI test deployment targets are aligned to the app's iOS/macOS 27.0 minimum so test modules can import the app module. One existing readable-content-type assertion now checks its stable UTI string directly, avoiding an ambiguous `UTType.markdown` reference introduced by the Xcode 27 SDK. The Sendable async `AppStoreSyncing` protocol explicitly opts out of default MainActor isolation so its existing actor test double remains a valid conformer. Sandbox, hardened runtime, user-selected file access, network entitlement and CI entitlements were not changed. Exactly three native targets exist; no extensions/widgets or xcconfig overrides were found.++Arjen reports completing the account/portal setup and successfully deploying to his phone, where he tested the local StoreKit products. A separate macOS Debug build signed successfully using existing provisioning. Portal product metadata, real App Store sandbox purchases and iCloud runtime/data preservation have not been independently verified. The assistant did not change portal/account access, accept agreements, create certificates, install a build or migrate/delete data.++## 1. Arjen: Xcode and developer portal++- [ ] Open this worktree's project. Verify team `4PJS97G236` and the new app ID before allowing automatic signing to resolve provisioning. The app is native iOS/iPadOS/macOS, not Mac Catalyst.+- [ ] Register/verify the explicit new app ID under the destination team. Enable/verify In-App Purchase and iCloud for that ID.+- [ ] Under Signing & Capabilities → iCloud, create/select **`iCloud.me.nore.ig.apps.Prism`**, associate it with the new app ID, and enable **iCloud Documents and Key-value storage**. The existing source uses `CloudDocuments`, not a CloudKit database. Editing local entitlement strings alone does not register/associate the container.+- [ ] Refresh the development/distribution profiles as appropriate after capability changes. Verify the final signed app's team, bundle ID, container arrays and expanded KVS value on both platforms. Keep automatic signing; `ExportOptions.plist` has no pinned team/profile. Do not substitute CI entitlements to work around provisioning errors. [Apple capability setup](https://developer.apple.com/help/account/identifiers/enable-app-capabilities/).+- [ ] No discovered App Groups, keychain, push, associated domains, Sign in with Apple, Apple Pay or Game Center require migration. `REGISTER_APP_GROUPS=YES` alone does not define an App Group. Portal/historical binary capabilities have not been inspected.++## 2. Arjen: new app and IAP records in App Store Connect++Create a new app record for `me.nore.ig.apps.prism`, with a unique SKU. Add iOS and macOS to the same app record if the unlock should work on both platforms. Set up its TestFlight testers/groups separately. Existing untracked Xcode Cloud association is unverified; associate the correct new app/product before configuring new workflows.++The following IDs are now used by source AND `prism/Resources/Products.storekit`. **Arjen reports completing portal setup; the assistant did not create or independently inspect the portal product records.**++The original StoreKit file at baseline `a55805b5e4ba89b7708a0c2a090d7006911a2a8f` verifies the reference names and en_US customer-facing display names below. The current local file preserves both sets of names unchanged. **These are verified local StoreKit fields, not independently verified original App Store Connect reference names.** No connected App Store Connect read tool was available, so any difference in the original portal remains unknown.++| Expected new product ID | Type | Original local `referenceName` | Original en_US display name | Local fixture price | Local Family Sharing |+| --- | --- | --- | --- | --- | --- |+| `me.nore.ig.apps.prism.unlock` | Non-consumable | Unlock Exports | Unlimited Exports | 9.99 | Yes |+| `me.nore.ig.apps.prism.tip.small` | Consumable | Small Tip | A Babycino | 1.99 | No |+| `me.nore.ig.apps.prism.tip.medium` | Consumable | Medium Tip | Two Babycinos | 4.99 | No |+| `me.nore.ig.apps.prism.tip.large` | Consumable | Large Tip | An Overpriced Coffee | 9.99 | No |++Use the local reference-name column as the proposed internal reference names for the new records, and the display-name column for en_US customer-facing localization. The original IAP design also lists the tip names in a **Display Name** column; it does not establish portal reference names.++- [ ] Account Holder checks active Paid Apps Agreement, banking and tax setup. Agreement must be active for sandbox testing; Arjen handles any required acceptance.+- [ ] App → Monetization → In-App Purchases → **+**: create each row using its exact ID/type/reference name. Set localizations/display name/description, actual base storefront/currency/prices, availability, tax category and review screenshot/instructions. Deliberately decide Family Sharing before enabling it. Fixture prices/settings are not verified live configuration. No subscriptions are implemented. [Create IAPs](https://developer.apple.com/help/app-store-connect/manage-in-app-purchases/create-consumable-or-non-consumable-in-app-purchases/).+- [ ] Check strings/types before saving: Apple makes product IDs/types immutable, and a deleted ID cannot be reused for another IAP within the same app. Mirroring the bundle namespace is our naming choice, not an Apple requirement. [Product-ID rules](https://developer.apple.com/help/app-store-connect/reference/in-app-purchases-and-subscriptions/in-app-purchase-information/).+- [ ] First public IAP submission accompanies a new app version. Allow up to an hour for sandbox metadata propagation. No shared-secret/subscription migration is indicated by this client implementation. [Apple IAP workflow](https://developer.apple.com/help/app-store-connect/configure-in-app-purchase-settings/overview-for-configuring-in-app-purchases/).++## 3. Data and later verification++No automatic beta-data migration is included. New container/defaults/sandbox/KVS identities do not import old notes/settings/export-count data. Retain recoverable old data if an import is needed; the successful phone test does not establish preservation. Arjen accepts merging the new identity with real purchase and iCloud runtime validation outstanding.++`NotesStore` uses the default ubiquity container and `Documents/notes`. `ExportCounter` reconciles `exportCount` between KVS and standard UserDefaults using the higher count; it is a free-export meter, not a paid entitlement. Local Application Support holds `NotesBackups` and `UnsavedSessions`; saved settings/file access may also need preservation. Changing names has not migrated any of these.++TestFlight uses sandbox; its test purchases incur no charge. Old beta unlocks are test entitlements and should not be expected to restore into this new app. Make a new sandbox unlock purchase, then verify restore within the new app identity. IAPs are not shared between different apps. Sandbox testers must belong to the destination developer account. [TestFlight sandbox](https://developer.apple.com/help/app-store-connect/test-a-beta-version/testing-subscriptions-and-in-app-purchases-in-testflight/), [IAP app scoping/testing](https://developer.apple.com/help/app-store-connect/configure-in-app-purchase-settings/overview-for-configuring-in-app-purchases/).++- [ ] Shared scheme Run currently selects standalone `Products.storekit`; use StoreKit Configuration **None** for real sandbox validation. Local products can otherwise hide missing server setup. Run/Test/Analyze = Debug; Profile/Archive = Release.+- [ ] Follow-up: validate real sandbox product loading, unlock/restore, cancel/pending/refund, repeat tips, Family Sharing if enabled, foreground refresh, iCloud notes and export-count continuity. No simulator runs were performed while runtime downloads were pending.+- [ ] Restore calls `AppStore.sync()` then verifies the non-revoked unlock via `Transaction.currentEntitlements`; tips do not unlock exports. Existing StoreManager/ExportCounter/PaywallPresenter unit tests cover logic/order, not live account provisioning. No StoreKitTest/STTestSession integration tests were found. The locale test plan covers unit/UI targets in en/en-AU/en-GB/en-US.++## Validation recorded before merge++- Local parsing/consistency checks passed for all eight team configuration pairs, six target bundle IDs, both iCloud container references, KVS formula, IAP IDs/types, launcher/probe paths and URL metadata. Diff whitespace and targeted SwiftLint passed.+- macOS Debug built successfully with selected Xcode 27.2 (`27B52`), using the Makefile, isolated derived data and existing signing only; no `-allowProvisioningUpdates` was used. Host `codesign --verify --deep --strict` passed. The built app identifies `4PJS97G236.me.nore.ig.apps.prism`, both signed container entries are correct and its concrete KVS identifier is permitted by the embedded profile's `4PJS97G236.*` wildcard. Signing is verified for this Mac development artifact, not distribution or iOS artifacts.+- Arjen reports successful phone deployment and local StoreKit product tests. This is user-reported device evidence; no assistant deployment or real App Store sandbox purchase test occurred.+- The initial app build under the new SDK emitted eight warning locations in existing diagram focus, URL loading and DOM source-index code. Those files were not changed by this migration; warning cleanup is outside its scope.+- Final macOS app, unit-test and UI-test targets compiled with `build-for-testing`. Focused StoreManager, ExportCounter and MarkdownDocument tests then passed **62/62**, with zero failures/skips/retries according to the repository result-bundle guard. Full SwiftLint passed across 583 files; Makefile/result guards, WebKit isolation checks (83 Python tests) and workflow-trigger checks (38 Python tests) passed.+- No full unit/UI/locale suite or simulator run was performed. Real sandbox IAP and iCloud runtime coverage remain outstanding and accepted for this merge. Provisioning success does not prove those runtime behaviours.
Validate real App Store sandbox catalogue/restoration and iCloud note access separately. No full simulator or locale sweep was run.