Owner testing a copied-music collection
This procedure is for isolated testing with a small, disposable copy of music files. It is not a production installation. Original music must stay outside Melodee's writable storage.
Tested application revision: 84690a1154720a4cad191d92c74baaba72d834ab on
work/audit-remediation-102 (OpenAPI 1.1.0, SHA-256
7ec27e49e48dc5babaff66cfb4d61e3a2675726fbde8a233b68afef28b3c3988).
The qualification candidate images were built clean from this revision in run
q102-final103. The branch is not merged, pushed or released.
Verification status (2026-12-03)
The final candidate revision above passed the API full gate (35/35), the Admin UI
real-stack suite (17/17) and scale suite (3/3), and the Auth UI real-stack suite
twice (6/6 each). The composed data qualification in
design/evidence/independent-audit-remediation/REMEDIATION-103-DATA-QUALIFICATION.md
also covers synthetic ingestion, exact-byte reimport, shared-byte conflict,
ranged playback, storage failure windows, export cancellation and a 30-minute
mixed-load run. A fresh isolated worktree at the application revision was
verified with ./scripts/dev configure, up, fixtures and verify: 40/40
checks passed, including the browser bootstrap, synthetic ingestion, duplicate
reimport, artwork, ranged streaming, CLI search and stop/start persistence.
Follow the 100-file disposable-copy procedure below; do not use the owner's
originals as storage, and stop on any identity, media or listener-state anomaly.
Prerequisites
- Linux on x86_64 with Docker Engine and Docker Compose v2.
- Node.js
22.23.1, npm10.9.8, Rust1.100.1, Python 3.11+, OpenSSL andnss-tools(for browser CA trust). - About 10 GB of free disk space for images, the database, media and logs.
- A disposable directory of 100 copied music files. Do not point Melodee at your only copy or at a directory that contains originals you cannot replace.
Isolated checkout
Use a separate Git worktree so an existing development stack is untouched:
git -C /path/to/melodee worktree add ../melodee-owner-test 84690a1154720a4cad191d92c74baaba72d834ab
cd ../melodee-owner-test
Select a unique Compose project and non-conflicting loopback ports:
export MELODEE_DEV_PROJECT=melodee-owner-test
export MELODEE_DEV_IMAGE_PREFIX=melodee-owner-test
export MELODEE_DEV_EDGE_PORT=9443
export MELODEE_DEV_MAILPIT_PORT=9025
./scripts/dev configure
configure writes dev/dev.env privately (0600), creates the storage tree and
issues a private development CA. It does not start containers and does not touch
another project's data.
Build and start
./scripts/dev up
This builds the API, Admin UI, Auth UI and CLI images from this checkout, applies
migrations with the operator credential, creates the restricted melodee_app
role, registers the initial Storage Volume and starts the stack. It is
idempotent; a later ./scripts/dev up reuses the existing data.
URLs:
- Admin UI: https://melodee.localhost:9443/admin/
- Auth UI: https://melodee.localhost:9443/auth/login
- Mailpit (magic links): http://127.0.0.1:9025
The CA is installed in the user NSS store by configure. If the browser does not
trust the site, import dev/secrets/ca/dev-ca.crt (or rerun ./scripts/dev configure and restart the browser).
First administrator and durable sign-in
./scripts/dev bootstrap --name "Administrator"
Open the printed bootstrap URL (or https://melodee.localhost:9443/auth/bootstrap), enter the one-time code and enrol a passkey at https://melodee.localhost:9443/auth/account/passkeys. A passkey is the durable sign-in method; magic links are delivered to Mailpit during testing. Do not use a test or default password.
Storage and inbound files
./scripts/dev up registers dev/data/library as the Development library
Storage Volume. Place the 100 copied files under:
dev/data/library/inbound/<one-folder-per-release>/
Do not place files directly in dev/data/library/objects/; that directory is
managed by Melodee. Keep the originals outside dev/data/library.
Start ingestion
- Sign in to the Admin UI.
- Open Ingest → Inbound (
/admin/ingest/inbound), or Ingest → New ingest (/admin/ingest/new). - Choose the
Development libraryvolume and the inbound folder you created. - Queue the ingest and open the job page.
Normalization, fingerprinting and publication run as durable background jobs. Exact-byte reimports are probed and hashed but are not decoded, normalized or re-published; changed bytes are fully verified again.
Inspect failures and activity
- Jobs and failure summaries:
/admin/operations/jobs - Ingestion report:
/admin/reports/ingestion - System status and served contract:
/admin/system/status - API logs:
./scripts/dev logs api - All containers:
./scripts/dev status - Resource use:
docker stats --no-stream - Database errors:
./scripts/dev logs postgres
Stop, start and clean up
./scripts/dev stop # keep volumes and data
./scripts/dev start # resume the same installation
./scripts/dev reset --yes # DESTRUCTIVE: delete this project's dev data/volumes
For the isolated worktree, after reset --yes:
cd ..
git worktree remove melodee-owner-test
docker volume ls | grep melodee-owner-test # should be empty
Never run docker system prune, delete shared build caches, or remove another
project's volumes.
Stop testing immediately if any of these occurs
- Two different Tracks appear to have been merged or a Track identity changes unexpectedly.
- Referenced media is missing, corrupted, or a ranged/full stream returns the wrong bytes.
- Favorites, ratings, dislikes, playlist entries or listening history disappear or move to another Track.
- A stale or retried job changes catalog, storage or listener state after cancellation or lease loss.
- Ingestion fails repeatedly without an actionable job error.
- Memory, file descriptors, connections or database size grow without bound.
- Authentication or authorization succeeds when it should be denied, or the protected Admin UI remains visible after sign-out/revocation.
- Storage errors cannot be recovered without deleting data.
Record the job ID, route, timestamp, request ID and sanitized logs, then stop the stack. Do not attempt repairs on a collection you cannot replace.