Encontré más basura vieja. Importante:

Hallazgos:
- ya arreglado:
  - `~/.config/systemd/user/agents-database-http.service` -> bien, usa `/mnt/rpi/agents-database`
- todavía roto o viejo:
  - `~/.config/systemd/user/personal-agent.service`
    - `Environment=PERSONAL_AGENT_SHARED_MEMORY_ROOT=/home/sebas/agents-database`
  - repo templates viejos:
    - `/mnt/rpi/agents-database/systemd/user/agents-database-http.service`
    - `/mnt/rpi/agents-database/systemd/user/agents-database-maintenance.service`
  - doc vieja:
    - `/mnt/rpi/agents-database/docs/memory-consolidation-rfc.md`

Qué significa:
- riesgo real: `personal-agent` todavía apunta a ruta vieja para shared memory root
- riesgo futuro: si reinstalas/relinkeas units desde repo template, rompes otra vez
- maintenance service template también quedó viejo, aunque ahora no hay timer activo

Recomiendo arreglar ahora:
1. actualizar `personal-agent.service` a `/mnt/rpi/agents-database`
2. actualizar templates en repo `agents-database/systemd/user/*`
3. opcional: corregir doc para no reintroducir bug

Di “hazlo” y lo hago.


hazlo


Successfully replaced 1 block(s) in /home/sebas/.config/systemd/user/personal-agent.service.

    ...
  7 Type=simple
  8 WorkingDirectory=/home/sebas/personal-agent
  9 Environment=HOST=0.0.0.0
 10 Environment=PORT=8082
-11 Environment=PERSONAL_AGENT_SHARED_MEMORY_ROOT=/home/sebas/agents-database
+11 Environment=PERSONAL_AGENT_SHARED_MEMORY_ROOT=/mnt/rpi/agents-database
 12 ExecStart=/home/sebas/personal-agent/scripts/run-server-daemon.sh
 13 Restart=always
 14 RestartSec=10
 15
    ...


edit

[Service]
Type=simple
WorkingDirectory=/home/sebas/agents-database
Environment=DB_PATH=/home/sebas/agents-database/data/shared-agent-memory.sqlite3
Environment=HOST=0.0.0.0
Environment=PORT=8091
ExecStart=/home/sebas/agents-database/scripts/run-http-api.sh
Restart=always
RestartSec=10

[Service]
Type=simple
WorkingDirectory=/mnt/rpi/agents-database
Environment=DB_PATH=/mnt/rpi/agents-database/data/shared-agent-memory.sqlite3
Environment=HOST=0.0.0.0
Environment=PORT=8091
ExecStart=/mnt/rpi/agents-database/scripts/run-http-api.sh
Restart=always
RestartSec=10


Successfully replaced 1 block(s) in /mnt/rpi/agents-database/systemd/user/agents-database-http.service.

    ...
  4 Wants=network-online.target
  5
  6 [Service]
  7 Type=simple
- 8 WorkingDirectory=/home/sebas/agents-database
- 9 Environment=DB_PATH=/home/sebas/agents-database/data/shared-agent-memory.sqlite3
+ 8 WorkingDirectory=/mnt/rpi/agents-database
+ 9 Environment=DB_PATH=/mnt/rpi/agents-database/data/shared-agent-memory.sqlite3
 10 Environment=HOST=0.0.0.0
 11 Environment=PORT=8091
-12 ExecStart=/home/sebas/agents-database/scripts/run-http-api.sh
+12 ExecStart=/mnt/rpi/agents-database/scripts/run-http-api.sh
 13 Restart=always
 14 RestartSec=10
 15
 16 [Install]
    ...


[Service]
Type=simple
WorkingDirectory=/home/sebas/agents-database
Environment=DB_PATH=/home/sebas/agents-database/data/shared-agent-memory.sqlite3
Environment=INTERVAL_SECONDS=900
Environment=LLM_COMMAND=minimax-text
ExecStart=/home/sebas/agents-database/scripts/run-maintenance-daemon.sh
Restart=always
RestartSec=10

