27 KiB
Adaptive Music verification — 0.8.3
Executed evidence
The source archive includes sanitized evidence separately from private .local inputs.
v0.8.3 floating music bar
The JavaScript regression suite covers cue changes while paused, same-queue resume, native ambient position, failed transitions and canceled authority. The GM audio graph test checks that the local monitor and the listener output are on separate branches. Chromium, Firefox and WebKit DOM fixtures exercise player and GM controls, personal and campaign volume, pause and play, and the bar's collapse and drag controls. All 122 JavaScript and 17 Python tests passed. Repository and upstream checks passed, and npm audit reported zero vulnerabilities. The development server reported no active game session at the join screen, so live v0.8.3 acceptance remains pending.
Installed v0.8.1 operator follow-up
The operator confirmed combat automation, initiative advancement, boss music, ambient restoration, manual controls and audio quality. The multiplayer report was a separate failure. When another user joined, playback stopped and Scene Music lost its catalog until that user left.
v0.8.2 multiplayer reproduction
With v0.8.1, the GM started audio and had a populated catalog before any other
account joined. Independent GUI logins as Player and Trusted Player kept the
GM catalog and each listener received audio. Joining as Assistant GM reproduced
the reported audio and catalog failure. Foundry reported one active full
Gamemaster and two active isGM users. The GM's two MA sockets closed while the
Foundry socket remained connected. The previous authority check counted
isGM users and its User update handler closed the GM audio host and emptied
the catalog when the count rose above one.
Earlier multiplayer runs joined the GM and two ordinary players before starting music. Those runs exercised real audio and permissions, and missed both the late join during active playback and Foundry's Assistant GM role distinction. v0.8.2 uses the full Gamemaster role for the exclusive controller and uses the documented connection hook to reconcile listener joins and departures. The role of the account in the operator's original report was unspecified.
Foundry User API, role constants, and userConnected hook.
v0.8.2 live multiplayer candidate
The authorized Foundry 14.371 development world ran the package's runtime via browser preview on Ubuntu using Chrome for Testing and Firefox. Foundry still reported the server-installed v0.8.1, which independently matched all 28 files from the local v0.8.1 runtime. The preview used normal browser TLS checks and real Foundry accounts. It measured the host output and decoded listener audio.
The GM started music alone. A Chrome Player joined first, then a Firefox Trusted Player and Chrome Player joined together. An additional Assistant GM joined and left in Firefox. The GM kept its receiver, both MA sockets and all 13 catalog choices. A Player's 25% volume yielded about one quarter of its input RMS. Mute brought that player's local output to zero while it continued receiving audio, and the GM and other listeners kept hearing audio. A fresh login retained the Player's mute and volume. Both Player and Trusted Player were denied changes to shared automation and a test scene's music flags.
The world used distinct ambient, combat and boss playlists. All three listeners followed the native tracker cues, ambient restoration, scene activation and manual playback. The normal encounter used an unstarted Foundry fixture after the automation pointer missed the token HUD. The boss encounter used the native token HUD. Both used the native Combat Tracker to roll initiative, start and end combat. Ambient restored to track index 0 at 41 and 66 seconds.
Over 360 seconds, the GM catalog and sockets stayed stable. The GM and all three listeners had a measurable signal at 30 of 30 checks, and each listener's received bytes and audio samples advanced at every interval. The remembered GM credential reattached to the same receiver after reload, kept the queue and restored audio to all three listeners. Player sessions made zero requests to MA. The test restored the development world, and all MA queue writes targeted the dedicated receiver.
The automated suite passed 117 JavaScript and 17 Python tests. The Chromium, Firefox and WebKit setup and credential fixtures passed, including browser restart and fixture revocation. Repository and upstream audits passed. npm audit reported zero vulnerabilities. Measurements and scope are recorded in the sanitized v0.8.2 evidence.
Installed v0.8.0 manual macOS acceptance
The operator confirmed Chrome connectivity, retention after a full Chrome quit and reopen, automatic scene playlist activation, background-tab audio, WAN player audio and smooth transitions. Stuttering and crackling were resolved during testing. Firefox connectivity failed. In the combat follow-up, the operator reported that a battle playlist played when assigned to ambient, while native combat use left the ambient cue playing. They could not find the boss designation. The operator later passed the corrected combat flow and manual playback controls in v0.8.1.
v0.8.1 native Combat Tracker investigation
Tested Foundry 14.371 and D&D 5e 6.1.2 in the authorized development
world. The baseline used installed v0.8.0 and the GM entered a token into
combat through its native HUD. The tracker created an active, unlinked
encounter with one combatant belonging to the active scene. On Start Combat,
combatStart arrived at round 0 with started=false. The subsequent
updateCombat and combatTurnChange reported round 1, turn 0 and
started=true. The baseline made no dedicated queue transition, reproducing
the failure without calling a module API or injecting encounter state.
Foundry v14's Combat.scene is optional in practice and its unlinked encounters
are visible across scenes. Combatant.sceneId identifies the token's scene.
D&D 5e's Combat5e at 75750bf1b8bd79f8448af40495c8bb5c99f49551
delegates start, end and update/delete processing to Foundry core and adds
system-specific resource and token behavior. Adaptive Music uses
the committed document hooks and accepts explicit scene links or the token
scenes in an unlinked encounter. A turn or round change leaves the cue intact.
The Chromium package preview used three distinct playlists. A native token HUD and native tracker controls verified adding combatants, rolling initiative, starting an encounter, advancing turns and rounds, and canceling or confirming End Combat. Neither preparation nor canceled End Combat changed the cue. Confirmed End Combat restored the ordered ambient queue at track index 0 and 30 seconds. The Boss encounter checkbox selected the scene's default boss cue on the next encounter. A scene excursion using Foundry's scene activation operation played the other scene's ambient, then selected Boss on return. Ending the boss restored the original ambient at 33 seconds. A manual silence override displayed an explicit warning during the next encounter. Return to automation selected Combat, and End Combat restored ambient at 46 seconds. The test measured GM output and restored the development world afterward.
Headed Ubuntu Firefox 159 repeated the native token HUD, initiative, start, turn and round, canceled end, and confirmed end checks against the same candidate runtime. It measured GM output and restored ambient at index 0 and 9 seconds. Both candidate previews ran on Foundry 14.371 and D&D 5e 6.1.2 with server-installed metadata reporting v0.8.0.
Foundry Combat Tracker guide, combatStart hook, Combatant API, and D&D 5e 6.1.2 Combat implementation.
v0.8.1 Firefox transport investigation
The downloaded Mozilla Firefox 161.0.1 Linux archive matched Mozilla's SHA-512
listing. Real stock Firefox over the authorized private route opened native
/ws and /sendspin WebSockets with HTTP 101 from the anonymous Foundry
page and the MA origin. The test used a process-local mapping to the authorized
private proxy and normal certificate verification. No credentials were entered.
The MA page replaces its WebSocket constructor, so its control used the
native constructor retained before page script execution.
Separate live runs with stock Firefox 161.0.1 on Ubuntu also signed into the development world, authenticated to MA and measured scene audio at the GM and a second Foundry login. Those runs covered installed v0.8.0 and the earlier diagnostics-only v0.8.1 browser preview.
Seven isolated stock-Firefox policy cases covered trusted cross-origin and
same-origin upgrades, enforced and report-only CSP, server-side Origin
rejection and a mismatched WSS certificate. Origin and TLS failures remained
opaque to page script. The permission API reported prompt even on a private
route that worked, so that reported state does not determine the cause.
Firefox's site-level local network permission and the macOS app-level permission are separate. Record whether MA's normal HTTPS page works in the failing Firefox profile. If it fails, verify the displayed error and compare the profile's existing DNS and proxy settings. If MA loads, compare the two Foundry WSS routes and look for local-network or CSP console messages. A reverse proxy's timestamped path and response status can distinguish a received handshake from a failure before it reached the proxy. The pinned MA 2.10.6 handlers authenticate after upgrade. Ordinary HTTP CORS settings do not establish authorization for a WebSocket Origin. Keep browser, TLS and proxy policy in place.
See the Firefox capture instructions, Mozilla local-network permissions and MDN's CSP connect-src reference.
v0.8.0 handoff checkpoint
The v0.8.0 browser preview reached the actual Foundry development world through
the private HTTPS proxy. Earlier native MA reference playback reproduced a
restricted-token receiver reassignment during the Firefox test. The handoff
soak restored the ambient order and the saved position at 37 seconds, but both
listeners recorded about 763 seconds of terminal digital silence and Stop/Enable
could not verify renewed audio. The original result fails the continuity gate.
The updated soak enables repeat on its dedicated playlist and measures GM and
listener output, including silent render blocks. Each phase requires at least
95% of the expected output frames and no digital silence longer than four
seconds. See HANDOFF.md and evidence/v0.8.0-live.json.
The corrected Firefox 159 run passed in the real development world with one GM and two players. The validated archive supplied the v0.8.0 runtime assets. The continuity phases totaled 1,800 measured seconds. Across the full session, the GM scheduled 74,261 PCM chunks with zero late or early drops, source gaps, overlaps, overruns or underruns. Ambient order and index 0 at 37 seconds were restored after combat. Listener Stop/Enable and reload recovered audio. RTP concealment stayed flat within the measured phases. Both listener meters counted 608 near-zero runs of 0.75–80 ms in restored ambient, with a longest digital silence of 449 ms. The test measured the digital playback graphs in the browser.
The Chromium package preview passed native scene rendering and saved assignments in two scenes, including a pointer drag from the Playlists sidebar. Both the sidebar and token toolbar opened the controls. Real scene, combat and boss cues reached both players and restored the saved ambient track and offset. A prior review stopped at preparation for an unsupported catalog entry before writing the queue. The review uses three prepared static playlists from the dedicated catalog. Chromium also passed token-free reload to the same receiver, preserved the queue, and verified Disconnect and Forget Credentials across reloads. In headed Chromium the GM page was actually hidden behind another tab for 12 seconds. The GM audio clock advanced and its output analyser measured audio while both listeners continued playing. This check disabled Playwright's automatic focus emulation. The longer AudioWorklet measurements were collected in Firefox. The focused Firefox background follow-up measured real GM-to-listener audio before changing tabs. The automation still reported the GM document visible after a desktop tab switch. Firefox hidden-tab continuity therefore remains an open acceptance check. The development world's state was restored. The review restored the development world's settings and active scene. The final audit configured the Christmas and Dûr-Khazrak demo scenes and activated Christmas for handoff. The Dûr-Khazrak ambient cue uses an existing development playlist as a stand-in for a dwarven soundtrack. Playwright focus emulation details.
Independently repeated OfflineAudioContext renders in Chromium, Firefox and Linux WebKit detected gaps with the v0.7.2 packet timing and none in the corresponding v0.8.0 runs at 44.1 and 48 kHz. Browser IndexedDB and Web Crypto fixtures verified per-user/world lookup, forgetting, and retained authentication across full persistent-profile browser restarts in all three engines. The real WebSocket client rejected the previously saved synthetic token after fixture revocation. The real MA server was not modified for this check. The later installed v0.8.0 Mac results are recorded above. Mac Firefox and native Safari still require device-specific acceptance.
In the loopback WebRTC fixture, Chromium and Firefox both rendered audio across signaling expiry and closed the sender after listener revocation. Linux WebKit completed offer/answer with default ICE and timed out before the connection opened. With a process-local coturn relay and ephemeral credentials it rendered audio before and after expiry, then closed on revocation. The relay test covers the existing optional TURN configuration in a local fixture. Native Safari and the actual WAN route need separate verification. Playwright browser coverage and WebKit ICE candidate considerations.
For the live package preview, pass --package-preview dist/releases/v0.8.0/adaptive-music.zip
to the private-route runner. It validates and extracts the archive locally,
serves its module assets to the test browsers and records the ZIP SHA-256.
The server's module metadata still reflects the installed version. The preview
exercises the packaged assets and the logged-in development world.
The release metadata also carries an installed asset SHA-256 across src/,
styles/ and vendor/ so results can be matched across documentation updates.
Account persistence and v0.7.0 GUI review
The installed v0.7.0 was exercised again through Foundry’s Settings and Adaptive
Music menus. Playwright filled the server address and access token and pressed
Authenticate and Connect audio. The run used the private proxy route with normal
TLS validation and did not replace module assets. The GM saved ambient and combat
assignments on a review scene and confirmed the GM decoder received live audio.
The scene was left in the development world. In the same world, a browser-supplied
v0.7.2 candidate saved an encrypted Foundry User Setting. A new browser session
logged into the same GM account and connected with the token alone. The server
continued serving v0.7.0 during both tests. Closing the GM audio tab ends the
browser-hosted connection. See evidence/v0.7.2-live.json.
AM-006 live graphical workflow
The v0.7.1 interface ran inside the actual Foundry v14.371 development world with
module assets supplied to the test browser by Playwright. The graphical window
passed sizing, horizontal fit, scroll containment, keyboard navigation, Advanced
visibility and input validation at 380 and 760 pixels. Through the private route,
one Connect action authenticated, provisioned the receiver and loaded the catalog.
The GM saved scene assignments and enabled automation through the tabs. Both
listeners measured audio during real combat and ambient restoration to eight seconds.
The Playback tab showed the track and both listeners. Volume, pause, resume and stop
worked through the graphical controls. Listener Stop/Enable and reload also passed.
The earlier private-route timeout and an ambient startup attempt without a queue
write are recorded alongside the passing rerun in evidence/v0.7.1-live.json.
Verification of the v0.7.1 ZIP installed on the server is pending.
Installed development world over private Nginx
- Chromium 159 signed into Foundry v14.371 as the GM and both players. The installed v0.7.0 module authenticated to MA and paired a dedicated Sendspin receiver. Both WebSocket routes returned HTTP 101 from the signed-in page, which exposed no enforced CSP header or meta policy.
- Both players received encrypted invitations through the real Foundry module socket. Foundry denied both ordinary players’ attempts to update a flag on the GM’s User document. Both players measured signal in their actual playback graphs during ambient, combat and restored ambient. The original queue order and seven-second offset were restored. Audio also returned after Stop/Enable and a player reload. Chromium’s inbound RTP energy counter stayed at zero while the playback graphs showed audio, so the test uses the playback signal.
- The MA control page replaces
window.WebSocketand intercepts Sendspin. Its unauthenticated interceptor failed the bare/sendspinprobe. The native browser constructor opened the same URL from the same page in Chromium and Firefox. The original Mac-specific AM-005 failure did not reproduce on this Ubuntu route. The Ubuntu Firefox build completed transport checks. Its Foundry join UI failed to render in this environment, which could not create a WebGL context.
See evidence/v0.7.0-foundry-private.json for the installed-world results.
Earlier browser and source-overlay checks
- Ubuntu Firefox 159.0 and Chromium 159.0.8154.6 authenticated from Foundry’s origin and MA’s origin and retrieved seven providers. The unauthenticated Foundry page returned no enforced CSP header or meta policy.
- Both browsers paired a dedicated MA web receiver, completed Noise and clock sync, and loaded eleven catalog playlists.
- Firefox 159 and Chromium 159 delivered real MA audio to two WebRTC listeners after one activation click each. Both listeners measured audio during ambient, combat and restored ambient. The runs exercised emulated pause, seek, resume, volume, ordered track/offset restoration and final queue restoration.
- Both browsers reconnected the same receiver after an induced Sendspin disconnect and browser reload. Reattachment preserved the idle nonempty queue without writes, retained the identity without the token and rejected a stale snapshot.
- One Firefox startup received an available player but no queue. Startup now waits briefly for that queue to register. The delayed reply is covered by a regression fixture. The passing live playback follow-up received the queue on the first read.
- The browser source assets were supplied locally by Playwright under the deployed Foundry origin. Controller inputs were explicit scene/combat states and signaling used an encrypted-envelope relay through the test runner. This was not an installed, logged-in Foundry world or real Foundry socket/user-permission test.
- Actual deployed Foundry v14.371 ApplicationV2 rendered the setup at 380/640px with in-memory sample documents. Real IndexedDB receiver vault reopen, user isolation, token exclusion and forgetting passed. No world documents were changed.
- Real browser signaling exposed Firefox’s session-default SDP inheritance; its fix was retested in Firefox 144.0.2 and Chromium 143.0.7499.4. Trusted local-CA HTTPS/WSS policy tests cover allowed cross-origin, enforced/report-only CSP and server Origin rejection.
See evidence/v0.7.0-live-follow-up.json, evidence/v0.7.0-live.json,
evidence/foundry-application-v070.json and evidence/v0.7.0-checks.txt in the source
archive. Earlier Firefox and Chromium runs received MA MediaNotFoundError (code 2)
during playlist startup despite playable track metadata. Its cause remains
unconfirmed. Those failures are retained alongside the passing follow-up. The live
runs used dedicated MA development receivers exclusively.
One consolidated Mac / logged-in-world acceptance
Use USER-ACCEPTANCE.md for the step-by-step Firefox and Chrome checks against the prepared demo scenes. The following procedure records the broader installed-world and WAN acceptance scope.
Run this in an isolated test world with the actual Foundry v14.371 host and existing private HTTPS MA endpoint. It needs no developer console or diagnostic shell commands.
- Install the staged module ZIP, reload, and log in as the sole active GM from your Mac. Open setup at normal and narrow window sizes. Enter the HTTPS MA address and dedicated token, then select Connect. The receiver should be provisioned and playlists should load without a backup file. If MA reports media error 2 after connection, verify the same content in MA’s own dedicated web player before treating it as a browser transport failure. If connection fails, select Check browser connection and Copy connection diagnostics once, and report that single report with browser/version and whether MA’s own page works in that same browser.
- In Scene Music, choose two authorized static playlists for an active scene’s ambient/combat music and save. In Playback, enable automation. Check the GM hears ambient and decoded frames increase. Only the campaign receiver may be controlled. Native fallback remains optional.
- Log in as two ordinary players using separate browser profiles/devices. They should receive audio automatically, needing at most one Enable Audio click. Check late login, Stop/Enable and one player reload. An unrelated user must not receive another user’s invitation; verify Foundry still prevents players from editing other User keys/roles.
- Note the ambient track/offset in MA. Start an actual Foundry combat in this scene, then end/delete it. Both players should hear combat then ambient at the saved offset, rather than restarting ambient. Repeat a rapid start/end and confirm no duplicate queue.
- Close/reopen setup and retry one failed login with a replacement token. The private draft/receiver should remain; after a browser reload only the token needs reentry. Reconnect the same owned receiver and confirm its queue is not replaced. Apply the automation setting explicitly if a nonempty queue was retained.
- Continue listening for at least 30 minutes across signaling invitation expiry. Exercise one brief network interruption, reconnect, and one background/suspend cycle. Report failures with Copy connection diagnostics. Repeat on the actual WAN player route; loopback/LAN signal does not establish NAT/TURN reachability or synchronization.
The development-world runs covered real Foundry hooks, socket delivery and User permissions. The v0.8.0 preview verified continued playback through the signaling lifetime and listener reconnection. For v0.8.1, verify the exact installed candidate and prioritize the unresolved Mac Firefox connection. For AM-005, correlate the reported browser stage and timestamp with the private proxy’s request and upstream status or TCP counters. The procedure and temporary VM-to-proxy access rollback are in ignored .local/PRIVATE-ROUTE-REQUEST.md.
Reproduce development checks
Use the existing pinned Node 24.23.0, Python standard library and Playwright 1.57.0. No upstream installation hook is required.
For private-route diagnostics, run node scripts/check_foundry_private_route.mjs
with the existing browser path settings. The probe verifies the HTTPS peer address
for both origins and compares WSS upgrades from Foundry and Music Assistant. It
captures handshake status and browser policy metadata. Add --logged-in after the
private route is reachable and the dedicated development world is active. That
mode verifies the installed module version, signs in with the three configured
test accounts in separate browser contexts, and adds the authenticated Foundry
page as a comparison. --playback also exercises actual MA audio, Foundry combat,
listener recovery, and cleanup with temporary development-world documents and a
dedicated integration receiver. Configuration and results remain under ignored
.local/.
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
PLAYWRIGHT_BROWSERS_PATH=.local/browsers node scripts/check_foundry_application.mjs
PLAYWRIGHT_BROWSERS_PATH=.local/browsers node scripts/check_browser_signaling.mjs
PLAYWRIGHT_BROWSERS_PATH=.local/browsers node scripts/live_browser_preflight.mjs
PLAYWRIGHT_BROWSERS_PATH=.local/browsers node scripts/live_receiver_browser.mjs
PLAYWRIGHT_BROWSERS_PATH=.local/browsers node scripts/live_receiver_browser.mjs --chromium
python3 scripts/release.py
Live scripts require authorized private configuration/token in ignored .local/ and
must only operate on their generated Adaptive Music integration … receivers.
--fresh exercises module provisioning directly and keeps the generated receiver
identity and reports in a separate private directory under .local/.
Browser transport evidence includes no TLS bypass. Headless Chromium’s local test
launcher uses --no-sandbox for this development environment; the shipped module sets
no browser flags. No new distributed dependency was introduced. Supplemental Playwright 1.65.2 and Chromium/Firefox 159 builds are isolated under .local/dev-browser-tools; AM_PLAYWRIGHT_MODULE selects that pinned development package. Its provenance is in evidence/v0.7.0-browser-tools.json. The repository dependency lock remains unchanged apart from the application version.
Limits
Mac/Safari behavior, physical audibility, WAN relay, long-run skew/drift, seamless GM handover, crash restore and crossfade remain unverified or unsupported. The upstream single queue provides one playback stream. Pause is emulated and its saved position lasts for the active GM session.