Skip to main content

airmkit

Operationalise the MAS Guidelines on AI Risk Management for LLM and agentic AI systems — and measure how far that is possible.

CI PyPI Python License DOI

📄 Read the paper on the web · ⬇️ Download the PDF · 📚 Documentation · 🤗 Dataset · 📋 One page for a CRO

Less than half of the MAS Guidelines can be checked by a machine. 45.1% of the 51 expectations admit a fully automated check. That share is 84.6% for inventory and materiality (Section 4) and 0% for AI oversight (Section 3).

Stacked bars of the share of expectation paragraphs in each section of the Guidelines that are auto, semi or doc. Section 4 is 85% auto, Section 5 is 46% auto, and Sections 1, 2, 3 and 6 have no auto paragraphs.

The frameworks you already follow will not cover it. No single framework fully covers even half of the expectations. ISO/IEC 42001, the NIST AI RMF and the EU AI Act together leave 18 of 51 with no full mapping, and all six frameworks together still leave 10.

Stacked bars of how many of the 51 expectation paragraphs each framework covers fully, partially or not at all. NIST AI RMF is highest at 25 full. All six combined reach 41 full and 10 partial.

Automatability labels and crosswalk mappings are the author's own judgement, made by one annotator and not reviewed by MAS. Full method and limits are in the paper.

The Monetary Authority of Singapore issued its Guidelines on Artificial Intelligence Risk Management on 7 October 2026. Sections 3–4 — oversight, identification, inventory and risk materiality — bind from 7 October 2027; Sections 5–6 — lifecycle controls and capability — from 7 October 2028 (§1.8, as clarified by the Response to Feedback §13.5).

The Guidelines are thirty pages of principles, and the regulator is explicit that they prescribe no formula, metric or threshold. airmkit turns the principles into artefacts an engineer can produce and an auditor can read: a machine-readable clause catalogue, an AI inventory schema with first-class support for agents, a transparent risk-materiality rubric whose every signal cites a paragraph, a control catalogue in which every control cites the paragraph it serves, evidence records that cannot be quietly edited, and an audit pack. The same repository is a pre-registered study of how much of the Guidelines can be machine-checked, with every refutation reported.

Not affiliated with MAS. Not legal or regulatory advice. Independent open-source project. Every interpretation and every threshold is the authors'; MAS declines to prescribe materiality formulae, metrics or testing methodologies (Response to Feedback §7.19, §10.28, §10.66). See DISCLAIMER.md.

Why

Most AI-governance tooling stops at a spreadsheet of policies. The hard part of these Guidelines is not writing the policy; it is answering three questions per use case, repeatedly, with evidence a supervisor can inspect:

  1. What AI do we actually have? Including AI embedded in SaaS the vendor does not call AI (§4.2 fn21), and the shadow AI that staff adopted without asking (§4.4 fn22).
  2. How material is it? On Impact, Complexity and Reliance (§4.12), where moving a use case from "staff review every suggestion" to "the agent calls the tool itself" changes the answer.
  3. Which controls bind, and can we show they work? Including the expectation that guardrails be tested for effectiveness, not merely present (§5.15 fn46).

airmkit answers all three from files in your repository, and prints the paragraph behind every answer.

Install

pip install airmkit                 # core
pip install "airmkit[evals]"        # adapters for inspect-ai, deepeval, ragas, garak
pip install "airmkit[report,docs]"  # DOCX output and the docs site

Python 3.11+. No GPU, no API key and no network access are needed for the core or for make reproduce.

Three-command quickstart

airm init --institution "Merlion Commercial Bank"   # scaffold a register and rubric
airm scan . --out candidates.yaml                   # find AI already in your code and configs
airm report --register ai-inventory.yaml --out audit-pack/

The third command writes the audit pack: an inventory register, a materiality report, a control-applicability statement, a gap analysis by effective date and a one-page board summary.

$ airm assess --register examples/synthetic_bank/ai-inventory.yaml

  Use case                     Impact      Complexity  Reliance    Inherent   Residual
 ─────────────────────────────────────────────────────────────────────────────────────────
  credit-decision-model        critical    medium      high        Critical   High
  aml-alert-triage             high        medium      medium      High       Medium
  kyc-document-agent           high        critical    high        Critical   High
  policy-rag-assistant         low         medium      low         Medium     Low
  ...
  Rubric: default-v1 · dimensions MAS-AIRM §4.12(a)-(c) · tiering is this toolkit's proposal
