
Brevet
io.github.BrightbeamAIv0.3.0更新于 Oct 6, 2026
Change control for what AI agents learn: humans promote, releases are signed, rules can be recalled
概览
Brevet 包装现有 AI 智能体,记录人工纠正、提出学到的规则、要求人工批准、签署发布并可召回能力。
- 功能
- Brevet 是一个本地优先的 Python 运行时,包装你已有的智能体并治理其学习过程。它把专家纠正记录为 override,在离线 dream 周期把反复出现的 override 变成候选规则,并由指定人员或 mission group 在 dawn 关口批准提升。被提升的能力随签名 release 发布并列入 capabilities.lock,之后可被召回,每一步都记录在哈希链接的证据链上。它还会把 override 重放为 eval,并阻止使结果变差的发布。
- 适用场景
- 当智能体会自行更改记忆、技能或指令,而你需要这些更改被记录、由可问责的人员或小组批准并可回退时使用。它适合希望获得智能体学到了什么、由谁批准的审计记录,同时不改变智能体本身的团队。
- 运行要求
- 作为 Python 包(brevet)在本地运行,可通过 uvx 或 pip 安装;不需要模型或网络连接。需要 BREVET_HOME 环境变量指向包含 agent.yaml 和 .brevet/ 的工作区目录,首次使用时用 brevet init 创建。可选 BREVET_AUTO_CAPTURE 控制是否自动记录纠正。仅限桌面端。
安装
在 SourceWeft 中
- 打开 控制台中的 Brevet,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
Brevet: Change Control for What AI Agents Learn
A governed evolution loop that makes agent learning promotable, auditable, and revocable.
[Python 3.10+] [License: Apache-2.0] [CI] [CHAP-compatible]
AI agents now change their own behaviour while they work. They save memories, write themselves new skills and edit their own instructions. Many of these changes help. Yet none of them passes through the steps an organisation expects when a person changes how work is done. Nobody writes the change down, nobody approves it, and when it turns out to be wrong there is no earlier version to go back to.
Brevet adds those steps. It is a local-first Python runtime that wraps the
agent you already have and runs its learning as a governed evolution loop.
When an expert corrects the agent's draft, Brevet records the correction and its
reason as an override. Offline, in the dream cycle, overrides that keep
recurring become candidate capabilities: proposed rules and other learned
behaviour, with no authority. At the dawn gate, a named human or mission
group (the accountable review board) decides which candidates to promote. The
overrides then replay as evals, and the conservative gate stops a
release that makes either half of them worse. Promoted capabilities ship in a
signed release, listed in capabilities.lock, and a capability that proves
wrong can be recalled, with every release that shipped it flagged. Every
step is recorded on a hash-linked evidence chain.
Agents propose deltas; evidence tests them; humans promote them; the runtime only ever executes signed versions.
Three questions Brevet answers
A concrete example
A quality reviewer at a pharmaceutical plant checks an agent's severity rating
for each equipment problem. The agent rates pump vibration during cleaning as
minor. She overrides it to major every time, because that vibration is an
early sign of seal wear. After four overrides, the dream cycle proposes a
candidate rule. At dawn her mission group promotes it, and release 0.2.0 ships
with the rule in its capabilities.lock. Months later, engineers trace the
vibration to a faulty sensor, so the mission group recalls the rule and Brevet
flags release 0.2.0.
The same story in code
The agent here is a plain Python function; with a real framework you pass your agent object instead.
The full script is examples/pump_vibration.py, and ABOUT.md shows what it prints.
Quickstart
Everything runs on your own machine, with no model or network connection. To
run the example above, clone the repository and run
python examples/pump_vibration.py. For a guided, clickable tour, open
docs/demo.html in a browser.
Works with the agent you already have
brevet.wrap() recognises agents built with LangGraph, the Claude Agent SDK,
DeepAgents, AutoGen, LlamaIndex, Pydantic AI, the Google Agent Development Kit,
CrewAI and the OpenAI Agents SDK, and it accepts any Python function. Brevet
never changes the agent it wraps. uvx brevet mcp offers the whole loop to any
MCP client (ABOUT.md shows the setup), and
examples/claude-cowork uses it to govern what Claude
itself learns.
Project status
Brevet implements the whole loop and keeps every record, and a workspace can require every decision to be signed by its registered approvers. Some protections depend on the system you deploy it in, such as verifying who holds each key and anchoring the evidence chain outside the machine. ABOUT.md lists them, and the paper sets them out in full.
Learn more
- ABOUT.md: the seven stages, the authority ladder, supported frameworks, the MCP server and commands, how Brevet fits with CHAP and Metis, and how the repository is organised.
- GLOSSARY.md: every term, with its plain meaning first.
- SPEC.md: the rules any implementation must follow.
- BENCHMARK.md: the proposed governed-adaptation benchmark.
Citation
If you use Brevet in research, please cite the paper Brevet: Change Control for What Self-Evolving AI Agents Learn (Shahid, Suttie and Black, 2026). CITATION.cff gives the software citation.
License
Apache-2.0. See LICENSE. Brevet is a Brightbeam project.
来源:README.md,提交 c4b8a19
工具
0版本历史
1- v0.3.0最新Oct 6, 2026