[Service]
Type=simple
WorkingDirectory=/mnt/rpi/agents-database
Environment=DB_PATH=/mnt/rpi/agents-database/data/shared-agent-memory.sqlite3
Environment=INTERVAL_SECONDS=900
Environment=LLM_COMMAND=minimax-text
ExecStart=/mnt/rpi/agents-database/scripts/run-maintenance-daemon.sh
Restart=always
RestartSec=10


Could not find the exact text in /mnt/rpi/agents-database/systemd/user/agents-database-maintenance.service. The old text must match exactly including all whitespace and newlines.


[Unit]
Description=Agents Database maintenance daemon
After=default.target

[Service]
Type=simple
WorkingDirectory=/home/sebas/agents-database
Environment=DB_PATH=/home/sebas/agents-database/data/shared-agent-memory.sqlite3
Environment=INTERVAL_SECONDS=900
Environment=JITTER_SECONDS=60
ExecStart=/home/sebas/agents-database/scripts/run-maintenance-daemon.sh
Restart=always
RestartSec=10

[Install]
WantedBy=default.target


[Service]
Type=simple
WorkingDirectory=/home/sebas/agents-database
Environment=DB_PATH=/home/sebas/agents-database/data/shared-agent-memory.sqlite3
Environment=INTERVAL_SECONDS=900
Environment=JITTER_SECONDS=60
ExecStart=/home/sebas/agents-database/scripts/run-maintenance-daemon.sh
Restart=always
RestartSec=10

[Service]
Type=simple
WorkingDirectory=/mnt/rpi/agents-database
Environment=DB_PATH=/mnt/rpi/agents-database/data/shared-agent-memory.sqlite3
Environment=INTERVAL_SECONDS=900
Environment=JITTER_SECONDS=60
ExecStart=/mnt/rpi/agents-database/scripts/run-maintenance-daemon.sh
Restart=always
RestartSec=10


Successfully replaced 1 block(s) in /mnt/rpi/agents-database/systemd/user/agents-database-maintenance.service.

    ...
  3 After=default.target
  4
  5 [Service]
  6 Type=simple
- 7 WorkingDirectory=/home/sebas/agents-database
- 8 Environment=DB_PATH=/home/sebas/agents-database/data/shared-agent-memory.sqlite3
+ 7 WorkingDirectory=/mnt/rpi/agents-database
+ 8 Environment=DB_PATH=/mnt/rpi/agents-database/data/shared-agent-memory.sqlite3
  9 Environment=INTERVAL_SECONDS=900
 10 Environment=JITTER_SECONDS=60
-11 ExecStart=/home/sebas/agents-database/scripts/run-maintenance-daemon.sh
+11 ExecStart=/mnt/rpi/agents-database/scripts/run-maintenance-daemon.sh
 12 Restart=always
 13 RestartSec=10
 14
 15 [Install]
    ...


- install with `ln -sf /home/sebas/agents-database/systemd/user/agents-database-maintenance.service /home/sebas/.config/systemd/user/agents-database-maintenance.service`

- install with `ln -sf /mnt/rpi/agents-database/systemd/user/agents-database-maintenance.service /home/sebas/.config/systemd/user/agents-database-maintenance.service`


Successfully replaced 1 block(s) in /mnt/rpi/agents-database/docs/memory-consolidation-rfc.md.

     ...
 209
 210 Linux systemd user service:
 211
 212 - `systemd/user/agents-database-maintenance.service`
-213 - install with `ln -sf /home/sebas/agents-database/systemd/user/agents-database-maintenance.service /home/sebas/.config/systemd/user/agents-database-maintenance.service`
+213 - install with `ln -sf /mnt/rpi/agents-database/systemd/user/agents-database-maintenance.service /home/sebas/.config/systemd/user/agents-database-maintenance.service`
 214 - enable with `systemctl --user daemon-reload && systemctl --user enable --now agents-database-maintenance.service`
 215 - requires `loginctl enable-linger sebas` if the machine should restart the user service after reboot without waiting for login
 216
 217 ## Progress Log (living)
     ...


bash

