hebbrix 2.5.0__tar.gz → 2.6.0__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 (47) hide show
  1. {hebbrix-2.5.0 → hebbrix-2.6.0}/CHANGELOG.md +51 -0
  2. {hebbrix-2.5.0 → hebbrix-2.6.0}/MANIFEST.in +3 -0
  3. {hebbrix-2.5.0/hebbrix.egg-info → hebbrix-2.6.0}/PKG-INFO +50 -4
  4. {hebbrix-2.5.0 → hebbrix-2.6.0}/README.md +47 -1
  5. hebbrix-2.6.0/contracts/openapi-routes.json +1121 -0
  6. hebbrix-2.6.0/docs/native-experience-operations.md +143 -0
  7. hebbrix-2.6.0/examples/native_reflection_worker.py +6 -0
  8. {hebbrix-2.5.0 → hebbrix-2.6.0}/hebbrix/__init__.py +1 -1
  9. hebbrix-2.6.0/hebbrix/_advice.py +145 -0
  10. {hebbrix-2.5.0 → hebbrix-2.6.0}/hebbrix/client.py +4 -1
  11. hebbrix-2.6.0/hebbrix/execution.py +78 -0
  12. hebbrix-2.6.0/hebbrix/experience.py +235 -0
  13. hebbrix-2.6.0/hebbrix/openai_reflection.py +218 -0
  14. hebbrix-2.6.0/hebbrix/reflection_worker.py +95 -0
  15. {hebbrix-2.5.0 → hebbrix-2.6.0}/hebbrix/resources.py +146 -0
  16. {hebbrix-2.5.0 → hebbrix-2.6.0}/hebbrix/sync_client.py +150 -1
  17. hebbrix-2.6.0/hebbrix/workflow.py +456 -0
  18. {hebbrix-2.5.0 → hebbrix-2.6.0/hebbrix.egg-info}/PKG-INFO +50 -4
  19. hebbrix-2.6.0/hebbrix.egg-info/SOURCES.txt +44 -0
  20. hebbrix-2.6.0/hebbrix.egg-info/entry_points.txt +2 -0
  21. {hebbrix-2.5.0 → hebbrix-2.6.0}/hebbrix.egg-info/requires.txt +1 -1
  22. {hebbrix-2.5.0 → hebbrix-2.6.0}/pyproject.toml +6 -3
  23. hebbrix-2.6.0/tests/test_advisor_integrity.py +254 -0
  24. {hebbrix-2.5.0 → hebbrix-2.6.0}/tests/test_evidence_loop_resource.py +25 -2
  25. hebbrix-2.6.0/tests/test_execution_permission.py +137 -0
  26. hebbrix-2.6.0/tests/test_experience_request.py +184 -0
  27. hebbrix-2.6.0/tests/test_experience_workflow.py +244 -0
  28. hebbrix-2.6.0/tests/test_followup_helpers.py +46 -0
  29. hebbrix-2.6.0/tests/test_openai_reflection.py +145 -0
  30. hebbrix-2.6.0/tests/test_outcome_advice_resource.py +50 -0
  31. hebbrix-2.6.0/tests/test_reflection_worker_cli.py +64 -0
  32. hebbrix-2.6.0/tests/test_release_version.py +22 -0
  33. hebbrix-2.6.0/tests/test_workflow_route_contract.py +47 -0
  34. hebbrix-2.5.0/hebbrix.egg-info/SOURCES.txt +0 -24
  35. {hebbrix-2.5.0 → hebbrix-2.6.0}/LICENSE +0 -0
  36. {hebbrix-2.5.0 → hebbrix-2.6.0}/hebbrix/chat.py +0 -0
  37. {hebbrix-2.5.0 → hebbrix-2.6.0}/hebbrix/exceptions.py +0 -0
  38. {hebbrix-2.5.0 → hebbrix-2.6.0}/hebbrix/models.py +0 -0
  39. {hebbrix-2.5.0 → hebbrix-2.6.0}/hebbrix.egg-info/dependency_links.txt +0 -0
  40. {hebbrix-2.5.0 → hebbrix-2.6.0}/hebbrix.egg-info/top_level.txt +0 -0
  41. {hebbrix-2.5.0 → hebbrix-2.6.0}/setup.cfg +0 -0
  42. {hebbrix-2.5.0 → hebbrix-2.6.0}/tests/test_advanced_resources.py +0 -0
  43. {hebbrix-2.5.0 → hebbrix-2.6.0}/tests/test_evidence_safety_boundary.py +0 -0
  44. {hebbrix-2.5.0 → hebbrix-2.6.0}/tests/test_memories_resource.py +0 -0
  45. {hebbrix-2.5.0 → hebbrix-2.6.0}/tests/test_openapi_parity.py +0 -0
  46. {hebbrix-2.5.0 → hebbrix-2.6.0}/tests/test_procedural_resource.py +0 -0
  47. {hebbrix-2.5.0 → hebbrix-2.6.0}/tests/test_sync_client.py +0 -0
