A small, dependency-free Python library and a written standard for one idea from Crewloom: the Protocol.
A Protocol is a mandatory, ordered procedure for an AI agent. It has a trigger, numbered steps, an exit condition you can check with a command or a schema, a failure rule, and one file that owns it. It sits next to Skills, Rules, Roles and Tools, and is defined by what it does, not by its name.
Status: draft, format version 1 (see SPEC.md, CHANGELOG.md). Nothing is released or published. The definition comes from Crewloom's Brain/ARTIFACT_TAXONOMY.md, which is itself marked draft and pending operator review. This library reads and checks that format. It does not run protocols and does not enforce them.
| Path | What it is |
|---|---|
SPEC.md |
The format, versioned: fields, what "complete" means, enforcement, relation to CPS-1 |
schema/protocol.schema.json |
JSON Schema for the JSON form |
conformance/ |
Valid and invalid example files with expected results |
docs/PRIOR_ART.md |
What else exists, with sources and what was not checked |
docs/PROTOCOL.md |
What a Protocol is, how it differs from a Skill, Rule, Role and Tool, the template, and the status words |
docs/PHILOSOPHY.md |
Why Crewloom separates these things, and what that does and does not claim |
examples/sample-protocol.md |
A teaching sample, not a registered Crewloom protocol |
crewloom_protocol/ |
Parser and completeness check, standard library only |
tests/ |
Unit tests (python3 -m unittest discover -s tests) |
from crewloom_protocol import parse_protocol, check_protocol
text = open("examples/sample-protocol.md", encoding="utf-8").read()
protocol = parse_protocol(text)
print(protocol.name, protocol.is_advisory) # readme-check True
print(check_protocol(protocol)) # [] means completecheck_protocol tells you the protocol is complete (seven core fields, at least two steps, kebab-case name, supported format, known status). It cannot tell you the protocol is followed.
If a protocol has a check: command, run_check(protocol) runs it (no shell) and reports whether the exit condition holds. It runs code from the file, so only call it on files you trust; nothing runs it automatically.
- No runner or gate engine. This library reads and checks protocol files only.
- No npm or PyPI package. Nothing is published.
License: Apache-2.0, same as Crewloom core.