Skip to content

feat(diagnostics): record where TrueHD Atmos heights are lost without Debug Logging - #714

Merged
Quick104 merged 10 commits into
mainfrom
feat/atmos-height-diagnostics
Oct 9, 2026
Merged

Quick104 merged 10 commits into
mainfrom
feat/atmos-height-diagnostics

Conversation

@Quick104

@Quick104 Quick104 commented Oct 9, 2026 •

Copy link
Copy Markdown
Contributor

Problem

Related issue: N/A
Validation tasks: none

A tester playing TrueHD Atmos on an Apple TV 4K into a Sony HT-ST5000 hears the objects come out of the floor speakers, and another reports no LFE with AirPods. The diagnostics report they sent could not say which stage lost them. Silo's TrueHD Atmos decision went only to the system log, which reports never include, and AetherEngine's audio lines reach a report only with Debug Logging on.

Solution

A report captured without Debug Logging now shows each stage:

  • [CMP-ATMOS]: the TrueHD Atmos setting, the rendering mode tvOS reported when Silo decided, and the rendering Silo asked AetherEngine for.
  • [CMP-AUDIO]: the audio pipeline the engine built once it settles (for example TrueHD Atmos → APAC 7.1.4), once per load.
  • Engine lines at the essential tier. AetherDiagnosticsBridge keeps a short list of engine lines at the always-captured tier: TrueHD Atmos and APAC decisions, the bed levels, the master's audio attributes, the audio route (rendering mode, channel labels, height count), the item's spatialization setting, and the engine's warnings when the route has fewer channels than the track. They keep the engine's own ERROR and WARNING severity. Every other engine line still needs Debug Logging.
  • Device names. The engine's route lines name ports by type, never by the user's name for the device (feat(diagnostics): log where TrueHD Atmos heights and LFE are lost AetherEngine#17), so nothing personal rides along. A host-side scrub was tried first and dropped: a device name can imitate the line's own fields.
  • AetherEngine is pinned to ef0d2c7f, the merge of feat(diagnostics): log where TrueHD Atmos heights and LFE are lost AetherEngine#17, which writes the new engine lines and fixes a TrueHD Atmos resume and a track switch that the 7.28.3 engine sync would otherwise ship (a resumed session ignored every seek; a TrueHD pick reverted to E-AC-3). docs/tvos-player/aetherengine-replacement-spec.md now says which engine lines are essential.
  • Licence notices. THIRD_PARTY_NOTICES.md and the bundled OpenSourceLicenses/README.txt named AetherEngine b1e4879e (upstream 7.13.0) and FFmpegBuild 3.4.0 as the shipped LGPL sources. They now name ef0d2c7f (upstream 7.28.3 through dd1d5f88), FFmpegBuild 3.6.0 (fda08325) and FFmpeg n8.1.3.
  • CI seal. The reviewed build-input snapshot in scripts/ci/select-apple-platforms.py and the selector seal are refreshed for the new project.yml.

Validation

  • Unit tests: MediaLogRedactorTests, AetherPlaybackBoundaryTests and DiagTraceTests pass on the tvOS 27 simulator against the ef0d2c7f pin (84 tests); select-apple-platforms.test.py passes (51 tests). The allowlist tests use lines AetherEngine wrote in aetherctl and on the tvOS simulator.
  • Builds: SiloTV for tvOS 27 (simulator, plus a signed device build), Silo for the iOS simulator, SiloMac for macOS.
  • Device: a signed SiloTV build of 6ca8e82f (engine 59d84062) ran on an Apple TV 4K (2nd generation), tvOS 27, into an HDMI soundbar. Its diagnostics report from TrueHD Atmos and E-AC-3 Atmos sessions carried every new line: [CMP-ATMOS], [CMP-AUDIO], the bed levels, the master's audio attributes, the item's spatialization setting and the route. It also showed the resume bug fixed in feat(diagnostics): log where TrueHD Atmos heights and LFE are lost AetherEngine#17. Debug Logging was on for that report, so capture with it off rests on the unit tests.
  • Not run: a full diagnostics report from a TrueHD Atmos session on a height-speaker system, which is what the tester's retest provides; AirPods on iOS.

Evidence: https://evidence.siloserver.org/r/silo-apple/pr-714/

Risks

  • The bridge matches engine lines by their wording, because EngineLog.handler hands the host text only. A future engine rewording would drop a line back to Debug Logging. The tests pin the wording to lines the engine writes today.
  • About a dozen extra lines a session, plus two per seek, in the 4,000-line essential ring.

Follow-ups

  • After the retest: if the logs show tvOS spatializing the APAC bed, the next engine change is declaring CHANNELS on the APAC rendition.

AI disclosure

  • Harness and models: Claude Code (T3 Code), claude-opus-5-5, wrote the change and tests.
  • Review: Claude Opus 5.5 subagents reviewed this change together with feat(diagnostics): log where TrueHD Atmos heights and LFE are lost AetherEngine#17: three finder passes (the diff and its callers; contracts, failure and altitude; cleanup and conventions), a sweep, and a validation-board check that found no passed case affected. Codex gpt-6.1-sol (xhigh) ran one adversarial round. Fixed from them: device names that could survive the route-line scrub (now never written), the pipeline line missing for a second item on the same pipeline, engine errors recorded at info level, the downmix warnings left at Debug Logging, a non-exhaustive rendering label, and the privacy spec still saying engine lines need Debug Logging.

🤖 Generated with Claude Code

Note

Log TrueHD Atmos and audio-route diagnostics as essential lines in AetherDiagnosticsBridge

Diagnostics that show where Atmos heights are lost no longer require Debug Logging. The bridge now classifies each Aether engine line instead of forcing all lines to verbose/debug.

  • Added a verbosity classifier in AetherDiagnosticsBridge.swift: SpatialAudioBridge, TrueHD/APAC, audio-route, channel-count, and related engine lines are essential; other lines stay verbose. Essential ERROR/WARNING lines keep their severity.
  • The diagnostics sink signature now passes verbosity, log level, and a deferred redacted-line provider; media identity redaction remains deferred.
  • Added an essential CMP-ATMOS log on each Aether load in PlayerViewModel.swift with the Atmos setting, rendering mode, output capability, and object-audio rendering name.
  • Added a debounced (500 ms) audio-pipeline observation in AetherPlaybackController.swift that emits one CMP-AUDIO line per distinct load-epoch, decoder, and delivery combination.
  • Updated the privacy spec in aetherengine-replacement-spec.md to route Aether diagnostics to the consent-gated log ring, and pinned a new AetherEngine/FFmpegBuild revision.
  • Behavioral Change: all previously verbose-only Aether lines now pass through the new classifier; essential lines appear in the consent-gated log ring at info/warning/error severity instead of debug.

Macroscope summarized 1dcf09b.

Quick104 and others added 2 commits October 8, 2026 20:13
… Debug Logging

A tester reports TrueHD Atmos objects folded into the floor speakers on
Apple TV and no LFE on AirPods, and the diagnostics report they sent
could not say which stage lost them: the TrueHD Atmos decision went only
to the system log, and the engine's audio lines needed Debug Logging.

- [CMP-ATMOS] records the setting, the rendering mode tvOS reported when
  the decision was made, and the rendering Silo asked AetherEngine for.
- [CMP-AUDIO] records the audio pipeline the engine built once it settles,
  once per load.
- AetherDiagnosticsBridge sends the engine's TrueHD Atmos, bed-level,
  master-audio, audio-route and route-downmix lines to the essential tier
  with their own severity. Route lines lose user-chosen device names
  first; an HDMI sink keeps its EDID name.
- AetherEngine is pinned to 8ff23f87, which writes those lines.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…s ports by type

The cross-provider review showed a device name can imitate the route
line's own fields and slip past any host-side scrub. AetherEngine
59d84062 stops writing port names into route lines, so the scrub goes
and the bridge keeps only the media redaction. Pins AetherEngine to
59d84062.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 9, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-09T02:03:40.669655Z 1dcf09b New commits
🔒 Security Review ✅ Completed 2026-10-09T02:06:02.753350Z 1dcf09b New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@coderabbitai

coderabbitai Bot commented Oct 9, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 21 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 0b5bec2f-47c0-421e-af42-ad9b3f8a679c
📥 Commits

Reviewing files that changed from the base of the PR and between beb8ab8 and 1dcf09b.

⛔ Files ignored due to path filters (1)
  • iosApp/Silo.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved is excluded by !**/Package.resolved
📒 Files selected for processing (11)
  • THIRD_PARTY_NOTICES.md
  • docs/tvos-player/aetherengine-replacement-spec.md
  • iosApp/Resources/OpenSourceLicenses/README.txt
  • iosApp/Tests/MediaLogRedactorTests.swift
  • iosApp/iosApp/Screens/Player/AetherLoadSpec.swift
  • iosApp/iosApp/Screens/Player/AetherPlaybackController.swift
  • iosApp/iosApp/Screens/Player/PlayerViewModel.swift
  • iosApp/iosApp/Shared/Diagnostics/Logging/AetherDiagnosticsBridge.swift
  • iosApp/project.yml
  • scripts/ci/apple-test-selector-contract.json
  • scripts/ci/select-apple-platforms.py
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@Quick104 Quick104 added priority: P1 Core-path bug; painful workaround — next after P0 impact: playback Can't play, stalls, or wrong media labels Oct 9, 2026 — with Cursor
Quick104 and others added 6 commits October 8, 2026 20:43
Picks up Silo-Server/AetherEngine#17's fix for TrueHD Atmos resumes: a
session resumed mid-stream was reported as a dead APAC decoder after 64
packets, went to an error state while it played, and ignored every seek
after it. Also adds the LFE element's input level and metadata gain to
the bed-level line.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Picks up Silo-Server/AetherEngine#17's fix for an audio-track switch
that a concurrent session rebuild reverted: a TrueHD pick on a file
with an E-AC-3 Atmos track came back on E-AC-3.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Silo-Server/AetherEngine#17 with main merged in, which also observes
rendering-capability changes in the audio route line.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Same refresh as the base branch, for this branch's own AetherEngine
revision line.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Base automatically changed from deps/aetherengine-upstream-7.28.3 to main October 9, 2026 01:50
Quick104 and others added 2 commits October 8, 2026 21:57
Pins the AetherEngine merge commit for Silo-Server/AetherEngine#17.
THIRD_PARTY_NOTICES.md and the bundled OpenSourceLicenses/README.txt
named AetherEngine b1e4879e (upstream 7.13.0) and FFmpegBuild 3.4.0
as the shipped LGPL sources; they now name ef0d2c7f (upstream 7.28.3
through dd1d5f88), FFmpegBuild 3.6.0 (fda08325) and FFmpeg n8.1.3. The
reviewed build-input snapshot is refreshed for the new pin.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@silo-kody

silo-kody Bot commented Oct 9, 2026 •

Copy link
Copy Markdown

Silo Kody — review complete

Review finished. Check the inline comments for findings and verify each suggestion against the code and tests.

Reviewing changes in Silo
  • Include the related issue, expected behavior, and validation steps in the PR description.
  • For API changes, describe the effect on Apple and Android clients and Jellyfin compatibility.
  • For plugin changes, identify the affected SDK contract, plugin, and catalog entry.
  • Follow this repository's AGENTS.md and CONTRIBUTING.md.
  • Request another review with @kody start-review in a PR comment.
  • React with 👍 or 👎 to give feedback on individual suggestions.
Review settings
Review Options

The following review options are enabled or disabled:

Options Enabled
Bug ✅
Performance ✅
Security ✅
Business Logic ❌

@Quick104
Quick104 merged commit f212ab3 into main Oct 9, 2026
8 checks passed
@Quick104
Quick104 deleted the feat/atmos-height-diagnostics branch October 9, 2026 02:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

impact: playback Can't play, stalls, or wrong media priority: P1 Core-path bug; painful workaround — next after P0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant