Download a range of a file's content block by block: block URLs come from the revision's paged block list (20 per page), blocks are fetched through the storage pacer holding a download token without the session's credentials, checked against their SHA-256 before decrypting and decrypted into pool buffers. A full read checks the manifest signature, by the content author's address or the node key for an anonymous upload, and the content key packet signature is checked on open with the SDK's fallback to every address key for files created before 2023. The retry and capped Retry-After logic of apiCall is shared with block downloads through the new pacedCall. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
3.2 KiB
TODO
Fork-only durable backlog for things noticed and deliberately not fixed.
Small, specific, independently actionable. Remove only when actually done.
(In Go source, upstream's FIXME/TODO comment convention still applies.)
Now
Next
-
lib/pacer:
TokenDispenser.Gettakes no context, so a cancelled protondrive block download still waits for a download token (held by other in-flight blocks, which finish or fail soon) before it notices. Consider a context-awareGet. -
protondrive: confirm on a real account that the official web, desktop and mobile clients read a file written by Task 5's
crypto.go(v4 node key advertising SEIPDv2, v6 PKESK content key, SEIPDv2 GCM blocks, block signatures encrypted with the content session key). This is what the SDK (js/v0.23.0) writes, but go-proton-api v1.0.4link_file_types.go(SetContentKeyPacketAndSignature) and Proton-API-Bridge v1.0.5crypto.go(generateLockedKey) say the official clients do not reliably read crypto-refresh files and that the server rejects a v6 content key packet for a v4 node key; the bridge never sent one with a key advertising SEIPDv2, so its claim may not apply. Released rclone itself is not the problem: Task 6'sTestNewWriterOldReadershows go-proton-api v1.0.4 and the bridge's block reader read this format (v6 PKESK, SEIPDv2 blocks and block signatures) and the newtoISOStringmodification time. -
protondrive: when go-proton-api and Proton-API-Bridge leave
go.mod(Task 14), delete the old-library parts ofbackend/protondrive/crypto_diff_internal_test.goand the-updatebranch ofTestFrozenFixtures, keeping the fixtures and their check;github.com/relvacode/iso8601, made a direct requirement for that test, goes back to indirect or away. -
protondrive:
client.apiCallretries POST and PUT mutations (create folder, move, rename, copy) after 5xx and network errors, as the SDK does. If a lost response hid a success, the retry fails witherrExists(2500) or a staleOriginalHash(2000) although the change was made. Consider re-reading the node after such a retry failure. -
Propose a CI check for this fork:
AGENTS.md,CLAUDE.md,GEMINI.mdand thedocs/agent files exist, andAGENTS.mdis at most 150 lines. -
Upstream CI (
.github/workflows/build.yml) is gated ongithub.repository == 'rclone/rclone'and the remote is Gitea, so this fork has no CI at all. Decide whether to add a Gitea Actions workflow.
Someday
Recurring
- Maintain
AGENTS.md:- Add a rule only in response to a real failure. Do not pre-empt hypothetical mistakes.
- Update in the same commit as the convention change.
- Prune quarterly, and re-check the Fork Workflow section against
upstream's
AGENTS.mdafter each upstream merge.
Known issues
RCLONE_CONFIG=/notfound go test ./...in the baregolang:1.26container fails 7 packages (list indocs/PERMISSIONS.md).fs/loggerneedsrsync; the mount, serve and smb failures are undiagnosed and are probably missing container tooling (FUSE, git-annex), not code. Confirm on a host with Go installed before treating a full-suite failure as a regression.