The grant rides only a SignIn start for a provider that mints no account itself (google) and only while the invite cookie names an unredeemed, unrevoked, unexpired invite. Redemption stays ChatInviteService.RedeemCarriedAsync. A refused sign-in for a login no account holds lands on the home page with a fixed message.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Dark behind AccountMerge:Enabled. MergePreview is the one wording of the plan, MergeWording.Confirm the closed refusal words.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Test files: the bearer list is kept apart from the surface it is checked against; wording tests use the Razor encoder.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Self redeems as the session's account; Other redeems a verified different account
that has a member account found by Heimdall account id. Every refusal precedes the
identity list, and the bearer is held only by MergeProofs.Put.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Adds the two attempt purposes, their start methods, the four outcomes, the step's
return path and the MergeProofs registration; the completion switch cases throw
until the next commit.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The mover's inline no-redirect handler becomes the shared extension; the
app-secret auth client and the member-bearer client use it too.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
AddHeimdallClients gathers the three Heimdall client registrations so the test
exercises the registrations Program uses. The auth and member clients still
follow redirects here; the mover already does not.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
AccountMergeSaga is the only caller of the move client and the only writer of Confirmed, HeimdallMoved, Failed, UndoRequested and HeimdallReversed; the
ledger keeps Committed, Final and Undone. Migration AddAccountMergeSaga adds the saga columns and the two move-id keys; its Down is roll-forward only.
AccountMergeSweeper becomes the one loop: saga advance, then finalize, every 30 s.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
WriteAsAsync takes a shared Postgres advisory lock on the account (the key the chain trigger locks exclusively) across the standing read and the writer's save; CommitAsync takes the exclusive lock before it reduces. Votes, appraisals, sealed commit and reveal, patron events (RecordSupportEventAsync routes and journals in the same save, so the manual Ledger door obeys it too) and the Heimdall sign-in pass through it; SupportTargetAsync, MayWriteAsync and JournalIntakeAsync are deleted. A folded or frozen account's sign-in writes no membership. A retry of an event stranded on the folded account journals nothing. Tests: Down refuses in every merge state, Stripe journal prior owner and undo, the lock racing a freeze and a commit on live Postgres. Docs say what the lock guarantees and what it does not.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
An nginx HTML 400, an empty 400 or any other 400 is Unknown. The fake answers its schema 400 with Heimdall's error handler body.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
An uncoded 4xx (gateway 404, 408, 410, unknown code) is Unknown: Refused wipes sealed proofs. Unrecognized leaves the refusal enum.
The catch lists no types: only the caller's cancellation propagates. moveId and reversesMoveId patterns use \z in client and fake,
so a trailing line feed is refused as Heimdall's ajv refuses it; 64, 65 and newline are pinned.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>