You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit b92c694
Browse filesBrowse the repository at this point in the historyBrowse files
Follow the 19 October 2026 drafts: moving resources (§9.6), the LWS profile; Touchstone 210/221
Touchstone re-baselined on the 19 Oct core WD (221 tests) and failed two MUSTs here: a patch
of a linkset's up link was ignored with 204 where the draft now requires a refusal or a move.
- Moving resources: a changed up link moves a data resource or a container (with everything
in it) into an existing container of this storage, atomically (one rename; linkset sidecars
and type-index entries follow); refused with 409 when the destination is missing, not a
container, outside the storage, the resource itself or a descendant, or already holds the
name; refused when the patch removes the up link or leaves several. Authorization is delete
on the resource (the whole subtree for a container, judged before anything moves) plus
create in the destination. One Move activity (origin, target, object as it is after), heard
by subscriptions to the container left as well as the one joined. The storage description
advertises MoveResource { appliesTo: [DataResource, Container], preservesIdentifier: false }:
identifiers are paths here, so the response is 200 + the new linkset + Content-Location and
the old identifiers (resource and linkset) answer 301, following later moves too.
- The LWS profile: application/ld+json and text/turtle asked for with
profile="https://www.w3.org/ns/lws/v1" are served in that media type with the profile in the
Content-Type and the same RDF as application/lws+json; the Turtle is written from the
listing under the WG's lws/v1 context.
- Tests: test/move.js (15 checks) joins the suite (7 batteries, 145 checks); conformance.js
follows the new up-link and profile rules.
- Touchstone master cd01608, 21 Oct 2026: 210 passed, 0 failed, 11 inapplicable — conformant.
Report in reports/touchstone/2026-10-21-master-cd01608/. README and CONFORMANCE.md (C16:
a path-addressed storage cannot preserve identifiers) updated.
[Touchstone](https://github.com/ebremer/touchstone)`master` at `6a3206e` (205 tests), run by
public read off; alice the writer; page size 4), 14 Oct 2026:
15
-
16
-
**197 passed, 0 failed, 0 cantTell, 8 inapplicable — conformant.** The inapplicable eight: three
17
-
need `SamlTrust`, five are preconditions for optional behaviour (`Content-Location` on search
18
-
results, a paginated-but-single-page listing, a first-page link on a one-page search,
19
-
`Prefer: set-linkset` combined updates, container access that does not reach members). Erich Bremer's
20
-
independent run of the same commit gives the same numbers: <https://ebremer.com/lws/conformance>. As an open target (`scripts/touchstone.sh`): 64 passed, 0
21
-
failed, 139 inapplicable — conformant.
22
-
23
-
## Batteries — `npm test` runs all six (134 checks)
12
+
[Touchstone](https://github.com/ebremer/touchstone)`master` at `cd01608` (221 tests, re-baselined on
13
+
the 19 Oct 2026 core WD and the 15 Oct authn suites), run by `scripts/touchstone.sh --auth`
14
+
(Authentication, ReachableFixtures, HarnessIssuedTokens declared; public read off; alice the writer;
15
+
page size 4), 21 Oct 2026:
16
+
17
+
**210 passed, 0 failed, 0 cantTell, 11 inapplicable — conformant.** The inapplicable eleven: three
18
+
need `SamlTrust`; three test move choices this storage does not make (`move-keeps-identifier-content-and-links`
19
+
wants `preservesIdentifier: true`, `move-container-refused-without-container-support` a storage that
20
+
moves data resources only, `move-refused-without-capability` one with no capability); five are
21
+
preconditions for optional behaviour (`Content-Location` on search results, a paginated-but-single-page
22
+
listing, a first-page link on a one-page search, `Prefer: set-linkset` combined updates, container
23
+
access that does not reach members). Reports: `reports/touchstone/2026-10-21-master-cd01608/`.
24
+
25
+
History: 14 Oct 2026, `6a3206e` (205 tests, 5 Oct drafts): 197 passed, 0 failed, 8 inapplicable —
26
+
conformant, confirmed by Erich Bremer's independent run (<https://ebremer.com/lws/conformance>).
27
+
19 Oct, his run of the re-baselined harness against the then head: 197 passed, 2 failed
28
+
(`linkset-up-not-redirected`, `move-refused-without-capability` — a patch of the up link was ignored
29
+
with 204 where the new draft requires a refusal or a move), 22 inapplicable. Both fixed by implementing
30
+
§9.6 (below).
31
+
32
+
## Batteries — `npm test` runs all seven (145 checks)
|`conformance.js`| 78 |`LWS_ANON_WRITES=1 LWS_PAGE_SIZE=5`| core, pagination, content PATCH, type index/search (+ strict 400/415 errors), the LWS profile in JSON-LD and Turtle, up-link refusals, notifications with RFC 9421 signature *verification*|
37
+
|`move.js`| 15 |`LWS_ANON_WRITES=1`| §9.6 moving: capability, data-resource and container moves, 200 + Content-Location + 301 on the old identifiers, ETags of both containers, user links kept, refusals (missing / non-container / removed up, cycles, name collisions), one `Move` activity |
@@ -73,10 +83,10 @@ Not implemented: the **OpenID** and **SAML** authn suites, and the full OAuth **
73
83
authorization flow — all three require an external authorization server / identity provider,
74
84
outside a storage server's scope (C11/C12). lws10-vocab publishing (a doc-gen concern).
75
85
76
-
## Draft drift since July (`7832003` → 5 Oct 2026 WD and later)
86
+
## Draft drift since July (`7832003` → 19 Oct 2026 WD)
77
87
78
88
Tracked against [Touchstone](https://github.com/ebremer/touchstone), which baselines on the
79
-
5 Oct core WD. Absorbed items are ticked; the rest are the upgrade list
89
+
19 Oct core WD and the 15 Oct authn suites. Absorbed items are ticked; the rest are the upgrade list
@@ -129,6 +139,25 @@ Tracked against [Touchstone](https://github.com/ebremer/touchstone), which basel
129
139
-[x]**secp256k1 / ES256K did:keys** (RFC 8812): a Nostr or Bitcoin key is an LWS identity as-is —
130
140
`did:key` with the `0xe701` codec, credentials signed ECDSA on the same curve. `mint-token.js --nostr`
131
141
takes hex or nsec. The did:key of a BIP-340 x-only pubkey is deterministic (even y).
142
+
-[x]**Moving resources** (#237, 19 Oct; core §9.6): the up link in a linkset is patchable; a changed
143
+
target is a move — the destination must be an existing container of this storage, a container may
144
+
not go into itself or a descendant, the agent needs delete on the resource (the whole subtree for a
145
+
container, judged before anything moves) and create in the destination; a patch that removes the up
146
+
link or leaves several is refused (409). One `fs.rename` moves the subtree atomically; linkset
147
+
sidecars and type-index entries follow. The description advertises
One `Move` activity (`origin`, `target`, `object` as it is after the move), heard by subscriptions to
150
+
the container left as well as the one joined.
151
+
-[x]**Discovery via RFC 9728 only** (#256, 19 Oct): the 401 carries the `lws#storage` link and
152
+
`resource_metadata` (still with `as_uri` / `realm` for older clients); `aud` is checked to *include*
153
+
the storage. The harness's exactly-one-audience test is retired; the AS still issues one.
154
+
-[x]**Content negotiation narrowed; the LWS profile** (#253, 19 Oct): only `application/lws+json` is
155
+
owed; `application/ld+json` / `application/json` are still served as the same document; asked for
156
+
with `profile="https://www.w3.org/ns/lws/v1"`, `application/ld+json` and `text/turtle` are served
157
+
in that media type with the profile in the `Content-Type` and the same RDF (the Turtle is written
158
+
from the listing under the WG's `lws/v1` context: `lws:items`, `lws:totalItems`, members typed,
159
+
`dcterms:format`, `schema:size` as `xsd:long`, `dcterms:modified` as `xsd:dateTime`; a contained
160
+
container is only typed, as the context scopes the other three to data resources).
model folded into lws10-core (#185). (The harness accepts the AS2-shaped envelope today.)
134
163
-[ ] Slug dropped from spec text (#224) — keep accepting it, stop relying on it in tests.
@@ -186,6 +215,15 @@ Tracked against [Touchstone](https://github.com/ebremer/touchstone), which basel
186
215
handler reports the real method. Narrow and reversible, but it is the plugin reaching under the
187
216
host. Raised as jss #628 and closed WONTFIX — a host-level method registration is a can of
188
217
worms for one endpoint — so the shim is the permanent answer here.
218
+
-**C16 (S)** — **a path-addressed storage cannot preserve identifiers on a move.** jss, like every
219
+
file-system server, derives a resource's URI from its container path, so moving `/a/x.txt` into
220
+
`/b/` makes it `/b/x.txt`. §9.6 allows this (`preservesIdentifier: false`; `200` with the new
221
+
linkset and `Content-Location`; `301` from the old identifiers, which this plugin keeps in a small
222
+
moved-map that follows later moves of the resource or of a container above it), but it means the
223
+
draft's headline benefit — "every link pointing at that identifier" stays valid — needs an
224
+
opaque-identifier storage, which neither jss nor most of the servers on the tracker are. Touchstone
225
+
has no test for the non-preserving response shape yet (`move-new-identifier-response` is listed as
226
+
untested), so that half is covered by `test/move.js` only.
189
227
-**C14 (S)** — the CID authn suite requires the verifier to **dereference** the subject URI over
190
228
the network to fetch the controlled identifier document. That's a mandatory outbound fetch from
191
229
a *storage server* — an SSRF surface the spec doesn't discuss. This plugin guards it (http/https
Copy file name to clipboardExpand all lines: README.md
+42-27Lines changed: 42 additions & 27 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,8 +11,8 @@ by mounting an LWS protocol face — [`lws/plugin.js`](lws/plugin.js) — on
11
11
distribution in the same shape as [jspod](https://github.com/JavaScriptSolidServer/jspod):
12
12
JSS provides the host (HTTP, auth chain, WAC), the plugin provides lws10-core semantics.
13
13
14
-
**197 of 205[Touchstone](https://github.com/ebremer/touchstone) tests pass (0 failed; see [Touchstone](#touchstone)). Own suite: 134 checks across 6 batteries** (`npm test`) over the current editors' drafts —
15
-
core, searchindex, notifications, the ODRL access model, and the did:key + CID authn suites.
14
+
**210 of 221[Touchstone](https://github.com/ebremer/touchstone) tests pass (0 failed; see [Touchstone](#touchstone)). Own suite: 145 checks across 7 batteries** (`npm test`) over the 19 October 2026 drafts —
15
+
core (moving resources included), searchindex, notifications, the ODRL access model, and the did:key + CID authn suites.
16
16
See [CONFORMANCE.md](CONFORMANCE.md) for the full matrix and, more interestingly, the catalogue
17
17
of spec conflicts and host-API gaps the implementation surfaced (C1–C14).
18
18
@@ -59,6 +59,16 @@ current configuration limitations.
-**Moving resources** (core §9.6, 19 Oct 2026) — a JSON Patch on a linkset's `up` link moves a data
63
+
resource or a whole container between containers, atomically, with delete + create authorization,
64
+
cycle and bad-destination refusals (409), one `Move` activity, and a `MoveResource` capability in the
65
+
storage description. Identifiers here are paths, so a moved resource gets a new one
66
+
(`preservesIdentifier: false`): the response is `200` + the new linkset + `Content-Location`, and
67
+
the old identifiers answer `301`.
68
+
-**The LWS profile** — a container asked for as `application/ld+json` or `text/turtle` with
69
+
`profile="https://www.w3.org/ns/lws/v1"` is answered in that media type, profile named in the
70
+
`Content-Type`, RDF-isomorphic to `application/lws+json` (the Turtle is written from the listing
71
+
under the WG's lws/v1 context).
62
72
-**lws10-searchindex** — `TypeIndexService` + `TypeSearchService` with the full CNF filter
63
73
(GET + POST), types derived from `Link` headers at write time, strict 400/415 errors, and
64
74
authorization-filtered results.
@@ -106,16 +116,16 @@ browser asks once before a public page may reach `localhost`. Source: [`lws/todo
106
116
## Test suite
107
117
108
118
```bash
109
-
# all four batteries (72 checks) on scratch ports:
119
+
# all seven batteries (145 checks) on scratch ports:
110
120
JSS_BIN=$(command -v jss) npm test
111
121
```
112
122
113
123
Individual batteries and their server configs are documented in [CONFORMANCE.md](CONFORMANCE.md).
114
124
115
125
### Touchstone
116
126
117
-
[Touchstone](https://github.com/ebremer/touchstone) is the W3C LWS conformance harness (101
118
-
tests over the 5 Oct 2026 drafts). `scripts/touchstone.sh` starts lwsd as an open target and
127
+
[Touchstone](https://github.com/ebremer/touchstone) is the W3C LWS conformance harness (221
128
+
tests over the 19 Oct 2026 drafts). `scripts/touchstone.sh` starts lwsd as an open target and
119
129
runs it against `/lws/` on a free port, with Docker if present or a JDK 21+ build of
120
130
the CLI jar otherwise; reports land in `.touchstone/runs/`.
121
131
@@ -129,44 +139,49 @@ scripts/touchstone.sh --module core # or auth, core/containers, one test id
129
139
Exit 1 means a verdict was reached and it's non-conformant; exit 2 means the harness produced no
preconditions). Conformant.**[Touchstone](https://github.com/ebremer/touchstone)`master` (`6a3206e`) is
134
-
the W3C LWS conformance harness over the October 2026 drafts; 205 is its whole catalogue. 14 Oct 2026,
for the other legal choice). Conformant.**[Touchstone](https://github.com/ebremer/touchstone)`master`
144
+
(`cd01608`) is the W3C LWS conformance harness re-baselined on the 19 October 2026 drafts (core WD of
145
+
19 Oct, authn suites of 15 Oct); 221 is its whole catalogue. 21 Oct 2026, per specification module:
136
146
137
147
| Specification | Touchstone manifest | Passed | MUST | SHOULD | MAY |
(the 14 Oct runs on the 5 Oct drafts, 197/205 and 196/203, are beside it).
162
174
Run it yourself with `scripts/touchstone.sh --auth`; a fresh report lands in `.touchstone/runs/`.
163
175
164
176
**Independently verified.** Erich Bremer, Touchstone's author, re-runs the harness against this
165
177
repository's head on every harness update and publishes the results beside the other LWS servers:
166
-
**<https://ebremer.com/lws/conformance>** (first entry 14 Oct 2026: 197 of 205, 0 failed, conformant).
167
-
That page, not this README, is the current number.
178
+
**<https://ebremer.com/lws/conformance>** (14 Oct 2026: 197 of 205, conformant; 19 Oct, on the
179
+
re-baselined harness and before this repository followed the new drafts: 197 of 221 with two move
180
+
refusals failing — fixed here, pending his re-run). That page, not this README, is the current number.
168
181
169
-
Outside the harness's reach: notification envelopes still use the Activity Streams shape the
182
+
Outside the harness's reach: the `200` + `Content-Location` + `301` behaviour of a storage that does
183
+
not preserve identifiers on a move (the harness has no test for it yet; `test/move.js` covers it);
184
+
notification envelopes still use the Activity Streams shape the
170
185
harness accepts (the draft moved to dcterms, w3c/lws-protocol#219); `LWS_ACCEPT_CREDENTIALS`
171
186
defaults to on, so a did:key / CID credential presented directly as a Bearer token still works
172
187
(set it to `0` for token-exchange only); and the HTTP `QUERY` search reaches the plugin through a
0 commit comments