@deliverd/sdk 0.24.1 → 0.25.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/src/types.ts CHANGED
@@ -1579,6 +1579,21 @@ export interface EvidenceRun {
1579
1579
  /** The run in the tool, for a reviewer to open. https. */
1580
1580
  url?: string;
1581
1581
  startedAt?: string;
1582
+ /** The release the run tested. Evidence naming another release than the AI system now runs does not count. */
1583
+ release?: EvidenceRelease;
1584
+ }
1585
+
1586
+ /**
1587
+ * The release a run tested: the parts of the AI system's fingerprint it names.
1588
+ * A part left out is not compared. Digests, never the text: `sha256:…`, a
1589
+ * commit or a tag — what `deliverd governance release` records.
1590
+ */
1591
+ export interface EvidenceRelease {
1592
+ provider?: string;
1593
+ model?: string;
1594
+ modelVersion?: string;
1595
+ promptHash?: string;
1596
+ guardrailsHash?: string;
1582
1597
  }
1583
1598
 
1584
1599
  /** The tools whose own report the server reads. `deliverd` is a results file in `EvidenceResult` shape. */
@@ -1606,6 +1621,8 @@ export interface SubmitEvidenceInput {
1606
1621
  * Connected by an owner or an administrator in Admin → Integrations.
1607
1622
  */
1608
1623
  pull?: EvidencePull;
1624
+ /** The release the results tested, with results, a report or a pull. Results of another release than the system runs now do not count. */
1625
+ release?: EvidenceRelease;
1609
1626
  }
1610
1627
 
1611
1628
  export interface EvidenceReport {
@@ -1658,8 +1675,10 @@ export interface GovernanceControl {
1658
1675
  custom: boolean;
1659
1676
  status: "outstanding" | "satisfied" | "waived";
1660
1677
  required: boolean;
1661
- /** Pieces of evidence that count towards it. */
1678
+ /** Pieces of evidence that count towards it: since the last material change, and of the release the system runs now. */
1662
1679
  evidence: number;
1680
+ /** Evidence that tested another release than the system runs now, and so does not count. */
1681
+ otherRelease: number;
1663
1682
  /** What scored evidence must meet: the task's own, or the organisation's default when it has none. */
1664
1683
  thresholds: ControlThresholds | null;
1665
1684
  /** Whose the thresholds are: set on this task, or the organisation's default. Null with none. */
@@ -1687,6 +1706,8 @@ export interface GovernanceEvidence {
1687
1706
  controls: string[];
1688
1707
  results: EvidenceResult[] | null;
1689
1708
  run: EvidenceRun | null;
1709
+ /** How the release its run tested differs from the one the system runs now, or null. */
1710
+ otherRelease: string | null;
1690
1711
  createdByLabel: string;
1691
1712
  createdAt: string;
1692
1713
  }