@@ -1,5 +1,56 @@
1
1
  # Changelog
2
2
 
3
+ ## 2.6.0 — 2026-10-04 (stable SDK)
4
+
5
+ - Bound runtime HTTPX to `>=0.25.0,<1`, excluding incompatible 1.x prereleases.
6
+ - Add sync/async atomic setup options for explicit policy configuration and built-in success-minus-cost metrics.
7
+ - Keep advisor input/probability validation, scope and protected evidence transports unchanged.
8
+ - Backend v3 learning methods remain explicit experimental opt-ins. Stable packaging does not establish performance, calibrated confidence or execution permission.
9
+
10
+ ## 2.6.0rc5 — 2026-10-03 (prerelease)
11
+
12
+ - Snapshot advisor context/candidates and reject scope overrides or mutable identities.
13
+ - Validate the complete finite logging distribution against original candidates before writing.
14
+ - Invoke the callback once; preserve caller probabilities without normalization or retries.
15
+ - Caller probabilities are not authenticated randomization; no execution authority or measured learning-performance gain is claimed.
16
+
17
+ ## 2.6.0rc4 — 2026-10-02 (prerelease)
18
+
19
+ - Correct both HTTP User-Agent version strings and add a source-version parity
20
+ check. The previously published rc3 remains unchanged; helper behavior is
21
+ otherwise identical.
22
+
23
+ ## 2.6.0rc3 — 2026-10-02 (prerelease)
24
+
25
+ - Add scoped one-call policy setup and descriptive learning-report helpers.
26
+ - Add bounded advisor callbacks that log the caller's actual chosen action and
27
+ supplied behavior distribution; advice never executes or authorizes an action.
28
+ - These helpers require the October 2 outcome-followup backend release or a
29
+ compatible successor. Check `/v1/release` before using the new endpoints.
30
+ - Learning performance and reliable model compliance with feedback are not
31
+ established. This release makes no superiority or benchmark claim.
32
+
33
+ ## 2.6.0rc2 — 2026-10-01 (prerelease)
34
+
35
+ - Add sync/async context enrollment, revision-checked policy configuration,
36
+ scoped evidence cards and exact action-advice helpers.
37
+ - Preserve collection/end-user scope and JSON context. ACT remains advisory;
38
+ callers must independently authorize external actions.
39
+ - Policy configuration/advice requires backend `e5f6g7h8i868` or a compatible
40
+ successor. Existing protected workflow transports are unchanged.
41
+
42
+ ## 2.6.0rc1 — 2026-09-09 (prerelease)
43
+
44
+ - Add sync/async native experience programs, reflection jobs, reviewed lesson
45
+ revisions and one-use execution-permission transports.
46
+ - Bind complete model requests and tool invocations, retain uncertain delivery,
47
+ and prevent automatic retries of potentially completed side effects.
48
+ - Add the optional bounded OpenAI reflection adapter and `hebbrix-reflect` CLI.
49
+ - Require separately scoped worker/reviewer/executor credentials and the matching
50
+ `b5c6d7e8f959` backend. That backend is not yet deployed to public production;
51
+ stable 2.5.0 remains the production recommendation. No autonomous actions are
52
+ enabled by installing this package.
53
+
3
54
  ## 2.5.0 — 2026-09-07
4
55
 
5
56
  - 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.0
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>
@@ -33,7 +33,7 @@ Project-URL: Issues, https://github.com/Hebbrix/hebbrix-python/issues
33
33
  Project-URL: Support, https://www.hebbrix.com/contact
