Train AL: roles, invite links with storage quota, and groups (server) #643

Closed
kayg wants to merge 0 commits from train/2026-10-20al into dev
Owner

Train AL ran the full suite: fmt, clippy, workspace tests, the build, svelte-check, and every Playwright project in parallel shards.

Failures, each checked (this train changes no web code: git diff origin/dev..HEAD -- apps packages is empty):

  • phone-edges:121 (chromium-390): the whole file, 432 of 432, alone.
  • contrast:152: Target crashed (browser crash under load); 3 of 3 alone.
  • pill-room:309 (webkit-1440): a 1 px glyph offset, 3 of 6 alone. It is pre-existing and environmental, since this train has no client changes; tracked separately.

Contents (server only):

  • #638 Roles as sets of capabilities (admin, member), extensible; the last admin can't be removed.
  • #639 Invite links: one use, 7-day default expiry, revocable, joins groups, carries a storage quota. Secrets are encrypted with a server key and looked up by keyed hash; every failure looks the same. Writing never stops at quota; only large uploads pause, and a duplicate upload costs nothing.
  • #640 Groups, with one who-can-see-whom rule used everywhere.
    Independent audit found 1 P1 and 3 P2; all fixed and re-audited (approve). 631 workspace tests.

🤖 Generated with Claude Code

https://claude.ai/code/session_01U5oTUycqAh7DT72mdSUztk

Train AL ran the full suite: fmt, clippy, workspace tests, the build, svelte-check, and every Playwright project in parallel shards. Failures, each checked (this train changes no web code: `git diff origin/dev..HEAD -- apps packages` is empty): - `phone-edges:121` (chromium-390): the whole file, 432 of 432, alone. - `contrast:152`: `Target crashed` (browser crash under load); 3 of 3 alone. - `pill-room:309` (webkit-1440): a 1 px glyph offset, 3 of 6 alone. It is pre-existing and environmental, since this train has no client changes; tracked separately. Contents (server only): - #638 Roles as sets of capabilities (admin, member), extensible; the last admin can't be removed. - #639 Invite links: one use, 7-day default expiry, revocable, joins groups, carries a storage quota. Secrets are encrypted with a server key and looked up by keyed hash; every failure looks the same. Writing never stops at quota; only large uploads pause, and a duplicate upload costs nothing. - #640 Groups, with one who-can-see-whom rule used everywhere. Independent audit found 1 P1 and 3 P2; all fixed and re-audited (approve). 631 workspace tests. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01U5oTUycqAh7DT72mdSUztk
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01U5oTUycqAh7DT72mdSUztk
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01U5oTUycqAh7DT72mdSUztk
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01U5oTUycqAh7DT72mdSUztk
Fix people visibility, invite validation and duplicate upload quota
Some checks failed
CI / web (pull_request) Failing after 11s
CI / server (pull_request) Successful in 31s
CI / rust (pull_request) Successful in 5m24s
e54af7a96e
Filter group members through the shared visibility rule. Derive keyed invite lookup hashes from the server key and upgrade old indexes atomically. Give failed token candidates one validation path and deduplicate attachments before quota admission. Preserve the audit probes as regression tests and sweep the shipping action registry for person visibility.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01U5oTUycqAh7DT72mdSUztk
Author
Owner

This PR's commits are on dev (landed). Forgejo kept it open and its merge endpoint answers 405, so it is closed by hand.

This PR's commits are on dev (landed). Forgejo kept it open and its merge endpoint answers 405, so it is closed by hand.
kayg closed this pull request 2026-10-21 11:32:32 +00:00
Some checks failed
CI / web (pull_request) Failing after 11s
CI / server (pull_request) Successful in 31s
CI / rust (pull_request) Successful in 5m24s

Pull request closed

Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
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
kayg/calternal!643
No description provided.