Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion packages/dotnet/TraverseEmbedder/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,10 @@ runtime-shaped harness events. Compatible-capability start, stop, and kill
operations return stable instance identifiers and lifecycle results. It never
depends on `traverse-cli serve` or server-discovery files in production.

The runtime-WASM bridge, event subscriptions, release evidence, and WinUI
Release tooling constructs `TraverseReleaseEvidence` with the semantic package
version, runtime-WASM digest, conformance version, and supported Windows host
versions. `Validate` rejects incomplete evidence before publication so a
downstream binary can be traced to its exact package and runtime pairing.

The runtime-WASM bridge, event subscriptions, evidence publication, and WinUI
reference-app integration remain tracked by Traverse #649.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,26 @@ public sealed record TraverseSubmission(string TargetId, string InputJson)

public sealed record TraverseSubmissionResult(string SessionId, string Status);

/// <summary>Traceability evidence published with a TraverseEmbedder package release.</summary>
public sealed record TraverseReleaseEvidence(
string PackageVersion,
string RuntimeWasmDigest,
string ConformanceVersion,
IReadOnlyList<string> SupportedHostVersions)
{
public void Validate()
{
ArgumentException.ThrowIfNullOrWhiteSpace(PackageVersion);
ArgumentException.ThrowIfNullOrWhiteSpace(RuntimeWasmDigest);
ArgumentException.ThrowIfNullOrWhiteSpace(ConformanceVersion);
if (SupportedHostVersions is null || SupportedHostVersions.Count == 0 ||
SupportedHostVersions.Any(string.IsNullOrWhiteSpace))
{
throw new ArgumentException("supported host versions are required", nameof(SupportedHostVersions));
}
}
}

/// <summary>Ordered runtime-shaped event exposed by the conformance harness.</summary>
public sealed record TraverseRuntimeEvent(
int Sequence,
Expand Down
Loading