The versioned intermediate representation (IR) and coverage contract shared by the Hosihikari binding generator and its .NET emitters.
This repository contains only the contract: the JSONL schema, the C# model, the reader/writer, the canonical JSON hashing helpers, and the validator. It does not parse C++ headers, embed Clang, or generate bindings.
- IR instances are produced by the generator in the bindings CI and exchanged with
actions/upload-artifact/actions/download-artifact. They are not committed here. - The coverage manifest is derived from the IR by the emitters and committed in the binding repository.
| Path | Purpose |
|---|---|
src/Hosihikari.Binding.Ir |
Models, JSONL reader/writer, canonical JSON + SHA-256, validators |
tests/Hosihikari.Binding.Ir.Tests |
Dependency-free assertion host; exits non-zero on failure |
dotnet run --project tests/Hosihikari.Binding.Ir.Tests/Hosihikari.Binding.Ir.Tests.csproj -c ReleaseThe test host covers record/manifest round-trips, polymorphic records, canonical hashing, enum names, and the strict coverage gate (unknown entries, duplicate (id, configuration) keys, missing reasons, count mismatches).
IrSchema.Version is the IR schema version (SemVer). Additive changes bump minor; breaking changes bump major. Emitters must reject unsupported major versions rather than guess. IrSchema.CoverageManifestVersion versions the coverage manifest independently.
LGPL-3.0-or-later, see LICENSE.md.