hub (unreleased): the record of an off-site account outlives an untick; RESET and delete take the account down (R-1375, D71); runbook: a household or a tester leaves (D74)
gates / gates (push) Successful in 2m0s

An untick alone takes nothing down (pinned first). Tests run the real save and RESET over the repository's fake
provider. Not deployed.

Claude-Session: https://claude.ai/code/session_0159rPz1ZhFKsS53msqPYxtS
This commit is contained in:
admin committed 2026-11-14 17:56:29 +01:00
1 parent 186f3fca58
commit e5c643d73d
11 files changed
+563 -2

No files matched your search

+10
View File
@@ -23,6 +23,9 @@ import (
// offsiteChoice reads the customer's offsite tier selection out of config_json (the same shape the
// re-issue/freeze handlers read). enabled=false means no offsite leg to run.
// offsiteChoice answers „is there an off-site account of this household to take down, and of which type?” — the tier
// is ticked, OR it was unticked and the account's record was kept (offsite.KeepAccountRecord). Read by the RESET
// commit and by both previews. Pinned by TestD71_*.
func offsiteChoice(configJSON string) (enabled bool, typ string) {
var o struct {
Offsite struct {
@@ -31,6 +34,13 @@ func offsiteChoice(configJSON string) (enabled bool, typ string) {
} `json:"offsite"`
}
_ = json.Unmarshal([]byte(configJSON), &o)
if !o.Offsite.Enabled {
// D71 (`09` §3 decision 291, R-1375): the tier is unticked, but the hub kept the record of the account it
// made — RESET and delete take that account down too, and their previews name it. An untick alone never does.
if rec := offsite.ReadAccountRecord(configJSON); rec != nil {
return true, rec.Type
}
}
return o.Offsite.Enabled, o.Offsite.Type
}