Function: verifyActionEvidence()
verifyActionEvidence(
evidence,source,ruleBook,rule?):Promise<EvidenceCheck>
Defined in: packages/agentos/src/safety/runtime/ActionEvidence.ts:156
Holds evidence to the host's store and rule book. Every comparison is exact: no trimming, no case folding, no Unicode normalisation. The answer keeps a hash and a length of each quote, never the quote, and names a failed quote by its index, never by an id the store did not confirm.
Parameters
evidence
The evidence, already of the right shape.
source
The host's store.
ruleBook
The policy versions a call may cite, each with its rule ids.
rule?
EvidenceRule = {}
minQuotes (default 1) and minQuoteLength in code units (default 12).
Returns
Promise<EvidenceCheck>
Whether the evidence holds, and why not when it does not.
Throws
TypeError when an evidence threshold is not a positive safe integer, or minQuotes is over 20, and when the
evidence carries more than 20 quotes or a quote over 4,000 code units, before the store is read.