Notify link=: review fixes

- ntfy uses the link only beside a web run view; otherwise it keeps the
  run click and the receipt says why (app click stays the link).
- The outbox retry of a hook's failed publication re-resolves the stage's
  link=, so the ntfy and app tap targets keep it.
- A valid link file is never the attached artifact.
- Notification artifacts are read through os.OpenRoot with O_NOFOLLOW.
- The link note is recorded once, on the first receipt, and never becomes
  the run-level failure reason.
- Android: a recents relaunch does not reopen the link, and a run thread of
  several entries opens the run rather than the latest external page.
- Docs and the protocol comment say "first non-empty line".
This commit is contained in:
2026-12-02 12:29:46 +00:00
parent f5f31b7bcd
commit 0c75ff1b0d
10 changed files with 401 additions and 109 deletions
@@ -71,8 +71,10 @@ produce no attached artifact. This is separate from ntfy's `artifacts=` keys.
URL the stage produced, such as a published doc. The pattern follows the `open=`
rules; the matched file's first non-empty line must be an absolute http(s) URL
without credentials or fragment. The run stays reachable from the notification's
run action, and `open=` still attaches its artifact. A missing file or invalid
URL keeps the usual tap target and is noted on the notification receipt:
run action (ntfy uses the link only when `PIPELINES_WEB_PUBLIC_URL` gives it a
browser run view), and `open=` still attaches its artifact; the link file itself
is never attached. A missing file or invalid URL keeps the usual tap target and
is noted on the notification receipt:
```notify
on=success