The server decides who you are—and which records you are allowed to touch.
v0.12.8 keeps the D1-backed identity/session ownership boundary and adds a separate staging-only QA Maker session so the real Maker Listings workflow can exercise authenticated catalog APIs. A server profile is keyed to the session account, cross-account targets are rejected, and profile writes cannot smuggle role or capability changes.
Identity schema + automated contract
These calls hit the real Pages Function and D1. The self-test creates temporary server identity data, verifies shopper-only capability ownership, and deletes the fixture afterward.
Short-lived staging server sessions
The Shopper button still proves client privilege requests are ignored. The Maker button is a separate server-authorized staging fixture: it grants exactly Shopper + Maker so the real catalog editor can be tested, never Admin.
QA sessions expire automatically after 30 minutes. The raw session token is stored only in an HttpOnly cookie; D1 stores its SHA-256 digest, not the raw token.
Prove one account cannot act as another
The automated test creates two disposable QA accounts, confirms the owner can target itself, rejects a different account ID, rejects role/capability fields, and confirms the second account record stayed untouched.
The live tamper test requires an active QA shopper session. It intentionally sends a fake different account ID and Admin/Maker-style privilege fields; rejection is the PASS condition.
Read and update only “my” server record
No trusted owner ID is taken from the browser. The endpoint derives the account from the HttpOnly session cookie, then reads or updates that account’s D1 profile.
Identity foundation checks
Only record tests you actually perform on clarawidetest.
Real authentication + authorization gates
Leave these Not Checked until each control exists and has real evidence.
Record auth/session/ownership defects
Identity blockers & defects
RECENT SERVER RUNSExport or reset this QA layer
Export captures manual/production checks, findings and server-run evidence from this browser.
