Title: Migrate existing on-disk profiles to CID v1 shape (#388 follow-up) · Issue #396 · JavaScriptSolidServer/JavaScriptSolidServer · GitHub
Open Graph Title: Migrate existing on-disk profiles to CID v1 shape (#388 follow-up) · Issue #396 · JavaScriptSolidServer/JavaScriptSolidServer
X Title: Migrate existing on-disk profiles to CID v1 shape (#388 follow-up) · Issue #396 · JavaScriptSolidServer/JavaScriptSolidServer
Description: After #388 the IDP emits CID-v1-shaped card.jsonld for newly created accounts, but existing pods still have their pre-#388 profile sitting on disk and never get rewritten. As a result, accounts created before the v0.0.169 rollout fail th...
Open Graph Description: After #388 the IDP emits CID-v1-shaped card.jsonld for newly created accounts, but existing pods still have their pre-#388 profile sitting on disk and never get rewritten. As a result, accounts cre...
X Description: After #388 the IDP emits CID-v1-shaped card.jsonld for newly created accounts, but existing pods still have their pre-#388 profile sitting on disk and never get rewritten. As a result, accounts cre...
Opengraph URL: https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/396
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Migrate existing on-disk profiles to CID v1 shape (#388 follow-up)","articleBody":"After #388 the IDP emits CID-v1-shaped `card.jsonld` for newly created accounts, but existing pods still have their pre-#388 profile sitting on disk and never get rewritten. As a result, accounts created before the v0.0.169 rollout fail the LWS-CID profile-shape check even though the running JSS is fully capable of producing the new shape.\n\nConfirmed live: https://melvin.solid.social/profile/card.jsonld is still the old foaf+solid-only document; https://test.solid.social/profile/card.jsonld (created post-rollout) is the new CID-v1-shaped one.\n\nSurfaced by [doctor](https://github.com/JavaScriptSolidServer/doctor): drop the WebID URL into https://jss.live/doctor/ and you get a red \\\"@context declares CID v1 vocabulary\\\" with \\\"No CID v1 terms found\\\" for any pre-rollout account.\n\n## Options\n\n1. **One-shot migration on next pod open / write** — when the IDP next touches a profile, re-render through the post-#388 generator and persist. Lazy, no downtime, but profiles never touched stay stale forever.\n2. **Boot-time backfill** — script that walks `DATA_ROOT/*/profile/card.jsonld` and rewrites any document that lacks the CID context. Run once during deploy. Keeps user-added triples (which we'd want to merge, not overwrite).\n3. **Dynamic generation on read** — never persist the profile to disk at all; always generate on each GET. Sidesteps the migration entirely but changes the storage contract and breaks anyone who has hand-edited the file.\n\nOption 2 (with merge of any user-added triples) seems most honest. Option 1 is fine as a fallback for anything 2 misses.\n\n## Acceptance\n\n- After running the migration, `https://melvin.solid.social/profile/card.jsonld` returns the CID-v1-shaped document.\n- Doctor's @context check goes from red to green for previously-stale pods.\n- User-added triples (foaf:knows, custom name fields, etc.) are preserved.\n\nRefs #386, #388.","author":{"url":"https://github.com/melvincarvalho","@type":"Person","name":"melvincarvalho"},"datePublished":"2026-05-09T07:05:16Z","url":"https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/396"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:355258cc-b1e5-9a11-9427-a45509a98e70 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B0F0:78AAB:106E0A6:14D4B0B:6B038809 |
| html-safe-nonce | 28f99629dcecd82d5302154b783ac6f45fa3411248835e146cf4e3b6ecb5e4c8 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMEYwOjc4QUFCOjEwNkUwQTY6MTRENEIwQjo2QjAzODgwOSIsInZpc2l0b3JfaWQiOiIxMDk2ODYwNjM0MDIyMzgxNTc3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 4dbccf3beda5bd17087a3d432e3906c96fab26a02d03d6b3c59eb1344ebbe57a |
| hovercard-subject-tag | issue:4411596361 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/JavaScriptSolidServer/JavaScriptSolidServer/396/issue_layout |
| twitter:image | https://opengraph.githubassets.com/67e7b85aaf62b61db0ec510aec2dc2bc050197b405084953d595359325dfae56/JavaScriptSolidServer/JavaScriptSolidServer/issues/396 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/67e7b85aaf62b61db0ec510aec2dc2bc050197b405084953d595359325dfae56/JavaScriptSolidServer/JavaScriptSolidServer/issues/396 |
| og:image:alt | After #388 the IDP emits CID-v1-shaped card.jsonld for newly created accounts, but existing pods still have their pre-#388 profile sitting on disk and never get rewritten. As a result, accounts cre... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | melvincarvalho |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-preview |
| go-import | github.com/JavaScriptSolidServer/JavaScriptSolidServer git https://github.com/JavaScriptSolidServer/JavaScriptSolidServer.git |
| octolytics-dimension-user_id | 205442424 |
| octolytics-dimension-user_login | JavaScriptSolidServer |
| octolytics-dimension-repository_id | 958025407 |
| octolytics-dimension-repository_nwo | JavaScriptSolidServer/JavaScriptSolidServer |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 958025407 |
| octolytics-dimension-repository_network_root_nwo | JavaScriptSolidServer/JavaScriptSolidServer |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width