File ownership and tool-managed paths
Every file in an Aegil project workspace belongs to a designated owner kind defined in OutputPlan. During verification, all files owned by the compiler are hash-locked to ensure zero drift. The 8 Xcode and CocoaPods configuration files in PlatformShellEmitter.toolManagedPaths are regenerated on build but excluded from strict hash locks to accommodate native tooling mutations.
FileOwner kinds in OutputPlan
Section titled “FileOwner kinds in OutputPlan”In addition to the spec (aegil.yaml, specs/**) and handwritten (hooks/*_hook.dart, client/lib/**) zones that the compiler never overwrites, planned files carry one of these 4 FileOwner values:
| FileOwner | Rebuild behaviour and hash lock |
|---|---|
generated |
Overwritten on every aegil build and hash-locked in .aegil/manifest.json (generatedFileChecksums). Any manual edit triggers ERR_TAMPERED_GENERATED_FILE during verify and is blocked by the PreToolUse hook. |
scaffoldOnce |
Created on the first build if absent (hooks/*_hook.dart stubs and client/lib/main.dart starter), then owned by humans and agents and never overwritten or hash-locked. |
localSecret |
Created once on the first build with 40-character cryptographically random values and mode 0600 permissions (server/config/passwords.yaml and server/.env). Never overwritten, never hash-locked, never printed, and required by OwnershipPolicy to be gitignored. |
toolManaged |
Rewritten from templates on every aegil build like generated files, but deliberately excluded from generatedFileChecksums because CocoaPods modifies them during native iOS and macOS builds. |
Tool-managed Xcode and CocoaPods files
Section titled “Tool-managed Xcode and CocoaPods files”Running flutter build ios or flutter build macos runs pod install, which modifies these 8 files. Marking them FileOwner.toolManaged lets aegil verify pass after native builds while aegil build still resets them from the spec.
| Path under client/ | Why it is tool-managed |
|---|---|
ios/Flutter/Debug.xcconfig |
CocoaPods appends an #include for Pods-Runner.debug.xcconfig when pod install runs during an iOS build. |
ios/Flutter/Release.xcconfig |
CocoaPods appends an #include for Pods-Runner.release.xcconfig when pod install runs during an iOS build. |
ios/Runner.xcodeproj/project.pbxproj |
CocoaPods adds Check Pods Manifest.lock, Embed Pods Frameworks build phases and Pods references to the iOS Xcode project. |
ios/Runner.xcworkspace/contents.xcworkspacedata |
CocoaPods adds a FileRef to Pods/Pods.xcodeproj in the iOS Xcode workspace. |
macos/Flutter/Flutter-Debug.xcconfig |
CocoaPods appends an #include for Pods-Runner.debug.xcconfig when pod install runs during a macOS build. |
macos/Flutter/Flutter-Release.xcconfig |
CocoaPods appends an #include for Pods-Runner.release.xcconfig when pod install runs during a macOS build. |
macos/Runner.xcodeproj/project.pbxproj |
CocoaPods adds Check Pods Manifest.lock, Embed Pods Frameworks build phases and Pods references to the macOS Xcode project. |
macos/Runner.xcworkspace/contents.xcworkspacedata |
CocoaPods adds a FileRef to Pods/Pods.xcodeproj in the macOS Xcode workspace. |
Generated from aegil @ 948ae8e. Do not edit: change the code, or the description in site/annotations/.