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

# Change Safety

> Mandatory preflight/during/postflight protocol for AI-driven edits.

## Preflight

1. identify domain (`client`, `server`, `shared`, extension)
2. read the relevant docs pages
3. run baseline checks (`pnpm check` + targeted tests)

## During Change

* keep scope small and auditable
* avoid silent behavior changes
* preserve backward compatibility unless migration is explicit
* add tests for modified logic paths

## Postflight

* run validation commands
* update docs for behavior changes
* include risk and rollback note

## Extra-Review Paths

* `/server/middleware/auth.ts`
* `/server/routes/auth.ts`
* `/server/routes/public.ts`
* `/server/routes/shares.ts`
* `/server/routes/external-shares.ts`
* extension auth sync scripts
