Files
Proxer-Downloader/docs/rollout-roadmap.md
T
2026-10-23 16:38:55 +02:00

4.6 KiB

Proxer-Downloader rollout roadmap

Baseline: upstream 211bfd174dd78eac36f3c74411ecaa72f56eec79.

The user approved the roadmap and authorized Phase 1 on 23 October 2026. The intended server is Debian 13, under the download account's home directory, with /mnt/media/WIP/ access through plex and administrative sudo available. The user has installed the initial Phase 1 update and reported successful episode downloads. A follow-up unresolved-link pause fix is prepared locally; the assistant has not accessed or changed the server.

All phases preserve the exact contents and paths under scripts/lib/. New code stays outside that directory, and Python bytecode writing is disabled.

Current status: Phase 0 review and Phase 1 implementation are complete. The current revision, including the unresolved-link pause fix, passed all 158 offline tests and the protected-tree checks; see the verification report. The user is testing Phase 1 on the target server. Phase 2 remains the next planned implementation phase.

Phase Scope Acceptance gate
0 — Review Clone and inspect the source; map data flow and preservation boundary Clean reviewed baseline and complete protected-tree manifest
1 — Reliable behavior Truthful subprocess results; child startup handling; safe input/output validation; corrected video title; public status projections; safe rendering; shared configuration; deployment feasibility Failed or malformed results cannot become successful jobs; infrastructure failures preserve pending requests; offline regressions and protected-tree checks pass
2 — UI shell Responsive top bar; consistent visual styling; accessible submission form; filters and pagination; lightweight shared status Both submission modes work on mobile/keyboard; refresh preserves interaction state and does not repeatedly load all history
3 — Shared execution modules Extract the shared Python executor and Node planning/process/supervisor services; structured events; temporary output and publication policy Compatibility of filenames/flags/stream call order; explicit results; safe output publication
4 — Recoverable queue Explicit authoritative states; ownership and heartbeats; attempts; recovery; retries; global concurrency; grouping and indexes Safe concurrent claims and worker-loss recovery; stale attempts cannot publish accepted output; reversible data migration
5 — Worker management Persisted defaults/overrides; pause/drain/restart/cancel; operational limits; proven external bandwidth control Settings are enforced and survive restarts; per-worker and shared bandwidth caps hold under concurrent transfers
6 — Release validation End-to-end staging checks; deployment documentation; migration/rollback; pilot with one, then two, then four workers Stable job lifecycle and recovery; measured limits; protected tree unchanged

Phase 1 boundaries

The legacy collections remain in place. Successful and ordinary failed jobs are still recorded in their respective history collections before removal from the queue; this sequence is not an atomic cross-collection transaction. Do not mix old and new worker code during a rollout. Stop or drain existing work before replacing the worker/script pair, because the new worker requires the new completion record and stdin credential interface.

The top-bar redesign and new advanced worker settings are pending. No bandwidth limit, privileged helper, network namespace, traffic-control rule, systemd unit, or sudoers entry is installed by Phase 1.

The Debian bandwidth assessment recommends validating a separately privileged shaper on an isolated worker traffic path. The host's actual route/interface/capability details and measured incoming-rate behavior remain prerequisites for choosing the backend.

Rollback and migration

Keep the source version and database snapshot for each deployed phase. For Phase 1 rollback, stop the new workers and verify their children have terminated before restoring the old worker and Python entrypoints together. Additional history metadata is additive; no destructive database migration is introduced here. Rollback to the old application also restores its known reliability limitations and should be deliberate.

The later ownership/state migration requires draining legacy workers, preserving original records and filenames, and reconciling any in-flight attempts. Historical records lacking original source information remain historical; missing retry metadata must not be fabricated. Worker generations with different ownership rules must not run against the same active queue.