Skip to content

logic-probe: friendly labels for known census tags - #39

Merged
sepehrsadri merged 1 commit into
mainfrom
feature/logic-probe-friendly-tags
Aug 16, 2026
Merged

logic-probe: friendly labels for known census tags#39
sepehrsadri merged 1 commit into
mainfrom
feature/logic-probe-friendly-tags

Conversation

@sepehrsadri

Copy link
Copy Markdown
Contributor

What and why

wit logic-probe's census diff printed raw internal record tags (karT, gRuA, lFuA...) with a blanket "not a musician-facing number" disclaimer. This maps the tags docs/FORMATS.md already names (tracks, regions, plugins, audio files, MIDI/event sequences) to readable labels, while keeping the underlying honesty guarantee intact — most tags still explicitly say the record count is not the real object count, since wit-logic's census module doc measured an ~8.4x record-to-track multiplier on a real project.

One exception: audio files (lFuA/AuFl) get a stronger, distinct message, because docs/FORMATS.md measured that specific tag matching MetaData.plist's real count exactly (35 → 37) — the only tag with that evidence. Applying the same generic disclaimer to it would have thrown away a real, verified signal.

Reviewed via /code-review before landing; that pass caught and fixed:

  • the audio-files overclaim/underclaim described above (first draft lumped it in with the unverified tags)
  • a dead gnoS (root record) mapping entry — wit-logic's frame doc guarantees exactly one root record per valid file, so its count can never differ between two successfully-walked files
  • missing test coverage for the new tag_info() helper, added following this file's existing human_bytes() test convention

Tested against real project pairs (Ableton Backup/ chain and a real .logicx pair from ~/Music/Logic), not just synthetic fixtures.

Checklist

  • Docs updated in this PR if behaviour changed — N/A, CLI display text only, no docs/ numbers changed
  • No audio or project files committed (see .gitignore)
  • Claims are labelled measured / cited / inferred — the audio-files claim cites docs/FORMATS.md; the "not 1:1" disclaimer cites wit-logic's census module doc

If this PR changes a number in docs/

N/A — no docs/ numbers changed, this is CLI presentation only.

If this PR touches format parsing

N/A — no parsing changed, this only relabels how already-parsed census counts are printed.

🤖 Generated with Claude Code

Replace raw 4-letter tags (karT, gRuA, lFuA...) with readable category
names from docs/FORMATS.md's tag table. Deliberately does NOT claim the
record count equals a real object count for most tags — wit-logic's
census module doc measured an ~8.4x record-to-track multiplier on a
real project, so that stays disclaimed pending issue #3. The one
exception is audio files (lFuA/AuFl), which docs/FORMATS.md measured
matching MetaData.plist exactly (35 -> 37) on the one real project
checked.

Reviewed via /code-review: fixed an overclaim (audio files got the
same blanket disclaimer as unverified tags, losing validated signal),
removed a dead gnoS mapping entry (root record count can never differ
between two successfully-walked files), and added unit tests for the
new tag_info() following this file's existing human_bytes() test
convention.
@sepehrsadri
sepehrsadri merged commit 9de44d5 into main Aug 16, 2026
14 checks passed
@sepehrsadri
sepehrsadri deleted the feature/logic-probe-friendly-tags branch August 16, 2026 12:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant