Skip to content

WA-VERIFY-058: Add repo-root Zeitwerk autoload check script #1023

@kitcommerce

Description

@kitcommerce

Summary

Zeitwerk autoloading is sensitive to naming conventions and engine structure. A dedicated repo-root script would let contributors quickly verify Zeitwerk is happy before pushing.

Objective

Add a bin/verify-zeitwerk (or scripts/verify-zeitwerk.sh) script that:

  • Runs bin/rails zeitwerk:check (or equivalent) under the default appraisal
  • Reports pass/fail clearly
  • Can be run from the repo root without knowing the engine layout

Acceptance Criteria

  • Script exists at scripts/verify-zeitwerk.sh (or bin/verify-zeitwerk)
  • Script runs zeitwerk:check against the default appraisal Ruby version
  • Script outputs clear pass/fail summary
  • Script is referenced in the scripts index (see WA-VERIFY-033 / WA-DOC-007)

Verification Plan

  • Run the script; confirm it outputs a clear result
  • Confirm it's referenced in the doc index

Client Impact

None (developer tooling only).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions