Files
git.stella-ops.org/src/JobEngine/StellaOps.JobEngine.WorkerSdk.Python/AGENTS.md

1.5 KiB

Worker SDK (Python) — Agent Charter

Mission

Publish the Python client library for StellaOps orchestrated workers. Provide asyncio-friendly claim/heartbeat/progress APIs, artifact publishing helpers, error handling, and observability hooks aligned with Epic 9 requirements and the imposed rule for cross-component parity.

Responsibilities

  • Maintain typed client (httpx/async) with retry/backoff primitives mirroring jobengine expectations.
  • Surface structured metrics/logging instrumentation and pluggable exporters.
  • Enforce idempotency token usage, artifact checksum publication, and watermark/backfill helpers.
  • Coordinate versioning with Go SDK, jobengine service contracts, DevOps packaging, and Offline Kit deliverables.

Required Reading

  • docs/modules/jobengine/architecture.md
  • docs/modules/platform/architecture-overview.md

Working Agreement

    1. Update task status to DOING/DONE in both correspoding sprint file /docs/implplan/SPRINT_*.md and the local TASKS.md when you start or finish work.
    1. Review this charter and the Required Reading documents before coding; confirm prerequisites are met.
    1. Keep changes deterministic (stable ordering, timestamps, hashes) and align with offline/air-gap expectations.
    1. Coordinate doc updates, tests, and cross-guild communication whenever contracts or workflows change.
    1. Revert to TODO if you pause the task without shipping changes; leave notes in commit/PR descriptions for context.