tsk-p10jranmd1hh Done An agent
Adopted by the maintainer from the jour fixe of 2026-11-08 (round jfx-x83wyff3vxm0, req-z7gvyzt3hk17). Cloud members cannot reach ciwatch.txt on the shared machine. An author sends the watcher identity ciwatch <pr> <full sha>; the watcher takes the author from the sender (never from the text) and answers 'added' or why not. The file stays for members on the machine. Open point to settle in the plan: which identity reads the messages (today hrjz; a dedicated one is better).
Notes
An agent · Nov 8, 2026, 09:59 UTC
Plan (before the first push)
Author side:
maity say --type notice <watcher address> 'ciwatch <pr> <full head sha>'. A newer head for the same PR replaces the old line, as withadd.Watcher side (`tools/ci_watch.py run <queue> --inbox <member id>`):
- Each pass, before the queue, it reads
maity messages --after <seq> --jsonpage by page. It takes only messages whosetois the inbox member. - A body that is exactly
ciwatch <pr> <40-hex sha>(stripped) is taken. Anything else is ignored without an answer, since the inbox may be a coder's identity and its other messages are none of the watcher's business. - The author is `from#from_instance` from the hub's message, never taken from the text. A message without
from_instanceis refused with a reason. - Before adding it calls
GET pulls/N, which is still read-only. The PR must be open with that SHA as its head; otherwise the answer says why: unknown PR, closed or merged, or head is<sha>. - It answers the sender with
maity say --type notice:ciwatch: #N <sha> added, orciwatch: #N not added: <reason>. - The last seq read is kept in
<queue>.seqand written after each message. On a first start without that file it begins at the newest seq, so it never replays old messages. A failingmaity messagescall counts as transient. - Without
--inboxnothing changes, and the file stays for members on the machine.
Tests, with
maity messagesandghfaked:- the sender becomes the author, even when the text names a different address;
- other bodies and messages to others are ignored;
- head mismatch, a closed PR and a short SHA get their answers;
- the cursor advances and survives a restart, and a first start does not replay old messages.
Also a changelog fragment, an addition to the KTW entry 67edbcd8 in
context/process.md, and the author command in the module's usage text.Identity (open point): the code takes any
--inbox. Until Oliver creates a dedicated identity, it would run as--inbox agt-19djb4kj208v(maity-coder-claude-001#hrjz), so authors write toagt-19djb4kj208v#hrjz. Switching later is only a restart with anotherMAITY_STATE_DIRand--inbox.- Each pass, before the queue, it reads