Prove the operator's answers end to end before anybody uses them (hq ADR 0259) #74

Merged
mesh-admin merged 9 commits from proofs/asks-answered-on-the-phone into main 2026-10-10 12:15:06 +00:00
Showing only changes of commit 70bc7ad3db - Show all commits
+4 -4
View File
@@ -16,15 +16,15 @@ set -eu
mc=${MESH_CONTROLLER:-mesh-controller}
stop() { echo "NOT ACCEPTED: $*"; exit 1; }
echo "1. Nothing open says an agent can become root where the router or Telegram runs (agent-root)."
if $mc conditions | grep -q 'agent-root'; then
$mc conditions | grep 'agent-root'
echo "1. Nothing open says the router's or Telegram's machine is not root-free (root-not-free, agent-root)."
if $mc conditions | grep -q 'root-not-free\|agent-root'; then
$mc conditions | grep 'root-not-free\|agent-root'
stop "while an agent can become root there, Telegram only acknowledges; close it first (ADR 0266, ADR 0268)"
fi
echo "2. The Telegram channel holds a working bot token and its updates arrive."
tg=$($mc ask telegram telegram_status) || stop "the telegram module does not answer"
echo "$tg" | grep -q '"can_send": *true' || { echo "$tg"; stop "Telegram cannot send now (why_not above): give the bot token again with give"; }
echo "$tg" | grep -q '"can_send": *true' || { echo "$tg"; stop "Telegram cannot send now (why_not above): give the bot token again, at this terminal: $mc secret accept <node> telegram telegram-token, then push <node>"; }
echo "3. One Telegram account is linked as the operator, and its hour has passed."
ids=$($mc ask messenger messenger_identities) || stop "the router does not answer"