Amo.ng curated workflow

Laravel Incident Investigation and Controlled Correction

Use a compact three-step path to diagnose a Laravel production incident, make only an authorized minimal correction, independently review the change, and prepare a controlled release.

Workflow ID
AMO-W-000001
Steps
3
Published
Download Markdown

Copy workflow includes every step and the full linked Prompt content. Use with AI copies a shorter guide with Prompt links; neither action runs the Workflow.

Outcome

Identify an evidence-supported root cause, apply and review the smallest authorized Laravel correction, and prepare deployment and rollback controls. Use the extended Production Incident to Safe Patch and Prevention Plan workflow when formal verification, postmortem, and prevention work are also required.

Before you begin

Have all or some of the following available before you start. The more relevant context you can provide, the stronger the workflow output will be.

  • Incident symptoms and timestamps
  • Sanitized logs or stack traces
  • Repository access and the affected route, job, command, or feature
  • Recent deployment or configuration changes
  • The actions and environments you are authorized to change

Ordered sequence

Workflow steps

Complete the steps in order. For each step, provide the listed context, carry its result into the next step, and pause wherever a review note is shown.

  1. Step 1 Diagnose the incident and prepare the smallest correction

    Use the repository-first Laravel workflow to reproduce or trace the symptom, confirm the root cause, and make only an authorized minimal change.

    Prompt: Laravel Bug Fix and Refactor Prompt

    Input for this step

    Provide the symptom, sanitized logs, affected code path, environment details, recent changes, and action boundaries.

    Carry forward

    Carry the confirmed root cause, changed files, final diff, test evidence, unresolved risks, and unexecuted actions into the review step.

    Review note

    Confirm that any proposed edits, commands, data operations, or production actions are within the permitted scope.

    Open prompt
  2. Step 2 Review the Laravel change and regression risk

    Review the proposed change against the confirmed failure, Laravel conventions, surrounding behavior, and available test evidence.

    Prompt: Evidence-Grounded Laravel Pull Request Review with Codex

    Input for this step

    Provide the focused diff, root-cause evidence, affected tests, and relevant repository context.

    Carry forward

    Carry approved changes, required follow-ups, test gaps, and release risks into deployment preparation.

    Review note

    Do not merge or deploy while a material correctness, authorization, data, or rollback concern remains unresolved.

    Open prompt
  3. Step 3 Prepare the controlled deployment and recovery checks

    Turn the reviewed change into a repository-specific deployment safety checklist with preflight, verification, observation, and recovery steps.

    Prompt: CI/CD Deployment Safety Checklist Generator

    Input for this step

    Provide the approved diff, supported CI/CD tooling, test results, infrastructure constraints, migration impact, and rollback mechanism.

    Carry forward

    Retain the completed checklist and actual release evidence as the incident closeout record.

    Review note

    Require explicit deployment authority and stop if prerequisites, backups, rollback readiness, or production verification are missing.

    Open prompt

Completion criteria

The root cause is supported by evidence, the smallest authorized correction has been reviewed, relevant checks pass, and deployment or rollback actions are clearly separated from work that was not executed.

Was this useful?

Browse Workflows