Initial Adaptive Music v0.5.0 release

This commit is contained in:
Jason committed 2026-12-03 16:11:47 -05:00
commit 14f0d8c26b
114 files changed
+6907

No files matched your search

+30
View File
@@ -0,0 +1,30 @@
# Sendspin provisioning research — 2026-12-03
Evidence class: source inspection only. MA 2.10.6, commit
`c24866405bd2068c25a60e1014e5ef8c3f6445bb`; new inspected file hashes recorded in
`upstream.json`. No upstream code copied, dependency installed or provisioning run.
`providers/sendspin/provider.py:656` defines `create_virtual_player(owner_instance_id,
display_name, player_id=None)`. This is an in-server Python provider API, not a
registered external HTTP command. It requires a loaded provider owner, checks
ownership/collisions, prefixes stable IDs, registers the client and queue, and
persists the owner marker. Removal deletes configuration; unloading the owner
removes its targets. Restart requires the owner to recreate the anchor. See the
same directory's README, “Virtual Players”, and `_register_virtual_player_client`.
This anchor discards its own audio. Its documented delivery mechanism attaches
member players through standard grouping. That mechanism does not meet Adaptive
Music's no-grouping boundary and is not an adopted gateway audio source. Creating
an anchor alone would not terminate audio at the gateway.
`player.py:_refresh_client_info` recognizes web/app clients from device information
and makes them standalone/private. A future isolated gateway Sendspin client with
an operator-assigned stable identity could be researched as a dedicated receiver,
but needs protocol/Noise/codec and reconnect tests, licensing/dependency review,
explicit target creation approval, and an operator update of the nonempty account
player filter. An arbitrary new identity must never be automatically selected.
No public automatic provisioning path suitable for the current external gateway
was established. Existing Adaptive Music DEV remains the only authorized target.
Decision: retain the manually provisioned development target. Do not add an MA
plugin, use grouping, create resources, or change production settings in this milestone.
+46
View File
@@ -0,0 +1,46 @@
# Dedicated gateway receiver — public-interface investigation
Checked 2026-12-03. Evidence class: official public protocol/SDK documentation and
pinned source inspection, not a running receiver or a live MA handshake.
Official references:
- [Client implementation guide](https://www.sendspin-audio.com/build/guide/client/)
- [Protocol specification](https://www.sendspin-audio.com/build/spec/)
- [aiosendspin SDK](https://github.com/Sendspin/aiosendspin)
A separate player-role client is the supported public interface. Persist its X25519
identity and pairing records privately; advertise only player capability, use Noise
transport, pin the intended server identity, and never advertise controller/source
roles or forward MA traffic. The public protocol supports client-initiated discovery
and connection as well as server-initiated connections. Prefer an operator-configured
private MA peer with no broad household discovery. Read the exact pinned SDK
behavior rather than assuming today's mutable specification matches every field.
Inspected aiosendspin 9.1.1 source distribution (already recorded archive SHA256):
`client/client.py:SendspinClient` takes identity, pairing store, roles and player
support; `connect(url, expected_server_id=...)` supplies a public connection path;
`add_audio_chunk_listener` exposes decoded PCM, negotiated format and server
presentation timestamps. Its time mapping methods convert presentation time.
These methods avoid MA provider internals and virtual-player provisioning.
This makes a gateway-owned receiver feasible as a source-derived design. A worker
can terminate Noise/codec state locally, validate PCM format/timestamps, and feed a
campaign-specific bounded ring. Neither upstream control frames, pairing messages,
MA credentials nor client-selected identities may reach listeners. The new strict
WAV-to-PCM fixture pipeline exercises only local PCM validation/distribution, not
that handshake or time mapping.
No SDK dependency has been installed, copied, adopted or bundled. The distribution
is Apache-2.0 and its declared client dependencies include aiohttp, cpace,
cryptography, mashumaro, noiseprotocol, orjson and zeroconf; a locked transitive and
codec review is still required before adoption. The SDK's own README calls its
client a test/reference client. No compatibility claim follows from API inspection.
Infrastructure needed for a live receiver experiment: isolated non-root worker,
private writable identity/trust storage (0700/0600), operator-approved persistent
receiver identity, explicit pairing to the pinned MA server, and an operator update
to the account's nonempty player filter/target binding after verifying the new
identity. The current authorization covers only Adaptive Music DEV, so no additional
receiver identity was registered or selected. No mDNS advertisement, MA source edit,
internal virtual-player API, grouping or production configuration was used.
+127
View File
@@ -0,0 +1,127 @@
# Upstream source audit
Inspected 2026-12-03 using GitHub release metadata, shallow tagged Git checkouts and
PyPI source distribution. Full commits and selected file SHA-256 values are in
[upstream.json](upstream.json). Checkouts are ignored under .local/upstream; no
install hooks or upstream application code executed. Hashes establish reproducibility,
not signature verification or a security audit. Release selection excludes drafts
and prereleases; package version placeholders are not reliable release identifiers.
| Component | Inspected release | Role | License |
| --- | --- | --- | --- |
| Sayshal/vgmusic | release-1.4.5 | Latest stable observed; behavioral reference | MIT |
| music-assistant/server | 2.10.6 | Deployment target source | Apache-2.0 |
| music-assistant/frontend | 2.17.297 | Exact server dependency | Apache-2.0 |
| sendspin/sendspin-js | 5.0.0 | Exact pinned frontend dependency | Apache-2.0 |
| sendspin/sendspin-js | 6.1.0 | Latest stable observed; comparison only | Apache-2.0 |
| aiosendspin | 9.1.1 | Exact server Sendspin dependency; PyPI sdist | Apache-2.0 |
Latest frontend release observed was 2.17.388 at commit
e19509049634795d69abd4dec417f1281201deb8, pinning Sendspin JS 6.1.0. It was inspected
for comparison before checking out the server-pinned frontend. Latest MA stable
observed was 2.10.15. Neither is a recommendation to upgrade production.
## VGM findings
[Release source](https://github.com/Sayshal/vgmusic/tree/eba07a08c9925f31b9c8adb72faf95de11ae705c)
contains module.json declaring Foundry minimum/verified 14 and **requires 3ds-atlas**.
`package.json` has no runtime npm dependencies; development dependencies include
Rollup, Terser, ESLint/JSDoc, Prettier, Stylelint, lint-staged, copy and PostCSS
plugins. Its package-lock has 396 non-root package entries. At the initial source audit, no npm vulnerability
scan or install was run because Node/npm were absent. The later prototype uses no
third-party packages and has not installed or audited VGM development dependencies. This is an inventory, not a
finding that dependencies are safe. Manifest version/download are build placeholders
and package.json says 1.0.0; GitHub stable release tag is the version evidence.
`scripts/music-controller.mjs` uses ATLAS primary-GM arbitration/logging, resolves
scene/combat/token/actor contexts, pauses/restores track offsets via document flags,
and stops per-playlist sounds to avoid reseeding shuffle. `scripts/hooks.mjs` listens
to core combat, scene, token and actor hooks; other source includes optional
Calendaria and Minstrel interaction. These integrations are not required by this
project. Snapshot concept is useful, but no MA provider, secure gateway, campaign
isolation or demonstrated full queue restoration was found. MIT permits reuse with
the copyright and permission notice; see THIRD-PARTY-NOTICES.
## Music Assistant API findings (2.10.6 source)
All paths below are within
[the pinned server](https://github.com/music-assistant/server/tree/c24866405bd2068c25a60e1014e5ef8c3f6445bb).
- `music_assistant/controllers/webserver/controller.py`: GET `/info`, GET `/ws`,
POST `/api`, generated `/api-docs/commands.json`, schemas and OpenAPI routes.
Source identifies these routes; only `/` and `/info` were probed live: initially timed out, now both HTTP 200
with `/info` reporting 2.10.6. No authenticated API command has been sent.
- `websocket_client.py`: server info on connect, command envelopes parsed as
CommandMessage (`message_id`, `command`, `args` as used by frontend), special
`auth` command with token; authenticated event subscriptions. Not a generic
arbitrary JSON-RPC-over-WebSocket assumption. HTTP API has separate JSON-RPC handler.
- `auth.py` and `helpers/auth_middleware.py`: built-in credential and token paths,
`auth/login`, `auth/token/create`, `auth/token/revoke`, scopes, player/provider
filters and Bearer-header support. No credentials used, account created or token
minted. Effective least-privilege scopes must be checked in an authorized test.
- `player_queues/controller.py`: `all/get/items` (items default limit 500 and offset),
`play_media`, `play_index`, `seek`, `pause/resume`, `shuffle/repeat`, `transfer`.
`play_media` accepts queue_id, media, option, start_item and shuffle among others.
Seek rejects no-duration or out-of-range media. Queue read/control scopes are
declared, but do not assume all handlers enforce identical resource filters.
`_check_player_permission` permits an own-client exception and tests a *nonempty*
player filter; empty filters are not restrictive. Gateway must independently
validate all resources, methods, arguments and returned metadata.
- No public atomic full queue snapshot/restore pair found in the inspected controller.
Rebuilding requires ordered items, duplicate occurrence/index, position, mode and
state; shuffled future order and dynamic playlists remain PoC questions.
- `providers/sendspin/manifest.json`: builtin beta-stage provider;
`aiosendspin[server]==9.1.1`, `av==16.1.0`. Server pyproject requires Python >=3.14
and frontend==2.17.297; sandbox Python 3.12 cannot run this MA server version.
## Sendspin findings
[Pinned frontend](https://github.com/music-assistant/frontend/tree/e779b9d359e47cd210c2801f16a0ce6263571903)
`package.json` pins Sendspin JS **5.0.0**. `src/plugins/sendspin-connection.ts` wraps
WebSocket authentication `{type:"auth", token, client_id}` and provides alternate
remote DataChannel handling. We will not enable MA remote mode.
MA `controllers/webserver/sendspin_proxy.py` authenticates the first message then
forwards bidirectionally, optionally registering the chosen client ID with that
session. Authentication is not demonstrated campaign-level authorization. No claim
that forwarding this socket safely restricts listeners is justified.
[Sendspin JS 5.0.0 source](https://github.com/Sendspin/sendspin-js/tree/7d103075138dda5c8909045647bb42b33c2d44fc)
uses Noise transport and advertises `player@v1`, `controller@v1`, `metadata@v1` in
`src/core/protocol-handler.ts`. Codec type includes PCM, FLAC and Opus; browser code
uses AudioContext/WebCodecs and an opus-encdec fallback. Comments identify Firefox
Opus limitations; those are upstream claims, not tested here. Both inspected JS
versions depend on @noble/ciphers, @noble/curves, @noble/hashes and opus-encdec.
5.0.0 and 6.1.0 package version fields are 0.1.0 build placeholders. Both require
Node >=20.19.0. Pin release tags/commits and verify published package before adoption.
aiosendspin 9.1.1 sdist SHA-256 matches PyPI metadata. It requires Python >=3.12 and
has client/server implementations with protocol version 1, Noise, legacy transport
handling, pairing and role machinery. Runtime dependencies: aiohttp, cpace,
cryptography, mashumaro, noiseprotocol, orjson, zeroconf; optional server adds av,
numpy and pillow. Source was extracted safely and inspected, not installed or run.
It is a plausible gateway-worker candidate, not a verified compatible solution.
All transitive licenses (especially bundled codec/WASM assets), distribution NOTICE
files and vulnerability results must be reviewed before packaging dependencies.
No runtime dependency has been adopted by Adaptive Music at this milestone.
## Foundry public API evidence
Official [v14 Playlist API](https://foundryvtt.com/api/classes/foundry.documents.Playlist.html)
and [PlaylistSound API](https://foundryvtt.com/api/classes/foundry.documents.PlaylistSound.html)
were inspected. Public Playlist playback and document update APIs are the native
adapter boundary. A v14 API reference and VGM's v14 manifest do not verify behavior
on build 14.371. No Foundry binaries or proprietary source were obtained.
## Implementation follow-through — 2026-12-03
Selected pins and hashes still pass `verify_upstream.py`. The native prototype
adapts the VGM per-sound update/pausedTime pattern with its 2025 3 Death Saves MIT
notice. Core policy and local GM/settings/hooks are new code; ATLAS and optional
integrations were not copied. No upstream runtime dependency was installed.
The official v14 Playlist/PlaylistSound public API pages were rechecked; they remain
API references, not build 14.371 playback evidence. Native document tests are mocks.
MA PoC uses the source-inspected HTTP envelope (raw response, not a JSON-RPC result
wrapper). Account-role/token limitations are recorded in gateway/README.md.
+31
View File
@@ -0,0 +1,31 @@
{
"checked_at": "2026-12-03T20:37:24.512Z",
"evidence_class": "real Chromium localhost SDK PCM decoder/WebAudio/WebRTC; synthetic input; socket relay shim, not Foundry or MA",
"browser": "143.0.7499.4",
"listeners": 2,
"first_all_listeners_signal_ms": 1757,
"observation_seconds": 4.766,
"sdk_decoded_frames": 255,
"listeners_measured": [
{
"rms": 0.05391,
"peak_hz": 445.3125
},
{
"rms": 0.05396,
"peak_hz": 445.3125
}
],
"gm_rtp_bytes_sent": 25198,
"aggregate_media_kbps": 42.3,
"signaling_messages": 4,
"max_signal_bytes": 2078,
"socket_payloads_are_encrypted_control_only": true,
"turn_used": false,
"public_network_test": false,
"ma_handshake_test": false,
"ma_audio_playback": false,
"interlistener_skew_measured": false,
"autoplay_gesture": "actual page click",
"sandbox_note": "headless browser only used --no-sandbox; not a deployment setting"
}
+22
View File
@@ -0,0 +1,22 @@
{
"checked_at": "2026-12-03T20:42:10.993912+00:00",
"source": "official GitHub Git-ref API; no planned Gitea access",
"actions": [
{
"repository": "actions/checkout",
"version": "v4.2.2",
"commit": "11bd71901bbe5b1630ceea73d27597364c9af683"
},
{
"repository": "actions/upload-artifact",
"version": "v4.6.2",
"commit": "ea165f8d65b6e75b540449e92b4886f43607fa02"
},
{
"repository": "actions/upload-artifact",
"version": "v3.2.2",
"commit": "c6a366c94c3e0affe28c06c8df20a878f24da3cf"
}
],
"execution": "not run on either hosting platform; Gitea artifact protocol needs instance compatibility check"
}
+12
View File
@@ -0,0 +1,12 @@
{
"checked_at": "2026-12-03T19:56:36.693Z",
"evidence_class": "live MA reads through local companion and browser-safe client; no real Foundry browser",
"target": "verified",
"playlists": 11,
"radios": 1,
"browser_payloads_private": true,
"playback_enabled": false,
"mutations_sent": 0,
"foundry_verified": false,
"tls_verified": false
}
+21
View File
@@ -0,0 +1,21 @@
{
"checked_at": "2026-12-03T16:17:30.410831+00:00",
"authenticated": false,
"results": [
{
"path": "/",
"status": 200,
"content_type": "text/html",
"bytes": 31252,
"elapsed_seconds": 0.0
},
{
"path": "/info",
"status": 200,
"content_type": "application/json; charset=utf-8",
"bytes": 386,
"elapsed_seconds": 0.0
}
],
"server_version": "2.10.6"
}
+405
View File
@@ -0,0 +1,405 @@
UTC 2026-12-03T20:59:41.184630+00:00
Evidence: offline regressions/source/package checks. Separate actual synthetic browser and live read-only MA results are in browser-audio.json and module-only-prerequisites.json. No live MA audio/Foundry/WAN verification.
$ node --version
v24.23.0
exit=0
$ npm --version
11.21.3
exit=0
$ python3 --version
Python 3.12.3
exit=0
$ npm test
> adaptive-music@0.5.0 test
> node --test tests/js/*.test.mjs
✔ catalog paginates, strips private metadata and filters unapproved mappings (38.46361ms)
✔ empty provider allowlist denies without I/O; malformed and endless pages fail (20.827361ms)
✔ target validation rejects group, changed identity and unavailable player (1.374042ms)
✔ synthetic audio isolates simultaneous campaigns and copies every frame (0.435995ms)
✔ audio denies forged origin/session/role, unknown fields and cross-campaign grants (0.222736ms)
✔ active listener revocation/expiry and slow-client overflow close handles (0.404296ms)
✔ synthetic source rejects stale sessions/generations, oversized frames; connections are bounded (0.35765ms)
✔ catalog authorization denies listener and injection before upstream (0.360554ms)
✔ scene/combat configuration preserves independent flags and stores only tagged references (1.270817ms)
✔ role loss, stale selection and arbitrary URL/ID fail before document write (0.329095ms)
✔ editor uses text for catalog labels and rechecks GM on actual save event (0.360413ms)
✔ configuration hook disposal prevents pending asynchronous render from mounting (0.195415ms)
✔ packaged browser client connects through real loopback companion/MA wire fixtures and restores combat queue (96.38079ms)
✔ companion denies listener control, wrong scope/Origin, upstream injection and unknown routes (9.391963ms)
✔ browser accepts only relative same-origin paths and never persists a connection grant (0.171381ms)
✔ companion operation replay is idempotent and same ID with changed payload is denied (12.023186ms)
✔ companion listener stream rejects controller grant and closes on live revocation and expiry (90.295314ms)
✔ catalog revocation during upstream I/O suppresses the response at the companion boundary (6.811085ms)
✔ policy precedence and explicit silence (1.288631ms)
✔ inactive, unstarted and other scene combats ignored; boss ties stable (3.916738ms)
✔ scene -> combat -> boss -> nested manual -> unwind restores offsets, duplicates and pause (1.549288ms)
✔ scene change during manual never resurrects previous scene (0.270146ms)
✔ boss removed during manual and deleted combat cannot return (0.290985ms)
✔ duplicate intent causes zero provider mutations (0.138488ms)
✔ prepare failure leaves current playback intact (0.445754ms)
✔ partial apply failure restores outgoing playback (0.220112ms)
✔ obsolete async resolve is rejected before stop/apply (0.243806ms)
✔ lease loss during stop prevents apply and stale rollback (0.231364ms)
✔ provider switch and bounded nested stack (0.299902ms)
✔ no authority retains playback without provider access (0.105036ms)
✔ queued state is captured at submission rather than read after caller mutation (0.06934ms)
✔ supersession after snapshot prevents mutations (0.16576ms)
✔ failed cross-provider apply cleans new owned audio before outgoing restoration (0.147205ms)
✔ superseded cross-provider apply is reconciled by stopping partially touched target (0.166159ms)
✔ extracted companion launches privately with fixture credentials, serves catalog diagnostics and listener PCM (193.762492ms)
✔ gateway binds target server-side and sanitizes metadata (1.054182ms)
✔ forged, wrong origin/campaign/session and unknown args deny before upstream (0.367508ms)
✔ listener cannot read queues or acquire controller lease (0.162183ms)
✔ expiry, revocation, stale fence and replay reject (0.269445ms)
✔ lease cannot be stolen and increases fence after revoke (0.138238ms)
✔ revocation during upstream I/O suppresses response (0.705801ms)
✔ MA adapter uses pinned envelope, Bearer header, fixed path, no redirects and returns no metadata (12.7784ms)
✔ MA mismatched queue, upstream failures and redirects fail with sanitized errors (1.87536ms)
✔ MA rejects URL credentials, query/fragment, paths and non-HTTP configuration (0.214121ms)
✔ MA read adapter performs real local HTTP POST against an isolated fixture (16.7976ms)
✔ signaling is confidential, per-listener authenticated, scoped and replay resistant (6.537352ms)
✔ signaling denies expired invitation, unknown/audio message types and unapproved TURN secrets (0.630831ms)
✔ GM browser policy refuses mixed content and SDK identity mismatch before any MA connection (0.568644ms)
✔ official pinned SDK decodes real binary PCM frames and discards stale generations (0.309118ms)
✔ parallel signaling replay cannot pass the asynchronous authentication check twice (1.495718ms)
✔ GM API WebSocket adapter authenticates privately, assembles partial results and refuses broad commands (14.752335ms)
✔ loopback transport denies unauthenticated, cross-campaign, controller, query and wrong-origin requests (14.358346ms)
✔ loopback streams synthetic PCM bytes and closes an active stream on revocation (41.212213ms)
✔ loopback closes idle synthetic stream when its listener capability expires (21.925676ms)
✔ MA snapshots ordered duplicate occurrences, pause and seek then reconstructs exact unshuffled order (7.914799ms)
✔ tampered, foreign/future snapshots and stale authority deny before MA mutations (1.351109ms)
✔ shuffled snapshot fails before interruption rather than promising exact restore (0.158526ms)
✔ prepared media cannot be forged and stale generations cannot issue controls (0.190847ms)
✔ every wire mutation revalidates exact identity/topology and uses fixed dedicated queue (14.987794ms)
✔ queue injection, transfer, arbitrary media URL and authority loss deny without writes (0.548456ms)
✔ catalog IDs survive independent adapter construction and differ across campaigns (2.585898ms)
✔ same-generation duplicate controls and restores issue no duplicate mutations (0.707344ms)
✔ MA provider with mock MA client composes with controller for nested contexts and rapid supersession (3.595579ms)
✔ ambiguous wire mutation failure latches closed instead of retrying or restoring blindly (0.911135ms)
✔ listener cannot obtain a playback fence guard or renew a controller lease (0.765943ms)
✔ playlist preparation expands approved ordered tracks before any playback mutation (0.954477ms)
✔ installable development entry defaults automation off and imports no gateway (7.147644ms)
✔ native captures actual offset and paused state, stops per sound, restores repeat/volume (1.230282ms)
✔ native resolves sequential playlist and touches only owned documents (0.396662ms)
✔ native rejects unsupported shuffle and empty playlist (0.118061ms)
✔ native rejects expired tracks, changed playlist membership and foreign/future snapshots before mutation (0.157575ms)
✔ native reports nonseekable restoration and clamps near-end seek (0.142567ms)
✔ scene-linked playlist conflict and lost authority fail before mutation (0.18704ms)
✔ GM election deterministic and no GM means none (4.923312ms)
✔ Foundry bootstrap registers local settings/hooks and disposes without ambient or actor access (0.768578ms)
✔ synthetic WAV termination emits fixed PCM frames through campaign listener authorization (0.871321ms)
✔ malformed, truncated and incompatible WAV formats fail closed before PCM publication (6.066001ms)
✔ credential loader rejects permissive modes, symlinks and malformed secrets (4.9003ms)
✔ private catalog identity key persists and unsafe key permissions fail (53.152506ms)
✔ scene assignments persist independently and world defaults/boss priority resolve without actor schemas (1.187302ms)
✔ native fallback is explicit, manual silence wins and legacy ambient does not resurrect after clearing (0.690973ms)
✔ unavailable saved MA selections are preserved but new forged IDs/non-native fallback and role loss deny (0.380373ms)
✔ GM setup connects catalog into independent scene editors and never persists its connection code (1.961399ms)
✔ browser PCM sink resumes from gesture, decodes stereo frames and closes its context on stream end (16.382984ms)
ℹ tests 84
ℹ suites 0
ℹ pass 84
ℹ fail 0
ℹ cancelled 0
ℹ skipped 0
ℹ todo 0
ℹ duration_ms 1326.873707
exit=0
$ python3 -m unittest discover -s tests -v
test_companion_is_separate_complete_and_excludes_private_configuration (test_package.DevelopmentPackageTests.test_companion_is_separate_complete_and_excludes_private_configuration) ... ok
test_package_excludes_gateway_private_state_and_false_verification (test_package.DevelopmentPackageTests.test_package_excludes_gateway_private_state_and_false_verification) ... ok
test_complete_offline_bundle_is_repeatable_and_checksums_match (test_release.ReleaseTests.test_complete_offline_bundle_is_repeatable_and_checksums_match) ... ok
test_gitea_github_stable_manifest_and_immutable_download_contract (test_release.ReleaseTests.test_gitea_github_stable_manifest_and_immutable_download_contract) ... ok
test_source_archive_rebuild_does_not_need_a_git_remote_or_metadata (test_release.ReleaseTests.test_source_archive_rebuild_does_not_need_a_git_remote_or_metadata) ... ok
test_tampered_manifest_or_missing_asset_is_rejected (test_release.ReleaseTests.test_tampered_manifest_or_missing_asset_is_rejected) ... ok
test_documentation_versions_are_not_private_addresses (test_repository.RepositorySafetyTests.test_documentation_versions_are_not_private_addresses) ... ok
test_embedded_url_credentials_rejected (test_repository.RepositorySafetyTests.test_embedded_url_credentials_rejected) ... ok
test_key_material_rejected (test_repository.RepositorySafetyTests.test_key_material_rejected) ... ok
test_network_evidence_is_unauthenticated (test_repository.RepositorySafetyTests.test_network_evidence_is_unauthenticated) ... ok
test_private_addresses_rejected (test_repository.RepositorySafetyTests.test_private_addresses_rejected) ... ok
test_private_config_rejected_even_when_forced_into_git (test_repository.RepositorySafetyTests.test_private_config_rejected_even_when_forced_into_git) ... ok
test_private_paths_are_ignored (test_repository.RepositorySafetyTests.test_private_paths_are_ignored) ... ok
test_provenance_pins_have_hashes (test_repository.RepositorySafetyTests.test_provenance_pins_have_hashes) ... ok
test_repository_guardrails (test_repository.RepositorySafetyTests.test_repository_guardrails) ... ok
----------------------------------------------------------------------
Ran 15 tests in 0.209s
OK
exit=0
$ python3 scripts/audit_repository.py
PASS: repository privacy/attribution guardrails
exit=0
$ python3 scripts/verify_upstream.py
PASS: all recorded Git heads, source and distribution file hashes
exit=0
$ git diff --check
exit=0
Final after peer signaling bound/tests:
$ npm test
> adaptive-music@0.5.0 test
> node --test tests/js/*.test.mjs
✔ catalog paginates, strips private metadata and filters unapproved mappings (34.489068ms)
✔ empty provider allowlist denies without I/O; malformed and endless pages fail (19.785397ms)
✔ target validation rejects group, changed identity and unavailable player (0.905344ms)
✔ synthetic audio isolates simultaneous campaigns and copies every frame (0.447057ms)
✔ audio denies forged origin/session/role, unknown fields and cross-campaign grants (0.209794ms)
✔ active listener revocation/expiry and slow-client overflow close handles (0.258885ms)
✔ synthetic source rejects stale sessions/generations, oversized frames; connections are bounded (0.312956ms)
✔ catalog authorization denies listener and injection before upstream (0.324718ms)
✔ scene/combat configuration preserves independent flags and stores only tagged references (1.271449ms)
✔ role loss, stale selection and arbitrary URL/ID fail before document write (0.321131ms)
✔ editor uses text for catalog labels and rechecks GM on actual save event (0.353852ms)
✔ configuration hook disposal prevents pending asynchronous render from mounting (0.188401ms)
✔ packaged browser client connects through real loopback companion/MA wire fixtures and restores combat queue (96.734315ms)
✔ companion denies listener control, wrong scope/Origin, upstream injection and unknown routes (8.058096ms)
✔ browser accepts only relative same-origin paths and never persists a connection grant (0.173145ms)
✔ companion operation replay is idempotent and same ID with changed payload is denied (11.338403ms)
✔ companion listener stream rejects controller grant and closes on live revocation and expiry (91.136521ms)
✔ catalog revocation during upstream I/O suppresses the response at the companion boundary (7.375589ms)
✔ policy precedence and explicit silence (1.319699ms)
✔ inactive, unstarted and other scene combats ignored; boss ties stable (4.027014ms)
✔ scene -> combat -> boss -> nested manual -> unwind restores offsets, duplicates and pause (1.273683ms)
✔ scene change during manual never resurrects previous scene (0.207358ms)
✔ boss removed during manual and deleted combat cannot return (0.249657ms)
✔ duplicate intent causes zero provider mutations (0.114244ms)
✔ prepare failure leaves current playback intact (0.378869ms)
✔ partial apply failure restores outgoing playback (0.232705ms)
✔ obsolete async resolve is rejected before stop/apply (0.222235ms)
✔ lease loss during stop prevents apply and stale rollback (4.212221ms)
✔ provider switch and bounded nested stack (0.292198ms)
✔ no authority retains playback without provider access (0.105488ms)
✔ queued state is captured at submission rather than read after caller mutation (0.09027ms)
✔ supersession after snapshot prevents mutations (0.166812ms)
✔ failed cross-provider apply cleans new owned audio before outgoing restoration (0.16018ms)
✔ superseded cross-provider apply is reconciled by stopping partially touched target (0.177582ms)
✔ extracted companion launches privately with fixture credentials, serves catalog diagnostics and listener PCM (201.412951ms)
✔ gateway binds target server-side and sanitizes metadata (1.013095ms)
✔ forged, wrong origin/campaign/session and unknown args deny before upstream (0.391262ms)
✔ listener cannot read queues or acquire controller lease (0.179616ms)
✔ expiry, revocation, stale fence and replay reject (0.201757ms)
✔ lease cannot be stolen and increases fence after revoke (0.129522ms)
✔ revocation during upstream I/O suppresses response (0.134181ms)
✔ MA adapter uses pinned envelope, Bearer header, fixed path, no redirects and returns no metadata (16.0455ms)
✔ MA mismatched queue, upstream failures and redirects fail with sanitized errors (1.798383ms)
✔ MA rejects URL credentials, query/fragment, paths and non-HTTP configuration (0.211004ms)
✔ MA read adapter performs real local HTTP POST against an isolated fixture (16.105082ms)
✔ signaling is confidential, per-listener authenticated, scoped and replay resistant (6.635415ms)
✔ signaling denies expired invitation, unknown/audio message types and unapproved TURN secrets (0.54029ms)
✔ GM browser policy refuses mixed content and SDK identity mismatch before any MA connection (0.715168ms)
✔ official pinned SDK decodes real binary PCM frames and discards stale generations (0.248766ms)
✔ parallel signaling replay cannot pass the asynchronous authentication check twice (1.826007ms)
✔ GM API WebSocket adapter authenticates privately, assembles partial results and refuses broad commands (12.583653ms)
✔ peer signaling bounds queued work and rejects expired invites before allocating a connection (25.202933ms)
✔ loopback transport denies unauthenticated, cross-campaign, controller, query and wrong-origin requests (12.953336ms)
✔ loopback streams synthetic PCM bytes and closes an active stream on revocation (43.258833ms)
✔ loopback closes idle synthetic stream when its listener capability expires (22.15983ms)
✔ MA snapshots ordered duplicate occurrences, pause and seek then reconstructs exact unshuffled order (7.12461ms)
✔ tampered, foreign/future snapshots and stale authority deny before MA mutations (0.866281ms)
✔ shuffled snapshot fails before interruption rather than promising exact restore (0.122439ms)
✔ prepared media cannot be forged and stale generations cannot issue controls (0.207959ms)
✔ every wire mutation revalidates exact identity/topology and uses fixed dedicated queue (15.898154ms)
✔ queue injection, transfer, arbitrary media URL and authority loss deny without writes (0.583201ms)
✔ catalog IDs survive independent adapter construction and differ across campaigns (1.436568ms)
✔ same-generation duplicate controls and restores issue no duplicate mutations (0.550701ms)
✔ MA provider with mock MA client composes with controller for nested contexts and rapid supersession (3.584397ms)
✔ ambiguous wire mutation failure latches closed instead of retrying or restoring blindly (0.947353ms)
✔ listener cannot obtain a playback fence guard or renew a controller lease (0.867032ms)
✔ playlist preparation expands approved ordered tracks before any playback mutation (1.429755ms)
✔ installable development entry defaults automation off and imports no gateway (7.558522ms)
✔ native captures actual offset and paused state, stops per sound, restores repeat/volume (1.465481ms)
✔ native resolves sequential playlist and touches only owned documents (0.502239ms)
✔ native rejects unsupported shuffle and empty playlist (0.147065ms)
✔ native rejects expired tracks, changed playlist membership and foreign/future snapshots before mutation (0.194464ms)
✔ native reports nonseekable restoration and clamps near-end seek (0.177542ms)
✔ scene-linked playlist conflict and lost authority fail before mutation (0.220453ms)
✔ GM election deterministic and no GM means none (4.613983ms)
✔ Foundry bootstrap registers local settings/hooks and disposes without ambient or actor access (0.664022ms)
✔ synthetic WAV termination emits fixed PCM frames through campaign listener authorization (0.875678ms)
✔ malformed, truncated and incompatible WAV formats fail closed before PCM publication (5.881385ms)
✔ credential loader rejects permissive modes, symlinks and malformed secrets (5.428296ms)
✔ private catalog identity key persists and unsafe key permissions fail (41.697223ms)
✔ scene assignments persist independently and world defaults/boss priority resolve without actor schemas (1.144961ms)
✔ native fallback is explicit, manual silence wins and legacy ambient does not resurrect after clearing (1.34135ms)
✔ unavailable saved MA selections are preserved but new forged IDs/non-native fallback and role loss deny (0.431697ms)
✔ GM setup connects catalog into independent scene editors and never persists its connection code (2.344586ms)
✔ browser PCM sink resumes from gesture, decodes stereo frames and closes its context on stream end (17.582896ms)
ℹ tests 85
ℹ suites 0
ℹ pass 85
ℹ fail 0
ℹ cancelled 0
ℹ skipped 0
ℹ todo 0
ℹ duration_ms 1347.229561
$ python3 -m unittest discover -s tests -v
test_companion_is_separate_complete_and_excludes_private_configuration (test_package.DevelopmentPackageTests.test_companion_is_separate_complete_and_excludes_private_configuration) ... ok
test_package_excludes_gateway_private_state_and_false_verification (test_package.DevelopmentPackageTests.test_package_excludes_gateway_private_state_and_false_verification) ... ok
test_complete_offline_bundle_is_repeatable_and_checksums_match (test_release.ReleaseTests.test_complete_offline_bundle_is_repeatable_and_checksums_match) ... ok
test_gitea_github_stable_manifest_and_immutable_download_contract (test_release.ReleaseTests.test_gitea_github_stable_manifest_and_immutable_download_contract) ... ok
test_source_archive_rebuild_does_not_need_a_git_remote_or_metadata (test_release.ReleaseTests.test_source_archive_rebuild_does_not_need_a_git_remote_or_metadata) ... ok
test_tampered_manifest_or_missing_asset_is_rejected (test_release.ReleaseTests.test_tampered_manifest_or_missing_asset_is_rejected) ... ok
test_documentation_versions_are_not_private_addresses (test_repository.RepositorySafetyTests.test_documentation_versions_are_not_private_addresses) ... ok
test_embedded_url_credentials_rejected (test_repository.RepositorySafetyTests.test_embedded_url_credentials_rejected) ... ok
test_key_material_rejected (test_repository.RepositorySafetyTests.test_key_material_rejected) ... ok
test_network_evidence_is_unauthenticated (test_repository.RepositorySafetyTests.test_network_evidence_is_unauthenticated) ... ok
test_private_addresses_rejected (test_repository.RepositorySafetyTests.test_private_addresses_rejected) ... ok
test_private_config_rejected_even_when_forced_into_git (test_repository.RepositorySafetyTests.test_private_config_rejected_even_when_forced_into_git) ... ok
test_private_paths_are_ignored (test_repository.RepositorySafetyTests.test_private_paths_are_ignored) ... ok
test_provenance_pins_have_hashes (test_repository.RepositorySafetyTests.test_provenance_pins_have_hashes) ... ok
test_repository_guardrails (test_repository.RepositorySafetyTests.test_repository_guardrails) ... ok
----------------------------------------------------------------------
Ran 15 tests in 0.193s
OK
Final backend mutual-exclusion check:
$ npm test
> adaptive-music@0.5.0 test
> node --test tests/js/*.test.mjs
✔ catalog paginates, strips private metadata and filters unapproved mappings (34.696629ms)
✔ empty provider allowlist denies without I/O; malformed and endless pages fail (20.325816ms)
✔ target validation rejects group, changed identity and unavailable player (1.810717ms)
✔ synthetic audio isolates simultaneous campaigns and copies every frame (0.554908ms)
✔ audio denies forged origin/session/role, unknown fields and cross-campaign grants (0.381735ms)
✔ active listener revocation/expiry and slow-client overflow close handles (0.470911ms)
✔ synthetic source rejects stale sessions/generations, oversized frames; connections are bounded (0.358902ms)
✔ catalog authorization denies listener and injection before upstream (0.314629ms)
✔ scene/combat configuration preserves independent flags and stores only tagged references (1.750965ms)
✔ role loss, stale selection and arbitrary URL/ID fail before document write (0.331429ms)
✔ editor uses text for catalog labels and rechecks GM on actual save event (0.414065ms)
✔ configuration hook disposal prevents pending asynchronous render from mounting (0.190486ms)
✔ packaged browser client connects through real loopback companion/MA wire fixtures and restores combat queue (100.68071ms)
✔ companion denies listener control, wrong scope/Origin, upstream injection and unknown routes (8.076499ms)
✔ browser accepts only relative same-origin paths and never persists a connection grant (0.16008ms)
✔ companion operation replay is idempotent and same ID with changed payload is denied (11.60538ms)
✔ companion listener stream rejects controller grant and closes on live revocation and expiry (90.26337ms)
✔ catalog revocation during upstream I/O suppresses the response at the companion boundary (6.482046ms)
✔ policy precedence and explicit silence (1.518581ms)
✔ inactive, unstarted and other scene combats ignored; boss ties stable (4.045799ms)
✔ scene -> combat -> boss -> nested manual -> unwind restores offsets, duplicates and pause (1.253274ms)
✔ scene change during manual never resurrects previous scene (0.222587ms)
✔ boss removed during manual and deleted combat cannot return (0.291025ms)
✔ duplicate intent causes zero provider mutations (0.125034ms)
✔ prepare failure leaves current playback intact (0.343953ms)
✔ partial apply failure restores outgoing playback (0.183673ms)
✔ obsolete async resolve is rejected before stop/apply (0.309378ms)
✔ lease loss during stop prevents apply and stale rollback (0.230632ms)
✔ provider switch and bounded nested stack (1.168335ms)
✔ no authority retains playback without provider access (0.107982ms)
✔ queued state is captured at submission rather than read after caller mutation (0.068407ms)
✔ supersession after snapshot prevents mutations (0.16593ms)
✔ failed cross-provider apply cleans new owned audio before outgoing restoration (0.168415ms)
✔ superseded cross-provider apply is reconciled by stopping partially touched target (0.173114ms)
✔ extracted companion launches privately with fixture credentials, serves catalog diagnostics and listener PCM (196.285252ms)
✔ gateway binds target server-side and sanitizes metadata (0.985664ms)
✔ forged, wrong origin/campaign/session and unknown args deny before upstream (0.376113ms)
✔ listener cannot read queues or acquire controller lease (0.188895ms)
✔ expiry, revocation, stale fence and replay reject (0.190857ms)
✔ lease cannot be stolen and increases fence after revoke (0.121416ms)
✔ revocation during upstream I/O suppresses response (0.738723ms)
✔ MA adapter uses pinned envelope, Bearer header, fixed path, no redirects and returns no metadata (13.573212ms)
✔ MA mismatched queue, upstream failures and redirects fail with sanitized errors (1.742879ms)
✔ MA rejects URL credentials, query/fragment, paths and non-HTTP configuration (0.191988ms)
✔ MA read adapter performs real local HTTP POST against an isolated fixture (15.582672ms)
✔ signaling is confidential, per-listener authenticated, scoped and replay resistant (6.879711ms)
✔ signaling denies expired invitation, unknown/audio message types and unapproved TURN secrets (0.633104ms)
✔ GM browser policy refuses mixed content and SDK identity mismatch before any MA connection (0.540021ms)
✔ official pinned SDK decodes real binary PCM frames and discards stale generations (0.258925ms)
✔ parallel signaling replay cannot pass the asynchronous authentication check twice (1.449151ms)
✔ GM API WebSocket adapter authenticates privately, assembles partial results and refuses broad commands (12.419294ms)
✔ peer signaling bounds queued work and rejects expired invites before allocating a connection (24.838497ms)
✔ loopback transport denies unauthenticated, cross-campaign, controller, query and wrong-origin requests (13.373719ms)
✔ loopback streams synthetic PCM bytes and closes an active stream on revocation (42.631304ms)
✔ loopback closes idle synthetic stream when its listener capability expires (21.663446ms)
✔ MA snapshots ordered duplicate occurrences, pause and seek then reconstructs exact unshuffled order (8.238082ms)
✔ tampered, foreign/future snapshots and stale authority deny before MA mutations (1.022132ms)
✔ shuffled snapshot fails before interruption rather than promising exact restore (0.140523ms)
✔ prepared media cannot be forged and stale generations cannot issue controls (0.198481ms)
✔ every wire mutation revalidates exact identity/topology and uses fixed dedicated queue (15.718245ms)
✔ queue injection, transfer, arbitrary media URL and authority loss deny without writes (0.588681ms)
✔ catalog IDs survive independent adapter construction and differ across campaigns (2.752148ms)
✔ same-generation duplicate controls and restores issue no duplicate mutations (0.661507ms)
✔ MA provider with mock MA client composes with controller for nested contexts and rapid supersession (3.769762ms)
✔ ambiguous wire mutation failure latches closed instead of retrying or restoring blindly (0.612365ms)
✔ listener cannot obtain a playback fence guard or renew a controller lease (0.730557ms)
✔ playlist preparation expands approved ordered tracks before any playback mutation (2.677008ms)
✔ installable development entry defaults automation off and imports no gateway (9.722018ms)
✔ native captures actual offset and paused state, stops per sound, restores repeat/volume (4.196049ms)
✔ native resolves sequential playlist and touches only owned documents (0.489666ms)
✔ native rejects unsupported shuffle and empty playlist (0.149099ms)
✔ native rejects expired tracks, changed playlist membership and foreign/future snapshots before mutation (0.263082ms)
✔ native reports nonseekable restoration and clamps near-end seek (0.168274ms)
✔ scene-linked playlist conflict and lost authority fail before mutation (0.185315ms)
✔ GM election deterministic and no GM means none (3.762779ms)
✔ Foundry bootstrap registers local settings/hooks and disposes without ambient or actor access (0.648934ms)
✔ synthetic WAV termination emits fixed PCM frames through campaign listener authorization (0.819092ms)
✔ malformed, truncated and incompatible WAV formats fail closed before PCM publication (6.152892ms)
✔ credential loader rejects permissive modes, symlinks and malformed secrets (6.562927ms)
✔ private catalog identity key persists and unsafe key permissions fail (34.527232ms)
✔ scene assignments persist independently and world defaults/boss priority resolve without actor schemas (1.210996ms)
✔ native fallback is explicit, manual silence wins and legacy ambient does not resurrect after clearing (0.620279ms)
✔ unavailable saved MA selections are preserved but new forged IDs/non-native fallback and role loss deny (0.43879ms)
✔ GM setup connects catalog into independent scene editors and never persists its connection code (1.952823ms)
✔ browser PCM sink resumes from gesture, decodes stereo frames and closes its context on stream end (14.895866ms)
ℹ tests 85
ℹ suites 0
ℹ pass 85
ℹ fail 0
ℹ cancelled 0
ℹ skipped 0
ℹ todo 0
ℹ duration_ms 1347.263856
$ python3 -m unittest discover -s tests -v
test_companion_is_separate_complete_and_excludes_private_configuration (test_package.DevelopmentPackageTests.test_companion_is_separate_complete_and_excludes_private_configuration) ... ok
test_package_excludes_gateway_private_state_and_false_verification (test_package.DevelopmentPackageTests.test_package_excludes_gateway_private_state_and_false_verification) ... ok
test_complete_offline_bundle_is_repeatable_and_checksums_match (test_release.ReleaseTests.test_complete_offline_bundle_is_repeatable_and_checksums_match) ... ok
test_gitea_github_stable_manifest_and_immutable_download_contract (test_release.ReleaseTests.test_gitea_github_stable_manifest_and_immutable_download_contract) ... ok
test_source_archive_rebuild_does_not_need_a_git_remote_or_metadata (test_release.ReleaseTests.test_source_archive_rebuild_does_not_need_a_git_remote_or_metadata) ... ok
test_tampered_manifest_or_missing_asset_is_rejected (test_release.ReleaseTests.test_tampered_manifest_or_missing_asset_is_rejected) ... ok
test_documentation_versions_are_not_private_addresses (test_repository.RepositorySafetyTests.test_documentation_versions_are_not_private_addresses) ... ok
test_embedded_url_credentials_rejected (test_repository.RepositorySafetyTests.test_embedded_url_credentials_rejected) ... ok
test_key_material_rejected (test_repository.RepositorySafetyTests.test_key_material_rejected) ... ok
test_network_evidence_is_unauthenticated (test_repository.RepositorySafetyTests.test_network_evidence_is_unauthenticated) ... ok
test_private_addresses_rejected (test_repository.RepositorySafetyTests.test_private_addresses_rejected) ... ok
test_private_config_rejected_even_when_forced_into_git (test_repository.RepositorySafetyTests.test_private_config_rejected_even_when_forced_into_git) ... ok
test_private_paths_are_ignored (test_repository.RepositorySafetyTests.test_private_paths_are_ignored) ... ok
test_provenance_pins_have_hashes (test_repository.RepositorySafetyTests.test_provenance_pins_have_hashes) ... ok
test_repository_guardrails (test_repository.RepositorySafetyTests.test_repository_guardrails) ... ok
----------------------------------------------------------------------
Ran 15 tests in 0.184s
OK
$ python3 scripts/audit_repository.py
PASS: repository privacy/attribution guardrails
$ python3 scripts/verify_upstream.py
PASS: all recorded Git heads, source and distribution file hashes
+12
View File
@@ -0,0 +1,12 @@
{
"checked_at": "2026-12-03T17:24:19.084Z",
"target": {
"dedicated": true,
"available": true,
"standalone": true
},
"playlists": 11,
"radios": 1,
"sanitized": true,
"independent_adapter_ids_match": true
}
+12
View File
@@ -0,0 +1,12 @@
{
"evidence_class": "live dedicated MA control tests; no content playback",
"runs": [
{"checked_at":"2026-12-03T17:16:04.878Z","successful_mutations":9,"original_state":"empty idle queue","restored":true},
{"checked_at":"2026-12-03T17:24:18.937Z","successful_mutations":0,"result":"session mismatch denied before mutations; harness corrected"},
{"checked_at":"2026-12-03T17:24:30.986Z","successful_mutations":9,"original_state":"empty idle queue","restored":true}
],
"total_successful_mutations":18,
"content_playback_mutations":0,
"synthetic_ingestion": "five-second metadata request failed; longer diagnostic returned HTTP 400; no queue mutation",
"limitations": "No pause/resume/seek with content, ordered nonempty restore, live combat/boss/manual or actual MA playlist playback verified"
}
+50
View File
@@ -0,0 +1,50 @@
{
"checked_at": "2026-12-03T17:24:30.986Z",
"evidence_class": "live dedicated MA",
"mutations": 9,
"checks": [
{
"action": "shuffle",
"value": true,
"result": "pass",
"scope": "idle queue controls"
},
{
"action": "shuffle",
"value": false,
"result": "pass",
"scope": "idle queue controls"
},
{
"action": "repeat",
"value": "one",
"result": "pass",
"scope": "idle queue controls"
},
{
"action": "repeat",
"value": "all",
"result": "pass",
"scope": "idle queue controls"
},
{
"action": "repeat",
"value": "off",
"result": "pass",
"scope": "idle queue controls"
},
{
"action": "stop",
"value": null,
"result": "pass",
"scope": "idle queue controls"
}
],
"restored": true,
"isolation_verified": true,
"original": {
"state": "idle",
"items": 0,
"position": 0
}
}
+40
View File
@@ -0,0 +1,40 @@
{
"checked_at": "2026-12-03T16:58:07.948228+00:00",
"credential": {
"directory_mode": "0700",
"token_mode": "0600",
"git_ignored": true,
"token_absent_reachable_history": true,
"token_absent_tracked_files": true
},
"authentication": true,
"role": "user",
"player_filter_count": 1,
"provider_filter_count": 7,
"dedicated_name_matches": true,
"player_available": true,
"sendspin_provider": true,
"standalone_topology": true,
"queue_id_matches_player": true,
"queue_active": true,
"synthetic_target_denial_status": 403,
"synthetic_provider_denial_status": 403,
"role_scopes": [
"config.core.read",
"config.players.read",
"config.providers.read",
"library.read",
"library.write",
"players.control",
"players.read",
"providers.read",
"queues.control",
"queues.read",
"system.read",
"users.invite"
],
"playlists_count": 11,
"playlists_approved_mappings": true,
"radios_count": 1,
"radios_approved_mappings": true
}
+16
View File
@@ -0,0 +1,16 @@
test_documentation_versions_are_not_private_addresses (test_repository.RepositorySafetyTests.test_documentation_versions_are_not_private_addresses) ... ok
test_embedded_url_credentials_rejected (test_repository.RepositorySafetyTests.test_embedded_url_credentials_rejected) ... ok
test_key_material_rejected (test_repository.RepositorySafetyTests.test_key_material_rejected) ... ok
test_network_evidence_is_unauthenticated (test_repository.RepositorySafetyTests.test_network_evidence_is_unauthenticated) ... ok
test_private_addresses_rejected (test_repository.RepositorySafetyTests.test_private_addresses_rejected) ... ok
test_private_config_rejected_even_when_forced_into_git (test_repository.RepositorySafetyTests.test_private_config_rejected_even_when_forced_into_git) ... ok
test_private_paths_are_ignored (test_repository.RepositorySafetyTests.test_private_paths_are_ignored) ... ok
test_provenance_pins_have_hashes (test_repository.RepositorySafetyTests.test_provenance_pins_have_hashes) ... ok
test_repository_guardrails (test_repository.RepositorySafetyTests.test_repository_guardrails) ... ok
----------------------------------------------------------------------
Ran 9 tests in 0.010s
OK
PASS: repository privacy/attribution guardrails
PASS: all recorded Git heads and source file hashes
+17
View File
@@ -0,0 +1,17 @@
{
"checked_at": "2026-12-03T20:42:10.945Z",
"evidence_class": "live MA target/queue reads plus browser-policy/source checks; no live browser-to-MA connection",
"target_verified": true,
"queue_state": "idle",
"queue_items": 0,
"target_identity_format_compatible": true,
"configured_ma_scheme": "http:",
"https_foundry_origin_policy": "mixed-content",
"gm_identity_profile_present": false,
"sendspin_connections": 0,
"identities_created": 0,
"mutations_sent": 0,
"actual_ma_audio": "blocked pending existing DEV private identity, secure private browser access and approved synthetic ingestion",
"websocket_auth_log_safety": "not verified live; source logs raw inbound auth at VERBOSE, explicit operator review required",
"live_websocket_auth_attempts": 0
}
+44
View File
@@ -0,0 +1,44 @@
{
"checked_at": "2026-12-03T21:01:48.898612+00:00",
"version": "0.5.0",
"artifacts": [
{
"artifact": "dist/adaptive-music-dev.zip",
"sha256": "ec45c0a3e4f8eae2593c7ae9cf1bdc3d724b5c6e6e9afd199ff6a506db71163f",
"bytes": 115735,
"files": 36
},
{
"artifact": "dist/releases/v0.5.0/adaptive-music.zip",
"sha256": "a9f904cb9e0844fe9b6a5c3a19f24358dfa6a0c4ca995aea9b1a3f81b301d584",
"bytes": 115735,
"files": 36
}
],
"foundry_live_verified": false,
"browser_zip_has_server_code": false,
"automation_default": false,
"history": [
{
"checked_at": "2026-12-03T20:07:10.575810+00:00",
"version": "0.4.0-dev",
"artifacts": [
{
"artifact": "dist/adaptive-music-dev.zip",
"sha256": "28637fd0a4b9754d591893a8224d059fc71a9371f6a978bfb5b935088e0956c2",
"bytes": 27681,
"files": 17
},
{
"artifact": "dist/adaptive-music-companion-dev.zip",
"sha256": "05427fc4998d8bef6d3d5ccb61d68931cd98fae2e28f6b777b9468d993c5558e",
"bytes": 33191,
"files": 19
}
],
"foundry_live_verified": false,
"browser_zip_has_server_code": false,
"automation_default": false
}
]
}
+53
View File
@@ -0,0 +1,53 @@
{
"checked_at": "2026-12-03T19:50:32.141285+00:00",
"audited_version": "0.3.0-dev",
"sha256": "2e0d5370a64e854b4bbdbea12d6969e6467b3eef9f5846361886d45058d3e801",
"files": [
"adaptive-music/module.json",
"adaptive-music/LICENSE",
"adaptive-music/THIRD-PARTY-NOTICES",
"adaptive-music/README.md",
"adaptive-music/src/core/controller.mjs",
"adaptive-music/src/foundry/configuration.mjs",
"adaptive-music/src/foundry/module.mjs",
"adaptive-music/src/foundry/runtime.mjs",
"adaptive-music/src/providers/native/provider.mjs",
"adaptive-music/licenses/Apache-2.0.txt",
"adaptive-music/licenses/VGM-MIT.txt"
],
"findings": {
"ma_connection_setup": false,
"browser_gateway_client": false,
"ma_catalog_in_configuration": false,
"separate_scene_ambient_combat": false,
"sendspin_browser_playback": false,
"crossfade": false
},
"assessment": "Native-only development package; server-side components were not connected to its browser entrypoint.",
"rebuilt_assessment": {
"version": "0.4.0-dev",
"ma_connection_setup": "operator capability + private same-origin companion route",
"browser_gateway_client": true,
"ma_catalog_in_configuration": true,
"separate_scene_ambient_combat": true,
"world_defaults_boss_native_fallback": true,
"synthetic_pcm_browser_sink": true,
"sendspin_browser_playback": false,
"crossfade": false,
"foundry_live_verified": false,
"artifacts": [
{
"artifact": "dist/adaptive-music-dev.zip",
"sha256": "28637fd0a4b9754d591893a8224d059fc71a9371f6a978bfb5b935088e0956c2",
"bytes": 27681,
"files": 17
},
{
"artifact": "dist/adaptive-music-companion-dev.zip",
"sha256": "05427fc4998d8bef6d3d5ccb61d68931cd98fae2e28f6b777b9468d993c5558e",
"bytes": 33191,
"files": 19
}
]
}
}
+12
View File
@@ -0,0 +1,12 @@
{
"checked_at": "2026-12-03T20:59:20.741930+00:00",
"local_directory_mode": "0700",
"token_file_mode": "0600",
"token_ignored": true,
"local_files_tracked": false,
"git_history_blob_count": 136,
"credential_in_git_history": false,
"generated_module_and_source_private_value_scan": "pass",
"gitea_contacted": false,
"limitations": "exact credential and configured private endpoint/target scan supplements repository heuristics; not a comprehensive secret detector"
}
+24
View File
@@ -0,0 +1,24 @@
{
"version": "0.5.0",
"scope": "offline package audit; actual browser synthetic experiment separate from MA/Foundry acceptance",
"connection_configuration": "GM-local in-memory developer API; optional companion setup retained; no one-click GM MA wizard",
"catalog_and_assignments": "shared MA catalog connected to existing GM choices and persistent scene ambient/combat/boss/native fallback + world defaults; real MA playback gated",
"audio": "official SDK PCM and WebRTC implemented experimentally; measured synthetic loopback browser audio, no live MA receiver connection",
"crossfade": "unimplemented",
"companion": "optional source and experimental/companion-0.4.0 branch; no deployment",
"distribution": "one module ZIP; configurable Git-hosted stable manifest + versioned download; offline bundle/checksums/tests pass; no hosted install/update verification",
"ma_mutations_this_revision": 0,
"regression": {
"javascript": 85,
"python": 15
},
"blocking_infrastructure": [
"isolated Foundry v14.371 world",
"existing DEV private identity/pairing",
"secure private browser MA access",
"operator WebSocket auth log review",
"approved synthetic MA ingestion",
"explicit existing TURN relay if required by NAT"
],
"gitea_contacted": false
}
+32
View File
@@ -0,0 +1,32 @@
{
"sdk": "@sendspin/sendspin-js",
"version": "5.0.0",
"git_commit": "7d103075138dda5c8909045647bb42b33c2d44fc",
"license": "Apache-2.0",
"integrity": "sha512-yRRjPsz6TyR1GzRYO7ur7oAzwZ11tELK1PEp6Ci7fscXOI0JdtP6BbwPhw+/CR0TWQxu/VwtVPtXT9SH/xhzFw==",
"inspected_before_install": true,
"install_hooks": false,
"dependency_pins": {
"@noble/ciphers": "1.3.0",
"@noble/curves": "1.9.7",
"@noble/hashes": "1.8.0",
"opus-encdec": "0.1.1"
},
"tool_pins": {
"esbuild": "0.27.1",
"playwright": "1.57.0"
},
"distribution_gate": "Pinned bundle hash, all notices and release validator required; no install hooks executed",
"license_review": "Reviewed Apache-2.0 SDK and full MIT noble license texts copied to licenses/vendor; optional opus-encdec fallback disabled, not distributed",
"lockfile": "package-lock.json",
"audit_checked_at": "2026-12-03T20:42:10.993687+00:00",
"vulnerabilities": {
"info": 0,
"low": 0,
"moderate": 0,
"high": 0,
"critical": 0,
"total": 0
},
"bundle_sha256": "b3a7c91e87c0a45e4bdb5a3bd3f323a12ffde9b54babd5ba38351d5dfd4d8556"
}
+42
View File
@@ -0,0 +1,42 @@
{
"license": "MIT; original mathematically generated tones",
"sample_rate": 24000,
"channels": 2,
"duration_seconds": 90,
"sequences": {
"ambient": [
{
"file": "ambient-1.wav",
"frequency_hz": 110,
"sha256": "12ec19bfe12e8a8e3d0f29e79de31812127f1f7e360ac4a2175026e5f210211e"
},
{
"file": "ambient-2.wav",
"frequency_hz": 165,
"sha256": "b12e11c31154dae190c9e448165577decd932d53af5f1969eaa8869db4ea690f"
},
{
"file": "ambient-3.wav",
"frequency_hz": 220,
"sha256": "c9bf2501ba41d16f0c1055b8b383db05f7de714206af35446eb0aad82476376b"
}
],
"combat": [
{
"file": "combat-1.wav",
"frequency_hz": 440,
"sha256": "4e6ba740d0fba4115e6117a118faec5eb74d5d171b1d4051602f86e004b9ee2e"
},
{
"file": "combat-2.wav",
"frequency_hz": 660,
"sha256": "95e8758c279780d4687011a755f7d79528e359e1b9221fb9739602eade7c5b08"
},
{
"file": "combat-3.wav",
"frequency_hz": 880,
"sha256": "cb83457277efdaa44e181697eadc7b8542fe60d00199bb10d547a5c21c29d4e9"
}
]
}
}
+6
View File
@@ -0,0 +1,6 @@
{
"checked_at": "2026-12-03T17:18:24.860Z",
"synthetic_ingestion": false,
"error": "unavailable",
"playback_mutations": 0
}
+8
View File
@@ -0,0 +1,8 @@
{
"checked_at": "2026-12-03T17:25:16.043Z",
"evidence_class": "local generated audio decoding",
"tracks": 6,
"frames": 27000,
"duration_seconds": 540,
"hashes_match": true
}
+131
View File
@@ -0,0 +1,131 @@
{
"checked_at": "2026-12-03",
"git_sources": [
{
"repository": "https://github.com/Sayshal/vgmusic",
"tag": "release-1.4.5",
"commit": "eba07a08c9925f31b9c8adb72faf95de11ae705c",
"local_directory": "vgmusic",
"files": {
"LICENSE": "8da4373e2f64fdd0289d5aba0ad81856f39742582dfa8caf49b22eece53e62d0",
"module.json": "2a50f7dfaaf91e953f6ffde97c8d58f5c88ab3cf2499863cf873d8f264539357",
"package.json": "6e607c8234023df368935e22fd7463d15ac6ab357e604899999c8a78ee1747fa",
"package-lock.json": "245c2723ddfc25a549e600630a324603e9cb234553dc392c8c5c92cc6da896f2",
"scripts/music-controller.mjs": "fc51195eda3c9cb8e04b9fc90ab9a4bd91c99ce6735a54929cf2bf3fa7404ccf",
"scripts/hooks.mjs": "069f1ede780ef1d55c51d65ff17322606f2d89f83d7d02284d2b1149a44898a0",
"scripts/playlist-context.mjs": "5126fbdef6b8129e6a8050da098a6fd904b02684565db014b9afe53d00bd2c0f"
}
},
{
"repository": "https://github.com/music-assistant/server",
"tag": "2.10.6",
"commit": "c24866405bd2068c25a60e1014e5ef8c3f6445bb",
"local_directory": "server",
"files": {
"LICENSE": "c71d239df91726fc519c6eb72d318ec65820627232b2f796219e87dcf35d0ab4",
"pyproject.toml": "39e6e2cd3962b081b6b8d2b905846d1e79a3ebc21f330d8003bf748f6913c84c",
"requirements_all.txt": "bf97bece2eaca5c0a9beead3a9a2f4e9cf66228c891e6580cb074219c1b2a141",
"music_assistant/controllers/webserver/controller.py": "93a3784d2c2070be512ed2f4619a6ea32088cb91aaa13879ab2fc2a7725a2f06",
"music_assistant/controllers/webserver/auth.py": "462717a6b2486c692d18f3917b26cf12eb036d1bb31ab1a4d0281a9ab505b116",
"music_assistant/controllers/webserver/websocket_client.py": "7ad62ba1f015914cdea6f99c8cac384a4c10ee33fb5b03ab0b6049cce729ecfd",
"music_assistant/controllers/webserver/sendspin_proxy.py": "0b2a25363786e8ef13a460b18c43e1a4a9d0ba30d816349a61f8db7421b85e7e",
"music_assistant/controllers/player_queues/controller.py": "3d610ee9b643a5a338104fbf13d67d2b680b7d4570bc7dfe2364e4d9712b4588",
"music_assistant/providers/sendspin/manifest.json": "cb99a3715f32c573a5120b960e5c3a31c6823bfc269f4963b8d72910132e38ea",
"music_assistant/controllers/webserver/helpers/auth_middleware.py": "f1c45cc4927c9a5e71193b13ff9d4300daaa65dc7b849d255c924fa495fb24a5",
"music_assistant/controllers/players/controller.py": "fd4a66cfe2b28ab7859f46990b3c45f58778d9fbb8dfb196346bed516a012c99",
"music_assistant/controllers/music/media/base.py": "a47aa23c9ed1039e303db1e4da1903c84d2122ed7c66c2b66ad8edd2d7341d45",
"music_assistant/providers/sendspin/provider.py": "9ba7235cd48723255a1d7e4af28f8f90f0e7448f4b234228571e219fa92ccb14",
"music_assistant/providers/sendspin/player.py": "306251735f52295cce3293549ca7f226fe37cab4d454966e8fb657aca7c535c6",
"music_assistant/providers/sendspin/README.md": "ee43c336550a7f4b8cac188f77e6d4e0b580d47d94321f392738d93da9e2c890",
"music_assistant/controllers/player_queues/queue_loader.py": "ead02948ca4450d3651d0c90683df16a16e8b6e23a040bf16b3eb877756e7a0e",
"music_assistant/helpers/uri.py": "c97c43f28db833910635bc89268dd44cb2487b3c26005737f55eb6c1f55521ca",
"music_assistant/providers/builtin/__init__.py": "54349ff427defa5a8c6664ccbcaf47c6564e1eb1606def5b8572c6d57e77df91",
"music_assistant/controllers/music/media/playlists.py": "7dbc38f93688a2b4f6fcd0501607a22942af55766d40f81795beef0dc037eb3e",
"music_assistant/controllers/player_queues/helpers.py": "0206927895599dae0b1dd4842a37d11d5d8e0de539e8f710b07684572de25529"
}
},
{
"repository": "https://github.com/music-assistant/frontend",
"tag": "2.17.297",
"commit": "e779b9d359e47cd210c2801f16a0ce6263571903",
"local_directory": "frontend",
"files": {
"LICENSE": "c71d239df91726fc519c6eb72d318ec65820627232b2f796219e87dcf35d0ab4",
"package.json": "83c66acc4371e0f10119ee50ee3d6940e3126fbf36898de02875331a590847c6",
"pnpm-lock.yaml": "129e7a8526a2e96c37f53bcc1895292cb56a73443c373198974ac7aa90b40093",
"src/plugins/sendspin-connection.ts": "780f52ad85fa38b1789267a50f03c744d59b59fa3dca3599ae0f742b150173ee"
}
},
{
"repository": "https://github.com/sendspin/sendspin-js",
"tag": "5.0.0",
"commit": "7d103075138dda5c8909045647bb42b33c2d44fc",
"local_directory": "sendspin-js-5",
"files": {
"LICENSE": "c71d239df91726fc519c6eb72d318ec65820627232b2f796219e87dcf35d0ab4",
"package.json": "6e1a04d4cf82ddae3e09ac7964952c718395b22a6de260f2e092d9848235aa88",
"src/core/protocol-handler.ts": "b3108d57fbaf974dd7aaf2b8bf0102817928fa1de501b0806b52bdd50a5d9436",
"src/core/transport.ts": "0d855eab42e1f94ef94e5aa324244eadd0e6fe99cb8be8e528199ab07cedb6b2",
"src/audio/clock-source.ts": "bd1c7321702211db42e3bedac746c0fa490a1e12215c3e34ec6b372a2c48a0e6",
"src/audio/decoder.ts": "0abefd87c26079cde9e2f87ad4c8d77a19818818d4ae745002e22930afac1e6a",
"src/audio/output-latency-tracker.ts": "1f5f6492fbb8ee7c1b2dc15c0299c7bbb62aa7dd356c8845c6c4e4178017d7c7",
"src/audio/platform-output-latency.ts": "ad916a598042e1a28578e9568668cdf2c3f880950f9232c438eebbdb34a1519a",
"src/audio/recorrection-monitor.ts": "075660439b7d1ae4140979c20d92a4b15d0842adf4d66f2ad32be031d2116858",
"src/audio/scheduler.ts": "d6d5b134d83d06c0d93b3da49aa70503e38da2fe5800f5029f299b233dd38b9a",
"src/client-identity.ts": "27b645e35d7967577c3a63246128b26350989e4a6ec8cfd66687682c048c4726",
"src/core/activate-authorization.ts": "e2a23dec97ef03829baafee8a4c83075e29c4c265d281926b2ce921d0ec1ccab",
"src/core/codec-support.ts": "fe160adfa40d2c5e0a3b3edd255ea94a283bf98e77431846ae3a0048e6cc50ce",
"src/core/core.ts": "44ce239896faca0887dbf33b5d5b7de924a3ee94c8babfe4e631ef6a82c2c5db",
"src/core/noise/base64url.ts": "0a8fc8f065de1b79497cd166cdfd02f0b1a8558d371bd641c0f8ab6f13cb9a16",
"src/core/noise/cipher-state.ts": "f31000531f6c5aecdbab4cb7ea3d2bfe3911fb58136b72c9e9a58cd0c386cd5d",
"src/core/noise/constants.ts": "bde591118b52136f90cd7e41f6901494c4a1cfae61cb0edaea26b599337829de",
"src/core/noise/handshake.ts": "40caa0df0098d1121a50547614b3564837241945d136fd2faab9202d8228ee3a",
"src/core/noise/identity.ts": "9f23c76b71aa7558aed9a6d416a5c9e75c69798cd74748454d96e96b9791022e",
"src/core/noise/index.ts": "0facbc17a2621f2e9ebf86dd1fadf5efece71028a495eb7165c62c8fe68c8218",
"src/core/noise/pairing-token.ts": "dfbc2e88478bbf9b7e4559c6597206b2262de431007143f8b3d099000980b762",
"src/core/noise/psk.ts": "7c5028446c85ff15e61f1afbee8fa6cc95628afb670018a107f0bd33622acafd",
"src/core/noise/session.ts": "fc1c6747c3d556920e5ac21726f1baa401c575ff6efe9546c8aa6687ebc95c50",
"src/core/noise/suites.ts": "59ba4f407a462c82afbd15568af682de823b012e5e831e67b368a2506d696abc",
"src/core/noise/symmetric-state.ts": "c498ce9caaf89af44076fa89dbd1fc8919289c6ca1b6de2a9670f4b99496a5f9",
"src/core/pairing.ts": "59c0994b3cd422035b98812268e2e87a87b99554786e8da46936af751cbcdc34",
"src/core/pake/cpace.ts": "fed37dbc91bb0f7711492a8481598982c887f14e244c0d1ef1ec0d59a103a2ec",
"src/core/pake/pin.ts": "5852b68967caa92626636f9cb48be3fd527ebee6911ddd54228740674efb71e4",
"src/core/state-manager.ts": "827fff0bbbb6153d807f21456a952f73b61b3aa81fa7bcd5b7aad7362ad122f9",
"src/core/static-delay-store.ts": "265dddae81afe28a8d1b376560e70cbe8c8c26f996ace0bf0bd1be84079d8f29",
"src/core/time-filter.ts": "0d562c167deb3cbdc2b7a23e5baa6f2dc70f214e5307b89903762f01dd6000f7",
"src/core/time-sync-manager.ts": "d64b7b648422333f68bafa878b2b3e2c084bd91d00f980b88c51c4ad8b07f913",
"src/core/websocket-manager.ts": "4acada3e75f19f63f2f7e6d367c545e2dc37a8735fdb32a40e100d94e6bb96db",
"src/index.ts": "e4ba034a7ab604ab80786ca255c73821cd4951ffc4a80c1bf24c4db3fb8d173b",
"src/internal-types.ts": "26e818c95bf831a7123788ca79cba104fc05c887e654c5e67bae06b9669cc2e2",
"src/opus-encdec.d.ts": "e05ec654daf12453bfe44d81b0ec8bc5162d1cd47a12df4502d0e879ca6be40a",
"src/sync-delay.ts": "8bdc54745a7b75da3d2dc78133e82601241323f9e33ee381f9c657d58c58916f",
"src/types.ts": "939c8df601891ad7b483fafa49df2b837e834881685f7e2278eb9e2ffd5dea15"
}
},
{
"repository": "https://github.com/sendspin/sendspin-js",
"tag": "6.1.0",
"commit": "7ee7ca35ac29ae3ef5f2eeeeaac1e24751a8790b",
"local_directory": "sendspin-js",
"files": {
"LICENSE": "c71d239df91726fc519c6eb72d318ec65820627232b2f796219e87dcf35d0ab4",
"package.json": "b6cae2c9836e467941bb7baab35bde2ead29f3171ce8be18fdb23b758d6b30e9"
}
}
],
"pypi_sources": [
{
"version": "9.1.1",
"url": "https://files.pythonhosted.org/packages/73/f0/03f798813a0e09f4e1565691d2e5138f0750c98b36d93f522d06c44efe66/aiosendspin-9.1.1.tar.gz",
"sha256": "1e9a33ec5b6dcbc16b4f03c07586195beaa80eb2e5ba4254b97979ae0e0ec4b7",
"inspected_files": {
"LICENSE": "c71d239df91726fc519c6eb72d318ec65820627232b2f796219e87dcf35d0ab4",
"README.md": "c7f2aaeb734b6628edf06ea9b4a5b425f25a5949a606a3d7f1f3dfb2268c749d",
"pyproject.toml": "940b19e327b155d56ca4935a6d62b946a28b60b734e4f35f61c49bd7b194798c",
"aiosendspin/client/client.py": "1fb7911997417fc97b85221de84935a0c4ae6cfc71d6dc29ca2e2aef5e4b4a08",
"aiosendspin/noise/trust_store.py": "b5a8dbd3f5d6692dca9ccdd4e9eba8eb9b706fa1ced69ef91bb8dcccb0d3f37f"
},
"local_directory": "aiosendspin/aiosendspin-9.1.1"
}
]
}