!2413 Tim review 逐項事實(五輪)
MAF tip c8d350c3b · 2026-10-18 · 來源 ~/moxa/.tim-facts-all-1018.md · MR !2413
- 範圍:Tim 對 MR !2413 的五則 review。事實只描述 code 與 guide 現況,不含回覆文字。
- 狀態詞沿用各輪自己的用詞。第 1 到 4 輪用
fixed、documented、not applicable、not changed。第 5 輪用CONFIRMED、PARTLY、WRONG。 - 「需要你注意」只列五類:未解決、
PARTLY、WRONG、Zack 尚未做的決定、後續 commit 改了答案。每項一行,附原因。 - 行號:第 1 到 4 輪在 09c8595e1,第 5 輪在 fc091b5eb,除非該項有「Re-check」或「At a89346cc9」一行。這兩種行的行號都在 a89346cc9。
- 來源:第 1 到 4 輪是 ~/moxa/.tim-review-facts.md(寫於 09c8595e1,已重查)。第 5 輪是 ~/moxa/.tim5-facts.md(已更新到 a89346cc9)。origin 目前在 a89346cc9(本機 reflog:2026-10-17 18:32 +0800 推送)。
摘要
第 1 輪
- Note 3935171568,Tim 看的 head 是 43ca6122,共 33 項。
- 狀態:
documented29(C9 有 2 點not applicable,D4 有 1 點由 Tim 撤回,A5 另有一處註解已修);fixed4(A1、C5、C10、補充)。沒有未解決項。 - 需要你注意:
- C7:section 2.6 的「兩個例外」現在是 S8000 與 S9000,原本只有 S8000。S9000 的
setSNMPTrapList不再回 -2,改成寫入兩組 receiver(c8352a748、09681965b、4565c3996)。回覆要用新文字(guide L339-341)。 - C11:evidence 引用的「Not a deviation」段落在 8181d2360 改過。現在只說 dsci 路徑會用給定的 ip 搜尋;mgci 已綁定時 SDK 不搜尋(guide L2686-2692)。
- C11(item 5):9ea68a39c 讓 G2 的新密碼超過 256 bytes 時,在 attach 之前就拒絕。guide item 5(L1751)沒有提這件事,仍寫「SDK 傳送密碼,由裝置套用政策」。要不要補一句,由你決定。(d782998f6 已補上,2026-10-18)
第 2 輪
- Note 3959608209,Tim 看的 head 是 351256b3,共 21 項。
- 狀態:
fixed11(T1 到 T3、E1、S1 到 S7);documented6(2、N1、N3、N5、N6、N7);not applicable3(1、N2、X);混合 1(N4:M12 為fixed,舊版 MGate 為documented)。沒有未解決項。 - 需要你注意:
- X:只確認過 base 317d689fd 沒有衝突。比 317d689fd 更新的 develop 沒有檢查過(這次也沒有,因為不能連線更新)。
第 3 輪
- Note 3967849317,Tim 看的 head 是 8448a1c4,共 23 項。
- 狀態:
fixed14;documented3(G3d、G3e、G3f);not applicable6(G1、T1 (medium)、C1、C6、C8、X)。沒有未解決項。 - 需要你注意:
- T1 (medium):它指向 guide item 13 的「理由」段落。該段在 ebc6a0cc7、55dd9ecd7、d826952f0 重寫,現在把決定寫在行內,不再引用 f9ead348e(guide L1844-1854)。
not applicable的結論不變。 - C5:a89346cc9 新增 item 51,說明 NPort 6000 低於 1.13.9 時,Windows plugin 走 HTTP,MAF 不移植。C5 引用的
system/serial/config.go:46-52沒動,但 :51-52 仍寫「where the 6000 plugin never reaches that path」,沒有加「只限 Linux」。這句和新註解(:57-60)不一致。
第 4 輪
- Note 3996002199,Tim 看的 head 是 0b14c2d8,共 21 項。
- 狀態:
fixed18;documented1(M12);not changed1(H1,依 rule 2);not applicable1(X)。沒有未解決項。 - 需要你注意:
- M12:答案被後續 commit 改了。guide item 13 不再寫 f9ead348e 與 backup 分支,改成行內陳述「Zack 2026-10-09 決定」(guide L1844-1854)。Tim 第 5 輪的 C1 因此是
PARTLY。 - H1:結論(
not changed,rule 2)不變,但 guide 的 evidence 文字變了。S8000 原寫「60 s for firmware and 3 s for the rest」,771a550e1 改成:export 與 import 3 s,其他傳 0 的呼叫一律 5 s;另加 MGate 單播 discovery 持鎖、無上限的一項(guide L2561-2575、L2591-2597)。 - M2:細節變了。item 47 標題現在是「refuses an empty new password on every line except two」。這兩個是名為 S8000 的 record,以及 mgci 已綁定的舊版 MGate,兩者都先回 -2(guide L2483-2513)。9ea68a39c 另在 G2 加了「新密碼超過 256 bytes 先拒絕」。
第 5 輪
- Note 4025504010,Tim 看的 head 是 09c8595e1,共 42 項,另有自查項 S1。
- 狀態:
CONFIRMED37;PARTLY4(B7、C1、D3、F5);WRONG1(C3)。S1 為CONFIRMED,不計入 42。 - 需要你注意:
- B7
PARTLY:Tim 說舊版 MGate 只寫 SNMP_TRAP_INFO,這點不對。12 個型號寫 SNMPINFO,27 個寫 trap entry。 - C1
PARTLY:Tim 說他的 clone 與 origin 都沒有 f9ead348e。遠端確實沒有任何 ref 含它,但 Zack 的 clone 有(兩個本機 backup 分支)。guide 現在把決定寫在行內,不再引用該 sha。 - D3
PARTLY:密碼路徑成立;trap list 的說法不成立(那個呼叫從 default case 回 -2,沒有碰裝置)。 - F5
PARTLY:錯誤文字確實寫錯;但 Tim 引用的 :99、:112 指到錯的檔案。 - C3
WRONG:Tim 說config_protocolgateway.go:334-335應為 :333-334。實際上原 cite 正確。 - D1:
CONFIRMED,其中一個後果標為PARTLY,facts 沒有寫明是哪一個。Evidence 記錄 C library 在任何 I/O 之前也會拒絕過長密碼(dsci_lib_linuxsrc/dsci.cpp:356-358、:2054、:2058)。 - D2:
CONFIRMED,但數字不同:Tim 說 18 個型號,實際是 44 個中的 27 個。 - A4:後續 commit 改了一部分答案。名為 S9000 的 record 不再回 -2,會寫入兩組 receiver(c8352a748)。舊版 NPort 仍回 -2。
- 後續 commit 41c7e535c 與 D3、F4:S8000 與 S9000 的 trap address 超過 15 bytes 或 community 超過 31 bytes 時,現在回
CodeInvalidInputError,不送 SET。guide section 2.6 與 section 8 item 2 沒有提到這個上限。(d782998f6 已補上,2026-10-18) - 決定沒有 Zack 署名的記錄:C4(develop 的註解仍引用 :6946,沒改)、E5(新測試鎖定 trie 現況)、B1(Windows tree 數量 5 含 mxview_mgate_g2)、41c7e535c(拒絕而不截斷,只見於 commit message;075e516cc 已在 guide section 8 item 2 記為依規則 1 與 3 決定,Zack 2026-10-18 委託)、9ea68a39c(G2 密碼長度先拒絕,guide 沒寫)、a89346cc9(item 51 保留 develop 的拒絕,commit message 署名是「coordinator, 2026-10-17」)。
- 2026-10-16 coordinator 的決定:LoginEx 長度上限照 develop;develop 註解不改。兩者在記錄裡都沒有署名 Zack。
- 讀 a89346cc9 時發現 4 個過期 cite:guide L1848、L1876、L2605 與 docs/device-parity/s9000.md:88,因為 a89346cc9 在
config_serial.go與system/serial/config.go加了註解行,行號差 1 到 2。尚未修。(d782998f6 已修正,2026-10-18) - S1(自查):guide 的「Not a deviation」段落曾寫成所有舊版 MGate 都先搜尋;mgci 路徑不搜尋。8181d2360 已改成只限 dsci 路徑。
第 1 至 4 輪:逐項事實
Source: ~/moxa/.tim-review-facts.md, written at 09c8595e1 (zh-TW). Re-checked against a89346cc9, the current origin tip (detached worktree ~/moxa/maf/wt-gate-a89346cc9).
How I re-checked (rule: only where a commit in 09c8595e1..a89346cc9 touched the cited lines):
- For every item I took the guide ranges (L<a>-<b>) and the code cites (file:line) from its Status and Evidence lines. I did not take the quoted heading, which holds Tim's own line numbers.
- I mapped each range through git diff -U0 09c8595e1 a89346cc9 -- <file>. Where a changed hunk overlaps a range, I read the new text. That is 24 of 98 items (R1 11, R2 4, R3 4, R4 5). Each has a "Re-check at a89346cc9" line with the result.
- Line wrap only: R1 A4, B9, C4, C10, C12; R2 N3, N4, N6, N7; R3 G2, G3a, G3c; R4 L-g7.
- Text changed, answer the same: R1 B1, B7, C5, C9; R4 M4 and H1 (H1: the hold-time evidence is out of date).
- Answer or evidence quote changed, so a reply needs the new text: R1 C7, C11; R3 T1 (medium); R4 M12, M2.
- Two more re-checks I added: R3 C5 (same subject as a89346cc9) and R1 D4 (a grep result changed).
- Items with no Re-check line: no cited line was touched. Their line numbers stay at 09c8595e1.
- Greps re-run at a89346cc9, same result as before (0 hits): "needs 7.", "None of the eight", identity as a key, "ask 6", "still worth asking", "accepts both", "which of these strings", "compiled out", "no virtual OID at all", "no plugin answers", OrderIsLoadBearing, ExecOnce (moxa, pkg, docs), func (c *Context) Close and func (s *SDK) Close (moxa). Files still absent: schema/exec_target.go, system/serial/configimport_m12.go. 317d689fd is still an ancestor. One grep changed: "both trees" (R1 D4).
- Not re-run: the "text from
Tim review facts — MR !2413 (tip 09c8595e1, 2026-10-15)
Read-only analysis. "Guide" = docs/mxview-one-integration.md; every guide line number is at
09c8595e1. "Text from git blame names for that line at the tip,
which is the commit that holds the text today. Code paths are relative to
moxa/device/sdk/plugin/local/ (P/) unless shown in full. Develop = 317d689fd.
How the follow-up reviews recorded earlier items:
- Review 2 (note 3959608209, head 351256b3) L5, L14: all review 1 items fixed ("A1 是改程式碼(offlineFeatures),其餘是改文件") except D4 and C9.
- Review 3 (note 3967849317, head 8448a1c4) L9-12: D4 withdrawn; C9, N1-N7, three test gaps, error message, seven stale comments fixed; develop conflict gone.
- Review 4 (note 3996002199, head 0b14c2d8) L9-11: G2, the six G3 points, three test gaps, two error messages and five of eight stale comments fixed; G1, the facade.go/exec_target.go comments and the README/ExecOnce comment not applicable (facade removed); M12 .ini import removed, so its test gap and header comment not applicable.
- The facade and ExecOnce are not in the tip's history: git grep -n ExecOnce 09c8595e1 -- moxa pkg docs prints nothing; moxa/device/sdk/schema/exec_target.go does not exist at the tip or at develop.
Review 1 (note 3935171568, head 43ca6122)
Review 2 L5 and L14 state every item below fixed, except D4 and C9 (see review 2).
A1. 「offlineFeatures 不存在,by-id 路徑仍會先連線執行 fetchDeviceInfo」(L567–571、L1068–1070)
- Status: fixed in 7f7bc9ca4 (feat(device-sdk): add plugin status codes and a no-dial pre-flight skip). Review 2 L5: "A1 是改程式碼". The skip is now keyed on the
noDeviceAccessflag, not on a map namedofflineFeatures. - Evidence:
moxa/device/sdk/exec.go:141if featureName != "login" && featureName != "setInitialized" && !s.featureMap.NoDeviceAccess(featureName) {. Guide section 2.8 L821-823 ("prepareExecutionskipsensureFirmwareVersionfor the features declared// noDeviceAccess:true...getDeviceSeriesandsecurityProfiles"; text from c97943882); section 9 item 5 L2537-2540 (struck through, "Decided 2026-09-03 (plan D76), fixed 2026-10-05").
A2. 「Context.Close 不存在」(L82、L726、L771、L811、L862)
- Status: documented in guide (L15-16, L101, L1047, L1097, L1230, L1384; text from fb48443b0). Row 7.9 is now "dropped", not "not written".
- Evidence: L15 "
Context.Close(plan row 7.9) is dropped, so nothing releases a native library"; L1384 "nothing releases them: there is noContext.Close(row 7.9, dropped)". Nofunc (c *Context) Closeorfunc (s *SDK) Closeinmoxa/device/sdk(grep, 0 hits).
A3. 「韌體升級逾時回傳 CodeDeviceRequestTimeout 的說法不成立」(L417)
- Status: documented in guide section 2.8 L670-674 (text from c97943882).
- Evidence: L672-674 "A firmware transfer that fails or runs out its budget answers
CodeDeviceGenericInternalError, whichPluginCodemaps to -1, never -4."
A4. 「同一節內互相矛盾:getFirmwareUpgradeStatus」(L974–987 與 L989)
- Status: documented in guide section 7.4 L1511-1525 (text from c97943882).
- Evidence: L1511 "they add no key"; L1519-1522 "A
getFirmwareUpgradeStatuskey ... was declared once. It was taken out on 2026-09-11". - Re-check at a89346cc9: the cited L1511-1525 is now L1577-1592. One hunk touched it (old L1523): a line wrap only. The quotes hold (L1577 "they add no key"; L1585-1588 "was declared once"). Answer unchanged.
A5. 「dsc_LibSetProc 其實已經綁定」(L1010;firmware_serial.go:27)
- Status: documented in guide L1548-1549 (text from c97943882); code comment fixed in 688b7eafb (feat(device-sdk/plugin): make the NPort serial line follow its plugins).
- Evidence: guide L1548 "
dsc_LibSetProcis bound —nativedscihasSetProgressHandler— but no feature registers a handler."P/firmware_serial.go:27-28"dsc_LibSetProc is bound, and no feature registers a handler." Binding:moxa/device/sdk/protocol/nativedsci/lib.go:287; develop already bound it (317d689fdlib.go:282).
A6. 「SDK 不會「以狀態回應」−6/−7」(L299–301、L969–970)
- Status: documented in guide section 2.7 L411-414 and section 7.3 L1505-1507 (text from c97943882).
- Evidence: L412-413 "The SDK has no sweep ... so it never produces them". Table rows L370-371 still list -6/-7 as "sweep state, row 7.4" in the plugin column.
moxa/device/sdk/mxviewone_codes.go:34-35"the SDK has no sweep: securityCheck answers one device at a time."
B1. 「identity 這個 key 不存在」
- Status: documented in guide (fixed): no
`identity`key name is left in the guide (grep, 0 hits). - Evidence: section 3.1 L740-741 "publishes the real OID, the virtual OID and the series id as two operations" (text from eae903efe).
- Re-check at a89346cc9: old L740-741 was reworded by 38a37cf04 (Tim 5, B3). L783-785 now reads "Row 7.5 covers three pieces of identity: the real OID, the virtual OID and the series id. The SDK publishes the last two as two operations". The quote in the Evidence line is no longer in the guide. The status holds: no
identitykey name (grep at a89346cc9: 0 hits).
B2. 「§5(L733–739)」identity/securityCheck/securityProfiles 仍標 to write;stop/status「to write (7.4)」;計數
- Status: documented in guide section 5 table L1044-1064 (text from c97943882).
- Evidence: L1054-1058 rows "written (section 3.2)" / "written (section 4.1)"; L1059-1060 stop/status "none: no sweep (section 7.4)"; L1062 "eleven exports written,
dll_initserved byContextconstruction,dll_destroywith no counterpart, and the two sweep exports with nothing to answer".
B3. 「§5 NPort 6000-G2 表(L731–732)」mgci half needs 4.4
- Status: documented in guide (fixed): the section 5 table L1044-1060 has no mgci row.
- Evidence: L1048-1053 firmware/config/network/trap/password rows are "written".
B4. 「§5 表(L730)」setEthInterface 標「blocked on 0.21」
- Status: documented in guide L1051 (text from c97943882).
- Evidence: L1051 "
setEthInterface| written; rendered from the device's capabilities byfetchDeviceInfo". The_Ptrdependency is in L349-354 (text from c97943882/fb48443b0).
B5. 「§5.1(L783–791)」「None of the eight is registered」
- Status: documented in guide section 5.1 table L1095-1107 (text from c97943882, bbc6198df, e75f6244b).
- Evidence: L1098-1101 "written: the G2 half over sdsci (...), the legacy half over mgci on Windows and over dsci on Linux"; L1102 trap "registered for
protocolGateway". "None of the eight" is not in the guide (grep, 0 hits).
B6. 「§5.2(L812–819)」所有「needs 7.x」的前置條件都已完成
- Status: documented in guide (fixed): "needs 7." is not in the guide (grep, 0 hits).
- Evidence: section 5.2 table L1228-1230 ff.
B7. 「§5.3(L830)」寫「Not written」
- Status: documented in guide section 5.3 L1256-1262 (text from c97943882, 3485e004c).
- Evidence: L1256-1257 "Written on the
serialline: its model tables (models_s9000.go), the Security View (securitycheck_s9000.go), the trap server in the engine's two SNMP SETs". - Re-check at a89346cc9: L1256-1262 is now L1312-1320. The S9000 summary changed:
setSNMPTrapList"writes both receivers" (was "answers -2", stage 4) and an address over 15 bytes or a community over 31 bytes is refused before the SET (41c7e535c). The quote at L1256-1257 holds (now L1312-1313).
B8. 「§2.6(L237–243)」以未來式描述 binding
- Status: documented in guide section 2.6 L349-354 (text from c97943882, fb48443b0).
- Evidence: L349-350 "The bindings are in
nativedsciandnativesdsci. ... the SDK binds their_Ptrtwins as optional symbols."
B9. 「§2.2/§2.3 的「Tier」欄」
- Status: documented in guide: the columns are "State", and the guide says no answer has a tier yet (L8-11, text from c97943882/90d938f57; L93; section 9 item 3 L2524-2526).
- Evidence: L8-10 "No answer has a verification tier in this guide's sense yet: such a tier needs a comparison with the plugin on a real device (section 9, item 3)."
- Re-check at a89346cc9: L2524-2526 is now about L2707-2709. Line wrap only. The quote holds.
C1. 「M12 的 series 字串」(L450、L482、L527、L707、L1036)
- Status: documented in guide section 3 L700-701, section 4 L920-922, L1026-1027 (text from c97943882, bbc6198df).
- Evidence: L700 "NPort 5x50AI-M12, Linux |
NPORT"; L1027 "NPORT5000A| 9 | NPort 5x50AI-M12, Windows kit only:getDeviceSeriesnever answers it". Code:P/identity.go:68{".1.3.6.1.4.1.8691.2.24.5", "NPORT"}.
C2. 「§3.1 與 §3.2 對 virtual OID 的說法相反」(L499、L503–504;MGate 5000-G2 compiled out)
- Status: documented in guide section 3.1 L747 and section 3.2 L884-886, L735-736 (text from c97943882). Note: the G2 half now does an sdsci search (10ede50ab, "return a G2 virtual OID at the plugin's search bound"), so 3.1 and 3.2 both say "search".
- Evidence: L747 "a dsci search on legacy NPort, an sdsci search on G2 (section 3.2)"; L886 "the one device contact is the search above"; L735-736 "The MGate 5000-G2 variant has no virtual OID: it compiles no table, and its
get_virtual_sysobjidanswers__FAILbefore doing anything." "no virtual OID at all" and "compiled out" are not in the guide (grep).
C3. 「「row order is load-bearing」舉的例子不成立」(L592–594)
- Status: documented in guide section 3.2 L889-893 (text from c97943882).
- Evidence: L889-893 "Today six rows sit behind an earlier row they contain —
6650I,IA5150I,IA5250I,IA5450I,5230Iand5450I... so the order changes no current answer.TestVirtualOIDShadowedRowsAgreepins that". TestP/virtualoid_test.go:406; alsoP/mxview_one_claims_test.go:201TestVirtualOIDShadowedRowsAreExactlyTheSixISiblings.
C4. 「Security View 的 failed」(L678–681)
- Status: documented in guide section 4.1 L979-1007 (text from eae903efe, 07550eb7f, dbf25df83, 428a5450c, d5bbda252). The behaviour also changed after review 1: G2 now checks per item and never answers
failed(788614cb8, run the NPort G2 security check per item as the G2 plugin does); legacy NPort refused attach answersfailedas on develop (07550eb7f). - Evidence: L981-988 (NPort over dsci; S9000
PASSWORD_CHANGEDnotSupport, SNMP itemsnotAssigned); L989-996 (G2 "neverfailed"); L997-1001 (legacy MGate "neverfailed"); L1002-1007 (no items named:CodeDeviceGenericInternalErrorand no item list). - Re-check at a89346cc9: L979-1007 is now L1027-1056. One hunk (old L1006): line wrap only. Answer unchanged.
C5. 「G2 的 login 錯誤處理(L635–637)與 LoginInfo(L625)」
- Status: fixed in 788614cb8 (fix(device-sdk/plugin): run the NPort G2 security check per item as the G2 plugin does); documented in guide section 4 L923-926 and section 4.1 L989-996.
- Evidence:
P/securitycheck_sdsci.go:101-104if id == "PASSWORD_CHANGED" { ... s.login, s.loginRC = c.sdsci.LoginInfo(h) }(per item, before the login); guide L925-926 "OnlyPASSWORD_CHANGEDreadssdsc_GetLoginInfo, before its login." TestP/securitycheck_sdsci_test.go:460TestSdsciSecurityCheckRefusedLoginAnswersPerItem. - Re-check at a89346cc9: L923-926 is now about L969-973. One sentence changed: "logs out before each detach" is now "logs out before the detach when the login worked" (a7f119563, Tim 5 B4). The quoted sentence "Only
PASSWORD_CHANGEDreadssdsc_GetLoginInfo, before its login" is unchanged (L971-972). Answer unchanged.
C6. 「baseline 的差異」(L706、L709)
- Status: documented in guide section 4.1 table L1026, L1029 (text from bbc6198df, c97943882).
- Evidence: L1029 "
NPORT_G2| 8 | theNPORTitems, with three baseline differences:ENCRYPT_CONSOLEoff,TRAPSYSLOGandAUTO_LOGOUTon"; L1026 "as inNPORT5000A".
C7. 「trap 的註冊方式」(L215–221、L1025–1029)
- Status: documented in guide section 2.6 L300-326 (text from c97943882, 428a5450c, fb48443b0, fa983cc83, 661de012c).
- Evidence: L300-302 "
serialandprotocolGatewayboth registersetSNMPTrapandsetSNMPTrapList"; L316-317 legacy MGateCodeDeviceNoOpError; L314 legacy NPortCodeSDKFeatureNotSupported; L323-324 "nothing produces -3". Code:P/featuremap.go:132,:161. - Re-check at a89346cc9: L300-326 is now L314-342. Hunks: two line wraps, and the "Two exceptions" sentence (old L324, now L340-341). It now reads "the NPort S8000 and S9000 take one or two receivers (sections 5.3, 5.4)"; it said the S8000 only (section 5.4). Cause: stage 4 (c8352a748, 09681965b, 4565c3996):
setSNMPTrapListwrites both receivers for an S9000 model name and no longer answers -2. The quotes of this item hold ("nothing produces -3" is now L339). The registration answer is unchanged; the exception list now has the S9000.
C8. 「updateUserAccounts」(L222–226)
- Status: documented in guide section 2.6 L327-331 (text from c97943882, 428a5450c).
- Evidence: L328-331 "refuses any request that sets
enable,emailorauthorityat all; it reads nothing from the device to compare. The serial line and G2 MGate answerCodeInvalidInputError, legacy MGateCodeDeviceNoOpError."
C9. 「§2.8 給呼叫端的說明」(six points)
- Status: review 2 L10-12 kept C9 open (two missing codes); review 3 L10 says fixed. At the tip:
- L367「local last」: not applicable: the
ExecOncetarget paragraph ("What the target needs ... local last", 43ca6122 L365-368) is gone; section 2.8 now starts "What the record needs" (L505-521) for the by-id path. - L394「需要 file storage」: documented, L605-610 (c97943882): "
transferMode: filePathneeds no storage"; "An export checks this only after the device transfer". - L399「contain」: documented, L612-614 (c97943882): "an exact match, not a substring — for a
FileIdand aPathNamealike". - L403–407 Timeout: documented, L618-648 (c97943882, a1c087c79, 428a5450c, 60cd0c408): lists the S9000, firmware, S8000, mgci 5114/5119 and legacy MGate budgets.
- L415 pre-call codes: documented, L654-668 (a1c087c79):
CodeInvalidInputError,CodeDeviceRequestError,CodeSDKTemplateFormatError,CodeInternalError,CodeSDKFeatureNotSupported. - L350
sdk.ExecOnce(...): not applicable (noExecOnce); the example iss.ExecWithLogin(...)with "s is the *sdk.SDK" (L488-493). - Re-check at a89346cc9: L505-521 is now L542-560. The pre-flight sentence now says the read logs in on NPort G2 when the record has a user name or a password (
deviceinfo_serial.go:154-156), and on G2 MGate only when it has both (deviceinfo_protocolgateway.go:128-130; 171771a8d, 0a5412ab6, Tim 5 A6). The point of this item holds.
C10. 「§6 執行環境」(L858–862)
- Status: fixed in dc4f08404 (feat(device-sdk/plugin): serve legacy MGate over dsci and mgci) for the Linux legacy MGate gap; documented in guide section 6 L1373-1383 (text from cb87e8ed1, c97943882).
- Evidence: guide L1375-1376 "
mgciexists only as the WindowsMGCI64.dll, so on Linux it is not loaded"; section 5.1 L1098-1101 "the legacy half over mgci on Windows and over dsci on Linux"; L1380-1383 "it serializes MoxaCommand calls only where they take a callback, one lock per callback slot". Code:P/index.go:340-342. - Re-check at a89346cc9: L1373-1383 is now L1437-1447. Line wrap only. Answer unchanged.
C11. 「§8 漏列的刻意偏離,以及一項誤列」
- Status: documented in guide section 8 items 5-8 (L1675-1693). Item 4 is now the series-id table (L1668-1674), so the misfiled "legacy MGate
changepwd_exby MAC" item is gone; L2507-2510 records "Not a deviation: on legacy MGate,trap_server_set_ex, ... and on Linuxchangepwd_ex— search theip... then pick the reply by MAC" (text from da2440c28). - Evidence: item 5 L1675 "G2 password change skips the plugin's own policy check"; item 6 L1680 (rewritten by 9766b9f53 after the per-item change; G2 now opens one session per item, guide L923-924); item 7 L1687 "S9000 uses the device's own SNMP secret"; item 8 L1692 "S9000 Security View does not wait four seconds".
- Re-check at a89346cc9: old L2507-2510 is now L2686-2692, and it changed (8181d2360, Tim 5 S1). The "Not a deviation" paragraph now says the SDK searches the given ip "on the dsci path, where mgci is not bound". Where mgci is bound it does not search: it builds the DS_INFO from the record's address, MAC and model name (
mgateMgciDevice,protocolgateway_session.go:169-188), as develop does. The Evidence quote of this item no longer reads as written. Items 5-8 (L1675-1693, now L1751-1771) hold. Related later code change: 9ea68a39c refuses a G2 new password over 256 bytes before the attach (snmptrap_sdsci.go:232-234, snmptrap_protocolgateway.go:110-112). Guide item 5 (now L1751-1756, "G2 password change skips the plugin's own policy check") is unchanged and does not mention it.
C12. 「其他」(L101、L196、L563、L692)
- Status: documented in guide:
- L101
SNMPTrapEntry: L163 and L285-288 (c97943882): "netdl.SNMPTrapEntryaddsmode"; "refuse a non-emptymodewithCodeInvalidInputError; the legacy MGate one ignores it". - L196 tag location: L277-282 (c97943882): "declared in
schema/operation/switch.goandschema/operation/general.go". - L563
exec.goline cites: L821 (c97943882) cites by name ("prepareExecutionskipsensureFirmwareVersion"). - L692
maxItems: L1013-1014 (c97943882): "The schema repeats the plugin's 16-item limit (maxItems:"16")". - Re-check at a89346cc9: L285-288 is now about L298-304. Line wrap only. Answer unchanged.
D1. 「M12 的段落插在路由表中間」(L36–40)
- Status: documented in guide (fixed): table L47-61 is unbroken; the M12 paragraph is after it, L63-66 (c97943882, c95d33b75).
D2. 「兩個沒有編號的 ### 標題」(L303、L324)
- Status: documented in guide: L416
#### 2.7.1 Translating back: sdk.PluginCode, L462#### 2.7.2 ....
D3. 「兩列都標「NPort 5000 legacy, Windows」」;L476「沒有 plugin 回 NPORT5000」
- Status: documented in guide section 3 table L698-699 (c97943882): "NPort 5000 legacy |
NPORT" and "NPort 5000 legacy, Windows |NPORT5000AorNPORT5000, one per#ifdefbuild". No "no plugin answers NPORT5000" sentence (grep, 0 hits).
D4. 六個小點
- Status:
- L34
NP5000A_Series.so: withdrawn by Tim in review 3 L9 (two different files). Guide L51 (c97943882): "a byte-identical copy ofNP5000A_Series.so, a second shipped build of theNP5000_5000A_Seriessource tree". - L43
.2.26「Windows only」: documented, L56 (c97943882): "no Linux kit ships it (v1.6, v1.7 and v1.8 checked), though the Linux G2 tree builds one". - L188「Twelve of the thirty-five」: documented, L268 (c97943882) now "Eighteen of the thirty-five" with the list L268-272.
- L363「Five things」: documented, L502 (c97943882) "Several things about that mapping".
- L389「ask 6」: not in the guide (grep, 0 hits).
- L483「both trees」: not in the guide (grep, 0 hits); L731 says "all three trees".
- Re-check at a89346cc9: the grep for "both trees" now has 1 hit, guide L217 ("
MXview_MGate.hin both trees"), added by 578e423b5 (Tim 5 B1). It is a different sentence from Tim's L483. "all three trees" is now L774. The other greps hold (0 hits: "ask 6").
D5. 「PROGRESS.md 與 serial.md 在這個 repo 裡找不到」
- Status: documented in guide L479-480 (c97943882): "
dm-migration/PROGRESS.md(in theutility-repo-summaryrepo)".serial.mdis not cited in the guide (grep, 0 hits).
補充. 「MR 描述與 head 不一致」(.2.14 仍刻意回 NPORT;tip dcce7e4a9)
- Status: fixed in the live MR description (read by the judge via glab api on 2026-10-15; updated 2026-10-14T15:26Z): its legacy NPort section says raw
.2.7、.2.14改回 -1,照 plugin 既有實作(develop回NPORT), which matches the code. Code fact at the tip: c95d33b75 (fix(device-sdk/plugin): getDeviceSeries fails the raw .2.7 and .2.14 as the plugins do); guide L65-66 and section 8 item 21 L1949 ("The raw.2.7,.2.12and.2.14fail, as in the plugins;developanswersNPORT").
Review 2 (note 3959608209, head 351256b3)
Review 3 L9-12 states every item below handled (D4 withdrawn). Review 4 L9-10 covers only review 3 items.
1. 「D4(L35):NP5000A_Series.so 仍未改成 NP5000_5000A_Series.so」
- Status: not applicable because Tim withdrew it in review 3 L9 ("是兩個不同的檔案 ... 是我們看錯了").
- Evidence: guide L51 (c97943882) "a byte-identical copy of
NP5000A_Series.so, a second shipped build of theNP5000_5000A_Seriessource tree".
2. 「C9(L445–448):列出的呼叫函式庫前就回傳的錯誤碼仍不完整,少了兩種」
- Status: documented in guide section 2.8 L657-661 (text from a1c087c79). Review 3 L10: fixed.
- Evidence: L658 "a tftp or sftp
transferModeon an import" (CodeInvalidInputError); L660 "CodeDeviceRequestErrorfor a tftp or sftptransferModeon an export"; L661 "CodeSDKTemplateFormatErrorfor an import whose template carries nofeatureArg".
N1. 「走 dsci 的路徑必須帶 MAC,文件沒有寫」(L386、L713;schema/exec_target.go:29)
- Status: documented in guide section 2.8 L505-515 and section 2.1 L122-127 (text from c97943882, 5d166e9a8). The
exec_target.gopart is not applicable: the file does not exist at the tip (noExecOncetarget; calls go by record id, and discovery writes the MAC into the record). - Evidence: guide L505-507 "A legacy NPort, S9000 or S8000 picks the dsci search reply whose address and MAC match the record (
dsciFindDevice"; L511-513 legacy MGate "by MAC alone on its dsci path ... but the Security View, which matches the address". CodeP/serial_session.go:92return d.RealIP.String() == device.IP && strings.EqualFold(d.MAC, device.MAC);P/protocolgateway_legacy_session.go:147return strings.EqualFold(d.MAC, params.Device.MAC). Guide L125-127: "The record keeps the MAC in lower case with no colons (netdl.FormatMAC".
N2. 「ExecOnce 對不連線的 key 仍會先做 sdsci 搜尋」(L588 ff;facade.go:69–70)
- Status: not applicable because
ExecOnceandfacade.goare not in the tip's history (branch rewritten onto develop; review 4 L10 states the facade was removed). Review 3 L10 had recorded a code fix on the old branch. - Evidence:
git grep -n ExecOnce 09c8595e1 -- moxa pkg docsprints nothing. By-id calls: guide L516-517 "The record also carriesFromLib,SdsciPrefixandDeviceNICas discovery read them, so no call searches to learn them".
N3. 「執行時 render 失敗時回 −2,不是 −1」(L394–397、L443–448)
- Status: documented in guide section 8 item 40 (L2206-2215; text from c97943882, 90d938f57, 880cbacb9) and section 2.8 L553-556. Only the by-id path exists now; review 3 L10 already noted "by-id 路徑仍回 −2,guide L443–447 已寫明".
- Evidence: L2206 "A by-id call answers -2 when the capability read failed."; L2213 "The plugin answers
__FAIL(-1) for a device it cannot reach". - Re-check at a89346cc9: L2206-2215 is now L2330-2340. Line wrap only. Answer unchanged.
N4. 「M12 與 legacy MGate 的 getVirtualSysObjectId 會失敗,文件沒有記錄」(L610–612、L824、L108)
- Status: M12: fixed in 45edc4649 (feat(device-sdk/plugin): add M12, S9000 and S8000 serial model rules): the search now uses
PluginModel, which knows the M12 rows. Legacy MGate: documented in guide section 8 item 11 (L1726-1733) and L167, L876, L1104. - Evidence:
P/system/serial/discovery.go:128m, known := PluginModel(d.APID, d.HWID); guide item 13 L1777-1780 "getVirtualSysObjectIdanswers the M12's virtual OID from the plugin's three rows (serial.PluginModel,system/serial/discovery.go:128" (text from e75f6244b). Item 11 L1729-1731 "The SDK answersCodeInvalidInputError, whichPluginCodemaps to -1". - Re-check at a89346cc9: L1726-1733 is now L1804-1812. Line wrap only (old L1731). Answer unchanged.
N5. 「IA5000-G2 的 TRAPSYSLOG 差異沒有實作」(L660–661)
- Status: documented in guide section 8 item 23 (L1968-1974; text from c97943882) and section 4 L927-930: moved to section 8 as a kept develop behaviour.
- Evidence: L1972 "The SDK keeps
develop's read on every G2 device,.2.25and.2.26included".
N6. 「兩段沒跟著其他章節一起更新」(§2.1 L92–95;§7.1 L967–980)
- Status: documented in guide section 2.1 L149-154 and section 7.1 L1426-1434 (text from c97943882, 3485e004c).
- Evidence: L152 "SDK has no sweep, so it has no such state"; L1428 "it reports no sweep at all"; L1430-1432 "
stop_security_check()... stops nothing (section 4.1). What works is the callback's own return value". - Re-check at a89346cc9: L1426-1434 is now L1491-1500. Line wrap only. Answer unchanged.
N7. 「其他(low)」
- Status: documented in guide, each point:
- L12 status line vs 7.9: L15-16 (fb48443b0) "the SDK side is written;
Context.Close(plan row 7.9) is dropped". - L271 −2 mapping: L366 (c97943882) "
PluginCodealso mapsCodeSDKProtocolNotImplementedandCodeSDKDeviceNotSupported". - L288–292
CodeInvalidInputError: L384-391 (fb48443b0, c97943882) "the re-login reachesLoginSerialorLoginProtocolGateway, which accept onlydsCmdand answerCodeDeviceNoOpError. Only when the runtime render removedhttps...CodeInvalidInputError". - L647、L756、L906 S9000 GETNEXT: L1032 and L1296-1297 (c97943882) "GET, and up to sixteen GETNEXT for
ACCESSIBLE_IP_LIST". Code commentP/securityview.go:129(688b7eafb) "GETNEXT for ACCESSIBLE_IP_LIST". - L668–671 managementInterface: L938-943 (04ef4be26, 428a5450c) "
get_pwdPolicyreads the policy after a refused login, and neither item fails on a failed detach". - L787–788
_Ptrfor login: L349-354 (c97943882, fb48443b0) "The sdsci writes andsdsc_Logintake a struct by value ... every sdsci feature that logs in fails at call time, exceptsecurityCheck". - L790「tier C」: L8-11 (90d938f57) "The C and D tiers on the parity pages record a device read or a source read, not that comparison."
- Re-check at a89346cc9: L288-292 is now about L300-304. Line wrap only. The other points were not touched. Answer unchanged.
T1. 「legacy MGate config 1600 KiB 上限」沒有測試
- Status: fixed in dc4f08404 (feat(device-sdk/plugin): serve legacy MGate over dsci and mgci).
- Evidence:
P/protocolgateway_legacy_dsci_test.go:235TestLegacyDsciConfigExportRefusesOver1600KiB; constantP/config_protocolgateway.go:329const mgateLegacyConfigBuffer = 1600 * 1024.
T2. 「帶 MF_RESTART 的型號是否不會重開機」
- Status: fixed in dc4f08404.
- Evidence:
P/protocolgateway_legacy_dsci_test.go:55TestLegacyDsciFirmwareMBUsesAPKernelAndTheDeviceBudgetcheckssavesat:75-76("a firmware upgrade restarted an MF_RESTART model");:218TestLegacyDsciConfigExportDoesNotRestartAnMFRestartModel(:228-229).
T3. 「sdsci login 被拒」只有 attach 失敗的測試
- Status: fixed in 788614cb8 (fix(device-sdk/plugin): run the NPort G2 security check per item as the G2 plugin does).
- Evidence:
P/securitycheck_sdsci_test.go:460TestSdsciSecurityCheckRefusedLoginAnswersPerItem. Note: the behaviour it pins changed: a refused login now answers only that item (guide L992-994), not every itemfailed.
E1. 「錯誤訊息不正確」dsc_receive_data(config_protocolgateway.go:334、config_serial.go:149;fake 註解 api.go:981)
- Status: fixed in 688b7eafb (feat(device-sdk/plugin): make the NPort serial line follow its plugins).
- Evidence:
P/config_serial.go:394-406dsciExportError: "Lib.ExportConfig returns no bytes only when the length dsc_ReadConfig announced is outside 1..maxBytes, and then dsc_receive_data was never called"; the MGate callerP/config_protocolgateway.go:350. FakeP/discovery_serial_test.go:250-255(noapi.go:981cite there).
S1. 「firmware_serial.go:32–34」60 秒預設
- Status: fixed in 688b7eafb.
- Evidence:
P/firmware_serial.go:32-36"A model the tables know gets the device's or its row's upgrade budget before the transfer (see the SetUpgradeTimeout call below) ...; an unknown one, such as an OEM unit, keeps the library's 60 seconds".
S2. 「protocolgateway_session.go:101–104、index.go:333–335、discovery_protocolgateway.go:28–30, 260–263」Linux 上 legacy MGate 沒有路徑
- Status: fixed in dc4f08404.
- Evidence:
P/index.go:340-342"mgci ships as MGCI64.dll and has no Linux build ... A legacy MGate there is served over sdsci when it answers an sdsci search, and over dsci when it does not.";P/protocolgateway_session.go:110-112"this is false on every Linux runner. A legacy MGate there is served over sdsci when it answers an sdsci search, and over dsci when it does not";P/discovery_protocolgateway.go:27-30speaks of the mgci half only (that text is develop's, eb02469a3).
S3. 「virtualoid.go:80–82、virtualoid_test.go:183–184」legacy MGate plugin 沒有原始碼
- Status: fixed in 4f8b70b86 (feat(device-sdk/plugin): make G2 sdsci calls follow the G2 plugins).
- Evidence:
P/virtualoid.go:83-85"the legacy MGate plugin's ... (MXview_MGate.cpp get_virtual_sysobjid), so a legacy MGate is refused here".
S4. 「TestGetVirtualSysObjectIDOrderIsLoadBearing」名稱與註解
- Status: fixed: no test of that name at the tip (grep
OrderIsLoadBearing, 0 hits); the shadowed rows are pinned byTestVirtualOIDShadowedRowsAgree(P/virtualoid_test.go:406).
S5. 「TestLegacyDsciDynamicCapsRenderOnlyThePluginsRows」註解只說 render 三列
- Status: fixed in dc4f08404.
- Evidence:
P/protocolgateway_legacy_dsci_test.go:357-359"Those render exportConfig, importConfig and setEthInterface, and address assignment also renders the two getters, which answer not supported."
S6. 「protocolgateway_legacy_session.go:144」說回傳 serialVerify code
- Status: fixed in dc4f08404.
- Evidence:
P/protocolgateway_legacy_session.go:108"It answers an API response code rather than a serialVerify one";:207"mgateLegacyVerify maps mgateLegacyLoggedIn's API code onto the serialVerify pair".
S7. 「protocolgateway_legacy_session.go:187–188(與 :23)」MD5「32 bytes」
- Status: fixed in dc4f08404.
- Evidence:
P/protocolgateway_legacy_session.go:23"dsc_SetLogin_Ex(md5, 16-byte digest)";:236-237"which is the 16-byte MD5 digest. The comment beside it says 32 bytes; the value says 16".
X. 「與 develop 有衝突」(exec_test.go)
- Status: not applicable: the branch is rebased onto develop (
git merge-base --is-ancestor 317d689fd 09c8595e1is true). Review 3 L12 and review 4 L93 record no conflict. Conflicts with a develop newer than 317d689fd were not checked here.
Review 3 (note 3967849317, head 8448a1c4)
Review 4 L9-11 states: G2, the six G3 points, the three test gaps, the two error messages and five of the eight stale comments fixed; G1 and the facade/exec_target/README comments not applicable (facade removed); the M12 .ini import removed, so its test gap and header comment not applicable.
G1. 「只帶 FromLib 而不帶 SdsciPrefix 時,sdsciV2 裝置會用空的 api_prefix」(L436–437)
- Status: not applicable because the facade and
ExecOnceare not in the tip's history (review 4 L10: "SdsciPrefix與DeviceNIC一律取自 discovery 寫進 record 的值"). - Evidence: guide L516-517 "The record also carries
FromLib,SdsciPrefixandDeviceNICas discovery read them"; L111-113 "An sdsci record also carriesSdsciPrefixandDeviceNIC(discovery_serial.go:443-444,discovery_protocolgateway.go:429-430)".
G2. 「§8 第 13、14 項的收尾段落顯示在最後一個 bullet 裡面」(L1304–1305、L1336–1337)
- Status: fixed (review 4 L9). At the tip item 13 (L1744-1785) has no nested list; item 14's list ends at L1828 and L1829 is blank before the paragraph at L1830.
- Re-check at a89346cc9: item 13 (old L1744-1785) is now L1823-1864. Two hunks: a line wrap (old L1751) and the rewrite of old L1764-1774 (see T1 (medium) and R4 M12). No nested list was added. Answer unchanged.
G3a. 「L449–452:serial line 的兩個 config 功能不受 configuration capability 限制,只在 facade 上成立」
- Status: fixed in 7f7bc9ca4 (feat(device-sdk): add plugin status codes and a no-dial pre-flight skip): the by-id render now applies
pluginConfigCaps. Documented in guide L573-576 and section 8 item 50 (L2483-2505; 76d138bda). - Evidence:
moxa/device/sdk/exec.go:941func (s *SDK) runtimeRenderTemplateByCaps(...),:960caps = pluginConfigCaps(schema.DeviceBase(device), caps); guide L573-574 "On a serial-line record ... the render always adds the two config features, whatever the capabilities report". - Re-check at a89346cc9: L573-576 is now L612-616 and item 50 (old L2483-2505) is now L2645-2668. Line wraps only (old L574, old L2502). Answer unchanged.
G3b. 「L555–575:「Answered 2026-09-15」段落與舊段落的接縫;identity.go:23「still open with its team」」
- Status: fixed (review 4 L9). Guide section 3 L710-721 (c97943882) is one answer paragraph; "still worth asking", "accepts both" and "which of these strings" are not in the guide (grep, 0 hits).
- Evidence:
P/identity.go:23-25(4f8b70b86) "MXview One's source settled it on 2026-09-15: it compares the exact string ... so the distinct Linux strings stay." No "still open" inP/identity.go(grep, 0 hits).
G3c. 「L683–699:§3.2 沒有提到 S9000」(S9000 回傳家族根 OID)
- Status: fixed in 688b7eafb (feat(device-sdk/plugin): make the NPort serial line follow its plugins): an S9000 is now refused, not answered with the root OID. Documented in guide section 8 item 15 (L1838-1845) and
docs/device-parity/s9000.md:103-109; test from c6758fc4a. - Evidence:
P/virtualoid.go:279-284"The S9000 plugin exports no get_virtual_sysobjid ...if serial.IsS9000(found.APID) {... "has no virtual sysObjectID""; guide L1841-1843 "The SDK answersCodeInvalidInputError, whichPluginCodemaps to -1 too, but only after its own dsci search"; testTestSerialVirtualSysObjectIDSearchesBeforeRefusingAnS9000OrS8000(cited at L1845). - Re-check at a89346cc9: L1838-1845 is now L1917-1925. Line wrap only. Answer unchanged.
G3d. 「L1224–1226:§8 第 4 項寫「Two consequences」,但只列了一個」
- Status: documented in guide section 8 item 4 L1672-1673 (c97943882): "One consequence: it answers the Linux string".
G3e. 「L1232–1236:§8 第 6 項沒有提到 G2 也沒有實作 per-item deadline」
- Status: documented in guide section 8 item 6 L1680-1686 (9766b9f53, dbf25df83). The item was rewritten after the per-item G2 check (788614cb8).
- Evidence: L1682-1686 "Each device's
handleCheckItemsmultiplies the sharedgTimeoutby 3 ... The SDK checks one device per call and uses the first device's values: a 60000 ms search ... and a 180000 ms per-item deadline (section 5.1)."
G3f. 「L1307–1308:「The second point is no deviation」容易被誤讀」
- Status: documented in guide section 8 item 13 L1759-1760 (c97943882): "The device-information limit in the heading is no deviation, because the plugin has no counterpart".
T1 (medium). 「M12 .ini 匯入寫入的欄位值大多沒有測試」
- Status: not applicable because the M12
.iniimport is not in the tip (review 4 L11).P/system/serial/configimport_m12.godoes not exist at the tip. Reason recorded in guide item 13 L1764-1775 (see review 4, item M12). - Re-check at a89346cc9: old L1764-1775 was rewritten by ebc6a0cc7, 55dd9ecd7 and d826952f0 (Tim 5, C1). The reason is now inline (L1844-1854): "The SDK puts no gate in front of the M12 transfer and has no legacy
.iniimport. This followsdevelop... Zack decided this on 2026-10-09: !2413 folds the MXview One plugins into MAF; it does not change how MAF works." f9ead348e and the backup branch are no longer named. The status holds (the M12.iniimport is not in the tip).
T2. 「M12 型號表只有 5250 那一列的值有被測試釘住」
- Status: fixed in 45edc4649 (feat(device-sdk/plugin): add M12, S9000 and S8000 serial model rules).
- Evidence:
P/system/serial/models_m12_test.go:8-10"written out here rather than read from M12Models, so a wrong value in the table fails."; rows:14{0x80015101, 0x515B, ... ".1.3.6.1.4.1.8691.2.24.5150"},:16{0x80015401, 0x545B, ... ".1.3.6.1.4.1.8691.2.24.5450"}.
T3. 「NPort 的長度拒絕沒有測試」(含 ≤ 0;fake 只在超過上限時回傳 nil/DSCParam)
- Status: fixed in 688b7eafb (test
TestSerialConfigExportNamesTheLengthLimit) and 534dc3b52 (test(device-sdk/plugin): pin the serial config row order and the raw export length bound). - Evidence:
P/config_serial_test.go:78TestSerialConfigExportNamesTheLengthLimitcases "over the limit", "a length of 0", "a failed dsc_ReadConfig" (:86-88);:133,:157(534dc3b52). FakeP/discovery_serial_test.go:254-255if len(f.config) == 0 || len(f.config) > maxBytes { return nil, f.code("readConfig"), nativedsci.DSCParam.
T4. 「NPort 5000 legacy .ini 匯入不會重開機」沒有測試
- Status: fixed in 688b7eafb.
- Evidence:
P/config_serial_test.go:1072TestSerialConfigNPort5000LegacyImportDoesNotRestart,:1089-1090if dsci.saves != 0 || len(dsci.restarts) != 0 {. Guide item 14 L1809-1810.
E1. 「config_serial.go:149:dsc_ReadConfig 本身失敗時訊息不正確」
- Status: fixed in 688b7eafb.
- Evidence:
P/config_serial.go:399-401if config == nil && rcRead != nativedsci.DSCOK { return fmt.Errorf("dsci config export: dsc_ReadConfig on %s returned %d with no configuration length from 1 to %d bytes, so nothing was received", ....
E2. 「deviceinfo_serial.go:100–104:M12 的錯誤訊息寫「which no plugin model table carries」」
- Status: fixed in 688b7eafb.
- Evidence:
P/deviceinfo_serial.go:107-110if m, m12 := serial.PluginModel(d.APID, d.HWID); m12 {... "and the M12 plugin has no device-information read"; the old message at:113(develop's text, 48f09c91f) is now only for a model no table carries.
C1. 「facade.go:69、schema/exec_target.go:40–41」「the way the legacy plugin does」
- Status: not applicable because neither file is in the tip (review 4 L10).
C2. 「securitycheck_sdsci.go:13:引用的 identity.go:49」
- Status: fixed in 4f8b70b86 (feat(device-sdk/plugin): make G2 sdsci calls follow the G2 plugins); cites by name.
- Evidence:
P/securitycheck_sdsci.go:10-12"serialSeriesG2 is the series id every sdsci NPort answers with (deviceSeriesTable)".
C3. 「securityview.go:32–34:仍說「G2 IA5000 … has no Linux build」」
- Status: fixed in 7f29f4d5c (docs(device-sdk/plugin): correct stale comments and plugin cites in the serial and G2 paths).
- Evidence:
P/securityview.go:32-34"G2 IA5000 answers "NPORT" only on Windows, and its Linux build answers NPORT_G2".
C4. 「securityview.go:132–133:仍說 S9000 的七項只用 SNMP GET」
- Status: fixed in 688b7eafb.
- Evidence:
P/securityview.go:128-129"Seven of the eight are read over SNMP, GET plus up to sixteen GETNEXT for ACCESSIBLE_IP_LIST".
C5. 「system/serial/config.go:46–51」legacy 路徑的條件
- Status: fixed in 45edc4649.
- Evidence:
P/system/serial/config.go:46-52"Every other known model below its gate goes to the legacy path as well, and ConfigTargetFor refuses the ones it does not serve, the 6000 among them ("No this model")". - Subject re-check at a89346cc9: a89346cc9 added guide item 51 and comments about the NPort 6000 below firmware 1.13.9. The lines this item cites (
system/serial/config.go:46-52) did not change and the quote holds. Line 51-52 still says "where the 6000 plugin never reaches that path". The new comment at :57-60 says the Windows plugin falls back to HTTP, which MAF does not port. The two sentences are not worded alike.
C6. 「configimport_m12.go:13–26」開頭少了兩項
- Status: not applicable because the file is not in the tip (M12
.iniimport removed; review 4 L11).
C7. 「schema/define_protocol_gateway.go:44」「empty when the family has none」
- Status: fixed in 7f7bc9ca4.
- Evidence:
moxa/device/sdk/schema/define_protocol_gateway.go:42description:"the virtual sysObjectID MXview One writes into devices.xml; a family without one fails the call instead".
C8. 「schema/operation/README.md:55、73」只說 ExecWithLogin
- Status: not applicable because
ExecOnceis not in the tip (review 4 L10). - Evidence:
moxa/device/sdk/schema/operation/README.md:57"soExecWithLoginskips thefetchDeviceInfopre-flight for it".
X. 「其他」(tests pass, go vet, no develop conflict)
- Status: not applicable (Tim's observations, no request).
Review 4 (note 3996002199, head 0b14c2d8)
Behaviour audit ~/moxa/.mr2413-behavioraudit.md section 2 (L484-508) verified each item at 0b14c2d8; its verdicts are noted where it disagrees with Tim in part.
M12. 「M12 .ini 匯入:這次整段移除 ... guide 和 commit message 都沒有說明為什麼放棄上一版的實作 ... 建議在第 13 項補上原因」
- Status: documented in guide section 8 item 13 (L1764-1775; text from e75f6244b, docs(device-sdk/plugin): correct the guide where Tim's fourth review found it wrong and say why the M12 .ini import was removed).
- Evidence: L1764-1766 "An earlier state of this branch put the M12 plugin's gate in front of the transfer and added its legacy
.iniimport.f9ead348e(Zack YL Shih, 2026-10-09) removed both, for this reason: "!2413 folds the MXview One plugins into MAF; it does not change how MAF works. ..."". L1773-1775 "That commit is onbackup/plugin-surface-9727fae46and is not in this branch's history" (checked:git merge-base --is-ancestor f9ead348e 09c8595e1is false;git branch -a --contains f9ead348elistsbackup/plugin-surface-9727fae46andbackup/plugin-surface-docs-old). L1777-1785 add the M12 changes outside configuration (virtual OID, WebKernel upgrade and budget, Upgtout fallback), which the audit (section 2 L508) found missing from item 13. - Re-check at a89346cc9: the Evidence quotes of L1764-1766 and L1773-1775 are gone. ebc6a0cc7, 55dd9ecd7 and d826952f0 (Tim 5, C1) rewrote the paragraph: it no longer names
f9ead348eorbackup/plugin-surface-9727fae46. L1844-1854 now states the decision inline ("Zack decided this on 2026-10-09 ... An earlier version of this branch had the gate and the import (MR note of 2026-10-07)") and cites develop code (317d689fdconfig_serial.go:165-172). The statusdocumentedholds; the evidence changed. Tim's fifth review (C1) found the sha unreachable and is PARTLY.
H1. 「S9000 的一次韌體升級,會讓整個 process 的 dsci 停住 10 分鐘」(serial_session.go:59–71、:102、:129)
- Status: not changed because rule 2 (capability first; a slow, queued or blocking call is a documented limitation). Documented in guide section 8 item 49 (L2399-2482; text from 76d138bda, docs(device-sdk/plugin): record the shared-library lock limitation and the serial configuration pair in guide section 8).
- Evidence: code unchanged in substance:
P/serial_session.go:68-69case serial.IsS9000Name(device.ModelName): return engineMs;:42engineFirmwareMs = 600000;:102dsciSearchMu.Lock();:130return true;moxa/device/sdk/protocol/nativedsci/discovery.go:91-93l.mu.Lock()/defer l.mu.Unlock()inSearch. Guide L2409-2420 lists the S9000/S8000 hold times; L2454-2459 "What waits"; L2478-2482 "Tim's fourth review (H1) suggested that the search callback answer false once the device is found. That is not taken: rule 2 ... the Windows library already returns at the first unicast reply, and a device that does not answer still runs the whole time." Test pinning the budget:P/serial_search_budget_test.go:28TestSerialSearchBudgetIsTheEnginesPerExport. Audit section 2 L488 rates H1 "部分正確": "即使找到裝置也會跑滿" holds only on Linux (dsci_lib_linuxmxsock.cpp:372-388; WindowsMxsock.cpp:2625-2635). - Re-check at a89346cc9: L2399-2482 is now L2550-2644 and L2409-2420 is now L2561-2575. 771a550e1 (Tim 5, A7) changed the text. The S8000 "60 s for firmware and 3 s for the rest" is now "3 s for an export or an import"; "every other call that searches passes 0 and gets 5 s on both". New bullet (L2591-2597): an MGate unicast discovery holds
sdsciSearchMuand sdsciLib.muon both platforms for the probe time the caller gives, with no upper bound (develop's behaviour). The answer "not changed because rule 2" holds; the Evidence text about the hold times is out of date. Code citesserial_session.go:68-69, :42, :102, :130are +3 now (three import lines at :19); the logic is unchanged.
M1. 「MGate mgci 匯入改成截斷或推送空檔,連 MAF 自己的呼叫端也受影響」(guide L1093–1095;config_protocolgateway.go:297–311)
- Status: fixed in 262fb594e (fix(device-sdk/plugin): refuse an mgci config file that is empty or over the buffer before login); related 6570119a7 (fix(device-sdk/plugin): write the mgci config export file only after a good read). Documented in guide section 8 item 46 (L2327-2353; 428a5450c).
- Evidence:
P/config_protocolgateway.go:284-298refuses a model withoutMF_IMEX_FILE(:284), an unreadable file (:288-290), an empty file (:292-293if len(config) == 0) and a file over 3000 KiB (:295-297), all beforemgateMgciSession(:300).moxa/device/sdk/protocol/nativemgci/api.go:354-356if len(config) == 0 { return DSCParam }. Tests:P/config_protocolgateway_test.go:249,:337;moxa/device/sdk/protocol/nativemgci/api_test.go:29. 262fb594e message: "MAF now does what develop does, for every caller ... Zack 2026-10-14, rule 1 (no corrupt config pushed) and rule 3". Audit L489: Tim's empty-file point is wrong on the device effect (mgcidsc_UpgradeConfiganswersDSC_PARAMfor length 0, so no restart); guide L2332-2334 records this.
M2. 「NPort G2 的 updateUserAccounts 不再拒絕空密碼,MGate G2 仍會拒絕」(network_serial.go:354–361、:441–443)
- Status: fixed in b8e875e56 (fix(device-sdk/plugin): refuse an empty new serial password before the device), 384e7b4e1 (fix(device-sdk/plugin): refuse an empty new MGate password before dialling) and 57d6875aa (test(device-sdk/plugin): pin the empty old serial password on every legacy line). Documented in guide section 8 item 47 (L2354-2373) and section 2.6 L331-334 (428a5450c). The fix goes beyond Tim's suggestion: every line, legacy NPort, S9000 and legacy MGate included, now refuses an empty new password; only the G2 lines also refuse an empty old password.
- Evidence:
P/network_serial.go:370-372if input.Password == "" { return input, response.CodeInvalidInputError, errors.New("serial account update: no new password") }(before thefromLibswitch);:447-451case fromLibSdsciV2: if input.OldPassword == "" {;P/snmptrap_protocolgateway.go:102(MGate G2, both passwords);P/snmptrap_protocolgateway_legacy.go:142-148(legacy MGate, new password; comment at :142-144, the checkif account.Password == ""at :145; guide item 47 L2364 cites :145). Tests:P/snmptrap_sdsci_test.go:321TestSerialAccountUpdateOnG2RefusesAnEmptyPassword;P/snmptrap_protocolgateway_test.go:87TestProtocolGatewayAccountUpdateRefusesAnEmptyPassword;P/network_serial_test.go:324,:361;P/snmptrap_protocolgateway_legacy_test.go:389,:405. b8e875e56 message: "Zack 2026-10-14, rules 3 and 4." - Re-check at a89346cc9: L2354-2373 is now L2483-2513 and L331-334 is now L347-354. Changed by 6d96e0021, f4fcc3dc6 and aacc80958 (Tim 5, A5 and B2). Item 47 now reads "Where the dsci and sdsci libraries are bound,
updateUserAccountsrefuses an empty new password on every line except two, and an empty old password on the G2 lines". The two answer -2 first: a record named as an S8000 (network_serial.go:363-367) and a legacy MGate where mgci is bound (snmptrap_protocolgateway.go:96-101). The Status line "every line ... legacy NPort, S9000 and legacy MGate included" still holds for the lines it names, but not for those two. Cites:network_serial.go:370-372andsnmptrap_protocolgateway.go:102did not move;network_serial.go:447-451is now :450-454. Later code change 9ea68a39c adds a G2 new-password refusal over 256 bytes before the attach; the empty-password answers are unchanged.
M3. 「MGate G2 的 sdsci session 不再 logout,MAF 自己的功能也受影響」(protocolgateway_session.go:80–92)
- Status: fixed in f1d627464 (fix(device-sdk/plugin): log out of every MGate G2 sdsci session); Security View items in adcad2089 (fix(device-sdk/plugin): log out of each G2 Security View item's session); refused logout or detach codes dropped in 71c2eafb3 and c9d2a9087. Documented in guide section 8 item 44 (L2252 ff) and item 45 (L2282 ff).
- Evidence:
P/protocolgateway_session.go:77-81mgateSdsciSessioncallsc.sdsciLoggedIn(params, h, do);P/serial_session.go:451defer c.sdsci.Logout(h)insdsciLoggedInAs. CommentP/protocolgateway_session.go:70-76"That leak is not copied. A device holds 1 to 5 login sessions ... and a monitor that polls getEthInterfaceList opens one here every round." Security View:P/securitycheck_sdsci.go:122-128if loggedIn { c.sdsci.Logout(h) }. f1d627464 message lists config, certificate, reboot, factory default, login, locator, allow list, fetchDeviceInfo, network set and reads, trap writes, firmware and password change; "Zack 2026-10-14, rule 3 (defensive default: log out)." Audit L491 found a wider scope (the monitor'sgetEthInterfaceListpoll); the fix covers it.
M4. 「Lib.SetSNMPTraps 的三項修改沒有測試」(protocol/nativedsci/api.go:583–603;rawroundtrip_test.go:159)
- Status: fixed in 91afea405 (refactor(device-sdk/protocol): build each SetSNMPTraps entry in snmpTrapInfoFor) and 5d6cfe195 (test(device-sdk/protocol): pin SetSNMPTraps' entry building and putByteIfChanged). Documented in guide section 8 item 48 (L2374-2398).
- Evidence:
moxa/device/sdk/protocol/nativedsci/api.go:587SetSNMPTraps,:595info := make([]snmpTrapInfo, max(len(traps), 1)),:613func snmpTrapInfoFor. Tests inmoxa/device/sdk/protocol/nativedsci/rawroundtrip_test.go::65TestSNMPTrapInfoForKeepsTheTailAsTheCppSprintfDoesand:97TestSNMPTrapInfoForSendsAnUntouchedEntryBack(callsnmpTrapInfoFor);:223TestSetSNMPTrapsAlwaysHasABufferToPointAtnow callsl.SetSNMPTrapsthrough a fakesetSNMPTrapfor counts 0, 1, 2 (:230-241). Mutation results were not re-run in this read-only analysis. - Re-check at a89346cc9: L2374-2398 is now L2514-2549. Item 48 was rewritten (54973ac13, 0454c8bd1, Tim 5 B7): it names the path that writes SNMPINFO and the path that writes SNMP_TRAP_INFO entries. The answer (tests exist) holds. The
nativedsci/api.gocites moved by -1 (:587 is :586, :595 is :594, :613 is :612) because 7f8c5daa8 removed lines at :470-474.
L-g1. 「L110–111:每個回應的裝置都會有 SdsciPrefix 和 DeviceNIC」
- Status: fixed in e75f6244b; guide section 2.1 L111-116.
- Evidence: L111-116 "An sdsci record also carries
SdsciPrefixandDeviceNIC... An mgci record carriesDeviceNIC(1) and noSdsciPrefix... A dsci record, NPort or legacy MGate, carries neither".
L-g2. 「L117:GetDeviceList 的 IP 和 MAC 都是子字串比對;MAC 格式」
- Status: fixed in e75f6244b; guide section 2.1 L122-127.
- Evidence: L123-127 "Both filters match a substring, so an IP of
10.0.0.1also finds10.0.0.12(sdk/index.go:808) ... The record keeps the MAC in lower case with no colons ... so00:90:E8:…finds nothing; pass0090e8…."
L-g3. 「L158、L806、L1023:引用寫「(section 8)」」
- Status: fixed in e75f6244b; the three places now say "(section 8, item 11)": guide L167, L876, L1104.
L-g4. 「L507:GET /dm-api/v1/templates 沒有帶 version 時回最高版本」
- Status: fixed in e75f6244b; guide section 2.8 L545-549.
- Evidence: L547-549 "With no
versionit shows the cached render with the highest firmware for the model, which need not be this unit's (SDK.GetCollectionTemplate,sdk/index.go:1462-1468)".
L-g5. 「L517–523:pre-flight 與 <MODEL>_0.0.0 render」
- Status: fixed in e75f6244b (documented; the code is develop's pre-flight, audit L497); guide section 2.8 L558-571.
- Evidence: L561-564 "Its pre-flight is a fetch of its own (
ensureFirmwareVersion,exec.go:141-142,:291-305), which runs on the empty firmware and renders under firmware0.0.0, a cache key that every unit of the model shares"; L568-570 "When the pre-flight read fails, the call runs on firmware0.0.0(exec.go:145). It then finds the0.0.0render ... instead of answering -2."
L-g6. 「L539–542(以及 §8 第 19 項):custom template 會讓 info.controlMethod 不見」
- Status: fixed in e75f6244b; guide L590-594 and section 8 item 19 L1899 ff.
- Evidence: L590-594 "A custom template replaces the built-in one, its
info.controlMethodincluded (collection/moxa.go:197-201). A custom template for one of the 205 keys that has a control method must carry the field again, or discovery stores a unit ... indevelop's order (section 8, item 19)."
L-g7. 「L732:改回 Windows 字串會改變 securityCheck 的 series」
- Status: fixed in e75f6244b; guide section 3.2 L782-786.
- Evidence: L783-786 "
securityCheckdoes not read this table: G2 uses the fixedNPORT_G2(securitycheck_sdsci.go:14,:54), and legacy NPort picks its series from the dsci reply's apid and hwid (serialSecuritySeries,securitycheck_serial.go:174)". - Re-check at a89346cc9: L782-786 is now L827-831. Line wrap only (old L786). Answer unchanged.
L-g8. 「L773 附近(§3.2):少了函式庫沒有載入的情況」
- Status: fixed in e75f6244b; guide section 3.2 L876-881.
- Evidence: L876-879 "When its library is not loaded, each half answers
CodeSDKInvalidPlugin, whichPluginCodemaps to -1 ... (virtualoid.go:112-114,:259-261). The G2 half looks the model up first, so a model with no row still answersCodeInvalidInputError." CodeP/virtualoid.go:113,:260.
L-g9. 「L1850(§8 第 29 項):標題限定在 legacy NPort」
- Status: fixed in e75f6244b; guide section 8 item 29 L2064-2073.
- Evidence: L2064 heading "
fetchDeviceInfodoes not read a serial-line record that has a serial number."; L2069-2073 "The test comes before the record's library is read (deviceinfo_serial.go:55), so it covers NPort G2 records too ... so the fetch never reads thatsdsciV2record over sdsci." Code unchanged (audit L501).
L-c1. 「config_serial.go:221:info, _ := c.dsci.DSInfo(h) 丟掉了回傳碼」
- Status: fixed in bdca2feaf (fix(device-sdk/plugin): report a failed NPort 5000 capability read in the config gate as a read failure) and 241716d3c (test(device-sdk/plugin): also fail the NPort 5000 config gate's capability read with a zero block). Documented in guide section 8 item 14 L1793-1801.
- Evidence:
P/config_serial.go:224-226info, rc := c.dsci.DSInfo(h)/if rc != nativedsci.DSCOK && kernel.Flag&dsciKernelDSInfoFlag != 0 && serial.LoginLevelGatesConfig(model) {/ "the capability read dsc_GetDSInfo_op3 on %s returned %d, so the login level is unknown". TestP/config_serial_test.go:891TestSerialConfigReportsAFailedCapabilityReadAsAReadFailure. The refusal applies only when kernel flag 0x40 is set (bdca2feaf message: a device without 0x40 has no op3 block, "so its zero block and the password-only reading stand as before"). Guide L1800-1801 "Zack 2026-10-14, rules 1 and 3".
L-c2. 「rawroundtrip_test.go:12–32:沒有呼叫 snmpInfoFor;putByteIfChanged(api.go:1800)也沒有測試」
- Status: fixed in 5d6cfe195.
- Evidence:
moxa/device/sdk/protocol/nativedsci/rawroundtrip_test.go:16TestSNMPReadModifyWriteKeepsTheDevicesEnabledBytecallssnmpInfoFor(read)(:30);:47TestPutByteIfChangedWritesOnlyANewState;putByteIfChangedis atapi.go:1818. 5d6cfe195 message: it "replaces TestSNMPReadModifyWriteKeepsReservedBytes, which copied its steps by hand".
L-c3. 「mxviewone_codes.go:38:註解說 trap-server 功能會產生 −3」
- Status: fixed in 800560ed0 (docs(device-sdk): correct the -3 and NoDeviceAccess comments).
- Evidence:
moxa/device/sdk/mxviewone_codes.go:41-42"Nothing else produces -3 either: a caller that needs it reads the SDK code of its own setSNMPTrapList call."
L-c4. 「plugin/common/feature/impl.go:18–19:說 NoDeviceAccess 的結果只取決於 input」
- Status: fixed in 800560ed0.
- Evidence:
moxa/device/sdk/plugin/common/feature/impl.go:18-19"NoDeviceAccess marks an implementation whose answer depends only on its input and the stored device record, and never reaches the device."
L-c5. 「pkg/api/response/auth_rejection.go:15–18;resp_dm.go:128–132 也有同樣的問題」
- Status: fixed in ffea2b4a7 (docs(api/response): say CodeDeviceLocalAuthError has no producer on purpose).
- Evidence:
pkg/api/response/auth_rejection.go:17-19"Nothing produces it, on purpose: the dsci, sdsci and mgci logins answer CodeDeviceGenericInternalError for a refused password, as the plugins answer __FAIL";pkg/api/response/resp_dm.go:128-134"Nothing produces it, on purpose: those logins answer CodeDeviceGenericInternalError, as the plugins answer __FAIL".
X. 「其他」(tests pass, go vet, no develop conflict)
- Status: not applicable (Tim's observations, no request).
Summary table: review | item | status | sha or guide ref
| Review | Item | Status | Sha or guide ref |
|---|---|---|---|
| 1 | A1 offlineFeatures / pre-flight | fixed | 7f7bc9ca4; exec.go:141; guide L821-823, §9 item 5 L2537 |
| 1 | A2 Context.Close | documented | guide L15-16, L101, L1384 (fb48443b0) |
| 1 | A3 firmware timeout code | documented | guide L670-674 |
| 1 | A4 getFirmwareUpgradeStatus | documented | guide §7.4 L1511-1525 |
| 1 | A5 dsc_LibSetProc bound | documented + comment fixed | guide L1548-1549; firmware_serial.go:27-28 (688b7eafb) |
| 1 | A6 -6/-7 | documented | guide L411-414, L1505-1507 |
| 1 | B1 identity key | documented | guide L740-741 (no identity key) |
| 1 | B2 §5 table states/count | documented | guide L1044-1064 |
| 1 | B3 §5 mgci half | documented | guide L1044-1060 |
| 1 | B4 setEthInterface 0.21 | documented | guide L1051 |
| 1 | B5 §5.1 none registered | documented | guide L1095-1107 |
| 1 | B6 §5.2 needs 7.x | documented | guide §5.2 L1219 ff |
| 1 | B7 §5.3 not written | documented | guide L1256-1262 |
| 1 | B8 §2.6 future tense | documented | guide L349-354 |
| 1 | B9 Tier column | documented | guide L8-11, L93, §9 item 3 |
| 1 | C1 M12 series | documented | guide L700-701, L1026-1027; identity.go:68 |
| 1 | C2 virtual OID 3.1/3.2 | documented | guide L747, L884-886, L735-736 |
| 1 | C3 row order | documented | guide L889-893 |
| 1 | C4 Security View failed | documented (behaviour also changed) | guide L979-1007; 788614cb8, 07550eb7f |
| 1 | C5 G2 login / LoginInfo | fixed | 788614cb8; securitycheck_sdsci.go:101-104; guide L923-926 |
| 1 | C6 baseline | documented | guide L1026, L1029 |
| 1 | C7 trap registration | documented | guide L300-326 |
| 1 | C8 updateUserAccounts | documented | guide L327-331 |
| 1 | C9 §2.8 caller notes (6) | documented; 2 points n/a (ExecOnce) | guide L605-668, L488-493 |
| 1 | C10 §6 runtime | fixed + documented | dc4f08404; guide L1373-1383, L1098-1101 |
| 1 | C11 §8 missing/misfiled | documented | guide §8 items 4-8 L1668-1693, L2507-2510 |
| 1 | C12 other (4) | documented | guide L163, L277-282, L821, L1013-1014 |
| 1 | D1 M12 in table | documented | guide L47-66 |
| 1 | D2 headings | documented | guide L416, L462 |
| 1 | D3 two rows | documented | guide L698-699 |
| 1 | D4 six small points | documented; L34 withdrawn (R3) | guide L51, L56, L268, L502 |
| 1 | D5 PROGRESS.md / serial.md | documented | guide L479-480 |
| 1 | 補充 MR description | fixed in live description | c95d33b75; guide L65-66, item 21 L1949 |
| 2 | D4 carried | n/a (withdrawn R3) | guide L51 |
| 2 | C9 carried | documented | guide L657-661 (a1c087c79) |
| 2 | N1 MAC | documented; exec_target.go n/a | guide L505-515, L122-127; serial_session.go:92 |
| 2 | N2 ExecOnce search | n/a (no facade/ExecOnce) | guide L516-517 |
| 2 | N3 render failure -2 | documented | guide §8 item 40 L2206-2215 |
| 2 | N4 M12 / legacy MGate virtual OID | M12 fixed; MGate documented | 45edc4649; guide item 11 L1726-1733, item 13 L1777-1780 |
| 2 | N5 IA5000-G2 TRAPSYSLOG | documented (kept develop) | guide §8 item 23 L1968-1974 |
| 2 | N6 §2.1, §7.1 | documented | guide L149-154, L1426-1434 |
| 2 | N7 low (7 points) | documented | guide L15, L366, L384-391, L1032/L1296, L938-943, L349-354, L8-11 |
| 2 | T1 1600 KiB test | fixed | dc4f08404; protocolgateway_legacy_dsci_test.go:235 |
| 2 | T2 MF_RESTART saves | fixed | dc4f08404; protocolgateway_legacy_dsci_test.go:75, :218 |
| 2 | T3 sdsci login refused test | fixed | 788614cb8; securitycheck_sdsci_test.go:460 |
| 2 | E1 dsc_receive_data message | fixed | 688b7eafb; config_serial.go:394-406 |
| 2 | S1 firmware_serial.go 60 s | fixed | 688b7eafb; firmware_serial.go:32-36 |
| 2 | S2 legacy MGate Linux comments | fixed | dc4f08404; index.go:340-342 |
| 2 | S3 virtualoid no source | fixed | 4f8b70b86; virtualoid.go:83-85 |
| 2 | S4 OrderIsLoadBearing name | fixed | test gone; virtualoid_test.go:406 |
| 2 | S5 dynamic caps test comment | fixed | dc4f08404; protocolgateway_legacy_dsci_test.go:357-359 |
| 2 | S6 serialVerify comment | fixed | dc4f08404; protocolgateway_legacy_session.go:108 |
| 2 | S7 MD5 32 bytes | fixed | dc4f08404; protocolgateway_legacy_session.go:23, :236-237 |
| 2 | X develop conflict | n/a (rebased) | — |
| 3 | G1 FromLib/SdsciPrefix | n/a (facade removed) | guide L516-517 |
| 3 | G2 list display | fixed | guide L1829 |
| 3 | G3a config gate facade-only | fixed | 7f7bc9ca4; exec.go:960; guide L573-576, item 50 |
| 3 | G3b Answered seam / identity.go:23 | fixed | guide L710-721; identity.go:23-25 (4f8b70b86) |
| 3 | G3c S9000 virtual OID | fixed (now refused) | 688b7eafb; virtualoid.go:279-284; guide item 15 L1838-1845 |
| 3 | G3d Two consequences | documented | guide L1672-1673 |
| 3 | G3e G2 per-item deadline | documented | guide item 6 L1680-1686 |
| 3 | G3f second point no deviation | documented | guide L1759-1760 |
| 3 | T1 M12 .ini fields | n/a (import removed) | guide item 13 L1764-1775 |
| 3 | T2 M12 table rows | fixed | 45edc4649; models_m12_test.go:8-16 |
| 3 | T3 NPort length refusal | fixed | 688b7eafb, 534dc3b52; config_serial_test.go:78, :133, :157 |
| 3 | T4 NPort 5000 legacy import no restart | fixed | 688b7eafb; config_serial_test.go:1072 |
| 3 | E1 config_serial.go:149 ReadConfig message | fixed | 688b7eafb; config_serial.go:399-401 |
| 3 | E2 deviceinfo M12 message | fixed | 688b7eafb; deviceinfo_serial.go:107-110 |
| 3 | C1 facade.go / exec_target.go | n/a (removed) | — |
| 3 | C2 securitycheck_sdsci.go:13 cite | fixed | 4f8b70b86; securitycheck_sdsci.go:10-12 |
| 3 | C3 securityview.go:32-34 | fixed | 7f29f4d5c |
| 3 | C4 securityview.go:132-133 | fixed | 688b7eafb; securityview.go:128-129 |
| 3 | C5 system/serial/config.go:46-51 | fixed | 45edc4649 |
| 3 | C6 configimport_m12.go header | n/a (removed) | — |
| 3 | C7 define_protocol_gateway.go:44 | fixed | 7f7bc9ca4; define_protocol_gateway.go:42 |
| 3 | C8 README ExecOnce | n/a (no ExecOnce) | README.md:57 |
| 4 | M12 .ini removal reason | documented | e75f6244b; guide item 13 L1764-1785 |
| 4 | H1 S9000 search holds dsci | not changed, rule 2 | 76d138bda; guide item 49 L2399-2482 |
| 4 | M1 mgci truncated/empty import | fixed | 262fb594e (+6570119a7); guide item 46 |
| 4 | M2 empty password | fixed | b8e875e56, 384e7b4e1, 57d6875aa; guide item 47 |
| 4 | M3 MGate G2 logout | fixed | f1d627464, adcad2089 (+71c2eafb3, c9d2a9087); guide items 44-45 |
| 4 | M4 SetSNMPTraps tests | fixed | 91afea405, 5d6cfe195; guide item 48 |
| 4 | L110-111 SdsciPrefix/DeviceNIC | fixed | e75f6244b; guide L111-116 |
| 4 | L117 GetDeviceList substring/MAC | fixed | e75f6244b; guide L122-127 |
| 4 | L158/L806/L1023 (section 8) | fixed | e75f6244b; guide L167, L876, L1104 |
| 4 | L507 templates highest version | fixed | e75f6244b; guide L545-549 |
| 4 | L517-523 0.0.0 render | fixed | e75f6244b; guide L558-571 |
| 4 | L539-542 controlMethod in custom template | fixed | e75f6244b; guide L590-594 |
| 4 | L732 securityCheck series | fixed | e75f6244b; guide L782-786 |
| 4 | L773 library not loaded | fixed | e75f6244b; guide L876-881 |
| 4 | L1850 item 29 scope | fixed | e75f6244b; guide L2064-2073 |
| 4 | config_serial.go:221 DSInfo | fixed | bdca2feaf, 241716d3c |
| 4 | rawroundtrip_test.go / putByteIfChanged | fixed | 5d6cfe195 |
| 4 | mxviewone_codes.go:38 | fixed | 800560ed0 |
| 4 | impl.go:18-19 | fixed | 800560ed0 |
| 4 | auth_rejection.go / resp_dm.go | fixed | ffea2b4a7 |
| 4 | X other | n/a | — |
Corrections to the brief's list of known outcomes
- None of the listed outcomes is wrong. Additions: M1 also has 6570119a7 (the export writes the caller's file only after a good read), which Tim did not ask for. M3 also has 71c2eafb3 and c9d2a9087 (drop teardown codes / a refused detach changes no G2 item). M2's fix goes beyond Tim's suggestion: an empty new password is now refused on every line, legacy included (b8e875e56 message; guide item 47).
- e75f6244b fixes all nine guide lows of review 4 (the brief's "check each"): each is listed above with its line.
第 5 輪:逐項事實
Source: ~/moxa/.tim5-facts.md, updated to a89346cc9 (English). Heading levels in this part are one level lower than in the source file.
Tim's 5th review of MAF MR !2413: facts per item
- MR: !2413, branch feat/device-sdk/mxview-one-plugin-surface. Tim's note id: 4025504010. Tim reviewed head 09c8595e1.
- Tip described: fc091b5eb (local branch tmp/tim5-int), plus 7b017c0d7 (stage 3), the follow-up 0ee8c26f7..4565c3996 (stage 4), 8181d2360 (stage 5) and 9ea68a39c, 41c7e535c, a89346cc9 (stage 6). See the sections "Follow-up", "Self-found item S1" and "Commits after 8181d2360". Origin is at a89346cc9. Stage 1 pushed ff84a7fd9 (24 code and test commits, 2026-10-16 14:03 +0800). Stage 2 pushed fc091b5eb (36 docs commits, 14:15). Stage 3 pushed 7b017c0d7 (14:30), stage 4 4565c3996 (14:59), stage 5 8181d2360 (15:12). Stage 6 pushed a89346cc9 (3 commits, 2026-10-17 18:32 +0800). The push times come from the local reflog of the remote-tracking ref origin/feat/device-sdk/mxview-one-plugin-surface. The remote itself was not read, so the tip is the last one this clone saw.
- Push state: the local branch feat/device-sdk/mxview-one-plugin-surface is at fa7d71736, one commit above origin. That commit (2026-10-18 06:35 +0800, "test(device-sdk/plugin): mark the settled getDeviceSeries, refused attach and teardown rows") adds 5 comment lines in identity_test.go, login_protocolgateway_test.go and securitycheck_serial_test.go. It is not pushed and it touches no item. No other commit of this branch is local-only.
- Size: 69 commits above 09c8595e1 at a89346cc9 (60 at fc091b5eb). 36 files changed, 1058 insertions, 294 deletions (33 files, 761 and 258 at fc091b5eb).
- Counts: 42 items. CONFIRMED 37. PARTLY 4 (B7, C1, D3, F5). WRONG 1 (C3). Unchanged at a89346cc9: no later commit changed a verdict. S1 is self-found and not in the 42.
- Line numbers: in a Verdict line, guide lines are Tim's (09c8595e1). In Evidence and Change lines, every line number is at fc091b5eb, unless 09c8595e1 is named or the item has an "At a89346cc9" line (every number in that line is at a89346cc9). Section "Line shifts" at the end maps the 13 files that moved after fc091b5eb.
- Names: guide = docs/mxview-one-integration.md. local/ = moxa/device/sdk/plugin/local/. nativedsci/ = moxa/device/sdk/protocol/nativedsci/. templates/ = moxa/device/collection/data/device-templates/.
- Pins (from ~/moxa/.source-pins.json): np5000-linux e7c80d3fee, np6000-linux 8483a61144, np8000 bfb20a973, s9000 04120cb28, mgate-linux de4fe40161, mgate-win 20f76b689, mgate5000g2-old-win ed1a6a71d, g2-linux 59d02371e, dsci_lib 782ca9441, dsci_lib_linux 07ec98034, sdsci_lib 4e9cdc77f, mxconfignportdll d21ca297ce.
- Sources: verify-A1-A4, verify-A5-B3, verify-B4-C5, verify-D, verify-F-E, docs-report, docs-fix2-report, tests-report, code-report, refute-docs (all in ~/moxa/.tim5fix-work/). I checked every sha with git log. All are on tmp/tim5-int except f9ead348e (C1). I read every line number for fc091b5eb from that tree. For a89346cc9 I read the three commits (diff and message) and every "At a89346cc9" line from the detached worktree ~/moxa/maf/wt-gate-a89346cc9. I also read the plugin and engine sources that the three messages cite, at the pins (see "Commits after 8181d2360").
A. Guide and code do not agree
A1
- Verdict: CONFIRMED. Tim says fetchDeviceInfo on a discovered record skips the read and never reaches the no-answer translation (guide L439-447, L650-651, L2236-2237).
- Evidence: local/deviceinfo_serial.go:55 reads only when SerialNumber is empty. The sentinel is wrapped only inside the dsci read (:99-103). Discovery writes a serial number (local/discovery_serial.go:316-324, :371). The skip is on develop (6a59580db). The plugins search on every call: np6000-linux MXview_Nport.cpp:2770-2775, np5000-linux MXview_Nport.cpp:1824-1828 (answers -1).
- Change: ecfb6e400 and 69ccfdcba. The guide now limits the translation to a record with no serial number: section 2.7.1 (L463-493), section 5 (L692-693) and item 42 (L2346-2358). Doc fix only. Item 29 already described the skip.
A2
- Verdict: CONFIRMED. Tim says guide section 2.1 (L117-118) says a CreateDevice record cannot serve these lines. Section 2.8 and the code say it runs as a dsci record.
- Evidence: moxa/device/sdk/index.go:1006-1018 stores an empty ProtocolData (:1017). local/login_serial.go:134-142 (serialFromLib) returns dsci when Local is nil. local/snmptrap_protocolgateway.go:39-41 does the same for legacy MGate. Section 2.8 (L622-624) already said so.
- Change: f713f8a2a. Guide L118-121 now says the record runs as a dsci record, which is the wrong library for a G2 unit. It tells the integrator to register with the ip-list search.
A3
- Verdict: CONFIRMED. Tim says item 31 (guide L2099-2106) is wrong. By id, an sdsciV1 record gets -2 from the template (exec.go:527-529), not the handler's -1 or empty success.
- Evidence: templates/base/NPORT.yaml comments out nine keys (:89 exportConfig to :157 importHttpsCert). exec.go:527-529 answers -2 for them. The record is never rendered (local/dynamic_caps_serial.go:80-88). The cited test calls the handlers directly. refute-docs.md found three faults in the first fix text (F5, F6, F7).
- Change: 5d3f57797 (first text) and 9c34554c9 (final text). Item 31 (guide L2187-2227) gives the order: pre-flight read, template -2, handler answers, render case. Its title is now "opens a session only for fetchDeviceInfo". acbb9f16f (exec.go:137-142) and a41858287 corrected cites.
A4
- Verdict: CONFIRMED. Tim says the list check runs before the product-line switch, so "legacy NPort answers -2 for any list" is wrong (guide L1624-1626, L1650-1654).
- Evidence: local/snmptrap_sdsci.go:66-68 runs sdsciTrapListValid and answers -1. The default answer -2 is at :85-88. The check refuses an empty list, more than two entries, an empty host (:110-112) and any mode (:114-116). The order is the same on develop. Guide section 2.6 already said it right.
- Change: 7797c9a94. Section 8 item 2 (guide L1691-1692, L1696-1697, L1721-1727), section 5.3 (L1314-1318) and docs/device-parity/s9000.md:85 now say -2 for a list that passes the check and -1 for one that does not. a41858287 moved the code cites.
- At a89346cc9: snmptrap_sdsci.go list check :70-72 (was :66-68), default -2 :93-96 (:85-88), empty host :118-120 (:110-112), mode :122-124 (:114-116). The shift is from stage 4 (c8352a748 adds the S9000 case); 41c7e535c changes two return lines and adds no line. One answer changed in stage 4: a list for a record whose model name is an S9000 row is no longer answered -2. It is written (case s9000, :89-92). Guide section 5.3 says so (L1314-1319). Item 2 (L1694-1695) still says legacy NPort answers -2 for a list that passes the check, and that is still true. 41c7e535c adds one more answer to the S8000 and S9000 cases: a receiver address over 15 bytes or a community over 31 bytes gets CodeInvalidInputError before the SET. Verdict stays CONFIRMED.
A5
- Verdict: CONFIRMED. Tim says S8000 updateUserAccounts answers -2 before the empty-password check. So "after the input checks" (guide L1343, L1314-1316; docs/device-parity/s8000.md:71) is wrong.
- Evidence: local/network_serial.go: enable, email, authority :358-361 (-1), S8000 :363-367 (-2), empty password :370-372 (-1). Plugin np8000 nport_dll.cpp:982-989: changepwd answers __NOT_SUPPORT for any non-NULL argument and a timeout that is not negative, else __FAIL. So the plugin also answers -2 for an empty password. The old text was true until b8e875e56.
- Change: 6d96e0021 and f4fcc3dc6 (guide L348-352, L1374-1377, L1404, L2476-2497; s8000.md:71). acbb9f16f and 1a18eaa8c fixed cites (:363-367, :988). 183468274 adds test row "an empty new password" (local/s8000_trap_test.go:152). The code order is kept.
- At a89346cc9: the test row "an empty new password" is s8000_trap_test.go:182 (was :152). The file grew above it (stage 4 added
30 lines at :115; 41c7e535c added 85 at :358). The S8000 table row
changepwdis guide L1405 (L1404 at fc091b5eb); the trap row above it is the one 41c7e535c edited. network_serial.go:358-372 did not move. 41c7e535c changes only the trap sites (network_serial.go:517, :520-521, :534, :537-538). The order of the S8000 password answers is unchanged.
A6
- Verdict: CONFIRMED. Tim says item 18 (guide L1882-1888, L521) says only the G2 MGate pre-fetch logs in. The NPort G2 pre-fetch also logs in.
- Evidence: exec.go:141-142 calls ensureFirmwareVersion (:291-303) for a record with no firmware. local/deviceinfo_serial.go:154 skips the login only when user name and password are both empty. :164 calls sdsc_Login. G2 MGate needs both (local/deviceinfo_protocolgateway.go:128). The same code is on develop. The G2 plugins have no such read (g2-linux).
- Change: 171771a8d and 0a5412ab6. Item 18 (guide L1963-1971) and section 2.8 (L557-560) give the login condition for each line. They say the first call makes one more login attempt than the plugin.
A7
- Verdict: CONFIRMED (both parts). Tim says item 49 (guide L2409-2416, L2427-2435) is wrong. An S8000 search holds 5 s, not "3 s for the rest". The MGate unicast discovery hold (sdsci half) is missing.
- Evidence: local/serial_session.go:63-66 gives 5000 ms when engineMs is 0 or less. The S8000 "login" row expects retry 5 at local/serial_search_budget_test.go:63 (Tim wrote :61). The MGate probe holds sdsciSearchMu with no upper bound (local/discovery_protocolgateway.go:168, :188-193; local/discovery.go:221-230). The serial line refuses outside 1-60 s (local/discovery_serial.go:116-117). Both facts are on develop.
- Change: 771a550e1. Item 49 (guide L2555-2562) gives 5 s for every call that passes 0. A new bullet states the MGate hold on both platforms (L2581-2590).
B. Guide contradictions and small errors
B1
- Verdict: CONFIRMED. Tim says "Two Windows trees differ" (guide L182-186) omits the S8000 NPORTdll. Section 5.4 and item 15 list its missing exports.
- Evidence: np8000 Source/NPORTdll/src/lib.def:3-14 exports 11 names. nport_dll.h declares 13 DLL_API functions (search_device_ex at :158). It has no get_virtual_sysobjid, get_device_series or Security View export. mgate-win and mgate5000g2-old-win (MXview_MGate.h) also lack get_virtual_sysobjid.
- Change: 65b4e9c5e names the S8000 (guide L186-191, L211-213, L1382-1384). 578e423b5 adds the two Windows MGate trees (L186-191, L216-218), so the count is five. The docs worker counted mxview_mgate_g2 because item 41 says kits v1.4 to v1.7 shipped it.
B2
- Verdict: CONFIRMED. Tim says the password bullet in section 2.6 (guide L327-331) omits the -2 of a legacy MGate with mgci bound (snmptrap_protocolgateway.go:97-103). The trap bullet above it states it.
- Evidence: local/snmptrap_protocolgateway.go:96-101: only mgateLegacyDsciKey goes to the legacy path. Otherwise mgateSdsciGate (:99-101) answers -2 for a dsci record (local/protocolgateway_session.go:100-102) before the empty-password check (:102). The key needs mgci not bound (local/discovery_protocolgateway.go:88-90). The -2 path is on develop.
- Change: aacc80958 and f4fcc3dc6. Guide L348-352 now lists two cases that answer -2 before the empty-password check: the NPort S8000 and a legacy MGate where mgci is bound. They apply where the dsci and sdsci libraries are bound.
- At a89346cc9: snmptrap_protocolgateway.go:96-102 (key, gate, empty password) did not move. 9ea68a39c adds a length check at :110-112, after the enable, email and authority check (:106-109). A legacy MGate with mgci bound still answers -2 at :99-101 before any of them. The B2 claim stands.
B3
- Verdict: CONFIRMED. Tim says "Row 7.5 publishes the real OID" (guide L740-741) contradicts the table (L745) and section 3.2 ("The real sysObjectID is neither").
- Evidence: The table says the real sysObjectID is the input to the series id and not something the SDK returns (now L789). Section 3.2 says the same (now L804-805). The SDK publishes two operations: getDeviceSeries and getVirtualSysObjectId (templates/base/NPORT.yaml:13, :17).
- Change: 38a37cf04. Guide L783-785 now says row 7.5 covers three pieces of identity and the SDK publishes the last two as two operations.
B4
- Verdict: CONFIRMED. Tim says guide L923-925 says the SDK "logs out before each detach". The code logs out only after a login that worked. Item 44 is right.
- Evidence: local/securitycheck_sdsci.go:105-106 sets loggedIn. :127-129 logs out only if loggedIn. :132 detaches in all cases. The same fault was in the old L1196-1197. Tim did not list it.
- Change: a7f119563 (guide L971, L1251-1252), 69ccfdcba (item 41 L2341-2343, item 30 L2174) and c9a67a977 (item 30 L2170-2171). All now say the logout follows only a login that worked.
B5
- Verdict: CONFIRMED. Tim says that after the item 19 sentence, "There," (guide L1124-1129) points to "on Windows and Linux alike". With mgci bound (Windows), firmware, config and network use mgci.
- Evidence: local/protocolgateway_legacy_session.go:202-205 (mgateGateLegacyDsci) goes to dsci only when the record is dsci and mgci is not bound (local/discovery_protocolgateway.go:88-90). The sentence and "There," are both in the first commit of the guide (c97943882). Tim says the item 19 sentence was inserted later.
- Change: 8fbb172a6. Guide L1177-1179 now names the legacy MGate dsci path where mgci is not bound. a41858287 moved the code cite to :202-205.
B6
- Verdict: CONFIRMED. Tim says item 9 (guide L1694-1712) names only "over 1600 KiB" as refused. Lib.ExportConfig also refuses a declared length of 0.
- Evidence: nativedsci/api.go:1048-1049 refuses length <= 0 or over maxBytes with DSCParam (:1049-1050 at 09c8595e1). The check is on develop (c8b76b09c). Plugin mgate-linux (MB3000 and 5000 tree) DSCIProcessor.cpp:642-677 allocates the announced length, zero included. What the plugin answers for length 0 was not run.
- Change: 373ab16c7. Item 9 (guide L1780-1784) now says an export announced as zero bytes or over 1600 KiB is refused. It makes no claim about what the plugin writes.
B7
- Verdict: PARTLY. Tim says item 48 (guide L2387-2393) mixes SNMPINFO and SNMP_TRAP_INFO, and that legacy MGate writes only SNMP_TRAP_INFO. The first part is right. The second part is wrong.
- Evidence: nativedsci/layout.go:150-156 shows SNMP_TRAP_INFO has no is_enabled. A legacy MGate model with mgateSupportTrap writes SNMPINFO (12 of 44 rows, local/snmptrap_protocolgateway_legacy.go:65-75). A model with mgateSupportTrap3000 writes trap entries (27 rows, :78-92). NPort 5000 and M12 write SNMPINFO (local/network_serial.go:541-547). NPort 6000 writes trap entries (:550-552). dsci_lib_linux src/mxset.cpp:496-500 and :2230-2246.
- Change: 54973ac13 and 0454c8bd1. Item 48 (guide L2520-2537) names the block each path writes, the models of the trap-entry path (local/protocolgateway_legacy_models.go:37-45, :47-64) and what the libraries send for each block.
B8
- Verdict: CONFIRMED. Tim says section 2.7.2 (guide L467-472) writes "a refused local login would ..." for CodeDeviceLocalAuthError, but L401-405 says no code produces it. The comments in exec.go:422, :566-569 and mxviewone_codes_test.go:19 have the same fault.
- Evidence: Non-test code only reads the code (exec.go:439, :570; mxviewone_codes.go:48; pkg/api/response/auth_rejection.go:15-18 says "Nothing produces it, on purpose"). A refused dsci or sdsci login answers CodeDeviceGenericInternalError (local/login_serial.go:71-76). It does not lock the device. The loop tries the next candidate.
- Change: f8852636d (guide L500-509) and 4d4b11bbb (comments at exec.go:422, exec.go:566-569, mxviewone_codes_test.go:18-20). No runtime change.
B9
- Verdict: CONFIRMED. Tim says 4294966696 ms (guide L2053-2056) is the wrap value of -600, not the value for every negative Upgtout.
- Evidence: 4294967296 - 600 = 4294966696 ms (49.7 days). The plugin halves strtol's result and adds two halves (np5000-linux DSCIProcessor.cpp:742-744, :779-782, MXview_Nport.cpp:438-441). dsc_LibSetUpgTimeout takes a DWORD (dsci_lib_linux src/dsci.h:1317). The text is in item 28, not item 37.
- Change: bc9d34678. Guide L2142-2145 now says a negative sum wraps to 4294967296 ms plus the sum, with -600 as the example. a41858287 moved the lock cites (nativedsci/api.go:1073, :1130).
C. Wrong cites
C1
- Verdict: PARTLY. Tim says item 13 (guide L1764-1774) cites f9ead348e on backup/plugin-surface-9727fae46. He says neither his clone nor origin has the commit.
- Evidence: Right: no remote ref holds f9ead348e now. Wrong: Zack's clone has it on two local backup branches. The local origin reflog shows pushes that held it from 2026-10-09 08:09 to 22:32. The push of 2026-10-10 07:37 (c97943882) replaced that history. No MR note gives the reason (verify-B4-C5.md).
- Change: ebc6a0cc7, 55dd9ecd7 and d826952f0. Item 13 (guide L1841-1850) states the decision inline. It cites develop code (317d689fd config_serial.go:165-172, here local/config_serial.go:201-208), no unreachable sha, and says an earlier branch version had the gate and the import (MR note of 2026-10-07).
- At a89346cc9: serialRawConfigGate is local/config_serial.go:203-210 (was :201-208). a89346cc9 added two comment lines above it (:196-200). The guide item 13 text (L1844-1853) still cites config_serial.go:201-208 (L1848), so that cite is two lines off. Three more cites moved by the same commit, see "Faults found at a89346cc9". The verdict PARTLY does not change.
C2
- Verdict: CONFIRMED. Tim says guide L443 cites mxviewone_codes.go:81. The function is at :82.
- Evidence: moxa/device/sdk/mxviewone_codes.go:82 is "func DeviceInformationCode". :81 is the last comment line. The cite was right when written. A later comment line moved the function.
- Change: 246603e9a. Guide L465 now cites mxviewone_codes.go:82.
C3
- Verdict: WRONG. Tim says config_protocolgateway.go:334-335 (guide L2440-2442) should be :333-334.
- Evidence: local/config_protocolgateway.go:333 is "const (". :334 is mgateLegacyTransferTimeoutMs and :335 is mgateLegacyTransferRetry. The file is the same at 09c8595e1 and fc091b5eb. Tim's range drops the retry line. The cite is at guide L2445 (now L2600).
- Change: Unchanged. The cite is correct.
C4
- Verdict: CONFIRMED. Tim says the same search is cited as :6947 (guide L1995) and :6946 (L2010). The code comments use :6946.
- Evidence: mxconfignportdll source/NPortJni/dsci_process.cpp:6946 declares moxa_device. :6947 is the call search_device_ex(ip, 5000). The other cites in the list point at call lines. The comments at local/serial_session.go:33 and :78 cite :6946. They come from develop (b9cf46963).
- Change: 02d88ba30. Guide L2095 now cites :6947, as L2080 does. The two code comments are unchanged. No source records a decision about them.
C5
- Verdict: CONFIRMED. Tim says docs/device-parity/s9000.md:80 cites nativedsci/api.go:1030-1036. He says the right lines are :1043-1056 (receive at :1054).
- Evidence: At 09c8595e1 Lib.ExportConfig is api.go:1043-1056. At fc091b5eb it is :1042-1056: readConfig :1047, length check :1048-1049, receive :1053. The old cite was right until a commit in the fix round added lines above the function.
- Change: 803324e54 (cite :1048-1054) and a41858287 (now :1047-1053, in s9000.md:81). a41858287 also moved five plugin cites in the same row by one line by mistake; 7b017c0d7 restores them (see "Faults found at the tip").
D. Code
D1
- Verdict: CONFIRMED (one consequence PARTLY). Tim says mgateLegacyLogin drops the LoginEx error. A long password reaches dsc_Login (admin) or the message says "returned 0" (other users). No test covers the login.
- Evidence: nativedsci/api.go:232-233 returns (0, err) for a user of 16 bytes or more or a password of 64 bytes or more. The C library refuses a long password too, before any I/O: dsci_lib_linux src/dsci.cpp:356-358 (dsc_Login) and :2054, :2058 (dsc_SetLogin_Ex). The mgci half is right (local/protocolgateway_session.go:299-302). Plugin: mgate-linux MXview_MGate.cpp:2010-2037.
- Change: e9f272c2b. local/protocolgateway_legacy_session.go:227-242 returns the LoginEx error before any fallback. The admin-only fallback stays. Three new tests: local/protocolgateway_legacy_dsci_test.go:325, :355, :371. Four mutations fail them.
D2
- Verdict: CONFIRMED (27 rows, Tim says 18). Tim says mgateSupportTrap3000 was added by hand to a "DO NOT EDIT" generated file. A regenerate drops it and the build fails. The generator checks only flag names and one value.
- Evidence: The mxconfigmgatedll header (eb1bda13c) has no 0x08. 27 of 44 rows of local/protocolgateway_legacy_models.go use the constant, and local/snmptrap_protocolgateway_legacy.go:54 uses it. I re-ran both generators on the pinned inputs. Each gives its committed file at fc091b5eb byte for byte. The first equals the origin/develop copy.
- Change: 341cd5ed1. The constant is now in local/protocolgateway_legacy_session.go:250-255. local/discovery_protocolgateway_models.go is regenerated. local/gen_mgate_plugin_models.py:54-61, :79-81 checks the value of all nine flags. A header value of 0x400 for MF_SERIES_EIP now stops it. The old generator did not.
D3
- Verdict: PARTLY. Tim says the S8000 refusal looks only at the model name (local/network_serial.go:364, local/snmptrap_sdsci.go:63). An S8000 under another name runs dsc_Login, dsc_SetPassword_Ex and dsc_SaveAndRestart.
- Evidence: Password path CONFIRMED: the search reply fell to the default case (local/network_serial.go:439-444). Trap list WRONG: that call answers -2 from its default case (local/snmptrap_sdsci.go:85-88) with no device access. Plugin np8000 nport_dll.cpp:982-989 answers __NOT_SUPPORT. No MAF path writes such a record (local/discovery_serial.go:275).
- Change: e6497b382 adds case serial.IsS8000(d.APID) (local/network_serial.go:430-432), the error (:476), the -2 mapping (:446-448) and a test (local/s8000_trap_test.go:173). fc091b5eb says how such a record answers (docs/device-parity/s8000.md:71, guide L1404, L2490). The trap list is unchanged.
- At a89346cc9: the trap list default -2 is snmptrap_sdsci.go:93-96 (was :85-88). The test is s8000_trap_test.go:203 (was :173). network_serial.go:430-432, :446-448 and :476 did not move. Stage 4 added case s9000 to the list switch (:89-92), so an S9000 model name now gets the SETs. An S8000 under another model name still reaches the default. 41c7e535c changes the return of setSNMPTrap for an S8000 or S9000 found by the search (network_serial.go:534, :538): it now calls s8000TrapCode. Verdict and the unchanged trap list stay.
D4a
- Verdict: CONFIRMED. Tim says local/snmptrap_sdsci.go:144 writes failed = fmt.Errorf(...) and overwrites an earlier delete error. The other steps use cmp.Or.
- Evidence: At 09c8595e1 the line was a plain assignment. verify-D.md says develop returned the first error.
- Change: 3aeeed6db. local/snmptrap_sdsci.go:147 now uses cmp.Or. New test TestSerialTrapListKeepsTheFirstFailure (local/snmptrap_sdsci_test.go:631). The response code is the same. Only the message changes when both steps fail.
- At a89346cc9: cmp.Or is snmptrap_sdsci.go:155 (was :147). The test is snmptrap_sdsci_test.go:675 (was :631). 9ea68a39c added 44 test lines above it (:343-386).
D4b
- Verdict: CONFIRMED. Tim says the S9000 case added to ReadsLoginLevel (system/serial/password.go:88) has no effect.
- Evidence: The only caller, local/network_serial.go:386, excluded the S9000. PasswordEncryption returns (2, 0, 0, 0) for an S9000 before it reads the level (system/serial/password.go:73-75). The two comments disagreed.
- Change: 861730122. local/system/serial/password.go:89 is develop's line again. The S9000 test is gone from network_serial.go:386 and from models_s9000_test.go. No behaviour change: Lookup matches by APID and no table row uses APID 0.
D4c
- Verdict: CONFIRMED. Tim says the IsM12 branch in MixedConfigRefusal (system/serial/config.go:75-77) is never reached.
- Evidence: local/config_serial.go:205-208 (serialRawConfigGate) returns before the call at :232 when serial.Lookup does not know the model. Lookup searches the 5000, 6000, S9000 and S8000 tables only (system/serial/discovery.go:50-59). No M12 reaches MixedConfigRefusal.
- Change: e43d3918f. The branch is gone (system/serial/config.go:77). The comment says an M12 never reaches it (:73-75). The M12 test row and IsM12 (system/serial/models_m12.go) are removed, because IsM12 had no caller left.
- At a89346cc9: serialRawConfigGate returns at :207-210 (was :205-208) and calls MixedConfigRefusal at :234 (was :232). system/serial/config.go: the comment about the M12 is :74-76 (was :73-75) and the 6000 line of MixedConfigRefusal is :78 (was :77). a89346cc9 only added a comment line at :56-61. The claim stands.
D4d
- Verdict: CONFIRMED. Tim says nativedsci/api.go:470
if enabled := byte(0); true {only limits a variable's scope. - Evidence: verify-D.md: at 09c8595e1 it is the only such form in moxa/device/sdk.
- Change: 7f8c5daa8. nativedsci/api.go:470-474 now uses
var enabled byteand a plainif. Behaviour is the same.
D4e
- Verdict: CONFIRMED. Tim says local/testdata/mxview_one_plugin/nport-6150-g2.replay.json:10 and :27 hold a developer's scratchpad path (/tmp/tmp-zack/claude-1000/...).
- Evidence: At 09c8595e1 both lines hold the path. No test loads this file. recorder.diff.txt:22 in the same folder holds a /dev/shm/tmp-zack path. It is also at 317d689fd. Tim did not list it.
- Change: 5ee3a81b0. Lines 10 and 27 now use
. The JSON still parses. The bench IP and MAC stay. recorder.diff.txt is unchanged.
E. Test gaps (Tim checked each by mutation)
E1
- Verdict: CONFIRMED (Tim's :577 is :578 at 09c8595e1). Tim says deleting
raw: bytes.Clone(structBytes(&c))in SNMP() and SNMPTraps() (api.go:448, :577) leaves all tests green. - Evidence: The lines are nativedsci/api.go:448 and :578 at 09c8595e1, and :448 and :577 at fc091b5eb. The old tests in rawroundtrip_test.go build raw by hand. None calls Lib.SNMP or Lib.SNMPTraps.
- Change: f07b23d9f adds four tests through Lib.SNMP and Lib.SNMPTraps (nativedsci/rawroundtrip_test.go:270, :302, :340, :375). With both lines deleted, all four fail (tests-report.md).
E2
- Verdict: CONFIRMED (five gaps). Tim says five S9000 Security View conditions are not flipped one by one (local/securitycheck_s9000_test.go:102).
- Evidence: The gaps: ACCESSIBLE_IP_LIST part-way failure (local/securitycheck_s9000.go:290), ENCRYPT_CONSOLE telnet (:259), SYSLOG server 1 and 3 (:217), PASSWORD_POLICY letter and special (:212), PASSWORD_CHANGED first read (:231-233). Plugin s9000 nport_dll.cpp:2724-2728, :2921, :2795, :2666, :2817-2821.
- Change: 25ad1382e. Five new flips and one changed part-way case in TestS9000CheckItemsFollowThePluginsRules (:69), and one new row in TestS9000PasswordChangedIsTheDsciItem (:144, row :151). Each of seven mutations now fails one test (tests-report.md).
E3
- Verdict: CONFIRMED. Tim says changing s8000Flags to MF_RS232 leaves the tests green. The S9000 test compares the table with the constant it is built from.
- Evidence: local/system/serial/models_s8000.go:20 sets the flags. Plugin values: np8000 DSCIProcessor.cpp:5-8 gives 0x910008. s9000 DSCIProcessor.cpp:6-30 gives 0x110008.
- Change: ed096d706. New test TestS8000AndS9000FlagsAreThePluginsValues (local/system/serial/models_flags_test.go:6) checks both values. The two mutations (MF_RS232 and MF_RSMIX | MF_SSL) now fail.
E4
- Verdict: CONFIRMED. Tim says changing
ms > 15000toms > 0in ConfigTimeout leaves the tests green. - Evidence: The code is at local/system/serial/config.go:104 (:103 at 09c8595e1). No test row has a CfgTout of 15000 or less. Plugin s9000 nport_dll.cpp:701-704 and DSCIProcessor.cpp:395.
- Change: 17dc35899. New row "S9650I CfgTout=10000" with 15 tries (local/config_serial_test.go:416). The mutation now fails. No
15000 row: it gives 15 under
>,>=and> 0. - At a89346cc9: ConfigTimeout starts at system/serial/config.go:102 and
ms > 15000is :105 (was :104). a89346cc9 added one comment line above it (:56-61). The test row (config_serial_test.go:416) did not move.
E5
- Verdict: CONFIRMED. Tim says moxa/device/collection/mxview_one_claims_test.go:205 does not cover a key with
*in the middle that hides a shorter wildcard. - Evidence: moxa/device/collection/trie.go:45-48 keeps the deepest
*child. Keys "A" and "ABCD" make "ABXY" miss "A*". trie.go is unchanged since 39ac486ad (2025-03-13), so the behaviour is develop's. No source records a decision to pin or to change it. - Change: ff84a7fd9. New test TestCollectionAMidWildcardKeyShadowsAShorterWildcard (mxview_one_claims_test.go:223) pins the current behaviour. trie.go is unchanged.
F. Stale or wrong comments
F1
- Verdict: CONFIRMED. Tim says local/serial_session.go:18-20 ("Only getDynamicCaps stops at the attach") is wrong. Device info, allow-list read, network read and searchReadsAddressing also attach without a login.
- Evidence: The sentence is on develop (serial_session.go:16), so it was wrong before this MR. Attach only: dsci device info (local/deviceinfo_serial.go:104), dsci allow-list read (local/locator_allowlist_serial.go:176), dsci network read (local/network_serial.go:708), getDynamicCaps (local/dynamic_caps_serial.go:108), search (local/serial_session.go:148). The sdsci device info logs in (local/deviceinfo_serial.go:164). verify-F-E.md lists it as attach only. The code logs in.
- Change: 28a83ae2a. local/serial_session.go:17-23 lists getDynamicCaps on both halves, fetchDeviceInfo and the allow-list and network reads on the dsci half, and the search.
F2
- Verdict: CONFIRMED. Tim says the restoreRaw comment (nativedsci/api.go:1781-1784) says "for two reasons" without listing them, and "only through putTextIfChanged" is wrong.
- Evidence: IsEnabled goes through putByteIfChanged (api.go:474). snmpTrapInfoFor writes Version (:615) and EncryptMode (:622) directly. The two reasons are in the putTextIfChanged comment.
- Change: 74edac0d1. api.go:1781-1784 now says a text field goes through putTextIfChanged, IsEnabled through putByteIfChanged, and snmpTrapInfoFor writes Version and EncryptMode as given.
F3
- Verdict: CONFIRMED. Tim says the comment on mgateGateLegacyDsci (local/protocolgateway_legacy_session.go:195-199) omits dynamic caps and the two network getters.
- Evidence: Callers: firmware_protocolgateway.go:55, config_protocolgateway.go:82 and :175, network_protocolgateway.go:79, deviceinfo_protocolgateway.go:39, dynamic_caps_protocolgateway.go:189, and network_protocolgateway.go:407 (mgateLegacyDsciNoNetworkRead, called at :360 and :392 by the two getters).
- Change: 97a503a29. local/protocolgateway_legacy_session.go:195-201 now lists all of them.
F4
- Verdict: CONFIRMED. Tim says local/snmptrap_sdsci.go:51 ("unlike the MGate rows") is false because featuremap.go:132 registers the MGate key. He says :32-36 ("edit one entry in place") does not fit the S8000 and S9000.
- Evidence: local/featuremap.go:132 registers SetSNMPTrapListProtocolGateway. The S8000 takes the list path (local/snmptrap_sdsci.go:65, :76-84). On an S8000 or S9000, setSNMPTrap writes both receivers in one SET. The comments come from develop. This MR made them stale.
- Change: 2e1526153. local/snmptrap_sdsci.go:32-37 and :52-55 are rewritten. No code change.
- At a89346cc9: the comment at snmptrap_sdsci.go:32-37 now ends "(s8000SetTrapServers), and both take this key" (stage 4 changed :37); :52-55 did not move. The S8000 list path is :80-88 and the S9000 path :89-92 (was :76-84, S8000 only). 41c7e535c changes both returns to s8000TrapCode(rc, err) (:88, :92) and the four setSNMPTrap sites (network_serial.go:517, :521, :534, :538). The comment sentences are not changed by the three commits. Verdict stays CONFIRMED.
F5
- Verdict: PARTLY. Tim says error texts for the S8000 and S9000 name S9000 or G2 (snmptrap_sdsci.go:85, snmptrap_s8000.go:67, :99, :112). The texts are wrong. His cites :99 and :112 name the wrong file: snmptrap_s8000.go has 73 lines.
- Evidence: At 09c8595e1 local/snmptrap_sdsci.go:99 said "the G2 path carries", :112 "the G2 path inherits the mode", :85 "whose plugin edits one entry in place". local/securitycheck_s9000.go:137 said "the NPort S9000's SNMP credential". local/snmptrap_s8000.go:67 wraps it for the S8000. The return codes were right.
- Change: 9b3538db9. The texts are now at local/snmptrap_sdsci.go:87, :101, :115 and local/securitycheck_s9000.go:137. They say "this path" and "the device's SNMP credential". No return code changed.
- At a89346cc9: the three texts are snmptrap_sdsci.go:95, :109, :123 (were :87, :101, :115). securitycheck_s9000.go:137 did not move. The three commits add error texts: errS8000TrapValueTooLong ("snmp trap server: a receiver value is longer than MXview One's engine sends", snmptrap_s8000.go:30; the wrapped text names the receiver, the field and the bound) and sdsciNewPasswordFits (snmptrap_sdsci.go:251, "... over the 256 the G2 takes"). The first names no model. The second names the G2 and is reachable only on the two G2 lines (network_serial.go:455, snmptrap_protocolgateway.go:110). The F5 verdict PARTLY stands.
F6
- Verdict: CONFIRMED. Tim says the local/firmware_serial.go:109-123 comment says the S9000 budget comes from op3. But NPortUpgradeTimeoutMS reads no blob for the S8000 and S9000.
- Evidence: local/system/serial/firmware.go:42-47 returns the row's sum for an S8000 or S9000 before it reads the blob. Plugins np8000 nport_dll.cpp:269-271 and s9000 nport_dll.cpp:557-559 set the row's sum. docs/device-parity/s9000.md already agreed.
- Change: 673b11e36. local/firmware_serial.go:109-118 now says the S8000 and S9000 take the row's sum and never read the blob.
F7
- Verdict: CONFIRMED. Tim says templates/base/MGATE.yaml:14 says G2 MGate dials. The MGate 5000-G2 names are refused before the search (virtualoid.go:131-133). Only MB3x70-G2 and MB3660-G2 dial.
- Evidence: local/virtualoid.go:108-111 returns CodeInvalidInputError before the search when virtualOIDFor has no row. The table has no MGate 5000-G2 row (:18-22, :74-78). A 5000-G2 name passes the "-G2" test (:130) and finds no row (:133-138). Tim's cite :131-133 is that test and loop. The refusal is the check at :108.
- Change: 319f6771c. templates/base/MGATE.yaml:14-15 now names MB3x70-G2 and MB3660-G2 as the models that dial. It says MGate 5000-G2 and legacy MGate are refused before any search.
F8
- Verdict: CONFIRMED. Tim says 49 guide prose lines are over 110 characters (L1137 has 192) and local/securitycheck_protocolgateway_legacy.go:40 is not rewrapped.
- Evidence: awk 'length>110 && !/^|/' gives 49 lines in the guide and 1 in docs/device-parity/s9000.md at 09c8595e1. It gives 0 in both at fc091b5eb. A Python count outside fences and tables agrees. docs/README.md has 3 long lines (L22, L34, L35). Tim did not list them. They are unchanged.
- Change: 70c6725b1 splits 48 guide lines and 1 s9000.md line. The word sequence is the same before and after. 710edd321 rewraps local/securitycheck_protocolgateway_legacy.go:40-42 (116 characters become 71, 73 and 63).
Faults found at the tip (fc091b5eb), fixed in 7b017c0d7
- docs/device-parity/s9000.md:81 (row 9.2.8). a41858287 changed five cites that point into the S9000 plugin, from :731-737, :747, :875, :884, :886 to :730-736, :746, :874, :883, :885. At s9000 04120cb28 Source/NPORTdll/src/nport_dll.cpp the old numbers are right: :731 fopen, :747 return __SUCCESS, :875 dsc_UpdateConfig, :884 dsc_GetKernelInfo, :886 dsc_SaveAndRestart. The cite remap took these cites for nativedsci/api.go (~/moxa/.tim5fix-work/remap-dry.txt, entries 2 to 6). Fixed: 7b017c0d7 restores the five numbers (reviewer round C3 DONE; pushed as stage 3).
- Count: the remap list has 36 entries. a41858287 applies 35. Entry 36, a test comment, went into 045b9568c with line :316.
Commits that belong to no single Tim item
- a41858287: moves 35 cites in the guide and s9000.md to the lines the code commits left (see the fault above).
- acbb9f16f: four cites the cite gate flagged. Guide item 29 gets the plugin file name, item 31 gets exec.go:137-142, item 47 gets network_serial.go:363-367, s9000.md gets nport_dll.cpp:1464.
- 045b9568c: comment in local/serial_dsci_device_test.go:94 now cites serial_session.go:316, the LoginExpress call.
- f4a24159f: comment in local/protocolgateway_legacy_session.go:99-101 now cites the MF_RESTART gates at :820 and :848 (trap set) and :945 (password change) of mgate-linux MXview_MGate.cpp.
- 402bacd05: comment in local/virtualoid_test.go:92 now names MXview_SDSCI_Series.cpp for the :852-853 cite.
Choices in the tip that no source records as decided
- C4: the comments at local/serial_session.go:33 and :78 still cite :6946. Both comments are on develop; left unchanged (rule: develop text is not this MR's to change).
- E5: the new test pins the trie behaviour. trie.go is unchanged.
- B1: the count of five Windows trees includes mxview_mgate_g2.
- 41c7e535c: the SDK refuses a trap address over 15 bytes or a community over 31 bytes, where the engine cuts it. The only record is the commit message ("the SDK refuses instead (guide section 8, decision rules 1 and 3)"). Guide sections 5.3 and 5.4 state the bound. Section 2.6 and section 8 item 2 do not. No note names Zack for this choice. 2026-10-18: 075e516cc records it in guide section 8 item 2: "Decided by the rules (1 and 3), Zack 2026-10-18 delegation." The refusal stays (coordinator decision under the rules; Zack delegated, 2026-10-18).
- a89346cc9: keep develop's refusal for an NPort 6000 below firmware 1.13.9 (guide section 8 item 51). The commit message names it "coordinator, 2026-10-17, decided by the guide's rules". It names no one else. It says only a requirement that the swap serve a pre-1.13.9 NPort 6000 on Windows MXview One would reopen it.
- 9ea68a39c: the G2 password length check before the attach follows the plugin (see stage 6). No guide sentence and no note records it as a choice.
Commit index (sha: item)
341cd5ed1 D2. e9f272c2b D1. e6497b382 D3. 3aeeed6db D4a. 861730122 D4b. e43d3918f D4c. 7f8c5daa8 D4d. 5ee3a81b0 D4e. 4d4b11bbb B8. 28a83ae2a F1. 74edac0d1 F2. 97a503a29 F3. 2e1526153 F4. 9b3538db9 F5. 673b11e36 F6. 319f6771c F7. 710edd321 F8. 1a18eaa8c A5. 183468274 A5. f07b23d9f E1. 25ad1382e E2. ed096d706 E3. 17dc35899 E4. ff84a7fd9 E5. ecfb6e400 A1. f713f8a2a A2. 5d3f57797 A3. 7797c9a94 A4. 6d96e0021 A5. 171771a8d A6. 771a550e1 A7. 65b4e9c5e B1. aacc80958 B2. 38a37cf04 B3. a7f119563 B4. 8fbb172a6 B5. 373ab16c7 B6. 54973ac13 B7. f8852636d B8. bc9d34678 B9. ebc6a0cc7 C1. 246603e9a C2. 02d88ba30 C4. 803324e54 C5. 70c6725b1 F8. 55dd9ecd7 C1. d826952f0 C1. 578e423b5 B1. 0454c8bd1 B7. 9c34554c9 A3. 0a5412ab6 A6. 69ccfdcba A1 and B4. f4fcc3dc6 A5 and B2. acbb9f16f no single item. c9a67a977 B4. a41858287 no single item. 045b9568c no single item. f4a24159f no single item. 402bacd05 no single item. fc091b5eb D3. 7b017c0d7 no single item (restores the s9000.md plugin cites). 0ee8c26f7 no item (S9000 PASSWORD_CHANGED, see Follow-up). c8352a748 no item (S9000 trap list, see Follow-up; moves A4, D3, F4 lines). 09681965b no item (LoginEx bound and S9000 trap list docs). 4565c3996 no item (section 2.6 S9000 exception). 8181d2360 S1. 9ea68a39c no item (G2 password over 256 bytes; same function as B2). 41c7e535c no item (S8000 and S9000 trap bound; touches the lines of A4, D3, F4 and F5). a89346cc9 no item (section 8 item 51; moves the lines of C1, D4c and E4).
Follow-up on the open questions (coordinator decisions of 2026-10-16)
- LoginEx length bound: kept as develop has it (c8b76b09c, Zack YL Shih, 2026-08-28). nativedsci/api.go:232 refuses a user of 16 bytes or more and a password of 64 bytes or more; dsci_lib_linux 07ec98034 dsci.cpp:2054, :2058 (CHECK_STRLEN) refuses only a longer one. Guide item 39 now says so (09681965b).
- S8000 under another model name with an empty new password answers -1: kept (Zack's 2026-10-14 rule, empty new password refused before the device). Already in the guide and s8000.md (fc091b5eb).
- Develop comments (serial_session.go:33, :47-48, :78): left unchanged.
- S9000 trap list. Plugin side: MXview One's engine writes .2.12 (S8000) and .2.19, .2.20 (S9000 builds) the same way:
both receivers in one SET, then snmpActiveOrSave = 1 (mxview-one-polling-engine fe1ac6e33 shared_library.cpp:188-269).
The SDK answered -2 for an S9000 record. The S8000 case and the S9000 support are branch code (688b7eafb); develop
refused every dsci record ("whose plugin edits one entry in place") and had no S9000 on this line. No commit message or
note gives a reason to refuse the S9000 (3485e004c and plan 6daffb7 only describe the code). Fixed: c8352a748 sends an
S9000 record, by model name with no search, the same two SETs on its build's root. Test
TestSerialTrapListWritesBothS9000Receivers,
--- FAILwith the case removed. Docs: 09681965b, 4565c3996. - S9000 PASSWORD_CHANGED. Plugin side: get_pwdChanged calls dsc_GetSnmpAgent even when dsc_GetDefaultPassWordChange
failed (s9000 04120cb28 nport_dll.cpp:2817-2826). The SDK returned before the agent read (branch code, 688b7eafb, not on
develop). Fixed: 0ee8c26f7 makes both reads; the item result does not change, only the request the device gets.
TestS9000PasswordChangedIsTheDsciItem expects one agent read in every case,
--- FAILwith the early return. - Reviewer: round R2 NOT DONE (asked whether the S9000 change reverses a decision; section 2.6 still named only the S8000); R2b DONE after 4565c3996 and the commit-message evidence. Pipelines 2953990535 (MR), 2953990432 (push) success.
Self-found item S1 (hm-planslim confirmation check at fc091b5eb)
- Verdict: CONFIRMED. Guide section 8 (the "Not a deviation" paragraph before section 9, then L2663-2666) said the SDK searches the given ip as the legacy MGate exports do, with no exception for mgci.
- Evidence: on the mgci path, mgateMgciDevice builds the DS_INFO from the record's IP, MAC and model name and runs no search (local/protocolgateway_session.go:169-188 at 8181d2360; callers :203 and :262 attach at once). The function is on develop (origin/develop protocolgateway_session.go:160). The dsci path searches (TestLegacyMGateSearchesTheIPItIsGiven, local/protocolgateway_legacy_dsci_test.go:910).
- Change: 8181d2360 limits the sentence to the dsci path and states the mgci case (doc only; code kept, it is develop's). Gate PASS; reviewer round R3 DONE; pushed as stage 5.
Commits after 8181d2360 (stage 6, pushed 2026-10-17 18:32 +0800)
All line numbers in this section are at a89346cc9. I read the diffs and the messages. I did not run the tests.
9ea68a39c (2026-10-17 15:30): refuse a G2 password over 256 bytes before the attach
- What it changes: new sdsciNewPasswordFits and sdsciPasswordMax = 256 (local/snmptrap_sdsci.go:240-255). It runs first in updateAccountPasswordSdsci (:232-234, the NPort G2 line, called from network_serial.go:455) and in UpdateUserAccountsProtocolGateway (snmptrap_protocolgateway.go:110-112, the MGate G2 line). A new password over 256 bytes answers serialCommandCode(serialVerifyFail) with no search, attach or login. The in-session check in SetCurrentAccountPassword stays, because it guards the C buffer. New test TestG2AccountUpdateRefusesALongPasswordBeforeTheAttach (snmptrap_sdsci_test.go:345): 257 bytes get the internal-error code and the fake sees no search, attach, login or write; 256 bytes are written once. Both G2 lines.
- Source check: g2-linux 59d02371e6 Code/mx-device-interface-nport6000-G2/src/moxa_device_interface/MXview_SDSCI_Series.cpp:1016
is
if(strlen(new_pwd) > SVRPASSWD_LEN) return __FAIL;, before search_device_ex and sdsc_Attach in base_changepwd (:1008-1034). Windows mxviewone_g2 b873bd8071 MXview_SDSCI_Series/MXview_SDSCI_Series.cpp:1108 has the same line. SVRPASSWD_LEN is 256 (sdsci.h:100 in both). - Items: no Tim item. It touches the function of B2 (B2's lines did not move, see B2). Related to rounds 1-4: R1 C11 (item 5 "G2 password change skips the plugin's own policy check") and R4 M2 (empty password). The commit changes no doc. The guide has no sentence on the 256-byte limit, and item 5 (L1751-1756) says "The SDK sends the password and lets the device apply its policy".
41c7e535c (2026-10-17 15:39): refuse S8000 and S9000 trap values the engine would cut
- What it changes: s8000SetTrapServers (snmptrap_s8000.go:61-71) checks every receiver before the first SET. An address over 15 bytes (s8000TrapAddressMax) or a community over 31 (s8000TrapCommunityMax) sends no SET and returns errS8000TrapValueTooLong. s8000TrapCode (:33-38) maps that error to CodeInvalidInputError, else serialCommandCode. It is used at the four setSNMPTrap sites (network_serial.go:517, :521, :534, :538) and the two setSNMPTrapList sites (snmptrap_sdsci.go:88, :92). A record whose name is not an S8000 or S9000 row is still searched first. The guide's S8000 trap row (section 5.4, L1404) and the S9000 summary (section 5.3, L1314-1319) state the bound. New test TestS8000AndS9000TrapRefuseValuesTheEngineWouldCut (s8000_trap_test.go:365): 16-byte address and 32-byte community refused with no SET and no dsci access; 15 and 31 bytes send both SETs whole; both keys; an S8000 and an S9000 record.
- Source check: MXview One polling engine (~/moxa/mxview-one-polling-engine) df551b354 source/polling-engine/src/plugin/ device_action_handler.cpp:262-274 copies each trap value with memcpy and min(length, sizeof - 1) into MOXA_DEVICE_TRAP_SERVER_CONFIG_T. moxa_device_config.h:33-34 has IP_LEN 16 and COMMUNITY_LEN 32 (the fields are at :121-124). shared_library.cpp:188-269 builds the SET from those fields (trapServer_ip1/2, trapServer_community1/2) for the .2.12 root. The cite in the message names no revision. At the follow-up pin fe1ac6e33b the same copy is at :484-494, not :262-274. df551b354 is an ancestor of fe1ac6e33b. The message cites guide "rules 1 and 3" at :1656 and :1662. After a89346cc9 added lines above them they are L1658 and L1664.
- Items: no Tim item. It touches the subject or lines of A4, D3, F4 and F5 (see their "At a89346cc9" lines) and the follow-up "S9000 trap list" (below). It adds to c8352a748 (stage 4: an S9000 record gets both receivers): a too-long value is now refused for the S8000 and the S9000 alike. Not covered: guide section 2.6 and section 8 item 2 do not state the bound.
a89346cc9 (2026-10-17 18:07 author, 18:10 commit): section 8 item 51, NPort 6000 below firmware 1.13.9
- What it changes: guide section 8 gets item 51 (L2669-2684); the intro to section 8 names item 51 (L1651-1653) and the rules paragraph says items 44 to 51 (L1655). Two comments say the HTTP branch is commented out on the Linux plugin only: local/config_serial.go:196-200 and system/serial/config.go:56-61. No code line changes. Behaviour: below the firmware gate (rawConfigFirmware 0x01130900, system/serial/config.go:19) a 6000 goes to the legacy path, and ConfigTargetFor refuses it with "No this model" (system/serial/configfile.go:76, the same text on develop 317d689fd).
- Source check: np6000-win 0f0473ebd1 source/NPort_6000_Series/NPort_IA5X50A_M12_DLL.cpp: the gate
firm_version >= 0x01130900is at :776 (export) and :978 (import); below it the export downloads Config.txt (:802-811) and the import uploads to ConfImp.htm (:992-1001). np6000-linux 8483a61144 Code/mx-device-interface-nport6000/src/moxa_device_interface/MXview_Nport.cpp: the same two branches are commented out and the code sets __FAIL (:664-673, :842-851). All as the message says. - Decision: the message says "Decision (coordinator, 2026-10-17, decided by the guide's rules): keep develop's refusal" (rule 1 does not choose, rule 4 keeps develop). No other record.
- Items: no Tim item. It moves the lines of C1, D4c and E4 (their "At a89346cc9" lines) and makes four guide cites stale (next section). R3 C5 (system/serial/config.go:46-52, "the 6000 among them (No this model)") is the same subject; its quoted text is unchanged. Remaining wording: system/serial/config.go:51-52 still says "where the 6000 plugin never reaches that path" without the Linux-only qualifier that the new comment at :57-60 adds.
Faults found at a89346cc9 (fixed in d782998f6)
- Four cites moved by two or one comment lines that a89346cc9 added above them, and the guide and s9000.md were not updated:
guide L1848
config_serial.go:201-208(now :203-210); guide L1876config_serial.go:225-226(now :227-228); guide L2605system/serial/config.go:101-109(now :102-110); docs/device-parity/s9000.md:88config_serial.go:209-215(now :211-217). Found by mapping everyfile.go:Ncite in the guide and in s8000.md and s9000.md through the 8181d2360..a89346cc9 diff. Only these four moved. The other cites into the 13 files are right at a89346cc9. - No other fault found in the three commits.
- Fixed in d782998f6 (pushed 2026-10-18, docs and comments only): the four cites above; guide section 2.6, section 8 item 2 and the S8000 and S9000 parity trap rows now state the 15/31-byte refusal; section 8 item 5 now states the 256-byte G2 new password refusal; the device_action_handler.cpp cites now name the lines at the pinned engine fe1ac6e33 (:484-494, and :439, :529, :544 in serial_session.go).
Line shifts (fc091b5eb to a89346cc9)
Each entry: from this old line, add this many to get the new line (cumulative). A line inside a changed hunk has no new number. Files not listed did not move.
- docs/mxview-one-integration.md: >=1316 +1; >=1651 +3; >=2323 +7; >=2662 +23; >=2667 +26.
- docs/device-parity/s9000.md: none (rows 81 and 85 changed in place).
- local/config_serial.go: >=199 +2.
- local/system/serial/config.go: >=58 +1.
- local/network_serial.go: none (six one-line edits at 517, 520-521, 534, 537-538, 604, 612).
- local/snmptrap_sdsci.go: >=66 +4; >=85 +8; >=224 +11; >=229 +28.
- local/snmptrap_s8000.go: >=4 +1; >=9 +2; >=15 +25; >=35 +26; >=36 +36.
- local/snmptrap_protocolgateway.go: >=110 +3.
- local/snmptrap_sdsci_test.go: >=342 +44.
- local/s8000_trap_test.go: lines 86-93 +1; 94-114 +0 (one line removed at 93); >=115 +30; >=328 +115.
- local/securitycheck_s9000.go: >=229 +1; >=236 -2. local/securitycheck_s9000_test.go: >=144 +1; >=162 +4.
- local/discovery_serial_test.go: >=79 +1; >=1264 +4.