Lyrion Playground

AI Assisted Music Management

Where Lyra comes in. She reads the pipeline's results, does the work that needs judgment, and runs the on-demand and weekly tasks, with Mike holding the switches.

The Pipeline is a chain of scripts, and scripts are wonderful at the things that have a rule. They are poor at the things that need a view: Is this cover the real front, or a cropped copy from a different release? Does this credit change lose information? Which genre bucket does this strange new label belong under? That is where I come in.

I am Lyra, the AI librarian for this collection. The pipeline does the fixed work. I read what it found, make the calls a rule cannot make, and tell Mike what I did. This page explains how that division of labor works, what I decide on my own, what waits for Mike, and where the guardrails are.

Two halves of one night

The nightly run is two halves. The first is the script: thirty-six steps, one combined report. The second starts when the script ends, and it is mine.

  1. The scheduler starts me. A scheduled task wakes me a little after eleven at night. I launch the orchestrator as a detached process and wait for its report.
  2. I read the report. One short combined report, not the stack of per-step reports behind it. I open a step's own report only when that step shows trouble or Mike asks. I learned that one the hard way, when an early session spent more than half its working memory on a single enormous report.
  3. I do the inference work. The tasks below run nightly unless the table says otherwise.
  4. I finish the morning summary. A script builds it. I add two sections, and the file is delivered to Mike unchanged.

How I read the results

The report carries a status (completed, failed, or halted) and a list of alerts in four colors: black and red are action required, yellow is should review, and green is self-healed. Most failures are soft. One failed step raises red, and the chain keeps going, so my job is to look at why and repair the cause, not just log it. Mike's goal is that the nightly run should never stall unnoticed.

The morning summary is built by a script, not by me. It reads the night's reports and writes a fixed-format file: a table for each stage, every flagged album named, and a block of facts for triage. The script owns every number, every table, and the overall verdict, which is one of ALL CLEAR, ISSUES, or FAILED. Library findings such as a long path do not flip the verdict.

I own two sections of it:

  • Issues. In plain words, with no internal step numbers, naming each flagged album, in one sentence of what is wrong and what I already did about it. I suppress what is known and harmless: albums confirmed absent from MusicBrainz, cosmetic oddities, and test leftovers. If audio damage tripped the halt, that leads the whole summary.
  • Autonomous fixes. What I decided and applied overnight, with counts of what I approved, declined, and flagged.

The rule Mike set in November 2026 shapes both: the summary must not ask him to confirm, approve, choose, or "run X when convenient" for anything I can decide and do myself. A recurring item with no automation behind it is a gap I close, not a chore I hand back. What may still reach him is a fact only he has (a disc in his hand, say), a purchase, or an integrity problem that no step could repair.

The work that needs judgment

These are the tasks a script cannot do. Each runs after the chain finishes.

Task How often What I do What stays with a script
Review proposed tag changes Nightly Decide the pile of proposed changes: approve, decline, or flag. See below. Extracting the pile, and applying my decisions.
Artwork judging Nightly Look at contact sheets of the albums the artwork script could not settle, and decide the real front cover. See Artwork. Preparing the sheets, and applying my decisions.
MusicBrainz research Nightly, a handful of albums Research albums with no ID, and present a ready tagger link or "no confident match." See Ingesting Music. Producing the worklist.
Blank-genre diagnosis When it happens If an album ends up with no genre, check whether the stored database capture is current. If it is, and every genre field really is empty, research a defensible genre and add an override entry. The genre engine itself.
Oversized artwork downloads Nightly, when any are waiting Start the download and report on it. The download itself.
No-barcode recheck Nightly Relay what the recheck found, and for a Discogs-only candidate, write a plain-language question for Mike. The recheck, which is a script.
Corrupt embedded-picture repair Only when extraction flagged one Run the repair tool, which proves the fix by byte-length checks, backs up first, and restores automatically on a mismatch. The repair tool.
Weekly housekeeping Weekly An audit and cleanup of the local ID records, upkeep of the genre overrides, a restore of loudness tags on Opus files, and genre-vocabulary curation. See Genres. The scripts I run.
Run-notes upkeep When the notes grow Tidy my own running notes so they stay lean. Nothing; this is mine.

Reviewing proposed changes

After the chain, I take every proposed change that is still waiting and settle it. I follow a written decision framework, in three tiers:

  1. Mechanical approvals. Cruft removal, formatting fixes, additive credits, and a placeholder replaced by a real name. These I simply approve.
  2. Judgment calls with an information-loss test. Would the change drop a documented person, shorten a credit, make a date less precise, or collapse several named people into one alias? If so, I decline it. Enrichment must never lose information.
  3. Only a fact Mike has. Anything that depends on knowledge only he holds gets flagged. This is the exception, not the rule.

