Amo.ng curated workflow

Production Incident to Safe Patch and Prevention Plan

Turn production logs and repository evidence into a minimal patch proposal, verification plan, independent review, deployment controls, and a blameless prevention backlog.

Workflow ID
AMO-W-000005
Steps
5
Published
Download Markdown

Outcome

A controlled incident-response package that supports an authorized patch decision while preserving evidence, rollback readiness, and longer-term corrective actions.

Before you begin

  • Sanitized production logs, timestamps, alerts, and observed symptoms
  • Repository access or relevant code and configuration excerpts
  • Expected behavior and affected user or business impact
  • Environment, release, and recent-change information
  • Available test commands, CI/CD workflows, deployment controls, and rollback procedures

Ordered sequence

Workflow steps

  1. Step 1 Connect production evidence to a minimal patch plan

    Trace supplied production logs to relevant code paths, develop ranked root-cause hypotheses, and propose the smallest safe patch with verification and rollback steps. Clearly label unknowns and avoid unrelated changes.

    Prompt: Production Log Triage to Minimal Patch Plan

    Input for this step

    Provide sanitized logs, incident timing, symptoms, affected requests or jobs, recent deployments, relevant repository context, and expected behavior.

    Carry forward

    Pass the evidence trail, ranked hypotheses, affected code paths, minimal patch proposal, risks, and verification needs to the test-planning step.

    Human checkpoint

    An incident owner confirms the working hypothesis and explicitly authorizes any repository changes before implementation is considered.

    Open prompt
  2. Step 2 Build the verification plan

    Create a verification plan covering targeted tests, regression checks, manual checks, edge cases, logs, and deployment confidence for the proposed patch.

    Prompt: Test and Verification Prompt

    Input for this step

    Use the root-cause evidence, patch scope, affected behavior, known edge cases, repository-supported test commands, and operational signals from the first step.

    Carry forward

    Pass the test matrix, expected results, unresolved coverage gaps, and post-change monitoring checks to pull-request review.

    Open prompt
  3. Step 3 Review the proposed Laravel pull request

    Review the supplied change set for correctness, regressions, security risks, unnecessary scope, missing tests, and verification gaps without rewriting unrelated code.

    Prompt: Safe and Thorough Pull Request Review for Laravel Projects with Codex

    Input for this step

    Provide the incident evidence, authorized patch or proposed diff, verification plan, test evidence if available, and relevant repository conventions.

    Carry forward

    Pass blocking findings, non-blocking concerns, required test additions, and the review summary to deployment-safety planning.

    Human checkpoint

    A qualified maintainer resolves or accepts review findings and provides human merge approval; the workflow itself does not imply that a merge occurred.

    Open prompt
  4. Step 4 Prepare deployment and rollback gates

    Review supplied CI/CD workflows, deployment scripts, configuration, migration behavior, observability, release verification, and rollback readiness for the patch. Define explicit release gates without implying deployment occurred.

    Prompt: CI/CD Deployment Safety Checklist Generator

    Input for this step

    Provide the reviewed change, CI/CD configuration, deployment procedure, environment constraints, monitoring signals, rollback method, and any migration or configuration effects.

    Carry forward

    Pass the deployment checklist, stop conditions, rollback triggers, observability checks, and acceptance criteria to the postmortem step.

    Human checkpoint

    The release owner makes the deploy, delay, or rollback decision using the review findings, verification evidence, and deployment gates.

    Open prompt
  5. Step 5 Convert incident evidence into prevention work

    Draft a blameless postmortem from supplied facts, distinguish root causes from contributing conditions, identify control gaps, and define corrective actions with owners and verification steps.

    Prompt: Incident Postmortem Control Improvement Planner

    Input for this step

    Provide the incident timeline, technical findings, patch rationale, review results, deployment decision evidence if available, customer or business impact, and recovery observations.

    Carry forward

    Produce the final postmortem draft, control-improvement backlog, ownership assignments, stakeholder communication plan, and follow-up verification schedule.

    Human checkpoint

    Incident stakeholders review the factual timeline, impact statement, root-cause claims, and action ownership before the postmortem is circulated.

    Open prompt

Completion criteria

The likely cause is linked to supplied evidence; the smallest responsible patch is defined; tests, review findings, deployment gates, and rollback criteria are documented; and systemic follow-up actions have owners and verification requirements. Proposed and executed work remain clearly distinguished.

Browse Workflows

Was this useful?