Skip to main content

RecoveryExpectation

@forge/monorepo


@forge/monorepo / backend/src / RecoveryExpectation

Type Alias: RecoveryExpectation

RecoveryExpectation = object

Defined in: backend/src/loadtest/injection.ts:27

Properties

mechanism

readonly mechanism: string

Defined in: backend/src/loadtest/injection.ts:48

The mechanism that does the recovering, named so a runbook can point at it.


noDataLoss

readonly noDataLoss: boolean

Defined in: backend/src/loadtest/injection.ts:36

No lost work: every admitted run reaches a terminal state.

false only where losing work is the correct behaviour, which is nowhere in this list — a refused admission is not admitted work.


noDuplicateExternalAction

readonly noDuplicateExternalAction: boolean

Defined in: backend/src/loadtest/injection.ts:44

No duplicated external action.

The assertion that actually matters, and the one a load test is uniquely able to make: a retry after a worker kill must not publish the post twice. Measured by counting effects against distinct idempotency keys, not by inspecting logs.


observableSymptom

readonly observableSymptom: string

Defined in: backend/src/loadtest/injection.ts:46

What the operator sees while it is happening. Goes straight into the runbook.


recoversUnattended

readonly recoversUnattended: boolean

Defined in: backend/src/loadtest/injection.ts:29

Work must reach a terminal state, eventually, without a human touching it.