Thin kavach-go + kavachpgx pgproto3 wire adapter feeding Hatchet's unmodified pkg/repository
Drives real SchedulingPool + real pkg/repository over kavachpgx for sticky + required worker label tasks.
Flushes multi-queue batch groups via real BatchScheduler + ReserveAndCommitBatchRun over kavachpgx and probes remaining worker slot capacity via followup_probe.
Executes parent->child durable DAG through real DAGOperator + real pkg/repository (Workflows, Matches CEL, Operators) + thin in-process operator.Session bridge.
Transparent pgproto3 wire-protocol *pgxpool.Pool feeding fairpool.Ungated -> real v1repo.NewRepository & sqlcv1.Queries (0 memrepo).
hatchet-dev/hatchet @ 26386fbc3feaf7e9e66447bd1c17edf437a695e8
Filters and scores candidate workers for sticky pinning and DesiredLabels weights.
Hydrates popped batch items, schedules one slot per queue group, commits via ReserveAndCommitBatchRun, acks slots, and emits QueueResults.
Evaluates parent override, event, and sleep condition groups across a DAG step before triggering or skipping.
Real Postgres sqlcv1 wire boundary, SchedulingPool unackedSlots, QueueResults, and DAG child runs
Per-(worker, slotType) slot pools rebuilt on Replenish with unackedSlots subtracted.
Emits JSON worker placement and compliance_margin checked by worker_label_isolation.
Emits DB batch commit count, emitted QueueResults count, dispatch_surplus, and followup_slot_margin.
Emits DAG terminal status, triggered/skipped child records, and and_gate_margin.
Rules in .kavach/invariants.yaml checked on every replay and mutated variant
Assigned worker must satisfy every Required: true desired label regardless of Sticky strategy.
Committed multi-queue batches must emit QueueResults without leaking worker slots in Scheduler.unackedSlots.
Multi-group AND skip conditions must not skip a step until both ParentOverride and UserEvent groups match.
Sticky label-affinity bypass, multi-queue batch slot-ack leak + dropped dispatch, and DAG AND-skip bypass / terminal wait leak
rankWorkerIds nests computeWeight(labels) inside case NONE / default, skipping all Required and weighted labels on SOFT and HARD sticky tasks.
assignAndDispatch returns early on Queue 2 DB error without calling b.scheduler.ack(allAckIds) or b.emitResults for already-committed Queue 1.
evaluateParentConditions counts only PARENTOVERRIDE groups, skipping steps prematurely without event approval and firing impossible-AND watches when parent is false.
Runtime entities seen in fixtures or replays without a matching spec card
http @ POST /v1/workflows/trigger
Emitted output sink pg:batch:del:{11}
Emitted output sink pg:batch:del:{12}
Emitted output sink pg:batch:del:{21}
Emitted output sink pg:batch:del:{22}
Emitted output sink pg:batch:del:{31}
Emitted output sink pg:batch:del:{32}
Emitted output sink pg:batch:del:{1,2}
Declared invariant batch_followup_slot_capacity
Declared invariant no_silent_batch_drop
Declared invariant no_silent_dispatch_drop