From 8c6874f8e4e960c70d85c47d7e33da849fda2690 Mon Sep 17 00:00:00 2001 From: twentyOne2x Date: Thu, 2 Jul 2026 23:28:45 +0200 Subject: [PATCH] Allow Telegram agents to write transcripts --- systemd/teleo-agent@.service | 3 +++ tests/test_teleo_agent_systemd.py | 7 +++++++ 2 files changed, 10 insertions(+) diff --git a/systemd/teleo-agent@.service b/systemd/teleo-agent@.service index c20cc91..f665e64 100644 --- a/systemd/teleo-agent@.service +++ b/systemd/teleo-agent@.service @@ -32,6 +32,9 @@ ReadWritePaths=/opt/teleo-eval/pipeline/pipeline.db-shm # Agent-specific learnings (all agents share the worktree write path) ReadWritePaths=/opt/teleo-eval/workspaces/main/agents +# Hourly chat transcript snapshots +ReadWritePaths=/opt/teleo-eval/transcripts + Environment=PYTHONUNBUFFERED=1 EnvironmentFile=-/opt/teleo-eval/secrets/teleo-agent-%i.env diff --git a/tests/test_teleo_agent_systemd.py b/tests/test_teleo_agent_systemd.py index fd20590..c7295bc 100644 --- a/tests/test_teleo_agent_systemd.py +++ b/tests/test_teleo_agent_systemd.py @@ -11,6 +11,13 @@ def test_teleo_agent_template_supports_optional_per_agent_env_file(): assert "EnvironmentFile=-/opt/teleo-eval/secrets/teleo-agent-%i.env" in unit +def test_teleo_agent_template_allows_transcript_dumps_under_strict_fs(): + unit = (REPO_ROOT / "systemd" / "teleo-agent@.service").read_text() + + assert "ProtectSystem=strict" in unit + assert "ReadWritePaths=/opt/teleo-eval/transcripts" in unit + + def test_deploy_scripts_restart_wallet_test_agent_when_present(): auto_deploy = (REPO_ROOT / "deploy" / "auto-deploy.sh").read_text() manual_deploy = (REPO_ROOT / "deploy" / "deploy.sh").read_text()