laravel-verification
The Laravel recipe for step 7 of the pipeline (WORKFLOW.md): what gate runs on this stack, in what order,
and what counts as a pass. gate owns the discipline (evidence read, never a claimed pass); this block owns
the content of the phases. Every command is the project's own, run read-only against the working tree; the
block names the check, and the project's scripts say how.
When
After the code is written and before the review, before a merge request leaves draft, and once more before a
production deploy. Also after a dependency upgrade or a refactor that moves many files.
Steps
Run the phases in order. A failed phase stops the sequence: a later phase on top of a broken one reports noise.
Each phase ends with its output read, not its exit status (skills/gate, step 5).
- Environment and manifest. The runtime versions match the ones the project declares (the manifest's
platform setting, the container image), the manifest validates, and the lock file is in sync with it. A
lock file out of sync means the install resolves different versions from the ones tested.
- Formatting, check mode. The formatter runs in its non-modifying mode and reports differences. The
verification never rewrites files; a fix is a separate commit by the author.
- Static analysis. The analyser at the project's configured level passes with no new baseline entry.
A baseline that grew in this diff is a finding: the diff hid its errors instead of fixing them
(
skills/laravel-conventions §9).
- Tests. The project's whole suite, parallel if the project runs it so (
skills/run-generated-tests for
the scoped runs during development). Read the summary: skipped and incomplete tests are listed with a
reason or the pass is not a pass. The default state of a freshly written test is failure until its output
was observed.
- Coverage and mutation, only if the project uses them. Coverage runs on the CI job that reports it,
with the fast driver for line coverage and the slower one only where branch or path coverage is wanted.
The report is read for the untested failure branch of the diff. No percentage is imposed here. Mutation
testing, where the project has it, runs on the changed files only, and each surviving mutant is either a
missing assertion or an equivalent mutant stated as such.
- Dependency audit. The package manager's audit reports no known advisory for the locked set; a finding
names the package, the version range and the fix, and an abandoned package is reported as such. The audit
changes with time, so a pass last month says nothing about today (
skills/security-hardening §4).
- Database. Run the pretend mode of the migrations and read the SQL (
skills/laravel-conventions §13).
Check each new migration against the safe-migration list, that down() is real or honestly absent, and
that a fresh migrate-and-seed gives a populated working application. Never run a destructive or fresh
migrate against a database that is not local and disposable.
- Cache build. Build the configuration, route, event and view caches the way the deploy will, then clear
them. A failure here is a closure route, an environment read outside configuration or a missing view that
production would otherwise find first (
skills/laravel-conventions §7, points 17 and 33).
- Queues, scheduler and failed work. The scheduled task list shows what the diff added, overlap rules
included. The failed-jobs list is empty or understood. If a supervisor dashboard is in use, its status is
running. On a non-production environment only, dispatch a no-op job on a dedicated queue and process it
once, then confirm its side effect; this proves a worker consumes the queue, which no unit test does.
- Production configuration, on the target. For a deploy, the settings in
skills/laravel-conventions
§12 are asserted on the live environment, not read from the repository: debug off, the environment name,
the drivers, the cookie flags, the trusted proxies and hosts, a 404 on the environment file.
- Diff sweep. Over the changed lines only: leftover debugging calls, dumps and ray-style helpers, a
committed environment file, a secret-shaped string, a new TODO, a test marked skipped, a lowered
threshold, a loosened analyser rule. Each is a finding with the file and line.
Output / checkpoint
One report: each phase named, pass or fail, and for a fail the first failing item with its file and line. The
verdict is pass only when every phase ran and passed; a phase that could not run (no database, no container
runtime) is reported as not run, which is not a pass. Feeds the verified checkpoint of skills/gate.
Guardrails
- Read-only on the source. This block verifies; it does not format, fix, migrate or install anything (the
cache build and the no-op job of phases 8 and 9 touch only caches and a disposable queue). A missing tool is
named and the user installs it (
CONVENTIONS.md: no block installs).
- Never claim a phase passed on the strength of an earlier run, a summary or a green badge: the output of
this run, read now.
- A threshold lowered, a baseline grown, a test skipped or a rule loosened to make a phase pass is a failure
of that phase, reported as one.
- The runtime (a local container wrapper, an in-container shell, a bare host) is detected, not guessed
(
skills/laravel-conventions §7); when two are plausible, ask.
- Production-targeting phases (10) are asserted by a person with access or by the deploy pipeline; this block
does not reach into production on its own.
Origin
Idea taken from the public ECC repository's Laravel verification skill (MIT licence, read 2026-10-02): an
ordered sequence from environment checks to queue checks. Rewritten in our terms: the phases are named by
the check and not by the tool's command line; the pass criterion is the read artefact, with "not run" as a
distinct outcome; baseline growth and lowered thresholds count as failures; no coverage percentage; the
detection of the runtime is the project's own rule, not a hard-coded wrapper; mutation testing and the
failed-work check are our additions. The queue health probe (a no-op job processed once, non-production
only) is the same idea in the source, kept with its restriction. The facts about what each artisan command
does come from the framework documentation, written from knowledge of it and not re-fetched on the day.
1---2name: laravel-verification3description: "Use when a Laravel change is about to be declared done, merged or deployed: the ordered verification sequence for the stack (validate, format check, static analysis, tests, dependency audit, migration review, cache build, queue and scheduler checks), each phase read as an artefact and reported pass or fail."4metadata:5 source: https://skillmd.com/skills/techmefr/laravel-verification6---78# laravel-verification910The Laravel recipe for step 7 of the pipeline (`WORKFLOW.md`): what `gate` runs on this stack, in what order,11and what counts as a pass. `gate` owns the discipline (evidence read, never a claimed pass); this block owns12the content of the phases. Every command is the project's own, run read-only against the working tree; the13block names the check, and the project's scripts say how.1415## When16After the code is written and before the review, before a merge request leaves draft, and once more before a17production deploy. Also after a dependency upgrade or a refactor that moves many files.1819## Steps2021Run the phases in order. A failed phase stops the sequence: a later phase on top of a broken one reports noise.22Each phase ends with its output **read**, not its exit status (`skills/gate`, step 5).23241. **Environment and manifest.** The runtime versions match the ones the project declares (the manifest's25 platform setting, the container image), the manifest validates, and the lock file is in sync with it. A26 lock file out of sync means the install resolves different versions from the ones tested.272. **Formatting, check mode.** The formatter runs in its non-modifying mode and reports differences. The28 verification never rewrites files; a fix is a separate commit by the author.293. **Static analysis.** The analyser at the project's configured level passes with **no new baseline entry**.30 A baseline that grew in this diff is a finding: the diff hid its errors instead of fixing them31 (`skills/laravel-conventions` §9).324. **Tests.** The project's whole suite, parallel if the project runs it so (`skills/run-generated-tests` for33 the scoped runs during development). Read the summary: skipped and incomplete tests are listed with a34 reason or the pass is not a pass. The default state of a freshly written test is failure until its output35 was observed.365. **Coverage and mutation, only if the project uses them.** Coverage runs on the CI job that reports it,37 with the fast driver for line coverage and the slower one only where branch or path coverage is wanted.38 The report is read for the untested failure branch of the diff. No percentage is imposed here. Mutation39 testing, where the project has it, runs on the changed files only, and each surviving mutant is either a40 missing assertion or an equivalent mutant stated as such.416. **Dependency audit.** The package manager's audit reports no known advisory for the locked set; a finding42 names the package, the version range and the fix, and an abandoned package is reported as such. The audit43 changes with time, so a pass last month says nothing about today (`skills/security-hardening` §4).447. **Database.** Run the pretend mode of the migrations and read the SQL (`skills/laravel-conventions` §13).45 Check each new migration against the safe-migration list, that `down()` is real or honestly absent, and46 that a fresh migrate-and-seed gives a populated working application. Never run a destructive or fresh47 migrate against a database that is not local and disposable.488. **Cache build.** Build the configuration, route, event and view caches the way the deploy will, then clear49 them. A failure here is a closure route, an environment read outside configuration or a missing view that50 production would otherwise find first (`skills/laravel-conventions` §7, points 17 and 33).519. **Queues, scheduler and failed work.** The scheduled task list shows what the diff added, overlap rules52 included. The failed-jobs list is empty or understood. If a supervisor dashboard is in use, its status is53 running. On a non-production environment only, dispatch a no-op job on a dedicated queue and process it54 once, then confirm its side effect; this proves a worker consumes the queue, which no unit test does.5510. **Production configuration, on the target.** For a deploy, the settings in `skills/laravel-conventions`56 §12 are asserted on the live environment, not read from the repository: debug off, the environment name,57 the drivers, the cookie flags, the trusted proxies and hosts, a 404 on the environment file.5811. **Diff sweep.** Over the changed lines only: leftover debugging calls, dumps and ray-style helpers, a59 committed environment file, a secret-shaped string, a new TODO, a test marked skipped, a lowered60 threshold, a loosened analyser rule. Each is a finding with the file and line.6162## Output / checkpoint63One report: each phase named, pass or fail, and for a fail the first failing item with its file and line. The64verdict is pass only when every phase ran and passed; a phase that could not run (no database, no container65runtime) is reported as **not run**, which is not a pass. Feeds the `verified` checkpoint of `skills/gate`.6667## Guardrails68- Read-only on the source. This block verifies; it does not format, fix, migrate or install anything (the69 cache build and the no-op job of phases 8 and 9 touch only caches and a disposable queue). A missing tool is70 named and the user installs it (`CONVENTIONS.md`: no block installs).71- Never claim a phase passed on the strength of an earlier run, a summary or a green badge: the output of72 this run, read now.73- A threshold lowered, a baseline grown, a test skipped or a rule loosened to make a phase pass is a failure74 of that phase, reported as one.75- The runtime (a local container wrapper, an in-container shell, a bare host) is detected, not guessed76 (`skills/laravel-conventions` §7); when two are plausible, ask.77- Production-targeting phases (10) are asserted by a person with access or by the deploy pipeline; this block78 does not reach into production on its own.7980## Origin81Idea taken from the public ECC repository's Laravel verification skill (MIT licence, read 2026-10-02): an82ordered sequence from environment checks to queue checks. Rewritten in our terms: the phases are named by83the check and not by the tool's command line; the pass criterion is the read artefact, with "not run" as a84distinct outcome; baseline growth and lowered thresholds count as failures; no coverage percentage; the85detection of the runtime is the project's own rule, not a hard-coded wrapper; mutation testing and the86failed-work check are our additions. The queue health probe (a no-op job processed once, non-production87only) is the same idea in the source, kept with its restriction. The facts about what each artisan command88does come from the framework documentation, written from knowledge of it and not re-fetched on the day.