Draft: HOLD Files desk cut 1 (host contract): superseded if Matrix-only (A) is chosen on #142 #143

Closed
void wants to merge 1 commit from void/files-desk-contract into dev

2026-11-13

Void
Files desk cut 1: contract types, host client with Matrix OpenID, and a fake host for the preview
All checks were successful
Build pull request / Build pull request (pull_request) Successful in 3m15s
features/files/filesHost.ts: the index and file response types, parseIndex (refuses a malformed index and any
entry name that is a path), joinPath, an OpenID token source, and createFilesHost (bearer token, one retry on
401, Range, host error codes passed through uninterpreted). preview-demo/filesHost.ts: sample zones answered
in-page under /_files, with the rules the real host must keep (bearer, ranges, no dotfiles, handoff-private never
served), and the pretend homeserver's openid/request_token. No UI; config key filesDesk is declared, nothing reads it.
Roots, ticket auth and error codes stay placeholders until Eureka answers Q-E1..7 on PR #142.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-13 14:36:12 +00:00