feat: refresh console for QA and refresh-only access (auth M6d)

- web: Refresh console (relation cards, overwrite confirmation, progress,
  cancel, distinct failure messages), rail item, and a single-screen view
  for people who may only refresh
- hub: refresh-only users are authorized; /me exposes refresh_relations
- docs and auth plan record the real rehearsal (Postgres, agent, Keycloak,
  browser) and what was not verified

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-14 19:03:47 +07:00
parent da46453c13
commit d7fe99edd7
9 changed files with 310 additions and 10 deletions

View File

@@ -356,6 +356,11 @@ was shown: `REFRESH <source> TO <target> v<version>`. The caller never picks the
overwritten);
3. follows the restore job to its end.
In the web UI, people holding a relation grant use **Refresh** (administrators find it in the rail too). Someone whose
only permission is a relation grant gets that single screen: the vault screens are not loaded for them, since every
request would be refused. The screen shows what will be overwritten, requires an explicit confirmation, follows the
run, and lets the person cancel until the target starts being overwritten.
States: `capturing`, `restoring`, then `completed`, or `capture_failed`, `restore_failed`, `blocked` (with a reason),
`expired`, `cancelled`, `recovery_required` (the restore was interrupted after it started overwriting: an administrator
must reconcile it), `reconciled`. A target has at most one run in progress; a second request answers `409 run_active`