Identity moves: pin Soul's mutation survivors, delete resolveAccount, lock order owned by the code
Tests now kill M09, M11, M14, M17, M18, M19, M21, M23, M28, M29, M31 (each re-run by hand). The account locks are taken one statement each in sorted order, so dropping the sort is observable (M01) instead of planner-dependent. resolveAccount had no caller and answered wrongly after a chain of moves: deleted with its docs claim; the alias test inside moveIdentities stays. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
18bd5cbbd0
commit
a591c71b5d
7 changed files with 173 additions and 39 deletions
|
|
@ -356,8 +356,10 @@ re-checks the proof sessions, applies `decideMove` (one pure function both store
|
|||
call, so memory and Postgres cannot disagree), moves the rows with credentials
|
||||
stripped, revokes the source's sessions, expires its pending links and unredeemed
|
||||
completions, and appends the row. `identity_moves` is append-only (SELECT and
|
||||
INSERT only, checked at startup). An alias is derived by `resolveAccount`, never
|
||||
stored.
|
||||
INSERT only, checked at startup). An alias (an account with no login and an
|
||||
unreversed move from it) is derived inside the transaction to refuse moves into
|
||||
or out of it, never stored; nothing resolves an alias to its destination, because
|
||||
no consumer needs it and a chain of moves would make one hop wrong.
|
||||
|
||||
### Step-up proof has two sources
|
||||
|
||||
|
|
|
|||
|
|
@ -793,8 +793,8 @@ re-runs the revocation receipts, so a crash between commit and receipts heals on
|
|||
the caller's retry. Anything else under a used `moveId` is `409 move_id_conflict`.
|
||||
|
||||
What a move leaves: an account holding no login with an unreversed move from it
|
||||
is an alias of the move's destination (derived by `resolveAccount`, never
|
||||
stored; one hop). A move into or out of an alias is `already_moved`. Bearers of
|
||||
is an alias: derived at move time, never stored, and no route resolves it. A
|
||||
move into or out of an alias is `already_moved`. Bearers of
|
||||
the destination keep their old identity list until they refresh. A sign-in
|
||||
through a moved login lands on the destination because the row moved.
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue