The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix(gateway-windows): fail closed on a null or non-list pids attestation field
kshitijk4poor6a26556e1a4e
diff --git a/hermes_cli/gateway_windows.py b/hermes_cli/gateway_windows.pyindex 53cebed27c5..75171ea2c00 100644--- a/hermes_cli/gateway_windows.py+++ b/hermes_cli/gateway_windows.py@@ -901,7 +901,11 @@ def _attested_pids_from(data: object) -> list[int]:"""PID list from an attestation payload; empty for anything malformed."""if not isinstance(data, dict):return []- return [p for p in data.get("pids", []) if isinstance(p, int)]+ pids = data.get("pids")+ # Fail closed: a null/malformed marker must never authorize a cold start (or raise on iteration).+ if not isinstance(pids, list):+ return []+ return [p for p in pids if isinstance(p, int)]def _attested_pid_exited_cleanly(pid: int) -> bool: