vigiles API reference
    Preparing search index...

    Interface Railway

    A railway over flat subagents. steps run in order on the success track; the first step that returns an error short-circuits to onError. recover optionally retries the failing step a bounded number of times before the error track. There is intentionally no loop combinator — the value is a finite tree, so it always terminates and is fully verifiable at compile time.

    interface Railway {
        _specType: "railway";
        name: string;
        onError?: RailwayStep;
        recover?: { max: number; step: RailwayStep };
        steps: readonly RailwayStep[];
    }
    Index

    Properties

    _specType: "railway"
    name: string
    onError?: RailwayStep

    Error track — runs with the failing step's error payload.

    recover?: { max: number; step: RailwayStep }

    Bounded recovery: retry the failing step up to max times (finite).

    steps: readonly RailwayStep[]