Agent Maturity Compass API - v1.2.0
    Preparing search index...

    Function verifyLedgerIntegrity

    • Synchronous, and deliberately so.

      This was declared async while its body awaited nothing — every read is a better-sqlite3 call or a readFileSync. The Promise bought no concurrency and cost callers their own colour: anything wanting to verify a ledger had to become async too, which is how exportSessionAnchorProof acquired an async signature and ~20 call sites acquired an await, for a function that never yielded.

      Existing await verifyLedgerIntegrity(...) call sites keep working unchanged: awaiting a non-thenable is legal and still queues a microtask, so ordering is preserved. They are now redundant rather than wrong, and can go one at a time.

      Parameters

      • workspacePath: string
      • options: LedgerVerifyOptions = {}

      Returns VerifyResult