Expand description
Pair every NodeProto carrying a deadline_ns attribute with an
upstream DeadlineCheck syscall gate. The check writes to a new
sibling <node>#__trigger_deadline slot so the protected node
fires only after both its original payload AND the deadline gate.
Idempotent — re-running on an already-gated graph is a no-op.
Constants§
- GATED_
KEY - Idempotence stamp - once a node has been paired with a
DeadlineCheck, this metadata entry stops the pass from re-inserting on a second run. - TRIGGER_
DEADLINE_ SUFFIX - Suffix appended to a protected node’s name to form the sibling
trigger slot that the inserted
DeadlineCheckwrites.
Functions§
- insert_
async_ deadlines - Insert a
DeadlineCheckupstream of everydeadline_ns-bearing node insub_graph. Pure (the input graph is mutated in place but the function has no side effects beyond that).