34
34
  Project-URL: API Reference, https://api.hebbrix.com/docs
35
35
  Keywords: ai,memory,agents,llm,chatbot,assistant,ml,reinforcement-learning,knowledge-graph,vector-search,rag,temporal,procedural-memory,working-memory
36
- Classifier: Development Status :: 4 - Beta
36
+ Classifier: Development Status :: 5 - Production/Stable
37
37
  Classifier: Intended Audience :: Developers
38
38
  Classifier: Topic :: Software Development :: Libraries :: Python Modules
39
39
  Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
@@ -49,7 +49,7 @@ Classifier: Framework :: AsyncIO
49
49
  Requires-Python: >=3.8
50
50
  Description-Content-Type: text/markdown
51
51
  License-File: LICENSE
52
- Requires-Dist: httpx>=0.25.0
52
+ Requires-Dist: httpx<1,>=0.25.0
53
53
  Requires-Dist: requests>=2.31.0
54
54
  Provides-Extra: dev
55
55
  Requires-Dist: pytest>=7.0.0; extra == "dev"
@@ -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.0 stable SDK**. The new policy configuration and
69
+ advice helpers require backend schema `e5f6g7h8i868` or a compatible successor.
70
+ A stable SDK does not qualify experimental learning or 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.0
72
77
  ```
73
78
 
74
79
  Python 3.8+ is supported. `MemoryClient` is asynchronous. `SyncMemoryClient`
@@ -76,8 +81,38 @@ supports the core collection, memory, search, correction, procedure, and
76
81
  ProofLoop workflows; advanced temporal, working-memory, consolidation,
77
82
  memory-tool, and RL resources are currently async-only.
78
83
 
84
+ The runtime requires `httpx>=0.25.0,<1`; incompatible 1.x prereleases are excluded.
85
+ For the matching Round 5 backend, `setup_policy` accepts explicit `configuration`
86
+ options for versioned change response and declared optional-field sharing, plus
87
+ `value_objective={"success_value":10,"max_cost":20,"cost_unit":"USD"}`.
88
+ Report both actual success and cost with `record_outcome`. Chat follow-up capture
89
+ requires `features.learning: true` and an exact `outcome_followup.decision_id`;
90
+ captured signals are provisional, not verified execution or autonomy evidence.
91
+ These options require the matching runtime, not only the unchanged database schema.
92
+
79
93
  ## Quick start
80
94
 
95
+ October 2 follow-up: `proofloop.setup_policy` atomically creates a new
96
+ context/schema policy with explicitly declared low-risk exploration; existing
97
+ policies are not migrated automatically. `learning_report` reads a bounded,
98
+ scoped descriptive report, not proven uplift. `decide_with_advice` reads an
99
+ evidence card, invokes the supplied advisor once and logs its actual choice and
100
+ probabilities. `decide` accepts bounded `prior_action` / `prior_strength` for one
101
+ server-selected decision; this is not outcome evidence. These new helpers and
102
+ structured paraphrase matching require the matching October 2 outcome-followup
103
+ backend, not merely its database schema; inspect `/v1/release` before use.
104
+ Nothing here grants permission to execute. Learning performance and reliable
105
+ model compliance with feedback are not established.
106
+
107
+ Both clients expose `proofloop.register_context_schema`, `context_schema`,
108
+ `configure_policy`, `policy_configuration`, `policy_advice` and `action_advice`.
109
+ Enroll context before recording decisions. Configuration uses `expected_revision`
110
+ for compare-and-swap; do not retry a conflict blindly. Exploration remains an
111
+ explicit low-risk opt-in. `action_advice` takes the exact configured description,
112
+ policy/action IDs and context, and maps `user_id` to the confidence endpoint's
113
+ `end_user_id`. For the complete request shapes, see the
114
+ [learning guide](https://www.hebbrix.com/docs/learning).
115
+
81
116
  ```python
82
117
  import asyncio
83
118
  from hebbrix import MemoryClient
@@ -188,3 +223,14 @@ The production API publishes exact build and artifact compatibility at
188
223
  ## License
189
224
 
190
225
  MIT. See `LICENSE` in the distribution.
