Repository navigation
v0.124.4 #1880
v0.124.4
#1880
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
What
Nika 0.124.4 lets the operator of a server decide once what may run on a route the catalog does not
price.
nika serve --cost-policytakes one rule per route: how many requests a run may send, howmany output tokens a request may ask, how long it may wait, and how many runs fit in a window. A job
whose run fits its rule runs with no cost review; a run outside its rule, a route no rule names and
the run past a full window are refused before anything is sent, and a rule overrides no ceiling. The
job's settlement, its trace and the cost journal say that a rule admitted the run and under which
bounds. A server started without the flag behaves and serves its contract exactly as before; the
language and the SDK protocol are unchanged, and a server that holds a policy lists
costStandingPolicyV1on/health. The tests of this release gate the model call off or inject theaccess plan: no provider was called under a rule before the tag. The release also ends a late
session offer as its deadline and moves
rustixpast an unsoundness advisory.Added
nika serve --cost-policyadmits runs on an unpriced route with noper-run cost review. A workflow whose model the catalog does not price
(measured on 0.124.3 with
scaleway/deepseek-v4-flash-0731) was refusedunder any USD ceiling, and with the ceiling disarmed every job still
needed
POST /v2/cost-reviews, a humanapprove_onceand one jobcarrying that review, a review living five minutes. The operator now
records that decision once, at startup:
--cost-policy 'PROVIDER/MODEL:requests=N,output-tokens=N,timeout=SECONDS,runs=N/PERIOD'(repeatable, requires
--bind). A job on a named route whose run fits therule runs with no review; a run outside the rule, a route no rule names
and the run past a full window are still refused before anything is sent.
The authority is the server's startup composition only: no request field,
job body or workflow key grants or widens it, and the language is
unchanged. A rule overrides no ceiling. Without a declared price every
ceiling the job is under must be absent (
--run-cost-ceiling none, neverimplied), so scheduled occurrences stay refused; with
input-usd=USD,output-usd=USD(an operator's estimate per million tokens,optionally
request-bytes=N) the run, a scheduled occurrence included,is admitted under a present ceiling only when its declared worst case
fits. The run's cost journal, its trace
and the new
cost_admissionof the job's settlement(
settlement.cost_admission,nika/cost-admission@1) name therule, its bounds, whether the price is
unknownorhost_declaredandthe ceiling evidence; a call whose cost is unknown is never recorded as
zero. The job and its events gain no key of their own, so a published SDK,
which reads both closed and a settlement open, reads such a job as it
reads any other. Runs per window are counted in
.nika/standing-cost-runs.jsonandsurvive restarts; a second run on the route waits for the first instead of
failing on the project's cost lease; and a request that left without a
usable answer still blocks every later run on an unpriced route until it
is reconciled. Health lists
costStandingPolicyV1andGET /v1/openapi.jsondescribes the new fields only on a server that holds apolicy; beside
--cost-review, a review of a run the policy admitsanswers
review_required: falsewith the rule. Without--cost-policyevery behaviour, refusal and served document is unchanged. A journal row
written under a rule carries keys an engine before this release does not
read: after a downgrade, that engine refuses unknown-cost runs in the
project until the journal is moved aside. A server that holds a policy
archives a cleared cost journal that nears its 1 MiB read bound to
.nika/inference-cost-observations.<digest>.ndjsonbefore the run thatneeds the room.
Fixed
first. A session offer (
GET /v1/access-offers/{name},nika_harness::session_offer) is bounded by its own deadline, and thetransport's idle bound arms on the same allowance a little later. When the
process was polled late, the idle bound could be observed first: the row
then carried
NIKA-1804(session death) instead ofNIKA-1803(adaptersilent), and one harness test failed on a loaded runner. An error returned
at or after the reading's deadline now ends as that deadline. An offer that
was read is kept, and an error returned in time is still the adapter's own
answer.
Security
rustixis past its extended-attribute unsoundness advisory. Given azero-length buffer,
getxattr,listxattrand theirlandfformsmarked bytes they never wrote as initialized in 1.1.4
(RUSTSEC-2026-0486); 1.1.6 returns an empty result instead. The engine's
own code calls none of those functions, but the audit denies unsoundness
in every lockfile, so the advisory refused each push. The workspace pin
and the three lockfiles (the root,
fuzz/andcrates/nika-acp/) movetogether. The 0.38 series, which the advisory does not affect, stays
where it was.
Install
Tarballs below: macOS arm64 / x64 · Linux x64 / arm64, plus
SHA256SUMS.Verify: three independent proofs
Provenance
Built from tag
v0.124.4byrelease.ymlon GitHub-hosted runners. Provenance is published twice: GitHub's native
build attestation (proof 2) and the SLSA generator's
multiple.intoto.jsonlrelease asset (proof 3). The release itself is a claim on the
machine-verified timeline: https://nika.sh/timeline
What's Changed
Full Changelog: v0.124.3...v0.124.4
This discussion was created from the release v0.124.4.
All reactions