Repository navigation
Releases
v0.16.1
What's Changed
- Specs: released specifications are no longer marked draft by @raymond-sigill in #33
Full Changelog: v0.16.0...v0.16.1
v0.16.0
What's Changed
- 0.16.0: evaluate an enforced run — what the guard had to do, against what it recorded by @raymond-sigill in #32
Full Changelog: v0.15.0...v0.16.0
v0.15.0
What's Changed
- 0.15.0: deliver a run to your evidence index; free text is bounded by @raymond-sigill in #31
Full Changelog: v0.14.0...v0.15.0
Behaviour change
Free text is now bounded. A value over its limit is refused before anything is sealed, and never shortened: a step's detail 512 characters; activity name, approver reference, decision and an object's content type 255 characters each. 0.14 accepted longer values. The schemas are unchanged, so evidence sealed earlier keeps verifying.
v0.14.0
The policy enforcement profiles (Control Set v2, Execution Evidence v4, Agent Enforcement v1) are drafts: their formats may still change in a later release. The .NET and Python SDKs are ports of each other and produce byte-compatible evidence.
What is new
- Control Set v2 (
schemaVersion: "2"in a policy control set): per-rule effects (@effectobserve,
denyorhalt), anenforcementblock (modeobserve/enforce,defaultEffect,unknownTools,
onRuleError,haltAfterDenials,lockedConfiguration) andcedar.entities(tools, tool groups, agents,
agent groups).AgentPolicy.Validateunderstands v2;AgentPolicy.Enforcement(...)reads the settings. - Execution Evidence v4: a run started under a v2 control set records
schemaVersion "4"for every event.
Tool calls carry auseId(generated when you omit it) and can bind the tool's definition by digest. A human
approval or rejection can name the exact call it covers with the new method
RecordBoundApprovalAsync(string decision, ApprovalCovers covers, …)(buildcoverswithToolCall.Covers()or
ApprovalCovers.ForArguments(...));RecordHumanApprovalAsynckeeps its 0.13.0 signature. The guard's
decisions are sealed as enforcement records in the run's chain. Sigill.Sdk.Policy(new package):CedarEngine, the official Cedar core (cedar-policy4.14.0)
as one pinned WebAssembly module run in-process with Wasmtime. With it:
AgentPolicy.ValidateStrict(Cedar strict validation against the schema of the document's version),
AgentPolicy.Evaluate(per-rule PASS / FAIL / INDETERMINATE), andVerifyAgentRunWithEngineAsync/
AgentRunVerifier.VerifyWithEngineAsync, which recompute a policy evaluation's results offline when verifying.
Sigill.Sdkitself does not depend on it: everything takes anyIPolicyEngine.- The guard (
AgentRunOptions.Enforcement = new AgentEnforcement(engine)): inenforcemode it denies a
tool call before the tool runs (PolicyDeniedException), halts a run (RunHaltedException,IsHalted,
HaltedToken), or refuses a start (StartRefusedException, e.g. a locked configuration that differs or an
engine that cannot load). New helpers:BeginToolCallAsync/ToolCall.CompleteAsync,InvokeToolAsync.
ModelCallHandlersends no model call for a halted run. - Verification: a v4 run gets an
enforcementcheck andEnforcementFindings(orphan or conflicting
results, a result after a denial, duplicate use ids, misplaced decisions, unrecorded halts, a run continued
after a halt). A run tree treats ahaltedparent like anabortedone. - Examples:
examples/Sigill.Sdk.Examples—loop(retries a forbidden call until halted),graph(two
concurrent branches, one denied, plus a delegated child run),approval(denied, approved withcovers,
retried, allowed). - Limits, as the README states them: enforcement is done by your own SDK in your own process — the evidence
shows what the guard decided, not that nobody bypassed it; that a denied tool did not run is not proven (the
evidence shows the denial and no result); a tool already executing when another event halts the run is not
stopped; model calls the SDK cannot recognise or parse are not recorded, so no rule sees them; a halt sealed
by another thread after the last state check does not stop a function already being called; an engine that
does not answer holds the run (no decision timeout); a child run is refused after its parent halted only when
started from the parent's delegation object in the same process; a record with reasonunavailablecannot be
recomputed. The engine runs where Wasmtime ships native libraries: Linux (glibc), macOS and Windows, x64 and arm64.
Behaviour changes for existing callers
- 13 new public type names in the
Sigill.Sdknamespace:AgentEnforcement,ApprovalCovers,
EnforcementEvent,EnforcementFinding,IPolicyEngine,PolicyDeniedException,PolicyEnforcement,
PolicyEngineException,PolicyEvaluationResult,PolicyRequestResult,RunHaltedException,
StartRefusedException,ToolCall(andSigill.Sdk.Policy.CedarEnginein the new package). Who: a project that has
its own type with one of these names and importsSigill.Sdktoo — the name becomes ambiguous (CS0104).
What to do: qualify the name, or add ausingalias. - Stricter validation of existing schema versions (v1–v3 envelopes and Control Evaluations, not only v4):
date-timevalues: a trailing newline (…Z\n) is no longer accepted. Fractional seconds are now truncated
to microseconds (previously kept to 100 ns, and rounded beyond that), so both SDKs compare the same instants.- Every schema
patternending in$is now anchored at the very end of the string (\z): a value with a
trailing\nthat used to match (e.g. a UUID, hex digest or identifier) is now invalid. The same holds for
the SDK's own UUID, URI-reference and rule-id checks.
Who: producers or verifiers handling evidence with such values — a run that verified before can now be
run_invalid. What to do: nothing for evidence the SDK produced; hand-built evidence must use plain ASCII
values without trailing newlines.
- Stricter policy control sets (
AgentPolicy.Validate, and everything that parses a control set): new are
a nesting limit of 64 levels and the integer rule — every integral number,
however written (9007199254740993.0or1e16included), must lie within ±(2^53−1) (previously ±2^53, integer
literals only). A rule id must end exactly (no trailing newline). A document with aschemaVersionmember is
now read as v2 (any value other than"2"is invalid). UTF-8 without a byte-order mark was already required.
Who: authors of control sets with deep nesting or very large numbers. What to do: keep numbers within the
safe range. - Verifying older runs that carry a policy control set: when the bundle supplies the signed control-set bytes
with the policy content type and the run's events are v1–v3, the verifier now requires those bytes to parse
strictly as a v1 control set (the rules of item 3). Otherwise the run gets the findingevidence_version_mismatch, an
enforcementcheck ofbad, and the verdictrun_invalid(fail closed). Thechecksmap can therefore hold a
tenth key,enforcement(always for v4 runs). Who: verifiers of runs whose control set breaks the rules in
item 3. What to do: none for control sets the SDK validated; code that assumes exactly nine checks must accept
the new key. ModelCallHandler: unchanged outside enforcement, except that it now raisesRunHaltedException(without
sending) for a run that is halted — only an enforcing guard halts a run.
Requirements
Sigill.Sdk:net8.0,net9.0,net10.0,netstandard2.1(unchanged).Sigill.Sdk.Policy: the same targets; depends onSigill.Sdk≥ 0.14.0 and onWasmtimepinned exactly to
[50.0.1]— the version the bundled module was checked against. The module's sha256
(a0cd3950…80d1f3) is verified on load.- Third-party licences of the bundled Cedar module (its crates and the Rust toolchain components linked into it):
THIRD-PARTY-NOTICES.mdin the package and the repository. - Publishing: from this release the packages are pushed to nuget.org with Trusted Publishing (no change for
package users).
What's Changed
- Release 0.14.0: policy enforcement by @raymond-sigill in #30
- Spec (draft): policy enforcement, and the policy engine build recipe by @raymond-sigill in #26
Full Changelog: v0.13.0...v0.14.0
v0.13.0
What's Changed
- Agent Model Calls v1: model calls with the provider's own identifiers (schemaVersion 3) by @raymond-sigill in #25
Full Changelog: v0.12.0...v0.13.0
v0.12.0
What's Changed
- Control Evaluation v2 §4.7: qualified time required by the approval by @raymond-sigill in #24
Full Changelog: v0.11.0...v0.12.0
v0.11.0
What's Changed
- Control Evaluation v2 (draft): policy and attested evaluations, facts layer, verifier by @raymond-sigill in #23
Full Changelog: v0.10.0...v0.11.0
v0.10.0
What's Changed
- Seal every release with Sigill by @raymond-sigill in #19
- seal-published: look up the release in this repo by @raymond-sigill in #20
- Agent Policy Control Set v1 (draft): declared policies, digests, policy sharing (preview) by @raymond-sigill in #22
Full Changelog: v0.9.1...v0.10.0
v0.9.1 — PAdES on cross-reference-stream PDFs
Fix: PAdES seals on PDFs with cross-reference streams
Incremental updates (signature, DSS, DocTimeStamp) always appended a classic xref table and trailer, even when the document being sealed uses a cross-reference stream (PDF 1.5+ — most PDFs written by modern tools). The new trailer's /Prev then pointed at a stream, a mixed chain that strict readers such as Adobe Acrobat refuse to follow, so the seal was reported as invalid.
- The cross-reference section now matches the format of the document's most recent revision, in all three passes.
- Documents with a classic xref table produce byte-identical output to 0.9.0.
- New cross-implementation golden vector on an xref-stream document — identical bytes from the .NET and Python SDKs.
Also in this release: System.Security.Cryptography.Pkcs 9.0.21 (CVE-2026-84008, CVE-2026-70162).
Upgrade recommended for anyone sealing PDFs with SealPadesAsync. Re-seal affected documents from the original file; the original is never modified.
Full Changelog: v0.9.0...v0.9.1
v0.9.0 — Locator references (AiEvidenceEnvelopeV2 v2.1)
ETSI TS 119 182-1 §5.2.8.3.1 requires each JAdES sigD.pars entry to resolve to a locator. v2.1 of the AI evidence envelope spec moves from URNs to relative references; envelopes, schemas and schemaVersion are unchanged, and existing evidence stays verifiable.
Verification (reads both forms)
- The envelope reference is read from each signature:
sigill-envelope.json(v2.1) orurn:sigill:envelope(before v2.1). Runs that switch form mid-chain verify. - New
NotesonEvidenceV2VerificationResultandAgentRunVerificationResult: the legacy reference is reported as an informational note — never a warning, never a failure. - New public
EnvelopeReferences(Classify,IsReserved,IsProductionReference,NewObjectUri,LegacyDiagnostic).
Producing (breaking for custom URIs)
- Generated object URIs are now
objects/<uuid>(wereurn:uuid:<uuid>). - Object URIs you set must match the production profile (spec §3.1): relative segments of
A–Z a–z 0–9 . _ ~ -separated by/— nourn:, URLs, spaces or percent-encoding. OmitUrito have one generated. sigill-envelope.jsonandurn:sigill:envelopeare both reserved.
Fixes
VerifyEvidenceV2Asyncrefuses payloads supplied under an envelope reference: previously, passing the original envelope bytes that way let an edited envelope verify.- Generic v2 verification fails alignment when the classical header is unreadable, duplicated or ambiguous; an ML-DSA entry whose
parsdiffer from the classical entry's fails alignment.
Spec: spec/ai-evidence-envelope-v2.md (v2.1: §3.1, §5.2, §5.4, §10.1, §12), spec/agent-profiles-common-v1.md. New cross-language vectors 71–78.