storage: a WebDAV driver as a package of its own #67
Labels
No labels
loop
queue/failed
queue/queued
ready
status/parked
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
torbscript/language#67
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context
The second remote driver of
std/storage:webdav://andwebdavs://references. It is a package of its own, in its own repositorytorb/webdav, not a directory of this repository (FIRST-PARTY.md sections 2 to 5, decided fortorb/s3in #20).Source
Requirements
torb/webdavshall provideWebDavStorage, ashared typewithStoragewhoseschemes()answerswebdav(http) andwebdavs(https).readis called, the driver shall sendGETand answer the body asBytes; a 404 shall answerStorageFailure.NotFound.existsis called, the driver shall sendHEAD; a 404 shall answerfalse, not a failure.listis called, the driver shall sendPROPFINDwithDepth: 1, read the207 Multi-Statusreply withXml().decode, and answer the sortedUris of the entries directly below the collection, the collection itself left out.writeis called, the driver shall sendPUTof the wholeBytes; where a parent collection is missing (409) it shall create the collections withMKCOLand retry once.deleteis called, the driver shall sendDELETE, which removes a collection with everything below it; a 404 shall answerStorageFailure.NotFound.StorageFailure.Refusedwith status and reason; no failure text and noShowoutput shall contain credentials (HTTP Basic user and password live in the settings, never in the URI).Done when
torb/webdavhas a test file that starts a local WebDAV server inside the test (astd/httpServeron port 0 over an in-memory tree, answering GET, HEAD, PUT, MKCOL, DELETE and PROPFIND with a 207 body) and covers every member: read, missing read, exists true and false, list of a collection with a file and a sub-collection, write incl. MKCOL of missing parents, delete, a refused status, and a failure text without the password.torb/webdavPR is green;torb format --checkis clean on the touched files.Design point and seed impact
std/httpandstd/xml.torb/webdavas one or two Conventional Commits (about 300 lines of source plus the test server).Dependencies
Xml().decodeandparse(merged) read the PROPFIND reply, and the request body is a fixed string. Neither step 3c (#805) nor step 4 (mapping DSL) is needed.torb/webdav(owner: repository creation and trusted publishing are outside the loop's contract).Moved from the planning lists of the docs; the design record stays the specification.
[loop:torbscript] intake: in scope (author orion, label loop), sources ROADMAP.md milestone 10 and URI.md slice 12, not a duplicate, no collision with a design record. A package in TorbScript over
std/httpandstd/xml, no seed impact expected; depends on #78. next: waiting (dependency #78) until 2026-10-10T04:00:00Zstd/xml#78std/xmltree, reader and writer (step 1 of #78) #429std/xml#78std/xml#78std/xmlreads the internal subset: entities, default attributes and an expansion limit (step 2 of #78) #552Xml.decodereads a document into a typed value (step 3a of #78) #570std/xml#78Xml.encodewrites a typed value as an XML document (step 3b of #78) #605[loop:torbscript] wait until 2026-11-06T04:00Z: dependency #78 (std/xml) is still open and nothing in this package can be built before it lands.
next: waiting (dependency #78)
Xmlis aFormat<XmlError>, with a failing twin forencodeAllandencoded(step 3c of #78) #805[loop:torbscript] claim refine by session:loop-torbscript-20261115 until 2026-11-15T02:40:00Z
[loop:torbscript] refine: body rewritten to the writing standard and the dependency on #78 dropped, but not ready, next: waiting (owner decision: repository torb/webdav) until 2026-11-22T08:00:00Z
decided by the loop:
std/xmlis enough as merged. The PROPFIND reply is read withXml().decode/parse(steps 3a, 3b, 3b-fix are onmain) and the request body is a fixed string. Step 3c (#805,XmlasFormat<XmlError>, streaming entry points) and step 4 (mapping DSL) are not needed, so nodepends_on #805. The "Depends on #78" line is gone.std/httpServeron port 0, which exists), one or two Conventional Commits. No slicing. Seed impact: no.webdav/webdavs,Depth: 1PROPFIND forlist, MKCOL of missing parents on write, HTTP Basic held in settings, never in the URI.Why still not
ready: URI.md section 11 and FIRST-PARTY.md sections 2 to 5 put the driver in its own repositorytorb/webdav(the same rule that puttorb/s3in #20).GET /repos/torb/webdavanswers 404; the orgtorbhas onlyapp-template,package-template,postgres,redis,sql. Creating the repo and its trusted publishing are outside this loop's contract, andtorbscript/languagePRs cannot carry the package.owner decision: create
torb/webdav(andtorb/s3for #20) fromtorb/package-templateand giveorionwrite access? Plain words: the two drivers each need their own home on the code server before anyone can write them. Options: (a) create both repos, recommended, it is howtorb/sql,torb/postgresandtorb/rediswere done; (b) build them as folders in the language repo, which breaks the rule in FIRST-PARTY.md; (c) later. No blocking question block could be filed from this session (the tasks tool only reads this forge), so this comment is the record; the owner ping goes through the TorbScript group.Worker usage: about 40k tokens (sonnet).
[loop:torbscript] owner decision: the packages
torb/webdav(this issue) andtorb/s3(#20) each need a repository of their own in the organisationtorb(made fromtorb/package-template, write access for orion), as FIRST-PARTY.md sections 2 to 5 decide. Creating repositories in the org is reserved for the owner by the loop contract. Recommendation: yes, create both.[owner-answer] q=q1 option=yes „Ja, beide Repos anlegen und orion Schreibzugriff geben“ 2026-11-15T11:11:49Z
[loop:torbscript] refine: owner decision recorded (q1: create both repos, write access for orion).
torb/webdavandtorb/s3now exist, made fromtorb/package-template, with write access for orion and argus. Blocker gone; the body already meets the writing standard, so this issue is ready. The work lands as PRs intorb/webdav. next: implement (worker).s3:driver as a package of its own #20[loop:torbscript] claim implement by session:loop-torbscript-67-impl until 2026-11-15T19:29Z
[loop:torbscript] release implement by session:loop-torbscript-67-impl: PR torb/webdav#1 open, head 56675f62de5a236daad480261eddbfa6efe081e0, CI pending (ci and pdisc queued, not finished after ~5 min). next: review (merge gate)