Registry↗Dashboard↗

Safety Helpers

Standalone safety-verdict utilities exported from the package root.

2 methods

(root exports).isVerdictTrustworthy()

Whether a risk profile's verdict can be trusted as a safety judgment. False for a failed sync scan (scanStatus 'failed'), an errored deep analysis (deep.status 'error'), or an absent profile — in those states aggregateRiskLevel 'none' is a sentinel (could not determine), not a clean verdict. deep: null (pending/skipped/legacy) stays trusted. Deep-aware since 0.43.0.

profilerequiredRiskProfile | null | undefined

The riskProfile from a Definition (may be absent).

isVerdictTrustworthy(profile: RiskProfile | null | undefined): boolean
typescript
import { RegistryClient } from '@uluops/registry-sdk';

const client = new RegistryClient({
  apiKey: 'ulr_your-api-key',
});

const result = await (root exports).isVerdictTrustworthy('example-value');
Response Type
boolean

(root exports).isListVerdictTrustworthy()

List-grain twin of `isVerdictTrustworthy`, operating on the flattened scalar triple carried by `DefinitionListItem` rather than a full risk profile. Same discipline: an absent triple is NOT trustworthy (pending, never clean), and a failed sync scan or errored deep analysis makes `riskLevel: 'none'` a sentinel meaning could-not-determine, not a verdict. Absent statuses beside a present `riskLevel` are legacy rows and treated as complete. Deliberately does not consult `analyzerStale` — staleness is informational, not an un-trust signal. Note the registry's server-side search ordering demotes on analyzer currency, a fourth dimension this predicate does not carry: do not use it to re-order a server-ordered search page.

itemrequired{ riskLevel?: RiskLevel | null; scanStatus?: ScanStatus | null; deepStatus?: DeepAnalysisOutcomeStatus | null }

The flattened safety triple from a `DefinitionListItem`.

isListVerdictTrustworthy(item: { riskLevel?: RiskLevel | null; scanStatus?: ScanStatus | null; deepStatus?: DeepAnalysisOutcomeStatus | null }): boolean
typescript
import { RegistryClient } from '@uluops/registry-sdk';

const client = new RegistryClient({
  apiKey: 'ulr_your-api-key',
});

const result = await (root exports).isListVerdictTrustworthy('example-value');
Response Type
boolean