teknium1
4e9d886d9d
fix(approval): pair terminal-side gate for ~/.hermes/config.yaml writes
...
Subway2023's #14639 blocks write_file/patch to ~/.hermes/config.yaml, but
the terminal side was only partially paired: echo>/tee/cp/mv to config.yaml
already tripped the project-config pattern, while `sed -i` and direct edits
slipped through with auto-approve. An unpaired write_file deny is theater per
SECURITY.md — the agent could flip approvals.mode=off via `sed -i` and the
mtime-keyed config cache reloads it mid-session.
config.yaml IS the security policy (approvals.mode/yolo/permanent allowlist
live there), so it warrants real pairing, not a half-door. Add a
_HERMES_CONFIG_PATH fragment mirroring _HERMES_ENV_PATH, fold it into
_SENSITIVE_WRITE_TARGET (covers tee/>/>>/cp/mv), and add sed -i coverage for
both config.yaml and .env. Pins 9 regression tests including no-regression
guards (reads pass, /tmp writes pass).
Co-authored-by: sbw2025 <subw3@mail2.sysu.edu.cn >
2026-06-01 03:29:48 -07:00
..
2026-05-28 22:26:25 -07:00
2026-05-18 10:14:38 -07:00
2026-06-01 02:07:32 -07:00
2026-06-01 06:32:48 +05:30
2026-05-28 22:26:25 -07:00
2026-05-29 12:17:12 +10:00
2026-05-28 22:26:25 -07:00
2026-03-14 14:27:20 +03:00
2026-06-01 02:04:14 -07:00
2026-06-01 02:58:02 -07:00
2026-05-17 23:28:45 -07:00
2026-05-29 22:29:48 -07:00
2026-05-28 22:26:25 -07:00
2026-04-30 02:35:29 -07:00
2026-05-30 07:41:04 -07:00
2026-05-28 22:26:25 -07:00
2026-06-01 03:01:20 -07:00
2026-05-14 22:27:09 -07:00
2026-05-30 02:38:18 -07:00
2026-05-28 22:26:25 -07:00
2026-06-01 03:29:48 -07:00
2026-06-01 01:22:38 -07:00
2026-05-05 13:46:20 -07:00
2025-10-01 23:29:25 +00:00
2026-05-30 23:05:56 -07:00
2026-03-17 02:53:33 -07:00
2026-04-21 01:56:35 -07:00
2026-04-28 04:58:22 -07:00
2026-04-21 06:06:16 -07:00
2026-05-28 22:26:25 -07:00
2026-05-28 22:26:25 -07:00
2026-05-28 22:26:25 -07:00
2026-05-18 21:43:59 -07:00
2026-04-29 23:18:55 -07:00
2026-05-28 22:26:25 -07:00
2026-05-29 09:56:40 +10:00
2026-06-01 16:06:44 +10:00
2026-06-01 13:32:55 +10:00
2026-05-28 22:26:25 -07:00
2026-05-25 15:18:55 -07:00
2026-05-28 22:26:25 -07:00
2026-05-28 22:26:25 -07:00
2026-04-30 04:32:06 -07:00
2026-05-28 22:26:25 -07:00
2026-05-28 22:26:25 -07:00
2026-05-02 01:49:55 -07:00
2026-05-31 17:46:56 -05:00
2026-05-28 21:40:39 -07:00
2026-05-27 14:31:55 -07:00
2026-05-31 17:46:56 -05:00
2026-05-29 22:29:48 -07:00
2026-05-27 10:49:33 -07:00
2026-05-14 09:05:31 -07:00
2026-05-06 04:02:02 -07:00
2026-05-27 13:55:51 -07:00
2026-04-28 06:45:55 -07:00
2026-05-28 22:26:25 -07:00
2026-05-07 13:04:08 -07:00
2026-05-28 22:26:25 -07:00
2026-05-28 22:26:25 -07:00
2026-05-28 22:26:25 -07:00
2026-05-17 02:29:41 -07:00
2026-05-28 22:26:25 -07:00
2026-04-20 12:23:05 -07:00
2026-04-19 22:44:47 -07:00
2026-05-28 22:26:25 -07:00
2026-03-24 08:19:23 -07:00
2026-05-28 22:26:25 -07:00
2026-05-28 22:26:25 -07:00
2026-05-28 22:26:25 -07:00
2026-05-28 22:26:25 -07:00
2026-05-16 12:15:45 -07:00
2026-05-29 23:23:54 -07:00
2026-05-28 22:26:25 -07:00
2026-05-28 22:26:25 -07:00
2026-05-29 13:24:12 -07:00
2026-04-08 00:41:36 -07:00
2026-05-21 16:40:04 +05:30
2026-05-16 00:57:39 -07:00
2026-03-19 15:16:35 +01:00
2026-05-28 22:26:25 -07:00
2026-05-07 13:04:08 -07:00
2026-05-28 22:26:25 -07:00
2026-05-28 22:26:25 -07:00
2026-05-28 22:26:25 -07:00
2026-05-28 22:26:25 -07:00
2026-05-28 22:26:25 -07:00
2026-05-07 05:46:05 -07:00
2026-05-28 22:26:25 -07:00
2026-05-31 18:23:10 -05:00
2026-03-30 13:28:10 +09:00
2026-05-28 22:26:25 -07:00
2026-04-26 18:50:49 -07:00
2026-05-28 22:26:25 -07:00
2026-05-28 22:26:25 -07:00