atbash-hermes-plugin 0.4.6.dev1__tar.gz → 0.4.8.dev0__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: atbash-hermes-plugin
3
- Version: 0.4.6.dev1
3
+ Version: 0.4.8.dev0
4
4
  Summary: Atbash safety plugin for Hermes Agent
5
5
  Author: atbash
6
6
  License-Expression: LicenseRef-Atbash-Proprietary
@@ -10,7 +10,7 @@ Keywords: atbash,hermes,hermes-agent,agent-safety,ai-safety,tool-guard,judge,pol
10
10
  Requires-Python: <3.13,>=3.9
11
11
  Description-Content-Type: text/markdown
12
12
  License-File: LICENSE
13
- Requires-Dist: atbash-sdk==0.4.7.dev0
13
+ Requires-Dist: atbash-sdk==0.5.0
14
14
  Requires-Dist: httpx<1,>=0.27
15
15
  Requires-Dist: opentelemetry-exporter-otlp-proto-http<2,>=1.29
16
16
  Requires-Dist: opentelemetry-sdk<2,>=1.29
@@ -134,9 +134,9 @@ ATBASH_ORG_NAME=your-org-name
134
134
  # Override where learned Hermes tool classifications are saved.
135
135
  ATBASH_TOOL_MAP_PATH=~/.config/atbash/hermes-tool-map.json
136
136
 
137
- # HTTP request timeout in seconds for judge API calls. Default: 30.
137
+ # HTTP request timeout in seconds for judge API calls. Default: 60.
138
138
  # Raise this if you see "read operation timed out" errors on a slow endpoint.
139
- ATBASH_REQUEST_TIMEOUT=30
139
+ ATBASH_REQUEST_TIMEOUT=60
140
140
  ```
141
141
 
142
142
  ## Telemetry
@@ -116,9 +116,9 @@ ATBASH_ORG_NAME=your-org-name
116
116
  # Override where learned Hermes tool classifications are saved.
117
117
  ATBASH_TOOL_MAP_PATH=~/.config/atbash/hermes-tool-map.json
118
118
 
119
- # HTTP request timeout in seconds for judge API calls. Default: 30.
119
+ # HTTP request timeout in seconds for judge API calls. Default: 60.
120
120
  # Raise this if you see "read operation timed out" errors on a slow endpoint.
121
- ATBASH_REQUEST_TIMEOUT=30
121
+ ATBASH_REQUEST_TIMEOUT=60
122
122
  ```
123
123
 
124
124
  ## Telemetry
@@ -557,7 +557,7 @@ class AtbashHermesGuard:
557
557
  self.key_path = os.path.expandvars(os.path.expanduser(os.getenv("ATBASH_KEY_PATH") or "")) or None
558
558
  self.privkey = os.getenv("ATBASH_AGENT_PRIVKEY")
559
559
  self.org_name = os.getenv("ATBASH_ORG_NAME")
560
- self.request_timeout = float(os.getenv("ATBASH_REQUEST_TIMEOUT") or 30.0)
560
+ self.request_timeout = float(os.getenv("ATBASH_REQUEST_TIMEOUT") or 60.0)
561
561
  self.provider = os.getenv("HERMES_PROVIDER")
562
562
  self.model = os.getenv("HERMES_MODEL")
563
563
  self.tool_map_path = Path(
@@ -600,7 +600,7 @@ class AtbashHermesGuard:
600
600
  from atbash import Atbash # type: ignore
601
601
  from atbash.types import ToolCallInput # type: ignore
602
602
  except Exception:
603
- raise RuntimeError("atbash-sdk is required. Install with: pip install atbash-sdk==0.4.3.dev0") from e
603
+ raise RuntimeError("atbash-sdk is required. Install with: pip install atbash-sdk==0.5.0") from e
604
604
 
605
605
  self.ToolCallInput = ToolCallInput
606
606
  judge_cfg = self._judge_config()
@@ -856,7 +856,7 @@ class AtbashHermesGuard:
856
856
  return None
857
857
 
858
858
  allow_flag = _extract_allow(verdict_raw)
859
- if verdict == "ALLOW" and allow_flag is not False:
859
+ if verdict == "ALLOW" and allow_flag is True:
860
860
  self._snapshots[path] = new_content
861
861
  self._hash_store.set(path, _sha256_hex(new_content))
862
862
  return None
@@ -1036,6 +1036,21 @@ class AtbashHermesGuard:
1036
1036
  }
1037
1037
  return None
1038
1038
 
1039
+ allow_flag = _extract_allow(verdict_raw)
1040
+ if verdict == "ALLOW" and allow_flag is True:
1041
+ return None
1042
+
1043
+ logger.warning(
1044
+ "Atbash unusable verdict tool=%s verdict=%s allow=%s",
1045
+ tool_name,
1046
+ verdict,
1047
+ allow_flag,
1048
+ )
1049
+ if self.fail_closed:
1050
+ return {
1051
+ "action": "block",
1052
+ "message": f"Blocked (unrecognized verdict {verdict!r}): {reason}",
1053
+ }
1039
1054
  return None
1040
1055
  except Exception as e:
1041
1056
  logger.warning("Atbash guard error tool=%s err=%s", tool_name, e)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: atbash-hermes-plugin
3
- Version: 0.4.6.dev1
3
+ Version: 0.4.8.dev0
4
4
  Summary: Atbash safety plugin for Hermes Agent
5
5
  Author: atbash
6
6
  License-Expression: LicenseRef-Atbash-Proprietary
@@ -10,7 +10,7 @@ Keywords: atbash,hermes,hermes-agent,agent-safety,ai-safety,tool-guard,judge,pol
10
10
  Requires-Python: <3.13,>=3.9
11
11
  Description-Content-Type: text/markdown
12
12
  License-File: LICENSE
13
- Requires-Dist: atbash-sdk==0.4.7.dev0
13
+ Requires-Dist: atbash-sdk==0.5.0
14
14
  Requires-Dist: httpx<1,>=0.27
15
15
  Requires-Dist: opentelemetry-exporter-otlp-proto-http<2,>=1.29
16
16
  Requires-Dist: opentelemetry-sdk<2,>=1.29
@@ -134,9 +134,9 @@ ATBASH_ORG_NAME=your-org-name
134
134
  # Override where learned Hermes tool classifications are saved.
135
135
  ATBASH_TOOL_MAP_PATH=~/.config/atbash/hermes-tool-map.json
136
136
 
137
- # HTTP request timeout in seconds for judge API calls. Default: 30.
137
+ # HTTP request timeout in seconds for judge API calls. Default: 60.
138
138
  # Raise this if you see "read operation timed out" errors on a slow endpoint.
139
- ATBASH_REQUEST_TIMEOUT=30
139
+ ATBASH_REQUEST_TIMEOUT=60
140
140
  ```
141
141
 
142
142
  ## Telemetry
@@ -1,4 +1,4 @@
1
- atbash-sdk==0.4.7.dev0
1
+ atbash-sdk==0.5.0
2
2
  httpx<1,>=0.27
3
3
  opentelemetry-exporter-otlp-proto-http<2,>=1.29
4
4
  opentelemetry-sdk<2,>=1.29
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "atbash-hermes-plugin"
7
- version = "0.4.6.dev1"
7
+ version = "0.4.8.dev0"
8
8
  description = "Atbash safety plugin for Hermes Agent"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.9,<3.13"
@@ -24,7 +24,7 @@ keywords = [
24
24
  "policy"
25
25
  ]
26
26
  dependencies = [
27
- "atbash-sdk==0.4.7.dev0",
27
+ "atbash-sdk==0.5.0",
28
28
  "httpx>=0.27,<1",
29
29
  "opentelemetry-exporter-otlp-proto-http>=1.29,<2",
30
30
  "opentelemetry-sdk>=1.29,<2",