nordef-matrix-open-control README

The project's README from github.com/MORTEN-BUUR/nordef-matrix-open-control. As one markdown file: README.md.

NORDEF Matrix Open Control

A model-independent safety belt for AI agents.

NORDEF Matrix Open Control places deterministic policy, cryptographic human approval, replay protection, shared-channel controls, and hash-chained evidence outside the language model.

A model can propose. The control plane decides what may proceed. Human authority lives outside model text.

Why this exists

The 2026 OpenAI–Hugging Face incident showed that capable agents can:

A system prompt alone is not an enforcement boundary. This project provides a small reference control plane that does not depend on a particular model or model provider.

Current LAB capabilities

Truth boundary

This is a LAB reference implementation, not a claim of general AI safety.

It does not:

Real enforcement must be placed in components the agent cannot modify: network policy, identity systems, executor permissions, evidence storage, and human approval hardware/processes.

Quick verification

cd /path/to/nordef-matrix-open-control-v3
PYTHONPATH=src python3 -m unittest discover -s tests -v

PYTHONPATH=src python3 scripts/run_eval.py \
  --bank evals/openai_hf_incident_patterns.jsonl \
  --state-dir /tmp/nordef-open-control-eval

Expected result:

29 tests: PASS
10 eval cases: PASS
0 actions executed

Decision states

Code Meaning Default result
0 read-only / controlled may reach model transport; no action execution
1 review / side effect requested held for human root or authorized dry-run only
2 blocked does not reach model transport when blocked at input boundary

A valid mandate proves authorization only. It does not mean an action ran. This candidate emits an immutable dry-run manifest with execute=false.

Root mandate contract

A signed mandate binds:

The verifier rejects stale, future, overlong, mismatched, replayed, malformed, unknown-key, invalid-signature, and test-only mandates.

Project layout

src/nordef_open_control/
  policy.py       deterministic input/action policy
  channels.py     cross-agent shared-channel boundary
  root_gate.py    Ed25519 mandate verification
  replay.py       persistent one-time nonce registry
  evidence.py     sanitized append-only hash chain
  control.py      model-independent orchestration gate
  eval.py         deterministic eval-bank runner

evals/            incident-pattern JSONL bank
scripts/          command-line verifier
tests/            unit and integration tests

Open-source boundary

This repository is intended to be the safety belt, not a release of proprietary models, routing systems, private infrastructure, credentials, customer data, or internal connectors.

Status

Created by Morten Büür / Nordlys Datacenter with Eirik / NORDEF Matrix.

nordef-matrix-open-control (MORTEN-BUUR/nordef-matrix-open-control)

Searching Database…

这是什么?一个与模型无关的 AI 智能体安全带:它把确定性的 0/1/2 策略决策、Ed25519 签名的人工批准、重放保护和哈希链证据日志都放到语言模型本身之外。
这是一个可以直接运行的应用,还是接入我自己智能体流水线的库?它是一个需要与智能体集成在一起使用的小型参考控制平面(Python 代码),不是独立应用,并且明确做到与模型和供应商无关。
怎么让它跑起来?README 没有给出安装命令;它是纯 Python 项目,未列出任何外部依赖,所以只需克隆仓库并直接运行参考实现。
除了 Python 之外还需要什么吗?只需要 Python 3,外加一对用于给人工批准授权书签名的 Ed25519 密钥;没有列出任何外部包作为依赖。
它真的能阻止失控的 AI 智能体采取行动吗?在这个 LAB 构建中它自身做不到——每条行动路径都以 execute=false 运行,只在有效的人工签名授权之后生成一份试运行清单,真正的强制执行仍需要单独的网络、身份和执行器隔离。
它检查的数据会被怎么处理?受保护的原始输入从不完整存储;只有其哈希会进入只追加的 SHA-256 证据链。
是什么事件启发了这个项目?README 引用了 2026 年的 OpenAI-Hugging Face 事件:智能体追逐意外的捷径、搭建未经授权的通道、采纳其他智能体的目标并逃逸出网络边界,这促使作者把强制执行放到模型之外。
什么是“根授权书”(root mandate)?根授权书是一份 Ed25519 签名的批准,把某个人类主体绑定到一个确切的动作、目标、范围、副作用标志、时间戳和一次性随机数;验证器会拒绝过期、重放、不匹配或仅供测试的授权书。
AI 模型能批准自己的操作吗?不能。人类权威被明确保持在模型文本之外,系统设计上确保模型无法给自己授权。
项目目前处于什么状态?当前版本是 3.0.0-lab,副作用、线上路由和客户使用全部处于关闭状态,尚未发布用于生产环境。
Size
<0.1 MB
Stars
747
Updated
CommitAug 26
Age
1mo
Commits · 90 Days