attestry 0.1.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- attestry/__init__.py +63 -0
- attestry/__main__.py +5 -0
- attestry/cli.py +1396 -0
- attestry/drift/__init__.py +78 -0
- attestry/drift/compare.py +343 -0
- attestry/drift/providers.py +319 -0
- attestry/drift/runner.py +475 -0
- attestry/drift/suite.py +228 -0
- attestry/ledger/__init__.py +32 -0
- attestry/ledger/chain.py +602 -0
- attestry/ledger/ed25519.py +183 -0
- attestry/ledger/entry.py +194 -0
- attestry/ledger/keys.py +266 -0
- attestry/ledger/merkle.py +154 -0
- attestry/ledger/trust.py +216 -0
- attestry/py.typed +0 -0
- attestry/receipts/__init__.py +61 -0
- attestry/receipts/model.py +168 -0
- attestry/receipts/policy.py +407 -0
- attestry/receipts/recorder.py +286 -0
- attestry/receipts/render.py +458 -0
- attestry/registry/__init__.py +48 -0
- attestry/registry/index.py +527 -0
- attestry/registry/package.py +431 -0
- attestry/registry/remotes.py +177 -0
- attestry/schema/__init__.py +64 -0
- attestry/schema/diff.py +261 -0
- attestry/schema/emit/__init__.py +59 -0
- attestry/schema/emit/code.py +285 -0
- attestry/schema/emit/wire.py +153 -0
- attestry/schema/ingest/__init__.py +164 -0
- attestry/schema/introspect.py +163 -0
- attestry/schema/neutral.py +660 -0
- attestry/schema/store.py +154 -0
- attestry/util/__init__.py +28 -0
- attestry/util/canonical.py +134 -0
- attestry/util/errors.py +43 -0
- attestry/util/timeutil.py +65 -0
- attestry/workspace.py +195 -0
- attestry-0.1.0.dist-info/METADATA +702 -0
- attestry-0.1.0.dist-info/RECORD +45 -0
- attestry-0.1.0.dist-info/WHEEL +5 -0
- attestry-0.1.0.dist-info/entry_points.txt +2 -0
- attestry-0.1.0.dist-info/licenses/LICENSE +21 -0
- attestry-0.1.0.dist-info/top_level.txt +1 -0
attestry/__init__.py
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"""Attestry -- verifiable trust infrastructure for AI agents.
|
|
2
|
+
|
|
3
|
+
Four things that keep going wrong in agent systems, and one mechanism underneath
|
|
4
|
+
all four:
|
|
5
|
+
|
|
6
|
+
1. **Model drift.** Providers update models behind stable names. Nothing errors;
|
|
7
|
+
behaviour just changes. :mod:`attestry.drift` records what the behaviour was
|
|
8
|
+
and re-checks it.
|
|
9
|
+
2. **Tool schema chaos.** MCP, OpenAI, Anthropic, LangChain, AutoGen and CrewAI
|
|
10
|
+
all describe tools differently. :mod:`attestry.schema` defines a tool once and
|
|
11
|
+
emits all of them.
|
|
12
|
+
3. **Invisible access.** Agents touch mail, calendars and files with no readable
|
|
13
|
+
record. :mod:`attestry.receipts` produces receipts a person can check, and
|
|
14
|
+
refuses accesses nobody granted.
|
|
15
|
+
4. **Unverifiable skills.** Sharing agent skills means trusting a server.
|
|
16
|
+
:mod:`attestry.registry` content-addresses packages and tracks provenance
|
|
17
|
+
through signatures instead.
|
|
18
|
+
|
|
19
|
+
The mechanism is :mod:`attestry.ledger`: one append-only, hash-chained, signed
|
|
20
|
+
log that all four write to. That is what makes this one tool rather than four --
|
|
21
|
+
a single ``attestry ledger verify`` covers every claim any subsystem has made.
|
|
22
|
+
|
|
23
|
+
::
|
|
24
|
+
|
|
25
|
+
import attestry
|
|
26
|
+
|
|
27
|
+
workspace = attestry.Workspace.init(".")
|
|
28
|
+
ledger = attestry.Ledger(workspace.ledger_path)
|
|
29
|
+
"""
|
|
30
|
+
|
|
31
|
+
from .ledger import Entry, KeyPair, Keyring, Ledger, TrustStore
|
|
32
|
+
from .util.errors import (
|
|
33
|
+
AttestryError,
|
|
34
|
+
ForkDetected,
|
|
35
|
+
IntegrityError,
|
|
36
|
+
PolicyViolation,
|
|
37
|
+
SchemaError,
|
|
38
|
+
TrustError,
|
|
39
|
+
)
|
|
40
|
+
from .workspace import Workspace, find_workspace
|
|
41
|
+
|
|
42
|
+
__version__ = "0.1.0"
|
|
43
|
+
__author__ = "Nulfied"
|
|
44
|
+
__license__ = "MIT"
|
|
45
|
+
|
|
46
|
+
__all__ = [
|
|
47
|
+
"__version__",
|
|
48
|
+
"__author__",
|
|
49
|
+
"__license__",
|
|
50
|
+
"Workspace",
|
|
51
|
+
"find_workspace",
|
|
52
|
+
"Ledger",
|
|
53
|
+
"Entry",
|
|
54
|
+
"KeyPair",
|
|
55
|
+
"Keyring",
|
|
56
|
+
"TrustStore",
|
|
57
|
+
"AttestryError",
|
|
58
|
+
"IntegrityError",
|
|
59
|
+
"ForkDetected",
|
|
60
|
+
"TrustError",
|
|
61
|
+
"SchemaError",
|
|
62
|
+
"PolicyViolation",
|
|
63
|
+
]
|