AI-ready quality gates
Edit on GitHubAI writes the change. Your quality gates check that it works.
AI can upgrade a Spryker project, fix a bug, or build a feature in hours instead of weeks. But AI speed is only useful when something confirms that the shop still works after each change. That something is your quality gates: the automatic code checks and tests that run in CI on every change. Together, they form a harness for AI and a feedback loop: each failed check shows where and how to improve.
This page explains what an AI-ready project looks like, why it costs less to run, and how to get there step by step.
- The problem: without quality gates, a software engineer must verify every change by hand, whether AI or a colleague made it. There is no feedback loop, so upgrades are slow and your AI-dev does not improve.
- The fix: standard Spryker code checks and tests in CI form a harness for AI. Every check blocks a failed change and shows where it failed.
- The result: each failed check shows where and how to improve, and you can automate the prevention. New features, bugfixes, hotfixes, and upgrades need less manual verification, and AI can work on your project safely.
The same change, with and without quality gates
The diagram shows the same change in two projects. A software engineer or AI can make the change. The only difference is the quality gates.
Without gates, a software engineer reviews and tests the change by hand, and nothing records the result. With gates, the pipeline checks every change in minutes. A failed check shows where the change failed, and the author fixes it before the review. A software engineer then reviews the change that passed the checks and gives the final approval. The human stays in the loop: the gates take over the repetitive checks, not the decision to accept the change.
Why now
Two things changed, and together they make quality gates the best investment in a Spryker project today:
- Tests became cheap to build. A strong test base used to take months of manual work. Skills of the AI Dev SDK now generate functional and end-to-end tests that follow Spryker patterns, so your team reviews tests instead of writing them from scratch. Generated tests are only as good as the use cases behind them: each test must cover a use case that your project defines for feature acceptance.
- Manual verification does not scale. AI produces code faster than a team can check it by hand. Automatic checks take over the repetitive checks during development, so the team has more time for the critical checks when it accepts the result.
Quality gates turn AI speed into safer delivery.
What AI adds to quality gates
AI makes one part of a task faster: writing the code. The DORA 2025 report shows that AI amplifies the strengths and the weaknesses of a team. Teams with fast feedback loops gain from AI, and teams with slow processes gain little. Quality gates are the feedback loop: a failed check shows what to fix, and AI repeats the cycle until the pipeline is green. The table shows the difference for each type of task.
| Task | Without quality gates | With AI and quality gates |
|---|---|---|
| New feature | The team builds the feature, then tests the whole shop by hand before the release. No automatic check shows the side effects. | AI builds the feature and its tests with the Customization Workflow. The gates prove that the rest of the shop still works. |
| Bugfix or hotfix | A developer reproduces the bug by hand, and fixes it. No test records the bug, so it can return. A hotfix waits for a manual test. | AI reproduces the bug in a test, fixes it, and the pipeline proves the fix with the Bugfix Workflow. A hotfix goes live in hours. |
| Upgrade | Weeks of regression hunting, so the team postpones the upgrade. The gap to the current release grows. | The Upgrade Workflow updates the code, and the tests catch silent damage before the release. Small, frequent upgrades become routine. |
The gain grows with each level: a project at level 1 gets almost nothing from AI, because every AI change still needs a full test by hand. See Where is your project today.
What you get
| Outcome | For the business | For developers |
|---|---|---|
| Faster, cheaper upgrades | The upgrade budget goes to new features, not to regression hunting. | The Upgrade Workflow verifies each step against your tests, not against your memory. |
| A feedback loop | Each failed check shows where and how to improve. You automate the prevention, so the same bug does not return. | A failed gate stops a broken change before the merge. |
| Faster security fixes | You apply a Spryker security release in days, not in a full release cycle. | The pipeline proves that the patch breaks nothing. |
| Lower cost of every change | Each change costs less to verify and to release. | AI fixes failed checks in the same session, before a software engineer reviews. |
| Less dependency on individuals | Project knowledge lives in tests, not only in the heads of team members. | New developers and AI agents get fast, exact feedback. |
Where is your project today
Find the level that describes your project best. Each level up lowers the cost of every future change.
| Level | What you see | Your next move |
|---|---|---|
| 1 — Unguarded | No automatic checks in CI. The team tests by hand before each release. | Generate a project CI pipeline with the standard Spryker code checks. |
| 2 — Partial | Some checks run, but they are optional or easy to skip. Few project tests. | Make every check block the merge. Add tests for the most critical shop flows. |
| 3 — Guarded | The standard checks run in CI. Some tests exist, with gaps. | Close the gaps. Remove every bypass. |
| 4 — Strict | Every gate blocks. Critical shop flows have functional and end-to-end tests. | Run an AI-driven upgrade and confirm that the pipeline stays green. |
| 5 — AI-ready | AI upgrades and changes the project, and the pipeline proves the result. | Keep the level: every new feature comes with its tests. |
Quick self-check
Answer each question with yes or no. Each “no” is a gap to close.
- Does CI run on every pull request, and does a failed check block the merge?
- Do the standard Spryker code checks run: Code Sniffer, Architecture Sniffer, PHPStan, and the Evaluator?
- Do functional tests cover your custom business logic?
- Do end-to-end tests cover your critical shop flows — for example, login, search, cart, checkout, and order handling in the Back Office? The framework is your choice, for example Cypress or Playwright.
- Is the pipeline free of bypasses, such as
continue-on-error, optional jobs, skip labels, or a narrowed scope?
For the full list of pipeline stages, see Continuous Integration.
The path to AI-ready
You do not need a big-bang project. Five steps take a project to the standard, and each step gives value on its own.
- Assess. Use the self-check to find your level and list the gaps.
- Plan. Agree on the gates to restore and on the critical shop flows that need tests first. Start with the flows that make money: checkout and order handling.
- Restore gates. Run
project-ci-generatorto turn the inherited demo shop CI into a lean project pipeline. Then make every check block the merge. Runstatic-validationandcode-reviewbefore each push, so developers and AI agents see the same findings as CI. For details, see Generate your project CI with the AI Dev SDK. - Add tests. Run
codecept-functionalfor your custom business logic. For end-to-end tests, keep the framework that your project already uses, for example Cypress or Playwright, and make it a blocking gate. If your project has no end-to-end tests yet, start from the Spryker reference:cypress-migrationcreates a project-owned Cypress baseline, andcypress-testscovers the agreed flows.spryker-qa-coverageturns acceptance criteria into test cases — happy path, negative, authorization, and edge cases. - Prove it. Run the Upgrade Workflow. An upgrade that ends with a green pipeline is the proof that your project is AI-ready.
All skills are part of the AI Dev SDK. For the full list, see Workflows, Skills, and Agents.
Strict for new code, ratchet for old code
A project with years of history has old code that fails the new checks. Do not fix everything before you turn on the gates, and do not let the old findings block every change. Use a ratchet instead: the gate is strict for new code, and the list of old findings only becomes smaller.
- Freeze the old findings. Record the current findings in a baseline, for example a PHPStan baseline or an Architecture Sniffer violation baseline. The gate then fails only on new findings.
- Check the changed code. Run the
static-validationskill on the diff, so a developer or AI agent sees only the findings in the code they touched. - Make the baseline smaller. Fix old findings when you touch a module, or let AI fix them in small batches. Never add new entries to the baseline.
Build your own or use Spryker tooling
Quality gates check the result of the AI work. The quality of the AI agent work is a second factor. You have two options:
- Build your own. Your team writes and maintains its own AI workflows, skills, and checks.
- Use the AI Dev SDK. Spryker and the community test the workflows and skills. Spryker improves them based on your feedback, so they evolve with your project.
The path in this document uses the AI Dev SDK skills. You can replace them with your own tooling, because the gates stay the same.
Who does the work
The path is the same for your own team, for your implementation partner, and for Spryker. The AI Dev SDK and the gates are the same for everyone.
Quality gates also make good work visible. A green pipeline at handover is objective proof of quality for the customer and for the partner who built the project.
FAQ
Q: Must we fix all old code before we turn on the gates?
A: No. Use the ratchet: strict gates for new code and a baseline for old findings that becomes smaller over time.
Q: Will this slow down our delivery?
A: At the start, a failed gate stops some changes that went through before. After that, the gates speed up the delivery of verified code to end users: each failed check shows what to improve, so the same errors do not return, and AI fixes most failed checks before a software engineer reviews the change.
Q: Does it work only with GitHub?
A: No. project-ci-generator also produces pipelines for GitLab and Bitbucket. For platform setup, see Set up CI in your repository.
Q: Which tests come first?
A: Tests for the flows that make money and the flows that you customized most: login, cart, checkout, and order handling. The coverage check of the Upgrade Workflow also shows the customizations that have no tests.
Thank you!
For submitting the form