Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
149 commits
Select commit Hold shift + click to select a range
7085a5c
Read the V/I machines' configuration and sense words
RyanTheTide Oct 24, 2026
e94ab86
Run PR #6's governors inside the 0.1.8 guard
RyanTheTide Oct 24, 2026
d86503a
Record what the guard sees and replay it through the guard
RyanTheTide Oct 24, 2026
afbe3f3
Merge 0.1.9 into the V/I rework, with P8-2 and P8-3
RyanTheTide Oct 24, 2026
4b8efe9
Merge 0.1.10 into the V/I rework, with the harness
RyanTheTide Oct 24, 2026
b3d8c5c
Replay what the live guard charged, and compare the accounts (P8-8)
RyanTheTide Oct 24, 2026
358b45f
Witness the blind time origin directly
RyanTheTide Oct 24, 2026
3481d20
Add speakerguard-xlim, a look-ahead excursion and peak limiter
RyanTheTide Oct 24, 2026
ae7eb9b
Keep the tests' helpers out of the release build
RyanTheTide Oct 24, 2026
0c30dbc
Let a latched V/I model cool after a hand-off, through sense noise
RyanTheTide Oct 24, 2026
a2fe978
Bound a constant-power step by the coil's own maximum
RyanTheTide Oct 24, 2026
5e553bc
Run the randomized harness on the V/I machines
RyanTheTide Oct 24, 2026
33d42a7
Start a model that knows nothing at its limit, not past it
RyanTheTide Oct 24, 2026
6667538
Never stop speakersafetyd to make room
RyanTheTide Oct 24, 2026
86b6d7d
Compare the replay's account with the live one span by whole span
RyanTheTide Oct 24, 2026
484a158
Say in the guard's rules how a drained hand-off is charged
RyanTheTide Oct 24, 2026
5333fc9
Check the ramp's need only where the asahi governor writes the card
RyanTheTide Oct 24, 2026
236efb8
Keep a run's energy when its frames split unevenly into blocks
RyanTheTide Oct 24, 2026
1cfd707
Bound a current word at the sense's rail by the most current there ca…
RyanTheTide Oct 24, 2026
357e7b9
Read the X4 witness's configurations from the binary
RyanTheTide Oct 24, 2026
f3449c2
Predict the unified regulator's program from measured frames only
RyanTheTide Oct 25, 2026
2dc7351
Let the unified governor write the card under the asahi guard
RyanTheTide Oct 25, 2026
2fa0346
Leave frames at an ambiguous gain out of the regulator's prediction
RyanTheTide Oct 25, 2026
80ba1bb
Leave out only frames that fit one wide gain range
RyanTheTide Oct 25, 2026
0185557
Record a failed write as the values it can have left
RyanTheTide Oct 25, 2026
f8715a7
Bound a dead current line by the most current there can be
RyanTheTide Oct 25, 2026
812e42e
Bound a current line that reads low or off its voltage
RyanTheTide Oct 25, 2026
2f7d16d
Judge a line's power factor only at 0.3 V or more
RyanTheTide Oct 25, 2026
9b54f81
Hold the power-factor and low-band verdicts for program, not levels
RyanTheTide Oct 25, 2026
c020028
Judge the line verdicts so a bad line runs no hotter than at 2f7d16d
RyanTheTide Oct 25, 2026
36bf6b6
Keep each line bound wherever the deployed rule kept it; only the log…
RyanTheTide Oct 25, 2026
2e651fc
Make the feed-forward model primary in the V/I machines' files
RyanTheTide Oct 25, 2026
9ca57d4
profiles: add sourced unqualified Apple Silicon drafts
RyanTheTide Oct 25, 2026
a5d9118
Write a profile's own amp gain value, not a wider card's maximum
RyanTheTide Oct 25, 2026
5c1485f
Keep the recordings' fingerprint without an amp gain index
RyanTheTide Oct 25, 2026
f695091
Bound V/I full-scale energy before gain writes
RyanTheTide Oct 25, 2026
e2ae899
Exercise cold starts across the V/I profile drafts
RyanTheTide Oct 25, 2026
c3ad80c
Use the full amplifier voltage in every profile onset test
RyanTheTide Oct 25, 2026
62cf386
Reserve onset energy across idle gaps and blocked writes
RyanTheTide Oct 25, 2026
6c67db8
Bound the legacy coil and magnet independently at hot starts
RyanTheTide Oct 25, 2026
42ec986
Use the FF resistance for legacy frame power
RyanTheTide Oct 25, 2026
02d6f67
Reserve the legacy FF dose and check every profile in the strict sweeps
RyanTheTide Oct 25, 2026
e27054f
Retain the cold guarded onset and name the strict J413 witness
RyanTheTide Oct 25, 2026
3f26267
Keep the scalar legacy target in every output history after a failed …
RyanTheTide Oct 25, 2026
117c07b
Keep the V/I reserve when adding the legacy FF bound
RyanTheTide Oct 26, 2026
da91c1b
Write the startup minimum even without control events
RyanTheTide Oct 26, 2026
ef38880
Keep the one dB listening-cost requirement as a release gate
RyanTheTide Oct 26, 2026
d4fe6a1
Keep the low-line reference across recovery
RyanTheTide Oct 25, 2026
37ecd19
Keep a clean stop's state across a reboot, opt-in (boot_resume = idle)
RyanTheTide Oct 25, 2026
1ea8bfd
Resume a boot's state only on proof, and keep the default the parent's
RyanTheTide Oct 25, 2026
91f2fe9
Keep the recordings' fingerprint on the default boot_resume
RyanTheTide Oct 25, 2026
26adc31
Bound reboot restores over the full age interval
RyanTheTide Oct 25, 2026
404cfb8
Bound the duration of guarded clock samples
RyanTheTide Oct 25, 2026
78f3ecb
Exercise the full restore interval through guard startup
RyanTheTide Oct 25, 2026
23d8090
Opt the synthetic startup fixture into its test modes
RyanTheTide Oct 25, 2026
327fc5a
Cover temperature record rounding in the restore bounds
RyanTheTide Oct 25, 2026
7c1db9a
Bind the persistence format version into its checksum
RyanTheTide Oct 25, 2026
761a571
Refuse clean saves without a trustworthy boot-time epoch
RyanTheTide Oct 25, 2026
2eed4ca
Bound declared amplifier voltage above the sense rail
RyanTheTide Oct 26, 2026
6084cd9
Bound opt-in reboot age with an independent RTC interval
RyanTheTide Oct 26, 2026
85edf7a
Require every retained recurrent-line case to meet its limit
RyanTheTide Oct 26, 2026
9421cbf
Report historical peaks alongside the absolute limit gate
RyanTheTide Oct 26, 2026
5e26d8f
Start the shutdown fixture after the hot latch has cleared
RyanTheTide Oct 26, 2026
ddb56a0
Use packaged policy defaults and keep deliberate CLI overrides
RyanTheTide Oct 26, 2026
0607a8c
Reject runtime snapshots from before the hot-node bounds
RyanTheTide Oct 26, 2026
ae0ac4e
Use smooth attenuation through the hardware range
RyanTheTide Oct 26, 2026
6b679ff
Retain the full continuous limit audit as a release gate
RyanTheTide Oct 26, 2026
d50c140
Bound onset for Legacy-only profiles too
RyanTheTide Oct 26, 2026
ffcf48b
Document the continuous and listening acceptance gates
RyanTheTide Oct 26, 2026
2c17b8d
Retain cold queued legacy onset and generation 3 compatibility cases
RyanTheTide Oct 26, 2026
5fab341
docs: define the playback energy grant contract
RyanTheTide Oct 26, 2026
c8d21ea
test: bound finite playback grants and refuse unsafe tails
RyanTheTide Oct 26, 2026
9390df5
Issue finite playback grants from the thermal model and reconcile ker…
RyanTheTide Oct 26, 2026
d040c8e
Preserve grant diagnostics and exercise explicit queued-playback fixt…
RyanTheTide Oct 26, 2026
f7436c9
Reconcile gate readiness, physical caps and PCM epochs before grantin…
RyanTheTide Oct 26, 2026
fae20de
Align simulated PCM epochs with the oracle sample grid
RyanTheTide Oct 26, 2026
511aac2
Keep the V/I renewal watchdog and audit every campaign execution path
RyanTheTide Oct 26, 2026
50ffc38
Carry stalled-sense recovery across clean restarts and retain model d…
RyanTheTide Oct 26, 2026
9c6fa85
Require fresh V/I feedback on daemon takeover and preserve late drain…
RyanTheTide Oct 26, 2026
8466d67
Check missing-time regressions against observed card gains and captur…
RyanTheTide Oct 26, 2026
9d0cad7
Exercise range recovery through the V/I guard and retain narrow legac…
RyanTheTide Oct 26, 2026
d27bff9
Measure quiet-programme budget through actual protected native PCM
RyanTheTide Oct 26, 2026
d4f44da
Reserve qualified residual energy with the version 2 grant model
RyanTheTide Oct 26, 2026
fdf113b
Document integrated gate validation and remaining qualification gaps
RyanTheTide Oct 26, 2026
2f20691
Check daemon death before lease expiry preserves queued heat debt
RyanTheTide Oct 26, 2026
9164b1b
Record live-crash and historical fallback validation
RyanTheTide Oct 26, 2026
216f73e
Test J616 quiet playback against its zero-loss budget
RyanTheTide Oct 27, 2026
138b37d
Document the linear reference envelope loudness limit
RyanTheTide Oct 27, 2026
75f5dc3
docs: define transfer and playback input qualification gates
RyanTheTide Oct 27, 2026
27e7fea
docs: scope prior software validation claims
RyanTheTide Oct 27, 2026
39b293f
Document residual proof and check exact synthetic transfer witnesses
RyanTheTide Oct 27, 2026
a34fb17
Clarify per-speaker charging and continuous background in transfer proof
RyanTheTide Oct 27, 2026
4e32294
Prove residual storage bounds for thermal weights and replay inverse …
RyanTheTide Oct 27, 2026
036f082
Document the two pending listening acceptance markers
RyanTheTide Oct 27, 2026
2ee30d0
Retain authenticated delivered-window uncertainty across every takeover
RyanTheTide Oct 27, 2026
d1435f4
Require one joint safe supply bound for background and unbilled PCM
RyanTheTide Oct 27, 2026
f5c5f59
Document delivered takeover envelope and joint baseline obligation
RyanTheTide Oct 27, 2026
5cb7c24
Keep recording recent V/I through the size limit with rotating segments
RyanTheTide Oct 27, 2026
8f4977b
Preserve recording evidence across service restarts
RyanTheTide Oct 27, 2026
6fd4d2f
Exercise S16 recording and compare ring decisions with the same unrec…
RyanTheTide Oct 27, 2026
0dc3872
Isolate recording I/O from protection and reject unsealed ring evidence
RyanTheTide Oct 27, 2026
fef25cc
Bound preserved recordings and fail open for governing restarts
RyanTheTide Oct 27, 2026
164b471
Compare governing traces under stalled recording writer
RyanTheTide Oct 27, 2026
7c09c82
Document bounded recording handoff in guard loop
RyanTheTide Oct 27, 2026
31fea02
Assert oldest-first preservation across the archive boundary
RyanTheTide Oct 27, 2026
c8142d7
Assert fail-open unit migration in storage failure regression
RyanTheTide Oct 27, 2026
c29bd93
Persist thermal state and govern cross-OS hot boot without a mute latch
RyanTheTide Oct 27, 2026
105b9bd
Count incomplete recording archives before preserving new evidence
RyanTheTide Oct 27, 2026
6beaf33
Merge branch 'fix/preserve-recordings-on-restart' into integration/re…
RyanTheTide Oct 27, 2026
34db783
Run combined recorder suite on Linux CI
RyanTheTide Oct 27, 2026
a9daa66
Accept either async open failure timing in governing regression
RyanTheTide Oct 27, 2026
d3f3982
profiles: j713: Use the J413 constants on the J713's measured stream
erikwb Oct 31, 2026
1df1e47
Merge PR #8 unified governor and V/I stack onto main
RyanTheTide Oct 31, 2026
1a695b7
Merge PR #9 optional excursion limiter
RyanTheTide Oct 31, 2026
b230ef6
Merge PR #12 full-dose V/I onset energy reserve
RyanTheTide Oct 31, 2026
fc84285
Merge PR #15 strict profile bounds and persistence repairs
RyanTheTide Oct 31, 2026
2703e2b
Merge PR #21 finite energy grants with qualification gates intact
RyanTheTide Oct 31, 2026
4e5916e
Merge PR #25 recorder ring and restart evidence preservation
RyanTheTide Oct 31, 2026
f17cea3
Reconcile PR #24 with stricter startup and persistence bounds
RyanTheTide Oct 31, 2026
1c4dec5
Retain mainline J700 safety bounds alongside the unified stack
RyanTheTide Oct 31, 2026
b93244e
Retain mainline queue regressions with per-speaker histories
RyanTheTide Oct 31, 2026
ee50a66
Name the integrated candidate 0.1.13-rc.1 and retain host validation …
RyanTheTide Oct 31, 2026
350a956
Fix duration helper in retained mainline queue tests
RyanTheTide Oct 31, 2026
a326716
Document every open PR and retain the kernel safe-level mismatch witness
RyanTheTide Oct 31, 2026
4cc8907
Keep earliest lease and latest frame boundaries from main
RyanTheTide Oct 31, 2026
124a2c2
Exercise slow renewals, shifted frames and measured queue power
RyanTheTide Oct 31, 2026
da6b178
Allow standard-only verification after fixture-only additions
RyanTheTide Oct 31, 2026
191de3c
Exercise synthetic replay fixtures for the RC machine profiles
RyanTheTide Oct 31, 2026
8bc2547
Retain mainline J700 hand-off policy when composing V/I smoothing
RyanTheTide Oct 31, 2026
08921af
Isolate retained mainline harness state from the V/I-era harness
RyanTheTide Oct 31, 2026
d7efb92
Correct isolated policy and cross-filesystem retention fixtures
RyanTheTide Oct 31, 2026
221c8bf
Keep the hand-off fixture below the working thermal ceiling
RyanTheTide Oct 31, 2026
94bc36d
Start each boot from evidence, not at the coils' limit
RyanTheTide Oct 31, 2026
836c48d
Support and exercise immutable Neo float speaker-energy grants
RyanTheTide Oct 31, 2026
ad14cbd
Refuse the evidence start after any unlock, and on several models
RyanTheTide Oct 31, 2026
5ad7b3e
Keep the evidence marker outside the runtime directory
RyanTheTide Oct 31, 2026
5d8076e
Merge pull request #28: start each boot from evidence (0.1.13 RC)
RyanTheTide Oct 31, 2026
ad779b4
Document the lead Neo sustained-pink acceptance procedure
RyanTheTide Oct 31, 2026
f440be4
Keep the public measurement guide focused on the experiment
RyanTheTide Oct 31, 2026
90a0b7d
Merge main into the unified release candidate
RyanTheTide Oct 31, 2026
c1de6aa
Prepare the reconciled 0.1.13-rc.2 candidate
RyanTheTide Oct 31, 2026
526790d
Retain mainline independent hot-start oracles in the RC
RyanTheTide Oct 31, 2026
0715d7c
Bound legacy hot starts with their own conservative integrator
RyanTheTide Oct 31, 2026
ca1a989
Keep latched-drain overflow visible to the safety guard
RyanTheTide Oct 31, 2026
add7f96
Preserve peak-only overflow in the legacy latched start
RyanTheTide Oct 31, 2026
9d6ee0b
profiles: j713: Use the tweeters' measured time constants
erikwb Oct 31, 2026
04f5798
profiles: j713: Mark qualified
erikwb Oct 31, 2026
806434c
Merge #30: Neo float speaker-energy grants and their safety tests
RyanTheTide Nov 4, 2026
4a8a049
Merge #10: MacBook Air 13" M4 (J713) profile, measured and qualified
RyanTheTide Nov 4, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions .github/workflows/recorder-integration.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Recorder integration suite
on:
push:
branches:
- integration/recording-ring-preservation
workflow_dispatch:

