Agent Armor API Reference
    Preparing search index...

    Interface SessionConfig

    Multi-turn / session scanning configuration, passed as config.session (#35).

    interface SessionConfig {
        accumulation?: boolean;
        decay?: number;
        windowChars?: number;
        windowTurns?: number;
    }
    Index
    accumulation?: boolean

    Cross-turn signal accumulation — gradual memory poisoning and contextual-learning drift. Default: false.

    Handled by the ML classifier, NOT regex: a regex signal cannot separate a malicious standing "always downplay risk" rule from legitimate reassurance scripting without an unacceptable false-positive rate (the distinction is semantic, not lexical). When enabled AND the ML classifier is active, the async path (scanSessionAsync) shows the model a sliding window of recent turns so accumulated signal can surface on its accumulation labels. On the regex-only SDK or the sync path the flag is inert and warns once; split-payload detection is unaffected either way.

    decay?: number

    Per-turn decay (0-1) reserved for accumulation (see accumulation; not active in the regex SDK). Default: 0.5.

    windowChars?: number

    Character budget for the cross-turn split-payload window. Older turns drop out once the budget is exceeded. Default: 4000.

    windowTurns?: number

    Max recent turns kept in the cross-turn window for split-payload detection. Default: 8.