Files
adaptive-music/PROGRESS.md
T

6.9 KiB

Adaptive Music progress — 0.5.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.

Implemented

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.

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.

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.

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.

Actual observations

  • 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.