Workspace blocks: owner and editors may approve chant gates, as themselves #75

Closed
opened 2026-10-02 21:15:44 +00:00 by jhgaylor · 4 comments
Owner

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.


  • Today (S21's block): approve {member, op, gate} runs chant approve <op> <gate> on the block's host, with no check on the caller. chant records resolvedBy as the host's OS user (jake), kind: human, origin: cli. chant's trust is local (gate-ledger.ts): anyone who can run chant approve there can write a resolution.
  • To do:
    • Only the owner and editors (people the session lets act) may call approve; view-only guests get the method refused, and the button hidden.
    • An editor's approval passes --approver <their name> (M29's call_by), so the ledger says who. The owner's passes the owner's name, not the OS user.
    • Log it in the block's log (already done) and the session's history, with who.
    • Tests: owner approves; an editor approves and the ledger names them; a guest is refused.
*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.* -------- - **Today (S21's block):** `approve {member, op, gate}` runs `chant approve <op> <gate>` on the block's host, with no check on the caller. chant records `resolvedBy` as the host's OS user (`jake`), `kind: human`, `origin: cli`. chant's trust is local (`gate-ledger.ts`): anyone who can run `chant approve` there can write a resolution. - **To do:** - Only the owner and editors (people the session lets act) may call `approve`; view-only guests get the method refused, and the button hidden. - An editor's approval passes `--approver <their name>` (M29's `call_by`), so the ledger says who. The owner's passes the owner's name, not the OS user. - Log it in the block's log (already done) and the session's history, with who. - Tests: owner approves; an editor approves and the ledger names them; a guest is refused.
Author
Owner

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 --approver names 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.

**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 `--approver` names 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.
Author
Owner

Merged into local main (c88c1e7, M34 branch m34-workspace 8bb696c; 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 next chant run walked 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.

Merged into local main (c88c1e7, M34 branch m34-workspace 8bb696c; 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 next `chant run` walked 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.
Author
Owner

The hud half is done in M35 (merged into local main, edddc1a). With a follower link kept for an app (hud#736's hud share --role follower), an answer or approval from illogical carries onBehalfOf: {name, via: "illogical"}. hud then names that person ("jhgaylor answered through illogical"), and chant's ledger in the box gets resolvedBy with the same name. View-only guests are refused in illogical before anything reaches hud. Tracker: #86.

The hud half is done in M35 (merged into local main, edddc1a). With a follower link kept for an app (hud#736's `hud share --role follower`), an answer or approval from illogical carries `onBehalfOf: {name, via: "illogical"}`. hud then names that person ("jhgaylor answered through illogical"), and chant's ledger in the box gets `resolvedBy` with the same name. View-only guests are refused in illogical before anything reaches hud. Tracker: #86.
jhgaylor referenced this issue from a commit 2026-10-03 03:20:22 +00:00
Author
Owner

Shipped in v0.7.0 (tag on 84b5e9b; geek, jake-mini and jake-air upgraded). Tracker: #86.

Shipped in v0.7.0 (tag on 84b5e9b; geek, jake-mini and jake-air upgraded). Tracker: #86.
Commenting is not possible because the repository is archived.
No milestone
No project
No assignees
1 participant
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
jhgaylor/illogical#75
No description provided.