Merge pull request 'mesh-knowledge: run watch as the account the health tool reads as (hq issue 479)' (#209) from fix/479-the-watch-verdict-is-readable into main

This commit was merged in pull request #209.
This commit is contained in:
2026-10-11 09:55:36 +00:00
3 changed files with 9 additions and 1 deletions
+2 -1
View File
@@ -132,7 +132,8 @@ the consolidated schema for a fresh database is `schema.sql`. A test holds the t
refuses to serve while the schema is behind.
- **`prepare`** (run once): brings the schema to this version.
- **`keep`** (judged by its unit): judges the whole record set every five minutes and keeps the findings.
- **`watch`** (judged by `knowledge_health`): every minute, reads whether the database serves and what the
- **`watch`** (judged by `knowledge_health`, run as the machine's account, the one the runtime runs the bundle
as, so the tool can read what it writes): every minute, reads whether the database serves and what the
findings say, and leaves its verdict in `${dir:state}/health.json`. That is the file the health tool answers
from. A verdict older than three minutes is unhealthy.