Skip to content

Generated from corpus/lines/operate/workflows/runtime.yml. Do not edit by hand — run python scripts/generate-corpus-docs.py.

corpus/lines/operate/workflows/runtime.yml

Title / id: workflow.operate

id: workflow.operate
status: active
line: operate
stages:
- id: run
  entry:
  - A deployed service has ownership and an operations profile.
  bindings:
  - inv.operate.ops-profile
  roles:
  - role.platform-engineer
  artifacts:
  - operate.run-record
  evidence:
  - Service identity
  - owner
  - dependencies
  - runbook
  - SLO
  exit:
  - The service is runnable and recoverable by the assigned operator.
  next_stages:
  - observe
  validation:
    mode: deterministic
    checks:
    - runbook and dependency references resolve
    - recovery command is documented
    on_gap: gap.stage.operate.run
  recovery:
    action: remain_at_stage
    preserve:
    - artifacts
    - evidence
    - decision_log
- id: observe
  entry:
  - A running service has defined health and failure signals.
  bindings: []
  roles:
  - role.platform-engineer
  - role.on-call
  artifacts:
  - operate.observation-record
  evidence:
  - Metrics
  - logs
  - alerts
  - SLO evaluation
  exit:
  - Health is evidenced and actionable anomalies are routed.
  next_stages:
  - change
  validation:
    mode: deterministic
    checks:
    - required signals are current
    - alert ownership and thresholds resolve
    on_gap: gap.stage.operate.observe
  recovery:
    action: remain_at_stage
    preserve:
    - artifacts
    - evidence
    - decision_log
- id: change
  entry:
  - A bounded operational change and rollback plan are authorized.
  bindings:
  - inv.operate.change-style
  roles:
  - role.platform-engineer
  artifacts:
  - operate.change-record
  evidence:
  - Plan
  - exact targets
  - prechecks
  - result
  - rollback evidence
  exit:
  - The change is verified or the previous state is restored.
  next_stages:
  - incident
  validation:
    mode: deterministic
    checks:
    - prechecks pass
    - exact targets match authorization
    - postchecks pass or rollback completes
    on_gap: gap.stage.operate.change
  recovery:
    action: return_to_previous_stage
    preserve:
    - artifacts
    - evidence
    - decision_log
- id: incident
  entry:
  - A service-impacting event has been detected and classified.
  bindings:
  - inv.operate.severity
  roles:
  - role.on-call
  artifacts:
  - operate.incident-record
  evidence:
  - Severity
  - timeline
  - actions
  - recovery evidence
  - impact
  exit:
  - Service is restored or explicitly contained with an owner.
  next_stages:
  - retire
  validation:
    mode: deterministic
    checks:
    - severity resolves
    - recovery evidence is current
    - follow-up owner exists
    on_gap: gap.stage.operate.incident
  recovery:
    action: remain_at_stage
    preserve:
    - artifacts
    - evidence
    - decision_log
- id: retire
  entry:
  - Retirement is approved and dependencies are inventoried.
  bindings: []
  roles:
  - role.platform-engineer
  artifacts:
  - operate.retirement-record
  evidence:
  - Dependency clearance
  - backup decision
  - shutdown and deletion evidence
  exit:
  - The service is stopped without orphaned dependencies or required data loss.
  next_stages: []
  validation:
    mode: deterministic
    checks:
    - dependents are cleared
    - retained data and secrets follow policy
    - endpoint is absent
    on_gap: gap.stage.operate.retire
  recovery:
    action: return_to_previous_stage
    preserve:
    - artifacts
    - evidence
    - decision_log
schema_version: corpus-unit.v2
kind: workflow
version: 1.0.0
layer: organization
depends_on:
- id: core.stage-contract
  version: ^1.0.0
- id: org.roles
  version: ^1.0.0