Skip to content

v0.124.4

Choose a tag to compare

@github-actions github-actions released this 12 Nov 09:58
9753cf4

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-policy takes one rule per route: how many requests a run may send, how
many 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
costStandingPolicyV1 on /health. The tests of this release gate the model call off or inject the
access plan: no provider was called under a rule before the tag. The release also ends a late
session offer as its deadline and moves rustix past an unsoundness advisory.

Added

  • nika serve --cost-policy admits runs on an unpriced route with no
    per-run cost review.
    A workflow whose model the catalog does not price
    (measured on 0.124.3 with scaleway/deepseek-v4-flash-0731) was refused
    under any USD ceiling, and with the ceiling disarmed every job still
    needed POST /v2/cost-reviews, a human approve_once and one job
    carrying 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 the
    rule 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, never
    implied), 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_admission of the job's settlement
    (settlement.cost_admission, nika/cost-admission@1) name the
    rule, its bounds, whether the price is unknown or host_declared and
    the 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.json and
    survive 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 costStandingPolicyV1 and GET /v1/openapi.json describes the new fields only on a server that holds a
    policy; beside --cost-review, a review of a run the policy admits
    answers review_required: false with the rule. Without --cost-policy
    every 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>.ndjson before the run that
    needs the room.

Fixed

  • A silent adapter reads as unavailable whichever timer is observed
    first.
    A session offer (GET /v1/access-offers/{name},
    nika_harness::session_offer) is bounded by its own deadline, and the
    transport'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 of NIKA-1803 (adapter
    silent), 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

  • rustix is past its extended-attribute unsoundness advisory. Given a
    zero-length buffer, getxattr, listxattr and their l and f forms
    marked 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/ and crates/nika-acp/) move
    together. The 0.38 series, which the advisory does not affect, stays
    where it was.

Install

brew install supernovae-st/tap/nika          # macOS · Linux
curl -LsSf https://nika.sh/install.sh | sh   # script install
docker run --rm ghcr.io/supernovae-st/nika:0.124.4 --version

Tarballs below: macOS arm64 / x64 · Linux x64 / arm64, plus SHA256SUMS.

Verify: three independent proofs

# 1 · checksum: the bytes you hold are the bytes CI hashed
sha256sum -c SHA256SUMS --ignore-missing     # macOS: shasum -a 256 -c

# 2 · attestation: GitHub-signed build provenance for this exact artifact
gh attestation verify nika-<platform>-0.124.4.tar.gz --repo supernovae-st/nika

# 3 · SLSA provenance: the intoto asset, verifiable offline
slsa-verifier verify-artifact nika-<platform>-0.124.4.tar.gz \
  --provenance-path multiple.intoto.jsonl \
  --source-uri github.com/supernovae-st/nika --source-tag v0.124.4

Provenance

Built from tag v0.124.4 by release.yml
on GitHub-hosted runners. Provenance is published twice: GitHub's native
build attestation (proof 2) and the SLSA generator's multiple.intoto.jsonl
release asset (proof 3). The release itself is a claim on the
machine-verified timeline: https://nika.sh/timeline

What's Changed

  • fix(nika-harness): end a late session offer as its deadline by @ThibautMelen in #1873
  • chore(spec-pin): the pin and the pack follow the spec by @github-actions[bot] in #1874
  • fix(deps): move rustix 1.1 to its patched 1.1.6 release by @ThibautMelen in #1875
  • feat(serve): admit unpriced-route runs under a standing cost policy by @ThibautMelen in #1876
  • chore(release): prepare 0.124.4 by @ThibautMelen in #1879

Full Changelog: v0.124.3...v0.124.4