Repository navigation
v0.124.0
What
Nika 0.124.0 opens the 0.124 release line with media capabilities that workflows need, so a
contact sheet or a narration no longer needs exec magick montage or exec /usr/bin/say:
nika:image_compose, the 30th builtin, lays 1 to 64 PNG images out as one grid, row or column,
and nika:tts_generate speaks with no key, offline, through provider: system. An agent: task
on a Codex seat hands the images it generates to the next task as values (images:, saved inside
permits.fs.write from the bytes its own session received). Over ACP
(run.access.protocol: acp), an infer: task on a Codex or Claude Code seat carries a schema:
and its vision: files, and nika check blocks what the seat cannot carry instead of passing
what the run refuses; on a direct seat route, without that protocol, the run still sends no
vision:, temperature, max_tokens or thinking, and nika check does not say so.
nika doctor and nika welcome name the nika that is running and every other copy on PATH,
and the first parse refusals a newcomer meets teach the shape they refused and point at the line.
Some workflows that 0.123.2 checked clean or ran unattended are now refused or paused.
NIKA-SEC-009 follows untrusted content through a child workflow call and through a file a
builtin reads; a blocking nika:prompt that dominates the path still clears it, but a gate
inside the child does not count for its caller: put the gate in front of the call.
NIKA-SEC-014 holds a confirm gate in front of a child workflow that acts: a bare
after: { ask: success } edge still runs the child on « no », so bind the answer on the call
(with: { go: "${{ tasks.ask.output }}" } and when: ${{ with.go == true }}), as an inline
effect already needs. On the openai provider, nika check refuses a temperature: on
gpt-5, gpt-5-mini, gpt-5-nano and the o-series, which accept only the default: drop it
there. On a Codex seat, a command that asks to leave its sandbox always pauses for you, under
permits.exec: true too, and a turn Codex reports as failed fails its task instead of
succeeding with the error as its output; what Codex does without asking, such as opening pages
with its hosted web tool or calling MCP tools marked read-only, is stated by nika check, not
bounded by permits:. On a seat, one --answer now decides one ask per task: an attempt that
retry: replays pauses on its ask instead of reusing the answer.
A vision: file is now a read inside permits.fs.read, a breaking change. 0.123.2 sent any file
an infer: task named to the model provider, under any permits: or none, and read a relative
path from the process directory. The run now reads each file under the workflow's own boundary,
on its resolved path, before any provider call, and fails NIKA-SEC-004 outside it. nika check
refuses an ungranted literal path (NIKA-AUTH-006 with no permits: block, NIKA-SEC-004
outside a declared one), and refuses a computed path, or a computed images: { save: }, under a
boundary that grants no path at all (no block, permits: {}, an empty fs.read or fs.write).
Grant each file in permits.fs.read: nika check --infer-permits prints the block for a literal
path, but for a computed one only a note and a partial fs, so the grant must cover every file
the run may name, for example fs: { read: ["./in/**"] }. A source: url entry needs no grant,
a secret in a vision entry now needs egress: [{ to: "infer" }] like one in a prompt, and
NIKA-SEC-009 follows untrusted content that picks a vision file, as for a nika:read path.
A run under a cost cap now bills paid media at dated public prices and refuses what it cannot
price, a breaking change for capped runs, scheduled beats included: a beat always runs under
its plafond:, and a project ceiling: caps a plain nika run. Under a cap,
nika:image_generate on OpenAI gpt-image-2 or one of the five Gemini image models the catalog
prices, and nika:tts_generate on OpenAI tts-1 or tts-1-hd or a priced ElevenLabs model, are
floored at launch and billed against the cap; OpenAI's gpt-image-2.5-sunburst and
gpt-image-2.5-flare publish token rates only, so they are billed from the usage they report and
refused at launch only under a zero cap. 0.123.2 ran these OpenAI, Gemini and ElevenLabs calls
with no bound (xAI images were already floored and metered). nika check shows each paid media
call's floor, rate and price date, or says it is METERED, UNPRICED or DECIDED AT RUN. A
paid call the catalog cannot price is refused before any request, with NIKA-1709 at launch, or
with NIKA-1704 when only the run decides its provider or model or an agent: makes it through
its tools: OpenAI's default voice gpt-4o-mini-tts, gpt-image-1.5 and gpt-image-1-mini
(which OpenAI shuts down on 2026-12-01), and any model id the catalog does not list. nika arm
shows a beat on one of them UNREADY. For speech, set model: tts-1 or tts-1-hd (OpenAI shuts
all three of its speech models down on 2027-01-06), use a priced elevenlabs model, the keyless
provider: system voice, which bills no provider and runs under any cap as unpriced local work,
or local / mock; for images, use gpt-image-2 (the default) or a 2.5 model. A paid call the
catalog cannot price runs only with no cap, and the settlement then counts it unpriced.
The file format and its nine top-level keys are unchanged and the SDK machine protocol stays 2;
the language gains nika:image_compose, provider: system and the images: field of agent:.
0.124 is the current release line. Work stays focused on maintenance, security and the media
capabilities workflows need; native video is planned for 0.125. Known limits are listed in plain
words, each with a way around it:
Known limits in 0.124. In short: 0.124.0 makes no
video; nika:image_compose reads PNG only; the system voice needs macOS say or Linux
espeak-ng; only a Codex seat delivers images to images:; a seat carries no temperature,
max_tokens or tools: whitelist; the VS Code extension stays at 0.120.
Added
nika doctorandnika welcomename whichnikais running. A
shadowed install used to read healthy: no path, no installer, no other
copy. Doctor now prints the running binary's resolved path, version,
commit and installer (read from the path:install.sh,homebrew,
npm-global,npm-payload,cargo,nix,release-dir,
source-build, elseunknown), says what typingnikaruns, warns
when that is another build, and lists every othernikaon PATH with
the version it reports. Each copy is asked--versionunder a
two-second deadline: one that hangs is reported as unknown, one that
fails warns, neither is fatal. A relative or literal-~PATH entry is
never executed, and a copy that is asked runs from/with no
credential in its environment and no relative PATH entry; its whole
process group is killed after the answer. A removal is suggested only
for a known install layout.--jsonaddsrunning,others[]and
others_truncated;nika welcomesays the same in one line under
this binaryand carries the same keys.- An agent application's images are task values. An
agent:task on a seat can declare
images:(spec 02 §Harness images):.outputbecomes{ message, images }, each image with
itsindex,path,sha256,size_bytes,mime_type,widthandheight, and
images: { save: <path> }has Nika write the received bytes throughnika:write, inside
permits.fs.write: every path the save can take (image n at-n, up to four) is judged
before any file is written, and a save rides the same-path law (NIKA-SEC-012) like a
nika:write.checktypes.outputas{ message, images }, so
.output.images[0].pathand.output.message.<key>resolve and a schema key read at the
top is refused. Only the bytes sent on the task's own session count: the path an
application reports (Codex's~/.codex/generated_images, which every session shares) is
never opened, so a workflow no longer asks Codex to copy its image and cannot pick up another
session's. A save with no image received fails the newNIKA-AGENT-007. The image's
agent_image_observedframe records thesaved_path, andnika servelists the file among
the run's artifacts with the received digest. On an API or local model,checkand the run
refuseimages:. nika:image_composeassembles several PNG images into one. The 30th
builtin (stdlib §Media graduate #5) lays an ordered list of 1 to 64 inputs
out as agrid(columns and rows derived from the count when absent), a
rowor acolumn; each image keeps its own size, is scaled to fit its
cell with the aspect kept (fit), or is scaled and center-cropped to fill
it (fill), withgap,paddingand abackgroundcolour. Like
nika:image_fxit is pure, zero-dependency pixel work: the same input
bytes and args give the same PNG bytes, theimage_compose/v1recipe rides
the tEXt chunk, and the output carries path, sha256, width and height,
never bytes. Every input is anfs.readthatnika checkjudges, infers
and counts as a use, andout:anfs.write; caps on each input's side,
the summed input pixels, each scaledfit/fillbox and the canvas fail
NIKA-BUILTIN-IMAGE_COMPOSE-005from the PNG headers before any
decompression (an input count outside 1..=64 is an argument,-001), an
input with a second IHDR is-004, and each of the six codes has its
nika explainlesson. Its inputs are file reads theNIKA-SEC-009
content flow follows, likenika:image_fx's. A contact sheet no longer needsexec magick montage.nika:tts_generatespeaks with no key throughprovider: system. The
host's own synthesizer, offline: macOS/usr/bin/say, or Linux
espeak-ngfound in an absolute directory of the engine'sPATH. The
engine starts it itself as part of the builtin, with the text on standard
input, so the workflow needs nopermits.exec. The text is spoken as
text: every[[thatsayreads as an embedded command ([[volm 0]]
would mute the file) orespeak-ngas phonemes is broken by a space, and
the audio is capped at 64 MiB. The WAV still lands underoutput_dir:
throughpermits.fs.write.nika checknames the program in its plan and
refuses a literalmodel:other thansay/espeak-ngor a voice that is
not a host voice name, as the run does. Every start is journaled as a
permit_checkedframe on thebuiltinplane, and the cost is reported as
unpriced local work (cost_usd: null·cost_unpriced: local_modelon
the output and the task's frame), never as priced or free; only this
builtin can label the run's cost that way. A named voice must be installed
(saywould otherwise read with its default voice), and a host with no
synthesizer refusesNIKA-BUILTIN-TTS_GENERATE-002naming what is
missing, with no fallback to another provider. A narration no longer needs
exec /usr/bin/say.
Changed
- Capped runs bill common paid media at dated catalog prices, and refuse what the catalog cannot price, beats included. A beat always runs under its mandatory
plafond:, and a plainnika runin a project withceiling:runs under that cap. Under a cap,nika:image_generateon OpenAIgpt-image-2(the default) or Gemini (gemini-3.1-flash-image, the default,gemini-3-pro-image,gemini-2.5-flash-image,gemini-3.1-flash-lite-image,gemini-nano-banana-2.1) andnika:tts_generateon OpenAItts-1ortts-1-hdor on ElevenLabs (its models mapped to the price page's families) now run, floored at launch and billed against the cap; OpenAI'sgpt-image-2.5-sunburstandgpt-image-2.5-flarepublish token rates only, so they run billed from the usage they report, refused only under a zero cap. 0.123.2 ran these OpenAI, Gemini and ElevenLabs calls with no bound (xAI images were already floored and metered). A paid call the catalog cannot price is refused before any request (nika armshows the beat UNREADY with NIKA-1709): OpenAI's default voicegpt-4o-mini-tts(no per-call price is published and its speech response reports no usage),gpt-image-1.5andgpt-image-1-mini(shut down by OpenAI on 2026-12-01), and any model id the catalog does not list; the refusal names every model the catalog prices. A beat on the default OpenAI voice is therefore UNREADY: setmodel: tts-1ortts-1-hd(OpenAI shuts every speech model down on 2027-01-06), use a pricedelevenlabsmodel, the keylessprovider: systemvoice (it bills no provider and settles as unpriced local work), orlocal/mock. Only a run with no cap at all makes a paid call the catalog cannot price. - The SDK guard reads what the published
@supernovae-st/nika0.123.2 closes.
published_sdk.jsonis re-read from that package'sdist. Every closed set of 0.123.1 is
unchanged, and one is new: an artifact manifest'sverdictmust besealedoranchored,
the two valuesGET /v1/jobs/{id}/artifactsserves. The manifest and its entries are read
open otherwise, so a later key rides through. - The embedded language pack follows nika-spec
5cd95cd.SPEC_PIN
andcrates/nika-pack/packadvance together fromc5dcd97, the commit
0.123.2 embeds. nika-spec#397 (aac8de5) adds the contract of
nika:image_composeand the keylesssystemvoice:canon.yamlcounts 30
builtins, the schema's builtin enum and the stdlib gain
nika:image_compose, its caps list each input side, the summed pixels,
each scaled box and the canvas, thesystemvoice speaks its text as text
with its audio capped at 64 MiB, and theimage-compose-sheetexample
joins the pack. nika-spec#399 (ebc6448) makes the images an agent
application delivers on a seat a value of theagent:task: the schema
gainsimages: { save: }, chapter 02 its §Harness images, chapter 17 the
saved_pathof a saved image and the error registryNIKA-AGENT-007(112
codes), and a seat'sinfer:meets a JSON or JSON Schema need when the
engine validates its answer. nika-spec#400 (479b0bc) makes aninfer:
vision:file a read underpermits.fs.read(NIKA-AUTH-006under an
absent block,NIKA-SEC-004outside a declared one, and a refusal at
check, whatever the path's form, under a boundary that admits no read; a
source: urlentry needs no grant), makes everyvision:entry a
provider-egress sink of its task (NIKA-SEC-006,NIKA-SEC-009), and
bounds animages: { save: }to four files and names it, with its-2to
-4siblings, in the same-path law (NIKA-SEC-012). nika-spec#401
(5cd95cd) lets thecost_usdofnika:image_generateand
nika:tts_generatecome from the engine's dated price catalog, marked by
cost_basiswith the rates' date incost_as_of, and keeps itnull
when neither the provider's report nor the catalog yields a figure.
Fixed
nika checkaccepts the$keyvariablesnika:jqbinds from its
input. At run, every key of an objectinput:is a jq variable, so
input: { rows: [...], batch: B1 }with$rows | map(. + {batch: $batch})
works, but the check refused it with NIKA-VAR-005 « undefined filter or
variable$rows» and the documented form could never run. The check now
binds the same names; a templatedinput:leaves an undefined$nameto
the run, and any other undefined name still refuses.- The first parse refusals a newcomer meets teach the shape they
refused. A scalarinfer:,invoke:oragent:body (infer: "say hi",invoke: nika:jq) now reflects it into its mapping (infer: { prompt: "say hi" },invoke: { tool: nika:jq, args: { … } }, or
invoke: { workflow: ./child.nika }for a child workflow); a bare builtin
name is taught under its prefix (invoke: fetch→tool: nika:fetch). An
untypedinputs:entry names the typed form it meant (topic: { type: string, default: "x" },tags: { type: { array: string }, default: [...] }
for a list) and the ten primitives. A builtin written as a task key
(fetch:ornika:fetch:) says it is called throughinvoke: { tool: nika:fetch, args: { url: … } }. The codes are unchanged (NIKA-PARSE-019,
NIKA-PARSE-005). - A YAML syntax refusal (
NIKA-PARSE-001) names its site and its usual
cause.prompt: Note: this has a colon: hereandinfer: {prompt: ${{ inputs.t }}}printed one raw sentence with no line frame, and the--json
finding had no span. The refusal now carries the position the YAML scanner
stopped at (where the content ends, when the scanner ran out of input), so
nika checkprints the-->frame with its caret and the--jsonparse
finding carriesspan: {start, end}like a CONFORM finding (every
span-bearing parse refusal does). A colon inside a plain value is told to
quote the value or use a block scalar, or to nest a key that meant to be
one; an unquoted${{ … }}inside a flow mapping is told to quote the
expression; a flow mapping or list the file never closed is told so. - A bare
{{ name }}that names a declared input or awith:key draws
the[silent-literal]hint.{{ inputs.name }}was already named as
literal text, butcontent: "Hello {{ name }}"passednika checkin
silence and the run wrote the braces. The hint now names the reference it
meant:${{ with.name }}for awith:key of that task, otherwise
${{ inputs.name }}. A bare word that names neither stays silent, and
so does a dashed name, whose dotted reference would not parse. nika welcomeno longer calls an API key « ready now ». The key rung
readOPENAI_API_KEY is set · ready now · billed per run, but nothing on
that path checks the key, and a revoked one answered 401 on the first
paid call. The rung now says the variable is set and is not checked until
the first call;welcome --jsoncarries the same reason.- A task-level key from another workflow dialect names the verb that owns
it.prompt:,max_tokens:andsystem:written straight on a task now
point toinfer:;http:,url:,method:andrequest:toinvoke:
withtool: nika:fetch;command:,shell:andscript:toexec:
andpermits.exec;tool:andargs:toinvoke:. The field list still
follows, socheck --fixand the editor repairs read it as before.nika explain NIKA-PARSE-005now teaches that list and those mappings instead of
sending the author tonika spec --schema. nika servesays so when the project arms nothing. In a project whose
nika.yamlcarries noarm:entry,serve --onceexited 0 in silence,
serve --drynever returned and a bareservewaited without a word.
--onceand--drynow print the sentencenika armprints, plus the
--bindcommand and the token recipe for running workflows over HTTP,
and exit 0. The resident prints the same lines once on stderr and keeps
watchingnika.yaml, so arming it later still takes effect. The token
recipe, here, in the--bindrefusal and innika doctor, now creates
.nika/before it writes the token, so it works in a project fresh from
nika init.nika checkjudges a declared route over this machine's access rows.
A file that declaresrun.access(avia:or aprotocol:) and has no
infer:oragent:task was judged over no rows, so ACCESS said the binary
was built without agentic CLI adapters andrun readywas refused, while
nika runresolved the same route and finished. Check now also probes for
a declared route, as the run does, beside a task that dials a model and an
--accesspin.nika checkno longer calls the members of a folded group dead spend.
A task that declaresgroup: <name>is read by every${{ group.<name> }}
fold, but the[dead-spend]hint only countedtasks.<id>.output
references and told the author to remove each member. The hint now reads
group membership with the same law the DAG uses to fold.- An image save names at most four received images. The four-image
bound counted path-only reports, so one delivered image beside four
reported paths was refused; and the agent verb wrote a fifth image from a
lent backend at a-5path no check judged. The bound now counts images
whose bytes arrived, and the writer refuses a fifth before any write. - A turn Codex could not complete no longer settles as a success. codex-acp returned a
failed turn (a 400model_not_found, a retry limit exhausted on 429) as answer text and
end_turn, so anagent:orinfer:task on the Codex seat succeeded with the error as its
output. Nika now advertises thesessionFailureextension, which codex-acp and
claude-agent-acp implement, and the failure the adapter then reports fails the task with its
own error: transient (NIKA-1804) when the adapter offers a retry, an expired sign-in when it
asks you to sign in again, a refusal (NIKA-1805) otherwise.nika explainnow describes
both codes for such a failed turn. An adapter without that extension still returns its error
as text. [jq-as-map]no longer fires on a binding whose scope has ended.
map(. as $r | {n: ($r.a | length)})binds each element, so the map that
encloses the binding maps what it was written to map, and so does a later
map of its output (map(. as $r | …) | map(.n)); the run's result was
right. The hint only checked that a. as $namebinding and a baremap(
both appeared; it now counts a baremap(only inside a dot binding's
scope, which ends at the bracket that closes the construct the binding sits
in, so. as $c | map(.n)still draws it.scanandINin jq expressions give jq's results.scanwith a
regex that has capture groups returned each whole match where jq returns
the captures ("abab" | [scan("(a)(b)")]gave["ab","ab"]instead of
[["a","b"],["a","b"]]), andIN(...)was an undefined filter.IN/1,
IN/2andscanover a match where every group takes part now follow
jq 1.7 innika:jq, output bindings,nika checkand the compile
verifier, which load the same definitions. A group that takes no part in
a match (a(b)?ona, one side of(a)|(b)) still differs: jq yields
nullfor it, while this engine leaves it out, and yields the whole match
when no group took part.--max-cost-usdand the run settlement now see paid media spend.nika:image_generateandnika:tts_generateon OpenAI, Gemini and ElevenLabs billed their provider and reported nocost_usd, so a capped run never charged them and the settlement left them out (a run whose only spend was such a call settledunmetered). The engine now carries a hand-sourced media price table apart from the models.dev snapshot: each row names its provider, model, unit (per image by size class and quality, per million characters, or per million tokens of text input, image input, image output and text and thinking output), USD rate, official source page and the date it was read (2026-10-27). The builtins bill every priced call from it, each response on its own: at the token rates times the usage it reported, at the per-image price times its images when an image response reports no usage (the dearest row over what the request leaves open, such asquality: auto), or at the per-character rate times the characters sent, and say how on the output and the manifest (cost_basis, with the rates' date incost_as_of); xAI images keep the spend xAI reports (provider_reported). A paid call that fails after its provider billed keeps that spend: a Geminin:batch whose later request fails keeps the bill of the images already rendered, a render that fails after its answer keeps its bill, and a request that broke after it left is counted unpriced. The run ledger debits all of it as it debits a model's, per attempt, so a retry is judged against what is left. Under a cap every paid media call is judged on its rendered arguments before its request, a${{in a rendered text being text the provider bills: a provider, model,quality:,size:,n:ortext:only the run decides refuses NIKA-1704 when the catalog cannot price the call or its floor exceeds what the cap leaves. An admitted call holds its floor until it returns, so the items of a cappedfor_eachfan-out, parallel or not, cannot launch past the cap together; a call dropped in flight (afail_fastsibling, atimeout:) is counted unpriced and its floor stays consumed; once a paid call billed without a figure, a call billed only from its usage is refused under the cap. Anagent:loop judges its media tool calls the same way against what its task's remainder leaves after the loop's own model turns, its returned tools and the floors its concurrent calls hold, so a model batching image calls cannot spend one remainder twice; concurrent agent tasks each judge against their own snapshot, as text siblings in flight do. A paid call the catalog cannot price runs only with no cap and is counted inspend.unpriced_calls, so the settlement readsunpricedorpartially_priced; a child workflow's unpriced calls reach its parent's settlement, and a grandchild's unpriced media is refused at the root's launch. The run's prologue records the table (media_pricing, besidepricingandadmission_pricing), andnika trace verifyrefuses the cost replay of a journal that pinned other media rates.nika checknames each paid media call on its COST rung with its floor, the rate and unit that set it and the table's date (METERED for a call billed from its usage or, for speech, per character of the text the run renders; UNPRICED; or DECIDED AT RUN), including a composed child's and the paid media an agent's tools can reach, and listsunpriced_media_cap,priced_image_over_capandpriced_speech_over_capinfailure_plan.nika checkrefuses atemperature:onopenai/gpt-5,gpt-5-mini,
gpt-5-nanoand the o-series. These models accept only the default
temperature, and OpenAI answers any other value with HTTP 400 at run
(« Only the default (1) value is supported »), while check showed
capacity fit ✔. The catalog now records that GPT-5, GPT-5 mini and
GPT-5 nano (and their 2025-08-07 snapshots) take no temperature, as it
already did for the o-series, and the fixed-sampling finding covers
OpenAI's own API beside Anthropic's for the models the catalog lists. A
Session label call on these models, a dated snapshot included, no longer
sends a temperature. The finding does not yet name a dated snapshot id
(gpt-5-mini-2025-08-07), which the catalog's model list does not carry.
OpenRouter and other compatible routes, which drop the control, and the
later dot variants (gpt-5.1onward) are unchanged.- An oversized PNG input is a size cap, and a PNG has one IHDR.
nika:image_fxrefused an input over 16384 pixels on a side as
NIKA-BUILTIN-IMAGE_FX-004(corrupt, re-produce it); the stdlib files that
input cap under-005, which it now returns. The PNG decoder behind
image_fxandimage_composenow refuses an IHDR that is not the first
chunk, or a second IHDR, so the size a pixel budget judged from the header
is always the size decoded. checkand the run agree on what a Codex or Claude Code seat can carry.checksaid
run readyforschema:andvision:on a seat while the run refused them. Aninfer:
task over ACP now carries aschema:: the prompt carries the schema and Nika validates the
answer, and each repair is a new one-turn session that receives the earlier answer and the
errors (NIKA-INFER-002after the budget). Itsvision:files ride as ACP image blocks when
the application declares image prompts atinitializeand the file carries an image
signature. Anagent:task'sschema:is validated on the seat's final message, with no
repair turn. What a seat still cannot carry (temperature,max_tokens, an enabled
thinkingbudget, avision:URL oninfer:, atools:whitelist onagent:) is acheck
blocker, andcheckno longer suggestsmax_tokensormax_tokens_totalon a seated task.- A
--varrefusal names its code in the--jsonenvelope. An unknown
input, a value its declared type refuses and a malformed pair reached
nika run --jsoncallers as{"error":{"code":null,…}}, while the
--inputs-jsonchannel and the server sayunknown_inputand
input_type_mismatch. The envelope now carriesunknown_input,
input_type_mismatch,malformed,env_unset,env_undeclared_in_cior
env_name_missing; the sentence on stderr and exit 3 are unchanged. - A streamed WAV reports its real duration.
nika:tts_generateread a
streamed WAV header's placeholderdatasize (0xFFFFFFFF) verbatim, so
an OpenAI narration reportedduration_ms: 89478485(24.8 hours). The
size is now clamped to the bytes actually present, which also gives
espeak-ng --stdoutaudio its true length.
Security
NIKA-SEC-014holds a confirm gate in front of a child workflow call. The consent check only looked at egress tasks written in the workflow itself, so a gate that the trifecta credited in front of aninvoke: workflow:call was never checked to stop the child's effect on a « no » answer.nika checkandnika runnow judge a call as the egress-capable task its child (or a workflow below it) reaches, whatever content reaches that task: every route from a confirm gate to the call must close on a refusal, as for the inline form, and the finding names the call. A confirm gate inside the child owns the effect behind it, as inline. When only a child gate the check cannot decide from the caller stands before the effect (awhen:on an input the caller may bind to its answer), the call gets the advisory hint instead of the refusal. A child the check cannot resolve counts as acting.check --jsonnames the child task undercomposed_calls[].effect, witheffect_conditionalfor the advisory case.- A Codex command that asks to leave its sandbox now always pauses. In
read-only, Codex runs
ordinary commands in its sandbox without asking, so every command it asks about asks to run
with no sandbox at all (require_escalated). Its ask carries the command as a string and the
reason in_meta.permission.description, which Nika read asexecute · <prose>: under
permits: { exec: true }it was allowed, and Codex fetched a site outside its sandbox. It now
pauses for you on the exec plane (sandbox · command) whateverpermits.execgrants, with the
command and the reason in the question and in the witness. Every pause question now names the
command and the reason an ask carries unless its title shows it, on one line a harness cannot
steer: control characters become spaces and invisible ones (direction overrides, zero-width
characters) are removed, so a Claude Code title, which is the model's own command, can no
longer erase itself on your terminal. A long command keeps its end in view (its beginning and
end around the bytes left out and their SHA-256; whole up to 16 KiB in the witness), and a
sandbox widening's witness names the command it is for. One--answernow decides one ask for
the task: an attempt thatretry:replays never reuses it, where a typed 429 failure could
otherwise replay the session and approve a different command with the same answer.
nika check,nika explain harnessand docs/usage/harness-agents.md now also state what Codex
does without asking: it calls its MCP tools markedreadOnlyHint, opens pages with its hosted
web tool, writes its own~/.codex, starts every configured MCP server and applies your global
~/.codex/AGENTS.mdand plugins. NIKA-SEC-009now judges a child workflow through the call that runs it. A parent that
read a private file and sent data out passednika checkand ran when part of the flow sat
in a child reached throughinvoke: workflow:, while the same tasks written inline were
refused.nika checkandnika runnow judge each call as the tasks it stands for, through
every workflow below it. The call is a source of untrusted content when content the child
brings in (anika:fetch, anexec:, anmcp:tool, anagent:whose tools admit one)
reaches its outputs or a file it writes. It is an egress task when untrusted content reaches
an egress task inside it: content the child brings in, the call's arguments, or a file
written before the call that a childexec:reads. The parent is refused unless a blocking
nika:promptof its own dominates the path, as for the inline form; a gate inside the
child is not credited to the caller. The finding names the child task behind the call. A
child the check cannot read, parse or resolve counts as all of these (fail-closed).
check --jsonlists every direct call undercomposed_calls, resolved or not, and the
runtime's report check re-derives the trifecta over the same calls.NIKA-DRIFT-001no
longer tells you to remove a grant a child needs (its program, its tools, the files and
hosts its ownpermits:lets its subprocess reach); removing it failedNIKA-COMP-002or
the child's run. A check of the source alone (an editor, the MCPnika_checktool) reads
no child: its trifecta judges the parent's own tasks only, and itsNIKA-DRIFT-001makes
nopermits:claim on a file that calls a child.NIKA-SEC-009follows untrusted content through a file a builtin reads. A gate could clear the task that saved untrusted content to a file, and anika:readof that file then fed an ungated egress: the trifecta counted only an earlierexec:as a reader of such files, sonika checkpassed the workflow. A builtin read (nika:read,nika:grep(its default root.included),nika:glob,nika:edit, anika:decidebundle, the filesnika:image_fx,nika:chartandnika:image_generateread, anika:fetchmultipart upload) of a path the write may have reached now carries the content on, inline and inside a child workflow, and, when the write's path is literal, whatever the order: a read in the writer's own wave, or before it in the run (the next run reads the file), counts too. Paths compare lexically: folded, case-blind, a segment past ASCII may be any segment,/private/tmpis/tmp, and a templated path may be any file. A read whose path cannot reach the written one stays clean.- A run refuses a report that judged no child for a workflow call. The runtime's report check re-derives the trifecta over the child calls the report resolved, and a call missing from that list counted as having no ingress: an embedder pairing a plain
nika_check::check()withRuntime::runand a child runner could run a fetching child into an ungated egress. A call the report does not list for its task and target now counts as unresolved, and the run refuses withNIKA-1707, naming it.nika run --taskre-checks the kept tasks with their children, so a scoped run of a composed workflow keeps its calls resolved. - A
vision:file is a read insidepermits.fs.read(breaking). The
infer:verb opened everyvision: [{ source: file }]path itself, on
every route (API and ACP;nika run, serve, Session, child workflows,
nika testand rehearsal rooms), with nopermitscheck: an absent block,
a narrowerfs.readgrant, a symlink or a..did not keep the file from
the model provider, and a relative path was read from the process
directory instead of the run's root. The run now reads each file through
nika:readunder the workflow's own boundary, on its resolved path,
before any provider call: outside it the task failsNIKA-SEC-004(one
permit_checkedfs frame), and a granted file that cannot be read fails
with the read's own code (NIKA-BUILTIN-READ-001when no file is there,
-002otherwise) instead of the internalNIKA-432.nika checkjudges
a literal or bare-constpath (NIKA-AUTH-006with nopermits:block,
NIKA-SEC-004outside a declared one), and refuses a computed path, or a
computedimages.save, under a boundary whose side grants no path at all.
--infer-permitsprints the grant, the drift scan counts it as used, a
child's vision reads joinNIKA-COMP-002, and the check card no longer
calls such a body pure compute. Thevision:entries are sink fields of
the task, on check and run alike: a secret in a vision URL or path is the
inferleak (NIKA-SEC-006unlessegress: [{ to: "infer" }]), and
untrusted content that picks an entry reaches the answer, so the trifecta
(NIKA-SEC-009) follows it as it follows anika:readpath; the file
channel follows a vision read of a file an untrusted writer left. A
source: urlneeds no grant: the provider fetches it. Migration: grant
each vision file inpermits.fs.read(nika check --infer-permitsprints
the block); embedders hand the verb bytes they read (VisionPart::Loaded),
never a path.
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.0 --versionTarballs 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.0.tar.gz --repo supernovae-st/nika
# 3 · SLSA provenance: the intoto asset, verifiable offline
slsa-verifier verify-artifact nika-<platform>-0.124.0.tar.gz \
--provenance-path multiple.intoto.jsonl \
--source-uri github.com/supernovae-st/nika --source-tag v0.124.0Provenance
Built from tag v0.124.0 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(security): judge a child workflow through its call in the trifecta by @ThibautMelen in #1840
- test(nika-serve): read the published sdk 0.123.2 closed sets by @ThibautMelen in #1843
- fix: quick wins from the 0.123.2 gauntlet and open issues by @ThibautMelen in #1844
- fix(security): pause escalated codex commands and fail failed turns by @ThibautMelen in #1842
- fix(security): follow file reads, unlisted calls and composed consent by @ThibautMelen in #1847
- feat(builtin): compose images and speak with no key by @ThibautMelen in #1845
- fix: second batch of quick wins from the gauntlet and open issues by @ThibautMelen in #1848
- feat(nika-cli-host): name the running nika and every other copy on path by @ThibautMelen in #1849
- feat(harness): make seat images values and carry schema and vision by @ThibautMelen in #1850
- feat(runtime): bill paid media at dated public prices and refuse unpriced media under a cap by @ThibautMelen in #1846
- fix(security): vision files are reads under permits.fs.read by @ThibautMelen in #1851
- chore(release): prepare 0.124.0 by @ThibautMelen in #1852
Full Changelog: v0.123.2...v0.124.0