feat(admin): bans, admin logout and time played (schema 64)
Foundation / checks (checks) (push) Successful in 5s
Foundation / checks (client) (push) Successful in 4s
Foundation / checks (ecs) (push) Successful in 5s
Foundation / checks (deploy) (push) Successful in 5s
Foundation / checks (postgres) (push) Successful in 5s
Foundation / checks (network) (push) Successful in 5s
Foundation / checks (tsan) (push) Successful in 4s
Foundation / postgres-tools (push) Successful in 2m9s
Foundation / server-image (push) Successful in 5m23s
Foundation / image (push) Successful in 6m10s

ADR-0182 section 11.
- Append-only account bans; a ban also revokes the account's grants (its live
  session closes at the next control renewal) and issue_account_grant refuses a
  banned account (EVL20 -> broker 403 account_banned). Lifting is another row.
- admin_logout_account_v1 revokes by account id.
- Session intervals recorded by claim/renew/release (signatures unchanged):
  time played, sessions and last seen per account.
- The region view carries each cell's lineage root; the portal counts living
  wildlife descended from an account's lives.
- Portal: Ban/Unban and Log out with reason and history; time played column.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
dingo
2026-10-27 17:50:34 -04:00
co-authored by Claude Opus 5.5
parent b3eca78549
commit 070c458dc5
18 changed files with 490 additions and 36 deletions
+15 -1
View File
@@ -204,8 +204,22 @@ The commands of section 3 are delivered without a new owner format or region ope
per-cell Remove and Grant reserve, and the command history with the tick each applied at.
Amounts are entered in µJ and ng.
### 11. Account administration (delivered, schema 64)
- **Bans.** Append-only `account_bans` rows; the newest per account decides. A banned
account's grant request fails with SQLSTATE EVL20 (the broker answers 403
`account_banned`), and banning also revokes its grants, so a live session closes at its
next control renewal. Lifting a ban is another row.
- **Logout.** `admin_logout_account_v1` revokes by account id, as the player's own logout
does by Keycloak identity.
- **Time played.** The session-control functions keep their signatures and also record
`session_intervals`: a claim opens one, a renewal moves its last-seen time, a release ends
it; an unreleased session ends at its last renewal. History starts with schema 64.
- **Living offspring.** The region view adds each cell's lineage root; the portal counts
living wildlife whose root is one of the account's lives.
Still pending from this ADR: drip/source settings (section 4), tuning amendments
(sections 1-2), data-defined mutations (section 5), bans and time played (section 6).
(sections 1-2), data-defined mutations (section 5) and the account's current mutations.
## Delivery order