Files
rclone/docs/TODO.md
T
Lucas WintherandClaude Opus 5.5 e76b6783b2 protondrive: add whole-file differential tests
Files uploaded by the new client are read whole by the old library's
readers, and files written by the old library (go-proton-api v1.0.4,
Proton-API-Bridge v1.0.5), in the legacy and the v6 format, are
downloaded by the new client through the fake server. Frozen fixtures
of both formats keep the second direction tested once the old library
is gone.

protontest gains read-only access to a file as stored, seeding of a
stored file, and users built from fixed address and root keys. It now
signs no earlier than the signing key's creation time, which a key
supplied by a test may be.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 14:52:55 +01:00

4.5 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.Get takes 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-aware Get.

  • 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.4 link_file_types.go (SetContentKeyPacketAndSignature) and Proton-API-Bridge v1.0.5 crypto.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's TestNewWriterOldReader shows go-proton-api v1.0.4 and the bridge's block reader read this format (v6 PKESK, SEIPDv2 blocks and block signatures) and the new toISOString modification time.

  • protondrive: when go-proton-api and Proton-API-Bridge leave go.mod (Task 14), delete the old-library parts of backend/protondrive/crypto_diff_internal_test.go and the -update branch of TestFrozenFixtures, keeping the fixtures and their check; github.com/relvacode/iso8601, made a direct requirement for that test, goes back to indirect or away. TestFrozenFileFixture (download_internal_test.go, fixtures in testdata/oldlib/file/) stays as it is; its regeneration lives in TestOldLibraryFileReadable, which goes with the differential file. Only the frozen file fixtures are a single block: multi-block files from the old library are covered by TestOldLibraryFileReadable alone, so they lose coverage then.

  • protondrive: client.apiCall retries 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 with errExists (2500) or a stale OriginalHash (2000) although the change was made. Consider re-reading the node after such a retry failure.

  • protondrive: createRevision (POST .../files/{id}/revisions) is retried by apiCall after a lost response like any POST; a retry that succeeds leaves the first draft revision orphaned on the server (the fake allows several draft revisions). Find out whether Proton refuses a second draft revision, and delete or reuse our own if so.

  • protondrive: confirm on a real account what delete_multiple does to an active (non-draft) link. The upload cleanup only sends it for drafts, and the fake refuses non-drafts, but the SDK's conflict handler sends it for any ConflictDraftRevisionID, which an active file with a draft revision also reports; Task 11 uploads a new revision in that case instead.

  • protondrive: confirm the HTTP status and code Proton returns for a bad verifier token, a missing block and a stale CurrentRevisionID (the fake uses 422 / 2000, which the spec maps to "upgrade rclone").

  • Propose a CI check for this fork: AGENTS.md, CLAUDE.md, GEMINI.md and the docs/ agent files exist, and AGENTS.md is at most 150 lines.

  • Upstream CI (.github/workflows/build.yml) is gated on github.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.md after each upstream merge.

Known issues

  • RCLONE_CONFIG=/notfound go test ./... in the bare golang:1.26 container fails 7 packages (list in docs/PERMISSIONS.md). fs/logger needs rsync; 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.