Repository navigation
Fixed
- DProvenanceFoundationModels builds against the shipping OS 27 SDK (Xcode 27). The
transcript bridge matchedTranscript.Segment.custom, a case from an early 27.0 beta
that Apple removed before release, so every Xcode 27 consumer build failed with
Type 'Transcript.Segment' has no member 'custom'(seen in CaseClarity's Xcode Cloud
builds since 0.9.0). Attachment segments are still skipped and counted. CI now builds
the Foundation Models targets on thexcode-27runner image, so the
canImport(FoundationModels, _version: 2.0)branches are compiled somewhere.
Added
DPKGateVerdict(DProvenanceOTel): a gate verdict as OpenTelemetry attributes. It is the
Swift twin of Pythondprovenancekit.exporters.GateVerdict, emittingdpk.gate.*
attributes and the standardgen_ai.evaluation.resultevent
(evaluationResultEvent(timeUnixNano:)). Build it fromdpk gate --jsonoutput
(init(gateJSON:)) or from the shared JSON form. The contract is pinned by the shared
otel_verdict_attributes.jsonvector, which the conformance harness (category 7) and
DPKGateVerdictTestsreproduce.OTLPAnyValue.arrayandOTLPKeyValue.stringArray(_:_:): OTLParrayValue
attributes. EmptyarrayValueobjects decode as empty arrays.
Security
- Proof packs: a pack whose signed trace records the artifact digest beside a different
rolenow fails with the newProofPackVerificationFailure.artifactRoleMismatch(index:)
under v1 (v2 already failed it asartifactNotBound). Previously a v2 pack rewritten asproofPackVersion: 1with a new role
verified (exit 0).requireRoleBindingstill defaults tofalse; genuine v1 packs whose
traces record no role keep verifying as value-presence-only, and their certificates now
sayVERIFIED (ROLE NOT SIGNER-VOUCHED)in the headline. Source note: exhaustive
switches overProofPackVerificationFailureneed the new case. - Proof-pack role and digest matching is byte-exact UTF-8 instead of Swift
String ==
(Unicode canonical equivalence), matching the Python verifier. - Default change:
CloudTraceStore,CloudWriterandOTLPHTTPExporterrefuse to
send credentials (the cloud API key; OTLP headers such asAuthorizationor
x-api-key) over plainhttpto a non-loopback host. Cloud reads throw
CloudTraceStoreError.insecureEndpoint; refused ingest batches are quarantined
immediately instead of retried; OTLP exports throwOTelExportError.insecureEndpoint.
httpsand loopback (localhost,*.localhost,127.x.x.x,::1) are unaffected.
Opt out per instance withallowInsecureTransport: true/
Configuration.allowInsecureTransport = true. Policy is exposed as
DPKTransportSecurity.allowsCredentials(to:). RFC3161TimestampVerifier.verifyandverifyExternalTimestampaccept
trustedKeyIDs:to pin the DPK signer in the same call; results now report
attestationTrust(.embeddedKeyOnlyunless pinned) andattestationFailure.
Previously a valid timestamp result said nothing about who signed the attestation.dpk verifyescapes terminal control, C1 and bidi-control characters in
producer-supplied labels (artifact roles, event type identifiers, failure and
decoding-error text, and text certificates) as\u{XXXX}, so a crafted pack cannot
rewrite or reorder what the terminal shows.
Fixed
-
README "Gate your own agent in an afternoon": the walkthrough said to delete the
verify_account_status(...)call inagent_stub.py, which leavesis_activeundefined and
crashes the agent withNameErrorbefore the gate runs. It now says to change the line to
is_active = True. -
OTLPHTTPExporterpreserves an endpoint's query string instead of appending
/v1/tracesafter it. -
Corrected the
externalTimestampdocumentation: the token's imprint covers the
attestation's canonical signing payload (all fields except the signature bytes). -
Behavior change:
SQLiteTraceStore.lineageEdges(of:)/impactEdges(of:)throw
TraceError.corruptEdgeRowfor a persisted edge row that does not decode. An unknown
edge type was previously rewritten to.informedand a malformed UUID row skipped,
silently changing or truncating lineage. -
A payload whose type does not match the active run (
DProvenanceKit<U>.recordinside a
DProvenanceKit<T>run) is still dropped, but is now counted in
ActiveTraceRun.payloadTypeMismatchCountand logged once per run in DEBUG builds. The
FoundationModels recorders probe the run type first, so they never trip it. -
TraceWriteBufferbounds pending lineage edges (BufferCapacity.maxPendingEdges,
default 100,000). An edge refused at the cap is counted as a structural drop, so
dropStats.preservedIntegrityreports it; previously the edge queue grew without limit
while the writer was stalled. -
Attestation edge anchoring is a single linear BFS instead of a quadratic fixpoint;
results, including which dangling edge is reported, are unchanged. -
RawTraceStoreno longer substitutes"{}"for a payload that is not valid UTF-8 (it
returns a lossy decoding andpayloadIsValidUTF8 == false) and no longer traps on a
negative storedsequence. Event sequences are stored and read by bit pattern. -
Behavior change:
SQLiteTraceStorerefuses to open a file whoseuser_versionis
newer than it understands (SQLiteError.unsupportedSchemaVersion), and schema
migrations use the new throwingSQLiteConnection.readUserVersion()/
setUserVersion(_:)instead of a setter that swallowed write errors. -
Behavior change:
dpk verify --out=<path>without--certificatenow exits 2
(--outonly ever wrote a certificate; it previously printed to stdout and left the
requested file unwritten).--helpdocuments--certificate=text|htmland what
--outdoes per mode.
Compatibility
- New enum case
OTLPAnyValue.arrayaffects exhaustiveswitchstatements over
OTLPAnyValuewithout adefault. Existing wire output is unchanged: no current
attribute switches to arrays (dpk.derived_fromstays a comma-joined string). - New enum cases (
CloudTraceStoreError.insecureEndpoint,
OTelExportError.insecureEndpoint) affect exhaustiveswitchstatements without a
default. All new parameters and properties are defaulted, so existing call sites
compile unchanged. - New enum cases (
TraceError.corruptEdgeRow,SQLiteError.unsupportedSchemaVersion)
affect exhaustiveswitchstatements without adefault. New parameters and
properties are defaulted; the non-throwinguserVersionproperty remains.
Repository
- CI hygiene: Dependabot now tracks GitHub Actions and the WebVisualizer's npm
dependencies; the unreferenced
scripts/check_version_surface.sh(superseded by
.github/scripts/check-release-surfaces.sh) is removed. swift run --package-path ConformanceHarnessworks from a clone whose directory is
not namedDProvenanceKit.- The test target excludes its on-disk interop fixtures, silencing SwiftPM's
"unhandled files" warning. .gitleaks.tomlextends the default ruleset with a narrow allowlist for public signer
key IDs, so golden vectors cannot turn the secret scan red.- WebVisualizer dev dependencies updated (
npm audit fix): vite 8.3.8 and its
transitive nanoid/source-map-js;npm auditreports 0 vulnerabilities. - Vendored conformance vectors re-synced from DProvenanceKitPython
main(f71ca8a):
event_chain_v1_candidate.jsonandotel_verdict_attributes.jsonadded to
ConformanceHarness/vectors/, so the vector-sync check passes again. Byte-identical
copies; the harness loads vectors by name, so no Swift behavior changes.