RawCull Packages

Pinned package revisions, imported products, dependency direction, and the recommended architecture reading order.

RawCull Packages

Start here: One Package, Three Imports: Understanding Swift Modules explains packages, products, targets and imports using PhotoEvidenceKit before you read the individual package architecture guides.

RawCull is the composition root for five architecture packages and four small rsync/persistence support packages. Package repositories are separately versioned; paths under Sources/ and Tests/ refer to the named repository, not files copied into this documentation site. The app translates between package contracts and owns selection, file access, caches, persistence, and review decisions.

The November 8, 2026 review uses RawCull 3.4.0 build 434. Existing guides retain their explicitly dated architecture audits and add current integration notes. PhotoEvidenceKit has a new guide covering the resolved 1.0.7 implementation. Sibling checkout HEADs do not redefine the application’s resolved baseline.

Build 466 resolved dependencies

The application lockfile records 24 remote pins. Since build 462, PhotoAIKit moved from 1.0.0 to 3.1.0 and PhotoAnalysisKit from 1.3.9 to 1.4.1. PhotoEvidenceKit changed its repository URL from SSH to HTTPS at the same version and revision. The MCP helper has a separate package graph. Application lockfile · MCP helper lockfile

IdentityVersionRevision
coreai-models1.0.05de95c6cd29e5e390fb36d87e13b2396668f7974
decodeencodegeneric1.0.0b5ecbbbe1b244191efec1532a979f6ae342d6617
eventsource1.6.0bb4b61273b5a976bb571859c17f903ebc3439df1
parsersyncoutput1.0.0e079e0c9d34bf07f7f2a4312b40feea79ae14847
photoaikit3.1.026647c62d9933968d92bd00b162290cdd7c78fee
photoanalysiskit1.4.12f41e8b756f006e0218f86b103801ebb47cf8983
photoevidencekit1.1.5e49d34adcfa2e2c43a4240c2e962dbe9defa4cad
rawcullcore1.1.5ea8ac2fc6611949af2b55ec433456bfe502cf886
rawparserkit1.3.326df4abc2178d5c07d08f3883d84d0648f5141d3
rsyncarguments1.0.00ff6518136c208dfbecc1a918f045048ca79853d
rsyncprocessstreaming1.0.0dd86f012b352888fd146e0b6e103740dc237f740
swift-asn11.7.4917b472dbe53ba699cbb0495f9a95a084bc6364d
swift-atomics1.3.10442cb5a3f98ab802acb777929fdb446bda11a34
swift-collections1.7.5f96b909e1a9e469620bc5037c1e24e00153f376f
swift-crypto4.5.2da9d28d69ebe3894b18376c8f2395c2f37b8448f
swift-huggingface1.0.0c30143a4616f3fa994ee3ab3e3464f752845c07c
swift-jinja3.0.0a091d6ae559ee97e904a0f3c2890b21949d0306f
swift-log1.17.0e3da04078777e6a1b72ce19981fbd6539b0847d8
swift-nio2.105.02f58d8ef84438d6517fc78bcea2f8527e3c72936
swift-sdk0.12.1a0ae212ebf6eab5f754c3129608bc5557637e605
swift-system1.8.1869129b7bf4ecc57b97d0193ad29690ca2134750
swift-transformers1.4.0402a8a1105f52038b0949d9596981fc9e32bed17
xgrammar0.2.24d145cc13d878c751ebeed36af1c013074be76bc
yyjson0.13.06447536015f3d600f3d65323b10976103b337ca7

November 9 Close Up Development Build

At the November 9 review, the version-3.4.5 branch used two local package references. Its source baseline is RawCull 3.4.5, build 436, commit a68253b73cbad14a7b1030dba6b439e6bce7d3da. The revisions identify the sibling checkouts used to verify the integration.

PackageXcode pathCheckout revisionClose Up responsibility
PhotoAnalysisKit../PhotoAnalysisKit27d422b100214dd1520f7ca11123f58a86f04e99Human face rectangles and preview detail
PhotoEvidenceKit../PhotoEvidenceKit35e8aca4135ac2151cbce033e4e9baefb8bafabcCrop rendering and manual inspection UI

The animal head and eye pilot lives in RawCull and uses Apple’s Vision framework. It required no package release or dependency update. The November 8 table below is the historical remote snapshot. Build 436 retains the other 17 entries at their recorded revisions. See the Close Up guide for the workflow and the distinction between detected and manual crops.

November 8 Resolved Dependency Snapshot

