Repository navigation
Description
Ringkasan praktis untuk pemilik aplikasi — diperbarui 20 November 2026.
Tanda [x] berarti tahap tersebut sudah ada buktinya; [ ] hanya bagian yang belum terverifikasi. Ini bukan daftar pekerjaan yang harus Anda lakukan sendiri.
Yang sudah selesai dan yang belum — bahasa sederhana
Status sederhana: beberapa masalah decoder sudah diperbaiki; tidak semua jenis data IEC 101/103/104 sudah terverifikasi.
- Contoh perbaikan yang sudah masuk: pemeriksaan SQ=1 dan penolakan objek palsu dari Type ID yang belum didukung (PR fix(decoder): refuse guessed IOA/object interpretation for unsupported IEC-10x types #235), dengan tes otomatis.
- Yang tersisa ialah tabel jenis frame yang didukung, contoh frame salah/terpotong, konsistensi Trace–file–laporan, serta perbandingan perangkat saat tersedia.
- Siapa mengerjakan: developer membuat data uji sintetis dan laporan dukungan. Anda tidak perlu memahami seluruh daftar kode IEC untuk menutup subpekerjaan software.
- Yang perlu Anda lakukan sekarang: tidak ada; sampaikan satu contoh frame yang tampil salah jika menemukannya.
Catatan teknis dan sejarah implementasi (dipertahankan)
Release-gate decoder audit — 2026-11-08
Baseline verified: master HEAD 101bfe23b690e533fa0a46d03838e8fb0a11ab3a (merged #119). This issue records code-review findings and proposed failing fixtures; it does not claim tests have reproduced the faults or that any fix has been implemented.
Required invariant
For IEC-101 FT1.2, IEC-103 FT1.2, IEC-104 APCI, and capture/replay/report: preserve the exact original wire bytes, configured field widths and source; only display a field/value/address/time as verified if encoded, fully present and trustworthy. Distinguish: decoded, partial/warning, unsupported-but-raw, invalid. No unsupported vendor/private Type ID may silently become a valid process value. Preserve one Engineer Mode, 32% original HEX/68% typed interpreter, default-collapsed Full Properties, 3-object inline preview and PR #119 fast selection.
P0 — establish failing fixtures and repair the authority, not string patches
- SQ=1 information-object address overrun.
src/ARIEC60870.Core/Protocol/Iec10x/Iec10xAsduDecoder.csDecodeObjectscomputessequenceBaseIoa + iwithout a check against(1 << (8 * _ioaSize)) - 1. For width=3, VSQ SQ=1/count=2/base=0xFFFFFF, logical second IOA becomes 0x1000000; currentIec10xSignalTraceFormatteroctet display wraps to IOA1/2/3=0. Fix by emitting an explicit ASDU/object decode issue and preventing trusted point/IOA promotion, while retaining original bytes and byte offsets. Include width=1/2/3 boundaries, SQ0, valid SQ1, first/max and malformed input. - Malformed-short ASDU header renders invented 0-valued fields. On
Iec10xAsduHeader.TryParsefailure,Iec10xAsduDecoder.Decodereturns an ASDU withTypeName="Malformed ASDU"and an issue but unset numericTypeId/COT/CommonAddress.src/ARIEC60870.Desktop/ViewModels/EvidenceRow.csBuildTimelineEngineeringIdentity/Causestill formatsTI 0 · CA 0 · COT 0. Require a decoder-owned header-validity/result state and usenot decoded/not presentinstead of zeros; partial object payload may still show a genuinely parsed header with visible warning. - GI COT10 false completion in two session paths.
src/ARIEC60870.Master/Iec104ClientSession.csDrainBurstAsyncstops at any accepted I-formatCOT==10, andReceiveOneAsyncincrementsGiEndResponsesfor any such COT;src/ARIEC60870.Master/Iec101/Redundancy/Iec101DualLinkRedundancySession.csClass1 drain does the same. Ordinary command ACTTERM can share COT10; contrast already stricterIec101MasterSession(TI100 && COT10). Require source/session/CA/OA/QOI context where available and at leastTI100 && COT10before counting as GI end/ending GI burst; test interleaved command ACTTERM, spurious COT10, rejected/test frames, wrong CA and valid TI100 COT10. - Standard normalized measurement TI21 missing from the common decoder.
M_ME_ND_1carries a 2-byte NVA without QDS (see Beckhoff reference below).ProtocolFlagPresentationalready describes TI21 as quality N/A, butInformationElementLengthandDecodeValueTextomit it, hence a normal standard measurement becomes unsupported raw. Add a typed TI21 decoder, SQ0/SQ1, numerical and overrun regression, and explicit qualityN/A (not encoded)without fabricating QDS/IV. - IEC-103 known-type short payload completeness.
src/ARIEC60870.Core/Parsing/AsduDecoder.csType 1 has an explicit minimum length, but Type 2, 6, 7/8 and 9 can exit withDecodeStatus.Okwhen required data bytes are missing. Establish per-type structure/length evidence against approved IEC-103 interoperability profiles; reject incomplete structured meaning, keep raw and avoid invented DPI/time/measurand. Do not infer vendor-specific fields.
P1 — improve standard coverage, precision and robustness
- Add precise source-backed decoding for TI70 M_EI_NA_1 (COI, LPC; initialization diagnostic), TI106 C_CD_NA_1 (delay acquisition) and other explicitly supported IEC-101/104 standard elements; add a versioned supported-Type matrix, with reserved/vendor Type IDs safely
raw-onlyand useful human-readable warnings. - Round-trip-safe IEEE754 float display: common decoder currently calls
ToString("0.###")for TI13/14/36. Distinguish user-friendly rounded label from exact underlying float and original 4 bytes in inspector, archive and exported evidence; test close numerical values, NaN/Infinity as valid on-wire IEEE encodings with appropriate diagnostics. - Keep
Iec104ApduDecode.IsValidclearly APCI-structural only (not ASDU completeness); separately make ASDU decoded/partial/unsupported/invalid visibly explicit and ensure counters, trace, Values, Events, GI and report cannot interpret warnings as authoritative values. - Stress the still-open intermittent FT1.2 resynchronization smoke test (issue P1 test reliability: intermittent FT1.2 reader noise-resynchronization smoke under Windows CI load #70): deterministic noise+fragmentation+checksum+partial and 1200-bps profile, without loosening production timeouts based on shared-runner variability.
- Build a matrix of real-WPF original HEX↔inline decoded fields↔Full Properties↔interactive HEX inspector↔.ariec replay↔copy/export/report parity. Include all 101 link widths 0/1/2, COT/CA widths 1/2, IOA widths 1/2/3, known and unknown Type IDs; 103 known and private, 104 valid/invalid I/S/U, quality (OV/IV/BL/SB/NT), CP24/CP56 invalid and substituted, SQ0/SQ1, 40-object bursts and malformed data. Single authoritative decoder only.
- Measure actual mixed traffic (GI bursts, 40+ objects, floating values, invalid/noise, 50k retained journal facts, 1200-bps serial streams, IEC104 reconnect/epoch) including CPU, GC, memory plateau, UI p95/p99, 0 unintended WPF Reset and event ledger counts. PR P0: defer offscreen Frame Trace inspector projections and verify reopen fidelity #119's 41.27ms selection P95 is proven for its 10k fixed-frame synthetic fixture, not this matrix.
- Separate verified desktop RC/portable release from hardware FAT: 2/4 isolated COM RX, high-byte SOE burst, device-side FIFO/1200-bps field soak, real IEC-103 relay and multi-vendor IEC-104 interoperability/reconnect; neither green CI nor virtual VSPE alone certifies field interoperability. Match mapping and privacy safeguards in
docs/PUBLIC_RELEASE_AUDIT.md.
Already validated / must retain
- PRs P0: engineer-inline IEC decode, right-collapsible Full Properties and physical HEX byte-tree window #116–P0: defer offscreen Frame Trace inspector projections and verify reopen fidelity #119 merged; original HEX and typed interpreter adjacent; no hover tooltip; Collapsible right Full Properties; interactive physical-byte inspector; correct SQ1 source offset semantics; limited 3 visible process objects with complete selected properties.
- PR P0: defer offscreen Frame Trace inspector projections and verify reopen fidelity #119 Windows/xUnit/WPF acceptance passed, P95 41.27 ms, 0 rolling collection reset in its defined fixture; CodeQL/dependency/hygiene passed.
- Current
masterCodeQL, hygiene and Scorecard successful as of audit;masterCI still running at audit check. Do not claim physical COM FAT or new protocol regression results.
Release decision
No universal 'decodes everything IEC60870' claim. Release can accurately promise loss-preserving wire evidence and typed decoding only for a published Type/profile support matrix. Block broad "fully validated" marketing or the next release candidate until P0 protocol-truth regressions are fixed and verified on exact candidate HEAD. P1 coverage/FAT may be scoped explicitly if not being advertised, but any promised protocol/profile must pass its gate.
References: IEC104 standard Type table, TI21 without QDS, TI70 COI, IEC10x architecture. Related existing tracked work: #39, #60, #70, #98.
Activity
masarray commentedon Nov 8, 2026
P0 implementation checkpoint — 2026-11-09
Merged: PR #121, verified
masterHEADe6b7347fa4645fe952e9b17670bc30e8cbf3269d. PR exact-head SHA2edc333b26bb6a3bcbb0446dd166de70d1921997passed Windows CI 42521112643: Release build, 19/19 protocol smoke, 786/786 xUnit (Core 79, Master 199, Monitor 129, Reporting 5, Desktop 359, Repository 15), real rendered WPF acceptance and package. CodeQL 42521112669, dependency and hygiene passed on identical PR SHA. Source/branch compare: 17 files, 8 commits. Post-merge master CI was still running at update; don't claim it has passed yet.Implemented
IsHeaderValidand truthful raw-only invalid header projections (no invented TI0/CA0/COT0).DecodeStatus.Error; preserve unknown/vendor raw.Measured GUI evidence
Real Windows WPF synthetic 10,000 original fixed FT1.2 frames, 150 selections: P95 28.21 ms (target <100 ms); 0 rolling resets, retained selection, latest frame observed. WPF screenshot acceptance passed. CI workstation was constrained to 1044×788 DIP for named larger sizes; no actual 1366/1540 screenshot or hardware DPI certificate.
Still OPEN in #120
masarray commentedon Nov 8, 2026
R7 progress checkpoint — 2026-11-09
Master verified at
56de85622879d55ef26541d83adb32b89fc78561.753f6b7a276c2c44c1c263658b3c76b3f75fe909: GI Casebook rejects otherwise-decodable TI100 with nonzero IOA, shape mismatch and invalid/negative ACTTERM; interrogated-data COT20..36 only counts process types in canonical policy, not command/service ASDUs. IEC10x type presentation now includes TI21/33/70/106 and uses Core canonical names for other supported IDs. Negative regression included. Exact PR-head CI and push CI passed.56de85622879d55ef26541d83adb32b89fc78561: test-only deterministic active-reader noise resync, robust Core fragment/bad-checksum/A2/E5 matrix for link widths 0/1/2. Exact-head CI 42524685196 passed 19/19 protocol smoke, 801/801 xUnit, Release/WPF acceptance/package; CodeQL, dependency, hygiene green.Not equivalent to release certification: additional multi-vendor IEC103/104 interop, independent decoder type coverage truth matrix, .ariec archive/replay/report byte parity, 50k mixed workload and physical 1200 bps/2-4 COM, high-burst SOE/FIFO and end-to-end soak remain outstanding. Keep #120 open. No active 101 balanced-mode or universal vendor decoder claim. Latest master postmerge CI was running at this checkpoint.
masarray commentedon Nov 8, 2026
R7 TRACE-02 / CAPTURE-02 progression — 2026-11-09
Current master confirmed:
384b6330680ec0b78545929d003eca6cb441d3c0. No active coding from stale baseline; both code milestones merged in order.Merged software-hardening milestones
e3fb12344c4ae57612600748c0b828bf8a032f70.CaptureArchiveReader.ReadCoreandCaptureArchiveIndex.Searchno longer reorder originalframes.jsonlbySequence. For multi-source interleaving/restarts, preview, source search, and indexed pages retain exact append order and originalPhysicalStreamId/RawStreamOffset; remove needless per-page sorting. Signed 5-row A/B test with duplicate/reset sequences. Exact PR SHAdd1f7c9c49227f4ab93fd4a3cd7958426378714d: Windows Release/build/xUnit/WPF acceptance, CodeQL, dependency/hygiene green. Push master CI after merge also succeeded.384b6330680ec0b78545929d003eca6cb441d3c0. Common archived decoder now requires IEC104 COT=2, CA=2, IOA=3 (not flexible IEC101 widths).EvidenceRow(CaptureFrameSnapshot)projects IEC101/104 Type/COT/CA/IOA, QDS/value/device timestamp from issue-free original bytes only; corrupt/missing profile remains raw-only/unverified with original caption and hex retained. Archived 101/104 and 103 reject nonhex junk instead of silently deleting it before re-decode. IEC103 FUN/INF remains a separate interpretation. Added negative tests for profile widths, contradictoryTI1/COT3/CA999/IOA999/Goodmetadata versus genuineTI46/COT7/CA1/IOA123, fake time/value and arbitrary nonhex prefixes. Exact PR SHA7271825a100012d05563211f0359b3461d9a4d35passed Windows CI #42529486608, protocol smoke 19/19 and xUnit 809/809, real-WPF acceptance, ZIP packaging, CodeQL #42529486648, dependency and hygiene.Boundaries / next priority (issue remains OPEN)
Important: master push CI for
384b633...was still in progress when this comment was written. Exact-head PR gate was all green. Release #120 is not closed; no physical validation has been claimed.masarray commentedon Nov 9, 2026
P0 field-test update — 2026-11-09
Merged PR #126 into exact master commit
efa69c4e371b799eb792b3e6d4794dcf038a3c72.Field observation: Link A COM1 expects 105 and accepted 105; standby Link B COM2 expected 1 but received 105, so
IEC101-RX-LINK-ADDRESS-MISMATCHrejection was correct. The accepted-frame validator and channel isolation were not weakened or replaced.Corrections: standby B defaults to Link A only until explicitly configured; legacy deliberately different saved address remains unchanged. Nonblocking English advice with Review Settings / Continue Anyway. Concise typed link-mismatch diagnostics preserve complete RX evidence on selection. Frame Trace shows type/device time beside decoded signal once, retains exact HEX; double-click opens existing right Full Properties, separate HEX byte inspector remains available in context menu.
PR head
d2888fcad75f34e836a9028841199977c3580592: Windows Release build, xUnit suites, real-WPF acceptance, CodeQL, dependency review and hygiene all succeeded. WPF acceptance measures synthetic 10k-frame selection, not real 1200-bps COM FAT.Merged-master CI/installer acceptance: https://github.com/masarray/ARIEC60870/actions/runs/42589473188 (must be checked independently). Release issue remains open for hardware FAT, interoperability and report/export completeness. Do not claim those validated from simulator or CI.
masarray commentedon Nov 9, 2026
P0 release test artifact handoff — 2026-11-09
PR #126 (IEC101 redundancy/Frame Trace) merged as
efa69c4e371b799eb792b3e6d4794dcf038a3c72. All PR checks and exact-master build-test/WPF passed. Prior combined installer-upgrade step cancelled without publishing any Setup.CI artifact isolation fix PR #127 merged as
f9d02ae853ac22450ad0a17a47172e01826b4688. Latest master Windows CI run 42594546704: build-test passed, current Inno compiler succeeded, andARIEC60870-InnoSetup-win-x64artifact #13663146798 uploaded before the independent upgrade FAT stage.ZIP contents:
ARIEC60870-v3.6.8-setup-win-x64.exe(52,507,533 bytes) andSHA256SUMS.txt. Verified locally:6ae17956ee4b41b8d818a71ca16a66c2fcdc61a47ab1755d8f41352d12bbc4e9SHA256 matches installer. This is a test installer, not a signed/production-certified release. As of the artifact check, upgrade from v3.6.7 and simulated active-Master close FAT were still running in the second step; do not mark them successful without its acceptance evidence. Physical 1200bps COM, real RTU/redundancy, and IEC103/104 vendor FAT remain unproven here.masarray commentedon Nov 9, 2026
2026-11-09 P0 follow-up — adaptive Frame Trace expansion
Merged PR #128 into master at
dca693350420b9b1fe60b395eb947ed14051e902.Root causes confirmed in previous master: static inline wire/meaning 32:68 row inside a Trace column that shrinks when Full Properties opens;
CharacterEllipsisand smallMaxHeighton three-object digest, title, identity, alerts; COTNoWrap; properties table VALUENoWrap.Fix: actual measured ListBox width drives a single WPF DataTemplate (paired lanes ≥780 DIP, stacked HEX then meaning below when narrow). Responds to dock expansion/collapse, window resize and column splitter; Tag changes only on width category transitions, not per frame. Increased bounded inline text heights; COT, IOA/time, alarm, property values and drill-down child values wrap with no ellipsis. Source evidence, raw HEX, 3-object bounded preview and full properties remain authoritative.
Checks on exact PR head
de59b0051f83f6481578730f8c2a574a4256f239: Release build, formatting, xUnit suites, real-WPF 1400-frame acceptance, viewport + dock-open geometry and per-word rendered bounds at 1540/1366/1024 requested DIPs, CodeQL, hygiene and dependency review all green. CI #42600580692 includes real rendered screenshots inARIEC60870-OBS-C-ui-evidenceartifact #13666142347. Note CI's desktop viewport may be OS-clamped, and acceptance uses actual measured sizes, not labels. Physical 1200 bps field FAT is not proven by synthetic UI tests.Do not close release gate #120 based solely on this UX correction; separate hardware/protocol FAT and installer-upgrade acceptance remain independently tracked.
masarray commentedon Nov 10, 2026
2026-11-10 Frame Interpreter scan-first enhancement — merged PR #129
Merged to
master:1eef53afd89b64eb56bbda7b8f167c5aa9335aaa.PR #129 exact head
a3469612532f6b6763eda4250da7bf4daca8ff32.Source-backed UI now displays per-IOA value/type/TI; RTU CP56 time with Valid, Genuine, Summer Time, day/time-IV/calendrical/reserved-bit warnings; readable explicit active quality flags such as
Overflow (OV): TRUEandInvalid (IV): TRUE, plus ACD/DFC/link/ASDU warnings. Non-CP56 timestamps never fabricate GEN/validity and missing QDS flags are not shown as false. Three-object preview and three-flagged-IOA preview stay bounded with exact remainder counts; all objects/bytes in Full Properties.Regression: typed canonical CP56 including incomplete text field, substituted/invalid/DOW/reserved, QDS OV/IV, unknown descriptor, mislabeled on-wire address, and burst 9 objects. Windows Release build, xUnit, CodeQL, dependency review, hygiene and real WPF acceptance all passed on exact PR head: https://github.com/masarray/ARIEC60870/actions/runs/42739122714. WPF screenshot
engineer-device-time-valid-genuine.pngis produced by the existing 19-object SICAM Type31 CP56 batch in real WPF; screenshotengineer-inline-invalid-quality.pngverifies invalid quality flag in the inline interpreter. Screenshot artifact: https://github.com/masarray/ARIEC60870/actions/runs/42739122714/artifacts/13728337914.This is a Frame Interpreter presentation milestone, NOT evidence of real 1200bps field FAT or installer-upgrade acceptance. Keep release gate open.
masarray commentedon Nov 10, 2026
2026-11-10 P0 IOA readability correction — merged PR #130
663b08cbd27ef99a936821883bdd669dc64a3b17from PR P0 Frame Trace: restore structured IOA3–IOA2–IOA1 beside unstructured numeric IOA #130, restoring unstructured decimal IOA with structured high-to-low byte decomposition in the inline Frame Interpreter (e.g.IOA 16712704 (IOA3:255 - IOA2:4 - IOA1:0)). This explicitly puts least-significant IOA1 at the right in human numeric order, while leaving IEC-101/104 wire order IOA1→IOA2→IOA3 untouched.StructuredIoapresenter helper serves both compact and expanded text; 1-/2-/3-byte IOA widths and SQ=1 implied addresses handled without inventing physical transmitted octets. Mismatched encoded address suppresses plausible component/value text.0xFF0400(=16712704), 2-byte 0x1234, SQ=1 and malformed-wire mismatches.8eb4dd8b9f2276dbc8701e3cee6c53db6ab47ea9: exact-head Windows Release build, protocol smoke, xUnit, real WPF acceptance, CodeQL, dependency review and hygiene all passed. The first CI attempt had two unrelated intermittent Passive Monitor test failures; rerun of the single failed build-test job passed. CI run.masarray commentedon Nov 16, 2026
2026-11-16 source-status reconciliation (do not close issue as a whole): the original 2026-11-08 issue is a historical baseline. Current master
a8bd9f2f4c2f1cf5aea36a149330e77ada2c9d5dalready contains guarded SQ=1 implied-IOA maximum checks inIec10xAsduDecoder.DecodeObjects, explicit invalid-header state, and strictIec10xGiTermination.IsObserved(header, TI100/COT10, non-TEST/NEG, object/QOI/issue checks). The published v3.6.12 source includes PR #210 name projection while retaining raw wire evidence. Please separate already-repaired decoder items from remaining protocol conformance/field FAT acceptance rather than treating every unchecked 2026-11-08 line as a live regression. Fresh original-frame fixtures/IEC-101/103/104 parity tests and real SICAM physical GI/SOE evidence still govern closure; no claim of field validation. In parallel, PR #214 hardens CA-learning and command target authority independently of decoder repair and must pass its own CI.masarray commentedon Nov 17, 2026
2026-11-17 source reconciliation (read-only audit, not a P0 closure claim)
Audited
master@5a81d3ac5d5dd131464665420a0740678d6789d1before the pending release-controller PR. The original issue body (2026-11-08) is an older defect checklist, not an accurate inventory of still-missing source code:Iec10xAsduDecoder.DecodeObjects.EvidenceRowusesIsHeaderValidandNot decodedfor malformed short ASDU headers rather than inventing TI=0/CA=0/COT=0.Rformatting, with warnings for non-finite values.Keep this issue OPEN: this reconciliation verifies code presence, not the whole requested independently-reviewed standards matrix, 101/103/104 malformed/SQ/boundary fixtures, cross-view Trace/HEX/.ariec/export/report parity, 50k-event WPF p95/p99 measurement, or physical SICAM/relay FAT. Follow-up work should target these actual acceptance gaps without reimplementing already merged fixes.
Release v3.6.13 is still pending; do not equate passing xUnit with physical interoperability.
masarray commentedon Nov 17, 2026
2026-11-17 — targeted P0 decoder truth milestone merged (not full issue closure)
Merged PR #235 as
91d025c75196ad2ebb25f8ca640a8a39afa78f35after immutable public v3.6.13 was tagged. This source change is not part of public v3.6.13 binaries.Root defect repaired: unsupported/unimplemented IEC-101/104 Type IDs such as TI17 have no known information element size in our current decoder. Formerly, decoding consumed the entire residual payload as object 1 and fabricated SQ-implied IOAs/objects. The canonical Core decoder now preserves the verified header, original ASDU bytes and explicit unsupported diagnostic, but emits zero untrustworthy information objects or quality/value/IOA. Vendor-private TI128..255 remain opaque, without fabricated corruption.
Exact-head gates: Windows CI SUCCESS: Release build, 0 warnings, 19/19 protocol smokes, Master tests 357/357 (+11 cases), six-suite 1187/1187. CodeQL #44001350672, hygiene and dependency review SUCCESS.
Deterministic regression matrix covers TI17 SQ0/SQ1 × IOA widths 1/2/3; Type 200 private opaque; valid/overflow SQ1 boundaries; standard TI21 normalized without invented QDS.
docs/VALIDATION_MATRIX.mdlimits this to synthetic source proof.Still OPEN: other source→WPF Trace/HEX→.ariec→PDF/report parity, IEC103/private strictness, all Type ID support matrix, heavy traffic perf/p95 and physical 1200-bps SICAM/multi-vendor FAT. Do not close #120 or claim universal IEC decode correctness from this milestone.
masarray commentedon Nov 21, 2026
Archive closure — 21 November 2026
Not planned / archived; decoder acceptance matrix remains PARTIAL. v3.6.20 shipping software and tests include incremental FT1.2/ASDU/Trace correctness fixes (e.g. PR #235) and release source CI #44897646916 passed. This does not establish the complete IEC101/103/104 Type/COT/quality and malformed-frame matrix, WPF byte-span/Trace/report parity, unsupported vendor types, or multi-vendor independent physical replay/comparison requested in this issue. Preserve all outstanding checkboxes as historical engineering requirements; do not downgrade invalid source evidence to valid values. This is an operator-requested issue-board closure, not release-gate certification. Reopen with failing fixtures and a concrete bounded subset before making decoder changes.