Add UTC-Time forensic wire provenance - #57
Closed
masarray wants to merge 11 commits into
Closed
Conversation
masarray
changed the base branch from
agent/utc-time-p0-display-consistency
to
main
August 13, 2026 11:40
masarray
changed the base branch from
main
to
agent/utc-time-p0-display-consistency
August 13, 2026 11:43
This was referenced Aug 13, 2026
masarray
added a commit
that referenced
this pull request
Aug 14, 2026
Owner
Author
|
Superseded by current-main consolidation PR #73, merged as |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
MmsDataValue.RawValue;Iec61850UtcTimeEvidenceexposing raw hex, seconds-since-epoch, the original 24-bit fractional-second field, TimeQuality flags, accuracy code, explicit UTC display, and local display with timezone offset;MmsReportTimestampEvidenceto keep IED data timestamps, reportTimeOfEntry, and clientReceivedAtas separate timing concepts;TimeOfEntryto raw wire evidence only when the original decoded InformationReport contains an exact display match; otherwise keep raw evidence unavailable rather than infer it;TimeOfEntryprovenance;Why
P0 preserves and displays sub-millisecond timestamp precision, but a forensic/dispute workflow also needs to prove what was actually present on the wire. Before this patch the decoded
Iec61850UtcTimesurvived, but the original 8-byte payload did not. Once converted to .NET ticks, the exact 24-bit fractional field could no longer be proven or reproduced uniquely.This P1 makes the distinction explicit between:
.tor an embedded timestamp in a reported data object);TimeOfEntry;ReceivedAt.These timestamps are evidence from different semantic sources and must not be conflated during SOE/FAT/vendor dispute analysis.
Compatibility
MmsDataValue.UtcTime(Iec61850UtcTime)remains unchanged for synthetic/programmatic values;Validation
Final P1 head
4405795c99d82bf8371ca23bcd6a5644af641a6dpassed.NET CIrun #270 through temporary validation PR #58, because the repository workflow only runs pull-request CI for branches targetingmain. Run #270 passed:TimeOfEntryprovenance regression;Temporary validation PR #58 was closed after CI success. Review PR #57 remains stacked on P0 branch #56 for a clean P1-only diff.
Remaining boundary
MmsReportTimestampEvidence.FromFrame(frame)can always distinguish displayedTimeOfEntryfrom IED/client timestamps. ExactTimeOfEntryraw-wire provenance requires the original decodedMmsInformationReportto be supplied as the optional second argument and an exact display match to be found. If that evidence cannot be established, the raw field remains unavailable rather than guessed.