anthromesh 0.2.0__tar.gz → 0.2.1__tar.gz

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 (105) hide show
  1. {anthromesh-0.2.0/src/anthromesh.egg-info → anthromesh-0.2.1}/PKG-INFO +58 -10
  2. {anthromesh-0.2.0 → anthromesh-0.2.1}/README.md +57 -9
  3. {anthromesh-0.2.0 → anthromesh-0.2.1}/pyproject.toml +1 -1
  4. {anthromesh-0.2.0 → anthromesh-0.2.1}/src/anthromesh/__init__.py +1 -1
  5. {anthromesh-0.2.0 → anthromesh-0.2.1/src/anthromesh.egg-info}/PKG-INFO +58 -10
  6. {anthromesh-0.2.0 → anthromesh-0.2.1}/LICENSE +0 -0
  7. {anthromesh-0.2.0 → anthromesh-0.2.1}/NOTICE +0 -0
  8. {anthromesh-0.2.0 → anthromesh-0.2.1}/setup.cfg +0 -0
  9. {anthromesh-0.2.0 → anthromesh-0.2.1}/src/anthromesh/adapters/__init__.py +0 -0
  10. {anthromesh-0.2.0 → anthromesh-0.2.1}/src/anthromesh/adapters/base.py +0 -0
  11. {anthromesh-0.2.0 → anthromesh-0.2.1}/src/anthromesh/adapters/cloud.py +0 -0
  12. {anthromesh-0.2.0 → anthromesh-0.2.1}/src/anthromesh/adapters/factory.py +0 -0
  13. {anthromesh-0.2.0 → anthromesh-0.2.1}/src/anthromesh/adapters/heuristic.py +0 -0
  14. {anthromesh-0.2.0 → anthromesh-0.2.1}/src/anthromesh/adapters/local.py +0 -0
  15. {anthromesh-0.2.0 → anthromesh-0.2.1}/src/anthromesh/benchmarks/__init__.py +0 -0
  16. {anthromesh-0.2.0 → anthromesh-0.2.1}/src/anthromesh/benchmarks/datasets.py +0 -0
  17. {anthromesh-0.2.0 → anthromesh-0.2.1}/src/anthromesh/benchmarks/empirical.py +0 -0
  18. {anthromesh-0.2.0 → anthromesh-0.2.1}/src/anthromesh/benchmarks/panel_cohort.py +0 -0
  19. {anthromesh-0.2.0 → anthromesh-0.2.1}/src/anthromesh/benchmarks/public_twin.py +0 -0
  20. {anthromesh-0.2.0 → anthromesh-0.2.1}/src/anthromesh/benchmarks/public_validation.py +0 -0
  21. {anthromesh-0.2.0 → anthromesh-0.2.1}/src/anthromesh/benchmarks/replay.py +0 -0
  22. {anthromesh-0.2.0 → anthromesh-0.2.1}/src/anthromesh/benchmarks/runner.py +0 -0
  23. {anthromesh-0.2.0 → anthromesh-0.2.1}/src/anthromesh/benchmarks/study.py +0 -0
  24. {anthromesh-0.2.0 → anthromesh-0.2.1}/src/anthromesh/benchmarks/study_report.py +0 -0
  25. {anthromesh-0.2.0 → anthromesh-0.2.1}/src/anthromesh/capture/__init__.py +0 -0
  26. {anthromesh-0.2.0 → anthromesh-0.2.1}/src/anthromesh/capture/github_webhook.py +0 -0
  27. {anthromesh-0.2.0 → anthromesh-0.2.1}/src/anthromesh/capture/graph.py +0 -0
  28. {anthromesh-0.2.0 → anthromesh-0.2.1}/src/anthromesh/capture/workflows.py +0 -0
  29. {anthromesh-0.2.0 → anthromesh-0.2.1}/src/anthromesh/cli.py +0 -0
  30. {anthromesh-0.2.0 → anthromesh-0.2.1}/src/anthromesh/client.py +0 -0
  31. {anthromesh-0.2.0 → anthromesh-0.2.1}/src/anthromesh/cohort/__init__.py +0 -0
  32. {anthromesh-0.2.0 → anthromesh-0.2.1}/src/anthromesh/cohort/categorical_anchor.py +0 -0
  33. {anthromesh-0.2.0 → anthromesh-0.2.1}/src/anthromesh/cohort/clustering.py +0 -0
  34. {anthromesh-0.2.0 → anthromesh-0.2.1}/src/anthromesh/cohort/human_anchor.py +0 -0
  35. {anthromesh-0.2.0 → anthromesh-0.2.1}/src/anthromesh/cohort/ingest.py +0 -0
  36. {anthromesh-0.2.0 → anthromesh-0.2.1}/src/anthromesh/cohort/oracle.py +0 -0
  37. {anthromesh-0.2.0 → anthromesh-0.2.1}/src/anthromesh/cohort/twin_priors.py +0 -0
  38. {anthromesh-0.2.0 → anthromesh-0.2.1}/src/anthromesh/config.py +0 -0
  39. {anthromesh-0.2.0 → anthromesh-0.2.1}/src/anthromesh/gate/__init__.py +0 -0
  40. {anthromesh-0.2.0 → anthromesh-0.2.1}/src/anthromesh/gate/calibration.py +0 -0
  41. {anthromesh-0.2.0 → anthromesh-0.2.1}/src/anthromesh/gate/conformal.py +0 -0
  42. {anthromesh-0.2.0 → anthromesh-0.2.1}/src/anthromesh/gate/engine.py +0 -0
  43. {anthromesh-0.2.0 → anthromesh-0.2.1}/src/anthromesh/gate/fast.py +0 -0
  44. {anthromesh-0.2.0 → anthromesh-0.2.1}/src/anthromesh/gate/fit.py +0 -0
  45. {anthromesh-0.2.0 → anthromesh-0.2.1}/src/anthromesh/judgment/__init__.py +0 -0
  46. {anthromesh-0.2.0 → anthromesh-0.2.1}/src/anthromesh/judgment/elicitation.py +0 -0
  47. {anthromesh-0.2.0 → anthromesh-0.2.1}/src/anthromesh/judgment/monitor.py +0 -0
  48. {anthromesh-0.2.0 → anthromesh-0.2.1}/src/anthromesh/judgment/panel.py +0 -0
  49. {anthromesh-0.2.0 → anthromesh-0.2.1}/src/anthromesh/judgment/settings.py +0 -0
  50. {anthromesh-0.2.0 → anthromesh-0.2.1}/src/anthromesh/models/__init__.py +0 -0
  51. {anthromesh-0.2.0 → anthromesh-0.2.1}/src/anthromesh/models/cohort.py +0 -0
  52. {anthromesh-0.2.0 → anthromesh-0.2.1}/src/anthromesh/models/decision.py +0 -0
  53. {anthromesh-0.2.0 → anthromesh-0.2.1}/src/anthromesh/models/escalation.py +0 -0
  54. {anthromesh-0.2.0 → anthromesh-0.2.1}/src/anthromesh/models/policy.py +0 -0
  55. {anthromesh-0.2.0 → anthromesh-0.2.1}/src/anthromesh/models/validity.py +0 -0
  56. {anthromesh-0.2.0 → anthromesh-0.2.1}/src/anthromesh/protocols/__init__.py +0 -0
  57. {anthromesh-0.2.0 → anthromesh-0.2.1}/src/anthromesh/protocols/a2a_server.py +0 -0
  58. {anthromesh-0.2.0 → anthromesh-0.2.1}/src/anthromesh/protocols/capabilities.py +0 -0
  59. {anthromesh-0.2.0 → anthromesh-0.2.1}/src/anthromesh/protocols/delegation.py +0 -0
  60. {anthromesh-0.2.0 → anthromesh-0.2.1}/src/anthromesh/protocols/mcp_server.py +0 -0
  61. {anthromesh-0.2.0 → anthromesh-0.2.1}/src/anthromesh/protocols/oauth.py +0 -0
  62. {anthromesh-0.2.0 → anthromesh-0.2.1}/src/anthromesh/ros_gate.py +0 -0
  63. {anthromesh-0.2.0 → anthromesh-0.2.1}/src/anthromesh/twin/__init__.py +0 -0
  64. {anthromesh-0.2.0 → anthromesh-0.2.1}/src/anthromesh/twin/engine.py +0 -0
  65. {anthromesh-0.2.0 → anthromesh-0.2.1}/src/anthromesh/twin/inbox.py +0 -0
  66. {anthromesh-0.2.0 → anthromesh-0.2.1}/src/anthromesh/vault/__init__.py +0 -0
  67. {anthromesh-0.2.0 → anthromesh-0.2.1}/src/anthromesh/vault/dense.py +0 -0
  68. {anthromesh-0.2.0 → anthromesh-0.2.1}/src/anthromesh/vault/encryption.py +0 -0
  69. {anthromesh-0.2.0 → anthromesh-0.2.1}/src/anthromesh/vault/policy_engine.py +0 -0
  70. {anthromesh-0.2.0 → anthromesh-0.2.1}/src/anthromesh/vault/postgres.py +0 -0
  71. {anthromesh-0.2.0 → anthromesh-0.2.1}/src/anthromesh/vault/privacy.py +0 -0
  72. {anthromesh-0.2.0 → anthromesh-0.2.1}/src/anthromesh/vault/retrieval.py +0 -0
  73. {anthromesh-0.2.0 → anthromesh-0.2.1}/src/anthromesh/vault/storage.py +0 -0
  74. {anthromesh-0.2.0 → anthromesh-0.2.1}/src/anthromesh.egg-info/SOURCES.txt +0 -0
  75. {anthromesh-0.2.0 → anthromesh-0.2.1}/src/anthromesh.egg-info/dependency_links.txt +0 -0
  76. {anthromesh-0.2.0 → anthromesh-0.2.1}/src/anthromesh.egg-info/entry_points.txt +0 -0
  77. {anthromesh-0.2.0 → anthromesh-0.2.1}/src/anthromesh.egg-info/requires.txt +0 -0
  78. {anthromesh-0.2.0 → anthromesh-0.2.1}/src/anthromesh.egg-info/top_level.txt +0 -0
  79. {anthromesh-0.2.0 → anthromesh-0.2.1}/tests/test_adapters.py +0 -0
  80. {anthromesh-0.2.0 → anthromesh-0.2.1}/tests/test_benchmarks.py +0 -0
  81. {anthromesh-0.2.0 → anthromesh-0.2.1}/tests/test_capabilities.py +0 -0
  82. {anthromesh-0.2.0 → anthromesh-0.2.1}/tests/test_cohort_consent.py +0 -0
  83. {anthromesh-0.2.0 → anthromesh-0.2.1}/tests/test_cohort_oracle.py +0 -0
  84. {anthromesh-0.2.0 → anthromesh-0.2.1}/tests/test_conformal.py +0 -0
  85. {anthromesh-0.2.0 → anthromesh-0.2.1}/tests/test_delegation_and_panel.py +0 -0
  86. {anthromesh-0.2.0 → anthromesh-0.2.1}/tests/test_dense_index.py +0 -0
  87. {anthromesh-0.2.0 → anthromesh-0.2.1}/tests/test_empirical_benchmark.py +0 -0
  88. {anthromesh-0.2.0 → anthromesh-0.2.1}/tests/test_evidence_infrastructure.py +0 -0
  89. {anthromesh-0.2.0 → anthromesh-0.2.1}/tests/test_graph_capture.py +0 -0
  90. {anthromesh-0.2.0 → anthromesh-0.2.1}/tests/test_inbox.py +0 -0
  91. {anthromesh-0.2.0 → anthromesh-0.2.1}/tests/test_interoperability.py +0 -0
  92. {anthromesh-0.2.0 → anthromesh-0.2.1}/tests/test_judgment_pipeline.py +0 -0
  93. {anthromesh-0.2.0 → anthromesh-0.2.1}/tests/test_live_keycloak.py +0 -0
  94. {anthromesh-0.2.0 → anthromesh-0.2.1}/tests/test_oauth.py +0 -0
  95. {anthromesh-0.2.0 → anthromesh-0.2.1}/tests/test_policy_engine.py +0 -0
  96. {anthromesh-0.2.0 → anthromesh-0.2.1}/tests/test_protocols.py +0 -0
  97. {anthromesh-0.2.0 → anthromesh-0.2.1}/tests/test_public_twin.py +0 -0
  98. {anthromesh-0.2.0 → anthromesh-0.2.1}/tests/test_public_validation.py +0 -0
  99. {anthromesh-0.2.0 → anthromesh-0.2.1}/tests/test_release_boundaries.py +0 -0
  100. {anthromesh-0.2.0 → anthromesh-0.2.1}/tests/test_storage_backends.py +0 -0
  101. {anthromesh-0.2.0 → anthromesh-0.2.1}/tests/test_study_pipeline.py +0 -0
  102. {anthromesh-0.2.0 → anthromesh-0.2.1}/tests/test_survey_ingestion.py +0 -0
  103. {anthromesh-0.2.0 → anthromesh-0.2.1}/tests/test_twin_and_gate.py +0 -0
  104. {anthromesh-0.2.0 → anthromesh-0.2.1}/tests/test_vault_and_retrieval.py +0 -0
  105. {anthromesh-0.2.0 → anthromesh-0.2.1}/tests/test_workflow_capture.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: anthromesh
