The I CARE self-test gate: an operational advisor that runs four self-tests before it speaks, and refuses to speak when it cannot verify itself.
Project description
aura-pce — the "I CARE" self-test gate
An operational advisor that runs four self-tests before it speaks, and refuses to speak when it cannot verify itself. This repository is the open-mechanism half of AURA's Pattern Composition Engine — the part you can install, run, read, and check today.
Most monitors and AI copilots answer whether or not they had grounds, and their reliability is asserted by their vendors rather than measured in the open. This engine inverts that. Before emitting any advice ("this is a real anomaly", "this recovery procedure applies") it pauses and runs the I CARE suite:
- Axiom — is this advice backed by a verified rule?
- Type fit — do the situation's input types actually match what the rule consumes?
- Robustness — is the recognition stable when the input is perturbed with noise?
- Non-discrimination — does the answer survive swapping only the identities in it?
If any check cannot pass, the gate stays silent — or defers out loud ("no verified rule"). Silence and deferral are first-class outputs, not failures.
Install
pip install aura-pce # the core: pure standard library, zero dependencies
pip install "aura-pce[live]" # + a sentence embedder + psutil, for `watch` on your box
The core needs nothing but Python ≥ 3.10 — the provenance proof, the self-tests and the
earned-metric reports all run on the standard library alone. The [live] extra adds the
one thing recognition needs (a sentence embedder) plus a cross-platform telemetry reader, so
aura-pce watch can gate the real state of the machine you run it on.
Quick start
aura-pce prove # the provenance proof: the self-tests survive their own
# linter, and each of the four checks has a can-fail witness
aura-pce level # the two earned metrics — never conflated
aura-pce selftest # run every self-test this install can run
aura-pce prove is the honest headline: it proves the self-tests are real and prints the
validity level with its n. On a fresh install that level is unproven [n=0] for the advice
gate — because no advice emissions have been graded here — which is the correct, non-inflated
output. There is no code path that prints an unearned number.
Point it at your box
pip install "aura-pce[live]"
aura-pce init # write the sample registry + demo ledger
aura-pce watch --source auto # gate REAL local telemetry (Ctrl-C to stop)
aura-pce watch --source psutil --log # cross-platform; log gated EMITs for grading
aura-pce watch --source node_exporter:http://localhost:9100/metrics
watch samples a telemetry source, keeps a rolling per-metric baseline, and runs every
anomaly through the same gate — a calm machine stays silent, a genuine spike is recognised,
type-checked, and either EMITted (gated advice), WITHHELD (recognised but not
verifiable) or DEFERred (no matching axiom). Grade what it emits:
aura-pce list # gated emits awaiting a human grade
aura-pce grade <hash> real|noise # dispose each one; the precision earns its n
What this is, and is not
- It is the mechanism, and the mechanism is provably honest: the self-tests pass an independent linter over themselves (a self-test that cannot fail is not a self-test), and each of the four checks ships with a demonstrated can-fail witness.
- It is not a correctness oracle. A deterministic self-test verifies diligence (the engine checked itself in four ways), not correctness (that the advice is right). Advice can pass all four checks and still be wrong on unusual data — which is exactly what outcome grading captures.
- It does not ship a reliability percentage. Reliability is earned over graded outcomes
and always reported with its sample size
n; atn=0the code printsunproven, never a naked 50%.
Two metrics, kept on separate axes and never conflated:
| metric | question | today, on the sample |
|---|---|---|
| validity LEVEL | of gated advice, how often did it hold? (outcome-blind stop-to-think) | unproven [n=0] |
| mesh precision | of flagged anomalies, how many were real? (human-graded outcome) | 0.6 [n=3] (demo ledger) |
The sample vs. the real knowledge
This repository ships a small, hand-written sample registry (six sysadmin axioms) and a synthetic graded ledger — enough to run every command above and watch the mechanism work. They are clearly labelled demonstration data.
They are not the AURA knowledge base. The full deployment recognises against sovereign registries of hundreds of machine-verified rules (verified by compiler or real execution, not by opinion), and earns its reliability number on live infrastructure. That knowledge and that earned number are the project's product; they are not in this repository. What is here is the honest machinery, open for anyone to audit.
Live recognition & the embedder
Recognition matches a free-text situation to an axiom by embedding. In the full deployment a
private module supplies the embedder; here embedder.py is the public
reference stand-in ([live] extra), exposing exactly embed(list[str]) -> ndarray of
L2-normalised vectors. It uses sentence-transformers (or chromadb) — whichever is
installed. The core never imports it, so the base install stays dependency-free.
Recognition calibration
The acceptance floor is measured, not guessed. calibrate.py runs a
labelled in-domain / out-of-domain probe set through the real embedder and derives a floor (and
a domain-confidence margin) that separates the two, then writes calibration.json into the
data home. On the shipped sample the two clouds separate cleanly (strongest out-of-domain
0.164 < weakest in-domain 0.291); the margin gate is the knob that additionally curbs
over-fire on a large registry. Re-run it for your own embedder or registry:
aura-pce calibrate --report # measure + print the before/after, don't write
aura-pce calibrate # + write calibration.json into the data home
See docs/CALIBRATION.md for the method and the measured numbers.
Layout
| File | Role |
|---|---|
i_care.py |
the four-check gate + the earned validity level |
logic_lane.py |
axiom recognition over a registry of verified rules (the embedder seam) |
ontology.py |
the noun type system used by the type-fit check |
mesh_bridge.py |
renders telemetry into typed situations and gates them (gate_typed) |
mesh_grade.py |
logs each emission, grades it, reports precision with n |
sources/ |
telemetry adapters: proc, psutil, node_exporter, journal |
embedder.py |
the reference sentence embedder for live recognition ([live]) |
calibrate.py |
derives the recognition floor from a measured distribution |
outcomes.py |
the Beta earned-frequency estimator (unproven at n=0) |
wisdom.py |
the append-only fire log the gate writes to |
assert_linter.py |
classifies assertions by strength; proves the self-tests real |
cli.py |
the aura-pce console entry point |
paths.py |
resolves the one data home (env → clone ./data → user data dir) |
make_sample_data.py |
generates the demonstration registry + ledger |
More: docs/QUICKSTART.md · docs/API.md · docs/CALIBRATION.md.
About
Part of AURA, a research program in self-testing infrastructure by Reality Optimizer — realityoptimizer.app. Sibling open tools: folder-nature (semantic identity + signing for file trees), whypass (a claim-discipline linter), copresence.
AURA is developed by a small human–AI working group; AI collaborators are named contributors in its repositories, and every claim in its documentation is written to be checkable rather than believed.
License
Apache-2.0. See LICENSE.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file aura_pce-0.1.0.tar.gz.
File metadata
- Download URL: aura_pce-0.1.0.tar.gz
- Upload date:
- Size: 66.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4fca596fd46764cde65ac12154fcb6490c967c9017883f6a13d304c317624b66
|
|
| MD5 |
0925a7aab4c545ab0aefab318c59ea6a
|
|
| BLAKE2b-256 |
1cd6a633b5c1057a317d5997d4d27f1b175c919b2d77bd891f7cdebd89c35d51
|
File details
Details for the file aura_pce-0.1.0-py3-none-any.whl.
File metadata
- Download URL: aura_pce-0.1.0-py3-none-any.whl
- Upload date:
- Size: 71.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
91407186587362136e6e8496b248d58b6bb9943a9269a3061fd01b5f63c043b9
|
|
| MD5 |
c4859d30e6e65133845844348f0a419b
|
|
| BLAKE2b-256 |
b6cde40a249d4ac4836b818fb0a5171048323c0338f8c12bb6573c8fe67493f0
|