From b416d2ede982c6a5405a295e687445ca2199b381 Mon Sep 17 00:00:00 2001 From: Jason Woltje Date: Tue, 20 Oct 2026 13:49:15 -0500 Subject: [PATCH] sage: Q175 SSO design, Mos C1 condition (mos-0977): straggler check before Jason step 4 in the phase 2 window --- agents/sage/work/q175-sso/DESIGN.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/agents/sage/work/q175-sso/DESIGN.md b/agents/sage/work/q175-sso/DESIGN.md index eba861f5d..9e3eadb15 100644 --- a/agents/sage/work/q175-sso/DESIGN.md +++ b/agents/sage/work/q175-sso/DESIGN.md @@ -338,10 +338,14 @@ them. Each entry has its own issuer, client, algs and subjects, and a session re 1. Back up the store, the pointer, the unit and config.json. 2. Pin the phase 1 copy with the Console stopped. The copy's loader accepts a config with or without `console`, so the bus and seats keep reading the old config. - 3. Jason step 4: the `console.sso` key goes into config.json, written by Jason or by an agent on his go + 3. Straggler check (Mos's C1 condition, mos-0977): list every running process, unit and timer that + still runs from the old copy and reads config.json. Each one is restarted on the new copy or shown + not to re-read config. The old loader refuses the key, so a straggler would fail on its next read. + Step 4 waits until the list is clean. + 4. Jason step 4: the `console.sso` key goes into config.json, written by Jason or by an agent on his go for that one key. The new loader reads it back (`scripts/mosaic-config.mjs` validate) before anything starts. - 4. Start the Console with `--sso --send --tester-port 7333`. + 5. Start the Console with `--sso --send --tester-port 7333`. Acceptance: Jason signs in through the Console flow, sends one message and signs out. The forged-header check (a request with `X-authentik-username` and no cookie gets 401) runs either on a scratch Console or on live by Mos or Jason (B6). No agent sends the auth header to the live 7332 (section 8). The scratch