# Adaptive Music verification — 0.6.0 ## Offline regression and packaging Use pinned Node 24.23.0 and Python standard library: ```sh PATH="$HOME/.nvm/versions/node/v24.23.0/bin:$PATH" npm test python3 -m unittest discover -s tests -v python3 scripts/audit_repository.py python3 scripts/verify_upstream.py PLAYWRIGHT_BROWSERS_PATH=.local/browsers node scripts/check_setup_browser.mjs python3 scripts/release.py python3 scripts/release.py --validate dist/releases/v0.6.0/adaptive-music.zip ``` The v0.6.0 suite contains 91 JavaScript tests and 15 Python tests. See `evidence/v0.6.0-checks.txt` for executed results. Loopback fixture servers and headless Chromium need permission to bind/launch in restricted environments. No production endpoint, credential or Git server is needed. Upstream verification reads ignored pinned local research copies; it does not fetch/install them. New regressions cover private wizard input clearing, catalog-to-scene ambient/combat persistence, normal listener activation without token/code fields, identity-bound player lookup, stable catalog IDs, explicitly enabled playlist support, canceled startup, and encrypted bootstrap tampering/replay/rotation/role/expiry rejection. Existing controller, native restoration/fallback, signed snapshots, queue/topology, companion, WebSocket correlation and distribution regressions remain. `check_setup_browser.mjs` actually renders the setup/listener DOM in Chromium 143.0.7499.4 using fake Foundry documents and a fake connection. It clicks the wizard, connects the fixture, loads/chooses/saves ambient and combat choices, confirms the private input clears, advanced controls are absent, and player activation works. A preview is written under ignored `dist/previews/`. This is an offline UI check, not an actual Foundry ApplicationV2 host or an MA connection/audio test. The development browser runs with `--no-sandbox` for the local test environment only; the module never sets browser flags or requires users to bypass browser security. Python tests check repeatable complete ZIPs, manifest/import/assets closure, attribution, privacy patterns, checksums and rebuilding source without Git metadata. Builder validation does not prove URL availability. No additional dependency was introduced; SDK/browser assets remain prebuilt/pinned. Rebuilding them, when needed, uses `npm ci --ignore-scripts` and `node scripts/build_sendspin.mjs`. The earlier zero-advisory audit is historical, not a new online audit or a security guarantee for this revision. ## User report and historical evidence The user reports v0.5.0 successfully published to existing Gitea, installed through the manifest, activated on Foundry v14.371 with D&D 5e 6.1.2, and both windows rendering. This is explicitly user-supplied evidence for that version. No v0.6.0 live install, MA authentication, receiver handshake or playlist playback was performed here. Historical `evidence/browser-audio.json`: actual Chromium official Sendspin decoder → Web Audio → WebRTC → two listeners, original synthetic 440 Hz PCM, signal at 1.757 s, RMS about 0.054, 42.3 kbit/s aggregate RTP over 4.766 s. Localhost socket shim, no real Foundry or MA/Noise handshake, no WAN, skew/drift or hardware audibility result. Historical MA read-only catalogs/target checks and bounded idle controls are retained; those live controls restored an empty idle queue. Synthetic URI ingestion previously failed; no real MA music audio or nonempty live queue restore is established. ## Remaining isolated live acceptance 1. Install/update the v0.6.0 ZIP in an isolated Foundry v14.371 world. Test the actual ApplicationV2 windows and SceneConfig hooks. Save world/scene ambient and combat, reload, reconnect with the same identity, verify references remain selected. Test native ownership, boss/manual rules, rapid transitions, native snapshot/restoration, fallback, and confirm AmbientSound/effects are untouched. No system dependency. 2. With separate explicit credential authorization, supply trusted private MA HTTPS/WSS, an existing matching dedicated SDK identity/pairing backup and remote log review. Check read-only target/catalog diagnostics first; confirm no household enumeration or unintended target selection. Confirm token/endpoint/SDK secrets never appear in player settings/documents/socket/network/logs or release artifacts. 3. Test server-enforced User flags with two distinct logged-in players: each can update only its own key, cannot change another player's or GM's key/role, and forged socket sender IDs do not authorize audio. Test banned/inactive/promoted users, multiple GMs, key rotation/new login, renewal, revoke, disconnect and latest-tab behavior. Fixtures validate cryptography, not production Foundry server permissions. 4. Before writes, capture dedicated target state, arrange an empty idle handover and approved test content. Opt in catalog playback, connect SDK and verify pairing/time sync and audible GM/player output. Exercise ambient → combat → boss → restore, offsets, duplicate occurrences and pause/repeat. Capture original state and report restoration failures explicitly. Real playlists need operator-approved content; packaging authorization is not approval to play production content in this session. 5. Test automatic listener delivery and one Enable Audio click in supported Chrome, Firefox and Safari configurations; background/suspend/reload behavior may vary. Check audio after renewal, Stop/Enable and disconnect. Only Chromium DOM fixtures ran here. GM audio/stream drift and true synchronization are unmeasured. 6. Test real remote networks with an explicitly approved existing relay if necessary. Measure ICE success, RTT/jitter/loss, upload, latency/skew and 30-minute drift. Default ICE has no public relay. Expired TURN credentials need operator renewal. Do not infer WAN acceptance from loopback synthetic audio. No production route, logging, Nginx/firewall/service version or Foundry/MA installation was changed. Browser-only distributed fencing, durable crash restore, seamless GM handover, crossfade and concurrent layers remain unsupported. Live acceptance is pending; neither fixture tests nor the user's v0.5.0 rendering report waive it.