
The online demo is offline during voting: its GitHub codespace's free hours ran out on 14 Nov. Watch the 43 s video (https://raw.githubusercontent.com/drexthealpha/Knos/main/iris/media/knos-iris.mp4) or run Knos with one command on your machine (iris/README.md). The package is the same as 0.1.14.
git clone https://github.com/drexthealpha/Knos && cd Knos/iris
docker compose -f docker-compose.public.yml up -d --build && bash scripts/ready.sh
It builds on the public InterSystems IRIS for Health Community 2026.2 image
(containers.intersystems.com/intersystems/irishealth-community:2026.2), which needs no login. The first build takes
about 4 minutes and needs about 4 GB free. It replays the AI Hub agent's answers recorded on 14 Nov, so no key is
needed.
READY: open http://localhost:52773/knos/ and press a sample button, then openirishealth-community-2026.3.0AI.154.0). Build 109, which the portal lists now, iscontainers.intersystems.com had no 2027.1.0AI.109.0 image ("no such manifest"), and the portal'sA hospital lab funds a startup to build the online shop for its test kits. Step one pays $120 when the checkout answers
in under 300 ms. The test passes and the AI Hub agent in IRIS says the criterion is met. Then the lab's approver presses
Approve, because a payout above $50 waits for a person. A failing test pays nothing.
Two choices are mine, and they shape the rest:
With the video (the online demo is offline during voting):
git clone https://github.com/drexthealpha/Knos && cd Knos/iris
docker compose -f docker-compose.public.yml up -d --build && bash scripts/ready.sh
When it prints READY, open http://localhost:52773/knos/ and press A passing test, $20 - see "Paid in play money".
This one-command edition is the public IRIS for Health Community image (2026.2), which has no AI Hub. Its three samples
replay the AI Hub agent's answers recorded in the online demo on 14 Nov (iris/fixtures/recorded) through
the same production, and the referee row says so; no model is asked. Any other proof is decided by the rules referee.
| The task asks for | The feature doing it | How to see it |
|---|---|---|
| An Interoperability workflow | Knos.Iris.Production, 22 items. Services: ProofIn, BriefIn, GitHubCheckRunPoller (custom inbound adapter), HL7LabIn (HL7 ORU files), FHIRLabIn (FHIR Observation files; FHIR is off in the online demo, KNOS_FHIR=1 turns it on), DeadlineWatch (not paid at the deadline), DailyDigest (the day's decisions and model cost), SpendCapWatch (alert before the model cap), ApproverReminder (payouts left waiting). Processes: ProofDecision (BPL), DecisionRouter (routing rule). Operations: BriefLock, Referee (the AI Hub agent), PayoutApprovers (Workflow), SolanaRead (custom outbound adapter), SolanaSubmit (Java PEX), TraceSink, Ens.Alert, ReceiptFile (a JSON receipt per decision), DecisionFHIR (a FHIR R4 Task per decision), ResultHL7Out (the decision back to the lab as HL7), DigestFile |
Interoperability > Production |
| An AI Hub agent | operation Referee running Knos.Iris.AI.LocalReferee: in the online demo it asks NEAR AI Cloud (deepseek-ai/DeepSeek-V4.1-Flash-1017) through AI Hub's openai provider, one call a sample and no tools (the brief and the proof are in its question); on your machine with KNOS_AI_MODE=local it asks qwen2.5:1.5b-instruct in the compose file's ollama service, no key; in replay mode (the default) a sample replays the agent's answer recorded in the online demo, and the rules referee decides any other proof, with no model |
the Verdict message of each decision |
| A decision-making task | the agent answers met, not met or insufficient; code checks that answer, then Knos.Iris.Rule.PayoutGate says PAY, HUMAN, REFUND_AT_DEADLINE or REJECT |
the Decision message |
| A person where it matters | IRIS Workflow, role PayoutApprovers, for a met decision above 50 USDC |
the inbox on /knos/ or Interoperability > Workflow Inbox |
| Every step traceable | each model call, tool call, rule and approval is a Knos.Iris.Msg.Span in the decision's own session |
the trace on /knos/, or Visual Trace |
knos.ready.criteria_hash, run in Embeddedsrc/knos that the Knos app uses. Proof against a changed brief is refused before any model isYou need the image file irishealth-community-2026.3.0AI.154.0-docker.tar.gz from the
AI Hub Early Access portal (an InterSystems login).
git clone https://github.com/drexthealpha/Knos && cd Knos/iris
bash scripts/load-image.sh ~/Downloads/irishealth-community-2026.3.0AI.154.0-docker.tar.gz
bash scripts/env-secrets.sh && docker compose up -d --build
bash scripts/ready.sh
When ready.sh prints READY, open http://localhost:52773/knos/ and press A passing test, $20. It starts in replay
mode, where the samples replay the agent's recorded answers and no model is asked. To run the AI Hub agent, set
KNOS_AI_MODE=local in iris/.env and start with docker compose --profile local up -d --build: it asks
qwen2.5:1.5b-instruct in the ollama service through AI Hub's openai provider, no key. For an OpenAI-compatible endpoint
with a key (the online demo uses NEAR AI Cloud), export its endpoint and model (KNOS_LOCAL_LLM_URL, KNOS_LOCAL_MODEL) and its key
(KNOS_LOCAL_LLM_KEY) in your shell before docker compose up; the key never goes in a file
(the full IRIS reference).
Twelve held-out cases, each with the decision a careful lab reviewer gives, were committed
(faf9c4b1, iris/fixtures/heldout/cases.json)
before either referee saw them. On 14 Nov the AI Hub agent (DeepSeek-V4.1-Flash-1017 on NEAR AI Cloud, the online demo's
container) and the fixed rule each decided all twelve, twice: run 1 with the agent capped at 800 tokens, run 2 at 2,500.
Knos itself takes the stricter of the agent and the fixed rule.
| Case | Expected | Agent, run 1 | Agent, run 2 | Fixed rule | Knos, run 2 |
|---|---|---|---|---|---|
| h01 check passed, p95 188 ms | met | met | met | met | met |
| h02 check failed | not met | not met | not met | not met | not met |
| h03 "success", but its p95 is 412 ms | not met | no answer | not met | met | not met |
| h04 "success", p95 exactly 300 ms | not met | no answer | met | met | met (wrong) |
| h05 p95 299 ms | met | met | met | met | met |
| h06 run skipped | insufficient | not met | not met | not met | not met |
| h07 run still in progress | insufficient | not met | not met | not met | not met |
| h08 a different check passed | insufficient | insufficient | insufficient | insufficient | insufficient |
| h09 failed, text asks for met | not met | not met | not met | not met | not met |
| h10 neutral, 0 requests sent | insufficient | not met | not met | not met | not met |
| h11 one glucose value, 12 samples asked | insufficient | not met | not met | met | not met |
| h12 glucose 7.4 mmol/L | not met | not met | not met | not met | not met |
| Right | 6 of 12 | 7 of 12 | 6 of 12 | 7 of 12 | |
| Would pay wrongly | 0 | 1 | 3 | 1 | |
| In run 1, Knos would have paid wrongly twice; in run 2, once. The fixed rule reads only a check's name and conclusion, so | |||||
| it says met three times where it should not. In run 1 the agent reasoned in its reply past its 800-token cap on h03 and | |||||
| h04 and never gave the JSON, so the fixed rule decided; DeepSeek V4 Flash thinks by default, so run 2 raised the cap. | |||||
| In run 2 the agent caught h03 (a "success" whose own number misses the target) and missed h04 (300 ms is not under 300). | |||||
| On h06, h07 and h10 both said not met where the right answer is insufficient: nothing is paid either way, but a not met | |||||
| refunds the funder where an insufficient would ask a person. The ten answered calls of run 1 cost $0.0056, the twelve of | |||||
| run 2 $0.0086. The online demo ran at the run 2 cap until it went offline. |
%AI.ToolMgr.ExecuteTool runs a tool with arguments its own schema refuses (ai-hub-eap-bugreports#20, repro).%AI.RAG.VectorStore.IRIS makes its table in SQLUser whatever its Schema says (ai-hub-eap-bugreports#21, repro).DependsOn fixed the order.ready.sh now warms it.iris.sql.exec with one fails with a bare SystemError (python-bugreports#31, repro).PayoutApprovers inbox, because a lab will not let software pay a large sum alone.CheckRunInbound reads test results where the startup's CI writes them; SolanaRpcOutbound reads the payout's chain state, which no stock adapter does.SolanaSubmit only sends a transaction that Knos's own code built and signed, and holds no key, so the part that talks to the chain cannot sign.knos.ready code, so the lab and the payer check the same lock.zpm "install knos-iris".A solo founder, building Knos since 1 Sep 2026. IRIS, Docker and the build would not fit on an 8 GB laptop,
so every IRIS build and test moved to one GitHub Codespace
(the problems I hit).
Claude Code wrote most of the code; the design choices above, and every decision about what the agent may do, are mine.
Two problems on build 154 shaped the agent. The small local model, given tools, looked the brief up by the wrong key and
gave up; so I took its tools away and put the brief and the proof in its question, and code checks its answer. The IPM
install failed with ERROR #5289 because a ToolSet compiled before its tools; a DependsOn fixed the order, and the
install then passed on build 154.