Skip to content

Releases

v0.36.1

Choose a tag to compare

@github-actions github-actions released this 30 Nov 03:54

Changed

  • Updated the exact vendored runtime dependency from
    async-bulkhead-llm@3.18.0 to async-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 in vendor/ 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's protectedConcurrent floor 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
      get 429 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.drain and Pools.drain resolve when the last queued request behind
      a zero maxConcurrent times out or is aborted. Before, such a drain
      stayed pending although nothing was running or waiting.
  • Admission provenance events take their limits from 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 under captureFailures and recorded no event
    for it.
    Tyr keeps the limits of each pool's 64 most recent revisions for this.
  • tyr_admission_queue_wait_seconds ends when the slot is granted. The
    reservation made in that step and the resumption of the request after it now
    count toward tyr_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 upstream 500, 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 protectedConcurrent floor 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, in x-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.totalAdmitted and bulkhead.totalReleased in /stats do not
      count it.
    • A drain behind a zero maxConcurrent resolves as described above. Tyr's
      own shutdown closes its pools before it drains them, which rejects every
      queued request, so it was not affected.
  • 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

Choose a tag to compare

@github-actions github-actions released this 27 Nov 07:28

Added

  • A release tag publishes a container image to the GitHub Container Registry
    at ghcr.io/janbalangue/tyr-admission-controller, for linux/amd64 and
    linux/arm64. The image is tagged with its exact version only; no latest
    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 docs builds it,
    and a Docs workflow publishes it to GitHub Pages from master.

Changed

  • The minimum Node.js version is 22. Node.js 20 reached end-of-life on
    2026-04-30. engines requires >=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 of mofluxhq/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
    are Logger in latchflo.ts, PoolState in retry-hint.ts and
    AdvisoryStats in pools.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 set BUILDPLATFORM.
  • 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 in guides/.
  • The npm pack tarball includes guides/.
  • The API reference documents TypeScript interfaces that are not yet stable.

v0.35.0

Choose a tag to compare

@github-actions github-actions released this 24 Nov 08:00

Added

  • Opt-in stopping of admitted requests, made by async-bulkhead-llm@3.18.0.
    Nothing is stopped unless it is configured.
    • pools[].stop.overrunAllowanceTokens stops 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.takeBackGraceMs stops 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.stopOnDrainTimeout stops the requests still running when
      shutdown.drainTimeoutMs elapses, before Tyr closes the remaining
      connections. It requires drainTimeoutMs and applies to every pool.
    • A stopped request that has been sent no part of its reply gets 503 with
      error.type: "admission_stopped", error.cause,
      x-admission-reason: stopped and x-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.
    • createGateway takes the same settings: stop on a pool, and
      shutdownStopOnDrainTimeout.
  • Stop reporting:
    • /stats: limits.stop, and tyr.stop with the configured policy,
      stopped and stoppedByCause.
    • /metrics: tyr_pool_stopped_total{pool,cause},
      tyr_pool_admission_class_stopped_total,
      tyr_pool_stop_overrun_allowance_tokens and
      tyr_pool_stop_take_back_grace_seconds.
    • Admission audit events with settlement: "stopped" and a stopCause.
    • stopped in the shutdown() result and in the drain-deadline log line,
      when stopOnDrainTimeout is on.
  • npm run verify:stop, part of release: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 a SIGTERM shutdown of the built server that stops a request,
    answers 503 and 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_deadline or
    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.outputSafetyMarginTokens no 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_total and could lift tyr_pool_tokens_in_flight
    above the budget. The margin is now capped at the request's output
    reservation.

