Skip to content

Tooling: seconds-fast generated-doc drift gate — script/check-generated-docs.sh (#15621) - #15635

Merged
PurHur merged 1 commit into
masterfrom
feat/15621-drift-check
Jul 3, 2026
Merged

PurHur merged 1 commit into
masterfrom
feat/15621-drift-check

Conversation

@PurHur

@PurHur PurHur commented Jul 3, 2026

Copy link
Copy Markdown
Owner

Fixes #15621.

Adds script/check-generated-docs.sh: a standalone < 30 s pre-merge drift gate bundling

  • php script/capability-matrix.php --check
  • php script/capability-syntax.php --check
  • php script/bootstrap-inventory.php --check
  • php script/check-composer-lock-hash.php (new; replicates Composer\Package\Locker::getContentHash so no composer binary needed)

Runs all checks (no fail-fast) and reports each, so one run shows every drift.

Verified on master state: 21.8 s wall; correctly flags all three currently-live drifts (#15619 capabilities + inventory, #15620 lock hash) and exits 1; individual OK lines for in-sync docs.

Intended to become the first step of the fast gate and the mandatory pre-merge one-liner for docs-only/advertisement PRs (doc wiring can follow up in the #15622 skills PR).

🤖 Generated with Claude Code

…ated-docs.sh (#15621)

Bundles capability-matrix --check, capability-syntax --check,
bootstrap-inventory --check and a composer-binary-free lock
content-hash check (Locker::getContentHash replication) into one
standalone pre-merge gate. Measured 22 s on master; correctly flags
the #15619 capabilities drift, the #15619 inventory drift and the
#15620 lock staleness.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Tooling: doc-sync drift keeps landing on master — add seconds-fast pre-merge drift check (script/check-generated-docs.sh)

2 participants