Sites 0.5.1: review fixes for private sites, visitors and oversight (ADR 0007) #10

Merged
oliver.maklott merged 3 commits from review-fixes into main 2026-11-25 09:52:31 +01:00

Fixes every finding of the Sites pack quality review (ADR 0007). Release 0.5.1. Includes the README changes of #9, which this supersedes.

Medium

  • Lock vs open codes: redeeming refuses while access is locked (invite-locked, 423). Teachers can still withdraw codes then.
  • "Who can see it": describes the published access. When the draft differs, the panel adds "After publishing: …". The visitor list shows while the live or the draft access uses sign-in.
  • Owner merge: the merged owner's live sites are served again at once.

Low

  • Issuer rule (ADR 0007 D1): people rules apply only when the gate's issuer is Limedoc's. The admin target list warns otherwise.
  • private never widens: without people rules it admits the teachers alone (it used to become course / every account).
  • Teacher claims: come from the claim-space templates.
  • Picker: refuses people of another school.
  • Invites switched off: open codes stop working too.
  • Change feed: separate pools for events about people (100) and others (50).
  • Deprovisioning: scrubs events, addedBy, invite authors and the lock author. It drops the person's codes and the codes of sites they own.
  • "Shared with me": no address for pending entries.
  • Rate limit: wrong-code counting runs under a per-user lock.

Core: the template and issuer lookups use new SDK shims from limedoc/limedoc#44 (teacherClaimsOf, schoolOfClaim, appOidcIssuer). They are used when present; on Limedoc 0.89 the pack keeps the old behaviour for those three points. minAppVersion stays 0.89.0.

Tests: 8 new cases plus additions to existing ones. visitors.test.ts has 14 tests, the whole pack 77, all passing locally. The fixed subject-hash vector DkX23ee1PoFSU-2ULsQCoq was checked against the gate's subjectHash.

🤖 Generated with Claude Code

Fixes every finding of the Sites pack quality review (ADR 0007). Release 0.5.1. Includes the README changes of #9, which this supersedes. **Medium** - **Lock vs open codes:** redeeming refuses while access is locked (`invite-locked`, 423). Teachers can still withdraw codes then. - **"Who can see it":** describes the published access. When the draft differs, the panel adds "After publishing: …". The visitor list shows while the live or the draft access uses sign-in. - **Owner merge:** the merged owner's live sites are served again at once. **Low** - **Issuer rule (ADR 0007 D1):** people rules apply only when the gate's issuer is Limedoc's. The admin target list warns otherwise. - **`private` never widens:** without people rules it admits the teachers alone (it used to become `course` / every account). - **Teacher claims:** come from the claim-space templates. - **Picker:** refuses people of another school. - **Invites switched off:** open codes stop working too. - **Change feed:** separate pools for events about people (100) and others (50). - **Deprovisioning:** scrubs events, `addedBy`, invite authors and the lock author. It drops the person's codes and the codes of sites they own. - **"Shared with me":** no address for pending entries. - **Rate limit:** wrong-code counting runs under a per-user lock. **Core:** the template and issuer lookups use new SDK shims from limedoc/limedoc#44 (`teacherClaimsOf`, `schoolOfClaim`, `appOidcIssuer`). They are used when present; on Limedoc 0.89 the pack keeps the old behaviour for those three points. `minAppVersion` stays 0.89.0. **Tests:** 8 new cases plus additions to existing ones. `visitors.test.ts` has 14 tests, the whole pack 77, all passing locally. The fixed subject-hash vector `DkX23ee1PoFSU-2ULsQCoq` was checked against the gate's `subjectHash`. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
README: the real apcmd form for subject_from (Aivopod 0.86.0)
All checks were successful
Publish / dev-image (pull_request) Successful in 0s
Publish / test (pull_request) Successful in 1m34s
Publish / pack-and-publish (pull_request) Has been skipped
7c0e4b37ee
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
README: guardians at the gate need Aivopod 0.88.0 and apcmd idp client guardians
All checks were successful
Publish / dev-image (pull_request) Successful in 1s
Publish / test (pull_request) Successful in 1m56s
Publish / pack-and-publish (pull_request) Has been skipped
f1e98d8203
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Review fixes for private sites, visitors and oversight (ADR 0007). Release 0.5.1.
All checks were successful
Publish / dev-image (pull_request) Successful in 1s
Publish / test (pull_request) Successful in 1m30s
Publish / pack-and-publish (pull_request) Has been skipped
719ff758a6
- The access lock stops invite codes handed out before it (423
  invite-locked); teachers can still withdraw them. Codes also stop when
  the operator turns invites off.
- "Who can see it" describes the published access; when the draft
  differs, the panel says who will after the next publish. The visitor
  list shows while the live or the draft access uses sign-in.
- A merged owner's live sites are served again at once (the gate knew the
  old subject until an unrelated rebuild).
- ADR 0007 D1: people rules only when the target's gate signs in at
  Limedoc's own issuer; the target list warns when `sameSubjects` is set
  with another issuer (Limedoc 0.90 shim; skipped on older cores).
- `private` never widens: a target that loses its people rules serves
  its private sites to the teachers alone (was: course or every account).
- Teacher claims of private sites come from the claim-space templates
  (`teacherClaimsOf`, Limedoc 0.90; older cores: `<claim>:teacher`).
- The picker refuses people of another school, also through a course the
  owner shares with them (`schoolOfClaim`, Limedoc 0.90).
- The change feed keeps up to 100 events about people and 50 others, so
  codes made and withdrawn never push an added visitor out.
- Deprovisioning scrubs the person from every access record (events about
  them go; actor, addedBy, invite author and lock author are replaced);
  their codes and all codes of sites they own stop working. Merged:
  everything moves to the surviving subject.
- "Shared with me" gives no address for pending entries.
- Wrong-code counting runs under a per-user lock.
- handleConfig's lock check goes through the same access roles as the
  visitor routes.
- Tests: lock and invites-off vs open codes, concurrent redemption,
  feed flood, deprovision scrub, owner merge served, private without
  people, teacher claims, the lock over the guardians choice, a fixed
  subject-hash vector shared with the gate.
- README: the rules above; the guardians setup at the gate (PR #9).

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!10
No description provided.