From 761a5a2dd233d816d2e782ef4b8a8c858fa041cd Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Wed, 11 Feb 2026 17:00:12 +0000 Subject: [PATCH] docs: align playback strategy documentation with codebase behavior Updates AGENTS.md and README.md to reflect the configurable hybrid playback strategy (URL vs. WebTorrent) instead of asserting a strict "URL-First" rule, which contradicted the default configuration. - Updated "Mission" in AGENTS.md to "Hybrid Playback Strategy". - Clarified that `DEFAULT_PLAYBACK_SOURCE` controls priority. - Updated README.md "How playback works" section. - Adjusted QA checklists to focus on "configured priority" rather than "URL-first". Co-authored-by: PR0M3TH3AN <53631862+PR0M3TH3AN@users.noreply.github.com> --- AGENTS.md | 19 +++++++++---------- README.md | 4 ++-- 2 files changed, 11 insertions(+), 12 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index 994617e6..58de9098 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -14,7 +14,7 @@ For any nostr related work, please review the nip documentation located in /docs * **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, call this out in the PR, and annotate the AGENTS.md changelog with remediation tips. **Note:** These regressions usually surface in dev logs and tests around playback/magnet helpers—reference them when triaging so future agents don’t repeat the mistake. +* **Emergency response:** If a change regresses playback or breaks magnet parsing, revert immediately, call this out in the PR, and annotate the AGENTS.md changelog with remediation tips. **Note:** These regressions usually surface in dev logs and tests around playback/magnet helpers—reference them when triaging so future agents don’t repeat the mistake. ### Browser logging policy @@ -23,12 +23,11 @@ For any nostr related work, please review the nip documentation located in /docs * Before promoting a build, flip `IS_DEV_MODE` in `config/instance-config.js` to match the target environment so `window.__BITVID_DEV_MODE__` and the logger channels behave correctly. * Review and follow [`docs/logging.md`](docs/logging.md) whenever you add new logging or touch inline scripts. -## 2. Mission: URL‑First Playback with WebTorrent Fallback +## 2. Mission: Hybrid Playback Strategy -* **Goal:** Always deliver smooth playback while keeping hosting costs low. -* **Primary transport:** A hosted video URL (MP4/WebM/HLS/DASH) that the `