jobs:
test:
runs-on: ubuntu-24.04-arm
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- name: Full Rust suite
shell: bash
run: |
set +e
cargo test --locked --release -j8 -- --test-threads=4 > integration-suite.log 2>&1
echo "$?" > integration-suite-exit.txt
exit 0
- name: Recording preservation regressions
shell: bash
run: python3 tools/test-preserve-recordings.py > retention.log 2>&1
- uses: actions/upload-artifact@v4
if: always()
with:
name: recorder-integration-logs
path: |
integration-suite.log
integration-suite-exit.txt
retention.log
1 change: 1 addition & 0 deletions 95-speakerguardd.rules
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@ LABEL="speakerguardd_macaudio"
KERNEL=="pcmC*D2c", ATTRS{id}=="AppleJ*", ENV{ACP_IGNORE}="1"

KERNEL=="pcmC*D2c", ATTRS{id}=="AppleJ700", TAG+="systemd", ENV{SYSTEMD_WANTS}="speakerguardd.service"
KERNEL=="pcmC*D2c", ATTRS{id}=="AppleJ713", TAG+="systemd", ENV{SYSTEMD_WANTS}="speakerguardd.service"

LABEL="speakerguardd_end"
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "speakerguardd"
version = "0.1.12"
version = "0.1.13-rc.2"
edition = "2021"
license = "MIT"
description = "Feed-forward speaker protection daemon for amplifiers without sense lines"
Expand Down
19 changes: 17 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
# SPDX-License-Identifier: MIT
PREFIX ?= /usr
BINDIR ?= $(PREFIX)/bin
LIBEXECDIR ?= $(PREFIX)/lib/speakerguardd
SHAREDIR ?= $(PREFIX)/share/speakerguardd
UNITDIR ?= $(PREFIX)/lib/systemd/system
UDEVDIR ?= $(PREFIX)/lib/udev/rules.d
LIBDIR ?= $(PREFIX)/lib64
TARGET ?= aarch64-unknown-linux-musl
# The commit the binary names (`-V` and the journal): this checkout's, or
# what a package built from a tarball passes in.
Expand All @@ -17,10 +19,23 @@ test:
cargo test

