> ## Documentation Index
> Fetch the complete documentation index at: https://docs.encoreos.io/llms.txt
> Use this file to discover all available pages before exploring further.

# CI Cleanup Punch List

> This punch list tracks the work needed to get the repository to a fully green CI baseline.

This punch list tracks the work needed to get the repository to a fully green CI baseline.

## Success Criteria

* `npm run format:check` passes
* `npm run typecheck` passes
* `npm run lint:ci -- --quiet` passes
* `CI=true SKIP_SUPABASE_TESTS=true npm test` passes
* `npm run check-rls-coverage -- --min-coverage 100` passes
* `npm run build` passes
* `CI=true ENFORCE_RUNTIME_SUPABASE_HEALTH=false MIN_RUNTIME_REST_REACHABLE=0 npm run test:baseline:smoke` passes

## Phase A — Static Quality Gates

* [x] A1. Capture baseline output for format/typecheck/lint/test
* [x] A2. Apply repository-wide formatting pass
* [x] A3. Re-run `format:check` and confirm clean state
* [x] A4. Fix all lint **errors** (warnings can be tracked separately)
* [x] A5. Re-run `lint:ci -- --quiet`

## Phase B — Test Harness Stabilization

* [x] B1. Fix missing QueryClientProvider usage in failing tests
* [x] B2. Standardize provider wrappers for permission/auth dependent component tests
* [x] B3. Re-run targeted failing accessibility/component suites

## Phase C — Failing Test Remediation

* [x] C1. Fix assertion drift for accessibility tests impacted by UI behavior changes
* [ ] C2. Re-run targeted unit/integration suites until clean
* [x] C3. Re-run `CI=true SKIP_SUPABASE_TESTS=true npm test`

## Phase D — Full Validation

* [x] D1. Run `npm run check-rls-coverage -- --min-coverage 100`
* [x] D2. Run `npm run build`
* [x] D3. Run CI-like smoke gate command
* [ ] D4. Document remaining blockers (if any) and next cleanup batch

## Current Remaining Work

* Finish C2 by re-enabling and remediating Supabase-backed integration/RLS coverage in CI-like test runs.
* Complete D4 with an explicit backlog of suites still requiring real Supabase connectivity or guard adoption.