$ airm check --register examples/synthetic_bank/ai-inventory.yaml --use-case kyc-document-agent

  FAIL  AIRM-5.15-GUARDRAIL-EFFECTIVENESS   guardrail 'injection filter' has no effectiveness test
        MAS-AIRM §5.15, §5.15 fn46 · auto
  ATTEST AIRM-5.19-INDEPENDENT-VALIDATION    validator must be independent of dev and deployment
        MAS-AIRM §5.19 · semi · inherent tier Critical
  PASS  AIRM-4.8-FN25-AGENT-ATTRIBUTES      agent identifier, tools, components, guardrails present
        MAS-AIRM §4.8 fn25 · auto

A semi control never reports PASS: when its automated check succeeds, the outcome is NEEDS_ATTESTATION, because the toolkit has confirmed that the artefact exists and is current but cannot judge whether it is adequate. Read that count as a work queue, not a failure count; airm check exits non-zero only on a genuine FAIL.

What is in the box

Module Serves What it does
airm.catalog §1.1–§1.8 65 paragraphs and 51 footnotes as data: tags, effective dates, agent attributes, GenAI failure modes
airm.inventory §4.5–§4.9, fn25 Pydantic models for use cases, with an AgentExtension for tools, permissions, components and guardrails; register diff and completeness scoring
airm.materiality §4.10–§4.13 Impact / Complexity / Reliance scoring from a YAML rubric; inherent and residual tiers; every score carries its reasons
airm.controls Section 5 65 controls with applicability by tier, required evidence, automated checks and an automatability class
airm.evals §5.14–§5.15 Adapters that read inspect-ai, promptfoo, deepeval, ragas and garak output and map it to controls; agent tool-scope audit; 20-probe guardrail runner
airm.monitor §5.17, §5.23 Hash-chained JSONL evidence and incident log
airm.thirdparty §5.10–§5.11 Vendor assessment records, independent assessment vs self-attestation, limit/suspend/replace decision
airm.crosswalk — MAS-AIRM ↔ ISO/IEC 42001, NIST AI RMF (+ GenAI Profile), EU AI Act, FEAT, Info Paper 2024: 224 rows
airm.scan §4.2, §4.4 Shadow-AI discovery: LLM SDK imports, model endpoints, MCP server configs, agent frameworks, vendor AI SaaS
airm.report — Markdown → DOCX audit pack and summary.json
airm.schemas — 20 JSON Schemas so a GRC platform or spreadsheet can adopt the formats without Python

Full documentation — a concepts guide, the CLI reference, a cookbook and the generated clause index — is at https://thanatchon36.github.io/airmkit/ (make docs builds it locally).

The paper

Operationalising the MAS Guidelines on AI Risk Management for LLM and Agentic Systems: A Machine-Checkable Control Catalogue and Pre-registered Empirical Study.

📄 Read it on the web https://thanatchon36.github.io/airmkit/paper/ — one reading column, the abstract, every pre-registered verdict, figures and references
⬇️ Download the PDF paper/paper.pdf — direct download; typeset with Typst
📝 Markdown source paper/paper.md, rendered from paper/paper.md.in
🔢 Every number in it injected from results/summary.json; nothing is typed by hand
🤗 The data as tables thanatchon36/airmkit on Hugging Face: catalogue, controls, crosswalk, verdicts and guardrail results
📋 One page for a CRO docs/EXEC_SUMMARY.md

The manuscript was written by Claude Fable 5.1 from the author's catalogue, experiments and result files, under the constraint that every number is injected and every refutation and instrument defect is reported; the author reviewed it and is responsible for its content (see the paper's acknowledgements).

What it found

