Actors and what they do with a system: who did it and for whom, what effect it has, who may do it without asking, and how a run is reported.
| SPEC.md | the specification (normative) |
| src/ | its C++ modules: openas, openas.conformance |
| tests/ | the modules' tests |
[dependencies]
openlifa.openas = "0.2.1"import openas;
auto alice = *openas::parse("person:alice");
auto agent = openas::delegate(alice, openas::Kind::agent, "claude");
openas::format(agent); // "agent:claude;via=person:alice"
openas::Verb drop{.name = "notes.delete", .summary = "Delete a note", .effect = openas::Effect::irreversible};
openas::Grant grant = *openas::parse_grant("agent:claude;via=person:alice=irreversible@notes.*");
openas::decide(drop, agent, false, {}, {&grant, 1}); // Decision::run; without the grant, askUsed by openmui.
import openas;keeps the actor, effect, grant and envelope API.import openas.conformance;checks a system description, actor or grant against the same specification implementation.import openas.sdk;re-exports both for clients that want the complete SDK.
The SDK module is the explicit [lib] interface root. It is only an acyclic
aggregation: the existing modules and their type identities do not change,
and no checker or protocol rules are duplicated. In particular, the core
module does not import its own conformance client. No additional package or
build-program stage is needed.
Source and archive consumers see these same public entry points from 0.2.1
on; the indexed 0.2.0 archive predates the SDK root and stays as it is. The
standard's version is 0.2 in both, and what a run does is unchanged. A core-API
consumer need only import openas; that is not a claim that conformance source
files are pruned from this package's build.
Run the distribution regression without a GUI (Python 3.12+ and mcpp):
python3 tools/check-distribution.py --output target/distribution.report.openas.jsonThe checker works in temporary producer/consumer projects, leaving the source
checkout and its lock untouched. It builds a real static archive, unpacks it,
then builds and executes separate source, archive, core-API and SDK-API
consumers. Both positive authorization/conformance cases and invalid inputs
are checked. The archive must contain interfaces and compiled implementation,
not .cpp sources; packed consumers must not compile the producer's original
sources. A private-module warning is a failure. The JSON report and logs
identify each command and its result; nonzero exit means incomplete validation.
Use --keep-work for compiler/graph inspection, and rerun after correcting a
failed declaration. This is a library distribution check, not an installation,
release or remote permission change.
Code: Apache-2.0. The specification text: CC BY-SA 4.0. Copyright 2026 OpenLifa & Sunrisepeak.