If another AI should directly use Civilis Risk OS rather than only read the docs, start here.
Civilis Risk OS is an installable skill with two product paths:
- bundled local runtime
- public hosted bundled runtime
The runtime CLI wraps the public Risk OS surface into a narrow tool contract:
healthquotebuypurchaseclaim-proofclaimresolve-proofresolverequotefull-loop
Entry:
From the public repo:
git clone https://github.com/CivilisAI/Civilis-Risk-OS.git
cd Civilis-Risk-OS
npm install
npm run demo
npm test
npm run runtime -- helpFrom another workspace:
npm install github:CivilisAI/Civilis-Risk-OS
npx civilis-risk-os-runtime helpThe local clone path, a fresh local package install, and a direct GitHub package install were all verified for this public repo.
If someone only wants to prove that the package is executable, start with:
npm run demo
npm testThis performs:
- runtime health
- one bundled quote call
- one structured JSON output
- bundled local runtime start
- bundled claimant and evaluator auth
Environment overrides:
RISK_OS_DEMO_BASE_URL=<compatible-runtime-url>
RISK_OS_DEMO_ITEM_ID=501
RISK_OS_DEMO_BUYER=sageIf RISK_OS_DEMO_ITEM_ID is omitted, the demo automatically picks the first
live reference item returned by the runtime.
If RISK_OS_DEMO_BASE_URL is not reachable and points to a local address, the
package starts the bundled runtime automatically instead of falling back to mock
data.
npm run runtime -- healthnpm run runtime -- quote --item 501 --buyer sage| Command | Required flags | Optional flags |
|---|---|---|
health |
none | --base-url |
quote |
--item, --buyer |
--base-url |
buy |
--item, --buyer, --quote, --mode |
--base-url |
purchase |
--purchase |
--base-url |
claim-proof |
--purchase, --reason |
--base-url, --claim-type |
claim |
--purchase, --reason |
--base-url, --claim-type, --claimant-token, --claimant-signature |
resolve-proof |
--claim |
--base-url, --decision, --reason |
resolve |
--claim |
--base-url, --decision, --reason, --evaluator-token, --evaluator-signature |
requote |
--item, --buyer |
--base-url |
full-loop |
none | --base-url, --buyer, --item, --decision, --reason, --claimant-token, --claimant-signature, --evaluator-token, --evaluator-signature |
In bundled local mode, claimant and evaluator auth are already supplied by the local profile.
npm run runtime -- buy --item 501 --buyer sage --mode challengeable --quote 1npm run runtime -- purchase --purchase 1npm run runtime -- claim-proof --purchase 1 --reason "delivery was misleading"npm run runtime -- claim --purchase 1 --reason "delivery was misleading"npm run runtime -- resolve-proof --claim 1 --decision refund --reason "quality below threshold"npm run runtime -- resolve --claim 1 --decision refund --reason "quality below threshold"If the runtime has RISK_OS_ENABLE_LLM_EVALUATOR=true and a configured
OpenAI-compatible LLM_* endpoint, resolve-proof and resolve may omit
--decision and --reason; the runtime will then use the evaluator advisory
path instead of pretending a manual decision already exists.
npm run runtime -- requote --item 501 --buyer sagenpm run verify:protected-loopThis command runs:
quotebuypurchaseclaim-proofclaimresolve-proofresolverequote
In bundled local mode, it reuses the same auto-start runtime and bundled auth path as the rest of the runtime CLI.
The current strongest public claim should now be read as:
- another AI can install this repo
- run a narrow runtime action surface
- and complete
quote -> buy -> claim -> resolve -> requotedirectly
That is stronger than merely reading the OpenAPI spec.