For AI agents: the complete documentation index is available at https://scriptedalchemy.github.io/agent-bundle/llms.txt, the full documentation bundle is available at https://scriptedalchemy.github.io/agent-bundle/llms-full.txt, and this page is available as Markdown at https://scriptedalchemy.github.io/agent-bundle/api/interfaces/test.ContractRouteFixture.md.
  • English
  • Interface: ContractRouteFixture

    Properties

    cancellation?

    readonly optional cancellation?: object

    Cancellation case: invocation aborted mid-flight must settle rejected and leave the session usable. The input must stay in flight past abortAfterMs (default 50ms); an invocation that settles before the abort fires is reported not-applicable, not failed.

    abortAfterMs?

    readonly optional abortAfterMs?: number

    input?

    readonly optional input?: unknown


    input?

    readonly optional input?: unknown

    Valid input for the sweep invocation (tools/prompts; resources need none).


    inputs?

    readonly optional inputs?: readonly unknown[]

    Additional valid inputs — e.g. one per declared status/discriminant value.


    kind?

    readonly optional kind?: "resource"

    'resource' marks a resource/MCP App fixture (see ContractResourceFixture). Omit it for tool and prompt fixtures; a legacy {} still covers a resource or app route.


    lifecycle?

    readonly optional lifecycle?: ContractLifecycleFixture

    Optional stateful replay over this matrix run's single open client.


    previousResults?

    readonly optional previousResults?: readonly unknown[]

    Serialized payloads captured from previous server versions; each must parse under the CURRENT resultSchema (previous-server + current-client skew).


    resultCompat?

    readonly optional resultCompat?: ResultCompatPolicy

    Declared serialized-result compatibility policy. REQUIRED for tool routes.