hebbrix 2.5.0__tar.gz → 2.6.0rc2__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 (42) hide show
  1. {hebbrix-2.5.0 → hebbrix-2.6.0rc2}/CHANGELOG.md +21 -0
  2. {hebbrix-2.5.0 → hebbrix-2.6.0rc2}/MANIFEST.in +3 -0
  3. {hebbrix-2.5.0/hebbrix.egg-info → hebbrix-2.6.0rc2}/PKG-INFO +27 -2
  4. {hebbrix-2.5.0 → hebbrix-2.6.0rc2}/README.md +26 -1
  5. hebbrix-2.6.0rc2/contracts/openapi-routes.json +1039 -0
  6. hebbrix-2.6.0rc2/docs/native-experience-operations.md +143 -0
  7. hebbrix-2.6.0rc2/examples/native_reflection_worker.py +6 -0
  8. {hebbrix-2.5.0 → hebbrix-2.6.0rc2}/hebbrix/__init__.py +1 -1
  9. {hebbrix-2.5.0 → hebbrix-2.6.0rc2}/hebbrix/client.py +4 -1
  10. hebbrix-2.6.0rc2/hebbrix/execution.py +78 -0
  11. hebbrix-2.6.0rc2/hebbrix/experience.py +235 -0
  12. hebbrix-2.6.0rc2/hebbrix/openai_reflection.py +218 -0
  13. hebbrix-2.6.0rc2/hebbrix/reflection_worker.py +95 -0
  14. {hebbrix-2.5.0 → hebbrix-2.6.0rc2}/hebbrix/resources.py +97 -0
  15. {hebbrix-2.5.0 → hebbrix-2.6.0rc2}/hebbrix/sync_client.py +101 -1
  16. hebbrix-2.6.0rc2/hebbrix/workflow.py +456 -0
  17. {hebbrix-2.5.0 → hebbrix-2.6.0rc2/hebbrix.egg-info}/PKG-INFO +27 -2
  18. {hebbrix-2.5.0 → hebbrix-2.6.0rc2}/hebbrix.egg-info/SOURCES.txt +17 -1
  19. hebbrix-2.6.0rc2/hebbrix.egg-info/entry_points.txt +2 -0
  20. {hebbrix-2.5.0 → hebbrix-2.6.0rc2}/pyproject.toml +4 -1
  21. {hebbrix-2.5.0 → hebbrix-2.6.0rc2}/tests/test_evidence_loop_resource.py +25 -2
  22. hebbrix-2.6.0rc2/tests/test_execution_permission.py +137 -0
  23. hebbrix-2.6.0rc2/tests/test_experience_request.py +184 -0
  24. hebbrix-2.6.0rc2/tests/test_experience_workflow.py +244 -0
  25. hebbrix-2.6.0rc2/tests/test_openai_reflection.py +145 -0
  26. hebbrix-2.6.0rc2/tests/test_outcome_advice_resource.py +34 -0
  27. hebbrix-2.6.0rc2/tests/test_reflection_worker_cli.py +64 -0
  28. hebbrix-2.6.0rc2/tests/test_workflow_route_contract.py +47 -0
  29. {hebbrix-2.5.0 → hebbrix-2.6.0rc2}/LICENSE +0 -0
  30. {hebbrix-2.5.0 → hebbrix-2.6.0rc2}/hebbrix/chat.py +0 -0
  31. {hebbrix-2.5.0 → hebbrix-2.6.0rc2}/hebbrix/exceptions.py +0 -0
  32. {hebbrix-2.5.0 → hebbrix-2.6.0rc2}/hebbrix/models.py +0 -0
  33. {hebbrix-2.5.0 → hebbrix-2.6.0rc2}/hebbrix.egg-info/dependency_links.txt +0 -0
  34. {hebbrix-2.5.0 → hebbrix-2.6.0rc2}/hebbrix.egg-info/requires.txt +0 -0
  35. {hebbrix-2.5.0 → hebbrix-2.6.0rc2}/hebbrix.egg-info/top_level.txt +0 -0
  36. {hebbrix-2.5.0 → hebbrix-2.6.0rc2}/setup.cfg +0 -0
  37. {hebbrix-2.5.0 → hebbrix-2.6.0rc2}/tests/test_advanced_resources.py +0 -0
  38. {hebbrix-2.5.0 → hebbrix-2.6.0rc2}/tests/test_evidence_safety_boundary.py +0 -0
  39. {hebbrix-2.5.0 → hebbrix-2.6.0rc2}/tests/test_memories_resource.py +0 -0
  40. {hebbrix-2.5.0 → hebbrix-2.6.0rc2}/tests/test_openapi_parity.py +0 -0
  41. {hebbrix-2.5.0 → hebbrix-2.6.0rc2}/tests/test_procedural_resource.py +0 -0
  42. {hebbrix-2.5.0 → hebbrix-2.6.0rc2}/tests/test_sync_client.py +0 -0
