surveys: a GRANTED operator is not a LimeSurvey superadmin — ReconcileRole is a no-op and the superadmin seed follows the founding seat, not the ledger's operator set #1552
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
2 participants
Notifications
Due date
No due date set.
Reference
Matou/idss#1552
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Why (found by the session babysitting #1547, 2026-09-16, reading the landed tickets against the code)
Spec #1535 — Ben's ruling: adding an operator gives admin on ALL services. #1537's
ReconcileRoles(internal/member/roles.go:177) fans a grant out over every DEPLOYED port whose mapping isreconciler-mapped. The proof drive #1547 grants a SECOND person operator through the panel AFTER founding and then signs them into every door expecting the admin surface. Read againstmaintoday that leg is red by construction on the doors below, so the gap is filed now rather than burned on a droplet.The gap — surveys (LimeSurvey)
#1540 (
e91d709c) seeds the FOUNDING operator superadmin on the node at deploy (renderSurveysAuth, the Permission model) and declaresPort.ReconcileRolea hard no-op (internal/surveyssvc/surveyssvc.go:134, RemoteControl 2 has no permission setter) with the mapping kindfront-door-only— so #1537's fan-out skips it entirely. A person granted operator later lands via the header as the member template (survey creator), never superadmin.Build
The superadmin set must follow the LEDGER's operator set, not the founding seat:
anysyncdescriptor /surveys-operatorsfile shape), and the oneshot grants superadmin to each and demotes anyone no longer listed, idempotent on re-run.Port.ReconcileRole(personID, operator)triggers that run for real: the control plane can reach the node (the panel's own self-deploy target over loopback,root@127.0.0.1:22, #1504 — a targeted re-run of thelimesurvey-authoneshot, or a small node-side trigger). Pick one and say why; a fabricated HTTP success is out (ADR 0100). If the only honest path is a deploy,ReconcileRolereturns the named outstanding error so P6-S4 reads "not yet applied on surveys" until the next deploy lands it — never a silent no-op.reconciler-mappedso #1537 fans out to it (grant/revoke AND the P4 deploy hook, which re-seeds existing operators on every deploy for free).Acceptance
role_in_app: superadminon surveys withnot_appliedhonest.operator-surveysreaches global settings;member-surveysis refused).TestRenderFrontDoor_SurveysExemptPathStripsIdentity) unregressed.swarm-claim host=bens-mac-04 run=25431
(automated multi-host claim — lowest live claim id works this ticket)
Ruled by agent under ADR 0174 — veto anytime.
The decision (build point 2): the ticket asked me to pick, for
Port.ReconcileRole, EITHER (a) trigger the run for real over the loopback self-deploy target (#1504) OR (b) return the named outstanding error because a deploy is the only honest path — "pick one and say why".Ruling: (b) — the named outstanding error.
surveyssvc.Port.ReconcileRolenow returnsErrReconcileNeedsDeploy(never a fabricated HTTP success, ADR 0100). Why:surveys-operatorsfile the oneshot reads at runtime) — a larger cross-cutting deploy-infra mechanism, and one hard to prove offline.limesurvey-authoneshot grants each listed operator superadmin and demotes any no longer listed; the P4 deploy hook drives it "for free"). So the DEPLOY is the honest application path, and the per-person reconcile is honestly OUTSTANDING until then — member detail (P6-S4) readsrole_in_app: superadminon surveys withnot_appliedhonest, exactly as the acceptance asks.Why it is a two-way door: revertible (a later ticket can add the loopback trigger + node-side operator file without touching this contract) and provable by tests I ran — the render test (two operators → two grants; a removed one → demoted; admin identity never demoted), the reconcile contract test (
ReconcileRole→ErrReconcileNeedsDeploy, grant + revoke, idempotent), and the member-detail test (superadmin + not_applied). It is not on the one-way-door list (no credential/security-widening/data-destruction/spend). The live end-to-end proof rides #1547.Secondary call (also two-way): the operator LIST is sourced at deploy via a new
provision.RoleReconciler.Operators(ctx)seam (member lists active operators), UNIONed founder-first withclan.OperatorAccount, so an unwired roles seam is unchanged (founding seat alone) — never a deploy left with an empty set it did not have before.close-report for #1552 — status
success✅ close-report gates passed — every claim verified against main; issue closed.
envelope
Landed, but not yet true on
mainfor a LATER grant: a P4 deploy attaches only the ADDED services (deploy.godiffSelection), so surveys' operator list is rendered once at its own attach and never again — and theErrReconcileNeedsDeploytail never clears. Follow-up #1554 (bug, priority, ready-for-agent) blocks #1547.