riskline

module
v0.3.0-alpha Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 17, 2026 License: Apache-2.0

README

riskline

CI License Release Go Reference Go Report Card

Open-source AI risk classification — CLI and API, deterministic and auditable, not an LLM guessing.

Status: Pre-1.0 (0.2.0-alpha). APIs and rulesets may change. Feedback via Issues is welcome — especially misclassification reports.

You describe an AI system (purpose, data types, deployment context, autonomy, who it affects). You get back a risk tier — prohibited, high-risk, limited-risk, or minimal-risk — with clause references, a plain-language rationale, and recommended controls. The ruleset is versioned JSON, not a model making something up.

Shipped regime packs: eu-ai-act (eu-ai-act-2024-v0.1.0, hard law) and nist-ai-rmf (nist-ai-rmf-2023-v0.1.0, mapping — not US legal tiers). Multi-regime via regimes[], .riskline.yaml, RISKLINE_REGIMES. MAS packs are next — not shipping claims yet. geographic_scope is not a regime selector.

Distribution model borrows from Open Policy Agent and Trivy — single binary, no runtime, CI-friendly.

Website: new-world-coder.github.io/riskline · Printable one-pager

Why this exists

Most "AI governance" tools want you in a portal. Engineering teams already live in CI and the terminal. Classification that can't run offline, can't be diffed, and can't explain which article fired is hard to trust — especially when the output looks like legal judgment.

This is the wedge: a small, embeddable engine + CLI + HTTP API with the same contract.

Quick start (CLI)

go install github.com/new-world-coder/riskline/cmd/riskline-cli@latest
# or from this repo:
go build -o bin/riskline-cli ./cmd/riskline-cli

./bin/riskline-cli examples/curl/hiring-assist.yaml
./bin/riskline-cli --json examples/curl/hiring-assist.yaml
./bin/riskline-cli -regimes eu-ai-act --json examples/curl/hiring-assist.yaml
./bin/riskline-cli -list-regimes

Optional project defaults: copy examples/riskline.yaml to .riskline.yaml, or set RISKLINE_REGIMES=eu-ai-act.

The CLI reads local files only. It does not phone home. See PRIVACY.md.

API

go run ./cmd/riskline-api -addr :8080
curl -s localhost:8080/v1/classify -H 'content-type: application/json' -d @examples/curl/hiring-assist.json

Contract: api/openapi.yaml.

What you should not expect yet

  • Full Annex III coverage (v1 prioritises recruitment, employment, credit, biometrics, law-enforcement risk scoring, plus a couple of adjacent cases)
  • "Enterprise-ready" anything, customer logos, or published prices
  • Hosted multi-tenant SaaS (stubs marked TODO(hosted):)

Early access for a hosted endpoint: open a thread in GitHub Discussions — no public price list on purpose.

Write-ups

See also ROADMAP.md and ready-to-post copy in content/social/LAUNCH_COPY.md / content/social/OUTREACH_EU_SG.md.

Disclaimer

Every response includes this, and we keep a test that checks it stays put:

This classification is an advisory tool based on a versioned ruleset. It is not legal advice and is not a substitute for qualified counsel or a formal conformity assessment.

License

Apache 2.0 — see LICENSE.

Directories

Path Synopsis
cmd
riskline-api command
riskline-cli command
internal
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL