OAIP — Observed Action & Intent Protocol
A content-addressed causal graph of what humans, agents, and tools actually did — and on what observed basis you accepted the result.
Git remembers what changed. OAIP remembers the rest: why (intent), by whom, from which workspace state, on what observed evidence, what was validated, and — the part that matters for agents — that a change was accepted, not just that a command exited 0.
intent → execution → effects → claim → ACCEPT
"reject "ran the "src/auth.py "auth a signed Warrant, citing the
expired change" modified, rejects provenance as evidence and the
tokens" test added" expired" validation as a re-runnable check
The accepted decision is a real, signed, hash-addressed Warrant record — not a line in console.log.
Why not just a trace log / agent-observability tool?
Because those treat an agent's own JSON as fact: it wrote "fixed auth", so the dashboard says auth is fixed. OAIP's cardinal rule (SPEC §4):
execution success ≠ validation success ≠ acceptance. A zero exit code earns execution success only. A claim is acceptable only if a separate validation check passes, and acceptance is a signed Warrant filed under policy.
So the bridge refuses to accept a claim whose check failed — even if the command returned 0. That refusal is the whole product.
Ten seconds
cd your-git-repo
oaip=~/…/oaip/impl/oaip.py
python3 $oaip init # ledger + a local Warrant store, and a signing key
# in a TRUST ROOT *outside* this repo (see below)
# one-shot: intent → run the agent action → validate → accept ONLY if the check passes
python3 $oaip do --intent "make login reject expired tokens" \
--predicate auth.rejects-expired \
--check "python3 tests/test_auth.py" \
--allow-check-effects \
--actor you@host \
-- your-agent-command
python3 $oaip log # intent → execution → effects → claim → warrant
python3 $oaip verify # artifacts match their addresses; the store verifies;
# every OAIP acceptance was signed by a key bound to the
# actor it claims; and the key custody is reported
# (see llms.txt for what that does and does not establish)
python3 $oaip trust-root # where the key and keyring live, and what that stops
If the validation check passes, do files a signed Warrant. If the command
exits 0 but the check fails, do refuses and files nothing — that refusal
is the whole point (SPEC §4). The four verbs (intent / run / claim /
accept) are also available separately when you want to inspect each step;
examples/auth-demo.sh walks them, including the refusal case.
--allow-check-effects is there because the check above really does write to
your repository: python3 tests/test_auth.py leaves __pycache__/. The
execution's after-state was snapshotted before the check ran, so without the
flag OAIP refuses the claim rather than sign a decision whose effect list omits
those writes; with it, the claim cites what the check changed as evidence. Drop
the flag if your check is read-only — and read SPEC §8.5 SA-13 before reading
either behaviour as confinement: the check runs unconfined on your host
(oaip-host-shell@v1, §7.3), and this observes what it did rather than
preventing it.
What it gets right by construction
before_state = HEADlies. The observer snapshots the full workspace (tracked + staged + untracked + env/toolchain fingerprint) into a throwaway git index — content-addressed, no commits added to your history. (SPEC §2.2)- Canonical vs projection. The truth is the content-addressed artifacts + the Warrant store. The SQLite ledger is a projection you can delete and rebuild. (SPEC §5)
- Causality is honest. Attribution carries a confidence in parts-per-million integers (no floats); an honest "probably the agent" beats a deterministic lie. (SPEC §2.6)
- It reuses, doesn't reinvent. Warrant SPEC §4 canonicalization verbatim;
accepted claims are Warrant records; Σ-GLYPH
ski@v1is the forward path for portable checks. OAIP adds exactly one layer: a clean input to the decision layer. - The record formats are pinned by vectors, not by the implementation.
examples/vectors.jsonpins how a record serializes andexamples/record-vectors.jsonpins what a record is — positive shapes and, more usefully, the shapes that MUST be refused. Until 2026-07-30 only the first existed, and the reference implementation wrote a different record from SPEC §2 for every type in it while reporting conformance;llms.txttells that story. (SPEC §10) - It says what it is not. SPEC §9 maps every record onto W3C PROV and onto in-toto/SLSA, states where IETF SCITT begins and OAIP stops, and names the two things OAIP actually adds — the acceptance boundary and uncertain attribution. If those two are not what you need, §9 says so and points elsewhere.
Where it fits
Reactions (budget-bounded; not in v0.1)
Policies (execution / decision / reaction)
Warrant signed decisions + causal DAG ← github.com/s0fractal/warrant
Claims formalized assertions about states
── OAIP ──────── observed causality: intent/execution/effect/attribution
Σ-GLYPH deterministic portable checks ← github.com/s0fractal/sigma-glyph
Git / CAS content-addressed bytes
The bridge generalizes: graduating decisions
The accept bridge isn't code-specific. The same subject + evidence + reason →
signed Warrant move graduates any decision that is attributed and
tamper-evident but not yet signed — for instance a decision node in a
mind-os / workos thought-graph, whose own
README calls per-author cryptographic signatures "the deliberate next tier."
This bridge is that tier: it reads the decision's public projection and files
a Warrant that ratifies it, citing the source as evidence — without the source
taking a hard dependency on Warrant. See
examples/graduate-decision.sh. So the four
repos compose into one stack: Σ-GLYPH computes checks, OAIP observes doing,
mind-os records reasoning, and Warrant is the signed-decision tier both provenance
halves graduate into.
Who can forge an acceptance here
The point of the §4 gate is that the party being gated cannot supply its own
acceptance. That is a property of where the signing key is, so OAIP keeps the
key and the keyring in a trust root outside the observed workspace —
$XDG_CONFIG_HOME/oaip/roots/<ledger> by default, or wherever --trust-root /
$OAIP_TRUST_ROOT says. oaip run hands the observed command a workspace; it no
longer hands it the key that signs the verdict on that command's work.
Stated as precisely as it can be (the full matrix is SPEC §8, and it
is executed by tests/privilege_separation.py):
- An agent with write access to the workspace can no longer mint an
acceptance: a keyring it writes at
.oaip/trust.jsonis never read, deleting or rewriting.oaip/store.jsondoes not move the answer, and the key is not there to read. It can still make OAIP refuse — it can delete store records — and every such loss is reported non-zero. - The same agent running unconfined as the observer's own uid can read the trust root wherever it is. Relocation buys nothing there; that needs a second uid or a separate signing process (SPEC §8.4 profiles C and D — documented, not implemented). Relocation is decisive when the agent's write access is confined to the workspace: a container mount, a CI checkout, a sandboxed tool.
- Anyone who can write the trust root, or control the environment, can forge freely. Nothing stops them, and SPEC §8.2 says so rather than describing a control that does not exist.
- The check the claim is judged by still runs against post-agent state. An agent that rewrites its own test passes honestly. That hole is open and is stated as a boundary of the threat model, not a to-do (SPEC §8.5, SA-1).
Existing ledgers with an in-workspace key keep working, say so on every accept,
and move with one command: oaip trust-root --migrate.
Status
v0.1 DRAFT — see SPEC.md. Reference implementation in
impl/oaip.py (stdlib + the Warrant CLI), which as of
2026-07-30 emits the records SPEC §2 declares; ledgers written before that are
read under §6.4 legacy mode and marked, never rewritten.
Requires Warrant SPEC v0.4 / package ≥ 0.6.0 (CI pins commit 8508a4a).
Warrant v0.4 changed the bytes an Ed25519 signature covers to
"warrant-sig-v1:" || WarrantID, OAIP verifies that signature itself, and the
old and new constructions are disjoint on purpose — so an older Warrant makes
every acceptance fail, and a .oaip/warrants store signed before 2026-07-31
needs warrant resign --key <keyfile> once before it yields an acceptance edge
again. Re-signing moves no WarrantID and changes nothing else in the graph.
This is deliberately not the §6.4 legacy path: a superseded signature is
refused and diagnosed, never read in a weaker mode (SPEC §8.6). The wedge is
provable agent-action acceptance for regulated / multi-agent development, not
a general dev tool; for a solo human in an IDE, git is enough.
Deliberately not here yet: semantic-entity (tree-sitter) scope, a reaction runtime, federation. Those are refinements above this input layer, added only when a real workflow needs them.
License: MIT (implementation); the spec text is CC-BY-4.0.
Metadata
Release files for oaip 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| oaip-0.3.0.tar.gz | 97.8 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| oaip-0.3.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 192.6 kB
Release files / oaip-0.3.0.tar.gz
| Download URL | oaip-0.3.0.tar.gz |
|---|---|
| Size | 97.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6f08c0e38e7823da672810da218750833b457ac87b8202895a09cfd21760220d
|
|
BLAKE2b-256 checksum How to use checksums |
c950eab581d4ff1375101d752f19a54aa7814d64b9e8ae735ff237b4de0ca0e3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Jul 31, 2026.
Transparency logRelease files / oaip-0.3.0-py3-none-any.whl
| Download URL | oaip-0.3.0-py3-none-any.whl |
|---|---|
| Size | 94.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
47b78e5526777a903c7850e5e53f2442e514185df9fa49f8ae1b0d40701afe9a
|
|
BLAKE2b-256 checksum How to use checksums |
dd67c9d3b10e0382f7ca8c029e1050ad2d97c8643ad271681a1c8f67510c6549
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Jul 31, 2026.
Transparency logSecurity for oaip 0.3.0
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
All 2 files in this release have been uploaded with provenance metadata.
Attestation for oaip-0.3.0.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 Jul 31, 2026.
Transparency logA 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.