Integrations#
Integration modules are optional adapters. Core generation remains dependency free; install the corresponding extra before using a sink or publisher.
Note
These adapters are versioned with the core package, but their third-party services are not. Pin the client extra and validate connectivity in CI before publishing a run.
PostgreSQL#
|
Persist one generated run atomically after migrations have been applied. |
|
Persist a partition-record stream without whole-run materialization. |
|
Apply the packaged, ordered PostgreSQL migrations and return the version. |
|
Return applied migration versions without changing the database. |
Non-secret metadata recorded in a generated run manifest. |
Kafka and lakehouse#
|
Publish mapped M24 records with deterministic pacing and acknowledgements. |
|
Map all observable M24 records into one deterministic publication order. |
|
Return the stable versioned topic for an M24 subject. |
Small PyIceberg writer with immutable append and snapshot metadata. |
|
|
Backfill one generated run and optionally commit it to Iceberg. |
|
Materialize already-loaded domain objects without regenerating them. |
|
Validate a materialization manifest without contacting Iceberg. |
Kafka reliability#
The chaos harness models logical delivery semantics without changing event identity or payload data. It is useful for testing retry, loss, duplication, delay, reordering, and partition-skew handling before connecting a broker.
Immutable, seeded policy for logical Kafka delivery faults. |
|
Transport metadata wrapped around one immutable publication payload. |
|
Auditable output of one seeded logical-message chaos run. |
|
|
Apply seeded logical-message faults at a producer or consumer boundary. |
from fraudtwin.kafka_chaos import KafkaChaosConfig, simulate_delivery
result = simulate_delivery(records, KafkaChaosConfig(seed=7, duplicate_probability=0.1))
print(result.manifest["counts"])
Replay and scale#
|
Select and order an existing run without regenerating any source data. |
|
Write a replay artifact below the supplied destination root. |
|
Resolve the opt-in scale configuration, returning |
|
Resolve an enabled scale plan and narrow away the optional result. |
|
Yield deterministic half-open chunk descriptors. |
|
Atomically publish a checkpoint manifest. |
|
Load and validate a checkpoint manifest. |
|
Detect duplicate/lost IDs and return a serializable reconciliation result. |
|
Hash rows incrementally without retaining the complete input. |
|
Yield stable shard-local payment chunks without materializing IDs. |
|
Read scale chunks one file at a time, keeping reader memory bounded. |
|
Execute an out-of-core DuckDB query over partitioned Parquet. |
|
Yield deterministic contiguous payment ordinal ranges per shard. |
|
Run one explicitly requested scale job and publish machine evidence. |
|
Write non-deterministic machine evidence separately from run identity. |
S3/MinIO-compatible publisher backed by optional fsspec. |
|
Filesystem implementation used by default and in CI. |
|
|
Resolve a configured storage backend without importing optional packages. |