FairMind

v0.5.0a0
io.github.adhit-r/fairmind Checked 22 hours ago Published 9 days ago

Release gate for AI systems from FairMind: evaluations, framework evidence and ledger snapshots.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

list_systems

List the AI systems the configured FairMind key can see, with id, risk tier and lifecycle stage.

get_system

One AI system: name, owner, risk tier, lifecycle stage and metadata.

ParameterTypeDescription
system_id *string

register_system

Register an AI system. Without `workspace_id` it goes into the organisation's first workspace, or a new one named Default when there is none. Use the risk tier the user states; do not guess one.

ParameterTypeDescription
name *string
lifecycle_stagestring
owner
risk_tierstring
workspace_id

release_gate

May this AI system ship? Returns the verdict (go, conditional_go, no_go), confidence, the five checks (each proven, attested or open; `fails` marks one whose test failed), the reasons and the release decision status (not_requested, pending, approved, rejected). A release that needs sign-off may ship only when that status is approved.

ParameterTypeDescription
system_id *string

clause_map

Read the release gate per regulatory clause (EU AI Act, ISO 42001, NIST AI RMF, ...). `frameworks` optionally limits it to catalogue keys such as EUAIA or ISO42001. `auditReady` says whether `fairmind audit` would pass: no open clause (excluded ones count as closed); `strict=true` also fails on a partial clause, as `fairmind audit --strict` does.

ParameterTypeDescription
system_id *string
frameworks
strictboolean

run_fairness_test

Run a fairness test on a CSV on this machine (one row per decision) and store it as measured evidence. `outcome` is the column with what happened, `attributes` the protected attribute columns, and `prediction` (0/1) or `score` (0 to 1) the model's output column. `favorable_label` names the favourable value when a column is not 0/1. Returns the metrics and the updated gate.

ParameterTypeDescription
attributes *array
csv_path *string
outcome *string
system_id *string
favorable_label
prediction
score

record_monitoring_snapshot

Compare recent production decisions in a CSV on this machine against the system's latest fairness run (selection-rate drift, impact ratio, score PSI) and store the snapshot as measured evidence. Needs `prediction` (0/1) or `score` (0 to 1).

ParameterTypeDescription
attributes *array
csv_path *string
system_id *string
favorable_label
prediction
score

attest_check

Record that a person states a gate check is satisfied (manual evidence: it attests, it never proves). Only call this with a statement the user has given or confirmed; never invent one. `statement` is at least 12 characters; `reference` optionally points at a document or ticket.

ParameterTypeDescription
check *string
statement *string
system_id *string
reference

list_evaluations

Search FairMind's evaluation catalogue (for example "drift", "injection", "leakage", "counterfactual"). Each entry says what it measures, its pass threshold and whether FairMind can run it.

ParameterTypeDescription
query

describe_evaluation

The files and params an evaluation takes before run_evaluation, and whether it can run as a behaviour test against the live system.

ParameterTypeDescription
evaluation_id *string

run_evaluation

Run a catalogue evaluation and store the result as measured evidence. `files` maps the file names from describe_evaluation to paths on this machine. `live=true` runs its behaviour test against the system's connected endpoint, judged by the organisation's model (this can take minutes). `use_connection=true` reads the organisation's connected agent platform instead of files. Returns passed, failed or insufficient with the metrics.

ParameterTypeDescription
evaluation_id *string
system_id *string
files
liveboolean
params
use_connectionboolean

create_evidence_pack

Build a hashed inspection pack of the chosen systems' evidence and clause maps. `frameworks` are catalogue keys such as EUAIA or ISO42001. `share=true` also mints a read-only auditor token (shown once; the link is /verify/<pack id>?t=<token> on the FairMind site).

ParameterTypeDescription
frameworks *array
system_ids *array
title *string
shareboolean

verify_evidence_pack

Check an inspection pack: recompute its manifest hash and each system's evidence chain head and say whether it is intact. Give one of `path` (a downloaded pack.json on this machine, checked offline), `link` (an auditor share link, fetched then checked locally) or `pack_id` (a pack of the signed-in organisation).

ParameterTypeDescription
link
pack_id
path

record_finding

Record a risk finding against a system (for example risk_type "bias" or "privacy"). Use what was actually observed; never invent one.

ParameterTypeDescription
description *string
risk_type *string
severity *string
system_id *string

list_findings

Recorded findings (risks) with counts by severity, and, when `system_id` is given, that system's remediation tasks.

ParameterTypeDescription
system_id

create_remediation_task

Open a remediation task for a system, optionally tied to a finding id from record_finding or list_findings.

ParameterTypeDescription
description *string
system_id *string
title *string
finding_id
owner
prioritystring

update_remediation_task

Move a remediation task to a new status and/or add notes.

ParameterTypeDescription
task_id *string
notes
status

request_release_approval

Ask for a release decision on a system, or read where the latest request stands. A person approves or rejects it in FairMind; this server cannot.

ParameterTypeDescription
system_id *string

generate_report

Generate and store an audit report snapshot (risks, evidence, approvals) for a system, and list the earlier ones.

ParameterTypeDescription
report_type *string
system_id *string
title