@@ -1,5 +1,26 @@
1
1
  # Changelog
2
2
 
3
+ ## 2.6.0rc2 — 2026-10-01 (prerelease)
4
+
5
+ - Add sync/async context enrollment, revision-checked policy configuration,
6
+ scoped evidence cards and exact action-advice helpers.
7
+ - Preserve collection/end-user scope and JSON context. ACT remains advisory;
8
+ callers must independently authorize external actions.
9
+ - Policy configuration/advice requires backend `e5f6g7h8i868` or a compatible
10
+ successor. Existing protected workflow transports are unchanged.
11
+
12
+ ## 2.6.0rc1 — 2026-09-09 (prerelease)
13
+
14
+ - Add sync/async native experience programs, reflection jobs, reviewed lesson
15
+ revisions and one-use execution-permission transports.
16
+ - Bind complete model requests and tool invocations, retain uncertain delivery,
17
+ and prevent automatic retries of potentially completed side effects.
18
+ - Add the optional bounded OpenAI reflection adapter and `hebbrix-reflect` CLI.
19
+ - Require separately scoped worker/reviewer/executor credentials and the matching
20
+ `b5c6d7e8f959` backend. That backend is not yet deployed to public production;
21
+ stable 2.5.0 remains the production recommendation. No autonomous actions are
22
+ enabled by installing this package.
23
+
3
24
  ## 2.5.0 — 2026-09-07
4
25
 
5
26
  - Add matching synchronous and asynchronous Evidence Loop methods: owner-managed verifiers, durable episodes, actual-execution claims, protected outcome delivery and evidence assessments.
@@ -3,3 +3,6 @@ include CHANGELOG.md
3
3
  include LICENSE
4
4
  include pyproject.toml
5
5
  recursive-include hebbrix *.py
6
+ recursive-include examples *.py
7
+ recursive-include docs *.md
8
+ recursive-include contracts *.json
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: hebbrix
3
- Version: 2.5.0
3
+ Version: 2.6.0rc2
4
4
  Summary: Typed Python client for Hebbrix memory, retrieval, and outcome-learning APIs
5
5
  Author-email: Hebbrix Team <support@hebbrix.com>
6
6
  Maintainer-email: Hebbrix Team <support@hebbrix.com>
@@ -65,10 +65,15 @@ Dynamic: license-file
65
65
 
66
66
  Typed Python client for Hebbrix memory, retrieval, and outcome-learning APIs.
67
67
 
68
+ This branch is the **2.6.0rc2 prerelease**. The new policy configuration and
69
+ advice helpers require backend schema `e5f6g7h8i868` or a compatible successor.
70
+ A prerelease SDK does not enable autonomous execution. ASK/REVIEW/ACT is advice;
71
+ an action still requires independent permission.
72
+
68
73
  ## Install
69
74
 
70
75
  ```bash
71
- pip install hebbrix==2.5.0
76
+ pip install hebbrix==2.6.0rc2
72
77
  ```
73
78
 
74
79
  Python 3.8+ is supported. `MemoryClient` is asynchronous. `SyncMemoryClient`
@@ -78,6 +83,15 @@ memory-tool, and RL resources are currently async-only.
78
83
 
79
84
  ## Quick start
