surveys (#1552 follow-up): a grant never reaches LimeSurvey — the operator set is rendered only when surveys itself is attached (P4 attaches ADDED services only), and the "not yet applied" tail never clears after the deploy that applies it #1554
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#1554
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 (read off
c3a272e7by the session babysitting #1547, 2026-09-16)#1552 made the surveys render reconcile LimeSurvey's superadmin set to the ledger's WHOLE operator set (
provision.operatorSet→SurveysConfig.Operators→ thelimesurvey-authoneshot grants each, demotes the unlisted) and ruledsurveyssvc.Port.ReconcileRole=ErrReconcileNeedsDeploy("the next deploy lands it"). Two things make that ruling not yet true onmain:attachRoutablePortONLY for the service being attached, and a P4 deploy attaches only the ADDED services (deploy.godeployServicesOnly→diffSelection(d.Services, sel.Services)→for _, a := range added). So adding Newsletters, re-applying the brand kit, or any later deploy leavessurveys.nixwith the operator list it was first attached with. A person granted operator after surveys was placed is NEVER superadmin there — exactly the #1552 gap, still open.ReconcileRoleALWAYS returnsErrReconcileNeedsDeploy,ReconcileRolesfolds that intoMember.RoleReconcile(P6-S4 reads "not yet applied on surveys"), and nothing after a deploy ever marks it applied —ReconcileService(the healthy-block hook) calls the sameReconcileRoleand discards the error. Every operator reads "not yet applied on surveys" forever, even once a re-attach really did seed them.Build
member.ReconcileRolestreats a deploy-driven port (ErrReconcileNeedsDeploy, or amemberorbitmarker interface such asAppliesAtDeploy() bool) as a request to re-attach that service with the current operator set: the provision seam re-renders the port's module (attachRoutablePort(surveys, …)withnodeSvcs= the node's current set, so no sibling is dropped) and deploys — the same self-deploy pathpanel-applyand the P4 add ride (#1504, loopback target). Asynchronous, best-effort, named on the tail while in flight. If that is judged too heavy for a grant, the honest alternative is that EVERY deploy re-attaches every deploy-driven port on the node (so the P4 add / brand re-apply do land it) AND the grant surfaces "applies at the next deploy" with a one-click deploy on P6-S4 — say which and why (ADR 0174).Xfor surveys,X'sRoleReconcileoutstanding entry for surveys is cleared (the deploy hook knows the set it rendered).ReconcileServicemust not re-set it.TestMemberDetail_SurveysOperatorIsSuperadminNotAppliedHonestgrows the second half: applied after the deploy that carried them.Acceptance
not_appliedis clear for surveys; revoke likewise demotes.TestRenderSurveys_ReconcilesTheWholeOperatorList).grant-operatorthenredeploy-servicesthenoperator-surveysreaches global settings as the GRANTED operator; the P6-S4 line reads applied.swarm-claim host=bens-mac-04 run=25440
(automated multi-host claim — lowest live claim id works this ticket)
Ruled by agent under ADR 0174 — veto anytime.
Decision: the ticket offers two ways for a grant/revoke to land on the node — (1) a per-grant re-attach + self-deploy loopback, or (2) the honest alternative where EVERY deploy re-attaches every deploy-driven port on the node with the current operator set. I chose (2).
Why (2):
surveys.nixwith its founding operator list (the #1547/#1552 gap).Member.RoleReconcile) = "applies at the next deploy". I did not add a new one-click-deploy button — that is additive UI, not required by the acceptance contract test, and there is no wireframe/manifest for it; the existing NotApplied surface is the honest wait-state. Deferred, not blocked.Two-way door: revertible by a later commit; provable by tests — the provision re-attach seam (
TestDeploy_ReAttachesDeployDrivenPortWithCurrentOperatorSet,…SkippedWhenPortNotDeployDriven) and the member tail-clear (TestMemberDetail_SurveysOperatorIsSuperadminNotAppliedHonestgrown with the deploy + revoke halves). Not on the one-way-door list (no credentials, no security-posture widening, no data destruction, no member-facing trust accept, no spend).Shape: a new
member.RoleMapping.AppliesAtDeploymarker (surveys sets it) drives both consumers — provisioning re-attaches deploy-driven ports on every deploy (provision.RoleReconciler.AppliesAtDeploy), andmember.ReconcileServiceCLEARS the outstanding tail for a deploy-driven service once the deploy re-rendered the set (never re-setting it).close-report for #1554 — status
success✅ close-report gates passed — every claim verified against main; issue closed.
envelope