Skip to content

docs(ai): update agent instructions with roadmap-service details, concurrency guardrails, and liveness diagnostics #1236

Closed

Description

@dan-petty

Description

Update canonical agent instructions in AGENTS.md and src/devops_cli/ai/instruction_generator.py:

  • Document in-cluster roadmap-service architecture, continuous operations, webhook integration, and automated background batch jobs (intake, close, reprioritize, refine, metrics).
  • Mandate strict concurrency avoidance: AI agents must avoid running overlapping manual roadmap mutations while roadmap-service is active to prevent rate limit depletion and git lock contention.
  • Provide clear verification and health check instructions (kubectl deployment/pod status, HTTP probes /readyz and /healthz on port 8000, service logs and Prometheus metrics), recovery runbooks, and safe manual fallback protocols when the service is confirmed offline.

Activity

  1. added this to the v0.2.27 milestone on Oct 5, 2026
  2. added
    type/docs
    scope/ai
    priority/p2-medium
    on Oct 5, 2026
  3. dan-petty commented on Oct 5, 2026

    @dan-petty
    OwnerAuthor

    What changed

    #1237, merged into release/v0.2.27 as 29a6edc.

    Summary

    Update canonical agent instructions in AGENTS.md and scaffolding templates in src/devops_cli/ai/instruction_generator.py with details of the in-cluster roadmap-service:

    • In-Cluster Architecture & Operations: Documented continuous daemon mode in namespace devops running devops serve --service, webhook handling at /webhooks/github, and automated batch jobs (intake, close, reprioritize, refine, metrics).
    • Strict Concurrency Guardrails: Prohibited overlapping manual mutations (devops roadmap close --confirm, devops roadmap intake --confirm) while roadmap-service is active to prevent rate limit depletion and git lock contention.
    • Liveness & Diagnostics: Documented inspection steps via Kubernetes CLI, HTTP probes (/readyz, /healthz), logs, Prometheus metrics, and safe offline manual fallback protocols.

    Closes #1236

    4 file(s) changed.

    How it was verified

    Check runs at 532af90:

    • Prune PR DevContainer Images: pass
    • Tests & Coverage: pass
    • Static Analysis: pass
    • Analyze (python): pass
    • CodeQL: pass
    • Analyze (actions): pass
    • DevContainer Image: skipping
    • Service Image: skipping
    • Dependency Freshness: skipping

    Acceptance Criteria of docs/agent/tasks/task-1236-update-agent-instructions-roadmap-service.md:

    • AGENTS.md documents in-cluster roadmap-service architecture, execution mode, webhooks, and autonomous operations.
    • AGENTS.md mandates concurrency avoidance against running overlapping roadmap mutations or duplicate state changes while roadmap-service is active.
    • AGENTS.md details how to verify if roadmap-service is running via Kubernetes CLI, HTTP probes (/readyz, /healthz), logs, and Prometheus metrics.
    • AGENTS.md documents troubleshooting, credential rotation recovery, and safe manual fallback when offline.
    • src/devops_cli/ai/instruction_generator.py scaffolds AGENTS.md containing roadmap-service and concurrency guidance when is_devops_cli=True.
    • All claim and generator verification tests pass (tests/test_agents_md_claims.py, tests/test_instruction_generator.py, tests/test_docs_review_loop.py).
    • Fast in-gate checks pass and changelog.d/1236.md is provided.
    • Pending a person: uv run devops ci passes on this branch.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority/p2-mediumscope/aitype/docs

    Type

    No type

    Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions