From the 2026-08-13 repo audit.
releasedBy and whenAborted are duplicated verbatim between packages/start-temporal/src/temporal-runtime.ts:166-179 and packages/start-amqp/src/amqp-runtime.ts:165-178 — identical bodies, divergent TSDoc. Any runtime whose Serving.drain must honour the kernel's deadline AbortSignal will need them; a third runtime will copy them again.
Two copies is the last cheap moment to hoist.
Acceptance
- The pair lives once — in
@btravstack/start (as part of the runtime-author toolkit next to the Runtime contract) or a shared internal — and both packages consume it.
- One TSDoc, kept where the code is.
From the 2026-08-13 repo audit.
releasedByandwhenAbortedare duplicated verbatim betweenpackages/start-temporal/src/temporal-runtime.ts:166-179andpackages/start-amqp/src/amqp-runtime.ts:165-178— identical bodies, divergent TSDoc. Any runtime whoseServing.drainmust honour the kernel's deadlineAbortSignalwill need them; a third runtime will copy them again.Two copies is the last cheap moment to hoist.
Acceptance
@btravstack/start(as part of the runtime-author toolkit next to theRuntimecontract) or a shared internal — and both packages consume it.