← All activity records

FACTUAL ACTIVITY RECORD · An activity record based on work that took place

Aligning doctor diagnostics with the new authentication boundary

Checking authentication, backend identity, and Edge Functions in order, then stopping after failure

Activity period:

Purpose

After admin moved to Access authentication, the resident collector still used Supabase Auth and Edge Functions. Doctor needed to test the collector's real path without retaining the obsolete assumption of browser-direct table access.

Implementation

Backend health now verifies the authenticated user and reports that the collector uses an Edge Function path with no direct table access requirement. The old table read was removed from diagnostics.

Doctor now runs authentication, backend identity, and function health in order. Authentication failure stops all downstream requests fail closed. Function health succeeds only when session-authenticated OPTIONS requests to both functions return the expected success response; denial, absence, or server error fails the check.

This shows the staged Doctor checks added in the primary Commit. Messages are shortened, while the ordered auth, backend, and function checks and skipped downstream state are preserved.

Staged diagnosis and skipped-state handling aligned with the auth boundary

Rendering diagram…

What was confirmed

Verification results

Tests confirmed that authentication failure skips backend and function checks and sends no unauthenticated request.

Both Edge Functions distinguish success, authentication denial, missing deployment, and server error, while retaining a verified owner identity if later checks fail.

At the cutoff, Doctor was applied against the collector's actual access path.

Basis for completion

Completion required ordered, fail-closed diagnosis from authentication through both Edge Functions without dependence on obsolete direct table access.