v0.6.382: one serving decision for /shared (#1059) #1065

Merged
Cordy merged 7 commits from fg1059 into main 2026-11-01 10:13:55 +00:00
Owner

Closes #1059. Merge after #1064 (contains v0.6.381).

  • One function (scope.servedOf) decides which grant serves /shared/<owner>/<name>; resolve, the owner listing, the change feed, device binding and Shared with me all use it.
  • A path serves if any id-carrying grant passes the item guard or no grant carries an id; when every id-carrying grant is refused, legacy grants on that path don't serve either (fail closed).
  • The change feed no longer names refused paths or leaks names from a replaced folder; a same-named sibling now opens everywhere; HolderWrites checks the resolved path; NFC/NFD names list once.
  • Adversarial probes (siblings with mixed roles, legacy beside refused, device bindings, flipping verdicts, folding stores, NFD) on posix and s3 in the final review.
  • Docs: CHANGELOG v0.6.382, chart, sharing.md, change-feed.md, ARCHITECTURE.md.
Closes #1059. Merge after #1064 (contains v0.6.381). - One function (`scope.servedOf`) decides which grant serves `/shared/<owner>/<name>`; resolve, the owner listing, the change feed, device binding and Shared with me all use it. - A path serves if any id-carrying grant passes the item guard or no grant carries an id; when every id-carrying grant is refused, legacy grants on that path don't serve either (fail closed). - The change feed no longer names refused paths or leaks names from a replaced folder; a same-named sibling now opens everywhere; HolderWrites checks the resolved path; NFC/NFD names list once. - Adversarial probes (siblings with mixed roles, legacy beside refused, device bindings, flipping verdicts, folding stores, NFD) on posix and s3 in the final review. - Docs: CHANGELOG v0.6.382, chart, sharing.md, change-feed.md, ARCHITECTURE.md.
stampItemIDs ensures a Personal record's id with stampCtx (the home owner
as the person, actor system, encrypt.WithNoProvision); ErrNoUserKey and
ErrNoUser count as deferred (done, deferred=<n>, one INFO naming the first),
every other error fails (no done, WARN at most hourly per state path); a
run whose ctx ends logs nothing. main.go keeps the first attempt before
serving and re-runs it every 15 minutes from a ticker loop bound to the
shutdown signal until the state says done. homeOwner answers "" for a
path outside every home (it answered "/" with per-user homes off).

Existing tests changed, with reasons:
- TestStampItemIDsCustody835 flipped: #1058 lifts the documented
  per-user custody limit; the pre-release item now gets its id.
- TestStampItemIDs835: the audit note always carries deferred (spec 4.3,
  decision C).
- TestPersonalShareHooksWired835: the stamp is called through restamp
  (first attempt plus the retry loop); the wiring strings follow.
- custody835 fixture: honours the no-first-key mark, answers
  encrypt.ErrNoUser, records the usernames asked.
Merge st1058 (v0.6.381) into fg1059 (v0.6.382)
All checks were successful
ci / test-and-build (pull_request) Successful in 43m42s
ec6f8ad8f6
Cordy merged commit 40c69d4c0d into main 2026-11-01 10:13:55 +00:00
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: Cordy/Cairn#1065
No description provided.