Release v0.7.0 - Automatic pairing and validated MA audio playback
Validate and generate manual release / package (push) Waiting to run

This commit is contained in:
Jason committed 2026-12-04 08:58:47 -05:00
1 parent 83d168f5a1
commit 1ed30567fb
48 files changed
+2717 -742

No files matched your search

+43 -52
View File
@@ -1,59 +1,50 @@
# Adaptive Music progress — 0.6.0
# Adaptive Music progress — 0.7.0 staged acceptance
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.
Standalone module work now includes automatic campaign receiver provisioning and
account-bound pairing, remembered encrypted browser-local identity, memory-only token
retention/retry, scene assignments, listener bootstrap, guarded transitions and queue
restoration. Existing Gitea URLs/manual release mechanism are preserved. No Git host
was accessed and no production infrastructure/core versions were changed.
## Implemented for v0.6.0
## Defects
- 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.
| Defect | Implemented and tested | Remaining acceptance |
| --- | --- | --- |
| AM-001 layout | Actual Foundry v14.371 ApplicationV2 at 380/640px; Chromium fixture at 380/640/1000px | Operator’s logged-in-world theme |
| AM-002 provisioning | SDK-created identity, authenticated dedicated web-receiver pairing, no normal JSON import; real MA tests | Normal installed-world flow on Mac |
| AM-003 diagnostics | Per-route upgrade/CSP checks, staged auth/pair/sync errors, output counters and copyable secret-free listener report | Original Mac failure report if it persists |
| AM-004 retry retention | Tab-private draft; encrypted receiver vault; token/identity origin binding; Firefox and Chromium reattached after transport loss and reload without replacing the queue | Mac reload/retry/network lifecycle |
| AM-005 cross-origin | Real deployed-origin authentication works in Ubuntu Firefox/Chromium; same-session receiver ACL, Firefox SDP and buffer bugs fixed | Original Mac-specific pre-upgrade failure is not reproduced or independently resolved |
| MA catalog playback | Firefox 159 and Chromium 159 measured real audio at both listeners across ambient, combat and restoration | Actual Foundry world, physical devices and WAN acceptance |
## Verification and unresolved prerequisites
## Technical findings
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.
- Tested Foundry page has no CSP header/meta policy. Both HTTPS origins authenticate
from Ubuntu using public DNS. The Mac’s private proxy route is a different path; TCP 443 to that proxy times out from Ubuntu. One narrowly scoped temporary access proposal with rollback is prepared under ignored .local/PRIVATE-ROUTE-REQUEST.md and awaits operator execution.
- MA grants a new browser receiver access through API sessions authenticated before
Sendspin auth. Replacing the API socket breaks a restricted account’s access.
- Firefox reached an available paired receiver before MA returned its queue. Setup
now waits briefly for a missing queue on the same session. The regression fixture
exercises the delayed reply; the live follow-up received the queue immediately.
- A new receiver’s volume is initially null. SDK software volume avoids that startup
dependency and provides campaign volume without controlling unrelated players.
- Firefox adds a session sendrecv default after ICE gathering. Correct SDP validation
honors the audio media recvonly override and still rejects sender/video/data offers.
- MA sends PCM roughly four seconds ahead. The old two-second scheduler cutoff dropped
most real audio; bounded six-second scheduling and timestamped clears address it.
- MA 2.10.6 Sendspin has no native pause. Logical stop-plus-position pause is implemented
and tested, including paused restoration without briefly playing.
- Five-minute snapshot expiry was too short for combat. Signed active-session snapshots
now last up to 12 hours and remain campaign/session/fence/generation-bound.
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.
The live follow-up records real PCM and two listener signals, emulated pause, seek,
resume, volume, and queue restoration in Firefox and Chromium. Earlier catalog
startup failed with MA `MediaNotFoundError` in both engines. The cause of those
failures remains unconfirmed. The controller preserves the failed command and skips
rollback after an uncertain write. See `evidence/v0.7.0-live-follow-up.json`.
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.
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.
The v0.7.0 bundle is staged locally for acceptance. Publication remains pending the
Mac private route, actual Foundry hooks, sockets and User permissions, and physical
device, WAN and invitation-renewal checks in TESTING.md.
Crossfade, durable crash restoration, seamless handover and WAN synchronization
remain unsupported.