Repository navigation
Releases
Releases · janbalangue/tyr-admission-controller
v0.36.1
Changed
- Updated the exact vendored runtime dependency from
async-bulkhead-llm@3.18.0toasync-bulkhead-llm@3.19.1. This also brings
in 3.18.1, a documentation release, 3.18.2 and 3.19.0. 3.19.1 changes no
code: it removes files from the published tarball that were not part of the
library's build. The tarball invendor/is the artifact npm published.
The library fixes below reach Tyr with it.- Requests that reach a pool in the same tick are no longer refused under a
class'sprotectedConcurrentfloor when capacity covers them. Before, a
request inside its own class's floor was counted for a moment as a
borrower of shared capacity, and a request decided in that moment could
get429 concurrency_limit. Token floors were not affected, and no
request was admitted past a limit. - A request that finds a free slot is decided when it is made, and a queued
request when its slot is granted. Its token and class reservations are
made in that step, not one microtask later. - A queued request that times out or is aborted leaves the queue at once.
Before, its entry and its request body stayed in memory until every
request ahead of it in the queue had been served. Pool.drainandPools.drainresolve when the last queued request behind
a zeromaxConcurrenttimes out or is aborted. Before, such a drain
stayed pending although nothing was running or waiting.
- Requests that reach a pool in the same tick are no longer refused under a
- Admission provenance events take their
limitsfrom the revision that
admitted the request. The library now reports an admission one microtask
after it decides it, so a limits update can be applied in between. Tyr read
the limits in force when the report arrived; on 3.18.2 and later that would
have counted such a request undercaptureFailuresand recorded no event
for it.
Tyr keeps the limits of each pool's 64 most recent revisions for this. tyr_admission_queue_wait_secondsends when the slot is granted. The
reservation made in that step and the resumption of the request after it now
count towardtyr_admission_decision_seconds. For a request that does not
queue, that moves one microtask hop from the first histogram to the second.
Added
- A test that a request decided before a limits update, and reported after
it, has a provenance event with the limits and revision that admitted it. - A test that a request with a large input and a small output reservation
holds its output reservation after its first usage report.
Compatibility
- The 0.36.0 build on 3.18.0 and this build were driven with the same 20
requests, covering all three provider routes, streaming, two streamed
requests with reservations below the safety margin, a high-priority and a
premium-class request, rejections, an upstream500, a borrowed-slot
deadline, observe mode, runtime limit updates and a bounded drain.
Everything they returned and reported matched, apart from ids, timestamps,
timings, the retry hint and the version. - The differences from 0.36.0 need requests or limits updates that land in
the same tick, or a drain without a close:- A burst of requests under a
protectedConcurrentfloor that capacity
covers is admitted in full. - A request decided before a limits update that is applied in the same tick
keeps the revision that admitted it, inx-admission-revision, its audit
event and its provenance event. On 3.18.0 it was decided after the update
and carried the newer revision. - A request refused for the token budget because of a reservation made in
the same tick no longer takes a concurrency slot first, so
bulkhead.totalAdmittedandbulkhead.totalReleasedin/statsdo not
count it. - A drain behind a zero
maxConcurrentresolves as described above. Tyr's
own shutdown closes its pools before it drains them, which rejects every
queued request, so it was not affected.
- A burst of requests under a
- The progressive safety margin behaves as in 0.36.0. Since 0.35.0 Tyr has
capped the margin at a request's output reservation. 3.19.0 adds a cap of
its own, at the whole reservation, which is never the smaller of the two. - The library has required Node.js 22 since 3.19.0, and Tyr since 0.36.0.
- The vendored tarball has 238 files. The 3.18.0 tarball that 0.34.1 through
0.36.0 vendored had four more than its build produced: numbered copies of
CommonJS files, which nothing loaded. - TypeScript embedders: no type that Tyr or the library exports changed.
- No configuration, schema, route or metric name changed.
v0.36.0
Added
- A release tag publishes a container image to the GitHub Container Registry
atghcr.io/janbalangue/tyr-admission-controller, forlinux/amd64and
linux/arm64. The image is tagged with its exact version only; nolatest
tag is published. It carries an SBOM and build provenance. 0.36.0 is the
first published version. - CI builds the image for both platforms on every run, so a Dockerfile that
does not build fails before a release. - Topical guides under
guides/hold the reference material that was in the
README. A documentation site built with TypeDoc carries the guides and an
API reference for the modules an embedder uses.npm run docsbuilds it,
and aDocsworkflow publishes it to GitHub Pages frommaster.
Changed
- The minimum Node.js version is 22. Node.js 20 reached end-of-life on
2026-04-30.enginesrequires>=22, CI runs Node.js 22 and 24, and the
container image runs on Node.js 24. - The README opens with the problem Tyr addresses and is now an overview that
links to the guides. The reference text moved to the guides unchanged, apart
from its links and headings. - The Dockerfile's build stage runs on the builder's own platform, because its
output is plain JavaScript. - Repository links name
janbalangue/tyr-admission-controller, where the
repository lives, instead ofmofluxhq/tyr-admission-controller.
Compatibility
- Tyr's own source changed in two ways: the version constant, and three type
aliases that are now exported so the API reference can document them. They
areLoggerinlatchflo.ts,PoolStateinretry-hint.tsand
AdvisoryStatsinpools.ts. The compiled JavaScript of those three
modules is unchanged. The only test change is the version string one
assertion expects. Configuration, the schema, routes,/stats,/metrics
and audit events are as in 0.35.0. - Node.js 20 is no longer supported. Running from source needs Node.js 22 or
newer. - Building the Dockerfile now needs BuildKit, which is Docker's default
builder. The legacy builder does not setBUILDPLATFORM. - Versions before 0.36.0 have no published image and are built from source.
- The SBOM and provenance are the unsigned attestations BuildKit attaches to
the image. The image is not signed or scanned for vulnerabilities. - A link to a section of the README, such as
README.md#configuration-schema, no longer lands on that section. The
sections are now inguides/. - The
npm packtarball includesguides/. - The API reference documents TypeScript interfaces that are not yet stable.
v0.35.0
Added
- Opt-in stopping of admitted requests, made by
async-bulkhead-llm@3.18.0.
Nothing is stopped unless it is configured.pools[].stop.overrunAllowanceTokensstops a request whose token hold
grows more than the allowance above its reservation. While it is set, a
usage report that leaves the pool above its token budget, or a class above
maxInFlightTokens, also stops requests until the rest fit. It requires
inFlightTokenBudget.pools[].stop.takeBackGraceMsstops the requests a limits update left
above the new limits, once the grace period has ended. A request that
finishes inside it is left alone, and a newer update restarts it.shutdown.stopOnDrainTimeoutstops the requests still running when
shutdown.drainTimeoutMselapses, before Tyr closes the remaining
connections. It requiresdrainTimeoutMsand applies to every pool.- A stopped request that has been sent no part of its reply gets
503with
error.type: "admission_stopped",error.cause,
x-admission-reason: stoppedandx-admission-stop-cause. Once part of
a reply has been written, the reply is cut. Neither gets a retry hint. - A stop returns the request's concurrency slot at once and drops the
upstream call. The request's tokens are returned when that call has
ended on Tyr's side, normally within milliseconds. - The usage a provider sends as it ends a reply does not stop that reply.
On a pool with an overrun allowance it is applied when the request
completes. - Tyr states the pool's configured policy on every limits update it
applies, including Latchflo grants and the zero-capacity revision applied
when a grant expires. A pool that starts open applies it at startup. createGatewaytakes the same settings:stopon a pool, and
shutdownStopOnDrainTimeout.
- Stop reporting:
/stats:limits.stop, andtyr.stopwith the configuredpolicy,
stoppedandstoppedByCause./metrics:tyr_pool_stopped_total{pool,cause},
tyr_pool_admission_class_stopped_total,
tyr_pool_stop_overrun_allowance_tokensand
tyr_pool_stop_take_back_grace_seconds.- Admission audit events with
settlement: "stopped"and astopCause. stoppedin theshutdown()result and in the drain-deadline log line,
whenstopOnDrainTimeoutis on.
npm run verify:stop, part ofrelease:check. It checks that nothing
changes without a stop policy, then an overrun, a provider's closing usage,
a take-back, a stream stopped before its first byte, the token hold after a
stop, and aSIGTERMshutdown of the built server that stops a request,
answers503and exits with code 0.
Fixed
- A streamed request that failed after the provider had answered with
headers, but before the first chunk of its reply was written, now gets its
error status:504 idle_timeout,504 borrowed_admission_deadlineor
502 upstream_error. Before, Tyr closed the connection without a status
line, because it treated the reply as started as soon as the provider
answered. Tyr now writes a streamed reply's status line with its first
chunk, which is when it reached the client before as well. A stream that
has delivered a chunk is still cut. - A streamed request whose output reservation is smaller than
progressiveReconciliation.outputSafetyMarginTokensno longer holds more
tokens than it reserved. Before, its first usage report raised its hold to
the whole margin, 256 tokens by default. The difference was counted in
tyr_pool_tokens_overrun_totaland could lifttyr_pool_tokens_in_flight
above the budget. The margin is now capped at the request's output
reservation.
Compatibility
- Without a
stopblock and withoutshutdown.stopOnDrainTimeout, no request
is stopped,/statsand/metricshave no stop fields or series, and the
shutdown result has nostopped.- The differences from 0.34.1 are the two fixes above. A streamed request
that fails before its first chunk gets a status instead of a closed
connection, and theupstream_failurediagnostic for it has
afterHeaders: false. A streamed request with an output reservation
below the safety margin holds fewer tokens while it runs, so the pool's
overrun, refunded and early-released token counters differ for it. - The 0.34.1 build and this build were driven with the same 19 requests,
covering all three provider routes, streaming, rejections, a borrowed-slot
deadline, observe mode, runtime limit updates and a bounded drain. With
neither kind of streamed request among them, everything they returned and
reported matched, apart from ids, timestamps, timings and the version.
- The differences from 0.34.1 are the two fixes above. A streamed request
- With a
stopblock:- A pool that starts open starts at revision
max(limitsRevision, 1),
because revision 0 cannot carry a stop policy. A pool with
limitsRevision0 or omitted starts at revision 1, reports it in
x-admission-revisionand/stats, and needs revision 2 or higher for
its first runtime update. A pool that starts closed, as a Latchflo-managed
pool does, keeps its configured revision. - A
stopfield on a runtime limits update is still ignored. Every update
gets the pool's configured policy.Pool.controller.applyLimitsno longer
hands astopfield to the library either. - A
stopblock is refused withadmissionMode: observe, and an empty
stopblock is refused. - In Latchflo managed mode,
takeBackGraceMsalso stops the requests still
running after a grant has expired. The policy is local configuration:
Latchflo does not send it, and nothing new is sent to Latchflo. - An overrun is measured on the request's hold. With progressive
reconciliation on, a request is stopped only after its output has overrun
by about the size of its reservation. With it off, an input estimate that
was too low counts toward the allowance. - A request is stopped for an overrun only when the provider reports the
usage before the reply ends. OpenAI's Chat Completions and Responses
streams report usage as they end, so their requests are not stopped for
their own output. - With an
overrunAllowanceTokens, a provider's closing usage is no longer
a mid-stream report on that pool. It is absent from
tyr.progressiveReconciliation, and an overrun that only the closing
usage shows is not added totyr_pool_tokens_overrun_total. The
consumed-token counters include it. - On a pool with a queue, a waiting request takes a stopped request's slot
while that request's tokens are still charged. A waiter whose reservation
does not fit beside them is rejected with429 budget_limitinstead of
waiting. tyr_requests_totalandtyr_upstream_duration_secondsgain the
outcomevaluestopped.tyr_pool_work_in_flightand
tyr.restoration.upstreamCapacity.activeAccountingHoldsinclude stopped
requests whose upstream call has not settled.- Admission provenance events carry
limits.stop.
- A pool that starts open starts at revision
- A reply cut by a stop ends without an error event, so a client cannot tell
it from a broken connection. - Legacy environment mode has no variables for the stop settings.
config/tyr.schema.jsondescribes the new settings and states their three
cross-field rules:stopOnDrainTimeout: trueneedsdrainTimeoutMs, an
overrun allowance needsinFlightTokenBudget, and astopblock needs
admissionMode: enforce.- TypeScript embedders:
TyrRequestOutcomeandTyrAuditSettlementgain"stopped", and
TyrAdmissionAuditEventgainsstopCause.Pool.drainandPools.draintake an optional second argument,
{ stopOnTimeout }.PoolConfiggainsstop,PoolgainsstopPolicy,GatewayOptions
gainsshutdownStopOnDrainTimeout, andTyrPoolStats["tyr"]gains
stop.pools.tsexportsStopPolicyConfig,PoolDrainOptions,STOP_CAUSES
andMAX_TAKE_BACK_GRACE_MS.- The usage callback of
Adapter.createStreamExtractorand of the three
stream extractors receives a second argument,final, which is true for
usage sent with the end of a reply.sse.tsexports theUsageListener
type, andresponses-state.tsexportsstreamResponseFinished.
- No dependency change.
async-bulkhead-llmstays at 3.18.0.
v0.34.1
Changed
- Updated the exact vendored runtime dependency from
async-bulkhead-llm@3.17.0toasync-bulkhead-llm@3.18.0. This also brings
in 3.17.1, which restructured the library internally without changing its
API or behavior. The tarball invendor/is the artifact npm published. - Tyr's own behavior is unchanged. 3.18.0 adds an opt-in way to stop work the
library has already admitted. Tyr applies no stop policy and does not ask a
drain to stop work, so no admitted request is stopped.
Added
- A test that a
stoppolicy on a limits update does not reach the library.
Compatibility
- Requests, responses,
/stats,/metrics, audit events and the shutdown
drain result are the same as in 0.34.0. The 0.34.0 build on 3.17.0 and this
build were driven with the same 19 requests, covering all three provider
routes, streaming, rejections, a borrowed-slot deadline, observe mode,
runtime limit updates and a bounded drain. Everything they returned and
reported matched, apart from ids, timestamps, timings and the version. control.applyLimitsand Latchflo managed mode rebuild each limits snapshot
from the fields Tyr knows, so astopfield on an update is dropped, as any
unknown field already was. The update is still applied.- TypeScript embedders:
- The library's types gain optional fields, among them
LLMAdmissionLimits.stop,LLMDrainResult.stopped, andstoppedand
stoppedByCauseunderllmin pool stats. Tyr never sets them, and they
are absent from/stats. Pool.controller.applyLimitsstill hands its snapshot to the library as
given. A caller that passesstopthere turns on stops that Tyr 0.34.1
has no handling for, so do not pass it.
- The library's types gain optional fields, among them
- No configuration, schema or route changed.
v0.34.0
Added
- Opt-in response memory for OpenAI Responses follow-ups. A
responsesState
block in the configuration file, or the same option oncreateGateway,
enables it. It hasfile,maxEntries(default 10,000) andttlMs
(default 30 days).- Tyr records the provider-reported size of each
2xxResponses reply that
carries anidandusage, asinput_tokens + output_tokens. A request
withstore: falseand a reply without usage are not recorded. - A streamed reply is recorded only from an event that shows the response
is finished, by its status or, without one, by its event type. Usage on an
earlier event is ignored, so a stream that breaks off leaves no
undersized record. - A request that names a recorded
previous_response_idreserves its own
estimate plus the recorded size. The newx-admission-prior-tokens
response header reports that size. It is added after estimation, so
adaptive correction does not scale it, and follow-ups are not used as
calibration samples. - A follow-up that names a response Tyr has no usable record of gets
422
witherror.type: "unknown_previous_response"and
x-admission-reason: unknown_previous_response. The provider is not
called. Observe mode does not shadow this refusal. - Tyr keeps at most
maxEntriesrecords, drops the oldest first, and drops
each recordttlMsafter it was written. - Each record is appended to the state file before its reply ends, and Tyr
reads the file at startup, so a record survives a killed process. A partly
written last line is ignored. Tyr refuses to start on a file that is not a
Tyr state file or that uses a newer schema. - When a write to the state file fails, Tyr stops appending, keeps the
records in memory, counts them inpersistFailures, and retries a full
rewrite with a delay that doubles from 1 second to 5 minutes. A successful
rewrite saves every record it still holds. - With identity configured, a record belongs to the tenant and application
that created it. A follow-up from another owner gets the same422as an
unknown id.
- Tyr records the provider-reported size of each
- Per-pool
tyr.responsesStatecounters in/statsand
tyr_pool_responses_state_*series in/metrics: records, recorded,
evicted, expired, follow-ups, prior tokens, refused, and persist failures. priorTokenson the admission audit event of a follow-up, and an audit
event withreason: "unknown_previous_response"for each refusal.npm run verify:responses-state, part ofrelease:check. It starts the
built server from a configuration file, kills it withSIGKILLright after
a reply, and checks the follow-up after a restart.
Fixed
config/tyr.schema.jsonnow acceptsretryHint. The runtime has accepted
the block since 0.16.0, but the schema rejected it as an unknown key. A test
now holds the schema's top-level keys to the runtime's list, and the README
field reference lists theretryHintfields.
Compatibility
- Nothing changes unless
responsesStateis configured. Requests, responses,
/statsand/metricsare the same as in 0.33.0, and
previous_response_idis still rejected with400 invalid_request. - With
responsesStateconfigured:- Records are local to one process. A follow-up is admitted only on the
replica that recorded the response it names. - With capacity routing on, a Responses request that names a record, or
whose reply will be recorded, is admitted on the replica that received it
and is not forwarded. Astore: falserequest without
previous_response_idis still routed by capacity. tyr_admission_rejections_totalgains thereasonlabel value
unknown_previous_response, and the audit event'sreasoncan carry it.
These refusals also count as rejected decisions in
tyr_admission_decisions_totaland asadmission_rejectedin
tyr_requests_total. They never reach the pool, so
tyr_pool_rejected_totaldoes not count them.- Appends to the state file are not followed by
fsync. A record survives a
killed Tyr process, but a host crash can lose the newest records. - The directory that holds the state file must be writable, because Tyr
replaces the file by renaming a temporary file written next to it. maxEntriesis one bound shared by all callers, not a per-tenant bound.x-admission-prior-tokensand thepriorTokenscounter report the
recorded size even on a pool without a token budget, where nothing is
reserved.- A
previous_response_idofnullis treated as absent.
- Records are local to one process. A follow-up is admitted only on the
conversation,background: true, storedprompttemplates,
item_referenceand provider-managed tools are still rejected.- TypeScript embedders:
TyrAdmissionAuditEvent.reasonis now
TyrRejectReason, which adds"unknown_previous_response"to the
async-bulkhead-llmreasons.Pool.preparetakes an optionalpriorTokens
argument, andAdapter.validatetakes an optional
allowPreviousResponseIdflag. The other additions are optional fields. - No dependency change.
async-bulkhead-llmstays at 3.17.0.
v0.33.0
Added
- A self-serve evaluation that needs only Node.js 20 or newer: no API key,
Docker, Kubernetes, or Latchflo.npm run evalstarts a mock OpenAI provider that serves 8 requests at a
time and answers 429 beyond that, a local evaluation-only JWT issuer, and
Tyr witheval/tyr.eval.yaml. It sends the same workload of 3 interactive
callers and 24 batch callers straight to the provider and then through Tyr,
and prints both results with Tyr's per-class admission metrics.npm run eval:servekeeps the stack running.eval/sdk/quickstart.mjsand
eval/sdk/quickstart.pycallresponses.create(...)and Chat Completions
through Tyr with the OpenAI SDKs and print the selected admission class.npm run eval -- --upstream=openai --model=<model> --confirm-liveruns the
workload against OpenAI. At most 40 requests reach OpenAI, each limited to
16 output tokens, and the run stops at the first error that is not a
capacity 429.
EVALUATION.md, a checklist from the mock run through observe mode on real
traffic to deployment and readiness.npm run verify:evalruns a short evaluation and fails unless every
interactive request completes through Tyr, the provider rejects nothing
behind Tyr, and Tyr sheds batch work. It is part ofrelease:checkand CI.
Changed
- The README starts with the five-minute evaluation. Per-release notes now live
only in this changelog, and the Latchflo overview sits with the rest of the
managed-mode reference.
Fixed
- The README's container build example no longer wraps the vendoring notes in
its code block.
Compatibility
- No admission, configuration, wire, or dependency change.
verify:evalandrelease:checkneed local ports 8787, 9101, and 9102 free.
v0.32.0
Changed
- Tyr is now licensed under the Apache License, Version 2.0.
LICENSE.txt
contains the unmodified license text,NOTICE.txtcarries the attribution
notice, andpackage.jsondeclaresApache-2.0. Latchflo, which managed mode
talks to, remains separately licensed and is not covered. - The container image now includes
LICENSE.txt,NOTICE.txtand
THIRD_PARTY_NOTICES.txt, and carries the OCIlicensesandsource
labels. The npm package now includesNOTICE.txt. - Added
CONTRIBUTING.mdandSECURITY.md.
Removed
- The deprecated
x-korrx-grant-idandx-korrx-controller-epochresponse
headers.x-latchflo-grant-idandx-latchflo-controller-epochcarry the
same values. - The deprecated
source: "korrx"admission-provenance value. Provenance must
now usesource: "latchflo"; the validation error reads
provenance.source must be "latchflo".
Fixed
- CI now runs on pushes to
master. It was configured formain, which this
repository does not use, so only pull requests and tags were checked. - Removed the unused
eslint.config.mjs. ESLint loadseslint.config.js
first, so the second file never applied.
Compatibility
- Both removals complete the 0.12.0 deprecation. Latchflo has emitted
source: "latchflo"since 0.4.0, and no known consumer reads the
x-korrx-*headers. A client that still reads them must switch to the
x-latchflo-*pair. - Managed mode now requires Latchflo 0.4.0 or later. Latchflo 0.3.0 and
earlier emitsource: "korrx", which Tyr rejects, so their grants are never
applied and managed pools stay fail closed. - No admission, configuration or dependency change.
v0.31.0
Added
502 upstream_errorresponses include a boundedcause: { name, code },
for exampleECONNREFUSED,ECONNRESETorUND_ERR_SOCKET. Node'sfetch
reports every transport failure asfetch failed; the reason is only on the
error's cause chain, which Tyr previously discarded. The cause message is not
returned because it can contain internal addresses.tyr_upstream_failures_total{pool,provider,code}counts every upstream
failure, including streams torn after headers were sent.- One
tyr.diagnostic.v1upstream_failureJSON line is written to stderr
per failure. It carries the code, syscall, a flag for whether headers were
already sent, and a detail message bounded to 300 characters. It is emitted
regardless oftelemetry.audit.enabled, because without it the transport
reason behind a 502 cannot be recovered.telemetry.diagnosticSink
overrides the sink for embedding and tests.
Why
- In a
moflux-benchvLLM Metal run, three requests failed as
502 upstream_error "fetch failed". vLLM logged none of them, and Tyr kept no
cause, so the failure could not be attributed.
Compatibility
- No admission, configuration, Latchflo wire, or dependency change.
async-bulkhead-llm@3.17.0is unchanged. - The 502 body gains one field; existing
typeandmessageare unchanged.
v0.30.0
Added
- Added optional per-class
borrowedAdmissionSlotpolicy with the explicit
deadline_abandonmentrelease mechanism and a bounded post-admission
deadlineMs. - Added exact concurrency/token borrowing attribution to admission contexts,
successful-admission provenance, response headers, and audit events. - Added
504 borrowed_admission_deadlineresponses that state the released
local resource, cancellation request, deadline, and unverified upstream
reclamation status. - Added resource-specific restoration state to
/statsand bounded Prometheus
series for local slot releases, upstream cancellation requests, unsettled
admitted work, and per-class borrowed-slot deadline counts. - Added
tyr.restoration.admissionSlots.releasedByCause, splitting early slot
returns intodeadline(expired lease) andmanual(explicit
abandonBorrowedConcurrency()), so a lease configured too tight is
distinguishable from deliberate shedding. - Added
verify:borrowed-restorationand integration coverage for split local
slot/token release, protected-class admission after restoration, drain, HTTP,
audit, metrics, and invalid policy rejection. - Added the additive Latchflo registration capability
borrowedAdmissionSlotDeadlines: true. - Added
verify:vendor-provenance, an online CI check that each vendored
tarball is the artifact npm published for that exactname@version. The
existing offlineverify:vendorcompares a tarball to its lockfile entry,
and the two can be regenerated together from a localnpm pack, so it
cannot detect a pre-release build claiming a released version.
Changed
- Updated the exact vendored runtime dependency from
async-bulkhead-llm@3.16.0toasync-bulkhead-llm@3.17.0. - Scoped the upstream cancellation-request count and
tyr_pool_borrowed_admission_slot_deadlines_totalto deadline expiries.
Only an expired lease aborts the callback signal, so a manual abandonment is
no longer reported as a cancellation request. The local-slot release series
still counts every early return, and the per-class counter keeps counting
every early return because upstream exposes no per-class cause split. - Kept Tyr-only deadline policy fixed in local configuration while Latchflo
continues to replace numeric admission-class grants atomically.
Fixed
- Re-vendored all three runtime tarballs from the npm registry so each is
byte-identical to its published release. The previously committed
async-bulkhead-llm@3.17.0tarball was a pre-release build missing the
published release'scausesplit on borrowed-slot abandonment; the
async-bulkhead-tsandyamltarballs were repacks that differed in
packaging only.
Safety
- Deadline expiry returns only borrowed Tyr-local concurrency. The linked
callback receives an abort signal, while its token reservation remains held
until local callback settlement. - No-timeout drain waits for that final settlement after the local slot is
returned. A callback that never settles can therefore hold unbounded shutdown
open;shutdown.drainTimeoutMsreports it as outstanding and bounds Tyr's
wait without claiming that upstream execution stopped. - Upstream cancellation is reported as
unverified, never as reclaimed
capacity. Protecting provider account limits, model queues, or accelerators
still requires an unlent floor or another independently enforceable release
mechanism.
Compatibility
- Classes without
borrowedAdmissionSlotretain non-preemptive drain behavior. - The new Latchflo capability, provenance fields, headers, audit fields, stats,
and metrics are additive. Existing provider routes and request wire shapes are
unchanged.
v0.29.0
Added
- Added admission-gated
POST /v1/responseson the configured OpenAI upstream.
The route preserves the native Responses wire shape and shares Tyr's existing
pool selection, identity, admission-class, routing, telemetry, timeout, and
provider-header forwarding pipeline. - Added Responses admission projection for string/message-array
input,
instructions,max_output_tokens, request-visiblefunctionandcustom
tools, text/reasoning configuration, and multimodalinput_image/
input_fileblocks. - Added non-streaming
usage.input_tokens/usage.output_tokensreconciliation
and semantic SSE usage extraction from Responses lifecycle events such as
response.completed. - Added
verify:openai-responsesexecutable coverage for projection, raw request
passthrough, OpenAI credential headers, non-streaming and streaming usage, and
conservative hidden-state rejection.
Safety
- The initial Responses implementation rejects
previous_response_id,
server-sideconversation, storedprompttemplates,item_reference,
background: true, and provider-managed retrieval/computer tools. Those modes
can add prompt or execution state that is not visible when Tyr must reserve
capacity before provider invocation; rejecting them avoids presenting an
under-reserved request as token-safe.
Documentation
- Updated the README, route/configuration references, examples, container tags,
roadmap, and verification guide for 0.29.0. - Corrected stale wording that still described Latchflo 0.8.x as current and
moved multi-controller coordination hardening behind self-serve evaluation and
demonstrated deployment demand.