Repository navigation
Closed
1 / 11 of 1 issue completed
Copy link
Labels
effort/mediumEffort Mediumpriority/p2-mediumPriority P2: standard workscope/serviceThe long-running devops Service and its lanessource/agentFiled by an agenttype/docsType docs: a change to the documentsvalue/mediumValue Medium
Description
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 ofAGENTS.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
- ADR 0003, 0008, 0009, 0017, 0021, 0022, 0023; feat(service): Roll each Service release with no webhook gap #6058 (rolling releases, the first pattern to apply), feat(service): Cache GitHub issue and PR state in the brain from webhooks #6013, feat(ai): Route around a stalled or offline model provider #5990, fix(ai): one retry layer for a gateway call #5965, feat(roadmap): run each stage item in its own Job #4559, feat(service): make the webhook router stateless #4575, feat(service): share the GitHub budget and holds in Valkey #4563.
Sub-issues
Collapse Sub-issuesSub-issues
Loading 1 sub-issues
Metadata
Metadata
Assignees
Labels
effort/mediumEffort Mediumpriority/p2-mediumPriority P2: standard workscope/serviceThe long-running devops Service and its lanessource/agentFiled by an agenttype/docsType docs: a change to the documentsvalue/mediumValue Medium
Activity
dan-petty commentedon Nov 16, 2026
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.