Dlq Escalator
Path:
loom-sprint-scaffold/loom/src/dispatcher/core/dlq-escalator.tsRelative: loom/src/dispatcher/core/dlq-escalator.tsSubproject: loom-sprint-scaffoldCategory: otherLines: 94Bytes: 3,061Imports: 4Exports: 1
Content Preview
- /**
- * H2.4 — DLQ Escalator.
- *
- * Converts a dead letter into a Loop 1 escalation:
- * - builds typed escalation payload (goal_id, stage_id, dispatch_id, attempts, last_error)
- * - posts via injected EscalationPoster with retry from src/lib/retry.ts
- * (≥3 attempts, backoff+jitter)
- */
- import { withRetry } from "../../lib/retry";
- import { createLogger } from "../../lib/logger";
- import type { EscalationPoster, EscalationPayload, DeadLetterBody } from "./types";
- import type { GoalId, StageId, S