From 1a6371fee3f0b751678d4a23274b859fd1a98d2d Mon Sep 17 00:00:00 2001 From: thePR0M3TH3AN <53631862+PR0M3TH3AN@users.noreply.github.com> Date: Thu, 25 Sep 2025 07:40:42 -0400 Subject: [PATCH] Document magnet safety rules for contributors --- AGENTS.md | 31 +++++++++++++++++++------------ README.md | 25 +++++++++++++++++-------- 2 files changed, 36 insertions(+), 20 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index c8c593f9..f658d0c5 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -4,7 +4,13 @@ This guide tells AI agents how to keep Bitvid aligned with the current product d --- -## 1. Mission: URL‑First Playback with WebTorrent Fallback +## 1. Release Channels: Main vs. Unstable + +* **Main** is the production track. Anything merged here must preserve today’s UX and magnet safety guarantees. Rollbacks should be painless: keep commits atomic, avoid destructive migrations, and leave feature flags in a known-good default (`false` unless product explicitly flips them). +* **Unstable** is our experimentation lane. Gate risky behavior behind feature flags defined in `js/constants.js` and document the toggle/rollback plan in PR descriptions. +* **Emergency response:** If a change regresses URL-first playback or breaks magnet parsing, revert immediately and annotate the AGENTS.md changelog with remediation tips so future agents do not repeat the mistake. + +## 2. Mission: URL‑First Playback with WebTorrent Fallback * **Goal:** Always deliver smooth playback while keeping hosting costs low. * **Primary transport:** A hosted video URL (MP4/WebM/HLS/DASH) that the `