Skip to content

spryker-feature-install: checklist engine, reconcile and release steps - #50

Merged
geronica merged 11 commits into
feature/capability-map-toolsfrom
feature/feature-install-engine
Nov 20, 2026
Merged

geronica merged 11 commits into
feature/capability-map-toolsfrom
feature/feature-install-engine

Conversation

@geronica

Copy link
Copy Markdown
Contributor

PR Description

Builds on #48 (base: feature/capability-map-tools). It adds a checklist engine, demo shop reconcile and release steps to spryker-feature-install.

What

  • Checklist (Phase 3). parse-integration-guide.php parses the install guide into checklist.json: one row per step. It reads both guide styles, resolves {% include %} and {{page.release_tag}}, and makes a step it cannot classify an unknown row. check-checklist.php blocks the install while a row is undecided, and the report while a row is open.
  • Reconcile (Phase 4). Each row is compared with b2b-demo-marketplace at the install release: plugin subset and order, merged config (a guide value never replaces a project value). find-feature-change.php finds the demo shop PR of the feature from git history and adds the files the guide does not name as reference-only rows.
  • Release (Phase 1). The feature installs at the release it needs. It may move the modules it needs; another spryker-feature/* package or a third-party root pin stops the run and offers spryker-upgrade.
  • Regression checks. Baselines in Phase 0 (plugin usage, config constants, overrides, PHPStan, sniffer, tests, Back Office crawl, storage and search counts). After module moves, Phase 5 runs the override checks. Phase 6 verifies each guide Verification block.
  • Release steps (Phase 7). diff-release-steps.php lists the commands, imports, republishes and environment variables that the deploy recipe does not run; references/release-steps.md proves them (deployed vs fresh comparison).
  • Data. Data rows get a data class (feature-data, project-content, demo-data) and go to project-data with a fixed row list.
  • Kept from Added capability map tools and reuse-gate skills #48: capability-map resolution, the environment preflight, the glossary check, storefront placement (now Phase 5b) and the login check. The per-step rules move to references/apply-steps.md.
  • Hand-overs. find-existing-capability hands every install to this skill; its Phase 1 decides whether an upgrade is needed. spryker-upgrade Phase 6 hands accepted features over after the upgrade PR. project-data accepts the data hand-off.

Tests

  • scripts/feature-install.test.php: 83 checks, on three real guides (Order Amendment, SSP Asset Management, Multiple Carts Glue API).
  • Upgrade (208), Twig scanner (29) and hook (40) suites pass. bin/lint-plugins.php passes.
  • tools/release-check.php: 4 failures. Three also fail on master (ai-dev-setup, spryker-runtime, demo-run-sheet). The fourth is the 500-line limit on spryker-upgrade/SKILL.md (575 lines from Added capability map tools and reuse-gate skills #48's changes; this PR adds none).
  • Replay against demo shop PR #664 (Order Amendment): every one of its 82 files is named by a guide row, a reference-only row, or listed as not a step.

Not tested yet

  • An install on a running project.

…install

- Parse the install guide into a checklist with one row per step; gate the
  install and the report on undecided or open rows (check-checklist.php).
- Reconcile each row with the reference demo shop (b2b-demo-marketplace):
  plugin subset and order, merged config, and the files the guide does not
  name (find-feature-change.php adds them as reference-only rows).
- Resolve the release the feature needs; allow the module moves it needs,
  stop on another feature package or a third-party root pin.
- Record baselines; check overrides after module moves; verify each guide
  Verification block; find and prove release steps (diff-release-steps.php).
- Hand data rows to project-data with a fixed row list.
- find-existing-capability hands installs to spryker-feature-install;
  spryker-upgrade Phase 6 hands accepted features over after the upgrade PR.
…back

The install skill told the agent to fetch <slug>.md when the capability
tools are missing, so it guessed slugs and package names. It now tells a
missing MCP registration from a lost connection, as find-existing-capability
does, and runs find-existing-capability/scripts/capability-search.php by
feature name and synonyms. Never guess a slug or a package name.
- Phase 6b ports the reference demo shop's tests for the feature and adds
  functional, Glue API or Cypress tests, only for the suites the project
  already runs, after verification passes.
- find-feature-change.php adds the reference change's tests as rows of
  kind test instead of listing them as not a step.
- check-checklist.php --phase report fails when no test row is done,
  unless tests_waived holds the developer's reason.
- The confirmation block names the planned tests; the report lists them.
…quisites

- Phase 1 dry-runs the composer require at every install release, with -w
  and -W, and shows the developer every update, major bump and removal of
  both. A feature at the project's own release can still move many modules.
- The parser marks a prerequisite optional when the table says (optional)
  or the text below the table (an info box included) calls it optional.
  Phase 1 asks about a missing optional prerequisite instead of installing
  it first, and skips the rows that need it when declined.
- New fixture: the Recurring Orders guide (two optional prerequisites).
- check-dod.php decides DONE or NOT DONE from evidence in the state dir:
  scope, valid baselines, module moves with reasons, the checklist, the
  wiring, after-install checks and builds, verifications, tests, approved
  agent-written content, and proven release steps. Ten items, each met or
  not, with the reasons.
- dod.json records the evidence no script can measure; only the
  developer's answer can waive an item.
- The report's first line is check-dod.php's first line. While it says
  NOT DONE, the run is not described as installed, working or done.
- A blocker stops the run in the phase where it is found, and the
  developer decides: fix, waive with a reason, or stop.
- Phase 5 moves back modules the feature does not need unless the
  developer gives a reason; content the agent writes needs approval.
The test suite and its four guide fixtures (360 KB of copied integration
guides) are maintainer tooling, so they no longer ship with the plugin.
They now live in tests/scripts/feature-install/, and CI runs them in the
plugins job.
references/report.md holds the report developers share with colleagues:
versions table (releases only, never package version tags), what was
done, branch and pull request, steps after the deploy, the guide link
pinned to the version followed, the guide steps not installed and why,
what was validated and how, and what upgrading the project to the latest
release would add. It is written only when check-dod.php says DONE;
project problems the install did not cause go to the developer as ticket
candidates, not into the report.
… Orders report

The template now has the same sections, headings and fixed sentences as
the report shared with the team, including the date and author line, and
the report itself is the worked example.
…glossary and release steps

- check-needed-moves.php judges every moved package: needed (a requirer
  or a conflict rules out the old version), not needed (the old version
  satisfies every requirer) or unknown. Not-needed moves go back unless
  the developer gives a reason. Composer constraint matching is in lib.php.
- compare-baselines.php checks that each baseline holds a result and
  compares PHPStan, sniffer, tests (by failing test), Back Office crawl,
  storage counts and frontend builds after the install with it. Baseline
  files use the names spryker-upgrade's check-baselines.php validates.
- check-data-manifests.php checks that every data file the install wrote
  is imported by a manifest a deploy recipe runs.
- glossary-key-check.php also reads keys from PHP (mail subjects through
  constants, messages), keys a package ships, files like
  partial_glossary.csv, and takes --locales.
- dump-state.php dumps tables and search indices without ids and
  timestamps and compares a deployed environment with a fresh install.
- check-dod.php measures items 2, 3, 6, 8 and 9 from these files;
  dod.json keeps only scope, reasons, approvals, data files and waivers.
tests/ is in the CI code-style check, so the moved test suite now follows
phpcs.xml: phpcbf fixes plus two @PARAM doc blocks.
…, not gated

Translations and CMS text the agent writes are recorded in dod.json
authored_content (file and what) and listed in the report as not validated
and needing a review, like any code the agent writes. DoD item 9 checks
that each entry is complete and its file exists; it no longer needs an
approval.
@geronica
geronica merged commit 928a13d into feature/capability-map-tools Nov 20, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants