atbash-hermes-plugin 0.12.0.dev0__py3-none-any.whl → 0.15.1.dev0__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.
- atbash_hermes_plugin/__init__.py +7 -21
- {atbash_hermes_plugin-0.12.0.dev0.dist-info → atbash_hermes_plugin-0.15.1.dev0.dist-info}/METADATA +5 -5
- atbash_hermes_plugin-0.15.1.dev0.dist-info/RECORD +9 -0
- atbash_hermes_plugin-0.12.0.dev0.dist-info/RECORD +0 -9
- {atbash_hermes_plugin-0.12.0.dev0.dist-info → atbash_hermes_plugin-0.15.1.dev0.dist-info}/WHEEL +0 -0
- {atbash_hermes_plugin-0.12.0.dev0.dist-info → atbash_hermes_plugin-0.15.1.dev0.dist-info}/entry_points.txt +0 -0
- {atbash_hermes_plugin-0.12.0.dev0.dist-info → atbash_hermes_plugin-0.15.1.dev0.dist-info}/licenses/LICENSE +0 -0
- {atbash_hermes_plugin-0.12.0.dev0.dist-info → atbash_hermes_plugin-0.15.1.dev0.dist-info}/licenses/NOTICE +0 -0
- {atbash_hermes_plugin-0.12.0.dev0.dist-info → atbash_hermes_plugin-0.15.1.dev0.dist-info}/top_level.txt +0 -0
atbash_hermes_plugin/__init__.py
CHANGED
|
@@ -18,16 +18,9 @@ from typing import Any, Dict, Iterable, Optional
|
|
|
18
18
|
logger = logging.getLogger("atbash-hermes-plugin")
|
|
19
19
|
_TELEMETRY_SHUTDOWN_REGISTERED = False
|
|
20
20
|
|
|
21
|
-
try:
|
|
22
|
-
from atbash_core import redact_secrets as _redact_secrets # type: ignore
|
|
23
|
-
_REDACT_AVAILABLE = True
|
|
24
|
-
except Exception:
|
|
25
|
-
_redact_secrets = None # type: ignore
|
|
26
|
-
_REDACT_AVAILABLE = False
|
|
27
|
-
|
|
28
21
|
HOLD_MESSAGE = (
|
|
29
|
-
"Action
|
|
30
|
-
"
|
|
22
|
+
"Action flagged as a policy gap. The agent will not be jailed — please adjust "
|
|
23
|
+
"your policy in the Atbash dashboard, then ask the agent to try "
|
|
31
24
|
"again.\nReason: {reason}"
|
|
32
25
|
)
|
|
33
26
|
|
|
@@ -2343,20 +2336,13 @@ class AtbashHermesGuard:
|
|
|
2343
2336
|
# Redact embedded secrets before sending to the judge — mirrors SDK's
|
|
2344
2337
|
# scanMemory → redactSecrets → judgeAction path to prevent secrets inside
|
|
2345
2338
|
# memory content from being signed and posted to chain.
|
|
2346
|
-
if not _REDACT_AVAILABLE:
|
|
2347
|
-
# N-8: unredacted memory content must never be signed and
|
|
2348
|
-
# posted — a broken/partial SDK is a block, not a silent send.
|
|
2349
|
-
logger.warning("Atbash memory write redaction unavailable")
|
|
2350
|
-
if self.fail_closed:
|
|
2351
|
-
return {
|
|
2352
|
-
"action": "block",
|
|
2353
|
-
"message": "Memory write blocked (secret redaction unavailable).",
|
|
2354
|
-
}
|
|
2355
|
-
return None
|
|
2356
2339
|
try:
|
|
2357
|
-
|
|
2340
|
+
from atbash_core import redact_secrets # type: ignore
|
|
2341
|
+
formatted = redact_secrets(formatted).redacted
|
|
2358
2342
|
except Exception as _re:
|
|
2359
|
-
|
|
2343
|
+
# N-8: unredacted memory content must never be signed and
|
|
2344
|
+
# posted — a broken/partial SDK is a block, not a silent send.
|
|
2345
|
+
logger.warning("Atbash memory write redaction unavailable err=%s", _re)
|
|
2360
2346
|
if self.fail_closed:
|
|
2361
2347
|
return {
|
|
2362
2348
|
"action": "block",
|
{atbash_hermes_plugin-0.12.0.dev0.dist-info → atbash_hermes_plugin-0.15.1.dev0.dist-info}/METADATA
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: atbash-hermes-plugin
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.15.1.dev0
|
|
4
4
|
Summary: Atbash safety plugin for Hermes Agent
|
|
5
5
|
Author: atbash
|
|
6
6
|
License-Expression: Apache-2.0
|
|
@@ -11,7 +11,7 @@ Requires-Python: <3.13,>=3.9
|
|
|
11
11
|
Description-Content-Type: text/markdown
|
|
12
12
|
License-File: LICENSE
|
|
13
13
|
License-File: NOTICE
|
|
14
|
-
Requires-Dist: atbash-sdk<1.0.0,>=0.
|
|
14
|
+
Requires-Dist: atbash-sdk<1.0.0,>=0.15.0.dev0
|
|
15
15
|
Requires-Dist: httpx<1,>=0.27
|
|
16
16
|
Requires-Dist: opentelemetry-exporter-otlp-proto-http<2,>=1.29
|
|
17
17
|
Requires-Dist: opentelemetry-sdk<2,>=1.29
|
|
@@ -294,14 +294,14 @@ repo.
|
|
|
294
294
|
For `HOLD`, the user-facing block message is:
|
|
295
295
|
|
|
296
296
|
```text
|
|
297
|
-
Action
|
|
297
|
+
Action flagged as a policy gap. The agent will not be jailed — please adjust your policy in the Atbash dashboard, then ask the agent to try again.
|
|
298
298
|
Reason: <original reason from judge>
|
|
299
299
|
Tool Call ID: <held judgment id, when provided by the SDK>
|
|
300
300
|
```
|
|
301
301
|
|
|
302
|
-
After
|
|
302
|
+
After the policy is adjusted in the dashboard, the SDK can query held-action status with
|
|
303
303
|
the judgment ID. The Hermes plugin blocks the original tool call and asks the
|
|
304
|
-
user to retry after
|
|
304
|
+
user to retry after the policy is updated, rather than automatically re-running the action.
|
|
305
305
|
|
|
306
306
|
## Guard Self-Protection And Memory Baselines
|
|
307
307
|
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
atbash_hermes_plugin/__init__.py,sha256=TnYWV0XBbD76Ccqdxtfcf3UT-dkyamhXJKCz1KsIH3k,126630
|
|
2
|
+
atbash_hermes_plugin/__main__.py,sha256=DHc8CpxgfbDvoZNArLVtiWv-swwD5NcEQIFjf8DfrG4,1584
|
|
3
|
+
atbash_hermes_plugin-0.15.1.dev0.dist-info/licenses/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
|
|
4
|
+
atbash_hermes_plugin-0.15.1.dev0.dist-info/licenses/NOTICE,sha256=E-pZ_WNikGxHgyE4P4-GNFFmaEM6A7_WjkyfNN4V6ss,238
|
|
5
|
+
atbash_hermes_plugin-0.15.1.dev0.dist-info/METADATA,sha256=YatTOfm_whKxzCFPNBQDWK_h2c-XPrvNQQfg2LqXPdw,13751
|
|
6
|
+
atbash_hermes_plugin-0.15.1.dev0.dist-info/WHEEL,sha256=YVMoNqKzERt-wjUZwJ33xBGAwnFl-4cqbYkTtWa4itE,91
|
|
7
|
+
atbash_hermes_plugin-0.15.1.dev0.dist-info/entry_points.txt,sha256=YezkmasjRBXrSlXpqhSJdFhDCdBbENp-_THYtkcRTBo,67
|
|
8
|
+
atbash_hermes_plugin-0.15.1.dev0.dist-info/top_level.txt,sha256=0nT35m8jNxzbQB3CerGf5kgH7hm_pc6GLadlf69w_JM,21
|
|
9
|
+
atbash_hermes_plugin-0.15.1.dev0.dist-info/RECORD,,
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
atbash_hermes_plugin/__init__.py,sha256=MyzMJfKvBHuW_V5LsdIp7hvNWnZR1kUf9ddwBhoLDI4,127154
|
|
2
|
-
atbash_hermes_plugin/__main__.py,sha256=DHc8CpxgfbDvoZNArLVtiWv-swwD5NcEQIFjf8DfrG4,1584
|
|
3
|
-
atbash_hermes_plugin-0.12.0.dev0.dist-info/licenses/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
|
|
4
|
-
atbash_hermes_plugin-0.12.0.dev0.dist-info/licenses/NOTICE,sha256=E-pZ_WNikGxHgyE4P4-GNFFmaEM6A7_WjkyfNN4V6ss,238
|
|
5
|
-
atbash_hermes_plugin-0.12.0.dev0.dist-info/METADATA,sha256=552PlV3CjiyppRzUA9YxAJklFUBe_LMQhzRo-RvnzBU,13743
|
|
6
|
-
atbash_hermes_plugin-0.12.0.dev0.dist-info/WHEEL,sha256=YVMoNqKzERt-wjUZwJ33xBGAwnFl-4cqbYkTtWa4itE,91
|
|
7
|
-
atbash_hermes_plugin-0.12.0.dev0.dist-info/entry_points.txt,sha256=YezkmasjRBXrSlXpqhSJdFhDCdBbENp-_THYtkcRTBo,67
|
|
8
|
-
atbash_hermes_plugin-0.12.0.dev0.dist-info/top_level.txt,sha256=0nT35m8jNxzbQB3CerGf5kgH7hm_pc6GLadlf69w_JM,21
|
|
9
|
-
atbash_hermes_plugin-0.12.0.dev0.dist-info/RECORD,,
|
{atbash_hermes_plugin-0.12.0.dev0.dist-info → atbash_hermes_plugin-0.15.1.dev0.dist-info}/WHEEL
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|