Architecture overview
PyIngestKit 2.0 is a focused ingestion framework. It owns how to ingest; an external orchestrator owns when to run.
External orchestrator
│
│ invokes
▼
IngestionDefinition
│
▼
IngestionRuntime.run(...)
│
├── SourceConnector
│ │
│ ▼
│ acquisition
│ │
│ ▼
│ immutable RAW
│ ArtifactReference
│
├── Decoder
│ │
│ ▼
│ validation /
│ quality evidence
│
├── DatasetVersionStore
│ │
│ ▼
│ immutable
│ DatasetVersion
│
└── explicit downstream actions
├── DatasetPublisher
├── DatasetTargetV2
└── strict replay / verification
Core boundaries
The stable provider boundary is expressed through framework-owned Protocols:
SourceConnector
Decoder
ArtifactStore
DatasetVersionStore
DatasetPublisher
DatasetVersionMaterializerV2
DatasetTargetV2
Provider implementations are replaceable. Durable public contracts use portable references rather than boto3 clients, SQLAlchemy engines, open file handles or DataFrames.
Lifecycle invariants
PyIngestKit 2.0 keeps several distinctions explicit:
ArtifactStore != DatasetVersionStore
ArtifactStore != publication target
DatasetVersion != provider object version
Replay != new source acquisition
PyIngestKit != orchestrator
The framework preserves durable RAW evidence, creates immutable DatasetVersion identity, separates write from publication, and keeps target materialization explicit.
Replay
Strict replay starts from preserved historical evidence, allocates a new IngestionRunId, and verifies the resulting immutable dataset identity. Missing or inconsistent replay evidence fails closed; the runtime does not silently reacquire the source.
Transformation boundary
Business-domain transformation remains outside the ingestion core. PyTransformKit integration uses portable references rather than sharing provider clients or in-memory DataFrames as durable framework contracts.
PyIngestKit DatasetVersionReference
↓
portable ResourceReference
↓
PyTransformKit InputBinding
↓
transformation output resource
↓
PyIngestKit governed DatasetVersion
↓
explicit publication
Product boundary
PyIngestKit does not absorb distributed scheduling, worker fleets, generic DAG orchestration, IAM, catalog, GUI/SaaS, cloud provisioning or infrastructure administration into its core runtime.