Workspace blocks: owner and editors may approve chant gates, as themselves #75
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
From S21 (#70); part of M34. Decided 2026-10-02: the owner and editors may approve a chant gate from a workspace block; view-only guests may not.
approve {member, op, gate}runschant approve <op> <gate>on the block's host, with no check on the caller. chant recordsresolvedByas the host's OS user (jake),kind: human,origin: cli. chant's trust is local (gate-ledger.ts): anyone who can runchant approvethere can write a resolution.approve; view-only guests get the method refused, and the button hidden.--approver <their name>(M29'scall_by), so the ledger says who. The owner's passes the owner's name, not the OS user.Added from S22: the same rule for hud. When the studio app block (#85, M35) answers a hud question or approves a gate in a box, it should name the same person
--approvernames here.S22 found that hud records whichever hud player the follower's cookie belongs to (the owner) as
answeredBy, whoever clicked in illogical. hud's own gate approvals pass--actor <player>from its roster. So when an editor approves in illogical, two systems record an answerer, and they should agree: the editor, by name, in chant's ledger (via hud) and in hud's chat. View-only guests are refused here and there alike.Which way it goes (each person gets their own hud player link, or hud accepts "answered in illogical by X" from a follower it trusts) is decided in M35. This issue's decision (owner and editors, each as themselves) is the rule both follow.
Merged into local main (
c88c1e7, M34 branch m34-workspace8bb696c; CI green on linux 799 and macos 798). Not pushed. On geek: chant's 25 members in 1.6 s through #74's cached environment; a gated op reached the phone sheet in 0.8–1.8 s (5.3 s once); Approve on the phone cleared it in the daemon in 2.6–2.8 s; the nextchant runwalked through; chant's ledger names the approver (jhgaylor@gmail.com, not the OS user). Guests are refused (tests in crates/daemon/tests/workspace.rs and web/e2e/workspace.spec.ts). Numbers and what wasn't covered are in PLAN.md's "#74 and M34: as built". Tracker: #86.The hud half is done in M35 (merged into local main,
edddc1a). With a follower link kept for an app (hud#736'shud share --role follower), an answer or approval from illogical carriesonBehalfOf: {name, via: "illogical"}. hud then names that person ("jhgaylor answered through illogical"), and chant's ledger in the box getsresolvedBywith the same name. View-only guests are refused in illogical before anything reaches hud. Tracker: #86.Shipped in v0.7.0 (tag on
84b5e9b; geek, jake-mini and jake-air upgraded). Tracker: #86.