Files
hermes-agent/scripts
Teknium 073eb00f1d fix: posix hand-off adopts only under a Desktop pid and parses markers like every reader
Contract amendments A1-A4, posix side:
- --desktop-pid runs only adopt that Desktop's live bridge claim; with no
  bridge (the Desktop gave up after its 20 s wait) or anyone else's marker
  the script exits 2 without claiming, running, or writing a result
- a refused hand-off (exit 2) never writes .hermes-update-result.json; the
  other update owns the outcome, and a stale "still on the previous
  version" dialog could otherwise follow a successful CLI update
- positional parse: BOM/CRLF accepted, non-integer line 2 = malformed
  (dead), bad ct line = v1, line 4 only as "delegate:<pid> ct:<ct>"
- a live pid whose creation time cannot be read is live only inside the
  20-minute ceiling (unknown never means forever)
- an empty marker younger than 5 s is a claim in flight
- macOS ps lstart is rendered and parsed with TZ=UTC0 (DST-safe)

(cherry picked from commit 9d8b58063f0c2d8de6bc37b615e6e49f1abb7549)
2026-10-06 05:44:21 -07:00
..