This table is derived from the local RawCull RawCull.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved, reviewed November 8, 2026 alongside project.pbxproj and source imports. “App” means RawCull directly consumes package products; “transitive” means a package owns the dependency. There are 19 resolved entries.

IdentityRelationshipVersion/branchRevision
DecodeEncodeGenericapp1.0.0b5ecbbbe1b244191efec1532a979f6ae342d6617
ParseRsyncOutputapp1.0.0e079e0c9d34bf07f7f2a4312b40feea79ae14847
PhotoAIKitapp1.0.04b85056e6c2603b5e382987710ca2f16f4c5c155
PhotoAnalysisKitapp1.3.12a1466e04d821fa2628d6985296643e0d0c7e465
PhotoEvidenceKitapp1.0.77614fd1528bb7cf2549799fb937678ea39d90228
RawCullCoreapp1.1.2d25a51e65ad32a82bf82f86fa0ec07d6e14498e9
RawParserKitapp1.3.326df4abc2178d5c07d08f3883d84d0648f5141d3
RsyncArgumentsapp1.0.00ff6518136c208dfbecc1a918f045048ca79853d
RsyncProcessStreamingapp1.0.0dd86f012b352888fd146e0b6e103740dc237f740
coreai-modelstransitive1.0.05de95c6cd29e5e390fb36d87e13b2396668f7974
EventSourcetransitive1.6.0bb4b61273b5a976bb571859c17f903ebc3439df1
swift-asn1transitive1.7.4917b472dbe53ba699cbb0495f9a95a084bc6364d
swift-collectionstransitive1.7.5f96b909e1a9e469620bc5037c1e24e00153f376f
swift-cryptotransitive4.5.2da9d28d69ebe3894b18376c8f2395c2f37b8448f
swift-huggingfacetransitive1.0.0c30143a4616f3fa994ee3ab3e3464f752845c07c
swift-jinjatransitive3.0.0a091d6ae559ee97e904a0f3c2890b21949d0306f
swift-transformerstransitive1.4.0402a8a1105f52038b0949d9596981fc9e32bed17
xgrammartransitive0.2.24d145cc13d878c751ebeed36af1c013074be76bc
yyjsontransitive0.13.06447536015f3d600f3d65323b10976103b337ca7

Do not infer the app boundary from every transitive pin. Xcode product references and source imports define what RawCull actually consumes.

Imported Products And Boundary Types

PackageProducts imported by RawCullValues or protocols crossing the boundary
RawParserKitRawParserKitRawImageLoader, RawImageMetadata, RawFocusPoint, RawFormatRegistry, CGImage results; the app maps them through RawParserKitImageLoader
PhotoAnalysisKitPhotoAnalysisKitPhotoAnalyzer, PhotoAnalysisInput, PhotoAnalysisDescriptor, PhotoAnalysisResult, focus evidence and mask values
RawCullCoreRawCullCoreRawCullFileItem, RawCullSourceCatalog, ExifMetadata, burst inputs/results/configurations, ranking evidence, histograms; the app exposes compatibility typealiases such as FileItem
PhotoAIKitPhotoAIContracts, CoreAICLIPBackend, CoreAIQwenBackend, CoreAISAM3Backend, CoreAIEfficientSAMBackend, VisionFeaturePrintBackend, PhotoAIWorkflows, PhotoAIStorageAIImageSource, model identities/resources, similarity artifacts/descriptors, provider protocols, segmentation requests/results, mask stores and workflows
PhotoEvidenceKitPhotoEvidenceContracts, PhotoEvidenceEngine, PhotoEvidenceUICloseUpFrame, region/viewport/source descriptors, AF availability, renderer and region-store protocols, CloseUpModel, CloseUpPanel
RsyncArgumentsRsyncArgumentsrsync argument builders used by Params and ArgumentsSynchronize
RsyncProcessStreamingRsyncProcessStreamingRsyncProcess and ProcessHandlers used by the copy executor
ParseRsyncOutputParseRsyncOutputparsed transfer progress and totals used by RemoteDataNumbers
DecodeEncodeGenericDecodeEncodeGenericgeneric JSON encode/decode used by saved-file persistence

RawCull owns the translations between these vocabularies. None of the five architecture packages imports another merely to share an app model.

Dependency Direction