80
85
 
86
+ Both clients expose `proofloop.register_context_schema`, `context_schema`,
87
+ `configure_policy`, `policy_configuration`, `policy_advice` and `action_advice`.
88
+ Enroll context before recording decisions. Configuration uses `expected_revision`
89
+ for compare-and-swap; do not retry a conflict blindly. Exploration remains an
90
+ explicit low-risk opt-in. `action_advice` takes the exact configured description,
91
+ policy/action IDs and context, and maps `user_id` to the confidence endpoint's
92
+ `end_user_id`. For the complete request shapes, see the
93
+ [learning guide](https://www.hebbrix.com/docs/learning).
94
+
81
95
  ```python
82
96
  import asyncio
83
97
  from hebbrix import MemoryClient
@@ -188,3 +202,14 @@ The production API publishes exact build and artifact compatibility at
188
202
  ## License
189
203
 
190
204
  MIT. See `LICENSE` in the distribution.
205
+ ## Native experience workflow (prerelease)
206
+
207
+ The current source includes `client.experiences`, bounded reflection workers,
208
+ separate lesson review/revision and explicit one-use execution admission. These
209
+ methods require the matching new backend; the published 2.5.0 release does not
210
+ include this extension. The candidate package supplies `hebbrix-reflect --help`.
211
+ Importing it does not call a model, approve a lesson or execute a tool.
212
+
213
+ See `docs/native-experience-operations.md` for role scopes,
214
+ uncertain-call recovery, exact-request binding and policy rollback. Do not treat a
215
+ lesson, score, review or issued permit as execution permission.
@@ -2,10 +2,15 @@
2
2
 
3
3
  Typed Python client for Hebbrix memory, retrieval, and outcome-learning APIs.
4
4
 
5
+ This branch is the **2.6.0rc2 prerelease**. The new policy configuration and
6
+ advice helpers require backend schema `e5f6g7h8i868` or a compatible successor.
7
+ A prerelease SDK does not enable autonomous execution. ASK/REVIEW/ACT is advice;
8
+ an action still requires independent permission.
9
+
5
10
  ## Install
6
11
 
7
12
  ```bash
8
- pip install hebbrix==2.5.0
13
+ pip install hebbrix==2.6.0rc2
9
14
  ```
10
15
 
11
16
  Python 3.8+ is supported. `MemoryClient` is asynchronous. `SyncMemoryClient`
@@ -15,6 +20,15 @@ memory-tool, and RL resources are currently async-only.
15
20
 
16
21
  ## Quick start
17
22
 
23
+ Both clients expose `proofloop.register_context_schema`, `context_schema`,
24
+ `configure_policy`, `policy_configuration`, `policy_advice` and `action_advice`.
25
+ Enroll context before recording decisions. Configuration uses `expected_revision`
26
+ for compare-and-swap; do not retry a conflict blindly. Exploration remains an
27
+ explicit low-risk opt-in. `action_advice` takes the exact configured description,
28
+ policy/action IDs and context, and maps `user_id` to the confidence endpoint's
29
+ `end_user_id`. For the complete request shapes, see the
30
+ [learning guide](https://www.hebbrix.com/docs/learning).
31
+
18
32
  ```python
19
33
  import asyncio
20
34
  from hebbrix import MemoryClient
@@ -125,3 +139,14 @@ The production API publishes exact build and artifact compatibility at
125
139
  ## License
126
140
 
127
141
  MIT. See `LICENSE` in the distribution.
142
+ ## Native experience workflow (prerelease)
143
+
144
+ The current source includes `client.experiences`, bounded reflection workers,
145
+ separate lesson review/revision and explicit one-use execution admission. These
146
+ methods require the matching new backend; the published 2.5.0 release does not
147
+ include this extension. The candidate package supplies `hebbrix-reflect --help`.
148
+ Importing it does not call a model, approve a lesson or execute a tool.
149
+
150
+ See `docs/native-experience-operations.md` for role scopes,
151
+ uncertain-call recovery, exact-request binding and policy rollback. Do not treat a
152
+ lesson, score, review or issued permit as execution permission.