Files
rclone/docs/DECISIONS.md
T
Lucas WintherandClaude Opus 5.5 0ec7dce0e5 protondrive: rewrite the backend on a native client following Proton's SDK
The backend no longer uses Proton-API-Bridge or go-proton-api at run
time. Saved sessions from earlier versions keep working without signing
in again, and every option keeps its name and meaning. rclone config
now offers sign-in with a web browser. The full backend test suite runs
against an in-process fake Proton server.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 17:28:24 +01:00

3.1 KiB

Decisions

Fork-only. Append-only, newest first. Never edit or delete an entry - supersede it with a new one that links back. One entry per decision a future maintainer would otherwise have to reverse-engineer. No index: grep -n '^## ' docs/DECISIONS.md lists every entry.

2026-11-11 - Proton Drive backend runs on its own client

Status: accepted Context: The backend sat on rclone/Proton-API-Bridge and rclone/go-proton-api, which share credentials through package globals, write files the official clients can't always read, and can't be tested without a live account (spec 001). Decision: protondrive.go was rewritten on the native client built in plan Tasks 2-12, keeping every option name and meaning and reading v1.76 saved sessions without signing in again. Config offers browser sign-in (default unless a username and password are already set, so existing scripted setups keep using them) and password sign-in. An upload whose commit outcome can't be known is a no-low-level-retry error: an immediate retry could add a revision that already landed, while a later sync pass reads the destination first. Alternatives: Patching the bridge (globals and crypto stay outside the tree); keeping browser sign-in the default even with a password set (non-interactive config create would wait on a browser). Consequences: The full contract suite runs hermetically against protontest. Several Fs of one account in one process each cache separately until events land (spec 6.2).

2026-11-11 - Fork agent tooling is appended, not merged, into upstream files

Status: accepted Context: Upstream rclone already ships a maintainer-written AGENTS.md and a CLAUDE.md that imports it. This fork tracks upstream and intends to send work back, so every edit to an upstream file is a future merge conflict and a risk of leaking fork-only material into an upstream PR. Decision: Upstream's AGENTS.md text is kept verbatim. Fork rules are one "Fork Workflow" section appended at the end. CLAUDE.md and README.md are untouched. Fork-only docs live at the top of docs/ (Hugo only builds docs/content/, so they do not reach the website). Alternatives: Restructuring AGENTS.md with the fork rules first (better agent attention, permanent conflicts with upstream); a separate fork rules file (two sources of truth). Consequences: AGENTS.md sits at 148 of a 150 line budget - a new fork rule must replace an old one. Upstream PR branches must be cut so they exclude the paths listed in the Fork Workflow section.

2026-11-11 - Adopt AGENTS.md as single source of truth

Status: accepted Context: Agents had no fork-specific workflow or permission config between sessions. Decision: AGENTS.md is canonical; CLAUDE.md/GEMINI.md are pointers. Specs are permanent in docs/specs/. Plans live in docs/plans/ only while work is in progress and are removed before merge. Both override the superpowers default paths. Alternatives: Per-tool rule files (drift); no rules file (agents re-explore the repo every session). Consequences: Rule changes happen in one file; pointer files stay thin. The spec, not the plan, is the record.