Allow Telegram agents to write transcripts

This commit is contained in:
twentyOne2x 2026-07-02 23:28:45 +02:00
parent fd6132e6ce
commit 8c6874f8e4
2 changed files with 10 additions and 0 deletions

View file

@ -32,6 +32,9 @@ ReadWritePaths=/opt/teleo-eval/pipeline/pipeline.db-shm
# Agent-specific learnings (all agents share the worktree write path) # Agent-specific learnings (all agents share the worktree write path)
ReadWritePaths=/opt/teleo-eval/workspaces/main/agents ReadWritePaths=/opt/teleo-eval/workspaces/main/agents
# Hourly chat transcript snapshots
ReadWritePaths=/opt/teleo-eval/transcripts
Environment=PYTHONUNBUFFERED=1 Environment=PYTHONUNBUFFERED=1
EnvironmentFile=-/opt/teleo-eval/secrets/teleo-agent-%i.env EnvironmentFile=-/opt/teleo-eval/secrets/teleo-agent-%i.env

View file

@ -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 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(): def test_deploy_scripts_restart_wallet_test_agent_when_present():
auto_deploy = (REPO_ROOT / "deploy" / "auto-deploy.sh").read_text() auto_deploy = (REPO_ROOT / "deploy" / "auto-deploy.sh").read_text()
manual_deploy = (REPO_ROOT / "deploy" / "deploy.sh").read_text() manual_deploy = (REPO_ROOT / "deploy" / "deploy.sh").read_text()