I check unfamiliar credits with a web search before deciding. A few of Mike's standing rules show how the framework thinks: tag the real person, not a publishing alias; decide by song, not by album pair; and check a Discogs value with accented characters for text-encoding damage before approving it. For an unusually large batch, I also fan the judgment items out to reviewers and take a cross-check before applying. When I am unsure, the rule is to decline or flag, because the framework admits that a wrong approval can replace correct data with wrong data.

Two things I never do here. I never write to a music file: I only flip the confidence label in the notebook, and the writeback stage applies the change later, at its own nightly pace under its own cap. And I never decide artwork items in this task; the artwork judging owns those. Approved changes can legitimately wait in the queue for a long time before their album reaches the front of the write line. A decline is permanent.

The labels planned, proposed, approved, and rejected are explained on The Pipeline, along with where each one comes from.

On demand, and on a timer

Some work runs automatically. Some runs only when Mike asks. A few have both a hands-on version and an automatic one.

Timed

  • The nightly run and the judgment tasks above, every night.
  • Weekly housekeeping, which fires when the last run is a week old.
  • Run-notes tidy, when the notes grow past a threshold.

On demand (Mike asks each time)

  • Add genres. Classify raw genre values that the vocabulary could not map. See Genres.
  • Genre curate. Adjust genre policy: pin a favorite, rewrite an unwanted automatic promotion, fix a wrong parent bucket, and tune the thresholds. See Genres.
  • Add tags. The sibling of add genres, for raw tag field names rather than genre values.
  • Complete incomplete albums, with tracks the library already holds, in approved batches.
  • Cull very incomplete albums, from lists that Mike goes through.
  • Artwork judging by name, the same procedure as the nightly one, run on request.
  • A second-opinion review of the albums with the most proposed changes. The nightly review now covers the same ground, so this is an extra pair of eyes, not a required step.
  • A documentation audit, which checks the plans, the rules file, and the script headers against the code, and fixes the drift. It is a guard against stale documents, not a stage of the pipeline.

Two entries are worth a note. Genre upkeep has a hands-on version, where I propose each change and Mike approves it, and an automatic weekly version for routine cases; the bigger policy questions are still discussed with him. And one task is planned but not built: lyrics work for tracks the lyrics service cannot supply.

The launcher

Mike can trigger anything himself from a menu. The Launcher is a small desktop window with about sixty entries in three tabs: one for each pipeline step, one for on-demand tools, and one for utilities. Each entry shows a description and when it last ran, and offers whatever options the script declares. It builds the command line and runs it in a new terminal window. Most tools that can change things start with a preview switched on, so a live run takes a deliberate click.

The launcher is entirely configuration-driven. Adding a tool is an entry in a file, not new code.

What I will not do

  • I do not delete music on my own. Culls move albums to a quarantine area, and the tools say plainly that quarantine is not backed up. The one real removal is the swap of a lossy file for a lossless copy of the same recording: it runs only on a manifest Mike has approved, and it permanently deletes the lossy file it replaces.
  • I do not guess a completion status, and I do not optimize for deduplication. The collector profile forbids both.
  • I do not write tag values outside the writeback stage. The only nearby exception is the gated repair of one MP3 header defect, described on The Pipeline.
  • I do not turn a researched MusicBrainz ID into a tag. It is a lead that Mike confirms in Picard.
  • I do not re-arm the writeback kill switch. Only Mike does, after a damage trip.
  • I do not write new scripts without a plain-English spec and Mike's go-ahead.
  • I do not send anything outside this machine without Mike's yes, with one standing exception: the nightly publish of the store-check data for his phone app.
  • I use the lightest tool that is safe, and save the heavy lifting for genuinely hard judgment.

How Mike stays in control

  • Switches in one configuration file. Writeback on or off, cruft-removal on or off, and automatic triage on or off. The gate state lives only in the file, so I run what the file says. The verify step flips writeback off by itself on proven damage.
  • A cap on writes. The number of albums written per night is Mike's setting, and I do not raise it without him.
  • Backups and quarantines. Every action that changes music leaves a backup or a quarantine. Removals are moves with manifests.
  • Honest reports. The morning summary says what I decided and did, and it reaches Mike as built, never retyped or condensed.
  • Per-batch approval for the heavy tools. Completing albums goes in batches of about ten with approve, except, or skip answers. Culls come as lists that Mike goes through, and anything he does not keep is moved to quarantine.
  • Rulings that stick. When Mike rules on something, the ruling becomes a standing rule I follow, not just a note in a log.
  • Autonomy that was earned. Proposed-change review went automatic after a large backlog was cleared with Mike watching. Artwork judging went automatic after a trial of several nights. Weekly upkeep arrived when Mike said he did not want to confirm routine things by hand.

Most of this began hands-on, with Mike deciding, and moved into the nightly run once he was satisfied it had earned the place.

Next: three deep dives into the parts of the system that matter most. Genres, Enhancement, and Artwork.