Amo.ng curated workflow

Laravel Production Incident Investigation

Move from a Laravel production symptom to an evidence-supported correction and a controlled deployment plan.

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

Outcome

Identify the likely root cause of a Laravel production incident, apply the smallest justified correction when authorized, and verify the result using repository and runtime evidence.

Before you begin

  • 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

  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.

    Human checkpoint

    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: Safe and Thorough Pull Request Review for Laravel Projects 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.

    Human checkpoint

    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.

    Human checkpoint

    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.

Browse Workflows

Was this useful?