Admission script
model: 'mock/echo' replaces only the workflow’s default model:. A task
that pins its own infer.model, and a child workflow it invokes, keep their
models: the mock does not make those calls offline. maxCostUsd: 0 is what
refuses a priced pin before it spends (NIKA-1709, thrown by run()); a
local-model pin still runs. Keep both options in pull-request jobs. A refused
run throws NikaOperationError with the engine’s exit code on error.status:
let it fail the job.
Authority ladder
CI ADMISSION · SECRETS ARRIVE LAST
The shown mock workflow needs no provider key. Rehearsal fixtures must also
have safe tool boundaries: a mock model does not disable external effects.
Protected execution receives only the authority its environment and workflow
declare.
Pin and print both versions
npm exec -- nika an uninstalled
name: with no locked local package, npm would download whatever that name
resolves to. The direct node_modules/.bin path only ever runs the
lockfile’s payload.
Commit the package lockfile and keep optional platform dependencies enabled.
The local npm executable above resolves the project’s installed package;
it does not require a global CLI. Pin the SDK and native payload together.
A newer standalone engine release does not update an existing npm install.
Continue
GitHub Actions
Use the Nika action for PR comments and receipts.
Check and plan
Read every admission field.
Security
Keep authority explicit.
Testing
Design deterministic mock goldens.