flowchart TD
    UI["RawCull SwiftUI"] --> Host["RawCull composition, adapters, policy, persistence"]
    Host --> Parser["RawParserKit\nRAW decode + normalized metadata"]
    Host --> Analysis["PhotoAnalysisKit\nmeasurements + masks"]
    Host --> AI["PhotoAIKit products\nAI contracts + backends + workflows"]
    Host --> Core["RawCullCore\npure grouping + ranking"]
    Host --> Evidence["PhotoEvidenceKit products\nmanual close-up inspection"]
    Host --> Args["RsyncArguments"]
    Host --> Process["RsyncProcessStreaming"]
    Host --> Output["ParseRsyncOutput"]
    Host --> JSON["DecodeEncodeGeneric"]
    Parser -. "app adapter" .-> Core
    Analysis -. "app adapter" .-> Core
    AI -. "app adapter" .-> Core

Solid arrows are compile-time imports by the app. Dotted arrows are value translation performed by RawCull, not package dependencies.

The three rsync support packages do not depend on one another. RawCull connects argument building, process execution and streamed-output parsing in its copy workflow. The runtime sequence is not a package import chain.

  1. RawParserKit — a file becomes an orientation-normalized image and neutral metadata.
  2. PhotoAnalysisKit — a decoded image becomes sharpness, saliency, focus evidence, and masks.
  3. RawCullCore — measurements become burst boundaries, recommendations, and review state.
  4. PhotoAIKit — optional CLIP similarity/semantic search and segmentation run behind typed contracts.
  5. PhotoEvidenceKit — manual regions, retained references, source-labeled crops, and optional recorded AF-point assistance.
  6. Return to the app pages to see RawCull compose those independent boundaries, persist results, and present policy.

When a package pin changes, compare its manifest and public source at the new resolved revision before updating this documentation. A sibling checkout may be ahead of the revision RawCull actually builds.

November 8 Dependency Delta

Compared with the October 31 snapshot, PhotoEvidenceKit is newly resolved at 1.0.7. EventSource moves from 1.5.1 to 1.6.0, swift-asn1 from 1.7.3 to 1.7.4, swift-collections from 1.7.3 to 1.7.5, swift-jinja from 2.5.1 to 3.0.0, swift-transformers from 1.3.5 to 1.4.0, and yyjson from 0.12.0 to 0.13.0. The eight previously direct package pins and the other transitive pins retain the revisions recorded in the October 31 table.

The Xcode project also lists PhotoEvidenceDemo, the package’s executable example, as a product reference. RawCull source imports the three library products above; the demo is not a fourth library API.

End-to-End Ownership

StepPackage outputRawCull responsibility
DecodeRawParserKit image and metadataRetain sandbox access, select preview/development policy, cache decoded work
MeasurePhotoAnalysisKit scores, evidence, masksCombine source identity with analysis descriptor and reject stale results
InferPhotoAIKit embeddings, semantic results, segmentationInstall models, admit requests, choose fallback and publish current results
RecommendRawCullCore grouping and ranking valuesSupply ordered inputs and evidence; preserve photographer decisions
InspectPhotoEvidenceKit crops and session stateSupply truthful source labels, file/settings revisions, AF mapping and region storage

PhotoEvidenceKit consumes host-rendered images through an injected renderer. It does not import the decoder, analysis, AI, or ranking packages. A close-up can help a photographer evaluate a recommendation without becoming new ranking evidence automatically. See the individual guides for invalidation and failure behavior at each boundary.


One Package, Three Imports: Understanding Swift Modules

Learn how Swift packages, products, targets, modules, imports, and linking fit together using PhotoEvidenceKit as a concrete example.

How PhotoAIKit Is Constructed

A detailed guide to PhotoAIKit’s contracts, CLIP image and text inference, semantic comparison, SAM 3 and EfficientSAM, workflows, storage, concurrency, and model identity.

How PhotoAnalysisKit Is Constructed

A detailed guide to PhotoAnalysisKit’s image-analysis boundary, sharpness pipeline, focus evidence, masks, calibration, batching, feature prints, resources, and concurrency.

How RawCullCore Is Constructed

A detailed guide to RawCullCore’s package-safe models, capture-time and EV-aware burst grouping, ranking evidence, confidence rules, histograms, concurrency, and tests.

How RawParserKit Is Constructed

A detailed guide to RawParserKit’s vendor dispatch, TIFF and MakerNote parsing, embedded previews, structured capture and exposure metadata, orientation, decode limiting, cancellation, compatibility APIs, and tests.

How PhotoEvidenceKit Is Constructed

PhotoEvidenceKit contracts, close-up geometry, bounded rendering, retained references, region persistence, AF assistance, and RawCull integration.


Last modified November 23, 2026: update (58d91c1)