install: all
install -dDm0755 $(DESTDIR)$(BINDIR) $(DESTDIR)$(SHAREDIR)/apple $(DESTDIR)$(UNITDIR) $(DESTDIR)$(UDEVDIR)
install -dDm0755 $(DESTDIR)$(LIBEXECDIR) $(DESTDIR)$(BINDIR) $(DESTDIR)$(SHAREDIR)/apple $(DESTDIR)$(UNITDIR) $(DESTDIR)$(UDEVDIR)
install -pm0755 tools/preserve-recordings $(DESTDIR)$(LIBEXECDIR)/
install -pm0755 target/$(TARGET)/release/speakerguardd $(DESTDIR)$(BINDIR)/
install -pm0644 conf/apple/*.conf $(DESTDIR)$(SHAREDIR)/apple/
install -pm0644 conf/LICENSE.asahi $(DESTDIR)$(SHAREDIR)/
install -pm0644 speakerguardd.service $(DESTDIR)$(UNITDIR)/
install -pm0644 95-speakerguardd.rules $(DESTDIR)$(UDEVDIR)/

.PHONY: all test install
# the speakers' excursion limiter (a LADSPA plugin for the PipeWire graph),
# built and installed apart from the daemon
filter:
$(MAKE) -C filter

filter-test:
$(MAKE) -C filter test

install-filter: filter
$(MAKE) -C filter install DESTDIR=$(DESTDIR) LIBDIR=$(LIBDIR)

.PHONY: all test install filter filter-test install-filter
187 changes: 187 additions & 0 deletions PROFILES.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,187 @@
# Public profile provenance and format

The new files are drafts for offline review and future machine validation.
They do not certify safety, acoustic performance or macOS parity. The
qualification gate, kernel interlock and existing qualified profile are
unchanged. Installing them does not opt a machine in or enable a service.
See the [README inventory and contribution procedure](README.md#speaker-profile-coverage).

## Public sources and licences

The profile data is adapted from the Asahi Linux contributors'
[speakersafetyd 2.0.2](https://github.com/AsahiLinux/speakersafetyd/tree/8c519e9594b6635d8a5e134d36dcb8ab5ea4a00f),
commit `8c519e9594b6635d8a5e134d36dcb8ab5ea4a00f`. That revision is MIT
licensed. Its complete licence notice is retained in
[conf/LICENSE.asahi](conf/LICENSE.asahi) and installed alongside the data.
Later GPL releases were not used as a source of adapted configuration.
Every new file carries Asahi and Aurora attribution and a pinned link to
the relevant source profile. Upstream aliases are expanded into regular
files so each installed draft has its own explicit qualification flag.

The following public references provide context and cross-checks:

* [Asahi device list](https://asahilinux.org/docs/hw/devices/device-list/)
for board names and marketing identities. These are distinct from ALSA
card names. Do not assume the filename selects every suffixed card ID.
* [Asahi per-machine speaker notes](https://github.com/AsahiLinux/speakersafetyd/blob/8c519e9594b6635d8a5e134d36dcb8ab5ea4a00f/docs/speakers.txt)
for amplifier families and output roles. Its "Sense" column lists "no" or
"unused?" for several machines whose Linux configs nevertheless supply
V/I slots. The drafts follow the
config maps and leave this source discrepancy for capture validation;
they do not infer macOS feedback behaviour from it.
* [asahi-audio graphs](https://github.com/AsahiLinux/asahi-audio/tree/ab1b46928d056bb02bb4ad72d522dab57dc9efe1/firs)
and [WirePlumber mapping](https://github.com/AsahiLinux/asahi-audio/blob/ab1b46928d056bb02bb4ad72d522dab57dc9efe1/conf/wireplumber.conf)
for output roles and DSP channel order. A graph's playback order is not
necessarily its V/I capture order. No DSP coefficients or code are
copied from this GPL revision.
* [alsa-ucm-conf-asahi](https://github.com/AsahiLinux/alsa-ucm-conf-asahi/tree/1473329acab595dfef039f38c384ce16674d6b15/ucm2/conf.d/macaudio)
for card/control names and playback channel counts. UCM names and
`PlaybackChannels` do not establish capture format, full-scale voltage
or coil impedance. No UCM implementation is copied.
* [macaudio machine data](https://github.com/aurora-silicon/linux/blob/070c8e4d43a40ac464fe8bd491c090688a92b63a/sound/soc/apple/macaudio.c),
[TAS2764 gain control](https://github.com/aurora-silicon/linux/blob/070c8e4d43a40ac464fe8bd491c090688a92b63a/sound/soc/codecs/tas2764.c)
and [TAS2770 gain control](https://github.com/aurora-silicon/linux/blob/070c8e4d43a40ac464fe8bd491c090688a92b63a/sound/soc/codecs/tas2770.c)
for public amplifier cap and fallback facts. These are GPL kernel
references by the Asahi Linux and Aurora contributors, used for numeric
facts, with no implementation copied into this MIT project. No Gravity
code or unlicensed fork data is incorporated.
* The existing public [J316](https://github.com/aurora-silicon/speakerguardd/blob/c020028b13515ba29767bdc325f3bd7c7cb9101a/conf/apple/j316.conf)
and [J700](https://github.com/aurora-silicon/speakerguardd/blob/c020028b13515ba29767bdc325f3bd7c7cb9101a/conf/apple/j700.conf)
profiles at the requested base supply policy fallbacks. No new macOS
extraction, private recording or lab measurement is used.

Apple tech specs linked in the README and individual later-machine files
establish speaker counts only. They do not publish thermal constants,
impedance minima, sense slots or amplifier scaling. J575 covers both the
M3 Ultra and M4 Max identities; the M4 variant still needs its own check.
The older public kernel has no audio configuration for the later M4/M5/M6
boards. Their assumed routing is not evidence of kernel audio support.

J713 is not one of these drafts. It is inferred to have the J413's speakers
(shared chassis, ADT DC resistances), so its profile is
j413.conf on the J713's measured twelve-channel sense stream, with its
tweeters' own ADT DC resistances as z_min. Its kernel holds a locked
SN012776 at about -100 dB, as on the J413, so it keeps the J413's 99.5 dB
safe_reduction ([#10](https://github.com/aurora-silicon/speakerguardd/pull/10)).
Its speakers were then measured on the machine, each voice coil's
resistance its thermometer: the tweeters keep the J413's thermal
resistances but take their own, faster time constants, and the woofers'
measured heating is under the J413 constants, which stay. On that evidence
it is qualified.

## What the numbers mean

A file has `[Globals]`, `[Controls]` and one `[Speaker/<name>]` section per
independently modelled output. `src/config.rs` defines the accepted keys.
Upstream `z_shunt` and `a_t_35c` are not supported keys in this format
and are omitted. The model uses the explicit `a_t_20c` coefficient;
copying those other keys would not implement upstream calibration.

Comments are full lines beginning with `#`; inline comments are not used.
All explicit numeric assignments in a new draft have a source comment
immediately before them, or a shared comment for consecutive assignments.
The header resolves the source labels to full public URLs.

| Fields | Units and meaning | Draft source |
| --- | --- | --- |
| `channels`, `is_chan`, `vs_chan` | Total capture words per frame and zero-based I/V slots | The named Asahi profile, or explicitly declared sibling |
| `sense_pcm`, `period` | Capture device index and frames per processing period | Asahi `visense_pcm` renamed, and `period` |
| `sense_format` | Interleaved signed 16-bit I/V words | Asahi [capture format](https://github.com/AsahiLinux/speakersafetyd/blob/8c519e9594b6635d8a5e134d36dcb8ab5ea4a00f/src/helpers.rs), never a playback-slot count |
| `group` | Speakers linked to the same gain reduction | Asahi role groups |
| `tr_coil`, `tr_magnet` | Thermal resistances in K/W | Asahi measured-power model used provisionally for FF too |
| `tau_coil`, `tau_magnet` | Thermal time constants in seconds | Same Asahi model, not retuned |
| `vi_*` | Explicit thermal set driven by measured V*I power | Same Asahi model |
| `t_limit`, `t_headroom` | Hard coil limit and margin in degrees C/K | Asahi limits retained, including larger desktop margins |
| `z_nominal` | Published nominal impedance in ohms | Asahi, not a measured DC minimum |
| `r_ff`, `z_min` | FF reference resistance and pessimistic power-bound impedance in ohms | Lowest DC resistance in the public base J316, 2.7 ohm |
| `a_t_20c` | Resistance temperature coefficient at 20 degrees C, per K | Asahi; not a unit calibration |
| `is_scale`, `vs_scale` | Amps and volts at full-scale I/V words | Asahi, 3.75 A and 14 V |
| `amp_gain_dbv` | RMS output voltage in dBV for a full-scale sine | Public cap and 11 + 0.5 * index relation; later boards use the largest sibling cap |
| `amp_gain_index` | The amp gain control value `amp_gain_dbv` stands for | The same index; the daemon writes it (or the control's maximum, if lower) instead of a higher maximum the card may offer |
| `safe_reduction` | Kernel fallback below unlocked volume, dB | Public TI path and existing J316, 99.5 dB; unknown boards use J700's more pessimistic 20 dB |
| `max_reduction`, `t_reduction_max` | Kernel handoff threshold and thermal ramp range, dB | Existing J316, 7 and 20 dB |
| `horizon_s`, `release_s` | FF prediction and release time, seconds | Existing J316, 4.6 and 20 seconds |
| `t_ctrl_headroom` | Additional working-target margin, K | Existing J700, 5 K |
| `p_limit_1s`, `p_limit_60s` | Independent mean-power budgets, watts | Additional J700 sibling caps, 2.8154 W and 2.5 W; actual unit budgets are unknown |

Working thermal limit is `t_limit - t_headroom`; the unified target keeps
`t_ctrl_headroom` below that. Do not equate an upstream `t_limit` with the
base profiles' macOS-derived hard limits. The new files keep the lower
Asahi values instead of raising them to match the existing J316/J413.
The Asahi guard also retains those lower working limits.

The TI gain examples are index 10 -> 16 dBV, index 15 -> 18.5 dBV and
index 20 -> 21 dBV. Using 18.5 dBV on every desktop would understate the
public index-20 amplifier level. J575's notes list index 15, while the
public desktop kernel configuration caps it at index 20. Its draft uses
21 dBV to account for the larger of those published levels. A real card's
control range must still be checked before use.

When the kernel fallback is unknown (later boards and the M4 variant of
J575), `safe_reduction` uses J700's 20 dB, the highest-powered published
fallback. Assuming 99.5 dB there would underestimate energy during lost
sense or a restart if the real kernel fallback were only 20 dB. Known
older TI routes retain their documented 99.5 dB. Neither value proves
what an unverified kernel actually enforces; its fallback must be checked.

The drafts explicitly set `qualified = false`, `governor = unified`,
`guard = asahi` and `unified_caps = false`. Neither
`--experimental-unified` nor a governor override bypasses qualification.
`--allow-unqualified` is a risk opt-in and does not verify any assumption.
No udev or service changes enable these new machines automatically.

## Sibling fallbacks and their limits

For M1-M3, upstream links such as J414 -> J314, J516 -> J316,
J613 -> J413 and J615 -> J415 are public sharing decisions, expanded
without claiming that this implementation is qualified. The source link
in each file points to the original board entry, including its alias.

For later machines, the choices are:

| Drafts | Thermal and routing sibling | Conservative choice within that family |
| --- | --- | --- |
| J604, J614, J704, J714 | J504 | Same thermal constants as J314, with the lower 130 C woofer hard limit; later J504 slot order is explicit |
| J716 | J316 thermal / J616 routing | The Asahi 140 C hard limit, below the existing J616's 150 C; later J616 slot order is a declared assumption, not a measured M5 map |
| J813 | J413 | J413 thermal set, with older 13-inch Air J313's lower 120 C hard limit and larger 15 K margin |
| J715, J815 | J415 | The public 15-inch Air set, including left/right differences; not the less resistive 13-inch woofer model |
| J773, J775, J873 | J375 | Mono desktop set, with its 40 K margin and the highest public sibling amplifier cap, 21 dBV |

All new drafts use the lowest published sibling resistance, 2.7 ohm,
for both `r_ff` and `z_min`, even when `z_nominal` is higher. That increases
the FF estimate and the pessimistic charge for missing or suspect sense
relative to using the published nominal impedance. It is an assumption,
not proof that an unknown unit cannot have a lower resistance. Replace it
only with sourced, reviewed data. Where a unit has no published power budget, the drafts add the public
J700 caps of 2.8154 W over one second and 2.5 W over sixty seconds. These
are extra ceilings alongside the thermal models and Asahi guard, not
claims about the new speaker's rated power. These are the only published
budgets in the base profiles; they do not replace the thermal limits.

Thermal resistance and time constants cannot be ordered into one
universally conservative model merely by choosing maxima or minima.
A shorter time constant heats sooner but also cools sooner. These drafts
retain published two-node sets together and choose lower limits or a
larger margin where a family provides them. Borrowing a measured-power
set for FF, changing chassis, or changing amplifier routing still needs
validation. The qualification gate is essential; no sibling choice is
claimed to bound an unknown machine under all signals.

## Missing machines

M1 iMacs J456/J457 have public SSM3515 thermal data, but that profile lacks
sense slots, scales and controls. The public kernel explicitly excludes
SSM3515 from its sense stream and keeps its speakers disabled in the
machine configuration. The M3 J433/J434 and M4 J623/J624 iMacs likewise
lack a compatible public capture/tap mapping in the sources reviewed.
An S16 TI feedback map cannot represent those machines. They are listed
as skipped, rather than assigned fictional current sense. Support needs
a feed-forward tap and its amplifier voltage scale, plus appropriate
control and kernel interlock support. The [Apple iMac specs](https://www.apple.com/imac/specs/)
confirm a six-speaker system, but do not supply those missing facts.

J180 has public constants and a map even though the cited kernel keeps
its speakers disabled. Its profile is an unqualified draft, not an
instruction to enable them. Later boards with no audio route remain
unusable on that kernel even after `--allow-unqualified`. Public board
identities, rather than guessed future product names, define this inventory.
Loading