Imports 67 files from VPS (/opt/teleo-eval/) into repo as the single source of truth. Previously only 8 of 67 files existed in repo — the rest were deployed directly to VPS via SCP, causing massive drift. Includes: - pipeline/lib/: 33 Python modules (daemon core, extraction, evaluation, merge, cascade, cross-domain, costs, attribution, etc.) - pipeline/: main daemon (teleo-pipeline.py), reweave.py, batch-extract-50.sh - diagnostics/: 19 files (4-page dashboard, alerting, daily digest, review queue, tier1 metrics) - agent-state/: bootstrap, lib-state, cascade inbox processor, schema - systemd/: service unit files for reference - deploy.sh: rsync-based deploy with --dry-run, syntax checks, dirty-tree gate - research-session.sh: updated with Step 8.5 digest + cascade inbox processing No new code written — all files are exact copies from VPS as of 2026-04-06. From this point forward: edit in repo, commit, then deploy.sh. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
38 lines
1.2 KiB
Desktop File
38 lines
1.2 KiB
Desktop File
[Unit]
|
|
Description=Teleo Agent %i
|
|
After=network.target
|
|
Wants=network.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
User=teleo
|
|
Group=teleo
|
|
WorkingDirectory=/opt/teleo-eval/telegram
|
|
|
|
# Touch required paths before startup (prevents namespace crash on missing files)
|
|
ExecStartPre=/bin/bash -c 'touch /opt/teleo-eval/workspaces/.main-worktree.lock'
|
|
# Validate config before starting (fail fast on bad config)
|
|
ExecStartPre=/opt/teleo-eval/pipeline/.venv/bin/python3 /opt/teleo-eval/telegram/agent_runner.py --agent %i --validate
|
|
|
|
ExecStart=/opt/teleo-eval/pipeline/.venv/bin/python3 /opt/teleo-eval/telegram/agent_runner.py --agent %i
|
|
|
|
Restart=on-failure
|
|
RestartSec=10
|
|
|
|
# Filesystem protection (Rhea-approved)
|
|
ProtectSystem=strict
|
|
ReadWritePaths=/opt/teleo-eval/logs
|
|
ReadWritePaths=/opt/teleo-eval/telegram-archives
|
|
ReadWritePaths=/opt/teleo-eval/workspaces/main/inbox
|
|
ReadWritePaths=/opt/teleo-eval/workspaces/.main-worktree.lock
|
|
ReadWritePaths=/opt/teleo-eval/pipeline/pipeline.db
|
|
ReadWritePaths=/opt/teleo-eval/pipeline/pipeline.db-wal
|
|
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
|
|
|
|
Environment=PYTHONUNBUFFERED=1
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|