AGPL-3.0-or-later · forever.

the workflow library

pr-risk-review

scores a diff’s blast radius, probes only when it’s high. This file carries a real recorded trace — the home page replays it, beat for beat, from the run record.

  • 4tasksthe plan below walks them
  • 3wavesrun together when they can
  • exec · infer · agent · invokeverbsthe whole grammar it speaks
  • recordeda real runthe trace is the proof

the plan

derived from the file, never drawn by hand
diffexec
riskinfer
probeagentreportinvoke

the file, whole

pr-risk-review.nika.yaml
pr-risk-review.nika.yaml
nika: v1workflow:  id: pr-risk-review# local model · the diff never leavesmodel: ollama/llama3.2:3b# the file IS the blast radiuspermits:  exec: [ git ]  fs: { write: [ ./review.md ] }  tools: [ "nika:read", "nika:write" ]tasks:  diff:    exec: { command: [ git, diff, main ] }  risk:    with:      diff: ${{ tasks.diff.output }}    timeout: "120s"    infer:      prompt: "Score this diff's blast radius from 0 to 10: ${{ with.diff }}"      schema:        type: object        required: [ score, reasons ]        properties:          score: { type: number }          reasons: { type: array, items: { type: string } }      max_tokens: 400  probe:    with:      score: ${{ tasks.risk.output.score }}      reasons: ${{ tasks.risk.output.reasons }}    when: ${{ with.score >= 7 }}    agent:      prompt: "Trace the risky call paths behind: ${{ with.reasons }}"      tools: [ "nika:read" ]      max_turns: 3  report:    with:      review: ${{ tasks.risk.output }}    invoke:      tool: "nika:write"      args: { path: ./review.md, content: "${{ with.review }}" }outputs:  review: "${{ tasks.risk.output }}"

lines 3135: when: the probe only fires on real risk. Source: the served copy · byte-pinned to the recorded trace by the honesty suite · open it in the playground →

Watch the recorded one replay on the home page, walk the showcase gallery, or install and run the file yourself.