Compatibility

  • Without a stop block and without shutdown.stopOnDrainTimeout, no request
    is stopped, /stats and /metrics have no stop fields or series, and the
    shutdown result has no stopped.
    • 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 the upstream_failure diagnostic 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.
  • With a stop block:
    • A pool that starts open starts at revision max(limitsRevision, 1),
      because revision 0 cannot carry a stop policy. A pool with
      limitsRevision 0 or omitted starts at revision 1, reports it in
      x-admission-revision and /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 stop field on a runtime limits update is still ignored. Every update
      gets the pool's configured policy. Pool.controller.applyLimits no longer
      hands a stop field to the library either.
    • A stop block is refused with admissionMode: observe, and an empty
      stop block is refused.
    • In Latchflo managed mode, takeBackGraceMs also 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 to tyr_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 with 429 budget_limit instead of
      waiting.
    • tyr_requests_total and tyr_upstream_duration_seconds gain the
      outcome value stopped. tyr_pool_work_in_flight and
      tyr.restoration.upstreamCapacity.activeAccountingHolds include stopped
      requests whose upstream call has not settled.
    • Admission provenance events carry limits.stop.
  • 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.json describes the new settings and states their three
    cross-field rules: stopOnDrainTimeout: true needs drainTimeoutMs, an
    overrun allowance needs inFlightTokenBudget, and a stop block needs
    admissionMode: enforce.
  • TypeScript embedders:
    • TyrRequestOutcome and TyrAuditSettlement gain "stopped", and
      TyrAdmissionAuditEvent gains stopCause.
    • Pool.drain and Pools.drain take an optional second argument,
      { stopOnTimeout }.
    • PoolConfig gains stop, Pool gains stopPolicy, GatewayOptions
      gains shutdownStopOnDrainTimeout, and TyrPoolStats["tyr"] gains
      stop.
    • pools.ts exports StopPolicyConfig, PoolDrainOptions, STOP_CAUSES
      and MAX_TAKE_BACK_GRACE_MS.
    • The usage callback of Adapter.createStreamExtractor and of the three
      stream extractors receives a second argument, final, which is true for
      usage sent with the end of a reply. sse.ts exports the UsageListener
      type, and responses-state.ts exports streamResponseFinished.
  • No dependency change. async-bulkhead-llm stays at 3.18.0.

v0.34.1

Choose a tag to compare

@github-actions github-actions released this 23 Nov 22:01

Changed

  • Updated the exact vendored runtime dependency from
    async-bulkhead-llm@3.17.0 to async-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 in vendor/ 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 stop policy 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.applyLimits and Latchflo managed mode rebuild each limits snapshot
    from the fields Tyr knows, so a stop field 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, and stopped and
      stoppedByCause under llm in pool stats. Tyr never sets them, and they
      are absent from /stats.
    • Pool.controller.applyLimits still hands its snapshot to the library as
      given. A caller that passes stop there turns on stops that Tyr 0.34.1
      has no handling for, so do not pass it.
  • No configuration, schema or route changed.

v0.34.0

Choose a tag to compare

@github-actions github-actions released this 22 Nov 23:54

Added

  • Opt-in response memory for OpenAI Responses follow-ups. A responsesState
    block in the configuration file, or the same option on createGateway,
    enables it. It has file, maxEntries (default 10,000) and ttlMs
    (default 30 days).
    • Tyr records the provider-reported size of each 2xx Responses reply that
      carries an id and usage, as input_tokens + output_tokens. A request
      with store: false and 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_id reserves its own
      estimate plus the recorded size. The new x-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
      with error.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 maxEntries records, drops the oldest first, and drops
      each record ttlMs after 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 in persistFailures, 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 same 422 as an
      unknown id.
  • Per-pool tyr.responsesState counters in /stats and
    tyr_pool_responses_state_* series in /metrics: records, recorded,
    evicted, expired, follow-ups, prior tokens, refused, and persist failures.
  • priorTokens on the admission audit event of a follow-up, and an audit
    event with reason: "unknown_previous_response" for each refusal.
  • npm run verify:responses-state, part of release:check. It starts the
    built server from a configuration file, kills it with SIGKILL right after
    a reply, and checks the follow-up after a restart.

Fixed

  • config/tyr.schema.json now accepts retryHint. 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 the retryHint fields.

Compatibility

  • Nothing changes unless responsesState is configured. Requests, responses,
    /stats and /metrics are the same as in 0.33.0, and
    previous_response_id is still rejected with 400 invalid_request.
  • With responsesState configured:
    • 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. A store: false request without
      previous_response_id is still routed by capacity.
    • tyr_admission_rejections_total gains the reason label value
      unknown_previous_response, and the audit event's reason can carry it.
      These refusals also count as rejected decisions in
      tyr_admission_decisions_total and as admission_rejected in
      tyr_requests_total. They never reach the pool, so
      tyr_pool_rejected_total does 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.
    • maxEntries is one bound shared by all callers, not a per-tenant bound.
    • x-admission-prior-tokens and the priorTokens counter report the
      recorded size even on a pool without a token budget, where nothing is
      reserved.
    • A previous_response_id of null is treated as absent.
  • conversation, background: true, stored prompt templates,
    item_reference and provider-managed tools are still rejected.
  • TypeScript embedders: TyrAdmissionAuditEvent.reason is now
    TyrRejectReason, which adds "unknown_previous_response" to the
    async-bulkhead-llm reasons. Pool.prepare takes an optional priorTokens
    argument, and Adapter.validate takes an optional
    allowPreviousResponseId flag. The other additions are optional fields.
  • No dependency change. async-bulkhead-llm stays at 3.17.0.

