decomp(aterm): match DiscoverAccessPoints, BuildAssociationRequest, RunConfigProtocol #1310

Merged
coah80 merged 1 commits from agent/w0929/o2-aterm-land into main 2026-10-09 06:00:02 +00:00
coah80 commented 2026-10-09 06:00:00 +00:00 (Migrated from github.com)

worker 228733c3. instruction-exact functions: 25/26 gate: 0 regressions, 0 forbidden, 0 readability, dol sha1 26116613f624061ba99c8d1a299aaa6efa85670d

worker 228733c3. instruction-exact functions: 25/26 gate: 0 regressions, 0 forbidden, 0 readability, dol sha1 26116613f624061ba99c8d1a299aaa6efa85670d
graphify-labs[bot] (Migrated from github.com) reviewed 2026-10-09 06:06:40 +00:00
graphify-labs[bot] (Migrated from github.com) left a comment

Graphify reviewed this change.

Worth a look — the grounded gate found no coupling regressions or blocking issues, but 4 advisory finding(s) below merit a look before merge.


Graphify review — findings

Refactors the ATERM setup code around SDK-style inline helpers. atermGetFrameData, atermGetCommandElement and atermGetElementData now handle frame checksum validation, command matching, optional AES unwrap and option walking, while atermSleep, atermSendNotify and atermSendFrameViaInterface (which broadcasts to port 0xE601 and maps send failures to -4) replace the old wait and append helpers. Hex encoding is consolidated into a single atermFormatHexByte used by both MAC formatting and WEP key parsing, and the scan loop indexes records directly through the new AtermScanBuffer instead of advancing parallel cursors.

Worth a look

  • Option parser reads and advances past end without validating option length — src/scene/setting/ATERM.c:1432 · Escalate · medium
    • agreed by 2 of 2 members but NOT verified (no proof, no reproducing execution) — consensus is not a verdict; needs human review
  • Config replies may now go to the last peer instead of the broadcast address — src/scene/setting/ATERM.c:1660 · Escalate · medium
    • agreed by 2 of 2 members but NOT verified (no proof, no reproducing execution) — consensus is not a verdict; needs human review
  • Search response destination changed from broadcast to last peer — src/scene/setting/ATERM.c · Escalate · medium · 2 independent checks
    • agreed by 2 of 2 members but NOT verified (no proof, no reproducing execution) — consensus is not a verdict; needs human review
  • atermSendFrame ignores the peer address and always broadcasts — src/scene/setting/ATERM.c:1404 · Escalate · medium · 2 independent checks
    • agreed by 2 of 2 members but NOT verified (no proof, no reproducing execution) — consensus is not a verdict; needs human review
Analysis details — impact, health, verification

Impact & health

Graphify review

Impact — 63 functions depend on the 63 functions this change touches.

Health — this change adds coupling hotspots:

  • worse: ATERMRunConfigProtocol() — 1 callers, 24 callees

Verification — 63 functions in the blast radius were not formally verified this run (proofs are advisory here).

Gate & verification

graphify gate

PASS — objectively clean (no health regressions, tests not run — proofs not run this pass (advisory)). Grounded, not self-assessed.

Advisory (not blocking):

  • verification_scope: 63 function(s) in the blast radius were not formally verified this run

· 1 grounded finding(s) anchored inline below.

<!-- graphify-inline:ca090b4864c7f696d66278191a01a13ce881ba8b --> **Graphify reviewed this change.** **Worth a look** — the grounded gate found no coupling regressions or blocking issues, but 4 advisory finding(s) below merit a look before merge. --- ## Graphify review — findings Refactors the ATERM setup code around SDK-style inline helpers. `atermGetFrameData`, `atermGetCommandElement` and `atermGetElementData` now handle frame checksum validation, command matching, optional AES unwrap and option walking, while `atermSleep`, `atermSendNotify` and `atermSendFrameViaInterface` (which broadcasts to port 0xE601 and maps send failures to -4) replace the old wait and append helpers. Hex encoding is consolidated into a single `atermFormatHexByte` used by both MAC formatting and WEP key parsing, and the scan loop indexes records directly through the new `AtermScanBuffer` instead of advancing parallel cursors. **Worth a look** - **Option parser reads and advances past end without validating option length** — `src/scene/setting/ATERM.c:1432` · _Escalate · medium_ - agreed by 2 of 2 members but NOT verified (no proof, no reproducing execution) — consensus is not a verdict; needs human review - **Config replies may now go to the last peer instead of the broadcast address** — `src/scene/setting/ATERM.c:1660` · _Escalate · medium_ - agreed by 2 of 2 members but NOT verified (no proof, no reproducing execution) — consensus is not a verdict; needs human review - **Search response destination changed from broadcast to last peer** — `src/scene/setting/ATERM.c` · _Escalate · medium · 2 independent checks_ - agreed by 2 of 2 members but NOT verified (no proof, no reproducing execution) — consensus is not a verdict; needs human review - **atermSendFrame ignores the peer address and always broadcasts** — `src/scene/setting/ATERM.c:1404` · _Escalate · medium · 2 independent checks_ - agreed by 2 of 2 members but NOT verified (no proof, no reproducing execution) — consensus is not a verdict; needs human review <details> <summary>Analysis details — impact, health, verification</summary> ### Impact & health ## Graphify review **Impact** — 63 functions depend on the 63 functions this change touches. **Health** — this change adds coupling hotspots: - worse: `ATERMRunConfigProtocol()` — 1 callers, 24 callees **Verification** — 63 functions in the blast radius were not formally verified this run (proofs are advisory here). ### Gate & verification ## graphify gate **PASS** — objectively clean (no health regressions, tests not run — proofs not run this pass (advisory)). Grounded, not self-assessed. Advisory (not blocking): - verification_scope: 63 function(s) in the blast radius were not formally verified this run </details> · 1 grounded finding(s) anchored inline below.
graphify-labs[bot] (Migrated from github.com) commented 2026-10-09 06:06:40 +00:00

⚠️ Health regression — ATERMRunConfigProtocol()

fans out to 24 callees (efferent coupling).

Grounded coupling-delta finding (deterministic), not an LLM guess.

⚠️ **Health regression** — `ATERMRunConfigProtocol()` fans out to 24 callees (efferent coupling). _Grounded coupling-delta finding (deterministic), not an LLM guess._
Sign in to join this conversation.