Repository navigation
v0.123.2 #1841
v0.123.2
#1841
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.123.2 is the second maintenance release of the 0.123 reference line. An
agent:task ona harness seat (Codex, Claude Code, Gemini CLI) is now held to the workflow's
permits:as faras the seat allows: Nika selects the seat's asking mode, judges every ask against your grants and
pauses for network, sandbox-widening and the harness's own MCP approvals, and
nika checksayswhat the seat still does without asking.
nika servecan return the files a settled job made,and verifies journals sealed with an explicit run key pair. A mock rehearsal no longer calls
itself offline when a step can reach the network, and
crypto-bigintleaves its yanked release.The workflow language, the file format and the SDK protocol are unchanged.
Added
nika servedownloads the artifacts a settled job's sealed journalrecords.
GET /v1/jobs/{id}/artifactslists them, bound to the job'sreceipt: each file
nika:chart,nika:image_generate,nika:tts_generateornika:image_fxsaved inside the project, and eachimage an agent's harness sent, with its size, SHA-256 and media type.
GET /v1/jobs/{id}/artifacts/{name}streams one, withContent-Lengthand
Nika-Artifact-Sha256. Both need the bearer token, answer only oncethe job settled (
409 job_not_settled), and serve nothing unless thejournal verifies sealed and intact with the receipt's chain head. A
name is looked up in the manifest, never on disk, and the file opens
below the project root with no link on the way. One artifact is served
up to 256 MiB. Bytes that no longer match the journal are refused
(
409 artifact_changed), and a file changed mid-stream never arriveswhole. Health advertises
artifacts; ADR-117 records the decision.Changed
crypto-bigintmoves from the yanked 0.7.6 to 0.7.9. Upstreamyanked 0.7.6, 0.7.7 and 0.7.8 for a breaking change, so
cargo deny checkrefused the lockfile and blocked every push. The crate reachesthe build through
p384, which verifies the Sigstore timestampauthority's ECDSA P-384 leaf in trace anchoring. 0.7.9 keeps the same
dependency set and has no build script or procedural macro.
Cargo.lockandfuzz/Cargo.lockmove together.@supernovae-st/nika0.123.1 closes.published_sdk.jsonis re-read from that package'sdist: machine protocol 2, a scheduledorigin's
missed_firstandmissed_count,choicequestions and the three compile cognitions,on both compile generations. It still recorded 0.120.3 on protocol 1, so its test passed on a
moved clock; it now compares what the widest resident serves with what the published SDK reads.
c5dcd97.SPEC_PINand
crates/nika-pack/packadvance together from6390b08, the commit0.123.0 and 0.123.1 embed. The examples and templates that
nika tryandnika compileserve no longer call a mock rehearsal offline: the mockreplaces the model, not the network, so a fetch step still reaches its
host (P2: mock/echo is a model seat, not an effects seat — nika:fetch still egresses real HTTP during an 'offline' rehearsal #1605, the pack half of fix(cli): say what a try rehearsal reaches instead of offline #1833).
release-notesno longer draftsnotes from a sample log when
git logfails (the sample is now anexplicit
--var rehearse=true), andpr-review-fanoutcloses its fan-outon a « no » at the gate instead of failing. The spec chapters and stdlib
pages carry current model ids and the 0.123 reference-release amendments.
The schema and
canon.yamlare unchanged.Fixed
nika explain NIKA-SEC-004andNIKA-SEC-005say a redirect is held to the sameboundary.
nika:fetchfollows a 3xx itself and judges every hop like the URL in the file:a hop onto a host outside
permits.net.httpis SEC-004, a hop into loopback, private,link-local or metadata space (or onto an undeclared loopback name) is SEC-005. Neither page
named a redirect, and the SEC-005 closer promised that
nika checkcatches it before a run;it now says that check catches a literal URL and that a hop is judged at run.
nika explain NIKA-BUILTIN-JQ-001namesdecode: jsonforexec:stdout. A command thatprints JSON hands
nika:jqa string, and the page taught only thenika:read+fromjsonpath for files. It now names the exec side's explicit decoder,
exec: { command: [...], decode: json }(jsonlfor one value per line), whose output isthe parsed value.
nika explain NIKA-SEC-001names the OS sandbox. A confinedexecchild refused at runreads « seatbelt refused the confined process », and the page it points at named no
sandbox. It now says that
execruns inside the sandbox built frompermits:(Seatbeltthrough
/usr/bin/sandbox-execon macOS, bubblewrap through/usr/bin/bwrapon Linux, thebackend
nika doctorreports). It also says that a denied exit is classified as thatsandbox's refusal from its stderr text alone, so a program's own permission error (a file
the OS refuses inside the grant) reads the same, and the file's own permissions are worth
checking too.
${{ fetch.output }}now teaches the task-output form. When the root of aNIKA-VAR-001 reference is a declared task id, the finding says so and names
tasks.<id>.output(bound inwith:on a body surface), andnika explain NIKA-VAR-001teaches the same
with:binding. Neither surface namesconfig:any more: the nine-keyenvelope refuses that key (NIKA-PARSE-005), so a typo'd root is no longer offered it.
nika check --helpsays what--fixreally applies. It read « Apply typed renamerepairs and re-audit », while the repair ladder also hoists
with:bindings (NIKA-VAR-021)and migrates retired forms (
needs:,depends_on,vars:, a stringexec:…). The helpnow names the three repair families and says that other findings stay the author's, and the
○ FIXline printed when nothing applied names the same families instead of « typed renamesuggestions only ».
nika tryno longer calls its mock rehearsal offline, and names the hosts it may reach.The mock seat replaces the model only:
nika try snippets/use-a-toolstill GETshttps://nika.sh, andsnippets/weekly-radarandceo-monday-briefreachhnrss.organdhn.algolia.comonce their gate is answered. Thenika tryhelp, the first-run shelf heading,the
--alllisting, the rescue tips, thetrydoor blurb, themodelglossary entry, theMODELSrow ofnika check, theNIKA-INFER-001lesson and the provider connection hint nowsay what is true (« on the mock model by default: zero keys, no model call; a step that fetches
still reaches its host »), and the rehearsal line of
nika explain <file>names the declaredhosts (
# mock model · zero keys · may still reach nika.sh). Before a mock rehearsal runs,nika tryprintsmay reach: <hosts> — the mock replaces the model, not the networkfrom theworkflow's
permits.net.http; a workflow that declares no host prints nothing new, and--quietkeeps its compact card. The network itself is not blocked.nika explain NIKA-PARSE-019teaches thepermits.netmapping. A host list(
net: [api.example.com]) refuses with «permits.netmust be a YAML mapping », and thepage answered with
tasks:andexec:forms only. It now teaches the shape the parseraccepts,
permits: { net: { http: [api.example.com] } }, ahead of the exec lesson: list thehost, not the URL (an
https://entry is refused), and the onehttp:key covershttps://URLs too.
nika doctor --pingno longer calls a web page on:8080a ready engine. Its model-listsweep asked
…/v1/chat/completions/models, a 404 on every engine, and the ping row saidok … listeningfor any open port. The sweep now asks the chat route's sibling,…/v1/models. Only an answer that is clearly not an API (a 2xx body that is not JSON, such asa web app's page) drops the
ok: the row then reads « accepts connections but answers a page,not an API — not a model server », and
--json'sadoption_stateno longer counts it as areachable engine. A 401 or 403 is named
key-protected, a 404no /v1/models route(thenika model servesidecar), and a timeout keeps the connect verdict. Ollama's{"object":"list","data":null}reads as an empty model list.nika tryrehearsal that pauses at a gate names the try form that finishes it. Thepaused card said
nika run --answer approve=true FILE, a file the verb discards when itreturns. Under
nika tryit now saysnika try <slug> --answer approve=true(the answer ispre-seeded on a fresh rehearsal, the form
nika try --helpdocuments), nested slugs such assnippets/weekly-radarincluded. It carries the rehearsal's own flags as typed (--var,--modelwithselfkept asself,--access,--max-cost-usd,--resumeand the answersalready given), so the pasted line reruns the same rehearsal, and the rehearsal card names
that slug too (
rehearsal · snippets/weekly-radar, no longer the room's folded stem). Aworkspace
nika runkeeps its own card.nika trace verify. The run footer taughtnika trace outputsand never the proof itself. When the run recorded a trace, the card(and the piped close) now lists
verify it: nika trace verifybesidewrote .nika/traces:zero-arg, the verb judges the workspace's latest trace and prints the head the
trace:line names. The note is short enough that the card keeps its width.
amends.docs/adr/README.mdsaysdocs/adr/index.jsonholds thefull relation graph, but
scripts/adr/generate-index.shemitted every edge exceptamends,so the twelve ADRs that amend another (ADR-154 amends three) read as amending nothing. The
generator now emits it, the index is regenerated, and a hygiene self-test pins the edge.
own uid (1001 on the Linux legs, 501 on macOS), so
tar -xrun as root in a rootlesscontainer failed to restore an unmapped owner. The packaging step now writes every member
as 0:0 by number (GNU tar
--owner=0 --group=0 --numeric-owneron Linux, bsdtar--uid 0 --gid 0 --numeric-owneron macOS); the archive contents, the checksum step and thereplay of existing assets are unchanged.
nika serveattributes the journals it seals with an explicit run keypair. A resident started with
NIKA_RUN_KEY_FILEandNIKA_RUN_PUB_FILEnaming a pair outside
~/.nika/keyssealed its jobs with that pair, butGET /v1/jobs/{id}/trace/verifycalled the seal unattributable and bothartifact routes refused the job with
409 artifact_journal_unverified.The verifier now weighs that pair's public half after
--keyand before~/.nika/keys/run-signing.puband the retired-key ledger, the order thesigner takes them, so
nika trace verifyalso attributes such a journalwithout
--key. A host that names no pair verifies as before.nika serveOpenAPI document declares what the server answers.The trace verify response's
tier, the 412 schedule error'serror.currentRevision, the schedule 422{findings}body (kept as thepublished SDK reads it) and the 404 of a by-name
POST /v1/checkandPOST /v1/jobswere sent but undeclared.GET /v1/workflows/{name}nowsays a name containing
/is sent with literal separators, and thecancel route states its fixed 5-second grace before a run is
interrupted.
nika sign, which signs workflow files;/proofandnika trace verifynow point at the runkey,
nika key init, which seals later runs.Security
agent:task on a harness seat is held to the workflow'spermits:as far as the seatallows, and
nika checksays where that stops. On codex-acp the session kept the adapter'sdefault
agentmode, whose own reviewer approves most actions, so a Codex task wrote./outand read files outside the project without a single
permit_checkedframe. Nika now roots thesession in the admitted project (never the server's or the shell's directory), selects the
seat's measured asking mode (codex-acp
read-only, claude-agent-acpdefaultinstead of yourautodefault, gemini-clidefault) and reads it back before the prompt or refuses to start,never picks a mode that approves on its own, and ends the session if the mode moves mid-turn.
The mode, every ask and every refused client
fs/orterminal/call are journaled aspermit_checked, also when the run pauses on the ask (a paused trace used to carry thequestion and no decision). Asks are judged in the project's own terms: an absolute path the
harness names now matches
./out/**, and every path is judged where the operating systemlands, walked through each symlink (a dangling one included) and each
..:out/link/../xwith
out/linkpointing outside the project was judged asout/xand allowed; a path thatcannot be resolved now pauses. An ask for network access pauses for you even under
permits.exec: true: codex-acp's SOCKS approvals (socks5Tcp network access to <host>) carryno URL and were answered
allow_onceas plain commands. So does a command asking the harnessto widen its own sandbox, which
exec: truealso answered (codex-acpadditionalPermissions,Claude Code
dangerouslyDisableSandbox). What the mode still leaves to the harness is printedon every such task as a
[harness]hint (nika explain harness,docs/usage/harness-agents.md): Codex, for one, reads any file and writes the project,
/tmpand
$TMPDIRinside its own sandbox even with nofs.writegrant, and a Codex command thatpermits.exec: trueadmits after it asked to leave that sandbox runs with none.NIKA-DRIFT-001no longer tells you to remove apermits.execorpermits.fsgrant that thepermission bridge judges.
permits.exec: true. codex-acp asks to approveits own MCP tool calls as a command ask with no command, which
exec: trueansweredallow_once; it now pauses for you on the tools plane, becausepermits.toolsnames yourworkflow's MCP tools, not the harness's.
Install
Tarballs below: macOS arm64 / x64 · Linux x64 / arm64, plus
SHA256SUMS.Verify: three independent proofs
Provenance
Built from tag
v0.123.2byrelease.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.123.1...v0.123.2
This discussion was created from the release v0.123.2.
All reactions