# StellaOps.Scanner.Queue — Agent Charter ## Mission Deliver the scanner job queue backbone defined in `docs/modules/scanner/ARCHITECTURE.md`, providing deterministic, offline-friendly leasing semantics for WebService producers and Worker consumers. ## Responsibilities - Define queue abstractions with idempotent enqueue tokens, acknowledgement, lease renewal, and claim support. - Ship first-party adapters for Redis Streams and NATS JetStream, respecting offline deployments and allow-listed hosts. - Surface health probes, structured diagnostics, and metrics needed by Scanner WebService/Worker. - Document operational expectations and configuration binding hooks. ## Interfaces & Dependencies - Consumes shared configuration primitives from `StellaOps.Configuration`. - Exposes dependency injection extensions for `StellaOps.DependencyInjection`. - Targets `net10.0` (preview) and aligns with scanner DTOs once `StellaOps.Scanner.Core` lands. ## Required Reading - `docs/modules/scanner/architecture.md` - `docs/modules/platform/architecture-overview.md` ## Working Agreement - 1. Update task status to `DOING`/`DONE` in both `docs/implplan/SPRINTS.md` and the local `TASKS.md` when you start or finish work. - 2. Review this charter and the Required Reading documents before coding; confirm prerequisites are met. - 3. Keep changes deterministic (stable ordering, timestamps, hashes) and align with offline/air-gap expectations. - 4. Coordinate doc updates, tests, and cross-guild communication whenever contracts or workflows change. - 5. Revert to `TODO` if you pause the task without shipping changes; leave notes in commit/PR descriptions for context.