Five research questions, thresholds fixed in docs/RESEARCH_QUESTIONS.md before the experiments ran. Of 17 hypotheses, 10 held and 7 were refuted; all of them are reported with the thresholds they failed.

  • Automatability stops at the governance boundary. 45.1% of expectations admit a fully automated check: 84.6% in Section 4 (inventory, materiality) and 0% in Section 3 (governance). Counted per control, the semi-automatable class dominates. The obligations that bind first are the ones tooling can carry.
  • An agent raises the control set, not the tier. Up a six-rung autonomy ladder, applicable controls grow monotonically, but only 1 of 4 use cases changed tier: tier is dominated by consequence. A review keyed on tier will miss the agent step.
  • Guardrails that are effective and unusable. On a local model, attack success fell from 75% to 0% of 16 trials with a layered defence (95% upper bound 19%), which also refused 50% of benign in-scope requests. No pattern met both pre-registered thresholds. Three measurement defects are disclosed, including one corrected after release in v0.1.1.
  • What remains after certification is governance, not agents. The ISO 42001 + NIST AI RMF + EU AI Act union leaves 35.3% of expectations with no full mapping, and the residue is the applicability regime, board duties, shadow AI, materiality arbitration and third-party accountability — not the agent clauses.
  • Proportionality scales rigour, not volume. Evidence items are flat across tiers (91.4 at Critical, 92.0 at Medium); 93.1% of estimated effort is attestation and documentation.
make reproduce     # rebuilds every table and figure from the committed sources, no hosted API
make quick         # under 5 minutes, no model calls

Results are in results/summary.json, the figures in results/figures/ with their captions, and make paper rebuilds the Markdown, the PDF and the web reader together, so the three cannot disagree.

Clause index

Every paragraph of the Guidelines maps to the module, control and CLI command that implements it. The table is generated from the catalogue, never hand-maintained:

airm clauses --format markdown        # or: make docs

Development

make setup      # uv venv -p 3.11 and an editable install with every extra
make quick      # lint, fast tests and the worked example — under 5 minutes
make test lint  # full suite with coverage; ruff + mypy --strict
make help       # every target

Generated files (schemas/, results/summary.json, paper/paper.md, paper/paper.pdf, docs/paper/index.html, docs/EXEC_SUMMARY.md, docs/posts/*.md, docs/clause-index.md) have staleness tests: edit the source, then run make schemas paper docs.

Contributing

The most useful contributions are crosswalks to other regulators (HKMA, BNM, Bank of Thailand, APRA), eval adapters, and challenges to the interpretations in docs/INTERPRETATIONS.md — if you read a paragraph differently, open an issue and say which paragraph. See CONTRIBUTING.md.

Citation

@software{airmkit,
  author  = {Chongmankhong, Thanatchon},
  title   = {airmkit: Operationalising the MAS Guidelines on AI Risk Management
             for LLM and Agentic Systems},
  year    = {2026},
  url     = {https://github.com/thanatchon36/airmkit},
  doi     = {10.5281/zenodo.23341671},
  version = {0.1.1}
}

The DOI above is the concept DOI (always resolves to the latest version); v0.1.0 is 10.5281/zenodo.23341672. See CITATION.cff. Release notes are in CHANGELOG.md.

Licence

Apache-2.0. The MAS documents reproduced under docs/sources/ remain MAS copyright and are included only so that every citation in this repository can be verified offline.

Metadata

Release files for airmkit 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for airmkit 0.1.1
File Size Uploaded Provenance Actions
airmkit-0.1.1.tar.gz 215.7 kB With provenance Details for airmkit-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for airmkit 0.1.1
File Interpreter ABI Platform Actions
airmkit-0.1.1-py3-none-any.whl Python 3 none any Details for airmkit-0.1.1-py3-none-any.whl

Total release size: 390.4 kB

Release files / airmkit-0.1.1.tar.gz

Download URL airmkit-0.1.1.tar.gz
Size 215.7 kB
Tags Source
SHA-256 checksum
How to use checksums
86fae95124f028b13bb638a81c25027cdb22a791709c9b6d6440b348095dcea2
BLAKE2b-256 checksum
How to use checksums
7bec13c4ac768daac4a316287a62cc1dbb62e3996af10f12d91a51eac18462d9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 6, 2026.

Transparency log

Release files / airmkit-0.1.1-py3-none-any.whl

Download URL airmkit-0.1.1-py3-none-any.whl
Size 174.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
94427fcbf98e5b31c7b65dfe3290c9b22425a76bd2740ecc1d3834fe2bba038e
BLAKE2b-256 checksum
How to use checksums
75919d55a64810b1f46152704cc2507ef2580f0ab5129878a53683c6b3d9e81e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 6, 2026.

Transparency log

Security for airmkit 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for airmkit-0.1.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 6, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page