Initial project state: .NET reference, design, Rust port (M0+M1), evidence
rust / build / test / clippy / fmt (push) Has been cancelled
rust / build / test / clippy / fmt (push) Has been cancelled
Layout:
- src/ .NET 10 x64 reference: MxNativeCodec, MxNativeClient,
MxAsbClient, probes, tests, harnesses. Executable spec.
- design/ Architectural plan for the Rust port (M0–M6), error
model, protocol invariants, risks (R1–R16), adversarial
review log (review.md).
- rust/ Rust workspace. M0 skeleton + M1 codec parity.
mxaccess-codec: 215 unit tests + 2 cross-implementation
parity tests (byte-identical against .NET reference).
Other crates are M0 stubs awaiting M2+.
- captures/ Frida + netsh + pcap evidence per CLAUDE.md
("captures are evidence, not throwaway logs").
- analysis/ Decompiled C# (frida/proxy/decompiled-*),
Ghidra exports for native DLLs (`exports/` only —
working state at `projects/` and AVEVA's input
binaries at `input/` are gitignored).
- docs/ Reverse-engineering reference docs.
- tools/ Setup-LiveProbeEnv.ps1 (Infisical credential fetcher),
Compute-Crc.ps1 (.NET parity helper).
- .github/workflows/ Rust CI: fmt + build + test + clippy on Windows.
- LICENSE MIT (Joseph Doherty, 2026).
Verified:
- cargo test --workspace → 217 passed (215 unit + 2 .NET parity), 0 failed
- cargo clippy --workspace -- -D warnings → clean
- cargo fmt --all -- --check → clean
- cargo publish --dry-run -p mxaccess-codec → packages cleanly
Excluded from history (see .gitignore):
- **/bin, **/obj, **/target — build artifacts
- analysis/ghidra/projects/ — Ghidra working state (regenerable)
- analysis/ghidra/input/ — AVEVA proprietary DLLs (vendor IP)
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
+160
@@ -0,0 +1,160 @@
|
||||
using System;
|
||||
using System.CodeDom.Compiler;
|
||||
using System.Diagnostics;
|
||||
using System.Runtime.Serialization;
|
||||
using System.Xml.Serialization;
|
||||
using ArchestrAServices.ASBIDataContract.V2;
|
||||
|
||||
namespace ArchestrAServices.ASBIDataV2Contract;
|
||||
|
||||
[Serializable]
|
||||
[GeneratedCode("System.Xml", "4.0.30319.18054")]
|
||||
[DebuggerStepThrough]
|
||||
[XmlType(Namespace = "urn:data.data.asb.iom:2")]
|
||||
public struct MonitoredItem
|
||||
{
|
||||
private ItemIdentity itemField;
|
||||
|
||||
private ulong sampleIntervalField;
|
||||
|
||||
private bool activeField;
|
||||
|
||||
private bool activeFieldSpecified;
|
||||
|
||||
private ulong timeDeadbandField;
|
||||
|
||||
private bool timeDeadbandFieldSpecified;
|
||||
|
||||
private Variant valueDeadbandField;
|
||||
|
||||
private Variant userDataField;
|
||||
|
||||
[OptionalField(VersionAdded = 2)]
|
||||
private bool bufferedField;
|
||||
|
||||
public ItemIdentity Item
|
||||
{
|
||||
get
|
||||
{
|
||||
return itemField;
|
||||
}
|
||||
set
|
||||
{
|
||||
itemField = value;
|
||||
}
|
||||
}
|
||||
|
||||
public ulong SampleInterval
|
||||
{
|
||||
get
|
||||
{
|
||||
return sampleIntervalField;
|
||||
}
|
||||
set
|
||||
{
|
||||
sampleIntervalField = value;
|
||||
}
|
||||
}
|
||||
|
||||
public bool Active
|
||||
{
|
||||
get
|
||||
{
|
||||
return activeField;
|
||||
}
|
||||
set
|
||||
{
|
||||
activeField = value;
|
||||
ActiveSpecified = true;
|
||||
}
|
||||
}
|
||||
|
||||
[XmlIgnore]
|
||||
public bool ActiveSpecified
|
||||
{
|
||||
get
|
||||
{
|
||||
return activeFieldSpecified;
|
||||
}
|
||||
set
|
||||
{
|
||||
activeFieldSpecified = value;
|
||||
}
|
||||
}
|
||||
|
||||
public ulong TimeDeadband
|
||||
{
|
||||
get
|
||||
{
|
||||
return timeDeadbandField;
|
||||
}
|
||||
set
|
||||
{
|
||||
timeDeadbandField = value;
|
||||
TimeDeadbandSpecified = true;
|
||||
}
|
||||
}
|
||||
|
||||
[XmlIgnore]
|
||||
public bool TimeDeadbandSpecified
|
||||
{
|
||||
get
|
||||
{
|
||||
return timeDeadbandFieldSpecified;
|
||||
}
|
||||
set
|
||||
{
|
||||
timeDeadbandFieldSpecified = value;
|
||||
}
|
||||
}
|
||||
|
||||
public ArchestrAServices.ASBIDataContract.V2.Variant ValueDeadband
|
||||
{
|
||||
get
|
||||
{
|
||||
return new ArchestrAServices.ASBIDataContract.V2.Variant
|
||||
{
|
||||
Type = valueDeadbandField.Type,
|
||||
Length = valueDeadbandField.Length,
|
||||
Payload = valueDeadbandField.Payload
|
||||
};
|
||||
}
|
||||
set
|
||||
{
|
||||
valueDeadbandField.Type = value.Type;
|
||||
valueDeadbandField.Length = value.Length;
|
||||
valueDeadbandField.Payload = value.Payload;
|
||||
}
|
||||
}
|
||||
|
||||
public ArchestrAServices.ASBIDataContract.V2.Variant UserData
|
||||
{
|
||||
get
|
||||
{
|
||||
return new ArchestrAServices.ASBIDataContract.V2.Variant
|
||||
{
|
||||
Type = userDataField.Type,
|
||||
Length = userDataField.Length,
|
||||
Payload = userDataField.Payload
|
||||
};
|
||||
}
|
||||
set
|
||||
{
|
||||
userDataField.Type = value.Type;
|
||||
userDataField.Length = value.Length;
|
||||
userDataField.Payload = value.Payload;
|
||||
}
|
||||
}
|
||||
|
||||
public bool Buffered
|
||||
{
|
||||
get
|
||||
{
|
||||
return bufferedField;
|
||||
}
|
||||
set
|
||||
{
|
||||
bufferedField = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user