# Provider Verification Evidence-Only Implementation Plan

> **For agentic workers:** REQUIRED SUB-SKILL: Use superpowers:subagent-driven-development (recommended) or superpowers:executing-plans to implement this plan task-by-task. Steps use checkbox (`- [ ]`) syntax for tracking.

**Goal:** Remove generic verification metadata from the provider portal and submit only the verification type plus one or two evidence files.

**Architecture:** Keep the API contract untouched and narrow the browser-side view model and upload builder. Blade remains a thin localized view; JavaScript creates an allowlisted multipart payload.

**Tech Stack:** Laravel Blade, Laravel translations, browser JavaScript, Node assertions, PHPUnit.

---

### Task 1: Remove verification metadata from UI and payload

**Files:**
- Modify: `resources/views/provider/partials/verifications.blade.php`
- Modify: `resources/lang/es/provider_portal.php`
- Modify: `resources/lang/en/provider_portal.php`
- Modify: `resources/js/provider/19-verifications-viewmodel.js`
- Modify: `resources/js/provider/19-verifications-contract.js`
- Modify: `resources/js/provider/18-upload-errors.js`
- Modify: `resources/js/provider/00-i18n-validation.js`
- Test: `tests/Feature/ProviderPortalVerificationUiTest.php`
- Test: `tests/js/provider-review.test.js`

- [x] **Step 1: Write failing HTML and payload regression assertions**

Assert that neither locale renders metadata labels or input names, that `providerVerificationInput()` returns only `type` and `evidence`, and that the multipart body has no `metadata[...]` fields even if an injected input object contains them.

- [x] **Step 2: Run focused tests and confirm they fail**

Run `php artisan test --filter=ProviderPortalVerificationUiTest` and `node tests/js/provider-review.test.js`. Expected: failures caused by the existing metadata controls and multipart field.

- [x] **Step 3: Apply the minimal implementation**

Remove the two Blade controls and translation keys. Remove metadata parsing and validation from the portal JavaScript, and build the multipart body only from the selected verification type and evidence files.

- [x] **Step 4: Rebuild and verify**

Run `npm run test:provider`, `npm run production`, `php artisan architecture:audit --strict`, and `php artisan test`. Expected: all commands exit successfully.

- [x] **Step 5: Commit the verified release**

Stage only the files in this plan plus the compiled provider bundle. Use the version hook to evaluate the patch increment and commit with `fix(provider): simplify verification evidence form`.
