--- description: Check a model + migration + policy + tests for multi-tenancy correctness argument-hint: [model-name] allowed-tools: Read, Grep, Glob --- Target: $ARGUMENTS Locate and read all four artefacts: 1. The Eloquent model — `app/Models/$ARGUMENTS.php` (or matching path under `app/Models/`). 2. The most recent migration that creates or modifies the table. 3. The policy class — `app/Policies/${ARGUMENTS}Policy.php`. 4. Pest tests for the model — search `tests/` for the class name. Verify each item against /dev-docs/SCHEMA.md and /CLAUDE.md, marking PASS / FAIL / N/A with one-line reasoning: - [ ] Primary key is ULID (`ulid('id')->primary()` in migration; `HasUlids` trait on model) - [ ] `OrganisationScope` registered in model `booted()` (NOT merely imported) - [ ] FK chain reaches `organisations.id` within ≤2 hops - [ ] Policy class exists and is registered in `AuthServiceProvider::$policies` - [ ] All status/type/category columns use a PHP Enum cast - [ ] Soft delete decision matches the type's row in /dev-docs/SCHEMA.md - [ ] Pest tests include a cross-org leak assertion - [ ] Activity log trait present (if state-changing) End with a verdict line: `READY` or `NEEDS WORK`.