@adcp/sdk API Reference - v7.9.0
    Preparing search index...

    Interface SubstitutionAssertionResult

    interface SubstitutionAssertionResult {
        ok: boolean;
        error_code?:
            | "substitution_encoding_violation"
            | "nested_macro_re_expansion"
            | "substitution_scheme_injection"
            | "substitution_binding_missing";
        byte_offset?: number;
        message?: string;
        expected?: string;
        observed?: string;
    }
    Index

    Properties

    ok: boolean
    error_code?:
        | "substitution_encoding_violation"
        | "nested_macro_re_expansion"
        | "substitution_scheme_injection"
        | "substitution_binding_missing"

    Error code from the contract's step_task.error_modes. Set when ok is false.

    byte_offset?: number

    Offset of the first diverging byte inside observed_value. -1 if not applicable.

    message?: string

    Human-readable detail suitable for a grader report.

    expected?: string

    Expected bytes at the failing position. For canonical fixture vectors this is echoed verbatim; for custom bindings this is a sha256:<hex> digest unless AssertionOptions.include_raw_payloads is explicitly set.

    observed?: string

    Observed bytes at the failing position. Subject to the same redaction policy as expected.