diff --git a/docs/matrix.md b/docs/matrix.md index de6b62df..e7b6ca73 100644 --- a/docs/matrix.md +++ b/docs/matrix.md @@ -101,6 +101,13 @@ see it. The agent only receives the resulting `access_token`. `access_token` to `/matrix-token`. The agent's matrix MCP client authenticates with that access_token and never touches the shared registration token. +6. **hive-c0re restarts `hive-matrix-daemon`** for the agent + immediately after writing the token so the daemon picks up the + new credential without waiting for a full container restart. If + the restart fails (e.g. daemon not yet running on first boot) the + error is logged as a warning and the `.path`-trigger sibling + (`hive-matrix-daemon.path` watching for `matrix-token` appearance) + brings the daemon up on the same boot cycle anyway. Initial rollout settings: diff --git a/docs/persistence.md b/docs/persistence.md index 9d850c24..19c5568d 100644 --- a/docs/persistence.md +++ b/docs/persistence.md @@ -188,8 +188,9 @@ Under `/var/lib/hyperhive/agents//`: - `bash-tasks/` — task JSON + stdout/stderr files for background `mcp__bash__run` jobs. JSON files are `.json` (status + tails), `.out` / `.err` - (full captured output). Task files persist until container - purge. + (full captured output). `hive-c0re::bash_tasks_vacuum` runs + hourly and deletes terminal task trios older than 48 hours; + non-terminal (still-running) tasks are never deleted by vacuum. - `mcp-loose-ends/` — JSON files published by external MCP daemons (e.g. `hive-bash-mcp`, `hive-matrix-mcp`) listing their active loose-end summary strings. Each file is `.json` containing