3
- Version: 0.2.0
3
+ Version: 0.2.1
4
4
  Summary: Preference memory, owner escalation, and verifiable delegation for AI agents (MCP + A2A).
5
5
  Author: AnthroMesh Contributors
6
6
  License: Apache-2.0
@@ -70,7 +70,7 @@ delegation for an exact proposed action. Predictive fidelity is experimental.
70
70
  replays at equal human label cost. Use human-only estimates for these settings.
71
71
  - The delegation controls have internal test coverage. Independent review
72
72
  and complete protocol certification remain open. Report vulnerabilities
73
- through the [security policy](SECURITY.md).
73
+ through the [security policy](https://github.com/jamesafful/AnthroMesh/blob/main/SECURITY.md).
74
74
 
75
75
 
76
76
  1. **Personal Decision Twin (`anthromesh.twin`)** — Captures structured `(context, options_considered, chosen_action, rejected_options, rationale)` decision logs in a local-first SQLite Behavioral Vault, enforces deterministic boundary/consent policies, and supports owner escalation when the recorded preference is insufficient.
@@ -83,11 +83,59 @@ delegation for an exact proposed action. Predictive fidelity is experimental.
83
83
 
84
84
  ## Quickstart
85
85
 
86
- ### 1. Install Locally
86
+ ### Install from PyPI
87
+
88
+ ```bash
89
+ python -m pip install anthromesh
90
+ ```
91
+
92
+ The base package supports SQLite, the example below, and MCP over stdio.
93
+ For A2A HTTP and optional protocol integrations, install
94
+ `python -m pip install "anthromesh[protocols]"`.
95
+ Add the `encryption`, `postgres`, `vector`, or `survey` extra only if you
96
+ need SQLCipher, PostgreSQL, SQLite vector search, or Parquet support.
97
+
98
+ ### Try an escalation in five minutes
99
+
100
+ Save this as `quickstart.py` and run `python quickstart.py`. It uses a temporary
101
+ vault and performs no network calls.
102
+
103
+ ```python
104
+ from pathlib import Path
105
+ from tempfile import TemporaryDirectory
106
+
107
+ from anthromesh.adapters.heuristic import HeuristicAdapter
108
+ from anthromesh.models import CandidateOption, QueryContext
109
+ from anthromesh.twin.engine import PersonalDecisionTwin
110
+ from anthromesh.vault.policy_engine import PolicyEngine
111
+ from anthromesh.vault.storage import BehavioralVault
112
+
113
+ with TemporaryDirectory() as directory:
114
+ vault = BehavioralVault(str(Path(directory) / "decisions.db"))
115
+ twin = PersonalDecisionTwin(vault, PolicyEngine(), HeuristicAdapter(), memory_only=True)
116
+ decision = twin.query_decision(QueryContext(
117
+ subject_id="demo-owner",
118
+ domain="planning",
119
+ context="Schedule a recurring team check-in for Monday morning.",
120
+ candidate_options=[
121
+ CandidateOption(option_id="accept", label="Accept"),
122
+ CandidateOption(option_id="decline", label="Decline"),
123
+ ],
124
+ ))
125
+ print(decision.action.value)
126
+ print(decision.validity_envelope.model_dump_json(indent=2))
127
+ ```
128
+
129
+ The first line is `escalate`. The validity envelope reports
130
+ `recommended_use: "ask_owner"` and `grants_authority: false` because the
131
+ empty vault has no matching decisions.
132
+
133
+ ### Run examples from a source checkout
134
+
87
135
  ```bash
88
- python -m venv .venv
89
- source .venv/bin/activate
90
- pip install -e ".[all]"
136
+ git clone https://github.com/jamesafful/AnthroMesh.git
137
+ cd AnthroMesh
138
+ python -m pip install -e ".[all]"
91
139
  ```
92
140
 
93
141
  ### 2. Run the Full End-to-End Demo & Benchmarks
@@ -342,7 +390,7 @@ the survey. Retest agreement applies to repeated questions in this subset.
342
390
  The pooled prediction set is exploratory because answers are correlated
343
391
  within participants and the calibration and evaluation questions differ.
344
392
 
345
- The [follow-up validation protocol](examples/public-twin-validation-plan.md)
393
+ The [follow-up validation protocol](https://github.com/jamesafful/AnthroMesh/blob/main/examples/public-twin-validation-plan.md)
346
394
  reserves a fresh 200-participant holdout and fixes the required effect in
347
395
  advance. Reproduce the controls and frozen evaluation with these commands.
348
396
 
@@ -352,7 +400,7 @@ anthromesh validate-public-twin development DATA_DIR examples/public-twin-2k-500
352
400
  anthromesh validate-public-twin sealed DATA_DIR examples/public-twin-2k-500-report.json frozen.json
353
401
  ```
354
402
 
355
- The [follow-up report](examples/public-twin-validation-report.json) records
403
+ The [follow-up report](https://github.com/jamesafful/AnthroMesh/blob/main/examples/public-twin-validation-report.json) records
356
404
  54.27% participant-mean accuracy for the population-adjusted Twin and 54.09%
357
405
  for majority. The difference missed the preregistered margin. The preference
358
406
  memory, escalation, and delegation scope reflects this result.
@@ -367,7 +415,7 @@ profile, the original catalog questions and option order, and a constrained
367
415
  JSON output. The unchanged archived questionnaire exceeded the tested context
368
416
  window. This is a same-case comparison with different inputs.
369
417
 
370
- See the [public validation results](examples/public-validation-results.md) for the negative cross-question result and the separate exact-repeat memory experiment.
418
+ See the [public validation results](https://github.com/jamesafful/AnthroMesh/blob/main/examples/public-validation-results.md) for the negative cross-question result and the separate exact-repeat memory experiment.
371
419
 
372
420
  ### Continuous owner audits
373
421
 
@@ -439,7 +487,7 @@ Existing separately signed delegation controls still govern external actions.
439
487
  The [preregistered survey replication](https://doi.org/10.5281/zenodo.24560763) covered 70.8% of paired
440
488
  answers and reached 84.0% accuracy versus 55.5% for matched majority on
441
489
  1,166 reserved Wave 4 participants. Pricing drove the gain. The [technical
442
- report](research/TECHNICAL-REPORT.md) gives scope, controls, and intervals.
490
+ report](https://github.com/jamesafful/AnthroMesh/blob/main/research/TECHNICAL-REPORT.md) gives scope, controls, and intervals.
443
491
 
444
492
  For binary population estimates, run `anthromesh calibrate-cohort study.json`.
445
493
  The JSON declares `outcome_id`, `model_revision`, `sampling_design`, an `anchors`
@@ -19,7 +19,7 @@ delegation for an exact proposed action. Predictive fidelity is experimental.
19
19
  replays at equal human label cost. Use human-only estimates for these settings.
20
20
  - The delegation controls have internal test coverage. Independent review
21
21
  and complete protocol certification remain open. Report vulnerabilities
22
- through the [security policy](SECURITY.md).
22
+ through the [security policy](https://github.com/jamesafful/AnthroMesh/blob/main/SECURITY.md).
23
23
 
24
24
 
25
25
  1. **Personal Decision Twin (`anthromesh.twin`)** — Captures structured `(context, options_considered, chosen_action, rejected_options, rationale)` decision logs in a local-first SQLite Behavioral Vault, enforces deterministic boundary/consent policies, and supports owner escalation when the recorded preference is insufficient.
@@ -32,11 +32,59 @@ delegation for an exact proposed action. Predictive fidelity is experimental.
32
32
 
33
33
  ## Quickstart
34
34
 
35
- ### 1. Install Locally
35
+ ### Install from PyPI
36
+
37
+ ```bash
38
+ python -m pip install anthromesh
39
+ ```
40
+
41
+ The base package supports SQLite, the example below, and MCP over stdio.
42
+ For A2A HTTP and optional protocol integrations, install
43
+ `python -m pip install "anthromesh[protocols]"`.
44
+ Add the `encryption`, `postgres`, `vector`, or `survey` extra only if you
45
+ need SQLCipher, PostgreSQL, SQLite vector search, or Parquet support.
46
+
47
+ ### Try an escalation in five minutes
48
+
49
+ Save this as `quickstart.py` and run `python quickstart.py`. It uses a temporary
50
+ vault and performs no network calls.
51
+
52
+ ```python
53
+ from pathlib import Path
54
+ from tempfile import TemporaryDirectory
55
+
56
+ from anthromesh.adapters.heuristic import HeuristicAdapter
57
+ from anthromesh.models import CandidateOption, QueryContext
58
+ from anthromesh.twin.engine import PersonalDecisionTwin
59
+ from anthromesh.vault.policy_engine import PolicyEngine
60
+ from anthromesh.vault.storage import BehavioralVault
61
+
62
+ with TemporaryDirectory() as directory:
63
+ vault = BehavioralVault(str(Path(directory) / "decisions.db"))
64
+ twin = PersonalDecisionTwin(vault, PolicyEngine(), HeuristicAdapter(), memory_only=True)
65
+ decision = twin.query_decision(QueryContext(
66
+ subject_id="demo-owner",
67
+ domain="planning",
68
+ context="Schedule a recurring team check-in for Monday morning.",
69
+ candidate_options=[
70
+ CandidateOption(option_id="accept", label="Accept"),
71
+ CandidateOption(option_id="decline", label="Decline"),
72
+ ],
73
+ ))
74
+ print(decision.action.value)
75
+ print(decision.validity_envelope.model_dump_json(indent=2))
76
+ ```
77
+
78
+ The first line is `escalate`. The validity envelope reports
79
+ `recommended_use: "ask_owner"` and `grants_authority: false` because the
80
+ empty vault has no matching decisions.
81
+
82
+ ### Run examples from a source checkout
83
+
36
84
  ```bash
37
- python -m venv .venv
38
- source .venv/bin/activate
39
- pip install -e ".[all]"
85
+ git clone https://github.com/jamesafful/AnthroMesh.git
86
+ cd AnthroMesh
87
+ python -m pip install -e ".[all]"
40
88
  ```
41
89
 
42
90
  ### 2. Run the Full End-to-End Demo & Benchmarks
@@ -291,7 +339,7 @@ the survey. Retest agreement applies to repeated questions in this subset.
291
339
  The pooled prediction set is exploratory because answers are correlated
292
340
  within participants and the calibration and evaluation questions differ.
293
341
 
294
- The [follow-up validation protocol](examples/public-twin-validation-plan.md)
342
+ The [follow-up validation protocol](https://github.com/jamesafful/AnthroMesh/blob/main/examples/public-twin-validation-plan.md)
295
343
  reserves a fresh 200-participant holdout and fixes the required effect in
296
344
  advance. Reproduce the controls and frozen evaluation with these commands.
297
345
 
@@ -301,7 +349,7 @@ anthromesh validate-public-twin development DATA_DIR examples/public-twin-2k-500
301
349
  anthromesh validate-public-twin sealed DATA_DIR examples/public-twin-2k-500-report.json frozen.json
302
350
  ```
303
351
 
304
- The [follow-up report](examples/public-twin-validation-report.json) records
352
+ The [follow-up report](https://github.com/jamesafful/AnthroMesh/blob/main/examples/public-twin-validation-report.json) records
305
353
  54.27% participant-mean accuracy for the population-adjusted Twin and 54.09%
306
354
  for majority. The difference missed the preregistered margin. The preference
307
355
  memory, escalation, and delegation scope reflects this result.
@@ -316,7 +364,7 @@ profile, the original catalog questions and option order, and a constrained
316
364
  JSON output. The unchanged archived questionnaire exceeded the tested context
317
365
  window. This is a same-case comparison with different inputs.
318
366
 
319
- See the [public validation results](examples/public-validation-results.md) for the negative cross-question result and the separate exact-repeat memory experiment.
367
+ See the [public validation results](https://github.com/jamesafful/AnthroMesh/blob/main/examples/public-validation-results.md) for the negative cross-question result and the separate exact-repeat memory experiment.
320
368
 
321
369
  ### Continuous owner audits
322
370
 
@@ -388,7 +436,7 @@ Existing separately signed delegation controls still govern external actions.
388
436
  The [preregistered survey replication](https://doi.org/10.5281/zenodo.24560763) covered 70.8% of paired
389
437
  answers and reached 84.0% accuracy versus 55.5% for matched majority on
390
438
  1,166 reserved Wave 4 participants. Pricing drove the gain. The [technical
391
- report](research/TECHNICAL-REPORT.md) gives scope, controls, and intervals.
439
+ report](https://github.com/jamesafful/AnthroMesh/blob/main/research/TECHNICAL-REPORT.md) gives scope, controls, and intervals.
392
440
 
393
441
  For binary population estimates, run `anthromesh calibrate-cohort study.json`.
394
442
  The JSON declares `outcome_id`, `model_revision`, `sampling_design`, an `anchors`
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "anthromesh"
7
- version = "0.2.0"
7
+ version = "0.2.1"
8
8
  description = "Preference memory, owner escalation, and verifiable delegation for AI agents (MCP + A2A)."
9
9
  readme = "README.md"
10
10
  license = {text = "Apache-2.0"}
@@ -1,3 +1,3 @@
1
1
  """AnthroMesh: Preference memory, owner escalation, and verifiable delegation for AI agents."""
2
2
 
3
- __version__ = "0.2.0"
3
+ __version__ = "0.2.1"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: anthromesh
3
- Version: 0.2.0
3
+ Version: 0.2.1
4
4
  Summary: Preference memory, owner escalation, and verifiable delegation for AI agents (MCP + A2A).
5
5
  Author: AnthroMesh Contributors
6
6
  License: Apache-2.0
@@ -70,7 +70,7 @@ delegation for an exact proposed action. Predictive fidelity is experimental.
70
70
  replays at equal human label cost. Use human-only estimates for these settings.
71
71
  - The delegation controls have internal test coverage. Independent review
72
72
  and complete protocol certification remain open. Report vulnerabilities
73
- through the [security policy](SECURITY.md).
73
+ through the [security policy](https://github.com/jamesafful/AnthroMesh/blob/main/SECURITY.md).
74
74
 
75
75
 
76
76
  1. **Personal Decision Twin (`anthromesh.twin`)** — Captures structured `(context, options_considered, chosen_action, rejected_options, rationale)` decision logs in a local-first SQLite Behavioral Vault, enforces deterministic boundary/consent policies, and supports owner escalation when the recorded preference is insufficient.
@@ -83,11 +83,59 @@ delegation for an exact proposed action. Predictive fidelity is experimental.
83
83
 
84
84
  ## Quickstart
85
85
 
86
- ### 1. Install Locally
86
+ ### Install from PyPI
87
+
88
+ ```bash
89
+ python -m pip install anthromesh
90
+ ```
91
+
92
+ The base package supports SQLite, the example below, and MCP over stdio.
93
+ For A2A HTTP and optional protocol integrations, install
94
+ `python -m pip install "anthromesh[protocols]"`.
95
+ Add the `encryption`, `postgres`, `vector`, or `survey` extra only if you
96
+ need SQLCipher, PostgreSQL, SQLite vector search, or Parquet support.
97
+
98
+ ### Try an escalation in five minutes
99
+
100
+ Save this as `quickstart.py` and run `python quickstart.py`. It uses a temporary
101
+ vault and performs no network calls.
102
+
103
+ ```python
104
+ from pathlib import Path
105
+ from tempfile import TemporaryDirectory
106
+
107
+ from anthromesh.adapters.heuristic import HeuristicAdapter
108
+ from anthromesh.models import CandidateOption, QueryContext
109
+ from anthromesh.twin.engine import PersonalDecisionTwin
110
+ from anthromesh.vault.policy_engine import PolicyEngine
111
+ from anthromesh.vault.storage import BehavioralVault
112
+
113
+ with TemporaryDirectory() as directory:
114
+ vault = BehavioralVault(str(Path(directory) / "decisions.db"))
115
+ twin = PersonalDecisionTwin(vault, PolicyEngine(), HeuristicAdapter(), memory_only=True)
116
+ decision = twin.query_decision(QueryContext(
117
+ subject_id="demo-owner",
118
+ domain="planning",
119
+ context="Schedule a recurring team check-in for Monday morning.",
120
+ candidate_options=[
121
+ CandidateOption(option_id="accept", label="Accept"),
122
+ CandidateOption(option_id="decline", label="Decline"),
123
+ ],
124
+ ))
125
+ print(decision.action.value)
126
+ print(decision.validity_envelope.model_dump_json(indent=2))
127
+ ```
128
+
129
+ The first line is `escalate`. The validity envelope reports
130
+ `recommended_use: "ask_owner"` and `grants_authority: false` because the
131
+ empty vault has no matching decisions.
132
+
133
+ ### Run examples from a source checkout
134
+
87
135
  ```bash
88
- python -m venv .venv
89
- source .venv/bin/activate
90
- pip install -e ".[all]"
136
+ git clone https://github.com/jamesafful/AnthroMesh.git
137
+ cd AnthroMesh
138
+ python -m pip install -e ".[all]"
91
139
  ```
92
140
 
93
141
  ### 2. Run the Full End-to-End Demo & Benchmarks
@@ -342,7 +390,7 @@ the survey. Retest agreement applies to repeated questions in this subset.
342
390
  The pooled prediction set is exploratory because answers are correlated
343
391
  within participants and the calibration and evaluation questions differ.
344
392
 
345
- The [follow-up validation protocol](examples/public-twin-validation-plan.md)
393
+ The [follow-up validation protocol](https://github.com/jamesafful/AnthroMesh/blob/main/examples/public-twin-validation-plan.md)
346
394
  reserves a fresh 200-participant holdout and fixes the required effect in
347
395
  advance. Reproduce the controls and frozen evaluation with these commands.
348
396
 
@@ -352,7 +400,7 @@ anthromesh validate-public-twin development DATA_DIR examples/public-twin-2k-500
352
400
  anthromesh validate-public-twin sealed DATA_DIR examples/public-twin-2k-500-report.json frozen.json
353
401
  ```
354
402
 
355
- The [follow-up report](examples/public-twin-validation-report.json) records
403
+ The [follow-up report](https://github.com/jamesafful/AnthroMesh/blob/main/examples/public-twin-validation-report.json) records
356
404
  54.27% participant-mean accuracy for the population-adjusted Twin and 54.09%
357
405
  for majority. The difference missed the preregistered margin. The preference
358
406
  memory, escalation, and delegation scope reflects this result.
@@ -367,7 +415,7 @@ profile, the original catalog questions and option order, and a constrained
367
415
  JSON output. The unchanged archived questionnaire exceeded the tested context
368
416
  window. This is a same-case comparison with different inputs.
369
417
 
370
- See the [public validation results](examples/public-validation-results.md) for the negative cross-question result and the separate exact-repeat memory experiment.
418
+ See the [public validation results](https://github.com/jamesafful/AnthroMesh/blob/main/examples/public-validation-results.md) for the negative cross-question result and the separate exact-repeat memory experiment.
371
419
 
372
420
  ### Continuous owner audits
373
421
 
@@ -439,7 +487,7 @@ Existing separately signed delegation controls still govern external actions.
439
487
  The [preregistered survey replication](https://doi.org/10.5281/zenodo.24560763) covered 70.8% of paired
440
488
  answers and reached 84.0% accuracy versus 55.5% for matched majority on
441
489
  1,166 reserved Wave 4 participants. Pricing drove the gain. The [technical
442
- report](research/TECHNICAL-REPORT.md) gives scope, controls, and intervals.
490
+ report](https://github.com/jamesafful/AnthroMesh/blob/main/research/TECHNICAL-REPORT.md) gives scope, controls, and intervals.
443
491
 
444
492
  For binary population estimates, run `anthromesh calibrate-cohort study.json`.
445
493
  The JSON declares `outcome_id`, `model_revision`, `sampling_design`, an `anchors`
File without changes
File without changes
File without changes