GPT-5.6 Luna got the same brief as every P25 audit on bench: find why this firmware struggles to decode P25 Phase 1 and Phase 2 voice on the radio’s HR-C6000, and what to do about it.
It worked in a clean room, with a fresh copy of the repository, no earlier reviews and no network, and it answered in 193 lines, the shortest review on this task. I checked its claims against the code, the manual and the repository’s notes, reran its Golay sweep and its test suite, and used the firmware-in-the-loop model and CPU emulation from the earlier clean-room audits.
Overall grade
C+
75 / 100 weighted
FDCBA
Careful, short, and never built.
On the question that decides this project, it takes the right position and states it plainly: the safe default is that the I2S stream carries microphone or
filtered voice audio until a controlled recording proves otherwise. It then finds three things the code gets wrong — the clock writes that skip the verified
writer, the health gate that accepts ten times what the timing loop can track, and a starvation counter that is reported but never incremented, which
no audit before it noticed. It is also the first review to weigh the late-entry muting as a trade rather than certify or ignore it.
Then it tries to build the firmware, gets a missing compiler, and concludes the environment has no ARM toolchain. The toolchain ships inside the repository,
and the README it had already read says . ./tools/env.sh # toolchain on PATH. Its sibling GPT-5.6 Sol sourced that
script in the same sandbox and rebuilt the image.
One wrong claim, and it removes a whole class of evidence: no linker map, no stack usage, no RAM ceiling, and no way to size the vocoder its own findings
point at. 23 of 24 claims hold, which puts it at C+.
Claims that check out
23 / 24
0 overstated or incomplete · 1 wrong
Decode-critical issues found
2 of 4
the source outright, the analog chain by half
Wrong claims
1 of 24
the compiler that was in the repository
Length
193 lines
the shortest review on this task
The run, not graded: 24 min · 26 agent steps · 37 tool calls · 21K output tokens (11K reasoning) · 3.7M tokens re-read · OpenAI subscription, one-shot
Headline findings
Six things to know about this review
Holds up
It states the safe default, and designs the test that settles it
Five strands: the monitor’s own comment describes an assumed chain, the manual gives the I2S pins to codecs and vocoders with no discriminator route, the stock analysis found none either, the analog path was configured for FM voice, and the undocumented 0xE0 interpretation is a community reading.
Its conclusion is the one the repository’s own notes support: the safe default is that this path is microphone/codec audio or filtered analog audio until a controlled recording proves otherwise — settled by capturing a keyed carrier, microphone excitation and silence, and measuring the transfer function and the eye.
p25monAudioUnderruns is declared, and printed in the status line as pcm_starve. The audio fill routine writes zeros whenever the decoded-audio ring is empty — and never touches the counter.
So the diagnostic reads pcm_starve=0 while the speaker is being fed silence because the decoder fell behind. Twelve audits read this file before this one; none of them noticed.
p25mon.c:123, 410–426, 514–517
Holds up
It weighs the muting instead of certifying it
Late entry waits for validated link control before opening audio, so a call joined without a header loses its first seven IMBE frames. The test suite pins that behaviour: 320 samples, two 20 ms blocks.
Other audits either list this among the things that work or miss it. This one names the cost, keeps the fail-closed property, and proposes the bounded fix — hold a pre-roll, release it only once signalling says the call is clear, never replay it after an encrypted or rejected result.
tests/p25/signalling.py:72 · p25rx.c:42–49
Wrong
The compiler was in the repository it was reviewing
BLOCKED because arm-none-eabi-gcc is not installed in the environment. The repository ships its own toolchain under tools/, and the README this run had already read says it twice: Local toolchain (nothing installed system-wide), and in the quick start, . ./tools/env.sh # toolchain on PATH. It ran make without sourcing that script.
Its sibling GPT-5.6 Sol sourced it in the same sandbox image and rebuilt the firmware. The cost is not the failed build: it is the linker map, the stack usage and the RAM ceiling — the evidence its own real-time finding asks for.
The analog chain, minus the register and minus the radio
It names de-emphasis and the 3 kHz filter at 0x34 and reasons correctly that entering analog FM mode leaves a voice-shaped path in front of a four-level slicer. It stops there: no bit to clear, no comparison with the DMR filter set the firmware already writes, and no look at the AT1846S at all, where the receiver sits in 25 kHz analog bandwidth for a 12.5 kHz channel.
Modelled, de-emphasis alone leaves 0 of 180 frames. The finding is right; the fix is left as configure and verify a flat path.
Finding 5 puts real time next in line and names the cause correctly: float mbelib synthesis on every accepted codeword, plus a large FIR per window, all inside the application task at 72 MHz. Its resolution is to build with the ARM toolchain and record worst-case cycles — which it believed it could not do.
Emulated, that synthesis needs 11–16× the 72 MHz budget. It is not the next thing to measure; it is the one software blocker on the board that no audit has yet found.
Same rubric, weights and scale as every P25 audit on bench, so scores compare directly. GPT-5.6 Luna sits mid-table on coverage and high on accuracy and clarity, one place below HY4 Preview.
Dimension scores
Hover or focus a bar for the reasoning. Weighted total 75, grade C+.
Rubric table
Dimension
Weight
Score
Points
Why
Accuracy & evidence
30%
82
24.6
23 of 24 claims hold and its citations land, including the 81-tap filter another audit miscounted and the late-entry test that asserts two audio blocks. The one wrong claim is about its own environment, and it is the reason three findings have no numbers.
Coverage of decode problems
25%
58
14.5
The sample source, half the analog chain, the health gate, the clock writer, the dead starvation counter and the late-entry cost. No capture-export defect, no squelch conflict, no memory figures, no 8 kHz rule.
Root cause & prioritisation
15%
80
12.0
It puts the physical sample path first and says why the rest is downstream of it, and it refuses to treat clocks, sync counts or RSSI as evidence of RF. It never sizes the vocoder, so real time stays an open question rather than a blocker.
Fix plan & acceptance gates
15%
80
12.0
P0 to P3, measurement before tuning, with specific fixes for the clock writer, the health gate, the underrun counter and late entry. Its first step runs through the capture export, which it never checked.
Originality & attribution
10%
72
7.2
The dead starvation counter and the late-entry pre-roll are its own, and the Golay sweep it ran reproduces. Little else goes beyond what the repository already says, and the build it did not attempt is where the new evidence was.
Clarity & calibration
5%
84
4.2
Nine ranked findings, each with evidence, why it prevents decoding, and a resolution — then an honest list of what it ran and what it could not. Short without feeling thin.
Weighted total
100%
75
Grade scale: A ≥ 90 · B 80–89 · C+ 75–79 · C 70–74 · C− 65–69 · D 50–64 · F < 50
Receive chain
Where its findings sit
Luna’s findings sit on the ingress question and the monitor’s own bookkeeping: the source, the clock writer, the health gate, the starvation counter and the audio policy. The red tags are the front end it half-opened and the vocoder it left as a measurement.
F1 raised by GPT-5.6 LunaN1 missed or left openDashed edge: no documented connection
F1Treat the I2S stream as microphone audio until a capture proves otherwise
F2Analog FM mode leaves de-emphasis and a 3 kHz filter at 0x34
F3Clock writes skip the verified writer; the health gate is ten times too wide
F4pcm_starve is reported but never incremented
N1AT1846S filters and 25 kHz bandwidth
N2mbelib needs 11–16× the 72 MHz CPU
N3The capture exports the wrong halfwords
N4The parser certifies incomplete captures
N5The test oracle shares the receiver’s RRC filter
N6The manual’s 8 kHz frame-clock rule
The front end
Half the chain, and what the other half costs
It names the C6000 filter and de-emphasis correctly. The AT1846S side, which it never opens, is where the other half of the damage is — and where the one-line fix lives.
What the inherited 0x34=0x3C does to C4FM
Standard C4FM through each HR-C6000 receive stage alone, then the firmware’s live demodulator and framer. 20 LDUs: 180 IMBE frames possible.
De-emphasis alone, −6 dB per octave from 300 Hz, leaves no frames decodable. Luna identifies this path as the suspect without naming the bit or the register set that clears it.Data table
Audio stage
Noise-free frames · NIDs
Symbol errors
20 dB frames · NIDs
no audio filtering
180/180 · 20/20
0.0%
180/180 · 20/20
3 kHz low-pass only
180/180 · 20/20
0.0%
180/180 · 20/20
de-emphasis only
0/180 · 0/20
51.3%
0/180 · 0/20
de-emphasis + 3 kHz low-pass (0x34=0x3C)
0/180 · 0/20
49.8%
0/180 · 0/20
Register state for a P25 session
What trxSetModeAndBandwidth(RADIO_MODE_ANALOG, true) leaves in place, next to OpenGD77’s own settings for 4800-baud 4FSK.
Register
Monitor today (analog FM)
OpenGD77 DMR mode
Effect on C4FM
AT1846S 0x40
0x0030, low-frequency bit cleared: “so it should be cleared to receive FM”
0x0031, “allows low freq audio”
Removes the near-DC content that runs of equal symbols depend on
AT1846S 0x58
0xBC85, “enable some filters for FM e.g. high and low pass filters”
0x9CDD, “disable all filters in DMR mode”
High- and low-pass shaping of the symbol stream
AT1846S 0x44
0x06CC, AF gain 80%
0x07FF, 100%; the DM-1701 “needs higher AF gain” to decode 4FSK
Lower discriminator level into the next stage
AT1846S bandwidth
25 kHz
12.5 kHz, forced for digital
Wider noise bandwidth and deviation scaling set for ±5 kHz FM
HR-C6000 0x34
0x3C, “compressor off, de-emph on, 3 kHz audio filter”
not written; the FM value persists
−6 dB/octave from 300 Hz and a 3 kHz low-pass on the FM receive path (manual §6.2)
Sources: AT1846S.c:191–217, HR-C6000.c:2846–2854 and 2858–2875, trx.c:228–279, p25mon.c:724. Register comments are OpenGD77’s; the manual translation documents 0x34.
The measurement it thought it could not take
What a sourced env.sh would have shown
Its real-time finding ends with “build with the ARM toolchain, inspect the linker map and .su files”. The toolchain was in the workspace. This is what the numbers look like.
Where one second of decoding goes
The firmware’s streaming loop, compiled with its own GCC flags and newlib and run in an emulated Cortex-M4F over 2.2 s of input (12 LDUs, 108 IMBE frames, all decoded). Instruction counts become time by assuming one clock cycle per instruction, the optimistic end.
The demodulator fits: about 40% of the core, 60% at 1.5 cycles per instruction. The vocoder needs roughly 11 times the whole CPU, 16 times at 1.5. Building with -O2 changes these by under 1%, because the time is spent inside newlib’s prebuilt libm.Per-stage table
Stage
-Os, M instr/s
Share at 1.0 · 1.5 c/i
-O2, M instr/s
Resampler ×1.6
1.40
1.9% · 2.9%
1.32
RRC FIR, timing and level fit
28.00
38.9% · 58.3%
27.70
Framing, NID and FEC
0.74
1.0% · 1.5%
0.73
mbelib IMBE decode and synthesis
781.90
1,086.0% · 1,629.0%
781.60
Total
812.1
1,128% · 1,692%
811.4
CPU time for each 20 ms of speech
One call to mbelib’s IMBE decoder per frame, uvquality 1, FEC-valid codewords with chosen pitch and voicing, mean over 100 consecutive frames.
Every frame type misses its 20 ms deadline, from about 2× for the simplest frames to more than 20× for loud voiced ones. The cause is mbelib’s per-harmonic phase, which accumulates without wrapping (mbelib.c:306). Once a call has run for about half a second, nearly every voiced-band cosf argument exceeds about 201 radians, and newlib’s cosf takes its __kernel_rem_pio2f path at roughly 1,700 instructions per call instead of 40 to 100. The real firmware links that same path.Per-frame table
Frame type
Mean, M instr
Worst, M instr
Mean ms at 1.0 · 1.5 c/i
L=20, all bands unvoiced
3.00
5.02
42 · 62
L=20, typical (15 of 20 voiced)
9.68
10.23
134 · 202
L=30, typical (21 of 30 voiced)
13.97
14.76
194 · 291
Random pitch and voicing
15.86
26.17
220 · 330
L=56, all bands voiced
31.25
32.97
434 · 651
Claim check
24 claims, checked one by one
Twenty-three of twenty-four hold, and its citations land where it says they do. The single wrong claim is about its own environment, and it is the reason three of its findings carry no numbers.
Item
What GPT-5.6 Luna claims
Where
Result
Notes
Scope
The two P25 trees are kept byte-identical for the shared decoder files, and the tests enforce it
tests/p25/run.py:249–254
Holds
run.py asserts read_bytes() equality for eleven shared files before anything else runs.
F1
The assumed chain (AT1846S analog FM → C6000 codec/I2S → demodulator) is an assumption about the source signal, not a proven route
The stock audit reaches the same conclusion, and the firmware labels the source UNVERIFIED.
F1
The manual describes the I2S/vocoder pins as codec and vocoder PCM interfaces and documents no internal discriminator-to-I2S stream
manual 480–506, 510–534
Holds
F1
The safe default is that this path carries microphone/codec audio or filtered analog audio until a controlled recording proves otherwise
—
Holds
The right default, and the closest any audit has come to the repository’s own reading without asserting more than the evidence carries.
F1
STM32 I2S3 is configured as slave receive with 16-bit extended data, which proves the MCU receives a C6000 stream but not what the C6000 is sending
Core/Src/main.c:463–471
Holds
Both register settings are at the lines given.
F1
The resolution is a controlled comparison — keyed in-band P25 carrier against microphone excitation and silence — measuring transfer function, clipping, DC, polarity, timing and the four-level eye
—
Holds
The acceptance test the answer key asks for, with the discriminator-to-ADC tap as the fallback.
F2
The monitor enters analog FM mode, where HRC6000SetFMRx writes the normal de-emphasis and 3 kHz filter configuration at 0x34, and disabling FM feedthrough later does not show that filter was bypassed
HR-C6000.c:2846–2855; p25mon.c:719–734
Holds
Correct, and the reasoning is right. It stops short of the register-level fix: which bit to clear, or the DMR filter set the firmware already writes for DMR. It never examines the AT1846S side at all.
F3
The manual establishes DMR 4FSK, DMR TDMA and DMR-oriented vocoder interfaces, not P25 framing, NID/BCH, status symbols or IMBE
manual 22–50, 78–95
Holds
Accurate, and it avoids both traps here: it neither claims the chip can decode P25 nor asserts that its 4FSK modem could never carry P25 symbols.
F4
The demodulator uses an 81-tap RRC-like matched filter, per-window DC removal, max-power timing selection, decision-directed level fitting and bounded timing correction
p25_4fsk.c
Holds
The tap count is right, where another audit put it at 65.
F4
Timing is clamped to about 7.92–8.08 samples/symbol while the monitor accepts measured rates from 90% to 110% of nominal, and resamples using the nominal rate
p25_4fsk.c:228–241; p25mon.c:572–581
Holds
The health-gate mismatch (M7), with the resampling consequence stated correctly: a stream near the gate edge lands far outside what the timing loop can pull in.
F4
Decisions are hard dibits with no soft metrics passed into NID, trellis or IMBE decoding, and there is no IQ path, equalizer or CQPSK support
p25_4fsk.c; p25rx.c
Holds
F5
The whole chain runs in the application task at 72 MHz, with float mbelib synthesis on every accepted codeword and a large FIR per window
p25mon.c; mbelib
Holds
True, and it names the vocoder as the leading cost. It never estimates that cost: emulated, mbelib needs 11–16× the 72 MHz budget, which turns “unverified” into “blocked”.
F5
The ARM toolchain is not installed in this environment, so the linker map and .su files could not be inspected and the builds were blocked
tools/env.sh; README.md:17–27
Wrong
The toolchain ships inside the workspace (tools/xpack-arm-none-eabi-gcc-13.2.1-1.1) and the README it read says “. ./tools/env.sh # toolchain on PATH” and “Local toolchain (nothing installed system-wide)”. It ran make without sourcing that script. GPT-5.6 Sol, in the same sandbox image, sourced it and rebuilt the firmware. The mistake cost this review the map figures, the stack usage and the RAM ceiling — the evidence its own Finding 5 asks for.
F5
The receive buffers are tightly budgeted: a 512-sample capture ring, a 768-sample demodulation window with slack, the p25rx state and a 512-sample audio ring across SRAM and CCM
p25mon.c:93–124
Holds
F6
SPI0WritePageRegByte returns −1 when SPI0inUse and reads refuse the same way, p25monWriteReg retries and verifies, but p25monApplyClockCfg writes 0x2F/0x32/0x33 through the unchecked wrapper
spi.c:53–73, 104–128; p25mon.c:550–552, 624–639
Holds
Exactly M11, and it is the second audit to trace it through both the driver and the two monitor call sites.
F7
p25monAudioUnderruns is declared and reported but never incremented: the fill routine outputs zero when the audio ring is empty, so a report can show pcm_starve=0 while the speaker is silent
p25mon.c:123, 410–426, 514–517
Holds
T3, confirmed at every line. The first audit to find this: earlier reviews either ignored the counter or repeated the documentation that says it works.
F8
Late entry waits for validated LC/ESS before opening audio, so a call with no HDU loses its first seven IMBE frames; the tests expect only two 20 ms audio blocks from a late-entry LDU
tests/p25/signalling.py:72
Holds
The test asserts 320 samples, which is exactly two 20 ms blocks at 8 kHz. This is the fail-closed muting behaviour (M8), and the review is the only one to weigh it as a design trade rather than certify or ignore it.
F8
A bounded pre-roll released only after LC/ESS confirms a clear call, never replayed after an encrypted or rejected result, would fix late-entry audio safely
—
Holds
A sound fix that keeps the safety property the current behaviour exists for.
F9
The suite independently exercises BCH/NID, FEC, CRC, trellis, framing, polarity, timing continuity, trunk grants, capture ordering and the mbelib path, and it passes
tests/p25/run.py
Holds
Reproduced.
F9
The channel model is synthetic and idealized: no HR-C6000 analog path, AT1846S response, carrier error, adjacent channels, multipath or simulcast, and no comparison against reference speech
p25_4fsk.c; p25_selftest.c
Incomplete
Right as far as it goes, and the conclusion is correct. It does not name the sharper half: the generator shapes its waveform with the receiver’s own RRC table, so the oracle is circular rather than merely synthetic.
Phase 2
There is no Phase 2 decoder in either tree: trunking invalidates the TDMA identifier, the demodulator is scalar four-level only, the framer knows only Phase 1 DUIDs, and the only vocoder in the new path is IMBE 7200×4400
p25_trunk.c:26; p25_4fsk.c; p25rx.c
Holds
Phase 2
The stock C6000/firmware AMBE path is DMR-related and is not a P25 Phase 2 decoder, and the manual’s generic vocoder-docking statements do not prove otherwise
manual §4.6; codec.h
Holds
Carefully put: it neither claims the half-rate decoder is missing from the tree nor assumes the DMR blob could be reused.
Verification
A focused host check ran every 6-bit and 12-bit Golay value through p25_golay_decode and all passed
p25_fec.c
Validated
Matches an independent harness built during an earlier grading: the decoder returns the systematic data for every codeword, which is also why an earlier audit’s “Golay fallback bug” did not reproduce.
Verification
The passing host tests establish software consistency and do not change the hardware, RF, real-time or Phase 2 conclusions
—
Holds
The right reading of its own evidence, and it says so twice.
Provenance
What was already known, and what it added
Every clean-room audit could see only the repository: its notes, code comments and the HR-C6000 manual, summarised in the first column. Luna raises fewer rows than its sibling but adds one no audit before it had: the starvation counter that never increments.
Issue
Project docs in the repository
Grok 4.6 Sep 17
DeepSeek V4.1 Flash Sep 17
Muse Spark 1.3 Contributor Sep 17
GLM 5.3 Flash Sep 17
UNIONALPHA Sep 17
Qwen3.8 Flash Sep 17
Qwen3.8 Max Sep 17
GLM 5.3 Sep 17
DeepSeek V4 Pro Sep 17
Gemini 3.8 Flash Sep 17
HY4 Preview Sep 17
GPT-5.6 Sol Sep 17
GPT-5.6 Luna Sep 17
Capture export stages the wrong I2S halfwords
absent
raised §1, first code change
absent its first experiment uses that capture
absent trusts the capture
absent relies on the capture
raised F3, fixed and verified
raised P1-2, tests miss the adapter
absent calls the capture validated
raised §2, proven with a reproducer
absent calls the capture module sound
absent certifies the capture path
absent its plan depends on it
raised derived from the stride
absent its first step relies on it
Capture parser certifies an incomplete stream
absent
absent
absent
absent trusts the parser
absent relies on the parser
absent
absent
absent relies on the parser
absent
absent
absent
absent
partly module tests miss the stride
absent
pcm_starve never increments
absent documented as working
absent
absent
absent relies on it
absent
raised F7
raised P1-7
absent
raised §2
absent
absent named only as a predicted symptom
absent
absent
raised F7, first to find it
No static RAM margin
partly margins still to measure
absent
raised M6, 0 bytes free
partly “nearly full”, from the docs
raised F5, byte-exact map audit
raised F6, byte-exact
partly calls the reservation headroom
absent
partly “~zero headroom”
partly from the docs, not the map
raised §3.5, exact map symbols
absent
raised exact map figures
absent could not read the map
The I2S stream is most likely microphone audio
partly open, leaning sceptical
raised §1, 0x89 versus 0xC9
raised B1, four-value test
raised P1-1
partly open, leans towards RF
partly blocking, but never says microphone
raised P1-4, 0xE0 mic bit
raised A, the clearest case yet
raised §1, three sources
raised §1–§2, with the tap as the fix
raised §1 and §3.1
partly listed unverified, tested first
raised Blocker 1, source unproven
raised F1, as the safe default
HR-C6000 de-emphasis on the capture path
absent
raised §2, bit 5 of 0x34
absent calls it benign
raised P1-2, 0x34=0x3C
raised F2, closes the eye
partly cited, called unmeasured
raised P1-3, 0x34=0x1C
raised C, with the 0x34 bit 5 fix
raised §1, tilts the eye
absent
raised §3.3, 0x34=0x3C
raised P1-1, and the boot table too
raised 0x34=0x3C, never replaced
raised F2, without the fix
AT1846S FM filters, low-frequency bit, 25 kHz missed
partly “require characterization”
raised §2, register level
raised B2, filter register
raised P1-2, 0x58 filters
partly “voice filtering”; wrong bandwidth premise
partly cited, called unmeasured
raised P1-3, DMR 0x58 probe
absent
absent
absent
raised §3.3, with the DMR fix
absent
raised 25 kHz for a 12.5 kHz channel
absent
0x10=0x6E hybrid state; 0x36 dual role
partly bring-up clock rules
partly misses 0x6E and the 0x36 clock gate
partly “undocumented hybrid state”
partly quiet-chip registers
raised F4, 0x10=0x80 kills the clock
partly F1, 0x6E against 0x80
partly “hybrid I2S state”
partly slot engine and eco only
partly §4.3, 0x10=0x80 hazard
partly “inconsistent hybrid state”
partly 0x36 and 0xE0, not 0x10
partly 0x36, 0xE0, 0x26; not 0x10
partly FM mode writes, not 0x10
partly 0x36, 0xE0, 0x26 listed
Manual: I2S frame clock “must be 8KHz” missed
absent
raised §3
absent quotes the paragraph, not the rule
absent
absent
raised F4
absent quotes the formulas, not the rule
absent cites the section, not the rule
absent
absent
absent
raised P1-2, with a test for it
absent
absent
One-layer 4FSK test mode as a P25 tap
partly stock BER-test block only
raised Gate D
raised B5, exact recipe
absent dismissed
absent
partly worth a bounded test
absent ruled out at “9600 Bd”
raised step 2, a symbol source
absent “not a P25 symbol source”
absent “no raw modem mode”
absent “zero internal silicon capability”
partly cited, then dismissed
absent
absent
±10% health gate versus ±1% timing clamp
absent
absent
raised B3, impact overstated
raised P1-3
raised F3
absent
absent
absent
absent
absent
absent
absent
raised with the resampler consequence
raised F4, with the resampling consequence
Fail-closed muting at LDU cadence
absent
absent late-entry mute only
absent
absent calls it an asset
absent
absent
partly “keep it”
absent
absent calls it tested
absent
absent certifies it as correct
absent
absent certifies it as correct
raised F8, weighed as a trade
Non-standard MFID mutes clear calls
absent
absent
absent
absent
absent
absent
absent
absent
absent
absent
absent certifies it as correct
absent
absent certifies it as correct
absent
Test waveform shares the receiver’s RRC filter
partly “synthetic RRC/AWGN” caveat
absent
partly tested it, says not to fix
partly synthetic only, wants recordings
absent would extend that model
raised F5, unquantified
absent would extend that model
partly synthetic only, not the circularity
partly synthetic only
partly “ideal RRC-shaped signal”
absent
partly P1-5, circularity without the filter
raised names the shared table
partly synthetic, not circular
MCU runs at 72 MHz
raised
raised in passing
absent
raised P1-5
absent
raised F7
absent
absent
raised §5
raised §7, with the OpenRTX precedent
raised §3.5, with the PLL settings
raised P1-4, with the PLL lines
partly named as the target, never costed
raised F5, as the real-time risk
Vocoder needs 11–16× the 72 MHz CPU missed
partly decode timing unmeasured
absent “fine on a 1 ms tick”
absent “vocoder question settled”
partly unmeasured; fix order backwards
absent “in good shape”
partly deadlines “unproven”
absent “not the problem”
absent “not the problem”
partly inline, unmeasured
partly cites 4.36M, calls it 60%
absent puts it at 15–18 ms per frame
partly 87% measured, budget unresolved
absent left as a later measurement
partly named, never sized
Direct discriminator tap (M17 mod)
raised
raised uncredited
raised pins, timer ADC, 48 kS/s
raised fallback, pin 9
raised fallback
raised fallback
raised fallback
raised step 5, the likely answer
raised §1 pivot
raised its central recommendation
raised §5.1, with the ADC and DMA design
raised the fallback if Gate 0 fails
raised ADC with bias and anti-alias
raised F1, the fallback route
Phase 2 architecture and scope
partly not implemented
partly misplaces the AMBE+2 decoder
partly voice via mbelib AMBE+2
raised with RF band limits
partly says mbelib has no AMBE+2
raised most accurate section
partly DMR and X2-TDMA parts
raised AMBE+2 present but uncalled
raised with a reference map
partly no symbol rate or sync
raised accurate on rate and slots
partly right conclusion, H-CPM mislabelled
raised plus the linked-symbol check
raised careful about the vocoder
Two unverified SPI writes per decoded 20 ms frame
absent
absent
absent
absent
absent treats them as protection
absent
absent
absent
absent
absent
partly the SPI0inUse mechanism
partly silent SPI0 failures
raised radioSetAudioPath per frame
absent
Capture sessions lack epochs
absent
absent
partly measured=0 only
absent
absent
raised F9, 8 kHz under a 24 kHz header
absent
absent
absent
absent
absent
absent
partly asks for source metadata
absent
Ring and tick real-time budget
partly deadlines unproven
partly calls it fine
absent
partly overruns look like weak RF
absent
raised F7, 1 ms is a minimum
partly register stalls against the ring
absent
partly 1 ms tick as a constraint
absent
absent
absent
raised the 2 s refresh stall
partly buffer inventory only
Clock config 3 assumes 12,288 Hz; the codec formula gives 12,000
absent
absent
raised B3, clock model
absent
partly “guessed semantics”
absent
raised P1-6, for a different reason
absent
partly “unvalidated on hardware”
absent
absent
absent
absent
absent
Clock-config writes bypass the verified SPI writer
partly SPI retry note
absent
raised M1
absent
absent
raised F9
absent
absent
raised §4.2
absent
absent
absent
raised traced through four files
raised F6, both call sites
Stock squelch re-arms FM audio (0x10=0x80) during monitoring
absent assumes it can’t re-arm
absent
absent
absent
partly names squelch logic as a risk
raised F1, new
absent “fixed” by forcing squelch open
partly names the squelch path as a writer
partly hazard flagged, “unlikely”
absent
absent
absent
raised same call chain, independently
absent ownership named in general
Stale clear-call state releases a new call’s first frames
absent
absent
absent
absent
absent
raised F8, probe
absent
absent
absent
absent
absent
absent
absent
absent
No frequency tracking; ad-hoc timing loop gains
partly a code comment calls the DC estimate biased
absent
absent
absent
absent
absent
absent
absent
absent
raised §4, new
absent reads the loop as sound
absent
partly the ±1% clamp only
partly asks for a timing/AFC loop
Unknown talkgroup opens audio (fail-open gating)
absent
absent
absent
absent
absent
absent
absent
absent
absent
absent
absent
absent
absent
absent
Project docs: README.md, CAPABILITY-REPORT.md, STAGE3-BRINGUP.md, STAGE4-TX-FEASIBILITY.md, analysis/stock-p25/REPORT.md, analysis/capture-milestone-REPORT.md, dm1701-p25-demo/README.md and source comments. The starvation-counter row had been missed by every audit before this one.
Its plan
What to keep, change and add
Four stages, measurement before tuning, with a named stop: qualify conventional C4FM first and claim nothing about CQPSK or Phase 2 from those results. The gap is what it plans to measure with.
Keep
Worth doing as written
P0, prove the source: compare a keyed carrier, unkeyed noise and microphone excitation, and measure signedness, rate, clipping, polarity, spectrum and the eye.
Route clock writes through the verified retry and readback helper, and confirm the measured rate before re-enabling decode.
Use the measured rate for resampling, or narrow the health gate to what the timing loop can pull in.
Fix the underrun accounting, and use it with ring overruns as a real-time acceptance test.
Change
Would cause new problems
“Use the existing framed capture export”: it stages the wrong halfwords, so P0 would measure the wrong samples.
Leaving the build for later: the toolchain is in tools/; the map and the cycle counts were available all along.
Real time as “the next blocker”: the vocoder is already 11–16× over budget, which is a design decision, not a measurement.
Add
Missing from its plan
The AT1846S filter set, the half of the analog chain it never opens.
The manual’s 8 kHz frame-clock rule, which makes the 24 kHz configuration out of specification.
A circularity check on the test oracle: the generator shapes with the receiver’s own filter, which is more than “idealized”.
The one-layer path, and what it would take
Manual Table 5.6 (verified line by line), with the questions that decide whether it can carry P25.
Register
Value
Manual description
0x01
xxxx 0000
IF receive mode
0x07 0x08 0x09
0x0B 0xD9 0x54
24-bit IF word, 455 kHz by default (OpenGD77 boots at 450 kHz)
0x10
0x02
One-layer mode, continuous receive; bit 5 for slot receive
0x40
0x40
Receive enable, test mode
0x41
0x41
Receive test enable
Output: 36 demodulated bytes per frame in RX RAM from 0x30, frame type in 0x51, system interrupt bit 0 when ready.
Rate fits exactly: 36 bytes every 30 ms is 9,600 bit/s, which is 4,800 symbols per second. Contiguous frames would lose nothing.
Open: Figure 5.15 is DMR burst geometry, so the mode may only emit frames after DMR sync. That’s the first thing to test.
Also needed: the AT1846S DMR register set, since the demodulator is fed by the AT1846S. And the vocoder still has to run in real time.
Phase 2
Correct, and careful about what it does not know
Its Phase 2 case is short and holds: the trunk follower invalidates the TDMA identifier, the demodulator makes scalar four-level decisions only, the framer knows Phase 1 DUIDs, and the only vocoder in the new path is IMBE 7200×4400. Its six-point plan — a verified input, a separate acquisition path, Phase 2 channel coding, a compatible vocoder, a resource decision, an interoperability set — is the right shape.
What stands out is the carefulness. It says the stock AMBE path is DMR-related and not a P25 Phase 2 decoder, which is true, without claiming the half-rate decoder is missing from the tree — the error that cost an earlier audit — and without assuming the licensed blob could be reused. It also declines to state the symbol rate or the burst structure, so the section informs a decision without teaching anyone the protocol.
Against the other clean-room audits
The same diagnosis as its sibling, at half the reach
GPT-5.6 Sol and GPT-5.6 Luna ran the same brief, in the same sandbox, at the same reasoning effort, hours apart. They agree on the diagnosis and on two of the three integration defects. Sol found the broken capture export, the squelch conflict and the memory ceiling, and built the firmware; Luna found the dead starvation counter that Sol missed, and concluded there was no compiler.
Same rubric and weights. Hover or focus a bar for the score.
GPT-5.6 Sol
HY4 Preview
Grok 4.6
GPT-5.6 Luna
Method and limits
How this was checked
I read GPT56LUNA_REVIEW.md and checked each claim against the firmware sources, the OpenGD77 drivers, the translated HR-C6000 manual and the repository’s notes. I reran its Golay sweep and the test suite, and confirmed the late-entry assertion it cites. For its toolchain claim I checked the sandbox image, the bundled toolchain in tools/, the README it had read, and the build artifacts its sibling produced in the same image.
Before grading I audited the run: one model throughout, no network, no skills or memory, and nothing read outside its copy of the repository — the audit came back clean on every channel. It ran one-shot through the Hermes bench profile on an OpenAI Codex subscription, at the same reasoning effort as every other audit. The de-emphasis and CPU results come from the model and emulator used for the Grok 4.6 audit.
Filter responses are modelled, not measured.
CPU figures come from instruction counts in an emulator, not timing on the radio.
Its build failure is reproduced by reasoning about its session, not by rerunning the model.
No firmware was flashed, and no radio was touched.
podman run --rm --network=none localhost/dm1701-bench:1 which arm-none-eabi-gcc
# not on PATH — and tools/env.sh is what puts the bundled xPack GCC 13.2.1 there
ls runs/2026-09-17-gpt-5.6-sol/changes/…/build/MDUV380_FW.elf
# its sibling built the image in the same sandbox, during its run