openmixer — generated API reference
    Preparing search index...

    Type Alias LatchAudit<S>

    LatchAudit:
        | { verdict: "no-instance" }
        | { verdict: "unobservable" }
        | { verdict: "agreement" }
        | {
            expected: S;
            fields: readonly string[];
            observed: S;
            projection: ProjectionResult;
            verdict: "drift";
        }

    The audit's verdict. drift is the only arm that wrote anything: the corrective re-assert of the console's state (the one authority), reported with both sides so the divergence is information, not something papered over.

    Type Parameters

    • S extends object

    Type Declaration

    • { verdict: "no-instance" }
    • { verdict: "unobservable" }
    • { verdict: "agreement" }
    • {
          expected: S;
          fields: readonly string[];
          observed: S;
          projection: ProjectionResult;
          verdict: "drift";
      }
      • Readonlyexpected: S

        What the console holds — the authority the correction re-asserted.

      • Readonlyfields: readonly string[]

        The stored fields that disagreed.

      • Readonlyobserved: S

        What the device reported before the correction.

      • Readonlyprojection: ProjectionResult

        What the corrective re-assert did.

      • Readonlyverdict: "drift"