Release v0.6.0 - Music Assistant wizard and automatic listener connections
Validate and generate manual release / package (push) Waiting to run

This commit is contained in:
Jason committed 2026-12-03 20:11:10 -05:00
1 parent 5319177c58
commit eb9536f903
26 files changed
+1553 -764

No files matched your search

+51 -96
View File
@@ -1,104 +1,59 @@
# Adaptive Music progress — 0.5.0
# Adaptive Music progress — 0.6.0
Continued from `50c3a7c`; the complete 0.4.0 companion implementation is preserved
at local branch `experimental/companion-0.4.0` as well as in `gateway/`. The original
0.3.0 ZIP gap audit remains `evidence/package-objective-audit.json`; it describes
that historical package, not the current release. No validated code was discarded.
The user reports v0.5.0 published to their existing Gitea, installed through the manifest,
activated on Foundry v14.371 with D&D 5e 6.1.2, and configuration/listener windows rendering.
That supersedes the previous unknown publication/install status for v0.5.0 only. This
work did not access the Git server, use MA credentials or change production services.
## Implemented
## Implemented for v0.6.0
The standard release is one module ZIP, ID `adaptive-music`, author CheddahBoxMB,
Foundry generation 14, no mandatory modules or system dependency. Python's offline
builder produces a complete manual upload bundle, stable manifest/versioned download,
source archive, docs/licenses and checksums. Gitea/GitHub repository base is configurable.
The default destination is the user's **planned, unconfirmed** Gitea repository.
It was not contacted, authenticated with, created or pushed to. Git remotes and
credentials are not required. CI artifact workflows are prepared but unexecuted;
no runner or OS service is installed. Publication and hosted updates are unverified.
- Three-step GM connection wizard: private server/token, dedicated existing receiver
backup/name and ownership/logging/playback acknowledgments, read-only target/catalog
check, verified receiver selection, Connect audio, resume/disconnect and diagnostics.
- Existing official Sendspin/Web Audio/WebRTC host integrated with the UI. GM hears
receiver audio; explicitly authorized static catalog playlists are eligible through
the existing guarded serialized provider, rather than only synthetic sequences.
- Automatic encrypted listener bootstrap with memory-only P-256 private keys, public
keys on permission-controlled User documents, AES-GCM invitation delivery bound to
world/account/epochs, and existing per-peer encrypted SDP. No credential/address/SDK
identity goes to players. Default eight peers, 30-minute invites renewed after 20
minutes, retries/reconciliation every 15 seconds while GM host is online.
- Player interface normally needs only Enable Audio when browser activation is required.
No pasted code or MA login. Native playback/fallback, persistent scene ambient/combat/
boss references, world defaults and explicit playlist ownership remain intact.
- Companion/synthetic/manual capability controls hidden behind a client-scoped advanced
development setting. World defaults and boss/manual controls use disclosures.
- Offline manual release v0.6.0: one installable ZIP, stable existing manifest URL,
immutable version-specific download, complete source, docs/licenses and checksums.
No new dependencies, mandatory services/containers, core patches or browser bypass.
Native playback and scene/world/combat/boss/manual configuration are preserved.
Persistent ambient/combat/boss/native fallback references, world defaults, legacy
migration, explicit combatant flags and native ownership remain connected to the
existing controller. The shared guarded MA client/provider now use Web Crypto,
retaining the optional companion import paths and stable catalog IDs/signatures.
## Verification and unresolved prerequisites
The new experimental GM host uses the official pinned Sendspin 5.0.0 SDK, a
reproducible PCM-only browser bundle with audited notices, Web Audio termination
and WebRTC audio tracks. GM-local MA authentication uses the public `/ws` API;
no raw unrestricted proxy, browser player credential or external CDN is introduced.
The existing DEV private identity must match before a receiver connection; no new
identity/target/pairing or internal provisioning was attempted. Only approved
synthetic sequences can be controlled by this path. Real catalog selections are
available through the developer connection API and existing assignment UI; actual
playlist playback is still separately gated. GM setup for MA remains developer-API
based; there is no claim of a finished one-click connection wizard.
91 JavaScript and 15 Python regressions, privacy/attribution audit and pinned upstream
verification are recorded in `evidence/v0.6.0-checks.txt`. A Chromium 143.0.7499.4 DOM
fixture verifies the wizard, catalog selection/save, private field clearing, hidden
advanced controls and listener activation. These are offline fixtures, not live
Foundry/MA playback or network verification. Historical decoder/WebRTC synthetic
measurements and live idle/read-only MA evidence remain separately identified.
Listener capabilities are separate from controller access. Foundry module sockets
carry per-peer encrypted bounded SDP/control; WebRTC transports continuous audio.
No microphone, video, data channel, automatic STUN/TURN or raw PCM socket transport.
Expiry, revocation, role changes and disconnect tear down peers; there are bounded
explicit ICE restarts. Same-origin GM Web Locks and a single-active-GM check reject
obvious conflicts, but do not constitute a distributed MA fence. Memory-only secret
handling cannot hide secrets from the GM browser's own user.
The actual private MA deployment still needs browser-trusted HTTPS/WSS for both `/ws`
and `/sendspin`; the previous HTTP endpoint is unsupported from HTTPS Foundry. INSTALL.md
now explains TLS, private routing, Origin/CSP and ICE requirements. No JavaScript-only
workaround can replace a secure reachable endpoint. No route, logging or certificate
configuration was inspected or changed. A matching existing SDK identity/pairing backup
is also required; no receiver was registered or commandeered. GM authentication is
memory-only and must be entered after reload. A private legacy catalog key/namespace
can be imported to preserve old IDs.
## Actual observations
Remaining live acceptance includes v0.6.0 ApplicationV2/SceneConfig behavior, Foundry
User document permission enforcement/socket signaling with distinct users, MA pairing/
time sync and audible real playlist playback, nonempty interruption/restore, normal
one-click audio activation across browsers, renewal/reconnect and WAN/NAT/TURN paths.
The user must separately authorize credentials/production changes. No such action
was taken. TESTING.md gives isolated acceptance steps and exact limits.
- **85 JS / 15 Python tests pass**; repository privacy/attribution and recorded
upstream hashes pass. Online npm advisory audit reports zero vulnerabilities.
The SDK and dependencies are pinned; no installation hooks ran. Exact command
evidence is retained in `evidence/development-checks.txt`.
- An actual Chromium decoder → Web Audio → WebRTC experiment delivered original
synthetic PCM to two listeners: signal at 1.757 s, RMS approximately 0.054,
aggregate GM RTP payload approximately 42.3 kbit/s. Four encrypted control messages.
This was a loopback socket shim, not actual Foundry, MA, WAN or a sync measurement.
See `evidence/browser-audio.json`.
- Fresh live MA read-only checks verified the dedicated DEV identity/topology and
empty idle queue. Configured MA is HTTP; HTTPS Foundry would fail mixed-content
policy. No existing DEV private identity is present in the GM profile. No receiver
connection, new identity or playback mutation was made in this revision.
- Pinned MA source logs received WebSocket frames at VERBOSE. Before token-bearing
WS auth the module requires explicit operator acknowledgment that payload logging
is disabled. This was neither checked nor changed live. No WS auth test occurred.
- Previous restricted catalog and idle-state live controls are retained. Prior
bounded runs restored their original empty idle state. Synthetic ingestion failed
previously (timeout/HTTP 400). No actual MA music audio, nonempty live restore,
combat/boss interruption with audible MA content or real playlist acceptance.
## Testable inside isolated Foundry
Without infrastructure: install/enable the module, GM native ownership/setup,
world and scene assignments surviving reload, boss flags/priority, manual overrides,
active combat policy, native playback/restoration and explicit native fallback.
These behaviors are unit/fixture tested; real Foundry v14.371 testing remains pending.
With separately supplied secure private MA access, existing DEV identity/pairing,
log review and synthetic ingestion: developer GM connection/catalog and synthetic
control, then listener WebRTC invitations and audio. Test actual Foundry socket
relay with distinct logged-in users before assuming the loopback benchmark applies.
See INSTALL.md and TESTING.md for precise steps/acceptance boundaries.
## Remaining blockers and next infrastructure decision
1. Supply a licensed isolated Foundry v14.371 world/browser session for actual install,
native playback, socket, document and reconnect acceptance; production is excluded.
2. Operator must provide private trusted HTTPS/WSS MA access reachable by the GM,
the existing DEV identity/pairing, and authentication-log review. No public MA
endpoint or network configuration weakening is acceptable. New identity/target
binding would require separate explicit authorization.
3. Make the generated synthetic tracks readable through an approved existing MA
provider/private range-capable source. Do not modify existing playlists. This
minimum ingestion change is still unimplemented/unverified, not silently waived.
4. WAN peers may require an explicitly approved existing TURN relay with short-lived
credentials. Measure NAT reachability, latency, bandwidth, skew and reconnect.
5. Browser-only GM loss/crash cannot guarantee automatic restore or continuity;
durable distributed fencing and crash recovery need the optional minimal worker
on the existing Foundry host. Actual Sendspin termination in that worker remains
work. Deployment/routing/service changes need a concrete proposal and approval;
nothing has been deployed. No additional machine/container is proposed.
6. Crossfade, independent concurrent ambient layers, shuffled exact restoration and
actual MA playlist playback remain unsupported/unaccepted. No production readiness.
The manual release can be uploaded without any of those runtime prerequisites;
they gate MA audio acceptance, not native module packaging. Next authorization, if
browser gates cannot be met, is review of a concrete restricted co-located worker
and existing-host TLS route. This release does not authorize deploying that fallback.
Browser-only authority still uses a single active GM and same-origin Web Lock, not a
distributed server fence. GM loss/crash cannot guarantee restoration or continuity.
Crossfade, independent simultaneous layers and synchronization/drift guarantees remain
unimplemented/unverified. Optional companion source is preserved in gateway/ and the
historical experimental branch; no infrastructure is deployed or mandatory.