You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit fe8eef2
Browse filesBrowse the repository at this point in the historyBrowse files
hsliu_ustc
committed
Bind held sends and their decisions to the owning human (#52)
A held send was decidable by anyone who could reach the decide endpoint:
the record carried no owner, no request binding, and no origin, so 'my
owner approved' in the message text was as good as an approval, and one
member could decide another's queued send on a multi-member host.
Holds now stamp server-derived provenance: the sender Bot's owner, a
sha256 over the request content, and the origin (via/hop/audience).
flybot/decide passes authz for any signed-in member, and hooks binds the
decision to the sender Bot's owner's session (bot/forbidden otherwise,
bot/unauthorized without a session; a body actorId grants nothing).
Releasing revalidates: a changed request, a deleted sender or target
Bot, a Bot that changed owners, or a demoted Chief marks the record
stale instead of dispatching; deleteBot and setMain invalidate affected
holds eagerly. Under enforcement the pending list shows a member only
their own holds, and the approval card shows who sent the request and
when it was relayed. Legacy records without the version stamp keep
working and only miss the tamper check.
Team mode stays disabled; this is the held-send half of approval
binding (docs/subsystems/team.md gate 3). social/decide-approval stays
a deployment-wide plugin write.
Fixes#52
Reviewed-queued: independent review pending on this tip.
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,6 +10,7 @@ All notable changes to FlyBot (earlier: DS Bot) are listed here. The format foll
10
10
11
11
### Added
12
12
13
+
-**Held sends are bound to their owner.** An approval card shows who sent the request (and when it was relayed between Bots); only the sender Bot's owner can approve, reject, or retry it, the list shows you only your own holds, and a decision is voided safely (`stale`, never sent) when the request changed after it was held or the Bot / Chief authority behind it is gone. ([#52](https://github.com/ThinkFlowLab/FlyBot/issues/52))
13
14
-**Remove a friend's Bot** from Friends' Bots hides it on this install, takes it out of rooms, and does not unfriend. It reappears only if it is granted again. Held Bot replies show in the chat as **Waiting for approval** (owner: Approve / Reject / Auto-send; others: waiting for the owner). ([#90](https://github.com/ThinkFlowLab/FlyBot/issues/90))
14
15
-**Face-to-face join registers a Bot for that room only** when it has no identity yet. `@flybot/social` calls the same `add_home_member` path used for invites, then joins. The identity is not polled, not listed for friends, and is revoked with `remove_home_member` when you leave the last face room or the room closes. A failed join that created one is revoked too so retry is clean. ([#83](https://github.com/ThinkFlowLab/FlyBot/issues/83), [#89](https://github.com/ThinkFlowLab/FlyBot/issues/89), [#90](https://github.com/ThinkFlowLab/FlyBot/issues/90))
15
16
-**Face-to-face group.** In Friends' Bots, **Join with a number** takes the same 6-digit number as the people next to you and which of your Bots to bring (default: first). Joining is direct — no preview. The room opens as a normal group with the full member list as `<Bot> · <owner>'s Bot` (owner badges from #82), one-click **Leave**, and **Start chat** (voids the number; a 10-minute countdown while it is still a candidate). Joins, leaves, start, and peer messages render as system / attributed lines; Bot replies go through Bot Social (`pending_approval` uses the existing Approve / Reject queue). **Auto-send my Bot's room messages** in the room header (and **Approve and always auto-send in this room** / **Turn on auto-send** on a waiting draft) is one click onto `auto_approve_face_rooms`; default off, easy to turn off again. Peer text is fenced. ([#83](https://github.com/ThinkFlowLab/FlyBot/issues/83))
// Held-send decisions are per-owner enforced in hooks.js — the approval belongs
207
+
// to the sender Bot's owner — so deciding does not follow the shared rule (#52).
208
+
if(ep==='flybot/decide')returnALLOW
206
209
if(!alone())returndeny('bot/blocked-shared','This plugin endpoint cannot be scoped per owner yet, so it is unavailable while the team has more than one member')
0 commit comments