surveys: an operator who steps down still signs in, and a deploy never demotes from an operator set it could not read (GOTCHAS #354) #1945
No reviewers
Labels
No labels
agent-blocked
agent-working
autopilot
bug
deferred
deploy-pending
enhancement
landing-pr
model-haiku
model-opus
model-sonnet
needs-design
needs-info
needs-triage
no-triage
out-of-scope
priority
ready-for-agent
ready-for-human
ready-for-session
rehearsal-183
snapshot-pending
standing-drive
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Matou/idss!1945
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "session/surveys-demote-keeps-sign-in"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
On whakatohea-demo (2026-09-27), opening Surveys took the steward to LimeSurvey's own password form instead of signing them in. Two commits, GOTCHAS #354.
1. An operator who steps down still signs in
A deploy rendered the Surveys operator list without the steward's AID, the demote pass deleted their superadmin, and the seeded operator row held nothing else. Authwebserver claims the identity header only for an account holding
auth_webserver(superadmin implies it), so LimeSurvey fell through to its password form, for an account whose password nobody knows.idssauthnow lands the member template (auth_webserver+ theauth_webserver_autocreate_permissionsset, read from the same config key the autocreate reads) on every operator it grants and on every one it demotes, before superadmin goes. A row the person already holds is left as it is.2. A deploy never demotes from an operator set it could not read
Every deploy re-attaches the deploy-driven ports (surveys, archive) with the current operator set (#1554).
operatorSetfell back to the founding seat alone when the roles seam errored: safe for a first render, a mass demotion on a re-render. The re-attach now reads the set first and HOLDS the re-render on a fault; the module on the box keeps its last list and the rest of the deploy lands.Proof
IDSS_SURVEYS_LIVE_PROOF=1 go test ./internal/clan -run TestSurveysAuthLive): red on the old command ("landed on LimeSurvey's password form … holds []"), green on the new.TestRenderSurveys_OperatorCarriesTheMemberTemplateUnderSuperadmin,TestRenderSurveys_ParsesUnderNix(negative run reds it).TestDeploy_ReAttachHeldWhenTheOperatorSetCannotBeRead: red on the old code (re-rendered[operator]), green on the new.go test ./...green on the rebased tree.Not covered
🤖 Generated with Claude Code
On whakatohea-demo, opening Surveys took the steward to LimeSurvey's own password form. A deploy had rendered the operator list without the steward's AID, the demote pass deleted their superadmin, and the seeded operator row held nothing else: Authwebserver claims the identity header only for an account holding auth_webserver (superadmin implies it), so the header was declined and LimeSurvey fell through to Authdb, for an account whose password nobody knows. Every operator who steps down to member hit this. idssauth now lands the member template (auth_webserver + the auth_webserver_autocreate_permissions set, read from the same config key the autocreate reads) on every operator it grants and on every one it demotes, before superadmin goes. A row the person already holds is left as it is. Proven against the pinned LimeSurvey 6.15.14 in docker by a new opt-in live test (IDSS_SURVEYS_LIVE_PROOF=1), red on the old command ("landed on LimeSurvey's password form … holds []"), green on the new. The render gains its parse-under-Nix test (negative run: a doubled apostrophe in the PHP reds it). Not swept: an account already stranded before this fix. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>