146-case synthetic gate and sequential native builds pass after executed source and SDK corrections. Native/account release acceptance remains separate.
Actual execution caught compile and model/first-use/save-boundary errors; fixes keep all146 behavioral cases, with genuine fixture expectations corrected explicitly.
Deleted generated rows retain their original owning family for permission validation. Legacy unsupported enrichment and inaccessible/corrupt local files fail closed.
SDK-correct macOS picker and legal stable intent type IDs now compile/extract/embed on both platforms. Authentication and scoped record references are unchanged.
Local implementation gate passed
All146 tests pass in7.034 seconds with JUnit zero failures/errors/skips. Strict lint passes0/89 and sequential iOS Simulator/macOS Debug builds exit0; host/widget extraction and embedded-extension validation are clean on both platforms. Four final source reviews clear. No owned heavy runner remains; shared slot released. This gate does not establish native UI/widget/Contacts/authentication or actual account/share/cache/schema acceptance.
Pass rate: 100% (146 of 146)
New tests: 0
Diff coverage: 100% (38 of 38 added lines)
working-tree Pass Halo application domain and native build gates The app now passes its complete local test suite and builds for both iOS Simulator and Mac. These checks exercise synthetic family records, backups, Contacts links, names, archive/restore and merges without opening real family data or the address book.
A first-use Contacts link file can now be absent, older records reject fields they cannot store, and merge undo validates the original family of removed generated records. Native interactive and actual iCloud acceptance still remain.
StoreAccess.identity centralizes family qualification. When a deleted nonroot has a cleared live family link, it uses the committed relationship and then applies the existing store, duplicate-root and access checks. Missing-file readers catch only Cocoa4/260; they do not turn unrelated read failures into empty valid files.
Person accessors are attribute-aware for V1/V2, and save rejects unsupported notes/names before writes. Backup resolves the already frozen model within its background operation, avoiding a non-Sendable model capture.
Native Contacts uses the installed SDK selector. AppIntents type identifiers use legal stable Swift-style names across host/widget modules; mutable parameter-bearing types use explicit nonisolated static metadata instead of blanket type annotations.
The final package/test/model bytes equal the final built tree. Source manifests record04eea67 plus scoped fixes and the preserved Xcode normalization; builds and tests mutate no tracked source. Coverage is package-scoped and excludes native runtime evidence. The save guard remains process-local; live CloudKit permissions/deletion and cross-process cache content remain release validations.
Execution history is retained: three compile-stopped attempts, a partial29-pass/six-failure signal6 abort from a legacy missing-key exception, focused19-case merge failure then pass, and one completed145-pass/one-failure fixture run before the final146 pass. Initial iOS build success was not accepted while metadata extraction logged errors. Final extraction files parse and contain corrected child/Context type IDs.
Completeness assessment: approved application source and local gates are complete for phases1–7 and9. Phase8 retains its data prerequisite, Phase10 is v2, history retention is approved pending safe pruning, and permanent-delete implementation remains conditional release scope. Native UI/extension privacy/authentication, actual account/share/offline/framework cache retention, existing-share migration, quota/large-data and production schema still need authorized evidence.
Halo Family/Halo Family/Persistence/AccessPermissions.swift
Why it matters. Core Data Nullify links no longer prevent valid guarded undo; permission checks still run.
What to look at. identity(_:checkingDuplicates:)
Halo Family/Halo Family/Persistence/LocalContactLinks.swift
Why it matters. First-use Contacts links can initialize without treating corrupt or inaccessible files as empty.
What to look at. read(); ShareDenials.read
Halo Family/Halo Family/Persistence/RelationshipMutations.swift
Why it matters. V1/V2 no longer crash reading missing notes, and unsupported input is not silently lost.
What to look at. updatePerson(_:input:expected:); person(_:)
Halo Family/SharedIntents/CaptureIntents.swift
Why it matters. Build success alone had hidden invalid-identifier extraction errors.
What to look at. persistentIdentifier; RememberPersonIntent; ChildCaptureConfiguration
Tests/HaloPersistenceTests/FamilyBackupTests.swift
Why it matters. Throwing UUID checks compile, model-specific fetch requests stay with their coordinator, and search expectations match the approved related-name behavior.
What to look at. portableRoundTrip; copiedMergeHistory; PeopleSearch/ContextCategory cases
Only true file absence creates an empty local archive. Other errors and corrupt contents still reject. Unsupported legacy fields reject before mutation.
The existing Xcode normalization of extension destination and runpaths is retained unchanged. Both builds now validate the embedded extension on that exact project.
Clean extraction/embedding demonstrates built metadata, not actual widget/Shortcut authentication, picker behavior, timeline redaction or account/cache content preservation.
| Severity | Area | Finding | Resolution |
|---|---|---|---|
| major | Account check compilation | The unwrapped family value was redeclared in one scope. | Use a distinct FamilyAccessID identity variable. |
| major | Legacy Person KVC | V1/V2 lack notes and the fixture supplied unsupported enrichment. | Guard attribute reads/writes and assert unsupported-input atomic rejection plus valid sparse edits. |
| major | First-use file readers | FileHandle absence returned Cocoa4, bypassing the260-only catch. | Catch only4/260 in Contacts links and share-denial readers. |
| major | Merge undo permission boundary | Deleted generated rows lost live family links before final save validation. | Recover committed family only for deleted nonroots, preserving scope/access/duplicate checks. |
| major | Native SDK and metadata | macOS picker spelling did not compile; punctuation identifiers failed extraction; blanket isolation warned on mutable parameters. | SDK method, legal stable type names and explicit static metadata isolation. Both builds/extraction pass. |
| major | Genuine fixture errors | Three missing throwing evaluations, invalid legacy input, related-name expectation and cross-model fetch reuse were wrong. | Preserve146 cases with explicit throwing values, stronger atomic rejection, exact related IDs and fresh requests. |
Source: local run at 2026-10-07T05:58:28.668185+00:00 · snapshot 04eea6771d4160767a11dce326703da86e4ea61a (dirty working tree)
Baseline: none
Execution: passed · JUnit: 1 file · Coverage: 1 file · Baseline: absent
Coverage scope: as the project configures it
Totals: 146 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.
Aggregate diff coverage: 100% (38 of 38 measurable added lines).
Head 92.5% (7130 of 7712 lines)
9 of 18 changed files matched coverage data.
CHANGELOG.md — no candidateHalo Family/Halo Family.xcodeproj/project.pbxproj — no candidateHalo Family/Halo Family/NativeContactPicker.swift — no candidateHalo Family/SharedIntents/CaptureIntents.swift — no candidateREADME.md — no candidatedocs/halo_family_design_pack/04-build-plan.md — no candidatedocs/halo_family_design_pack/10-initial-implementation-results.md — no candidatedocs/halo_family_design_pack/CHANGELOG.md — no candidatedocs/halo_family_design_pack/README.md — no candidateFiles 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 04eea67.
18 files: 12 code · 6 docs. Click to expand.
diff --git a/Halo Family/Halo Family.xcodeproj/project.pbxproj b/Halo Family/Halo Family.xcodeproj/project.pbxprojindex 9c236f2..6ad462e 100644--- a/Halo Family/Halo Family.xcodeproj/project.pbxproj +++ b/Halo Family/Halo Family.xcodeproj/project.pbxproj @@ -7,20 +7,35 @@ objects = { /* Begin PBXBuildFile section */- A90000000000000000000001 /* HaloFamilyWidgets.appex in Embed App Extensions */ = {isa = PBXBuildFile; fileRef = A90000000000000000000002; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; };+ A90000000000000000000001 /* HaloFamilyWidgets.appex in Embed App Extensions */ = {isa = PBXBuildFile; fileRef = A90000000000000000000002 /* HaloFamilyWidgets.appex */; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; }; /* End PBXBuildFile section */ /* Begin PBXContainerItemProxy section */- A90000000000000000000003 = {isa = PBXContainerItemProxy; containerPortal = 000000000000000000000000; proxyType = 1; remoteGlobalIDString = A90000000000000000000010; remoteInfo = HaloFamilyWidgets; };+ A90000000000000000000003 /* PBXContainerItemProxy */ = {+ isa = PBXContainerItemProxy;+ containerPortal = 000000000000000000000000 /* Project object */;+ proxyType = 1;+ remoteGlobalIDString = A90000000000000000000010;+ remoteInfo = HaloFamilyWidgets;+ }; /* End PBXContainerItemProxy section */ /* Begin PBXCopyFilesBuildPhase section */- A90000000000000000000004 /* Embed App Extensions */ = {isa = PBXCopyFilesBuildPhase; dstPath = ""; dstSubfolderSpec = 13; files = (A90000000000000000000001, ); name = "Embed App Extensions"; };+ A90000000000000000000004 /* Embed App Extensions */ = {+ isa = PBXCopyFilesBuildPhase;+ dstPath = "";+ dstSubfolder = PlugIns;+ files = (+ A90000000000000000000001 /* HaloFamilyWidgets.appex in Embed App Extensions */,+ );+ name = "Embed App Extensions";+ }; /* End PBXCopyFilesBuildPhase section */+ /* Begin PBXFileReference section */ 000000000000000000000120 /* Halo Family.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "Halo Family.app"; sourceTree = BUILT_PRODUCTS_DIR; };+ A90000000000000000000002 /* HaloFamilyWidgets.appex */ = {isa = PBXFileReference; explicitFileType = "wrapper.app-extension"; includeInIndex = 0; path = HaloFamilyWidgets.appex; sourceTree = BUILT_PRODUCTS_DIR; }; D4E68C5730752C710095AE3C /* Halo-Family-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist; path = "Halo-Family-Info.plist"; sourceTree = "<group>"; };- A90000000000000000000002 /* HaloFamilyWidgets.appex */ = {isa = PBXFileReference; explicitFileType = "wrapper.app-extension"; includeInIndex = 0; path = HaloFamilyWidgets.appex; sourceTree = BUILT_PRODUCTS_DIR; }; /* End PBXFileReference section */ /* Begin PBXFileSystemSynchronizedRootGroup section */@@ -29,9 +44,22 @@ path = "Halo Family"; sourceTree = "<group>"; };- A90000000000000000000005 /* SharedIntents */ = {isa = PBXFileSystemSynchronizedRootGroup; path = SharedIntents; sourceTree = "<group>"; };- A90000000000000000000006 /* HaloWidgets */ = {isa = PBXFileSystemSynchronizedRootGroup; path = HaloWidgets; sourceTree = "<group>"; };- A90000000000000000000007 /* Extension Persistence */ = {isa = PBXFileSystemSynchronizedRootGroup; name = "Extension Persistence"; path = "Halo Family/Persistence"; sourceTree = "<group>"; };+ A90000000000000000000005 /* SharedIntents */ = {+ isa = PBXFileSystemSynchronizedRootGroup;+ path = SharedIntents;+ sourceTree = "<group>";+ };+ A90000000000000000000006 /* HaloWidgets */ = {+ isa = PBXFileSystemSynchronizedRootGroup;+ path = HaloWidgets;+ sourceTree = "<group>";+ };+ A90000000000000000000007 /* Extension Persistence */ = {+ isa = PBXFileSystemSynchronizedRootGroup;+ name = "Extension Persistence";+ path = "Halo Family/Persistence";+ sourceTree = "<group>";+ }; /* End PBXFileSystemSynchronizedRootGroup section */ /* Begin PBXFrameworksBuildPhase section */@@ -40,7 +68,11 @@ files = ( ); };- A90000000000000000000011 /* Frameworks */ = {isa = PBXFrameworksBuildPhase; files = (); };+ A90000000000000000000011 /* Frameworks */ = {+ isa = PBXFrameworksBuildPhase;+ files = (+ );+ }; /* End PBXFrameworksBuildPhase section */ /* Begin PBXGroup section */@@ -49,9 +81,9 @@ children = ( D4E68C5730752C710095AE3C /* Halo-Family-Info.plist */, 000000000000000000000010 /* Halo Family */,- A90000000000000000000005 /* SharedIntents */,- A90000000000000000000006 /* HaloWidgets */,- A90000000000000000000007 /* Extension Persistence */,+ A90000000000000000000005 /* SharedIntents */,+ A90000000000000000000006 /* HaloWidgets */,+ A90000000000000000000007 /* Extension Persistence */, 000000000000000000000020 /* Products */, ); sourceTree = "<group>";@@ -60,7 +92,7 @@ isa = PBXGroup; children = ( 000000000000000000000120 /* Halo Family.app */,- A90000000000000000000002 /* HaloFamilyWidgets.appex */,+ A90000000000000000000002 /* HaloFamilyWidgets.appex */, ); name = Products; sourceTree = "<group>";@@ -75,32 +107,42 @@ 000000000000000120000000 /* Sources */, 000000000000000130000000 /* Frameworks */, 000000000000000140000000 /* Resources */,- A90000000000000000000004 /* Embed App Extensions */,+ A90000000000000000000004 /* Embed App Extensions */, ); buildRules = ( );- dependencies = (A90000000000000000000008, );+ dependencies = (+ A90000000000000000000008 /* PBXTargetDependency */,+ ); fileSystemSynchronizedGroups = ( 000000000000000000000010 /* Halo Family */,- A90000000000000000000005 /* SharedIntents */,+ A90000000000000000000005 /* SharedIntents */, ); name = "Halo Family"; productName = MyApp; productReference = 000000000000000000000120 /* Halo Family.app */; productType = "com.apple.product-type.application"; };- A90000000000000000000010 /* HaloFamilyWidgets */ = {- isa = PBXNativeTarget;- buildConfigurationList = A90000000000000000000014;- buildPhases = (A90000000000000000000012, A90000000000000000000011, A90000000000000000000013, );- buildRules = ();- dependencies = ();- fileSystemSynchronizedGroups = (A90000000000000000000005, A90000000000000000000006, A90000000000000000000007, );- name = HaloFamilyWidgets;- productName = HaloFamilyWidgets;- productReference = A90000000000000000000002;- productType = "com.apple.product-type.app-extension";- };+ A90000000000000000000010 /* HaloFamilyWidgets */ = {+ isa = PBXNativeTarget;+ buildConfigurationList = A90000000000000000000014 /* Build configuration list for PBXNativeTarget "HaloFamilyWidgets" */;+ buildPhases = (+ A90000000000000000000012 /* Sources */,+ A90000000000000000000011 /* Frameworks */,+ A90000000000000000000013 /* Resources */,+ );+ buildRules = (+ );+ fileSystemSynchronizedGroups = (+ A90000000000000000000005 /* SharedIntents */,+ A90000000000000000000006 /* HaloWidgets */,+ A90000000000000000000007 /* Extension Persistence */,+ );+ name = HaloFamilyWidgets;+ productName = HaloFamilyWidgets;+ productReference = A90000000000000000000002 /* HaloFamilyWidgets.appex */;+ productType = "com.apple.product-type.app-extension";+ }; /* End PBXNativeTarget section */ /* Begin PBXProject section */@@ -131,7 +173,7 @@ projectRoot = ""; targets = ( 000000000000000100000000 /* Halo Family */,- A90000000000000000000010 /* HaloFamilyWidgets */,+ A90000000000000000000010 /* HaloFamilyWidgets */, ); }; /* End PBXProject section */@@ -142,7 +184,11 @@ files = ( ); };- A90000000000000000000013 /* Resources */ = {isa = PBXResourcesBuildPhase; files = (); };+ A90000000000000000000013 /* Resources */ = {+ isa = PBXResourcesBuildPhase;+ files = (+ );+ }; /* End PBXResourcesBuildPhase section */ /* Begin PBXSourcesBuildPhase section */@@ -151,12 +197,21 @@ files = ( ); };- A90000000000000000000012 /* Sources */ = {isa = PBXSourcesBuildPhase; files = (); };+ A90000000000000000000012 /* Sources */ = {+ isa = PBXSourcesBuildPhase;+ files = (+ );+ }; /* End PBXSourcesBuildPhase section */ /* Begin PBXTargetDependency section */- A90000000000000000000008 = {isa = PBXTargetDependency; target = A90000000000000000000010; targetProxy = A90000000000000000000003; };+ A90000000000000000000008 /* PBXTargetDependency */ = {+ isa = PBXTargetDependency;+ target = A90000000000000000000010 /* HaloFamilyWidgets */;+ targetProxy = A90000000000000000000003 /* PBXContainerItemProxy */;+ }; /* End PBXTargetDependency section */+ /* Begin XCBuildConfiguration section */ 000000000000000011000000 /* Debug configuration for PBXProject "Halo Family" */ = { isa = XCBuildConfiguration;@@ -374,70 +429,86 @@ }; name = Release; };- A90000000000000000000015 = {- isa = XCBuildConfiguration;- buildSettings = {- APPLICATION_EXTENSION_API_ONLY = YES;- CODE_SIGN_ENTITLEMENTS = HaloFamilyWidgets.entitlements;- CODE_SIGN_STYLE = Automatic;- CURRENT_PROJECT_VERSION = 1;- DEVELOPMENT_TEAM = V24684SCZN;- ENABLE_APP_SANDBOX = YES;- GENERATE_INFOPLIST_FILE = YES;- INFOPLIST_FILE = HaloFamilyWidgets-Info.plist;- INFOPLIST_KEY_CFBundleDisplayName = "Halo Family";- LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @executable_path/../../Frameworks";- "LD_RUNPATH_SEARCH_PATHS[sdk=macosx*]" = "$(inherited) @executable_path/../Frameworks @executable_path/../../../../Frameworks";- MARKETING_VERSION = 1.0;- PRODUCT_BUNDLE_IDENTIFIER = "me.nore.ig.halo-family.widgets";- PRODUCT_NAME = "$(TARGET_NAME)";- REGISTER_APP_GROUPS = YES;- SDKROOT = auto;- SKIP_INSTALL = YES;- STRING_CATALOG_GENERATE_SYMBOLS = YES;- SUPPORTED_PLATFORMS = "iphoneos iphonesimulator macosx";- SUPPORTS_MACCATALYST = NO;- SWIFT_APPROACHABLE_CONCURRENCY = YES;- SWIFT_DEFAULT_ACTOR_ISOLATION = MainActor;- SWIFT_EMIT_LOC_STRINGS = YES;- SWIFT_UPCOMING_FEATURE_MEMBER_IMPORT_VISIBILITY = YES;- SWIFT_VERSION = 5.0;- TARGETED_DEVICE_FAMILY = "1,2";- };- name = Debug;- };- A90000000000000000000016 = {- isa = XCBuildConfiguration;- buildSettings = {- APPLICATION_EXTENSION_API_ONLY = YES;- CODE_SIGN_ENTITLEMENTS = HaloFamilyWidgets.entitlements;- CODE_SIGN_STYLE = Automatic;- CURRENT_PROJECT_VERSION = 1;- DEVELOPMENT_TEAM = V24684SCZN;- ENABLE_APP_SANDBOX = YES;- GENERATE_INFOPLIST_FILE = YES;- INFOPLIST_FILE = HaloFamilyWidgets-Info.plist;- INFOPLIST_KEY_CFBundleDisplayName = "Halo Family";- LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @executable_path/../../Frameworks";- "LD_RUNPATH_SEARCH_PATHS[sdk=macosx*]" = "$(inherited) @executable_path/../Frameworks @executable_path/../../../../Frameworks";- MARKETING_VERSION = 1.0;- PRODUCT_BUNDLE_IDENTIFIER = "me.nore.ig.halo-family.widgets";- PRODUCT_NAME = "$(TARGET_NAME)";- REGISTER_APP_GROUPS = YES;- SDKROOT = auto;- SKIP_INSTALL = YES;- STRING_CATALOG_GENERATE_SYMBOLS = YES;- SUPPORTED_PLATFORMS = "iphoneos iphonesimulator macosx";- SUPPORTS_MACCATALYST = NO;- SWIFT_APPROACHABLE_CONCURRENCY = YES;- SWIFT_DEFAULT_ACTOR_ISOLATION = MainActor;- SWIFT_EMIT_LOC_STRINGS = YES;- SWIFT_UPCOMING_FEATURE_MEMBER_IMPORT_VISIBILITY = YES;- SWIFT_VERSION = 5.0;- TARGETED_DEVICE_FAMILY = "1,2";- };- name = Release;- };+ A90000000000000000000015 /* Debug configuration for PBXNativeTarget "HaloFamilyWidgets" */ = {+ isa = XCBuildConfiguration;+ buildSettings = {+ APPLICATION_EXTENSION_API_ONLY = YES;+ CODE_SIGN_ENTITLEMENTS = HaloFamilyWidgets.entitlements;+ CODE_SIGN_STYLE = Automatic;+ CURRENT_PROJECT_VERSION = 1;+ DEVELOPMENT_TEAM = V24684SCZN;+ ENABLE_APP_SANDBOX = YES;+ GENERATE_INFOPLIST_FILE = YES;+ INFOPLIST_FILE = "HaloFamilyWidgets-Info.plist";+ INFOPLIST_KEY_CFBundleDisplayName = "Halo Family";+ LD_RUNPATH_SEARCH_PATHS = (+ "$(inherited)",+ "@executable_path/Frameworks",+ "@executable_path/../../Frameworks",+ );+ "LD_RUNPATH_SEARCH_PATHS[sdk=macosx*]" = (+ "$(inherited)",+ "@executable_path/../Frameworks",+ "@executable_path/../../../../Frameworks",+ );+ MARKETING_VERSION = 1.0;+ PRODUCT_BUNDLE_IDENTIFIER = "me.nore.ig.halo-family.widgets";+ PRODUCT_NAME = "$(TARGET_NAME)";+ REGISTER_APP_GROUPS = YES;+ SDKROOT = auto;+ SKIP_INSTALL = YES;+ STRING_CATALOG_GENERATE_SYMBOLS = YES;+ SUPPORTED_PLATFORMS = "iphoneos iphonesimulator macosx";+ SUPPORTS_MACCATALYST = NO;+ SWIFT_APPROACHABLE_CONCURRENCY = YES;+ SWIFT_DEFAULT_ACTOR_ISOLATION = MainActor;+ SWIFT_EMIT_LOC_STRINGS = YES;+ SWIFT_UPCOMING_FEATURE_MEMBER_IMPORT_VISIBILITY = YES;+ SWIFT_VERSION = 5.0;+ TARGETED_DEVICE_FAMILY = "1,2";+ };+ name = Debug;+ };+ A90000000000000000000016 /* Release configuration for PBXNativeTarget "HaloFamilyWidgets" */ = {+ isa = XCBuildConfiguration;+ buildSettings = {+ APPLICATION_EXTENSION_API_ONLY = YES;+ CODE_SIGN_ENTITLEMENTS = HaloFamilyWidgets.entitlements;+ CODE_SIGN_STYLE = Automatic;+ CURRENT_PROJECT_VERSION = 1;+ DEVELOPMENT_TEAM = V24684SCZN;+ ENABLE_APP_SANDBOX = YES;+ GENERATE_INFOPLIST_FILE = YES;+ INFOPLIST_FILE = "HaloFamilyWidgets-Info.plist";+ INFOPLIST_KEY_CFBundleDisplayName = "Halo Family";+ LD_RUNPATH_SEARCH_PATHS = (+ "$(inherited)",+ "@executable_path/Frameworks",+ "@executable_path/../../Frameworks",+ );+ "LD_RUNPATH_SEARCH_PATHS[sdk=macosx*]" = (+ "$(inherited)",+ "@executable_path/../Frameworks",+ "@executable_path/../../../../Frameworks",+ );+ MARKETING_VERSION = 1.0;+ PRODUCT_BUNDLE_IDENTIFIER = "me.nore.ig.halo-family.widgets";+ PRODUCT_NAME = "$(TARGET_NAME)";+ REGISTER_APP_GROUPS = YES;+ SDKROOT = auto;+ SKIP_INSTALL = YES;+ STRING_CATALOG_GENERATE_SYMBOLS = YES;+ SUPPORTED_PLATFORMS = "iphoneos iphonesimulator macosx";+ SUPPORTS_MACCATALYST = NO;+ SWIFT_APPROACHABLE_CONCURRENCY = YES;+ SWIFT_DEFAULT_ACTOR_ISOLATION = MainActor;+ SWIFT_EMIT_LOC_STRINGS = YES;+ SWIFT_UPCOMING_FEATURE_MEMBER_IMPORT_VISIBILITY = YES;+ SWIFT_VERSION = 5.0;+ TARGETED_DEVICE_FAMILY = "1,2";+ };+ name = Release;+ }; /* End XCBuildConfiguration section */ /* Begin XCConfigurationList section */@@ -457,7 +528,14 @@ ); defaultConfigurationName = Release; };- A90000000000000000000014 = {isa = XCConfigurationList; buildConfigurations = (A90000000000000000000015, A90000000000000000000016, ); defaultConfigurationName = Release; };+ A90000000000000000000014 /* Build configuration list for PBXNativeTarget "HaloFamilyWidgets" */ = {+ isa = XCConfigurationList;+ buildConfigurations = (+ A90000000000000000000015 /* Debug configuration for PBXNativeTarget "HaloFamilyWidgets" */,+ A90000000000000000000016 /* Release configuration for PBXNativeTarget "HaloFamilyWidgets" */,+ );+ defaultConfigurationName = Release;+ }; /* End XCConfigurationList section */ }; rootObject = 000000000000000000000000 /* Project object */;
diff --git a/Halo Family/Halo Family/NativeContactPicker.swift b/Halo Family/Halo Family/NativeContactPicker.swiftindex f03dc20..7963cf5 100644--- a/Halo Family/Halo Family/NativeContactPicker.swift +++ b/Halo Family/Halo Family/NativeContactPicker.swift @@ -40,7 +40,7 @@ struct MacContactPickerButton: NSViewRepresentable { guard picker == nil else { return } let picker = CNContactPicker(); picker.delegate = self self.picker = picker- picker.show(relativeTo: sender.bounds, of: sender, preferredEdge: .maxY)+ picker.showRelative(to: sender.bounds, of: sender, preferredEdge: .maxY) } func contactPicker(_ picker: CNContactPicker, didSelect contact: CNContact) { selected(ContactSelection(contact)) } func contactPickerDidClose(_ picker: CNContactPicker) { self.picker = nil }
diff --git a/Halo Family/Halo Family/Persistence/AccessPermissions.swift b/Halo Family/Halo Family/Persistence/AccessPermissions.swiftindex de40257..ced7e98 100644--- a/Halo Family/Halo Family/Persistence/AccessPermissions.swift +++ b/Halo Family/Halo Family/Persistence/AccessPermissions.swift @@ -15,7 +15,10 @@ nonisolated extension StoreAccess { } static func identity(_ object: NSManagedObject, checkingDuplicates: Bool = true) throws -> FamilyAccessID {- let family = object.entity.name == "FamilySpace" ? object : object.value(forKey: "familySpace") as? NSManagedObject+ let committedFamily = object.isDeleted && object.entity.name != "FamilySpace" ?+ object.committedValues(forKeys: ["familySpace"])["familySpace"] as? NSManagedObject : nil+ let family = object.entity.name == "FamilySpace" ? object :+ (object.value(forKey: "familySpace") as? NSManagedObject ?? committedFamily) guard let family, let id = family.value(forKey: "id") as? UUID, let filename = family.objectID.persistentStore?.url?.lastPathComponent, ["Private.sqlite", "Shared.sqlite"].contains(filename) else { throw GraphError.invalidReference }@@ -49,7 +52,8 @@ nonisolated struct ShareDenials: Codable { static func read(in directory: URL) throws -> ShareDenials { let file = directory.appendingPathComponent("ShareDenials.json") let handle: FileHandle- do { handle = try FileHandle(forReadingFrom: file) } catch let error as CocoaError where error.code == .fileReadNoSuchFile {+ do { handle = try FileHandle(forReadingFrom: file) } catch let error as CocoaError+ where error.code == .fileReadNoSuchFile || error.code == .fileNoSuchFile { return ShareDenials() } defer { try? handle.close() }
diff --git a/Halo Family/Halo Family/Persistence/AccountScope.swift b/Halo Family/Halo Family/Persistence/AccountScope.swiftindex 35ae6fb..f4c97e7 100644--- a/Halo Family/Halo Family/Persistence/AccountScope.swift +++ b/Halo Family/Halo Family/Persistence/AccountScope.swift @@ -104,9 +104,9 @@ nonisolated final class StoreAccess: @unchecked Sendable { try refreshExtensionAccess() guard !locked else { throw AccessError.accountChanged } guard let family else { return }- let family = FamilyAccessID(family: family, shared: shared)- if let readable, !readable.contains(family) { throw AccessError.familyUnavailable }- if writing, let writable, !writable.contains(family) { throw AccessError.readOnlyFamily }+ let identity = FamilyAccessID(family: family, shared: shared)+ if let readable, !readable.contains(identity) { throw AccessError.familyUnavailable }+ if writing, let writable, !writable.contains(identity) { throw AccessError.readOnlyFamily } } }
diff --git a/Halo Family/Halo Family/Persistence/BackupRepository.swift b/Halo Family/Halo Family/Persistence/BackupRepository.swiftindex 3b1e1bf..539f78d 100644--- a/Halo Family/Halo Family/Persistence/BackupRepository.swift +++ b/Halo Family/Halo Family/Persistence/BackupRepository.swift @@ -28,9 +28,9 @@ final class BackupRepository { let access = stack.access guard stack.role == .host else { throw GraphError.readOnly } let context = stack.container.newBackgroundContext()- let model = stack.container.managedObjectModel let cancellation = BackupCancellation() let archive = try await withTaskCancellationHandler { try await context.perform {+ guard let model = context.persistentStoreCoordinator?.managedObjectModel else { throw GraphError.modelUnavailable } try cancellation.check() try context.setQueryGenerationFrom(.current) guard familyID.entity.name == "FamilySpace", !familyID.isTemporaryID else { throw GraphError.invalidReference }@@ -101,8 +101,9 @@ final class BackupRepository { } func preview(_ archive: URL) async throws -> BackupPreview {- let model = stack.container.managedObjectModel+ let container = stack.container let task = Task.detached {+ let model = container.managedObjectModel let fingerprint = try Self.fingerprint(archive) let members = try BackupArchive.members(in: archive) let indexed = Dictionary(uniqueKeysWithValues: members.map { ($0.name, $0) })
diff --git a/Halo Family/Halo Family/Persistence/LocalContactLinks.swift b/Halo Family/Halo Family/Persistence/LocalContactLinks.swiftindex 015c05e..7fb1bdf 100644--- a/Halo Family/Halo Family/Persistence/LocalContactLinks.swift +++ b/Halo Family/Halo Family/Persistence/LocalContactLinks.swift @@ -60,7 +60,7 @@ actor LocalContactLinks { private func read() throws -> [DeviceContactLink] { let handle: FileHandle do { handle = try FileHandle(forReadingFrom: file) } catch let error as CocoaError- where error.code == .fileReadNoSuchFile {+ where error.code == .fileReadNoSuchFile || error.code == .fileNoSuchFile { return [] } defer { try? handle.close() }
diff --git a/Halo Family/Halo Family/Persistence/RelationshipMutations.swift b/Halo Family/Halo Family/Persistence/RelationshipMutations.swiftindex fba946b..71b9b9e 100644--- a/Halo Family/Halo Family/Persistence/RelationshipMutations.swift +++ b/Halo Family/Halo Family/Persistence/RelationshipMutations.swift @@ -24,21 +24,24 @@ extension FamilyRepository { func updatePerson(_ personID: NSManagedObjectID, input: PersonInput, expected: PersonDetail) throws { let name = try validated(input.name)+ let notes = input.notes.trimmingCharacters(in: .whitespacesAndNewlines) _ = try write { context in let person = try record(personID, entity: "Person", in: context)+ let supportsNotes = person.entity.attributesByName["notes"] != nil let structured = person.entity.attributesByName["givenName"] != nil let given = structured ? person.value(forKey: "givenName") as? String ?? "" : "" let family = structured ? person.value(forKey: "familyName") as? String ?? "" : "" guard expected.id == personID, (person.value(forKey: "displayName") as? String ?? "Unnamed") == expected.name,- (person.value(forKey: "notes") as? String ?? "") == expected.notes,+ (supportsNotes ? person.value(forKey: "notes") as? String ?? "" : "") == expected.notes, (person.value(forKey: "needsReview") as? Bool ?? false) == expected.needsReview, given == expected.givenName, family == expected.familyName else { throw GraphError.personChanged } guard structured || (input.givenName == nil && input.familyName == nil) else { throw GraphError.modelUnavailable }+ guard supportsNotes || notes.isEmpty else { throw GraphError.modelUnavailable } person.setValue(name, forKey: "displayName")- person.setValue(input.notes.trimmingCharacters(in: .whitespacesAndNewlines), forKey: "notes")+ if supportsNotes { person.setValue(notes, forKey: "notes") } person.setValue(input.needsReview, forKey: "needsReview") for (key, value) in [("givenName", input.givenName), ("familyName", input.familyName)] { if let value {
diff --git a/Halo Family/Halo Family/Persistence/RelationshipQueries.swift b/Halo Family/Halo Family/Persistence/RelationshipQueries.swiftindex 1d53623..c880801 100644--- a/Halo Family/Halo Family/Persistence/RelationshipQueries.swift +++ b/Halo Family/Halo Family/Persistence/RelationshipQueries.swift @@ -100,7 +100,7 @@ extension FamilyRepository { let person = try readable(id, entity: "Person") let structured = person.entity.attributesByName["givenName"] != nil return PersonDetail(id: id, name: person.value(forKey: "displayName") as? String ?? "Unnamed",- notes: person.value(forKey: "notes") as? String ?? "",+ notes: person.entity.attributesByName["notes"] != nil ? person.value(forKey: "notes") as? String ?? "" : "", needsReview: person.value(forKey: "needsReview") as? Bool ?? false, givenName: structured ? person.value(forKey: "givenName") as? String ?? "" : "", familyName: structured ? person.value(forKey: "familyName") as? String ?? "" : "",
diff --git a/Halo Family/SharedIntents/CaptureIntents.swift b/Halo Family/SharedIntents/CaptureIntents.swiftindex bb4f9f1..0cff639 100644--- a/Halo Family/SharedIntents/CaptureIntents.swift +++ b/Halo Family/SharedIntents/CaptureIntents.swift @@ -3,7 +3,7 @@ import Foundation import WidgetKit nonisolated struct CaptureChildEntity: AppEntity {- static let persistentIdentifier = "halo-family.capture-child"+ static let persistentIdentifier = "HaloFamilyCaptureChild" static let typeDisplayRepresentation: TypeDisplayRepresentation = "Child" static let defaultQuery = CaptureChildQuery() let id: String@@ -14,7 +14,7 @@ nonisolated struct CaptureChildEntity: AppEntity { } nonisolated struct CaptureContextEntity: AppEntity {- static let persistentIdentifier = "halo-family.capture-context"+ static let persistentIdentifier = "HaloFamilyCaptureContext" static let typeDisplayRepresentation: TypeDisplayRepresentation = "Context" static let defaultQuery = CaptureContextQuery() let id: String@@ -25,7 +25,7 @@ nonisolated struct CaptureContextEntity: AppEntity { } nonisolated struct CaptureChildQuery: EntityQuery {- static let persistentIdentifier = "halo-family.capture-child-query"+ static let persistentIdentifier = "HaloFamilyCaptureChildQuery" @MainActor func entities(for identifiers: [String]) async throws -> [CaptureChildEntity] { try await CaptureCatalog.children(identifiers: identifiers).map(CaptureChildEntity.init) }@@ -35,7 +35,7 @@ nonisolated struct CaptureChildQuery: EntityQuery { } nonisolated struct CaptureContextQuery: EntityQuery {- static let persistentIdentifier = "halo-family.capture-context-query"+ static let persistentIdentifier = "HaloFamilyCaptureContextQuery" @IntentParameterDependency<RememberPersonIntent>(\.$child) private var capture @IntentParameterDependency<ChildCaptureConfiguration>(\.$child) private var widget @@ -51,20 +51,20 @@ nonisolated struct CaptureContextQuery: EntityQuery { } } -nonisolated struct RememberPersonIntent: AppIntent {- static let persistentIdentifier = "halo-family.remember-person"- static let title: LocalizedStringResource = "Remember someone"- static let description = IntentDescription("Save a name or description for a child, with an optional context membership.")- static let authenticationPolicy: IntentAuthenticationPolicy = .requiresLocalDeviceAuthentication- static let openAppWhenRun = false- static let allowedExecutionTargets: IntentExecutionTargets = [.main, .widgetKitExtension]+struct RememberPersonIntent: AppIntent {+ nonisolated static let persistentIdentifier = "HaloFamilyRememberPerson"+ nonisolated static let title: LocalizedStringResource = "Remember someone"+ nonisolated static let description = IntentDescription("Save a name or description for a child, with an optional context membership.")+ nonisolated static let authenticationPolicy: IntentAuthenticationPolicy = .requiresLocalDeviceAuthentication+ nonisolated static let openAppWhenRun = false+ nonisolated static let allowedExecutionTargets: IntentExecutionTargets = [.main, .widgetKitExtension] @Parameter(title: "Child") var child: CaptureChildEntity @Parameter(title: "Name or description") var name: String @Parameter(title: "Context", description: "Optional membership. This does not record the first meeting.") var context: CaptureContextEntity? - static var parameterSummary: some ParameterSummary {+ nonisolated static var parameterSummary: some ParameterSummary { Summary("Remember \(\.$name) for \(\.$child)") { \.$context } } @@ -83,10 +83,10 @@ nonisolated struct RememberPersonIntent: AppIntent { } } -nonisolated struct ChildCaptureConfiguration: WidgetConfigurationIntent {- static let persistentIdentifier = "halo-family.child-capture-widget"- static let title: LocalizedStringResource = "Child capture"- static let description = IntentDescription("Choose a child and an optional default context for remembering people.")+struct ChildCaptureConfiguration: WidgetConfigurationIntent {+ nonisolated static let persistentIdentifier = "HaloFamilyChildCaptureWidget"+ nonisolated static let title: LocalizedStringResource = "Child capture"+ nonisolated static let description = IntentDescription("Choose a child and an optional default context for remembering people.") @Parameter(title: "Child") var child: CaptureChildEntity? @Parameter(title: "Default context") var context: CaptureContextEntity? }
diff --git a/Tests/HaloPersistenceTests/ContextCategoryTests.swift b/Tests/HaloPersistenceTests/ContextCategoryTests.swiftindex 60f791f..d211166 100644--- a/Tests/HaloPersistenceTests/ContextCategoryTests.swift+++ b/Tests/HaloPersistenceTests/ContextCategoryTests.swift@@ -17,7 +17,8 @@ struct ContextCategoryTests { let family = try graph.createFamily(name: "Synthetic family"), other = try graph.createFamily(name: "Other") let categories = try graph.contextCategories(in: family) #expect(Set(categories.map(\.name)) == Set(FamilyRepository.starterCategories))- #expect(Set(categories.map(\.id)).isDisjoint(with: graph.contextCategories(in: other).map(\.id)))+ let otherCategories = try graph.contextCategories(in: other)+ #expect(Set(categories.map(\.id)).isDisjoint(with: otherCategories.map(\.id))) let school = try #require(categories.first { $0.name == "School" }) try graph.updateCategory(school, name: "Learning", archived: false) #expect(try graph.contextCategories(in: family).first { $0.id == school.id }?.name == "Learning")
diff --git a/Tests/HaloPersistenceTests/FamilyBackupTests.swift b/Tests/HaloPersistenceTests/FamilyBackupTests.swiftindex 8f52527..d7e598b 100644--- a/Tests/HaloPersistenceTests/FamilyBackupTests.swift+++ b/Tests/HaloPersistenceTests/FamilyBackupTests.swift@@ -37,7 +37,8 @@ struct FamilyBackupTests { #expect(try restoredGraph.people(in: restored).map(\.name) == ["Child", "Peer"]) let request = NSFetchRequest<NSManagedObject>(entityName: "Asset") let imported = try #require(try target.container.viewContext.fetch(request).first)- #expect(imported.value(forKey: "id") as? UUID == graph.readable(asset, entity: "Asset").value(forKey: "id") as? UUID)+ let originalAssetID = try graph.readable(asset, entity: "Asset").value(forKey: "id") as? UUID+ #expect(imported.value(forKey: "id") as? UUID == originalAssetID) #expect(try await AssetRepository(stack: target).data(for: imported.objectID) == payload) let reopened = try PersistenceStack(directory: directory.appendingPathComponent("Restore")) #expect(try FamilyRepository(stack: reopened).families().count == 1)@@ -103,9 +104,11 @@ struct FamilyBackupTests { #expect(throws: MergeError.self) { try graph.undoPersonMerge(copiedAudit.objectID) } let restoredStack = try PersistenceStack(directory: directory.appendingPathComponent("Restore")) let restored = try await BackupRepository(stack: restoredStack).restore(preview, asNewCopy: false)- request.predicate = NSPredicate(format: "familySpace == %@", restored)- let restoredAudit = try #require(try restoredStack.container.viewContext.fetch(request).first)- #expect(restoredAudit.value(forKey: "id") as? UUID == graph.readable(audit, entity: "PersonMerge").value(forKey: "id") as? UUID)+ let restoredRequest = NSFetchRequest<NSManagedObject>(entityName: "PersonMerge")+ restoredRequest.predicate = NSPredicate(format: "familySpace == %@", restored)+ let restoredAudit = try #require(try restoredStack.container.viewContext.fetch(restoredRequest).first)+ let originalAuditID = try graph.readable(audit, entity: "PersonMerge").value(forKey: "id") as? UUID+ #expect(restoredAudit.value(forKey: "id") as? UUID == originalAuditID) try FamilyRepository(stack: restoredStack).undoPersonMerge(restoredAudit.objectID) #expect(try FamilyRepository(stack: restoredStack).people(in: restored).count == 2) }
diff --git a/Tests/HaloPersistenceTests/PeopleSearchTests.swift b/Tests/HaloPersistenceTests/PeopleSearchTests.swiftindex 5330f20..c92cc9a 100644--- a/Tests/HaloPersistenceTests/PeopleSearchTests.swift+++ b/Tests/HaloPersistenceTests/PeopleSearchTests.swift@@ -71,7 +71,13 @@ struct PeopleSearchTests { stack.container.viewContext.automaticallyMergesChangesFromParent = false let graph = FamilyRepository(stack: stack) let family = try graph.createFamily(name: "Synthetic"), person = try graph.addPerson(name: "Sparse", familyID: family)- try graph.updatePerson(person, name: "Enriched", notes: "Note", needsReview: false, expected: graph.person(person))+ let original = try graph.person(person)+ #expect(original.notes.isEmpty)+ #expect(throws: GraphError.self) {+ try graph.updatePerson(person, name: "Must not change", notes: "Unavailable note", needsReview: false, expected: original)+ }+ #expect(try graph.person(person) == original)+ try graph.updatePerson(person, name: "Enriched", notes: "", needsReview: false, expected: original) let current = try graph.person(person) #expect(current.name == "Enriched" && current.givenName.isEmpty && current.familyName.isEmpty) #expect(throws: GraphError.self) {@@ -96,7 +102,9 @@ struct PeopleSearchTests { object.setValue("Chen", forKey: "familyName") return object }- for term in ["sofi", "姨", "Auntie", "River", "chen"] {+ // A related person's display name deliberately matches both ends of the entered fact.+ #expect(try Set(graph.people(in: family, search: "sofi").map(\.id)) == [person, child])+ for term in ["姨", "Auntie", "River", "chen"] { #expect(try graph.people(in: family, search: term).map(\.id) == [person]) } }
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex fbfd236..481e3aa 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -96,6 +96,14 @@ ### Changed +- Pass the current 146-case/17-suite gate, strict lint 0/89, and both Debug builds;+ validate native host/widget metadata extraction and embedded extensions.+- Correct narrow first-use missing-file handling, legacy Person field guards and+ deleted-row family permission checks discovered by execution, retaining all cases.+- Fix actual category/backup/legacy/search fixture errors, macOS Contacts picker API,+ and typed intent identifiers/static metadata isolation; preserve Xcode normalization.+- Record failed/aborted attempts separately and retain native/account/schema gates.+ - Keep dynamic persistence errors private in logs, explicitly request iOS store protection after first unlock, and avoid CloudKit containers for device-only stacks.
diff --git a/README.md b/README.mdindex 0cddcf5..f44cee1 100644--- a/README.md+++ b/README.md@@ -106,8 +106,8 @@ Persistent history is retained until safe checkpoint-based pruning is verified. The storage factories support local-only intent/widget roles: intents can write, widgets are read-only, and both require stores prepared by the host. There are-a native WidgetKit extension and typed Shortcuts action in source, pending build and-runtime verification. Asset payloads are saved on a background context with external storage enabled.+a native WidgetKit extension and typed Shortcuts action, with both platform builds+and metadata/embedding checked. Native execution still requires runtime verification. Asset payloads are saved on a background context with external storage enabled. Person detail supports Photos/Files imports; primary photos are encoded as JPEG, up to 2048 pixels and 4 MB. Event JPEG/PNG/PDF imports allow up to 20 MB; image location metadata is stripped. Each import owns its Asset; replacing/removing a@@ -140,7 +140,8 @@ The integrated Contacts source adds optional Apple Contacts selection/create and links. Only the names explicitly saved in the contact form are copied to Contacts; family notes/photos remain in Halo. Local links survive Person merge and unlink does not delete a Contact. Synthetic/debug stores disable native Contacts access. Contacts-permission, picker/create behavior and the six new synthetic cases are unverified.+permission and picker/create behavior remain unverified. The six local mapping+cases pass within the current 146-case synthetic gate. The Contacts increment originally declared 85 tests/11 suites, with the verified V6 fixture correction at 3286293 already integrated. Current inventory is below. @@ -190,7 +191,8 @@ in a Context's detail. New families receive School, Playgroup, Parent group, Chi and Activities. Older families can add missing starters explicitly. Archived labels remain attached to existing Contexts. People search covers names, entered titles, roles, households, related names and nested Context paths. Person details also show-multiple dated Context roles. These features await their runtime gate.+multiple dated Context roles. Their local cases pass; native UI/runtime acceptance+remains pending. ## Widgets and Shortcuts @@ -207,12 +209,12 @@ separate. Widget previews are generic, and actual content is marked privacy-sens Timeline reload is a request to the system, so cached names after access changes and locked-device redaction still need native validation. -Current source declares **146 synthetic tests/17 suites**, with strict lint **0/89-files** and valid project/plists. New compilation, both Debug builds and native-extension/UI runtime await the shared Mac slot. The last executed passing gate is-still **3286293: 79 tests/10 suites and both Debug builds**. Account/share lifecycle,-cache retention, legacy cache recovery, real CloudKit delivery, production schema and-large-data/runtime evidence remain release gates. Persistent history is retained.+The current local gate passes **146 synthetic tests in 17 suites** in 7.034 seconds,+with JUnit zero failures/errors/skips, strict lint **0/89 files**, and sequential+**iOS Simulator/macOS Debug builds**. Host/widget metadata extraction and extension+validation pass on both platforms. Native UI/extension execution, account/share+lifecycle, cache retention, legacy recovery, real CloudKit delivery, production schema+and large-data/runtime evidence remain release gates. Persistent history is retained. ## Person names and archive/restore
diff --git a/docs/halo_family_design_pack/04-build-plan.md b/docs/halo_family_design_pack/04-build-plan.mdindex 0930ab4..4b22189 100644--- a/docs/halo_family_design_pack/04-build-plan.md+++ b/docs/halo_family_design_pack/04-build-plan.md@@ -1,8 +1,24 @@ # Build Plan — Halo Family -**Status:** Full application implementation in progress; release gates remain separate+**Status:** Application source implemented and local gates passed; native/release acceptance remains -### Current source closure and release checklist — 2026-10-07 UTC+### Current combined gate passed — 2026-10-07 UTC++The current 146-case/17-suite synthetic gate passes in 7.034 seconds (JUnit zero+failures/errors/skips), with strict lint 0/89 and sequential iOS Simulator/macOS+Debug builds. Host/widget metadata extraction and extension embedding pass on both+platforms. Executed corrections retain every case and correct genuine fixture errors, including narrow+missing-file handling, legacy field rejection, deleted-row permission validation,+genuine fixture errors, macOS picker API and typed intent metadata/isolation.+Four final source reviews are clear; both owned heavy runners have drained.++Phases 1–7 and 9 have implemented source and their current local gate. Native UI,+Contacts/widgets/Shortcuts, actual account/share/offline/cache contents, quota/large+data, existing shares and production schema remain acceptance evidence. Phase 8+still requires representative real data; Phase 10 is v2. See the consolidated+[remaining checklist and exact failed/passing evidence](10-initial-implementation-results.md).++### Earlier source closure and release checklist — 2026-10-07 UTC Optional structured names now have native editing, explicit merge field choices and retained undo. Ordinary Person/ChildProfile/PersonGroup archive and restore preserves
diff --git a/docs/halo_family_design_pack/10-initial-implementation-results.md b/docs/halo_family_design_pack/10-initial-implementation-results.mdindex b013806..0b83853 100644--- a/docs/halo_family_design_pack/10-initial-implementation-results.md+++ b/docs/halo_family_design_pack/10-initial-implementation-results.md@@ -1,5 +1,67 @@ # Implementation evidence +## Combined application gate passed — 2026-10-07 UTC++**146 tests in 17 suites passed in 7.034 seconds**, test command exit 0. JUnit+contains 146 cases with zero failures/errors/skips. `make -j1 check` then passes+strict lint (**0 violations/89 files**) and both iOS Simulator/macOS Debug builds,+exit 0. Host and widget AppIntents extraction completes on both platforms without+extractor diagnostics; four nonempty parsed metadata files contain the corrected+entity types, and both app products validate their embedded extension.++The source is `04eea67` plus the reviewed gate corrections below and the preserved+Xcode project normalization. Exact tracked hashes and dirty-file copies are recorded+under `/tmp/halo-final-gate-inputs`. The final unit package/test/model sources match+the final built tree byte-for-byte; builds changed no tracked source. Xcode's earlier+normalization of extension destination/runpaths is retained unchanged and now has+both-platform build evidence. No owned heavy runner remains active; the shared slot+is released for the parent's next batch.++Corrections discovered by execution, with every case retained:++- One account permission identifier redeclaration and three missing throwing fixture+ evaluations stopped three initial attempts at compilation; no tests ran in those+ attempts. Backup resolves its frozen model inside the background operation instead+ of capturing a non-Sendable model value.+- The first runtime attempt recorded **29 passes and six failed-case lines** before+ an application `NSUnknownKeyException` on missing legacy Person `notes` aborted the+ runner with signal 6. This was a source/model failure, not an environmental stall.+ Legacy reads now provide an empty value and writes reject unsupported enrichment+ before mutation; the incorrect legacy fixture input now tests atomic rejection.+- FileHandle reports Cocoa missing-file code 4 on first use, not only code 260.+ Device Contacts mappings and share-denial reads accept these two absence codes;+ other errors/corruption still fail. Four observed Contacts failures are corrected.+- Two guarded merge undo failures came from permission checks after Core Data had+ nullified deleted generated rows' family link. The check recovers the committed+ family only for deleted nonroots and still validates scope/duplicates/access.+ The focused 19-case merge suite passes separately from the final full run.+- A completed full run had **145 passes/one failure in 7.319 seconds**. The fixture+ incorrectly excluded a valid related-name result; it now requires exactly both+ related people and still excludes another family. Production search is unchanged.+ A model-bound fetch request reused across backup coordinators was also corrected,+ retaining UUID and undo assertions.+- The first platform check failed macOS Contacts compilation. Its iOS build reported+ success while AppIntents extraction emitted invalid-identifier errors, so it was+ not accepted as a clean gate. The picker uses the SDK's imported method; intent+ type identifiers use legal stable names, and static metadata remains nonisolated+ without applying that annotation to mutable parameter wrappers. Record IDs,+ authentication, permissions and local capture behavior are unchanged.++Four final source lenses are clear. Coverage JSON was collected for the package;+it does not measure native UI or extension execution. Expected invalid-PDF fixture+logging and existing optional-checkpoint/unused-fixture-result compiler warnings+are not assertions or runner stalls. Earlier failed/aborted logs and JUnit are retained.++Evidence: `/tmp/halo-final-gate-tests.log`, `/tmp/halo-final-gate-build.log`,+`/tmp/halo-final-gate-tests-compile-{1,2,3}.log`,+`/tmp/halo-final-gate-tests-runtime-{1,2}.log`,+`/tmp/halo-final-gate-build-failure-1.log`, and structured results in+`/tmp/halo-final-gate-inputs` (JUnit, coverage, source hashes and metadata checks).+Native UI/Contacts/widget/Shortcuts behavior, locked-device/cache privacy and actual+account/share/offline/cache-retention, quota/large-data/CKShare/schema gates remain+unrun. No real family data, live fixtures, physical installation, account/signing+configuration changes, push or main merge occurred.+ ## Person enrichment and archival source closure — 2026-10-07 UTC Person details now edit optional given/family names independently from the required@@ -33,18 +95,18 @@ history editing. All four final source rechecks are clear; no current build or r | Plan section | Source status | Remaining evidence or dependency | | --- | --- | --- | | Phase 0 | Historical spike complete within its recorded scope | Does not establish the current application's release gates. |-| Phases 1–2 | Production stores/sharing, relationship workspace, capture, membership, origin/temporal history and Review implemented | Current combined test/build gate; native forms and actual sharing/transport validation. |+| Phases 1–2 | Production stores/sharing, relationship workspace, capture, membership, origin/temporal history and Review implemented; local gate passes | Native forms and actual sharing/transport validation. | | Phases 3–5 | Approved photos, family knowledge, Sensitive Details, groups, social Events/gifts/attachments and archive/restore implemented | Native UI, image/document memory behavior and real shared delivery. |-| Phase 6 | Explicit field/overlap merge, retained identities, guarded undo and competing-account recovery implemented | Current regressions; actual two-account/offline histories and existing CKShare migration. |+| Phase 6 | Explicit field/overlap merge, retained identities, guarded undo and competing-account recovery implemented; local regressions pass | Actual two-account/offline histories and existing CKShare migration. | | Phase 7 | Optional native Contacts and isolated device-local links implemented | Permission/picker/create/unlink behavior on an explicitly authorized test address book. | | Phase 8 | Deferred by the approved real-data prerequisite | Enough representative data and authority to use it; no live family inspection performed. |-| Phase 9 | Native widget, scoped typed capture and compact host form implemented | Metadata extraction/embedding, configuration, authentication, cold/warm URLs, locked-device redaction and cached timeline behavior. |+| Phase 9 | Native widget, scoped typed capture and compact host form implemented; metadata/embedding pass both builds | Configuration, authentication, cold/warm URLs, locked-device redaction and cached timeline behavior. | | Phase 10 | v2 | Separate class-rollover design and implementation when requested. | | Phase 11 | Account/access guards, bounded backup/import, private logs and explicit store protection implemented | Runtime/account/schema/storage gates below. History retention is approved until safe pruning is verified. | -- **Next local gate:** one scheduled `make test` with JUnit/coverage, then sequential- `make check` for strict lint and iOS Simulator/macOS Debug builds. No parallel heavy- runner starts before the parent grants the shared Mac slot.+- **Local gate complete:** 146 cases/17 suites, strict lint and both Debug builds pass+ with current metadata/embedding checks. The historical source checkpoint below+ preserves its earlier pending status; native runtime acceptance remains separate. - **Synthetic runtime hardening:** native forms and backup preview/restore/copy, quota/storage failures, image memory limits, large generated datasets, and actual SQLite/WAL/external-payload file protection. Domain tests cover local invariants;
diff --git a/docs/halo_family_design_pack/CHANGELOG.md b/docs/halo_family_design_pack/CHANGELOG.mdindex 833ab79..3a8ed20 100644--- a/docs/halo_family_design_pack/CHANGELOG.md+++ b/docs/halo_family_design_pack/CHANGELOG.md@@ -2,6 +2,11 @@ ## 7 October 2026 UTC +- Record the passing current 146-case/17-suite gate (7.034 seconds), JUnit zero+ failures/errors/skips, strict lint 0/89 and sequential platform builds. Validate+ host/widget metadata and embedded extensions; retain exact earlier failures and+ runtime/account/schema acceptance limits. Preserve all source cases and commits.+ - Close native structured-name and ordinary Person/ChildProfile/PersonGroup archive/ restore source gaps; include explicit name merge choices and retained undo/assets. Current inventory is 146 declarations/17 suites, strict lint 0/89; combined gates
diff --git a/docs/halo_family_design_pack/README.md b/docs/halo_family_design_pack/README.mdindex 00ce72a..56df4c2 100644--- a/docs/halo_family_design_pack/README.md+++ b/docs/halo_family_design_pack/README.md@@ -45,9 +45,10 @@ Account/access lifecycle is now implemented as source, including a separate devi Person structured names, ordinary Person/ChildProfile/PersonGroup archive/restore, per-child WidgetKit and typed AppIntent capture UX are now implemented as source, with optional Context membership and a compact host form. This checkout declares-146 synthetic cases in 17 suites; new compilation, extension/native runtime and-the combined gate are pending. The last executed passing gate remains 79 cases-and both Debug builds at `3286293`; source lint does not replace those checks.+146 synthetic cases in 17 suites; all 146 pass with strict lint 0/89 files and+both Debug builds. Host/widget metadata extraction and extension validation pass+on both platforms. Native execution/privacy and actual account/share/cache/schema+acceptance remain separate; see the current evidence and remaining checklist. ## Document policy
Native UI/Contacts/backup/widgets/Shortcuts execution, authentication/cache redaction, actual account/share/offline/framework retention, existing shares, quota/image-memory/large-data and production schema remain. Actual device/live/deployment operations need their specific authority.
Earlier compile, failed and aborted logs/JUnit remain under /tmp/halo-final-gate-inputs and /tmp/halo-final-gate-*.log. The legacy abort was an application exception, not an environmental stall. Existing optional-token/unused-fixture warnings and expected invalid-PDF logs are separate from assertions.