Private sites, visitors, invite codes, teacher oversight (ADR 0007). Release 0.5.0. #8

Merged
oliver.maklott merged 1 commit from site-visitors into main 2026-11-24 23:27:08 +01:00

ADR 0007 P2/P3 (and the pack side of P5). Needs Limedoc 0.89.0 (plugin_principals shim), gate/deployer 0.2.1.

  • Targets: oidc.sameSubjects, visitors {max, invite}, guardians (always | site | off). Private sites, visitors and guardians are offered only with sameSubjects (the gate sees Limedoc's subs; Aivopod subject_from, L29). The example school target drops basic; the target list hints when a school target still allows it.
  • Audience private: owner, the space's teachers (<claim>:teacher), active visitors, guardians. Default of new school sites with sameSubjects; rank 0 (below course).
  • Visitors: picker limited to people sharing a course or workspace; invite codes (single use, 7 days, HMAC-stored, ≤ 10 open; school targets: same school only, pending without a shared space; wrong codes rate-limited to 10 per user and hour); leave; deprovisioning removes (merged: moves). Served at once.
  • Desired state: people {school, owner, visitors, guardians} as subject hashes (general targets: no school claims).
  • Oversight: approvers allow/decline pending visitors, see an access change feed (visitors, invites, passwords, access settings) and lock access settings; credentials respect the lock and enter the feed.
  • Dashboard: "Websites shared with me" with the invite form (#sites-invite=CODE).
  • Tests: tests/visitors.test.ts (6), rank test updated. Release 0.5.0, minAppVersion 0.89.0.

🤖 Generated with Claude Code

ADR 0007 P2/P3 (and the pack side of P5). Needs Limedoc 0.89.0 (plugin_principals shim), gate/deployer 0.2.1. - **Targets**: `oidc.sameSubjects`, `visitors {max, invite}`, `guardians` (`always` | `site` | `off`). Private sites, visitors and guardians are offered only with `sameSubjects` (the gate sees Limedoc's subs; Aivopod `subject_from`, L29). The example school target drops `basic`; the target list hints when a school target still allows it. - **Audience `private`**: owner, the space's teachers (`<claim>:teacher`), active visitors, guardians. Default of new school sites with `sameSubjects`; rank 0 (below `course`). - **Visitors**: picker limited to people sharing a course or workspace; invite codes (single use, 7 days, HMAC-stored, ≤ 10 open; school targets: same school only, pending without a shared space; wrong codes rate-limited to 10 per user and hour); leave; deprovisioning removes (merged: moves). Served at once. - **Desired state**: `people {school, owner, visitors, guardians}` as subject hashes (general targets: no school claims). - **Oversight**: approvers allow/decline pending visitors, see an access change feed (visitors, invites, passwords, access settings) and lock access settings; credentials respect the lock and enter the feed. - **Dashboard**: "Websites shared with me" with the invite form (`#sites-invite=CODE`). - Tests: `tests/visitors.test.ts` (6), rank test updated. Release 0.5.0, minAppVersion 0.89.0. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Private sites, visitor lists, invite codes and teacher oversight (ADR 0007 P2/P3). Release 0.5.0.
All checks were successful
Publish / dev-image (pull_request) Successful in 1s
Publish / test (pull_request) Successful in 1m37s
Publish / pack-and-publish (pull_request) Has been skipped
63835afff5
- Targets: `oidc.sameSubjects`, `visitors {max, invite}`, `guardians`
  (`always` | `site` | `off`); private sites, visitors and guardians only
  where the gate sees Limedoc's subjects. The example school target leaves
  `basic` out; the target list hints when a school target still has it.
- Audience `private` (default of new school sites with `sameSubjects`):
  owner, the space's teachers (`<claim>:teacher`), listed visitors and
  guardians. Rank 0, below `course`.
- Visitors: picker (people sharing a course or workspace, via the
  plugin_principals shim), single-use invite codes (Crockford Base32,
  7 days, HMAC-stored, at most 10 open; school targets: same school,
  pending without a shared space), leave, deprovisioning removes them
  (merged: moves). Changes are served at once.
- Desired state: `people {school, owner, visitors, guardians}` as subject
  hashes (no school claims in general targets; gate 0.2.1).
- Oversight: approvers allow/decline pending visitors, see an access
  change feed (visitors, invites, passwords, access settings) in the
  dashboard widget, and lock the access settings; credentials respect
  the lock and enter the feed.
- Dashboard widget "Websites shared with me" with the invite code form
  (`#sites-invite=CODE`).
- minAppVersion 0.89.0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign in to join this conversation.
No reviewers
No labels
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
limedoc-plugins/sites!8
No description provided.