systemctl --user daemon-reload && systemctl --user restart personal-agent.service && sleep 2
printf '%s\n' '--- PERSONAL AGENT STATUS ---'
systemctl --user --no-pager --full status personal-agent.service 2>&1 | sed -n '1,120p'
printf '%s\n' '--- VERIFY REFERENCES ---'
rg -n '/home/sebas/agents-database|/mnt/rpi/agents-database' /home/sebas/.config/systemd/user /mnt/rpi/agents-database 2>/dev/null | sed -n '1,220p'


--- PERSONAL AGENT STATUS ---
● personal-agent.service - Personal Agent daemon
     Loaded: loaded (/home/sebas/.config/systemd/user/personal-agent.service; enabled; preset: enabled)
     Active: active (running) since Thu 2026-04-16 22:44:04 -03; 2s ago
 Invocation: 19b199d97b8b4a84bbec69c3aef99773
   Main PID: 161137 (python3)
      Tasks: 1 (limit: 9571)
        CPU: 139ms
     CGroup: /user.slice/user-1000.slice/user@1000.service/app.slice/personal-agent.service
             └─161137 python3 /home/sebas/personal-agent/scripts/personal.py daemon --host 0.0.0.0 --port 8082

Apr 16 22:44:04 ballbox-first systemd[1273]: Started personal-agent.service - Personal Agent daemon.
--- VERIFY REFERENCES ---
/home/sebas/.config/systemd/user/agents-database-http.service:8:WorkingDirectory=/mnt/rpi/agents-database
/home/sebas/.config/systemd/user/agents-database-http.service:9:Environment=DB_PATH=/mnt/rpi/agents-database/data/shared-agent-memory.sqlite3
/home/sebas/.config/systemd/user/agents-database-http.service:12:ExecStart=/mnt/rpi/agents-database/scripts/run-http-api.sh
/home/sebas/.config/systemd/user/personal-agent.service:11:Environment=PERSONAL_AGENT_SHARED_MEMORY_ROOT=/mnt/rpi/agents-database
/mnt/rpi/agents-database/systemd/user/agents-database-maintenance.service:7:WorkingDirectory=/mnt/rpi/agents-database
/mnt/rpi/agents-database/systemd/user/agents-database-maintenance.service:8:Environment=DB_PATH=/mnt/rpi/agents-database/data/shared-agent-memory.sqlite3
/mnt/rpi/agents-database/systemd/user/agents-database-maintenance.service:11:ExecStart=/mnt/rpi/agents-database/scripts/run-maintenance-daemon.sh
/mnt/rpi/agents-database/systemd/user/agents-database-http.service:8:WorkingDirectory=/mnt/rpi/agents-database
/mnt/rpi/agents-database/systemd/user/agents-database-http.service:9:Environment=DB_PATH=/mnt/rpi/agents-database/data/shared-agent-memory.sqlite3
/mnt/rpi/agents-database/systemd/user/agents-database-http.service:12:ExecStart=/mnt/rpi/agents-database/scripts/run-http-api.sh
/mnt/rpi/agents-database/docs/memory-consolidation-rfc.md:213:- install with `ln -sf /mnt/rpi/agents-database/systemd/user/agents-database-maintenance.service /home/sebas/.config/systemd/user/agents-database-maintenance.service`


Hecho.

Arreglé:
- `~/.config/systemd/user/personal-agent.service`
- `/mnt/rpi/agents-database/systemd/user/agents-database-http.service`
- `/mnt/rpi/agents-database/systemd/user/agents-database-maintenance.service`
- `/mnt/rpi/agents-database/docs/memory-consolidation-rfc.md`

También:
- `systemctl --user daemon-reload`
- reinicié `personal-agent.service`

Estado ahora:
- `personal-agent.service` corriendo bien
- referencias activas ya apuntan a `/mnt/rpi/agents-database`
- no veo referencias vivas restantes a `/home/sebas/agents-database` en units/templates revisados

Resultado negocio:
- menos riesgo de caída futura por path viejo
- si reinstalas units desde repo, ya no se re-rompe por este motivo

Si quieres, siguiente paso útil:
1. habilito también el maintenance service correctamente
2. verifico si hay symlink/unit faltante para maintenance
3. confirmo ahora si la memoria “nueva recientemente” sí quedó guardada