v0.33.0

Choose a tag to compare

@github-actions github-actions released this 23 Sep 22:01

Added

  • A self-serve evaluation that needs only Node.js 20 or newer: no API key,
    Docker, Kubernetes, or Latchflo.
    • npm run eval starts a mock OpenAI provider that serves 8 requests at a
      time and answers 429 beyond that, a local evaluation-only JWT issuer, and
      Tyr with eval/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:serve keeps the stack running. eval/sdk/quickstart.mjs and
      eval/sdk/quickstart.py call responses.create(...) and Chat Completions
      through Tyr with the OpenAI SDKs and print the selected admission class.
    • npm run eval -- --upstream=openai --model=<model> --confirm-live runs 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:eval runs 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 of release:check and 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:eval and release:check need local ports 8787, 9101, and 9102 free.

v0.32.0

Choose a tag to compare

@github-actions github-actions released this 23 Sep 04:23

Changed

  • Tyr is now licensed under the Apache License, Version 2.0. LICENSE.txt
    contains the unmodified license text, NOTICE.txt carries the attribution
    notice, and package.json declares Apache-2.0. Latchflo, which managed mode
    talks to, remains separately licensed and is not covered.
  • The container image now includes LICENSE.txt, NOTICE.txt and
    THIRD_PARTY_NOTICES.txt, and carries the OCI licenses and source
    labels. The npm package now includes NOTICE.txt.
  • Added CONTRIBUTING.md and SECURITY.md.

Removed

  • The deprecated x-korrx-grant-id and x-korrx-controller-epoch response
    headers. x-latchflo-grant-id and x-latchflo-controller-epoch carry the
    same values.
  • The deprecated source: "korrx" admission-provenance value. Provenance must
    now use source: "latchflo"; the validation error reads
    provenance.source must be "latchflo".

Fixed

  • CI now runs on pushes to master. It was configured for main, which this
    repository does not use, so only pull requests and tags were checked.
  • Removed the unused eslint.config.mjs. ESLint loads eslint.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 emit source: "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

Choose a tag to compare

@github-actions github-actions released this 23 Sep 00:42

Added

  • 502 upstream_error responses include a bounded cause: { name, code },
    for example ECONNREFUSED, ECONNRESET or UND_ERR_SOCKET. Node's fetch
    reports every transport failure as fetch 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.v1 upstream_failure JSON 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 of telemetry.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-bench vLLM 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.0 is unchanged.
  • The 502 body gains one field; existing type and message are unchanged.

v0.30.0

Choose a tag to compare

@github-actions github-actions released this 03 Sep 20:05

Added

  • Added optional per-class borrowedAdmissionSlot policy with the explicit
    deadline_abandonment release 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_deadline responses that state the released
    local resource, cancellation request, deadline, and unverified upstream
    reclamation status.
  • Added resource-specific restoration state to /stats and 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 into deadline (expired lease) and manual (explicit
    abandonBorrowedConcurrency()), so a lease configured too tight is
    distinguishable from deliberate shedding.
  • Added verify:borrowed-restoration and 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 exact name@version. The
    existing offline verify:vendor compares a tarball to its lockfile entry,
    and the two can be regenerated together from a local npm 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.0 to async-bulkhead-llm@3.17.0.
  • Scoped the upstream cancellation-request count and
    tyr_pool_borrowed_admission_slot_deadlines_total to 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.0 tarball was a pre-release build missing the
    published release's cause split on borrowed-slot abandonment; the
    async-bulkhead-ts and yaml tarballs 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.drainTimeoutMs reports 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 borrowedAdmissionSlot retain 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

Choose a tag to compare

@github-actions github-actions released this 30 Aug 22:56

Added

  • Added admission-gated POST /v1/responses on 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-visible function and custom
    tools, text/reasoning configuration, and multimodal input_image /
    input_file blocks.
  • Added non-streaming usage.input_tokens / usage.output_tokens reconciliation
    and semantic SSE usage extraction from Responses lifecycle events such as
    response.completed.
  • Added verify:openai-responses executable 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-side conversation, stored prompt templates, 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.