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.
Files changed (45) hide show
  1. attestry/__init__.py +63 -0
  2. attestry/__main__.py +5 -0
  3. attestry/cli.py +1396 -0
  4. attestry/drift/__init__.py +78 -0
  5. attestry/drift/compare.py +343 -0
  6. attestry/drift/providers.py +319 -0
  7. attestry/drift/runner.py +475 -0
  8. attestry/drift/suite.py +228 -0
  9. attestry/ledger/__init__.py +32 -0
  10. attestry/ledger/chain.py +602 -0
  11. attestry/ledger/ed25519.py +183 -0
  12. attestry/ledger/entry.py +194 -0
  13. attestry/ledger/keys.py +266 -0
  14. attestry/ledger/merkle.py +154 -0
  15. attestry/ledger/trust.py +216 -0
  16. attestry/py.typed +0 -0
  17. attestry/receipts/__init__.py +61 -0
  18. attestry/receipts/model.py +168 -0
  19. attestry/receipts/policy.py +407 -0
  20. attestry/receipts/recorder.py +286 -0
  21. attestry/receipts/render.py +458 -0
  22. attestry/registry/__init__.py +48 -0
  23. attestry/registry/index.py +527 -0
  24. attestry/registry/package.py +431 -0
  25. attestry/registry/remotes.py +177 -0
  26. attestry/schema/__init__.py +64 -0
  27. attestry/schema/diff.py +261 -0
  28. attestry/schema/emit/__init__.py +59 -0
  29. attestry/schema/emit/code.py +285 -0
  30. attestry/schema/emit/wire.py +153 -0
  31. attestry/schema/ingest/__init__.py +164 -0
  32. attestry/schema/introspect.py +163 -0
  33. attestry/schema/neutral.py +660 -0
  34. attestry/schema/store.py +154 -0
  35. attestry/util/__init__.py +28 -0
  36. attestry/util/canonical.py +134 -0
  37. attestry/util/errors.py +43 -0
  38. attestry/util/timeutil.py +65 -0
  39. attestry/workspace.py +195 -0
  40. attestry-0.1.0.dist-info/METADATA +702 -0
  41. attestry-0.1.0.dist-info/RECORD +45 -0
  42. attestry-0.1.0.dist-info/WHEEL +5 -0
  43. attestry-0.1.0.dist-info/entry_points.txt +2 -0
  44. attestry-0.1.0.dist-info/licenses/LICENSE +21 -0
  45. 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
+ ]
attestry/__main__.py ADDED
@@ -0,0 +1,5 @@
1
+ from .cli import main
2
+ import sys
3
+
4
+ if __name__ == "__main__":
5
+ sys.exit(main())