Skip to content

docs(service): Write the service design pattern standards #6059

Closed
1 of 1 issue completed
Closed

Description

@dan-petty

Problem

The project's rules for how a service or workload behaves are spread over 27 ADRs, docs/CLUSTER.md, k8s/README.md, issue comments and owner decisions: events over polling, a webhook router, jobs in pods with shared state in Valkey, nested timeouts, one retry layer, check-out and check-in of work, dry runs with no requests, telemetry privacy, rollouts that jobs survive. Nothing gathers them, so each new service or fix decides again, and gaps show only in an incident (for example the 503 answers during each Recreate rollout, #6058, and the 41% webhook loss at the edge, #5035).

Owner, 2026-11-16: "we should create service design pattern standards for the project".

Expected behavior

  • One standards document (for example docs/SERVICE_PATTERNS.md, linked from the "Where to look" table of AGENTS.md) gives each pattern as a rule, the reason (the ADR or owner decision it comes from), and the check that holds it (a test, a gate check, a lint rule, or "no check yet" with the issue that adds one).
  • It covers at least: stateless ingress and singleton workers (lease), rolling releases with readiness, liveness and startup probes and a PodDisruptionBudget, graceful shutdown and drain, webhook intake (verify, answer at once, idempotent handling, repair of lost events), events over polling and the shared cache (eventual consistency with a local fallback), Jobs and Workflows for model work, timeouts that nest, one retry layer and fallbacks, budgets and rate limits with attribution, configuration through git and deploy-stack, secrets, security context and network perimeter, telemetry and dashboards, dry runs, and replaceable tools.
  • An audit table checks each live workload (the roadmap Service, the runner Jobs, the MCP server, the LLM gateway, Renovate, and the other workloads of k8s/devops) against each pattern, and links an open issue for each gap (a new one only when none exists).
  • The document is in ASD-STE100 and follows the owner rule of 2026-11-13 for specs: general guidelines, a project profile, and generated facts, with no numbers that a model must keep current.

Related

Sub-issues

Sub-issues

1 of 1 Issues completed
Loading 1 sub-issues

Activity

  1. added
    type/docs
    source/agent
    status/new
    value/medium
    on Nov 16, 2026
  2. dan-petty commented on Nov 16, 2026

    @dan-petty
    OwnerAuthor
    • Related: docs(sre): add the SRE service spec #5445, which asks for a different change. Both gather scattered service rules into one document, but #5445 covers SRE SLOs and SLIs while the candidate covers architectural patterns like webhook intake and rolling releases.
  3. added
    effort/medium
    scope/service
    priority/p2-medium
    owner/agent
    on Nov 16, 2026
  4. added
    status/in-progress
    status/in-review
    and removed
    status/new
    status/in-progress
    on Nov 16, 2026
  5. removed
    status/in-review
    owner/agent
    on Nov 16, 2026
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

    effort/mediumpriority/p2-mediumscope/servicesource/agenttype/docsvalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions