hebbrix 2.10.0__tar.gz → 2.11.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.
- {hebbrix-2.10.0 → hebbrix-2.11.0}/CHANGELOG.md +5 -0
- {hebbrix-2.10.0/hebbrix.egg-info → hebbrix-2.11.0}/PKG-INFO +3 -3
- {hebbrix-2.10.0 → hebbrix-2.11.0}/README.md +2 -2
- {hebbrix-2.10.0 → hebbrix-2.11.0}/hebbrix/__init__.py +3 -1
- {hebbrix-2.10.0 → hebbrix-2.11.0}/hebbrix/answers.py +9 -4
- {hebbrix-2.10.0 → hebbrix-2.11.0}/hebbrix/client.py +1 -1
- {hebbrix-2.10.0 → hebbrix-2.11.0}/hebbrix/models.py +7 -0
- {hebbrix-2.10.0 → hebbrix-2.11.0}/hebbrix/sync_client.py +1 -1
- {hebbrix-2.10.0 → hebbrix-2.11.0/hebbrix.egg-info}/PKG-INFO +3 -3
- {hebbrix-2.10.0 → hebbrix-2.11.0}/pyproject.toml +1 -1
- {hebbrix-2.10.0 → hebbrix-2.11.0}/tests/test_answer_decision.py +7 -0
- {hebbrix-2.10.0 → hebbrix-2.11.0}/tests/test_customer_developer_experience.py +1 -1
- {hebbrix-2.10.0 → hebbrix-2.11.0}/LICENSE +0 -0
- {hebbrix-2.10.0 → hebbrix-2.11.0}/MANIFEST.in +0 -0
- {hebbrix-2.10.0 → hebbrix-2.11.0}/contracts/openapi-routes.json +0 -0
- {hebbrix-2.10.0 → hebbrix-2.11.0}/docs/native-experience-operations.md +0 -0
- {hebbrix-2.10.0 → hebbrix-2.11.0}/examples/native_reflection_worker.py +0 -0
- {hebbrix-2.10.0 → hebbrix-2.11.0}/hebbrix/_advice.py +0 -0
- {hebbrix-2.10.0 → hebbrix-2.11.0}/hebbrix/chat.py +0 -0
- {hebbrix-2.10.0 → hebbrix-2.11.0}/hebbrix/exceptions.py +0 -0
- {hebbrix-2.10.0 → hebbrix-2.11.0}/hebbrix/execution.py +0 -0
- {hebbrix-2.10.0 → hebbrix-2.11.0}/hebbrix/experience.py +0 -0
- {hebbrix-2.10.0 → hebbrix-2.11.0}/hebbrix/openai_reflection.py +0 -0
- {hebbrix-2.10.0 → hebbrix-2.11.0}/hebbrix/reflection_worker.py +0 -0
- {hebbrix-2.10.0 → hebbrix-2.11.0}/hebbrix/resources.py +0 -0
- {hebbrix-2.10.0 → hebbrix-2.11.0}/hebbrix/workflow.py +0 -0
- {hebbrix-2.10.0 → hebbrix-2.11.0}/hebbrix.egg-info/SOURCES.txt +0 -0
- {hebbrix-2.10.0 → hebbrix-2.11.0}/hebbrix.egg-info/dependency_links.txt +0 -0
- {hebbrix-2.10.0 → hebbrix-2.11.0}/hebbrix.egg-info/entry_points.txt +0 -0
- {hebbrix-2.10.0 → hebbrix-2.11.0}/hebbrix.egg-info/requires.txt +0 -0
- {hebbrix-2.10.0 → hebbrix-2.11.0}/hebbrix.egg-info/top_level.txt +0 -0
- {hebbrix-2.10.0 → hebbrix-2.11.0}/setup.cfg +0 -0
- {hebbrix-2.10.0 → hebbrix-2.11.0}/tests/test_advanced_resources.py +0 -0
- {hebbrix-2.10.0 → hebbrix-2.11.0}/tests/test_advisor_integrity.py +0 -0
- {hebbrix-2.10.0 → hebbrix-2.11.0}/tests/test_answer_context.py +0 -0
- {hebbrix-2.10.0 → hebbrix-2.11.0}/tests/test_chat_answer_options.py +0 -0
- {hebbrix-2.10.0 → hebbrix-2.11.0}/tests/test_compact_search_default.py +0 -0
- {hebbrix-2.10.0 → hebbrix-2.11.0}/tests/test_evidence_loop_resource.py +0 -0
- {hebbrix-2.10.0 → hebbrix-2.11.0}/tests/test_evidence_safety_boundary.py +0 -0
- {hebbrix-2.10.0 → hebbrix-2.11.0}/tests/test_execution_permission.py +0 -0
- {hebbrix-2.10.0 → hebbrix-2.11.0}/tests/test_experience_request.py +0 -0
- {hebbrix-2.10.0 → hebbrix-2.11.0}/tests/test_experience_workflow.py +0 -0
- {hebbrix-2.10.0 → hebbrix-2.11.0}/tests/test_followup_helpers.py +0 -0
- {hebbrix-2.10.0 → hebbrix-2.11.0}/tests/test_memories_resource.py +0 -0
- {hebbrix-2.10.0 → hebbrix-2.11.0}/tests/test_openai_reflection.py +0 -0
- {hebbrix-2.10.0 → hebbrix-2.11.0}/tests/test_openapi_parity.py +0 -0
- {hebbrix-2.10.0 → hebbrix-2.11.0}/tests/test_outcome_advice_resource.py +0 -0
- {hebbrix-2.10.0 → hebbrix-2.11.0}/tests/test_procedural_resource.py +0 -0
- {hebbrix-2.10.0 → hebbrix-2.11.0}/tests/test_reflection_worker_cli.py +0 -0
- {hebbrix-2.10.0 → hebbrix-2.11.0}/tests/test_release_version.py +0 -0
- {hebbrix-2.10.0 → hebbrix-2.11.0}/tests/test_sync_client.py +0 -0
- {hebbrix-2.10.0 → hebbrix-2.11.0}/tests/test_workflow_route_contract.py +0 -0
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 2.11.0 — 2026-11-13 (service failures, answer finality)
|
|
4
|
+
|
|
5
|
+
- `answer_status` `"unavailable"` (server 1.4.30): a service the evidence depends on failed for this request and nothing answers. `should_answer` declines it with action `retry`; never tell the user the fact is absent. Earlier versions declined it as `malformed_response`.
|
|
6
|
+
- Types: search and Reason responses gain `answer_finality` (`final`, `provisional`, `none`): whether an answerable response covers the whole scope (index ready) or only the evidence indexed so far. An agent acting on an answer, or any action with side effects, waits for `final`.
|
|
7
|
+
|
|
3
8
|
## 2.10.0 — 2026-11-12 (applicable rules, consistent abstention flags)
|
|
4
9
|
|
|
5
10
|
- An `unverified` search response whose rows include `evidence_role: "applicable_rule"` (server 1.4.27) returns reason `applicable_rule` and action `use_as_context`, those rules first in `decision.context`: policy that speaks to the asked case but that the API has not verified decides it. Let your model apply it, or call `reason`. A rule is never an authorization; `authorization_not_verifiable` still comes first.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: hebbrix
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.11.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>
|
|
@@ -65,14 +65,14 @@ Dynamic: license-file
|
|
|
65
65
|
|
|
66
66
|
Typed Python client for Hebbrix memory, retrieval, and outcome-learning APIs.
|
|
67
67
|
|
|
68
|
-
The current stable package is **2.
|
|
68
|
+
The current stable package is **2.11.0**. Start with memory storage and search, or
|
|
69
69
|
the three-call outcome-learning workflow below. Advanced evidence and execution
|
|
70
70
|
permission transports are opt-in; installing the SDK never permits an action.
|
|
71
71
|
|
|
72
72
|
## Install
|
|
73
73
|
|
|
74
74
|
```bash
|
|
75
|
-
pip install hebbrix==2.
|
|
75
|
+
pip install hebbrix==2.11.0
|
|
76
76
|
```
|
|
77
77
|
|
|
78
78
|
Python 3.8+ is supported. `MemoryClient` is asynchronous. `SyncMemoryClient`
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
Typed Python client for Hebbrix memory, retrieval, and outcome-learning APIs.
|
|
4
4
|
|
|
5
|
-
The current stable package is **2.
|
|
5
|
+
The current stable package is **2.11.0**. Start with memory storage and search, or
|
|
6
6
|
the three-call outcome-learning workflow below. Advanced evidence and execution
|
|
7
7
|
permission transports are opt-in; installing the SDK never permits an action.
|
|
8
8
|
|
|
9
9
|
## Install
|
|
10
10
|
|
|
11
11
|
```bash
|
|
12
|
-
pip install hebbrix==2.
|
|
12
|
+
pip install hebbrix==2.11.0
|
|
13
13
|
```
|
|
14
14
|
|
|
15
15
|
Python 3.8+ is supported. `MemoryClient` is asynchronous. `SyncMemoryClient`
|
|
@@ -5,7 +5,7 @@ production OpenAPI and ``GET /v1/users/me/capabilities``. The experimental
|
|
|
5
5
|
World Model is intentionally absent from this release.
|
|
6
6
|
"""
|
|
7
7
|
|
|
8
|
-
__version__ = "2.
|
|
8
|
+
__version__ = "2.11.0"
|
|
9
9
|
__author__ = "Hebbrix Team"
|
|
10
10
|
__license__ = "MIT"
|
|
11
11
|
|
|
@@ -29,6 +29,7 @@ from hebbrix.exceptions import (
|
|
|
29
29
|
)
|
|
30
30
|
from hebbrix.models import (
|
|
31
31
|
ActionAdviceReceipt,
|
|
32
|
+
AnswerFinality,
|
|
32
33
|
AnswerStatus,
|
|
33
34
|
EvidenceClaim,
|
|
34
35
|
GroundingReceipt,
|
|
@@ -57,6 +58,7 @@ __all__ = [
|
|
|
57
58
|
"SearchSafetyEnvelope",
|
|
58
59
|
"ActionAdviceReceipt",
|
|
59
60
|
"AnswerDecision",
|
|
61
|
+
"AnswerFinality",
|
|
60
62
|
"AnswerStatus",
|
|
61
63
|
"MemoryRow",
|
|
62
64
|
"MemoryStatus",
|
|
@@ -32,6 +32,7 @@ ANSWER_STATUSES = (
|
|
|
32
32
|
"unverified",
|
|
33
33
|
"indexing",
|
|
34
34
|
"no_relevant_memory",
|
|
35
|
+
"unavailable",
|
|
35
36
|
)
|
|
36
37
|
REVISION_STATUSES = ("current", "superseded", "conflicting", "historical")
|
|
37
38
|
|
|
@@ -43,6 +44,9 @@ ACTIONS = {
|
|
|
43
44
|
"unverified": "abstain",
|
|
44
45
|
"indexing": "retry",
|
|
45
46
|
"no_relevant_memory": "say_unknown",
|
|
47
|
+
# A service the evidence depends on failed for this request: retry, and
|
|
48
|
+
# never tell the user the fact is absent.
|
|
49
|
+
"unavailable": "retry",
|
|
46
50
|
}
|
|
47
51
|
# A permission question answered by a rule that restricts the act to a group no
|
|
48
52
|
# memory ties the asker to (``confidence_reason`` "authorization_not_verifiable"):
|
|
@@ -199,7 +203,10 @@ def should_answer(
|
|
|
199
203
|
if response.get("confidence_reason") == AUTHORIZATION_NOT_VERIFIABLE:
|
|
200
204
|
return declined(AUTHORIZATION_NOT_VERIFIABLE, VERIFY_AUTHORIZATION)
|
|
201
205
|
grounding = response.get("grounding")
|
|
202
|
-
if
|
|
206
|
+
if (
|
|
207
|
+
isinstance(grounding, Mapping)
|
|
208
|
+
and grounding.get("answerability") == CONTEXT_ONLY
|
|
209
|
+
):
|
|
203
210
|
return declined(CONTEXT_ONLY, USE_AS_CONTEXT)
|
|
204
211
|
if require_ready and not _ready(response):
|
|
205
212
|
return declined(INDEX_NOT_READY, "retry")
|
|
@@ -399,9 +406,7 @@ def answer_context(
|
|
|
399
406
|
"""
|
|
400
407
|
|
|
401
408
|
if decision is None:
|
|
402
|
-
decision = should_answer(
|
|
403
|
-
response, history=history, require_ready=require_ready
|
|
404
|
-
)
|
|
409
|
+
decision = should_answer(response, history=history, require_ready=require_ready)
|
|
405
410
|
sections = []
|
|
406
411
|
profile = _profile_lines(
|
|
407
412
|
response.get("profile") if isinstance(response, Mapping) else None
|
|
@@ -44,6 +44,10 @@ AnswerStatus = Literal[
|
|
|
44
44
|
"indexing",
|
|
45
45
|
"no_relevant_memory",
|
|
46
46
|
]
|
|
47
|
+
# Whether an answerable response covers its whole scope: final (every
|
|
48
|
+
# memory accepted for the scope was indexed), provisional (answerable from what
|
|
49
|
+
# is indexed now; a pending memory may change it) or none (nothing to act on).
|
|
50
|
+
AnswerFinality = Literal["final", "provisional", "none"]
|
|
47
51
|
RevisionStatus = Literal["current", "superseded", "conflicting", "historical"]
|
|
48
52
|
|
|
49
53
|
|
|
@@ -113,6 +117,9 @@ class SearchSafetyEnvelope(TypedDict, total=False):
|
|
|
113
117
|
abstain_recommended: bool
|
|
114
118
|
# What this response lets a caller do, in one value.
|
|
115
119
|
answer_status: AnswerStatus
|
|
120
|
+
# final, provisional or none: act on a final answer only when a decision
|
|
121
|
+
# must cover the whole scope (agents, side effects).
|
|
122
|
+
answer_finality: AnswerFinality
|
|
116
123
|
indexing: Optional[ScopeIndexing]
|
|
117
124
|
confidence_reason: Optional[str]
|
|
118
125
|
# /v1/search/reason: decision_abstained is true exactly when answer is null.
|
|
@@ -1144,7 +1144,7 @@ class SyncMemoryClient:
|
|
|
1144
1144
|
self.source = source or os.getenv("HEBBRIX_SOURCE")
|
|
1145
1145
|
headers = {
|
|
1146
1146
|
"Content-Type": "application/json",
|
|
1147
|
-
"User-Agent": "hebbrix-python/2.
|
|
1147
|
+
"User-Agent": "hebbrix-python/2.11.0",
|
|
1148
1148
|
}
|
|
1149
1149
|
if api_key:
|
|
1150
1150
|
headers["Authorization"] = f"Bearer {api_key}"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: hebbrix
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.11.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>
|
|
@@ -65,14 +65,14 @@ Dynamic: license-file
|
|
|
65
65
|
|
|
66
66
|
Typed Python client for Hebbrix memory, retrieval, and outcome-learning APIs.
|
|
67
67
|
|
|
68
|
-
The current stable package is **2.
|
|
68
|
+
The current stable package is **2.11.0**. Start with memory storage and search, or
|
|
69
69
|
the three-call outcome-learning workflow below. Advanced evidence and execution
|
|
70
70
|
permission transports are opt-in; installing the SDK never permits an action.
|
|
71
71
|
|
|
72
72
|
## Install
|
|
73
73
|
|
|
74
74
|
```bash
|
|
75
|
-
pip install hebbrix==2.
|
|
75
|
+
pip install hebbrix==2.11.0
|
|
76
76
|
```
|
|
77
77
|
|
|
78
78
|
Python 3.8+ is supported. `MemoryClient` is asynchronous. `SyncMemoryClient`
|
|
@@ -510,3 +510,10 @@ def test_a_rule_never_answers_an_authorization_question():
|
|
|
510
510
|
decision = should_answer(page)
|
|
511
511
|
assert not decision
|
|
512
512
|
assert decision.reason == "authorization_not_verifiable"
|
|
513
|
+
|
|
514
|
+
|
|
515
|
+
def test_a_failed_service_is_retried_never_reported_absent():
|
|
516
|
+
decision = should_answer(search([], answer_status="unavailable"))
|
|
517
|
+
assert decision.answer is False
|
|
518
|
+
assert decision.reason == "unavailable"
|
|
519
|
+
assert decision.action == "retry"
|
|
@@ -162,6 +162,6 @@ def test_package_docs_metadata_uses_canonical_host():
|
|
|
162
162
|
assert 'Documentation = "https://hebbrix.com/docs"' in text
|
|
163
163
|
assert "docs.hebbrix.com" not in text
|
|
164
164
|
readme = (root / "README.md").read_text()
|
|
165
|
-
assert "pip install hebbrix==2.
|
|
165
|
+
assert "pip install hebbrix==2.11.0" in readme
|
|
166
166
|
assert "three calls" in readme
|
|
167
167
|
assert "schema `" not in readme
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|