Skip to content

feat(iec10x): M1 typed command/RTU response forensics and quality SSOT (#39) - #40

Merged
masarray merged 23 commits into
masterfrom
feat/unified-ssot-command-forensics-m1-20261028
Oct 28, 2026
Merged

masarray merged 23 commits into
masterfrom
feat/unified-ssot-command-forensics-m1-20261028

Conversation

@masarray

Copy link
Copy Markdown
Owner

Implements M1 of #39 on isolated branch based on 2026-10-28 master 0bf7b41c.

Included

  • Typed IEC-10x COT raw/negative(TEST)/OA semantics and phase descriptions for command requests, ACTCON, negative answers, ACTTERM and protocol errors (COT 44–47).
  • Typed SIQ/DIQ/QDS/BCR quality, with OV only for QDS and CY for counters, ready for eventual single-column premium Quality badges.
  • C_SC/C_DC/C_RC and C_SE qualifier interpretation (SELECT/EXECUTE, state, QU/QOS); GI QOI, C_CI QCC, read, clock and test baseline. Preserves ASDU-relative qualifier offsets.
  • Projects typed command/response and quality information from IEC-101 Master, IEC-104 Master and IEC-101 Passive to Frame Inspector. Fixes Passive compact-HEX splitting and typed IEC-101 FC9 NO DATA counting.
  • Seven synthetic forensic regression tests, avoiding private field capture.

Protocol safety

Link ACK != command execution; ACTCON != physical operation proof. No change to polling/FCB, no passive TX. No individual flag columns.

Scope boundaries

Command transaction lifecycle correlator, per-byte highlight parity for all link-address widths, full event provenance, report/replay SSOT parity and actual WPF badge templates remain planned (not claimed here); see docs/UNIFIED_PROTOCOL_COMMAND_FORENSICS_M1.md.

Validation

CI is required; local environment does not have the .NET SDK, so tests were not run locally. Do not merge until all Windows checks pass.

Comment on lines +273 to +274
if (row.Source.CommandDetails is { } cmd104)
yield return new ProtocolMapLine("command", "Command / RTU response", cmd104.Detail, CommandEvidence(row, bytes, 6));
Comment on lines +462 to +468
foreach (var token in tokens)
{
if (token == "-") continue;
if (token.Length > 2 && (token.Length & 1) == 0 && token.All(Uri.IsHexDigit))
for (var i = 0; i < token.Length; i += 2) bytes.Add(token.Substring(i, 2));
else bytes.Add(token);
}
@masarray
masarray marked this pull request as ready for review October 28, 2026 13:30
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 28, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-28T13:32:19.824972Z 7912e60 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@masarray
masarray merged commit 6688363 into master Oct 28, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants