Initial commit: managed .NET 10 AVEVA Historian SDK + reverse-engineering toolkit

Full read-only SDK (src/AVEVA.Historian.Client) implementing the CLAUDE.md required
surface against AVEVA Historian's binary WCF protocol — no native AVEVA runtime
dependency. All operations live-verified against a local Historian:

- ProbeAsync, ReadRawAsync, ReadAggregateAsync, ReadAtTimeAsync, ReadEventsAsync
- BrowseTagNamesAsync, GetTagMetadataAsync (17 native data-type codes mapped)
- GetConnectionStatusAsync, GetStoreForwardStatusAsync, GetSystemParameterAsync
- 108/108 unit + integration tests pass

Includes the reverse-engineering toolkit (tools/AVEVA.Historian.ReverseEngineering)
used to decode the protocol: WCF probes, IL inspection via dnlib, and IL-rewrite
instrumentation (instrument-wcf-{write,read}message etc.) plus the .NET Framework
trace harness (tools/AVEVA.Historian.NativeTraceHarness) for parity testing.

Sanitized handoff evidence under docs/reverse-engineering/. Native AVEVA binaries
(current/, aveva-install-x64/, aveva-install-x86/) are gitignored — fetch separately
from the AVEVA installer.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
dohertj2
2026-05-04 06:31:48 -04:00
commit c95824a65d
230 changed files with 38666 additions and 0 deletions
@@ -0,0 +1 @@
[{"DeclaringType":"\u003cModule\u003e","Name":"Query.StartDataQuery","MetadataToken":"0x0600574B","IsStatic":true,"IsPublic":false,"ModuleBase":"0x7FFC92090000","ModuleSize":"0x105F000","FunctionPointer":"0x7FFC6B1D1790","FunctionPointerInModule":false,"FunctionPointerRva":null,"PrepareError":null},{"DeclaringType":"\u003cModule\u003e","Name":"HistorianClient.StartDataQuery","MetadataToken":"0x060055E4","IsStatic":true,"IsPublic":false,"ModuleBase":"0x7FFC92090000","ModuleSize":"0x105F000","FunctionPointer":"0x7FFC6B1D2400","FunctionPointerInModule":false,"FunctionPointerRva":null,"PrepareError":null},{"DeclaringType":"\u003cModule\u003e","Name":"ClientApp.StartDataQuery","MetadataToken":"0x060053F7","IsStatic":true,"IsPublic":false,"ModuleBase":"0x7FFC92090000","ModuleSize":"0x105F000","FunctionPointer":"0x7FFC6B1D26A0","FunctionPointerInModule":false,"FunctionPointerRva":null,"PrepareError":null}]