Repository navigation
Extended profile: a WebID on your own domain works with every profile step (#26) - #29
Merged
Merged
Conversation
A tier-1 WebID is a static file no app can write (solid-kit ADR 002, amendment of 2026-11-26). Profile reads now merge the documents the profile links with rdfs:seeAlso / foaf:isPrimaryTopicOf inside its own pim:storage; writes go to the profile only when its GET answers as writable, else to the linked extended document, else to a new profile/about.ttl with its own .acl, and the two lines to add are shown. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Membership explanation, manual test section, CHANGELOG, CLAUDE.md architecture lines; a You test for the two lines to add. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…26) A static card keeps the name it was written with, so the extended profile's name wins in the merged read. Removing a delegate or a membership the static card itself holds used to PATCH about.ttl with nothing to remove and report success; it is now refused, naming where to remove it. Docs: set-up how-to, slices, manual test. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This was referenced Nov 27, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #26 (writers and readers of solid-kit ADR 002's amendment of 2026-11-26). The two "Bring your domain" paths (#27, #28) are not in this PR.
Why
A tier-1 WebID (
https://id.openfab.be/profile/card#me) is a static file that no app can write. Because of that, every profile step ("Use this inbox", the name, "May act for you", joining a collective) failed with a NetworkError.Readers (
src/lib/collective.ts)readProfileDocuments/readProfilereturn the profile plus the documents it links withrdfs:seeAlsoorfoaf:isPrimaryTopicOf.pim:storagethe profile itself declares (prefix match).read.ts(ADR 007). A profile with no links still costs one request.declaresMembershipanddeclaredDelegates.admin.tsuses them inrequestFlags,memberStateandreadersOf, andreadPersonreads through the merged profile.readNamealso uses the merged read.readOwnProfilecovers one more case: the profile can't be written and links nothing, butprofile/about.ttlexists in your storage. It then also counts that file for you, and flags it asunlinked. This way a step you just saved doesn't look undone. Others never read it until it is linked.Writers (
updateOwnProfile, same signature, now returns{ document, linkToAdd })WAC-Allow'suserdecides when it is there: it must hold write or append. CSS lists PATCH inAllowwhatever you may do.WAC-Allow, anAllowthat lists PATCH or PUT counts as writable.profile/about.ttlwithIf-None-Match: *, then its.aclthroughacl.ts(setPublicAccess: public Read, owner Read/Write/Control), then writes there. You then shows "Link your extended profile" with the two lines and a copy button.Network failures become a sentence that names the document, never "Failed to fetch". A static profile with no
pim:storageis refused, and the message names the missing line. The write itself is still solid-client's triple-diff PATCH, the same mechanism the profile already used; no If-Match PUT was added.Two cases are handled for a static card that already holds lines of its own, as OpenFab's does:
You (
src/you.ts)The source panel says when the profile can't be written by apps. Each extended profile is shown below the profile with its address, "Open in Pods" and marked lines. Links outside your storage are listed as not read.
Tests
src/lib/profile.test.ts(fake server at./auth) covers:readPerson,requestFlags,memberState);src/onboarding.test.tsadds a You test for the two lines to add. The existing order tests are untouched.Docs
docs/explanation/membership.md(new section "A profile no app can write"),docs/manual-tests.md(new section "Extended profile · a WebID on your own domain", not yet run),docs/how-to/set-up-a-collective.md(steps 2 and 7),docs/slices.md(Where we are),CHANGELOG.md(Unreleased),CLAUDE.mdarchitecture lines.Left open
ldp:inboxlands in about.ttl. On a static profile, the inbox step writesldp:inboxto about.ttl, as this task asked. The amendment's example keepsldp:inboxin the WebID document, and senders outside our apps only look there. Should the inbox step also give anldp:inboxline to add by hand? That is a follow-up to decide.org:memberOf. The join message says so.🤖 Generated with Claude Code