226
+ ## Native experience workflow (prerelease)
227
+
228
+ The current source includes `client.experiences`, bounded reflection workers,
229
+ separate lesson review/revision and explicit one-use execution admission. These
230
+ methods require the matching new backend; the published 2.5.0 release does not
231
+ include this extension. The candidate package supplies `hebbrix-reflect --help`.
232
+ Importing it does not call a model, approve a lesson or execute a tool.
233
+
234
+ See `docs/native-experience-operations.md` for role scopes,
235
+ uncertain-call recovery, exact-request binding and policy rollback. Do not treat a
236
+ 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.0 stable SDK**. The new policy configuration and
6
+ advice helpers require backend schema `e5f6g7h8i868` or a compatible successor.
7
+ A stable SDK does not qualify experimental learning or 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.0
9
14
  ```
10
15
 
11
16
  Python 3.8+ is supported. `MemoryClient` is asynchronous. `SyncMemoryClient`
@@ -13,8 +18,38 @@ supports the core collection, memory, search, correction, procedure, and
13
18
  ProofLoop workflows; advanced temporal, working-memory, consolidation,
14
19
  memory-tool, and RL resources are currently async-only.
15
20
 
21
+ The runtime requires `httpx>=0.25.0,<1`; incompatible 1.x prereleases are excluded.
22
+ For the matching Round 5 backend, `setup_policy` accepts explicit `configuration`
23
+ options for versioned change response and declared optional-field sharing, plus
24
+ `value_objective={"success_value":10,"max_cost":20,"cost_unit":"USD"}`.
25
+ Report both actual success and cost with `record_outcome`. Chat follow-up capture
26
+ requires `features.learning: true` and an exact `outcome_followup.decision_id`;
27
+ captured signals are provisional, not verified execution or autonomy evidence.
28
+ These options require the matching runtime, not only the unchanged database schema.
29
+
16
30
  ## Quick start
17
31
 
32
+ October 2 follow-up: `proofloop.setup_policy` atomically creates a new
33
+ context/schema policy with explicitly declared low-risk exploration; existing
34
+ policies are not migrated automatically. `learning_report` reads a bounded,
35
+ scoped descriptive report, not proven uplift. `decide_with_advice` reads an
36
+ evidence card, invokes the supplied advisor once and logs its actual choice and
37
+ probabilities. `decide` accepts bounded `prior_action` / `prior_strength` for one
38
+ server-selected decision; this is not outcome evidence. These new helpers and
39
+ structured paraphrase matching require the matching October 2 outcome-followup
40
+ backend, not merely its database schema; inspect `/v1/release` before use.
41
+ Nothing here grants permission to execute. Learning performance and reliable
42
+ model compliance with feedback are not established.
43
+
44
+ Both clients expose `proofloop.register_context_schema`, `context_schema`,
45
+ `configure_policy`, `policy_configuration`, `policy_advice` and `action_advice`.
46
+ Enroll context before recording decisions. Configuration uses `expected_revision`
47
+ for compare-and-swap; do not retry a conflict blindly. Exploration remains an
48
+ explicit low-risk opt-in. `action_advice` takes the exact configured description,
49
+ policy/action IDs and context, and maps `user_id` to the confidence endpoint's
50
+ `end_user_id`. For the complete request shapes, see the
51
+ [learning guide](https://www.hebbrix.com/docs/learning).
52
+
18
53
  ```python
19
54
  import asyncio
20
55
  from hebbrix import MemoryClient
@@ -125,3 +160,14 @@ The production API publishes exact build and artifact compatibility at
125
160
  ## License
126
161
 
127
162
  MIT. See `LICENSE` in the distribution.
163
+ ## Native experience workflow (prerelease)
164
+
165
+ The current source includes `client.experiences`, bounded reflection workers,
166
+ separate lesson review/revision and explicit one-use execution admission. These
167
+ methods require the matching new backend; the published 2.5.0 release does not
168
+ include this extension. The candidate package supplies `hebbrix-reflect --help`.
169
+ Importing it does not call a model, approve a lesson or execute a tool.
170
+
171
+ See `docs/native-experience-operations.md` for role scopes,
172
+ uncertain-call recovery, exact-request binding and policy rollback. Do not treat a
173
+ lesson, score, review or issued permit as execution permission.